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

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 (128) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/package.json +1 -1
  3. package/resources/v1/credits/auto-recharge.d.mts +84 -0
  4. package/resources/v1/credits/auto-recharge.d.mts.map +1 -0
  5. package/resources/v1/credits/auto-recharge.d.ts +84 -0
  6. package/resources/v1/credits/auto-recharge.d.ts.map +1 -0
  7. package/resources/v1/credits/auto-recharge.js +16 -0
  8. package/resources/v1/credits/auto-recharge.js.map +1 -0
  9. package/resources/v1/credits/auto-recharge.mjs +12 -0
  10. package/resources/v1/credits/auto-recharge.mjs.map +1 -0
  11. package/resources/v1/{events/credits → credits}/credits.d.mts +11 -82
  12. package/resources/v1/credits/credits.d.mts.map +1 -0
  13. package/resources/v1/{events/credits → credits}/credits.d.ts +11 -82
  14. package/resources/v1/credits/credits.d.ts.map +1 -0
  15. package/resources/v1/{events/credits → credits}/credits.js +7 -10
  16. package/resources/v1/credits/credits.js.map +1 -0
  17. package/resources/v1/{events/credits → credits}/credits.mjs +6 -9
  18. package/resources/v1/credits/credits.mjs.map +1 -0
  19. package/resources/v1/{events/credits → credits}/custom-currencies.d.mts +12 -219
  20. package/resources/v1/credits/custom-currencies.d.mts.map +1 -0
  21. package/resources/v1/{events/credits → credits}/custom-currencies.d.ts +12 -219
  22. package/resources/v1/credits/custom-currencies.d.ts.map +1 -0
  23. package/resources/v1/{events/credits → credits}/custom-currencies.js +3 -3
  24. package/resources/v1/credits/custom-currencies.js.map +1 -0
  25. package/resources/v1/{events/credits → credits}/custom-currencies.mjs +3 -3
  26. package/resources/v1/credits/custom-currencies.mjs.map +1 -0
  27. package/resources/v1/{events/credits → credits}/grants.d.mts +4 -4
  28. package/resources/v1/credits/grants.d.mts.map +1 -0
  29. package/resources/v1/{events/credits → credits}/grants.d.ts +4 -4
  30. package/resources/v1/credits/grants.d.ts.map +1 -0
  31. package/resources/v1/{events/credits → credits}/grants.js +3 -3
  32. package/resources/v1/credits/grants.js.map +1 -0
  33. package/resources/v1/{events/credits → credits}/grants.mjs +3 -3
  34. package/resources/v1/credits/grants.mjs.map +1 -0
  35. package/resources/v1/credits/index.d.mts +5 -0
  36. package/resources/v1/credits/index.d.mts.map +1 -0
  37. package/resources/v1/credits/index.d.ts +5 -0
  38. package/resources/v1/credits/index.d.ts.map +1 -0
  39. package/resources/v1/{events/credits → credits}/index.js +3 -1
  40. package/resources/v1/credits/index.js.map +1 -0
  41. package/resources/v1/{events/credits → credits}/index.mjs +1 -0
  42. package/resources/v1/credits/index.mjs.map +1 -0
  43. package/resources/v1/credits.d.mts.map +1 -0
  44. package/resources/v1/credits.d.ts.map +1 -0
  45. package/resources/v1/{events/credits.js → credits.js} +1 -1
  46. package/resources/v1/credits.js.map +1 -0
  47. package/resources/v1/credits.mjs.map +1 -0
  48. package/resources/v1/events.d.mts +65 -1
  49. package/resources/v1/events.d.mts.map +1 -1
  50. package/resources/v1/events.d.ts +65 -1
  51. package/resources/v1/events.d.ts.map +1 -1
  52. package/resources/v1/events.js +15 -2
  53. package/resources/v1/events.js.map +1 -1
  54. package/resources/v1/events.mjs +13 -1
  55. package/resources/v1/events.mjs.map +1 -1
  56. package/resources/v1/index.d.mts +2 -1
  57. package/resources/v1/index.d.mts.map +1 -1
  58. package/resources/v1/index.d.ts +2 -1
  59. package/resources/v1/index.d.ts.map +1 -1
  60. package/resources/v1/index.js +7 -5
  61. package/resources/v1/index.js.map +1 -1
  62. package/resources/v1/index.mjs +2 -1
  63. package/resources/v1/index.mjs.map +1 -1
  64. package/resources/v1/v1.d.mts +6 -2
  65. package/resources/v1/v1.d.mts.map +1 -1
  66. package/resources/v1/v1.d.ts +6 -2
  67. package/resources/v1/v1.d.ts.map +1 -1
  68. package/resources/v1/v1.js +6 -2
  69. package/resources/v1/v1.js.map +1 -1
  70. package/resources/v1/v1.mjs +6 -2
  71. package/resources/v1/v1.mjs.map +1 -1
  72. package/src/resources/v1/credits/auto-recharge.ts +109 -0
  73. package/src/resources/v1/{events/credits → credits}/credits.ts +20 -109
  74. package/src/resources/v1/{events/credits → credits}/custom-currencies.ts +13 -256
  75. package/src/resources/v1/{events/credits → credits}/grants.ts +5 -5
  76. package/src/resources/v1/{events/credits → credits}/index.ts +6 -6
  77. package/src/resources/v1/events.ts +75 -1
  78. package/src/resources/v1/index.ts +9 -1
  79. package/src/resources/v1/v1.ts +22 -2
  80. package/src/version.ts +1 -1
  81. package/version.d.mts +1 -1
  82. package/version.d.ts +1 -1
  83. package/version.js +1 -1
  84. package/version.mjs +1 -1
  85. package/resources/v1/events/credits/credits.d.mts.map +0 -1
  86. package/resources/v1/events/credits/credits.d.ts.map +0 -1
  87. package/resources/v1/events/credits/credits.js.map +0 -1
  88. package/resources/v1/events/credits/credits.mjs.map +0 -1
  89. package/resources/v1/events/credits/custom-currencies.d.mts.map +0 -1
  90. package/resources/v1/events/credits/custom-currencies.d.ts.map +0 -1
  91. package/resources/v1/events/credits/custom-currencies.js.map +0 -1
  92. package/resources/v1/events/credits/custom-currencies.mjs.map +0 -1
  93. package/resources/v1/events/credits/grants.d.mts.map +0 -1
  94. package/resources/v1/events/credits/grants.d.ts.map +0 -1
  95. package/resources/v1/events/credits/grants.js.map +0 -1
  96. package/resources/v1/events/credits/grants.mjs.map +0 -1
  97. package/resources/v1/events/credits/index.d.mts +0 -4
  98. package/resources/v1/events/credits/index.d.mts.map +0 -1
  99. package/resources/v1/events/credits/index.d.ts +0 -4
  100. package/resources/v1/events/credits/index.d.ts.map +0 -1
  101. package/resources/v1/events/credits/index.js.map +0 -1
  102. package/resources/v1/events/credits/index.mjs.map +0 -1
  103. package/resources/v1/events/credits.d.mts.map +0 -1
  104. package/resources/v1/events/credits.d.ts.map +0 -1
  105. package/resources/v1/events/credits.js.map +0 -1
  106. package/resources/v1/events/credits.mjs.map +0 -1
  107. package/resources/v1/events/events.d.mts +0 -70
  108. package/resources/v1/events/events.d.mts.map +0 -1
  109. package/resources/v1/events/events.d.ts +0 -70
  110. package/resources/v1/events/events.d.ts.map +0 -1
  111. package/resources/v1/events/events.js +0 -27
  112. package/resources/v1/events/events.js.map +0 -1
  113. package/resources/v1/events/events.mjs +0 -22
  114. package/resources/v1/events/events.mjs.map +0 -1
  115. package/resources/v1/events/index.d.mts +0 -3
  116. package/resources/v1/events/index.d.mts.map +0 -1
  117. package/resources/v1/events/index.d.ts +0 -3
  118. package/resources/v1/events/index.d.ts.map +0 -1
  119. package/resources/v1/events/index.js +0 -9
  120. package/resources/v1/events/index.js.map +0 -1
  121. package/resources/v1/events/index.mjs +0 -4
  122. package/resources/v1/events/index.mjs.map +0 -1
  123. package/src/resources/v1/events/events.ts +0 -103
  124. package/src/resources/v1/events/index.ts +0 -13
  125. /package/resources/v1/{events/credits.d.mts → credits.d.mts} +0 -0
  126. /package/resources/v1/{events/credits.d.ts → credits.d.ts} +0 -0
  127. /package/resources/v1/{events/credits.mjs → credits.mjs} +0 -0
  128. /package/src/resources/v1/{events/credits.ts → credits.ts} +0 -0
@@ -1,7 +1,7 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
2
- import { APIPromise } from "../../../../core/api-promise.mjs";
3
- import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../../core/pagination.mjs";
4
- import { RequestOptions } from "../../../../internal/request-options.mjs";
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
5
  /**
6
6
  * Operations related to custom currencies
7
7
  */
@@ -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<CustomCurrencyCreateResponse>;
12
+ create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
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<CustomCurrencyUpdateResponse>;
16
+ update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
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<CustomCurrencyArchiveResponse>;
28
+ archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
29
29
  /**
30
30
  * Lists the active plans and addons that reference a custom currency. Useful
31
31
  * before archiving to inspect dependencies.
@@ -35,88 +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<CustomCurrencyUnarchiveResponse>;
38
+ unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
39
39
  }
40
40
  export type CustomCurrencyListResponsesMyCursorIDPage = MyCursorIDPage<CustomCurrencyListResponse>;
41
41
  /**
42
42
  * Response object
43
43
  */
44
- export interface CustomCurrencyCreateResponse {
44
+ export interface CustomCurrency {
45
45
  /**
46
46
  * A custom currency used to denominate credit-based entitlements and pricing
47
47
  */
48
- data: CustomCurrencyCreateResponse.Data;
48
+ data: CustomCurrency.Data;
49
49
  }
50
- export declare namespace CustomCurrencyCreateResponse {
51
- /**
52
- * A custom currency used to denominate credit-based entitlements and pricing
53
- */
54
- interface Data {
55
- /**
56
- * The unique identifier for the custom currency
57
- */
58
- id: string;
59
- /**
60
- * Timestamp of when the record was deleted
61
- */
62
- archivedAt: string | null;
63
- /**
64
- * Timestamp of when the record was created
65
- */
66
- createdAt: string;
67
- /**
68
- * Description of the currency
69
- */
70
- description: string | null;
71
- /**
72
- * The display name of the custom currency
73
- */
74
- displayName: string;
75
- /**
76
- * Metadata associated with the entity
77
- */
78
- metadata: {
79
- [key: string]: string;
80
- };
81
- /**
82
- * The symbol used to represent the custom currency
83
- */
84
- symbol: string | null;
85
- /**
86
- * Singular and plural unit labels for a custom currency
87
- */
88
- units: Data.Units | null;
89
- /**
90
- * Timestamp of when the record was last updated
91
- */
92
- updatedAt: string;
93
- }
94
- namespace Data {
95
- /**
96
- * Singular and plural unit labels for a custom currency
97
- */
98
- interface Units {
99
- /**
100
- * Plural form of the unit label
101
- */
102
- plural: string | null;
103
- /**
104
- * Singular form of the unit label
105
- */
106
- singular: string | null;
107
- }
108
- }
109
- }
110
- /**
111
- * Response object
112
- */
113
- export interface CustomCurrencyUpdateResponse {
114
- /**
115
- * A custom currency used to denominate credit-based entitlements and pricing
116
- */
117
- data: CustomCurrencyUpdateResponse.Data;
118
- }
119
- export declare namespace CustomCurrencyUpdateResponse {
50
+ export declare namespace CustomCurrency {
120
51
  /**
121
52
  * A custom currency used to denominate credit-based entitlements and pricing
122
53
  */
@@ -234,75 +165,6 @@ export declare namespace CustomCurrencyListResponse {
234
165
  singular: string | null;
235
166
  }
236
167
  }
237
- /**
238
- * Response object
239
- */
240
- export interface CustomCurrencyArchiveResponse {
241
- /**
242
- * A custom currency used to denominate credit-based entitlements and pricing
243
- */
244
- data: CustomCurrencyArchiveResponse.Data;
245
- }
246
- export declare namespace CustomCurrencyArchiveResponse {
247
- /**
248
- * A custom currency used to denominate credit-based entitlements and pricing
249
- */
250
- interface Data {
251
- /**
252
- * The unique identifier for the custom currency
253
- */
254
- id: string;
255
- /**
256
- * Timestamp of when the record was deleted
257
- */
258
- archivedAt: string | null;
259
- /**
260
- * Timestamp of when the record was created
261
- */
262
- createdAt: string;
263
- /**
264
- * Description of the currency
265
- */
266
- description: string | null;
267
- /**
268
- * The display name of the custom currency
269
- */
270
- displayName: string;
271
- /**
272
- * Metadata associated with the entity
273
- */
274
- metadata: {
275
- [key: string]: string;
276
- };
277
- /**
278
- * The symbol used to represent the custom currency
279
- */
280
- symbol: string | null;
281
- /**
282
- * Singular and plural unit labels for a custom currency
283
- */
284
- units: Data.Units | null;
285
- /**
286
- * Timestamp of when the record was last updated
287
- */
288
- updatedAt: string;
289
- }
290
- namespace Data {
291
- /**
292
- * Singular and plural unit labels for a custom currency
293
- */
294
- interface Units {
295
- /**
296
- * Plural form of the unit label
297
- */
298
- plural: string | null;
299
- /**
300
- * Singular form of the unit label
301
- */
302
- singular: string | null;
303
- }
304
- }
305
- }
306
168
  /**
307
169
  * List of entities (plans or addons) that reference a custom currency
308
170
  */
@@ -328,75 +190,6 @@ export declare namespace CustomCurrencyListAssociatedEntitiesResponse {
328
190
  type: string;
329
191
  }
330
192
  }
331
- /**
332
- * Response object
333
- */
334
- export interface CustomCurrencyUnarchiveResponse {
335
- /**
336
- * A custom currency used to denominate credit-based entitlements and pricing
337
- */
338
- data: CustomCurrencyUnarchiveResponse.Data;
339
- }
340
- export declare namespace CustomCurrencyUnarchiveResponse {
341
- /**
342
- * A custom currency used to denominate credit-based entitlements and pricing
343
- */
344
- interface Data {
345
- /**
346
- * The unique identifier for the custom currency
347
- */
348
- id: string;
349
- /**
350
- * Timestamp of when the record was deleted
351
- */
352
- archivedAt: string | null;
353
- /**
354
- * Timestamp of when the record was created
355
- */
356
- createdAt: string;
357
- /**
358
- * Description of the currency
359
- */
360
- description: string | null;
361
- /**
362
- * The display name of the custom currency
363
- */
364
- displayName: string;
365
- /**
366
- * Metadata associated with the entity
367
- */
368
- metadata: {
369
- [key: string]: string;
370
- };
371
- /**
372
- * The symbol used to represent the custom currency
373
- */
374
- symbol: string | null;
375
- /**
376
- * Singular and plural unit labels for a custom currency
377
- */
378
- units: Data.Units | null;
379
- /**
380
- * Timestamp of when the record was last updated
381
- */
382
- updatedAt: string;
383
- }
384
- namespace Data {
385
- /**
386
- * Singular and plural unit labels for a custom currency
387
- */
388
- interface Units {
389
- /**
390
- * Plural form of the unit label
391
- */
392
- plural: string | null;
393
- /**
394
- * Singular form of the unit label
395
- */
396
- singular: string | null;
397
- }
398
- }
399
- }
400
193
  export interface CustomCurrencyCreateParams {
401
194
  /**
402
195
  * The unique identifier for the new custom currency
@@ -492,6 +285,6 @@ export interface CustomCurrencyListParams extends MyCursorIDPageParams {
492
285
  status?: Array<'ACTIVE' | 'ARCHIVED'>;
493
286
  }
494
287
  export declare namespace CustomCurrencies {
495
- export { type CustomCurrencyCreateResponse as CustomCurrencyCreateResponse, type CustomCurrencyUpdateResponse as CustomCurrencyUpdateResponse, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyArchiveResponse as CustomCurrencyArchiveResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyUnarchiveResponse as CustomCurrencyUnarchiveResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
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, };
496
289
  }
497
290
  //# sourceMappingURL=custom-currencies.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-currencies.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"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CAAC;IAEvB;;;OAGG;IACH,KAAK,CAAC,EAAE,0BAA0B,CAAC,KAAK,CAAC;CAC1C;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,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,7 +1,7 @@
1
- import { APIResource } from "../../../../core/resource.js";
2
- import { APIPromise } from "../../../../core/api-promise.js";
3
- import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../../core/pagination.js";
4
- import { RequestOptions } from "../../../../internal/request-options.js";
1
+ import { APIResource } from "../../../core/resource.js";
2
+ import { APIPromise } from "../../../core/api-promise.js";
3
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.js";
4
+ import { RequestOptions } from "../../../internal/request-options.js";
5
5
  /**
6
6
  * Operations related to custom currencies
7
7
  */
@@ -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<CustomCurrencyCreateResponse>;
12
+ create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
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<CustomCurrencyUpdateResponse>;
16
+ update(currencyID: string, body: CustomCurrencyUpdateParams, options?: RequestOptions): APIPromise<CustomCurrency>;
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<CustomCurrencyArchiveResponse>;
28
+ archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
29
29
  /**
30
30
  * Lists the active plans and addons that reference a custom currency. Useful
31
31
  * before archiving to inspect dependencies.
@@ -35,88 +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<CustomCurrencyUnarchiveResponse>;
38
+ unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrency>;
39
39
  }
40
40
  export type CustomCurrencyListResponsesMyCursorIDPage = MyCursorIDPage<CustomCurrencyListResponse>;
41
41
  /**
42
42
  * Response object
43
43
  */
44
- export interface CustomCurrencyCreateResponse {
44
+ export interface CustomCurrency {
45
45
  /**
46
46
  * A custom currency used to denominate credit-based entitlements and pricing
47
47
  */
48
- data: CustomCurrencyCreateResponse.Data;
48
+ data: CustomCurrency.Data;
49
49
  }
50
- export declare namespace CustomCurrencyCreateResponse {
51
- /**
52
- * A custom currency used to denominate credit-based entitlements and pricing
53
- */
54
- interface Data {
55
- /**
56
- * The unique identifier for the custom currency
57
- */
58
- id: string;
59
- /**
60
- * Timestamp of when the record was deleted
61
- */
62
- archivedAt: string | null;
63
- /**
64
- * Timestamp of when the record was created
65
- */
66
- createdAt: string;
67
- /**
68
- * Description of the currency
69
- */
70
- description: string | null;
71
- /**
72
- * The display name of the custom currency
73
- */
74
- displayName: string;
75
- /**
76
- * Metadata associated with the entity
77
- */
78
- metadata: {
79
- [key: string]: string;
80
- };
81
- /**
82
- * The symbol used to represent the custom currency
83
- */
84
- symbol: string | null;
85
- /**
86
- * Singular and plural unit labels for a custom currency
87
- */
88
- units: Data.Units | null;
89
- /**
90
- * Timestamp of when the record was last updated
91
- */
92
- updatedAt: string;
93
- }
94
- namespace Data {
95
- /**
96
- * Singular and plural unit labels for a custom currency
97
- */
98
- interface Units {
99
- /**
100
- * Plural form of the unit label
101
- */
102
- plural: string | null;
103
- /**
104
- * Singular form of the unit label
105
- */
106
- singular: string | null;
107
- }
108
- }
109
- }
110
- /**
111
- * Response object
112
- */
113
- export interface CustomCurrencyUpdateResponse {
114
- /**
115
- * A custom currency used to denominate credit-based entitlements and pricing
116
- */
117
- data: CustomCurrencyUpdateResponse.Data;
118
- }
119
- export declare namespace CustomCurrencyUpdateResponse {
50
+ export declare namespace CustomCurrency {
120
51
  /**
121
52
  * A custom currency used to denominate credit-based entitlements and pricing
122
53
  */
@@ -234,75 +165,6 @@ export declare namespace CustomCurrencyListResponse {
234
165
  singular: string | null;
235
166
  }
236
167
  }
237
- /**
238
- * Response object
239
- */
240
- export interface CustomCurrencyArchiveResponse {
241
- /**
242
- * A custom currency used to denominate credit-based entitlements and pricing
243
- */
244
- data: CustomCurrencyArchiveResponse.Data;
245
- }
246
- export declare namespace CustomCurrencyArchiveResponse {
247
- /**
248
- * A custom currency used to denominate credit-based entitlements and pricing
249
- */
250
- interface Data {
251
- /**
252
- * The unique identifier for the custom currency
253
- */
254
- id: string;
255
- /**
256
- * Timestamp of when the record was deleted
257
- */
258
- archivedAt: string | null;
259
- /**
260
- * Timestamp of when the record was created
261
- */
262
- createdAt: string;
263
- /**
264
- * Description of the currency
265
- */
266
- description: string | null;
267
- /**
268
- * The display name of the custom currency
269
- */
270
- displayName: string;
271
- /**
272
- * Metadata associated with the entity
273
- */
274
- metadata: {
275
- [key: string]: string;
276
- };
277
- /**
278
- * The symbol used to represent the custom currency
279
- */
280
- symbol: string | null;
281
- /**
282
- * Singular and plural unit labels for a custom currency
283
- */
284
- units: Data.Units | null;
285
- /**
286
- * Timestamp of when the record was last updated
287
- */
288
- updatedAt: string;
289
- }
290
- namespace Data {
291
- /**
292
- * Singular and plural unit labels for a custom currency
293
- */
294
- interface Units {
295
- /**
296
- * Plural form of the unit label
297
- */
298
- plural: string | null;
299
- /**
300
- * Singular form of the unit label
301
- */
302
- singular: string | null;
303
- }
304
- }
305
- }
306
168
  /**
307
169
  * List of entities (plans or addons) that reference a custom currency
308
170
  */
@@ -328,75 +190,6 @@ export declare namespace CustomCurrencyListAssociatedEntitiesResponse {
328
190
  type: string;
329
191
  }
330
192
  }
331
- /**
332
- * Response object
333
- */
334
- export interface CustomCurrencyUnarchiveResponse {
335
- /**
336
- * A custom currency used to denominate credit-based entitlements and pricing
337
- */
338
- data: CustomCurrencyUnarchiveResponse.Data;
339
- }
340
- export declare namespace CustomCurrencyUnarchiveResponse {
341
- /**
342
- * A custom currency used to denominate credit-based entitlements and pricing
343
- */
344
- interface Data {
345
- /**
346
- * The unique identifier for the custom currency
347
- */
348
- id: string;
349
- /**
350
- * Timestamp of when the record was deleted
351
- */
352
- archivedAt: string | null;
353
- /**
354
- * Timestamp of when the record was created
355
- */
356
- createdAt: string;
357
- /**
358
- * Description of the currency
359
- */
360
- description: string | null;
361
- /**
362
- * The display name of the custom currency
363
- */
364
- displayName: string;
365
- /**
366
- * Metadata associated with the entity
367
- */
368
- metadata: {
369
- [key: string]: string;
370
- };
371
- /**
372
- * The symbol used to represent the custom currency
373
- */
374
- symbol: string | null;
375
- /**
376
- * Singular and plural unit labels for a custom currency
377
- */
378
- units: Data.Units | null;
379
- /**
380
- * Timestamp of when the record was last updated
381
- */
382
- updatedAt: string;
383
- }
384
- namespace Data {
385
- /**
386
- * Singular and plural unit labels for a custom currency
387
- */
388
- interface Units {
389
- /**
390
- * Plural form of the unit label
391
- */
392
- plural: string | null;
393
- /**
394
- * Singular form of the unit label
395
- */
396
- singular: string | null;
397
- }
398
- }
399
- }
400
193
  export interface CustomCurrencyCreateParams {
401
194
  /**
402
195
  * The unique identifier for the new custom currency
@@ -492,6 +285,6 @@ export interface CustomCurrencyListParams extends MyCursorIDPageParams {
492
285
  status?: Array<'ACTIVE' | 'ARCHIVED'>;
493
286
  }
494
287
  export declare namespace CustomCurrencies {
495
- export { type CustomCurrencyCreateResponse as CustomCurrencyCreateResponse, type CustomCurrencyUpdateResponse as CustomCurrencyUpdateResponse, type CustomCurrencyListResponse as CustomCurrencyListResponse, type CustomCurrencyArchiveResponse as CustomCurrencyArchiveResponse, type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse, type CustomCurrencyUnarchiveResponse as CustomCurrencyUnarchiveResponse, type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage, type CustomCurrencyCreateParams as CustomCurrencyCreateParams, type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams, type CustomCurrencyListParams as CustomCurrencyListParams, };
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, };
496
289
  }
497
290
  //# sourceMappingURL=custom-currencies.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-currencies.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW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ACH,KAAK,CAAC,EAAE,0BAA0B,CAAC,KAAK,CAAC;CAC1C;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;;OAGG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;KAClB;CACF;AAED,MAAM,WAAW,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"}
@@ -2,9 +2,9 @@
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.CustomCurrencies = void 0;
5
- const resource_1 = require("../../../../core/resource.js");
6
- const pagination_1 = require("../../../../core/pagination.js");
7
- const path_1 = require("../../../../internal/utils/path.js");
5
+ const resource_1 = require("../../../core/resource.js");
6
+ const pagination_1 = require("../../../core/pagination.js");
7
+ const path_1 = require("../../../internal/utils/path.js");
8
8
  /**
9
9
  * Operations related to custom currencies
10
10
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-currencies.js","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,4DAAkG;AAElG,0DAAoD;AAEpD;;GAEG;AACH,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qCAAqC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,EACnC,CAAA,2BAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qCAAqC,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,sBAAsB,CACpB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAA,WAAI,EAAA,qCAAqC,UAAU,sBAAsB,EACzE,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,UAAkB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qCAAqC,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACF;AAjED,4CAiEC"}
@@ -1,7 +1,7 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../../core/resource.mjs";
3
- import { MyCursorIDPage } from "../../../../core/pagination.mjs";
4
- import { path } from "../../../../internal/utils/path.mjs";
2
+ import { APIResource } from "../../../core/resource.mjs";
3
+ import { MyCursorIDPage } from "../../../core/pagination.mjs";
4
+ import { path } from "../../../internal/utils/path.mjs";
5
5
  /**
6
6
  * Operations related to custom currencies
7
7
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"custom-currencies.mjs","sourceRoot":"","sources":["../../../src/resources/v1/credits/custom-currencies.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,cAAc,EAA0C;OAE1D,EAAE,IAAI,EAAE;AAEf;;GAEG;AACH,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CAAC,IAAgC,EAAE,OAAwB;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mCAAmC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,UAAkB,EAClB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qCAAqC,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACzG,CAAC;IAED;;;;OAIG;IACH,IAAI,CACF,QAAqD,EAAE,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,mCAAmC,EACnC,CAAA,cAA0C,CAAA,EAC1C,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,UAAU,EAAE,OAAO,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,sBAAsB,CACpB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CACrB,IAAI,CAAA,qCAAqC,UAAU,sBAAsB,EACzE,OAAO,CACR,CAAC;IACJ,CAAC;IAED;;;OAGG;IACH,SAAS,CAAC,UAAkB,EAAE,OAAwB;QACpD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,qCAAqC,UAAU,YAAY,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACF"}
@@ -1,7 +1,7 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
2
- import { APIPromise } from "../../../../core/api-promise.mjs";
3
- import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../../core/pagination.mjs";
4
- import { RequestOptions } from "../../../../internal/request-options.mjs";
1
+ import { APIResource } from "../../../core/resource.mjs";
2
+ import { APIPromise } from "../../../core/api-promise.mjs";
3
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from "../../../core/pagination.mjs";
4
+ import { RequestOptions } from "../../../internal/request-options.mjs";
5
5
  /**
6
6
  * Operations related to credit grants
7
7
  */
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grants.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/credits/grants.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,MAAO,SAAQ,WAAW;IACrC;;;OAGG;IACH,MAAM,CAAC,IAAI,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAI1F;;OAEG;IACH,IAAI,CACF,KAAK,EAAE,eAAe,EACtB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,iBAAiB,CAAC;IA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G;YACH,UAAU,CAAC,EAAE,MAAM,CAAC;YAEpB;;eAEG;YACH,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB;KACF;IAED;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,MAAM,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,QAAQ,EACJ,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,KA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