Skip to content

Commit 0712971

Browse files
authored
Merge pull request #173 from flowglad/release-please--branches--main--changes--next--components--node
release: 0.26.0
2 parents c8c6a38 + 98849e3 commit 0712971

File tree

9 files changed

+81
-19
lines changed

9 files changed

+81
-19
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.25.0"
2+
".": "0.26.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 53
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-599bbd902d653e4f023f1462dfbf6a268d3809bba2e12250339ea372ea05574d.yml
3-
openapi_spec_hash: 65bbe2d6fa2d3c136d71f258928b62c1
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/flowglad%2Fflowglad-7fcbd2dbf3c189f748820ae0fc34baf36873d72a974bf1a6a1657e65ed781365.yml
3+
openapi_spec_hash: 945345026fee7df74af53b74e795001a
44
config_hash: 9e2894d9f7b4a4b6d46dfdc3a5f8b52d

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# Changelog
2+
## 0.26.0 (2026-01-14)
3+
4+
Full Changelog: [v0.25.0...v0.26.0](https://github.com/flowglad/flowglad-node/compare/v0.25.0...v0.26.0)
5+
6+
### Features
7+
8+
* **api:** manual updates ([ef4e892](https://github.com/flowglad/flowglad-node/commit/ef4e8928b934fcfcfd58db93e4f4cab36cd4d5c1))
9+
210
## 0.25.0 (2026-01-11)
311

412
Full Changelog: [v0.24.0...v0.25.0](https://github.com/flowglad/flowglad-node/compare/v0.24.0...v0.25.0)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@flowglad/node",
3-
"version": "0.25.0",
3+
"version": "0.26.0",
44
"description": "The official TypeScript library for the Flowglad API",
55
"author": "Flowglad <dev-feedback@flowglad.com>",
66
"types": "dist/index.d.ts",

src/resources/customers.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export interface CustomerClientSelectSchema {
8080

8181
organizationId: string;
8282

83-
pricingModelId: string | null;
83+
pricingModelId: string;
8484

8585
/**
8686
* Epoch milliseconds.
@@ -1178,8 +1178,6 @@ export namespace CustomerCreateParams {
11781178

11791179
logoURL?: string | null;
11801180

1181-
pricingModelId?: string | null;
1182-
11831181
userId?: string | null;
11841182
}
11851183
}

src/resources/resource-claims.ts

Lines changed: 65 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export namespace ResourceClaimClaimResponse {
101101
capacity: number;
102102

103103
claimed: number;
104+
105+
resourceId: string;
106+
107+
resourceSlug: string;
104108
}
105109
}
106110

@@ -162,14 +166,65 @@ export namespace ResourceClaimReleaseResponse {
162166
capacity: number;
163167

164168
claimed: number;
169+
170+
resourceId: string;
171+
172+
resourceSlug: string;
165173
}
166174
}
167175

168176
export interface ResourceClaimUsageResponse {
177+
claims: Array<ResourceClaimUsageResponse.Claim>;
178+
169179
usage: Array<ResourceClaimUsageResponse.Usage>;
170180
}
171181

172182
export namespace ResourceClaimUsageResponse {
183+
export interface Claim {
184+
id: string;
185+
186+
/**
187+
* Epoch milliseconds.
188+
*/
189+
claimedAt: number;
190+
191+
/**
192+
* Epoch milliseconds.
193+
*/
194+
createdAt: number;
195+
196+
externalId: string | null;
197+
198+
livemode: boolean;
199+
200+
organizationId: string;
201+
202+
pricingModelId: string;
203+
204+
releaseReason: string | null;
205+
206+
resourceId: string;
207+
208+
subscriptionId: string;
209+
210+
subscriptionItemFeatureId: string;
211+
212+
/**
213+
* Epoch milliseconds.
214+
*/
215+
updatedAt: number;
216+
217+
/**
218+
* JSON object
219+
*/
220+
metadata?: { [key: string]: string | number | boolean } | null;
221+
222+
/**
223+
* Epoch milliseconds.
224+
*/
225+
releasedAt?: number | null;
226+
}
227+
173228
export interface Usage {
174229
available: number;
175230

@@ -190,12 +245,13 @@ export interface ResourceClaimClaimParams {
190245
resourceSlug: string;
191246

192247
/**
193-
* Create a single pet-style claim with this external identifier.
248+
* Create a single named claim with this external identifier (idempotent).
194249
*/
195250
externalId?: string;
196251

197252
/**
198-
* Create multiple pet-style claims with these external identifiers.
253+
* Create multiple named claims with these external identifiers (idempotent per
254+
* ID).
199255
*/
200256
externalIds?: Array<string>;
201257

@@ -205,8 +261,7 @@ export interface ResourceClaimClaimParams {
205261
metadata?: { [key: string]: string | number | boolean };
206262

207263
/**
208-
* Create N anonymous (cattle-style) claims. Each claim will have externalId =
209-
* null.
264+
* Create N anonymous claims without external identifiers.
210265
*/
211266
quantity?: number;
212267
}
@@ -218,24 +273,24 @@ export interface ResourceClaimReleaseParams {
218273
resourceSlug: string;
219274

220275
/**
221-
* Release specific claims by their claim IDs (works for both cattle and pet
222-
* claims)
276+
* Release specific claims by their claim IDs (works for both anonymous and named
277+
* claims).
223278
*/
224279
claimIds?: Array<string>;
225280

226281
/**
227-
* Release a specific pet-style claim by its externalId
282+
* Release a specific named claim by its external identifier.
228283
*/
229284
externalId?: string;
230285

231286
/**
232-
* Release multiple pet-style claims by their externalIds
287+
* Release multiple named claims by their external identifiers.
233288
*/
234289
externalIds?: Array<string>;
235290

236291
/**
237-
* Release N anonymous (cattle-style) claims. Only releases claims where externalId
238-
* IS NULL. Will not release pet-style claims with externalIds.
292+
* Release N anonymous claims (FIFO order). Only releases claims without external
293+
* identifiers.
239294
*/
240295
quantity?: number;
241296
}

src/resources/shared.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ export interface PaymentMethodClientSelectSchema {
153153

154154
paymentMethodData: { [key: string]: unknown };
155155

156+
pricingModelId: string;
157+
156158
type: 'card' | 'link' | 'us_bank_account' | 'sepa_debit';
157159

158160
/**

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = '0.25.0'; // x-release-please-version
1+
export const VERSION = '0.26.0'; // x-release-please-version

tests/api-resources/customers.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ describe('resource customers', () => {
3737
domain: 'domain',
3838
iconURL: 'iconURL',
3939
logoURL: 'logoURL',
40-
pricingModelId: 'pricingModelId',
4140
userId: 'userId',
4241
},
4342
});

0 commit comments

Comments
 (0)