pingram 1.0.19 → 1.0.20-alpha.1340

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 (54) hide show
  1. package/dist/generated/src/apis/AccountApi.d.ts +33 -25
  2. package/dist/generated/src/apis/AccountApi.js +70 -54
  3. package/dist/generated/src/apis/EmailApi.d.ts +25 -1
  4. package/dist/generated/src/apis/EmailApi.js +54 -0
  5. package/dist/generated/src/apis/MembersApi.d.ts +4 -4
  6. package/dist/generated/src/apis/MembersApi.js +2 -2
  7. package/dist/generated/src/apis/index.d.ts +2 -4
  8. package/dist/generated/src/apis/index.js +1 -3
  9. package/dist/generated/src/models/CampaignWebhookResponse.d.ts +32 -0
  10. package/dist/generated/src/models/CampaignWebhookResponse.js +50 -0
  11. package/dist/generated/src/models/CreateAccountRequest.d.ts +34 -0
  12. package/dist/generated/src/models/CreateAccountRequest.js +48 -0
  13. package/dist/generated/src/models/CreateAccountResponse.d.ts +3 -3
  14. package/dist/generated/src/models/CreateAccountResponse.js +6 -6
  15. package/dist/generated/src/models/CreatePersonalAccessTokenRequest.d.ts +38 -0
  16. package/dist/generated/src/models/CreatePersonalAccessTokenRequest.js +52 -0
  17. package/dist/generated/src/models/CreatePersonalAccessTokenResponse.d.ts +74 -0
  18. package/dist/generated/src/models/CreatePersonalAccessTokenResponse.js +74 -0
  19. package/dist/generated/src/models/DeleteEmailSuppressionsResponse.d.ts +38 -0
  20. package/dist/generated/src/models/DeleteEmailSuppressionsResponse.js +54 -0
  21. package/dist/generated/src/models/GetMembersResponseInner.d.ts +14 -0
  22. package/dist/generated/src/models/GetMembersResponseInner.js +14 -1
  23. package/dist/generated/src/models/IntercomWebhookDataItem.d.ts +1 -1
  24. package/dist/generated/src/models/IntercomWebhookDataItemAnyOf.d.ts +1 -1
  25. package/dist/generated/src/models/ListInvoicesResponse.d.ts +39 -0
  26. package/dist/generated/src/models/ListInvoicesResponse.js +55 -0
  27. package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.d.ts +109 -0
  28. package/dist/generated/src/models/ListInvoicesResponseInvoicesInner.js +95 -0
  29. package/dist/generated/src/models/ListPersonalAccessTokensResponse.d.ts +33 -0
  30. package/dist/generated/src/models/ListPersonalAccessTokensResponse.js +51 -0
  31. package/dist/generated/src/models/ListPersonalAccessTokensResponseTokensInner.d.ts +68 -0
  32. package/dist/generated/src/models/ListPersonalAccessTokensResponseTokensInner.js +70 -0
  33. package/dist/generated/src/models/MemberUpdateRequest.d.ts +1 -1
  34. package/dist/generated/src/models/TenDlcBrandRegistrationDetails.d.ts +3 -3
  35. package/dist/generated/src/models/TenDlcBrandRegistrationDetails.js +4 -4
  36. package/dist/generated/src/models/TenDlcCampaignRegistrationDetails.d.ts +192 -0
  37. package/dist/generated/src/models/TenDlcCampaignRegistrationDetails.js +146 -0
  38. package/dist/generated/src/models/TenDlcCampaignUpdateRequest.d.ts +168 -0
  39. package/dist/generated/src/models/TenDlcCampaignUpdateRequest.js +130 -0
  40. package/dist/generated/src/models/index.d.ts +11 -4
  41. package/dist/generated/src/models/index.js +11 -4
  42. package/dist/src/client.d.ts +0 -2
  43. package/dist/src/client.js +19 -22
  44. package/package.json +1 -1
  45. package/dist/generated/src/apis/PushSettingsApi.d.ts +0 -154
  46. package/dist/generated/src/apis/PushSettingsApi.js +0 -365
  47. package/dist/generated/src/models/APNConfig.d.ts +0 -50
  48. package/dist/generated/src/models/APNConfig.js +0 -62
  49. package/dist/generated/src/models/CreateAccountRequestBody.d.ts +0 -32
  50. package/dist/generated/src/models/CreateAccountRequestBody.js +0 -50
  51. package/dist/generated/src/models/PushSettingsFCMPutRequest.d.ts +0 -32
  52. package/dist/generated/src/models/PushSettingsFCMPutRequest.js +0 -50
  53. package/dist/generated/src/models/PushSettingsFCMResponse.d.ts +0 -32
  54. package/dist/generated/src/models/PushSettingsFCMResponse.js +0 -50
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AccountGetResponse, BillingPostRequestBody, BillingPostResponseBody, CreateAccountRequestBody, CreateAccountResponse, GetUsageHistoryResponse, GetUsageResponse, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
13
+ import type { AccountGetResponse, BillingPostRequestBody, BillingPostResponseBody, GetUsageHistoryResponse, GetUsageResponse, ListInvoicesResponse, SupabaseConfigureRequest, SupabaseConfigureResponse, SupabaseOAuthRequest, SupabaseOAuthResponse, SupabaseProjectsResponse, SupabaseStatusResponse } from '../models/index';
14
14
  export interface ConfigureSupabaseSMTPRequest {
15
15
  supabaseConfigureRequest: SupabaseConfigureRequest;
16
16
  }
@@ -18,15 +18,19 @@ export interface GetUsageHistoryRequest {
18
18
  startDate: string;
19
19
  endDate: string;
20
20
  }
21
+ export interface ListInvoicesRequest {
22
+ limit?: number;
23
+ startingAfter?: string;
24
+ status?: string;
25
+ createdAfter?: string;
26
+ createdBefore?: string;
27
+ }
21
28
  export interface PrepareCheckoutSessionRequest {
22
29
  billingPostRequestBody: BillingPostRequestBody;
23
30
  }
24
31
  export interface SupabaseOAuthOperationRequest {
25
32
  supabaseOAuthRequest: SupabaseOAuthRequest;
26
33
  }
27
- export interface UpdateAccountRequest {
28
- createAccountRequestBody: CreateAccountRequestBody;
29
- }
30
34
  /**
31
35
  * AccountApi - interface
32
36
  *
@@ -97,6 +101,23 @@ export interface AccountApiInterface {
97
101
  * Get historical usage for the authenticated account over a date range.
98
102
  */
99
103
  getUsageHistory(startDate: string, endDate: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
104
+ /**
105
+ *
106
+ * @summary List Stripe invoices for the authenticated account, newest first.
107
+ * @param {number} [limit] Max invoices to return (1-100, default 10)
108
+ * @param {string} [startingAfter] Pagination cursor (invoice id from a previous response)
109
+ * @param {string} [status] Filter by status
110
+ * @param {string} [createdAfter] Inclusive lower bound (YYYY-MM-DD or unix seconds)
111
+ * @param {string} [createdBefore] Inclusive upper bound (YYYY-MM-DD or unix seconds)
112
+ * @param {*} [options] Override http request option.
113
+ * @throws {RequiredError}
114
+ * @memberof AccountApiInterface
115
+ */
116
+ listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
117
+ /**
118
+ * List Stripe invoices for the authenticated account, newest first.
119
+ */
120
+ listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
100
121
  /**
101
122
  *
102
123
  * @summary List Supabase projects for the connected account
@@ -147,19 +168,6 @@ export interface AccountApiInterface {
147
168
  * Exchange Supabase OAuth authorization code for tokens
148
169
  */
149
170
  supabaseOAuth(supabaseOAuthRequest: SupabaseOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseOAuthResponse>;
150
- /**
151
- *
152
- * @summary Create or update an account name
153
- * @param {CreateAccountRequestBody} createAccountRequestBody
154
- * @param {*} [options] Override http request option.
155
- * @throws {RequiredError}
156
- * @memberof AccountApiInterface
157
- */
158
- updateAccountRaw(requestParameters: UpdateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAccountResponse>>;
159
- /**
160
- * Create or update an account name
161
- */
162
- updateAccount(createAccountRequestBody: CreateAccountRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAccountResponse>;
163
171
  }
164
172
  /**
165
173
  *
@@ -205,6 +213,14 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
205
213
  * Get historical usage for the authenticated account over a date range.
206
214
  */
207
215
  getUsageHistory(startDate: string, endDate: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GetUsageHistoryResponse>;
216
+ /**
217
+ * List Stripe invoices for the authenticated account, newest first.
218
+ */
219
+ listInvoicesRaw(requestParameters: ListInvoicesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListInvoicesResponse>>;
220
+ /**
221
+ * List Stripe invoices for the authenticated account, newest first.
222
+ */
223
+ listInvoices(limit?: number, startingAfter?: string, status?: string, createdAfter?: string, createdBefore?: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListInvoicesResponse>;
208
224
  /**
209
225
  * List Supabase projects for the connected account
210
226
  */
@@ -237,12 +253,4 @@ export declare class AccountApi extends runtime.BaseAPI implements AccountApiInt
237
253
  * Exchange Supabase OAuth authorization code for tokens
238
254
  */
239
255
  supabaseOAuth(supabaseOAuthRequest: SupabaseOAuthRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SupabaseOAuthResponse>;
240
- /**
241
- * Create or update an account name
242
- */
243
- updateAccountRaw(requestParameters: UpdateAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateAccountResponse>>;
244
- /**
245
- * Create or update an account name
246
- */
247
- updateAccount(createAccountRequestBody: CreateAccountRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateAccountResponse>;
248
256
  }
@@ -321,10 +321,25 @@ class AccountApi extends runtime.BaseAPI {
321
321
  return await response.value();
322
322
  }
323
323
  /**
324
- * List Supabase projects for the connected account
324
+ * List Stripe invoices for the authenticated account, newest first.
325
325
  */
326
- async listSupabaseProjectsRaw(initOverrides) {
326
+ async listInvoicesRaw(requestParameters, initOverrides) {
327
327
  const queryParameters = {};
328
+ if (requestParameters['limit'] != null) {
329
+ queryParameters['limit'] = requestParameters['limit'];
330
+ }
331
+ if (requestParameters['startingAfter'] != null) {
332
+ queryParameters['startingAfter'] = requestParameters['startingAfter'];
333
+ }
334
+ if (requestParameters['status'] != null) {
335
+ queryParameters['status'] = requestParameters['status'];
336
+ }
337
+ if (requestParameters['createdAfter'] != null) {
338
+ queryParameters['createdAfter'] = requestParameters['createdAfter'];
339
+ }
340
+ if (requestParameters['createdBefore'] != null) {
341
+ queryParameters['createdBefore'] = requestParameters['createdBefore'];
342
+ }
328
343
  const headerParameters = {};
329
344
  if (this.configuration &&
330
345
  (this.configuration.username !== undefined ||
@@ -354,32 +369,34 @@ class AccountApi extends runtime.BaseAPI {
354
369
  'Basic ' +
355
370
  btoa(this.configuration.username + ':' + this.configuration.password);
356
371
  }
357
- let urlPath = `/account/supabase/projects`;
372
+ let urlPath = `/account/invoices`;
358
373
  const response = await this.request({
359
374
  path: urlPath,
360
375
  method: 'GET',
361
376
  headers: headerParameters,
362
377
  query: queryParameters
363
378
  }, initOverrides);
364
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseProjectsResponseFromJSON)(jsonValue));
379
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ListInvoicesResponseFromJSON)(jsonValue));
365
380
  }
366
381
  /**
367
- * List Supabase projects for the connected account
382
+ * List Stripe invoices for the authenticated account, newest first.
368
383
  */
369
- async listSupabaseProjects(initOverrides) {
370
- const response = await this.listSupabaseProjectsRaw(initOverrides);
384
+ async listInvoices(limit, startingAfter, status, createdAfter, createdBefore, initOverrides) {
385
+ const response = await this.listInvoicesRaw({
386
+ limit: limit,
387
+ startingAfter: startingAfter,
388
+ status: status,
389
+ createdAfter: createdAfter,
390
+ createdBefore: createdBefore
391
+ }, initOverrides);
371
392
  return await response.value();
372
393
  }
373
394
  /**
374
- * Get or create Stripe customer and optionally create checkout session
395
+ * List Supabase projects for the connected account
375
396
  */
376
- async prepareCheckoutSessionRaw(requestParameters, initOverrides) {
377
- if (requestParameters['billingPostRequestBody'] == null) {
378
- throw new runtime.RequiredError('billingPostRequestBody', 'Required parameter "billingPostRequestBody" was null or undefined when calling prepareCheckoutSession().');
379
- }
397
+ async listSupabaseProjectsRaw(initOverrides) {
380
398
  const queryParameters = {};
381
399
  const headerParameters = {};
382
- headerParameters['Content-Type'] = 'application/json';
383
400
  if (this.configuration &&
384
401
  (this.configuration.username !== undefined ||
385
402
  this.configuration.password !== undefined)) {
@@ -408,29 +425,32 @@ class AccountApi extends runtime.BaseAPI {
408
425
  'Basic ' +
409
426
  btoa(this.configuration.username + ':' + this.configuration.password);
410
427
  }
411
- let urlPath = `/billing`;
428
+ let urlPath = `/account/supabase/projects`;
412
429
  const response = await this.request({
413
430
  path: urlPath,
414
- method: 'POST',
431
+ method: 'GET',
415
432
  headers: headerParameters,
416
- query: queryParameters,
417
- body: (0, index_1.BillingPostRequestBodyToJSON)(requestParameters['billingPostRequestBody'])
433
+ query: queryParameters
418
434
  }, initOverrides);
419
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BillingPostResponseBodyFromJSON)(jsonValue));
435
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseProjectsResponseFromJSON)(jsonValue));
420
436
  }
421
437
  /**
422
- * Get or create Stripe customer and optionally create checkout session
438
+ * List Supabase projects for the connected account
423
439
  */
424
- async prepareCheckoutSession(billingPostRequestBody, initOverrides) {
425
- const response = await this.prepareCheckoutSessionRaw({ billingPostRequestBody: billingPostRequestBody }, initOverrides);
440
+ async listSupabaseProjects(initOverrides) {
441
+ const response = await this.listSupabaseProjectsRaw(initOverrides);
426
442
  return await response.value();
427
443
  }
428
444
  /**
429
- * Revoke Supabase integration (removes stored tokens and project info)
445
+ * Get or create Stripe customer and optionally create checkout session
430
446
  */
431
- async revokeSupabaseRaw(initOverrides) {
447
+ async prepareCheckoutSessionRaw(requestParameters, initOverrides) {
448
+ if (requestParameters['billingPostRequestBody'] == null) {
449
+ throw new runtime.RequiredError('billingPostRequestBody', 'Required parameter "billingPostRequestBody" was null or undefined when calling prepareCheckoutSession().');
450
+ }
432
451
  const queryParameters = {};
433
452
  const headerParameters = {};
453
+ headerParameters['Content-Type'] = 'application/json';
434
454
  if (this.configuration &&
435
455
  (this.configuration.username !== undefined ||
436
456
  this.configuration.password !== undefined)) {
@@ -459,32 +479,29 @@ class AccountApi extends runtime.BaseAPI {
459
479
  'Basic ' +
460
480
  btoa(this.configuration.username + ':' + this.configuration.password);
461
481
  }
462
- let urlPath = `/account/supabase`;
482
+ let urlPath = `/billing`;
463
483
  const response = await this.request({
464
484
  path: urlPath,
465
- method: 'DELETE',
485
+ method: 'POST',
466
486
  headers: headerParameters,
467
- query: queryParameters
487
+ query: queryParameters,
488
+ body: (0, index_1.BillingPostRequestBodyToJSON)(requestParameters['billingPostRequestBody'])
468
489
  }, initOverrides);
469
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseConfigureResponseFromJSON)(jsonValue));
490
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BillingPostResponseBodyFromJSON)(jsonValue));
470
491
  }
471
492
  /**
472
- * Revoke Supabase integration (removes stored tokens and project info)
493
+ * Get or create Stripe customer and optionally create checkout session
473
494
  */
474
- async revokeSupabase(initOverrides) {
475
- const response = await this.revokeSupabaseRaw(initOverrides);
495
+ async prepareCheckoutSession(billingPostRequestBody, initOverrides) {
496
+ const response = await this.prepareCheckoutSessionRaw({ billingPostRequestBody: billingPostRequestBody }, initOverrides);
476
497
  return await response.value();
477
498
  }
478
499
  /**
479
- * Exchange Supabase OAuth authorization code for tokens
500
+ * Revoke Supabase integration (removes stored tokens and project info)
480
501
  */
481
- async supabaseOAuthRaw(requestParameters, initOverrides) {
482
- if (requestParameters['supabaseOAuthRequest'] == null) {
483
- throw new runtime.RequiredError('supabaseOAuthRequest', 'Required parameter "supabaseOAuthRequest" was null or undefined when calling supabaseOAuth().');
484
- }
502
+ async revokeSupabaseRaw(initOverrides) {
485
503
  const queryParameters = {};
486
504
  const headerParameters = {};
487
- headerParameters['Content-Type'] = 'application/json';
488
505
  if (this.configuration &&
489
506
  (this.configuration.username !== undefined ||
490
507
  this.configuration.password !== undefined)) {
@@ -513,29 +530,28 @@ class AccountApi extends runtime.BaseAPI {
513
530
  'Basic ' +
514
531
  btoa(this.configuration.username + ':' + this.configuration.password);
515
532
  }
516
- let urlPath = `/account/supabase/oauth`;
533
+ let urlPath = `/account/supabase`;
517
534
  const response = await this.request({
518
535
  path: urlPath,
519
- method: 'POST',
536
+ method: 'DELETE',
520
537
  headers: headerParameters,
521
- query: queryParameters,
522
- body: (0, index_1.SupabaseOAuthRequestToJSON)(requestParameters['supabaseOAuthRequest'])
538
+ query: queryParameters
523
539
  }, initOverrides);
524
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseOAuthResponseFromJSON)(jsonValue));
540
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseConfigureResponseFromJSON)(jsonValue));
525
541
  }
526
542
  /**
527
- * Exchange Supabase OAuth authorization code for tokens
543
+ * Revoke Supabase integration (removes stored tokens and project info)
528
544
  */
529
- async supabaseOAuth(supabaseOAuthRequest, initOverrides) {
530
- const response = await this.supabaseOAuthRaw({ supabaseOAuthRequest: supabaseOAuthRequest }, initOverrides);
545
+ async revokeSupabase(initOverrides) {
546
+ const response = await this.revokeSupabaseRaw(initOverrides);
531
547
  return await response.value();
532
548
  }
533
549
  /**
534
- * Create or update an account name
550
+ * Exchange Supabase OAuth authorization code for tokens
535
551
  */
536
- async updateAccountRaw(requestParameters, initOverrides) {
537
- if (requestParameters['createAccountRequestBody'] == null) {
538
- throw new runtime.RequiredError('createAccountRequestBody', 'Required parameter "createAccountRequestBody" was null or undefined when calling updateAccount().');
552
+ async supabaseOAuthRaw(requestParameters, initOverrides) {
553
+ if (requestParameters['supabaseOAuthRequest'] == null) {
554
+ throw new runtime.RequiredError('supabaseOAuthRequest', 'Required parameter "supabaseOAuthRequest" was null or undefined when calling supabaseOAuth().');
539
555
  }
540
556
  const queryParameters = {};
541
557
  const headerParameters = {};
@@ -568,21 +584,21 @@ class AccountApi extends runtime.BaseAPI {
568
584
  'Basic ' +
569
585
  btoa(this.configuration.username + ':' + this.configuration.password);
570
586
  }
571
- let urlPath = `/account`;
587
+ let urlPath = `/account/supabase/oauth`;
572
588
  const response = await this.request({
573
589
  path: urlPath,
574
590
  method: 'POST',
575
591
  headers: headerParameters,
576
592
  query: queryParameters,
577
- body: (0, index_1.CreateAccountRequestBodyToJSON)(requestParameters['createAccountRequestBody'])
593
+ body: (0, index_1.SupabaseOAuthRequestToJSON)(requestParameters['supabaseOAuthRequest'])
578
594
  }, initOverrides);
579
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CreateAccountResponseFromJSON)(jsonValue));
595
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SupabaseOAuthResponseFromJSON)(jsonValue));
580
596
  }
581
597
  /**
582
- * Create or update an account name
598
+ * Exchange Supabase OAuth authorization code for tokens
583
599
  */
584
- async updateAccount(createAccountRequestBody, initOverrides) {
585
- const response = await this.updateAccountRaw({ createAccountRequestBody: createAccountRequestBody }, initOverrides);
600
+ async supabaseOAuth(supabaseOAuthRequest, initOverrides) {
601
+ const response = await this.supabaseOAuthRaw({ supabaseOAuthRequest: supabaseOAuthRequest }, initOverrides);
586
602
  return await response.value();
587
603
  }
588
604
  }
@@ -10,7 +10,10 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { SendEmailApiResponse, SendEmailRequest } from '../models/index';
13
+ import type { DeleteEmailSuppressionsResponse, SendEmailApiResponse, SendEmailRequest } from '../models/index';
14
+ export interface DeleteSuppressionsRequest {
15
+ reason: string;
16
+ }
14
17
  export interface SendRequest {
15
18
  sendEmailRequest: SendEmailRequest;
16
19
  }
@@ -21,6 +24,19 @@ export interface SendRequest {
21
24
  * @interface EmailApiInterface
22
25
  */
23
26
  export interface EmailApiInterface {
27
+ /**
28
+ *
29
+ * @summary Remove all email suppressions of the given reason for users in the environment
30
+ * @param {string} reason Suppression reason to clear (retryable | bounces)
31
+ * @param {*} [options] Override http request option.
32
+ * @throws {RequiredError}
33
+ * @memberof EmailApiInterface
34
+ */
35
+ deleteSuppressionsRaw(requestParameters: DeleteSuppressionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteEmailSuppressionsResponse>>;
36
+ /**
37
+ * Remove all email suppressions of the given reason for users in the environment
38
+ */
39
+ deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteEmailSuppressionsResponse>;
24
40
  /**
25
41
  *
26
42
  * @summary Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
@@ -39,6 +55,14 @@ export interface EmailApiInterface {
39
55
  *
40
56
  */
41
57
  export declare class EmailApi extends runtime.BaseAPI implements EmailApiInterface {
58
+ /**
59
+ * Remove all email suppressions of the given reason for users in the environment
60
+ */
61
+ deleteSuppressionsRaw(requestParameters: DeleteSuppressionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DeleteEmailSuppressionsResponse>>;
62
+ /**
63
+ * Remove all email suppressions of the given reason for users in the environment
64
+ */
65
+ deleteSuppressions(reason: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DeleteEmailSuppressionsResponse>;
42
66
  /**
43
67
  * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
44
68
  */
@@ -53,6 +53,60 @@ const index_1 = require("../models/index");
53
53
  *
54
54
  */
55
55
  class EmailApi extends runtime.BaseAPI {
56
+ /**
57
+ * Remove all email suppressions of the given reason for users in the environment
58
+ */
59
+ async deleteSuppressionsRaw(requestParameters, initOverrides) {
60
+ if (requestParameters['reason'] == null) {
61
+ throw new runtime.RequiredError('reason', 'Required parameter "reason" was null or undefined when calling deleteSuppressions().');
62
+ }
63
+ const queryParameters = {};
64
+ const headerParameters = {};
65
+ if (this.configuration &&
66
+ (this.configuration.username !== undefined ||
67
+ this.configuration.password !== undefined)) {
68
+ headerParameters['Authorization'] =
69
+ 'Basic ' +
70
+ btoa(this.configuration.username + ':' + this.configuration.password);
71
+ }
72
+ if (this.configuration &&
73
+ (this.configuration.username !== undefined ||
74
+ this.configuration.password !== undefined)) {
75
+ headerParameters['Authorization'] =
76
+ 'Basic ' +
77
+ btoa(this.configuration.username + ':' + this.configuration.password);
78
+ }
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = await token('apiKey', []);
82
+ if (tokenString) {
83
+ headerParameters['Authorization'] = `Bearer ${tokenString}`;
84
+ }
85
+ }
86
+ if (this.configuration &&
87
+ (this.configuration.username !== undefined ||
88
+ this.configuration.password !== undefined)) {
89
+ headerParameters['Authorization'] =
90
+ 'Basic ' +
91
+ btoa(this.configuration.username + ':' + this.configuration.password);
92
+ }
93
+ let urlPath = `/email/suppressions/{reason}`;
94
+ urlPath = urlPath.replace(`{${'reason'}}`, encodeURIComponent(String(requestParameters['reason'])));
95
+ const response = await this.request({
96
+ path: urlPath,
97
+ method: 'DELETE',
98
+ headers: headerParameters,
99
+ query: queryParameters
100
+ }, initOverrides);
101
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DeleteEmailSuppressionsResponseFromJSON)(jsonValue));
102
+ }
103
+ /**
104
+ * Remove all email suppressions of the given reason for users in the environment
105
+ */
106
+ async deleteSuppressions(reason, initOverrides) {
107
+ const response = await this.deleteSuppressionsRaw({ reason: reason }, initOverrides);
108
+ return await response.value();
109
+ }
56
110
  /**
57
111
  * Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. The fromAddress must be a verified domain; otherwise our built-in address will be used which is fine for testing purposes.
58
112
  */
@@ -111,7 +111,7 @@ export interface MembersApiInterface {
111
111
  setAutoJoin(envId: string, autoJoinRequestBody: AutoJoinRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoJoinPostResponse>;
112
112
  /**
113
113
  *
114
- * @summary Updates a specified member. The role update operation is restricted to administrators only.
114
+ * @summary Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
115
115
  * @param {string} envId Environment ID
116
116
  * @param {string} userId User ID to update
117
117
  * @param {MemberUpdateRequest} memberUpdateRequest
@@ -121,7 +121,7 @@ export interface MembersApiInterface {
121
121
  */
122
122
  updateRaw(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
123
123
  /**
124
- * Updates a specified member. The role update operation is restricted to administrators only.
124
+ * Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
125
125
  */
126
126
  update(envId: string, userId: string, memberUpdateRequest: MemberUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
127
127
  }
@@ -170,11 +170,11 @@ export declare class MembersApi extends runtime.BaseAPI implements MembersApiInt
170
170
  */
171
171
  setAutoJoin(envId: string, autoJoinRequestBody: AutoJoinRequestBody, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AutoJoinPostResponse>;
172
172
  /**
173
- * Updates a specified member. The role update operation is restricted to administrators only.
173
+ * Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
174
174
  */
175
175
  updateRaw(requestParameters: UpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SuccessResponse>>;
176
176
  /**
177
- * Updates a specified member. The role update operation is restricted to administrators only.
177
+ * Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
178
178
  */
179
179
  update(envId: string, userId: string, memberUpdateRequest: MemberUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SuccessResponse>;
180
180
  }
@@ -338,7 +338,7 @@ class MembersApi extends runtime.BaseAPI {
338
338
  return await response.value();
339
339
  }
340
340
  /**
341
- * Updates a specified member. The role update operation is restricted to administrators only.
341
+ * Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
342
342
  */
343
343
  async updateRaw(requestParameters, initOverrides) {
344
344
  if (requestParameters['envId'] == null) {
@@ -394,7 +394,7 @@ class MembersApi extends runtime.BaseAPI {
394
394
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SuccessResponseFromJSON)(jsonValue));
395
395
  }
396
396
  /**
397
- * Updates a specified member. The role update operation is restricted to administrators only.
397
+ * Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.
398
398
  */
399
399
  async update(envId, userId, memberUpdateRequest, initOverrides) {
400
400
  const response = await this.updateRaw({
@@ -2,7 +2,7 @@
2
2
  * Explicit barrel (patched by tools/sdk-codegen/patch-node-apis-barrel.ts).
3
3
  * Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
4
4
  */
5
- export type { ConfigureSupabaseSMTPRequest, GetUsageHistoryRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, UpdateAccountRequest, AccountApiInterface } from './AccountApi';
5
+ export type { ConfigureSupabaseSMTPRequest, GetUsageHistoryRequest, ListInvoicesRequest, PrepareCheckoutSessionRequest, SupabaseOAuthOperationRequest, AccountApiInterface } from './AccountApi';
6
6
  export { AccountApi } from './AccountApi';
7
7
  export type { CreateAddressOperationRequest, DeleteAddressRequest, UpdateAddressOperationRequest, AddressesApiInterface } from './AddressesApi';
8
8
  export { AddressesApi } from './AddressesApi';
@@ -14,7 +14,7 @@ export type { AddDomainRequest, DeleteDomainRequest, StartDomainVerificationRequ
14
14
  export { DomainsApi } from './DomainsApi';
15
15
  export type { GenerateEditorTokenRequest, EditorApiInterface } from './EditorApi';
16
16
  export { EditorApi } from './EditorApi';
17
- export type { SendRequest as EmailApiSendRequest, EmailApiInterface } from './EmailApi';
17
+ export type { DeleteSuppressionsRequest, SendRequest as EmailApiSendRequest, EmailApiInterface } from './EmailApi';
18
18
  export { EmailApi } from './EmailApi';
19
19
  export type { CreateEnvironmentRequest, UpdateEnvironmentRequest, EnvironmentsApiInterface } from './EnvironmentsApi';
20
20
  export { EnvironmentsApi } from './EnvironmentsApi';
@@ -32,8 +32,6 @@ export type { OrderNumberRequest, ReleaseNumberRequest, SearchAvailableRequest,
32
32
  export { NumbersApi } from './NumbersApi';
33
33
  export type { AcceptInviteOperationRequest, ChangeEmailOperationRequest, DeleteAccountOperationRequest, DisableMfaRequest, SetupMfaRequest, VerifyMfaRequest, ProfileApiInterface } from './ProfileApi';
34
34
  export { ProfileApi } from './ProfileApi';
35
- export type { UpsertPushApnSettingsRequest, UpsertPushFcmSettingsRequest, PushSettingsApiInterface } from './PushSettingsApi';
36
- export { PushSettingsApi } from './PushSettingsApi';
37
35
  export type { DeleteScheduleRequest, TestEmailRequest, UpdateScheduleRequest, SenderApiInterface } from './SenderApi';
38
36
  export { SenderApi } from './SenderApi';
39
37
  export type { SendRequest as SmsApiSendRequest, SmsApiInterface } from './SmsApi';
@@ -6,7 +6,7 @@
6
6
  * Multiple `SendRequest` types from bare `send` APIs are re-exported under stable names.
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.PushSettingsApi = exports.ProfileApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.AddressesApi = exports.AccountApi = void 0;
9
+ exports.WebhooksApi = exports.VoiceApi = exports.UsersApi = exports.UserApi = exports.TypesApi = exports.TemplatesApi = exports.SmsApi = exports.SenderApi = exports.ProfileApi = exports.NumbersApi = exports.MembersApi = exports.LogsApi = exports.KeysApi = exports.InsightsApi = exports.HealthApi = exports.EnvironmentsApi = exports.EmailApi = exports.EditorApi = exports.DomainsApi = exports.DefaultApi = exports.ComponentsApi = exports.AddressesApi = exports.AccountApi = void 0;
10
10
  var AccountApi_1 = require("./AccountApi");
11
11
  Object.defineProperty(exports, "AccountApi", { enumerable: true, get: function () { return AccountApi_1.AccountApi; } });
12
12
  var AddressesApi_1 = require("./AddressesApi");
@@ -37,8 +37,6 @@ var NumbersApi_1 = require("./NumbersApi");
37
37
  Object.defineProperty(exports, "NumbersApi", { enumerable: true, get: function () { return NumbersApi_1.NumbersApi; } });
38
38
  var ProfileApi_1 = require("./ProfileApi");
39
39
  Object.defineProperty(exports, "ProfileApi", { enumerable: true, get: function () { return ProfileApi_1.ProfileApi; } });
40
- var PushSettingsApi_1 = require("./PushSettingsApi");
41
- Object.defineProperty(exports, "PushSettingsApi", { enumerable: true, get: function () { return PushSettingsApi_1.PushSettingsApi; } });
42
40
  var SenderApi_1 = require("./SenderApi");
43
41
  Object.defineProperty(exports, "SenderApi", { enumerable: true, get: function () { return SenderApi_1.SenderApi; } });
44
42
  var SmsApi_1 = require("./SmsApi");
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Pingram
3
+ * Internal API for notification delivery and management
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Response for campaign Telnyx webhook handler.
14
+ * @export
15
+ * @interface CampaignWebhookResponse
16
+ */
17
+ export interface CampaignWebhookResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof CampaignWebhookResponse
22
+ */
23
+ message: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CampaignWebhookResponse interface.
27
+ */
28
+ export declare function instanceOfCampaignWebhookResponse(value: object): value is CampaignWebhookResponse;
29
+ export declare function CampaignWebhookResponseFromJSON(json: any): CampaignWebhookResponse;
30
+ export declare function CampaignWebhookResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CampaignWebhookResponse;
31
+ export declare function CampaignWebhookResponseToJSON(json: any): CampaignWebhookResponse;
32
+ export declare function CampaignWebhookResponseToJSONTyped(value?: CampaignWebhookResponse | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Pingram
6
+ * Internal API for notification delivery and management
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfCampaignWebhookResponse = instanceOfCampaignWebhookResponse;
17
+ exports.CampaignWebhookResponseFromJSON = CampaignWebhookResponseFromJSON;
18
+ exports.CampaignWebhookResponseFromJSONTyped = CampaignWebhookResponseFromJSONTyped;
19
+ exports.CampaignWebhookResponseToJSON = CampaignWebhookResponseToJSON;
20
+ exports.CampaignWebhookResponseToJSONTyped = CampaignWebhookResponseToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CampaignWebhookResponse interface.
23
+ */
24
+ function instanceOfCampaignWebhookResponse(value) {
25
+ if (!('message' in value) || value['message'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CampaignWebhookResponseFromJSON(json) {
30
+ return CampaignWebhookResponseFromJSONTyped(json, false);
31
+ }
32
+ function CampaignWebhookResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ message: json['message']
38
+ };
39
+ }
40
+ function CampaignWebhookResponseToJSON(json) {
41
+ return CampaignWebhookResponseToJSONTyped(json, false);
42
+ }
43
+ function CampaignWebhookResponseToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ message: value['message']
49
+ };
50
+ }