@zyphr-dev/node-sdk 0.1.55 → 0.1.57
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.
- package/dist/index.cjs +1883 -319
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +31 -10
- package/dist/index.d.ts +31 -10
- package/dist/index.js +1883 -319
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/clientAuth.ts +15 -4
- package/src/src/apis/AuthApplicationApi.ts +32 -4
- package/src/src/apis/AuthEmailOTPApi.ts +72 -9
- package/src/src/apis/AuthEmailTemplatesApi.ts +160 -20
- package/src/src/apis/AuthEmailVerificationApi.ts +48 -6
- package/src/src/apis/AuthLoginApi.ts +16 -2
- package/src/src/apis/AuthMFAApi.ts +112 -14
- package/src/src/apis/AuthMagicLinksApi.ts +32 -4
- package/src/src/apis/AuthOAuthApi.ts +88 -11
- package/src/src/apis/AuthOrganizationsApi.ts +176 -22
- package/src/src/apis/AuthPasswordResetApi.ts +52 -10
- package/src/src/apis/AuthPhoneApi.ts +72 -9
- package/src/src/apis/AuthRegistrationApi.ts +40 -5
- package/src/src/apis/AuthSessionsApi.ts +56 -7
- package/src/src/apis/AuthUserDirectoryApi.ts +144 -18
- package/src/src/apis/AuthUserProfileApi.ts +32 -4
- package/src/src/apis/AuthWebAuthnApi.ts +96 -12
- package/src/src/apis/DevicesApi.ts +52 -10
- package/src/src/apis/DomainsApi.ts +56 -7
- package/src/src/apis/EmailsApi.ts +48 -6
- package/src/src/apis/ExecutionsApi.ts +24 -3
- package/src/src/apis/InboundEmailApi.ts +24 -3
- package/src/src/apis/InboxApi.ts +88 -11
- package/src/src/apis/PushApi.ts +72 -9
- package/src/src/apis/SMSApi.ts +80 -10
- package/src/src/apis/SlackApi.ts +24 -3
- package/src/src/apis/SubscribersApi.ts +160 -20
- package/src/src/apis/TemplatesApi.ts +48 -6
- package/src/src/apis/TopicsApi.ts +72 -9
- package/src/src/apis/UtilityApi.ts +16 -2
- package/src/src/apis/WaaSApplicationsApi.ts +48 -6
- package/src/src/apis/WaaSDeliveriesApi.ts +32 -4
- package/src/src/apis/WaaSEndpointsApi.ts +72 -9
- package/src/src/apis/WaaSEventTypesApi.ts +48 -6
- package/src/src/apis/WaaSEventsApi.ts +16 -2
- package/src/src/apis/WaaSPortalApi.ts +8 -1
- package/src/src/apis/WebhooksApi.ts +176 -22
- package/src/src/apis/WorkflowsApi.ts +96 -12
- package/src/src/models/InviteEndUser200ResponseData.ts +25 -0
package/src/src/apis/PushApi.ts
CHANGED
|
@@ -285,7 +285,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
285
285
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
286
286
|
|
|
287
287
|
if (this.configuration && this.configuration.apiKey) {
|
|
288
|
-
|
|
288
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
289
|
+
{
|
|
290
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
291
|
+
|
|
292
|
+
if (apiKeyValue) {
|
|
293
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
289
296
|
}
|
|
290
297
|
|
|
291
298
|
const response = await this.request({
|
|
@@ -317,7 +324,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
317
324
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
318
325
|
|
|
319
326
|
if (this.configuration && this.configuration.apiKey) {
|
|
320
|
-
|
|
327
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
328
|
+
{
|
|
329
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
330
|
+
|
|
331
|
+
if (apiKeyValue) {
|
|
332
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
333
|
+
}
|
|
334
|
+
}
|
|
321
335
|
}
|
|
322
336
|
|
|
323
337
|
const response = await this.request({
|
|
@@ -356,7 +370,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
356
370
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
357
371
|
|
|
358
372
|
if (this.configuration && this.configuration.apiKey) {
|
|
359
|
-
|
|
373
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
374
|
+
{
|
|
375
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
376
|
+
|
|
377
|
+
if (apiKeyValue) {
|
|
378
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
379
|
+
}
|
|
380
|
+
}
|
|
360
381
|
}
|
|
361
382
|
|
|
362
383
|
const response = await this.request({
|
|
@@ -408,7 +429,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
408
429
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
409
430
|
|
|
410
431
|
if (this.configuration && this.configuration.apiKey) {
|
|
411
|
-
|
|
432
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
433
|
+
{
|
|
434
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
435
|
+
|
|
436
|
+
if (apiKeyValue) {
|
|
437
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
412
440
|
}
|
|
413
441
|
|
|
414
442
|
const response = await this.request({
|
|
@@ -455,7 +483,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
455
483
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
456
484
|
|
|
457
485
|
if (this.configuration && this.configuration.apiKey) {
|
|
458
|
-
|
|
486
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
487
|
+
{
|
|
488
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
489
|
+
|
|
490
|
+
if (apiKeyValue) {
|
|
491
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
492
|
+
}
|
|
493
|
+
}
|
|
459
494
|
}
|
|
460
495
|
|
|
461
496
|
const response = await this.request({
|
|
@@ -496,7 +531,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
496
531
|
headerParameters['Content-Type'] = 'application/json';
|
|
497
532
|
|
|
498
533
|
if (this.configuration && this.configuration.apiKey) {
|
|
499
|
-
|
|
534
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
535
|
+
{
|
|
536
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
537
|
+
|
|
538
|
+
if (apiKeyValue) {
|
|
539
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
540
|
+
}
|
|
541
|
+
}
|
|
500
542
|
}
|
|
501
543
|
|
|
502
544
|
const response = await this.request({
|
|
@@ -545,7 +587,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
545
587
|
headerParameters['Content-Type'] = 'application/json';
|
|
546
588
|
|
|
547
589
|
if (this.configuration && this.configuration.apiKey) {
|
|
548
|
-
|
|
590
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
591
|
+
{
|
|
592
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
593
|
+
|
|
594
|
+
if (apiKeyValue) {
|
|
595
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
549
598
|
}
|
|
550
599
|
|
|
551
600
|
const response = await this.request({
|
|
@@ -594,7 +643,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
594
643
|
headerParameters['Content-Type'] = 'application/json';
|
|
595
644
|
|
|
596
645
|
if (this.configuration && this.configuration.apiKey) {
|
|
597
|
-
|
|
646
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
647
|
+
{
|
|
648
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
649
|
+
|
|
650
|
+
if (apiKeyValue) {
|
|
651
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
652
|
+
}
|
|
653
|
+
}
|
|
598
654
|
}
|
|
599
655
|
|
|
600
656
|
const response = await this.request({
|
|
@@ -643,7 +699,14 @@ export class PushApi extends runtime.BaseAPI implements PushApiInterface {
|
|
|
643
699
|
headerParameters['Content-Type'] = 'application/json';
|
|
644
700
|
|
|
645
701
|
if (this.configuration && this.configuration.apiKey) {
|
|
646
|
-
|
|
702
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
703
|
+
{
|
|
704
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
705
|
+
|
|
706
|
+
if (apiKeyValue) {
|
|
707
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
647
710
|
}
|
|
648
711
|
|
|
649
712
|
const response = await this.request({
|
package/src/src/apis/SMSApi.ts
CHANGED
|
@@ -271,7 +271,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
271
271
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
272
272
|
|
|
273
273
|
if (this.configuration && this.configuration.apiKey) {
|
|
274
|
-
|
|
274
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
275
|
+
{
|
|
276
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
277
|
+
|
|
278
|
+
if (apiKeyValue) {
|
|
279
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
280
|
+
}
|
|
281
|
+
}
|
|
275
282
|
}
|
|
276
283
|
|
|
277
284
|
const response = await this.request({
|
|
@@ -310,7 +317,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
310
317
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
311
318
|
|
|
312
319
|
if (this.configuration && this.configuration.apiKey) {
|
|
313
|
-
|
|
320
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
321
|
+
{
|
|
322
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
323
|
+
|
|
324
|
+
if (apiKeyValue) {
|
|
325
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
314
328
|
}
|
|
315
329
|
|
|
316
330
|
const response = await this.request({
|
|
@@ -342,7 +356,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
342
356
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
343
357
|
|
|
344
358
|
if (this.configuration && this.configuration.apiKey) {
|
|
345
|
-
|
|
359
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
360
|
+
{
|
|
361
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
362
|
+
|
|
363
|
+
if (apiKeyValue) {
|
|
364
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
346
367
|
}
|
|
347
368
|
|
|
348
369
|
const response = await this.request({
|
|
@@ -374,7 +395,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
374
395
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
375
396
|
|
|
376
397
|
if (this.configuration && this.configuration.apiKey) {
|
|
377
|
-
|
|
398
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
399
|
+
{
|
|
400
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
401
|
+
|
|
402
|
+
if (apiKeyValue) {
|
|
403
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
378
406
|
}
|
|
379
407
|
|
|
380
408
|
const response = await this.request({
|
|
@@ -421,7 +449,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
421
449
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
422
450
|
|
|
423
451
|
if (this.configuration && this.configuration.apiKey) {
|
|
424
|
-
|
|
452
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
453
|
+
{
|
|
454
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
455
|
+
|
|
456
|
+
if (apiKeyValue) {
|
|
457
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
458
|
+
}
|
|
459
|
+
}
|
|
425
460
|
}
|
|
426
461
|
|
|
427
462
|
const response = await this.request({
|
|
@@ -462,7 +497,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
462
497
|
headerParameters['Content-Type'] = 'application/json';
|
|
463
498
|
|
|
464
499
|
if (this.configuration && this.configuration.apiKey) {
|
|
465
|
-
|
|
500
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
501
|
+
{
|
|
502
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
503
|
+
|
|
504
|
+
if (apiKeyValue) {
|
|
505
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
466
508
|
}
|
|
467
509
|
|
|
468
510
|
const response = await this.request({
|
|
@@ -504,7 +546,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
504
546
|
headerParameters['Content-Type'] = 'application/json';
|
|
505
547
|
|
|
506
548
|
if (this.configuration && this.configuration.apiKey) {
|
|
507
|
-
|
|
549
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
550
|
+
{
|
|
551
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
552
|
+
|
|
553
|
+
if (apiKeyValue) {
|
|
554
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
555
|
+
}
|
|
556
|
+
}
|
|
508
557
|
}
|
|
509
558
|
|
|
510
559
|
const response = await this.request({
|
|
@@ -546,7 +595,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
546
595
|
headerParameters['Content-Type'] = 'application/json';
|
|
547
596
|
|
|
548
597
|
if (this.configuration && this.configuration.apiKey) {
|
|
549
|
-
|
|
598
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
599
|
+
{
|
|
600
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
601
|
+
|
|
602
|
+
if (apiKeyValue) {
|
|
603
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
550
606
|
}
|
|
551
607
|
|
|
552
608
|
const response = await this.request({
|
|
@@ -588,7 +644,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
588
644
|
headerParameters['Content-Type'] = 'application/json';
|
|
589
645
|
|
|
590
646
|
if (this.configuration && this.configuration.apiKey) {
|
|
591
|
-
|
|
647
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
648
|
+
{
|
|
649
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
650
|
+
|
|
651
|
+
if (apiKeyValue) {
|
|
652
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
653
|
+
}
|
|
654
|
+
}
|
|
592
655
|
}
|
|
593
656
|
|
|
594
657
|
const response = await this.request({
|
|
@@ -621,7 +684,14 @@ export class SMSApi extends runtime.BaseAPI implements SMSApiInterface {
|
|
|
621
684
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
622
685
|
|
|
623
686
|
if (this.configuration && this.configuration.apiKey) {
|
|
624
|
-
|
|
687
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
688
|
+
{
|
|
689
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
690
|
+
|
|
691
|
+
if (apiKeyValue) {
|
|
692
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
625
695
|
}
|
|
626
696
|
|
|
627
697
|
const response = await this.request({
|
package/src/src/apis/SlackApi.ts
CHANGED
|
@@ -133,7 +133,14 @@ export class SlackApi extends runtime.BaseAPI implements SlackApiInterface {
|
|
|
133
133
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
134
134
|
|
|
135
135
|
if (this.configuration && this.configuration.apiKey) {
|
|
136
|
-
|
|
136
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
137
|
+
{
|
|
138
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
139
|
+
|
|
140
|
+
if (apiKeyValue) {
|
|
141
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
142
|
+
}
|
|
143
|
+
}
|
|
137
144
|
}
|
|
138
145
|
|
|
139
146
|
const response = await this.request({
|
|
@@ -185,7 +192,14 @@ export class SlackApi extends runtime.BaseAPI implements SlackApiInterface {
|
|
|
185
192
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
186
193
|
|
|
187
194
|
if (this.configuration && this.configuration.apiKey) {
|
|
188
|
-
|
|
195
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
196
|
+
{
|
|
197
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
198
|
+
|
|
199
|
+
if (apiKeyValue) {
|
|
200
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
201
|
+
}
|
|
202
|
+
}
|
|
189
203
|
}
|
|
190
204
|
|
|
191
205
|
const response = await this.request({
|
|
@@ -226,7 +240,14 @@ export class SlackApi extends runtime.BaseAPI implements SlackApiInterface {
|
|
|
226
240
|
headerParameters['Content-Type'] = 'application/json';
|
|
227
241
|
|
|
228
242
|
if (this.configuration && this.configuration.apiKey) {
|
|
229
|
-
|
|
243
|
+
// An unresolved credential must produce NO header, not an empty one (sc-8162).
|
|
244
|
+
{
|
|
245
|
+
const apiKeyValue = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
|
|
246
|
+
|
|
247
|
+
if (apiKeyValue) {
|
|
248
|
+
headerParameters["X-API-Key"] = apiKeyValue;
|
|
249
|
+
}
|
|
250
|
+
}
|
|
230
251
|
}
|
|
231
252
|
|
|
232
253
|
const response = await this.request({
|