@zyphr-dev/node-sdk 0.1.39 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.cjs +2315 -1220
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +1724 -622
  4. package/dist/index.d.ts +1724 -622
  5. package/dist/index.js +2195 -1203
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/.openapi-generator/FILES +24 -4
  9. package/src/src/apis/AuthRegistrationApi.ts +4 -4
  10. package/src/src/apis/WorkflowsApi.ts +912 -0
  11. package/src/src/apis/index.ts +1 -1
  12. package/src/src/models/AddWorkflowStep201Response.ts +88 -0
  13. package/src/src/models/AddWorkflowStepRequest.ts +136 -0
  14. package/src/src/models/CreateWorkflow201Response.ts +88 -0
  15. package/src/src/models/CreateWorkflowRequest.ts +98 -0
  16. package/src/src/models/DeleteWorkflow200Response.ts +88 -0
  17. package/src/src/models/{TopicDeleteResponseData.ts → DeleteWorkflow200ResponseData.ts} +12 -12
  18. package/src/src/models/DeleteWorkflowStep200Response.ts +88 -0
  19. package/src/src/models/DeleteWorkflowStep200ResponseData.ts +81 -0
  20. package/src/src/models/ListWorkflowExecutions200Response.ts +88 -0
  21. package/src/src/models/{SmsListResponseMeta.ts → ListWorkflowExecutions200ResponseMeta.ts} +15 -15
  22. package/src/src/models/ListWorkflows200Response.ts +88 -0
  23. package/src/src/models/ListWorkflows200ResponseMeta.ts +121 -0
  24. package/src/src/models/ReorderWorkflowStepsRequest.ts +66 -0
  25. package/src/src/models/SignInWithGameCenterRequest.ts +1 -1
  26. package/src/src/models/SmsListResponse.ts +10 -10
  27. package/src/src/models/TopicDeleteResponse.ts +10 -10
  28. package/src/src/models/TriggerWorkflow202Response.ts +88 -0
  29. package/src/src/models/TriggerWorkflow202ResponseData.ts +81 -0
  30. package/src/src/models/TriggerWorkflowRequest.ts +90 -0
  31. package/src/src/models/UpdateWorkflowRequest.ts +89 -0
  32. package/src/src/models/UpdateWorkflowStatusRequest.ts +76 -0
  33. package/src/src/models/UpdateWorkflowStepRequest.ts +73 -0
  34. package/src/src/models/Workflow.ts +187 -0
  35. package/src/src/models/WorkflowStatus.ts +55 -0
  36. package/src/src/models/WorkflowStep.ts +176 -0
  37. package/src/src/models/WorkflowStepType.ts +60 -0
  38. package/src/src/models/index.ts +23 -3
  39. package/src/src/apis/MuseApi.ts +0 -531
  40. package/src/src/models/V1MuseSubjectsSuggestPostRequest.ts +0 -105
package/dist/index.cjs CHANGED
@@ -40,6 +40,15 @@ __export(index_exports, {
40
40
  AddTopicSubscribersRequestFromJSONTyped: () => AddTopicSubscribersRequestFromJSONTyped,
41
41
  AddTopicSubscribersRequestToJSON: () => AddTopicSubscribersRequestToJSON,
42
42
  AddTopicSubscribersRequestToJSONTyped: () => AddTopicSubscribersRequestToJSONTyped,
43
+ AddWorkflowStep201ResponseFromJSON: () => AddWorkflowStep201ResponseFromJSON,
44
+ AddWorkflowStep201ResponseFromJSONTyped: () => AddWorkflowStep201ResponseFromJSONTyped,
45
+ AddWorkflowStep201ResponseToJSON: () => AddWorkflowStep201ResponseToJSON,
46
+ AddWorkflowStep201ResponseToJSONTyped: () => AddWorkflowStep201ResponseToJSONTyped,
47
+ AddWorkflowStepRequestBranchPathEnum: () => AddWorkflowStepRequestBranchPathEnum,
48
+ AddWorkflowStepRequestFromJSON: () => AddWorkflowStepRequestFromJSON,
49
+ AddWorkflowStepRequestFromJSONTyped: () => AddWorkflowStepRequestFromJSONTyped,
50
+ AddWorkflowStepRequestToJSON: () => AddWorkflowStepRequestToJSON,
51
+ AddWorkflowStepRequestToJSONTyped: () => AddWorkflowStepRequestToJSONTyped,
43
52
  ApiErrorErrorFromJSON: () => ApiErrorErrorFromJSON,
44
53
  ApiErrorErrorFromJSONTyped: () => ApiErrorErrorFromJSONTyped,
45
54
  ApiErrorErrorToJSON: () => ApiErrorErrorToJSON,
@@ -331,6 +340,14 @@ __export(index_exports, {
331
340
  CreateWebhookRequestFromJSONTyped: () => CreateWebhookRequestFromJSONTyped,
332
341
  CreateWebhookRequestToJSON: () => CreateWebhookRequestToJSON,
333
342
  CreateWebhookRequestToJSONTyped: () => CreateWebhookRequestToJSONTyped,
343
+ CreateWorkflow201ResponseFromJSON: () => CreateWorkflow201ResponseFromJSON,
344
+ CreateWorkflow201ResponseFromJSONTyped: () => CreateWorkflow201ResponseFromJSONTyped,
345
+ CreateWorkflow201ResponseToJSON: () => CreateWorkflow201ResponseToJSON,
346
+ CreateWorkflow201ResponseToJSONTyped: () => CreateWorkflow201ResponseToJSONTyped,
347
+ CreateWorkflowRequestFromJSON: () => CreateWorkflowRequestFromJSON,
348
+ CreateWorkflowRequestFromJSONTyped: () => CreateWorkflowRequestFromJSONTyped,
349
+ CreateWorkflowRequestToJSON: () => CreateWorkflowRequestToJSON,
350
+ CreateWorkflowRequestToJSONTyped: () => CreateWorkflowRequestToJSONTyped,
334
351
  DefaultConfig: () => DefaultConfig,
335
352
  DeleteDomainResponseDataFromJSON: () => DeleteDomainResponseDataFromJSON,
336
353
  DeleteDomainResponseDataFromJSONTyped: () => DeleteDomainResponseDataFromJSONTyped,
@@ -348,6 +365,22 @@ __export(index_exports, {
348
365
  DeleteResultFromJSONTyped: () => DeleteResultFromJSONTyped,
349
366
  DeleteResultToJSON: () => DeleteResultToJSON,
350
367
  DeleteResultToJSONTyped: () => DeleteResultToJSONTyped,
368
+ DeleteWorkflow200ResponseDataFromJSON: () => DeleteWorkflow200ResponseDataFromJSON,
369
+ DeleteWorkflow200ResponseDataFromJSONTyped: () => DeleteWorkflow200ResponseDataFromJSONTyped,
370
+ DeleteWorkflow200ResponseDataToJSON: () => DeleteWorkflow200ResponseDataToJSON,
371
+ DeleteWorkflow200ResponseDataToJSONTyped: () => DeleteWorkflow200ResponseDataToJSONTyped,
372
+ DeleteWorkflow200ResponseFromJSON: () => DeleteWorkflow200ResponseFromJSON,
373
+ DeleteWorkflow200ResponseFromJSONTyped: () => DeleteWorkflow200ResponseFromJSONTyped,
374
+ DeleteWorkflow200ResponseToJSON: () => DeleteWorkflow200ResponseToJSON,
375
+ DeleteWorkflow200ResponseToJSONTyped: () => DeleteWorkflow200ResponseToJSONTyped,
376
+ DeleteWorkflowStep200ResponseDataFromJSON: () => DeleteWorkflowStep200ResponseDataFromJSON,
377
+ DeleteWorkflowStep200ResponseDataFromJSONTyped: () => DeleteWorkflowStep200ResponseDataFromJSONTyped,
378
+ DeleteWorkflowStep200ResponseDataToJSON: () => DeleteWorkflowStep200ResponseDataToJSON,
379
+ DeleteWorkflowStep200ResponseDataToJSONTyped: () => DeleteWorkflowStep200ResponseDataToJSONTyped,
380
+ DeleteWorkflowStep200ResponseFromJSON: () => DeleteWorkflowStep200ResponseFromJSON,
381
+ DeleteWorkflowStep200ResponseFromJSONTyped: () => DeleteWorkflowStep200ResponseFromJSONTyped,
382
+ DeleteWorkflowStep200ResponseToJSON: () => DeleteWorkflowStep200ResponseToJSON,
383
+ DeleteWorkflowStep200ResponseToJSONTyped: () => DeleteWorkflowStep200ResponseToJSONTyped,
351
384
  DeviceFromJSON: () => DeviceFromJSON,
352
385
  DeviceFromJSONTyped: () => DeviceFromJSONTyped,
353
386
  DeviceListResponseFromJSON: () => DeviceListResponseFromJSON,
@@ -614,6 +647,22 @@ __export(index_exports, {
614
647
  ListWaaSEventTypes200ResponseToJSONTyped: () => ListWaaSEventTypes200ResponseToJSONTyped,
615
648
  ListWaaSEventTypesStatusEnum: () => ListWaaSEventTypesStatusEnum,
616
649
  ListWebhookDeliveriesStatusEnum: () => ListWebhookDeliveriesStatusEnum,
650
+ ListWorkflowExecutions200ResponseFromJSON: () => ListWorkflowExecutions200ResponseFromJSON,
651
+ ListWorkflowExecutions200ResponseFromJSONTyped: () => ListWorkflowExecutions200ResponseFromJSONTyped,
652
+ ListWorkflowExecutions200ResponseMetaFromJSON: () => ListWorkflowExecutions200ResponseMetaFromJSON,
653
+ ListWorkflowExecutions200ResponseMetaFromJSONTyped: () => ListWorkflowExecutions200ResponseMetaFromJSONTyped,
654
+ ListWorkflowExecutions200ResponseMetaToJSON: () => ListWorkflowExecutions200ResponseMetaToJSON,
655
+ ListWorkflowExecutions200ResponseMetaToJSONTyped: () => ListWorkflowExecutions200ResponseMetaToJSONTyped,
656
+ ListWorkflowExecutions200ResponseToJSON: () => ListWorkflowExecutions200ResponseToJSON,
657
+ ListWorkflowExecutions200ResponseToJSONTyped: () => ListWorkflowExecutions200ResponseToJSONTyped,
658
+ ListWorkflows200ResponseFromJSON: () => ListWorkflows200ResponseFromJSON,
659
+ ListWorkflows200ResponseFromJSONTyped: () => ListWorkflows200ResponseFromJSONTyped,
660
+ ListWorkflows200ResponseMetaFromJSON: () => ListWorkflows200ResponseMetaFromJSON,
661
+ ListWorkflows200ResponseMetaFromJSONTyped: () => ListWorkflows200ResponseMetaFromJSONTyped,
662
+ ListWorkflows200ResponseMetaToJSON: () => ListWorkflows200ResponseMetaToJSON,
663
+ ListWorkflows200ResponseMetaToJSONTyped: () => ListWorkflows200ResponseMetaToJSONTyped,
664
+ ListWorkflows200ResponseToJSON: () => ListWorkflows200ResponseToJSON,
665
+ ListWorkflows200ResponseToJSONTyped: () => ListWorkflows200ResponseToJSONTyped,
617
666
  LoginRequestFromJSON: () => LoginRequestFromJSON,
618
667
  LoginRequestFromJSONTyped: () => LoginRequestFromJSONTyped,
619
668
  LoginRequestToJSON: () => LoginRequestToJSON,
@@ -727,7 +776,6 @@ __export(index_exports, {
727
776
  MfaVerifyRequestFromJSONTyped: () => MfaVerifyRequestFromJSONTyped,
728
777
  MfaVerifyRequestToJSON: () => MfaVerifyRequestToJSON,
729
778
  MfaVerifyRequestToJSONTyped: () => MfaVerifyRequestToJSONTyped,
730
- MuseApi: () => MuseApi,
731
779
  OAuthAuthorizationUrlResponseDataFromJSON: () => OAuthAuthorizationUrlResponseDataFromJSON,
732
780
  OAuthAuthorizationUrlResponseDataFromJSONTyped: () => OAuthAuthorizationUrlResponseDataFromJSONTyped,
733
781
  OAuthAuthorizationUrlResponseDataToJSON: () => OAuthAuthorizationUrlResponseDataToJSON,
@@ -1001,6 +1049,10 @@ __export(index_exports, {
1001
1049
  RenderTemplateRequestFromJSONTyped: () => RenderTemplateRequestFromJSONTyped,
1002
1050
  RenderTemplateRequestToJSON: () => RenderTemplateRequestToJSON,
1003
1051
  RenderTemplateRequestToJSONTyped: () => RenderTemplateRequestToJSONTyped,
1052
+ ReorderWorkflowStepsRequestFromJSON: () => ReorderWorkflowStepsRequestFromJSON,
1053
+ ReorderWorkflowStepsRequestFromJSONTyped: () => ReorderWorkflowStepsRequestFromJSONTyped,
1054
+ ReorderWorkflowStepsRequestToJSON: () => ReorderWorkflowStepsRequestToJSON,
1055
+ ReorderWorkflowStepsRequestToJSONTyped: () => ReorderWorkflowStepsRequestToJSONTyped,
1004
1056
  ReplayWebhookEventsRequestFromJSON: () => ReplayWebhookEventsRequestFromJSON,
1005
1057
  ReplayWebhookEventsRequestFromJSONTyped: () => ReplayWebhookEventsRequestFromJSONTyped,
1006
1058
  ReplayWebhookEventsRequestToJSON: () => ReplayWebhookEventsRequestToJSON,
@@ -1288,10 +1340,6 @@ __export(index_exports, {
1288
1340
  SmsDetailResponseToJSONTyped: () => SmsDetailResponseToJSONTyped,
1289
1341
  SmsListResponseFromJSON: () => SmsListResponseFromJSON,
1290
1342
  SmsListResponseFromJSONTyped: () => SmsListResponseFromJSONTyped,
1291
- SmsListResponseMetaFromJSON: () => SmsListResponseMetaFromJSON,
1292
- SmsListResponseMetaFromJSONTyped: () => SmsListResponseMetaFromJSONTyped,
1293
- SmsListResponseMetaToJSON: () => SmsListResponseMetaToJSON,
1294
- SmsListResponseMetaToJSONTyped: () => SmsListResponseMetaToJSONTyped,
1295
1343
  SmsListResponseToJSON: () => SmsListResponseToJSON,
1296
1344
  SmsListResponseToJSONTyped: () => SmsListResponseToJSONTyped,
1297
1345
  SmsMessageDetailFromJSON: () => SmsMessageDetailFromJSON,
@@ -1378,10 +1426,6 @@ __export(index_exports, {
1378
1426
  TestWebhookTransformRequestToJSON: () => TestWebhookTransformRequestToJSON,
1379
1427
  TestWebhookTransformRequestToJSONTyped: () => TestWebhookTransformRequestToJSONTyped,
1380
1428
  TextApiResponse: () => TextApiResponse,
1381
- TopicDeleteResponseDataFromJSON: () => TopicDeleteResponseDataFromJSON,
1382
- TopicDeleteResponseDataFromJSONTyped: () => TopicDeleteResponseDataFromJSONTyped,
1383
- TopicDeleteResponseDataToJSON: () => TopicDeleteResponseDataToJSON,
1384
- TopicDeleteResponseDataToJSONTyped: () => TopicDeleteResponseDataToJSONTyped,
1385
1429
  TopicDeleteResponseFromJSON: () => TopicDeleteResponseFromJSON,
1386
1430
  TopicDeleteResponseFromJSONTyped: () => TopicDeleteResponseFromJSONTyped,
1387
1431
  TopicDeleteResponseToJSON: () => TopicDeleteResponseToJSON,
@@ -1435,6 +1479,18 @@ __export(index_exports, {
1435
1479
  TopicToJSON: () => TopicToJSON,
1436
1480
  TopicToJSONTyped: () => TopicToJSONTyped,
1437
1481
  TopicsApi: () => TopicsApi,
1482
+ TriggerWorkflow202ResponseDataFromJSON: () => TriggerWorkflow202ResponseDataFromJSON,
1483
+ TriggerWorkflow202ResponseDataFromJSONTyped: () => TriggerWorkflow202ResponseDataFromJSONTyped,
1484
+ TriggerWorkflow202ResponseDataToJSON: () => TriggerWorkflow202ResponseDataToJSON,
1485
+ TriggerWorkflow202ResponseDataToJSONTyped: () => TriggerWorkflow202ResponseDataToJSONTyped,
1486
+ TriggerWorkflow202ResponseFromJSON: () => TriggerWorkflow202ResponseFromJSON,
1487
+ TriggerWorkflow202ResponseFromJSONTyped: () => TriggerWorkflow202ResponseFromJSONTyped,
1488
+ TriggerWorkflow202ResponseToJSON: () => TriggerWorkflow202ResponseToJSON,
1489
+ TriggerWorkflow202ResponseToJSONTyped: () => TriggerWorkflow202ResponseToJSONTyped,
1490
+ TriggerWorkflowRequestFromJSON: () => TriggerWorkflowRequestFromJSON,
1491
+ TriggerWorkflowRequestFromJSONTyped: () => TriggerWorkflowRequestFromJSONTyped,
1492
+ TriggerWorkflowRequestToJSON: () => TriggerWorkflowRequestToJSON,
1493
+ TriggerWorkflowRequestToJSONTyped: () => TriggerWorkflowRequestToJSONTyped,
1438
1494
  UnreadCountDataFromJSON: () => UnreadCountDataFromJSON,
1439
1495
  UnreadCountDataFromJSONTyped: () => UnreadCountDataFromJSONTyped,
1440
1496
  UnreadCountDataToJSON: () => UnreadCountDataToJSON,
@@ -1521,6 +1577,18 @@ __export(index_exports, {
1521
1577
  UpdateWebhookRequestFromJSONTyped: () => UpdateWebhookRequestFromJSONTyped,
1522
1578
  UpdateWebhookRequestToJSON: () => UpdateWebhookRequestToJSON,
1523
1579
  UpdateWebhookRequestToJSONTyped: () => UpdateWebhookRequestToJSONTyped,
1580
+ UpdateWorkflowRequestFromJSON: () => UpdateWorkflowRequestFromJSON,
1581
+ UpdateWorkflowRequestFromJSONTyped: () => UpdateWorkflowRequestFromJSONTyped,
1582
+ UpdateWorkflowRequestToJSON: () => UpdateWorkflowRequestToJSON,
1583
+ UpdateWorkflowRequestToJSONTyped: () => UpdateWorkflowRequestToJSONTyped,
1584
+ UpdateWorkflowStatusRequestFromJSON: () => UpdateWorkflowStatusRequestFromJSON,
1585
+ UpdateWorkflowStatusRequestFromJSONTyped: () => UpdateWorkflowStatusRequestFromJSONTyped,
1586
+ UpdateWorkflowStatusRequestToJSON: () => UpdateWorkflowStatusRequestToJSON,
1587
+ UpdateWorkflowStatusRequestToJSONTyped: () => UpdateWorkflowStatusRequestToJSONTyped,
1588
+ UpdateWorkflowStepRequestFromJSON: () => UpdateWorkflowStepRequestFromJSON,
1589
+ UpdateWorkflowStepRequestFromJSONTyped: () => UpdateWorkflowStepRequestFromJSONTyped,
1590
+ UpdateWorkflowStepRequestToJSON: () => UpdateWorkflowStepRequestToJSON,
1591
+ UpdateWorkflowStepRequestToJSONTyped: () => UpdateWorkflowStepRequestToJSONTyped,
1524
1592
  UpsertAuthEmailTemplateRequestEditorTypeEnum: () => UpsertAuthEmailTemplateRequestEditorTypeEnum,
1525
1593
  UpsertAuthEmailTemplateRequestFromJSON: () => UpsertAuthEmailTemplateRequestFromJSON,
1526
1594
  UpsertAuthEmailTemplateRequestFromJSONTyped: () => UpsertAuthEmailTemplateRequestFromJSONTyped,
@@ -1539,11 +1607,6 @@ __export(index_exports, {
1539
1607
  UserDevicesDeleteResponseToJSON: () => UserDevicesDeleteResponseToJSON,
1540
1608
  UserDevicesDeleteResponseToJSONTyped: () => UserDevicesDeleteResponseToJSONTyped,
1541
1609
  UtilityApi: () => UtilityApi,
1542
- V1MuseSubjectsSuggestPostRequestChannelEnum: () => V1MuseSubjectsSuggestPostRequestChannelEnum,
1543
- V1MuseSubjectsSuggestPostRequestFromJSON: () => V1MuseSubjectsSuggestPostRequestFromJSON,
1544
- V1MuseSubjectsSuggestPostRequestFromJSONTyped: () => V1MuseSubjectsSuggestPostRequestFromJSONTyped,
1545
- V1MuseSubjectsSuggestPostRequestToJSON: () => V1MuseSubjectsSuggestPostRequestToJSON,
1546
- V1MuseSubjectsSuggestPostRequestToJSONTyped: () => V1MuseSubjectsSuggestPostRequestToJSONTyped,
1547
1610
  ValidateResetTokenRequestFromJSON: () => ValidateResetTokenRequestFromJSON,
1548
1611
  ValidateResetTokenRequestFromJSONTyped: () => ValidateResetTokenRequestFromJSONTyped,
1549
1612
  ValidateResetTokenRequestToJSON: () => ValidateResetTokenRequestToJSON,
@@ -1874,6 +1937,14 @@ __export(index_exports, {
1874
1937
  WorkflowExecutionStatusToJSONTyped: () => WorkflowExecutionStatusToJSONTyped,
1875
1938
  WorkflowExecutionToJSON: () => WorkflowExecutionToJSON,
1876
1939
  WorkflowExecutionToJSONTyped: () => WorkflowExecutionToJSONTyped,
1940
+ WorkflowFromJSON: () => WorkflowFromJSON,
1941
+ WorkflowFromJSONTyped: () => WorkflowFromJSONTyped,
1942
+ WorkflowStatus: () => WorkflowStatus,
1943
+ WorkflowStatusFromJSON: () => WorkflowStatusFromJSON,
1944
+ WorkflowStatusFromJSONTyped: () => WorkflowStatusFromJSONTyped,
1945
+ WorkflowStatusToJSON: () => WorkflowStatusToJSON,
1946
+ WorkflowStatusToJSONTyped: () => WorkflowStatusToJSONTyped,
1947
+ WorkflowStepBranchPathEnum: () => WorkflowStepBranchPathEnum,
1877
1948
  WorkflowStepExecutionFromJSON: () => WorkflowStepExecutionFromJSON,
1878
1949
  WorkflowStepExecutionFromJSONTyped: () => WorkflowStepExecutionFromJSONTyped,
1879
1950
  WorkflowStepExecutionStatus: () => WorkflowStepExecutionStatus,
@@ -1884,6 +1955,18 @@ __export(index_exports, {
1884
1955
  WorkflowStepExecutionStepTypeEnum: () => WorkflowStepExecutionStepTypeEnum,
1885
1956
  WorkflowStepExecutionToJSON: () => WorkflowStepExecutionToJSON,
1886
1957
  WorkflowStepExecutionToJSONTyped: () => WorkflowStepExecutionToJSONTyped,
1958
+ WorkflowStepFromJSON: () => WorkflowStepFromJSON,
1959
+ WorkflowStepFromJSONTyped: () => WorkflowStepFromJSONTyped,
1960
+ WorkflowStepToJSON: () => WorkflowStepToJSON,
1961
+ WorkflowStepToJSONTyped: () => WorkflowStepToJSONTyped,
1962
+ WorkflowStepType: () => WorkflowStepType,
1963
+ WorkflowStepTypeFromJSON: () => WorkflowStepTypeFromJSON,
1964
+ WorkflowStepTypeFromJSONTyped: () => WorkflowStepTypeFromJSONTyped,
1965
+ WorkflowStepTypeToJSON: () => WorkflowStepTypeToJSON,
1966
+ WorkflowStepTypeToJSONTyped: () => WorkflowStepTypeToJSONTyped,
1967
+ WorkflowToJSON: () => WorkflowToJSON,
1968
+ WorkflowToJSONTyped: () => WorkflowToJSONTyped,
1969
+ WorkflowsApi: () => WorkflowsApi,
1887
1970
  Zyphr: () => Zyphr,
1888
1971
  ZyphrAuthenticationError: () => ZyphrAuthenticationError,
1889
1972
  ZyphrClient: () => ZyphrClient,
@@ -1901,6 +1984,8 @@ __export(index_exports, {
1901
1984
  instanceOfAddDomainRequest: () => instanceOfAddDomainRequest,
1902
1985
  instanceOfAddOrganizationMemberRequest: () => instanceOfAddOrganizationMemberRequest,
1903
1986
  instanceOfAddTopicSubscribersRequest: () => instanceOfAddTopicSubscribersRequest,
1987
+ instanceOfAddWorkflowStep201Response: () => instanceOfAddWorkflowStep201Response,
1988
+ instanceOfAddWorkflowStepRequest: () => instanceOfAddWorkflowStepRequest,
1904
1989
  instanceOfApiError: () => instanceOfApiError,
1905
1990
  instanceOfApiErrorError: () => instanceOfApiErrorError,
1906
1991
  instanceOfApiErrorMeta: () => instanceOfApiErrorMeta,
@@ -1966,10 +2051,16 @@ __export(index_exports, {
1966
2051
  instanceOfCreateWaaSEventType201Response: () => instanceOfCreateWaaSEventType201Response,
1967
2052
  instanceOfCreateWaaSEventTypeRequest: () => instanceOfCreateWaaSEventTypeRequest,
1968
2053
  instanceOfCreateWebhookRequest: () => instanceOfCreateWebhookRequest,
2054
+ instanceOfCreateWorkflow201Response: () => instanceOfCreateWorkflow201Response,
2055
+ instanceOfCreateWorkflowRequest: () => instanceOfCreateWorkflowRequest,
1969
2056
  instanceOfDeleteDomainResponse: () => instanceOfDeleteDomainResponse,
1970
2057
  instanceOfDeleteDomainResponseData: () => instanceOfDeleteDomainResponseData,
1971
2058
  instanceOfDeleteResult: () => instanceOfDeleteResult,
1972
2059
  instanceOfDeleteResultData: () => instanceOfDeleteResultData,
2060
+ instanceOfDeleteWorkflow200Response: () => instanceOfDeleteWorkflow200Response,
2061
+ instanceOfDeleteWorkflow200ResponseData: () => instanceOfDeleteWorkflow200ResponseData,
2062
+ instanceOfDeleteWorkflowStep200Response: () => instanceOfDeleteWorkflowStep200Response,
2063
+ instanceOfDeleteWorkflowStep200ResponseData: () => instanceOfDeleteWorkflowStep200ResponseData,
1973
2064
  instanceOfDevice: () => instanceOfDevice,
1974
2065
  instanceOfDeviceListResponse: () => instanceOfDeviceListResponse,
1975
2066
  instanceOfDevicePushTopic: () => instanceOfDevicePushTopic,
@@ -2027,6 +2118,10 @@ __export(index_exports, {
2027
2118
  instanceOfListWaaSEndpointDeliveries200Response: () => instanceOfListWaaSEndpointDeliveries200Response,
2028
2119
  instanceOfListWaaSEndpoints200Response: () => instanceOfListWaaSEndpoints200Response,
2029
2120
  instanceOfListWaaSEventTypes200Response: () => instanceOfListWaaSEventTypes200Response,
2121
+ instanceOfListWorkflowExecutions200Response: () => instanceOfListWorkflowExecutions200Response,
2122
+ instanceOfListWorkflowExecutions200ResponseMeta: () => instanceOfListWorkflowExecutions200ResponseMeta,
2123
+ instanceOfListWorkflows200Response: () => instanceOfListWorkflows200Response,
2124
+ instanceOfListWorkflows200ResponseMeta: () => instanceOfListWorkflows200ResponseMeta,
2030
2125
  instanceOfLoginRequest: () => instanceOfLoginRequest,
2031
2126
  instanceOfMagicLinkSendRequest: () => instanceOfMagicLinkSendRequest,
2032
2127
  instanceOfMagicLinkVerifyRequest: () => instanceOfMagicLinkVerifyRequest,
@@ -2121,6 +2216,7 @@ __export(index_exports, {
2121
2216
  instanceOfRemoveTopicSubscribersRequest: () => instanceOfRemoveTopicSubscribersRequest,
2122
2217
  instanceOfRenameWebAuthnCredentialRequest: () => instanceOfRenameWebAuthnCredentialRequest,
2123
2218
  instanceOfRenderTemplateRequest: () => instanceOfRenderTemplateRequest,
2219
+ instanceOfReorderWorkflowStepsRequest: () => instanceOfReorderWorkflowStepsRequest,
2124
2220
  instanceOfReplayWebhookEventsRequest: () => instanceOfReplayWebhookEventsRequest,
2125
2221
  instanceOfRequestMeta: () => instanceOfRequestMeta,
2126
2222
  instanceOfResetPasswordRequest: () => instanceOfResetPasswordRequest,
@@ -2191,7 +2287,6 @@ __export(index_exports, {
2191
2287
  instanceOfSmsConfigResponse: () => instanceOfSmsConfigResponse,
2192
2288
  instanceOfSmsDetailResponse: () => instanceOfSmsDetailResponse,
2193
2289
  instanceOfSmsListResponse: () => instanceOfSmsListResponse,
2194
- instanceOfSmsListResponseMeta: () => instanceOfSmsListResponseMeta,
2195
2290
  instanceOfSmsMessage: () => instanceOfSmsMessage,
2196
2291
  instanceOfSmsMessageDetail: () => instanceOfSmsMessageDetail,
2197
2292
  instanceOfSubscribePushTopicRequest: () => instanceOfSubscribePushTopicRequest,
@@ -2213,7 +2308,6 @@ __export(index_exports, {
2213
2308
  instanceOfTestWebhookTransformRequest: () => instanceOfTestWebhookTransformRequest,
2214
2309
  instanceOfTopic: () => instanceOfTopic,
2215
2310
  instanceOfTopicDeleteResponse: () => instanceOfTopicDeleteResponse,
2216
- instanceOfTopicDeleteResponseData: () => instanceOfTopicDeleteResponseData,
2217
2311
  instanceOfTopicListResponse: () => instanceOfTopicListResponse,
2218
2312
  instanceOfTopicResponse: () => instanceOfTopicResponse,
2219
2313
  instanceOfTopicStatsData: () => instanceOfTopicStatsData,
@@ -2225,6 +2319,9 @@ __export(index_exports, {
2225
2319
  instanceOfTopicSubscribersAddResult: () => instanceOfTopicSubscribersAddResult,
2226
2320
  instanceOfTopicSubscribersRemoveResponse: () => instanceOfTopicSubscribersRemoveResponse,
2227
2321
  instanceOfTopicSubscribersRemoveResult: () => instanceOfTopicSubscribersRemoveResult,
2322
+ instanceOfTriggerWorkflow202Response: () => instanceOfTriggerWorkflow202Response,
2323
+ instanceOfTriggerWorkflow202ResponseData: () => instanceOfTriggerWorkflow202ResponseData,
2324
+ instanceOfTriggerWorkflowRequest: () => instanceOfTriggerWorkflowRequest,
2228
2325
  instanceOfUnreadCountData: () => instanceOfUnreadCountData,
2229
2326
  instanceOfUnreadCountResponse: () => instanceOfUnreadCountResponse,
2230
2327
  instanceOfUnsubscribe: () => instanceOfUnsubscribe,
@@ -2245,11 +2342,13 @@ __export(index_exports, {
2245
2342
  instanceOfUpdateWaaSEndpointRequest: () => instanceOfUpdateWaaSEndpointRequest,
2246
2343
  instanceOfUpdateWaaSEventTypeRequest: () => instanceOfUpdateWaaSEventTypeRequest,
2247
2344
  instanceOfUpdateWebhookRequest: () => instanceOfUpdateWebhookRequest,
2345
+ instanceOfUpdateWorkflowRequest: () => instanceOfUpdateWorkflowRequest,
2346
+ instanceOfUpdateWorkflowStatusRequest: () => instanceOfUpdateWorkflowStatusRequest,
2347
+ instanceOfUpdateWorkflowStepRequest: () => instanceOfUpdateWorkflowStepRequest,
2248
2348
  instanceOfUpsertAuthEmailTemplateRequest: () => instanceOfUpsertAuthEmailTemplateRequest,
2249
2349
  instanceOfUpsertSmsConfigRequest: () => instanceOfUpsertSmsConfigRequest,
2250
2350
  instanceOfUserDevicesDeleteResponse: () => instanceOfUserDevicesDeleteResponse,
2251
2351
  instanceOfUserDevicesDeleteResponseData: () => instanceOfUserDevicesDeleteResponseData,
2252
- instanceOfV1MuseSubjectsSuggestPostRequest: () => instanceOfV1MuseSubjectsSuggestPostRequest,
2253
2352
  instanceOfValidateResetTokenRequest: () => instanceOfValidateResetTokenRequest,
2254
2353
  instanceOfValidateResetTokenResponse: () => instanceOfValidateResetTokenResponse,
2255
2354
  instanceOfValidateResetTokenResponseData: () => instanceOfValidateResetTokenResponseData,
@@ -2325,10 +2424,14 @@ __export(index_exports, {
2325
2424
  instanceOfWebhookVersionsResponse: () => instanceOfWebhookVersionsResponse,
2326
2425
  instanceOfWebhookVersionsResponseData: () => instanceOfWebhookVersionsResponseData,
2327
2426
  instanceOfWithdrawSubscriberConsentRequest: () => instanceOfWithdrawSubscriberConsentRequest,
2427
+ instanceOfWorkflow: () => instanceOfWorkflow,
2328
2428
  instanceOfWorkflowExecution: () => instanceOfWorkflowExecution,
2329
2429
  instanceOfWorkflowExecutionStatus: () => instanceOfWorkflowExecutionStatus,
2430
+ instanceOfWorkflowStatus: () => instanceOfWorkflowStatus,
2431
+ instanceOfWorkflowStep: () => instanceOfWorkflowStep,
2330
2432
  instanceOfWorkflowStepExecution: () => instanceOfWorkflowStepExecution,
2331
2433
  instanceOfWorkflowStepExecutionStatus: () => instanceOfWorkflowStepExecutionStatus,
2434
+ instanceOfWorkflowStepType: () => instanceOfWorkflowStepType,
2332
2435
  mapValues: () => mapValues,
2333
2436
  parseErrorResponse: () => parseErrorResponse,
2334
2437
  querystring: () => querystring
@@ -2899,6 +3002,204 @@ function AddTopicSubscribersRequestToJSONTyped(value, ignoreDiscriminator = fals
2899
3002
  };
2900
3003
  }
2901
3004
 
3005
+ // src/src/models/WorkflowStepType.ts
3006
+ var WorkflowStepType = {
3007
+ EMAIL: "email",
3008
+ PUSH: "push",
3009
+ SMS: "sms",
3010
+ IN_APP: "in_app",
3011
+ SLACK: "slack",
3012
+ DISCORD: "discord",
3013
+ TEAMS: "teams",
3014
+ DELAY: "delay",
3015
+ BRANCH: "branch"
3016
+ };
3017
+ function instanceOfWorkflowStepType(value) {
3018
+ for (const key in WorkflowStepType) {
3019
+ if (Object.prototype.hasOwnProperty.call(WorkflowStepType, key)) {
3020
+ if (WorkflowStepType[key] === value) {
3021
+ return true;
3022
+ }
3023
+ }
3024
+ }
3025
+ return false;
3026
+ }
3027
+ function WorkflowStepTypeFromJSON(json) {
3028
+ return WorkflowStepTypeFromJSONTyped(json, false);
3029
+ }
3030
+ function WorkflowStepTypeFromJSONTyped(json, ignoreDiscriminator) {
3031
+ return json;
3032
+ }
3033
+ function WorkflowStepTypeToJSON(value) {
3034
+ return value;
3035
+ }
3036
+ function WorkflowStepTypeToJSONTyped(value, ignoreDiscriminator) {
3037
+ return value;
3038
+ }
3039
+
3040
+ // src/src/models/WorkflowStep.ts
3041
+ var WorkflowStepBranchPathEnum = {
3042
+ TRUE: "true",
3043
+ FALSE: "false"
3044
+ };
3045
+ function instanceOfWorkflowStep(value) {
3046
+ if (!("id" in value) || value["id"] === void 0) return false;
3047
+ if (!("workflowId" in value) || value["workflowId"] === void 0) return false;
3048
+ if (!("stepKey" in value) || value["stepKey"] === void 0) return false;
3049
+ if (!("name" in value) || value["name"] === void 0) return false;
3050
+ if (!("type" in value) || value["type"] === void 0) return false;
3051
+ if (!("position" in value) || value["position"] === void 0) return false;
3052
+ if (!("config" in value) || value["config"] === void 0) return false;
3053
+ if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
3054
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
3055
+ return true;
3056
+ }
3057
+ function WorkflowStepFromJSON(json) {
3058
+ return WorkflowStepFromJSONTyped(json, false);
3059
+ }
3060
+ function WorkflowStepFromJSONTyped(json, ignoreDiscriminator) {
3061
+ if (json == null) {
3062
+ return json;
3063
+ }
3064
+ return {
3065
+ "id": json["id"],
3066
+ "workflowId": json["workflow_id"],
3067
+ "stepKey": json["step_key"],
3068
+ "name": json["name"],
3069
+ "type": WorkflowStepTypeFromJSON(json["type"]),
3070
+ "position": json["position"],
3071
+ "config": json["config"],
3072
+ "parentStepId": json["parent_step_id"] == null ? void 0 : json["parent_step_id"],
3073
+ "branchPath": json["branch_path"] == null ? void 0 : json["branch_path"],
3074
+ "createdAt": new Date(json["created_at"]),
3075
+ "updatedAt": new Date(json["updated_at"])
3076
+ };
3077
+ }
3078
+ function WorkflowStepToJSON(json) {
3079
+ return WorkflowStepToJSONTyped(json, false);
3080
+ }
3081
+ function WorkflowStepToJSONTyped(value, ignoreDiscriminator = false) {
3082
+ if (value == null) {
3083
+ return value;
3084
+ }
3085
+ return {
3086
+ "id": value["id"],
3087
+ "workflow_id": value["workflowId"],
3088
+ "step_key": value["stepKey"],
3089
+ "name": value["name"],
3090
+ "type": WorkflowStepTypeToJSON(value["type"]),
3091
+ "position": value["position"],
3092
+ "config": value["config"],
3093
+ "parent_step_id": value["parentStepId"],
3094
+ "branch_path": value["branchPath"],
3095
+ "created_at": value["createdAt"].toISOString(),
3096
+ "updated_at": value["updatedAt"].toISOString()
3097
+ };
3098
+ }
3099
+
3100
+ // src/src/models/RequestMeta.ts
3101
+ function instanceOfRequestMeta(value) {
3102
+ return true;
3103
+ }
3104
+ function RequestMetaFromJSON(json) {
3105
+ return RequestMetaFromJSONTyped(json, false);
3106
+ }
3107
+ function RequestMetaFromJSONTyped(json, ignoreDiscriminator) {
3108
+ if (json == null) {
3109
+ return json;
3110
+ }
3111
+ return {
3112
+ "requestId": json["request_id"] == null ? void 0 : json["request_id"]
3113
+ };
3114
+ }
3115
+ function RequestMetaToJSON(json) {
3116
+ return RequestMetaToJSONTyped(json, false);
3117
+ }
3118
+ function RequestMetaToJSONTyped(value, ignoreDiscriminator = false) {
3119
+ if (value == null) {
3120
+ return value;
3121
+ }
3122
+ return {
3123
+ "request_id": value["requestId"]
3124
+ };
3125
+ }
3126
+
3127
+ // src/src/models/AddWorkflowStep201Response.ts
3128
+ function instanceOfAddWorkflowStep201Response(value) {
3129
+ return true;
3130
+ }
3131
+ function AddWorkflowStep201ResponseFromJSON(json) {
3132
+ return AddWorkflowStep201ResponseFromJSONTyped(json, false);
3133
+ }
3134
+ function AddWorkflowStep201ResponseFromJSONTyped(json, ignoreDiscriminator) {
3135
+ if (json == null) {
3136
+ return json;
3137
+ }
3138
+ return {
3139
+ "data": json["data"] == null ? void 0 : WorkflowStepFromJSON(json["data"]),
3140
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
3141
+ };
3142
+ }
3143
+ function AddWorkflowStep201ResponseToJSON(json) {
3144
+ return AddWorkflowStep201ResponseToJSONTyped(json, false);
3145
+ }
3146
+ function AddWorkflowStep201ResponseToJSONTyped(value, ignoreDiscriminator = false) {
3147
+ if (value == null) {
3148
+ return value;
3149
+ }
3150
+ return {
3151
+ "data": WorkflowStepToJSON(value["data"]),
3152
+ "meta": RequestMetaToJSON(value["meta"])
3153
+ };
3154
+ }
3155
+
3156
+ // src/src/models/AddWorkflowStepRequest.ts
3157
+ var AddWorkflowStepRequestBranchPathEnum = {
3158
+ TRUE: "true",
3159
+ FALSE: "false"
3160
+ };
3161
+ function instanceOfAddWorkflowStepRequest(value) {
3162
+ if (!("stepKey" in value) || value["stepKey"] === void 0) return false;
3163
+ if (!("name" in value) || value["name"] === void 0) return false;
3164
+ if (!("type" in value) || value["type"] === void 0) return false;
3165
+ if (!("config" in value) || value["config"] === void 0) return false;
3166
+ return true;
3167
+ }
3168
+ function AddWorkflowStepRequestFromJSON(json) {
3169
+ return AddWorkflowStepRequestFromJSONTyped(json, false);
3170
+ }
3171
+ function AddWorkflowStepRequestFromJSONTyped(json, ignoreDiscriminator) {
3172
+ if (json == null) {
3173
+ return json;
3174
+ }
3175
+ return {
3176
+ "stepKey": json["step_key"],
3177
+ "name": json["name"],
3178
+ "type": WorkflowStepTypeFromJSON(json["type"]),
3179
+ "position": json["position"] == null ? void 0 : json["position"],
3180
+ "config": json["config"],
3181
+ "parentStepId": json["parent_step_id"] == null ? void 0 : json["parent_step_id"],
3182
+ "branchPath": json["branch_path"] == null ? void 0 : json["branch_path"]
3183
+ };
3184
+ }
3185
+ function AddWorkflowStepRequestToJSON(json) {
3186
+ return AddWorkflowStepRequestToJSONTyped(json, false);
3187
+ }
3188
+ function AddWorkflowStepRequestToJSONTyped(value, ignoreDiscriminator = false) {
3189
+ if (value == null) {
3190
+ return value;
3191
+ }
3192
+ return {
3193
+ "step_key": value["stepKey"],
3194
+ "name": value["name"],
3195
+ "type": WorkflowStepTypeToJSON(value["type"]),
3196
+ "position": value["position"],
3197
+ "config": value["config"],
3198
+ "parent_step_id": value["parentStepId"],
3199
+ "branch_path": value["branchPath"]
3200
+ };
3201
+ }
3202
+
2902
3203
  // src/src/models/ApiErrorMeta.ts
2903
3204
  function instanceOfApiErrorMeta(value) {
2904
3205
  return true;
@@ -3109,33 +3410,6 @@ function AuthEmailTemplateDefaultToJSONTyped(value, ignoreDiscriminator = false)
3109
3410
  };
3110
3411
  }
3111
3412
 
3112
- // src/src/models/RequestMeta.ts
3113
- function instanceOfRequestMeta(value) {
3114
- return true;
3115
- }
3116
- function RequestMetaFromJSON(json) {
3117
- return RequestMetaFromJSONTyped(json, false);
3118
- }
3119
- function RequestMetaFromJSONTyped(json, ignoreDiscriminator) {
3120
- if (json == null) {
3121
- return json;
3122
- }
3123
- return {
3124
- "requestId": json["request_id"] == null ? void 0 : json["request_id"]
3125
- };
3126
- }
3127
- function RequestMetaToJSON(json) {
3128
- return RequestMetaToJSONTyped(json, false);
3129
- }
3130
- function RequestMetaToJSONTyped(value, ignoreDiscriminator = false) {
3131
- if (value == null) {
3132
- return value;
3133
- }
3134
- return {
3135
- "request_id": value["requestId"]
3136
- };
3137
- }
3138
-
3139
3413
  // src/src/models/AuthEmailTemplateDefaultResponse.ts
3140
3414
  function instanceOfAuthEmailTemplateDefaultResponse(value) {
3141
3415
  return true;
@@ -5362,125 +5636,280 @@ function CreateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
5362
5636
  };
5363
5637
  }
5364
5638
 
5365
- // src/src/models/GetDomain200ResponseMeta.ts
5366
- function instanceOfGetDomain200ResponseMeta(value) {
5367
- return true;
5639
+ // src/src/models/WorkflowStatus.ts
5640
+ var WorkflowStatus = {
5641
+ DRAFT: "draft",
5642
+ ACTIVE: "active",
5643
+ PAUSED: "paused",
5644
+ ARCHIVED: "archived"
5645
+ };
5646
+ function instanceOfWorkflowStatus(value) {
5647
+ for (const key in WorkflowStatus) {
5648
+ if (Object.prototype.hasOwnProperty.call(WorkflowStatus, key)) {
5649
+ if (WorkflowStatus[key] === value) {
5650
+ return true;
5651
+ }
5652
+ }
5653
+ }
5654
+ return false;
5368
5655
  }
5369
- function GetDomain200ResponseMetaFromJSON(json) {
5370
- return GetDomain200ResponseMetaFromJSONTyped(json, false);
5656
+ function WorkflowStatusFromJSON(json) {
5657
+ return WorkflowStatusFromJSONTyped(json, false);
5371
5658
  }
5372
- function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
5373
- if (json == null) {
5374
- return json;
5375
- }
5376
- return {
5377
- "requestId": json["request_id"] == null ? void 0 : json["request_id"]
5378
- };
5659
+ function WorkflowStatusFromJSONTyped(json, ignoreDiscriminator) {
5660
+ return json;
5379
5661
  }
5380
- function GetDomain200ResponseMetaToJSON(json) {
5381
- return GetDomain200ResponseMetaToJSONTyped(json, false);
5662
+ function WorkflowStatusToJSON(value) {
5663
+ return value;
5382
5664
  }
5383
- function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
5384
- if (value == null) {
5385
- return value;
5386
- }
5387
- return {
5388
- "request_id": value["requestId"]
5389
- };
5665
+ function WorkflowStatusToJSONTyped(value, ignoreDiscriminator) {
5666
+ return value;
5390
5667
  }
5391
5668
 
5392
- // src/src/models/DeleteDomainResponseData.ts
5393
- function instanceOfDeleteDomainResponseData(value) {
5669
+ // src/src/models/Workflow.ts
5670
+ function instanceOfWorkflow(value) {
5394
5671
  if (!("id" in value) || value["id"] === void 0) return false;
5395
- if (!("deleted" in value) || value["deleted"] === void 0) return false;
5672
+ if (!("accountId" in value) || value["accountId"] === void 0) return false;
5673
+ if (!("key" in value) || value["key"] === void 0) return false;
5674
+ if (!("name" in value) || value["name"] === void 0) return false;
5675
+ if (!("status" in value) || value["status"] === void 0) return false;
5676
+ if (!("isCritical" in value) || value["isCritical"] === void 0) return false;
5677
+ if (!("tags" in value) || value["tags"] === void 0) return false;
5678
+ if (!("createdAt" in value) || value["createdAt"] === void 0) return false;
5679
+ if (!("updatedAt" in value) || value["updatedAt"] === void 0) return false;
5396
5680
  return true;
5397
5681
  }
5398
- function DeleteDomainResponseDataFromJSON(json) {
5399
- return DeleteDomainResponseDataFromJSONTyped(json, false);
5682
+ function WorkflowFromJSON(json) {
5683
+ return WorkflowFromJSONTyped(json, false);
5400
5684
  }
5401
- function DeleteDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5685
+ function WorkflowFromJSONTyped(json, ignoreDiscriminator) {
5402
5686
  if (json == null) {
5403
5687
  return json;
5404
5688
  }
5405
5689
  return {
5406
5690
  "id": json["id"],
5407
- "deleted": json["deleted"]
5691
+ "accountId": json["account_id"],
5692
+ "key": json["key"],
5693
+ "name": json["name"],
5694
+ "description": json["description"] == null ? void 0 : json["description"],
5695
+ "status": WorkflowStatusFromJSON(json["status"]),
5696
+ "isCritical": json["is_critical"],
5697
+ "triggerSchema": json["trigger_schema"] == null ? void 0 : json["trigger_schema"],
5698
+ "tags": json["tags"],
5699
+ "stepCount": json["step_count"] == null ? void 0 : json["step_count"],
5700
+ "steps": json["steps"] == null ? void 0 : json["steps"].map(WorkflowStepFromJSON),
5701
+ "createdAt": new Date(json["created_at"]),
5702
+ "updatedAt": new Date(json["updated_at"])
5408
5703
  };
5409
5704
  }
5410
- function DeleteDomainResponseDataToJSON(json) {
5411
- return DeleteDomainResponseDataToJSONTyped(json, false);
5705
+ function WorkflowToJSON(json) {
5706
+ return WorkflowToJSONTyped(json, false);
5412
5707
  }
5413
- function DeleteDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
5708
+ function WorkflowToJSONTyped(value, ignoreDiscriminator = false) {
5414
5709
  if (value == null) {
5415
5710
  return value;
5416
5711
  }
5417
5712
  return {
5418
5713
  "id": value["id"],
5419
- "deleted": value["deleted"]
5714
+ "account_id": value["accountId"],
5715
+ "key": value["key"],
5716
+ "name": value["name"],
5717
+ "description": value["description"],
5718
+ "status": WorkflowStatusToJSON(value["status"]),
5719
+ "is_critical": value["isCritical"],
5720
+ "trigger_schema": value["triggerSchema"],
5721
+ "tags": value["tags"],
5722
+ "step_count": value["stepCount"],
5723
+ "steps": value["steps"] == null ? void 0 : value["steps"].map(WorkflowStepToJSON),
5724
+ "created_at": value["createdAt"].toISOString(),
5725
+ "updated_at": value["updatedAt"].toISOString()
5420
5726
  };
5421
5727
  }
5422
5728
 
5423
- // src/src/models/DeleteDomainResponse.ts
5424
- function instanceOfDeleteDomainResponse(value) {
5425
- if (!("data" in value) || value["data"] === void 0) return false;
5426
- if (!("meta" in value) || value["meta"] === void 0) return false;
5729
+ // src/src/models/CreateWorkflow201Response.ts
5730
+ function instanceOfCreateWorkflow201Response(value) {
5427
5731
  return true;
5428
5732
  }
5429
- function DeleteDomainResponseFromJSON(json) {
5430
- return DeleteDomainResponseFromJSONTyped(json, false);
5733
+ function CreateWorkflow201ResponseFromJSON(json) {
5734
+ return CreateWorkflow201ResponseFromJSONTyped(json, false);
5431
5735
  }
5432
- function DeleteDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
5736
+ function CreateWorkflow201ResponseFromJSONTyped(json, ignoreDiscriminator) {
5433
5737
  if (json == null) {
5434
5738
  return json;
5435
5739
  }
5436
5740
  return {
5437
- "data": DeleteDomainResponseDataFromJSON(json["data"]),
5438
- "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
5741
+ "data": json["data"] == null ? void 0 : WorkflowFromJSON(json["data"]),
5742
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
5439
5743
  };
5440
5744
  }
5441
- function DeleteDomainResponseToJSON(json) {
5442
- return DeleteDomainResponseToJSONTyped(json, false);
5745
+ function CreateWorkflow201ResponseToJSON(json) {
5746
+ return CreateWorkflow201ResponseToJSONTyped(json, false);
5443
5747
  }
5444
- function DeleteDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
5748
+ function CreateWorkflow201ResponseToJSONTyped(value, ignoreDiscriminator = false) {
5445
5749
  if (value == null) {
5446
5750
  return value;
5447
5751
  }
5448
5752
  return {
5449
- "data": DeleteDomainResponseDataToJSON(value["data"]),
5450
- "meta": GetDomain200ResponseMetaToJSON(value["meta"])
5753
+ "data": WorkflowToJSON(value["data"]),
5754
+ "meta": RequestMetaToJSON(value["meta"])
5451
5755
  };
5452
5756
  }
5453
5757
 
5454
- // src/src/models/DeleteResultData.ts
5455
- function instanceOfDeleteResultData(value) {
5758
+ // src/src/models/CreateWorkflowRequest.ts
5759
+ function instanceOfCreateWorkflowRequest(value) {
5760
+ if (!("name" in value) || value["name"] === void 0) return false;
5456
5761
  return true;
5457
5762
  }
5458
- function DeleteResultDataFromJSON(json) {
5459
- return DeleteResultDataFromJSONTyped(json, false);
5763
+ function CreateWorkflowRequestFromJSON(json) {
5764
+ return CreateWorkflowRequestFromJSONTyped(json, false);
5460
5765
  }
5461
- function DeleteResultDataFromJSONTyped(json, ignoreDiscriminator) {
5766
+ function CreateWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
5462
5767
  if (json == null) {
5463
5768
  return json;
5464
5769
  }
5465
5770
  return {
5466
- "id": json["id"] == null ? void 0 : json["id"],
5467
- "deleted": json["deleted"] == null ? void 0 : json["deleted"]
5771
+ "name": json["name"],
5772
+ "key": json["key"] == null ? void 0 : json["key"],
5773
+ "description": json["description"] == null ? void 0 : json["description"],
5774
+ "isCritical": json["is_critical"] == null ? void 0 : json["is_critical"],
5775
+ "tags": json["tags"] == null ? void 0 : json["tags"]
5468
5776
  };
5469
5777
  }
5470
- function DeleteResultDataToJSON(json) {
5471
- return DeleteResultDataToJSONTyped(json, false);
5778
+ function CreateWorkflowRequestToJSON(json) {
5779
+ return CreateWorkflowRequestToJSONTyped(json, false);
5472
5780
  }
5473
- function DeleteResultDataToJSONTyped(value, ignoreDiscriminator = false) {
5781
+ function CreateWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
5474
5782
  if (value == null) {
5475
5783
  return value;
5476
5784
  }
5477
5785
  return {
5478
- "id": value["id"],
5479
- "deleted": value["deleted"]
5786
+ "name": value["name"],
5787
+ "key": value["key"],
5788
+ "description": value["description"],
5789
+ "is_critical": value["isCritical"],
5790
+ "tags": value["tags"]
5480
5791
  };
5481
5792
  }
5482
5793
 
5483
- // src/src/models/DeleteResult.ts
5794
+ // src/src/models/GetDomain200ResponseMeta.ts
5795
+ function instanceOfGetDomain200ResponseMeta(value) {
5796
+ return true;
5797
+ }
5798
+ function GetDomain200ResponseMetaFromJSON(json) {
5799
+ return GetDomain200ResponseMetaFromJSONTyped(json, false);
5800
+ }
5801
+ function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
5802
+ if (json == null) {
5803
+ return json;
5804
+ }
5805
+ return {
5806
+ "requestId": json["request_id"] == null ? void 0 : json["request_id"]
5807
+ };
5808
+ }
5809
+ function GetDomain200ResponseMetaToJSON(json) {
5810
+ return GetDomain200ResponseMetaToJSONTyped(json, false);
5811
+ }
5812
+ function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
5813
+ if (value == null) {
5814
+ return value;
5815
+ }
5816
+ return {
5817
+ "request_id": value["requestId"]
5818
+ };
5819
+ }
5820
+
5821
+ // src/src/models/DeleteDomainResponseData.ts
5822
+ function instanceOfDeleteDomainResponseData(value) {
5823
+ if (!("id" in value) || value["id"] === void 0) return false;
5824
+ if (!("deleted" in value) || value["deleted"] === void 0) return false;
5825
+ return true;
5826
+ }
5827
+ function DeleteDomainResponseDataFromJSON(json) {
5828
+ return DeleteDomainResponseDataFromJSONTyped(json, false);
5829
+ }
5830
+ function DeleteDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5831
+ if (json == null) {
5832
+ return json;
5833
+ }
5834
+ return {
5835
+ "id": json["id"],
5836
+ "deleted": json["deleted"]
5837
+ };
5838
+ }
5839
+ function DeleteDomainResponseDataToJSON(json) {
5840
+ return DeleteDomainResponseDataToJSONTyped(json, false);
5841
+ }
5842
+ function DeleteDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
5843
+ if (value == null) {
5844
+ return value;
5845
+ }
5846
+ return {
5847
+ "id": value["id"],
5848
+ "deleted": value["deleted"]
5849
+ };
5850
+ }
5851
+
5852
+ // src/src/models/DeleteDomainResponse.ts
5853
+ function instanceOfDeleteDomainResponse(value) {
5854
+ if (!("data" in value) || value["data"] === void 0) return false;
5855
+ if (!("meta" in value) || value["meta"] === void 0) return false;
5856
+ return true;
5857
+ }
5858
+ function DeleteDomainResponseFromJSON(json) {
5859
+ return DeleteDomainResponseFromJSONTyped(json, false);
5860
+ }
5861
+ function DeleteDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
5862
+ if (json == null) {
5863
+ return json;
5864
+ }
5865
+ return {
5866
+ "data": DeleteDomainResponseDataFromJSON(json["data"]),
5867
+ "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
5868
+ };
5869
+ }
5870
+ function DeleteDomainResponseToJSON(json) {
5871
+ return DeleteDomainResponseToJSONTyped(json, false);
5872
+ }
5873
+ function DeleteDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
5874
+ if (value == null) {
5875
+ return value;
5876
+ }
5877
+ return {
5878
+ "data": DeleteDomainResponseDataToJSON(value["data"]),
5879
+ "meta": GetDomain200ResponseMetaToJSON(value["meta"])
5880
+ };
5881
+ }
5882
+
5883
+ // src/src/models/DeleteResultData.ts
5884
+ function instanceOfDeleteResultData(value) {
5885
+ return true;
5886
+ }
5887
+ function DeleteResultDataFromJSON(json) {
5888
+ return DeleteResultDataFromJSONTyped(json, false);
5889
+ }
5890
+ function DeleteResultDataFromJSONTyped(json, ignoreDiscriminator) {
5891
+ if (json == null) {
5892
+ return json;
5893
+ }
5894
+ return {
5895
+ "id": json["id"] == null ? void 0 : json["id"],
5896
+ "deleted": json["deleted"] == null ? void 0 : json["deleted"]
5897
+ };
5898
+ }
5899
+ function DeleteResultDataToJSON(json) {
5900
+ return DeleteResultDataToJSONTyped(json, false);
5901
+ }
5902
+ function DeleteResultDataToJSONTyped(value, ignoreDiscriminator = false) {
5903
+ if (value == null) {
5904
+ return value;
5905
+ }
5906
+ return {
5907
+ "id": value["id"],
5908
+ "deleted": value["deleted"]
5909
+ };
5910
+ }
5911
+
5912
+ // src/src/models/DeleteResult.ts
5484
5913
  function instanceOfDeleteResult(value) {
5485
5914
  return true;
5486
5915
  }
@@ -5509,6 +5938,124 @@ function DeleteResultToJSONTyped(value, ignoreDiscriminator = false) {
5509
5938
  };
5510
5939
  }
5511
5940
 
5941
+ // src/src/models/DeleteWorkflow200ResponseData.ts
5942
+ function instanceOfDeleteWorkflow200ResponseData(value) {
5943
+ return true;
5944
+ }
5945
+ function DeleteWorkflow200ResponseDataFromJSON(json) {
5946
+ return DeleteWorkflow200ResponseDataFromJSONTyped(json, false);
5947
+ }
5948
+ function DeleteWorkflow200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5949
+ if (json == null) {
5950
+ return json;
5951
+ }
5952
+ return {
5953
+ "key": json["key"] == null ? void 0 : json["key"],
5954
+ "deleted": json["deleted"] == null ? void 0 : json["deleted"]
5955
+ };
5956
+ }
5957
+ function DeleteWorkflow200ResponseDataToJSON(json) {
5958
+ return DeleteWorkflow200ResponseDataToJSONTyped(json, false);
5959
+ }
5960
+ function DeleteWorkflow200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
5961
+ if (value == null) {
5962
+ return value;
5963
+ }
5964
+ return {
5965
+ "key": value["key"],
5966
+ "deleted": value["deleted"]
5967
+ };
5968
+ }
5969
+
5970
+ // src/src/models/DeleteWorkflow200Response.ts
5971
+ function instanceOfDeleteWorkflow200Response(value) {
5972
+ return true;
5973
+ }
5974
+ function DeleteWorkflow200ResponseFromJSON(json) {
5975
+ return DeleteWorkflow200ResponseFromJSONTyped(json, false);
5976
+ }
5977
+ function DeleteWorkflow200ResponseFromJSONTyped(json, ignoreDiscriminator) {
5978
+ if (json == null) {
5979
+ return json;
5980
+ }
5981
+ return {
5982
+ "data": json["data"] == null ? void 0 : DeleteWorkflow200ResponseDataFromJSON(json["data"]),
5983
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
5984
+ };
5985
+ }
5986
+ function DeleteWorkflow200ResponseToJSON(json) {
5987
+ return DeleteWorkflow200ResponseToJSONTyped(json, false);
5988
+ }
5989
+ function DeleteWorkflow200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
5990
+ if (value == null) {
5991
+ return value;
5992
+ }
5993
+ return {
5994
+ "data": DeleteWorkflow200ResponseDataToJSON(value["data"]),
5995
+ "meta": RequestMetaToJSON(value["meta"])
5996
+ };
5997
+ }
5998
+
5999
+ // src/src/models/DeleteWorkflowStep200ResponseData.ts
6000
+ function instanceOfDeleteWorkflowStep200ResponseData(value) {
6001
+ return true;
6002
+ }
6003
+ function DeleteWorkflowStep200ResponseDataFromJSON(json) {
6004
+ return DeleteWorkflowStep200ResponseDataFromJSONTyped(json, false);
6005
+ }
6006
+ function DeleteWorkflowStep200ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
6007
+ if (json == null) {
6008
+ return json;
6009
+ }
6010
+ return {
6011
+ "workflowKey": json["workflow_key"] == null ? void 0 : json["workflow_key"],
6012
+ "stepKey": json["step_key"] == null ? void 0 : json["step_key"],
6013
+ "deleted": json["deleted"] == null ? void 0 : json["deleted"]
6014
+ };
6015
+ }
6016
+ function DeleteWorkflowStep200ResponseDataToJSON(json) {
6017
+ return DeleteWorkflowStep200ResponseDataToJSONTyped(json, false);
6018
+ }
6019
+ function DeleteWorkflowStep200ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
6020
+ if (value == null) {
6021
+ return value;
6022
+ }
6023
+ return {
6024
+ "workflow_key": value["workflowKey"],
6025
+ "step_key": value["stepKey"],
6026
+ "deleted": value["deleted"]
6027
+ };
6028
+ }
6029
+
6030
+ // src/src/models/DeleteWorkflowStep200Response.ts
6031
+ function instanceOfDeleteWorkflowStep200Response(value) {
6032
+ return true;
6033
+ }
6034
+ function DeleteWorkflowStep200ResponseFromJSON(json) {
6035
+ return DeleteWorkflowStep200ResponseFromJSONTyped(json, false);
6036
+ }
6037
+ function DeleteWorkflowStep200ResponseFromJSONTyped(json, ignoreDiscriminator) {
6038
+ if (json == null) {
6039
+ return json;
6040
+ }
6041
+ return {
6042
+ "data": json["data"] == null ? void 0 : DeleteWorkflowStep200ResponseDataFromJSON(json["data"]),
6043
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
6044
+ };
6045
+ }
6046
+ function DeleteWorkflowStep200ResponseToJSON(json) {
6047
+ return DeleteWorkflowStep200ResponseToJSONTyped(json, false);
6048
+ }
6049
+ function DeleteWorkflowStep200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
6050
+ if (value == null) {
6051
+ return value;
6052
+ }
6053
+ return {
6054
+ "data": DeleteWorkflowStep200ResponseDataToJSON(value["data"]),
6055
+ "meta": RequestMetaToJSON(value["meta"])
6056
+ };
6057
+ }
6058
+
5512
6059
  // src/src/models/Device.ts
5513
6060
  var DevicePlatformEnum = {
5514
6061
  IOS: "ios",
@@ -7633,96 +8180,230 @@ function ListWaaSEventTypes200ResponseToJSONTyped(value, ignoreDiscriminator = f
7633
8180
  };
7634
8181
  }
7635
8182
 
7636
- // src/src/models/LoginRequest.ts
7637
- function instanceOfLoginRequest(value) {
7638
- if (!("email" in value) || value["email"] === void 0) return false;
7639
- if (!("password" in value) || value["password"] === void 0) return false;
8183
+ // src/src/models/ListWorkflowExecutions200ResponseMeta.ts
8184
+ function instanceOfListWorkflowExecutions200ResponseMeta(value) {
7640
8185
  return true;
7641
8186
  }
7642
- function LoginRequestFromJSON(json) {
7643
- return LoginRequestFromJSONTyped(json, false);
8187
+ function ListWorkflowExecutions200ResponseMetaFromJSON(json) {
8188
+ return ListWorkflowExecutions200ResponseMetaFromJSONTyped(json, false);
7644
8189
  }
7645
- function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
8190
+ function ListWorkflowExecutions200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
7646
8191
  if (json == null) {
7647
8192
  return json;
7648
8193
  }
7649
8194
  return {
7650
- "email": json["email"],
7651
- "password": json["password"],
7652
- "customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"],
7653
- "organizationId": json["organization_id"] == null ? void 0 : json["organization_id"]
8195
+ "requestId": json["request_id"] == null ? void 0 : json["request_id"],
8196
+ "page": json["page"] == null ? void 0 : json["page"],
8197
+ "perPage": json["per_page"] == null ? void 0 : json["per_page"],
8198
+ "total": json["total"] == null ? void 0 : json["total"],
8199
+ "totalPages": json["total_pages"] == null ? void 0 : json["total_pages"]
7654
8200
  };
7655
8201
  }
7656
- function LoginRequestToJSON(json) {
7657
- return LoginRequestToJSONTyped(json, false);
8202
+ function ListWorkflowExecutions200ResponseMetaToJSON(json) {
8203
+ return ListWorkflowExecutions200ResponseMetaToJSONTyped(json, false);
7658
8204
  }
7659
- function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
8205
+ function ListWorkflowExecutions200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
7660
8206
  if (value == null) {
7661
8207
  return value;
7662
8208
  }
7663
8209
  return {
7664
- "email": value["email"],
7665
- "password": value["password"],
7666
- "custom_claims": value["customClaims"],
7667
- "organization_id": value["organizationId"]
8210
+ "request_id": value["requestId"],
8211
+ "page": value["page"],
8212
+ "per_page": value["perPage"],
8213
+ "total": value["total"],
8214
+ "total_pages": value["totalPages"]
7668
8215
  };
7669
8216
  }
7670
8217
 
7671
- // src/src/models/MagicLinkSendRequest.ts
7672
- function instanceOfMagicLinkSendRequest(value) {
7673
- if (!("email" in value) || value["email"] === void 0) return false;
8218
+ // src/src/models/ListWorkflowExecutions200Response.ts
8219
+ function instanceOfListWorkflowExecutions200Response(value) {
7674
8220
  return true;
7675
8221
  }
7676
- function MagicLinkSendRequestFromJSON(json) {
7677
- return MagicLinkSendRequestFromJSONTyped(json, false);
8222
+ function ListWorkflowExecutions200ResponseFromJSON(json) {
8223
+ return ListWorkflowExecutions200ResponseFromJSONTyped(json, false);
7678
8224
  }
7679
- function MagicLinkSendRequestFromJSONTyped(json, ignoreDiscriminator) {
8225
+ function ListWorkflowExecutions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
7680
8226
  if (json == null) {
7681
8227
  return json;
7682
8228
  }
7683
8229
  return {
7684
- "email": json["email"],
7685
- "redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"]
8230
+ "data": json["data"] == null ? void 0 : json["data"].map(WorkflowExecutionFromJSON),
8231
+ "meta": json["meta"] == null ? void 0 : ListWorkflowExecutions200ResponseMetaFromJSON(json["meta"])
7686
8232
  };
7687
8233
  }
7688
- function MagicLinkSendRequestToJSON(json) {
7689
- return MagicLinkSendRequestToJSONTyped(json, false);
8234
+ function ListWorkflowExecutions200ResponseToJSON(json) {
8235
+ return ListWorkflowExecutions200ResponseToJSONTyped(json, false);
7690
8236
  }
7691
- function MagicLinkSendRequestToJSONTyped(value, ignoreDiscriminator = false) {
8237
+ function ListWorkflowExecutions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
7692
8238
  if (value == null) {
7693
8239
  return value;
7694
8240
  }
7695
8241
  return {
7696
- "email": value["email"],
7697
- "redirect_url": value["redirectUrl"]
8242
+ "data": value["data"] == null ? void 0 : value["data"].map(WorkflowExecutionToJSON),
8243
+ "meta": ListWorkflowExecutions200ResponseMetaToJSON(value["meta"])
7698
8244
  };
7699
8245
  }
7700
8246
 
7701
- // src/src/models/MagicLinkVerifyRequest.ts
7702
- function instanceOfMagicLinkVerifyRequest(value) {
7703
- if (!("token" in value) || value["token"] === void 0) return false;
8247
+ // src/src/models/ListWorkflows200ResponseMeta.ts
8248
+ function instanceOfListWorkflows200ResponseMeta(value) {
7704
8249
  return true;
7705
8250
  }
7706
- function MagicLinkVerifyRequestFromJSON(json) {
7707
- return MagicLinkVerifyRequestFromJSONTyped(json, false);
8251
+ function ListWorkflows200ResponseMetaFromJSON(json) {
8252
+ return ListWorkflows200ResponseMetaFromJSONTyped(json, false);
7708
8253
  }
7709
- function MagicLinkVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
8254
+ function ListWorkflows200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
7710
8255
  if (json == null) {
7711
8256
  return json;
7712
8257
  }
7713
8258
  return {
7714
- "token": json["token"]
8259
+ "requestId": json["request_id"] == null ? void 0 : json["request_id"],
8260
+ "page": json["page"] == null ? void 0 : json["page"],
8261
+ "perPage": json["per_page"] == null ? void 0 : json["per_page"],
8262
+ "total": json["total"] == null ? void 0 : json["total"],
8263
+ "totalPages": json["total_pages"] == null ? void 0 : json["total_pages"],
8264
+ "limit": json["limit"] == null ? void 0 : json["limit"],
8265
+ "plan": json["plan"] == null ? void 0 : json["plan"],
8266
+ "count": json["count"] == null ? void 0 : json["count"]
7715
8267
  };
7716
8268
  }
7717
- function MagicLinkVerifyRequestToJSON(json) {
7718
- return MagicLinkVerifyRequestToJSONTyped(json, false);
8269
+ function ListWorkflows200ResponseMetaToJSON(json) {
8270
+ return ListWorkflows200ResponseMetaToJSONTyped(json, false);
7719
8271
  }
7720
- function MagicLinkVerifyRequestToJSONTyped(value, ignoreDiscriminator = false) {
8272
+ function ListWorkflows200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
7721
8273
  if (value == null) {
7722
8274
  return value;
7723
8275
  }
7724
8276
  return {
7725
- "token": value["token"]
8277
+ "request_id": value["requestId"],
8278
+ "page": value["page"],
8279
+ "per_page": value["perPage"],
8280
+ "total": value["total"],
8281
+ "total_pages": value["totalPages"],
8282
+ "limit": value["limit"],
8283
+ "plan": value["plan"],
8284
+ "count": value["count"]
8285
+ };
8286
+ }
8287
+
8288
+ // src/src/models/ListWorkflows200Response.ts
8289
+ function instanceOfListWorkflows200Response(value) {
8290
+ return true;
8291
+ }
8292
+ function ListWorkflows200ResponseFromJSON(json) {
8293
+ return ListWorkflows200ResponseFromJSONTyped(json, false);
8294
+ }
8295
+ function ListWorkflows200ResponseFromJSONTyped(json, ignoreDiscriminator) {
8296
+ if (json == null) {
8297
+ return json;
8298
+ }
8299
+ return {
8300
+ "data": json["data"] == null ? void 0 : json["data"].map(WorkflowFromJSON),
8301
+ "meta": json["meta"] == null ? void 0 : ListWorkflows200ResponseMetaFromJSON(json["meta"])
8302
+ };
8303
+ }
8304
+ function ListWorkflows200ResponseToJSON(json) {
8305
+ return ListWorkflows200ResponseToJSONTyped(json, false);
8306
+ }
8307
+ function ListWorkflows200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
8308
+ if (value == null) {
8309
+ return value;
8310
+ }
8311
+ return {
8312
+ "data": value["data"] == null ? void 0 : value["data"].map(WorkflowToJSON),
8313
+ "meta": ListWorkflows200ResponseMetaToJSON(value["meta"])
8314
+ };
8315
+ }
8316
+
8317
+ // src/src/models/LoginRequest.ts
8318
+ function instanceOfLoginRequest(value) {
8319
+ if (!("email" in value) || value["email"] === void 0) return false;
8320
+ if (!("password" in value) || value["password"] === void 0) return false;
8321
+ return true;
8322
+ }
8323
+ function LoginRequestFromJSON(json) {
8324
+ return LoginRequestFromJSONTyped(json, false);
8325
+ }
8326
+ function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
8327
+ if (json == null) {
8328
+ return json;
8329
+ }
8330
+ return {
8331
+ "email": json["email"],
8332
+ "password": json["password"],
8333
+ "customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"],
8334
+ "organizationId": json["organization_id"] == null ? void 0 : json["organization_id"]
8335
+ };
8336
+ }
8337
+ function LoginRequestToJSON(json) {
8338
+ return LoginRequestToJSONTyped(json, false);
8339
+ }
8340
+ function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
8341
+ if (value == null) {
8342
+ return value;
8343
+ }
8344
+ return {
8345
+ "email": value["email"],
8346
+ "password": value["password"],
8347
+ "custom_claims": value["customClaims"],
8348
+ "organization_id": value["organizationId"]
8349
+ };
8350
+ }
8351
+
8352
+ // src/src/models/MagicLinkSendRequest.ts
8353
+ function instanceOfMagicLinkSendRequest(value) {
8354
+ if (!("email" in value) || value["email"] === void 0) return false;
8355
+ return true;
8356
+ }
8357
+ function MagicLinkSendRequestFromJSON(json) {
8358
+ return MagicLinkSendRequestFromJSONTyped(json, false);
8359
+ }
8360
+ function MagicLinkSendRequestFromJSONTyped(json, ignoreDiscriminator) {
8361
+ if (json == null) {
8362
+ return json;
8363
+ }
8364
+ return {
8365
+ "email": json["email"],
8366
+ "redirectUrl": json["redirect_url"] == null ? void 0 : json["redirect_url"]
8367
+ };
8368
+ }
8369
+ function MagicLinkSendRequestToJSON(json) {
8370
+ return MagicLinkSendRequestToJSONTyped(json, false);
8371
+ }
8372
+ function MagicLinkSendRequestToJSONTyped(value, ignoreDiscriminator = false) {
8373
+ if (value == null) {
8374
+ return value;
8375
+ }
8376
+ return {
8377
+ "email": value["email"],
8378
+ "redirect_url": value["redirectUrl"]
8379
+ };
8380
+ }
8381
+
8382
+ // src/src/models/MagicLinkVerifyRequest.ts
8383
+ function instanceOfMagicLinkVerifyRequest(value) {
8384
+ if (!("token" in value) || value["token"] === void 0) return false;
8385
+ return true;
8386
+ }
8387
+ function MagicLinkVerifyRequestFromJSON(json) {
8388
+ return MagicLinkVerifyRequestFromJSONTyped(json, false);
8389
+ }
8390
+ function MagicLinkVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
8391
+ if (json == null) {
8392
+ return json;
8393
+ }
8394
+ return {
8395
+ "token": json["token"]
8396
+ };
8397
+ }
8398
+ function MagicLinkVerifyRequestToJSON(json) {
8399
+ return MagicLinkVerifyRequestToJSONTyped(json, false);
8400
+ }
8401
+ function MagicLinkVerifyRequestToJSONTyped(value, ignoreDiscriminator = false) {
8402
+ if (value == null) {
8403
+ return value;
8404
+ }
8405
+ return {
8406
+ "token": value["token"]
7726
8407
  };
7727
8408
  }
7728
8409
 
@@ -10717,6 +11398,34 @@ function RenderTemplateRequestToJSONTyped(value, ignoreDiscriminator = false) {
10717
11398
  };
10718
11399
  }
10719
11400
 
11401
+ // src/src/models/ReorderWorkflowStepsRequest.ts
11402
+ function instanceOfReorderWorkflowStepsRequest(value) {
11403
+ if (!("stepKeys" in value) || value["stepKeys"] === void 0) return false;
11404
+ return true;
11405
+ }
11406
+ function ReorderWorkflowStepsRequestFromJSON(json) {
11407
+ return ReorderWorkflowStepsRequestFromJSONTyped(json, false);
11408
+ }
11409
+ function ReorderWorkflowStepsRequestFromJSONTyped(json, ignoreDiscriminator) {
11410
+ if (json == null) {
11411
+ return json;
11412
+ }
11413
+ return {
11414
+ "stepKeys": json["step_keys"]
11415
+ };
11416
+ }
11417
+ function ReorderWorkflowStepsRequestToJSON(json) {
11418
+ return ReorderWorkflowStepsRequestToJSONTyped(json, false);
11419
+ }
11420
+ function ReorderWorkflowStepsRequestToJSONTyped(value, ignoreDiscriminator = false) {
11421
+ if (value == null) {
11422
+ return value;
11423
+ }
11424
+ return {
11425
+ "step_keys": value["stepKeys"]
11426
+ };
11427
+ }
11428
+
10720
11429
  // src/src/models/ReplayWebhookEventsRequest.ts
10721
11430
  function instanceOfReplayWebhookEventsRequest(value) {
10722
11431
  if (!("startDate" in value) || value["startDate"] === void 0) return false;
@@ -13124,41 +13833,6 @@ function SmsMessageToJSONTyped(value, ignoreDiscriminator = false) {
13124
13833
  };
13125
13834
  }
13126
13835
 
13127
- // src/src/models/SmsListResponseMeta.ts
13128
- function instanceOfSmsListResponseMeta(value) {
13129
- return true;
13130
- }
13131
- function SmsListResponseMetaFromJSON(json) {
13132
- return SmsListResponseMetaFromJSONTyped(json, false);
13133
- }
13134
- function SmsListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
13135
- if (json == null) {
13136
- return json;
13137
- }
13138
- return {
13139
- "requestId": json["request_id"] == null ? void 0 : json["request_id"],
13140
- "page": json["page"] == null ? void 0 : json["page"],
13141
- "perPage": json["per_page"] == null ? void 0 : json["per_page"],
13142
- "total": json["total"] == null ? void 0 : json["total"],
13143
- "totalPages": json["total_pages"] == null ? void 0 : json["total_pages"]
13144
- };
13145
- }
13146
- function SmsListResponseMetaToJSON(json) {
13147
- return SmsListResponseMetaToJSONTyped(json, false);
13148
- }
13149
- function SmsListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
13150
- if (value == null) {
13151
- return value;
13152
- }
13153
- return {
13154
- "request_id": value["requestId"],
13155
- "page": value["page"],
13156
- "per_page": value["perPage"],
13157
- "total": value["total"],
13158
- "total_pages": value["totalPages"]
13159
- };
13160
- }
13161
-
13162
13836
  // src/src/models/SmsListResponse.ts
13163
13837
  function instanceOfSmsListResponse(value) {
13164
13838
  return true;
@@ -13172,7 +13846,7 @@ function SmsListResponseFromJSONTyped(json, ignoreDiscriminator) {
13172
13846
  }
13173
13847
  return {
13174
13848
  "data": json["data"] == null ? void 0 : json["data"].map(SmsMessageFromJSON),
13175
- "meta": json["meta"] == null ? void 0 : SmsListResponseMetaFromJSON(json["meta"])
13849
+ "meta": json["meta"] == null ? void 0 : ListWorkflowExecutions200ResponseMetaFromJSON(json["meta"])
13176
13850
  };
13177
13851
  }
13178
13852
  function SmsListResponseToJSON(json) {
@@ -13184,7 +13858,7 @@ function SmsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
13184
13858
  }
13185
13859
  return {
13186
13860
  "data": value["data"] == null ? void 0 : value["data"].map(SmsMessageToJSON),
13187
- "meta": SmsListResponseMetaToJSON(value["meta"])
13861
+ "meta": ListWorkflowExecutions200ResponseMetaToJSON(value["meta"])
13188
13862
  };
13189
13863
  }
13190
13864
 
@@ -13699,35 +14373,6 @@ function TopicToJSONTyped(value, ignoreDiscriminator = false) {
13699
14373
  };
13700
14374
  }
13701
14375
 
13702
- // src/src/models/TopicDeleteResponseData.ts
13703
- function instanceOfTopicDeleteResponseData(value) {
13704
- return true;
13705
- }
13706
- function TopicDeleteResponseDataFromJSON(json) {
13707
- return TopicDeleteResponseDataFromJSONTyped(json, false);
13708
- }
13709
- function TopicDeleteResponseDataFromJSONTyped(json, ignoreDiscriminator) {
13710
- if (json == null) {
13711
- return json;
13712
- }
13713
- return {
13714
- "key": json["key"] == null ? void 0 : json["key"],
13715
- "deleted": json["deleted"] == null ? void 0 : json["deleted"]
13716
- };
13717
- }
13718
- function TopicDeleteResponseDataToJSON(json) {
13719
- return TopicDeleteResponseDataToJSONTyped(json, false);
13720
- }
13721
- function TopicDeleteResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
13722
- if (value == null) {
13723
- return value;
13724
- }
13725
- return {
13726
- "key": value["key"],
13727
- "deleted": value["deleted"]
13728
- };
13729
- }
13730
-
13731
14376
  // src/src/models/TopicDeleteResponse.ts
13732
14377
  function instanceOfTopicDeleteResponse(value) {
13733
14378
  return true;
@@ -13740,7 +14385,7 @@ function TopicDeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
13740
14385
  return json;
13741
14386
  }
13742
14387
  return {
13743
- "data": json["data"] == null ? void 0 : TopicDeleteResponseDataFromJSON(json["data"]),
14388
+ "data": json["data"] == null ? void 0 : DeleteWorkflow200ResponseDataFromJSON(json["data"]),
13744
14389
  "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
13745
14390
  };
13746
14391
  }
@@ -13752,7 +14397,7 @@ function TopicDeleteResponseToJSONTyped(value, ignoreDiscriminator = false) {
13752
14397
  return value;
13753
14398
  }
13754
14399
  return {
13755
- "data": TopicDeleteResponseDataToJSON(value["data"]),
14400
+ "data": DeleteWorkflow200ResponseDataToJSON(value["data"]),
13756
14401
  "meta": RequestMetaToJSON(value["meta"])
13757
14402
  };
13758
14403
  }
@@ -14086,6 +14731,100 @@ function TopicSubscribersRemoveResponseToJSONTyped(value, ignoreDiscriminator =
14086
14731
  };
14087
14732
  }
14088
14733
 
14734
+ // src/src/models/TriggerWorkflow202ResponseData.ts
14735
+ function instanceOfTriggerWorkflow202ResponseData(value) {
14736
+ return true;
14737
+ }
14738
+ function TriggerWorkflow202ResponseDataFromJSON(json) {
14739
+ return TriggerWorkflow202ResponseDataFromJSONTyped(json, false);
14740
+ }
14741
+ function TriggerWorkflow202ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
14742
+ if (json == null) {
14743
+ return json;
14744
+ }
14745
+ return {
14746
+ "executionIds": json["execution_ids"] == null ? void 0 : json["execution_ids"],
14747
+ "subscriberCount": json["subscriber_count"] == null ? void 0 : json["subscriber_count"],
14748
+ "workflowKey": json["workflow_key"] == null ? void 0 : json["workflow_key"]
14749
+ };
14750
+ }
14751
+ function TriggerWorkflow202ResponseDataToJSON(json) {
14752
+ return TriggerWorkflow202ResponseDataToJSONTyped(json, false);
14753
+ }
14754
+ function TriggerWorkflow202ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
14755
+ if (value == null) {
14756
+ return value;
14757
+ }
14758
+ return {
14759
+ "execution_ids": value["executionIds"],
14760
+ "subscriber_count": value["subscriberCount"],
14761
+ "workflow_key": value["workflowKey"]
14762
+ };
14763
+ }
14764
+
14765
+ // src/src/models/TriggerWorkflow202Response.ts
14766
+ function instanceOfTriggerWorkflow202Response(value) {
14767
+ return true;
14768
+ }
14769
+ function TriggerWorkflow202ResponseFromJSON(json) {
14770
+ return TriggerWorkflow202ResponseFromJSONTyped(json, false);
14771
+ }
14772
+ function TriggerWorkflow202ResponseFromJSONTyped(json, ignoreDiscriminator) {
14773
+ if (json == null) {
14774
+ return json;
14775
+ }
14776
+ return {
14777
+ "data": json["data"] == null ? void 0 : TriggerWorkflow202ResponseDataFromJSON(json["data"]),
14778
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
14779
+ };
14780
+ }
14781
+ function TriggerWorkflow202ResponseToJSON(json) {
14782
+ return TriggerWorkflow202ResponseToJSONTyped(json, false);
14783
+ }
14784
+ function TriggerWorkflow202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
14785
+ if (value == null) {
14786
+ return value;
14787
+ }
14788
+ return {
14789
+ "data": TriggerWorkflow202ResponseDataToJSON(value["data"]),
14790
+ "meta": RequestMetaToJSON(value["meta"])
14791
+ };
14792
+ }
14793
+
14794
+ // src/src/models/TriggerWorkflowRequest.ts
14795
+ function instanceOfTriggerWorkflowRequest(value) {
14796
+ if (!("to" in value) || value["to"] === void 0) return false;
14797
+ return true;
14798
+ }
14799
+ function TriggerWorkflowRequestFromJSON(json) {
14800
+ return TriggerWorkflowRequestFromJSONTyped(json, false);
14801
+ }
14802
+ function TriggerWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
14803
+ if (json == null) {
14804
+ return json;
14805
+ }
14806
+ return {
14807
+ "to": json["to"],
14808
+ "payload": json["payload"] == null ? void 0 : json["payload"],
14809
+ "transactionId": json["transaction_id"] == null ? void 0 : json["transaction_id"],
14810
+ "from": json["from"] == null ? void 0 : json["from"]
14811
+ };
14812
+ }
14813
+ function TriggerWorkflowRequestToJSON(json) {
14814
+ return TriggerWorkflowRequestToJSONTyped(json, false);
14815
+ }
14816
+ function TriggerWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
14817
+ if (value == null) {
14818
+ return value;
14819
+ }
14820
+ return {
14821
+ "to": value["to"],
14822
+ "payload": value["payload"],
14823
+ "transaction_id": value["transactionId"],
14824
+ "from": value["from"]
14825
+ };
14826
+ }
14827
+
14089
14828
  // src/src/models/UnreadCountData.ts
14090
14829
  function instanceOfUnreadCountData(value) {
14091
14830
  return true;
@@ -14762,27 +15501,117 @@ function UpdateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
14762
15501
  };
14763
15502
  }
14764
15503
 
14765
- // src/src/models/UpsertSmsConfigRequest.ts
14766
- function instanceOfUpsertSmsConfigRequest(value) {
14767
- if (!("accountSid" in value) || value["accountSid"] === void 0) return false;
14768
- if (!("authToken" in value) || value["authToken"] === void 0) return false;
14769
- if (!("fromPhone" in value) || value["fromPhone"] === void 0) return false;
15504
+ // src/src/models/UpdateWorkflowRequest.ts
15505
+ function instanceOfUpdateWorkflowRequest(value) {
14770
15506
  return true;
14771
15507
  }
14772
- function UpsertSmsConfigRequestFromJSON(json) {
14773
- return UpsertSmsConfigRequestFromJSONTyped(json, false);
15508
+ function UpdateWorkflowRequestFromJSON(json) {
15509
+ return UpdateWorkflowRequestFromJSONTyped(json, false);
14774
15510
  }
14775
- function UpsertSmsConfigRequestFromJSONTyped(json, ignoreDiscriminator) {
15511
+ function UpdateWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
14776
15512
  if (json == null) {
14777
15513
  return json;
14778
15514
  }
14779
15515
  return {
14780
- "accountSid": json["account_sid"],
14781
- "authToken": json["auth_token"],
14782
- "fromPhone": json["from_phone"],
14783
- "messagingServiceSid": json["messaging_service_sid"] == null ? void 0 : json["messaging_service_sid"]
14784
- };
14785
- }
15516
+ "name": json["name"] == null ? void 0 : json["name"],
15517
+ "description": json["description"] == null ? void 0 : json["description"],
15518
+ "isCritical": json["is_critical"] == null ? void 0 : json["is_critical"],
15519
+ "tags": json["tags"] == null ? void 0 : json["tags"]
15520
+ };
15521
+ }
15522
+ function UpdateWorkflowRequestToJSON(json) {
15523
+ return UpdateWorkflowRequestToJSONTyped(json, false);
15524
+ }
15525
+ function UpdateWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
15526
+ if (value == null) {
15527
+ return value;
15528
+ }
15529
+ return {
15530
+ "name": value["name"],
15531
+ "description": value["description"],
15532
+ "is_critical": value["isCritical"],
15533
+ "tags": value["tags"]
15534
+ };
15535
+ }
15536
+
15537
+ // src/src/models/UpdateWorkflowStatusRequest.ts
15538
+ function instanceOfUpdateWorkflowStatusRequest(value) {
15539
+ if (!("status" in value) || value["status"] === void 0) return false;
15540
+ return true;
15541
+ }
15542
+ function UpdateWorkflowStatusRequestFromJSON(json) {
15543
+ return UpdateWorkflowStatusRequestFromJSONTyped(json, false);
15544
+ }
15545
+ function UpdateWorkflowStatusRequestFromJSONTyped(json, ignoreDiscriminator) {
15546
+ if (json == null) {
15547
+ return json;
15548
+ }
15549
+ return {
15550
+ "status": WorkflowStatusFromJSON(json["status"])
15551
+ };
15552
+ }
15553
+ function UpdateWorkflowStatusRequestToJSON(json) {
15554
+ return UpdateWorkflowStatusRequestToJSONTyped(json, false);
15555
+ }
15556
+ function UpdateWorkflowStatusRequestToJSONTyped(value, ignoreDiscriminator = false) {
15557
+ if (value == null) {
15558
+ return value;
15559
+ }
15560
+ return {
15561
+ "status": WorkflowStatusToJSON(value["status"])
15562
+ };
15563
+ }
15564
+
15565
+ // src/src/models/UpdateWorkflowStepRequest.ts
15566
+ function instanceOfUpdateWorkflowStepRequest(value) {
15567
+ return true;
15568
+ }
15569
+ function UpdateWorkflowStepRequestFromJSON(json) {
15570
+ return UpdateWorkflowStepRequestFromJSONTyped(json, false);
15571
+ }
15572
+ function UpdateWorkflowStepRequestFromJSONTyped(json, ignoreDiscriminator) {
15573
+ if (json == null) {
15574
+ return json;
15575
+ }
15576
+ return {
15577
+ "name": json["name"] == null ? void 0 : json["name"],
15578
+ "config": json["config"] == null ? void 0 : json["config"]
15579
+ };
15580
+ }
15581
+ function UpdateWorkflowStepRequestToJSON(json) {
15582
+ return UpdateWorkflowStepRequestToJSONTyped(json, false);
15583
+ }
15584
+ function UpdateWorkflowStepRequestToJSONTyped(value, ignoreDiscriminator = false) {
15585
+ if (value == null) {
15586
+ return value;
15587
+ }
15588
+ return {
15589
+ "name": value["name"],
15590
+ "config": value["config"]
15591
+ };
15592
+ }
15593
+
15594
+ // src/src/models/UpsertSmsConfigRequest.ts
15595
+ function instanceOfUpsertSmsConfigRequest(value) {
15596
+ if (!("accountSid" in value) || value["accountSid"] === void 0) return false;
15597
+ if (!("authToken" in value) || value["authToken"] === void 0) return false;
15598
+ if (!("fromPhone" in value) || value["fromPhone"] === void 0) return false;
15599
+ return true;
15600
+ }
15601
+ function UpsertSmsConfigRequestFromJSON(json) {
15602
+ return UpsertSmsConfigRequestFromJSONTyped(json, false);
15603
+ }
15604
+ function UpsertSmsConfigRequestFromJSONTyped(json, ignoreDiscriminator) {
15605
+ if (json == null) {
15606
+ return json;
15607
+ }
15608
+ return {
15609
+ "accountSid": json["account_sid"],
15610
+ "authToken": json["auth_token"],
15611
+ "fromPhone": json["from_phone"],
15612
+ "messagingServiceSid": json["messaging_service_sid"] == null ? void 0 : json["messaging_service_sid"]
15613
+ };
15614
+ }
14786
15615
  function UpsertSmsConfigRequestToJSON(json) {
14787
15616
  return UpsertSmsConfigRequestToJSONTyped(json, false);
14788
15617
  }
@@ -14856,45 +15685,6 @@ function UserDevicesDeleteResponseToJSONTyped(value, ignoreDiscriminator = false
14856
15685
  };
14857
15686
  }
14858
15687
 
14859
- // src/src/models/V1MuseSubjectsSuggestPostRequest.ts
14860
- var V1MuseSubjectsSuggestPostRequestChannelEnum = {
14861
- EMAIL: "email",
14862
- PUSH: "push"
14863
- };
14864
- function instanceOfV1MuseSubjectsSuggestPostRequest(value) {
14865
- if (!("channel" in value) || value["channel"] === void 0) return false;
14866
- if (!("projectId" in value) || value["projectId"] === void 0) return false;
14867
- return true;
14868
- }
14869
- function V1MuseSubjectsSuggestPostRequestFromJSON(json) {
14870
- return V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, false);
14871
- }
14872
- function V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, ignoreDiscriminator) {
14873
- if (json == null) {
14874
- return json;
14875
- }
14876
- return {
14877
- "templateId": json["template_id"] == null ? void 0 : json["template_id"],
14878
- "templateBody": json["template_body"] == null ? void 0 : json["template_body"],
14879
- "channel": json["channel"],
14880
- "projectId": json["project_id"]
14881
- };
14882
- }
14883
- function V1MuseSubjectsSuggestPostRequestToJSON(json) {
14884
- return V1MuseSubjectsSuggestPostRequestToJSONTyped(json, false);
14885
- }
14886
- function V1MuseSubjectsSuggestPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
14887
- if (value == null) {
14888
- return value;
14889
- }
14890
- return {
14891
- "template_id": value["templateId"],
14892
- "template_body": value["templateBody"],
14893
- "channel": value["channel"],
14894
- "project_id": value["projectId"]
14895
- };
14896
- }
14897
-
14898
15688
  // src/src/models/ValidateResetTokenRequest.ts
14899
15689
  function instanceOfValidateResetTokenRequest(value) {
14900
15690
  if (!("token" in value) || value["token"] === void 0) return false;
@@ -19265,7 +20055,7 @@ var AuthRegistrationApi = class extends BaseAPI {
19265
20055
  return await response.value();
19266
20056
  }
19267
20057
  /**
19268
- * Exchange an Apple Game Center identity-verification assertion for a Zyphr end-user session. Zyphr independently re-verifies the assertion server-side (Apple certificate chain, RSA-SHA256 signature, timestamp freshness, single-use replay guard, and bundle-id binding) before provisioning-or-looking-up the user and minting tokens. The user is keyed on the modern scoped `playerId` (gamePlayerID). ## Producing the assertion (Integration) The assertion is produced **on-device by the iOS app** — there is no server-side way to mint it. The app calls GameKit\'s `GKLocalPlayer.fetchItems(forIdentityVerificationSignature:)`, which returns `publicKeyURL`, `signature`, `salt`, and `timestamp`; combine those with the local player\'s `gamePlayerID` and the app\'s bundle identifier and submit them here. Two integration shapes are supported: - **client-direct** — the iOS app holds the Zyphr application public key and calls this endpoint itself. - **backend-relayed** — the app forwards the fetched assertion fields to the customer\'s own backend, which relays them to this endpoint; the app never holds Zyphr keys. (This is the common shape for games.) On any verification failure the response is a single opaque `401` `invalid_assertion` — the specific control that failed is never disclosed.
20058
+ * Exchange an Apple Game Center identity-verification assertion for a Zyphr end-user session. Zyphr independently re-verifies the assertion server-side (Apple certificate chain, RSA-SHA256 signature, timestamp freshness, single-use replay guard, and bundle-id binding) before provisioning-or-looking-up the user and minting tokens. The user is keyed on the player\'s `teamPlayerID` (the id GameKit signs the assertion over). ## Producing the assertion (Integration) The assertion is produced **on-device by the iOS app** — there is no server-side way to mint it. The app calls GameKit\'s `GKLocalPlayer.fetchItems(forIdentityVerificationSignature:)`, which returns `publicKeyURL`, `signature`, `salt`, and `timestamp`; combine those with the local player\'s `teamPlayerID` (NOT `gamePlayerID`) and the app\'s bundle identifier and submit them here. Two integration shapes are supported: - **client-direct** — the iOS app holds the Zyphr application public key and calls this endpoint itself. - **backend-relayed** — the app forwards the fetched assertion fields to the customer\'s own backend, which relays them to this endpoint; the app never holds Zyphr keys. (This is the common shape for games.) On any verification failure the response is a single opaque `401` `invalid_assertion` — the specific control that failed is never disclosed.
19269
20059
  * Sign in with Apple Game Center
19270
20060
  */
19271
20061
  async signInWithGameCenterRaw(requestParameters, initOverrides) {
@@ -19291,7 +20081,7 @@ var AuthRegistrationApi = class extends BaseAPI {
19291
20081
  return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
19292
20082
  }
19293
20083
  /**
19294
- * Exchange an Apple Game Center identity-verification assertion for a Zyphr end-user session. Zyphr independently re-verifies the assertion server-side (Apple certificate chain, RSA-SHA256 signature, timestamp freshness, single-use replay guard, and bundle-id binding) before provisioning-or-looking-up the user and minting tokens. The user is keyed on the modern scoped `playerId` (gamePlayerID). ## Producing the assertion (Integration) The assertion is produced **on-device by the iOS app** — there is no server-side way to mint it. The app calls GameKit\'s `GKLocalPlayer.fetchItems(forIdentityVerificationSignature:)`, which returns `publicKeyURL`, `signature`, `salt`, and `timestamp`; combine those with the local player\'s `gamePlayerID` and the app\'s bundle identifier and submit them here. Two integration shapes are supported: - **client-direct** — the iOS app holds the Zyphr application public key and calls this endpoint itself. - **backend-relayed** — the app forwards the fetched assertion fields to the customer\'s own backend, which relays them to this endpoint; the app never holds Zyphr keys. (This is the common shape for games.) On any verification failure the response is a single opaque `401` `invalid_assertion` — the specific control that failed is never disclosed.
20084
+ * Exchange an Apple Game Center identity-verification assertion for a Zyphr end-user session. Zyphr independently re-verifies the assertion server-side (Apple certificate chain, RSA-SHA256 signature, timestamp freshness, single-use replay guard, and bundle-id binding) before provisioning-or-looking-up the user and minting tokens. The user is keyed on the player\'s `teamPlayerID` (the id GameKit signs the assertion over). ## Producing the assertion (Integration) The assertion is produced **on-device by the iOS app** — there is no server-side way to mint it. The app calls GameKit\'s `GKLocalPlayer.fetchItems(forIdentityVerificationSignature:)`, which returns `publicKeyURL`, `signature`, `salt`, and `timestamp`; combine those with the local player\'s `teamPlayerID` (NOT `gamePlayerID`) and the app\'s bundle identifier and submit them here. Two integration shapes are supported: - **client-direct** — the iOS app holds the Zyphr application public key and calls this endpoint itself. - **backend-relayed** — the app forwards the fetched assertion fields to the customer\'s own backend, which relays them to this endpoint; the app never holds Zyphr keys. (This is the common shape for games.) On any verification failure the response is a single opaque `401` `invalid_assertion` — the specific control that failed is never disclosed.
19295
20085
  * Sign in with Apple Game Center
19296
20086
  */
19297
20087
  async signInWithGameCenter(signInWithGameCenterRequest, initOverrides) {
@@ -21791,446 +22581,507 @@ var ListAllInboxStatusEnum = {
21791
22581
  ARCHIVED: "archived"
21792
22582
  };
21793
22583
 
21794
- // src/src/apis/MuseApi.ts
21795
- var MuseApi = class extends BaseAPI {
22584
+ // src/src/apis/PushApi.ts
22585
+ var PushApi = class extends BaseAPI {
21796
22586
  /**
21797
- * Returns Muse invocations for the caller\'s account, ordered by most recent first. The request_payload is the PII-scrubbed payload we record at call time; the response payload is NOT returned by this endpoint for size reasons (use the per-row detail endpoint when built).
21798
- * Paginated per-call audit log for Muse
22587
+ * Get a specific push notification message with delivery events.
22588
+ * Get push notification details
21799
22589
  */
21800
- async v1MuseAuditLogGetRaw(initOverrides) {
22590
+ async getPushRaw(requestParameters, initOverrides) {
22591
+ if (requestParameters["id"] == null) {
22592
+ throw new RequiredError(
22593
+ "id",
22594
+ 'Required parameter "id" was null or undefined when calling getPush().'
22595
+ );
22596
+ }
21801
22597
  const queryParameters = {};
21802
22598
  const headerParameters = {};
22599
+ if (this.configuration && this.configuration.apiKey) {
22600
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22601
+ }
21803
22602
  const response = await this.request({
21804
- path: `/v1/muse/audit-log`,
22603
+ path: `/push/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
21805
22604
  method: "GET",
21806
22605
  headers: headerParameters,
21807
22606
  query: queryParameters
21808
22607
  }, initOverrides);
21809
- return new VoidApiResponse(response);
22608
+ return new JSONApiResponse(response, (jsonValue) => PushDetailResponseFromJSON(jsonValue));
21810
22609
  }
21811
22610
  /**
21812
- * Returns Muse invocations for the caller\'s account, ordered by most recent first. The request_payload is the PII-scrubbed payload we record at call time; the response payload is NOT returned by this endpoint for size reasons (use the per-row detail endpoint when built).
21813
- * Paginated per-call audit log for Muse
22611
+ * Get a specific push notification message with delivery events.
22612
+ * Get push notification details
21814
22613
  */
21815
- async v1MuseAuditLogGet(initOverrides) {
21816
- await this.v1MuseAuditLogGetRaw(initOverrides);
22614
+ async getPush(id, initOverrides) {
22615
+ const response = await this.getPushRaw({ id }, initOverrides);
22616
+ return await response.value();
21817
22617
  }
21818
22618
  /**
21819
- * Streams Opus tokens then emits a structured advisory covering deliverability risks, frequency conflicts, audience warnings, send-time suggestions, and content notes — plus a single recommended_action so the dashboard can render a CTA without interpreting prose. Advisory is purely advisory — the platform does not block sends on AI output.
21820
- * Stream a pre-send advisory for a draft broadcast
22619
+ * Get aggregated push notification statistics for the account.
22620
+ * Get push notification statistics
21821
22621
  */
21822
- async v1MuseBroadcastsAnalyzePostRaw(initOverrides) {
22622
+ async getPushStatsRaw(initOverrides) {
21823
22623
  const queryParameters = {};
21824
22624
  const headerParameters = {};
22625
+ if (this.configuration && this.configuration.apiKey) {
22626
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22627
+ }
21825
22628
  const response = await this.request({
21826
- path: `/v1/muse/broadcasts/analyze`,
21827
- method: "POST",
22629
+ path: `/push/stats`,
22630
+ method: "GET",
21828
22631
  headers: headerParameters,
21829
22632
  query: queryParameters
21830
22633
  }, initOverrides);
21831
- return new VoidApiResponse(response);
22634
+ return new JSONApiResponse(response, (jsonValue) => PushStatsResponseFromJSON(jsonValue));
21832
22635
  }
21833
22636
  /**
21834
- * Streams Opus tokens then emits a structured advisory covering deliverability risks, frequency conflicts, audience warnings, send-time suggestions, and content notes — plus a single recommended_action so the dashboard can render a CTA without interpreting prose. Advisory is purely advisory — the platform does not block sends on AI output.
21835
- * Stream a pre-send advisory for a draft broadcast
22637
+ * Get aggregated push notification statistics for the account.
22638
+ * Get push notification statistics
21836
22639
  */
21837
- async v1MuseBroadcastsAnalyzePost(initOverrides) {
21838
- await this.v1MuseBroadcastsAnalyzePostRaw(initOverrides);
22640
+ async getPushStats(initOverrides) {
22641
+ const response = await this.getPushStatsRaw(initOverrides);
22642
+ return await response.value();
21839
22643
  }
21840
22644
  /**
21841
- * Returns whether the caller\'s account plan unlocks Zyphr Muse, the cheapest plan that would unlock it, and the monthly Bedrock spend cap for the current plan. Available to every authenticated caller (including free accounts).
21842
- * Return the current account\'s Zyphr Muse entitlement
22645
+ * Get all push notification topics a specific device is subscribed to.
22646
+ * List topics for a device
21843
22647
  */
21844
- async v1MuseEntitlementGetRaw(initOverrides) {
22648
+ async listDevicePushTopicsRaw(requestParameters, initOverrides) {
22649
+ if (requestParameters["id"] == null) {
22650
+ throw new RequiredError(
22651
+ "id",
22652
+ 'Required parameter "id" was null or undefined when calling listDevicePushTopics().'
22653
+ );
22654
+ }
21845
22655
  const queryParameters = {};
21846
22656
  const headerParameters = {};
22657
+ if (this.configuration && this.configuration.apiKey) {
22658
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22659
+ }
21847
22660
  const response = await this.request({
21848
- path: `/v1/muse/entitlement`,
22661
+ path: `/push/devices/{id}/topics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
21849
22662
  method: "GET",
21850
22663
  headers: headerParameters,
21851
22664
  query: queryParameters
21852
22665
  }, initOverrides);
21853
- return new VoidApiResponse(response);
22666
+ return new JSONApiResponse(response, (jsonValue) => DevicePushTopicListResponseFromJSON(jsonValue));
21854
22667
  }
21855
22668
  /**
21856
- * Returns whether the caller\'s account plan unlocks Zyphr Muse, the cheapest plan that would unlock it, and the monthly Bedrock spend cap for the current plan. Available to every authenticated caller (including free accounts).
21857
- * Return the current account\'s Zyphr Muse entitlement
22669
+ * Get all push notification topics a specific device is subscribed to.
22670
+ * List topics for a device
21858
22671
  */
21859
- async v1MuseEntitlementGet(initOverrides) {
21860
- await this.v1MuseEntitlementGetRaw(initOverrides);
22672
+ async listDevicePushTopics(id, initOverrides) {
22673
+ const response = await this.listDevicePushTopicsRaw({ id }, initOverrides);
22674
+ return await response.value();
21861
22675
  }
21862
22676
  /**
21863
- * Reads the committed baseline JSON files from src/services/muse/evals/baselines/ and returns them keyed by prompt name. Customers don\'t see this — it\'s for the internal Muse settings page / admin portal.
21864
- * Per-prompt eval baseline snapshots
22677
+ * List push notification messages for the account with optional filtering.
22678
+ * List push notifications
21865
22679
  */
21866
- async v1MuseEvalBaselinesGetRaw(initOverrides) {
22680
+ async listPushRaw(requestParameters, initOverrides) {
21867
22681
  const queryParameters = {};
22682
+ if (requestParameters["userId"] != null) {
22683
+ queryParameters["user_id"] = requestParameters["userId"];
22684
+ }
22685
+ if (requestParameters["deviceId"] != null) {
22686
+ queryParameters["device_id"] = requestParameters["deviceId"];
22687
+ }
22688
+ if (requestParameters["status"] != null) {
22689
+ queryParameters["status"] = requestParameters["status"];
22690
+ }
22691
+ if (requestParameters["limit"] != null) {
22692
+ queryParameters["limit"] = requestParameters["limit"];
22693
+ }
22694
+ if (requestParameters["offset"] != null) {
22695
+ queryParameters["offset"] = requestParameters["offset"];
22696
+ }
21868
22697
  const headerParameters = {};
22698
+ if (this.configuration && this.configuration.apiKey) {
22699
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22700
+ }
21869
22701
  const response = await this.request({
21870
- path: `/v1/muse/eval-baselines`,
22702
+ path: `/push`,
21871
22703
  method: "GET",
21872
22704
  headers: headerParameters,
21873
22705
  query: queryParameters
21874
22706
  }, initOverrides);
21875
- return new VoidApiResponse(response);
22707
+ return new JSONApiResponse(response, (jsonValue) => PushListResponseFromJSON(jsonValue));
21876
22708
  }
21877
22709
  /**
21878
- * Reads the committed baseline JSON files from src/services/muse/evals/baselines/ and returns them keyed by prompt name. Customers don\'t see this — it\'s for the internal Muse settings page / admin portal.
21879
- * Per-prompt eval baseline snapshots
22710
+ * List push notification messages for the account with optional filtering.
22711
+ * List push notifications
21880
22712
  */
21881
- async v1MuseEvalBaselinesGet(initOverrides) {
21882
- await this.v1MuseEvalBaselinesGetRaw(initOverrides);
22713
+ async listPush(userId, deviceId, status, limit, offset, initOverrides) {
22714
+ const response = await this.listPushRaw({ userId, deviceId, status, limit, offset }, initOverrides);
22715
+ return await response.value();
21883
22716
  }
21884
22717
  /**
21885
- * Returns the project\'s Muse settings (cap override, allowed roles, blocked tiers). If no row exists yet, returns synthesized defaults so the caller never sees a 404.
21886
- * Read Muse settings for a project
22718
+ * Get all devices subscribed to a push notification topic with pagination.
22719
+ * List devices subscribed to a topic
21887
22720
  */
21888
- async v1MuseSettingsProjectIdGetRaw(requestParameters, initOverrides) {
21889
- if (requestParameters["projectId"] == null) {
22721
+ async listPushTopicDevicesRaw(requestParameters, initOverrides) {
22722
+ if (requestParameters["key"] == null) {
21890
22723
  throw new RequiredError(
21891
- "projectId",
21892
- 'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdGet().'
22724
+ "key",
22725
+ 'Required parameter "key" was null or undefined when calling listPushTopicDevices().'
21893
22726
  );
21894
22727
  }
21895
22728
  const queryParameters = {};
22729
+ if (requestParameters["limit"] != null) {
22730
+ queryParameters["limit"] = requestParameters["limit"];
22731
+ }
22732
+ if (requestParameters["offset"] != null) {
22733
+ queryParameters["offset"] = requestParameters["offset"];
22734
+ }
21896
22735
  const headerParameters = {};
22736
+ if (this.configuration && this.configuration.apiKey) {
22737
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22738
+ }
21897
22739
  const response = await this.request({
21898
- path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
22740
+ path: `/push/topics/{key}/devices`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
21899
22741
  method: "GET",
21900
22742
  headers: headerParameters,
21901
22743
  query: queryParameters
21902
22744
  }, initOverrides);
21903
- return new VoidApiResponse(response);
22745
+ return new JSONApiResponse(response, (jsonValue) => PushTopicDeviceListResponseFromJSON(jsonValue));
21904
22746
  }
21905
22747
  /**
21906
- * Returns the project\'s Muse settings (cap override, allowed roles, blocked tiers). If no row exists yet, returns synthesized defaults so the caller never sees a 404.
21907
- * Read Muse settings for a project
22748
+ * Get all devices subscribed to a push notification topic with pagination.
22749
+ * List devices subscribed to a topic
21908
22750
  */
21909
- async v1MuseSettingsProjectIdGet(projectId, initOverrides) {
21910
- await this.v1MuseSettingsProjectIdGetRaw({ projectId }, initOverrides);
22751
+ async listPushTopicDevices(key, limit, offset, initOverrides) {
22752
+ const response = await this.listPushTopicDevicesRaw({ key, limit, offset }, initOverrides);
22753
+ return await response.value();
21911
22754
  }
21912
22755
  /**
21913
- * Partial update — any omitted field keeps its existing value. Pass `monthly_cap_usd_override: null` to clear an override. Requires project-level role admin or developer. Account owner/admin cascades.
21914
- * Update Muse settings for a project (admin or developer only)
22756
+ * Send a push notification to a specific device, multiple devices, all devices for a subscriber, or to a topic. Supports scheduling via `send_at` or `delay`.
22757
+ * Send a push notification
21915
22758
  */
21916
- async v1MuseSettingsProjectIdPatchRaw(requestParameters, initOverrides) {
21917
- if (requestParameters["projectId"] == null) {
22759
+ async sendPushRaw(requestParameters, initOverrides) {
22760
+ if (requestParameters["sendPushRequest"] == null) {
21918
22761
  throw new RequiredError(
21919
- "projectId",
21920
- 'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdPatch().'
22762
+ "sendPushRequest",
22763
+ 'Required parameter "sendPushRequest" was null or undefined when calling sendPush().'
21921
22764
  );
21922
22765
  }
21923
22766
  const queryParameters = {};
21924
22767
  const headerParameters = {};
22768
+ headerParameters["Content-Type"] = "application/json";
22769
+ if (this.configuration && this.configuration.apiKey) {
22770
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22771
+ }
21925
22772
  const response = await this.request({
21926
- path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
21927
- method: "PATCH",
22773
+ path: `/push`,
22774
+ method: "POST",
21928
22775
  headers: headerParameters,
21929
- query: queryParameters
22776
+ query: queryParameters,
22777
+ body: SendPushRequestToJSON(requestParameters["sendPushRequest"])
21930
22778
  }, initOverrides);
21931
- return new VoidApiResponse(response);
22779
+ return new JSONApiResponse(response, (jsonValue) => SendPushResponseFromJSON(jsonValue));
21932
22780
  }
21933
22781
  /**
21934
- * Partial update — any omitted field keeps its existing value. Pass `monthly_cap_usd_override: null` to clear an override. Requires project-level role admin or developer. Account owner/admin cascades.
21935
- * Update Muse settings for a project (admin or developer only)
22782
+ * Send a push notification to a specific device, multiple devices, all devices for a subscriber, or to a topic. Supports scheduling via `send_at` or `delay`.
22783
+ * Send a push notification
21936
22784
  */
21937
- async v1MuseSettingsProjectIdPatch(projectId, initOverrides) {
21938
- await this.v1MuseSettingsProjectIdPatchRaw({ projectId }, initOverrides);
22785
+ async sendPush(sendPushRequest, initOverrides) {
22786
+ const response = await this.sendPushRaw({ sendPushRequest }, initOverrides);
22787
+ return await response.value();
21939
22788
  }
21940
22789
  /**
21941
- * Suggest 5 ranked subject-line candidates for a template
22790
+ * Send a push notification to all devices subscribed to a topic.
22791
+ * Send push notification to a topic
21942
22792
  */
21943
- async v1MuseSubjectsSuggestPostRaw(requestParameters, initOverrides) {
21944
- if (requestParameters["v1MuseSubjectsSuggestPostRequest"] == null) {
22793
+ async sendPushToTopicRaw(requestParameters, initOverrides) {
22794
+ if (requestParameters["key"] == null) {
22795
+ throw new RequiredError(
22796
+ "key",
22797
+ 'Required parameter "key" was null or undefined when calling sendPushToTopic().'
22798
+ );
22799
+ }
22800
+ if (requestParameters["sendPushToTopicRequest"] == null) {
21945
22801
  throw new RequiredError(
21946
- "v1MuseSubjectsSuggestPostRequest",
21947
- 'Required parameter "v1MuseSubjectsSuggestPostRequest" was null or undefined when calling v1MuseSubjectsSuggestPost().'
22802
+ "sendPushToTopicRequest",
22803
+ 'Required parameter "sendPushToTopicRequest" was null or undefined when calling sendPushToTopic().'
21948
22804
  );
21949
22805
  }
21950
22806
  const queryParameters = {};
21951
22807
  const headerParameters = {};
21952
22808
  headerParameters["Content-Type"] = "application/json";
22809
+ if (this.configuration && this.configuration.apiKey) {
22810
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22811
+ }
21953
22812
  const response = await this.request({
21954
- path: `/v1/muse/subjects/suggest`,
22813
+ path: `/push/topics/{key}/send`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
21955
22814
  method: "POST",
21956
22815
  headers: headerParameters,
21957
22816
  query: queryParameters,
21958
- body: V1MuseSubjectsSuggestPostRequestToJSON(requestParameters["v1MuseSubjectsSuggestPostRequest"])
22817
+ body: SendPushToTopicRequestToJSON(requestParameters["sendPushToTopicRequest"])
21959
22818
  }, initOverrides);
21960
- return new VoidApiResponse(response);
22819
+ return new JSONApiResponse(response, (jsonValue) => SendPushToTopicResponseFromJSON(jsonValue));
21961
22820
  }
21962
22821
  /**
21963
- * Suggest 5 ranked subject-line candidates for a template
22822
+ * Send a push notification to all devices subscribed to a topic.
22823
+ * Send push notification to a topic
21964
22824
  */
21965
- async v1MuseSubjectsSuggestPost(v1MuseSubjectsSuggestPostRequest, initOverrides) {
21966
- await this.v1MuseSubjectsSuggestPostRaw({ v1MuseSubjectsSuggestPostRequest }, initOverrides);
22825
+ async sendPushToTopic(key, sendPushToTopicRequest, initOverrides) {
22826
+ const response = await this.sendPushToTopicRaw({ key, sendPushToTopicRequest }, initOverrides);
22827
+ return await response.value();
21967
22828
  }
21968
22829
  /**
21969
- * Stream a draft template from a natural-language brief
21970
- */
21971
- async v1MuseTemplatesDraftPostRaw(initOverrides) {
21972
- const queryParameters = {};
21973
- const headerParameters = {};
21974
- const response = await this.request({
21975
- path: `/v1/muse/templates/draft`,
21976
- method: "POST",
21977
- headers: headerParameters,
21978
- query: queryParameters
21979
- }, initOverrides);
21980
- return new VoidApiResponse(response);
21981
- }
21982
- /**
21983
- * Stream a draft template from a natural-language brief
21984
- */
21985
- async v1MuseTemplatesDraftPost(initOverrides) {
21986
- await this.v1MuseTemplatesDraftPostRaw(initOverrides);
21987
- }
21988
- /**
21989
- * Stream a rewritten block per the user\'s instruction
22830
+ * Subscribe one or more devices to a push notification topic. Maximum 100 devices per request.
22831
+ * Subscribe devices to a push topic
21990
22832
  */
21991
- async v1MuseTemplatesRewritePostRaw(initOverrides) {
22833
+ async subscribePushTopicRaw(requestParameters, initOverrides) {
22834
+ if (requestParameters["key"] == null) {
22835
+ throw new RequiredError(
22836
+ "key",
22837
+ 'Required parameter "key" was null or undefined when calling subscribePushTopic().'
22838
+ );
22839
+ }
22840
+ if (requestParameters["subscribePushTopicRequest"] == null) {
22841
+ throw new RequiredError(
22842
+ "subscribePushTopicRequest",
22843
+ 'Required parameter "subscribePushTopicRequest" was null or undefined when calling subscribePushTopic().'
22844
+ );
22845
+ }
21992
22846
  const queryParameters = {};
21993
22847
  const headerParameters = {};
22848
+ headerParameters["Content-Type"] = "application/json";
22849
+ if (this.configuration && this.configuration.apiKey) {
22850
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22851
+ }
21994
22852
  const response = await this.request({
21995
- path: `/v1/muse/templates/rewrite`,
22853
+ path: `/push/topics/{key}/subscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
21996
22854
  method: "POST",
21997
22855
  headers: headerParameters,
21998
- query: queryParameters
21999
- }, initOverrides);
22000
- return new VoidApiResponse(response);
22001
- }
22002
- /**
22003
- * Stream a rewritten block per the user\'s instruction
22004
- */
22005
- async v1MuseTemplatesRewritePost(initOverrides) {
22006
- await this.v1MuseTemplatesRewritePostRaw(initOverrides);
22007
- }
22008
- /**
22009
- * Current calendar-month spend, plan cap, soft warning tier, and breakdowns by action and model tier. Dashboard polls this for the budget meter; 60s edge-cached via Redis is reasonable but not enforced server-side (lightweight aggregate).
22010
- * Per-account Zyphr Muse usage + budget tier
22011
- */
22012
- async v1MuseUsageGetRaw(initOverrides) {
22013
- const queryParameters = {};
22014
- const headerParameters = {};
22015
- const response = await this.request({
22016
- path: `/v1/muse/usage`,
22017
- method: "GET",
22018
- headers: headerParameters,
22019
- query: queryParameters
22856
+ query: queryParameters,
22857
+ body: SubscribePushTopicRequestToJSON(requestParameters["subscribePushTopicRequest"])
22020
22858
  }, initOverrides);
22021
- return new VoidApiResponse(response);
22859
+ return new JSONApiResponse(response, (jsonValue) => PushTopicSubscribeResponseFromJSON(jsonValue));
22022
22860
  }
22023
22861
  /**
22024
- * Current calendar-month spend, plan cap, soft warning tier, and breakdowns by action and model tier. Dashboard polls this for the budget meter; 60s edge-cached via Redis is reasonable but not enforced server-side (lightweight aggregate).
22025
- * Per-account Zyphr Muse usage + budget tier
22862
+ * Subscribe one or more devices to a push notification topic. Maximum 100 devices per request.
22863
+ * Subscribe devices to a push topic
22026
22864
  */
22027
- async v1MuseUsageGet(initOverrides) {
22028
- await this.v1MuseUsageGetRaw(initOverrides);
22865
+ async subscribePushTopic(key, subscribePushTopicRequest, initOverrides) {
22866
+ const response = await this.subscribePushTopicRaw({ key, subscribePushTopicRequest }, initOverrides);
22867
+ return await response.value();
22029
22868
  }
22030
22869
  /**
22031
- * Streams Opus tokens then emits a fully-validated workflow JSON object (single root, no cycles, branch_path coherent, all step types valid). Channels referenced by the workflow must appear in the project\'s available_channels grounding; unsupported channels fall back to email via the prompt\'s hard rules.
22032
- * Stream a generated workflow from a natural-language description
22870
+ * Unsubscribe one or more devices from a push notification topic. Maximum 100 devices per request.
22871
+ * Unsubscribe devices from a push topic
22033
22872
  */
22034
- async v1MuseWorkflowsGeneratePostRaw(initOverrides) {
22873
+ async unsubscribePushTopicRaw(requestParameters, initOverrides) {
22874
+ if (requestParameters["key"] == null) {
22875
+ throw new RequiredError(
22876
+ "key",
22877
+ 'Required parameter "key" was null or undefined when calling unsubscribePushTopic().'
22878
+ );
22879
+ }
22880
+ if (requestParameters["subscribePushTopicRequest"] == null) {
22881
+ throw new RequiredError(
22882
+ "subscribePushTopicRequest",
22883
+ 'Required parameter "subscribePushTopicRequest" was null or undefined when calling unsubscribePushTopic().'
22884
+ );
22885
+ }
22035
22886
  const queryParameters = {};
22036
22887
  const headerParameters = {};
22888
+ headerParameters["Content-Type"] = "application/json";
22889
+ if (this.configuration && this.configuration.apiKey) {
22890
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22891
+ }
22037
22892
  const response = await this.request({
22038
- path: `/v1/muse/workflows/generate`,
22893
+ path: `/push/topics/{key}/unsubscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
22039
22894
  method: "POST",
22040
22895
  headers: headerParameters,
22041
- query: queryParameters
22896
+ query: queryParameters,
22897
+ body: SubscribePushTopicRequestToJSON(requestParameters["subscribePushTopicRequest"])
22042
22898
  }, initOverrides);
22043
- return new VoidApiResponse(response);
22899
+ return new JSONApiResponse(response, (jsonValue) => PushTopicUnsubscribeResponseFromJSON(jsonValue));
22044
22900
  }
22045
22901
  /**
22046
- * Streams Opus tokens then emits a fully-validated workflow JSON object (single root, no cycles, branch_path coherent, all step types valid). Channels referenced by the workflow must appear in the project\'s available_channels grounding; unsupported channels fall back to email via the prompt\'s hard rules.
22047
- * Stream a generated workflow from a natural-language description
22902
+ * Unsubscribe one or more devices from a push notification topic. Maximum 100 devices per request.
22903
+ * Unsubscribe devices from a push topic
22048
22904
  */
22049
- async v1MuseWorkflowsGeneratePost(initOverrides) {
22050
- await this.v1MuseWorkflowsGeneratePostRaw(initOverrides);
22905
+ async unsubscribePushTopic(key, subscribePushTopicRequest, initOverrides) {
22906
+ const response = await this.unsubscribePushTopicRaw({ key, subscribePushTopicRequest }, initOverrides);
22907
+ return await response.value();
22051
22908
  }
22052
22909
  };
22910
+ var ListPushStatusEnum = {
22911
+ PENDING: "pending",
22912
+ QUEUED: "queued",
22913
+ SENT: "sent",
22914
+ DELIVERED: "delivered",
22915
+ FAILED: "failed"
22916
+ };
22053
22917
 
22054
- // src/src/apis/PushApi.ts
22055
- var PushApi = class extends BaseAPI {
22918
+ // src/src/apis/SMSApi.ts
22919
+ var SMSApi = class extends BaseAPI {
22056
22920
  /**
22057
- * Get a specific push notification message with delivery events.
22058
- * Get push notification details
22921
+ * Remove the SMS provider configuration for the account.
22922
+ * Delete SMS configuration
22059
22923
  */
22060
- async getPushRaw(requestParameters, initOverrides) {
22061
- if (requestParameters["id"] == null) {
22062
- throw new RequiredError(
22063
- "id",
22064
- 'Required parameter "id" was null or undefined when calling getPush().'
22065
- );
22066
- }
22924
+ async deleteSmsConfigRaw(initOverrides) {
22067
22925
  const queryParameters = {};
22068
22926
  const headerParameters = {};
22069
22927
  if (this.configuration && this.configuration.apiKey) {
22070
22928
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22071
22929
  }
22072
22930
  const response = await this.request({
22073
- path: `/push/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22074
- method: "GET",
22931
+ path: `/sms/config`,
22932
+ method: "DELETE",
22075
22933
  headers: headerParameters,
22076
22934
  query: queryParameters
22077
22935
  }, initOverrides);
22078
- return new JSONApiResponse(response, (jsonValue) => PushDetailResponseFromJSON(jsonValue));
22936
+ return new JSONApiResponse(response, (jsonValue) => SmsConfigDeleteResponseFromJSON(jsonValue));
22079
22937
  }
22080
22938
  /**
22081
- * Get a specific push notification message with delivery events.
22082
- * Get push notification details
22939
+ * Remove the SMS provider configuration for the account.
22940
+ * Delete SMS configuration
22083
22941
  */
22084
- async getPush(id, initOverrides) {
22085
- const response = await this.getPushRaw({ id }, initOverrides);
22942
+ async deleteSmsConfig(initOverrides) {
22943
+ const response = await this.deleteSmsConfigRaw(initOverrides);
22086
22944
  return await response.value();
22087
22945
  }
22088
22946
  /**
22089
- * Get aggregated push notification statistics for the account.
22090
- * Get push notification statistics
22947
+ * Get detailed information about a specific SMS message.
22948
+ * Get SMS message details
22091
22949
  */
22092
- async getPushStatsRaw(initOverrides) {
22950
+ async getSmsRaw(requestParameters, initOverrides) {
22951
+ if (requestParameters["id"] == null) {
22952
+ throw new RequiredError(
22953
+ "id",
22954
+ 'Required parameter "id" was null or undefined when calling getSms().'
22955
+ );
22956
+ }
22093
22957
  const queryParameters = {};
22094
22958
  const headerParameters = {};
22095
22959
  if (this.configuration && this.configuration.apiKey) {
22096
22960
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22097
22961
  }
22098
22962
  const response = await this.request({
22099
- path: `/push/stats`,
22963
+ path: `/sms/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22100
22964
  method: "GET",
22101
22965
  headers: headerParameters,
22102
22966
  query: queryParameters
22103
22967
  }, initOverrides);
22104
- return new JSONApiResponse(response, (jsonValue) => PushStatsResponseFromJSON(jsonValue));
22968
+ return new JSONApiResponse(response, (jsonValue) => SmsDetailResponseFromJSON(jsonValue));
22105
22969
  }
22106
22970
  /**
22107
- * Get aggregated push notification statistics for the account.
22108
- * Get push notification statistics
22971
+ * Get detailed information about a specific SMS message.
22972
+ * Get SMS message details
22109
22973
  */
22110
- async getPushStats(initOverrides) {
22111
- const response = await this.getPushStatsRaw(initOverrides);
22974
+ async getSms(id, initOverrides) {
22975
+ const response = await this.getSmsRaw({ id }, initOverrides);
22112
22976
  return await response.value();
22113
22977
  }
22114
22978
  /**
22115
- * Get all push notification topics a specific device is subscribed to.
22116
- * List topics for a device
22979
+ * Get the current SMS provider configuration for the account.
22980
+ * Get SMS configuration
22117
22981
  */
22118
- async listDevicePushTopicsRaw(requestParameters, initOverrides) {
22119
- if (requestParameters["id"] == null) {
22120
- throw new RequiredError(
22121
- "id",
22122
- 'Required parameter "id" was null or undefined when calling listDevicePushTopics().'
22123
- );
22124
- }
22982
+ async getSmsConfigRaw(initOverrides) {
22125
22983
  const queryParameters = {};
22126
22984
  const headerParameters = {};
22127
22985
  if (this.configuration && this.configuration.apiKey) {
22128
22986
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22129
22987
  }
22130
22988
  const response = await this.request({
22131
- path: `/push/devices/{id}/topics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22989
+ path: `/sms/config`,
22132
22990
  method: "GET",
22133
22991
  headers: headerParameters,
22134
22992
  query: queryParameters
22135
22993
  }, initOverrides);
22136
- return new JSONApiResponse(response, (jsonValue) => DevicePushTopicListResponseFromJSON(jsonValue));
22994
+ return new JSONApiResponse(response, (jsonValue) => SmsConfigResponseFromJSON(jsonValue));
22137
22995
  }
22138
22996
  /**
22139
- * Get all push notification topics a specific device is subscribed to.
22140
- * List topics for a device
22997
+ * Get the current SMS provider configuration for the account.
22998
+ * Get SMS configuration
22141
22999
  */
22142
- async listDevicePushTopics(id, initOverrides) {
22143
- const response = await this.listDevicePushTopicsRaw({ id }, initOverrides);
23000
+ async getSmsConfig(initOverrides) {
23001
+ const response = await this.getSmsConfigRaw(initOverrides);
22144
23002
  return await response.value();
22145
23003
  }
22146
23004
  /**
22147
- * List push notification messages for the account with optional filtering.
22148
- * List push notifications
23005
+ * List SMS messages for the account with optional filtering and pagination.
23006
+ * List SMS messages
22149
23007
  */
22150
- async listPushRaw(requestParameters, initOverrides) {
23008
+ async listSmsRaw(requestParameters, initOverrides) {
22151
23009
  const queryParameters = {};
22152
- if (requestParameters["userId"] != null) {
22153
- queryParameters["user_id"] = requestParameters["userId"];
23010
+ if (requestParameters["page"] != null) {
23011
+ queryParameters["page"] = requestParameters["page"];
22154
23012
  }
22155
- if (requestParameters["deviceId"] != null) {
22156
- queryParameters["device_id"] = requestParameters["deviceId"];
23013
+ if (requestParameters["perPage"] != null) {
23014
+ queryParameters["per_page"] = requestParameters["perPage"];
22157
23015
  }
22158
23016
  if (requestParameters["status"] != null) {
22159
23017
  queryParameters["status"] = requestParameters["status"];
22160
23018
  }
22161
- if (requestParameters["limit"] != null) {
22162
- queryParameters["limit"] = requestParameters["limit"];
22163
- }
22164
- if (requestParameters["offset"] != null) {
22165
- queryParameters["offset"] = requestParameters["offset"];
23019
+ if (requestParameters["search"] != null) {
23020
+ queryParameters["search"] = requestParameters["search"];
22166
23021
  }
22167
23022
  const headerParameters = {};
22168
23023
  if (this.configuration && this.configuration.apiKey) {
22169
23024
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22170
23025
  }
22171
23026
  const response = await this.request({
22172
- path: `/push`,
23027
+ path: `/sms`,
22173
23028
  method: "GET",
22174
23029
  headers: headerParameters,
22175
23030
  query: queryParameters
22176
23031
  }, initOverrides);
22177
- return new JSONApiResponse(response, (jsonValue) => PushListResponseFromJSON(jsonValue));
23032
+ return new JSONApiResponse(response, (jsonValue) => SmsListResponseFromJSON(jsonValue));
22178
23033
  }
22179
23034
  /**
22180
- * List push notification messages for the account with optional filtering.
22181
- * List push notifications
23035
+ * List SMS messages for the account with optional filtering and pagination.
23036
+ * List SMS messages
22182
23037
  */
22183
- async listPush(userId, deviceId, status, limit, offset, initOverrides) {
22184
- const response = await this.listPushRaw({ userId, deviceId, status, limit, offset }, initOverrides);
23038
+ async listSms(page, perPage, status, search, initOverrides) {
23039
+ const response = await this.listSmsRaw({ page, perPage, status, search }, initOverrides);
22185
23040
  return await response.value();
22186
23041
  }
22187
23042
  /**
22188
- * Get all devices subscribed to a push notification topic with pagination.
22189
- * List devices subscribed to a topic
23043
+ * Send SMS messages to multiple recipients (up to 100) in a single request.
23044
+ * Send batch SMS messages
22190
23045
  */
22191
- async listPushTopicDevicesRaw(requestParameters, initOverrides) {
22192
- if (requestParameters["key"] == null) {
23046
+ async sendBatchSmsRaw(requestParameters, initOverrides) {
23047
+ if (requestParameters["sendBatchSmsRequest"] == null) {
22193
23048
  throw new RequiredError(
22194
- "key",
22195
- 'Required parameter "key" was null or undefined when calling listPushTopicDevices().'
23049
+ "sendBatchSmsRequest",
23050
+ 'Required parameter "sendBatchSmsRequest" was null or undefined when calling sendBatchSms().'
22196
23051
  );
22197
23052
  }
22198
23053
  const queryParameters = {};
22199
- if (requestParameters["limit"] != null) {
22200
- queryParameters["limit"] = requestParameters["limit"];
22201
- }
22202
- if (requestParameters["offset"] != null) {
22203
- queryParameters["offset"] = requestParameters["offset"];
22204
- }
22205
23054
  const headerParameters = {};
23055
+ headerParameters["Content-Type"] = "application/json";
22206
23056
  if (this.configuration && this.configuration.apiKey) {
22207
23057
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22208
23058
  }
22209
23059
  const response = await this.request({
22210
- path: `/push/topics/{key}/devices`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
22211
- method: "GET",
23060
+ path: `/sms/batch`,
23061
+ method: "POST",
22212
23062
  headers: headerParameters,
22213
- query: queryParameters
23063
+ query: queryParameters,
23064
+ body: SendBatchSmsRequestToJSON(requestParameters["sendBatchSmsRequest"])
22214
23065
  }, initOverrides);
22215
- return new JSONApiResponse(response, (jsonValue) => PushTopicDeviceListResponseFromJSON(jsonValue));
23066
+ return new JSONApiResponse(response, (jsonValue) => SendBatchSmsResponseFromJSON(jsonValue));
22216
23067
  }
22217
23068
  /**
22218
- * Get all devices subscribed to a push notification topic with pagination.
22219
- * List devices subscribed to a topic
23069
+ * Send SMS messages to multiple recipients (up to 100) in a single request.
23070
+ * Send batch SMS messages
22220
23071
  */
22221
- async listPushTopicDevices(key, limit, offset, initOverrides) {
22222
- const response = await this.listPushTopicDevicesRaw({ key, limit, offset }, initOverrides);
23072
+ async sendBatchSms(sendBatchSmsRequest, initOverrides) {
23073
+ const response = await this.sendBatchSmsRaw({ sendBatchSmsRequest }, initOverrides);
22223
23074
  return await response.value();
22224
23075
  }
22225
23076
  /**
22226
- * Send a push notification to a specific device, multiple devices, all devices for a subscriber, or to a topic. Supports scheduling via `send_at` or `delay`.
22227
- * Send a push notification
23077
+ * Send a single SMS text message. Supports subscriber preference checks and scheduling.
23078
+ * Send an SMS message
22228
23079
  */
22229
- async sendPushRaw(requestParameters, initOverrides) {
22230
- if (requestParameters["sendPushRequest"] == null) {
23080
+ async sendSmsRaw(requestParameters, initOverrides) {
23081
+ if (requestParameters["sendSmsRequest"] == null) {
22231
23082
  throw new RequiredError(
22232
- "sendPushRequest",
22233
- 'Required parameter "sendPushRequest" was null or undefined when calling sendPush().'
23083
+ "sendSmsRequest",
23084
+ 'Required parameter "sendSmsRequest" was null or undefined when calling sendSms().'
22234
23085
  );
22235
23086
  }
22236
23087
  const queryParameters = {};
@@ -22240,37 +23091,31 @@ var PushApi = class extends BaseAPI {
22240
23091
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22241
23092
  }
22242
23093
  const response = await this.request({
22243
- path: `/push`,
23094
+ path: `/sms`,
22244
23095
  method: "POST",
22245
23096
  headers: headerParameters,
22246
23097
  query: queryParameters,
22247
- body: SendPushRequestToJSON(requestParameters["sendPushRequest"])
23098
+ body: SendSmsRequestToJSON(requestParameters["sendSmsRequest"])
22248
23099
  }, initOverrides);
22249
- return new JSONApiResponse(response, (jsonValue) => SendPushResponseFromJSON(jsonValue));
23100
+ return new JSONApiResponse(response, (jsonValue) => SendSmsResponseFromJSON(jsonValue));
22250
23101
  }
22251
23102
  /**
22252
- * Send a push notification to a specific device, multiple devices, all devices for a subscriber, or to a topic. Supports scheduling via `send_at` or `delay`.
22253
- * Send a push notification
23103
+ * Send a single SMS text message. Supports subscriber preference checks and scheduling.
23104
+ * Send an SMS message
22254
23105
  */
22255
- async sendPush(sendPushRequest, initOverrides) {
22256
- const response = await this.sendPushRaw({ sendPushRequest }, initOverrides);
23106
+ async sendSms(sendSmsRequest, initOverrides) {
23107
+ const response = await this.sendSmsRaw({ sendSmsRequest }, initOverrides);
22257
23108
  return await response.value();
22258
23109
  }
22259
23110
  /**
22260
- * Send a push notification to all devices subscribed to a topic.
22261
- * Send push notification to a topic
23111
+ * Send a test SMS message to verify the provider configuration is working.
23112
+ * Send a test SMS
22262
23113
  */
22263
- async sendPushToTopicRaw(requestParameters, initOverrides) {
22264
- if (requestParameters["key"] == null) {
22265
- throw new RequiredError(
22266
- "key",
22267
- 'Required parameter "key" was null or undefined when calling sendPushToTopic().'
22268
- );
22269
- }
22270
- if (requestParameters["sendPushToTopicRequest"] == null) {
23114
+ async sendTestSmsRaw(requestParameters, initOverrides) {
23115
+ if (requestParameters["sendTestSmsRequest"] == null) {
22271
23116
  throw new RequiredError(
22272
- "sendPushToTopicRequest",
22273
- 'Required parameter "sendPushToTopicRequest" was null or undefined when calling sendPushToTopic().'
23117
+ "sendTestSmsRequest",
23118
+ 'Required parameter "sendTestSmsRequest" was null or undefined when calling sendTestSms().'
22274
23119
  );
22275
23120
  }
22276
23121
  const queryParameters = {};
@@ -22280,37 +23125,31 @@ var PushApi = class extends BaseAPI {
22280
23125
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22281
23126
  }
22282
23127
  const response = await this.request({
22283
- path: `/push/topics/{key}/send`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
23128
+ path: `/sms/test`,
22284
23129
  method: "POST",
22285
23130
  headers: headerParameters,
22286
23131
  query: queryParameters,
22287
- body: SendPushToTopicRequestToJSON(requestParameters["sendPushToTopicRequest"])
23132
+ body: SendTestSmsRequestToJSON(requestParameters["sendTestSmsRequest"])
22288
23133
  }, initOverrides);
22289
- return new JSONApiResponse(response, (jsonValue) => SendPushToTopicResponseFromJSON(jsonValue));
23134
+ return new JSONApiResponse(response, (jsonValue) => SendTestSmsResponseFromJSON(jsonValue));
22290
23135
  }
22291
23136
  /**
22292
- * Send a push notification to all devices subscribed to a topic.
22293
- * Send push notification to a topic
23137
+ * Send a test SMS message to verify the provider configuration is working.
23138
+ * Send a test SMS
22294
23139
  */
22295
- async sendPushToTopic(key, sendPushToTopicRequest, initOverrides) {
22296
- const response = await this.sendPushToTopicRaw({ key, sendPushToTopicRequest }, initOverrides);
23140
+ async sendTestSms(sendTestSmsRequest, initOverrides) {
23141
+ const response = await this.sendTestSmsRaw({ sendTestSmsRequest }, initOverrides);
22297
23142
  return await response.value();
22298
23143
  }
22299
23144
  /**
22300
- * Subscribe one or more devices to a push notification topic. Maximum 100 devices per request.
22301
- * Subscribe devices to a push topic
23145
+ * Set up or update the SMS provider configuration (Twilio) for the account. Automatically verifies credentials.
23146
+ * Create or update SMS configuration
22302
23147
  */
22303
- async subscribePushTopicRaw(requestParameters, initOverrides) {
22304
- if (requestParameters["key"] == null) {
22305
- throw new RequiredError(
22306
- "key",
22307
- 'Required parameter "key" was null or undefined when calling subscribePushTopic().'
22308
- );
22309
- }
22310
- if (requestParameters["subscribePushTopicRequest"] == null) {
23148
+ async upsertSmsConfigRaw(requestParameters, initOverrides) {
23149
+ if (requestParameters["upsertSmsConfigRequest"] == null) {
22311
23150
  throw new RequiredError(
22312
- "subscribePushTopicRequest",
22313
- 'Required parameter "subscribePushTopicRequest" was null or undefined when calling subscribePushTopic().'
23151
+ "upsertSmsConfigRequest",
23152
+ 'Required parameter "upsertSmsConfigRequest" was null or undefined when calling upsertSmsConfig().'
22314
23153
  );
22315
23154
  }
22316
23155
  const queryParameters = {};
@@ -22320,108 +23159,69 @@ var PushApi = class extends BaseAPI {
22320
23159
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22321
23160
  }
22322
23161
  const response = await this.request({
22323
- path: `/push/topics/{key}/subscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
23162
+ path: `/sms/config`,
22324
23163
  method: "POST",
22325
23164
  headers: headerParameters,
22326
23165
  query: queryParameters,
22327
- body: SubscribePushTopicRequestToJSON(requestParameters["subscribePushTopicRequest"])
23166
+ body: UpsertSmsConfigRequestToJSON(requestParameters["upsertSmsConfigRequest"])
22328
23167
  }, initOverrides);
22329
- return new JSONApiResponse(response, (jsonValue) => PushTopicSubscribeResponseFromJSON(jsonValue));
23168
+ return new JSONApiResponse(response, (jsonValue) => SmsConfigResponseFromJSON(jsonValue));
22330
23169
  }
22331
23170
  /**
22332
- * Subscribe one or more devices to a push notification topic. Maximum 100 devices per request.
22333
- * Subscribe devices to a push topic
23171
+ * Set up or update the SMS provider configuration (Twilio) for the account. Automatically verifies credentials.
23172
+ * Create or update SMS configuration
22334
23173
  */
22335
- async subscribePushTopic(key, subscribePushTopicRequest, initOverrides) {
22336
- const response = await this.subscribePushTopicRaw({ key, subscribePushTopicRequest }, initOverrides);
23174
+ async upsertSmsConfig(upsertSmsConfigRequest, initOverrides) {
23175
+ const response = await this.upsertSmsConfigRaw({ upsertSmsConfigRequest }, initOverrides);
22337
23176
  return await response.value();
22338
23177
  }
22339
23178
  /**
22340
- * Unsubscribe one or more devices from a push notification topic. Maximum 100 devices per request.
22341
- * Unsubscribe devices from a push topic
23179
+ * Verify the SMS provider credentials are valid and working.
23180
+ * Verify SMS configuration
22342
23181
  */
22343
- async unsubscribePushTopicRaw(requestParameters, initOverrides) {
22344
- if (requestParameters["key"] == null) {
22345
- throw new RequiredError(
22346
- "key",
22347
- 'Required parameter "key" was null or undefined when calling unsubscribePushTopic().'
22348
- );
22349
- }
22350
- if (requestParameters["subscribePushTopicRequest"] == null) {
22351
- throw new RequiredError(
22352
- "subscribePushTopicRequest",
22353
- 'Required parameter "subscribePushTopicRequest" was null or undefined when calling unsubscribePushTopic().'
22354
- );
22355
- }
23182
+ async verifySmsConfigRaw(initOverrides) {
22356
23183
  const queryParameters = {};
22357
23184
  const headerParameters = {};
22358
- headerParameters["Content-Type"] = "application/json";
22359
23185
  if (this.configuration && this.configuration.apiKey) {
22360
23186
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22361
23187
  }
22362
23188
  const response = await this.request({
22363
- path: `/push/topics/{key}/unsubscribe`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
23189
+ path: `/sms/config/verify`,
22364
23190
  method: "POST",
22365
23191
  headers: headerParameters,
22366
- query: queryParameters,
22367
- body: SubscribePushTopicRequestToJSON(requestParameters["subscribePushTopicRequest"])
23192
+ query: queryParameters
22368
23193
  }, initOverrides);
22369
- return new JSONApiResponse(response, (jsonValue) => PushTopicUnsubscribeResponseFromJSON(jsonValue));
23194
+ return new JSONApiResponse(response, (jsonValue) => VerifySmsConfigResponseFromJSON(jsonValue));
22370
23195
  }
22371
23196
  /**
22372
- * Unsubscribe one or more devices from a push notification topic. Maximum 100 devices per request.
22373
- * Unsubscribe devices from a push topic
23197
+ * Verify the SMS provider credentials are valid and working.
23198
+ * Verify SMS configuration
22374
23199
  */
22375
- async unsubscribePushTopic(key, subscribePushTopicRequest, initOverrides) {
22376
- const response = await this.unsubscribePushTopicRaw({ key, subscribePushTopicRequest }, initOverrides);
23200
+ async verifySmsConfig(initOverrides) {
23201
+ const response = await this.verifySmsConfigRaw(initOverrides);
22377
23202
  return await response.value();
22378
23203
  }
22379
23204
  };
22380
- var ListPushStatusEnum = {
22381
- PENDING: "pending",
23205
+ var ListSmsStatusEnum = {
22382
23206
  QUEUED: "queued",
23207
+ SENDING: "sending",
22383
23208
  SENT: "sent",
22384
23209
  DELIVERED: "delivered",
23210
+ UNDELIVERED: "undelivered",
22385
23211
  FAILED: "failed"
22386
23212
  };
22387
23213
 
22388
- // src/src/apis/SMSApi.ts
22389
- var SMSApi = class extends BaseAPI {
22390
- /**
22391
- * Remove the SMS provider configuration for the account.
22392
- * Delete SMS configuration
22393
- */
22394
- async deleteSmsConfigRaw(initOverrides) {
22395
- const queryParameters = {};
22396
- const headerParameters = {};
22397
- if (this.configuration && this.configuration.apiKey) {
22398
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22399
- }
22400
- const response = await this.request({
22401
- path: `/sms/config`,
22402
- method: "DELETE",
22403
- headers: headerParameters,
22404
- query: queryParameters
22405
- }, initOverrides);
22406
- return new JSONApiResponse(response, (jsonValue) => SmsConfigDeleteResponseFromJSON(jsonValue));
22407
- }
22408
- /**
22409
- * Remove the SMS provider configuration for the account.
22410
- * Delete SMS configuration
22411
- */
22412
- async deleteSmsConfig(initOverrides) {
22413
- const response = await this.deleteSmsConfigRaw(initOverrides);
22414
- return await response.value();
22415
- }
23214
+ // src/src/apis/SlackApi.ts
23215
+ var SlackApi = class extends BaseAPI {
22416
23216
  /**
22417
- * Get detailed information about a specific SMS message.
22418
- * Get SMS message details
23217
+ * Retrieve a single Slack message by ID, including its full block/attachment payload and status timestamps.
23218
+ * Get a Slack message
22419
23219
  */
22420
- async getSmsRaw(requestParameters, initOverrides) {
23220
+ async getSlackMessageRaw(requestParameters, initOverrides) {
22421
23221
  if (requestParameters["id"] == null) {
22422
23222
  throw new RequiredError(
22423
23223
  "id",
22424
- 'Required parameter "id" was null or undefined when calling getSms().'
23224
+ 'Required parameter "id" was null or undefined when calling getSlackMessage().'
22425
23225
  );
22426
23226
  }
22427
23227
  const queryParameters = {};
@@ -22430,94 +23230,71 @@ var SMSApi = class extends BaseAPI {
22430
23230
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22431
23231
  }
22432
23232
  const response = await this.request({
22433
- path: `/sms/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22434
- method: "GET",
22435
- headers: headerParameters,
22436
- query: queryParameters
22437
- }, initOverrides);
22438
- return new JSONApiResponse(response, (jsonValue) => SmsDetailResponseFromJSON(jsonValue));
22439
- }
22440
- /**
22441
- * Get detailed information about a specific SMS message.
22442
- * Get SMS message details
22443
- */
22444
- async getSms(id, initOverrides) {
22445
- const response = await this.getSmsRaw({ id }, initOverrides);
22446
- return await response.value();
22447
- }
22448
- /**
22449
- * Get the current SMS provider configuration for the account.
22450
- * Get SMS configuration
22451
- */
22452
- async getSmsConfigRaw(initOverrides) {
22453
- const queryParameters = {};
22454
- const headerParameters = {};
22455
- if (this.configuration && this.configuration.apiKey) {
22456
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22457
- }
22458
- const response = await this.request({
22459
- path: `/sms/config`,
23233
+ path: `/slack/messages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22460
23234
  method: "GET",
22461
23235
  headers: headerParameters,
22462
23236
  query: queryParameters
22463
23237
  }, initOverrides);
22464
- return new JSONApiResponse(response, (jsonValue) => SmsConfigResponseFromJSON(jsonValue));
23238
+ return new JSONApiResponse(response, (jsonValue) => SlackMessageResponseFromJSON(jsonValue));
22465
23239
  }
22466
23240
  /**
22467
- * Get the current SMS provider configuration for the account.
22468
- * Get SMS configuration
23241
+ * Retrieve a single Slack message by ID, including its full block/attachment payload and status timestamps.
23242
+ * Get a Slack message
22469
23243
  */
22470
- async getSmsConfig(initOverrides) {
22471
- const response = await this.getSmsConfigRaw(initOverrides);
23244
+ async getSlackMessage(id, initOverrides) {
23245
+ const response = await this.getSlackMessageRaw({ id }, initOverrides);
22472
23246
  return await response.value();
22473
23247
  }
22474
23248
  /**
22475
- * List SMS messages for the account with optional filtering and pagination.
22476
- * List SMS messages
23249
+ * List Slack messages sent through the project, with optional filtering by connection, channel, and status.
23250
+ * List Slack messages
22477
23251
  */
22478
- async listSmsRaw(requestParameters, initOverrides) {
23252
+ async listSlackMessagesRaw(requestParameters, initOverrides) {
22479
23253
  const queryParameters = {};
22480
- if (requestParameters["page"] != null) {
22481
- queryParameters["page"] = requestParameters["page"];
23254
+ if (requestParameters["connectionId"] != null) {
23255
+ queryParameters["connection_id"] = requestParameters["connectionId"];
22482
23256
  }
22483
- if (requestParameters["perPage"] != null) {
22484
- queryParameters["per_page"] = requestParameters["perPage"];
23257
+ if (requestParameters["channelId"] != null) {
23258
+ queryParameters["channel_id"] = requestParameters["channelId"];
22485
23259
  }
22486
23260
  if (requestParameters["status"] != null) {
22487
23261
  queryParameters["status"] = requestParameters["status"];
22488
23262
  }
22489
- if (requestParameters["search"] != null) {
22490
- queryParameters["search"] = requestParameters["search"];
23263
+ if (requestParameters["limit"] != null) {
23264
+ queryParameters["limit"] = requestParameters["limit"];
23265
+ }
23266
+ if (requestParameters["offset"] != null) {
23267
+ queryParameters["offset"] = requestParameters["offset"];
22491
23268
  }
22492
23269
  const headerParameters = {};
22493
23270
  if (this.configuration && this.configuration.apiKey) {
22494
23271
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22495
23272
  }
22496
23273
  const response = await this.request({
22497
- path: `/sms`,
23274
+ path: `/slack/messages`,
22498
23275
  method: "GET",
22499
23276
  headers: headerParameters,
22500
23277
  query: queryParameters
22501
23278
  }, initOverrides);
22502
- return new JSONApiResponse(response, (jsonValue) => SmsListResponseFromJSON(jsonValue));
23279
+ return new JSONApiResponse(response, (jsonValue) => SlackMessageListResponseFromJSON(jsonValue));
22503
23280
  }
22504
23281
  /**
22505
- * List SMS messages for the account with optional filtering and pagination.
22506
- * List SMS messages
23282
+ * List Slack messages sent through the project, with optional filtering by connection, channel, and status.
23283
+ * List Slack messages
22507
23284
  */
22508
- async listSms(page, perPage, status, search, initOverrides) {
22509
- const response = await this.listSmsRaw({ page, perPage, status, search }, initOverrides);
23285
+ async listSlackMessages(connectionId, channelId, status, limit, offset, initOverrides) {
23286
+ const response = await this.listSlackMessagesRaw({ connectionId, channelId, status, limit, offset }, initOverrides);
22510
23287
  return await response.value();
22511
23288
  }
22512
23289
  /**
22513
- * Send SMS messages to multiple recipients (up to 100) in a single request.
22514
- * Send batch SMS messages
23290
+ * 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.
23291
+ * Send a Slack message
22515
23292
  */
22516
- async sendBatchSmsRaw(requestParameters, initOverrides) {
22517
- if (requestParameters["sendBatchSmsRequest"] == null) {
23293
+ async sendSlackMessageRaw(requestParameters, initOverrides) {
23294
+ if (requestParameters["sendSlackMessageRequest"] == null) {
22518
23295
  throw new RequiredError(
22519
- "sendBatchSmsRequest",
22520
- 'Required parameter "sendBatchSmsRequest" was null or undefined when calling sendBatchSms().'
23296
+ "sendSlackMessageRequest",
23297
+ 'Required parameter "sendSlackMessageRequest" was null or undefined when calling sendSlackMessage().'
22521
23298
  );
22522
23299
  }
22523
23300
  const queryParameters = {};
@@ -22527,267 +23304,20 @@ var SMSApi = class extends BaseAPI {
22527
23304
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22528
23305
  }
22529
23306
  const response = await this.request({
22530
- path: `/sms/batch`,
23307
+ path: `/slack/send`,
22531
23308
  method: "POST",
22532
23309
  headers: headerParameters,
22533
23310
  query: queryParameters,
22534
- body: SendBatchSmsRequestToJSON(requestParameters["sendBatchSmsRequest"])
23311
+ body: SendSlackMessageRequestToJSON(requestParameters["sendSlackMessageRequest"])
22535
23312
  }, initOverrides);
22536
- return new JSONApiResponse(response, (jsonValue) => SendBatchSmsResponseFromJSON(jsonValue));
23313
+ return new JSONApiResponse(response, (jsonValue) => SendSlackMessageResponseFromJSON(jsonValue));
22537
23314
  }
22538
23315
  /**
22539
- * Send SMS messages to multiple recipients (up to 100) in a single request.
22540
- * Send batch SMS messages
23316
+ * 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.
23317
+ * Send a Slack message
22541
23318
  */
22542
- async sendBatchSms(sendBatchSmsRequest, initOverrides) {
22543
- const response = await this.sendBatchSmsRaw({ sendBatchSmsRequest }, initOverrides);
22544
- return await response.value();
22545
- }
22546
- /**
22547
- * Send a single SMS text message. Supports subscriber preference checks and scheduling.
22548
- * Send an SMS message
22549
- */
22550
- async sendSmsRaw(requestParameters, initOverrides) {
22551
- if (requestParameters["sendSmsRequest"] == null) {
22552
- throw new RequiredError(
22553
- "sendSmsRequest",
22554
- 'Required parameter "sendSmsRequest" was null or undefined when calling sendSms().'
22555
- );
22556
- }
22557
- const queryParameters = {};
22558
- const headerParameters = {};
22559
- headerParameters["Content-Type"] = "application/json";
22560
- if (this.configuration && this.configuration.apiKey) {
22561
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22562
- }
22563
- const response = await this.request({
22564
- path: `/sms`,
22565
- method: "POST",
22566
- headers: headerParameters,
22567
- query: queryParameters,
22568
- body: SendSmsRequestToJSON(requestParameters["sendSmsRequest"])
22569
- }, initOverrides);
22570
- return new JSONApiResponse(response, (jsonValue) => SendSmsResponseFromJSON(jsonValue));
22571
- }
22572
- /**
22573
- * Send a single SMS text message. Supports subscriber preference checks and scheduling.
22574
- * Send an SMS message
22575
- */
22576
- async sendSms(sendSmsRequest, initOverrides) {
22577
- const response = await this.sendSmsRaw({ sendSmsRequest }, initOverrides);
22578
- return await response.value();
22579
- }
22580
- /**
22581
- * Send a test SMS message to verify the provider configuration is working.
22582
- * Send a test SMS
22583
- */
22584
- async sendTestSmsRaw(requestParameters, initOverrides) {
22585
- if (requestParameters["sendTestSmsRequest"] == null) {
22586
- throw new RequiredError(
22587
- "sendTestSmsRequest",
22588
- 'Required parameter "sendTestSmsRequest" was null or undefined when calling sendTestSms().'
22589
- );
22590
- }
22591
- const queryParameters = {};
22592
- const headerParameters = {};
22593
- headerParameters["Content-Type"] = "application/json";
22594
- if (this.configuration && this.configuration.apiKey) {
22595
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22596
- }
22597
- const response = await this.request({
22598
- path: `/sms/test`,
22599
- method: "POST",
22600
- headers: headerParameters,
22601
- query: queryParameters,
22602
- body: SendTestSmsRequestToJSON(requestParameters["sendTestSmsRequest"])
22603
- }, initOverrides);
22604
- return new JSONApiResponse(response, (jsonValue) => SendTestSmsResponseFromJSON(jsonValue));
22605
- }
22606
- /**
22607
- * Send a test SMS message to verify the provider configuration is working.
22608
- * Send a test SMS
22609
- */
22610
- async sendTestSms(sendTestSmsRequest, initOverrides) {
22611
- const response = await this.sendTestSmsRaw({ sendTestSmsRequest }, initOverrides);
22612
- return await response.value();
22613
- }
22614
- /**
22615
- * Set up or update the SMS provider configuration (Twilio) for the account. Automatically verifies credentials.
22616
- * Create or update SMS configuration
22617
- */
22618
- async upsertSmsConfigRaw(requestParameters, initOverrides) {
22619
- if (requestParameters["upsertSmsConfigRequest"] == null) {
22620
- throw new RequiredError(
22621
- "upsertSmsConfigRequest",
22622
- 'Required parameter "upsertSmsConfigRequest" was null or undefined when calling upsertSmsConfig().'
22623
- );
22624
- }
22625
- const queryParameters = {};
22626
- const headerParameters = {};
22627
- headerParameters["Content-Type"] = "application/json";
22628
- if (this.configuration && this.configuration.apiKey) {
22629
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22630
- }
22631
- const response = await this.request({
22632
- path: `/sms/config`,
22633
- method: "POST",
22634
- headers: headerParameters,
22635
- query: queryParameters,
22636
- body: UpsertSmsConfigRequestToJSON(requestParameters["upsertSmsConfigRequest"])
22637
- }, initOverrides);
22638
- return new JSONApiResponse(response, (jsonValue) => SmsConfigResponseFromJSON(jsonValue));
22639
- }
22640
- /**
22641
- * Set up or update the SMS provider configuration (Twilio) for the account. Automatically verifies credentials.
22642
- * Create or update SMS configuration
22643
- */
22644
- async upsertSmsConfig(upsertSmsConfigRequest, initOverrides) {
22645
- const response = await this.upsertSmsConfigRaw({ upsertSmsConfigRequest }, initOverrides);
22646
- return await response.value();
22647
- }
22648
- /**
22649
- * Verify the SMS provider credentials are valid and working.
22650
- * Verify SMS configuration
22651
- */
22652
- async verifySmsConfigRaw(initOverrides) {
22653
- const queryParameters = {};
22654
- const headerParameters = {};
22655
- if (this.configuration && this.configuration.apiKey) {
22656
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22657
- }
22658
- const response = await this.request({
22659
- path: `/sms/config/verify`,
22660
- method: "POST",
22661
- headers: headerParameters,
22662
- query: queryParameters
22663
- }, initOverrides);
22664
- return new JSONApiResponse(response, (jsonValue) => VerifySmsConfigResponseFromJSON(jsonValue));
22665
- }
22666
- /**
22667
- * Verify the SMS provider credentials are valid and working.
22668
- * Verify SMS configuration
22669
- */
22670
- async verifySmsConfig(initOverrides) {
22671
- const response = await this.verifySmsConfigRaw(initOverrides);
22672
- return await response.value();
22673
- }
22674
- };
22675
- var ListSmsStatusEnum = {
22676
- QUEUED: "queued",
22677
- SENDING: "sending",
22678
- SENT: "sent",
22679
- DELIVERED: "delivered",
22680
- UNDELIVERED: "undelivered",
22681
- FAILED: "failed"
22682
- };
22683
-
22684
- // src/src/apis/SlackApi.ts
22685
- var SlackApi = class extends BaseAPI {
22686
- /**
22687
- * Retrieve a single Slack message by ID, including its full block/attachment payload and status timestamps.
22688
- * Get a Slack message
22689
- */
22690
- async getSlackMessageRaw(requestParameters, initOverrides) {
22691
- if (requestParameters["id"] == null) {
22692
- throw new RequiredError(
22693
- "id",
22694
- 'Required parameter "id" was null or undefined when calling getSlackMessage().'
22695
- );
22696
- }
22697
- const queryParameters = {};
22698
- const headerParameters = {};
22699
- if (this.configuration && this.configuration.apiKey) {
22700
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22701
- }
22702
- const response = await this.request({
22703
- path: `/slack/messages/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22704
- method: "GET",
22705
- headers: headerParameters,
22706
- query: queryParameters
22707
- }, initOverrides);
22708
- return new JSONApiResponse(response, (jsonValue) => SlackMessageResponseFromJSON(jsonValue));
22709
- }
22710
- /**
22711
- * Retrieve a single Slack message by ID, including its full block/attachment payload and status timestamps.
22712
- * Get a Slack message
22713
- */
22714
- async getSlackMessage(id, initOverrides) {
22715
- const response = await this.getSlackMessageRaw({ id }, initOverrides);
22716
- return await response.value();
22717
- }
22718
- /**
22719
- * List Slack messages sent through the project, with optional filtering by connection, channel, and status.
22720
- * List Slack messages
22721
- */
22722
- async listSlackMessagesRaw(requestParameters, initOverrides) {
22723
- const queryParameters = {};
22724
- if (requestParameters["connectionId"] != null) {
22725
- queryParameters["connection_id"] = requestParameters["connectionId"];
22726
- }
22727
- if (requestParameters["channelId"] != null) {
22728
- queryParameters["channel_id"] = requestParameters["channelId"];
22729
- }
22730
- if (requestParameters["status"] != null) {
22731
- queryParameters["status"] = requestParameters["status"];
22732
- }
22733
- if (requestParameters["limit"] != null) {
22734
- queryParameters["limit"] = requestParameters["limit"];
22735
- }
22736
- if (requestParameters["offset"] != null) {
22737
- queryParameters["offset"] = requestParameters["offset"];
22738
- }
22739
- const headerParameters = {};
22740
- if (this.configuration && this.configuration.apiKey) {
22741
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22742
- }
22743
- const response = await this.request({
22744
- path: `/slack/messages`,
22745
- method: "GET",
22746
- headers: headerParameters,
22747
- query: queryParameters
22748
- }, initOverrides);
22749
- return new JSONApiResponse(response, (jsonValue) => SlackMessageListResponseFromJSON(jsonValue));
22750
- }
22751
- /**
22752
- * List Slack messages sent through the project, with optional filtering by connection, channel, and status.
22753
- * List Slack messages
22754
- */
22755
- async listSlackMessages(connectionId, channelId, status, limit, offset, initOverrides) {
22756
- const response = await this.listSlackMessagesRaw({ connectionId, channelId, status, limit, offset }, initOverrides);
22757
- return await response.value();
22758
- }
22759
- /**
22760
- * 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.
22761
- * Send a Slack message
22762
- */
22763
- async sendSlackMessageRaw(requestParameters, initOverrides) {
22764
- if (requestParameters["sendSlackMessageRequest"] == null) {
22765
- throw new RequiredError(
22766
- "sendSlackMessageRequest",
22767
- 'Required parameter "sendSlackMessageRequest" was null or undefined when calling sendSlackMessage().'
22768
- );
22769
- }
22770
- const queryParameters = {};
22771
- const headerParameters = {};
22772
- headerParameters["Content-Type"] = "application/json";
22773
- if (this.configuration && this.configuration.apiKey) {
22774
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22775
- }
22776
- const response = await this.request({
22777
- path: `/slack/send`,
22778
- method: "POST",
22779
- headers: headerParameters,
22780
- query: queryParameters,
22781
- body: SendSlackMessageRequestToJSON(requestParameters["sendSlackMessageRequest"])
22782
- }, initOverrides);
22783
- return new JSONApiResponse(response, (jsonValue) => SendSlackMessageResponseFromJSON(jsonValue));
22784
- }
22785
- /**
22786
- * 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.
22787
- * Send a Slack message
22788
- */
22789
- async sendSlackMessage(sendSlackMessageRequest, initOverrides) {
22790
- const response = await this.sendSlackMessageRaw({ sendSlackMessageRequest }, initOverrides);
23319
+ async sendSlackMessage(sendSlackMessageRequest, initOverrides) {
23320
+ const response = await this.sendSlackMessageRaw({ sendSlackMessageRequest }, initOverrides);
22791
23321
  return await response.value();
22792
23322
  }
22793
23323
  };
@@ -25317,56 +25847,486 @@ var WebhooksApi = class extends BaseAPI {
25317
25847
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25318
25848
  }
25319
25849
  const response = await this.request({
25320
- path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25321
- method: "DELETE",
25850
+ path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25851
+ method: "DELETE",
25852
+ headers: headerParameters,
25853
+ query: queryParameters
25854
+ }, initOverrides);
25855
+ return new JSONApiResponse(response, (jsonValue) => WebhookDeleteResponseFromJSON(jsonValue));
25856
+ }
25857
+ /**
25858
+ * Delete a webhook and clean up associated circuit breaker, rate limit, and metrics state.
25859
+ * Delete webhook
25860
+ */
25861
+ async deleteWebhook(id, initOverrides) {
25862
+ const response = await this.deleteWebhookRaw({ id }, initOverrides);
25863
+ return await response.value();
25864
+ }
25865
+ /**
25866
+ * Get aggregate webhook health and performance metrics for the entire account.
25867
+ * Get account webhook metrics
25868
+ */
25869
+ async getAccountWebhookMetricsRaw(initOverrides) {
25870
+ const queryParameters = {};
25871
+ const headerParameters = {};
25872
+ if (this.configuration && this.configuration.apiKey) {
25873
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25874
+ }
25875
+ const response = await this.request({
25876
+ path: `/v1/webhooks/metrics`,
25877
+ method: "GET",
25878
+ headers: headerParameters,
25879
+ query: queryParameters
25880
+ }, initOverrides);
25881
+ return new JSONApiResponse(response, (jsonValue) => WebhookAccountMetricsResponseFromJSON(jsonValue));
25882
+ }
25883
+ /**
25884
+ * Get aggregate webhook health and performance metrics for the entire account.
25885
+ * Get account webhook metrics
25886
+ */
25887
+ async getAccountWebhookMetrics(initOverrides) {
25888
+ const response = await this.getAccountWebhookMetricsRaw(initOverrides);
25889
+ return await response.value();
25890
+ }
25891
+ /**
25892
+ * Get a specific webhook by ID.
25893
+ * Get webhook
25894
+ */
25895
+ async getWebhookRaw(requestParameters, initOverrides) {
25896
+ if (requestParameters["id"] == null) {
25897
+ throw new RequiredError(
25898
+ "id",
25899
+ 'Required parameter "id" was null or undefined when calling getWebhook().'
25900
+ );
25901
+ }
25902
+ const queryParameters = {};
25903
+ const headerParameters = {};
25904
+ if (this.configuration && this.configuration.apiKey) {
25905
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25906
+ }
25907
+ const response = await this.request({
25908
+ path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25909
+ method: "GET",
25910
+ headers: headerParameters,
25911
+ query: queryParameters
25912
+ }, initOverrides);
25913
+ return new JSONApiResponse(response, (jsonValue) => WebhookResponseFromJSON(jsonValue));
25914
+ }
25915
+ /**
25916
+ * Get a specific webhook by ID.
25917
+ * Get webhook
25918
+ */
25919
+ async getWebhook(id, initOverrides) {
25920
+ const response = await this.getWebhookRaw({ id }, initOverrides);
25921
+ return await response.value();
25922
+ }
25923
+ /**
25924
+ * Get the circuit breaker state for a webhook endpoint.
25925
+ * Get circuit breaker state
25926
+ */
25927
+ async getWebhookCircuitStateRaw(requestParameters, initOverrides) {
25928
+ if (requestParameters["id"] == null) {
25929
+ throw new RequiredError(
25930
+ "id",
25931
+ 'Required parameter "id" was null or undefined when calling getWebhookCircuitState().'
25932
+ );
25933
+ }
25934
+ const queryParameters = {};
25935
+ const headerParameters = {};
25936
+ if (this.configuration && this.configuration.apiKey) {
25937
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25938
+ }
25939
+ const response = await this.request({
25940
+ path: `/v1/webhooks/{id}/circuit`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25941
+ method: "GET",
25942
+ headers: headerParameters,
25943
+ query: queryParameters
25944
+ }, initOverrides);
25945
+ return new JSONApiResponse(response, (jsonValue) => WebhookCircuitStateResponseFromJSON(jsonValue));
25946
+ }
25947
+ /**
25948
+ * Get the circuit breaker state for a webhook endpoint.
25949
+ * Get circuit breaker state
25950
+ */
25951
+ async getWebhookCircuitState(id, initOverrides) {
25952
+ const response = await this.getWebhookCircuitStateRaw({ id }, initOverrides);
25953
+ return await response.value();
25954
+ }
25955
+ /**
25956
+ * Get a single delivery with full details including payload, headers, and response for debugging.
25957
+ * Get webhook delivery details
25958
+ */
25959
+ async getWebhookDeliveryRaw(requestParameters, initOverrides) {
25960
+ if (requestParameters["id"] == null) {
25961
+ throw new RequiredError(
25962
+ "id",
25963
+ 'Required parameter "id" was null or undefined when calling getWebhookDelivery().'
25964
+ );
25965
+ }
25966
+ if (requestParameters["deliveryId"] == null) {
25967
+ throw new RequiredError(
25968
+ "deliveryId",
25969
+ 'Required parameter "deliveryId" was null or undefined when calling getWebhookDelivery().'
25970
+ );
25971
+ }
25972
+ const queryParameters = {};
25973
+ const headerParameters = {};
25974
+ if (this.configuration && this.configuration.apiKey) {
25975
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25976
+ }
25977
+ const response = await this.request({
25978
+ path: `/v1/webhooks/{id}/deliveries/{deliveryId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
25979
+ method: "GET",
25980
+ headers: headerParameters,
25981
+ query: queryParameters
25982
+ }, initOverrides);
25983
+ return new JSONApiResponse(response, (jsonValue) => WebhookDeliveryResponseFromJSON(jsonValue));
25984
+ }
25985
+ /**
25986
+ * Get a single delivery with full details including payload, headers, and response for debugging.
25987
+ * Get webhook delivery details
25988
+ */
25989
+ async getWebhookDelivery(id, deliveryId, initOverrides) {
25990
+ const response = await this.getWebhookDeliveryRaw({ id, deliveryId }, initOverrides);
25991
+ return await response.value();
25992
+ }
25993
+ /**
25994
+ * Get static IP addresses used for webhook deliveries. Requires dedicated_ip plan feature (Scale/Enterprise).
25995
+ * Get static webhook IPs
25996
+ */
25997
+ async getWebhookIpsRaw(initOverrides) {
25998
+ const queryParameters = {};
25999
+ const headerParameters = {};
26000
+ if (this.configuration && this.configuration.apiKey) {
26001
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26002
+ }
26003
+ const response = await this.request({
26004
+ path: `/v1/webhooks/ips`,
26005
+ method: "GET",
26006
+ headers: headerParameters,
26007
+ query: queryParameters
26008
+ }, initOverrides);
26009
+ return new JSONApiResponse(response, (jsonValue) => WebhookIpsResponseFromJSON(jsonValue));
26010
+ }
26011
+ /**
26012
+ * Get static IP addresses used for webhook deliveries. Requires dedicated_ip plan feature (Scale/Enterprise).
26013
+ * Get static webhook IPs
26014
+ */
26015
+ async getWebhookIps(initOverrides) {
26016
+ const response = await this.getWebhookIpsRaw(initOverrides);
26017
+ return await response.value();
26018
+ }
26019
+ /**
26020
+ * Get the status of a replay or bulk retry job.
26021
+ * Get replay/retry job status
26022
+ */
26023
+ async getWebhookJobRaw(requestParameters, initOverrides) {
26024
+ if (requestParameters["jobId"] == null) {
26025
+ throw new RequiredError(
26026
+ "jobId",
26027
+ 'Required parameter "jobId" was null or undefined when calling getWebhookJob().'
26028
+ );
26029
+ }
26030
+ const queryParameters = {};
26031
+ const headerParameters = {};
26032
+ if (this.configuration && this.configuration.apiKey) {
26033
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26034
+ }
26035
+ const response = await this.request({
26036
+ path: `/v1/webhooks/jobs/{jobId}`.replace(`{${"jobId"}}`, encodeURIComponent(String(requestParameters["jobId"]))),
26037
+ method: "GET",
26038
+ headers: headerParameters,
26039
+ query: queryParameters
26040
+ }, initOverrides);
26041
+ return new JSONApiResponse(response, (jsonValue) => WebhookJobResponseFromJSON(jsonValue));
26042
+ }
26043
+ /**
26044
+ * Get the status of a replay or bulk retry job.
26045
+ * Get replay/retry job status
26046
+ */
26047
+ async getWebhookJob(jobId, initOverrides) {
26048
+ const response = await this.getWebhookJobRaw({ jobId }, initOverrides);
26049
+ return await response.value();
26050
+ }
26051
+ /**
26052
+ * Get health and performance metrics for a specific webhook endpoint.
26053
+ * Get webhook health metrics
26054
+ */
26055
+ async getWebhookMetricsRaw(requestParameters, initOverrides) {
26056
+ if (requestParameters["id"] == null) {
26057
+ throw new RequiredError(
26058
+ "id",
26059
+ 'Required parameter "id" was null or undefined when calling getWebhookMetrics().'
26060
+ );
26061
+ }
26062
+ const queryParameters = {};
26063
+ const headerParameters = {};
26064
+ if (this.configuration && this.configuration.apiKey) {
26065
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26066
+ }
26067
+ const response = await this.request({
26068
+ path: `/v1/webhooks/{id}/metrics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
26069
+ method: "GET",
26070
+ headers: headerParameters,
26071
+ query: queryParameters
26072
+ }, initOverrides);
26073
+ return new JSONApiResponse(response, (jsonValue) => WebhookMetricsResponseFromJSON(jsonValue));
26074
+ }
26075
+ /**
26076
+ * Get health and performance metrics for a specific webhook endpoint.
26077
+ * Get webhook health metrics
26078
+ */
26079
+ async getWebhookMetrics(id, initOverrides) {
26080
+ const response = await this.getWebhookMetricsRaw({ id }, initOverrides);
26081
+ return await response.value();
26082
+ }
26083
+ /**
26084
+ * Get available webhook delivery regions. Requires multi_region plan feature (Enterprise only).
26085
+ * Get available webhook regions
26086
+ */
26087
+ async getWebhookRegionsRaw(initOverrides) {
26088
+ const queryParameters = {};
26089
+ const headerParameters = {};
26090
+ if (this.configuration && this.configuration.apiKey) {
26091
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26092
+ }
26093
+ const response = await this.request({
26094
+ path: `/v1/webhooks/regions`,
26095
+ method: "GET",
26096
+ headers: headerParameters,
26097
+ query: queryParameters
26098
+ }, initOverrides);
26099
+ return new JSONApiResponse(response, (jsonValue) => WebhookRegionsResponseFromJSON(jsonValue));
26100
+ }
26101
+ /**
26102
+ * Get available webhook delivery regions. Requires multi_region plan feature (Enterprise only).
26103
+ * Get available webhook regions
26104
+ */
26105
+ async getWebhookRegions(initOverrides) {
26106
+ const response = await this.getWebhookRegionsRaw(initOverrides);
26107
+ return await response.value();
26108
+ }
26109
+ /**
26110
+ * Get webhook delivery usage statistics for the current billing period.
26111
+ * Get webhook usage metrics
26112
+ */
26113
+ async getWebhookUsageRaw(initOverrides) {
26114
+ const queryParameters = {};
26115
+ const headerParameters = {};
26116
+ if (this.configuration && this.configuration.apiKey) {
26117
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26118
+ }
26119
+ const response = await this.request({
26120
+ path: `/v1/webhooks/usage`,
26121
+ method: "GET",
26122
+ headers: headerParameters,
26123
+ query: queryParameters
26124
+ }, initOverrides);
26125
+ return new JSONApiResponse(response, (jsonValue) => WebhookUsageResponseFromJSON(jsonValue));
26126
+ }
26127
+ /**
26128
+ * Get webhook delivery usage statistics for the current billing period.
26129
+ * Get webhook usage metrics
26130
+ */
26131
+ async getWebhookUsage(initOverrides) {
26132
+ const response = await this.getWebhookUsageRaw(initOverrides);
26133
+ return await response.value();
26134
+ }
26135
+ /**
26136
+ * List delivery attempts for a webhook with filtering and pagination.
26137
+ * List webhook deliveries
26138
+ */
26139
+ async listWebhookDeliveriesRaw(requestParameters, initOverrides) {
26140
+ if (requestParameters["id"] == null) {
26141
+ throw new RequiredError(
26142
+ "id",
26143
+ 'Required parameter "id" was null or undefined when calling listWebhookDeliveries().'
26144
+ );
26145
+ }
26146
+ const queryParameters = {};
26147
+ if (requestParameters["status"] != null) {
26148
+ queryParameters["status"] = requestParameters["status"];
26149
+ }
26150
+ if (requestParameters["eventType"] != null) {
26151
+ queryParameters["event_type"] = requestParameters["eventType"];
26152
+ }
26153
+ if (requestParameters["search"] != null) {
26154
+ queryParameters["search"] = requestParameters["search"];
26155
+ }
26156
+ if (requestParameters["startDate"] != null) {
26157
+ queryParameters["start_date"] = requestParameters["startDate"].toISOString();
26158
+ }
26159
+ if (requestParameters["endDate"] != null) {
26160
+ queryParameters["end_date"] = requestParameters["endDate"].toISOString();
26161
+ }
26162
+ if (requestParameters["limit"] != null) {
26163
+ queryParameters["limit"] = requestParameters["limit"];
26164
+ }
26165
+ if (requestParameters["offset"] != null) {
26166
+ queryParameters["offset"] = requestParameters["offset"];
26167
+ }
26168
+ const headerParameters = {};
26169
+ if (this.configuration && this.configuration.apiKey) {
26170
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26171
+ }
26172
+ const response = await this.request({
26173
+ path: `/v1/webhooks/{id}/deliveries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
26174
+ method: "GET",
26175
+ headers: headerParameters,
26176
+ query: queryParameters
26177
+ }, initOverrides);
26178
+ return new JSONApiResponse(response, (jsonValue) => WebhookDeliveryListResponseFromJSON(jsonValue));
26179
+ }
26180
+ /**
26181
+ * List delivery attempts for a webhook with filtering and pagination.
26182
+ * List webhook deliveries
26183
+ */
26184
+ async listWebhookDeliveries(id, status, eventType, search, startDate, endDate, limit, offset, initOverrides) {
26185
+ const response = await this.listWebhookDeliveriesRaw({ id, status, eventType, search, startDate, endDate, limit, offset }, initOverrides);
26186
+ return await response.value();
26187
+ }
26188
+ /**
26189
+ * List available webhook event types with full registry information. Optionally filter by category.
26190
+ * List webhook event types
26191
+ */
26192
+ async listWebhookEventTypesRaw(requestParameters, initOverrides) {
26193
+ const queryParameters = {};
26194
+ if (requestParameters["category"] != null) {
26195
+ queryParameters["category"] = requestParameters["category"];
26196
+ }
26197
+ const headerParameters = {};
26198
+ if (this.configuration && this.configuration.apiKey) {
26199
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26200
+ }
26201
+ const response = await this.request({
26202
+ path: `/v1/webhooks/events`,
26203
+ method: "GET",
26204
+ headers: headerParameters,
26205
+ query: queryParameters
26206
+ }, initOverrides);
26207
+ return new JSONApiResponse(response, (jsonValue) => WebhookEventTypesResponseFromJSON(jsonValue));
26208
+ }
26209
+ /**
26210
+ * List available webhook event types with full registry information. Optionally filter by category.
26211
+ * List webhook event types
26212
+ */
26213
+ async listWebhookEventTypes(category, initOverrides) {
26214
+ const response = await this.listWebhookEventTypesRaw({ category }, initOverrides);
26215
+ return await response.value();
26216
+ }
26217
+ /**
26218
+ * List available webhook API versions with changelog and deprecation info.
26219
+ * List webhook API versions
26220
+ */
26221
+ async listWebhookVersionsRaw(initOverrides) {
26222
+ const queryParameters = {};
26223
+ const headerParameters = {};
26224
+ if (this.configuration && this.configuration.apiKey) {
26225
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26226
+ }
26227
+ const response = await this.request({
26228
+ path: `/v1/webhooks/versions`,
26229
+ method: "GET",
26230
+ headers: headerParameters,
26231
+ query: queryParameters
26232
+ }, initOverrides);
26233
+ return new JSONApiResponse(response, (jsonValue) => WebhookVersionsResponseFromJSON(jsonValue));
26234
+ }
26235
+ /**
26236
+ * List available webhook API versions with changelog and deprecation info.
26237
+ * List webhook API versions
26238
+ */
26239
+ async listWebhookVersions(initOverrides) {
26240
+ const response = await this.listWebhookVersionsRaw(initOverrides);
26241
+ return await response.value();
26242
+ }
26243
+ /**
26244
+ * List all webhooks for the account with pagination.
26245
+ * List webhooks
26246
+ */
26247
+ async listWebhooksRaw(requestParameters, initOverrides) {
26248
+ const queryParameters = {};
26249
+ if (requestParameters["limit"] != null) {
26250
+ queryParameters["limit"] = requestParameters["limit"];
26251
+ }
26252
+ if (requestParameters["offset"] != null) {
26253
+ queryParameters["offset"] = requestParameters["offset"];
26254
+ }
26255
+ const headerParameters = {};
26256
+ if (this.configuration && this.configuration.apiKey) {
26257
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26258
+ }
26259
+ const response = await this.request({
26260
+ path: `/v1/webhooks`,
26261
+ method: "GET",
25322
26262
  headers: headerParameters,
25323
26263
  query: queryParameters
25324
26264
  }, initOverrides);
25325
- return new JSONApiResponse(response, (jsonValue) => WebhookDeleteResponseFromJSON(jsonValue));
26265
+ return new JSONApiResponse(response, (jsonValue) => WebhookListResponseFromJSON(jsonValue));
25326
26266
  }
25327
26267
  /**
25328
- * Delete a webhook and clean up associated circuit breaker, rate limit, and metrics state.
25329
- * Delete webhook
26268
+ * List all webhooks for the account with pagination.
26269
+ * List webhooks
25330
26270
  */
25331
- async deleteWebhook(id, initOverrides) {
25332
- const response = await this.deleteWebhookRaw({ id }, initOverrides);
26271
+ async listWebhooks(limit, offset, initOverrides) {
26272
+ const response = await this.listWebhooksRaw({ limit, offset }, initOverrides);
25333
26273
  return await response.value();
25334
26274
  }
25335
26275
  /**
25336
- * Get aggregate webhook health and performance metrics for the entire account.
25337
- * Get account webhook metrics
26276
+ * Replay events for a webhook within a date range. Creates an asynchronous job that re-delivers matching events.
26277
+ * Replay webhook events
25338
26278
  */
25339
- async getAccountWebhookMetricsRaw(initOverrides) {
26279
+ async replayWebhookEventsRaw(requestParameters, initOverrides) {
26280
+ if (requestParameters["id"] == null) {
26281
+ throw new RequiredError(
26282
+ "id",
26283
+ 'Required parameter "id" was null or undefined when calling replayWebhookEvents().'
26284
+ );
26285
+ }
26286
+ if (requestParameters["replayWebhookEventsRequest"] == null) {
26287
+ throw new RequiredError(
26288
+ "replayWebhookEventsRequest",
26289
+ 'Required parameter "replayWebhookEventsRequest" was null or undefined when calling replayWebhookEvents().'
26290
+ );
26291
+ }
25340
26292
  const queryParameters = {};
25341
26293
  const headerParameters = {};
26294
+ headerParameters["Content-Type"] = "application/json";
25342
26295
  if (this.configuration && this.configuration.apiKey) {
25343
26296
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25344
26297
  }
25345
26298
  const response = await this.request({
25346
- path: `/v1/webhooks/metrics`,
25347
- method: "GET",
26299
+ path: `/v1/webhooks/{id}/replay`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
26300
+ method: "POST",
25348
26301
  headers: headerParameters,
25349
- query: queryParameters
26302
+ query: queryParameters,
26303
+ body: ReplayWebhookEventsRequestToJSON(requestParameters["replayWebhookEventsRequest"])
25350
26304
  }, initOverrides);
25351
- return new JSONApiResponse(response, (jsonValue) => WebhookAccountMetricsResponseFromJSON(jsonValue));
26305
+ return new JSONApiResponse(response, (jsonValue) => WebhookReplayResponseFromJSON(jsonValue));
25352
26306
  }
25353
26307
  /**
25354
- * Get aggregate webhook health and performance metrics for the entire account.
25355
- * Get account webhook metrics
26308
+ * Replay events for a webhook within a date range. Creates an asynchronous job that re-delivers matching events.
26309
+ * Replay webhook events
25356
26310
  */
25357
- async getAccountWebhookMetrics(initOverrides) {
25358
- const response = await this.getAccountWebhookMetricsRaw(initOverrides);
26311
+ async replayWebhookEvents(id, replayWebhookEventsRequest, initOverrides) {
26312
+ const response = await this.replayWebhookEventsRaw({ id, replayWebhookEventsRequest }, initOverrides);
25359
26313
  return await response.value();
25360
26314
  }
25361
26315
  /**
25362
- * Get a specific webhook by ID.
25363
- * Get webhook
26316
+ * Retry a failed or exhausted webhook delivery. Only deliveries with status \'failed\' or \'exhausted\' can be retried.
26317
+ * Retry webhook delivery
25364
26318
  */
25365
- async getWebhookRaw(requestParameters, initOverrides) {
26319
+ async retryWebhookDeliveryRaw(requestParameters, initOverrides) {
25366
26320
  if (requestParameters["id"] == null) {
25367
26321
  throw new RequiredError(
25368
26322
  "id",
25369
- 'Required parameter "id" was null or undefined when calling getWebhook().'
26323
+ 'Required parameter "id" was null or undefined when calling retryWebhookDelivery().'
26324
+ );
26325
+ }
26326
+ if (requestParameters["deliveryId"] == null) {
26327
+ throw new RequiredError(
26328
+ "deliveryId",
26329
+ 'Required parameter "deliveryId" was null or undefined when calling retryWebhookDelivery().'
25370
26330
  );
25371
26331
  }
25372
26332
  const queryParameters = {};
@@ -25375,30 +26335,30 @@ var WebhooksApi = class extends BaseAPI {
25375
26335
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25376
26336
  }
25377
26337
  const response = await this.request({
25378
- path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25379
- method: "GET",
26338
+ path: `/v1/webhooks/{id}/deliveries/{deliveryId}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
26339
+ method: "POST",
25380
26340
  headers: headerParameters,
25381
26341
  query: queryParameters
25382
26342
  }, initOverrides);
25383
- return new JSONApiResponse(response, (jsonValue) => WebhookResponseFromJSON(jsonValue));
26343
+ return new JSONApiResponse(response, (jsonValue) => WebhookDeliveryRetryResponseFromJSON(jsonValue));
25384
26344
  }
25385
26345
  /**
25386
- * Get a specific webhook by ID.
25387
- * Get webhook
26346
+ * Retry a failed or exhausted webhook delivery. Only deliveries with status \'failed\' or \'exhausted\' can be retried.
26347
+ * Retry webhook delivery
25388
26348
  */
25389
- async getWebhook(id, initOverrides) {
25390
- const response = await this.getWebhookRaw({ id }, initOverrides);
26349
+ async retryWebhookDelivery(id, deliveryId, initOverrides) {
26350
+ const response = await this.retryWebhookDeliveryRaw({ id, deliveryId }, initOverrides);
25391
26351
  return await response.value();
25392
26352
  }
25393
26353
  /**
25394
- * Get the circuit breaker state for a webhook endpoint.
25395
- * Get circuit breaker state
26354
+ * Rotate the signing secret for a webhook. The new secret is only returned once.
26355
+ * Rotate webhook secret
25396
26356
  */
25397
- async getWebhookCircuitStateRaw(requestParameters, initOverrides) {
26357
+ async rotateWebhookSecretRaw(requestParameters, initOverrides) {
25398
26358
  if (requestParameters["id"] == null) {
25399
26359
  throw new RequiredError(
25400
26360
  "id",
25401
- 'Required parameter "id" was null or undefined when calling getWebhookCircuitState().'
26361
+ 'Required parameter "id" was null or undefined when calling rotateWebhookSecret().'
25402
26362
  );
25403
26363
  }
25404
26364
  const queryParameters = {};
@@ -25407,356 +26367,413 @@ var WebhooksApi = class extends BaseAPI {
25407
26367
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25408
26368
  }
25409
26369
  const response = await this.request({
25410
- path: `/v1/webhooks/{id}/circuit`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25411
- method: "GET",
26370
+ path: `/v1/webhooks/{id}/rotate-secret`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
26371
+ method: "POST",
25412
26372
  headers: headerParameters,
25413
26373
  query: queryParameters
25414
26374
  }, initOverrides);
25415
- return new JSONApiResponse(response, (jsonValue) => WebhookCircuitStateResponseFromJSON(jsonValue));
26375
+ return new JSONApiResponse(response, (jsonValue) => WebhookSecretRotateResponseFromJSON(jsonValue));
25416
26376
  }
25417
26377
  /**
25418
- * Get the circuit breaker state for a webhook endpoint.
25419
- * Get circuit breaker state
26378
+ * Rotate the signing secret for a webhook. The new secret is only returned once.
26379
+ * Rotate webhook secret
25420
26380
  */
25421
- async getWebhookCircuitState(id, initOverrides) {
25422
- const response = await this.getWebhookCircuitStateRaw({ id }, initOverrides);
26381
+ async rotateWebhookSecret(id, initOverrides) {
26382
+ const response = await this.rotateWebhookSecretRaw({ id }, initOverrides);
25423
26383
  return await response.value();
25424
26384
  }
25425
26385
  /**
25426
- * Get a single delivery with full details including payload, headers, and response for debugging.
25427
- * Get webhook delivery details
26386
+ * Send a test event to the webhook endpoint. Accepts optional event_type and custom payload.
26387
+ * Send test event
25428
26388
  */
25429
- async getWebhookDeliveryRaw(requestParameters, initOverrides) {
26389
+ async sendWebhookTestEventRaw(requestParameters, initOverrides) {
25430
26390
  if (requestParameters["id"] == null) {
25431
26391
  throw new RequiredError(
25432
26392
  "id",
25433
- 'Required parameter "id" was null or undefined when calling getWebhookDelivery().'
25434
- );
25435
- }
25436
- if (requestParameters["deliveryId"] == null) {
25437
- throw new RequiredError(
25438
- "deliveryId",
25439
- 'Required parameter "deliveryId" was null or undefined when calling getWebhookDelivery().'
26393
+ 'Required parameter "id" was null or undefined when calling sendWebhookTestEvent().'
25440
26394
  );
25441
26395
  }
25442
26396
  const queryParameters = {};
25443
26397
  const headerParameters = {};
26398
+ headerParameters["Content-Type"] = "application/json";
25444
26399
  if (this.configuration && this.configuration.apiKey) {
25445
26400
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25446
26401
  }
25447
26402
  const response = await this.request({
25448
- path: `/v1/webhooks/{id}/deliveries/{deliveryId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
25449
- method: "GET",
26403
+ path: `/v1/webhooks/{id}/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
26404
+ method: "POST",
25450
26405
  headers: headerParameters,
25451
- query: queryParameters
26406
+ query: queryParameters,
26407
+ body: SendWebhookTestEventRequestToJSON(requestParameters["sendWebhookTestEventRequest"])
25452
26408
  }, initOverrides);
25453
- return new JSONApiResponse(response, (jsonValue) => WebhookDeliveryResponseFromJSON(jsonValue));
26409
+ return new JSONApiResponse(response, (jsonValue) => WebhookTestEventResponseFromJSON(jsonValue));
25454
26410
  }
25455
26411
  /**
25456
- * Get a single delivery with full details including payload, headers, and response for debugging.
25457
- * Get webhook delivery details
26412
+ * Send a test event to the webhook endpoint. Accepts optional event_type and custom payload.
26413
+ * Send test event
25458
26414
  */
25459
- async getWebhookDelivery(id, deliveryId, initOverrides) {
25460
- const response = await this.getWebhookDeliveryRaw({ id, deliveryId }, initOverrides);
26415
+ async sendWebhookTestEvent(id, sendWebhookTestEventRequest, initOverrides) {
26416
+ const response = await this.sendWebhookTestEventRaw({ id, sendWebhookTestEventRequest }, initOverrides);
25461
26417
  return await response.value();
25462
26418
  }
25463
26419
  /**
25464
- * Get static IP addresses used for webhook deliveries. Requires dedicated_ip plan feature (Scale/Enterprise).
25465
- * Get static webhook IPs
26420
+ * Preview how a payload would be transformed by the webhook\'s transformation rules without actually delivering.
26421
+ * Test payload transformation
25466
26422
  */
25467
- async getWebhookIpsRaw(initOverrides) {
26423
+ async testWebhookTransformRaw(requestParameters, initOverrides) {
26424
+ if (requestParameters["id"] == null) {
26425
+ throw new RequiredError(
26426
+ "id",
26427
+ 'Required parameter "id" was null or undefined when calling testWebhookTransform().'
26428
+ );
26429
+ }
26430
+ if (requestParameters["testWebhookTransformRequest"] == null) {
26431
+ throw new RequiredError(
26432
+ "testWebhookTransformRequest",
26433
+ 'Required parameter "testWebhookTransformRequest" was null or undefined when calling testWebhookTransform().'
26434
+ );
26435
+ }
25468
26436
  const queryParameters = {};
25469
26437
  const headerParameters = {};
26438
+ headerParameters["Content-Type"] = "application/json";
25470
26439
  if (this.configuration && this.configuration.apiKey) {
25471
26440
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25472
26441
  }
25473
26442
  const response = await this.request({
25474
- path: `/v1/webhooks/ips`,
25475
- method: "GET",
26443
+ path: `/v1/webhooks/{id}/transform/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
26444
+ method: "POST",
25476
26445
  headers: headerParameters,
25477
- query: queryParameters
26446
+ query: queryParameters,
26447
+ body: TestWebhookTransformRequestToJSON(requestParameters["testWebhookTransformRequest"])
25478
26448
  }, initOverrides);
25479
- return new JSONApiResponse(response, (jsonValue) => WebhookIpsResponseFromJSON(jsonValue));
26449
+ return new JSONApiResponse(response, (jsonValue) => WebhookTransformTestResponseFromJSON(jsonValue));
25480
26450
  }
25481
26451
  /**
25482
- * Get static IP addresses used for webhook deliveries. Requires dedicated_ip plan feature (Scale/Enterprise).
25483
- * Get static webhook IPs
26452
+ * Preview how a payload would be transformed by the webhook\'s transformation rules without actually delivering.
26453
+ * Test payload transformation
25484
26454
  */
25485
- async getWebhookIps(initOverrides) {
25486
- const response = await this.getWebhookIpsRaw(initOverrides);
26455
+ async testWebhookTransform(id, testWebhookTransformRequest, initOverrides) {
26456
+ const response = await this.testWebhookTransformRaw({ id, testWebhookTransformRequest }, initOverrides);
25487
26457
  return await response.value();
25488
26458
  }
25489
26459
  /**
25490
- * Get the status of a replay or bulk retry job.
25491
- * Get replay/retry job status
26460
+ * Update an existing webhook configuration.
26461
+ * Update webhook
25492
26462
  */
25493
- async getWebhookJobRaw(requestParameters, initOverrides) {
25494
- if (requestParameters["jobId"] == null) {
26463
+ async updateWebhookRaw(requestParameters, initOverrides) {
26464
+ if (requestParameters["id"] == null) {
25495
26465
  throw new RequiredError(
25496
- "jobId",
25497
- 'Required parameter "jobId" was null or undefined when calling getWebhookJob().'
26466
+ "id",
26467
+ 'Required parameter "id" was null or undefined when calling updateWebhook().'
26468
+ );
26469
+ }
26470
+ if (requestParameters["updateWebhookRequest"] == null) {
26471
+ throw new RequiredError(
26472
+ "updateWebhookRequest",
26473
+ 'Required parameter "updateWebhookRequest" was null or undefined when calling updateWebhook().'
25498
26474
  );
25499
26475
  }
25500
26476
  const queryParameters = {};
25501
26477
  const headerParameters = {};
26478
+ headerParameters["Content-Type"] = "application/json";
25502
26479
  if (this.configuration && this.configuration.apiKey) {
25503
26480
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25504
26481
  }
25505
26482
  const response = await this.request({
25506
- path: `/v1/webhooks/jobs/{jobId}`.replace(`{${"jobId"}}`, encodeURIComponent(String(requestParameters["jobId"]))),
25507
- method: "GET",
26483
+ path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
26484
+ method: "PUT",
25508
26485
  headers: headerParameters,
25509
- query: queryParameters
26486
+ query: queryParameters,
26487
+ body: UpdateWebhookRequestToJSON(requestParameters["updateWebhookRequest"])
25510
26488
  }, initOverrides);
25511
- return new JSONApiResponse(response, (jsonValue) => WebhookJobResponseFromJSON(jsonValue));
26489
+ return new JSONApiResponse(response, (jsonValue) => WebhookResponseFromJSON(jsonValue));
25512
26490
  }
25513
26491
  /**
25514
- * Get the status of a replay or bulk retry job.
25515
- * Get replay/retry job status
26492
+ * Update an existing webhook configuration.
26493
+ * Update webhook
25516
26494
  */
25517
- async getWebhookJob(jobId, initOverrides) {
25518
- const response = await this.getWebhookJobRaw({ jobId }, initOverrides);
26495
+ async updateWebhook(id, updateWebhookRequest, initOverrides) {
26496
+ const response = await this.updateWebhookRaw({ id, updateWebhookRequest }, initOverrides);
25519
26497
  return await response.value();
25520
26498
  }
26499
+ };
26500
+ var ListWebhookDeliveriesStatusEnum = {
26501
+ PENDING: "pending",
26502
+ DELIVERING: "delivering",
26503
+ DELIVERED: "delivered",
26504
+ FAILED: "failed",
26505
+ EXHAUSTED: "exhausted"
26506
+ };
26507
+
26508
+ // src/src/apis/WorkflowsApi.ts
26509
+ var WorkflowsApi = class extends BaseAPI {
25521
26510
  /**
25522
- * Get health and performance metrics for a specific webhook endpoint.
25523
- * Get webhook health metrics
26511
+ * Append a step to a workflow. Channel steps (`email`, `push`, `sms`, `in_app`, `slack`, `discord`, `teams`) carry message content in `config`; `delay` steps carry `{ amount, unit }`; `branch` steps carry `{ conditions }`.
26512
+ * Add a workflow step
25524
26513
  */
25525
- async getWebhookMetricsRaw(requestParameters, initOverrides) {
25526
- if (requestParameters["id"] == null) {
26514
+ async addWorkflowStepRaw(requestParameters, initOverrides) {
26515
+ if (requestParameters["key"] == null) {
25527
26516
  throw new RequiredError(
25528
- "id",
25529
- 'Required parameter "id" was null or undefined when calling getWebhookMetrics().'
26517
+ "key",
26518
+ 'Required parameter "key" was null or undefined when calling addWorkflowStep().'
26519
+ );
26520
+ }
26521
+ if (requestParameters["addWorkflowStepRequest"] == null) {
26522
+ throw new RequiredError(
26523
+ "addWorkflowStepRequest",
26524
+ 'Required parameter "addWorkflowStepRequest" was null or undefined when calling addWorkflowStep().'
25530
26525
  );
25531
26526
  }
25532
26527
  const queryParameters = {};
25533
26528
  const headerParameters = {};
26529
+ headerParameters["Content-Type"] = "application/json";
25534
26530
  if (this.configuration && this.configuration.apiKey) {
25535
26531
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25536
26532
  }
25537
26533
  const response = await this.request({
25538
- path: `/v1/webhooks/{id}/metrics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25539
- method: "GET",
26534
+ path: `/workflows/{key}/steps`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26535
+ method: "POST",
25540
26536
  headers: headerParameters,
25541
- query: queryParameters
26537
+ query: queryParameters,
26538
+ body: AddWorkflowStepRequestToJSON(requestParameters["addWorkflowStepRequest"])
25542
26539
  }, initOverrides);
25543
- return new JSONApiResponse(response, (jsonValue) => WebhookMetricsResponseFromJSON(jsonValue));
26540
+ return new JSONApiResponse(response, (jsonValue) => AddWorkflowStep201ResponseFromJSON(jsonValue));
25544
26541
  }
25545
26542
  /**
25546
- * Get health and performance metrics for a specific webhook endpoint.
25547
- * Get webhook health metrics
26543
+ * Append a step to a workflow. Channel steps (`email`, `push`, `sms`, `in_app`, `slack`, `discord`, `teams`) carry message content in `config`; `delay` steps carry `{ amount, unit }`; `branch` steps carry `{ conditions }`.
26544
+ * Add a workflow step
25548
26545
  */
25549
- async getWebhookMetrics(id, initOverrides) {
25550
- const response = await this.getWebhookMetricsRaw({ id }, initOverrides);
26546
+ async addWorkflowStep(key, addWorkflowStepRequest, initOverrides) {
26547
+ const response = await this.addWorkflowStepRaw({ key, addWorkflowStepRequest }, initOverrides);
25551
26548
  return await response.value();
25552
26549
  }
25553
26550
  /**
25554
- * Get available webhook delivery regions. Requires multi_region plan feature (Enterprise only).
25555
- * Get available webhook regions
26551
+ * Create a new notification workflow. A workflow is a named, multi-step notification sequence identified by a unique `key` within the project. If `key` is omitted, one is derived from the `name`.
26552
+ * Create a workflow
25556
26553
  */
25557
- async getWebhookRegionsRaw(initOverrides) {
26554
+ async createWorkflowRaw(requestParameters, initOverrides) {
26555
+ if (requestParameters["createWorkflowRequest"] == null) {
26556
+ throw new RequiredError(
26557
+ "createWorkflowRequest",
26558
+ 'Required parameter "createWorkflowRequest" was null or undefined when calling createWorkflow().'
26559
+ );
26560
+ }
25558
26561
  const queryParameters = {};
25559
26562
  const headerParameters = {};
26563
+ headerParameters["Content-Type"] = "application/json";
25560
26564
  if (this.configuration && this.configuration.apiKey) {
25561
26565
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25562
26566
  }
25563
26567
  const response = await this.request({
25564
- path: `/v1/webhooks/regions`,
25565
- method: "GET",
26568
+ path: `/workflows`,
26569
+ method: "POST",
25566
26570
  headers: headerParameters,
25567
- query: queryParameters
26571
+ query: queryParameters,
26572
+ body: CreateWorkflowRequestToJSON(requestParameters["createWorkflowRequest"])
25568
26573
  }, initOverrides);
25569
- return new JSONApiResponse(response, (jsonValue) => WebhookRegionsResponseFromJSON(jsonValue));
26574
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
25570
26575
  }
25571
26576
  /**
25572
- * Get available webhook delivery regions. Requires multi_region plan feature (Enterprise only).
25573
- * Get available webhook regions
26577
+ * Create a new notification workflow. A workflow is a named, multi-step notification sequence identified by a unique `key` within the project. If `key` is omitted, one is derived from the `name`.
26578
+ * Create a workflow
25574
26579
  */
25575
- async getWebhookRegions(initOverrides) {
25576
- const response = await this.getWebhookRegionsRaw(initOverrides);
26580
+ async createWorkflow(createWorkflowRequest, initOverrides) {
26581
+ const response = await this.createWorkflowRaw({ createWorkflowRequest }, initOverrides);
25577
26582
  return await response.value();
25578
26583
  }
25579
26584
  /**
25580
- * Get webhook delivery usage statistics for the current billing period.
25581
- * Get webhook usage metrics
26585
+ * Permanently delete a workflow and all of its steps.
26586
+ * Delete a workflow
25582
26587
  */
25583
- async getWebhookUsageRaw(initOverrides) {
26588
+ async deleteWorkflowRaw(requestParameters, initOverrides) {
26589
+ if (requestParameters["key"] == null) {
26590
+ throw new RequiredError(
26591
+ "key",
26592
+ 'Required parameter "key" was null or undefined when calling deleteWorkflow().'
26593
+ );
26594
+ }
25584
26595
  const queryParameters = {};
25585
26596
  const headerParameters = {};
25586
26597
  if (this.configuration && this.configuration.apiKey) {
25587
26598
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25588
26599
  }
25589
26600
  const response = await this.request({
25590
- path: `/v1/webhooks/usage`,
25591
- method: "GET",
26601
+ path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26602
+ method: "DELETE",
25592
26603
  headers: headerParameters,
25593
26604
  query: queryParameters
25594
26605
  }, initOverrides);
25595
- return new JSONApiResponse(response, (jsonValue) => WebhookUsageResponseFromJSON(jsonValue));
26606
+ return new JSONApiResponse(response, (jsonValue) => DeleteWorkflow200ResponseFromJSON(jsonValue));
25596
26607
  }
25597
26608
  /**
25598
- * Get webhook delivery usage statistics for the current billing period.
25599
- * Get webhook usage metrics
26609
+ * Permanently delete a workflow and all of its steps.
26610
+ * Delete a workflow
25600
26611
  */
25601
- async getWebhookUsage(initOverrides) {
25602
- const response = await this.getWebhookUsageRaw(initOverrides);
26612
+ async deleteWorkflow(key, initOverrides) {
26613
+ const response = await this.deleteWorkflowRaw({ key }, initOverrides);
25603
26614
  return await response.value();
25604
26615
  }
25605
26616
  /**
25606
- * List delivery attempts for a webhook with filtering and pagination.
25607
- * List webhook deliveries
26617
+ * Remove a step from a workflow.
26618
+ * Delete a workflow step
25608
26619
  */
25609
- async listWebhookDeliveriesRaw(requestParameters, initOverrides) {
25610
- if (requestParameters["id"] == null) {
26620
+ async deleteWorkflowStepRaw(requestParameters, initOverrides) {
26621
+ if (requestParameters["key"] == null) {
25611
26622
  throw new RequiredError(
25612
- "id",
25613
- 'Required parameter "id" was null or undefined when calling listWebhookDeliveries().'
26623
+ "key",
26624
+ 'Required parameter "key" was null or undefined when calling deleteWorkflowStep().'
25614
26625
  );
25615
26626
  }
25616
- const queryParameters = {};
25617
- if (requestParameters["status"] != null) {
25618
- queryParameters["status"] = requestParameters["status"];
25619
- }
25620
- if (requestParameters["eventType"] != null) {
25621
- queryParameters["event_type"] = requestParameters["eventType"];
25622
- }
25623
- if (requestParameters["search"] != null) {
25624
- queryParameters["search"] = requestParameters["search"];
25625
- }
25626
- if (requestParameters["startDate"] != null) {
25627
- queryParameters["start_date"] = requestParameters["startDate"].toISOString();
25628
- }
25629
- if (requestParameters["endDate"] != null) {
25630
- queryParameters["end_date"] = requestParameters["endDate"].toISOString();
25631
- }
25632
- if (requestParameters["limit"] != null) {
25633
- queryParameters["limit"] = requestParameters["limit"];
25634
- }
25635
- if (requestParameters["offset"] != null) {
25636
- queryParameters["offset"] = requestParameters["offset"];
26627
+ if (requestParameters["stepKey"] == null) {
26628
+ throw new RequiredError(
26629
+ "stepKey",
26630
+ 'Required parameter "stepKey" was null or undefined when calling deleteWorkflowStep().'
26631
+ );
25637
26632
  }
26633
+ const queryParameters = {};
25638
26634
  const headerParameters = {};
25639
26635
  if (this.configuration && this.configuration.apiKey) {
25640
26636
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25641
26637
  }
25642
26638
  const response = await this.request({
25643
- path: `/v1/webhooks/{id}/deliveries`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25644
- method: "GET",
26639
+ path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
26640
+ method: "DELETE",
25645
26641
  headers: headerParameters,
25646
26642
  query: queryParameters
25647
26643
  }, initOverrides);
25648
- return new JSONApiResponse(response, (jsonValue) => WebhookDeliveryListResponseFromJSON(jsonValue));
26644
+ return new JSONApiResponse(response, (jsonValue) => DeleteWorkflowStep200ResponseFromJSON(jsonValue));
25649
26645
  }
25650
26646
  /**
25651
- * List delivery attempts for a webhook with filtering and pagination.
25652
- * List webhook deliveries
26647
+ * Remove a step from a workflow.
26648
+ * Delete a workflow step
25653
26649
  */
25654
- async listWebhookDeliveries(id, status, eventType, search, startDate, endDate, limit, offset, initOverrides) {
25655
- const response = await this.listWebhookDeliveriesRaw({ id, status, eventType, search, startDate, endDate, limit, offset }, initOverrides);
26650
+ async deleteWorkflowStep(key, stepKey, initOverrides) {
26651
+ const response = await this.deleteWorkflowStepRaw({ key, stepKey }, initOverrides);
25656
26652
  return await response.value();
25657
26653
  }
25658
26654
  /**
25659
- * List available webhook event types with full registry information. Optionally filter by category.
25660
- * List webhook event types
26655
+ * Retrieve a single workflow by its key, including its ordered steps.
26656
+ * Get a workflow
25661
26657
  */
25662
- async listWebhookEventTypesRaw(requestParameters, initOverrides) {
25663
- const queryParameters = {};
25664
- if (requestParameters["category"] != null) {
25665
- queryParameters["category"] = requestParameters["category"];
26658
+ async getWorkflowRaw(requestParameters, initOverrides) {
26659
+ if (requestParameters["key"] == null) {
26660
+ throw new RequiredError(
26661
+ "key",
26662
+ 'Required parameter "key" was null or undefined when calling getWorkflow().'
26663
+ );
25666
26664
  }
26665
+ const queryParameters = {};
25667
26666
  const headerParameters = {};
25668
26667
  if (this.configuration && this.configuration.apiKey) {
25669
26668
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25670
26669
  }
25671
26670
  const response = await this.request({
25672
- path: `/v1/webhooks/events`,
26671
+ path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
25673
26672
  method: "GET",
25674
26673
  headers: headerParameters,
25675
26674
  query: queryParameters
25676
26675
  }, initOverrides);
25677
- return new JSONApiResponse(response, (jsonValue) => WebhookEventTypesResponseFromJSON(jsonValue));
26676
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
25678
26677
  }
25679
26678
  /**
25680
- * List available webhook event types with full registry information. Optionally filter by category.
25681
- * List webhook event types
26679
+ * Retrieve a single workflow by its key, including its ordered steps.
26680
+ * Get a workflow
25682
26681
  */
25683
- async listWebhookEventTypes(category, initOverrides) {
25684
- const response = await this.listWebhookEventTypesRaw({ category }, initOverrides);
26682
+ async getWorkflow(key, initOverrides) {
26683
+ const response = await this.getWorkflowRaw({ key }, initOverrides);
25685
26684
  return await response.value();
25686
26685
  }
25687
26686
  /**
25688
- * List available webhook API versions with changelog and deprecation info.
25689
- * List webhook API versions
26687
+ * List the executions of a workflow, most recent first. Supports pagination.
26688
+ * List workflow executions
25690
26689
  */
25691
- async listWebhookVersionsRaw(initOverrides) {
26690
+ async listWorkflowExecutionsRaw(requestParameters, initOverrides) {
26691
+ if (requestParameters["key"] == null) {
26692
+ throw new RequiredError(
26693
+ "key",
26694
+ 'Required parameter "key" was null or undefined when calling listWorkflowExecutions().'
26695
+ );
26696
+ }
25692
26697
  const queryParameters = {};
26698
+ if (requestParameters["page"] != null) {
26699
+ queryParameters["page"] = requestParameters["page"];
26700
+ }
26701
+ if (requestParameters["perPage"] != null) {
26702
+ queryParameters["per_page"] = requestParameters["perPage"];
26703
+ }
25693
26704
  const headerParameters = {};
25694
26705
  if (this.configuration && this.configuration.apiKey) {
25695
26706
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25696
26707
  }
25697
26708
  const response = await this.request({
25698
- path: `/v1/webhooks/versions`,
26709
+ path: `/workflows/{key}/executions`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
25699
26710
  method: "GET",
25700
26711
  headers: headerParameters,
25701
26712
  query: queryParameters
25702
26713
  }, initOverrides);
25703
- return new JSONApiResponse(response, (jsonValue) => WebhookVersionsResponseFromJSON(jsonValue));
26714
+ return new JSONApiResponse(response, (jsonValue) => ListWorkflowExecutions200ResponseFromJSON(jsonValue));
25704
26715
  }
25705
26716
  /**
25706
- * List available webhook API versions with changelog and deprecation info.
25707
- * List webhook API versions
26717
+ * List the executions of a workflow, most recent first. Supports pagination.
26718
+ * List workflow executions
25708
26719
  */
25709
- async listWebhookVersions(initOverrides) {
25710
- const response = await this.listWebhookVersionsRaw(initOverrides);
26720
+ async listWorkflowExecutions(key, page, perPage, initOverrides) {
26721
+ const response = await this.listWorkflowExecutionsRaw({ key, page, perPage }, initOverrides);
25711
26722
  return await response.value();
25712
26723
  }
25713
26724
  /**
25714
- * List all webhooks for the account with pagination.
25715
- * List webhooks
26725
+ * List workflows in the project. Supports pagination, free-text search, and status filtering.
26726
+ * List workflows
25716
26727
  */
25717
- async listWebhooksRaw(requestParameters, initOverrides) {
26728
+ async listWorkflowsRaw(requestParameters, initOverrides) {
25718
26729
  const queryParameters = {};
25719
- if (requestParameters["limit"] != null) {
25720
- queryParameters["limit"] = requestParameters["limit"];
26730
+ if (requestParameters["page"] != null) {
26731
+ queryParameters["page"] = requestParameters["page"];
25721
26732
  }
25722
- if (requestParameters["offset"] != null) {
25723
- queryParameters["offset"] = requestParameters["offset"];
26733
+ if (requestParameters["perPage"] != null) {
26734
+ queryParameters["per_page"] = requestParameters["perPage"];
26735
+ }
26736
+ if (requestParameters["search"] != null) {
26737
+ queryParameters["search"] = requestParameters["search"];
26738
+ }
26739
+ if (requestParameters["status"] != null) {
26740
+ queryParameters["status"] = requestParameters["status"];
25724
26741
  }
25725
26742
  const headerParameters = {};
25726
26743
  if (this.configuration && this.configuration.apiKey) {
25727
26744
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25728
26745
  }
25729
26746
  const response = await this.request({
25730
- path: `/v1/webhooks`,
26747
+ path: `/workflows`,
25731
26748
  method: "GET",
25732
26749
  headers: headerParameters,
25733
26750
  query: queryParameters
25734
26751
  }, initOverrides);
25735
- return new JSONApiResponse(response, (jsonValue) => WebhookListResponseFromJSON(jsonValue));
26752
+ return new JSONApiResponse(response, (jsonValue) => ListWorkflows200ResponseFromJSON(jsonValue));
25736
26753
  }
25737
26754
  /**
25738
- * List all webhooks for the account with pagination.
25739
- * List webhooks
26755
+ * List workflows in the project. Supports pagination, free-text search, and status filtering.
26756
+ * List workflows
25740
26757
  */
25741
- async listWebhooks(limit, offset, initOverrides) {
25742
- const response = await this.listWebhooksRaw({ limit, offset }, initOverrides);
26758
+ async listWorkflows(page, perPage, search, status, initOverrides) {
26759
+ const response = await this.listWorkflowsRaw({ page, perPage, search, status }, initOverrides);
25743
26760
  return await response.value();
25744
26761
  }
25745
26762
  /**
25746
- * Replay events for a webhook within a date range. Creates an asynchronous job that re-delivers matching events.
25747
- * Replay webhook events
26763
+ * Reorder a workflow\'s steps. Provide the full set of step keys in the desired order — the array must contain exactly the workflow\'s existing step keys.
26764
+ * Reorder workflow steps
25748
26765
  */
25749
- async replayWebhookEventsRaw(requestParameters, initOverrides) {
25750
- if (requestParameters["id"] == null) {
26766
+ async reorderWorkflowStepsRaw(requestParameters, initOverrides) {
26767
+ if (requestParameters["key"] == null) {
25751
26768
  throw new RequiredError(
25752
- "id",
25753
- 'Required parameter "id" was null or undefined when calling replayWebhookEvents().'
26769
+ "key",
26770
+ 'Required parameter "key" was null or undefined when calling reorderWorkflowSteps().'
25754
26771
  );
25755
26772
  }
25756
- if (requestParameters["replayWebhookEventsRequest"] == null) {
26773
+ if (requestParameters["reorderWorkflowStepsRequest"] == null) {
25757
26774
  throw new RequiredError(
25758
- "replayWebhookEventsRequest",
25759
- 'Required parameter "replayWebhookEventsRequest" was null or undefined when calling replayWebhookEvents().'
26775
+ "reorderWorkflowStepsRequest",
26776
+ 'Required parameter "reorderWorkflowStepsRequest" was null or undefined when calling reorderWorkflowSteps().'
25760
26777
  );
25761
26778
  }
25762
26779
  const queryParameters = {};
@@ -25766,101 +26783,77 @@ var WebhooksApi = class extends BaseAPI {
25766
26783
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25767
26784
  }
25768
26785
  const response = await this.request({
25769
- path: `/v1/webhooks/{id}/replay`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25770
- method: "POST",
26786
+ path: `/workflows/{key}/steps/reorder`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26787
+ method: "PUT",
25771
26788
  headers: headerParameters,
25772
26789
  query: queryParameters,
25773
- body: ReplayWebhookEventsRequestToJSON(requestParameters["replayWebhookEventsRequest"])
26790
+ body: ReorderWorkflowStepsRequestToJSON(requestParameters["reorderWorkflowStepsRequest"])
25774
26791
  }, initOverrides);
25775
- return new JSONApiResponse(response, (jsonValue) => WebhookReplayResponseFromJSON(jsonValue));
26792
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
25776
26793
  }
25777
26794
  /**
25778
- * Replay events for a webhook within a date range. Creates an asynchronous job that re-delivers matching events.
25779
- * Replay webhook events
26795
+ * Reorder a workflow\'s steps. Provide the full set of step keys in the desired order — the array must contain exactly the workflow\'s existing step keys.
26796
+ * Reorder workflow steps
25780
26797
  */
25781
- async replayWebhookEvents(id, replayWebhookEventsRequest, initOverrides) {
25782
- const response = await this.replayWebhookEventsRaw({ id, replayWebhookEventsRequest }, initOverrides);
26798
+ async reorderWorkflowSteps(key, reorderWorkflowStepsRequest, initOverrides) {
26799
+ const response = await this.reorderWorkflowStepsRaw({ key, reorderWorkflowStepsRequest }, initOverrides);
25783
26800
  return await response.value();
25784
26801
  }
25785
26802
  /**
25786
- * Retry a failed or exhausted webhook delivery. Only deliveries with status \'failed\' or \'exhausted\' can be retried.
25787
- * Retry webhook delivery
26803
+ * Trigger an execution of an active workflow for one or more recipients. The `to` field accepts a single recipient, an array of recipients, or a topic object (`{ \"topic\": \"topic-key\" }`) to trigger for all subscribers of a topic. One execution is created per resolved subscriber.
26804
+ * Trigger a workflow
25788
26805
  */
25789
- async retryWebhookDeliveryRaw(requestParameters, initOverrides) {
25790
- if (requestParameters["id"] == null) {
26806
+ async triggerWorkflowRaw(requestParameters, initOverrides) {
26807
+ if (requestParameters["key"] == null) {
25791
26808
  throw new RequiredError(
25792
- "id",
25793
- 'Required parameter "id" was null or undefined when calling retryWebhookDelivery().'
26809
+ "key",
26810
+ 'Required parameter "key" was null or undefined when calling triggerWorkflow().'
25794
26811
  );
25795
26812
  }
25796
- if (requestParameters["deliveryId"] == null) {
26813
+ if (requestParameters["triggerWorkflowRequest"] == null) {
25797
26814
  throw new RequiredError(
25798
- "deliveryId",
25799
- 'Required parameter "deliveryId" was null or undefined when calling retryWebhookDelivery().'
26815
+ "triggerWorkflowRequest",
26816
+ 'Required parameter "triggerWorkflowRequest" was null or undefined when calling triggerWorkflow().'
25800
26817
  );
25801
26818
  }
25802
26819
  const queryParameters = {};
25803
26820
  const headerParameters = {};
26821
+ headerParameters["Content-Type"] = "application/json";
25804
26822
  if (this.configuration && this.configuration.apiKey) {
25805
26823
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25806
26824
  }
25807
26825
  const response = await this.request({
25808
- path: `/v1/webhooks/{id}/deliveries/{deliveryId}/retry`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))).replace(`{${"deliveryId"}}`, encodeURIComponent(String(requestParameters["deliveryId"]))),
26826
+ path: `/workflows/{key}/trigger`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
25809
26827
  method: "POST",
25810
26828
  headers: headerParameters,
25811
- query: queryParameters
26829
+ query: queryParameters,
26830
+ body: TriggerWorkflowRequestToJSON(requestParameters["triggerWorkflowRequest"])
25812
26831
  }, initOverrides);
25813
- return new JSONApiResponse(response, (jsonValue) => WebhookDeliveryRetryResponseFromJSON(jsonValue));
26832
+ return new JSONApiResponse(response, (jsonValue) => TriggerWorkflow202ResponseFromJSON(jsonValue));
25814
26833
  }
25815
26834
  /**
25816
- * Retry a failed or exhausted webhook delivery. Only deliveries with status \'failed\' or \'exhausted\' can be retried.
25817
- * Retry webhook delivery
26835
+ * Trigger an execution of an active workflow for one or more recipients. The `to` field accepts a single recipient, an array of recipients, or a topic object (`{ \"topic\": \"topic-key\" }`) to trigger for all subscribers of a topic. One execution is created per resolved subscriber.
26836
+ * Trigger a workflow
25818
26837
  */
25819
- async retryWebhookDelivery(id, deliveryId, initOverrides) {
25820
- const response = await this.retryWebhookDeliveryRaw({ id, deliveryId }, initOverrides);
26838
+ async triggerWorkflow(key, triggerWorkflowRequest, initOverrides) {
26839
+ const response = await this.triggerWorkflowRaw({ key, triggerWorkflowRequest }, initOverrides);
25821
26840
  return await response.value();
25822
26841
  }
25823
26842
  /**
25824
- * Rotate the signing secret for a webhook. The new secret is only returned once.
25825
- * Rotate webhook secret
26843
+ * Update a workflow\'s metadata. Only the provided fields are changed. To change the status, use the dedicated status endpoint.
26844
+ * Update a workflow
25826
26845
  */
25827
- async rotateWebhookSecretRaw(requestParameters, initOverrides) {
25828
- if (requestParameters["id"] == null) {
26846
+ async updateWorkflowRaw(requestParameters, initOverrides) {
26847
+ if (requestParameters["key"] == null) {
25829
26848
  throw new RequiredError(
25830
- "id",
25831
- 'Required parameter "id" was null or undefined when calling rotateWebhookSecret().'
26849
+ "key",
26850
+ 'Required parameter "key" was null or undefined when calling updateWorkflow().'
25832
26851
  );
25833
26852
  }
25834
- const queryParameters = {};
25835
- const headerParameters = {};
25836
- if (this.configuration && this.configuration.apiKey) {
25837
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25838
- }
25839
- const response = await this.request({
25840
- path: `/v1/webhooks/{id}/rotate-secret`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25841
- method: "POST",
25842
- headers: headerParameters,
25843
- query: queryParameters
25844
- }, initOverrides);
25845
- return new JSONApiResponse(response, (jsonValue) => WebhookSecretRotateResponseFromJSON(jsonValue));
25846
- }
25847
- /**
25848
- * Rotate the signing secret for a webhook. The new secret is only returned once.
25849
- * Rotate webhook secret
25850
- */
25851
- async rotateWebhookSecret(id, initOverrides) {
25852
- const response = await this.rotateWebhookSecretRaw({ id }, initOverrides);
25853
- return await response.value();
25854
- }
25855
- /**
25856
- * Send a test event to the webhook endpoint. Accepts optional event_type and custom payload.
25857
- * Send test event
25858
- */
25859
- async sendWebhookTestEventRaw(requestParameters, initOverrides) {
25860
- if (requestParameters["id"] == null) {
26853
+ if (requestParameters["updateWorkflowRequest"] == null) {
25861
26854
  throw new RequiredError(
25862
- "id",
25863
- 'Required parameter "id" was null or undefined when calling sendWebhookTestEvent().'
26855
+ "updateWorkflowRequest",
26856
+ 'Required parameter "updateWorkflowRequest" was null or undefined when calling updateWorkflow().'
25864
26857
  );
25865
26858
  }
25866
26859
  const queryParameters = {};
@@ -25870,37 +26863,37 @@ var WebhooksApi = class extends BaseAPI {
25870
26863
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25871
26864
  }
25872
26865
  const response = await this.request({
25873
- path: `/v1/webhooks/{id}/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25874
- method: "POST",
26866
+ path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26867
+ method: "PATCH",
25875
26868
  headers: headerParameters,
25876
26869
  query: queryParameters,
25877
- body: SendWebhookTestEventRequestToJSON(requestParameters["sendWebhookTestEventRequest"])
26870
+ body: UpdateWorkflowRequestToJSON(requestParameters["updateWorkflowRequest"])
25878
26871
  }, initOverrides);
25879
- return new JSONApiResponse(response, (jsonValue) => WebhookTestEventResponseFromJSON(jsonValue));
26872
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
25880
26873
  }
25881
26874
  /**
25882
- * Send a test event to the webhook endpoint. Accepts optional event_type and custom payload.
25883
- * Send test event
26875
+ * Update a workflow\'s metadata. Only the provided fields are changed. To change the status, use the dedicated status endpoint.
26876
+ * Update a workflow
25884
26877
  */
25885
- async sendWebhookTestEvent(id, sendWebhookTestEventRequest, initOverrides) {
25886
- const response = await this.sendWebhookTestEventRaw({ id, sendWebhookTestEventRequest }, initOverrides);
26878
+ async updateWorkflow(key, updateWorkflowRequest, initOverrides) {
26879
+ const response = await this.updateWorkflowRaw({ key, updateWorkflowRequest }, initOverrides);
25887
26880
  return await response.value();
25888
26881
  }
25889
26882
  /**
25890
- * Preview how a payload would be transformed by the webhook\'s transformation rules without actually delivering.
25891
- * Test payload transformation
26883
+ * Change a workflow\'s lifecycle status. This is the single endpoint for activating, pausing, archiving, or returning a workflow to draft — there are no separate `/activate` or `/pause` endpoints. Set `status` to `active` to activate and `paused` to pause.
26884
+ * Update workflow status
25892
26885
  */
25893
- async testWebhookTransformRaw(requestParameters, initOverrides) {
25894
- if (requestParameters["id"] == null) {
26886
+ async updateWorkflowStatusRaw(requestParameters, initOverrides) {
26887
+ if (requestParameters["key"] == null) {
25895
26888
  throw new RequiredError(
25896
- "id",
25897
- 'Required parameter "id" was null or undefined when calling testWebhookTransform().'
26889
+ "key",
26890
+ 'Required parameter "key" was null or undefined when calling updateWorkflowStatus().'
25898
26891
  );
25899
26892
  }
25900
- if (requestParameters["testWebhookTransformRequest"] == null) {
26893
+ if (requestParameters["updateWorkflowStatusRequest"] == null) {
25901
26894
  throw new RequiredError(
25902
- "testWebhookTransformRequest",
25903
- 'Required parameter "testWebhookTransformRequest" was null or undefined when calling testWebhookTransform().'
26895
+ "updateWorkflowStatusRequest",
26896
+ 'Required parameter "updateWorkflowStatusRequest" was null or undefined when calling updateWorkflowStatus().'
25904
26897
  );
25905
26898
  }
25906
26899
  const queryParameters = {};
@@ -25910,37 +26903,43 @@ var WebhooksApi = class extends BaseAPI {
25910
26903
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25911
26904
  }
25912
26905
  const response = await this.request({
25913
- path: `/v1/webhooks/{id}/transform/test`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25914
- method: "POST",
26906
+ path: `/workflows/{key}/status`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26907
+ method: "PATCH",
25915
26908
  headers: headerParameters,
25916
26909
  query: queryParameters,
25917
- body: TestWebhookTransformRequestToJSON(requestParameters["testWebhookTransformRequest"])
26910
+ body: UpdateWorkflowStatusRequestToJSON(requestParameters["updateWorkflowStatusRequest"])
25918
26911
  }, initOverrides);
25919
- return new JSONApiResponse(response, (jsonValue) => WebhookTransformTestResponseFromJSON(jsonValue));
26912
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
25920
26913
  }
25921
26914
  /**
25922
- * Preview how a payload would be transformed by the webhook\'s transformation rules without actually delivering.
25923
- * Test payload transformation
26915
+ * Change a workflow\'s lifecycle status. This is the single endpoint for activating, pausing, archiving, or returning a workflow to draft — there are no separate `/activate` or `/pause` endpoints. Set `status` to `active` to activate and `paused` to pause.
26916
+ * Update workflow status
25924
26917
  */
25925
- async testWebhookTransform(id, testWebhookTransformRequest, initOverrides) {
25926
- const response = await this.testWebhookTransformRaw({ id, testWebhookTransformRequest }, initOverrides);
26918
+ async updateWorkflowStatus(key, updateWorkflowStatusRequest, initOverrides) {
26919
+ const response = await this.updateWorkflowStatusRaw({ key, updateWorkflowStatusRequest }, initOverrides);
25927
26920
  return await response.value();
25928
26921
  }
25929
26922
  /**
25930
- * Update an existing webhook configuration.
25931
- * Update webhook
26923
+ * Update a step\'s name and/or config. Only the provided fields are changed.
26924
+ * Update a workflow step
25932
26925
  */
25933
- async updateWebhookRaw(requestParameters, initOverrides) {
25934
- if (requestParameters["id"] == null) {
26926
+ async updateWorkflowStepRaw(requestParameters, initOverrides) {
26927
+ if (requestParameters["key"] == null) {
25935
26928
  throw new RequiredError(
25936
- "id",
25937
- 'Required parameter "id" was null or undefined when calling updateWebhook().'
26929
+ "key",
26930
+ 'Required parameter "key" was null or undefined when calling updateWorkflowStep().'
25938
26931
  );
25939
26932
  }
25940
- if (requestParameters["updateWebhookRequest"] == null) {
26933
+ if (requestParameters["stepKey"] == null) {
25941
26934
  throw new RequiredError(
25942
- "updateWebhookRequest",
25943
- 'Required parameter "updateWebhookRequest" was null or undefined when calling updateWebhook().'
26935
+ "stepKey",
26936
+ 'Required parameter "stepKey" was null or undefined when calling updateWorkflowStep().'
26937
+ );
26938
+ }
26939
+ if (requestParameters["updateWorkflowStepRequest"] == null) {
26940
+ throw new RequiredError(
26941
+ "updateWorkflowStepRequest",
26942
+ 'Required parameter "updateWorkflowStepRequest" was null or undefined when calling updateWorkflowStep().'
25944
26943
  );
25945
26944
  }
25946
26945
  const queryParameters = {};
@@ -25950,30 +26949,23 @@ var WebhooksApi = class extends BaseAPI {
25950
26949
  headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
25951
26950
  }
25952
26951
  const response = await this.request({
25953
- path: `/v1/webhooks/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
25954
- method: "PUT",
26952
+ path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
26953
+ method: "PATCH",
25955
26954
  headers: headerParameters,
25956
26955
  query: queryParameters,
25957
- body: UpdateWebhookRequestToJSON(requestParameters["updateWebhookRequest"])
26956
+ body: UpdateWorkflowStepRequestToJSON(requestParameters["updateWorkflowStepRequest"])
25958
26957
  }, initOverrides);
25959
- return new JSONApiResponse(response, (jsonValue) => WebhookResponseFromJSON(jsonValue));
26958
+ return new JSONApiResponse(response, (jsonValue) => AddWorkflowStep201ResponseFromJSON(jsonValue));
25960
26959
  }
25961
26960
  /**
25962
- * Update an existing webhook configuration.
25963
- * Update webhook
26961
+ * Update a step\'s name and/or config. Only the provided fields are changed.
26962
+ * Update a workflow step
25964
26963
  */
25965
- async updateWebhook(id, updateWebhookRequest, initOverrides) {
25966
- const response = await this.updateWebhookRaw({ id, updateWebhookRequest }, initOverrides);
26964
+ async updateWorkflowStep(key, stepKey, updateWorkflowStepRequest, initOverrides) {
26965
+ const response = await this.updateWorkflowStepRaw({ key, stepKey, updateWorkflowStepRequest }, initOverrides);
25967
26966
  return await response.value();
25968
26967
  }
25969
26968
  };
25970
- var ListWebhookDeliveriesStatusEnum = {
25971
- PENDING: "pending",
25972
- DELIVERING: "delivering",
25973
- DELIVERED: "delivered",
25974
- FAILED: "failed",
25975
- EXHAUSTED: "exhausted"
25976
- };
25977
26969
 
25978
26970
  // src/errors.ts
25979
26971
  var ZyphrError = class extends Error {
@@ -26294,6 +27286,15 @@ var SDK_VERSION = "0.1.0";
26294
27286
  AddTopicSubscribersRequestFromJSONTyped,
26295
27287
  AddTopicSubscribersRequestToJSON,
26296
27288
  AddTopicSubscribersRequestToJSONTyped,
27289
+ AddWorkflowStep201ResponseFromJSON,
27290
+ AddWorkflowStep201ResponseFromJSONTyped,
27291
+ AddWorkflowStep201ResponseToJSON,
27292
+ AddWorkflowStep201ResponseToJSONTyped,
27293
+ AddWorkflowStepRequestBranchPathEnum,
27294
+ AddWorkflowStepRequestFromJSON,
27295
+ AddWorkflowStepRequestFromJSONTyped,
27296
+ AddWorkflowStepRequestToJSON,
27297
+ AddWorkflowStepRequestToJSONTyped,
26297
27298
  ApiErrorErrorFromJSON,
26298
27299
  ApiErrorErrorFromJSONTyped,
26299
27300
  ApiErrorErrorToJSON,
@@ -26585,6 +27586,14 @@ var SDK_VERSION = "0.1.0";
26585
27586
  CreateWebhookRequestFromJSONTyped,
26586
27587
  CreateWebhookRequestToJSON,
26587
27588
  CreateWebhookRequestToJSONTyped,
27589
+ CreateWorkflow201ResponseFromJSON,
27590
+ CreateWorkflow201ResponseFromJSONTyped,
27591
+ CreateWorkflow201ResponseToJSON,
27592
+ CreateWorkflow201ResponseToJSONTyped,
27593
+ CreateWorkflowRequestFromJSON,
27594
+ CreateWorkflowRequestFromJSONTyped,
27595
+ CreateWorkflowRequestToJSON,
27596
+ CreateWorkflowRequestToJSONTyped,
26588
27597
  DefaultConfig,
26589
27598
  DeleteDomainResponseDataFromJSON,
26590
27599
  DeleteDomainResponseDataFromJSONTyped,
@@ -26602,6 +27611,22 @@ var SDK_VERSION = "0.1.0";
26602
27611
  DeleteResultFromJSONTyped,
26603
27612
  DeleteResultToJSON,
26604
27613
  DeleteResultToJSONTyped,
27614
+ DeleteWorkflow200ResponseDataFromJSON,
27615
+ DeleteWorkflow200ResponseDataFromJSONTyped,
27616
+ DeleteWorkflow200ResponseDataToJSON,
27617
+ DeleteWorkflow200ResponseDataToJSONTyped,
27618
+ DeleteWorkflow200ResponseFromJSON,
27619
+ DeleteWorkflow200ResponseFromJSONTyped,
27620
+ DeleteWorkflow200ResponseToJSON,
27621
+ DeleteWorkflow200ResponseToJSONTyped,
27622
+ DeleteWorkflowStep200ResponseDataFromJSON,
27623
+ DeleteWorkflowStep200ResponseDataFromJSONTyped,
27624
+ DeleteWorkflowStep200ResponseDataToJSON,
27625
+ DeleteWorkflowStep200ResponseDataToJSONTyped,
27626
+ DeleteWorkflowStep200ResponseFromJSON,
27627
+ DeleteWorkflowStep200ResponseFromJSONTyped,
27628
+ DeleteWorkflowStep200ResponseToJSON,
27629
+ DeleteWorkflowStep200ResponseToJSONTyped,
26605
27630
  DeviceFromJSON,
26606
27631
  DeviceFromJSONTyped,
26607
27632
  DeviceListResponseFromJSON,
@@ -26868,6 +27893,22 @@ var SDK_VERSION = "0.1.0";
26868
27893
  ListWaaSEventTypes200ResponseToJSONTyped,
26869
27894
  ListWaaSEventTypesStatusEnum,
26870
27895
  ListWebhookDeliveriesStatusEnum,
27896
+ ListWorkflowExecutions200ResponseFromJSON,
27897
+ ListWorkflowExecutions200ResponseFromJSONTyped,
27898
+ ListWorkflowExecutions200ResponseMetaFromJSON,
27899
+ ListWorkflowExecutions200ResponseMetaFromJSONTyped,
27900
+ ListWorkflowExecutions200ResponseMetaToJSON,
27901
+ ListWorkflowExecutions200ResponseMetaToJSONTyped,
27902
+ ListWorkflowExecutions200ResponseToJSON,
27903
+ ListWorkflowExecutions200ResponseToJSONTyped,
27904
+ ListWorkflows200ResponseFromJSON,
27905
+ ListWorkflows200ResponseFromJSONTyped,
27906
+ ListWorkflows200ResponseMetaFromJSON,
27907
+ ListWorkflows200ResponseMetaFromJSONTyped,
27908
+ ListWorkflows200ResponseMetaToJSON,
27909
+ ListWorkflows200ResponseMetaToJSONTyped,
27910
+ ListWorkflows200ResponseToJSON,
27911
+ ListWorkflows200ResponseToJSONTyped,
26871
27912
  LoginRequestFromJSON,
26872
27913
  LoginRequestFromJSONTyped,
26873
27914
  LoginRequestToJSON,
@@ -26981,7 +28022,6 @@ var SDK_VERSION = "0.1.0";
26981
28022
  MfaVerifyRequestFromJSONTyped,
26982
28023
  MfaVerifyRequestToJSON,
26983
28024
  MfaVerifyRequestToJSONTyped,
26984
- MuseApi,
26985
28025
  OAuthAuthorizationUrlResponseDataFromJSON,
26986
28026
  OAuthAuthorizationUrlResponseDataFromJSONTyped,
26987
28027
  OAuthAuthorizationUrlResponseDataToJSON,
@@ -27255,6 +28295,10 @@ var SDK_VERSION = "0.1.0";
27255
28295
  RenderTemplateRequestFromJSONTyped,
27256
28296
  RenderTemplateRequestToJSON,
27257
28297
  RenderTemplateRequestToJSONTyped,
28298
+ ReorderWorkflowStepsRequestFromJSON,
28299
+ ReorderWorkflowStepsRequestFromJSONTyped,
28300
+ ReorderWorkflowStepsRequestToJSON,
28301
+ ReorderWorkflowStepsRequestToJSONTyped,
27258
28302
  ReplayWebhookEventsRequestFromJSON,
27259
28303
  ReplayWebhookEventsRequestFromJSONTyped,
27260
28304
  ReplayWebhookEventsRequestToJSON,
@@ -27542,10 +28586,6 @@ var SDK_VERSION = "0.1.0";
27542
28586
  SmsDetailResponseToJSONTyped,
27543
28587
  SmsListResponseFromJSON,
27544
28588
  SmsListResponseFromJSONTyped,
27545
- SmsListResponseMetaFromJSON,
27546
- SmsListResponseMetaFromJSONTyped,
27547
- SmsListResponseMetaToJSON,
27548
- SmsListResponseMetaToJSONTyped,
27549
28589
  SmsListResponseToJSON,
27550
28590
  SmsListResponseToJSONTyped,
27551
28591
  SmsMessageDetailFromJSON,
@@ -27632,10 +28672,6 @@ var SDK_VERSION = "0.1.0";
27632
28672
  TestWebhookTransformRequestToJSON,
27633
28673
  TestWebhookTransformRequestToJSONTyped,
27634
28674
  TextApiResponse,
27635
- TopicDeleteResponseDataFromJSON,
27636
- TopicDeleteResponseDataFromJSONTyped,
27637
- TopicDeleteResponseDataToJSON,
27638
- TopicDeleteResponseDataToJSONTyped,
27639
28675
  TopicDeleteResponseFromJSON,
27640
28676
  TopicDeleteResponseFromJSONTyped,
27641
28677
  TopicDeleteResponseToJSON,
@@ -27689,6 +28725,18 @@ var SDK_VERSION = "0.1.0";
27689
28725
  TopicToJSON,
27690
28726
  TopicToJSONTyped,
27691
28727
  TopicsApi,
28728
+ TriggerWorkflow202ResponseDataFromJSON,
28729
+ TriggerWorkflow202ResponseDataFromJSONTyped,
28730
+ TriggerWorkflow202ResponseDataToJSON,
28731
+ TriggerWorkflow202ResponseDataToJSONTyped,
28732
+ TriggerWorkflow202ResponseFromJSON,
28733
+ TriggerWorkflow202ResponseFromJSONTyped,
28734
+ TriggerWorkflow202ResponseToJSON,
28735
+ TriggerWorkflow202ResponseToJSONTyped,
28736
+ TriggerWorkflowRequestFromJSON,
28737
+ TriggerWorkflowRequestFromJSONTyped,
28738
+ TriggerWorkflowRequestToJSON,
28739
+ TriggerWorkflowRequestToJSONTyped,
27692
28740
  UnreadCountDataFromJSON,
27693
28741
  UnreadCountDataFromJSONTyped,
27694
28742
  UnreadCountDataToJSON,
@@ -27775,6 +28823,18 @@ var SDK_VERSION = "0.1.0";
27775
28823
  UpdateWebhookRequestFromJSONTyped,
27776
28824
  UpdateWebhookRequestToJSON,
27777
28825
  UpdateWebhookRequestToJSONTyped,
28826
+ UpdateWorkflowRequestFromJSON,
28827
+ UpdateWorkflowRequestFromJSONTyped,
28828
+ UpdateWorkflowRequestToJSON,
28829
+ UpdateWorkflowRequestToJSONTyped,
28830
+ UpdateWorkflowStatusRequestFromJSON,
28831
+ UpdateWorkflowStatusRequestFromJSONTyped,
28832
+ UpdateWorkflowStatusRequestToJSON,
28833
+ UpdateWorkflowStatusRequestToJSONTyped,
28834
+ UpdateWorkflowStepRequestFromJSON,
28835
+ UpdateWorkflowStepRequestFromJSONTyped,
28836
+ UpdateWorkflowStepRequestToJSON,
28837
+ UpdateWorkflowStepRequestToJSONTyped,
27778
28838
  UpsertAuthEmailTemplateRequestEditorTypeEnum,
27779
28839
  UpsertAuthEmailTemplateRequestFromJSON,
27780
28840
  UpsertAuthEmailTemplateRequestFromJSONTyped,
@@ -27793,11 +28853,6 @@ var SDK_VERSION = "0.1.0";
27793
28853
  UserDevicesDeleteResponseToJSON,
27794
28854
  UserDevicesDeleteResponseToJSONTyped,
27795
28855
  UtilityApi,
27796
- V1MuseSubjectsSuggestPostRequestChannelEnum,
27797
- V1MuseSubjectsSuggestPostRequestFromJSON,
27798
- V1MuseSubjectsSuggestPostRequestFromJSONTyped,
27799
- V1MuseSubjectsSuggestPostRequestToJSON,
27800
- V1MuseSubjectsSuggestPostRequestToJSONTyped,
27801
28856
  ValidateResetTokenRequestFromJSON,
27802
28857
  ValidateResetTokenRequestFromJSONTyped,
27803
28858
  ValidateResetTokenRequestToJSON,
@@ -28128,6 +29183,14 @@ var SDK_VERSION = "0.1.0";
28128
29183
  WorkflowExecutionStatusToJSONTyped,
28129
29184
  WorkflowExecutionToJSON,
28130
29185
  WorkflowExecutionToJSONTyped,
29186
+ WorkflowFromJSON,
29187
+ WorkflowFromJSONTyped,
29188
+ WorkflowStatus,
29189
+ WorkflowStatusFromJSON,
29190
+ WorkflowStatusFromJSONTyped,
29191
+ WorkflowStatusToJSON,
29192
+ WorkflowStatusToJSONTyped,
29193
+ WorkflowStepBranchPathEnum,
28131
29194
  WorkflowStepExecutionFromJSON,
28132
29195
  WorkflowStepExecutionFromJSONTyped,
28133
29196
  WorkflowStepExecutionStatus,
@@ -28138,6 +29201,18 @@ var SDK_VERSION = "0.1.0";
28138
29201
  WorkflowStepExecutionStepTypeEnum,
28139
29202
  WorkflowStepExecutionToJSON,
28140
29203
  WorkflowStepExecutionToJSONTyped,
29204
+ WorkflowStepFromJSON,
29205
+ WorkflowStepFromJSONTyped,
29206
+ WorkflowStepToJSON,
29207
+ WorkflowStepToJSONTyped,
29208
+ WorkflowStepType,
29209
+ WorkflowStepTypeFromJSON,
29210
+ WorkflowStepTypeFromJSONTyped,
29211
+ WorkflowStepTypeToJSON,
29212
+ WorkflowStepTypeToJSONTyped,
29213
+ WorkflowToJSON,
29214
+ WorkflowToJSONTyped,
29215
+ WorkflowsApi,
28141
29216
  Zyphr,
28142
29217
  ZyphrAuthenticationError,
28143
29218
  ZyphrClient,
@@ -28155,6 +29230,8 @@ var SDK_VERSION = "0.1.0";
28155
29230
  instanceOfAddDomainRequest,
28156
29231
  instanceOfAddOrganizationMemberRequest,
28157
29232
  instanceOfAddTopicSubscribersRequest,
29233
+ instanceOfAddWorkflowStep201Response,
29234
+ instanceOfAddWorkflowStepRequest,
28158
29235
  instanceOfApiError,
28159
29236
  instanceOfApiErrorError,
28160
29237
  instanceOfApiErrorMeta,
@@ -28220,10 +29297,16 @@ var SDK_VERSION = "0.1.0";
28220
29297
  instanceOfCreateWaaSEventType201Response,
28221
29298
  instanceOfCreateWaaSEventTypeRequest,
28222
29299
  instanceOfCreateWebhookRequest,
29300
+ instanceOfCreateWorkflow201Response,
29301
+ instanceOfCreateWorkflowRequest,
28223
29302
  instanceOfDeleteDomainResponse,
28224
29303
  instanceOfDeleteDomainResponseData,
28225
29304
  instanceOfDeleteResult,
28226
29305
  instanceOfDeleteResultData,
29306
+ instanceOfDeleteWorkflow200Response,
29307
+ instanceOfDeleteWorkflow200ResponseData,
29308
+ instanceOfDeleteWorkflowStep200Response,
29309
+ instanceOfDeleteWorkflowStep200ResponseData,
28227
29310
  instanceOfDevice,
28228
29311
  instanceOfDeviceListResponse,
28229
29312
  instanceOfDevicePushTopic,
@@ -28281,6 +29364,10 @@ var SDK_VERSION = "0.1.0";
28281
29364
  instanceOfListWaaSEndpointDeliveries200Response,
28282
29365
  instanceOfListWaaSEndpoints200Response,
28283
29366
  instanceOfListWaaSEventTypes200Response,
29367
+ instanceOfListWorkflowExecutions200Response,
29368
+ instanceOfListWorkflowExecutions200ResponseMeta,
29369
+ instanceOfListWorkflows200Response,
29370
+ instanceOfListWorkflows200ResponseMeta,
28284
29371
  instanceOfLoginRequest,
28285
29372
  instanceOfMagicLinkSendRequest,
28286
29373
  instanceOfMagicLinkVerifyRequest,
@@ -28375,6 +29462,7 @@ var SDK_VERSION = "0.1.0";
28375
29462
  instanceOfRemoveTopicSubscribersRequest,
28376
29463
  instanceOfRenameWebAuthnCredentialRequest,
28377
29464
  instanceOfRenderTemplateRequest,
29465
+ instanceOfReorderWorkflowStepsRequest,
28378
29466
  instanceOfReplayWebhookEventsRequest,
28379
29467
  instanceOfRequestMeta,
28380
29468
  instanceOfResetPasswordRequest,
@@ -28445,7 +29533,6 @@ var SDK_VERSION = "0.1.0";
28445
29533
  instanceOfSmsConfigResponse,
28446
29534
  instanceOfSmsDetailResponse,
28447
29535
  instanceOfSmsListResponse,
28448
- instanceOfSmsListResponseMeta,
28449
29536
  instanceOfSmsMessage,
28450
29537
  instanceOfSmsMessageDetail,
28451
29538
  instanceOfSubscribePushTopicRequest,
@@ -28467,7 +29554,6 @@ var SDK_VERSION = "0.1.0";
28467
29554
  instanceOfTestWebhookTransformRequest,
28468
29555
  instanceOfTopic,
28469
29556
  instanceOfTopicDeleteResponse,
28470
- instanceOfTopicDeleteResponseData,
28471
29557
  instanceOfTopicListResponse,
28472
29558
  instanceOfTopicResponse,
28473
29559
  instanceOfTopicStatsData,
@@ -28479,6 +29565,9 @@ var SDK_VERSION = "0.1.0";
28479
29565
  instanceOfTopicSubscribersAddResult,
28480
29566
  instanceOfTopicSubscribersRemoveResponse,
28481
29567
  instanceOfTopicSubscribersRemoveResult,
29568
+ instanceOfTriggerWorkflow202Response,
29569
+ instanceOfTriggerWorkflow202ResponseData,
29570
+ instanceOfTriggerWorkflowRequest,
28482
29571
  instanceOfUnreadCountData,
28483
29572
  instanceOfUnreadCountResponse,
28484
29573
  instanceOfUnsubscribe,
@@ -28499,11 +29588,13 @@ var SDK_VERSION = "0.1.0";
28499
29588
  instanceOfUpdateWaaSEndpointRequest,
28500
29589
  instanceOfUpdateWaaSEventTypeRequest,
28501
29590
  instanceOfUpdateWebhookRequest,
29591
+ instanceOfUpdateWorkflowRequest,
29592
+ instanceOfUpdateWorkflowStatusRequest,
29593
+ instanceOfUpdateWorkflowStepRequest,
28502
29594
  instanceOfUpsertAuthEmailTemplateRequest,
28503
29595
  instanceOfUpsertSmsConfigRequest,
28504
29596
  instanceOfUserDevicesDeleteResponse,
28505
29597
  instanceOfUserDevicesDeleteResponseData,
28506
- instanceOfV1MuseSubjectsSuggestPostRequest,
28507
29598
  instanceOfValidateResetTokenRequest,
28508
29599
  instanceOfValidateResetTokenResponse,
28509
29600
  instanceOfValidateResetTokenResponseData,
@@ -28579,10 +29670,14 @@ var SDK_VERSION = "0.1.0";
28579
29670
  instanceOfWebhookVersionsResponse,
28580
29671
  instanceOfWebhookVersionsResponseData,
28581
29672
  instanceOfWithdrawSubscriberConsentRequest,
29673
+ instanceOfWorkflow,
28582
29674
  instanceOfWorkflowExecution,
28583
29675
  instanceOfWorkflowExecutionStatus,
29676
+ instanceOfWorkflowStatus,
29677
+ instanceOfWorkflowStep,
28584
29678
  instanceOfWorkflowStepExecution,
28585
29679
  instanceOfWorkflowStepExecutionStatus,
29680
+ instanceOfWorkflowStepType,
28586
29681
  mapValues,
28587
29682
  parseErrorResponse,
28588
29683
  querystring