@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
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,51 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.0-beta.62](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.61...v0.1.0-beta.62) (2026-10-22)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **STIGG-10078:** credit reservation release in the sdks ([f4750a6](https://github.com/stiggio/stigg-typescript/commit/f4750a6d34a2623d368b6fced5b2d628763fb7c2))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* sync OpenAPI spec from stigg-api ([9304db6](https://github.com/stiggio/stigg-typescript/commit/9304db64d39e94c465b431519ae8108a3071670d))
|
|
14
|
+
* sync OpenAPI spec from stigg-api ([7b0b3fe](https://github.com/stiggio/stigg-typescript/commit/7b0b3feef40aedbbfb6d774aee29dbb9cc828d6e))
|
|
15
|
+
* sync OpenAPI spec from stigg-api ([dfaa0ae](https://github.com/stiggio/stigg-typescript/commit/dfaa0ae2e3d8089d8a11171e0835ee6c2b1e8cb1))
|
|
16
|
+
* sync OpenAPI spec from stigg-api ([22f02d3](https://github.com/stiggio/stigg-typescript/commit/22f02d3ed831d1cc7f58cb1c00a4b712523de55f))
|
|
17
|
+
* sync OpenAPI spec from stigg-api ([a861679](https://github.com/stiggio/stigg-typescript/commit/a86167950fbf1a5947a361c6c01133db5bcbe293))
|
|
18
|
+
* sync OpenAPI spec from stigg-api ([1c8f175](https://github.com/stiggio/stigg-typescript/commit/1c8f17588677af4ddfa089a04794bb411fa9c273))
|
|
19
|
+
* sync OpenAPI spec from stigg-api ([e1e441c](https://github.com/stiggio/stigg-typescript/commit/e1e441c75132f5c88861e17478d22a554f7fa3eb))
|
|
20
|
+
* sync OpenAPI spec from stigg-api ([6b46d93](https://github.com/stiggio/stigg-typescript/commit/6b46d9391b4518b8f42ae0072842320e27e496da))
|
|
21
|
+
* sync OpenAPI spec from stigg-api ([d649e7a](https://github.com/stiggio/stigg-typescript/commit/d649e7a200b4133325957fc4f6675e9eeb8e7b1e))
|
|
22
|
+
* sync OpenAPI spec from stigg-api ([1055a95](https://github.com/stiggio/stigg-typescript/commit/1055a9538cb4b261d2d2bfff14c65d712982e4b7))
|
|
23
|
+
* sync OpenAPI spec from stigg-api ([8a5d50c](https://github.com/stiggio/stigg-typescript/commit/8a5d50c2988cf6f3382ebb881a88798b75876792))
|
|
24
|
+
* sync OpenAPI spec from stigg-api ([771753a](https://github.com/stiggio/stigg-typescript/commit/771753ad940a54931f21439b79486f1a6f717a18))
|
|
25
|
+
* sync OpenAPI spec from stigg-api ([8156845](https://github.com/stiggio/stigg-typescript/commit/81568457888808d66dd404eabaea83b768f44e3c))
|
|
26
|
+
* sync OpenAPI spec from stigg-api ([607c677](https://github.com/stiggio/stigg-typescript/commit/607c6771c0d392496682dad7368adc2f68f85110))
|
|
27
|
+
* sync OpenAPI spec from stigg-api ([0a8c038](https://github.com/stiggio/stigg-typescript/commit/0a8c0382fe1f45c7362e2d8502e4cabcf387be7a))
|
|
28
|
+
* sync OpenAPI spec from stigg-api ([795f478](https://github.com/stiggio/stigg-typescript/commit/795f4782a3751cfaaa44e186dc280538f8831e3d))
|
|
29
|
+
|
|
30
|
+
## [0.1.0-beta.61](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.60...v0.1.0-beta.61) (2026-10-20)
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* **STIGG-10261:** keep SDK codegen green when a target fails, the CLI waits for Go, or staging moves ([59e211c](https://github.com/stiggio/stigg-typescript/commit/59e211c9c0086241b8862b247a4a5245303c2c68))
|
|
36
|
+
* sync OpenAPI spec from stigg-api ([2768ee9](https://github.com/stiggio/stigg-typescript/commit/2768ee9b9fcd5b26c7ba42293367b80f16b723ad))
|
|
37
|
+
* sync OpenAPI spec from stigg-api ([830b95e](https://github.com/stiggio/stigg-typescript/commit/830b95efe04cf1419afba63ce1c497542cc60d16))
|
|
38
|
+
* sync OpenAPI spec from stigg-api ([28646c2](https://github.com/stiggio/stigg-typescript/commit/28646c27a0fbfa13b49d88aba46203e569297606))
|
|
39
|
+
* sync OpenAPI spec from stigg-api ([baaba22](https://github.com/stiggio/stigg-typescript/commit/baaba229c1d068d5013297d04d95afcf7a36b4df))
|
|
40
|
+
* sync OpenAPI spec from stigg-api ([879f336](https://github.com/stiggio/stigg-typescript/commit/879f33680523725845290c0dd3163615724cea0b))
|
|
41
|
+
* sync OpenAPI spec from stigg-api ([7b634c6](https://github.com/stiggio/stigg-typescript/commit/7b634c61ad7fa1e06e292d534aeca64f81572ff7))
|
|
42
|
+
* sync OpenAPI spec from stigg-api ([08c2962](https://github.com/stiggio/stigg-typescript/commit/08c296253a4e56e2953c403926f05acd8845a447))
|
|
43
|
+
* sync OpenAPI spec from stigg-api ([11b0977](https://github.com/stiggio/stigg-typescript/commit/11b097727b5295865f22dc2f9b1e5f99e21f9bd2))
|
|
44
|
+
* sync OpenAPI spec from stigg-api ([70b904f](https://github.com/stiggio/stigg-typescript/commit/70b904f48b2f9e1cce323a6a16e00992f36fd318))
|
|
45
|
+
* sync OpenAPI spec from stigg-api ([4c54fd8](https://github.com/stiggio/stigg-typescript/commit/4c54fd8c5366a5dde7e1285a157b7fffc778d6f5))
|
|
46
|
+
* sync OpenAPI spec from stigg-api ([0e18e12](https://github.com/stiggio/stigg-typescript/commit/0e18e124547049c86709591dd298cd890c2bbd37))
|
|
47
|
+
* sync OpenAPI spec from stigg-api ([77e241a](https://github.com/stiggio/stigg-typescript/commit/77e241ae045f796660c79c79928911eeb0b4fa60))
|
|
48
|
+
|
|
3
49
|
## [0.1.0-beta.60](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.59...v0.1.0-beta.60) (2026-10-15)
|
|
4
50
|
|
|
5
51
|
|
package/package.json
CHANGED
|
@@ -5,6 +5,8 @@ import * as CustomCurrenciesAPI from "./custom-currencies.mjs";
|
|
|
5
5
|
import { CustomCurrencies, CustomCurrencyArchiveParams, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyResponse, CustomCurrencyUnarchiveParams, CustomCurrencyUpdateParams } from "./custom-currencies.mjs";
|
|
6
6
|
import * as GrantsAPI from "./grants.mjs";
|
|
7
7
|
import { CreditGrantResponse, GrantCreateParams, GrantListParams, GrantListResponse, GrantListResponsesMyCursorIDPage, GrantVoidParams, Grants } from "./grants.mjs";
|
|
8
|
+
import * as ReservationsAPI from "./reservations.mjs";
|
|
9
|
+
import { ReservationReleaseParams, ReservationReleaseResponse, Reservations } from "./reservations.mjs";
|
|
8
10
|
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
9
11
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
|
|
10
12
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
@@ -12,6 +14,7 @@ export declare class Credits extends APIResource {
|
|
|
12
14
|
grants: GrantsAPI.Grants;
|
|
13
15
|
customCurrencies: CustomCurrenciesAPI.CustomCurrencies;
|
|
14
16
|
consumption: ConsumptionAPI.Consumption;
|
|
17
|
+
reservations: ReservationsAPI.Reservations;
|
|
15
18
|
/**
|
|
16
19
|
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
17
20
|
* Returns default settings if no configuration exists.
|
|
@@ -231,9 +234,15 @@ export declare namespace CreditGetUsageResponse {
|
|
|
231
234
|
*/
|
|
232
235
|
export interface CreditListLedgerResponse {
|
|
233
236
|
/**
|
|
234
|
-
* The
|
|
237
|
+
* The amount of the ledger event. Reservation events carry their net effect on the
|
|
238
|
+
* balance: a reserve is negative, and so is a release that consumed more than was
|
|
239
|
+
* held
|
|
235
240
|
*/
|
|
236
241
|
amount: number;
|
|
242
|
+
/**
|
|
243
|
+
* On a released reservation, the credits consumed from each grant
|
|
244
|
+
*/
|
|
245
|
+
breakdown: Array<CreditListLedgerResponse.Breakdown> | null;
|
|
237
246
|
/**
|
|
238
247
|
* The credit currency ID
|
|
239
248
|
*/
|
|
@@ -253,11 +262,26 @@ export interface CreditListLedgerResponse {
|
|
|
253
262
|
/**
|
|
254
263
|
* The type of credit event
|
|
255
264
|
*/
|
|
256
|
-
eventType: 'CREDITS_GRANTED' | 'CREDITS_EXPIRED' | 'CREDITS_CONSUMED' | 'CREDITS_VOIDED' | 'CREDITS_UPDATED' | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE' | 'CREDITS_CONSUMPTION_TRANSFER_TARGET';
|
|
265
|
+
eventType: 'CREDITS_GRANTED' | 'CREDITS_EXPIRED' | 'CREDITS_CONSUMED' | 'CREDITS_VOIDED' | 'CREDITS_UPDATED' | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE' | 'CREDITS_CONSUMPTION_TRANSFER_TARGET' | 'CREDITS_RESERVED' | 'CREDITS_RESERVATION_RELEASED' | 'CREDITS_RESERVATION_EXPIRED';
|
|
257
266
|
/**
|
|
258
267
|
* The feature ID associated with this event
|
|
259
268
|
*/
|
|
260
269
|
featureId: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* On a released reservation, the held amount returned to the balance before
|
|
272
|
+
* consumed credits are deducted
|
|
273
|
+
*/
|
|
274
|
+
holdReturnedAmount: number | null;
|
|
275
|
+
/**
|
|
276
|
+
* The metadata sent with the credit reservation
|
|
277
|
+
*/
|
|
278
|
+
metadata: {
|
|
279
|
+
[key: string]: string;
|
|
280
|
+
} | null;
|
|
281
|
+
/**
|
|
282
|
+
* The credit reservation this event belongs to
|
|
283
|
+
*/
|
|
284
|
+
reservationId: string | null;
|
|
261
285
|
/**
|
|
262
286
|
* The resource ID this event is scoped to
|
|
263
287
|
*/
|
|
@@ -267,6 +291,52 @@ export interface CreditListLedgerResponse {
|
|
|
267
291
|
*/
|
|
268
292
|
timestamp: string;
|
|
269
293
|
}
|
|
294
|
+
export declare namespace CreditListLedgerResponse {
|
|
295
|
+
interface Breakdown {
|
|
296
|
+
/**
|
|
297
|
+
* The amount of the ledger event. Reservation events carry their net effect on the
|
|
298
|
+
* balance: a reserve is negative, and so is a release that consumed more than was
|
|
299
|
+
* held
|
|
300
|
+
*/
|
|
301
|
+
amount: number;
|
|
302
|
+
/**
|
|
303
|
+
* The credit currency ID
|
|
304
|
+
*/
|
|
305
|
+
creditCurrencyId: string;
|
|
306
|
+
/**
|
|
307
|
+
* The credit grant ID associated with this event
|
|
308
|
+
*/
|
|
309
|
+
creditGrantId: string;
|
|
310
|
+
/**
|
|
311
|
+
* The customer ID this event belongs to
|
|
312
|
+
*/
|
|
313
|
+
customerId: string;
|
|
314
|
+
/**
|
|
315
|
+
* The unique event identifier
|
|
316
|
+
*/
|
|
317
|
+
eventId: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* The type of credit event
|
|
320
|
+
*/
|
|
321
|
+
eventType: 'CREDITS_GRANTED' | 'CREDITS_EXPIRED' | 'CREDITS_CONSUMED' | 'CREDITS_VOIDED' | 'CREDITS_UPDATED' | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE' | 'CREDITS_CONSUMPTION_TRANSFER_TARGET' | 'CREDITS_RESERVED' | 'CREDITS_RESERVATION_RELEASED' | 'CREDITS_RESERVATION_EXPIRED';
|
|
322
|
+
/**
|
|
323
|
+
* The feature ID associated with this event
|
|
324
|
+
*/
|
|
325
|
+
featureId: string | null;
|
|
326
|
+
/**
|
|
327
|
+
* The credit reservation this event belongs to
|
|
328
|
+
*/
|
|
329
|
+
reservationId: string | null;
|
|
330
|
+
/**
|
|
331
|
+
* The resource ID this event is scoped to
|
|
332
|
+
*/
|
|
333
|
+
resourceId: string | null;
|
|
334
|
+
/**
|
|
335
|
+
* The timestamp when the event occurred
|
|
336
|
+
*/
|
|
337
|
+
timestamp: string;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
270
340
|
export interface CreditGetAutoRechargeParams {
|
|
271
341
|
/**
|
|
272
342
|
* Query param: Filter by currency ID (required)
|
|
@@ -360,6 +430,10 @@ export interface CreditListLedgerParams extends MyCursorIDPageParams {
|
|
|
360
430
|
* Query param: Filter by event type(s), comma-separated
|
|
361
431
|
*/
|
|
362
432
|
eventType?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Query param: Filter by credit reservation ID
|
|
435
|
+
*/
|
|
436
|
+
reservationId?: string;
|
|
363
437
|
/**
|
|
364
438
|
* Query param: Filter by resource ID
|
|
365
439
|
*/
|
|
@@ -381,5 +455,6 @@ export declare namespace Credits {
|
|
|
381
455
|
export { Grants as Grants, type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, type GrantVoidParams as GrantVoidParams, };
|
|
382
456
|
export { CustomCurrencies as CustomCurrencies, type CustomCurrencyResponse as CustomCurrencyResponse, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, type CustomCurrencyArchiveParams as CustomCurrencyArchiveParams, type CustomCurrencyListAssociatedEntitiesParams as CustomCurrencyListAssociatedEntitiesParams, type CustomCurrencyUnarchiveParams as CustomCurrencyUnarchiveParams, };
|
|
383
457
|
export { Consumption as Consumption, type ConsumptionConsumeResponse as ConsumptionConsumeResponse, type ConsumptionConsumeAsyncResponse as ConsumptionConsumeAsyncResponse, type ConsumptionConsumeParams as ConsumptionConsumeParams, type ConsumptionConsumeAsyncParams as ConsumptionConsumeAsyncParams, };
|
|
458
|
+
export { Reservations as Reservations, type ReservationReleaseResponse as ReservationReleaseResponse, type ReservationReleaseParams as ReservationReleaseParams, };
|
|
384
459
|
}
|
|
385
460
|
//# sourceMappingURL=credits.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,EACxB,0BAA0B,EAC3B,0BAAsB;AACvB,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,0CAA0C,EAC1C,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC3B,gCAA4B;AAC7B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,eAAe,EACf,MAAM,EACP,qBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,sCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,qCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,8CAA0C;AAEnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;
|
|
1
|
+
{"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,EACxB,0BAA0B,EAC3B,0BAAsB;AACvB,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,0CAA0C,EAC1C,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,sBAAs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EF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -5,6 +5,8 @@ import * as CustomCurrenciesAPI from "./custom-currencies.js";
|
|
|
5
5
|
import { CustomCurrencies, CustomCurrencyArchiveParams, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyResponse, CustomCurrencyUnarchiveParams, CustomCurrencyUpdateParams } from "./custom-currencies.js";
|
|
6
6
|
import * as GrantsAPI from "./grants.js";
|
|
7
7
|
import { CreditGrantResponse, GrantCreateParams, GrantListParams, GrantListResponse, GrantListResponsesMyCursorIDPage, GrantVoidParams, Grants } from "./grants.js";
|
|
8
|
+
import * as ReservationsAPI from "./reservations.js";
|
|
9
|
+
import { ReservationReleaseParams, ReservationReleaseResponse, Reservations } from "./reservations.js";
|
|
8
10
|
import { APIPromise } from "../../../core/api-promise.js";
|
|
9
11
|
import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
|
|
10
12
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
@@ -12,6 +14,7 @@ export declare class Credits extends APIResource {
|
|
|
12
14
|
grants: GrantsAPI.Grants;
|
|
13
15
|
customCurrencies: CustomCurrenciesAPI.CustomCurrencies;
|
|
14
16
|
consumption: ConsumptionAPI.Consumption;
|
|
17
|
+
reservations: ReservationsAPI.Reservations;
|
|
15
18
|
/**
|
|
16
19
|
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
17
20
|
* Returns default settings if no configuration exists.
|
|
@@ -231,9 +234,15 @@ export declare namespace CreditGetUsageResponse {
|
|
|
231
234
|
*/
|
|
232
235
|
export interface CreditListLedgerResponse {
|
|
233
236
|
/**
|
|
234
|
-
* The
|
|
237
|
+
* The amount of the ledger event. Reservation events carry their net effect on the
|
|
238
|
+
* balance: a reserve is negative, and so is a release that consumed more than was
|
|
239
|
+
* held
|
|
235
240
|
*/
|
|
236
241
|
amount: number;
|
|
242
|
+
/**
|
|
243
|
+
* On a released reservation, the credits consumed from each grant
|
|
244
|
+
*/
|
|
245
|
+
breakdown: Array<CreditListLedgerResponse.Breakdown> | null;
|
|
237
246
|
/**
|
|
238
247
|
* The credit currency ID
|
|
239
248
|
*/
|
|
@@ -253,11 +262,26 @@ export interface CreditListLedgerResponse {
|
|
|
253
262
|
/**
|
|
254
263
|
* The type of credit event
|
|
255
264
|
*/
|
|
256
|
-
eventType: 'CREDITS_GRANTED' | 'CREDITS_EXPIRED' | 'CREDITS_CONSUMED' | 'CREDITS_VOIDED' | 'CREDITS_UPDATED' | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE' | 'CREDITS_CONSUMPTION_TRANSFER_TARGET';
|
|
265
|
+
eventType: 'CREDITS_GRANTED' | 'CREDITS_EXPIRED' | 'CREDITS_CONSUMED' | 'CREDITS_VOIDED' | 'CREDITS_UPDATED' | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE' | 'CREDITS_CONSUMPTION_TRANSFER_TARGET' | 'CREDITS_RESERVED' | 'CREDITS_RESERVATION_RELEASED' | 'CREDITS_RESERVATION_EXPIRED';
|
|
257
266
|
/**
|
|
258
267
|
* The feature ID associated with this event
|
|
259
268
|
*/
|
|
260
269
|
featureId: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* On a released reservation, the held amount returned to the balance before
|
|
272
|
+
* consumed credits are deducted
|
|
273
|
+
*/
|
|
274
|
+
holdReturnedAmount: number | null;
|
|
275
|
+
/**
|
|
276
|
+
* The metadata sent with the credit reservation
|
|
277
|
+
*/
|
|
278
|
+
metadata: {
|
|
279
|
+
[key: string]: string;
|
|
280
|
+
} | null;
|
|
281
|
+
/**
|
|
282
|
+
* The credit reservation this event belongs to
|
|
283
|
+
*/
|
|
284
|
+
reservationId: string | null;
|
|
261
285
|
/**
|
|
262
286
|
* The resource ID this event is scoped to
|
|
263
287
|
*/
|
|
@@ -267,6 +291,52 @@ export interface CreditListLedgerResponse {
|
|
|
267
291
|
*/
|
|
268
292
|
timestamp: string;
|
|
269
293
|
}
|
|
294
|
+
export declare namespace CreditListLedgerResponse {
|
|
295
|
+
interface Breakdown {
|
|
296
|
+
/**
|
|
297
|
+
* The amount of the ledger event. Reservation events carry their net effect on the
|
|
298
|
+
* balance: a reserve is negative, and so is a release that consumed more than was
|
|
299
|
+
* held
|
|
300
|
+
*/
|
|
301
|
+
amount: number;
|
|
302
|
+
/**
|
|
303
|
+
* The credit currency ID
|
|
304
|
+
*/
|
|
305
|
+
creditCurrencyId: string;
|
|
306
|
+
/**
|
|
307
|
+
* The credit grant ID associated with this event
|
|
308
|
+
*/
|
|
309
|
+
creditGrantId: string;
|
|
310
|
+
/**
|
|
311
|
+
* The customer ID this event belongs to
|
|
312
|
+
*/
|
|
313
|
+
customerId: string;
|
|
314
|
+
/**
|
|
315
|
+
* The unique event identifier
|
|
316
|
+
*/
|
|
317
|
+
eventId: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* The type of credit event
|
|
320
|
+
*/
|
|
321
|
+
eventType: 'CREDITS_GRANTED' | 'CREDITS_EXPIRED' | 'CREDITS_CONSUMED' | 'CREDITS_VOIDED' | 'CREDITS_UPDATED' | 'CREDITS_CONSUMPTION_TRANSFER_SOURCE' | 'CREDITS_CONSUMPTION_TRANSFER_TARGET' | 'CREDITS_RESERVED' | 'CREDITS_RESERVATION_RELEASED' | 'CREDITS_RESERVATION_EXPIRED';
|
|
322
|
+
/**
|
|
323
|
+
* The feature ID associated with this event
|
|
324
|
+
*/
|
|
325
|
+
featureId: string | null;
|
|
326
|
+
/**
|
|
327
|
+
* The credit reservation this event belongs to
|
|
328
|
+
*/
|
|
329
|
+
reservationId: string | null;
|
|
330
|
+
/**
|
|
331
|
+
* The resource ID this event is scoped to
|
|
332
|
+
*/
|
|
333
|
+
resourceId: string | null;
|
|
334
|
+
/**
|
|
335
|
+
* The timestamp when the event occurred
|
|
336
|
+
*/
|
|
337
|
+
timestamp: string;
|
|
338
|
+
}
|
|
339
|
+
}
|
|
270
340
|
export interface CreditGetAutoRechargeParams {
|
|
271
341
|
/**
|
|
272
342
|
* Query param: Filter by currency ID (required)
|
|
@@ -360,6 +430,10 @@ export interface CreditListLedgerParams extends MyCursorIDPageParams {
|
|
|
360
430
|
* Query param: Filter by event type(s), comma-separated
|
|
361
431
|
*/
|
|
362
432
|
eventType?: string;
|
|
433
|
+
/**
|
|
434
|
+
* Query param: Filter by credit reservation ID
|
|
435
|
+
*/
|
|
436
|
+
reservationId?: string;
|
|
363
437
|
/**
|
|
364
438
|
* Query param: Filter by resource ID
|
|
365
439
|
*/
|
|
@@ -381,5 +455,6 @@ export declare namespace Credits {
|
|
|
381
455
|
export { Grants as Grants, type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, type GrantVoidParams as GrantVoidParams, };
|
|
382
456
|
export { CustomCurrencies as CustomCurrencies, type CustomCurrencyResponse as CustomCurrencyResponse, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, type CustomCurrencyArchiveParams as CustomCurrencyArchiveParams, type CustomCurrencyListAssociatedEntitiesParams as CustomCurrencyListAssociatedEntitiesParams, type CustomCurrencyUnarchiveParams as CustomCurrencyUnarchiveParams, };
|
|
383
457
|
export { Consumption as Consumption, type ConsumptionConsumeResponse as ConsumptionConsumeResponse, type ConsumptionConsumeAsyncResponse as ConsumptionConsumeAsyncResponse, type ConsumptionConsumeParams as ConsumptionConsumeParams, type ConsumptionConsumeAsyncParams as ConsumptionConsumeAsyncParams, };
|
|
458
|
+
export { Reservations as Reservations, type ReservationReleaseResponse as ReservationReleaseResponse, type ReservationReleaseParams as ReservationReleaseParams, };
|
|
384
459
|
}
|
|
385
460
|
//# sourceMappingURL=credits.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,WAAW,EACX,6BAA6B,EAC7B,+BAA+B,EAC/B,wBAAwB,EACxB,0BAA0B,EAC3B,yBAAsB;AACvB,OAAO,KAAK,mBAAmB,+BAA4B;AAC3D,OAAO,EACL,gBAAgB,EAChB,2BAA2B,EAC3B,0BAA0B,EAC1B,0CAA0C,EAC1C,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,sBAAsB,EACtB,6BAA6B,EAC7B,0BAA0B,EAC3B,+BAA4B;AAC7B,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,eAAe,EACf,MAAM,EACP,oBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE,oCAAiC;AAElG,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAEnE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,gBAAgB,EAAE,mBAAmB,CAAC,gBAAgB,CAEpD;IACF,WAAW,EAAE,cAAc,CAAC,WAAW,CAAgD;
|
|
1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AI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,0CAA0C,IAAI,0CAA0C,EAC7F,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,6BAA6B,IAAI,6BAA6B,GACpE,CAAC;IAEF,OAAO,EACL,YAAY,IAAI,YAAY,EAC5B,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
|
|
@@ -10,6 +10,8 @@ const CustomCurrenciesAPI = tslib_1.__importStar(require("./custom-currencies.js
|
|
|
10
10
|
const custom_currencies_1 = require("./custom-currencies.js");
|
|
11
11
|
const GrantsAPI = tslib_1.__importStar(require("./grants.js"));
|
|
12
12
|
const grants_1 = require("./grants.js");
|
|
13
|
+
const ReservationsAPI = tslib_1.__importStar(require("./reservations.js"));
|
|
14
|
+
const reservations_1 = require("./reservations.js");
|
|
13
15
|
const pagination_1 = require("../../../core/pagination.js");
|
|
14
16
|
const headers_1 = require("../../../internal/headers.js");
|
|
15
17
|
class Credits extends resource_1.APIResource {
|
|
@@ -18,6 +20,7 @@ class Credits extends resource_1.APIResource {
|
|
|
18
20
|
this.grants = new GrantsAPI.Grants(this._client);
|
|
19
21
|
this.customCurrencies = new CustomCurrenciesAPI.CustomCurrencies(this._client);
|
|
20
22
|
this.consumption = new ConsumptionAPI.Consumption(this._client);
|
|
23
|
+
this.reservations = new ReservationsAPI.Reservations(this._client);
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
@@ -77,4 +80,5 @@ exports.Credits = Credits;
|
|
|
77
80
|
Credits.Grants = grants_1.Grants;
|
|
78
81
|
Credits.CustomCurrencies = custom_currencies_1.CustomCurrencies;
|
|
79
82
|
Credits.Consumption = consumption_1.Consumption;
|
|
83
|
+
Credits.Reservations = reservations_1.Reservations;
|
|
80
84
|
//# sourceMappingURL=credits.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAMuB;AACvB,oFAA2D;AAC3D,8DAY6B;AAC7B,+DAAsC;AACtC,wCAQkB;
|
|
1
|
+
{"version":3,"file":"credits.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,yEAAgD;AAChD,kDAMuB;AACvB,oFAA2D;AAC3D,8DAY6B;AAC7B,+DAAsC;AACtC,wCAQkB;AAClB,2EAAkD;AAClD,oDAAoG;AAEpG,4DAAkG;AAClG,0DAAyD;AAGzD,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,qBAAgB,GAAyC,IAAI,mBAAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;QACF,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA+D9F,CAAC;IA7DC;;;OAGG;IACH,eAAe,CACb,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,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,CAAC;QAC5F,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,2BAAwC,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AArED,0BAqEC;AAygBD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,gBAAgB,GAAG,oCAAgB,CAAC;AAC5C,OAAO,CAAC,WAAW,GAAG,yBAAW,CAAC;AAClC,OAAO,CAAC,YAAY,GAAG,2BAAY,CAAC"}
|
|
@@ -6,6 +6,8 @@ import * as CustomCurrenciesAPI from "./custom-currencies.mjs";
|
|
|
6
6
|
import { CustomCurrencies, } from "./custom-currencies.mjs";
|
|
7
7
|
import * as GrantsAPI from "./grants.mjs";
|
|
8
8
|
import { Grants, } from "./grants.mjs";
|
|
9
|
+
import * as ReservationsAPI from "./reservations.mjs";
|
|
10
|
+
import { Reservations } from "./reservations.mjs";
|
|
9
11
|
import { MyCursorIDPage } from "../../../core/pagination.mjs";
|
|
10
12
|
import { buildHeaders } from "../../../internal/headers.mjs";
|
|
11
13
|
export class Credits extends APIResource {
|
|
@@ -14,6 +16,7 @@ export class Credits extends APIResource {
|
|
|
14
16
|
this.grants = new GrantsAPI.Grants(this._client);
|
|
15
17
|
this.customCurrencies = new CustomCurrenciesAPI.CustomCurrencies(this._client);
|
|
16
18
|
this.consumption = new ConsumptionAPI.Consumption(this._client);
|
|
19
|
+
this.reservations = new ReservationsAPI.Reservations(this._client);
|
|
17
20
|
}
|
|
18
21
|
/**
|
|
19
22
|
* Retrieves the automatic recharge configuration for a customer and currency.
|
|
@@ -72,4 +75,5 @@ export class Credits extends APIResource {
|
|
|
72
75
|
Credits.Grants = Grants;
|
|
73
76
|
Credits.CustomCurrencies = CustomCurrencies;
|
|
74
77
|
Credits.Consumption = Consumption;
|
|
78
|
+
Credits.Reservations = Reservations;
|
|
75
79
|
//# sourceMappingURL=credits.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EACL,gBAAgB,GAWjB,gCAA4B;AAC7B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAOL,MAAM,GACP,qBAAiB;
|
|
1
|
+
{"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,KAAK,mBAAmB,gCAA4B;AAC3D,OAAO,EACL,gBAAgB,GAWjB,gCAA4B;AAC7B,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAOL,MAAM,GACP,qBAAiB;AAClB,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAAwD,YAAY,EAAE,2BAAuB;AAEpG,OAAO,EAAE,cAAc,EAA0C,qCAAiC;AAClG,OAAO,EAAE,YAAY,EAAE,sCAAkC;AAGzD,MAAM,OAAO,OAAQ,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BACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,UAAU,CACR,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,kBAAkB,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,CAAC;QAC5F,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,cAAwC,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC;gBACpB;oBACE,GAAG,CAAC,UAAU,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;oBACpE,GAAG,CAAC,cAAc,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;iBACjF;gBACD,OAAO,EAAE,OAAO;aACjB,CAAC;SACH,CAAC,CAAC;IACL,CAAC;CACF;AAygBD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;AAC5C,OAAO,CAAC,WAAW,GAAG,WAAW,CAAC;AAClC,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC"}
|
|
@@ -2,4 +2,5 @@ export { Consumption, type ConsumptionConsumeResponse, type ConsumptionConsumeAs
|
|
|
2
2
|
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.mjs";
|
|
3
3
|
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyArchiveParams, type CustomCurrencyListAssociatedEntitiesParams, type CustomCurrencyUnarchiveParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.mjs";
|
|
4
4
|
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantVoidParams, type GrantListResponsesMyCursorIDPage, } from "./grants.mjs";
|
|
5
|
+
export { Reservations, type ReservationReleaseResponse, type ReservationReleaseParams } from "./reservations.mjs";
|
|
5
6
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,0BAAsB;AACvB,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C,sBAAkB;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,EAC/C,KAAK,6BAA6B,EAClC,KAAK,yCAAyC,GAC/C,gCAA4B;AAC7B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC,qBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,0BAAsB;AACvB,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C,sBAAkB;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,EAC/C,KAAK,6BAA6B,EAClC,KAAK,yCAAyC,GAC/C,gCAA4B;AAC7B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC,qBAAiB;AAClB,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE,2BAAuB"}
|
|
@@ -2,4 +2,5 @@ export { Consumption, type ConsumptionConsumeResponse, type ConsumptionConsumeAs
|
|
|
2
2
|
export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.js";
|
|
3
3
|
export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyArchiveParams, type CustomCurrencyListAssociatedEntitiesParams, type CustomCurrencyUnarchiveParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.js";
|
|
4
4
|
export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantVoidParams, type GrantListResponsesMyCursorIDPage, } from "./grants.js";
|
|
5
|
+
export { Reservations, type ReservationReleaseResponse, type ReservationReleaseParams } from "./reservations.js";
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,yBAAsB;AACvB,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C,qBAAkB;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,EAC/C,KAAK,6BAA6B,EAClC,KAAK,yCAAyC,GAC/C,+BAA4B;AAC7B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC,oBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,0BAA0B,EAC/B,KAAK,+BAA+B,EACpC,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,GACnC,yBAAsB;AACvB,OAAO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C,qBAAkB;AACnB,OAAO,EACL,gBAAgB,EAChB,KAAK,sBAAsB,EAC3B,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,0CAA0C,EAC/C,KAAK,6BAA6B,EAClC,KAAK,yCAAyC,GAC/C,+BAA4B;AAC7B,OAAO,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC,oBAAiB;AAClB,OAAO,EAAE,YAAY,EAAE,KAAK,0BAA0B,EAAE,KAAK,wBAAwB,EAAE,0BAAuB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Grants = exports.CustomCurrencies = exports.Credits = exports.Consumption = void 0;
|
|
4
|
+
exports.Reservations = exports.Grants = exports.CustomCurrencies = exports.Credits = exports.Consumption = void 0;
|
|
5
5
|
var consumption_1 = require("./consumption.js");
|
|
6
6
|
Object.defineProperty(exports, "Consumption", { enumerable: true, get: function () { return consumption_1.Consumption; } });
|
|
7
7
|
var credits_1 = require("./credits.js");
|
|
@@ -10,4 +10,6 @@ var custom_currencies_1 = require("./custom-currencies.js");
|
|
|
10
10
|
Object.defineProperty(exports, "CustomCurrencies", { enumerable: true, get: function () { return custom_currencies_1.CustomCurrencies; } });
|
|
11
11
|
var grants_1 = require("./grants.js");
|
|
12
12
|
Object.defineProperty(exports, "Grants", { enumerable: true, get: function () { return grants_1.Grants; } });
|
|
13
|
+
var reservations_1 = require("./reservations.js");
|
|
14
|
+
Object.defineProperty(exports, "Reservations", { enumerable: true, get: function () { return reservations_1.Reservations; } });
|
|
13
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,4DAY6B;AAX3B,qHAAA,gBAAgB,OAAA;AAYlB,sCAQkB;AAPhB,gGAAA,MAAM,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,gDAMuB;AALrB,0GAAA,WAAW,OAAA;AAMb,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,4DAY6B;AAX3B,qHAAA,gBAAgB,OAAA;AAYlB,sCAQkB;AAPhB,gGAAA,MAAM,OAAA;AAQR,kDAA8G;AAArG,4GAAA,YAAY,OAAA"}
|
|
@@ -3,4 +3,5 @@ export { Consumption, } from "./consumption.mjs";
|
|
|
3
3
|
export { Credits, } from "./credits.mjs";
|
|
4
4
|
export { CustomCurrencies, } from "./custom-currencies.mjs";
|
|
5
5
|
export { Grants, } from "./grants.mjs";
|
|
6
|
+
export { Reservations } from "./reservations.mjs";
|
|
6
7
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,EACL,OAAO,GAQR,sBAAkB;AACnB,OAAO,EACL,gBAAgB,GAWjB,gCAA4B;AAC7B,OAAO,EACL,MAAM,GAOP,qBAAiB"}
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,WAAW,GAKZ,0BAAsB;AACvB,OAAO,EACL,OAAO,GAQR,sBAAkB;AACnB,OAAO,EACL,gBAAgB,GAWjB,gCAA4B;AAC7B,OAAO,EACL,MAAM,GAOP,qBAAiB;AAClB,OAAO,EAAE,YAAY,EAAkE,2BAAuB"}
|