@stigg/typescript 0.1.0-alpha.3 → 0.1.0-alpha.4

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 (124) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/client.d.mts +2 -2
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +2 -2
  5. package/client.d.ts.map +1 -1
  6. package/client.js.map +1 -1
  7. package/client.mjs +1 -1
  8. package/client.mjs.map +1 -1
  9. package/package.json +1 -1
  10. package/resources/index.d.mts +1 -1
  11. package/resources/index.d.mts.map +1 -1
  12. package/resources/index.d.ts +1 -1
  13. package/resources/index.d.ts.map +1 -1
  14. package/resources/index.js.map +1 -1
  15. package/resources/index.mjs +1 -1
  16. package/resources/index.mjs.map +1 -1
  17. package/resources/v1/coupons.d.mts +6 -89
  18. package/resources/v1/coupons.d.mts.map +1 -1
  19. package/resources/v1/coupons.d.ts +6 -89
  20. package/resources/v1/coupons.d.ts.map +1 -1
  21. package/resources/v1/customers/customers.d.mts +106 -46
  22. package/resources/v1/customers/customers.d.mts.map +1 -1
  23. package/resources/v1/customers/customers.d.ts +106 -46
  24. package/resources/v1/customers/customers.d.ts.map +1 -1
  25. package/resources/v1/customers/customers.js +16 -10
  26. package/resources/v1/customers/customers.js.map +1 -1
  27. package/resources/v1/customers/customers.mjs +16 -10
  28. package/resources/v1/customers/customers.mjs.map +1 -1
  29. package/resources/v1/customers/index.d.mts +2 -2
  30. package/resources/v1/customers/index.d.mts.map +1 -1
  31. package/resources/v1/customers/index.d.ts +2 -2
  32. package/resources/v1/customers/index.d.ts.map +1 -1
  33. package/resources/v1/customers/index.js +3 -3
  34. package/resources/v1/customers/index.js.map +1 -1
  35. package/resources/v1/customers/index.mjs +1 -1
  36. package/resources/v1/customers/index.mjs.map +1 -1
  37. package/resources/v1/customers/promotional-entitlements.d.mts +350 -0
  38. package/resources/v1/customers/promotional-entitlements.d.mts.map +1 -0
  39. package/resources/v1/customers/promotional-entitlements.d.ts +350 -0
  40. package/resources/v1/customers/promotional-entitlements.d.ts.map +1 -0
  41. package/resources/v1/customers/promotional-entitlements.js +23 -0
  42. package/resources/v1/customers/promotional-entitlements.js.map +1 -0
  43. package/resources/v1/customers/promotional-entitlements.mjs +19 -0
  44. package/resources/v1/customers/promotional-entitlements.mjs.map +1 -0
  45. package/resources/v1/events.d.mts +62 -0
  46. package/resources/v1/events.d.mts.map +1 -0
  47. package/resources/v1/events.d.ts +62 -0
  48. package/resources/v1/events.d.ts.map +1 -0
  49. package/resources/v1/events.js +15 -0
  50. package/resources/v1/events.js.map +1 -0
  51. package/resources/v1/events.mjs +11 -0
  52. package/resources/v1/events.mjs.map +1 -0
  53. package/resources/v1/index.d.mts +6 -4
  54. package/resources/v1/index.d.mts.map +1 -1
  55. package/resources/v1/index.d.ts +6 -4
  56. package/resources/v1/index.d.ts.map +1 -1
  57. package/resources/v1/index.js +5 -1
  58. package/resources/v1/index.js.map +1 -1
  59. package/resources/v1/index.mjs +3 -1
  60. package/resources/v1/index.mjs.map +1 -1
  61. package/resources/v1/subscriptions/future-update.d.mts +6 -20
  62. package/resources/v1/subscriptions/future-update.d.mts.map +1 -1
  63. package/resources/v1/subscriptions/future-update.d.ts +6 -20
  64. package/resources/v1/subscriptions/future-update.d.ts.map +1 -1
  65. package/resources/v1/subscriptions/future-update.js.map +1 -1
  66. package/resources/v1/subscriptions/future-update.mjs.map +1 -1
  67. package/resources/v1/subscriptions/index.d.mts +2 -2
  68. package/resources/v1/subscriptions/index.d.mts.map +1 -1
  69. package/resources/v1/subscriptions/index.d.ts +2 -2
  70. package/resources/v1/subscriptions/index.d.ts.map +1 -1
  71. package/resources/v1/subscriptions/index.js.map +1 -1
  72. package/resources/v1/subscriptions/index.mjs +1 -1
  73. package/resources/v1/subscriptions/index.mjs.map +1 -1
  74. package/resources/v1/subscriptions/subscriptions.d.mts +963 -1049
  75. package/resources/v1/subscriptions/subscriptions.d.mts.map +1 -1
  76. package/resources/v1/subscriptions/subscriptions.d.ts +963 -1049
  77. package/resources/v1/subscriptions/subscriptions.d.ts.map +1 -1
  78. package/resources/v1/subscriptions/subscriptions.js +24 -6
  79. package/resources/v1/subscriptions/subscriptions.js.map +1 -1
  80. package/resources/v1/subscriptions/subscriptions.mjs +25 -7
  81. package/resources/v1/subscriptions/subscriptions.mjs.map +1 -1
  82. package/resources/v1/usage.d.mts +229 -0
  83. package/resources/v1/usage.d.mts.map +1 -0
  84. package/resources/v1/usage.d.ts +229 -0
  85. package/resources/v1/usage.d.ts.map +1 -0
  86. package/resources/v1/usage.js +23 -0
  87. package/resources/v1/usage.js.map +1 -0
  88. package/resources/v1/usage.mjs +19 -0
  89. package/resources/v1/usage.mjs.map +1 -0
  90. package/resources/v1/v1.d.mts +14 -172
  91. package/resources/v1/v1.d.mts.map +1 -1
  92. package/resources/v1/v1.d.ts +14 -172
  93. package/resources/v1/v1.d.ts.map +1 -1
  94. package/resources/v1/v1.js +8 -12
  95. package/resources/v1/v1.js.map +1 -1
  96. package/resources/v1/v1.mjs +8 -12
  97. package/resources/v1/v1.mjs.map +1 -1
  98. package/src/client.ts +2 -14
  99. package/src/resources/index.ts +1 -7
  100. package/src/resources/v1/coupons.ts +6 -222
  101. package/src/resources/v1/customers/customers.ts +142 -57
  102. package/src/resources/v1/customers/index.ts +10 -2
  103. package/src/resources/v1/customers/promotional-entitlements.ts +466 -0
  104. package/src/resources/v1/events.ts +73 -0
  105. package/src/resources/v1/index.ts +19 -15
  106. package/src/resources/v1/subscriptions/future-update.ts +6 -28
  107. package/src/resources/v1/subscriptions/index.ts +8 -11
  108. package/src/resources/v1/subscriptions/subscriptions.ts +2541 -2304
  109. package/src/resources/v1/usage.ts +283 -0
  110. package/src/resources/v1/v1.ts +50 -220
  111. package/src/version.ts +1 -1
  112. package/version.d.mts +1 -1
  113. package/version.d.ts +1 -1
  114. package/version.js +1 -1
  115. package/version.mjs +1 -1
  116. package/resources/v1/customers/usage.d.mts +0 -4
  117. package/resources/v1/customers/usage.d.mts.map +0 -1
  118. package/resources/v1/customers/usage.d.ts +0 -4
  119. package/resources/v1/customers/usage.d.ts.map +0 -1
  120. package/resources/v1/customers/usage.js +0 -9
  121. package/resources/v1/customers/usage.js.map +0 -1
  122. package/resources/v1/customers/usage.mjs +0 -5
  123. package/resources/v1/customers/usage.mjs.map +0 -1
  124. package/src/resources/v1/customers/usage.ts +0 -5
@@ -0,0 +1,283 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../../core/resource';
4
+ import { APIPromise } from '../../core/api-promise';
5
+ import { RequestOptions } from '../../internal/request-options';
6
+ import { path } from '../../internal/utils/path';
7
+
8
+ export class Usage extends APIResource {
9
+ /**
10
+ * Get usage history
11
+ */
12
+ history(
13
+ featureID: string,
14
+ params: UsageHistoryParams,
15
+ options?: RequestOptions,
16
+ ): APIPromise<UsageHistoryResponse> {
17
+ const { customerId, ...query } = params;
18
+ return this._client.get(path`/api/v1/usage/${customerId}/history/${featureID}`, { query, ...options });
19
+ }
20
+
21
+ /**
22
+ * Report usage measurements
23
+ */
24
+ report(body: UsageReportParams, options?: RequestOptions): APIPromise<UsageReportResponse> {
25
+ return this._client.post('/api/v1/usage', { body, ...options });
26
+ }
27
+ }
28
+
29
+ /**
30
+ * Response object
31
+ */
32
+ export interface UsageHistoryResponse {
33
+ /**
34
+ * Historical usage time series
35
+ */
36
+ data: UsageHistoryResponse.Data;
37
+ }
38
+
39
+ export namespace UsageHistoryResponse {
40
+ /**
41
+ * Historical usage time series
42
+ */
43
+ export interface Data {
44
+ /**
45
+ * Markers for events that affecting feature usage
46
+ */
47
+ markers: Array<Data.Marker>;
48
+
49
+ /**
50
+ * Series of usage history
51
+ */
52
+ series: Array<Data.Series>;
53
+ }
54
+
55
+ export namespace Data {
56
+ /**
57
+ * Usage reset or change marker
58
+ */
59
+ export interface Marker {
60
+ /**
61
+ * Timestamp of the marker
62
+ */
63
+ timestamp: string;
64
+
65
+ /**
66
+ * Type of marker for a usage history point
67
+ */
68
+ type: 'PERIODIC_RESET' | 'SUBSCRIPTION_CHANGE_RESET';
69
+ }
70
+
71
+ /**
72
+ * Usage data points with tags
73
+ */
74
+ export interface Series {
75
+ /**
76
+ * Points in the usage history series
77
+ */
78
+ points: Array<Series.Point>;
79
+
80
+ /**
81
+ * Tags for the usage history series
82
+ */
83
+ tags: Array<Series.Tag>;
84
+ }
85
+
86
+ export namespace Series {
87
+ /**
88
+ * Single usage data point
89
+ */
90
+ export interface Point {
91
+ /**
92
+ * Indicates whether there was usage reset in this point, see `markers` for details
93
+ */
94
+ isResetPoint: boolean;
95
+
96
+ /**
97
+ * Timestamp of the usage history point
98
+ */
99
+ timestamp: string;
100
+
101
+ /**
102
+ * Value of the usage history point
103
+ */
104
+ value: number;
105
+ }
106
+
107
+ /**
108
+ * Grouping tag key-value
109
+ */
110
+ export interface Tag {
111
+ /**
112
+ * Key of the tag
113
+ */
114
+ key: string;
115
+
116
+ /**
117
+ * Value of the tag
118
+ */
119
+ value: string;
120
+ }
121
+ }
122
+ }
123
+ }
124
+
125
+ /**
126
+ * Response containing reported usage measurements with current usage values,
127
+ * period information, and reset dates for each measurement.
128
+ */
129
+ export interface UsageReportResponse {
130
+ /**
131
+ * Array of usage measurements with current values and period info
132
+ */
133
+ data: Array<UsageReportResponse.Data>;
134
+ }
135
+
136
+ export namespace UsageReportResponse {
137
+ /**
138
+ * Recorded usage with period info
139
+ */
140
+ export interface Data {
141
+ /**
142
+ * Unique identifier for the entity
143
+ */
144
+ id: string;
145
+
146
+ /**
147
+ * Timestamp of when the record was created
148
+ */
149
+ createdAt: string;
150
+
151
+ /**
152
+ * Customer id
153
+ */
154
+ customerId: string;
155
+
156
+ /**
157
+ * Feature id
158
+ */
159
+ featureId: string;
160
+
161
+ /**
162
+ * Timestamp
163
+ */
164
+ timestamp: string;
165
+
166
+ /**
167
+ * The usage measurement record
168
+ */
169
+ value: number;
170
+
171
+ /**
172
+ * The current measured usage value
173
+ */
174
+ currentUsage?: number | null;
175
+
176
+ /**
177
+ * The date when the next usage reset will occur
178
+ */
179
+ nextResetDate?: string | null;
180
+
181
+ /**
182
+ * Resource id
183
+ */
184
+ resourceId?: string | null;
185
+
186
+ /**
187
+ * The end date of the usage period in which this measurement resides (for
188
+ * entitlements with a reset period)
189
+ */
190
+ usagePeriodEnd?: string | null;
191
+
192
+ /**
193
+ * The start date of the usage period in which this measurement resides (for
194
+ * entitlements with a reset period)
195
+ */
196
+ usagePeriodStart?: string | null;
197
+ }
198
+ }
199
+
200
+ export interface UsageHistoryParams {
201
+ /**
202
+ * Path param: Customer id
203
+ */
204
+ customerId: string;
205
+
206
+ /**
207
+ * Query param: The start date of the range
208
+ */
209
+ startDate: string;
210
+
211
+ /**
212
+ * Query param: The end date of the range
213
+ */
214
+ endDate?: string;
215
+
216
+ /**
217
+ * Query param
218
+ */
219
+ groupBy?: string;
220
+
221
+ /**
222
+ * Query param: Resource id
223
+ */
224
+ resourceId?: string | null;
225
+ }
226
+
227
+ export interface UsageReportParams {
228
+ /**
229
+ * A list of usage reports to be submitted in bulk
230
+ */
231
+ usages: Array<UsageReportParams.Usage>;
232
+ }
233
+
234
+ export namespace UsageReportParams {
235
+ /**
236
+ * Single usage measurement
237
+ */
238
+ export interface Usage {
239
+ /**
240
+ * Customer id
241
+ */
242
+ customerId: string;
243
+
244
+ /**
245
+ * Feature id
246
+ */
247
+ featureId: string;
248
+
249
+ /**
250
+ * The value to report for usage
251
+ */
252
+ value: number;
253
+
254
+ /**
255
+ * Timestamp of when the record was created
256
+ */
257
+ createdAt?: string;
258
+
259
+ /**
260
+ * Additional dimensions for the usage report
261
+ */
262
+ dimensions?: { [key: string]: string | number | boolean };
263
+
264
+ /**
265
+ * Resource id
266
+ */
267
+ resourceId?: string | null;
268
+
269
+ /**
270
+ * The method by which the usage value should be updated
271
+ */
272
+ updateBehavior?: 'DELTA' | 'SET';
273
+ }
274
+ }
275
+
276
+ export declare namespace Usage {
277
+ export {
278
+ type UsageHistoryResponse as UsageHistoryResponse,
279
+ type UsageReportResponse as UsageReportResponse,
280
+ type UsageHistoryParams as UsageHistoryParams,
281
+ type UsageReportParams as UsageReportParams,
282
+ };
283
+ }
@@ -3,291 +3,121 @@
3
3
  import { APIResource } from '../../core/resource';
4
4
  import * as CouponsAPI from './coupons';
5
5
  import {
6
+ Coupon,
6
7
  CouponCreateParams,
7
- CouponCreateResponse,
8
8
  CouponListParams,
9
9
  CouponListResponse,
10
10
  CouponListResponsesMyCursorIDPage,
11
- CouponRetrieveResponse,
12
11
  Coupons,
13
12
  } from './coupons';
13
+ import * as EventsAPI from './events';
14
+ import { EventReportParams, EventReportResponse, Events } from './events';
15
+ import * as UsageAPI from './usage';
16
+ import {
17
+ Usage,
18
+ UsageHistoryParams,
19
+ UsageHistoryResponse,
20
+ UsageReportParams,
21
+ UsageReportResponse,
22
+ } from './usage';
14
23
  import * as CustomersAPI from './customers/customers';
15
24
  import {
16
- CustomerCreateParams,
25
+ CustomerImportParams,
26
+ CustomerImportResponse,
17
27
  CustomerListParams,
18
28
  CustomerListResponse,
19
29
  CustomerListResponsesMyCursorIDPage,
30
+ CustomerProvisionParams,
20
31
  CustomerResponse,
21
32
  CustomerUpdateParams,
22
33
  Customers,
23
34
  } from './customers/customers';
24
35
  import * as SubscriptionsAPI from './subscriptions/subscriptions';
25
36
  import {
26
- SubscriptionCreateParams,
27
- SubscriptionCreateResponse,
37
+ Subscription,
38
+ SubscriptionCancelParams,
28
39
  SubscriptionDelegateParams,
29
- SubscriptionDelegateResponse,
40
+ SubscriptionImportParams,
41
+ SubscriptionImportResponse,
30
42
  SubscriptionListParams,
31
43
  SubscriptionListResponse,
32
44
  SubscriptionListResponsesMyCursorIDPage,
33
45
  SubscriptionMigrateParams,
34
- SubscriptionMigrateResponse,
35
46
  SubscriptionPreviewParams,
36
47
  SubscriptionPreviewResponse,
37
- SubscriptionRetrieveResponse,
48
+ SubscriptionProvisionParams,
49
+ SubscriptionProvisionResponse,
38
50
  SubscriptionTransferParams,
39
- SubscriptionTransferResponse,
51
+ SubscriptionUpdateParams,
40
52
  Subscriptions,
41
53
  } from './subscriptions/subscriptions';
42
- import { APIPromise } from '../../core/api-promise';
43
- import { RequestOptions } from '../../internal/request-options';
44
54
 
45
55
  export class V1 extends APIResource {
46
56
  customers: CustomersAPI.Customers = new CustomersAPI.Customers(this._client);
47
57
  subscriptions: SubscriptionsAPI.Subscriptions = new SubscriptionsAPI.Subscriptions(this._client);
48
58
  coupons: CouponsAPI.Coupons = new CouponsAPI.Coupons(this._client);
49
-
50
- /**
51
- * Report usage events
52
- */
53
- createEvent(body: V1CreateEventParams, options?: RequestOptions): APIPromise<V1CreateEventResponse> {
54
- return this._client.post('/api/v1/events', { body, ...options });
55
- }
56
-
57
- /**
58
- * Report usage measurements
59
- */
60
- createUsage(body: V1CreateUsageParams, options?: RequestOptions): APIPromise<V1CreateUsageResponse> {
61
- return this._client.post('/api/v1/usage', { body, ...options });
62
- }
63
- }
64
-
65
- /**
66
- * Response object
67
- */
68
- export interface V1CreateEventResponse {
69
- /**
70
- * Empty success response confirming that events were successfully ingested and
71
- * queued for processing by Stigg's metering system.
72
- */
73
- data: unknown;
74
- }
75
-
76
- /**
77
- * Response containing reported usage measurements with current usage values,
78
- * period information, and reset dates for each measurement.
79
- */
80
- export interface V1CreateUsageResponse {
81
- /**
82
- * Array of usage measurements with current values and period info
83
- */
84
- data: Array<V1CreateUsageResponse.Data>;
85
- }
86
-
87
- export namespace V1CreateUsageResponse {
88
- /**
89
- * Recorded usage with period info
90
- */
91
- export interface Data {
92
- /**
93
- * Unique identifier for the entity
94
- */
95
- id: string;
96
-
97
- /**
98
- * Timestamp of when the record was created
99
- */
100
- createdAt: string;
101
-
102
- /**
103
- * Customer id
104
- */
105
- customerId: string;
106
-
107
- /**
108
- * Feature id
109
- */
110
- featureId: string;
111
-
112
- /**
113
- * Timestamp
114
- */
115
- timestamp: string;
116
-
117
- /**
118
- * The usage measurement record
119
- */
120
- value: number;
121
-
122
- /**
123
- * The current measured usage value
124
- */
125
- currentUsage?: number | null;
126
-
127
- /**
128
- * The date when the next usage reset will occur
129
- */
130
- nextResetDate?: string | null;
131
-
132
- /**
133
- * Resource id
134
- */
135
- resourceId?: string | null;
136
-
137
- /**
138
- * The end date of the usage period in which this measurement resides (for
139
- * entitlements with a reset period)
140
- */
141
- usagePeriodEnd?: string | null;
142
-
143
- /**
144
- * The start date of the usage period in which this measurement resides (for
145
- * entitlements with a reset period)
146
- */
147
- usagePeriodStart?: string | null;
148
- }
149
- }
150
-
151
- export interface V1CreateEventParams {
152
- /**
153
- * A list of usage events to report
154
- */
155
- events: Array<V1CreateEventParams.Event>;
156
- }
157
-
158
- export namespace V1CreateEventParams {
159
- /**
160
- * Raw usage event
161
- */
162
- export interface Event {
163
- /**
164
- * Customer id
165
- */
166
- customerId: string;
167
-
168
- /**
169
- * The name of the usage event
170
- */
171
- eventName: string;
172
-
173
- /**
174
- * Idempotency key
175
- */
176
- idempotencyKey: string;
177
-
178
- /**
179
- * Dimensions associated with the usage event
180
- */
181
- dimensions?: { [key: string]: string | number | boolean };
182
-
183
- /**
184
- * Resource id
185
- */
186
- resourceId?: string | null;
187
-
188
- /**
189
- * Timestamp
190
- */
191
- timestamp?: string;
192
- }
193
- }
194
-
195
- export interface V1CreateUsageParams {
196
- /**
197
- * A list of usage reports to be submitted in bulk
198
- */
199
- usages: Array<V1CreateUsageParams.Usage>;
200
- }
201
-
202
- export namespace V1CreateUsageParams {
203
- /**
204
- * Single usage measurement
205
- */
206
- export interface Usage {
207
- /**
208
- * Customer id
209
- */
210
- customerId: string;
211
-
212
- /**
213
- * Feature id
214
- */
215
- featureId: string;
216
-
217
- /**
218
- * The value to report for usage
219
- */
220
- value: number;
221
-
222
- /**
223
- * Timestamp of when the record was created
224
- */
225
- createdAt?: string;
226
-
227
- /**
228
- * Additional dimensions for the usage report
229
- */
230
- dimensions?: { [key: string]: string | number | boolean };
231
-
232
- /**
233
- * Resource id
234
- */
235
- resourceId?: string | null;
236
-
237
- /**
238
- * The method by which the usage value should be updated
239
- */
240
- updateBehavior?: 'DELTA' | 'SET';
241
- }
59
+ events: EventsAPI.Events = new EventsAPI.Events(this._client);
60
+ usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
242
61
  }
243
62
 
244
63
  V1.Customers = Customers;
245
64
  V1.Subscriptions = Subscriptions;
246
65
  V1.Coupons = Coupons;
66
+ V1.Events = Events;
67
+ V1.Usage = Usage;
247
68
 
248
69
  export declare namespace V1 {
249
- export {
250
- type V1CreateEventResponse as V1CreateEventResponse,
251
- type V1CreateUsageResponse as V1CreateUsageResponse,
252
- type V1CreateEventParams as V1CreateEventParams,
253
- type V1CreateUsageParams as V1CreateUsageParams,
254
- };
255
-
256
70
  export {
257
71
  Customers as Customers,
258
72
  type CustomerResponse as CustomerResponse,
259
73
  type CustomerListResponse as CustomerListResponse,
74
+ type CustomerImportResponse as CustomerImportResponse,
260
75
  type CustomerListResponsesMyCursorIDPage as CustomerListResponsesMyCursorIDPage,
261
- type CustomerCreateParams as CustomerCreateParams,
262
76
  type CustomerUpdateParams as CustomerUpdateParams,
263
77
  type CustomerListParams as CustomerListParams,
78
+ type CustomerImportParams as CustomerImportParams,
79
+ type CustomerProvisionParams as CustomerProvisionParams,
264
80
  };
265
81
 
266
82
  export {
267
83
  Subscriptions as Subscriptions,
268
- type SubscriptionCreateResponse as SubscriptionCreateResponse,
269
- type SubscriptionRetrieveResponse as SubscriptionRetrieveResponse,
84
+ type Subscription as Subscription,
270
85
  type SubscriptionListResponse as SubscriptionListResponse,
271
- type SubscriptionDelegateResponse as SubscriptionDelegateResponse,
272
- type SubscriptionMigrateResponse as SubscriptionMigrateResponse,
86
+ type SubscriptionImportResponse as SubscriptionImportResponse,
273
87
  type SubscriptionPreviewResponse as SubscriptionPreviewResponse,
274
- type SubscriptionTransferResponse as SubscriptionTransferResponse,
88
+ type SubscriptionProvisionResponse as SubscriptionProvisionResponse,
275
89
  type SubscriptionListResponsesMyCursorIDPage as SubscriptionListResponsesMyCursorIDPage,
276
- type SubscriptionCreateParams as SubscriptionCreateParams,
90
+ type SubscriptionUpdateParams as SubscriptionUpdateParams,
277
91
  type SubscriptionListParams as SubscriptionListParams,
92
+ type SubscriptionCancelParams as SubscriptionCancelParams,
278
93
  type SubscriptionDelegateParams as SubscriptionDelegateParams,
94
+ type SubscriptionImportParams as SubscriptionImportParams,
279
95
  type SubscriptionMigrateParams as SubscriptionMigrateParams,
280
96
  type SubscriptionPreviewParams as SubscriptionPreviewParams,
97
+ type SubscriptionProvisionParams as SubscriptionProvisionParams,
281
98
  type SubscriptionTransferParams as SubscriptionTransferParams,
282
99
  };
283
100
 
284
101
  export {
285
102
  Coupons as Coupons,
286
- type CouponCreateResponse as CouponCreateResponse,
287
- type CouponRetrieveResponse as CouponRetrieveResponse,
103
+ type Coupon as Coupon,
288
104
  type CouponListResponse as CouponListResponse,
289
105
  type CouponListResponsesMyCursorIDPage as CouponListResponsesMyCursorIDPage,
290
106
  type CouponCreateParams as CouponCreateParams,
291
107
  type CouponListParams as CouponListParams,
292
108
  };
109
+
110
+ export {
111
+ Events as Events,
112
+ type EventReportResponse as EventReportResponse,
113
+ type EventReportParams as EventReportParams,
114
+ };
115
+
116
+ export {
117
+ Usage as Usage,
118
+ type UsageHistoryResponse as UsageHistoryResponse,
119
+ type UsageReportResponse as UsageReportResponse,
120
+ type UsageHistoryParams as UsageHistoryParams,
121
+ type UsageReportParams as UsageReportParams,
122
+ };
293
123
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.1.0-alpha.3'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.4'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.3";
1
+ export declare const VERSION = "0.1.0-alpha.4";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.1.0-alpha.3";
1
+ export declare const VERSION = "0.1.0-alpha.4";
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-alpha.3'; // x-release-please-version
4
+ exports.VERSION = '0.1.0-alpha.4'; // 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-alpha.3'; // x-release-please-version
1
+ export const VERSION = '0.1.0-alpha.4'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,4 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- export declare class Usage extends APIResource {
3
- }
4
- //# sourceMappingURL=usage.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG"}
@@ -1,4 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- export declare class Usage extends APIResource {
3
- }
4
- //# sourceMappingURL=usage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;AAEtB,qBAAa,KAAM,SAAQ,WAAW;CAAG"}
@@ -1,9 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Usage = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- class Usage extends resource_1.APIResource {
7
- }
8
- exports.Usage = Usage;
9
- //# sourceMappingURL=usage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage.js","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAErD,MAAa,KAAM,SAAQ,sBAAW;CAAG;AAAzC,sBAAyC"}
@@ -1,5 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- export class Usage extends APIResource {
4
- }
5
- //# sourceMappingURL=usage.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"usage.mjs","sourceRoot":"","sources":["../../../src/resources/v1/customers/usage.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAEtB,MAAM,OAAO,KAAM,SAAQ,WAAW;CAAG"}
@@ -1,5 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
-
3
- import { APIResource } from '../../../core/resource';
4
-
5
- export class Usage extends APIResource {}