@stigg/typescript 0.1.0-beta.1 → 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 (122) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/package.json +1 -1
  3. package/resources/v1/{events/credits → credits}/credits.d.mts +6 -6
  4. package/resources/v1/credits/credits.d.mts.map +1 -0
  5. package/resources/v1/{events/credits → credits}/credits.d.ts +6 -6
  6. package/resources/v1/credits/credits.d.ts.map +1 -0
  7. package/resources/v1/{events/credits → credits}/credits.js +3 -3
  8. package/resources/v1/credits/credits.js.map +1 -0
  9. package/resources/v1/{events/credits → credits}/credits.mjs +2 -2
  10. package/resources/v1/credits/credits.mjs.map +1 -0
  11. package/resources/v1/{events/credits → credits}/custom-currencies.d.mts +12 -219
  12. package/resources/v1/credits/custom-currencies.d.mts.map +1 -0
  13. package/resources/v1/{events/credits → credits}/custom-currencies.d.ts +12 -219
  14. package/resources/v1/credits/custom-currencies.d.ts.map +1 -0
  15. package/resources/v1/{events/credits → credits}/custom-currencies.js +3 -3
  16. package/resources/v1/credits/custom-currencies.js.map +1 -0
  17. package/resources/v1/{events/credits → credits}/custom-currencies.mjs +3 -3
  18. package/resources/v1/credits/custom-currencies.mjs.map +1 -0
  19. package/resources/v1/{events/credits → credits}/grants.d.mts +4 -4
  20. package/resources/v1/credits/grants.d.mts.map +1 -0
  21. package/resources/v1/{events/credits → credits}/grants.d.ts +4 -4
  22. package/resources/v1/credits/grants.d.ts.map +1 -0
  23. package/resources/v1/{events/credits → credits}/grants.js +3 -3
  24. package/resources/v1/credits/grants.js.map +1 -0
  25. package/resources/v1/{events/credits → credits}/grants.mjs +3 -3
  26. package/resources/v1/credits/grants.mjs.map +1 -0
  27. package/resources/v1/credits/index.d.mts +4 -0
  28. package/resources/v1/credits/index.d.mts.map +1 -0
  29. package/resources/v1/credits/index.d.ts +4 -0
  30. package/resources/v1/credits/index.d.ts.map +1 -0
  31. package/resources/v1/credits/index.js.map +1 -0
  32. package/resources/v1/credits/index.mjs.map +1 -0
  33. package/resources/v1/credits.d.mts.map +1 -0
  34. package/resources/v1/credits.d.ts.map +1 -0
  35. package/resources/v1/{events/credits.js → credits.js} +1 -1
  36. package/resources/v1/credits.js.map +1 -0
  37. package/resources/v1/credits.mjs.map +1 -0
  38. package/resources/v1/events.d.mts +65 -1
  39. package/resources/v1/events.d.mts.map +1 -1
  40. package/resources/v1/events.d.ts +65 -1
  41. package/resources/v1/events.d.ts.map +1 -1
  42. package/resources/v1/events.js +15 -2
  43. package/resources/v1/events.js.map +1 -1
  44. package/resources/v1/events.mjs +13 -1
  45. package/resources/v1/events.mjs.map +1 -1
  46. package/resources/v1/index.d.mts +2 -1
  47. package/resources/v1/index.d.mts.map +1 -1
  48. package/resources/v1/index.d.ts +2 -1
  49. package/resources/v1/index.d.ts.map +1 -1
  50. package/resources/v1/index.js +7 -5
  51. package/resources/v1/index.js.map +1 -1
  52. package/resources/v1/index.mjs +2 -1
  53. package/resources/v1/index.mjs.map +1 -1
  54. package/resources/v1/subscriptions/subscriptions.d.mts +6 -6
  55. package/resources/v1/subscriptions/subscriptions.d.ts +6 -6
  56. package/resources/v1/v1.d.mts +6 -2
  57. package/resources/v1/v1.d.mts.map +1 -1
  58. package/resources/v1/v1.d.ts +6 -2
  59. package/resources/v1/v1.d.ts.map +1 -1
  60. package/resources/v1/v1.js +6 -2
  61. package/resources/v1/v1.js.map +1 -1
  62. package/resources/v1/v1.mjs +6 -2
  63. package/resources/v1/v1.mjs.map +1 -1
  64. package/src/resources/v1/{events/credits → credits}/credits.ts +6 -12
  65. package/src/resources/v1/{events/credits → credits}/custom-currencies.ts +13 -256
  66. package/src/resources/v1/{events/credits → credits}/grants.ts +5 -5
  67. package/src/resources/v1/{events/credits → credits}/index.ts +1 -4
  68. package/src/resources/v1/events.ts +75 -1
  69. package/src/resources/v1/index.ts +11 -1
  70. package/src/resources/v1/subscriptions/subscriptions.ts +6 -6
  71. package/src/resources/v1/v1.ts +26 -2
  72. package/src/version.ts +1 -1
  73. package/version.d.mts +1 -1
  74. package/version.d.ts +1 -1
  75. package/version.js +1 -1
  76. package/version.mjs +1 -1
  77. package/resources/v1/events/credits/credits.d.mts.map +0 -1
  78. package/resources/v1/events/credits/credits.d.ts.map +0 -1
  79. package/resources/v1/events/credits/credits.js.map +0 -1
  80. package/resources/v1/events/credits/credits.mjs.map +0 -1
  81. package/resources/v1/events/credits/custom-currencies.d.mts.map +0 -1
  82. package/resources/v1/events/credits/custom-currencies.d.ts.map +0 -1
  83. package/resources/v1/events/credits/custom-currencies.js.map +0 -1
  84. package/resources/v1/events/credits/custom-currencies.mjs.map +0 -1
  85. package/resources/v1/events/credits/grants.d.mts.map +0 -1
  86. package/resources/v1/events/credits/grants.d.ts.map +0 -1
  87. package/resources/v1/events/credits/grants.js.map +0 -1
  88. package/resources/v1/events/credits/grants.mjs.map +0 -1
  89. package/resources/v1/events/credits/index.d.mts +0 -4
  90. package/resources/v1/events/credits/index.d.mts.map +0 -1
  91. package/resources/v1/events/credits/index.d.ts +0 -4
  92. package/resources/v1/events/credits/index.d.ts.map +0 -1
  93. package/resources/v1/events/credits/index.js.map +0 -1
  94. package/resources/v1/events/credits/index.mjs.map +0 -1
  95. package/resources/v1/events/credits.d.mts.map +0 -1
  96. package/resources/v1/events/credits.d.ts.map +0 -1
  97. package/resources/v1/events/credits.js.map +0 -1
  98. package/resources/v1/events/credits.mjs.map +0 -1
  99. package/resources/v1/events/events.d.mts +0 -70
  100. package/resources/v1/events/events.d.mts.map +0 -1
  101. package/resources/v1/events/events.d.ts +0 -70
  102. package/resources/v1/events/events.d.ts.map +0 -1
  103. package/resources/v1/events/events.js +0 -27
  104. package/resources/v1/events/events.js.map +0 -1
  105. package/resources/v1/events/events.mjs +0 -22
  106. package/resources/v1/events/events.mjs.map +0 -1
  107. package/resources/v1/events/index.d.mts +0 -3
  108. package/resources/v1/events/index.d.mts.map +0 -1
  109. package/resources/v1/events/index.d.ts +0 -3
  110. package/resources/v1/events/index.d.ts.map +0 -1
  111. package/resources/v1/events/index.js +0 -9
  112. package/resources/v1/events/index.js.map +0 -1
  113. package/resources/v1/events/index.mjs +0 -4
  114. package/resources/v1/events/index.mjs.map +0 -1
  115. package/src/resources/v1/events/events.ts +0 -103
  116. package/src/resources/v1/events/index.ts +0 -13
  117. /package/resources/v1/{events/credits → credits}/index.js +0 -0
  118. /package/resources/v1/{events/credits → credits}/index.mjs +0 -0
  119. /package/resources/v1/{events/credits.d.mts → credits.d.mts} +0 -0
  120. /package/resources/v1/{events/credits.d.ts → credits.d.ts} +0 -0
  121. /package/resources/v1/{events/credits.mjs → credits.mjs} +0 -0
  122. /package/src/resources/v1/{events/credits.ts → credits.ts} +0 -0
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../../core/resource';
4
- import { APIPromise } from '../../../../core/api-promise';
5
- import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../../core/pagination';
6
- import { RequestOptions } from '../../../../internal/request-options';
7
- import { path } from '../../../../internal/utils/path';
3
+ import { APIResource } from '../../../core/resource';
4
+ import { APIPromise } from '../../../core/api-promise';
5
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
6
+ import { RequestOptions } from '../../../internal/request-options';
7
+ import { path } from '../../../internal/utils/path';
8
8
 
9
9
  /**
10
10
  * Operations related to custom currencies
@@ -13,10 +13,7 @@ export class CustomCurrencies extends APIResource {
13
13
  /**
14
14
  * Creates a new custom currency in the environment.
15
15
  */
16
- create(
17
- body: CustomCurrencyCreateParams,
18
- options?: RequestOptions,
19
- ): APIPromise<CustomCurrencyCreateResponse> {
16
+ create(body: CustomCurrencyCreateParams, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
20
17
  return this._client.post('/api/v1/credits/custom-currencies', { body, ...options });
21
18
  }
22
19
 
@@ -27,7 +24,7 @@ export class CustomCurrencies extends APIResource {
27
24
  currencyID: string,
28
25
  body: CustomCurrencyUpdateParams,
29
26
  options?: RequestOptions,
30
- ): APIPromise<CustomCurrencyUpdateResponse> {
27
+ ): APIPromise<CustomCurrencyResponse> {
31
28
  return this._client.patch(path`/api/v1/credits/custom-currencies/${currencyID}`, { body, ...options });
32
29
  }
33
30
 
@@ -52,7 +49,7 @@ export class CustomCurrencies extends APIResource {
52
49
  * active plan or addon — use the associated-entities endpoint first to inspect
53
50
  * dependencies.
54
51
  */
55
- archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyArchiveResponse> {
52
+ archive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
56
53
  return this._client.post(path`/api/v1/credits/custom-currencies/${currencyID}/archive`, options);
57
54
  }
58
55
 
@@ -74,7 +71,7 @@ export class CustomCurrencies extends APIResource {
74
71
  * Restores a previously archived custom currency. Fails if another active currency
75
72
  * with the same ID already exists.
76
73
  */
77
- unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyUnarchiveResponse> {
74
+ unarchive(currencyID: string, options?: RequestOptions): APIPromise<CustomCurrencyResponse> {
78
75
  return this._client.post(path`/api/v1/credits/custom-currencies/${currencyID}/unarchive`, options);
79
76
  }
80
77
  }
@@ -84,93 +81,14 @@ export type CustomCurrencyListResponsesMyCursorIDPage = MyCursorIDPage<CustomCur
84
81
  /**
85
82
  * Response object
86
83
  */
87
- export interface CustomCurrencyCreateResponse {
84
+ export interface CustomCurrencyResponse {
88
85
  /**
89
86
  * A custom currency used to denominate credit-based entitlements and pricing
90
87
  */
91
- data: CustomCurrencyCreateResponse.Data;
88
+ data: CustomCurrencyResponse.Data;
92
89
  }
93
90
 
94
- export namespace CustomCurrencyCreateResponse {
95
- /**
96
- * A custom currency used to denominate credit-based entitlements and pricing
97
- */
98
- export interface Data {
99
- /**
100
- * The unique identifier for the custom currency
101
- */
102
- id: string;
103
-
104
- /**
105
- * Timestamp of when the record was deleted
106
- */
107
- archivedAt: string | null;
108
-
109
- /**
110
- * Timestamp of when the record was created
111
- */
112
- createdAt: string;
113
-
114
- /**
115
- * Description of the currency
116
- */
117
- description: string | null;
118
-
119
- /**
120
- * The display name of the custom currency
121
- */
122
- displayName: string;
123
-
124
- /**
125
- * Metadata associated with the entity
126
- */
127
- metadata: { [key: string]: string };
128
-
129
- /**
130
- * The symbol used to represent the custom currency
131
- */
132
- symbol: string | null;
133
-
134
- /**
135
- * Singular and plural unit labels for a custom currency
136
- */
137
- units: Data.Units | null;
138
-
139
- /**
140
- * Timestamp of when the record was last updated
141
- */
142
- updatedAt: string;
143
- }
144
-
145
- export namespace Data {
146
- /**
147
- * Singular and plural unit labels for a custom currency
148
- */
149
- export interface Units {
150
- /**
151
- * Plural form of the unit label
152
- */
153
- plural: string | null;
154
-
155
- /**
156
- * Singular form of the unit label
157
- */
158
- singular: string | null;
159
- }
160
- }
161
- }
162
-
163
- /**
164
- * Response object
165
- */
166
- export interface CustomCurrencyUpdateResponse {
167
- /**
168
- * A custom currency used to denominate credit-based entitlements and pricing
169
- */
170
- data: CustomCurrencyUpdateResponse.Data;
171
- }
172
-
173
- export namespace CustomCurrencyUpdateResponse {
91
+ export namespace CustomCurrencyResponse {
174
92
  /**
175
93
  * A custom currency used to denominate credit-based entitlements and pricing
176
94
  */
@@ -306,85 +224,6 @@ export namespace CustomCurrencyListResponse {
306
224
  }
307
225
  }
308
226
 
309
- /**
310
- * Response object
311
- */
312
- export interface CustomCurrencyArchiveResponse {
313
- /**
314
- * A custom currency used to denominate credit-based entitlements and pricing
315
- */
316
- data: CustomCurrencyArchiveResponse.Data;
317
- }
318
-
319
- export namespace CustomCurrencyArchiveResponse {
320
- /**
321
- * A custom currency used to denominate credit-based entitlements and pricing
322
- */
323
- export interface Data {
324
- /**
325
- * The unique identifier for the custom currency
326
- */
327
- id: string;
328
-
329
- /**
330
- * Timestamp of when the record was deleted
331
- */
332
- archivedAt: string | null;
333
-
334
- /**
335
- * Timestamp of when the record was created
336
- */
337
- createdAt: string;
338
-
339
- /**
340
- * Description of the currency
341
- */
342
- description: string | null;
343
-
344
- /**
345
- * The display name of the custom currency
346
- */
347
- displayName: string;
348
-
349
- /**
350
- * Metadata associated with the entity
351
- */
352
- metadata: { [key: string]: string };
353
-
354
- /**
355
- * The symbol used to represent the custom currency
356
- */
357
- symbol: string | null;
358
-
359
- /**
360
- * Singular and plural unit labels for a custom currency
361
- */
362
- units: Data.Units | null;
363
-
364
- /**
365
- * Timestamp of when the record was last updated
366
- */
367
- updatedAt: string;
368
- }
369
-
370
- export namespace Data {
371
- /**
372
- * Singular and plural unit labels for a custom currency
373
- */
374
- export interface Units {
375
- /**
376
- * Plural form of the unit label
377
- */
378
- plural: string | null;
379
-
380
- /**
381
- * Singular form of the unit label
382
- */
383
- singular: string | null;
384
- }
385
- }
386
- }
387
-
388
227
  /**
389
228
  * List of entities (plans or addons) that reference a custom currency
390
229
  */
@@ -414,85 +253,6 @@ export namespace CustomCurrencyListAssociatedEntitiesResponse {
414
253
  }
415
254
  }
416
255
 
417
- /**
418
- * Response object
419
- */
420
- export interface CustomCurrencyUnarchiveResponse {
421
- /**
422
- * A custom currency used to denominate credit-based entitlements and pricing
423
- */
424
- data: CustomCurrencyUnarchiveResponse.Data;
425
- }
426
-
427
- export namespace CustomCurrencyUnarchiveResponse {
428
- /**
429
- * A custom currency used to denominate credit-based entitlements and pricing
430
- */
431
- export interface Data {
432
- /**
433
- * The unique identifier for the custom currency
434
- */
435
- id: string;
436
-
437
- /**
438
- * Timestamp of when the record was deleted
439
- */
440
- archivedAt: string | null;
441
-
442
- /**
443
- * Timestamp of when the record was created
444
- */
445
- createdAt: string;
446
-
447
- /**
448
- * Description of the currency
449
- */
450
- description: string | null;
451
-
452
- /**
453
- * The display name of the custom currency
454
- */
455
- displayName: string;
456
-
457
- /**
458
- * Metadata associated with the entity
459
- */
460
- metadata: { [key: string]: string };
461
-
462
- /**
463
- * The symbol used to represent the custom currency
464
- */
465
- symbol: string | null;
466
-
467
- /**
468
- * Singular and plural unit labels for a custom currency
469
- */
470
- units: Data.Units | null;
471
-
472
- /**
473
- * Timestamp of when the record was last updated
474
- */
475
- updatedAt: string;
476
- }
477
-
478
- export namespace Data {
479
- /**
480
- * Singular and plural unit labels for a custom currency
481
- */
482
- export interface Units {
483
- /**
484
- * Plural form of the unit label
485
- */
486
- plural: string | null;
487
-
488
- /**
489
- * Singular form of the unit label
490
- */
491
- singular: string | null;
492
- }
493
- }
494
- }
495
-
496
256
  export interface CustomCurrencyCreateParams {
497
257
  /**
498
258
  * The unique identifier for the new custom currency
@@ -601,12 +361,9 @@ export interface CustomCurrencyListParams extends MyCursorIDPageParams {
601
361
 
602
362
  export declare namespace CustomCurrencies {
603
363
  export {
604
- type CustomCurrencyCreateResponse as CustomCurrencyCreateResponse,
605
- type CustomCurrencyUpdateResponse as CustomCurrencyUpdateResponse,
364
+ type CustomCurrencyResponse as CustomCurrencyResponse,
606
365
  type CustomCurrencyListResponse as CustomCurrencyListResponse,
607
- type CustomCurrencyArchiveResponse as CustomCurrencyArchiveResponse,
608
366
  type CustomCurrencyListAssociatedEntitiesResponse as CustomCurrencyListAssociatedEntitiesResponse,
609
- type CustomCurrencyUnarchiveResponse as CustomCurrencyUnarchiveResponse,
610
367
  type CustomCurrencyListResponsesMyCursorIDPage as CustomCurrencyListResponsesMyCursorIDPage,
611
368
  type CustomCurrencyCreateParams as CustomCurrencyCreateParams,
612
369
  type CustomCurrencyUpdateParams as CustomCurrencyUpdateParams,
@@ -1,10 +1,10 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- import { APIResource } from '../../../../core/resource';
4
- import { APIPromise } from '../../../../core/api-promise';
5
- import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../../core/pagination';
6
- import { RequestOptions } from '../../../../internal/request-options';
7
- import { path } from '../../../../internal/utils/path';
3
+ import { APIResource } from '../../../core/resource';
4
+ import { APIPromise } from '../../../core/api-promise';
5
+ import { MyCursorIDPage, type MyCursorIDPageParams, PagePromise } from '../../../core/pagination';
6
+ import { RequestOptions } from '../../../internal/request-options';
7
+ import { path } from '../../../internal/utils/path';
8
8
 
9
9
  /**
10
10
  * Operations related to credit grants
@@ -12,12 +12,9 @@ export {
12
12
  } from './credits';
13
13
  export {
14
14
  CustomCurrencies,
15
- type CustomCurrencyCreateResponse,
16
- type CustomCurrencyUpdateResponse,
15
+ type CustomCurrencyResponse,
17
16
  type CustomCurrencyListResponse,
18
- type CustomCurrencyArchiveResponse,
19
17
  type CustomCurrencyListAssociatedEntitiesResponse,
20
- type CustomCurrencyUnarchiveResponse,
21
18
  type CustomCurrencyCreateParams,
22
19
  type CustomCurrencyUpdateParams,
23
20
  type CustomCurrencyListParams,
@@ -1,3 +1,77 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- export * from './events/index';
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+
7
+ /**
8
+ * Operations related to usage & metering
9
+ */
10
+ export class Events extends APIResource {
11
+ /**
12
+ * Reports raw usage events for event-based metering. Events are ingested
13
+ * asynchronously and aggregated into usage totals.
14
+ */
15
+ report(body: EventReportParams, options?: RequestOptions): APIPromise<EventReportResponse> {
16
+ return this._client.post('/api/v1/events', { body, ...options });
17
+ }
18
+ }
19
+
20
+ /**
21
+ * Response object
22
+ */
23
+ export interface EventReportResponse {
24
+ /**
25
+ * Empty success response confirming that events were successfully ingested and
26
+ * queued for processing by Stigg's metering system.
27
+ */
28
+ data: unknown;
29
+ }
30
+
31
+ export interface EventReportParams {
32
+ /**
33
+ * A list of usage events to report
34
+ */
35
+ events: Array<EventReportParams.Event>;
36
+ }
37
+
38
+ export namespace EventReportParams {
39
+ /**
40
+ * Raw usage event
41
+ */
42
+ export interface Event {
43
+ /**
44
+ * Customer id
45
+ */
46
+ customerId: string;
47
+
48
+ /**
49
+ * The name of the usage event
50
+ */
51
+ eventName: string;
52
+
53
+ /**
54
+ * Idempotency key
55
+ */
56
+ idempotencyKey: string;
57
+
58
+ /**
59
+ * Dimensions associated with the usage event
60
+ */
61
+ dimensions?: { [key: string]: string | number | boolean };
62
+
63
+ /**
64
+ * Resource id
65
+ */
66
+ resourceId?: string | null;
67
+
68
+ /**
69
+ * Timestamp
70
+ */
71
+ timestamp?: string;
72
+ }
73
+ }
74
+
75
+ export declare namespace Events {
76
+ export { type EventReportResponse as EventReportResponse, type EventReportParams as EventReportParams };
77
+ }
@@ -21,6 +21,16 @@ export {
21
21
  type CouponUpdateCouponParams,
22
22
  type CouponListResponsesMyCursorIDPage,
23
23
  } from './coupons';
24
+ export {
25
+ Credits,
26
+ type CreditGetAutoRechargeResponse,
27
+ type CreditGetUsageResponse,
28
+ type CreditListLedgerResponse,
29
+ type CreditGetAutoRechargeParams,
30
+ type CreditGetUsageParams,
31
+ type CreditListLedgerParams,
32
+ type CreditListLedgerResponsesMyCursorIDPage,
33
+ } from './credits/index';
24
34
  export {
25
35
  Customers,
26
36
  type CustomerIntegrationResponse,
@@ -40,7 +50,7 @@ export {
40
50
  type CustomerListResponsesMyCursorIDPage,
41
51
  type CustomerListResourcesResponsesMyCursorIDPage,
42
52
  } from './customers/index';
43
- export { Events, type EventReportResponse, type EventReportParams } from './events/index';
53
+ export { Events, type EventReportResponse, type EventReportParams } from './events';
44
54
  export {
45
55
  Features,
46
56
  type Feature,
@@ -4789,7 +4789,7 @@ export namespace SubscriptionImportParams {
4789
4789
  id: string;
4790
4790
 
4791
4791
  /**
4792
- * Charge quantity
4792
+ * Charge quantity. Minimum is 0 (zero is allowed).
4793
4793
  */
4794
4794
  quantity: number;
4795
4795
 
@@ -4885,7 +4885,7 @@ export interface SubscriptionPreviewParams {
4885
4885
  trialOverrideConfiguration?: SubscriptionPreviewParams.TrialOverrideConfiguration;
4886
4886
 
4887
4887
  /**
4888
- * Unit quantity for per-unit pricing
4888
+ * Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
4889
4889
  */
4890
4890
  unitQuantity?: number;
4891
4891
  }
@@ -5118,7 +5118,7 @@ export namespace SubscriptionPreviewParams {
5118
5118
  featureId: string;
5119
5119
 
5120
5120
  /**
5121
- * Quantity of feature units
5121
+ * Quantity of feature units. Minimum is 0 (zero is allowed).
5122
5122
  */
5123
5123
  quantity: number;
5124
5124
  }
@@ -5227,7 +5227,7 @@ export namespace SubscriptionPreviewParams {
5227
5227
  id: string;
5228
5228
 
5229
5229
  /**
5230
- * Charge quantity
5230
+ * Charge quantity. Minimum is 0 (zero is allowed).
5231
5231
  */
5232
5232
  quantity: number;
5233
5233
 
@@ -5367,7 +5367,7 @@ export interface SubscriptionProvisionParams {
5367
5367
  trialOverrideConfiguration?: SubscriptionProvisionParams.TrialOverrideConfiguration;
5368
5368
 
5369
5369
  /**
5370
- * Unit quantity
5370
+ * Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed).
5371
5371
  */
5372
5372
  unitQuantity?: number;
5373
5373
  }
@@ -5703,7 +5703,7 @@ export namespace SubscriptionProvisionParams {
5703
5703
  id: string;
5704
5704
 
5705
5705
  /**
5706
- * Charge quantity
5706
+ * Charge quantity. Minimum is 0 (zero is allowed).
5707
5707
  */
5708
5708
  quantity: number;
5709
5709
 
@@ -11,6 +11,8 @@ import {
11
11
  CouponUpdateCouponParams,
12
12
  Coupons,
13
13
  } from './coupons';
14
+ import * as EventsAPI from './events';
15
+ import { EventReportParams, EventReportResponse, Events } from './events';
14
16
  import * as FeaturesAPI from './features';
15
17
  import {
16
18
  Feature,
@@ -53,6 +55,17 @@ import {
53
55
  AddonUpdateParams,
54
56
  Addons,
55
57
  } from './addons/addons';
58
+ import * as CreditsAPI from './credits/credits';
59
+ import {
60
+ CreditGetAutoRechargeParams,
61
+ CreditGetAutoRechargeResponse,
62
+ CreditGetUsageParams,
63
+ CreditGetUsageResponse,
64
+ CreditListLedgerParams,
65
+ CreditListLedgerResponse,
66
+ CreditListLedgerResponsesMyCursorIDPage,
67
+ Credits,
68
+ } from './credits/credits';
56
69
  import * as CustomersAPI from './customers/customers';
57
70
  import {
58
71
  CustomerCheckEntitlementParams,
@@ -73,8 +86,6 @@ import {
73
86
  CustomerUpdateParams,
74
87
  Customers,
75
88
  } from './customers/customers';
76
- import * as EventsAPI from './events/events';
77
- import { EventReportParams, EventReportResponse, Events } from './events/events';
78
89
  import * as PlansAPI from './plans/plans';
79
90
  import {
80
91
  Plan,
@@ -113,6 +124,7 @@ export class V1 extends APIResource {
113
124
  subscriptions: SubscriptionsAPI.Subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
114
125
  coupons: CouponsAPI.Coupons = new CouponsAPI.Coupons(this._client);
115
126
  events: EventsAPI.Events = new EventsAPI.Events(this._client);
127
+ credits: CreditsAPI.Credits = new CreditsAPI.Credits(this._client);
116
128
  features: FeaturesAPI.Features = new FeaturesAPI.Features(this._client);
117
129
  addons: AddonsAPI.Addons = new AddonsAPI.Addons(this._client);
118
130
  plans: PlansAPI.Plans = new PlansAPI.Plans(this._client);
@@ -124,6 +136,7 @@ V1.Customers = Customers;
124
136
  V1.Subscriptions = Subscriptions;
125
137
  V1.Coupons = Coupons;
126
138
  V1.Events = Events;
139
+ V1.Credits = Credits;
127
140
  V1.Features = Features;
128
141
  V1.Addons = Addons;
129
142
  V1.Plans = Plans;
@@ -186,6 +199,17 @@ export declare namespace V1 {
186
199
  type EventReportParams as EventReportParams,
187
200
  };
188
201
 
202
+ export {
203
+ Credits as Credits,
204
+ type CreditGetAutoRechargeResponse as CreditGetAutoRechargeResponse,
205
+ type CreditGetUsageResponse as CreditGetUsageResponse,
206
+ type CreditListLedgerResponse as CreditListLedgerResponse,
207
+ type CreditListLedgerResponsesMyCursorIDPage as CreditListLedgerResponsesMyCursorIDPage,
208
+ type CreditGetAutoRechargeParams as CreditGetAutoRechargeParams,
209
+ type CreditGetUsageParams as CreditGetUsageParams,
210
+ type CreditListLedgerParams as CreditListLedgerParams,
211
+ };
212
+
189
213
  export {
190
214
  Features as Features,
191
215
  type Feature as Feature,
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-beta.1'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.3'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-beta.1";
1
+ export declare const VERSION = "0.1.0-beta.3";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-beta.1";
1
+ export declare const VERSION = "0.1.0-beta.3";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.1.0-beta.1'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-beta.3'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.1.0-beta.1'; // x-release-please-version
1
+ export const VERSION = '0.1.0-beta.3'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credits.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/credits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,+BAA+B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC7B;OACM,KAAK,SAAS;OACd,EACL,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,iBAAiB,EACjB,gCAAgC,EAChC,MAAM,EACP;OACM,EAAE,UAAU,EAAE;OACd,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,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,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,4CAA4C,IAAI,4CAA4C,EACjG,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,yCAAyC,IAAI,yCAAyC,EAC3F,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../../src/resources/v1/events/credits/credits.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,mBAAmB;OACxB,EACL,gBAAgB,EAChB,6BAA6B,EAC7B,0BAA0B,EAC1B,4BAA4B,EAC5B,4CAA4C,EAC5C,wBAAwB,EACxB,0BAA0B,EAC1B,yCAAyC,EACzC,+BAA+B,EAC/B,0BAA0B,EAC1B,4BAA4B,EAC7B;OACM,KAAK,SAAS;OACd,EACL,mBAAmB,EACnB,iBAAiB,EAC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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,cAAwC,CAAA,EAAE;YACjG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AA0SD,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;AACxB,OAAO,CAAC,gBAAgB,GAAG,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"custom-currencies.d.mts","sourceRoot":"","sources":["../../../../src/resources/v1/events/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,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;OAEG;IACH,MAAM,CACJ,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,4BAA4B,CAAC;IAI3C;;;;OAI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