@stigg/typescript 0.1.0-beta.60 → 0.1.0-beta.62
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/package.json +1 -1
- package/resources/v1/addons/addons.d.mts +1 -1
- package/resources/v1/addons/addons.d.ts +1 -1
- package/resources/v1/credits/credits.d.mts +77 -2
- package/resources/v1/credits/credits.d.mts.map +1 -1
- package/resources/v1/credits/credits.d.ts +77 -2
- package/resources/v1/credits/credits.d.ts.map +1 -1
- package/resources/v1/credits/credits.js +4 -0
- package/resources/v1/credits/credits.js.map +1 -1
- package/resources/v1/credits/credits.mjs +4 -0
- package/resources/v1/credits/credits.mjs.map +1 -1
- package/resources/v1/credits/index.d.mts +1 -0
- package/resources/v1/credits/index.d.mts.map +1 -1
- package/resources/v1/credits/index.d.ts +1 -0
- package/resources/v1/credits/index.d.ts.map +1 -1
- package/resources/v1/credits/index.js +3 -1
- package/resources/v1/credits/index.js.map +1 -1
- package/resources/v1/credits/index.mjs +1 -0
- package/resources/v1/credits/index.mjs.map +1 -1
- package/resources/v1/credits/reservations.d.mts +128 -0
- package/resources/v1/credits/reservations.d.mts.map +1 -0
- package/resources/v1/credits/reservations.d.ts +128 -0
- package/resources/v1/credits/reservations.d.ts.map +1 -0
- package/resources/v1/credits/reservations.js +30 -0
- package/resources/v1/credits/reservations.js.map +1 -0
- package/resources/v1/credits/reservations.mjs +26 -0
- package/resources/v1/credits/reservations.mjs.map +1 -0
- package/resources/v1/customers/customers.d.mts +103 -0
- package/resources/v1/customers/customers.d.mts.map +1 -1
- package/resources/v1/customers/customers.d.ts +103 -0
- package/resources/v1/customers/customers.d.ts.map +1 -1
- package/resources/v1/customers/customers.js.map +1 -1
- package/resources/v1/customers/customers.mjs.map +1 -1
- package/resources/v1/plans/plans.d.mts +1 -1
- package/resources/v1/plans/plans.d.ts +1 -1
- package/resources/v1/subscriptions/subscriptions.d.mts +39 -0
- package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.d.ts +39 -0
- package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
- package/resources/v1/subscriptions/subscriptions.js.map +1 -1
- package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
- package/resources/v1/usage.d.mts +8 -7
- package/resources/v1/usage.d.mts.map +1 -1
- package/resources/v1/usage.d.ts +8 -7
- package/resources/v1/usage.d.ts.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.mts +39 -0
- package/resources/v1-beta/customers/entitlements.d.mts.map +1 -1
- package/resources/v1-beta/customers/entitlements.d.ts +39 -0
- package/resources/v1-beta/customers/entitlements.d.ts.map +1 -1
- package/resources/v2/usage.d.mts +4 -3
- package/resources/v2/usage.d.mts.map +1 -1
- package/resources/v2/usage.d.ts +4 -3
- package/resources/v2/usage.d.ts.map +1 -1
- package/src/resources/v1/addons/addons.ts +1 -1
- package/src/resources/v1/credits/credits.ts +109 -2
- package/src/resources/v1/credits/index.ts +1 -0
- package/src/resources/v1/credits/reservations.ts +172 -0
- package/src/resources/v1/customers/customers.ts +122 -0
- package/src/resources/v1/plans/plans.ts +1 -1
- package/src/resources/v1/subscriptions/subscriptions.ts +46 -0
- package/src/resources/v1/usage.ts +8 -7
- package/src/resources/v1-beta/customers/entitlements.ts +46 -0
- package/src/resources/v2/usage.ts +4 -3
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -140,6 +140,22 @@ export declare namespace EntitlementCheckResponse {
|
|
|
140
140
|
* Timestamp of the last update to the entitlement grant or configuration.
|
|
141
141
|
*/
|
|
142
142
|
entitlementUpdatedAt?: string;
|
|
143
|
+
/**
|
|
144
|
+
* The reservation created by this request, when it asked to reserve credits and
|
|
145
|
+
* was granted.
|
|
146
|
+
*/
|
|
147
|
+
reservation?: Credit.Reservation | null;
|
|
148
|
+
/**
|
|
149
|
+
* Credits held by open reservations on active grants. Already included in
|
|
150
|
+
* currentUsage, so usageLimit - currentUsage is the available balance.
|
|
151
|
+
*/
|
|
152
|
+
reserved?: number;
|
|
153
|
+
/**
|
|
154
|
+
* Credits still held by open reservations on grants that expired during the hold.
|
|
155
|
+
* They can still be released, but are not part of currentUsage or the balance and
|
|
156
|
+
* must not be subtracted from it.
|
|
157
|
+
*/
|
|
158
|
+
reservedOnExpiredGrants?: number;
|
|
143
159
|
/**
|
|
144
160
|
* The end date of the current billing period for recurring credit grants.
|
|
145
161
|
*/
|
|
@@ -209,6 +225,29 @@ export declare namespace EntitlementCheckResponse {
|
|
|
209
225
|
*/
|
|
210
226
|
usageLimit: number | null;
|
|
211
227
|
}
|
|
228
|
+
/**
|
|
229
|
+
* The reservation created by this request, when it asked to reserve credits and
|
|
230
|
+
* was granted.
|
|
231
|
+
*/
|
|
232
|
+
interface Reservation {
|
|
233
|
+
/**
|
|
234
|
+
* The client-provided reservation ID.
|
|
235
|
+
*/
|
|
236
|
+
id: string;
|
|
237
|
+
/**
|
|
238
|
+
* The amount of credits held.
|
|
239
|
+
*/
|
|
240
|
+
amount: number;
|
|
241
|
+
/**
|
|
242
|
+
* When the reservation expires. Unreleased credits return to the balance at this
|
|
243
|
+
* time.
|
|
244
|
+
*/
|
|
245
|
+
expiresAt: string;
|
|
246
|
+
/**
|
|
247
|
+
* The status of the reservation.
|
|
248
|
+
*/
|
|
249
|
+
status: 'ACTIVE' | 'RELEASED';
|
|
250
|
+
}
|
|
212
251
|
}
|
|
213
252
|
}
|
|
214
253
|
export interface EntitlementCheckParams {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa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AEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"entitlements.d.ts","sourceRoot":"","sources":["../../../src/resources/v1-beta/customers/entitlements.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,EAAE,UAAU,EAAE,qCAAkC;AAEvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;;;;;;;;OAUG;IACH,KAAK,CACH,EAAE,EAAE,MAAM,EACV,MAAM,GAAE,sBAAsB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,wBAAwB,CAAC;CAcxC;AAED;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,IAAI,EAAE,wBAAwB,CAAC,OAAO,GAAG,wBAAwB,CAAC,MAAM,CAAC;CAC1E;AAED,yBAAiB,wBAAwB,CAAC;IACxC;;OAEG;IACH,UAAiB,OAAO;QACtB,kBAAkB,EACd,iBAAiB,GACjB,kBAAkB,GAClB,oBAAoB,GACpB,0BAA0B,GAC1B,sBAAsB,GACtB,oCAAoC,GACpC,8BAA8B,GAC9B,yBAAyB,GACzB,gBAAgB,GAChB,SAAS,GACT,qBAAqB,GACrB,SAAS,GACT,qBAAqB,GACrB,qBAAqB,GACrB,IAAI,CAAC;QAET,SAAS,EAAE,OAAO,CAAC;QAEnB,IAAI,EAAE,SAAS,CAAC;QAEhB;;;WAGG;QACH,MAAM,CAAC,EAAE,KAA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HANGED
|
@@ -242,9 +242,10 @@ export declare namespace UsageReportParams {
|
|
|
242
242
|
*/
|
|
243
243
|
featureId: string;
|
|
244
244
|
/**
|
|
245
|
-
* The value to report for usage.
|
|
246
|
-
*
|
|
247
|
-
*
|
|
245
|
+
* The value to report for usage. Fractional values are accepted and rounded half
|
|
246
|
+
* away from zero to 5 decimal places. A value with a fractional part must have an
|
|
247
|
+
* absolute value below 34,359,738,368 (2^35); whole numbers are accepted up to
|
|
248
|
+
* ±9,007,199,254,740,991.
|
|
248
249
|
*/
|
|
249
250
|
value: number;
|
|
250
251
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../src/resources/v2/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAc7F;AAED;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,EAAE,mBAAmB,CAAC,IAAI,CAAC;CAChC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAE1B;;;;WAIG;QACH,OAAO,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAE7B;;;;;WAKG;QACH,QAAQ,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;KAC/B;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,KAAK;YACpB;;eAEG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QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;;;WAIG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;;WAIG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;KAClC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
package/resources/v2/usage.d.ts
CHANGED
|
@@ -242,9 +242,10 @@ export declare namespace UsageReportParams {
|
|
|
242
242
|
*/
|
|
243
243
|
featureId: string;
|
|
244
244
|
/**
|
|
245
|
-
* The value to report for usage.
|
|
246
|
-
*
|
|
247
|
-
*
|
|
245
|
+
* The value to report for usage. Fractional values are accepted and rounded half
|
|
246
|
+
* away from zero to 5 decimal places. A value with a fractional part must have an
|
|
247
|
+
* absolute value below 34,359,738,368 (2^35); whole numbers are accepted up to
|
|
248
|
+
* ±9,007,199,254,740,991.
|
|
248
249
|
*/
|
|
249
250
|
value: number;
|
|
250
251
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../src/resources/v2/usage.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAEhE;;GAEG;AACH,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,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ACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;;eAGG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB;KACF;CACF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAEvC;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,yBAAiB,iBAAiB,CAAC;IACjC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,UAAU,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;;WAKG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;WAEG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,CAAC;QAE1D;;;;WAIG;QACH,cAAc,CAAC,EAAE,MAAM,CAAC;QAExB;;;;;WAKG;QACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAE3B;;;;WAIG;QACH,cAAc,CAAC,EAAE,OAAO,GAAG,KAAK,CAAC;KAClC;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -33,6 +33,8 @@ import {
|
|
|
33
33
|
GrantVoidParams,
|
|
34
34
|
Grants,
|
|
35
35
|
} from './grants';
|
|
36
|
+
import * as ReservationsAPI from './reservations';
|
|
37
|
+
import { ReservationReleaseParams, ReservationReleaseResponse, Reservations } from './reservations';
|
|
36
38
|
import { APIPromise } from '../../../core/api-promise';
|
|
37
39
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
|
|
38
40
|
import { buildHeaders } from '../../../internal/headers';
|
|
@@ -44,6 +46,7 @@ export class Credits extends APIResource {
|
|
|
44
46
|
this._client,
|
|
45
47
|
);
|
|
46
48
|
consumption: ConsumptionAPI.Consumption = new ConsumptionAPI.Consumption(this._client);
|
|
49
|
+
reservations: ReservationsAPI.Reservations = new ReservationsAPI.Reservations(this._client);
|
|
47
50
|
|
|
48
51
|
/**
|
|
49
52
|
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
@@ -347,10 +350,17 @@ export namespace CreditGetUsageResponse {
|
|
|
347
350
|
*/
|
|
348
351
|
export interface CreditListLedgerResponse {
|
|
349
352
|
/**
|
|
350
|
-
* The
|
|
353
|
+
* The amount of the ledger event. Reservation events carry their net effect on the
|
|
354
|
+
* balance: a reserve is negative, and so is a release that consumed more than was
|
|
355
|
+
* held
|
|
351
356
|
*/
|
|
352
357
|
amount: number;
|
|
353
358
|
|
|
359
|
+
/**
|
|
360
|
+
* On a released reservation, the credits consumed from each grant
|
|
361
|
+
*/
|
|
362
|
+
breakdown: Array<CreditListLedgerResponse.Breakdown> | null;
|
|
363
|
+
|
|
354
364
|
/**
|
|
355
365
|
* The credit currency ID
|
|
356
366
|
*/
|
|
@@ -381,13 +391,32 @@ export interface CreditListLedgerResponse {
|
|
|
381
391
|
| 'CREDITS_VOIDED'
|
|
382
392
|
| 'CREDITS_UPDATED'
|
|
383
393
|
| 'CREDITS_CONSUMPTION_TRANSFER_SOURCE'
|
|
384
|
-
| 'CREDITS_CONSUMPTION_TRANSFER_TARGET'
|
|
394
|
+
| 'CREDITS_CONSUMPTION_TRANSFER_TARGET'
|
|
395
|
+
| 'CREDITS_RESERVED'
|
|
396
|
+
| 'CREDITS_RESERVATION_RELEASED'
|
|
397
|
+
| 'CREDITS_RESERVATION_EXPIRED';
|
|
385
398
|
|
|
386
399
|
/**
|
|
387
400
|
* The feature ID associated with this event
|
|
388
401
|
*/
|
|
389
402
|
featureId: string | null;
|
|
390
403
|
|
|
404
|
+
/**
|
|
405
|
+
* On a released reservation, the held amount returned to the balance before
|
|
406
|
+
* consumed credits are deducted
|
|
407
|
+
*/
|
|
408
|
+
holdReturnedAmount: number | null;
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* The metadata sent with the credit reservation
|
|
412
|
+
*/
|
|
413
|
+
metadata: { [key: string]: string } | null;
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* The credit reservation this event belongs to
|
|
417
|
+
*/
|
|
418
|
+
reservationId: string | null;
|
|
419
|
+
|
|
391
420
|
/**
|
|
392
421
|
* The resource ID this event is scoped to
|
|
393
422
|
*/
|
|
@@ -399,6 +428,72 @@ export interface CreditListLedgerResponse {
|
|
|
399
428
|
timestamp: string;
|
|
400
429
|
}
|
|
401
430
|
|
|
431
|
+
export namespace CreditListLedgerResponse {
|
|
432
|
+
export interface Breakdown {
|
|
433
|
+
/**
|
|
434
|
+
* The amount of the ledger event. Reservation events carry their net effect on the
|
|
435
|
+
* balance: a reserve is negative, and so is a release that consumed more than was
|
|
436
|
+
* held
|
|
437
|
+
*/
|
|
438
|
+
amount: number;
|
|
439
|
+
|
|
440
|
+
/**
|
|
441
|
+
* The credit currency ID
|
|
442
|
+
*/
|
|
443
|
+
creditCurrencyId: string;
|
|
444
|
+
|
|
445
|
+
/**
|
|
446
|
+
* The credit grant ID associated with this event
|
|
447
|
+
*/
|
|
448
|
+
creditGrantId: string;
|
|
449
|
+
|
|
450
|
+
/**
|
|
451
|
+
* The customer ID this event belongs to
|
|
452
|
+
*/
|
|
453
|
+
customerId: string;
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
* The unique event identifier
|
|
457
|
+
*/
|
|
458
|
+
eventId: string | null;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The type of credit event
|
|
462
|
+
*/
|
|
463
|
+
eventType:
|
|
464
|
+
| 'CREDITS_GRANTED'
|
|
465
|
+
| 'CREDITS_EXPIRED'
|
|
466
|
+
| 'CREDITS_CONSUMED'
|
|
467
|
+
| 'CREDITS_VOIDED'
|
|
468
|
+
| 'CREDITS_UPDATED'
|
|
469
|
+
| 'CREDITS_CONSUMPTION_TRANSFER_SOURCE'
|
|
470
|
+
| 'CREDITS_CONSUMPTION_TRANSFER_TARGET'
|
|
471
|
+
| 'CREDITS_RESERVED'
|
|
472
|
+
| 'CREDITS_RESERVATION_RELEASED'
|
|
473
|
+
| 'CREDITS_RESERVATION_EXPIRED';
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* The feature ID associated with this event
|
|
477
|
+
*/
|
|
478
|
+
featureId: string | null;
|
|
479
|
+
|
|
480
|
+
/**
|
|
481
|
+
* The credit reservation this event belongs to
|
|
482
|
+
*/
|
|
483
|
+
reservationId: string | null;
|
|
484
|
+
|
|
485
|
+
/**
|
|
486
|
+
* The resource ID this event is scoped to
|
|
487
|
+
*/
|
|
488
|
+
resourceId: string | null;
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
* The timestamp when the event occurred
|
|
492
|
+
*/
|
|
493
|
+
timestamp: string;
|
|
494
|
+
}
|
|
495
|
+
}
|
|
496
|
+
|
|
402
497
|
export interface CreditGetAutoRechargeParams {
|
|
403
498
|
/**
|
|
404
499
|
* Query param: Filter by currency ID (required)
|
|
@@ -511,6 +606,11 @@ export interface CreditListLedgerParams extends MyCursorIDPageParams {
|
|
|
511
606
|
*/
|
|
512
607
|
eventType?: string;
|
|
513
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Query param: Filter by credit reservation ID
|
|
611
|
+
*/
|
|
612
|
+
reservationId?: string;
|
|
613
|
+
|
|
514
614
|
/**
|
|
515
615
|
* Query param: Filter by resource ID
|
|
516
616
|
*/
|
|
@@ -533,6 +633,7 @@ export interface CreditListLedgerParams extends MyCursorIDPageParams {
|
|
|
533
633
|
Credits.Grants = Grants;
|
|
534
634
|
Credits.CustomCurrencies = CustomCurrencies;
|
|
535
635
|
Credits.Consumption = Consumption;
|
|
636
|
+
Credits.Reservations = Reservations;
|
|
536
637
|
|
|
537
638
|
export declare namespace Credits {
|
|
538
639
|
export {
|
|
@@ -576,4 +677,10 @@ export declare namespace Credits {
|
|
|
576
677
|
type ConsumptionConsumeParams as ConsumptionConsumeParams,
|
|
577
678
|
type ConsumptionConsumeAsyncParams as ConsumptionConsumeAsyncParams,
|
|
578
679
|
};
|
|
680
|
+
|
|
681
|
+
export {
|
|
682
|
+
Reservations as Reservations,
|
|
683
|
+
type ReservationReleaseResponse as ReservationReleaseResponse,
|
|
684
|
+
type ReservationReleaseParams as ReservationReleaseParams,
|
|
685
|
+
};
|
|
579
686
|
}
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import { APIPromise } from '../../../core/api-promise';
|
|
5
|
+
import { buildHeaders } from '../../../internal/headers';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Reservations extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Releases a credit reservation, consuming the given amount and returning the rest
|
|
12
|
+
* of the held credits to the balance. Retry a failed release with the same
|
|
13
|
+
* reservation ID; it is applied once.
|
|
14
|
+
*/
|
|
15
|
+
release(
|
|
16
|
+
reservationID: string,
|
|
17
|
+
params: ReservationReleaseParams,
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<ReservationReleaseResponse> {
|
|
20
|
+
const { 'X-ACCOUNT-ID': xAccountID, 'X-ENVIRONMENT-ID': xEnvironmentID, ...body } = params;
|
|
21
|
+
return this._client.post(path`/api/v1/credits/reservations/${reservationID}/release`, {
|
|
22
|
+
body,
|
|
23
|
+
...options,
|
|
24
|
+
headers: buildHeaders([
|
|
25
|
+
{
|
|
26
|
+
...(xAccountID != null ? { 'X-ACCOUNT-ID': xAccountID } : undefined),
|
|
27
|
+
...(xEnvironmentID != null ? { 'X-ENVIRONMENT-ID': xEnvironmentID } : undefined),
|
|
28
|
+
},
|
|
29
|
+
options?.headers,
|
|
30
|
+
]),
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Response object
|
|
37
|
+
*/
|
|
38
|
+
export interface ReservationReleaseResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Result of releasing a credit reservation
|
|
41
|
+
*/
|
|
42
|
+
data: ReservationReleaseResponse.Data;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export namespace ReservationReleaseResponse {
|
|
46
|
+
/**
|
|
47
|
+
* Result of releasing a credit reservation
|
|
48
|
+
*/
|
|
49
|
+
export interface Data {
|
|
50
|
+
/**
|
|
51
|
+
* The optimistic credit balance after the release
|
|
52
|
+
*/
|
|
53
|
+
credit: Data.Credit | null;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The released reservation
|
|
57
|
+
*/
|
|
58
|
+
reservation: Data.Reservation;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export namespace Data {
|
|
62
|
+
/**
|
|
63
|
+
* The optimistic credit balance after the release
|
|
64
|
+
*/
|
|
65
|
+
export interface Credit {
|
|
66
|
+
/**
|
|
67
|
+
* The credit currency identifier
|
|
68
|
+
*/
|
|
69
|
+
currencyId: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The wallet's total consumed credits for this currency (optimistic — includes
|
|
73
|
+
* not-yet-reconciled usage), shared across every feature that draws on the
|
|
74
|
+
* currency. This is the running balance, not this call's deduction — see
|
|
75
|
+
* `consumed` for that.
|
|
76
|
+
*/
|
|
77
|
+
currentUsage: number;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* The grant-version timestamp of this balance, used by the SDK for last-write-wins
|
|
81
|
+
* reconciliation
|
|
82
|
+
*/
|
|
83
|
+
timestamp: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The total credits granted
|
|
87
|
+
*/
|
|
88
|
+
usageLimit: number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* End of the current credit grant period (when recurring credits reset), if
|
|
92
|
+
* applicable
|
|
93
|
+
*/
|
|
94
|
+
usagePeriodEnd?: string | null;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* The released reservation
|
|
99
|
+
*/
|
|
100
|
+
export interface Reservation {
|
|
101
|
+
/**
|
|
102
|
+
* The client-provided reservation ID.
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* The amount of credits held.
|
|
108
|
+
*/
|
|
109
|
+
amount: number;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* The amount consumed at release
|
|
113
|
+
*/
|
|
114
|
+
consumedAmount: number | null;
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* When the reservation expires. Unreleased credits return to the balance at this
|
|
118
|
+
* time.
|
|
119
|
+
*/
|
|
120
|
+
expiresAt: string;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* The status of the reservation.
|
|
124
|
+
*/
|
|
125
|
+
status: 'ACTIVE' | 'RELEASED';
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export interface ReservationReleaseParams {
|
|
131
|
+
/**
|
|
132
|
+
* Body param: The amount of credits to consume at release. Up to the reserved
|
|
133
|
+
* amount is charged to the credits that backed the reservation; the rest returns
|
|
134
|
+
* to the balance, and any amount above the reservation is consumed normally.
|
|
135
|
+
*/
|
|
136
|
+
consumedAmount: number;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Body param: The credit currency of the reservation
|
|
140
|
+
*/
|
|
141
|
+
currencyId: string;
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Body param: The customer the reservation was made for
|
|
145
|
+
*/
|
|
146
|
+
customerId: string;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Body param: The resource the reservation was made for, if any
|
|
150
|
+
*/
|
|
151
|
+
resourceId?: string;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Header param: Account ID — optional when authenticating with a user JWT (Bearer
|
|
155
|
+
* token); falls back to the user's first membership. Ignored for API-key auth.
|
|
156
|
+
*/
|
|
157
|
+
'X-ACCOUNT-ID'?: string;
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Header param: Environment ID — required when authenticating with a user JWT
|
|
161
|
+
* (Bearer token) on environment-scoped endpoints. Ignored for API-key auth (env is
|
|
162
|
+
* intrinsic to the key).
|
|
163
|
+
*/
|
|
164
|
+
'X-ENVIRONMENT-ID'?: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export declare namespace Reservations {
|
|
168
|
+
export {
|
|
169
|
+
type ReservationReleaseResponse as ReservationReleaseResponse,
|
|
170
|
+
type ReservationReleaseParams as ReservationReleaseParams,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
@@ -1783,6 +1783,25 @@ export namespace CustomerCheckEntitlementResponse {
|
|
|
1783
1783
|
*/
|
|
1784
1784
|
entitlementUpdatedAt?: string;
|
|
1785
1785
|
|
|
1786
|
+
/**
|
|
1787
|
+
* The reservation created by this request, when it asked to reserve credits and
|
|
1788
|
+
* was granted.
|
|
1789
|
+
*/
|
|
1790
|
+
reservation?: Credit.Reservation | null;
|
|
1791
|
+
|
|
1792
|
+
/**
|
|
1793
|
+
* Credits held by open reservations on active grants. Already included in
|
|
1794
|
+
* currentUsage, so usageLimit - currentUsage is the available balance.
|
|
1795
|
+
*/
|
|
1796
|
+
reserved?: number;
|
|
1797
|
+
|
|
1798
|
+
/**
|
|
1799
|
+
* Credits still held by open reservations on grants that expired during the hold.
|
|
1800
|
+
* They can still be released, but are not part of currentUsage or the balance and
|
|
1801
|
+
* must not be subtracted from it.
|
|
1802
|
+
*/
|
|
1803
|
+
reservedOnExpiredGrants?: number;
|
|
1804
|
+
|
|
1786
1805
|
/**
|
|
1787
1806
|
* The end date of the current billing period for recurring credit grants.
|
|
1788
1807
|
*/
|
|
@@ -1829,6 +1848,33 @@ export namespace CustomerCheckEntitlementResponse {
|
|
|
1829
1848
|
*/
|
|
1830
1849
|
unitSingular?: string | null;
|
|
1831
1850
|
}
|
|
1851
|
+
|
|
1852
|
+
/**
|
|
1853
|
+
* The reservation created by this request, when it asked to reserve credits and
|
|
1854
|
+
* was granted.
|
|
1855
|
+
*/
|
|
1856
|
+
export interface Reservation {
|
|
1857
|
+
/**
|
|
1858
|
+
* The client-provided reservation ID.
|
|
1859
|
+
*/
|
|
1860
|
+
id: string;
|
|
1861
|
+
|
|
1862
|
+
/**
|
|
1863
|
+
* The amount of credits held.
|
|
1864
|
+
*/
|
|
1865
|
+
amount: number;
|
|
1866
|
+
|
|
1867
|
+
/**
|
|
1868
|
+
* When the reservation expires. Unreleased credits return to the balance at this
|
|
1869
|
+
* time.
|
|
1870
|
+
*/
|
|
1871
|
+
expiresAt: string;
|
|
1872
|
+
|
|
1873
|
+
/**
|
|
1874
|
+
* The status of the reservation.
|
|
1875
|
+
*/
|
|
1876
|
+
status: 'ACTIVE' | 'RELEASED';
|
|
1877
|
+
}
|
|
1832
1878
|
}
|
|
1833
1879
|
}
|
|
1834
1880
|
|
|
@@ -2489,6 +2535,25 @@ export namespace CustomerRetrieveEntitlementsResponse {
|
|
|
2489
2535
|
*/
|
|
2490
2536
|
entitlementUpdatedAt?: string;
|
|
2491
2537
|
|
|
2538
|
+
/**
|
|
2539
|
+
* The reservation created by this request, when it asked to reserve credits and
|
|
2540
|
+
* was granted.
|
|
2541
|
+
*/
|
|
2542
|
+
reservation?: Credit.Reservation | null;
|
|
2543
|
+
|
|
2544
|
+
/**
|
|
2545
|
+
* Credits held by open reservations on active grants. Already included in
|
|
2546
|
+
* currentUsage, so usageLimit - currentUsage is the available balance.
|
|
2547
|
+
*/
|
|
2548
|
+
reserved?: number;
|
|
2549
|
+
|
|
2550
|
+
/**
|
|
2551
|
+
* Credits still held by open reservations on grants that expired during the hold.
|
|
2552
|
+
* They can still be released, but are not part of currentUsage or the balance and
|
|
2553
|
+
* must not be subtracted from it.
|
|
2554
|
+
*/
|
|
2555
|
+
reservedOnExpiredGrants?: number;
|
|
2556
|
+
|
|
2492
2557
|
/**
|
|
2493
2558
|
* The end date of the current billing period for recurring credit grants.
|
|
2494
2559
|
*/
|
|
@@ -2535,6 +2600,33 @@ export namespace CustomerRetrieveEntitlementsResponse {
|
|
|
2535
2600
|
*/
|
|
2536
2601
|
unitSingular?: string | null;
|
|
2537
2602
|
}
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* The reservation created by this request, when it asked to reserve credits and
|
|
2606
|
+
* was granted.
|
|
2607
|
+
*/
|
|
2608
|
+
export interface Reservation {
|
|
2609
|
+
/**
|
|
2610
|
+
* The client-provided reservation ID.
|
|
2611
|
+
*/
|
|
2612
|
+
id: string;
|
|
2613
|
+
|
|
2614
|
+
/**
|
|
2615
|
+
* The amount of credits held.
|
|
2616
|
+
*/
|
|
2617
|
+
amount: number;
|
|
2618
|
+
|
|
2619
|
+
/**
|
|
2620
|
+
* When the reservation expires. Unreleased credits return to the balance at this
|
|
2621
|
+
* time.
|
|
2622
|
+
*/
|
|
2623
|
+
expiresAt: string;
|
|
2624
|
+
|
|
2625
|
+
/**
|
|
2626
|
+
* The status of the reservation.
|
|
2627
|
+
*/
|
|
2628
|
+
status: 'ACTIVE' | 'RELEASED';
|
|
2629
|
+
}
|
|
2538
2630
|
}
|
|
2539
2631
|
}
|
|
2540
2632
|
}
|
|
@@ -3202,6 +3294,36 @@ export interface CustomerCheckEntitlementParams {
|
|
|
3202
3294
|
*/
|
|
3203
3295
|
requestedValues?: Array<string>;
|
|
3204
3296
|
|
|
3297
|
+
/**
|
|
3298
|
+
* Query param: When the reservation expires (ISO 8601, at most 24 hours ahead).
|
|
3299
|
+
* Mutually exclusive with `reservationTtlSeconds`.
|
|
3300
|
+
*/
|
|
3301
|
+
reservationExpiresAt?: string;
|
|
3302
|
+
|
|
3303
|
+
/**
|
|
3304
|
+
* Query param: Client-provided reservation ID, required with `reserveAmount`.
|
|
3305
|
+
* Retry with the same ID to get the same result; reuse with different parameters
|
|
3306
|
+
* is a conflict.
|
|
3307
|
+
*/
|
|
3308
|
+
reservationId?: string;
|
|
3309
|
+
|
|
3310
|
+
/**
|
|
3311
|
+
* Query param: JSON-encoded object of string values to attach to the reservation.
|
|
3312
|
+
*/
|
|
3313
|
+
reservationMetadata?: string;
|
|
3314
|
+
|
|
3315
|
+
/**
|
|
3316
|
+
* Query param: How long the reservation holds the credits, in seconds (1–86400,
|
|
3317
|
+
* default 3600). Mutually exclusive with `reservationExpiresAt`.
|
|
3318
|
+
*/
|
|
3319
|
+
reservationTtlSeconds?: number;
|
|
3320
|
+
|
|
3321
|
+
/**
|
|
3322
|
+
* Query param: Credits to reserve (credit entitlements only). The check is decided
|
|
3323
|
+
* and the credits held atomically; `requestedUsage` is ignored.
|
|
3324
|
+
*/
|
|
3325
|
+
reserveAmount?: number;
|
|
3326
|
+
|
|
3205
3327
|
/**
|
|
3206
3328
|
* Query param: Resource ID to scope the entitlement check to a specific resource
|
|
3207
3329
|
*/
|