@zyphr-dev/node-sdk 0.1.18 → 0.1.20
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 +2473 -200
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4376 -1787
- package/dist/index.d.ts +4376 -1787
- package/dist/index.js +2274 -195
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +40 -1
- package/src/client.ts +3 -0
- package/src/src/apis/AuthEmailTemplatesApi.ts +734 -0
- package/src/src/apis/ExecutionsApi.ts +225 -0
- package/src/src/apis/SlackApi.ts +264 -0
- package/src/src/apis/index.ts +3 -0
- package/src/src/models/AuthEmailTemplate.ts +181 -0
- package/src/src/models/AuthEmailTemplateDefault.ts +107 -0
- package/src/src/models/AuthEmailTemplateDefaultResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplateDeleteResponse.ts +88 -0
- package/src/src/models/{SuccessResultData.ts → AuthEmailTemplateDeleteResponseData.ts} +11 -11
- package/src/src/models/AuthEmailTemplateListResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplatePreviewRequest.ts +65 -0
- package/src/src/models/AuthEmailTemplatePreviewResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplatePreviewResult.ts +97 -0
- package/src/src/models/AuthEmailTemplateResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplateTestRequest.ts +74 -0
- package/src/src/models/AuthEmailTemplateTestResponse.ts +88 -0
- package/src/src/models/AuthEmailTemplateTestResult.ts +73 -0
- package/src/src/models/AuthEmailTemplateVersion.ts +157 -0
- package/src/src/models/AuthEmailTemplateVersionsResponse.ts +88 -0
- package/src/src/models/AuthEmailType.ts +54 -0
- package/src/src/models/BulkUpsertAuthEmailTemplatesRequest.ts +91 -0
- package/src/src/models/BulkUpsertAuthEmailTemplatesResponse.ts +88 -0
- package/src/src/models/ExecutionCancelResponse.ts +88 -0
- package/src/src/models/ExecutionCancelResponseData.ts +83 -0
- package/src/src/models/ExecutionResponse.ts +88 -0
- package/src/src/models/ExecutionRetryResponse.ts +88 -0
- package/src/src/models/ExecutionRetryResponseData.ts +94 -0
- package/src/src/models/ResubscribeResponse.ts +10 -10
- package/src/src/models/SendSlackMessageRequest.ts +156 -0
- package/src/src/models/SendSlackMessageResponse.ts +88 -0
- package/src/src/models/SendSlackMessageResult.ts +115 -0
- package/src/src/models/SlackMessage.ts +203 -0
- package/src/src/models/SlackMessageListResponse.ts +88 -0
- package/src/src/models/SlackMessageListResponseMeta.ts +89 -0
- package/src/src/models/SlackMessageResponse.ts +88 -0
- package/src/src/models/SlackMessageStatus.ts +56 -0
- package/src/src/models/SlackMessageSummary.ts +155 -0
- package/src/src/models/SuccessResult.ts +10 -10
- package/src/src/models/UpsertAuthEmailTemplateRequest.ts +143 -0
- package/src/src/models/WorkflowExecution.ts +201 -0
- package/src/src/models/WorkflowExecutionStatus.ts +56 -0
- package/src/src/models/WorkflowStepExecution.ts +184 -0
- package/src/src/models/WorkflowStepExecutionStatus.ts +57 -0
- package/src/src/models/index.ts +37 -1
package/dist/index.js
CHANGED
|
@@ -408,6 +408,556 @@ function ApiErrorToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
410
|
|
|
411
|
+
// src/src/models/AuthEmailType.ts
|
|
412
|
+
var AuthEmailType = {
|
|
413
|
+
MAGIC_LINK: "magic_link",
|
|
414
|
+
PASSWORD_RESET: "password_reset",
|
|
415
|
+
EMAIL_VERIFICATION: "email_verification"
|
|
416
|
+
};
|
|
417
|
+
function instanceOfAuthEmailType(value) {
|
|
418
|
+
for (const key in AuthEmailType) {
|
|
419
|
+
if (Object.prototype.hasOwnProperty.call(AuthEmailType, key)) {
|
|
420
|
+
if (AuthEmailType[key] === value) {
|
|
421
|
+
return true;
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
return false;
|
|
426
|
+
}
|
|
427
|
+
function AuthEmailTypeFromJSON(json) {
|
|
428
|
+
return AuthEmailTypeFromJSONTyped(json, false);
|
|
429
|
+
}
|
|
430
|
+
function AuthEmailTypeFromJSONTyped(json, ignoreDiscriminator) {
|
|
431
|
+
return json;
|
|
432
|
+
}
|
|
433
|
+
function AuthEmailTypeToJSON(value) {
|
|
434
|
+
return value;
|
|
435
|
+
}
|
|
436
|
+
function AuthEmailTypeToJSONTyped(value, ignoreDiscriminator) {
|
|
437
|
+
return value;
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
// src/src/models/AuthEmailTemplate.ts
|
|
441
|
+
var AuthEmailTemplateEditorTypeEnum = {
|
|
442
|
+
CODE: "code",
|
|
443
|
+
MJML: "mjml",
|
|
444
|
+
DESIGN: "design"
|
|
445
|
+
};
|
|
446
|
+
function instanceOfAuthEmailTemplate(value) {
|
|
447
|
+
return true;
|
|
448
|
+
}
|
|
449
|
+
function AuthEmailTemplateFromJSON(json) {
|
|
450
|
+
return AuthEmailTemplateFromJSONTyped(json, false);
|
|
451
|
+
}
|
|
452
|
+
function AuthEmailTemplateFromJSONTyped(json, ignoreDiscriminator) {
|
|
453
|
+
if (json == null) {
|
|
454
|
+
return json;
|
|
455
|
+
}
|
|
456
|
+
return {
|
|
457
|
+
"emailType": json["email_type"] == null ? void 0 : AuthEmailTypeFromJSON(json["email_type"]),
|
|
458
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
459
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
460
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
461
|
+
"mjmlSource": json["mjml_source"] == null ? void 0 : json["mjml_source"],
|
|
462
|
+
"designJson": json["design_json"] == null ? void 0 : json["design_json"],
|
|
463
|
+
"editorType": json["editor_type"] == null ? void 0 : json["editor_type"],
|
|
464
|
+
"fromName": json["from_name"] == null ? void 0 : json["from_name"],
|
|
465
|
+
"replyTo": json["reply_to"] == null ? void 0 : json["reply_to"],
|
|
466
|
+
"isEnabled": json["is_enabled"] == null ? void 0 : json["is_enabled"],
|
|
467
|
+
"isDefault": json["is_default"] == null ? void 0 : json["is_default"],
|
|
468
|
+
"hasOverride": json["has_override"] == null ? void 0 : json["has_override"],
|
|
469
|
+
"version": json["version"] == null ? void 0 : json["version"]
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
function AuthEmailTemplateToJSON(json) {
|
|
473
|
+
return AuthEmailTemplateToJSONTyped(json, false);
|
|
474
|
+
}
|
|
475
|
+
function AuthEmailTemplateToJSONTyped(value, ignoreDiscriminator = false) {
|
|
476
|
+
if (value == null) {
|
|
477
|
+
return value;
|
|
478
|
+
}
|
|
479
|
+
return {
|
|
480
|
+
"email_type": AuthEmailTypeToJSON(value["emailType"]),
|
|
481
|
+
"subject": value["subject"],
|
|
482
|
+
"html": value["html"],
|
|
483
|
+
"text": value["text"],
|
|
484
|
+
"mjml_source": value["mjmlSource"],
|
|
485
|
+
"design_json": value["designJson"],
|
|
486
|
+
"editor_type": value["editorType"],
|
|
487
|
+
"from_name": value["fromName"],
|
|
488
|
+
"reply_to": value["replyTo"],
|
|
489
|
+
"is_enabled": value["isEnabled"],
|
|
490
|
+
"is_default": value["isDefault"],
|
|
491
|
+
"has_override": value["hasOverride"],
|
|
492
|
+
"version": value["version"]
|
|
493
|
+
};
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
// src/src/models/AuthEmailTemplateDefault.ts
|
|
497
|
+
function instanceOfAuthEmailTemplateDefault(value) {
|
|
498
|
+
return true;
|
|
499
|
+
}
|
|
500
|
+
function AuthEmailTemplateDefaultFromJSON(json) {
|
|
501
|
+
return AuthEmailTemplateDefaultFromJSONTyped(json, false);
|
|
502
|
+
}
|
|
503
|
+
function AuthEmailTemplateDefaultFromJSONTyped(json, ignoreDiscriminator) {
|
|
504
|
+
if (json == null) {
|
|
505
|
+
return json;
|
|
506
|
+
}
|
|
507
|
+
return {
|
|
508
|
+
"emailType": json["email_type"] == null ? void 0 : AuthEmailTypeFromJSON(json["email_type"]),
|
|
509
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
510
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
511
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
512
|
+
"variables": json["variables"] == null ? void 0 : json["variables"]
|
|
513
|
+
};
|
|
514
|
+
}
|
|
515
|
+
function AuthEmailTemplateDefaultToJSON(json) {
|
|
516
|
+
return AuthEmailTemplateDefaultToJSONTyped(json, false);
|
|
517
|
+
}
|
|
518
|
+
function AuthEmailTemplateDefaultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
519
|
+
if (value == null) {
|
|
520
|
+
return value;
|
|
521
|
+
}
|
|
522
|
+
return {
|
|
523
|
+
"email_type": AuthEmailTypeToJSON(value["emailType"]),
|
|
524
|
+
"subject": value["subject"],
|
|
525
|
+
"html": value["html"],
|
|
526
|
+
"text": value["text"],
|
|
527
|
+
"variables": value["variables"]
|
|
528
|
+
};
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
// src/src/models/RequestMeta.ts
|
|
532
|
+
function instanceOfRequestMeta(value) {
|
|
533
|
+
return true;
|
|
534
|
+
}
|
|
535
|
+
function RequestMetaFromJSON(json) {
|
|
536
|
+
return RequestMetaFromJSONTyped(json, false);
|
|
537
|
+
}
|
|
538
|
+
function RequestMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
539
|
+
if (json == null) {
|
|
540
|
+
return json;
|
|
541
|
+
}
|
|
542
|
+
return {
|
|
543
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"]
|
|
544
|
+
};
|
|
545
|
+
}
|
|
546
|
+
function RequestMetaToJSON(json) {
|
|
547
|
+
return RequestMetaToJSONTyped(json, false);
|
|
548
|
+
}
|
|
549
|
+
function RequestMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
550
|
+
if (value == null) {
|
|
551
|
+
return value;
|
|
552
|
+
}
|
|
553
|
+
return {
|
|
554
|
+
"request_id": value["requestId"]
|
|
555
|
+
};
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
// src/src/models/AuthEmailTemplateDefaultResponse.ts
|
|
559
|
+
function instanceOfAuthEmailTemplateDefaultResponse(value) {
|
|
560
|
+
return true;
|
|
561
|
+
}
|
|
562
|
+
function AuthEmailTemplateDefaultResponseFromJSON(json) {
|
|
563
|
+
return AuthEmailTemplateDefaultResponseFromJSONTyped(json, false);
|
|
564
|
+
}
|
|
565
|
+
function AuthEmailTemplateDefaultResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
566
|
+
if (json == null) {
|
|
567
|
+
return json;
|
|
568
|
+
}
|
|
569
|
+
return {
|
|
570
|
+
"data": json["data"] == null ? void 0 : AuthEmailTemplateDefaultFromJSON(json["data"]),
|
|
571
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
572
|
+
};
|
|
573
|
+
}
|
|
574
|
+
function AuthEmailTemplateDefaultResponseToJSON(json) {
|
|
575
|
+
return AuthEmailTemplateDefaultResponseToJSONTyped(json, false);
|
|
576
|
+
}
|
|
577
|
+
function AuthEmailTemplateDefaultResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
578
|
+
if (value == null) {
|
|
579
|
+
return value;
|
|
580
|
+
}
|
|
581
|
+
return {
|
|
582
|
+
"data": AuthEmailTemplateDefaultToJSON(value["data"]),
|
|
583
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
// src/src/models/AuthEmailTemplateDeleteResponseData.ts
|
|
588
|
+
function instanceOfAuthEmailTemplateDeleteResponseData(value) {
|
|
589
|
+
return true;
|
|
590
|
+
}
|
|
591
|
+
function AuthEmailTemplateDeleteResponseDataFromJSON(json) {
|
|
592
|
+
return AuthEmailTemplateDeleteResponseDataFromJSONTyped(json, false);
|
|
593
|
+
}
|
|
594
|
+
function AuthEmailTemplateDeleteResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
595
|
+
if (json == null) {
|
|
596
|
+
return json;
|
|
597
|
+
}
|
|
598
|
+
return {
|
|
599
|
+
"success": json["success"] == null ? void 0 : json["success"]
|
|
600
|
+
};
|
|
601
|
+
}
|
|
602
|
+
function AuthEmailTemplateDeleteResponseDataToJSON(json) {
|
|
603
|
+
return AuthEmailTemplateDeleteResponseDataToJSONTyped(json, false);
|
|
604
|
+
}
|
|
605
|
+
function AuthEmailTemplateDeleteResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
606
|
+
if (value == null) {
|
|
607
|
+
return value;
|
|
608
|
+
}
|
|
609
|
+
return {
|
|
610
|
+
"success": value["success"]
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// src/src/models/AuthEmailTemplateDeleteResponse.ts
|
|
615
|
+
function instanceOfAuthEmailTemplateDeleteResponse(value) {
|
|
616
|
+
return true;
|
|
617
|
+
}
|
|
618
|
+
function AuthEmailTemplateDeleteResponseFromJSON(json) {
|
|
619
|
+
return AuthEmailTemplateDeleteResponseFromJSONTyped(json, false);
|
|
620
|
+
}
|
|
621
|
+
function AuthEmailTemplateDeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
622
|
+
if (json == null) {
|
|
623
|
+
return json;
|
|
624
|
+
}
|
|
625
|
+
return {
|
|
626
|
+
"data": json["data"] == null ? void 0 : AuthEmailTemplateDeleteResponseDataFromJSON(json["data"]),
|
|
627
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
628
|
+
};
|
|
629
|
+
}
|
|
630
|
+
function AuthEmailTemplateDeleteResponseToJSON(json) {
|
|
631
|
+
return AuthEmailTemplateDeleteResponseToJSONTyped(json, false);
|
|
632
|
+
}
|
|
633
|
+
function AuthEmailTemplateDeleteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
634
|
+
if (value == null) {
|
|
635
|
+
return value;
|
|
636
|
+
}
|
|
637
|
+
return {
|
|
638
|
+
"data": AuthEmailTemplateDeleteResponseDataToJSON(value["data"]),
|
|
639
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// src/src/models/AuthEmailTemplateListResponse.ts
|
|
644
|
+
function instanceOfAuthEmailTemplateListResponse(value) {
|
|
645
|
+
return true;
|
|
646
|
+
}
|
|
647
|
+
function AuthEmailTemplateListResponseFromJSON(json) {
|
|
648
|
+
return AuthEmailTemplateListResponseFromJSONTyped(json, false);
|
|
649
|
+
}
|
|
650
|
+
function AuthEmailTemplateListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
651
|
+
if (json == null) {
|
|
652
|
+
return json;
|
|
653
|
+
}
|
|
654
|
+
return {
|
|
655
|
+
"data": json["data"] == null ? void 0 : json["data"].map(AuthEmailTemplateFromJSON),
|
|
656
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
657
|
+
};
|
|
658
|
+
}
|
|
659
|
+
function AuthEmailTemplateListResponseToJSON(json) {
|
|
660
|
+
return AuthEmailTemplateListResponseToJSONTyped(json, false);
|
|
661
|
+
}
|
|
662
|
+
function AuthEmailTemplateListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
663
|
+
if (value == null) {
|
|
664
|
+
return value;
|
|
665
|
+
}
|
|
666
|
+
return {
|
|
667
|
+
"data": value["data"] == null ? void 0 : value["data"].map(AuthEmailTemplateToJSON),
|
|
668
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
669
|
+
};
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// src/src/models/AuthEmailTemplatePreviewRequest.ts
|
|
673
|
+
function instanceOfAuthEmailTemplatePreviewRequest(value) {
|
|
674
|
+
return true;
|
|
675
|
+
}
|
|
676
|
+
function AuthEmailTemplatePreviewRequestFromJSON(json) {
|
|
677
|
+
return AuthEmailTemplatePreviewRequestFromJSONTyped(json, false);
|
|
678
|
+
}
|
|
679
|
+
function AuthEmailTemplatePreviewRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
680
|
+
if (json == null) {
|
|
681
|
+
return json;
|
|
682
|
+
}
|
|
683
|
+
return {
|
|
684
|
+
"variables": json["variables"] == null ? void 0 : json["variables"]
|
|
685
|
+
};
|
|
686
|
+
}
|
|
687
|
+
function AuthEmailTemplatePreviewRequestToJSON(json) {
|
|
688
|
+
return AuthEmailTemplatePreviewRequestToJSONTyped(json, false);
|
|
689
|
+
}
|
|
690
|
+
function AuthEmailTemplatePreviewRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
691
|
+
if (value == null) {
|
|
692
|
+
return value;
|
|
693
|
+
}
|
|
694
|
+
return {
|
|
695
|
+
"variables": value["variables"]
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
// src/src/models/AuthEmailTemplatePreviewResult.ts
|
|
700
|
+
function instanceOfAuthEmailTemplatePreviewResult(value) {
|
|
701
|
+
return true;
|
|
702
|
+
}
|
|
703
|
+
function AuthEmailTemplatePreviewResultFromJSON(json) {
|
|
704
|
+
return AuthEmailTemplatePreviewResultFromJSONTyped(json, false);
|
|
705
|
+
}
|
|
706
|
+
function AuthEmailTemplatePreviewResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
707
|
+
if (json == null) {
|
|
708
|
+
return json;
|
|
709
|
+
}
|
|
710
|
+
return {
|
|
711
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
712
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
713
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
714
|
+
"fromName": json["from_name"] == null ? void 0 : json["from_name"],
|
|
715
|
+
"replyTo": json["reply_to"] == null ? void 0 : json["reply_to"]
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
function AuthEmailTemplatePreviewResultToJSON(json) {
|
|
719
|
+
return AuthEmailTemplatePreviewResultToJSONTyped(json, false);
|
|
720
|
+
}
|
|
721
|
+
function AuthEmailTemplatePreviewResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
722
|
+
if (value == null) {
|
|
723
|
+
return value;
|
|
724
|
+
}
|
|
725
|
+
return {
|
|
726
|
+
"subject": value["subject"],
|
|
727
|
+
"html": value["html"],
|
|
728
|
+
"text": value["text"],
|
|
729
|
+
"from_name": value["fromName"],
|
|
730
|
+
"reply_to": value["replyTo"]
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
// src/src/models/AuthEmailTemplatePreviewResponse.ts
|
|
735
|
+
function instanceOfAuthEmailTemplatePreviewResponse(value) {
|
|
736
|
+
return true;
|
|
737
|
+
}
|
|
738
|
+
function AuthEmailTemplatePreviewResponseFromJSON(json) {
|
|
739
|
+
return AuthEmailTemplatePreviewResponseFromJSONTyped(json, false);
|
|
740
|
+
}
|
|
741
|
+
function AuthEmailTemplatePreviewResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
742
|
+
if (json == null) {
|
|
743
|
+
return json;
|
|
744
|
+
}
|
|
745
|
+
return {
|
|
746
|
+
"data": json["data"] == null ? void 0 : AuthEmailTemplatePreviewResultFromJSON(json["data"]),
|
|
747
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
748
|
+
};
|
|
749
|
+
}
|
|
750
|
+
function AuthEmailTemplatePreviewResponseToJSON(json) {
|
|
751
|
+
return AuthEmailTemplatePreviewResponseToJSONTyped(json, false);
|
|
752
|
+
}
|
|
753
|
+
function AuthEmailTemplatePreviewResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
754
|
+
if (value == null) {
|
|
755
|
+
return value;
|
|
756
|
+
}
|
|
757
|
+
return {
|
|
758
|
+
"data": AuthEmailTemplatePreviewResultToJSON(value["data"]),
|
|
759
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
760
|
+
};
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
// src/src/models/AuthEmailTemplateResponse.ts
|
|
764
|
+
function instanceOfAuthEmailTemplateResponse(value) {
|
|
765
|
+
return true;
|
|
766
|
+
}
|
|
767
|
+
function AuthEmailTemplateResponseFromJSON(json) {
|
|
768
|
+
return AuthEmailTemplateResponseFromJSONTyped(json, false);
|
|
769
|
+
}
|
|
770
|
+
function AuthEmailTemplateResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
771
|
+
if (json == null) {
|
|
772
|
+
return json;
|
|
773
|
+
}
|
|
774
|
+
return {
|
|
775
|
+
"data": json["data"] == null ? void 0 : AuthEmailTemplateFromJSON(json["data"]),
|
|
776
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
function AuthEmailTemplateResponseToJSON(json) {
|
|
780
|
+
return AuthEmailTemplateResponseToJSONTyped(json, false);
|
|
781
|
+
}
|
|
782
|
+
function AuthEmailTemplateResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
783
|
+
if (value == null) {
|
|
784
|
+
return value;
|
|
785
|
+
}
|
|
786
|
+
return {
|
|
787
|
+
"data": AuthEmailTemplateToJSON(value["data"]),
|
|
788
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
// src/src/models/AuthEmailTemplateTestRequest.ts
|
|
793
|
+
function instanceOfAuthEmailTemplateTestRequest(value) {
|
|
794
|
+
if (!("to" in value) || value["to"] === void 0) return false;
|
|
795
|
+
return true;
|
|
796
|
+
}
|
|
797
|
+
function AuthEmailTemplateTestRequestFromJSON(json) {
|
|
798
|
+
return AuthEmailTemplateTestRequestFromJSONTyped(json, false);
|
|
799
|
+
}
|
|
800
|
+
function AuthEmailTemplateTestRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
801
|
+
if (json == null) {
|
|
802
|
+
return json;
|
|
803
|
+
}
|
|
804
|
+
return {
|
|
805
|
+
"to": json["to"],
|
|
806
|
+
"variables": json["variables"] == null ? void 0 : json["variables"]
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
function AuthEmailTemplateTestRequestToJSON(json) {
|
|
810
|
+
return AuthEmailTemplateTestRequestToJSONTyped(json, false);
|
|
811
|
+
}
|
|
812
|
+
function AuthEmailTemplateTestRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
813
|
+
if (value == null) {
|
|
814
|
+
return value;
|
|
815
|
+
}
|
|
816
|
+
return {
|
|
817
|
+
"to": value["to"],
|
|
818
|
+
"variables": value["variables"]
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
// src/src/models/AuthEmailTemplateTestResult.ts
|
|
823
|
+
function instanceOfAuthEmailTemplateTestResult(value) {
|
|
824
|
+
return true;
|
|
825
|
+
}
|
|
826
|
+
function AuthEmailTemplateTestResultFromJSON(json) {
|
|
827
|
+
return AuthEmailTemplateTestResultFromJSONTyped(json, false);
|
|
828
|
+
}
|
|
829
|
+
function AuthEmailTemplateTestResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
830
|
+
if (json == null) {
|
|
831
|
+
return json;
|
|
832
|
+
}
|
|
833
|
+
return {
|
|
834
|
+
"success": json["success"] == null ? void 0 : json["success"],
|
|
835
|
+
"messageId": json["message_id"] == null ? void 0 : json["message_id"]
|
|
836
|
+
};
|
|
837
|
+
}
|
|
838
|
+
function AuthEmailTemplateTestResultToJSON(json) {
|
|
839
|
+
return AuthEmailTemplateTestResultToJSONTyped(json, false);
|
|
840
|
+
}
|
|
841
|
+
function AuthEmailTemplateTestResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
842
|
+
if (value == null) {
|
|
843
|
+
return value;
|
|
844
|
+
}
|
|
845
|
+
return {
|
|
846
|
+
"success": value["success"],
|
|
847
|
+
"message_id": value["messageId"]
|
|
848
|
+
};
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
// src/src/models/AuthEmailTemplateTestResponse.ts
|
|
852
|
+
function instanceOfAuthEmailTemplateTestResponse(value) {
|
|
853
|
+
return true;
|
|
854
|
+
}
|
|
855
|
+
function AuthEmailTemplateTestResponseFromJSON(json) {
|
|
856
|
+
return AuthEmailTemplateTestResponseFromJSONTyped(json, false);
|
|
857
|
+
}
|
|
858
|
+
function AuthEmailTemplateTestResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
859
|
+
if (json == null) {
|
|
860
|
+
return json;
|
|
861
|
+
}
|
|
862
|
+
return {
|
|
863
|
+
"data": json["data"] == null ? void 0 : AuthEmailTemplateTestResultFromJSON(json["data"]),
|
|
864
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
function AuthEmailTemplateTestResponseToJSON(json) {
|
|
868
|
+
return AuthEmailTemplateTestResponseToJSONTyped(json, false);
|
|
869
|
+
}
|
|
870
|
+
function AuthEmailTemplateTestResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
871
|
+
if (value == null) {
|
|
872
|
+
return value;
|
|
873
|
+
}
|
|
874
|
+
return {
|
|
875
|
+
"data": AuthEmailTemplateTestResultToJSON(value["data"]),
|
|
876
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
877
|
+
};
|
|
878
|
+
}
|
|
879
|
+
|
|
880
|
+
// src/src/models/AuthEmailTemplateVersion.ts
|
|
881
|
+
var AuthEmailTemplateVersionEditorTypeEnum = {
|
|
882
|
+
CODE: "code",
|
|
883
|
+
MJML: "mjml",
|
|
884
|
+
DESIGN: "design"
|
|
885
|
+
};
|
|
886
|
+
function instanceOfAuthEmailTemplateVersion(value) {
|
|
887
|
+
return true;
|
|
888
|
+
}
|
|
889
|
+
function AuthEmailTemplateVersionFromJSON(json) {
|
|
890
|
+
return AuthEmailTemplateVersionFromJSONTyped(json, false);
|
|
891
|
+
}
|
|
892
|
+
function AuthEmailTemplateVersionFromJSONTyped(json, ignoreDiscriminator) {
|
|
893
|
+
if (json == null) {
|
|
894
|
+
return json;
|
|
895
|
+
}
|
|
896
|
+
return {
|
|
897
|
+
"version": json["version"] == null ? void 0 : json["version"],
|
|
898
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
899
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
900
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
901
|
+
"mjmlSource": json["mjml_source"] == null ? void 0 : json["mjml_source"],
|
|
902
|
+
"designJson": json["design_json"] == null ? void 0 : json["design_json"],
|
|
903
|
+
"editorType": json["editor_type"] == null ? void 0 : json["editor_type"],
|
|
904
|
+
"fromName": json["from_name"] == null ? void 0 : json["from_name"],
|
|
905
|
+
"replyTo": json["reply_to"] == null ? void 0 : json["reply_to"],
|
|
906
|
+
"isEnabled": json["is_enabled"] == null ? void 0 : json["is_enabled"],
|
|
907
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
function AuthEmailTemplateVersionToJSON(json) {
|
|
911
|
+
return AuthEmailTemplateVersionToJSONTyped(json, false);
|
|
912
|
+
}
|
|
913
|
+
function AuthEmailTemplateVersionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
914
|
+
if (value == null) {
|
|
915
|
+
return value;
|
|
916
|
+
}
|
|
917
|
+
return {
|
|
918
|
+
"version": value["version"],
|
|
919
|
+
"subject": value["subject"],
|
|
920
|
+
"html": value["html"],
|
|
921
|
+
"text": value["text"],
|
|
922
|
+
"mjml_source": value["mjmlSource"],
|
|
923
|
+
"design_json": value["designJson"],
|
|
924
|
+
"editor_type": value["editorType"],
|
|
925
|
+
"from_name": value["fromName"],
|
|
926
|
+
"reply_to": value["replyTo"],
|
|
927
|
+
"is_enabled": value["isEnabled"],
|
|
928
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
|
|
929
|
+
};
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
// src/src/models/AuthEmailTemplateVersionsResponse.ts
|
|
933
|
+
function instanceOfAuthEmailTemplateVersionsResponse(value) {
|
|
934
|
+
return true;
|
|
935
|
+
}
|
|
936
|
+
function AuthEmailTemplateVersionsResponseFromJSON(json) {
|
|
937
|
+
return AuthEmailTemplateVersionsResponseFromJSONTyped(json, false);
|
|
938
|
+
}
|
|
939
|
+
function AuthEmailTemplateVersionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
940
|
+
if (json == null) {
|
|
941
|
+
return json;
|
|
942
|
+
}
|
|
943
|
+
return {
|
|
944
|
+
"data": json["data"] == null ? void 0 : json["data"].map(AuthEmailTemplateVersionFromJSON),
|
|
945
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
946
|
+
};
|
|
947
|
+
}
|
|
948
|
+
function AuthEmailTemplateVersionsResponseToJSON(json) {
|
|
949
|
+
return AuthEmailTemplateVersionsResponseToJSONTyped(json, false);
|
|
950
|
+
}
|
|
951
|
+
function AuthEmailTemplateVersionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
952
|
+
if (value == null) {
|
|
953
|
+
return value;
|
|
954
|
+
}
|
|
955
|
+
return {
|
|
956
|
+
"data": value["data"] == null ? void 0 : value["data"].map(AuthEmailTemplateVersionToJSON),
|
|
957
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
|
|
411
961
|
// src/src/models/AuthTokens.ts
|
|
412
962
|
function instanceOfAuthTokens(value) {
|
|
413
963
|
return true;
|
|
@@ -559,33 +1109,6 @@ function AuthLoginResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
559
1109
|
};
|
|
560
1110
|
}
|
|
561
1111
|
|
|
562
|
-
// src/src/models/RequestMeta.ts
|
|
563
|
-
function instanceOfRequestMeta(value) {
|
|
564
|
-
return true;
|
|
565
|
-
}
|
|
566
|
-
function RequestMetaFromJSON(json) {
|
|
567
|
-
return RequestMetaFromJSONTyped(json, false);
|
|
568
|
-
}
|
|
569
|
-
function RequestMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
570
|
-
if (json == null) {
|
|
571
|
-
return json;
|
|
572
|
-
}
|
|
573
|
-
return {
|
|
574
|
-
"requestId": json["request_id"] == null ? void 0 : json["request_id"]
|
|
575
|
-
};
|
|
576
|
-
}
|
|
577
|
-
function RequestMetaToJSON(json) {
|
|
578
|
-
return RequestMetaToJSONTyped(json, false);
|
|
579
|
-
}
|
|
580
|
-
function RequestMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
581
|
-
if (value == null) {
|
|
582
|
-
return value;
|
|
583
|
-
}
|
|
584
|
-
return {
|
|
585
|
-
"request_id": value["requestId"]
|
|
586
|
-
};
|
|
587
|
-
}
|
|
588
|
-
|
|
589
1112
|
// src/src/models/AuthLoginResponse.ts
|
|
590
1113
|
function instanceOfAuthLoginResponse(value) {
|
|
591
1114
|
return true;
|
|
@@ -770,94 +1293,202 @@ function AuthUserResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
770
1293
|
function instanceOfWaaSBatchPublishResponse(value) {
|
|
771
1294
|
return true;
|
|
772
1295
|
}
|
|
773
|
-
function WaaSBatchPublishResponseFromJSON(json) {
|
|
774
|
-
return WaaSBatchPublishResponseFromJSONTyped(json, false);
|
|
1296
|
+
function WaaSBatchPublishResponseFromJSON(json) {
|
|
1297
|
+
return WaaSBatchPublishResponseFromJSONTyped(json, false);
|
|
1298
|
+
}
|
|
1299
|
+
function WaaSBatchPublishResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1300
|
+
if (json == null) {
|
|
1301
|
+
return json;
|
|
1302
|
+
}
|
|
1303
|
+
return {
|
|
1304
|
+
"published": json["published"] == null ? void 0 : json["published"],
|
|
1305
|
+
"failed": json["failed"] == null ? void 0 : json["failed"],
|
|
1306
|
+
"results": json["results"] == null ? void 0 : json["results"]
|
|
1307
|
+
};
|
|
1308
|
+
}
|
|
1309
|
+
function WaaSBatchPublishResponseToJSON(json) {
|
|
1310
|
+
return WaaSBatchPublishResponseToJSONTyped(json, false);
|
|
1311
|
+
}
|
|
1312
|
+
function WaaSBatchPublishResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1313
|
+
if (value == null) {
|
|
1314
|
+
return value;
|
|
1315
|
+
}
|
|
1316
|
+
return {
|
|
1317
|
+
"published": value["published"],
|
|
1318
|
+
"failed": value["failed"],
|
|
1319
|
+
"results": value["results"]
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
// src/src/models/BatchPublishWaaSEvents201Response.ts
|
|
1324
|
+
function instanceOfBatchPublishWaaSEvents201Response(value) {
|
|
1325
|
+
return true;
|
|
1326
|
+
}
|
|
1327
|
+
function BatchPublishWaaSEvents201ResponseFromJSON(json) {
|
|
1328
|
+
return BatchPublishWaaSEvents201ResponseFromJSONTyped(json, false);
|
|
1329
|
+
}
|
|
1330
|
+
function BatchPublishWaaSEvents201ResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
1331
|
+
if (json == null) {
|
|
1332
|
+
return json;
|
|
1333
|
+
}
|
|
1334
|
+
return {
|
|
1335
|
+
"data": json["data"] == null ? void 0 : WaaSBatchPublishResponseFromJSON(json["data"])
|
|
1336
|
+
};
|
|
1337
|
+
}
|
|
1338
|
+
function BatchPublishWaaSEvents201ResponseToJSON(json) {
|
|
1339
|
+
return BatchPublishWaaSEvents201ResponseToJSONTyped(json, false);
|
|
1340
|
+
}
|
|
1341
|
+
function BatchPublishWaaSEvents201ResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1342
|
+
if (value == null) {
|
|
1343
|
+
return value;
|
|
1344
|
+
}
|
|
1345
|
+
return {
|
|
1346
|
+
"data": WaaSBatchPublishResponseToJSON(value["data"])
|
|
1347
|
+
};
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
// src/src/models/BulkRetryWebhookDeliveriesRequest.ts
|
|
1351
|
+
var BulkRetryWebhookDeliveriesRequestStatusEnum = {
|
|
1352
|
+
FAILED: "failed",
|
|
1353
|
+
EXHAUSTED: "exhausted"
|
|
1354
|
+
};
|
|
1355
|
+
function instanceOfBulkRetryWebhookDeliveriesRequest(value) {
|
|
1356
|
+
return true;
|
|
1357
|
+
}
|
|
1358
|
+
function BulkRetryWebhookDeliveriesRequestFromJSON(json) {
|
|
1359
|
+
return BulkRetryWebhookDeliveriesRequestFromJSONTyped(json, false);
|
|
1360
|
+
}
|
|
1361
|
+
function BulkRetryWebhookDeliveriesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
1362
|
+
if (json == null) {
|
|
1363
|
+
return json;
|
|
1364
|
+
}
|
|
1365
|
+
return {
|
|
1366
|
+
"status": json["status"] == null ? void 0 : json["status"],
|
|
1367
|
+
"startDate": json["start_date"] == null ? void 0 : new Date(json["start_date"]),
|
|
1368
|
+
"endDate": json["end_date"] == null ? void 0 : new Date(json["end_date"]),
|
|
1369
|
+
"eventTypes": json["event_types"] == null ? void 0 : json["event_types"]
|
|
1370
|
+
};
|
|
1371
|
+
}
|
|
1372
|
+
function BulkRetryWebhookDeliveriesRequestToJSON(json) {
|
|
1373
|
+
return BulkRetryWebhookDeliveriesRequestToJSONTyped(json, false);
|
|
1374
|
+
}
|
|
1375
|
+
function BulkRetryWebhookDeliveriesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
1376
|
+
if (value == null) {
|
|
1377
|
+
return value;
|
|
1378
|
+
}
|
|
1379
|
+
return {
|
|
1380
|
+
"status": value["status"],
|
|
1381
|
+
"start_date": value["startDate"] == null ? void 0 : value["startDate"].toISOString(),
|
|
1382
|
+
"end_date": value["endDate"] == null ? void 0 : value["endDate"].toISOString(),
|
|
1383
|
+
"event_types": value["eventTypes"]
|
|
1384
|
+
};
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
// src/src/models/UpsertAuthEmailTemplateRequest.ts
|
|
1388
|
+
var UpsertAuthEmailTemplateRequestEditorTypeEnum = {
|
|
1389
|
+
CODE: "code",
|
|
1390
|
+
MJML: "mjml",
|
|
1391
|
+
DESIGN: "design"
|
|
1392
|
+
};
|
|
1393
|
+
function instanceOfUpsertAuthEmailTemplateRequest(value) {
|
|
1394
|
+
return true;
|
|
1395
|
+
}
|
|
1396
|
+
function UpsertAuthEmailTemplateRequestFromJSON(json) {
|
|
1397
|
+
return UpsertAuthEmailTemplateRequestFromJSONTyped(json, false);
|
|
775
1398
|
}
|
|
776
|
-
function
|
|
1399
|
+
function UpsertAuthEmailTemplateRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
777
1400
|
if (json == null) {
|
|
778
1401
|
return json;
|
|
779
1402
|
}
|
|
780
1403
|
return {
|
|
781
|
-
"
|
|
782
|
-
"
|
|
783
|
-
"
|
|
1404
|
+
"subject": json["subject"] == null ? void 0 : json["subject"],
|
|
1405
|
+
"html": json["html"] == null ? void 0 : json["html"],
|
|
1406
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
1407
|
+
"mjmlSource": json["mjml_source"] == null ? void 0 : json["mjml_source"],
|
|
1408
|
+
"designJson": json["design_json"] == null ? void 0 : json["design_json"],
|
|
1409
|
+
"editorType": json["editor_type"] == null ? void 0 : json["editor_type"],
|
|
1410
|
+
"fromName": json["from_name"] == null ? void 0 : json["from_name"],
|
|
1411
|
+
"replyTo": json["reply_to"] == null ? void 0 : json["reply_to"],
|
|
1412
|
+
"isEnabled": json["is_enabled"] == null ? void 0 : json["is_enabled"]
|
|
784
1413
|
};
|
|
785
1414
|
}
|
|
786
|
-
function
|
|
787
|
-
return
|
|
1415
|
+
function UpsertAuthEmailTemplateRequestToJSON(json) {
|
|
1416
|
+
return UpsertAuthEmailTemplateRequestToJSONTyped(json, false);
|
|
788
1417
|
}
|
|
789
|
-
function
|
|
1418
|
+
function UpsertAuthEmailTemplateRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
790
1419
|
if (value == null) {
|
|
791
1420
|
return value;
|
|
792
1421
|
}
|
|
793
1422
|
return {
|
|
794
|
-
"
|
|
795
|
-
"
|
|
796
|
-
"
|
|
1423
|
+
"subject": value["subject"],
|
|
1424
|
+
"html": value["html"],
|
|
1425
|
+
"text": value["text"],
|
|
1426
|
+
"mjml_source": value["mjmlSource"],
|
|
1427
|
+
"design_json": value["designJson"],
|
|
1428
|
+
"editor_type": value["editorType"],
|
|
1429
|
+
"from_name": value["fromName"],
|
|
1430
|
+
"reply_to": value["replyTo"],
|
|
1431
|
+
"is_enabled": value["isEnabled"]
|
|
797
1432
|
};
|
|
798
1433
|
}
|
|
799
1434
|
|
|
800
|
-
// src/src/models/
|
|
801
|
-
function
|
|
1435
|
+
// src/src/models/BulkUpsertAuthEmailTemplatesRequest.ts
|
|
1436
|
+
function instanceOfBulkUpsertAuthEmailTemplatesRequest(value) {
|
|
802
1437
|
return true;
|
|
803
1438
|
}
|
|
804
|
-
function
|
|
805
|
-
return
|
|
1439
|
+
function BulkUpsertAuthEmailTemplatesRequestFromJSON(json) {
|
|
1440
|
+
return BulkUpsertAuthEmailTemplatesRequestFromJSONTyped(json, false);
|
|
806
1441
|
}
|
|
807
|
-
function
|
|
1442
|
+
function BulkUpsertAuthEmailTemplatesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
808
1443
|
if (json == null) {
|
|
809
1444
|
return json;
|
|
810
1445
|
}
|
|
811
1446
|
return {
|
|
812
|
-
"
|
|
1447
|
+
"magicLink": json["magic_link"] == null ? void 0 : UpsertAuthEmailTemplateRequestFromJSON(json["magic_link"]),
|
|
1448
|
+
"passwordReset": json["password_reset"] == null ? void 0 : UpsertAuthEmailTemplateRequestFromJSON(json["password_reset"]),
|
|
1449
|
+
"emailVerification": json["email_verification"] == null ? void 0 : UpsertAuthEmailTemplateRequestFromJSON(json["email_verification"])
|
|
813
1450
|
};
|
|
814
1451
|
}
|
|
815
|
-
function
|
|
816
|
-
return
|
|
1452
|
+
function BulkUpsertAuthEmailTemplatesRequestToJSON(json) {
|
|
1453
|
+
return BulkUpsertAuthEmailTemplatesRequestToJSONTyped(json, false);
|
|
817
1454
|
}
|
|
818
|
-
function
|
|
1455
|
+
function BulkUpsertAuthEmailTemplatesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
819
1456
|
if (value == null) {
|
|
820
1457
|
return value;
|
|
821
1458
|
}
|
|
822
1459
|
return {
|
|
823
|
-
"
|
|
1460
|
+
"magic_link": UpsertAuthEmailTemplateRequestToJSON(value["magicLink"]),
|
|
1461
|
+
"password_reset": UpsertAuthEmailTemplateRequestToJSON(value["passwordReset"]),
|
|
1462
|
+
"email_verification": UpsertAuthEmailTemplateRequestToJSON(value["emailVerification"])
|
|
824
1463
|
};
|
|
825
1464
|
}
|
|
826
1465
|
|
|
827
|
-
// src/src/models/
|
|
828
|
-
|
|
829
|
-
FAILED: "failed",
|
|
830
|
-
EXHAUSTED: "exhausted"
|
|
831
|
-
};
|
|
832
|
-
function instanceOfBulkRetryWebhookDeliveriesRequest(value) {
|
|
1466
|
+
// src/src/models/BulkUpsertAuthEmailTemplatesResponse.ts
|
|
1467
|
+
function instanceOfBulkUpsertAuthEmailTemplatesResponse(value) {
|
|
833
1468
|
return true;
|
|
834
1469
|
}
|
|
835
|
-
function
|
|
836
|
-
return
|
|
1470
|
+
function BulkUpsertAuthEmailTemplatesResponseFromJSON(json) {
|
|
1471
|
+
return BulkUpsertAuthEmailTemplatesResponseFromJSONTyped(json, false);
|
|
837
1472
|
}
|
|
838
|
-
function
|
|
1473
|
+
function BulkUpsertAuthEmailTemplatesResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
839
1474
|
if (json == null) {
|
|
840
1475
|
return json;
|
|
841
1476
|
}
|
|
842
1477
|
return {
|
|
843
|
-
"
|
|
844
|
-
"
|
|
845
|
-
"endDate": json["end_date"] == null ? void 0 : new Date(json["end_date"]),
|
|
846
|
-
"eventTypes": json["event_types"] == null ? void 0 : json["event_types"]
|
|
1478
|
+
"data": json["data"] == null ? void 0 : mapValues(json["data"], AuthEmailTemplateFromJSON),
|
|
1479
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
847
1480
|
};
|
|
848
1481
|
}
|
|
849
|
-
function
|
|
850
|
-
return
|
|
1482
|
+
function BulkUpsertAuthEmailTemplatesResponseToJSON(json) {
|
|
1483
|
+
return BulkUpsertAuthEmailTemplatesResponseToJSONTyped(json, false);
|
|
851
1484
|
}
|
|
852
|
-
function
|
|
1485
|
+
function BulkUpsertAuthEmailTemplatesResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
853
1486
|
if (value == null) {
|
|
854
1487
|
return value;
|
|
855
1488
|
}
|
|
856
1489
|
return {
|
|
857
|
-
"
|
|
858
|
-
"
|
|
859
|
-
"end_date": value["endDate"] == null ? void 0 : value["endDate"].toISOString(),
|
|
860
|
-
"event_types": value["eventTypes"]
|
|
1490
|
+
"data": value["data"] == null ? void 0 : mapValues(value["data"], AuthEmailTemplateToJSON),
|
|
1491
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
861
1492
|
};
|
|
862
1493
|
}
|
|
863
1494
|
|
|
@@ -2578,77 +3209,423 @@ function EmailTrackingResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
2578
3209
|
return json;
|
|
2579
3210
|
}
|
|
2580
3211
|
return {
|
|
2581
|
-
"data": json["data"] == null ? void 0 : EmailTrackingDataFromJSON(json["data"]),
|
|
3212
|
+
"data": json["data"] == null ? void 0 : EmailTrackingDataFromJSON(json["data"]),
|
|
3213
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
3214
|
+
};
|
|
3215
|
+
}
|
|
3216
|
+
function EmailTrackingResponseToJSON(json) {
|
|
3217
|
+
return EmailTrackingResponseToJSONTyped(json, false);
|
|
3218
|
+
}
|
|
3219
|
+
function EmailTrackingResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3220
|
+
if (value == null) {
|
|
3221
|
+
return value;
|
|
3222
|
+
}
|
|
3223
|
+
return {
|
|
3224
|
+
"data": EmailTrackingDataToJSON(value["data"]),
|
|
3225
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
3226
|
+
};
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
// src/src/models/EndUserDeleteResponseData.ts
|
|
3230
|
+
function instanceOfEndUserDeleteResponseData(value) {
|
|
3231
|
+
return true;
|
|
3232
|
+
}
|
|
3233
|
+
function EndUserDeleteResponseDataFromJSON(json) {
|
|
3234
|
+
return EndUserDeleteResponseDataFromJSONTyped(json, false);
|
|
3235
|
+
}
|
|
3236
|
+
function EndUserDeleteResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
3237
|
+
if (json == null) {
|
|
3238
|
+
return json;
|
|
3239
|
+
}
|
|
3240
|
+
return {
|
|
3241
|
+
"success": json["success"] == null ? void 0 : json["success"],
|
|
3242
|
+
"message": json["message"] == null ? void 0 : json["message"]
|
|
3243
|
+
};
|
|
3244
|
+
}
|
|
3245
|
+
function EndUserDeleteResponseDataToJSON(json) {
|
|
3246
|
+
return EndUserDeleteResponseDataToJSONTyped(json, false);
|
|
3247
|
+
}
|
|
3248
|
+
function EndUserDeleteResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3249
|
+
if (value == null) {
|
|
3250
|
+
return value;
|
|
3251
|
+
}
|
|
3252
|
+
return {
|
|
3253
|
+
"success": value["success"],
|
|
3254
|
+
"message": value["message"]
|
|
3255
|
+
};
|
|
3256
|
+
}
|
|
3257
|
+
|
|
3258
|
+
// src/src/models/EndUserDeleteResponse.ts
|
|
3259
|
+
function instanceOfEndUserDeleteResponse(value) {
|
|
3260
|
+
return true;
|
|
3261
|
+
}
|
|
3262
|
+
function EndUserDeleteResponseFromJSON(json) {
|
|
3263
|
+
return EndUserDeleteResponseFromJSONTyped(json, false);
|
|
3264
|
+
}
|
|
3265
|
+
function EndUserDeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3266
|
+
if (json == null) {
|
|
3267
|
+
return json;
|
|
3268
|
+
}
|
|
3269
|
+
return {
|
|
3270
|
+
"data": json["data"] == null ? void 0 : EndUserDeleteResponseDataFromJSON(json["data"]),
|
|
3271
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
3272
|
+
};
|
|
3273
|
+
}
|
|
3274
|
+
function EndUserDeleteResponseToJSON(json) {
|
|
3275
|
+
return EndUserDeleteResponseToJSONTyped(json, false);
|
|
3276
|
+
}
|
|
3277
|
+
function EndUserDeleteResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3278
|
+
if (value == null) {
|
|
3279
|
+
return value;
|
|
3280
|
+
}
|
|
3281
|
+
return {
|
|
3282
|
+
"data": EndUserDeleteResponseDataToJSON(value["data"]),
|
|
3283
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
3284
|
+
};
|
|
3285
|
+
}
|
|
3286
|
+
|
|
3287
|
+
// src/src/models/ExecutionCancelResponseData.ts
|
|
3288
|
+
var ExecutionCancelResponseDataStatusEnum = {
|
|
3289
|
+
CANCELLED: "cancelled"
|
|
3290
|
+
};
|
|
3291
|
+
function instanceOfExecutionCancelResponseData(value) {
|
|
3292
|
+
return true;
|
|
3293
|
+
}
|
|
3294
|
+
function ExecutionCancelResponseDataFromJSON(json) {
|
|
3295
|
+
return ExecutionCancelResponseDataFromJSONTyped(json, false);
|
|
3296
|
+
}
|
|
3297
|
+
function ExecutionCancelResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
3298
|
+
if (json == null) {
|
|
3299
|
+
return json;
|
|
3300
|
+
}
|
|
3301
|
+
return {
|
|
3302
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
3303
|
+
"status": json["status"] == null ? void 0 : json["status"]
|
|
3304
|
+
};
|
|
3305
|
+
}
|
|
3306
|
+
function ExecutionCancelResponseDataToJSON(json) {
|
|
3307
|
+
return ExecutionCancelResponseDataToJSONTyped(json, false);
|
|
3308
|
+
}
|
|
3309
|
+
function ExecutionCancelResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3310
|
+
if (value == null) {
|
|
3311
|
+
return value;
|
|
3312
|
+
}
|
|
3313
|
+
return {
|
|
3314
|
+
"id": value["id"],
|
|
3315
|
+
"status": value["status"]
|
|
3316
|
+
};
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
// src/src/models/ExecutionCancelResponse.ts
|
|
3320
|
+
function instanceOfExecutionCancelResponse(value) {
|
|
3321
|
+
return true;
|
|
3322
|
+
}
|
|
3323
|
+
function ExecutionCancelResponseFromJSON(json) {
|
|
3324
|
+
return ExecutionCancelResponseFromJSONTyped(json, false);
|
|
3325
|
+
}
|
|
3326
|
+
function ExecutionCancelResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3327
|
+
if (json == null) {
|
|
3328
|
+
return json;
|
|
3329
|
+
}
|
|
3330
|
+
return {
|
|
3331
|
+
"data": json["data"] == null ? void 0 : ExecutionCancelResponseDataFromJSON(json["data"]),
|
|
3332
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
3333
|
+
};
|
|
3334
|
+
}
|
|
3335
|
+
function ExecutionCancelResponseToJSON(json) {
|
|
3336
|
+
return ExecutionCancelResponseToJSONTyped(json, false);
|
|
3337
|
+
}
|
|
3338
|
+
function ExecutionCancelResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3339
|
+
if (value == null) {
|
|
3340
|
+
return value;
|
|
3341
|
+
}
|
|
3342
|
+
return {
|
|
3343
|
+
"data": ExecutionCancelResponseDataToJSON(value["data"]),
|
|
3344
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
3345
|
+
};
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
// src/src/models/WorkflowExecutionStatus.ts
|
|
3349
|
+
var WorkflowExecutionStatus = {
|
|
3350
|
+
PENDING: "pending",
|
|
3351
|
+
RUNNING: "running",
|
|
3352
|
+
COMPLETED: "completed",
|
|
3353
|
+
FAILED: "failed",
|
|
3354
|
+
CANCELLED: "cancelled"
|
|
3355
|
+
};
|
|
3356
|
+
function instanceOfWorkflowExecutionStatus(value) {
|
|
3357
|
+
for (const key in WorkflowExecutionStatus) {
|
|
3358
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowExecutionStatus, key)) {
|
|
3359
|
+
if (WorkflowExecutionStatus[key] === value) {
|
|
3360
|
+
return true;
|
|
3361
|
+
}
|
|
3362
|
+
}
|
|
3363
|
+
}
|
|
3364
|
+
return false;
|
|
3365
|
+
}
|
|
3366
|
+
function WorkflowExecutionStatusFromJSON(json) {
|
|
3367
|
+
return WorkflowExecutionStatusFromJSONTyped(json, false);
|
|
3368
|
+
}
|
|
3369
|
+
function WorkflowExecutionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
3370
|
+
return json;
|
|
3371
|
+
}
|
|
3372
|
+
function WorkflowExecutionStatusToJSON(value) {
|
|
3373
|
+
return value;
|
|
3374
|
+
}
|
|
3375
|
+
function WorkflowExecutionStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
3376
|
+
return value;
|
|
3377
|
+
}
|
|
3378
|
+
|
|
3379
|
+
// src/src/models/WorkflowStepExecutionStatus.ts
|
|
3380
|
+
var WorkflowStepExecutionStatus = {
|
|
3381
|
+
PENDING: "pending",
|
|
3382
|
+
RUNNING: "running",
|
|
3383
|
+
COMPLETED: "completed",
|
|
3384
|
+
SKIPPED: "skipped",
|
|
3385
|
+
FAILED: "failed",
|
|
3386
|
+
WAITING: "waiting"
|
|
3387
|
+
};
|
|
3388
|
+
function instanceOfWorkflowStepExecutionStatus(value) {
|
|
3389
|
+
for (const key in WorkflowStepExecutionStatus) {
|
|
3390
|
+
if (Object.prototype.hasOwnProperty.call(WorkflowStepExecutionStatus, key)) {
|
|
3391
|
+
if (WorkflowStepExecutionStatus[key] === value) {
|
|
3392
|
+
return true;
|
|
3393
|
+
}
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
return false;
|
|
3397
|
+
}
|
|
3398
|
+
function WorkflowStepExecutionStatusFromJSON(json) {
|
|
3399
|
+
return WorkflowStepExecutionStatusFromJSONTyped(json, false);
|
|
3400
|
+
}
|
|
3401
|
+
function WorkflowStepExecutionStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
3402
|
+
return json;
|
|
3403
|
+
}
|
|
3404
|
+
function WorkflowStepExecutionStatusToJSON(value) {
|
|
3405
|
+
return value;
|
|
3406
|
+
}
|
|
3407
|
+
function WorkflowStepExecutionStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
3408
|
+
return value;
|
|
3409
|
+
}
|
|
3410
|
+
|
|
3411
|
+
// src/src/models/WorkflowStepExecution.ts
|
|
3412
|
+
var WorkflowStepExecutionStepTypeEnum = {
|
|
3413
|
+
EMAIL: "email",
|
|
3414
|
+
PUSH: "push",
|
|
3415
|
+
SMS: "sms",
|
|
3416
|
+
IN_APP: "in_app",
|
|
3417
|
+
SLACK: "slack",
|
|
3418
|
+
DISCORD: "discord",
|
|
3419
|
+
TEAMS: "teams",
|
|
3420
|
+
DELAY: "delay",
|
|
3421
|
+
BRANCH: "branch"
|
|
3422
|
+
};
|
|
3423
|
+
function instanceOfWorkflowStepExecution(value) {
|
|
3424
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
3425
|
+
if (!("executionId" in value) || value["executionId"] === void 0) return false;
|
|
3426
|
+
if (!("stepId" in value) || value["stepId"] === void 0) return false;
|
|
3427
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
3428
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
3429
|
+
return true;
|
|
3430
|
+
}
|
|
3431
|
+
function WorkflowStepExecutionFromJSON(json) {
|
|
3432
|
+
return WorkflowStepExecutionFromJSONTyped(json, false);
|
|
3433
|
+
}
|
|
3434
|
+
function WorkflowStepExecutionFromJSONTyped(json, ignoreDiscriminator) {
|
|
3435
|
+
if (json == null) {
|
|
3436
|
+
return json;
|
|
3437
|
+
}
|
|
3438
|
+
return {
|
|
3439
|
+
"id": json["id"],
|
|
3440
|
+
"executionId": json["execution_id"],
|
|
3441
|
+
"stepId": json["step_id"],
|
|
3442
|
+
"status": WorkflowStepExecutionStatusFromJSON(json["status"]),
|
|
3443
|
+
"result": json["result"] == null ? void 0 : json["result"],
|
|
3444
|
+
"startedAt": json["started_at"] == null ? void 0 : new Date(json["started_at"]),
|
|
3445
|
+
"completedAt": json["completed_at"] == null ? void 0 : new Date(json["completed_at"]),
|
|
3446
|
+
"error": json["error"] == null ? void 0 : json["error"],
|
|
3447
|
+
"createdAt": new Date(json["created_at"]),
|
|
3448
|
+
"stepKey": json["step_key"] == null ? void 0 : json["step_key"],
|
|
3449
|
+
"stepName": json["step_name"] == null ? void 0 : json["step_name"],
|
|
3450
|
+
"stepType": json["step_type"] == null ? void 0 : json["step_type"]
|
|
3451
|
+
};
|
|
3452
|
+
}
|
|
3453
|
+
function WorkflowStepExecutionToJSON(json) {
|
|
3454
|
+
return WorkflowStepExecutionToJSONTyped(json, false);
|
|
3455
|
+
}
|
|
3456
|
+
function WorkflowStepExecutionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3457
|
+
if (value == null) {
|
|
3458
|
+
return value;
|
|
3459
|
+
}
|
|
3460
|
+
return {
|
|
3461
|
+
"id": value["id"],
|
|
3462
|
+
"execution_id": value["executionId"],
|
|
3463
|
+
"step_id": value["stepId"],
|
|
3464
|
+
"status": WorkflowStepExecutionStatusToJSON(value["status"]),
|
|
3465
|
+
"result": value["result"],
|
|
3466
|
+
"started_at": value["startedAt"] == null ? void 0 : value["startedAt"].toISOString(),
|
|
3467
|
+
"completed_at": value["completedAt"] == null ? void 0 : value["completedAt"].toISOString(),
|
|
3468
|
+
"error": value["error"],
|
|
3469
|
+
"created_at": value["createdAt"].toISOString(),
|
|
3470
|
+
"step_key": value["stepKey"],
|
|
3471
|
+
"step_name": value["stepName"],
|
|
3472
|
+
"step_type": value["stepType"]
|
|
3473
|
+
};
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
// src/src/models/WorkflowExecution.ts
|
|
3477
|
+
function instanceOfWorkflowExecution(value) {
|
|
3478
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
3479
|
+
if (!("workflowId" in value) || value["workflowId"] === void 0) return false;
|
|
3480
|
+
if (!("accountId" in value) || value["accountId"] === void 0) return false;
|
|
3481
|
+
if (!("projectId" in value) || value["projectId"] === void 0) return false;
|
|
3482
|
+
if (!("subscriberId" in value) || value["subscriberId"] === void 0) return false;
|
|
3483
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
3484
|
+
if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
|
|
3485
|
+
return true;
|
|
3486
|
+
}
|
|
3487
|
+
function WorkflowExecutionFromJSON(json) {
|
|
3488
|
+
return WorkflowExecutionFromJSONTyped(json, false);
|
|
3489
|
+
}
|
|
3490
|
+
function WorkflowExecutionFromJSONTyped(json, ignoreDiscriminator) {
|
|
3491
|
+
if (json == null) {
|
|
3492
|
+
return json;
|
|
3493
|
+
}
|
|
3494
|
+
return {
|
|
3495
|
+
"id": json["id"],
|
|
3496
|
+
"workflowId": json["workflow_id"],
|
|
3497
|
+
"accountId": json["account_id"],
|
|
3498
|
+
"projectId": json["project_id"],
|
|
3499
|
+
"subscriberId": json["subscriber_id"],
|
|
3500
|
+
"topicKey": json["topic_key"] == null ? void 0 : json["topic_key"],
|
|
3501
|
+
"triggerPayload": json["trigger_payload"] == null ? void 0 : json["trigger_payload"],
|
|
3502
|
+
"transactionId": json["transaction_id"] == null ? void 0 : json["transaction_id"],
|
|
3503
|
+
"senderFrom": json["sender_from"] == null ? void 0 : json["sender_from"],
|
|
3504
|
+
"status": WorkflowExecutionStatusFromJSON(json["status"]),
|
|
3505
|
+
"currentStepId": json["current_step_id"] == null ? void 0 : json["current_step_id"],
|
|
3506
|
+
"stepExecutions": json["step_executions"] == null ? void 0 : json["step_executions"].map(WorkflowStepExecutionFromJSON),
|
|
3507
|
+
"startedAt": json["started_at"] == null ? void 0 : new Date(json["started_at"]),
|
|
3508
|
+
"completedAt": json["completed_at"] == null ? void 0 : new Date(json["completed_at"]),
|
|
3509
|
+
"createdAt": new Date(json["created_at"])
|
|
3510
|
+
};
|
|
3511
|
+
}
|
|
3512
|
+
function WorkflowExecutionToJSON(json) {
|
|
3513
|
+
return WorkflowExecutionToJSONTyped(json, false);
|
|
3514
|
+
}
|
|
3515
|
+
function WorkflowExecutionToJSONTyped(value, ignoreDiscriminator = false) {
|
|
3516
|
+
if (value == null) {
|
|
3517
|
+
return value;
|
|
3518
|
+
}
|
|
3519
|
+
return {
|
|
3520
|
+
"id": value["id"],
|
|
3521
|
+
"workflow_id": value["workflowId"],
|
|
3522
|
+
"account_id": value["accountId"],
|
|
3523
|
+
"project_id": value["projectId"],
|
|
3524
|
+
"subscriber_id": value["subscriberId"],
|
|
3525
|
+
"topic_key": value["topicKey"],
|
|
3526
|
+
"trigger_payload": value["triggerPayload"],
|
|
3527
|
+
"transaction_id": value["transactionId"],
|
|
3528
|
+
"sender_from": value["senderFrom"],
|
|
3529
|
+
"status": WorkflowExecutionStatusToJSON(value["status"]),
|
|
3530
|
+
"current_step_id": value["currentStepId"],
|
|
3531
|
+
"step_executions": value["stepExecutions"] == null ? void 0 : value["stepExecutions"].map(WorkflowStepExecutionToJSON),
|
|
3532
|
+
"started_at": value["startedAt"] == null ? void 0 : value["startedAt"].toISOString(),
|
|
3533
|
+
"completed_at": value["completedAt"] == null ? void 0 : value["completedAt"].toISOString(),
|
|
3534
|
+
"created_at": value["createdAt"].toISOString()
|
|
3535
|
+
};
|
|
3536
|
+
}
|
|
3537
|
+
|
|
3538
|
+
// src/src/models/ExecutionResponse.ts
|
|
3539
|
+
function instanceOfExecutionResponse(value) {
|
|
3540
|
+
return true;
|
|
3541
|
+
}
|
|
3542
|
+
function ExecutionResponseFromJSON(json) {
|
|
3543
|
+
return ExecutionResponseFromJSONTyped(json, false);
|
|
3544
|
+
}
|
|
3545
|
+
function ExecutionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
3546
|
+
if (json == null) {
|
|
3547
|
+
return json;
|
|
3548
|
+
}
|
|
3549
|
+
return {
|
|
3550
|
+
"data": json["data"] == null ? void 0 : WorkflowExecutionFromJSON(json["data"]),
|
|
2582
3551
|
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
2583
3552
|
};
|
|
2584
3553
|
}
|
|
2585
|
-
function
|
|
2586
|
-
return
|
|
3554
|
+
function ExecutionResponseToJSON(json) {
|
|
3555
|
+
return ExecutionResponseToJSONTyped(json, false);
|
|
2587
3556
|
}
|
|
2588
|
-
function
|
|
3557
|
+
function ExecutionResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2589
3558
|
if (value == null) {
|
|
2590
3559
|
return value;
|
|
2591
3560
|
}
|
|
2592
3561
|
return {
|
|
2593
|
-
"data":
|
|
3562
|
+
"data": WorkflowExecutionToJSON(value["data"]),
|
|
2594
3563
|
"meta": RequestMetaToJSON(value["meta"])
|
|
2595
3564
|
};
|
|
2596
3565
|
}
|
|
2597
3566
|
|
|
2598
|
-
// src/src/models/
|
|
2599
|
-
|
|
3567
|
+
// src/src/models/ExecutionRetryResponseData.ts
|
|
3568
|
+
var ExecutionRetryResponseDataStatusEnum = {
|
|
3569
|
+
PENDING: "pending"
|
|
3570
|
+
};
|
|
3571
|
+
function instanceOfExecutionRetryResponseData(value) {
|
|
3572
|
+
if (!("id" in value) || value["id"] === void 0) return false;
|
|
3573
|
+
if (!("originalExecutionId" in value) || value["originalExecutionId"] === void 0) return false;
|
|
3574
|
+
if (!("status" in value) || value["status"] === void 0) return false;
|
|
2600
3575
|
return true;
|
|
2601
3576
|
}
|
|
2602
|
-
function
|
|
2603
|
-
return
|
|
3577
|
+
function ExecutionRetryResponseDataFromJSON(json) {
|
|
3578
|
+
return ExecutionRetryResponseDataFromJSONTyped(json, false);
|
|
2604
3579
|
}
|
|
2605
|
-
function
|
|
3580
|
+
function ExecutionRetryResponseDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
2606
3581
|
if (json == null) {
|
|
2607
3582
|
return json;
|
|
2608
3583
|
}
|
|
2609
3584
|
return {
|
|
2610
|
-
"
|
|
2611
|
-
"
|
|
3585
|
+
"id": json["id"],
|
|
3586
|
+
"originalExecutionId": json["original_execution_id"],
|
|
3587
|
+
"status": json["status"]
|
|
2612
3588
|
};
|
|
2613
3589
|
}
|
|
2614
|
-
function
|
|
2615
|
-
return
|
|
3590
|
+
function ExecutionRetryResponseDataToJSON(json) {
|
|
3591
|
+
return ExecutionRetryResponseDataToJSONTyped(json, false);
|
|
2616
3592
|
}
|
|
2617
|
-
function
|
|
3593
|
+
function ExecutionRetryResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2618
3594
|
if (value == null) {
|
|
2619
3595
|
return value;
|
|
2620
3596
|
}
|
|
2621
3597
|
return {
|
|
2622
|
-
"
|
|
2623
|
-
"
|
|
3598
|
+
"id": value["id"],
|
|
3599
|
+
"original_execution_id": value["originalExecutionId"],
|
|
3600
|
+
"status": value["status"]
|
|
2624
3601
|
};
|
|
2625
3602
|
}
|
|
2626
3603
|
|
|
2627
|
-
// src/src/models/
|
|
2628
|
-
function
|
|
3604
|
+
// src/src/models/ExecutionRetryResponse.ts
|
|
3605
|
+
function instanceOfExecutionRetryResponse(value) {
|
|
2629
3606
|
return true;
|
|
2630
3607
|
}
|
|
2631
|
-
function
|
|
2632
|
-
return
|
|
3608
|
+
function ExecutionRetryResponseFromJSON(json) {
|
|
3609
|
+
return ExecutionRetryResponseFromJSONTyped(json, false);
|
|
2633
3610
|
}
|
|
2634
|
-
function
|
|
3611
|
+
function ExecutionRetryResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
2635
3612
|
if (json == null) {
|
|
2636
3613
|
return json;
|
|
2637
3614
|
}
|
|
2638
3615
|
return {
|
|
2639
|
-
"data": json["data"] == null ? void 0 :
|
|
3616
|
+
"data": json["data"] == null ? void 0 : ExecutionRetryResponseDataFromJSON(json["data"]),
|
|
2640
3617
|
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
2641
3618
|
};
|
|
2642
3619
|
}
|
|
2643
|
-
function
|
|
2644
|
-
return
|
|
3620
|
+
function ExecutionRetryResponseToJSON(json) {
|
|
3621
|
+
return ExecutionRetryResponseToJSONTyped(json, false);
|
|
2645
3622
|
}
|
|
2646
|
-
function
|
|
3623
|
+
function ExecutionRetryResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
2647
3624
|
if (value == null) {
|
|
2648
3625
|
return value;
|
|
2649
3626
|
}
|
|
2650
3627
|
return {
|
|
2651
|
-
"data":
|
|
3628
|
+
"data": ExecutionRetryResponseDataToJSON(value["data"]),
|
|
2652
3629
|
"meta": RequestMetaToJSON(value["meta"])
|
|
2653
3630
|
};
|
|
2654
3631
|
}
|
|
@@ -6064,33 +7041,6 @@ function ResubscribeRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6064
7041
|
};
|
|
6065
7042
|
}
|
|
6066
7043
|
|
|
6067
|
-
// src/src/models/SuccessResultData.ts
|
|
6068
|
-
function instanceOfSuccessResultData(value) {
|
|
6069
|
-
return true;
|
|
6070
|
-
}
|
|
6071
|
-
function SuccessResultDataFromJSON(json) {
|
|
6072
|
-
return SuccessResultDataFromJSONTyped(json, false);
|
|
6073
|
-
}
|
|
6074
|
-
function SuccessResultDataFromJSONTyped(json, ignoreDiscriminator) {
|
|
6075
|
-
if (json == null) {
|
|
6076
|
-
return json;
|
|
6077
|
-
}
|
|
6078
|
-
return {
|
|
6079
|
-
"success": json["success"] == null ? void 0 : json["success"]
|
|
6080
|
-
};
|
|
6081
|
-
}
|
|
6082
|
-
function SuccessResultDataToJSON(json) {
|
|
6083
|
-
return SuccessResultDataToJSONTyped(json, false);
|
|
6084
|
-
}
|
|
6085
|
-
function SuccessResultDataToJSONTyped(value, ignoreDiscriminator = false) {
|
|
6086
|
-
if (value == null) {
|
|
6087
|
-
return value;
|
|
6088
|
-
}
|
|
6089
|
-
return {
|
|
6090
|
-
"success": value["success"]
|
|
6091
|
-
};
|
|
6092
|
-
}
|
|
6093
|
-
|
|
6094
7044
|
// src/src/models/ResubscribeResponse.ts
|
|
6095
7045
|
function instanceOfResubscribeResponse(value) {
|
|
6096
7046
|
return true;
|
|
@@ -6103,7 +7053,7 @@ function ResubscribeResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
6103
7053
|
return json;
|
|
6104
7054
|
}
|
|
6105
7055
|
return {
|
|
6106
|
-
"data": json["data"] == null ? void 0 :
|
|
7056
|
+
"data": json["data"] == null ? void 0 : AuthEmailTemplateDeleteResponseDataFromJSON(json["data"]),
|
|
6107
7057
|
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
6108
7058
|
};
|
|
6109
7059
|
}
|
|
@@ -6115,7 +7065,7 @@ function ResubscribeResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
6115
7065
|
return value;
|
|
6116
7066
|
}
|
|
6117
7067
|
return {
|
|
6118
|
-
"data":
|
|
7068
|
+
"data": AuthEmailTemplateDeleteResponseDataToJSON(value["data"]),
|
|
6119
7069
|
"meta": RequestMetaToJSON(value["meta"])
|
|
6120
7070
|
};
|
|
6121
7071
|
}
|
|
@@ -7140,6 +8090,152 @@ function SendPushToTopicResponseToJSONTyped(value, ignoreDiscriminator = false)
|
|
|
7140
8090
|
};
|
|
7141
8091
|
}
|
|
7142
8092
|
|
|
8093
|
+
// src/src/models/SendSlackMessageRequest.ts
|
|
8094
|
+
function instanceOfSendSlackMessageRequest(value) {
|
|
8095
|
+
return true;
|
|
8096
|
+
}
|
|
8097
|
+
function SendSlackMessageRequestFromJSON(json) {
|
|
8098
|
+
return SendSlackMessageRequestFromJSONTyped(json, false);
|
|
8099
|
+
}
|
|
8100
|
+
function SendSlackMessageRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8101
|
+
if (json == null) {
|
|
8102
|
+
return json;
|
|
8103
|
+
}
|
|
8104
|
+
return {
|
|
8105
|
+
"connectionId": json["connection_id"] == null ? void 0 : json["connection_id"],
|
|
8106
|
+
"channel": json["channel"] == null ? void 0 : json["channel"],
|
|
8107
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
8108
|
+
"blocks": json["blocks"] == null ? void 0 : json["blocks"],
|
|
8109
|
+
"attachments": json["attachments"] == null ? void 0 : json["attachments"],
|
|
8110
|
+
"threadTs": json["thread_ts"] == null ? void 0 : json["thread_ts"],
|
|
8111
|
+
"replyBroadcast": json["reply_broadcast"] == null ? void 0 : json["reply_broadcast"],
|
|
8112
|
+
"unfurlLinks": json["unfurl_links"] == null ? void 0 : json["unfurl_links"],
|
|
8113
|
+
"unfurlMedia": json["unfurl_media"] == null ? void 0 : json["unfurl_media"],
|
|
8114
|
+
"mrkdwn": json["mrkdwn"] == null ? void 0 : json["mrkdwn"],
|
|
8115
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
8116
|
+
"tags": json["tags"] == null ? void 0 : json["tags"]
|
|
8117
|
+
};
|
|
8118
|
+
}
|
|
8119
|
+
function SendSlackMessageRequestToJSON(json) {
|
|
8120
|
+
return SendSlackMessageRequestToJSONTyped(json, false);
|
|
8121
|
+
}
|
|
8122
|
+
function SendSlackMessageRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8123
|
+
if (value == null) {
|
|
8124
|
+
return value;
|
|
8125
|
+
}
|
|
8126
|
+
return {
|
|
8127
|
+
"connection_id": value["connectionId"],
|
|
8128
|
+
"channel": value["channel"],
|
|
8129
|
+
"text": value["text"],
|
|
8130
|
+
"blocks": value["blocks"],
|
|
8131
|
+
"attachments": value["attachments"],
|
|
8132
|
+
"thread_ts": value["threadTs"],
|
|
8133
|
+
"reply_broadcast": value["replyBroadcast"],
|
|
8134
|
+
"unfurl_links": value["unfurlLinks"],
|
|
8135
|
+
"unfurl_media": value["unfurlMedia"],
|
|
8136
|
+
"mrkdwn": value["mrkdwn"],
|
|
8137
|
+
"metadata": value["metadata"],
|
|
8138
|
+
"tags": value["tags"]
|
|
8139
|
+
};
|
|
8140
|
+
}
|
|
8141
|
+
|
|
8142
|
+
// src/src/models/SlackMessageStatus.ts
|
|
8143
|
+
var SlackMessageStatus = {
|
|
8144
|
+
QUEUED: "queued",
|
|
8145
|
+
SENDING: "sending",
|
|
8146
|
+
SENT: "sent",
|
|
8147
|
+
DELIVERED: "delivered",
|
|
8148
|
+
FAILED: "failed"
|
|
8149
|
+
};
|
|
8150
|
+
function instanceOfSlackMessageStatus(value) {
|
|
8151
|
+
for (const key in SlackMessageStatus) {
|
|
8152
|
+
if (Object.prototype.hasOwnProperty.call(SlackMessageStatus, key)) {
|
|
8153
|
+
if (SlackMessageStatus[key] === value) {
|
|
8154
|
+
return true;
|
|
8155
|
+
}
|
|
8156
|
+
}
|
|
8157
|
+
}
|
|
8158
|
+
return false;
|
|
8159
|
+
}
|
|
8160
|
+
function SlackMessageStatusFromJSON(json) {
|
|
8161
|
+
return SlackMessageStatusFromJSONTyped(json, false);
|
|
8162
|
+
}
|
|
8163
|
+
function SlackMessageStatusFromJSONTyped(json, ignoreDiscriminator) {
|
|
8164
|
+
return json;
|
|
8165
|
+
}
|
|
8166
|
+
function SlackMessageStatusToJSON(value) {
|
|
8167
|
+
return value;
|
|
8168
|
+
}
|
|
8169
|
+
function SlackMessageStatusToJSONTyped(value, ignoreDiscriminator) {
|
|
8170
|
+
return value;
|
|
8171
|
+
}
|
|
8172
|
+
|
|
8173
|
+
// src/src/models/SendSlackMessageResult.ts
|
|
8174
|
+
function instanceOfSendSlackMessageResult(value) {
|
|
8175
|
+
return true;
|
|
8176
|
+
}
|
|
8177
|
+
function SendSlackMessageResultFromJSON(json) {
|
|
8178
|
+
return SendSlackMessageResultFromJSONTyped(json, false);
|
|
8179
|
+
}
|
|
8180
|
+
function SendSlackMessageResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
8181
|
+
if (json == null) {
|
|
8182
|
+
return json;
|
|
8183
|
+
}
|
|
8184
|
+
return {
|
|
8185
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
8186
|
+
"channelId": json["channel_id"] == null ? void 0 : json["channel_id"],
|
|
8187
|
+
"messageTs": json["message_ts"] == null ? void 0 : json["message_ts"],
|
|
8188
|
+
"status": json["status"] == null ? void 0 : SlackMessageStatusFromJSON(json["status"]),
|
|
8189
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
8190
|
+
"sentAt": json["sent_at"] == null ? void 0 : new Date(json["sent_at"])
|
|
8191
|
+
};
|
|
8192
|
+
}
|
|
8193
|
+
function SendSlackMessageResultToJSON(json) {
|
|
8194
|
+
return SendSlackMessageResultToJSONTyped(json, false);
|
|
8195
|
+
}
|
|
8196
|
+
function SendSlackMessageResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8197
|
+
if (value == null) {
|
|
8198
|
+
return value;
|
|
8199
|
+
}
|
|
8200
|
+
return {
|
|
8201
|
+
"id": value["id"],
|
|
8202
|
+
"channel_id": value["channelId"],
|
|
8203
|
+
"message_ts": value["messageTs"],
|
|
8204
|
+
"status": SlackMessageStatusToJSON(value["status"]),
|
|
8205
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
8206
|
+
"sent_at": value["sentAt"] == null ? void 0 : value["sentAt"].toISOString()
|
|
8207
|
+
};
|
|
8208
|
+
}
|
|
8209
|
+
|
|
8210
|
+
// src/src/models/SendSlackMessageResponse.ts
|
|
8211
|
+
function instanceOfSendSlackMessageResponse(value) {
|
|
8212
|
+
return true;
|
|
8213
|
+
}
|
|
8214
|
+
function SendSlackMessageResponseFromJSON(json) {
|
|
8215
|
+
return SendSlackMessageResponseFromJSONTyped(json, false);
|
|
8216
|
+
}
|
|
8217
|
+
function SendSlackMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8218
|
+
if (json == null) {
|
|
8219
|
+
return json;
|
|
8220
|
+
}
|
|
8221
|
+
return {
|
|
8222
|
+
"data": json["data"] == null ? void 0 : SendSlackMessageResultFromJSON(json["data"]),
|
|
8223
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
8224
|
+
};
|
|
8225
|
+
}
|
|
8226
|
+
function SendSlackMessageResponseToJSON(json) {
|
|
8227
|
+
return SendSlackMessageResponseToJSONTyped(json, false);
|
|
8228
|
+
}
|
|
8229
|
+
function SendSlackMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8230
|
+
if (value == null) {
|
|
8231
|
+
return value;
|
|
8232
|
+
}
|
|
8233
|
+
return {
|
|
8234
|
+
"data": SendSlackMessageResultToJSON(value["data"]),
|
|
8235
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
8236
|
+
};
|
|
8237
|
+
}
|
|
8238
|
+
|
|
7143
8239
|
// src/src/models/SendSmsData.ts
|
|
7144
8240
|
function instanceOfSendSmsData(value) {
|
|
7145
8241
|
return true;
|
|
@@ -7500,23 +8596,220 @@ function instanceOfSetPreferencesRequest(value) {
|
|
|
7500
8596
|
function SetPreferencesRequestFromJSON(json) {
|
|
7501
8597
|
return SetPreferencesRequestFromJSONTyped(json, false);
|
|
7502
8598
|
}
|
|
7503
|
-
function SetPreferencesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8599
|
+
function SetPreferencesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
8600
|
+
if (json == null) {
|
|
8601
|
+
return json;
|
|
8602
|
+
}
|
|
8603
|
+
return {
|
|
8604
|
+
"preferences": json["preferences"].map(SetPreferencesRequestPreferencesInnerFromJSON)
|
|
8605
|
+
};
|
|
8606
|
+
}
|
|
8607
|
+
function SetPreferencesRequestToJSON(json) {
|
|
8608
|
+
return SetPreferencesRequestToJSONTyped(json, false);
|
|
8609
|
+
}
|
|
8610
|
+
function SetPreferencesRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8611
|
+
if (value == null) {
|
|
8612
|
+
return value;
|
|
8613
|
+
}
|
|
8614
|
+
return {
|
|
8615
|
+
"preferences": value["preferences"].map(SetPreferencesRequestPreferencesInnerToJSON)
|
|
8616
|
+
};
|
|
8617
|
+
}
|
|
8618
|
+
|
|
8619
|
+
// src/src/models/SlackMessage.ts
|
|
8620
|
+
function instanceOfSlackMessage(value) {
|
|
8621
|
+
return true;
|
|
8622
|
+
}
|
|
8623
|
+
function SlackMessageFromJSON(json) {
|
|
8624
|
+
return SlackMessageFromJSONTyped(json, false);
|
|
8625
|
+
}
|
|
8626
|
+
function SlackMessageFromJSONTyped(json, ignoreDiscriminator) {
|
|
8627
|
+
if (json == null) {
|
|
8628
|
+
return json;
|
|
8629
|
+
}
|
|
8630
|
+
return {
|
|
8631
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
8632
|
+
"slackConnectionId": json["slack_connection_id"] == null ? void 0 : json["slack_connection_id"],
|
|
8633
|
+
"channelId": json["channel_id"] == null ? void 0 : json["channel_id"],
|
|
8634
|
+
"channelName": json["channel_name"] == null ? void 0 : json["channel_name"],
|
|
8635
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
8636
|
+
"blocks": json["blocks"] == null ? void 0 : json["blocks"],
|
|
8637
|
+
"attachments": json["attachments"] == null ? void 0 : json["attachments"],
|
|
8638
|
+
"messageTs": json["message_ts"] == null ? void 0 : json["message_ts"],
|
|
8639
|
+
"threadTs": json["thread_ts"] == null ? void 0 : json["thread_ts"],
|
|
8640
|
+
"status": json["status"] == null ? void 0 : SlackMessageStatusFromJSON(json["status"]),
|
|
8641
|
+
"statusReason": json["status_reason"] == null ? void 0 : json["status_reason"],
|
|
8642
|
+
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
8643
|
+
"metadata": json["metadata"] == null ? void 0 : json["metadata"],
|
|
8644
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
8645
|
+
"queuedAt": json["queued_at"] == null ? void 0 : new Date(json["queued_at"]),
|
|
8646
|
+
"sentAt": json["sent_at"] == null ? void 0 : new Date(json["sent_at"]),
|
|
8647
|
+
"failedAt": json["failed_at"] == null ? void 0 : new Date(json["failed_at"])
|
|
8648
|
+
};
|
|
8649
|
+
}
|
|
8650
|
+
function SlackMessageToJSON(json) {
|
|
8651
|
+
return SlackMessageToJSONTyped(json, false);
|
|
8652
|
+
}
|
|
8653
|
+
function SlackMessageToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8654
|
+
if (value == null) {
|
|
8655
|
+
return value;
|
|
8656
|
+
}
|
|
8657
|
+
return {
|
|
8658
|
+
"id": value["id"],
|
|
8659
|
+
"slack_connection_id": value["slackConnectionId"],
|
|
8660
|
+
"channel_id": value["channelId"],
|
|
8661
|
+
"channel_name": value["channelName"],
|
|
8662
|
+
"text": value["text"],
|
|
8663
|
+
"blocks": value["blocks"],
|
|
8664
|
+
"attachments": value["attachments"],
|
|
8665
|
+
"message_ts": value["messageTs"],
|
|
8666
|
+
"thread_ts": value["threadTs"],
|
|
8667
|
+
"status": SlackMessageStatusToJSON(value["status"]),
|
|
8668
|
+
"status_reason": value["statusReason"],
|
|
8669
|
+
"tags": value["tags"],
|
|
8670
|
+
"metadata": value["metadata"],
|
|
8671
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
8672
|
+
"queued_at": value["queuedAt"] == null ? void 0 : value["queuedAt"].toISOString(),
|
|
8673
|
+
"sent_at": value["sentAt"] == null ? void 0 : value["sentAt"].toISOString(),
|
|
8674
|
+
"failed_at": value["failedAt"] == null ? void 0 : value["failedAt"].toISOString()
|
|
8675
|
+
};
|
|
8676
|
+
}
|
|
8677
|
+
|
|
8678
|
+
// src/src/models/SlackMessageSummary.ts
|
|
8679
|
+
function instanceOfSlackMessageSummary(value) {
|
|
8680
|
+
return true;
|
|
8681
|
+
}
|
|
8682
|
+
function SlackMessageSummaryFromJSON(json) {
|
|
8683
|
+
return SlackMessageSummaryFromJSONTyped(json, false);
|
|
8684
|
+
}
|
|
8685
|
+
function SlackMessageSummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
8686
|
+
if (json == null) {
|
|
8687
|
+
return json;
|
|
8688
|
+
}
|
|
8689
|
+
return {
|
|
8690
|
+
"id": json["id"] == null ? void 0 : json["id"],
|
|
8691
|
+
"slackConnectionId": json["slack_connection_id"] == null ? void 0 : json["slack_connection_id"],
|
|
8692
|
+
"channelId": json["channel_id"] == null ? void 0 : json["channel_id"],
|
|
8693
|
+
"channelName": json["channel_name"] == null ? void 0 : json["channel_name"],
|
|
8694
|
+
"text": json["text"] == null ? void 0 : json["text"],
|
|
8695
|
+
"messageTs": json["message_ts"] == null ? void 0 : json["message_ts"],
|
|
8696
|
+
"status": json["status"] == null ? void 0 : SlackMessageStatusFromJSON(json["status"]),
|
|
8697
|
+
"statusReason": json["status_reason"] == null ? void 0 : json["status_reason"],
|
|
8698
|
+
"tags": json["tags"] == null ? void 0 : json["tags"],
|
|
8699
|
+
"createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"]),
|
|
8700
|
+
"sentAt": json["sent_at"] == null ? void 0 : new Date(json["sent_at"])
|
|
8701
|
+
};
|
|
8702
|
+
}
|
|
8703
|
+
function SlackMessageSummaryToJSON(json) {
|
|
8704
|
+
return SlackMessageSummaryToJSONTyped(json, false);
|
|
8705
|
+
}
|
|
8706
|
+
function SlackMessageSummaryToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8707
|
+
if (value == null) {
|
|
8708
|
+
return value;
|
|
8709
|
+
}
|
|
8710
|
+
return {
|
|
8711
|
+
"id": value["id"],
|
|
8712
|
+
"slack_connection_id": value["slackConnectionId"],
|
|
8713
|
+
"channel_id": value["channelId"],
|
|
8714
|
+
"channel_name": value["channelName"],
|
|
8715
|
+
"text": value["text"],
|
|
8716
|
+
"message_ts": value["messageTs"],
|
|
8717
|
+
"status": SlackMessageStatusToJSON(value["status"]),
|
|
8718
|
+
"status_reason": value["statusReason"],
|
|
8719
|
+
"tags": value["tags"],
|
|
8720
|
+
"created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString(),
|
|
8721
|
+
"sent_at": value["sentAt"] == null ? void 0 : value["sentAt"].toISOString()
|
|
8722
|
+
};
|
|
8723
|
+
}
|
|
8724
|
+
|
|
8725
|
+
// src/src/models/SlackMessageListResponseMeta.ts
|
|
8726
|
+
function instanceOfSlackMessageListResponseMeta(value) {
|
|
8727
|
+
return true;
|
|
8728
|
+
}
|
|
8729
|
+
function SlackMessageListResponseMetaFromJSON(json) {
|
|
8730
|
+
return SlackMessageListResponseMetaFromJSONTyped(json, false);
|
|
8731
|
+
}
|
|
8732
|
+
function SlackMessageListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
|
|
8733
|
+
if (json == null) {
|
|
8734
|
+
return json;
|
|
8735
|
+
}
|
|
8736
|
+
return {
|
|
8737
|
+
"requestId": json["request_id"] == null ? void 0 : json["request_id"],
|
|
8738
|
+
"total": json["total"] == null ? void 0 : json["total"],
|
|
8739
|
+
"limit": json["limit"] == null ? void 0 : json["limit"],
|
|
8740
|
+
"offset": json["offset"] == null ? void 0 : json["offset"]
|
|
8741
|
+
};
|
|
8742
|
+
}
|
|
8743
|
+
function SlackMessageListResponseMetaToJSON(json) {
|
|
8744
|
+
return SlackMessageListResponseMetaToJSONTyped(json, false);
|
|
8745
|
+
}
|
|
8746
|
+
function SlackMessageListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8747
|
+
if (value == null) {
|
|
8748
|
+
return value;
|
|
8749
|
+
}
|
|
8750
|
+
return {
|
|
8751
|
+
"request_id": value["requestId"],
|
|
8752
|
+
"total": value["total"],
|
|
8753
|
+
"limit": value["limit"],
|
|
8754
|
+
"offset": value["offset"]
|
|
8755
|
+
};
|
|
8756
|
+
}
|
|
8757
|
+
|
|
8758
|
+
// src/src/models/SlackMessageListResponse.ts
|
|
8759
|
+
function instanceOfSlackMessageListResponse(value) {
|
|
8760
|
+
return true;
|
|
8761
|
+
}
|
|
8762
|
+
function SlackMessageListResponseFromJSON(json) {
|
|
8763
|
+
return SlackMessageListResponseFromJSONTyped(json, false);
|
|
8764
|
+
}
|
|
8765
|
+
function SlackMessageListResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
8766
|
+
if (json == null) {
|
|
8767
|
+
return json;
|
|
8768
|
+
}
|
|
8769
|
+
return {
|
|
8770
|
+
"data": json["data"] == null ? void 0 : json["data"].map(SlackMessageSummaryFromJSON),
|
|
8771
|
+
"meta": json["meta"] == null ? void 0 : SlackMessageListResponseMetaFromJSON(json["meta"])
|
|
8772
|
+
};
|
|
8773
|
+
}
|
|
8774
|
+
function SlackMessageListResponseToJSON(json) {
|
|
8775
|
+
return SlackMessageListResponseToJSONTyped(json, false);
|
|
8776
|
+
}
|
|
8777
|
+
function SlackMessageListResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
8778
|
+
if (value == null) {
|
|
8779
|
+
return value;
|
|
8780
|
+
}
|
|
8781
|
+
return {
|
|
8782
|
+
"data": value["data"] == null ? void 0 : value["data"].map(SlackMessageSummaryToJSON),
|
|
8783
|
+
"meta": SlackMessageListResponseMetaToJSON(value["meta"])
|
|
8784
|
+
};
|
|
8785
|
+
}
|
|
8786
|
+
|
|
8787
|
+
// src/src/models/SlackMessageResponse.ts
|
|
8788
|
+
function instanceOfSlackMessageResponse(value) {
|
|
8789
|
+
return true;
|
|
8790
|
+
}
|
|
8791
|
+
function SlackMessageResponseFromJSON(json) {
|
|
8792
|
+
return SlackMessageResponseFromJSONTyped(json, false);
|
|
8793
|
+
}
|
|
8794
|
+
function SlackMessageResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
7504
8795
|
if (json == null) {
|
|
7505
8796
|
return json;
|
|
7506
8797
|
}
|
|
7507
8798
|
return {
|
|
7508
|
-
"
|
|
8799
|
+
"data": json["data"] == null ? void 0 : SlackMessageFromJSON(json["data"]),
|
|
8800
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
7509
8801
|
};
|
|
7510
8802
|
}
|
|
7511
|
-
function
|
|
7512
|
-
return
|
|
8803
|
+
function SlackMessageResponseToJSON(json) {
|
|
8804
|
+
return SlackMessageResponseToJSONTyped(json, false);
|
|
7513
8805
|
}
|
|
7514
|
-
function
|
|
8806
|
+
function SlackMessageResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
7515
8807
|
if (value == null) {
|
|
7516
8808
|
return value;
|
|
7517
8809
|
}
|
|
7518
8810
|
return {
|
|
7519
|
-
"
|
|
8811
|
+
"data": SlackMessageToJSON(value["data"]),
|
|
8812
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
7520
8813
|
};
|
|
7521
8814
|
}
|
|
7522
8815
|
|
|
@@ -7953,7 +9246,7 @@ function SuccessResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
7953
9246
|
return json;
|
|
7954
9247
|
}
|
|
7955
9248
|
return {
|
|
7956
|
-
"data": json["data"] == null ? void 0 :
|
|
9249
|
+
"data": json["data"] == null ? void 0 : AuthEmailTemplateDeleteResponseDataFromJSON(json["data"]),
|
|
7957
9250
|
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
7958
9251
|
};
|
|
7959
9252
|
}
|
|
@@ -7965,7 +9258,7 @@ function SuccessResultToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
7965
9258
|
return value;
|
|
7966
9259
|
}
|
|
7967
9260
|
return {
|
|
7968
|
-
"data":
|
|
9261
|
+
"data": AuthEmailTemplateDeleteResponseDataToJSON(value["data"]),
|
|
7969
9262
|
"meta": RequestMetaToJSON(value["meta"])
|
|
7970
9263
|
};
|
|
7971
9264
|
}
|
|
@@ -11173,67 +12466,439 @@ function WebhookVersionsResponseDataToJSONTyped(value, ignoreDiscriminator = fal
|
|
|
11173
12466
|
if (value == null) {
|
|
11174
12467
|
return value;
|
|
11175
12468
|
}
|
|
11176
|
-
return {
|
|
11177
|
-
"current_version": value["currentVersion"],
|
|
11178
|
-
"versions": value["versions"] == null ? void 0 : value["versions"].map(WebhookVersionToJSON)
|
|
11179
|
-
};
|
|
11180
|
-
}
|
|
11181
|
-
|
|
11182
|
-
// src/src/models/WebhookVersionsResponse.ts
|
|
11183
|
-
function instanceOfWebhookVersionsResponse(value) {
|
|
11184
|
-
return true;
|
|
11185
|
-
}
|
|
11186
|
-
function WebhookVersionsResponseFromJSON(json) {
|
|
11187
|
-
return WebhookVersionsResponseFromJSONTyped(json, false);
|
|
11188
|
-
}
|
|
11189
|
-
function WebhookVersionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
11190
|
-
if (json == null) {
|
|
11191
|
-
return json;
|
|
12469
|
+
return {
|
|
12470
|
+
"current_version": value["currentVersion"],
|
|
12471
|
+
"versions": value["versions"] == null ? void 0 : value["versions"].map(WebhookVersionToJSON)
|
|
12472
|
+
};
|
|
12473
|
+
}
|
|
12474
|
+
|
|
12475
|
+
// src/src/models/WebhookVersionsResponse.ts
|
|
12476
|
+
function instanceOfWebhookVersionsResponse(value) {
|
|
12477
|
+
return true;
|
|
12478
|
+
}
|
|
12479
|
+
function WebhookVersionsResponseFromJSON(json) {
|
|
12480
|
+
return WebhookVersionsResponseFromJSONTyped(json, false);
|
|
12481
|
+
}
|
|
12482
|
+
function WebhookVersionsResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
12483
|
+
if (json == null) {
|
|
12484
|
+
return json;
|
|
12485
|
+
}
|
|
12486
|
+
return {
|
|
12487
|
+
"data": json["data"] == null ? void 0 : WebhookVersionsResponseDataFromJSON(json["data"]),
|
|
12488
|
+
"meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
|
|
12489
|
+
};
|
|
12490
|
+
}
|
|
12491
|
+
function WebhookVersionsResponseToJSON(json) {
|
|
12492
|
+
return WebhookVersionsResponseToJSONTyped(json, false);
|
|
12493
|
+
}
|
|
12494
|
+
function WebhookVersionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12495
|
+
if (value == null) {
|
|
12496
|
+
return value;
|
|
12497
|
+
}
|
|
12498
|
+
return {
|
|
12499
|
+
"data": WebhookVersionsResponseDataToJSON(value["data"]),
|
|
12500
|
+
"meta": RequestMetaToJSON(value["meta"])
|
|
12501
|
+
};
|
|
12502
|
+
}
|
|
12503
|
+
|
|
12504
|
+
// src/src/models/WithdrawSubscriberConsentRequest.ts
|
|
12505
|
+
function instanceOfWithdrawSubscriberConsentRequest(value) {
|
|
12506
|
+
return true;
|
|
12507
|
+
}
|
|
12508
|
+
function WithdrawSubscriberConsentRequestFromJSON(json) {
|
|
12509
|
+
return WithdrawSubscriberConsentRequestFromJSONTyped(json, false);
|
|
12510
|
+
}
|
|
12511
|
+
function WithdrawSubscriberConsentRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
12512
|
+
if (json == null) {
|
|
12513
|
+
return json;
|
|
12514
|
+
}
|
|
12515
|
+
return {
|
|
12516
|
+
"reason": json["reason"] == null ? void 0 : json["reason"]
|
|
12517
|
+
};
|
|
12518
|
+
}
|
|
12519
|
+
function WithdrawSubscriberConsentRequestToJSON(json) {
|
|
12520
|
+
return WithdrawSubscriberConsentRequestToJSONTyped(json, false);
|
|
12521
|
+
}
|
|
12522
|
+
function WithdrawSubscriberConsentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
12523
|
+
if (value == null) {
|
|
12524
|
+
return value;
|
|
12525
|
+
}
|
|
12526
|
+
return {
|
|
12527
|
+
"reason": value["reason"]
|
|
12528
|
+
};
|
|
12529
|
+
}
|
|
12530
|
+
|
|
12531
|
+
// src/src/apis/AuthEmailTemplatesApi.ts
|
|
12532
|
+
var AuthEmailTemplatesApi = class extends BaseAPI {
|
|
12533
|
+
/**
|
|
12534
|
+
* Atomic upsert of any subset of magic_link, password_reset, email_verification. Validates all inputs before any write; if any one fails validation or MJML compile, none are saved. Designed for one-shot migration imports from Auth0/Firebase/Clerk/Cognito.
|
|
12535
|
+
* Bulk-upsert auth email templates
|
|
12536
|
+
*/
|
|
12537
|
+
async bulkUpsertAuthEmailTemplatesRaw(requestParameters, initOverrides) {
|
|
12538
|
+
if (requestParameters["bulkUpsertAuthEmailTemplatesRequest"] == null) {
|
|
12539
|
+
throw new RequiredError(
|
|
12540
|
+
"bulkUpsertAuthEmailTemplatesRequest",
|
|
12541
|
+
'Required parameter "bulkUpsertAuthEmailTemplatesRequest" was null or undefined when calling bulkUpsertAuthEmailTemplates().'
|
|
12542
|
+
);
|
|
12543
|
+
}
|
|
12544
|
+
const queryParameters = {};
|
|
12545
|
+
const headerParameters = {};
|
|
12546
|
+
headerParameters["Content-Type"] = "application/json";
|
|
12547
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12548
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12549
|
+
}
|
|
12550
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12551
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12552
|
+
}
|
|
12553
|
+
const response = await this.request({
|
|
12554
|
+
path: `/auth/email-templates`,
|
|
12555
|
+
method: "PUT",
|
|
12556
|
+
headers: headerParameters,
|
|
12557
|
+
query: queryParameters,
|
|
12558
|
+
body: BulkUpsertAuthEmailTemplatesRequestToJSON(requestParameters["bulkUpsertAuthEmailTemplatesRequest"])
|
|
12559
|
+
}, initOverrides);
|
|
12560
|
+
return new JSONApiResponse(response, (jsonValue) => BulkUpsertAuthEmailTemplatesResponseFromJSON(jsonValue));
|
|
12561
|
+
}
|
|
12562
|
+
/**
|
|
12563
|
+
* Atomic upsert of any subset of magic_link, password_reset, email_verification. Validates all inputs before any write; if any one fails validation or MJML compile, none are saved. Designed for one-shot migration imports from Auth0/Firebase/Clerk/Cognito.
|
|
12564
|
+
* Bulk-upsert auth email templates
|
|
12565
|
+
*/
|
|
12566
|
+
async bulkUpsertAuthEmailTemplates(bulkUpsertAuthEmailTemplatesRequest, initOverrides) {
|
|
12567
|
+
const response = await this.bulkUpsertAuthEmailTemplatesRaw({ bulkUpsertAuthEmailTemplatesRequest }, initOverrides);
|
|
12568
|
+
return await response.value();
|
|
12569
|
+
}
|
|
12570
|
+
/**
|
|
12571
|
+
* Reverts the application to the system default for this type
|
|
12572
|
+
* Remove a tenant override
|
|
12573
|
+
*/
|
|
12574
|
+
async deleteAuthEmailTemplateRaw(requestParameters, initOverrides) {
|
|
12575
|
+
if (requestParameters["type"] == null) {
|
|
12576
|
+
throw new RequiredError(
|
|
12577
|
+
"type",
|
|
12578
|
+
'Required parameter "type" was null or undefined when calling deleteAuthEmailTemplate().'
|
|
12579
|
+
);
|
|
12580
|
+
}
|
|
12581
|
+
const queryParameters = {};
|
|
12582
|
+
const headerParameters = {};
|
|
12583
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12584
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12585
|
+
}
|
|
12586
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12587
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12588
|
+
}
|
|
12589
|
+
const response = await this.request({
|
|
12590
|
+
path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
|
|
12591
|
+
method: "DELETE",
|
|
12592
|
+
headers: headerParameters,
|
|
12593
|
+
query: queryParameters
|
|
12594
|
+
}, initOverrides);
|
|
12595
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateDeleteResponseFromJSON(jsonValue));
|
|
12596
|
+
}
|
|
12597
|
+
/**
|
|
12598
|
+
* Reverts the application to the system default for this type
|
|
12599
|
+
* Remove a tenant override
|
|
12600
|
+
*/
|
|
12601
|
+
async deleteAuthEmailTemplate(type, initOverrides) {
|
|
12602
|
+
const response = await this.deleteAuthEmailTemplateRaw({ type }, initOverrides);
|
|
12603
|
+
return await response.value();
|
|
12604
|
+
}
|
|
12605
|
+
/**
|
|
12606
|
+
* Returns the override row for the given `type` if one exists, otherwise the system default. Use `is_default` to distinguish.
|
|
12607
|
+
* Get an auth email template
|
|
12608
|
+
*/
|
|
12609
|
+
async getAuthEmailTemplateRaw(requestParameters, initOverrides) {
|
|
12610
|
+
if (requestParameters["type"] == null) {
|
|
12611
|
+
throw new RequiredError(
|
|
12612
|
+
"type",
|
|
12613
|
+
'Required parameter "type" was null or undefined when calling getAuthEmailTemplate().'
|
|
12614
|
+
);
|
|
12615
|
+
}
|
|
12616
|
+
const queryParameters = {};
|
|
12617
|
+
const headerParameters = {};
|
|
12618
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12619
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12620
|
+
}
|
|
12621
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12622
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12623
|
+
}
|
|
12624
|
+
const response = await this.request({
|
|
12625
|
+
path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
|
|
12626
|
+
method: "GET",
|
|
12627
|
+
headers: headerParameters,
|
|
12628
|
+
query: queryParameters
|
|
12629
|
+
}, initOverrides);
|
|
12630
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateResponseFromJSON(jsonValue));
|
|
12631
|
+
}
|
|
12632
|
+
/**
|
|
12633
|
+
* Returns the override row for the given `type` if one exists, otherwise the system default. Use `is_default` to distinguish.
|
|
12634
|
+
* Get an auth email template
|
|
12635
|
+
*/
|
|
12636
|
+
async getAuthEmailTemplate(type, initOverrides) {
|
|
12637
|
+
const response = await this.getAuthEmailTemplateRaw({ type }, initOverrides);
|
|
12638
|
+
return await response.value();
|
|
12639
|
+
}
|
|
12640
|
+
/**
|
|
12641
|
+
* Returns the system default for the given type with Handlebars variables un-rendered. Useful for migration tooling fetch, modify, then PUT.
|
|
12642
|
+
* Get the system default template
|
|
12643
|
+
*/
|
|
12644
|
+
async getAuthEmailTemplateDefaultRaw(requestParameters, initOverrides) {
|
|
12645
|
+
if (requestParameters["type"] == null) {
|
|
12646
|
+
throw new RequiredError(
|
|
12647
|
+
"type",
|
|
12648
|
+
'Required parameter "type" was null or undefined when calling getAuthEmailTemplateDefault().'
|
|
12649
|
+
);
|
|
12650
|
+
}
|
|
12651
|
+
const queryParameters = {};
|
|
12652
|
+
const headerParameters = {};
|
|
12653
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12654
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12655
|
+
}
|
|
12656
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12657
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12658
|
+
}
|
|
12659
|
+
const response = await this.request({
|
|
12660
|
+
path: `/auth/email-templates/{type}/default`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
|
|
12661
|
+
method: "GET",
|
|
12662
|
+
headers: headerParameters,
|
|
12663
|
+
query: queryParameters
|
|
12664
|
+
}, initOverrides);
|
|
12665
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateDefaultResponseFromJSON(jsonValue));
|
|
12666
|
+
}
|
|
12667
|
+
/**
|
|
12668
|
+
* Returns the system default for the given type with Handlebars variables un-rendered. Useful for migration tooling fetch, modify, then PUT.
|
|
12669
|
+
* Get the system default template
|
|
12670
|
+
*/
|
|
12671
|
+
async getAuthEmailTemplateDefault(type, initOverrides) {
|
|
12672
|
+
const response = await this.getAuthEmailTemplateDefaultRaw({ type }, initOverrides);
|
|
12673
|
+
return await response.value();
|
|
12674
|
+
}
|
|
12675
|
+
/**
|
|
12676
|
+
* List version history for a template
|
|
12677
|
+
*/
|
|
12678
|
+
async listAuthEmailTemplateVersionsRaw(requestParameters, initOverrides) {
|
|
12679
|
+
if (requestParameters["type"] == null) {
|
|
12680
|
+
throw new RequiredError(
|
|
12681
|
+
"type",
|
|
12682
|
+
'Required parameter "type" was null or undefined when calling listAuthEmailTemplateVersions().'
|
|
12683
|
+
);
|
|
12684
|
+
}
|
|
12685
|
+
const queryParameters = {};
|
|
12686
|
+
const headerParameters = {};
|
|
12687
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12688
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12689
|
+
}
|
|
12690
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12691
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12692
|
+
}
|
|
12693
|
+
const response = await this.request({
|
|
12694
|
+
path: `/auth/email-templates/{type}/versions`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
|
|
12695
|
+
method: "GET",
|
|
12696
|
+
headers: headerParameters,
|
|
12697
|
+
query: queryParameters
|
|
12698
|
+
}, initOverrides);
|
|
12699
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateVersionsResponseFromJSON(jsonValue));
|
|
12700
|
+
}
|
|
12701
|
+
/**
|
|
12702
|
+
* List version history for a template
|
|
12703
|
+
*/
|
|
12704
|
+
async listAuthEmailTemplateVersions(type, initOverrides) {
|
|
12705
|
+
const response = await this.listAuthEmailTemplateVersionsRaw({ type }, initOverrides);
|
|
12706
|
+
return await response.value();
|
|
12707
|
+
}
|
|
12708
|
+
/**
|
|
12709
|
+
* List the application\'s auth email templates. Returns one entry per email type; when no override exists for a type, the system default is returned with `is_default: true`.
|
|
12710
|
+
* List auth email templates
|
|
12711
|
+
*/
|
|
12712
|
+
async listAuthEmailTemplatesRaw(initOverrides) {
|
|
12713
|
+
const queryParameters = {};
|
|
12714
|
+
const headerParameters = {};
|
|
12715
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12716
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12717
|
+
}
|
|
12718
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12719
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12720
|
+
}
|
|
12721
|
+
const response = await this.request({
|
|
12722
|
+
path: `/auth/email-templates`,
|
|
12723
|
+
method: "GET",
|
|
12724
|
+
headers: headerParameters,
|
|
12725
|
+
query: queryParameters
|
|
12726
|
+
}, initOverrides);
|
|
12727
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateListResponseFromJSON(jsonValue));
|
|
12728
|
+
}
|
|
12729
|
+
/**
|
|
12730
|
+
* List the application\'s auth email templates. Returns one entry per email type; when no override exists for a type, the system default is returned with `is_default: true`.
|
|
12731
|
+
* List auth email templates
|
|
12732
|
+
*/
|
|
12733
|
+
async listAuthEmailTemplates(initOverrides) {
|
|
12734
|
+
const response = await this.listAuthEmailTemplatesRaw(initOverrides);
|
|
12735
|
+
return await response.value();
|
|
12736
|
+
}
|
|
12737
|
+
/**
|
|
12738
|
+
* Returns subject/html/text rendered using sample variables (or caller-provided variables). No email is sent. Useful for dashboard previews and migration import validation.
|
|
12739
|
+
* Render a template with sample variables
|
|
12740
|
+
*/
|
|
12741
|
+
async previewAuthEmailTemplateRaw(requestParameters, initOverrides) {
|
|
12742
|
+
if (requestParameters["type"] == null) {
|
|
12743
|
+
throw new RequiredError(
|
|
12744
|
+
"type",
|
|
12745
|
+
'Required parameter "type" was null or undefined when calling previewAuthEmailTemplate().'
|
|
12746
|
+
);
|
|
12747
|
+
}
|
|
12748
|
+
const queryParameters = {};
|
|
12749
|
+
const headerParameters = {};
|
|
12750
|
+
headerParameters["Content-Type"] = "application/json";
|
|
12751
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12752
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12753
|
+
}
|
|
12754
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12755
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12756
|
+
}
|
|
12757
|
+
const response = await this.request({
|
|
12758
|
+
path: `/auth/email-templates/{type}/preview`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
|
|
12759
|
+
method: "POST",
|
|
12760
|
+
headers: headerParameters,
|
|
12761
|
+
query: queryParameters,
|
|
12762
|
+
body: AuthEmailTemplatePreviewRequestToJSON(requestParameters["authEmailTemplatePreviewRequest"])
|
|
12763
|
+
}, initOverrides);
|
|
12764
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplatePreviewResponseFromJSON(jsonValue));
|
|
12765
|
+
}
|
|
12766
|
+
/**
|
|
12767
|
+
* Returns subject/html/text rendered using sample variables (or caller-provided variables). No email is sent. Useful for dashboard previews and migration import validation.
|
|
12768
|
+
* Render a template with sample variables
|
|
12769
|
+
*/
|
|
12770
|
+
async previewAuthEmailTemplate(type, authEmailTemplatePreviewRequest, initOverrides) {
|
|
12771
|
+
const response = await this.previewAuthEmailTemplateRaw({ type, authEmailTemplatePreviewRequest }, initOverrides);
|
|
12772
|
+
return await response.value();
|
|
12773
|
+
}
|
|
12774
|
+
/**
|
|
12775
|
+
* Snapshots current state, then overwrites with the contents of the specified historical version.
|
|
12776
|
+
* Restore a previous version
|
|
12777
|
+
*/
|
|
12778
|
+
async restoreAuthEmailTemplateVersionRaw(requestParameters, initOverrides) {
|
|
12779
|
+
if (requestParameters["type"] == null) {
|
|
12780
|
+
throw new RequiredError(
|
|
12781
|
+
"type",
|
|
12782
|
+
'Required parameter "type" was null or undefined when calling restoreAuthEmailTemplateVersion().'
|
|
12783
|
+
);
|
|
12784
|
+
}
|
|
12785
|
+
if (requestParameters["version"] == null) {
|
|
12786
|
+
throw new RequiredError(
|
|
12787
|
+
"version",
|
|
12788
|
+
'Required parameter "version" was null or undefined when calling restoreAuthEmailTemplateVersion().'
|
|
12789
|
+
);
|
|
12790
|
+
}
|
|
12791
|
+
const queryParameters = {};
|
|
12792
|
+
const headerParameters = {};
|
|
12793
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12794
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12795
|
+
}
|
|
12796
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12797
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12798
|
+
}
|
|
12799
|
+
const response = await this.request({
|
|
12800
|
+
path: `/auth/email-templates/{type}/versions/{version}/restore`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))).replace(`{${"version"}}`, encodeURIComponent(String(requestParameters["version"]))),
|
|
12801
|
+
method: "POST",
|
|
12802
|
+
headers: headerParameters,
|
|
12803
|
+
query: queryParameters
|
|
12804
|
+
}, initOverrides);
|
|
12805
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateResponseFromJSON(jsonValue));
|
|
12806
|
+
}
|
|
12807
|
+
/**
|
|
12808
|
+
* Snapshots current state, then overwrites with the contents of the specified historical version.
|
|
12809
|
+
* Restore a previous version
|
|
12810
|
+
*/
|
|
12811
|
+
async restoreAuthEmailTemplateVersion(type, version, initOverrides) {
|
|
12812
|
+
const response = await this.restoreAuthEmailTemplateVersionRaw({ type, version }, initOverrides);
|
|
12813
|
+
return await response.value();
|
|
12814
|
+
}
|
|
12815
|
+
/**
|
|
12816
|
+
* Renders the template (override or default) using sample/provided variables and sends to the recipient. The recipient must be in the application `test_recipients` allowlist. Rate-limited.
|
|
12817
|
+
* Send a test render of a template
|
|
12818
|
+
*/
|
|
12819
|
+
async sendAuthEmailTemplateTestRaw(requestParameters, initOverrides) {
|
|
12820
|
+
if (requestParameters["type"] == null) {
|
|
12821
|
+
throw new RequiredError(
|
|
12822
|
+
"type",
|
|
12823
|
+
'Required parameter "type" was null or undefined when calling sendAuthEmailTemplateTest().'
|
|
12824
|
+
);
|
|
12825
|
+
}
|
|
12826
|
+
if (requestParameters["authEmailTemplateTestRequest"] == null) {
|
|
12827
|
+
throw new RequiredError(
|
|
12828
|
+
"authEmailTemplateTestRequest",
|
|
12829
|
+
'Required parameter "authEmailTemplateTestRequest" was null or undefined when calling sendAuthEmailTemplateTest().'
|
|
12830
|
+
);
|
|
12831
|
+
}
|
|
12832
|
+
const queryParameters = {};
|
|
12833
|
+
const headerParameters = {};
|
|
12834
|
+
headerParameters["Content-Type"] = "application/json";
|
|
12835
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12836
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12837
|
+
}
|
|
12838
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12839
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12840
|
+
}
|
|
12841
|
+
const response = await this.request({
|
|
12842
|
+
path: `/auth/email-templates/{type}/test`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
|
|
12843
|
+
method: "POST",
|
|
12844
|
+
headers: headerParameters,
|
|
12845
|
+
query: queryParameters,
|
|
12846
|
+
body: AuthEmailTemplateTestRequestToJSON(requestParameters["authEmailTemplateTestRequest"])
|
|
12847
|
+
}, initOverrides);
|
|
12848
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateTestResponseFromJSON(jsonValue));
|
|
11192
12849
|
}
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
}
|
|
11201
|
-
function WebhookVersionsResponseToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11202
|
-
if (value == null) {
|
|
11203
|
-
return value;
|
|
12850
|
+
/**
|
|
12851
|
+
* Renders the template (override or default) using sample/provided variables and sends to the recipient. The recipient must be in the application `test_recipients` allowlist. Rate-limited.
|
|
12852
|
+
* Send a test render of a template
|
|
12853
|
+
*/
|
|
12854
|
+
async sendAuthEmailTemplateTest(type, authEmailTemplateTestRequest, initOverrides) {
|
|
12855
|
+
const response = await this.sendAuthEmailTemplateTestRaw({ type, authEmailTemplateTestRequest }, initOverrides);
|
|
12856
|
+
return await response.value();
|
|
11204
12857
|
}
|
|
11205
|
-
|
|
11206
|
-
|
|
11207
|
-
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
12858
|
+
/**
|
|
12859
|
+
* Idempotent upsert keyed by application + type. MJML sources are compiled to HTML on save; compile errors return 400 with `details`.
|
|
12860
|
+
* Create or update an auth email template
|
|
12861
|
+
*/
|
|
12862
|
+
async upsertAuthEmailTemplateRaw(requestParameters, initOverrides) {
|
|
12863
|
+
if (requestParameters["type"] == null) {
|
|
12864
|
+
throw new RequiredError(
|
|
12865
|
+
"type",
|
|
12866
|
+
'Required parameter "type" was null or undefined when calling upsertAuthEmailTemplate().'
|
|
12867
|
+
);
|
|
12868
|
+
}
|
|
12869
|
+
if (requestParameters["upsertAuthEmailTemplateRequest"] == null) {
|
|
12870
|
+
throw new RequiredError(
|
|
12871
|
+
"upsertAuthEmailTemplateRequest",
|
|
12872
|
+
'Required parameter "upsertAuthEmailTemplateRequest" was null or undefined when calling upsertAuthEmailTemplate().'
|
|
12873
|
+
);
|
|
12874
|
+
}
|
|
12875
|
+
const queryParameters = {};
|
|
12876
|
+
const headerParameters = {};
|
|
12877
|
+
headerParameters["Content-Type"] = "application/json";
|
|
12878
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12879
|
+
headerParameters["X-Application-Secret"] = await this.configuration.apiKey("X-Application-Secret");
|
|
12880
|
+
}
|
|
12881
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
12882
|
+
headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
|
|
12883
|
+
}
|
|
12884
|
+
const response = await this.request({
|
|
12885
|
+
path: `/auth/email-templates/{type}`.replace(`{${"type"}}`, encodeURIComponent(String(requestParameters["type"]))),
|
|
12886
|
+
method: "PUT",
|
|
12887
|
+
headers: headerParameters,
|
|
12888
|
+
query: queryParameters,
|
|
12889
|
+
body: UpsertAuthEmailTemplateRequestToJSON(requestParameters["upsertAuthEmailTemplateRequest"])
|
|
12890
|
+
}, initOverrides);
|
|
12891
|
+
return new JSONApiResponse(response, (jsonValue) => AuthEmailTemplateResponseFromJSON(jsonValue));
|
|
11221
12892
|
}
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
function WithdrawSubscriberConsentRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
11230
|
-
if (value == null) {
|
|
11231
|
-
return value;
|
|
12893
|
+
/**
|
|
12894
|
+
* Idempotent upsert keyed by application + type. MJML sources are compiled to HTML on save; compile errors return 400 with `details`.
|
|
12895
|
+
* Create or update an auth email template
|
|
12896
|
+
*/
|
|
12897
|
+
async upsertAuthEmailTemplate(type, upsertAuthEmailTemplateRequest, initOverrides) {
|
|
12898
|
+
const response = await this.upsertAuthEmailTemplateRaw({ type, upsertAuthEmailTemplateRequest }, initOverrides);
|
|
12899
|
+
return await response.value();
|
|
11232
12900
|
}
|
|
11233
|
-
|
|
11234
|
-
"reason": value["reason"]
|
|
11235
|
-
};
|
|
11236
|
-
}
|
|
12901
|
+
};
|
|
11237
12902
|
|
|
11238
12903
|
// src/src/apis/AuthEmailVerificationApi.ts
|
|
11239
12904
|
var AuthEmailVerificationApi = class extends BaseAPI {
|
|
@@ -13354,6 +15019,106 @@ var ListEmailsStatusEnum = {
|
|
|
13354
15019
|
REJECTED: "rejected"
|
|
13355
15020
|
};
|
|
13356
15021
|
|
|
15022
|
+
// src/src/apis/ExecutionsApi.ts
|
|
15023
|
+
var ExecutionsApi = class extends BaseAPI {
|
|
15024
|
+
/**
|
|
15025
|
+
* Cancel a workflow execution that is still pending or running. Already-terminal executions cannot be cancelled.
|
|
15026
|
+
* Cancel a running execution
|
|
15027
|
+
*/
|
|
15028
|
+
async cancelExecutionRaw(requestParameters, initOverrides) {
|
|
15029
|
+
if (requestParameters["id"] == null) {
|
|
15030
|
+
throw new RequiredError(
|
|
15031
|
+
"id",
|
|
15032
|
+
'Required parameter "id" was null or undefined when calling cancelExecution().'
|
|
15033
|
+
);
|
|
15034
|
+
}
|
|
15035
|
+
const queryParameters = {};
|
|
15036
|
+
const headerParameters = {};
|
|
15037
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15038
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
15039
|
+
}
|
|
15040
|
+
const response = await this.request({
|
|
15041
|
+
path: `/executions/{id}/cancel`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15042
|
+
method: "POST",
|
|
15043
|
+
headers: headerParameters,
|
|
15044
|
+
query: queryParameters
|
|
15045
|
+
}, initOverrides);
|
|
15046
|
+
return new JSONApiResponse(response, (jsonValue) => ExecutionCancelResponseFromJSON(jsonValue));
|
|
15047
|
+
}
|
|
15048
|
+
/**
|
|
15049
|
+
* Cancel a workflow execution that is still pending or running. Already-terminal executions cannot be cancelled.
|
|
15050
|
+
* Cancel a running execution
|
|
15051
|
+
*/
|
|
15052
|
+
async cancelExecution(id, initOverrides) {
|
|
15053
|
+
const response = await this.cancelExecutionRaw({ id }, initOverrides);
|
|
15054
|
+
return await response.value();
|
|
15055
|
+
}
|
|
15056
|
+
/**
|
|
15057
|
+
* Retrieve a workflow execution by ID, including its step execution details.
|
|
15058
|
+
* Get a workflow execution
|
|
15059
|
+
*/
|
|
15060
|
+
async getExecutionRaw(requestParameters, initOverrides) {
|
|
15061
|
+
if (requestParameters["id"] == null) {
|
|
15062
|
+
throw new RequiredError(
|
|
15063
|
+
"id",
|
|
15064
|
+
'Required parameter "id" was null or undefined when calling getExecution().'
|
|
15065
|
+
);
|
|
15066
|
+
}
|
|
15067
|
+
const queryParameters = {};
|
|
15068
|
+
const headerParameters = {};
|
|
15069
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15070
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
15071
|
+
}
|
|
15072
|
+
const response = await this.request({
|
|
15073
|
+
path: `/executions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15074
|
+
method: "GET",
|
|
15075
|
+
headers: headerParameters,
|
|
15076
|
+
query: queryParameters
|
|
15077
|
+
}, initOverrides);
|
|
15078
|
+
return new JSONApiResponse(response, (jsonValue) => ExecutionResponseFromJSON(jsonValue));
|
|
15079
|
+
}
|
|
15080
|
+
/**
|
|
15081
|
+
* Retrieve a workflow execution by ID, including its step execution details.
|
|
15082
|
+
* Get a workflow execution
|
|
15083
|
+
*/
|
|
15084
|
+
async getExecution(id, initOverrides) {
|
|
15085
|
+
const response = await this.getExecutionRaw({ id }, initOverrides);
|
|
15086
|
+
return await response.value();
|
|
15087
|
+
}
|
|
15088
|
+
/**
|
|
15089
|
+
* Create a new workflow execution that re-runs the same workflow with the original subscriber, payload, and sender. Only `failed` or `cancelled` executions can be retried.
|
|
15090
|
+
* Retry a failed or cancelled execution
|
|
15091
|
+
*/
|
|
15092
|
+
async retryExecutionRaw(requestParameters, initOverrides) {
|
|
15093
|
+
if (requestParameters["id"] == null) {
|
|
15094
|
+
throw new RequiredError(
|
|
15095
|
+
"id",
|
|
15096
|
+
'Required parameter "id" was null or undefined when calling retryExecution().'
|
|
15097
|
+
);
|
|
15098
|
+
}
|
|
15099
|
+
const queryParameters = {};
|
|
15100
|
+
const headerParameters = {};
|
|
15101
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
15102
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
15103
|
+
}
|
|
15104
|
+
const response = await this.request({
|
|
15105
|
+
path: `/executions/{id}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
15106
|
+
method: "POST",
|
|
15107
|
+
headers: headerParameters,
|
|
15108
|
+
query: queryParameters
|
|
15109
|
+
}, initOverrides);
|
|
15110
|
+
return new JSONApiResponse(response, (jsonValue) => ExecutionRetryResponseFromJSON(jsonValue));
|
|
15111
|
+
}
|
|
15112
|
+
/**
|
|
15113
|
+
* Create a new workflow execution that re-runs the same workflow with the original subscriber, payload, and sender. Only `failed` or `cancelled` executions can be retried.
|
|
15114
|
+
* Retry a failed or cancelled execution
|
|
15115
|
+
*/
|
|
15116
|
+
async retryExecution(id, initOverrides) {
|
|
15117
|
+
const response = await this.retryExecutionRaw({ id }, initOverrides);
|
|
15118
|
+
return await response.value();
|
|
15119
|
+
}
|
|
15120
|
+
};
|
|
15121
|
+
|
|
13357
15122
|
// src/src/apis/InboxApi.ts
|
|
13358
15123
|
var InboxApi = class extends BaseAPI {
|
|
13359
15124
|
/**
|
|
@@ -14699,6 +16464,124 @@ var ListSmsStatusEnum = {
|
|
|
14699
16464
|
FAILED: "failed"
|
|
14700
16465
|
};
|
|
14701
16466
|
|
|
16467
|
+
// src/src/apis/SlackApi.ts
|
|
16468
|
+
var SlackApi = class extends BaseAPI {
|
|
16469
|
+
/**
|
|
16470
|
+
* Retrieve a single Slack message by ID, including its full block/attachment payload and status timestamps.
|
|
16471
|
+
* Get a Slack message
|
|
16472
|
+
*/
|
|
16473
|
+
async getSlackMessageRaw(requestParameters, initOverrides) {
|
|
16474
|
+
if (requestParameters["id"] == null) {
|
|
16475
|
+
throw new RequiredError(
|
|
16476
|
+
"id",
|
|
16477
|
+
'Required parameter "id" was null or undefined when calling getSlackMessage().'
|
|
16478
|
+
);
|
|
16479
|
+
}
|
|
16480
|
+
const queryParameters = {};
|
|
16481
|
+
const headerParameters = {};
|
|
16482
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16483
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
16484
|
+
}
|
|
16485
|
+
const response = await this.request({
|
|
16486
|
+
path: `/slack/messages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
|
|
16487
|
+
method: "GET",
|
|
16488
|
+
headers: headerParameters,
|
|
16489
|
+
query: queryParameters
|
|
16490
|
+
}, initOverrides);
|
|
16491
|
+
return new JSONApiResponse(response, (jsonValue) => SlackMessageResponseFromJSON(jsonValue));
|
|
16492
|
+
}
|
|
16493
|
+
/**
|
|
16494
|
+
* Retrieve a single Slack message by ID, including its full block/attachment payload and status timestamps.
|
|
16495
|
+
* Get a Slack message
|
|
16496
|
+
*/
|
|
16497
|
+
async getSlackMessage(id, initOverrides) {
|
|
16498
|
+
const response = await this.getSlackMessageRaw({ id }, initOverrides);
|
|
16499
|
+
return await response.value();
|
|
16500
|
+
}
|
|
16501
|
+
/**
|
|
16502
|
+
* List Slack messages sent through the project, with optional filtering by connection, channel, and status.
|
|
16503
|
+
* List Slack messages
|
|
16504
|
+
*/
|
|
16505
|
+
async listSlackMessagesRaw(requestParameters, initOverrides) {
|
|
16506
|
+
const queryParameters = {};
|
|
16507
|
+
if (requestParameters["connectionId"] != null) {
|
|
16508
|
+
queryParameters["connection_id"] = requestParameters["connectionId"];
|
|
16509
|
+
}
|
|
16510
|
+
if (requestParameters["channelId"] != null) {
|
|
16511
|
+
queryParameters["channel_id"] = requestParameters["channelId"];
|
|
16512
|
+
}
|
|
16513
|
+
if (requestParameters["status"] != null) {
|
|
16514
|
+
queryParameters["status"] = requestParameters["status"];
|
|
16515
|
+
}
|
|
16516
|
+
if (requestParameters["limit"] != null) {
|
|
16517
|
+
queryParameters["limit"] = requestParameters["limit"];
|
|
16518
|
+
}
|
|
16519
|
+
if (requestParameters["offset"] != null) {
|
|
16520
|
+
queryParameters["offset"] = requestParameters["offset"];
|
|
16521
|
+
}
|
|
16522
|
+
const headerParameters = {};
|
|
16523
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16524
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
16525
|
+
}
|
|
16526
|
+
const response = await this.request({
|
|
16527
|
+
path: `/slack/messages`,
|
|
16528
|
+
method: "GET",
|
|
16529
|
+
headers: headerParameters,
|
|
16530
|
+
query: queryParameters
|
|
16531
|
+
}, initOverrides);
|
|
16532
|
+
return new JSONApiResponse(response, (jsonValue) => SlackMessageListResponseFromJSON(jsonValue));
|
|
16533
|
+
}
|
|
16534
|
+
/**
|
|
16535
|
+
* List Slack messages sent through the project, with optional filtering by connection, channel, and status.
|
|
16536
|
+
* List Slack messages
|
|
16537
|
+
*/
|
|
16538
|
+
async listSlackMessages(connectionId, channelId, status, limit, offset, initOverrides) {
|
|
16539
|
+
const response = await this.listSlackMessagesRaw({ connectionId, channelId, status, limit, offset }, initOverrides);
|
|
16540
|
+
return await response.value();
|
|
16541
|
+
}
|
|
16542
|
+
/**
|
|
16543
|
+
* Send a message to a Slack channel through a connected Slack workspace. Either `text` or `blocks` must be provided. If `connection_id` is omitted, the project\'s active Slack connection is used. If `channel` is omitted, the connection\'s default channel is used.
|
|
16544
|
+
* Send a Slack message
|
|
16545
|
+
*/
|
|
16546
|
+
async sendSlackMessageRaw(requestParameters, initOverrides) {
|
|
16547
|
+
if (requestParameters["sendSlackMessageRequest"] == null) {
|
|
16548
|
+
throw new RequiredError(
|
|
16549
|
+
"sendSlackMessageRequest",
|
|
16550
|
+
'Required parameter "sendSlackMessageRequest" was null or undefined when calling sendSlackMessage().'
|
|
16551
|
+
);
|
|
16552
|
+
}
|
|
16553
|
+
const queryParameters = {};
|
|
16554
|
+
const headerParameters = {};
|
|
16555
|
+
headerParameters["Content-Type"] = "application/json";
|
|
16556
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
16557
|
+
headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
|
|
16558
|
+
}
|
|
16559
|
+
const response = await this.request({
|
|
16560
|
+
path: `/slack/send`,
|
|
16561
|
+
method: "POST",
|
|
16562
|
+
headers: headerParameters,
|
|
16563
|
+
query: queryParameters,
|
|
16564
|
+
body: SendSlackMessageRequestToJSON(requestParameters["sendSlackMessageRequest"])
|
|
16565
|
+
}, initOverrides);
|
|
16566
|
+
return new JSONApiResponse(response, (jsonValue) => SendSlackMessageResponseFromJSON(jsonValue));
|
|
16567
|
+
}
|
|
16568
|
+
/**
|
|
16569
|
+
* Send a message to a Slack channel through a connected Slack workspace. Either `text` or `blocks` must be provided. If `connection_id` is omitted, the project\'s active Slack connection is used. If `channel` is omitted, the connection\'s default channel is used.
|
|
16570
|
+
* Send a Slack message
|
|
16571
|
+
*/
|
|
16572
|
+
async sendSlackMessage(sendSlackMessageRequest, initOverrides) {
|
|
16573
|
+
const response = await this.sendSlackMessageRaw({ sendSlackMessageRequest }, initOverrides);
|
|
16574
|
+
return await response.value();
|
|
16575
|
+
}
|
|
16576
|
+
};
|
|
16577
|
+
var ListSlackMessagesStatusEnum = {
|
|
16578
|
+
QUEUED: "queued",
|
|
16579
|
+
SENDING: "sending",
|
|
16580
|
+
SENT: "sent",
|
|
16581
|
+
DELIVERED: "delivered",
|
|
16582
|
+
FAILED: "failed"
|
|
16583
|
+
};
|
|
16584
|
+
|
|
14702
16585
|
// src/src/apis/SubscribersApi.ts
|
|
14703
16586
|
var SubscribersApi = class extends BaseAPI {
|
|
14704
16587
|
/**
|
|
@@ -17917,6 +19800,7 @@ var errorMiddleware = {
|
|
|
17917
19800
|
var Zyphr = class {
|
|
17918
19801
|
emails;
|
|
17919
19802
|
push;
|
|
19803
|
+
slack;
|
|
17920
19804
|
sms;
|
|
17921
19805
|
inbox;
|
|
17922
19806
|
subscribers;
|
|
@@ -17940,6 +19824,7 @@ var Zyphr = class {
|
|
|
17940
19824
|
});
|
|
17941
19825
|
this.emails = new EmailsApi(config);
|
|
17942
19826
|
this.push = new PushApi(config);
|
|
19827
|
+
this.slack = new SlackApi(config);
|
|
17943
19828
|
this.sms = new SMSApi(config);
|
|
17944
19829
|
this.inbox = new InboxApi(config);
|
|
17945
19830
|
this.subscribers = new SubscribersApi(config);
|
|
@@ -18017,6 +19902,74 @@ export {
|
|
|
18017
19902
|
ApiErrorMetaToJSONTyped,
|
|
18018
19903
|
ApiErrorToJSON,
|
|
18019
19904
|
ApiErrorToJSONTyped,
|
|
19905
|
+
AuthEmailTemplateDefaultFromJSON,
|
|
19906
|
+
AuthEmailTemplateDefaultFromJSONTyped,
|
|
19907
|
+
AuthEmailTemplateDefaultResponseFromJSON,
|
|
19908
|
+
AuthEmailTemplateDefaultResponseFromJSONTyped,
|
|
19909
|
+
AuthEmailTemplateDefaultResponseToJSON,
|
|
19910
|
+
AuthEmailTemplateDefaultResponseToJSONTyped,
|
|
19911
|
+
AuthEmailTemplateDefaultToJSON,
|
|
19912
|
+
AuthEmailTemplateDefaultToJSONTyped,
|
|
19913
|
+
AuthEmailTemplateDeleteResponseDataFromJSON,
|
|
19914
|
+
AuthEmailTemplateDeleteResponseDataFromJSONTyped,
|
|
19915
|
+
AuthEmailTemplateDeleteResponseDataToJSON,
|
|
19916
|
+
AuthEmailTemplateDeleteResponseDataToJSONTyped,
|
|
19917
|
+
AuthEmailTemplateDeleteResponseFromJSON,
|
|
19918
|
+
AuthEmailTemplateDeleteResponseFromJSONTyped,
|
|
19919
|
+
AuthEmailTemplateDeleteResponseToJSON,
|
|
19920
|
+
AuthEmailTemplateDeleteResponseToJSONTyped,
|
|
19921
|
+
AuthEmailTemplateEditorTypeEnum,
|
|
19922
|
+
AuthEmailTemplateFromJSON,
|
|
19923
|
+
AuthEmailTemplateFromJSONTyped,
|
|
19924
|
+
AuthEmailTemplateListResponseFromJSON,
|
|
19925
|
+
AuthEmailTemplateListResponseFromJSONTyped,
|
|
19926
|
+
AuthEmailTemplateListResponseToJSON,
|
|
19927
|
+
AuthEmailTemplateListResponseToJSONTyped,
|
|
19928
|
+
AuthEmailTemplatePreviewRequestFromJSON,
|
|
19929
|
+
AuthEmailTemplatePreviewRequestFromJSONTyped,
|
|
19930
|
+
AuthEmailTemplatePreviewRequestToJSON,
|
|
19931
|
+
AuthEmailTemplatePreviewRequestToJSONTyped,
|
|
19932
|
+
AuthEmailTemplatePreviewResponseFromJSON,
|
|
19933
|
+
AuthEmailTemplatePreviewResponseFromJSONTyped,
|
|
19934
|
+
AuthEmailTemplatePreviewResponseToJSON,
|
|
19935
|
+
AuthEmailTemplatePreviewResponseToJSONTyped,
|
|
19936
|
+
AuthEmailTemplatePreviewResultFromJSON,
|
|
19937
|
+
AuthEmailTemplatePreviewResultFromJSONTyped,
|
|
19938
|
+
AuthEmailTemplatePreviewResultToJSON,
|
|
19939
|
+
AuthEmailTemplatePreviewResultToJSONTyped,
|
|
19940
|
+
AuthEmailTemplateResponseFromJSON,
|
|
19941
|
+
AuthEmailTemplateResponseFromJSONTyped,
|
|
19942
|
+
AuthEmailTemplateResponseToJSON,
|
|
19943
|
+
AuthEmailTemplateResponseToJSONTyped,
|
|
19944
|
+
AuthEmailTemplateTestRequestFromJSON,
|
|
19945
|
+
AuthEmailTemplateTestRequestFromJSONTyped,
|
|
19946
|
+
AuthEmailTemplateTestRequestToJSON,
|
|
19947
|
+
AuthEmailTemplateTestRequestToJSONTyped,
|
|
19948
|
+
AuthEmailTemplateTestResponseFromJSON,
|
|
19949
|
+
AuthEmailTemplateTestResponseFromJSONTyped,
|
|
19950
|
+
AuthEmailTemplateTestResponseToJSON,
|
|
19951
|
+
AuthEmailTemplateTestResponseToJSONTyped,
|
|
19952
|
+
AuthEmailTemplateTestResultFromJSON,
|
|
19953
|
+
AuthEmailTemplateTestResultFromJSONTyped,
|
|
19954
|
+
AuthEmailTemplateTestResultToJSON,
|
|
19955
|
+
AuthEmailTemplateTestResultToJSONTyped,
|
|
19956
|
+
AuthEmailTemplateToJSON,
|
|
19957
|
+
AuthEmailTemplateToJSONTyped,
|
|
19958
|
+
AuthEmailTemplateVersionEditorTypeEnum,
|
|
19959
|
+
AuthEmailTemplateVersionFromJSON,
|
|
19960
|
+
AuthEmailTemplateVersionFromJSONTyped,
|
|
19961
|
+
AuthEmailTemplateVersionToJSON,
|
|
19962
|
+
AuthEmailTemplateVersionToJSONTyped,
|
|
19963
|
+
AuthEmailTemplateVersionsResponseFromJSON,
|
|
19964
|
+
AuthEmailTemplateVersionsResponseFromJSONTyped,
|
|
19965
|
+
AuthEmailTemplateVersionsResponseToJSON,
|
|
19966
|
+
AuthEmailTemplateVersionsResponseToJSONTyped,
|
|
19967
|
+
AuthEmailTemplatesApi,
|
|
19968
|
+
AuthEmailType,
|
|
19969
|
+
AuthEmailTypeFromJSON,
|
|
19970
|
+
AuthEmailTypeFromJSONTyped,
|
|
19971
|
+
AuthEmailTypeToJSON,
|
|
19972
|
+
AuthEmailTypeToJSONTyped,
|
|
18020
19973
|
AuthEmailVerificationApi,
|
|
18021
19974
|
AuthLoginApi,
|
|
18022
19975
|
AuthLoginResponseFromJSON,
|
|
@@ -18081,6 +20034,14 @@ export {
|
|
|
18081
20034
|
BulkRetryWebhookDeliveriesRequestStatusEnum,
|
|
18082
20035
|
BulkRetryWebhookDeliveriesRequestToJSON,
|
|
18083
20036
|
BulkRetryWebhookDeliveriesRequestToJSONTyped,
|
|
20037
|
+
BulkUpsertAuthEmailTemplatesRequestFromJSON,
|
|
20038
|
+
BulkUpsertAuthEmailTemplatesRequestFromJSONTyped,
|
|
20039
|
+
BulkUpsertAuthEmailTemplatesRequestToJSON,
|
|
20040
|
+
BulkUpsertAuthEmailTemplatesRequestToJSONTyped,
|
|
20041
|
+
BulkUpsertAuthEmailTemplatesResponseFromJSON,
|
|
20042
|
+
BulkUpsertAuthEmailTemplatesResponseFromJSONTyped,
|
|
20043
|
+
BulkUpsertAuthEmailTemplatesResponseToJSON,
|
|
20044
|
+
BulkUpsertAuthEmailTemplatesResponseToJSONTyped,
|
|
18084
20045
|
COLLECTION_FORMATS,
|
|
18085
20046
|
CategoryFromJSON,
|
|
18086
20047
|
CategoryFromJSONTyped,
|
|
@@ -18285,6 +20246,29 @@ export {
|
|
|
18285
20246
|
EndUserDeleteResponseFromJSONTyped,
|
|
18286
20247
|
EndUserDeleteResponseToJSON,
|
|
18287
20248
|
EndUserDeleteResponseToJSONTyped,
|
|
20249
|
+
ExecutionCancelResponseDataFromJSON,
|
|
20250
|
+
ExecutionCancelResponseDataFromJSONTyped,
|
|
20251
|
+
ExecutionCancelResponseDataStatusEnum,
|
|
20252
|
+
ExecutionCancelResponseDataToJSON,
|
|
20253
|
+
ExecutionCancelResponseDataToJSONTyped,
|
|
20254
|
+
ExecutionCancelResponseFromJSON,
|
|
20255
|
+
ExecutionCancelResponseFromJSONTyped,
|
|
20256
|
+
ExecutionCancelResponseToJSON,
|
|
20257
|
+
ExecutionCancelResponseToJSONTyped,
|
|
20258
|
+
ExecutionResponseFromJSON,
|
|
20259
|
+
ExecutionResponseFromJSONTyped,
|
|
20260
|
+
ExecutionResponseToJSON,
|
|
20261
|
+
ExecutionResponseToJSONTyped,
|
|
20262
|
+
ExecutionRetryResponseDataFromJSON,
|
|
20263
|
+
ExecutionRetryResponseDataFromJSONTyped,
|
|
20264
|
+
ExecutionRetryResponseDataStatusEnum,
|
|
20265
|
+
ExecutionRetryResponseDataToJSON,
|
|
20266
|
+
ExecutionRetryResponseDataToJSONTyped,
|
|
20267
|
+
ExecutionRetryResponseFromJSON,
|
|
20268
|
+
ExecutionRetryResponseFromJSONTyped,
|
|
20269
|
+
ExecutionRetryResponseToJSON,
|
|
20270
|
+
ExecutionRetryResponseToJSONTyped,
|
|
20271
|
+
ExecutionsApi,
|
|
18288
20272
|
FetchError,
|
|
18289
20273
|
ForgotPasswordRequestFromJSON,
|
|
18290
20274
|
ForgotPasswordRequestFromJSONTyped,
|
|
@@ -18337,6 +20321,7 @@ export {
|
|
|
18337
20321
|
ListDevicesPlatformEnum,
|
|
18338
20322
|
ListEmailsStatusEnum,
|
|
18339
20323
|
ListPushStatusEnum,
|
|
20324
|
+
ListSlackMessagesStatusEnum,
|
|
18340
20325
|
ListSmsStatusEnum,
|
|
18341
20326
|
ListSubscribersStatusEnum,
|
|
18342
20327
|
ListWaaSApplications200ResponseFromJSON,
|
|
@@ -18839,6 +20824,18 @@ export {
|
|
|
18839
20824
|
SendPushToTopicResponseFromJSONTyped,
|
|
18840
20825
|
SendPushToTopicResponseToJSON,
|
|
18841
20826
|
SendPushToTopicResponseToJSONTyped,
|
|
20827
|
+
SendSlackMessageRequestFromJSON,
|
|
20828
|
+
SendSlackMessageRequestFromJSONTyped,
|
|
20829
|
+
SendSlackMessageRequestToJSON,
|
|
20830
|
+
SendSlackMessageRequestToJSONTyped,
|
|
20831
|
+
SendSlackMessageResponseFromJSON,
|
|
20832
|
+
SendSlackMessageResponseFromJSONTyped,
|
|
20833
|
+
SendSlackMessageResponseToJSON,
|
|
20834
|
+
SendSlackMessageResponseToJSONTyped,
|
|
20835
|
+
SendSlackMessageResultFromJSON,
|
|
20836
|
+
SendSlackMessageResultFromJSONTyped,
|
|
20837
|
+
SendSlackMessageResultToJSON,
|
|
20838
|
+
SendSlackMessageResultToJSONTyped,
|
|
18842
20839
|
SendSmsDataFromJSON,
|
|
18843
20840
|
SendSmsDataFromJSONTyped,
|
|
18844
20841
|
SendSmsDataToJSON,
|
|
@@ -18887,6 +20884,32 @@ export {
|
|
|
18887
20884
|
SetPreferencesRequestPreferencesInnerToJSONTyped,
|
|
18888
20885
|
SetPreferencesRequestToJSON,
|
|
18889
20886
|
SetPreferencesRequestToJSONTyped,
|
|
20887
|
+
SlackApi,
|
|
20888
|
+
SlackMessageFromJSON,
|
|
20889
|
+
SlackMessageFromJSONTyped,
|
|
20890
|
+
SlackMessageListResponseFromJSON,
|
|
20891
|
+
SlackMessageListResponseFromJSONTyped,
|
|
20892
|
+
SlackMessageListResponseMetaFromJSON,
|
|
20893
|
+
SlackMessageListResponseMetaFromJSONTyped,
|
|
20894
|
+
SlackMessageListResponseMetaToJSON,
|
|
20895
|
+
SlackMessageListResponseMetaToJSONTyped,
|
|
20896
|
+
SlackMessageListResponseToJSON,
|
|
20897
|
+
SlackMessageListResponseToJSONTyped,
|
|
20898
|
+
SlackMessageResponseFromJSON,
|
|
20899
|
+
SlackMessageResponseFromJSONTyped,
|
|
20900
|
+
SlackMessageResponseToJSON,
|
|
20901
|
+
SlackMessageResponseToJSONTyped,
|
|
20902
|
+
SlackMessageStatus,
|
|
20903
|
+
SlackMessageStatusFromJSON,
|
|
20904
|
+
SlackMessageStatusFromJSONTyped,
|
|
20905
|
+
SlackMessageStatusToJSON,
|
|
20906
|
+
SlackMessageStatusToJSONTyped,
|
|
20907
|
+
SlackMessageSummaryFromJSON,
|
|
20908
|
+
SlackMessageSummaryFromJSONTyped,
|
|
20909
|
+
SlackMessageSummaryToJSON,
|
|
20910
|
+
SlackMessageSummaryToJSONTyped,
|
|
20911
|
+
SlackMessageToJSON,
|
|
20912
|
+
SlackMessageToJSONTyped,
|
|
18890
20913
|
SmsBatchResultMessageFromJSON,
|
|
18891
20914
|
SmsBatchResultMessageFromJSONTyped,
|
|
18892
20915
|
SmsBatchResultMessageToJSON,
|
|
@@ -18956,10 +20979,6 @@ export {
|
|
|
18956
20979
|
SubscriberToJSON,
|
|
18957
20980
|
SubscriberToJSONTyped,
|
|
18958
20981
|
SubscribersApi,
|
|
18959
|
-
SuccessResultDataFromJSON,
|
|
18960
|
-
SuccessResultDataFromJSONTyped,
|
|
18961
|
-
SuccessResultDataToJSON,
|
|
18962
|
-
SuccessResultDataToJSONTyped,
|
|
18963
20982
|
SuccessResultFromJSON,
|
|
18964
20983
|
SuccessResultFromJSONTyped,
|
|
18965
20984
|
SuccessResultToJSON,
|
|
@@ -19121,6 +21140,11 @@ export {
|
|
|
19121
21140
|
UpdateWebhookRequestFromJSONTyped,
|
|
19122
21141
|
UpdateWebhookRequestToJSON,
|
|
19123
21142
|
UpdateWebhookRequestToJSONTyped,
|
|
21143
|
+
UpsertAuthEmailTemplateRequestEditorTypeEnum,
|
|
21144
|
+
UpsertAuthEmailTemplateRequestFromJSON,
|
|
21145
|
+
UpsertAuthEmailTemplateRequestFromJSONTyped,
|
|
21146
|
+
UpsertAuthEmailTemplateRequestToJSON,
|
|
21147
|
+
UpsertAuthEmailTemplateRequestToJSONTyped,
|
|
19124
21148
|
UpsertSmsConfigRequestFromJSON,
|
|
19125
21149
|
UpsertSmsConfigRequestFromJSONTyped,
|
|
19126
21150
|
UpsertSmsConfigRequestToJSON,
|
|
@@ -19428,6 +21452,25 @@ export {
|
|
|
19428
21452
|
WithdrawSubscriberConsentRequestFromJSONTyped,
|
|
19429
21453
|
WithdrawSubscriberConsentRequestToJSON,
|
|
19430
21454
|
WithdrawSubscriberConsentRequestToJSONTyped,
|
|
21455
|
+
WorkflowExecutionFromJSON,
|
|
21456
|
+
WorkflowExecutionFromJSONTyped,
|
|
21457
|
+
WorkflowExecutionStatus,
|
|
21458
|
+
WorkflowExecutionStatusFromJSON,
|
|
21459
|
+
WorkflowExecutionStatusFromJSONTyped,
|
|
21460
|
+
WorkflowExecutionStatusToJSON,
|
|
21461
|
+
WorkflowExecutionStatusToJSONTyped,
|
|
21462
|
+
WorkflowExecutionToJSON,
|
|
21463
|
+
WorkflowExecutionToJSONTyped,
|
|
21464
|
+
WorkflowStepExecutionFromJSON,
|
|
21465
|
+
WorkflowStepExecutionFromJSONTyped,
|
|
21466
|
+
WorkflowStepExecutionStatus,
|
|
21467
|
+
WorkflowStepExecutionStatusFromJSON,
|
|
21468
|
+
WorkflowStepExecutionStatusFromJSONTyped,
|
|
21469
|
+
WorkflowStepExecutionStatusToJSON,
|
|
21470
|
+
WorkflowStepExecutionStatusToJSONTyped,
|
|
21471
|
+
WorkflowStepExecutionStepTypeEnum,
|
|
21472
|
+
WorkflowStepExecutionToJSON,
|
|
21473
|
+
WorkflowStepExecutionToJSONTyped,
|
|
19431
21474
|
Zyphr,
|
|
19432
21475
|
ZyphrAuthenticationError,
|
|
19433
21476
|
ZyphrError,
|
|
@@ -19440,6 +21483,22 @@ export {
|
|
|
19440
21483
|
instanceOfApiError,
|
|
19441
21484
|
instanceOfApiErrorError,
|
|
19442
21485
|
instanceOfApiErrorMeta,
|
|
21486
|
+
instanceOfAuthEmailTemplate,
|
|
21487
|
+
instanceOfAuthEmailTemplateDefault,
|
|
21488
|
+
instanceOfAuthEmailTemplateDefaultResponse,
|
|
21489
|
+
instanceOfAuthEmailTemplateDeleteResponse,
|
|
21490
|
+
instanceOfAuthEmailTemplateDeleteResponseData,
|
|
21491
|
+
instanceOfAuthEmailTemplateListResponse,
|
|
21492
|
+
instanceOfAuthEmailTemplatePreviewRequest,
|
|
21493
|
+
instanceOfAuthEmailTemplatePreviewResponse,
|
|
21494
|
+
instanceOfAuthEmailTemplatePreviewResult,
|
|
21495
|
+
instanceOfAuthEmailTemplateResponse,
|
|
21496
|
+
instanceOfAuthEmailTemplateTestRequest,
|
|
21497
|
+
instanceOfAuthEmailTemplateTestResponse,
|
|
21498
|
+
instanceOfAuthEmailTemplateTestResult,
|
|
21499
|
+
instanceOfAuthEmailTemplateVersion,
|
|
21500
|
+
instanceOfAuthEmailTemplateVersionsResponse,
|
|
21501
|
+
instanceOfAuthEmailType,
|
|
19443
21502
|
instanceOfAuthLoginResponse,
|
|
19444
21503
|
instanceOfAuthLoginResult,
|
|
19445
21504
|
instanceOfAuthLoginResultMfaChallenge,
|
|
@@ -19452,6 +21511,8 @@ export {
|
|
|
19452
21511
|
instanceOfAuthUserResponseData,
|
|
19453
21512
|
instanceOfBatchPublishWaaSEvents201Response,
|
|
19454
21513
|
instanceOfBulkRetryWebhookDeliveriesRequest,
|
|
21514
|
+
instanceOfBulkUpsertAuthEmailTemplatesRequest,
|
|
21515
|
+
instanceOfBulkUpsertAuthEmailTemplatesResponse,
|
|
19455
21516
|
instanceOfCategory,
|
|
19456
21517
|
instanceOfCategoryListResponse,
|
|
19457
21518
|
instanceOfCategoryResponse,
|
|
@@ -19501,6 +21562,11 @@ export {
|
|
|
19501
21562
|
instanceOfEmailTrackingResponse,
|
|
19502
21563
|
instanceOfEndUserDeleteResponse,
|
|
19503
21564
|
instanceOfEndUserDeleteResponseData,
|
|
21565
|
+
instanceOfExecutionCancelResponse,
|
|
21566
|
+
instanceOfExecutionCancelResponseData,
|
|
21567
|
+
instanceOfExecutionResponse,
|
|
21568
|
+
instanceOfExecutionRetryResponse,
|
|
21569
|
+
instanceOfExecutionRetryResponseData,
|
|
19504
21570
|
instanceOfForgotPasswordRequest,
|
|
19505
21571
|
instanceOfGenerateSubscriberToken200Response,
|
|
19506
21572
|
instanceOfGenerateSubscriberToken200ResponseData,
|
|
@@ -19632,6 +21698,9 @@ export {
|
|
|
19632
21698
|
instanceOfSendPushToTopicData,
|
|
19633
21699
|
instanceOfSendPushToTopicRequest,
|
|
19634
21700
|
instanceOfSendPushToTopicResponse,
|
|
21701
|
+
instanceOfSendSlackMessageRequest,
|
|
21702
|
+
instanceOfSendSlackMessageResponse,
|
|
21703
|
+
instanceOfSendSlackMessageResult,
|
|
19635
21704
|
instanceOfSendSmsData,
|
|
19636
21705
|
instanceOfSendSmsRequest,
|
|
19637
21706
|
instanceOfSendSmsResponse,
|
|
@@ -19644,6 +21713,12 @@ export {
|
|
|
19644
21713
|
instanceOfSessionListResponseDataSessionInfo,
|
|
19645
21714
|
instanceOfSetPreferencesRequest,
|
|
19646
21715
|
instanceOfSetPreferencesRequestPreferencesInner,
|
|
21716
|
+
instanceOfSlackMessage,
|
|
21717
|
+
instanceOfSlackMessageListResponse,
|
|
21718
|
+
instanceOfSlackMessageListResponseMeta,
|
|
21719
|
+
instanceOfSlackMessageResponse,
|
|
21720
|
+
instanceOfSlackMessageStatus,
|
|
21721
|
+
instanceOfSlackMessageSummary,
|
|
19647
21722
|
instanceOfSmsBatchResultMessage,
|
|
19648
21723
|
instanceOfSmsBatchResultSummary,
|
|
19649
21724
|
instanceOfSmsConfig,
|
|
@@ -19661,7 +21736,6 @@ export {
|
|
|
19661
21736
|
instanceOfSubscriberPreference,
|
|
19662
21737
|
instanceOfSubscriberResponse,
|
|
19663
21738
|
instanceOfSuccessResult,
|
|
19664
|
-
instanceOfSuccessResultData,
|
|
19665
21739
|
instanceOfTemplate,
|
|
19666
21740
|
instanceOfTemplateListResponse,
|
|
19667
21741
|
instanceOfTemplateRenderResponse,
|
|
@@ -19699,6 +21773,7 @@ export {
|
|
|
19699
21773
|
instanceOfUpdateWaaSEndpointRequest,
|
|
19700
21774
|
instanceOfUpdateWaaSEventTypeRequest,
|
|
19701
21775
|
instanceOfUpdateWebhookRequest,
|
|
21776
|
+
instanceOfUpsertAuthEmailTemplateRequest,
|
|
19702
21777
|
instanceOfUpsertSmsConfigRequest,
|
|
19703
21778
|
instanceOfUserDevicesDeleteResponse,
|
|
19704
21779
|
instanceOfUserDevicesDeleteResponseData,
|
|
@@ -19771,6 +21846,10 @@ export {
|
|
|
19771
21846
|
instanceOfWebhookVersionsResponse,
|
|
19772
21847
|
instanceOfWebhookVersionsResponseData,
|
|
19773
21848
|
instanceOfWithdrawSubscriberConsentRequest,
|
|
21849
|
+
instanceOfWorkflowExecution,
|
|
21850
|
+
instanceOfWorkflowExecutionStatus,
|
|
21851
|
+
instanceOfWorkflowStepExecution,
|
|
21852
|
+
instanceOfWorkflowStepExecutionStatus,
|
|
19774
21853
|
mapValues,
|
|
19775
21854
|
parseErrorResponse,
|
|
19776
21855
|
querystring
|