@stigg/typescript 0.1.0-alpha.26 → 0.1.0-alpha.27

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 (63) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/package.json +1 -1
  3. package/resources/internal/beta/beta.d.mts +2 -2
  4. package/resources/internal/beta/beta.d.mts.map +1 -1
  5. package/resources/internal/beta/beta.d.ts +2 -2
  6. package/resources/internal/beta/beta.d.ts.map +1 -1
  7. package/resources/internal/beta/beta.js.map +1 -1
  8. package/resources/internal/beta/beta.mjs.map +1 -1
  9. package/resources/internal/beta/event-queues.d.mts +8 -152
  10. package/resources/internal/beta/event-queues.d.mts.map +1 -1
  11. package/resources/internal/beta/event-queues.d.ts +8 -152
  12. package/resources/internal/beta/event-queues.d.ts.map +1 -1
  13. package/resources/internal/beta/event-queues.js.map +1 -1
  14. package/resources/internal/beta/event-queues.mjs.map +1 -1
  15. package/resources/internal/beta/index.d.mts +1 -1
  16. package/resources/internal/beta/index.d.mts.map +1 -1
  17. package/resources/internal/beta/index.d.ts +1 -1
  18. package/resources/internal/beta/index.d.ts.map +1 -1
  19. package/resources/internal/beta/index.js.map +1 -1
  20. package/resources/internal/beta/index.mjs.map +1 -1
  21. package/resources/v1/customers/customers.d.mts +78 -3
  22. package/resources/v1/customers/customers.d.mts.map +1 -1
  23. package/resources/v1/customers/customers.d.ts +78 -3
  24. package/resources/v1/customers/customers.d.ts.map +1 -1
  25. package/resources/v1/customers/customers.js.map +1 -1
  26. package/resources/v1/customers/customers.mjs.map +1 -1
  27. package/resources/v1/customers/index.d.mts +2 -2
  28. package/resources/v1/customers/index.d.mts.map +1 -1
  29. package/resources/v1/customers/index.d.ts +2 -2
  30. package/resources/v1/customers/index.d.ts.map +1 -1
  31. package/resources/v1/customers/index.js.map +1 -1
  32. package/resources/v1/customers/index.mjs.map +1 -1
  33. package/resources/v1/customers/integrations.d.mts +6 -305
  34. package/resources/v1/customers/integrations.d.mts.map +1 -1
  35. package/resources/v1/customers/integrations.d.ts +6 -305
  36. package/resources/v1/customers/integrations.d.ts.map +1 -1
  37. package/resources/v1/customers/integrations.js.map +1 -1
  38. package/resources/v1/customers/integrations.mjs.map +1 -1
  39. package/resources/v1/index.d.mts +1 -1
  40. package/resources/v1/index.d.mts.map +1 -1
  41. package/resources/v1/index.d.ts +1 -1
  42. package/resources/v1/index.d.ts.map +1 -1
  43. package/resources/v1/index.js.map +1 -1
  44. package/resources/v1/index.mjs.map +1 -1
  45. package/resources/v1/v1.d.mts +2 -2
  46. package/resources/v1/v1.d.mts.map +1 -1
  47. package/resources/v1/v1.d.ts +2 -2
  48. package/resources/v1/v1.d.ts.map +1 -1
  49. package/resources/v1/v1.js.map +1 -1
  50. package/resources/v1/v1.mjs.map +1 -1
  51. package/src/resources/internal/beta/beta.ts +2 -8
  52. package/src/resources/internal/beta/event-queues.ts +8 -266
  53. package/src/resources/internal/beta/index.ts +1 -4
  54. package/src/resources/v1/customers/customers.ts +101 -8
  55. package/src/resources/v1/customers/index.ts +1 -4
  56. package/src/resources/v1/customers/integrations.ts +5 -408
  57. package/src/resources/v1/index.ts +1 -0
  58. package/src/resources/v1/v1.ts +2 -0
  59. package/src/version.ts +1 -1
  60. package/version.d.mts +1 -1
  61. package/version.d.ts +1 -1
  62. package/version.js +1 -1
  63. package/version.mjs +1 -1
@@ -9,7 +9,7 @@ export class EventQueues extends APIResource {
9
9
  /**
10
10
  * Get event queue by queue name
11
11
  */
12
- retrieve(queueName: string, options?: RequestOptions): APIPromise<EventQueueRetrieveResponse> {
12
+ retrieve(queueName: string, options?: RequestOptions): APIPromise<EventQueueResponse> {
13
13
  return this._client.get(path`/internal/beta/event-queues/${queueName}`, options);
14
14
  }
15
15
 
@@ -20,7 +20,7 @@ export class EventQueues extends APIResource {
20
20
  queueName: string,
21
21
  body: EventQueueUpdateParams,
22
22
  options?: RequestOptions,
23
- ): APIPromise<EventQueueUpdateResponse> {
23
+ ): APIPromise<EventQueueResponse> {
24
24
  return this._client.patch(path`/internal/beta/event-queues/${queueName}`, { body, ...options });
25
25
  }
26
26
 
@@ -34,17 +34,14 @@ export class EventQueues extends APIResource {
34
34
  /**
35
35
  * Delete an event queue and tear down its infrastructure
36
36
  */
37
- delete(queueName: string, options?: RequestOptions): APIPromise<EventQueueDeleteResponse> {
37
+ delete(queueName: string, options?: RequestOptions): APIPromise<EventQueueResponse> {
38
38
  return this._client.delete(path`/internal/beta/event-queues/${queueName}`, options);
39
39
  }
40
40
 
41
41
  /**
42
42
  * Provision SQS queue, SNS subscriptions, and IAM role for the current environment
43
43
  */
44
- provision(
45
- body: EventQueueProvisionParams,
46
- options?: RequestOptions,
47
- ): APIPromise<EventQueueProvisionResponse> {
44
+ provision(body: EventQueueProvisionParams, options?: RequestOptions): APIPromise<EventQueueResponse> {
48
45
  return this._client.post('/internal/beta/event-queues/provision', { body, ...options });
49
46
  }
50
47
  }
@@ -52,98 +49,14 @@ export class EventQueues extends APIResource {
52
49
  /**
53
50
  * Response object
54
51
  */
55
- export interface EventQueueRetrieveResponse {
56
- /**
57
- * Event queue provisioning status and details
58
- */
59
- data: EventQueueRetrieveResponse.Data;
60
- }
61
-
62
- export namespace EventQueueRetrieveResponse {
63
- /**
64
- * Event queue provisioning status and details
65
- */
66
- export interface Data {
67
- /**
68
- * Timestamp of when the record was created
69
- */
70
- createdAt: string;
71
-
72
- /**
73
- * Unique queue identifier
74
- */
75
- queueName: string;
76
-
77
- /**
78
- * AWS region where the queue is deployed
79
- */
80
- region:
81
- | 'us-east-1'
82
- | 'us-east-2'
83
- | 'us-west-1'
84
- | 'us-west-2'
85
- | 'ca-central-1'
86
- | 'eu-west-1'
87
- | 'eu-west-2'
88
- | 'eu-west-3'
89
- | 'eu-central-1'
90
- | 'eu-central-2'
91
- | 'eu-north-1'
92
- | 'eu-south-1'
93
- | 'eu-south-2'
94
- | 'ap-southeast-1'
95
- | 'ap-southeast-2'
96
- | 'ap-southeast-3'
97
- | 'ap-northeast-1'
98
- | 'ap-northeast-2'
99
- | 'ap-northeast-3'
100
- | 'ap-south-1'
101
- | 'ap-south-2'
102
- | 'ap-east-1'
103
- | 'sa-east-1'
104
- | 'af-south-1'
105
- | 'me-south-1'
106
- | 'me-central-1'
107
- | 'il-central-1';
108
-
109
- /**
110
- * Current provisioning status
111
- */
112
- status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING';
113
-
114
- /**
115
- * Timestamp of when the record was last updated
116
- */
117
- updatedAt: string;
118
-
119
- /**
120
- * SQS queue URL
121
- */
122
- queueUrl?: string | null;
123
-
124
- /**
125
- * IAM role ARN for queue access
126
- */
127
- roleArn?: string | null;
128
-
129
- /**
130
- * Queue suffix for disambiguation
131
- */
132
- suffix?: string | null;
133
- }
134
- }
135
-
136
- /**
137
- * Response object
138
- */
139
- export interface EventQueueUpdateResponse {
52
+ export interface EventQueueResponse {
140
53
  /**
141
54
  * Event queue provisioning status and details
142
55
  */
143
- data: EventQueueUpdateResponse.Data;
56
+ data: EventQueueResponse.Data;
144
57
  }
145
58
 
146
- export namespace EventQueueUpdateResponse {
59
+ export namespace EventQueueResponse {
147
60
  /**
148
61
  * Event queue provisioning status and details
149
62
  */
@@ -319,174 +232,6 @@ export namespace EventQueueListResponse {
319
232
  }
320
233
  }
321
234
 
322
- /**
323
- * Response object
324
- */
325
- export interface EventQueueDeleteResponse {
326
- /**
327
- * Event queue provisioning status and details
328
- */
329
- data: EventQueueDeleteResponse.Data;
330
- }
331
-
332
- export namespace EventQueueDeleteResponse {
333
- /**
334
- * Event queue provisioning status and details
335
- */
336
- export interface Data {
337
- /**
338
- * Timestamp of when the record was created
339
- */
340
- createdAt: string;
341
-
342
- /**
343
- * Unique queue identifier
344
- */
345
- queueName: string;
346
-
347
- /**
348
- * AWS region where the queue is deployed
349
- */
350
- region:
351
- | 'us-east-1'
352
- | 'us-east-2'
353
- | 'us-west-1'
354
- | 'us-west-2'
355
- | 'ca-central-1'
356
- | 'eu-west-1'
357
- | 'eu-west-2'
358
- | 'eu-west-3'
359
- | 'eu-central-1'
360
- | 'eu-central-2'
361
- | 'eu-north-1'
362
- | 'eu-south-1'
363
- | 'eu-south-2'
364
- | 'ap-southeast-1'
365
- | 'ap-southeast-2'
366
- | 'ap-southeast-3'
367
- | 'ap-northeast-1'
368
- | 'ap-northeast-2'
369
- | 'ap-northeast-3'
370
- | 'ap-south-1'
371
- | 'ap-south-2'
372
- | 'ap-east-1'
373
- | 'sa-east-1'
374
- | 'af-south-1'
375
- | 'me-south-1'
376
- | 'me-central-1'
377
- | 'il-central-1';
378
-
379
- /**
380
- * Current provisioning status
381
- */
382
- status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING';
383
-
384
- /**
385
- * Timestamp of when the record was last updated
386
- */
387
- updatedAt: string;
388
-
389
- /**
390
- * SQS queue URL
391
- */
392
- queueUrl?: string | null;
393
-
394
- /**
395
- * IAM role ARN for queue access
396
- */
397
- roleArn?: string | null;
398
-
399
- /**
400
- * Queue suffix for disambiguation
401
- */
402
- suffix?: string | null;
403
- }
404
- }
405
-
406
- /**
407
- * Response object
408
- */
409
- export interface EventQueueProvisionResponse {
410
- /**
411
- * Event queue provisioning status and details
412
- */
413
- data: EventQueueProvisionResponse.Data;
414
- }
415
-
416
- export namespace EventQueueProvisionResponse {
417
- /**
418
- * Event queue provisioning status and details
419
- */
420
- export interface Data {
421
- /**
422
- * Timestamp of when the record was created
423
- */
424
- createdAt: string;
425
-
426
- /**
427
- * Unique queue identifier
428
- */
429
- queueName: string;
430
-
431
- /**
432
- * AWS region where the queue is deployed
433
- */
434
- region:
435
- | 'us-east-1'
436
- | 'us-east-2'
437
- | 'us-west-1'
438
- | 'us-west-2'
439
- | 'ca-central-1'
440
- | 'eu-west-1'
441
- | 'eu-west-2'
442
- | 'eu-west-3'
443
- | 'eu-central-1'
444
- | 'eu-central-2'
445
- | 'eu-north-1'
446
- | 'eu-south-1'
447
- | 'eu-south-2'
448
- | 'ap-southeast-1'
449
- | 'ap-southeast-2'
450
- | 'ap-southeast-3'
451
- | 'ap-northeast-1'
452
- | 'ap-northeast-2'
453
- | 'ap-northeast-3'
454
- | 'ap-south-1'
455
- | 'ap-south-2'
456
- | 'ap-east-1'
457
- | 'sa-east-1'
458
- | 'af-south-1'
459
- | 'me-south-1'
460
- | 'me-central-1'
461
- | 'il-central-1';
462
-
463
- /**
464
- * Current provisioning status
465
- */
466
- status: 'PROVISIONING' | 'ACTIVE' | 'FAILED' | 'DEPROVISIONING';
467
-
468
- /**
469
- * Timestamp of when the record was last updated
470
- */
471
- updatedAt: string;
472
-
473
- /**
474
- * SQS queue URL
475
- */
476
- queueUrl?: string | null;
477
-
478
- /**
479
- * IAM role ARN for queue access
480
- */
481
- roleArn?: string | null;
482
-
483
- /**
484
- * Queue suffix for disambiguation
485
- */
486
- suffix?: string | null;
487
- }
488
- }
489
-
490
235
  export interface EventQueueUpdateParams {
491
236
  allowedAssumeRoleArns?: Array<string>;
492
237
 
@@ -787,11 +532,8 @@ export interface EventQueueProvisionParams {
787
532
 
788
533
  export declare namespace EventQueues {
789
534
  export {
790
- type EventQueueRetrieveResponse as EventQueueRetrieveResponse,
791
- type EventQueueUpdateResponse as EventQueueUpdateResponse,
535
+ type EventQueueResponse as EventQueueResponse,
792
536
  type EventQueueListResponse as EventQueueListResponse,
793
- type EventQueueDeleteResponse as EventQueueDeleteResponse,
794
- type EventQueueProvisionResponse as EventQueueProvisionResponse,
795
537
  type EventQueueUpdateParams as EventQueueUpdateParams,
796
538
  type EventQueueProvisionParams as EventQueueProvisionParams,
797
539
  };
@@ -3,11 +3,8 @@
3
3
  export { Beta } from './beta';
4
4
  export {
5
5
  EventQueues,
6
- type EventQueueRetrieveResponse,
7
- type EventQueueUpdateResponse,
6
+ type EventQueueResponse,
8
7
  type EventQueueListResponse,
9
- type EventQueueDeleteResponse,
10
- type EventQueueProvisionResponse,
11
8
  type EventQueueUpdateParams,
12
9
  type EventQueueProvisionParams,
13
10
  } from './event-queues';
@@ -4,16 +4,12 @@ import { APIResource } from '../../../core/resource';
4
4
  import * as IntegrationsAPI from './integrations';
5
5
  import {
6
6
  IntegrationLinkParams,
7
- IntegrationLinkResponse,
8
7
  IntegrationListParams,
9
8
  IntegrationListResponse,
10
9
  IntegrationListResponsesMyCursorIDPage,
11
10
  IntegrationRetrieveParams,
12
- IntegrationRetrieveResponse,
13
11
  IntegrationUnlinkParams,
14
- IntegrationUnlinkResponse,
15
12
  IntegrationUpdateParams,
16
- IntegrationUpdateResponse,
17
13
  Integrations,
18
14
  } from './integrations';
19
15
  import * as PaymentMethodAPI from './payment-method';
@@ -132,6 +128,106 @@ export type CustomerListResponsesMyCursorIDPage = MyCursorIDPage<CustomerListRes
132
128
 
133
129
  export type CustomerListResourcesResponsesMyCursorIDPage = MyCursorIDPage<CustomerListResourcesResponse>;
134
130
 
131
+ /**
132
+ * Response object
133
+ */
134
+ export interface CustomerIntegrationResponse {
135
+ /**
136
+ * External billing or CRM integration link
137
+ */
138
+ data: CustomerIntegrationResponse.Data;
139
+ }
140
+
141
+ export namespace CustomerIntegrationResponse {
142
+ /**
143
+ * External billing or CRM integration link
144
+ */
145
+ export interface Data {
146
+ /**
147
+ * Integration details
148
+ */
149
+ id: string;
150
+
151
+ /**
152
+ * Synced entity id
153
+ */
154
+ syncedEntityId: string | null;
155
+
156
+ /**
157
+ * The vendor identifier of integration
158
+ */
159
+ vendorIdentifier:
160
+ | 'AUTH0'
161
+ | 'ZUORA'
162
+ | 'STRIPE'
163
+ | 'HUBSPOT'
164
+ | 'AWS_MARKETPLACE'
165
+ | 'SNOWFLAKE'
166
+ | 'SALESFORCE'
167
+ | 'BIG_QUERY'
168
+ | 'OPEN_FGA'
169
+ | 'APP_STORE';
170
+
171
+ /**
172
+ * Price billing sync revision data containing billing ID, link URL, and price
173
+ * group package billing ID
174
+ */
175
+ syncData?:
176
+ | Data.SyncRevisionPriceBillingData
177
+ | Data.SyncRevisionBillingData
178
+ | Data.SyncRevisionMarketplaceData
179
+ | null;
180
+ }
181
+
182
+ export namespace Data {
183
+ /**
184
+ * Price billing sync revision data containing billing ID, link URL, and price
185
+ * group package billing ID
186
+ */
187
+ export interface SyncRevisionPriceBillingData {
188
+ /**
189
+ * Billing integration id
190
+ */
191
+ billingId: string;
192
+
193
+ /**
194
+ * Billing integration url
195
+ */
196
+ billingLinkUrl: string;
197
+
198
+ /**
199
+ * Price group package billing id
200
+ */
201
+ priceGroupPackageBillingId: string;
202
+ }
203
+
204
+ /**
205
+ * Billing sync revision data containing billing ID and link URL
206
+ */
207
+ export interface SyncRevisionBillingData {
208
+ /**
209
+ * Billing integration id
210
+ */
211
+ billingId: string;
212
+
213
+ /**
214
+ * Billing integration url
215
+ */
216
+ billingLinkUrl: string;
217
+ }
218
+
219
+ /**
220
+ * Marketplace sync revision data containing dimensions
221
+ */
222
+ export interface SyncRevisionMarketplaceData {
223
+ /**
224
+ * Dimensions of the marketplace sync revision
225
+ */
226
+ dimensions: string;
227
+ }
228
+ }
229
+ }
230
+
135
231
  /**
136
232
  * Response object
137
233
  */
@@ -2752,6 +2848,7 @@ Customers.Integrations = Integrations;
2752
2848
 
2753
2849
  export declare namespace Customers {
2754
2850
  export {
2851
+ type CustomerIntegrationResponse as CustomerIntegrationResponse,
2755
2852
  type CustomerResponse as CustomerResponse,
2756
2853
  type CustomerListResponse as CustomerListResponse,
2757
2854
  type CustomerImportResponse as CustomerImportResponse,
@@ -2782,11 +2879,7 @@ export declare namespace Customers {
2782
2879
 
2783
2880
  export {
2784
2881
  Integrations as Integrations,
2785
- type IntegrationRetrieveResponse as IntegrationRetrieveResponse,
2786
- type IntegrationUpdateResponse as IntegrationUpdateResponse,
2787
2882
  type IntegrationListResponse as IntegrationListResponse,
2788
- type IntegrationLinkResponse as IntegrationLinkResponse,
2789
- type IntegrationUnlinkResponse as IntegrationUnlinkResponse,
2790
2883
  type IntegrationListResponsesMyCursorIDPage as IntegrationListResponsesMyCursorIDPage,
2791
2884
  type IntegrationRetrieveParams as IntegrationRetrieveParams,
2792
2885
  type IntegrationUpdateParams as IntegrationUpdateParams,
@@ -2,6 +2,7 @@
2
2
 
3
3
  export {
4
4
  Customers,
5
+ type CustomerIntegrationResponse,
5
6
  type CustomerResponse,
6
7
  type CustomerListResponse,
7
8
  type CustomerImportResponse,
@@ -18,11 +19,7 @@ export {
18
19
  } from './customers';
19
20
  export {
20
21
  Integrations,
21
- type IntegrationRetrieveResponse,
22
- type IntegrationUpdateResponse,
23
22
  type IntegrationListResponse,
24
- type IntegrationLinkResponse,
25
- type IntegrationUnlinkResponse,
26
23
  type IntegrationRetrieveParams,
27
24
  type IntegrationUpdateParams,
28
25
  type IntegrationListParams,