@stigg/typescript 0.1.0-beta.2 → 0.1.0-beta.3

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.
Files changed (56) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/v1/credits/credits.d.mts +78 -7
  4. package/resources/v1/credits/credits.d.mts.map +1 -1
  5. package/resources/v1/credits/credits.d.ts +78 -7
  6. package/resources/v1/credits/credits.d.ts.map +1 -1
  7. package/resources/v1/credits/credits.js +7 -4
  8. package/resources/v1/credits/credits.js.map +1 -1
  9. package/resources/v1/credits/credits.mjs +7 -4
  10. package/resources/v1/credits/credits.mjs.map +1 -1
  11. package/resources/v1/credits/custom-currencies.d.mts +8 -8
  12. package/resources/v1/credits/custom-currencies.d.mts.map +1 -1
  13. package/resources/v1/credits/custom-currencies.d.ts +8 -8
  14. package/resources/v1/credits/custom-currencies.d.ts.map +1 -1
  15. package/resources/v1/credits/index.d.mts +2 -3
  16. package/resources/v1/credits/index.d.mts.map +1 -1
  17. package/resources/v1/credits/index.d.ts +2 -3
  18. package/resources/v1/credits/index.d.ts.map +1 -1
  19. package/resources/v1/credits/index.js +1 -3
  20. package/resources/v1/credits/index.js.map +1 -1
  21. package/resources/v1/credits/index.mjs +0 -1
  22. package/resources/v1/credits/index.mjs.map +1 -1
  23. package/resources/v1/index.d.mts +1 -1
  24. package/resources/v1/index.d.mts.map +1 -1
  25. package/resources/v1/index.d.ts +1 -1
  26. package/resources/v1/index.d.ts.map +1 -1
  27. package/resources/v1/index.js.map +1 -1
  28. package/resources/v1/index.mjs.map +1 -1
  29. package/resources/v1/subscriptions/subscriptions.d.mts +6 -6
  30. package/resources/v1/subscriptions/subscriptions.d.ts +6 -6
  31. package/resources/v1/v1.d.mts +2 -2
  32. package/resources/v1/v1.d.mts.map +1 -1
  33. package/resources/v1/v1.d.ts +2 -2
  34. package/resources/v1/v1.d.ts.map +1 -1
  35. package/resources/v1/v1.js.map +1 -1
  36. package/resources/v1/v1.mjs.map +1 -1
  37. package/src/resources/v1/credits/credits.ts +99 -16
  38. package/src/resources/v1/credits/custom-currencies.ts +8 -8
  39. package/src/resources/v1/credits/index.ts +3 -6
  40. package/src/resources/v1/index.ts +2 -0
  41. package/src/resources/v1/subscriptions/subscriptions.ts +6 -6
  42. package/src/resources/v1/v1.ts +4 -0
  43. package/src/version.ts +1 -1
  44. package/version.d.mts +1 -1
  45. package/version.d.ts +1 -1
  46. package/version.js +1 -1
  47. package/version.mjs +1 -1
  48. package/resources/v1/credits/auto-recharge.d.mts +0 -84
  49. package/resources/v1/credits/auto-recharge.d.mts.map +0 -1
  50. package/resources/v1/credits/auto-recharge.d.ts +0 -84
  51. package/resources/v1/credits/auto-recharge.d.ts.map +0 -1
  52. package/resources/v1/credits/auto-recharge.js +0 -16
  53. package/resources/v1/credits/auto-recharge.js.map +0 -1
  54. package/resources/v1/credits/auto-recharge.mjs +0 -12
  55. package/resources/v1/credits/auto-recharge.mjs.map +0 -1
  56. package/src/resources/v1/credits/auto-recharge.ts +0 -109
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.0-beta.3 (2026-05-14)
4
+
5
+ Full Changelog: [v0.1.0-beta.2...v0.1.0-beta.3](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.2...v0.1.0-beta.3)
6
+
7
+ ### Features
8
+
9
+ * **api:** fix credits resource ([a9c3b5a](https://github.com/stiggio/stigg-typescript/commit/a9c3b5a87a9783ecc98ef8130b1be1b353d6509c))
10
+
11
+
12
+ ### Chores
13
+
14
+ * **internal:** regenerate SDK with no functional changes ([144bfc0](https://github.com/stiggio/stigg-typescript/commit/144bfc0df9d39d796be2997303e971dcc832c9ad))
15
+ * **internal:** regenerate SDK with no functional changes ([e13b802](https://github.com/stiggio/stigg-typescript/commit/e13b802bbd102e33fcd757853e209cad004fc1c7))
16
+
3
17
  ## 0.1.0-beta.2 (2026-05-12)
4
18
 
5
19
  Full Changelog: [v0.1.0-beta.1...v0.1.0-beta.2](https://github.com/stiggio/stigg-typescript/compare/v0.1.0-beta.1...v0.1.0-beta.2)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stigg/typescript",
3
- "version": "0.1.0-beta.2",
3
+ "version": "0.1.0-beta.3",
4
4
  "description": "The official TypeScript library for the Stigg API",
5
5
  "author": "Stigg <>",
6
6
  "types": "./index.d.ts",
@@ -1,8 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.mjs";
2
- import * as AutoRechargeAPI from "./auto-recharge.mjs";
3
- import { AutoRecharge, AutoRechargeGetAutoRechargeParams, AutoRechargeGetAutoRechargeResponse } from "./auto-recharge.mjs";
4
2
  import * as CustomCurrenciesAPI from "./custom-currencies.mjs";
5
- import { CustomCurrencies, CustomCurrency, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyUpdateParams } from "./custom-currencies.mjs";
3
+ import { CustomCurrencies, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyResponse, CustomCurrencyUpdateParams } from "./custom-currencies.mjs";
6
4
  import * as GrantsAPI from "./grants.mjs";
7
5
  import { CreditGrantResponse, GrantCreateParams, GrantListParams, GrantListResponse, GrantListResponsesMyCursorIDPage, Grants } from "./grants.mjs";
8
6
  import { APIPromise } from "../../../core/api-promise.mjs";
@@ -11,7 +9,11 @@ import { RequestOptions } from "../../../internal/request-options.mjs";
11
9
  export declare class Credits extends APIResource {
12
10
  grants: GrantsAPI.Grants;
13
11
  customCurrencies: CustomCurrenciesAPI.CustomCurrencies;
14
- autoRecharge: AutoRechargeAPI.AutoRecharge;
12
+ /**
13
+ * Retrieves the automatic recharge configuration for a customer and currency.
14
+ * Returns default settings if no configuration exists.
15
+ */
16
+ getAutoRecharge(query: CreditGetAutoRechargeParams, options?: RequestOptions): APIPromise<CreditGetAutoRechargeResponse>;
15
17
  /**
16
18
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
17
19
  * a specified time range.
@@ -23,6 +25,66 @@ export declare class Credits extends APIResource {
23
25
  listLedger(query: CreditListLedgerParams, options?: RequestOptions): PagePromise<CreditListLedgerResponsesMyCursorIDPage, CreditListLedgerResponse>;
24
26
  }
25
27
  export type CreditListLedgerResponsesMyCursorIDPage = MyCursorIDPage<CreditListLedgerResponse>;
28
+ /**
29
+ * Response object
30
+ */
31
+ export interface CreditGetAutoRechargeResponse {
32
+ /**
33
+ * Automatic recharge configuration for a customer and currency
34
+ */
35
+ data: CreditGetAutoRechargeResponse.Data;
36
+ }
37
+ export declare namespace CreditGetAutoRechargeResponse {
38
+ /**
39
+ * Automatic recharge configuration for a customer and currency
40
+ */
41
+ interface Data {
42
+ /**
43
+ * The unique configuration ID
44
+ */
45
+ id: string | null;
46
+ /**
47
+ * Timestamp of when the record was created
48
+ */
49
+ createdAt: string | null;
50
+ /**
51
+ * The currency ID for this configuration
52
+ */
53
+ currencyId: string;
54
+ /**
55
+ * The customer ID this configuration belongs to
56
+ */
57
+ customerId: string;
58
+ /**
59
+ * Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
60
+ */
61
+ grantExpirationPeriod: '1_MONTH' | '1_YEAR';
62
+ /**
63
+ * Whether automatic recharge is enabled
64
+ */
65
+ isEnabled: boolean;
66
+ /**
67
+ * Maximum monthly spend limit for automatic recharges
68
+ */
69
+ maxSpendLimit: number | null;
70
+ /**
71
+ * The target credit balance to recharge to
72
+ */
73
+ targetBalance: number;
74
+ /**
75
+ * The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
76
+ */
77
+ thresholdType: 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT';
78
+ /**
79
+ * The threshold value that triggers a recharge
80
+ */
81
+ thresholdValue: number;
82
+ /**
83
+ * Timestamp of when the record was last updated
84
+ */
85
+ updatedAt: string | null;
86
+ }
87
+ }
26
88
  /**
27
89
  * Response object
28
90
  */
@@ -151,6 +213,16 @@ export interface CreditListLedgerResponse {
151
213
  */
152
214
  timestamp: string;
153
215
  }
216
+ export interface CreditGetAutoRechargeParams {
217
+ /**
218
+ * Filter by currency ID (required)
219
+ */
220
+ currencyId: string;
221
+ /**
222
+ * Filter by customer ID (required)
223
+ */
224
+ customerId: string;
225
+ }
154
226
  export interface CreditGetUsageParams {
155
227
  /**
156
228
  * Filter by customer ID (required)
@@ -195,9 +267,8 @@ export interface CreditListLedgerParams extends MyCursorIDPageParams {
195
267
  resourceId?: string;
196
268
  }
197
269
  export declare namespace Credits {
198
- export { type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
270
+ export { type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse, type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
199
271
  export { Grants as Grants, type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, };
200
- export { CustomCurrencies as CustomCurrencies, type CustomCurrency as CustomCurrency, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
201
- export { AutoRecharge as AutoRecharge, type AutoRechargeGetAutoRechargeResponse as AutoRechargeGetAutoRechargeResponse, type AutoRechargeGetAutoRechargeParams as AutoRechargeGetAutoRechargeParams, };
272
+ 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, };
202
273
  }
203
274
  //# sourceMappingURL=credits.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,EACZ,iCAAiC,EACjC,mCAAmC,EACpC;OACM,KAAK,mBAAmB;OACxB,EACL,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC1B,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,0BAA0B,EAC3B;OACM,KAAK,SAAS;OACd,EACL,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,MAAM,EACP;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAEzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,gBAAgB,EAAE,mBAAmB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B;AAKD,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,uCAAuC,IAAI,uCAAuC,EACvF,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;IAEF,OAAO,EACL,gBAAgB,IAAI,gBAAgB,EACpC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1,8 +1,6 @@
1
1
  import { APIResource } from "../../../core/resource.js";
2
- import * as AutoRechargeAPI from "./auto-recharge.js";
3
- import { AutoRecharge, AutoRechargeGetAutoRechargeParams, AutoRechargeGetAutoRechargeResponse } from "./auto-recharge.js";
4
2
  import * as CustomCurrenciesAPI from "./custom-currencies.js";
5
- import { CustomCurrencies, CustomCurrency, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyUpdateParams } from "./custom-currencies.js";
3
+ import { CustomCurrencies, CustomCurrencyCreateParams, CustomCurrencyListAssociatedEntitiesResponse, CustomCurrencyListParams, CustomCurrencyListResponse, CustomCurrencyListResponsesMyCursorIDPage, CustomCurrencyResponse, CustomCurrencyUpdateParams } from "./custom-currencies.js";
6
4
  import * as GrantsAPI from "./grants.js";
7
5
  import { CreditGrantResponse, GrantCreateParams, GrantListParams, GrantListResponse, GrantListResponsesMyCursorIDPage, Grants } from "./grants.js";
8
6
  import { APIPromise } from "../../../core/api-promise.js";
@@ -11,7 +9,11 @@ import { RequestOptions } from "../../../internal/request-options.js";
11
9
  export declare class Credits extends APIResource {
12
10
  grants: GrantsAPI.Grants;
13
11
  customCurrencies: CustomCurrenciesAPI.CustomCurrencies;
14
- autoRecharge: AutoRechargeAPI.AutoRecharge;
12
+ /**
13
+ * Retrieves the automatic recharge configuration for a customer and currency.
14
+ * Returns default settings if no configuration exists.
15
+ */
16
+ getAutoRecharge(query: CreditGetAutoRechargeParams, options?: RequestOptions): APIPromise<CreditGetAutoRechargeResponse>;
15
17
  /**
16
18
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
17
19
  * a specified time range.
@@ -23,6 +25,66 @@ export declare class Credits extends APIResource {
23
25
  listLedger(query: CreditListLedgerParams, options?: RequestOptions): PagePromise<CreditListLedgerResponsesMyCursorIDPage, CreditListLedgerResponse>;
24
26
  }
25
27
  export type CreditListLedgerResponsesMyCursorIDPage = MyCursorIDPage<CreditListLedgerResponse>;
28
+ /**
29
+ * Response object
30
+ */
31
+ export interface CreditGetAutoRechargeResponse {
32
+ /**
33
+ * Automatic recharge configuration for a customer and currency
34
+ */
35
+ data: CreditGetAutoRechargeResponse.Data;
36
+ }
37
+ export declare namespace CreditGetAutoRechargeResponse {
38
+ /**
39
+ * Automatic recharge configuration for a customer and currency
40
+ */
41
+ interface Data {
42
+ /**
43
+ * The unique configuration ID
44
+ */
45
+ id: string | null;
46
+ /**
47
+ * Timestamp of when the record was created
48
+ */
49
+ createdAt: string | null;
50
+ /**
51
+ * The currency ID for this configuration
52
+ */
53
+ currencyId: string;
54
+ /**
55
+ * The customer ID this configuration belongs to
56
+ */
57
+ customerId: string;
58
+ /**
59
+ * Expiration period for auto-recharge grants (1_MONTH or 1_YEAR)
60
+ */
61
+ grantExpirationPeriod: '1_MONTH' | '1_YEAR';
62
+ /**
63
+ * Whether automatic recharge is enabled
64
+ */
65
+ isEnabled: boolean;
66
+ /**
67
+ * Maximum monthly spend limit for automatic recharges
68
+ */
69
+ maxSpendLimit: number | null;
70
+ /**
71
+ * The target credit balance to recharge to
72
+ */
73
+ targetBalance: number;
74
+ /**
75
+ * The threshold type (CREDIT_AMOUNT or DOLLAR_AMOUNT)
76
+ */
77
+ thresholdType: 'CREDIT_AMOUNT' | 'DOLLAR_AMOUNT';
78
+ /**
79
+ * The threshold value that triggers a recharge
80
+ */
81
+ thresholdValue: number;
82
+ /**
83
+ * Timestamp of when the record was last updated
84
+ */
85
+ updatedAt: string | null;
86
+ }
87
+ }
26
88
  /**
27
89
  * Response object
28
90
  */
@@ -151,6 +213,16 @@ export interface CreditListLedgerResponse {
151
213
  */
152
214
  timestamp: string;
153
215
  }
216
+ export interface CreditGetAutoRechargeParams {
217
+ /**
218
+ * Filter by currency ID (required)
219
+ */
220
+ currencyId: string;
221
+ /**
222
+ * Filter by customer ID (required)
223
+ */
224
+ customerId: string;
225
+ }
154
226
  export interface CreditGetUsageParams {
155
227
  /**
156
228
  * Filter by customer ID (required)
@@ -195,9 +267,8 @@ export interface CreditListLedgerParams extends MyCursorIDPageParams {
195
267
  resourceId?: string;
196
268
  }
197
269
  export declare namespace Credits {
198
- export { type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
270
+ export { type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse, type CreditGetUsageResponse as CreditGetUsageResponse, type CreditListLedgerResponse as CreditListLedgerResponse, type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage, type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams, type CreditGetUsageParams as CreditGetUsageParams, type CreditListLedgerParams as CreditListLedgerParams, };
199
271
  export { Grants as Grants, type CreditGrantResponse as CreditGrantResponse, type GrantListResponse as GrantListResponse, type GrantListResponsesMyCursorIDPage as GrantListResponsesMyCursorIDPage, type GrantCreateParams as GrantCreateParams, type GrantListParams as GrantListParams, };
200
- export { CustomCurrencies as CustomCurrencies, type CustomCurrency as CustomCurrency, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
201
- export { AutoRecharge as AutoRecharge, type AutoRechargeGetAutoRechargeResponse as AutoRechargeGetAutoRechargeResponse, type AutoRechargeGetAutoRechargeParams as AutoRechargeGetAutoRechargeParams, };
272
+ 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, };
202
273
  }
203
274
  //# sourceMappingURL=credits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAA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AAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -4,8 +4,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Credits = void 0;
5
5
  const tslib_1 = require("../../../internal/tslib.js");
6
6
  const resource_1 = require("../../../core/resource.js");
7
- const AutoRechargeAPI = tslib_1.__importStar(require("./auto-recharge.js"));
8
- const auto_recharge_1 = require("./auto-recharge.js");
9
7
  const CustomCurrenciesAPI = tslib_1.__importStar(require("./custom-currencies.js"));
10
8
  const custom_currencies_1 = require("./custom-currencies.js");
11
9
  const GrantsAPI = tslib_1.__importStar(require("./grants.js"));
@@ -16,7 +14,13 @@ class Credits extends resource_1.APIResource {
16
14
  super(...arguments);
17
15
  this.grants = new GrantsAPI.Grants(this._client);
18
16
  this.customCurrencies = new CustomCurrenciesAPI.CustomCurrencies(this._client);
19
- this.autoRecharge = new AutoRechargeAPI.AutoRecharge(this._client);
17
+ }
18
+ /**
19
+ * Retrieves the automatic recharge configuration for a customer and currency.
20
+ * Returns default settings if no configuration exists.
21
+ */
22
+ getAutoRecharge(query, options) {
23
+ return this._client.get('/api/v1/credits/auto-recharge', { query, ...options });
20
24
  }
21
25
  /**
22
26
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
@@ -38,5 +42,4 @@ class Credits extends resource_1.APIResource {
38
42
  exports.Credits = Credits;
39
43
  Credits.Grants = grants_1.Grants;
40
44
  Credits.CustomCurrencies = custom_currencies_1.CustomCurrencies;
41
- Credits.AutoRecharge = auto_recharge_1.AutoRecharge;
42
45
  //# 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,4EAAmD;AACnD,sDAIyB;AACzB,oFAA2D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AAmB,CAAC,gBAAgB,CAC/F,IAAI,CAAC,OAAO,CACb,CAAC;IAiCJ,CAAC;IA/BC;;;OAGG;IACH,eAAe,CACb,KAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,+BAA+B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAClF,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,KAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,UAAU,CACR,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,2BAAwC,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AArCD,0BAqCC;AA0SD,OAAO,CAAC,MAAM,GAAG,eAAM,CAAC;AACxB,OAAO,CAAC,gBAAgB,GAAG,oCAAgB,CAAC"}
@@ -1,7 +1,5 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../../../core/resource.mjs";
3
- import * as AutoRechargeAPI from "./auto-recharge.mjs";
4
- import { AutoRecharge, } from "./auto-recharge.mjs";
5
3
  import * as CustomCurrenciesAPI from "./custom-currencies.mjs";
6
4
  import { CustomCurrencies, } from "./custom-currencies.mjs";
7
5
  import * as GrantsAPI from "./grants.mjs";
@@ -12,7 +10,13 @@ export class Credits extends APIResource {
12
10
  super(...arguments);
13
11
  this.grants = new GrantsAPI.Grants(this._client);
14
12
  this.customCurrencies = new CustomCurrenciesAPI.CustomCurrencies(this._client);
15
- this.autoRecharge = new AutoRechargeAPI.AutoRecharge(this._client);
13
+ }
14
+ /**
15
+ * Retrieves the automatic recharge configuration for a customer and currency.
16
+ * Returns default settings if no configuration exists.
17
+ */
18
+ getAutoRecharge(query, options) {
19
+ return this._client.get('/api/v1/credits/auto-recharge', { query, ...options });
16
20
  }
17
21
  /**
18
22
  * Retrieves credit usage time-series data for a customer, grouped by feature, over
@@ -33,5 +37,4 @@ export class Credits extends APIResource {
33
37
  }
34
38
  Credits.Grants = Grants;
35
39
  Credits.CustomCurrencies = CustomCurrencies;
36
- Credits.AutoRecharge = AutoRecharge;
37
40
  //# sourceMappingURL=credits.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"credits.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/credits.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,eAAe;OACpB,EACL,YAAY,GAGb;OACM,KAAK,mBAAmB;OACxB,EACL,gBAAgB,GAQjB;OACM,KAAK,SAAS;OACd,EAML,MAAM,GACP;OAEM,EAAE,cAAc,EAA0C;AAGjE,MAAM,OAAO,OAAQ,SAAQ,WAAW;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,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAsB9F,CAAC;IApBC;;;OAGG;IACH,QAAQ,CAAC,KAA2B,EAAE,OAAwB;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,uBAAuB,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,UAAU,CACR,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,wBAAwB,EAAE,CAAA,cAAwC,CAAA,EAAE;YACjG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M,CAAC;AACxB,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -9,11 +9,11 @@ export declare class CustomCurrencies extends APIResource {
9
9
  /**
10
10
  * Creates a new custom currency in the environment.
11
11
  */
12
- create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
12
+ create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
13
13
  /**
14
14
  * Updates an existing custom currency. Only the supplied fields are modified.
15
15
  */
16
- update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
16
+ update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
17
17
  /**
18
18
  * Retrieves a paginated list of custom currencies in the environment. Archived
19
19
  * currencies are excluded by default; pass `status=ARCHIVED` (or
@@ -25,7 +25,7 @@ export declare class CustomCurrencies extends APIResource {
25
25
  * active plan or addon — use the associated-entities endpoint first to inspect
26
26
  * dependencies.
27
27
  */
28
- archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
28
+ archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
29
29
  /**
30
30
  * Lists the active plans and addons that reference a custom currency. Useful
31
31
  * before archiving to inspect dependencies.
@@ -35,19 +35,19 @@ export declare class CustomCurrencies extends APIResource {
35
35
  * Restores a previously archived custom currency. Fails if another active currency
36
36
  * with the same ID already exists.
37
37
  */
38
- unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
38
+ unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
39
39
  }
40
40
  export type CustomCurrencyListResponsesMyCursorIDPage = MyCursorIDPage<CustomCurrencyListResponse>;
41
41
  /**
42
42
  * Response object
43
43
  */
44
- export interface CustomCurrency {
44
+ export interface CustomCurrencyResponse {
45
45
  /**
46
46
  * A custom currency used to denominate credit-based entitlements and pricing
47
47
  */
48
- data: CustomCurrency.Data;
48
+ data: CustomCurrencyResponse.Data;
49
49
  }
50
- export declare namespace CustomCurrency {
50
+ export declare namespace CustomCurrencyResponse {
51
51
  /**
52
52
  * A custom currency used to denominate credit-based entitlements and pricing
53
53
  */
@@ -285,6 +285,6 @@ export interface CustomCurrencyListParams extends MyCursorIDPageParams {
285
285
  status?: Array<'ACTIVE' | 'ARCHIVED'>;
286
286
  }
287
287
  export declare namespace CustomCurrencies {
288
- export { type CustomCurrency as CustomCurrency, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
288
+ export { 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, };
289
289
  }
290
290
  //# sourceMappingURL=custom-currencies.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-currencies.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,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,wBAAyB,SAAQ,oBAAoB;IACpE;;;OAGG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"custom-currencies.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItG;;OAEG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yCAAyC,EAAE,0BAA0B,CAAC;IAQrF;;;;OAIG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIzF;;;OAGG;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 export declare class CustomCurrencies extends APIResource {
9
9
  /**
10
10
  * Creates a new custom currency in the environment.
11
11
  */
12
- create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
12
+ create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
13
13
  /**
14
14
  * Updates an existing custom currency. Only the supplied fields are modified.
15
15
  */
16
- update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
16
+ update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
17
17
  /**
18
18
  * Retrieves a paginated list of custom currencies in the environment. Archived
19
19
  * currencies are excluded by default; pass `status=ARCHIVED` (or
@@ -25,7 +25,7 @@ export declare class CustomCurrencies extends APIResource {
25
25
  * active plan or addon — use the associated-entities endpoint first to inspect
26
26
  * dependencies.
27
27
  */
28
- archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
28
+ archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
29
29
  /**
30
30
  * Lists the active plans and addons that reference a custom currency. Useful
31
31
  * before archiving to inspect dependencies.
@@ -35,19 +35,19 @@ export declare class CustomCurrencies extends APIResource {
35
35
  * Restores a previously archived custom currency. Fails if another active currency
36
36
  * with the same ID already exists.
37
37
  */
38
- unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
38
+ unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse>;
39
39
  }
40
40
  export type CustomCurrencyListResponsesMyCursorIDPage = MyCursorIDPage<CustomCurrencyListResponse>;
41
41
  /**
42
42
  * Response object
43
43
  */
44
- export interface CustomCurrency {
44
+ export interface CustomCurrencyResponse {
45
45
  /**
46
46
  * A custom currency used to denominate credit-based entitlements and pricing
47
47
  */
48
- data: CustomCurrency.Data;
48
+ data: CustomCurrencyResponse.Data;
49
49
  }
50
- export declare namespace CustomCurrency {
50
+ export declare namespace CustomCurrencyResponse {
51
51
  /**
52
52
  * A custom currency used to denominate credit-based entitlements and pricing
53
53
  */
@@ -285,6 +285,6 @@ export interface CustomCurrencyListParams extends MyCursorIDPageParams {
285
285
  status?: Array<'ACTIVE' | 'ARCHIVED'>;
286
286
  }
287
287
  export declare namespace CustomCurrencies {
288
- export { type CustomCurrency as CustomCurrency, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
288
+ export { 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, };
289
289
  }
290
290
  //# sourceMappingURL=custom-currencies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom-currencies.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,cAAc,CAAC;IAI9F;;OAEG;IACH,MAAM,CACJ,UA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AAQ,GAAG,UAAU,CAAC,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
1
+ {"version":3,"file":"custom-currencies.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE,KAAK,oBAAoB,EAAE,WAAW,EAAE;OAC1D,EAAE,cAAc,EAAE;AAGzB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,0BAA0B,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAItG;;OAEG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;;;OAIG;IACH,IAAI,CACF,KAAK,GAAE,wBAAwB,GAAG,IAAI,GAAG,SAAc,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,yCAAyC,EAAE,0BAA0B,CAAC;IAQrF;;;;OAIG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,sBAAsB,CAAC;IAIzF;;;OAGG;IACH,sBAAsB,CACpB,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,cAAc,GACvB,UA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harge.mjs";
2
- export { Credits, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.mjs";
3
- export { CustomCurrencies, type CustomCurrency, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.mjs";
1
+ export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.mjs";
2
+ export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.mjs";
4
3
  export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.mjs";
5
4
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC;OACM,EACL,OAAO,EACP,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EACL,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,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,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
@@ -1,5 +1,4 @@
1
- export { AutoRecharge, type AutoRechargeGetAutoRechargeResponse, type AutoRechargeGetAutoRechargeParams, } from "./auto-recharge.js";
2
- export { Credits, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.js";
3
- export { CustomCurrencies, type CustomCurrency, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.js";
1
+ export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits.js";
2
+ export { CustomCurrencies, type CustomCurrencyResponse, type CustomCurrencyListResponse, type CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyCreateParams, type CustomCurrencyUpdateParams, type CustomCurrencyListParams, type CustomCurrencyListResponsesMyCursorIDPage, } from "./custom-currencies.js";
4
3
  export { Grants, type CreditGrantResponse, type GrantListResponse, type GrantCreateParams, type GrantListParams, type GrantListResponsesMyCursorIDPage, } from "./grants.js";
5
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,YAAY,EACZ,KAAK,mCAAmC,EACxC,KAAK,iCAAiC,GACvC;OACM,EACL,OAAO,EACP,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,EACL,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,0BAA0B,EAC/B,KAAK,4CAA4C,EACjD,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"OAEO,EACL,OAAO,EACP,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,uCAAuC,GAC7C;OACM,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,yCAAyC,GAC/C;OACM,EACL,MAAM,EACN,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,gCAAgC,GACtC"}
@@ -1,9 +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.AutoRecharge = void 0;
5
- var auto_recharge_1 = require("./auto-recharge.js");
6
- Object.defineProperty(exports, "AutoRecharge", { enumerable: true, get: function () { return auto_recharge_1.AutoRecharge; } });
4
+ exports.Grants = exports.CustomCurrencies = exports.Credits = void 0;
7
5
  var credits_1 = require("./credits.js");
8
6
  Object.defineProperty(exports, "Credits", { enumerable: true, get: function () { return credits_1.Credits; } });
9
7
  var custom_currencies_1 = require("./custom-currencies.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,wCAOmB;AANjB,kGAAA,OAAO,OAAA;AAOT,4DAS6B;AAR3B,qHAAA,gBAAgB,OAAA;AASlB,sCAOkB;AANhB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,4DAS6B;AAR3B,qHAAA,gBAAgB,OAAA;AASlB,sCAOkB;AANhB,gGAAA,MAAM,OAAA"}
@@ -1,5 +1,4 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- export { AutoRecharge, } from "./auto-recharge.mjs";
3
2
  export { Credits, } from "./credits.mjs";
4
3
  export { CustomCurrencies, } from "./custom-currencies.mjs";
5
4
  export { Grants, } from "./grants.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,YAAY,GAGb;OACM,EACL,OAAO,GAMR;OACM,EACL,gBAAgB,GAQjB;OACM,EACL,MAAM,GAMP"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GAQR;OACM,EACL,gBAAgB,GAQjB;OACM,EACL,MAAM,GAMP"}
@@ -1,6 +1,6 @@
1
1
  export { Addons, type Addon, type AddonListResponse, type AddonPublishResponse, type AddonRemoveDraftResponse, type AddonCreateParams, type AddonUpdateParams, type AddonListParams, type AddonPublishParams, type AddonListResponsesMyCursorIDPage, } from "./addons/index.mjs";
2
2
  export { Coupons, type Coupon, type CouponListResponse, type CouponCreateParams, type CouponListParams, type CouponUpdateCouponParams, type CouponListResponsesMyCursorIDPage, } from "./coupons.mjs";
3
- export { Credits, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits/index.mjs";
3
+ export { Credits, type CreditGetAutoRechargeResponse, type CreditGetUsageResponse, type CreditListLedgerResponse, type CreditGetAutoRechargeParams, type CreditGetUsageParams, type CreditListLedgerParams, type CreditListLedgerResponsesMyCursorIDPage, } from "./credits/index.mjs";
4
4
  export { Customers, type CustomerIntegrationResponse, type CustomerResponse, type CustomerListResponse, type CustomerCheckEntitlementResponse, type CustomerImportResponse, type CustomerListResourcesResponse, type CustomerRetrieveEntitlementsResponse, type CustomerUpdateParams, type CustomerListParams, type CustomerCheckEntitlementParams, type CustomerImportParams, type CustomerListResourcesParams, type CustomerProvisionParams, type CustomerRetrieveEntitlementsParams, type CustomerListResponsesMyCursorIDPage, type CustomerListResourcesResponsesMyCursorIDPage, } from "./customers/index.mjs";
5
5
  export { Events, type EventReportResponse, type EventReportParams } from "./events.mjs";
6
6
  export { Features, type Feature, type FeatureListFeaturesResponse, type FeatureCreateFeatureParams, type FeatureListFeaturesParams, type FeatureUpdateFeatureParams, type FeatureListFeaturesResponsesMyCursorIDPage, } from "./features.mjs";