@zyphr-dev/node-sdk 0.1.38 → 0.1.40

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 (41) hide show
  1. package/dist/index.cjs +1793 -626
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.d.cts +1766 -604
  4. package/dist/index.d.ts +1766 -604
  5. package/dist/index.js +1668 -609
  6. package/dist/index.js.map +1 -1
  7. package/package.json +1 -1
  8. package/src/.openapi-generator/FILES +25 -4
  9. package/src/src/apis/AuthRegistrationApi.ts +69 -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/SignInWithGooglePlayGamesRequest.ts +66 -0
  27. package/src/src/models/SmsListResponse.ts +10 -10
  28. package/src/src/models/TopicDeleteResponse.ts +10 -10
  29. package/src/src/models/TriggerWorkflow202Response.ts +88 -0
  30. package/src/src/models/TriggerWorkflow202ResponseData.ts +81 -0
  31. package/src/src/models/TriggerWorkflowRequest.ts +90 -0
  32. package/src/src/models/UpdateWorkflowRequest.ts +89 -0
  33. package/src/src/models/UpdateWorkflowStatusRequest.ts +76 -0
  34. package/src/src/models/UpdateWorkflowStepRequest.ts +73 -0
  35. package/src/src/models/Workflow.ts +187 -0
  36. package/src/src/models/WorkflowStatus.ts +55 -0
  37. package/src/src/models/WorkflowStep.ts +176 -0
  38. package/src/src/models/WorkflowStepType.ts +60 -0
  39. package/src/src/models/index.ts +24 -3
  40. package/src/src/apis/MuseApi.ts +0 -531
  41. 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,
@@ -1228,6 +1280,10 @@ __export(index_exports, {
1228
1280
  SignInWithGameCenterRequestFromJSONTyped: () => SignInWithGameCenterRequestFromJSONTyped,
1229
1281
  SignInWithGameCenterRequestToJSON: () => SignInWithGameCenterRequestToJSON,
1230
1282
  SignInWithGameCenterRequestToJSONTyped: () => SignInWithGameCenterRequestToJSONTyped,
1283
+ SignInWithGooglePlayGamesRequestFromJSON: () => SignInWithGooglePlayGamesRequestFromJSON,
1284
+ SignInWithGooglePlayGamesRequestFromJSONTyped: () => SignInWithGooglePlayGamesRequestFromJSONTyped,
1285
+ SignInWithGooglePlayGamesRequestToJSON: () => SignInWithGooglePlayGamesRequestToJSON,
1286
+ SignInWithGooglePlayGamesRequestToJSONTyped: () => SignInWithGooglePlayGamesRequestToJSONTyped,
1231
1287
  SlackApi: () => SlackApi,
1232
1288
  SlackMessageFromJSON: () => SlackMessageFromJSON,
1233
1289
  SlackMessageFromJSONTyped: () => SlackMessageFromJSONTyped,
@@ -1284,10 +1340,6 @@ __export(index_exports, {
1284
1340
  SmsDetailResponseToJSONTyped: () => SmsDetailResponseToJSONTyped,
1285
1341
  SmsListResponseFromJSON: () => SmsListResponseFromJSON,
1286
1342
  SmsListResponseFromJSONTyped: () => SmsListResponseFromJSONTyped,
1287
- SmsListResponseMetaFromJSON: () => SmsListResponseMetaFromJSON,
1288
- SmsListResponseMetaFromJSONTyped: () => SmsListResponseMetaFromJSONTyped,
1289
- SmsListResponseMetaToJSON: () => SmsListResponseMetaToJSON,
1290
- SmsListResponseMetaToJSONTyped: () => SmsListResponseMetaToJSONTyped,
1291
1343
  SmsListResponseToJSON: () => SmsListResponseToJSON,
1292
1344
  SmsListResponseToJSONTyped: () => SmsListResponseToJSONTyped,
1293
1345
  SmsMessageDetailFromJSON: () => SmsMessageDetailFromJSON,
@@ -1374,10 +1426,6 @@ __export(index_exports, {
1374
1426
  TestWebhookTransformRequestToJSON: () => TestWebhookTransformRequestToJSON,
1375
1427
  TestWebhookTransformRequestToJSONTyped: () => TestWebhookTransformRequestToJSONTyped,
1376
1428
  TextApiResponse: () => TextApiResponse,
1377
- TopicDeleteResponseDataFromJSON: () => TopicDeleteResponseDataFromJSON,
1378
- TopicDeleteResponseDataFromJSONTyped: () => TopicDeleteResponseDataFromJSONTyped,
1379
- TopicDeleteResponseDataToJSON: () => TopicDeleteResponseDataToJSON,
1380
- TopicDeleteResponseDataToJSONTyped: () => TopicDeleteResponseDataToJSONTyped,
1381
1429
  TopicDeleteResponseFromJSON: () => TopicDeleteResponseFromJSON,
1382
1430
  TopicDeleteResponseFromJSONTyped: () => TopicDeleteResponseFromJSONTyped,
1383
1431
  TopicDeleteResponseToJSON: () => TopicDeleteResponseToJSON,
@@ -1431,6 +1479,18 @@ __export(index_exports, {
1431
1479
  TopicToJSON: () => TopicToJSON,
1432
1480
  TopicToJSONTyped: () => TopicToJSONTyped,
1433
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,
1434
1494
  UnreadCountDataFromJSON: () => UnreadCountDataFromJSON,
1435
1495
  UnreadCountDataFromJSONTyped: () => UnreadCountDataFromJSONTyped,
1436
1496
  UnreadCountDataToJSON: () => UnreadCountDataToJSON,
@@ -1517,6 +1577,18 @@ __export(index_exports, {
1517
1577
  UpdateWebhookRequestFromJSONTyped: () => UpdateWebhookRequestFromJSONTyped,
1518
1578
  UpdateWebhookRequestToJSON: () => UpdateWebhookRequestToJSON,
1519
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,
1520
1592
  UpsertAuthEmailTemplateRequestEditorTypeEnum: () => UpsertAuthEmailTemplateRequestEditorTypeEnum,
1521
1593
  UpsertAuthEmailTemplateRequestFromJSON: () => UpsertAuthEmailTemplateRequestFromJSON,
1522
1594
  UpsertAuthEmailTemplateRequestFromJSONTyped: () => UpsertAuthEmailTemplateRequestFromJSONTyped,
@@ -1535,11 +1607,6 @@ __export(index_exports, {
1535
1607
  UserDevicesDeleteResponseToJSON: () => UserDevicesDeleteResponseToJSON,
1536
1608
  UserDevicesDeleteResponseToJSONTyped: () => UserDevicesDeleteResponseToJSONTyped,
1537
1609
  UtilityApi: () => UtilityApi,
1538
- V1MuseSubjectsSuggestPostRequestChannelEnum: () => V1MuseSubjectsSuggestPostRequestChannelEnum,
1539
- V1MuseSubjectsSuggestPostRequestFromJSON: () => V1MuseSubjectsSuggestPostRequestFromJSON,
1540
- V1MuseSubjectsSuggestPostRequestFromJSONTyped: () => V1MuseSubjectsSuggestPostRequestFromJSONTyped,
1541
- V1MuseSubjectsSuggestPostRequestToJSON: () => V1MuseSubjectsSuggestPostRequestToJSON,
1542
- V1MuseSubjectsSuggestPostRequestToJSONTyped: () => V1MuseSubjectsSuggestPostRequestToJSONTyped,
1543
1610
  ValidateResetTokenRequestFromJSON: () => ValidateResetTokenRequestFromJSON,
1544
1611
  ValidateResetTokenRequestFromJSONTyped: () => ValidateResetTokenRequestFromJSONTyped,
1545
1612
  ValidateResetTokenRequestToJSON: () => ValidateResetTokenRequestToJSON,
@@ -1870,6 +1937,14 @@ __export(index_exports, {
1870
1937
  WorkflowExecutionStatusToJSONTyped: () => WorkflowExecutionStatusToJSONTyped,
1871
1938
  WorkflowExecutionToJSON: () => WorkflowExecutionToJSON,
1872
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,
1873
1948
  WorkflowStepExecutionFromJSON: () => WorkflowStepExecutionFromJSON,
1874
1949
  WorkflowStepExecutionFromJSONTyped: () => WorkflowStepExecutionFromJSONTyped,
1875
1950
  WorkflowStepExecutionStatus: () => WorkflowStepExecutionStatus,
@@ -1880,6 +1955,18 @@ __export(index_exports, {
1880
1955
  WorkflowStepExecutionStepTypeEnum: () => WorkflowStepExecutionStepTypeEnum,
1881
1956
  WorkflowStepExecutionToJSON: () => WorkflowStepExecutionToJSON,
1882
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,
1883
1970
  Zyphr: () => Zyphr,
1884
1971
  ZyphrAuthenticationError: () => ZyphrAuthenticationError,
1885
1972
  ZyphrClient: () => ZyphrClient,
@@ -1897,6 +1984,8 @@ __export(index_exports, {
1897
1984
  instanceOfAddDomainRequest: () => instanceOfAddDomainRequest,
1898
1985
  instanceOfAddOrganizationMemberRequest: () => instanceOfAddOrganizationMemberRequest,
1899
1986
  instanceOfAddTopicSubscribersRequest: () => instanceOfAddTopicSubscribersRequest,
1987
+ instanceOfAddWorkflowStep201Response: () => instanceOfAddWorkflowStep201Response,
1988
+ instanceOfAddWorkflowStepRequest: () => instanceOfAddWorkflowStepRequest,
1900
1989
  instanceOfApiError: () => instanceOfApiError,
1901
1990
  instanceOfApiErrorError: () => instanceOfApiErrorError,
1902
1991
  instanceOfApiErrorMeta: () => instanceOfApiErrorMeta,
@@ -1962,10 +2051,16 @@ __export(index_exports, {
1962
2051
  instanceOfCreateWaaSEventType201Response: () => instanceOfCreateWaaSEventType201Response,
1963
2052
  instanceOfCreateWaaSEventTypeRequest: () => instanceOfCreateWaaSEventTypeRequest,
1964
2053
  instanceOfCreateWebhookRequest: () => instanceOfCreateWebhookRequest,
2054
+ instanceOfCreateWorkflow201Response: () => instanceOfCreateWorkflow201Response,
2055
+ instanceOfCreateWorkflowRequest: () => instanceOfCreateWorkflowRequest,
1965
2056
  instanceOfDeleteDomainResponse: () => instanceOfDeleteDomainResponse,
1966
2057
  instanceOfDeleteDomainResponseData: () => instanceOfDeleteDomainResponseData,
1967
2058
  instanceOfDeleteResult: () => instanceOfDeleteResult,
1968
2059
  instanceOfDeleteResultData: () => instanceOfDeleteResultData,
2060
+ instanceOfDeleteWorkflow200Response: () => instanceOfDeleteWorkflow200Response,
2061
+ instanceOfDeleteWorkflow200ResponseData: () => instanceOfDeleteWorkflow200ResponseData,
2062
+ instanceOfDeleteWorkflowStep200Response: () => instanceOfDeleteWorkflowStep200Response,
2063
+ instanceOfDeleteWorkflowStep200ResponseData: () => instanceOfDeleteWorkflowStep200ResponseData,
1969
2064
  instanceOfDevice: () => instanceOfDevice,
1970
2065
  instanceOfDeviceListResponse: () => instanceOfDeviceListResponse,
1971
2066
  instanceOfDevicePushTopic: () => instanceOfDevicePushTopic,
@@ -2023,6 +2118,10 @@ __export(index_exports, {
2023
2118
  instanceOfListWaaSEndpointDeliveries200Response: () => instanceOfListWaaSEndpointDeliveries200Response,
2024
2119
  instanceOfListWaaSEndpoints200Response: () => instanceOfListWaaSEndpoints200Response,
2025
2120
  instanceOfListWaaSEventTypes200Response: () => instanceOfListWaaSEventTypes200Response,
2121
+ instanceOfListWorkflowExecutions200Response: () => instanceOfListWorkflowExecutions200Response,
2122
+ instanceOfListWorkflowExecutions200ResponseMeta: () => instanceOfListWorkflowExecutions200ResponseMeta,
2123
+ instanceOfListWorkflows200Response: () => instanceOfListWorkflows200Response,
2124
+ instanceOfListWorkflows200ResponseMeta: () => instanceOfListWorkflows200ResponseMeta,
2026
2125
  instanceOfLoginRequest: () => instanceOfLoginRequest,
2027
2126
  instanceOfMagicLinkSendRequest: () => instanceOfMagicLinkSendRequest,
2028
2127
  instanceOfMagicLinkVerifyRequest: () => instanceOfMagicLinkVerifyRequest,
@@ -2117,6 +2216,7 @@ __export(index_exports, {
2117
2216
  instanceOfRemoveTopicSubscribersRequest: () => instanceOfRemoveTopicSubscribersRequest,
2118
2217
  instanceOfRenameWebAuthnCredentialRequest: () => instanceOfRenameWebAuthnCredentialRequest,
2119
2218
  instanceOfRenderTemplateRequest: () => instanceOfRenderTemplateRequest,
2219
+ instanceOfReorderWorkflowStepsRequest: () => instanceOfReorderWorkflowStepsRequest,
2120
2220
  instanceOfReplayWebhookEventsRequest: () => instanceOfReplayWebhookEventsRequest,
2121
2221
  instanceOfRequestMeta: () => instanceOfRequestMeta,
2122
2222
  instanceOfResetPasswordRequest: () => instanceOfResetPasswordRequest,
@@ -2172,6 +2272,7 @@ __export(index_exports, {
2172
2272
  instanceOfSetPreferencesRequestPreferencesInner: () => instanceOfSetPreferencesRequestPreferencesInner,
2173
2273
  instanceOfSignInAnonymouslyRequest: () => instanceOfSignInAnonymouslyRequest,
2174
2274
  instanceOfSignInWithGameCenterRequest: () => instanceOfSignInWithGameCenterRequest,
2275
+ instanceOfSignInWithGooglePlayGamesRequest: () => instanceOfSignInWithGooglePlayGamesRequest,
2175
2276
  instanceOfSlackMessage: () => instanceOfSlackMessage,
2176
2277
  instanceOfSlackMessageListResponse: () => instanceOfSlackMessageListResponse,
2177
2278
  instanceOfSlackMessageListResponseMeta: () => instanceOfSlackMessageListResponseMeta,
@@ -2186,7 +2287,6 @@ __export(index_exports, {
2186
2287
  instanceOfSmsConfigResponse: () => instanceOfSmsConfigResponse,
2187
2288
  instanceOfSmsDetailResponse: () => instanceOfSmsDetailResponse,
2188
2289
  instanceOfSmsListResponse: () => instanceOfSmsListResponse,
2189
- instanceOfSmsListResponseMeta: () => instanceOfSmsListResponseMeta,
2190
2290
  instanceOfSmsMessage: () => instanceOfSmsMessage,
2191
2291
  instanceOfSmsMessageDetail: () => instanceOfSmsMessageDetail,
2192
2292
  instanceOfSubscribePushTopicRequest: () => instanceOfSubscribePushTopicRequest,
@@ -2208,7 +2308,6 @@ __export(index_exports, {
2208
2308
  instanceOfTestWebhookTransformRequest: () => instanceOfTestWebhookTransformRequest,
2209
2309
  instanceOfTopic: () => instanceOfTopic,
2210
2310
  instanceOfTopicDeleteResponse: () => instanceOfTopicDeleteResponse,
2211
- instanceOfTopicDeleteResponseData: () => instanceOfTopicDeleteResponseData,
2212
2311
  instanceOfTopicListResponse: () => instanceOfTopicListResponse,
2213
2312
  instanceOfTopicResponse: () => instanceOfTopicResponse,
2214
2313
  instanceOfTopicStatsData: () => instanceOfTopicStatsData,
@@ -2220,6 +2319,9 @@ __export(index_exports, {
2220
2319
  instanceOfTopicSubscribersAddResult: () => instanceOfTopicSubscribersAddResult,
2221
2320
  instanceOfTopicSubscribersRemoveResponse: () => instanceOfTopicSubscribersRemoveResponse,
2222
2321
  instanceOfTopicSubscribersRemoveResult: () => instanceOfTopicSubscribersRemoveResult,
2322
+ instanceOfTriggerWorkflow202Response: () => instanceOfTriggerWorkflow202Response,
2323
+ instanceOfTriggerWorkflow202ResponseData: () => instanceOfTriggerWorkflow202ResponseData,
2324
+ instanceOfTriggerWorkflowRequest: () => instanceOfTriggerWorkflowRequest,
2223
2325
  instanceOfUnreadCountData: () => instanceOfUnreadCountData,
2224
2326
  instanceOfUnreadCountResponse: () => instanceOfUnreadCountResponse,
2225
2327
  instanceOfUnsubscribe: () => instanceOfUnsubscribe,
@@ -2240,11 +2342,13 @@ __export(index_exports, {
2240
2342
  instanceOfUpdateWaaSEndpointRequest: () => instanceOfUpdateWaaSEndpointRequest,
2241
2343
  instanceOfUpdateWaaSEventTypeRequest: () => instanceOfUpdateWaaSEventTypeRequest,
2242
2344
  instanceOfUpdateWebhookRequest: () => instanceOfUpdateWebhookRequest,
2345
+ instanceOfUpdateWorkflowRequest: () => instanceOfUpdateWorkflowRequest,
2346
+ instanceOfUpdateWorkflowStatusRequest: () => instanceOfUpdateWorkflowStatusRequest,
2347
+ instanceOfUpdateWorkflowStepRequest: () => instanceOfUpdateWorkflowStepRequest,
2243
2348
  instanceOfUpsertAuthEmailTemplateRequest: () => instanceOfUpsertAuthEmailTemplateRequest,
2244
2349
  instanceOfUpsertSmsConfigRequest: () => instanceOfUpsertSmsConfigRequest,
2245
2350
  instanceOfUserDevicesDeleteResponse: () => instanceOfUserDevicesDeleteResponse,
2246
2351
  instanceOfUserDevicesDeleteResponseData: () => instanceOfUserDevicesDeleteResponseData,
2247
- instanceOfV1MuseSubjectsSuggestPostRequest: () => instanceOfV1MuseSubjectsSuggestPostRequest,
2248
2352
  instanceOfValidateResetTokenRequest: () => instanceOfValidateResetTokenRequest,
2249
2353
  instanceOfValidateResetTokenResponse: () => instanceOfValidateResetTokenResponse,
2250
2354
  instanceOfValidateResetTokenResponseData: () => instanceOfValidateResetTokenResponseData,
@@ -2320,10 +2424,14 @@ __export(index_exports, {
2320
2424
  instanceOfWebhookVersionsResponse: () => instanceOfWebhookVersionsResponse,
2321
2425
  instanceOfWebhookVersionsResponseData: () => instanceOfWebhookVersionsResponseData,
2322
2426
  instanceOfWithdrawSubscriberConsentRequest: () => instanceOfWithdrawSubscriberConsentRequest,
2427
+ instanceOfWorkflow: () => instanceOfWorkflow,
2323
2428
  instanceOfWorkflowExecution: () => instanceOfWorkflowExecution,
2324
2429
  instanceOfWorkflowExecutionStatus: () => instanceOfWorkflowExecutionStatus,
2430
+ instanceOfWorkflowStatus: () => instanceOfWorkflowStatus,
2431
+ instanceOfWorkflowStep: () => instanceOfWorkflowStep,
2325
2432
  instanceOfWorkflowStepExecution: () => instanceOfWorkflowStepExecution,
2326
2433
  instanceOfWorkflowStepExecutionStatus: () => instanceOfWorkflowStepExecutionStatus,
2434
+ instanceOfWorkflowStepType: () => instanceOfWorkflowStepType,
2327
2435
  mapValues: () => mapValues,
2328
2436
  parseErrorResponse: () => parseErrorResponse,
2329
2437
  querystring: () => querystring
@@ -2894,6 +3002,204 @@ function AddTopicSubscribersRequestToJSONTyped(value, ignoreDiscriminator = fals
2894
3002
  };
2895
3003
  }
2896
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
+
2897
3203
  // src/src/models/ApiErrorMeta.ts
2898
3204
  function instanceOfApiErrorMeta(value) {
2899
3205
  return true;
@@ -3104,33 +3410,6 @@ function AuthEmailTemplateDefaultToJSONTyped(value, ignoreDiscriminator = false)
3104
3410
  };
3105
3411
  }
3106
3412
 
3107
- // src/src/models/RequestMeta.ts
3108
- function instanceOfRequestMeta(value) {
3109
- return true;
3110
- }
3111
- function RequestMetaFromJSON(json) {
3112
- return RequestMetaFromJSONTyped(json, false);
3113
- }
3114
- function RequestMetaFromJSONTyped(json, ignoreDiscriminator) {
3115
- if (json == null) {
3116
- return json;
3117
- }
3118
- return {
3119
- "requestId": json["request_id"] == null ? void 0 : json["request_id"]
3120
- };
3121
- }
3122
- function RequestMetaToJSON(json) {
3123
- return RequestMetaToJSONTyped(json, false);
3124
- }
3125
- function RequestMetaToJSONTyped(value, ignoreDiscriminator = false) {
3126
- if (value == null) {
3127
- return value;
3128
- }
3129
- return {
3130
- "request_id": value["requestId"]
3131
- };
3132
- }
3133
-
3134
3413
  // src/src/models/AuthEmailTemplateDefaultResponse.ts
3135
3414
  function instanceOfAuthEmailTemplateDefaultResponse(value) {
3136
3415
  return true;
@@ -5357,125 +5636,280 @@ function CreateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
5357
5636
  };
5358
5637
  }
5359
5638
 
5360
- // src/src/models/GetDomain200ResponseMeta.ts
5361
- function instanceOfGetDomain200ResponseMeta(value) {
5362
- 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;
5363
5655
  }
5364
- function GetDomain200ResponseMetaFromJSON(json) {
5365
- return GetDomain200ResponseMetaFromJSONTyped(json, false);
5656
+ function WorkflowStatusFromJSON(json) {
5657
+ return WorkflowStatusFromJSONTyped(json, false);
5366
5658
  }
5367
- function GetDomain200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
5368
- if (json == null) {
5369
- return json;
5370
- }
5371
- return {
5372
- "requestId": json["request_id"] == null ? void 0 : json["request_id"]
5373
- };
5659
+ function WorkflowStatusFromJSONTyped(json, ignoreDiscriminator) {
5660
+ return json;
5374
5661
  }
5375
- function GetDomain200ResponseMetaToJSON(json) {
5376
- return GetDomain200ResponseMetaToJSONTyped(json, false);
5662
+ function WorkflowStatusToJSON(value) {
5663
+ return value;
5377
5664
  }
5378
- function GetDomain200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
5379
- if (value == null) {
5380
- return value;
5381
- }
5382
- return {
5383
- "request_id": value["requestId"]
5384
- };
5665
+ function WorkflowStatusToJSONTyped(value, ignoreDiscriminator) {
5666
+ return value;
5385
5667
  }
5386
5668
 
5387
- // src/src/models/DeleteDomainResponseData.ts
5388
- function instanceOfDeleteDomainResponseData(value) {
5669
+ // src/src/models/Workflow.ts
5670
+ function instanceOfWorkflow(value) {
5389
5671
  if (!("id" in value) || value["id"] === void 0) return false;
5390
- 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;
5391
5680
  return true;
5392
5681
  }
5393
- function DeleteDomainResponseDataFromJSON(json) {
5394
- return DeleteDomainResponseDataFromJSONTyped(json, false);
5682
+ function WorkflowFromJSON(json) {
5683
+ return WorkflowFromJSONTyped(json, false);
5395
5684
  }
5396
- function DeleteDomainResponseDataFromJSONTyped(json, ignoreDiscriminator) {
5685
+ function WorkflowFromJSONTyped(json, ignoreDiscriminator) {
5397
5686
  if (json == null) {
5398
5687
  return json;
5399
5688
  }
5400
5689
  return {
5401
5690
  "id": json["id"],
5402
- "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"])
5403
5703
  };
5404
5704
  }
5405
- function DeleteDomainResponseDataToJSON(json) {
5406
- return DeleteDomainResponseDataToJSONTyped(json, false);
5705
+ function WorkflowToJSON(json) {
5706
+ return WorkflowToJSONTyped(json, false);
5407
5707
  }
5408
- function DeleteDomainResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
5708
+ function WorkflowToJSONTyped(value, ignoreDiscriminator = false) {
5409
5709
  if (value == null) {
5410
5710
  return value;
5411
5711
  }
5412
5712
  return {
5413
5713
  "id": value["id"],
5414
- "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()
5415
5726
  };
5416
5727
  }
5417
5728
 
5418
- // src/src/models/DeleteDomainResponse.ts
5419
- function instanceOfDeleteDomainResponse(value) {
5420
- if (!("data" in value) || value["data"] === void 0) return false;
5421
- if (!("meta" in value) || value["meta"] === void 0) return false;
5729
+ // src/src/models/CreateWorkflow201Response.ts
5730
+ function instanceOfCreateWorkflow201Response(value) {
5422
5731
  return true;
5423
5732
  }
5424
- function DeleteDomainResponseFromJSON(json) {
5425
- return DeleteDomainResponseFromJSONTyped(json, false);
5733
+ function CreateWorkflow201ResponseFromJSON(json) {
5734
+ return CreateWorkflow201ResponseFromJSONTyped(json, false);
5426
5735
  }
5427
- function DeleteDomainResponseFromJSONTyped(json, ignoreDiscriminator) {
5736
+ function CreateWorkflow201ResponseFromJSONTyped(json, ignoreDiscriminator) {
5428
5737
  if (json == null) {
5429
5738
  return json;
5430
5739
  }
5431
5740
  return {
5432
- "data": DeleteDomainResponseDataFromJSON(json["data"]),
5433
- "meta": GetDomain200ResponseMetaFromJSON(json["meta"])
5741
+ "data": json["data"] == null ? void 0 : WorkflowFromJSON(json["data"]),
5742
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
5434
5743
  };
5435
5744
  }
5436
- function DeleteDomainResponseToJSON(json) {
5437
- return DeleteDomainResponseToJSONTyped(json, false);
5745
+ function CreateWorkflow201ResponseToJSON(json) {
5746
+ return CreateWorkflow201ResponseToJSONTyped(json, false);
5438
5747
  }
5439
- function DeleteDomainResponseToJSONTyped(value, ignoreDiscriminator = false) {
5748
+ function CreateWorkflow201ResponseToJSONTyped(value, ignoreDiscriminator = false) {
5440
5749
  if (value == null) {
5441
5750
  return value;
5442
5751
  }
5443
5752
  return {
5444
- "data": DeleteDomainResponseDataToJSON(value["data"]),
5445
- "meta": GetDomain200ResponseMetaToJSON(value["meta"])
5753
+ "data": WorkflowToJSON(value["data"]),
5754
+ "meta": RequestMetaToJSON(value["meta"])
5446
5755
  };
5447
5756
  }
5448
5757
 
5449
- // src/src/models/DeleteResultData.ts
5450
- function instanceOfDeleteResultData(value) {
5758
+ // src/src/models/CreateWorkflowRequest.ts
5759
+ function instanceOfCreateWorkflowRequest(value) {
5760
+ if (!("name" in value) || value["name"] === void 0) return false;
5451
5761
  return true;
5452
5762
  }
5453
- function DeleteResultDataFromJSON(json) {
5454
- return DeleteResultDataFromJSONTyped(json, false);
5763
+ function CreateWorkflowRequestFromJSON(json) {
5764
+ return CreateWorkflowRequestFromJSONTyped(json, false);
5455
5765
  }
5456
- function DeleteResultDataFromJSONTyped(json, ignoreDiscriminator) {
5766
+ function CreateWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
5457
5767
  if (json == null) {
5458
5768
  return json;
5459
5769
  }
5460
5770
  return {
5461
- "id": json["id"] == null ? void 0 : json["id"],
5462
- "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"]
5463
5776
  };
5464
5777
  }
5465
- function DeleteResultDataToJSON(json) {
5466
- return DeleteResultDataToJSONTyped(json, false);
5778
+ function CreateWorkflowRequestToJSON(json) {
5779
+ return CreateWorkflowRequestToJSONTyped(json, false);
5467
5780
  }
5468
- function DeleteResultDataToJSONTyped(value, ignoreDiscriminator = false) {
5781
+ function CreateWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
5469
5782
  if (value == null) {
5470
5783
  return value;
5471
5784
  }
5472
5785
  return {
5473
- "id": value["id"],
5474
- "deleted": value["deleted"]
5786
+ "name": value["name"],
5787
+ "key": value["key"],
5788
+ "description": value["description"],
5789
+ "is_critical": value["isCritical"],
5790
+ "tags": value["tags"]
5475
5791
  };
5476
5792
  }
5477
5793
 
5478
- // 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
5479
5913
  function instanceOfDeleteResult(value) {
5480
5914
  return true;
5481
5915
  }
@@ -5504,6 +5938,124 @@ function DeleteResultToJSONTyped(value, ignoreDiscriminator = false) {
5504
5938
  };
5505
5939
  }
5506
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
+
5507
6059
  // src/src/models/Device.ts
5508
6060
  var DevicePlatformEnum = {
5509
6061
  IOS: "ios",
@@ -7628,96 +8180,230 @@ function ListWaaSEventTypes200ResponseToJSONTyped(value, ignoreDiscriminator = f
7628
8180
  };
7629
8181
  }
7630
8182
 
7631
- // src/src/models/LoginRequest.ts
7632
- function instanceOfLoginRequest(value) {
7633
- if (!("email" in value) || value["email"] === void 0) return false;
7634
- if (!("password" in value) || value["password"] === void 0) return false;
8183
+ // src/src/models/ListWorkflowExecutions200ResponseMeta.ts
8184
+ function instanceOfListWorkflowExecutions200ResponseMeta(value) {
7635
8185
  return true;
7636
8186
  }
7637
- function LoginRequestFromJSON(json) {
7638
- return LoginRequestFromJSONTyped(json, false);
8187
+ function ListWorkflowExecutions200ResponseMetaFromJSON(json) {
8188
+ return ListWorkflowExecutions200ResponseMetaFromJSONTyped(json, false);
7639
8189
  }
7640
- function LoginRequestFromJSONTyped(json, ignoreDiscriminator) {
8190
+ function ListWorkflowExecutions200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
7641
8191
  if (json == null) {
7642
8192
  return json;
7643
8193
  }
7644
8194
  return {
7645
- "email": json["email"],
7646
- "password": json["password"],
7647
- "customClaims": json["custom_claims"] == null ? void 0 : json["custom_claims"],
7648
- "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"]
7649
8200
  };
7650
8201
  }
7651
- function LoginRequestToJSON(json) {
7652
- return LoginRequestToJSONTyped(json, false);
8202
+ function ListWorkflowExecutions200ResponseMetaToJSON(json) {
8203
+ return ListWorkflowExecutions200ResponseMetaToJSONTyped(json, false);
7653
8204
  }
7654
- function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) {
8205
+ function ListWorkflowExecutions200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
7655
8206
  if (value == null) {
7656
8207
  return value;
7657
8208
  }
7658
8209
  return {
7659
- "email": value["email"],
7660
- "password": value["password"],
7661
- "custom_claims": value["customClaims"],
7662
- "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"]
7663
8215
  };
7664
8216
  }
7665
8217
 
7666
- // src/src/models/MagicLinkSendRequest.ts
7667
- function instanceOfMagicLinkSendRequest(value) {
7668
- if (!("email" in value) || value["email"] === void 0) return false;
8218
+ // src/src/models/ListWorkflowExecutions200Response.ts
8219
+ function instanceOfListWorkflowExecutions200Response(value) {
7669
8220
  return true;
7670
8221
  }
7671
- function MagicLinkSendRequestFromJSON(json) {
7672
- return MagicLinkSendRequestFromJSONTyped(json, false);
8222
+ function ListWorkflowExecutions200ResponseFromJSON(json) {
8223
+ return ListWorkflowExecutions200ResponseFromJSONTyped(json, false);
7673
8224
  }
7674
- function MagicLinkSendRequestFromJSONTyped(json, ignoreDiscriminator) {
8225
+ function ListWorkflowExecutions200ResponseFromJSONTyped(json, ignoreDiscriminator) {
7675
8226
  if (json == null) {
7676
8227
  return json;
7677
8228
  }
7678
8229
  return {
7679
- "email": json["email"],
7680
- "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"])
7681
8232
  };
7682
8233
  }
7683
- function MagicLinkSendRequestToJSON(json) {
7684
- return MagicLinkSendRequestToJSONTyped(json, false);
8234
+ function ListWorkflowExecutions200ResponseToJSON(json) {
8235
+ return ListWorkflowExecutions200ResponseToJSONTyped(json, false);
7685
8236
  }
7686
- function MagicLinkSendRequestToJSONTyped(value, ignoreDiscriminator = false) {
8237
+ function ListWorkflowExecutions200ResponseToJSONTyped(value, ignoreDiscriminator = false) {
7687
8238
  if (value == null) {
7688
8239
  return value;
7689
8240
  }
7690
8241
  return {
7691
- "email": value["email"],
7692
- "redirect_url": value["redirectUrl"]
8242
+ "data": value["data"] == null ? void 0 : value["data"].map(WorkflowExecutionToJSON),
8243
+ "meta": ListWorkflowExecutions200ResponseMetaToJSON(value["meta"])
7693
8244
  };
7694
8245
  }
7695
8246
 
7696
- // src/src/models/MagicLinkVerifyRequest.ts
7697
- function instanceOfMagicLinkVerifyRequest(value) {
7698
- if (!("token" in value) || value["token"] === void 0) return false;
8247
+ // src/src/models/ListWorkflows200ResponseMeta.ts
8248
+ function instanceOfListWorkflows200ResponseMeta(value) {
7699
8249
  return true;
7700
8250
  }
7701
- function MagicLinkVerifyRequestFromJSON(json) {
7702
- return MagicLinkVerifyRequestFromJSONTyped(json, false);
8251
+ function ListWorkflows200ResponseMetaFromJSON(json) {
8252
+ return ListWorkflows200ResponseMetaFromJSONTyped(json, false);
7703
8253
  }
7704
- function MagicLinkVerifyRequestFromJSONTyped(json, ignoreDiscriminator) {
8254
+ function ListWorkflows200ResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
7705
8255
  if (json == null) {
7706
8256
  return json;
7707
8257
  }
7708
8258
  return {
7709
- "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"]
7710
8267
  };
7711
8268
  }
7712
- function MagicLinkVerifyRequestToJSON(json) {
7713
- return MagicLinkVerifyRequestToJSONTyped(json, false);
8269
+ function ListWorkflows200ResponseMetaToJSON(json) {
8270
+ return ListWorkflows200ResponseMetaToJSONTyped(json, false);
7714
8271
  }
7715
- function MagicLinkVerifyRequestToJSONTyped(value, ignoreDiscriminator = false) {
8272
+ function ListWorkflows200ResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
7716
8273
  if (value == null) {
7717
8274
  return value;
7718
8275
  }
7719
8276
  return {
7720
- "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"]
7721
8407
  };
7722
8408
  }
7723
8409
 
@@ -10712,6 +11398,34 @@ function RenderTemplateRequestToJSONTyped(value, ignoreDiscriminator = false) {
10712
11398
  };
10713
11399
  }
10714
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
+
10715
11429
  // src/src/models/ReplayWebhookEventsRequest.ts
10716
11430
  function instanceOfReplayWebhookEventsRequest(value) {
10717
11431
  if (!("startDate" in value) || value["startDate"] === void 0) return false;
@@ -12623,6 +13337,34 @@ function SignInWithGameCenterRequestToJSONTyped(value, ignoreDiscriminator = fal
12623
13337
  };
12624
13338
  }
12625
13339
 
13340
+ // src/src/models/SignInWithGooglePlayGamesRequest.ts
13341
+ function instanceOfSignInWithGooglePlayGamesRequest(value) {
13342
+ if (!("serverAuthCode" in value) || value["serverAuthCode"] === void 0) return false;
13343
+ return true;
13344
+ }
13345
+ function SignInWithGooglePlayGamesRequestFromJSON(json) {
13346
+ return SignInWithGooglePlayGamesRequestFromJSONTyped(json, false);
13347
+ }
13348
+ function SignInWithGooglePlayGamesRequestFromJSONTyped(json, ignoreDiscriminator) {
13349
+ if (json == null) {
13350
+ return json;
13351
+ }
13352
+ return {
13353
+ "serverAuthCode": json["serverAuthCode"]
13354
+ };
13355
+ }
13356
+ function SignInWithGooglePlayGamesRequestToJSON(json) {
13357
+ return SignInWithGooglePlayGamesRequestToJSONTyped(json, false);
13358
+ }
13359
+ function SignInWithGooglePlayGamesRequestToJSONTyped(value, ignoreDiscriminator = false) {
13360
+ if (value == null) {
13361
+ return value;
13362
+ }
13363
+ return {
13364
+ "serverAuthCode": value["serverAuthCode"]
13365
+ };
13366
+ }
13367
+
12626
13368
  // src/src/models/SlackMessage.ts
12627
13369
  function instanceOfSlackMessage(value) {
12628
13370
  return true;
@@ -13091,41 +13833,6 @@ function SmsMessageToJSONTyped(value, ignoreDiscriminator = false) {
13091
13833
  };
13092
13834
  }
13093
13835
 
13094
- // src/src/models/SmsListResponseMeta.ts
13095
- function instanceOfSmsListResponseMeta(value) {
13096
- return true;
13097
- }
13098
- function SmsListResponseMetaFromJSON(json) {
13099
- return SmsListResponseMetaFromJSONTyped(json, false);
13100
- }
13101
- function SmsListResponseMetaFromJSONTyped(json, ignoreDiscriminator) {
13102
- if (json == null) {
13103
- return json;
13104
- }
13105
- return {
13106
- "requestId": json["request_id"] == null ? void 0 : json["request_id"],
13107
- "page": json["page"] == null ? void 0 : json["page"],
13108
- "perPage": json["per_page"] == null ? void 0 : json["per_page"],
13109
- "total": json["total"] == null ? void 0 : json["total"],
13110
- "totalPages": json["total_pages"] == null ? void 0 : json["total_pages"]
13111
- };
13112
- }
13113
- function SmsListResponseMetaToJSON(json) {
13114
- return SmsListResponseMetaToJSONTyped(json, false);
13115
- }
13116
- function SmsListResponseMetaToJSONTyped(value, ignoreDiscriminator = false) {
13117
- if (value == null) {
13118
- return value;
13119
- }
13120
- return {
13121
- "request_id": value["requestId"],
13122
- "page": value["page"],
13123
- "per_page": value["perPage"],
13124
- "total": value["total"],
13125
- "total_pages": value["totalPages"]
13126
- };
13127
- }
13128
-
13129
13836
  // src/src/models/SmsListResponse.ts
13130
13837
  function instanceOfSmsListResponse(value) {
13131
13838
  return true;
@@ -13139,7 +13846,7 @@ function SmsListResponseFromJSONTyped(json, ignoreDiscriminator) {
13139
13846
  }
13140
13847
  return {
13141
13848
  "data": json["data"] == null ? void 0 : json["data"].map(SmsMessageFromJSON),
13142
- "meta": json["meta"] == null ? void 0 : SmsListResponseMetaFromJSON(json["meta"])
13849
+ "meta": json["meta"] == null ? void 0 : ListWorkflowExecutions200ResponseMetaFromJSON(json["meta"])
13143
13850
  };
13144
13851
  }
13145
13852
  function SmsListResponseToJSON(json) {
@@ -13151,7 +13858,7 @@ function SmsListResponseToJSONTyped(value, ignoreDiscriminator = false) {
13151
13858
  }
13152
13859
  return {
13153
13860
  "data": value["data"] == null ? void 0 : value["data"].map(SmsMessageToJSON),
13154
- "meta": SmsListResponseMetaToJSON(value["meta"])
13861
+ "meta": ListWorkflowExecutions200ResponseMetaToJSON(value["meta"])
13155
13862
  };
13156
13863
  }
13157
13864
 
@@ -13666,35 +14373,6 @@ function TopicToJSONTyped(value, ignoreDiscriminator = false) {
13666
14373
  };
13667
14374
  }
13668
14375
 
13669
- // src/src/models/TopicDeleteResponseData.ts
13670
- function instanceOfTopicDeleteResponseData(value) {
13671
- return true;
13672
- }
13673
- function TopicDeleteResponseDataFromJSON(json) {
13674
- return TopicDeleteResponseDataFromJSONTyped(json, false);
13675
- }
13676
- function TopicDeleteResponseDataFromJSONTyped(json, ignoreDiscriminator) {
13677
- if (json == null) {
13678
- return json;
13679
- }
13680
- return {
13681
- "key": json["key"] == null ? void 0 : json["key"],
13682
- "deleted": json["deleted"] == null ? void 0 : json["deleted"]
13683
- };
13684
- }
13685
- function TopicDeleteResponseDataToJSON(json) {
13686
- return TopicDeleteResponseDataToJSONTyped(json, false);
13687
- }
13688
- function TopicDeleteResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
13689
- if (value == null) {
13690
- return value;
13691
- }
13692
- return {
13693
- "key": value["key"],
13694
- "deleted": value["deleted"]
13695
- };
13696
- }
13697
-
13698
14376
  // src/src/models/TopicDeleteResponse.ts
13699
14377
  function instanceOfTopicDeleteResponse(value) {
13700
14378
  return true;
@@ -13707,7 +14385,7 @@ function TopicDeleteResponseFromJSONTyped(json, ignoreDiscriminator) {
13707
14385
  return json;
13708
14386
  }
13709
14387
  return {
13710
- "data": json["data"] == null ? void 0 : TopicDeleteResponseDataFromJSON(json["data"]),
14388
+ "data": json["data"] == null ? void 0 : DeleteWorkflow200ResponseDataFromJSON(json["data"]),
13711
14389
  "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
13712
14390
  };
13713
14391
  }
@@ -13719,7 +14397,7 @@ function TopicDeleteResponseToJSONTyped(value, ignoreDiscriminator = false) {
13719
14397
  return value;
13720
14398
  }
13721
14399
  return {
13722
- "data": TopicDeleteResponseDataToJSON(value["data"]),
14400
+ "data": DeleteWorkflow200ResponseDataToJSON(value["data"]),
13723
14401
  "meta": RequestMetaToJSON(value["meta"])
13724
14402
  };
13725
14403
  }
@@ -14053,109 +14731,203 @@ function TopicSubscribersRemoveResponseToJSONTyped(value, ignoreDiscriminator =
14053
14731
  };
14054
14732
  }
14055
14733
 
14056
- // src/src/models/UnreadCountData.ts
14057
- function instanceOfUnreadCountData(value) {
14734
+ // src/src/models/TriggerWorkflow202ResponseData.ts
14735
+ function instanceOfTriggerWorkflow202ResponseData(value) {
14058
14736
  return true;
14059
14737
  }
14060
- function UnreadCountDataFromJSON(json) {
14061
- return UnreadCountDataFromJSONTyped(json, false);
14738
+ function TriggerWorkflow202ResponseDataFromJSON(json) {
14739
+ return TriggerWorkflow202ResponseDataFromJSONTyped(json, false);
14062
14740
  }
14063
- function UnreadCountDataFromJSONTyped(json, ignoreDiscriminator) {
14741
+ function TriggerWorkflow202ResponseDataFromJSONTyped(json, ignoreDiscriminator) {
14064
14742
  if (json == null) {
14065
14743
  return json;
14066
14744
  }
14067
14745
  return {
14068
- "unreadCount": json["unread_count"] == null ? void 0 : json["unread_count"]
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"]
14069
14749
  };
14070
14750
  }
14071
- function UnreadCountDataToJSON(json) {
14072
- return UnreadCountDataToJSONTyped(json, false);
14751
+ function TriggerWorkflow202ResponseDataToJSON(json) {
14752
+ return TriggerWorkflow202ResponseDataToJSONTyped(json, false);
14073
14753
  }
14074
- function UnreadCountDataToJSONTyped(value, ignoreDiscriminator = false) {
14754
+ function TriggerWorkflow202ResponseDataToJSONTyped(value, ignoreDiscriminator = false) {
14075
14755
  if (value == null) {
14076
14756
  return value;
14077
14757
  }
14078
14758
  return {
14079
- "unread_count": value["unreadCount"]
14759
+ "execution_ids": value["executionIds"],
14760
+ "subscriber_count": value["subscriberCount"],
14761
+ "workflow_key": value["workflowKey"]
14080
14762
  };
14081
14763
  }
14082
14764
 
14083
- // src/src/models/UnreadCountResponse.ts
14084
- function instanceOfUnreadCountResponse(value) {
14765
+ // src/src/models/TriggerWorkflow202Response.ts
14766
+ function instanceOfTriggerWorkflow202Response(value) {
14085
14767
  return true;
14086
14768
  }
14087
- function UnreadCountResponseFromJSON(json) {
14088
- return UnreadCountResponseFromJSONTyped(json, false);
14769
+ function TriggerWorkflow202ResponseFromJSON(json) {
14770
+ return TriggerWorkflow202ResponseFromJSONTyped(json, false);
14089
14771
  }
14090
- function UnreadCountResponseFromJSONTyped(json, ignoreDiscriminator) {
14772
+ function TriggerWorkflow202ResponseFromJSONTyped(json, ignoreDiscriminator) {
14091
14773
  if (json == null) {
14092
14774
  return json;
14093
14775
  }
14094
14776
  return {
14095
- "data": json["data"] == null ? void 0 : UnreadCountDataFromJSON(json["data"]),
14777
+ "data": json["data"] == null ? void 0 : TriggerWorkflow202ResponseDataFromJSON(json["data"]),
14096
14778
  "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
14097
14779
  };
14098
14780
  }
14099
- function UnreadCountResponseToJSON(json) {
14100
- return UnreadCountResponseToJSONTyped(json, false);
14781
+ function TriggerWorkflow202ResponseToJSON(json) {
14782
+ return TriggerWorkflow202ResponseToJSONTyped(json, false);
14101
14783
  }
14102
- function UnreadCountResponseToJSONTyped(value, ignoreDiscriminator = false) {
14784
+ function TriggerWorkflow202ResponseToJSONTyped(value, ignoreDiscriminator = false) {
14103
14785
  if (value == null) {
14104
14786
  return value;
14105
14787
  }
14106
14788
  return {
14107
- "data": UnreadCountDataToJSON(value["data"]),
14789
+ "data": TriggerWorkflow202ResponseDataToJSON(value["data"]),
14108
14790
  "meta": RequestMetaToJSON(value["meta"])
14109
14791
  };
14110
14792
  }
14111
14793
 
14112
- // src/src/models/Unsubscribe.ts
14113
- var UnsubscribeChannelEnum = {
14114
- EMAIL: "email",
14115
- PUSH: "push",
14116
- SMS: "sms",
14117
- IN_APP: "in_app"
14118
- };
14119
- function instanceOfUnsubscribe(value) {
14794
+ // src/src/models/TriggerWorkflowRequest.ts
14795
+ function instanceOfTriggerWorkflowRequest(value) {
14796
+ if (!("to" in value) || value["to"] === void 0) return false;
14120
14797
  return true;
14121
14798
  }
14122
- function UnsubscribeFromJSON(json) {
14123
- return UnsubscribeFromJSONTyped(json, false);
14799
+ function TriggerWorkflowRequestFromJSON(json) {
14800
+ return TriggerWorkflowRequestFromJSONTyped(json, false);
14124
14801
  }
14125
- function UnsubscribeFromJSONTyped(json, ignoreDiscriminator) {
14802
+ function TriggerWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
14126
14803
  if (json == null) {
14127
14804
  return json;
14128
14805
  }
14129
14806
  return {
14130
- "id": json["id"] == null ? void 0 : json["id"],
14131
- "subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
14132
- "channel": json["channel"] == null ? void 0 : json["channel"],
14133
- "reason": json["reason"] == null ? void 0 : json["reason"],
14134
- "createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
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"]
14135
14811
  };
14136
14812
  }
14137
- function UnsubscribeToJSON(json) {
14138
- return UnsubscribeToJSONTyped(json, false);
14813
+ function TriggerWorkflowRequestToJSON(json) {
14814
+ return TriggerWorkflowRequestToJSONTyped(json, false);
14139
14815
  }
14140
- function UnsubscribeToJSONTyped(value, ignoreDiscriminator = false) {
14816
+ function TriggerWorkflowRequestToJSONTyped(value, ignoreDiscriminator = false) {
14141
14817
  if (value == null) {
14142
14818
  return value;
14143
14819
  }
14144
14820
  return {
14145
- "id": value["id"],
14146
- "subscriber_id": value["subscriberId"],
14147
- "channel": value["channel"],
14148
- "reason": value["reason"],
14149
- "created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
14821
+ "to": value["to"],
14822
+ "payload": value["payload"],
14823
+ "transaction_id": value["transactionId"],
14824
+ "from": value["from"]
14150
14825
  };
14151
14826
  }
14152
14827
 
14153
- // src/src/models/UnsubscribeListResponse.ts
14154
- function instanceOfUnsubscribeListResponse(value) {
14828
+ // src/src/models/UnreadCountData.ts
14829
+ function instanceOfUnreadCountData(value) {
14155
14830
  return true;
14156
14831
  }
14157
- function UnsubscribeListResponseFromJSON(json) {
14158
- return UnsubscribeListResponseFromJSONTyped(json, false);
14832
+ function UnreadCountDataFromJSON(json) {
14833
+ return UnreadCountDataFromJSONTyped(json, false);
14834
+ }
14835
+ function UnreadCountDataFromJSONTyped(json, ignoreDiscriminator) {
14836
+ if (json == null) {
14837
+ return json;
14838
+ }
14839
+ return {
14840
+ "unreadCount": json["unread_count"] == null ? void 0 : json["unread_count"]
14841
+ };
14842
+ }
14843
+ function UnreadCountDataToJSON(json) {
14844
+ return UnreadCountDataToJSONTyped(json, false);
14845
+ }
14846
+ function UnreadCountDataToJSONTyped(value, ignoreDiscriminator = false) {
14847
+ if (value == null) {
14848
+ return value;
14849
+ }
14850
+ return {
14851
+ "unread_count": value["unreadCount"]
14852
+ };
14853
+ }
14854
+
14855
+ // src/src/models/UnreadCountResponse.ts
14856
+ function instanceOfUnreadCountResponse(value) {
14857
+ return true;
14858
+ }
14859
+ function UnreadCountResponseFromJSON(json) {
14860
+ return UnreadCountResponseFromJSONTyped(json, false);
14861
+ }
14862
+ function UnreadCountResponseFromJSONTyped(json, ignoreDiscriminator) {
14863
+ if (json == null) {
14864
+ return json;
14865
+ }
14866
+ return {
14867
+ "data": json["data"] == null ? void 0 : UnreadCountDataFromJSON(json["data"]),
14868
+ "meta": json["meta"] == null ? void 0 : RequestMetaFromJSON(json["meta"])
14869
+ };
14870
+ }
14871
+ function UnreadCountResponseToJSON(json) {
14872
+ return UnreadCountResponseToJSONTyped(json, false);
14873
+ }
14874
+ function UnreadCountResponseToJSONTyped(value, ignoreDiscriminator = false) {
14875
+ if (value == null) {
14876
+ return value;
14877
+ }
14878
+ return {
14879
+ "data": UnreadCountDataToJSON(value["data"]),
14880
+ "meta": RequestMetaToJSON(value["meta"])
14881
+ };
14882
+ }
14883
+
14884
+ // src/src/models/Unsubscribe.ts
14885
+ var UnsubscribeChannelEnum = {
14886
+ EMAIL: "email",
14887
+ PUSH: "push",
14888
+ SMS: "sms",
14889
+ IN_APP: "in_app"
14890
+ };
14891
+ function instanceOfUnsubscribe(value) {
14892
+ return true;
14893
+ }
14894
+ function UnsubscribeFromJSON(json) {
14895
+ return UnsubscribeFromJSONTyped(json, false);
14896
+ }
14897
+ function UnsubscribeFromJSONTyped(json, ignoreDiscriminator) {
14898
+ if (json == null) {
14899
+ return json;
14900
+ }
14901
+ return {
14902
+ "id": json["id"] == null ? void 0 : json["id"],
14903
+ "subscriberId": json["subscriber_id"] == null ? void 0 : json["subscriber_id"],
14904
+ "channel": json["channel"] == null ? void 0 : json["channel"],
14905
+ "reason": json["reason"] == null ? void 0 : json["reason"],
14906
+ "createdAt": json["created_at"] == null ? void 0 : new Date(json["created_at"])
14907
+ };
14908
+ }
14909
+ function UnsubscribeToJSON(json) {
14910
+ return UnsubscribeToJSONTyped(json, false);
14911
+ }
14912
+ function UnsubscribeToJSONTyped(value, ignoreDiscriminator = false) {
14913
+ if (value == null) {
14914
+ return value;
14915
+ }
14916
+ return {
14917
+ "id": value["id"],
14918
+ "subscriber_id": value["subscriberId"],
14919
+ "channel": value["channel"],
14920
+ "reason": value["reason"],
14921
+ "created_at": value["createdAt"] == null ? void 0 : value["createdAt"].toISOString()
14922
+ };
14923
+ }
14924
+
14925
+ // src/src/models/UnsubscribeListResponse.ts
14926
+ function instanceOfUnsubscribeListResponse(value) {
14927
+ return true;
14928
+ }
14929
+ function UnsubscribeListResponseFromJSON(json) {
14930
+ return UnsubscribeListResponseFromJSONTyped(json, false);
14159
14931
  }
14160
14932
  function UnsubscribeListResponseFromJSONTyped(json, ignoreDiscriminator) {
14161
14933
  if (json == null) {
@@ -14729,6 +15501,96 @@ function UpdateWebhookRequestToJSONTyped(value, ignoreDiscriminator = false) {
14729
15501
  };
14730
15502
  }
14731
15503
 
15504
+ // src/src/models/UpdateWorkflowRequest.ts
15505
+ function instanceOfUpdateWorkflowRequest(value) {
15506
+ return true;
15507
+ }
15508
+ function UpdateWorkflowRequestFromJSON(json) {
15509
+ return UpdateWorkflowRequestFromJSONTyped(json, false);
15510
+ }
15511
+ function UpdateWorkflowRequestFromJSONTyped(json, ignoreDiscriminator) {
15512
+ if (json == null) {
15513
+ return json;
15514
+ }
15515
+ return {
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
+
14732
15594
  // src/src/models/UpsertSmsConfigRequest.ts
14733
15595
  function instanceOfUpsertSmsConfigRequest(value) {
14734
15596
  if (!("accountSid" in value) || value["accountSid"] === void 0) return false;
@@ -14823,45 +15685,6 @@ function UserDevicesDeleteResponseToJSONTyped(value, ignoreDiscriminator = false
14823
15685
  };
14824
15686
  }
14825
15687
 
14826
- // src/src/models/V1MuseSubjectsSuggestPostRequest.ts
14827
- var V1MuseSubjectsSuggestPostRequestChannelEnum = {
14828
- EMAIL: "email",
14829
- PUSH: "push"
14830
- };
14831
- function instanceOfV1MuseSubjectsSuggestPostRequest(value) {
14832
- if (!("channel" in value) || value["channel"] === void 0) return false;
14833
- if (!("projectId" in value) || value["projectId"] === void 0) return false;
14834
- return true;
14835
- }
14836
- function V1MuseSubjectsSuggestPostRequestFromJSON(json) {
14837
- return V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, false);
14838
- }
14839
- function V1MuseSubjectsSuggestPostRequestFromJSONTyped(json, ignoreDiscriminator) {
14840
- if (json == null) {
14841
- return json;
14842
- }
14843
- return {
14844
- "templateId": json["template_id"] == null ? void 0 : json["template_id"],
14845
- "templateBody": json["template_body"] == null ? void 0 : json["template_body"],
14846
- "channel": json["channel"],
14847
- "projectId": json["project_id"]
14848
- };
14849
- }
14850
- function V1MuseSubjectsSuggestPostRequestToJSON(json) {
14851
- return V1MuseSubjectsSuggestPostRequestToJSONTyped(json, false);
14852
- }
14853
- function V1MuseSubjectsSuggestPostRequestToJSONTyped(value, ignoreDiscriminator = false) {
14854
- if (value == null) {
14855
- return value;
14856
- }
14857
- return {
14858
- "template_id": value["templateId"],
14859
- "template_body": value["templateBody"],
14860
- "channel": value["channel"],
14861
- "project_id": value["projectId"]
14862
- };
14863
- }
14864
-
14865
15688
  // src/src/models/ValidateResetTokenRequest.ts
14866
15689
  function instanceOfValidateResetTokenRequest(value) {
14867
15690
  if (!("token" in value) || value["token"] === void 0) return false;
@@ -19232,7 +20055,7 @@ var AuthRegistrationApi = class extends BaseAPI {
19232
20055
  return await response.value();
19233
20056
  }
19234
20057
  /**
19235
- * 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.
19236
20059
  * Sign in with Apple Game Center
19237
20060
  */
19238
20061
  async signInWithGameCenterRaw(requestParameters, initOverrides) {
@@ -19258,13 +20081,47 @@ var AuthRegistrationApi = class extends BaseAPI {
19258
20081
  return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
19259
20082
  }
19260
20083
  /**
19261
- * 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.
19262
20085
  * Sign in with Apple Game Center
19263
20086
  */
19264
20087
  async signInWithGameCenter(signInWithGameCenterRequest, initOverrides) {
19265
20088
  const response = await this.signInWithGameCenterRaw({ signInWithGameCenterRequest }, initOverrides);
19266
20089
  return await response.value();
19267
20090
  }
20091
+ /**
20092
+ * Exchange a Google Play Games Services (GPGS) **server auth code** for a Zyphr end-user session. Unlike Game Center (which submits an Apple-signed assertion), GPGS is verified by Google: Zyphr exchanges the single-use server auth code at Google\'s OAuth2 token endpoint, then calls the Play Games REST API (`players/me`) server-side to obtain the trusted, tamper-proof `playerId`. The user is provisioned-or-looked-up on that server-fetched `playerId` and tokens are minted. ## Producing the server auth code (Integration) The server auth code is obtained **on-device by the Android app** — there is no server-side way to mint it. The app calls `GamesSignInClient.requestServerSideAccess(serverClientId, …)` using the Google Cloud **web (server) client id** configured for the game, which returns a single-use auth code string. Submit that string here as `serverAuthCode`. The **backend-relayed** shape is the common one: the app forwards the auth code to the customer\'s own backend, which relays it to this endpoint; the app never holds Zyphr keys. ## Security The `playerId` is derived **only** from Zyphr\'s own server-side call to Google after the token exchange — a client-supplied player id is never accepted or trusted. On any verification failure the response is a single opaque `401` `invalid_auth_code`; the specific control that failed is never disclosed.
20093
+ * Sign in with Google Play Games Services
20094
+ */
20095
+ async signInWithGooglePlayGamesRaw(requestParameters, initOverrides) {
20096
+ if (requestParameters["signInWithGooglePlayGamesRequest"] == null) {
20097
+ throw new RequiredError(
20098
+ "signInWithGooglePlayGamesRequest",
20099
+ 'Required parameter "signInWithGooglePlayGamesRequest" was null or undefined when calling signInWithGooglePlayGames().'
20100
+ );
20101
+ }
20102
+ const queryParameters = {};
20103
+ const headerParameters = {};
20104
+ headerParameters["Content-Type"] = "application/json";
20105
+ if (this.configuration && this.configuration.apiKey) {
20106
+ headerParameters["X-Application-Key"] = await this.configuration.apiKey("X-Application-Key");
20107
+ }
20108
+ const response = await this.request({
20109
+ path: `/auth/google-play-games`,
20110
+ method: "POST",
20111
+ headers: headerParameters,
20112
+ query: queryParameters,
20113
+ body: SignInWithGooglePlayGamesRequestToJSON(requestParameters["signInWithGooglePlayGamesRequest"])
20114
+ }, initOverrides);
20115
+ return new JSONApiResponse(response, (jsonValue) => AuthResultResponseFromJSON(jsonValue));
20116
+ }
20117
+ /**
20118
+ * Exchange a Google Play Games Services (GPGS) **server auth code** for a Zyphr end-user session. Unlike Game Center (which submits an Apple-signed assertion), GPGS is verified by Google: Zyphr exchanges the single-use server auth code at Google\'s OAuth2 token endpoint, then calls the Play Games REST API (`players/me`) server-side to obtain the trusted, tamper-proof `playerId`. The user is provisioned-or-looked-up on that server-fetched `playerId` and tokens are minted. ## Producing the server auth code (Integration) The server auth code is obtained **on-device by the Android app** — there is no server-side way to mint it. The app calls `GamesSignInClient.requestServerSideAccess(serverClientId, …)` using the Google Cloud **web (server) client id** configured for the game, which returns a single-use auth code string. Submit that string here as `serverAuthCode`. The **backend-relayed** shape is the common one: the app forwards the auth code to the customer\'s own backend, which relays it to this endpoint; the app never holds Zyphr keys. ## Security The `playerId` is derived **only** from Zyphr\'s own server-side call to Google after the token exchange — a client-supplied player id is never accepted or trusted. On any verification failure the response is a single opaque `401` `invalid_auth_code`; the specific control that failed is never disclosed.
20119
+ * Sign in with Google Play Games Services
20120
+ */
20121
+ async signInWithGooglePlayGames(signInWithGooglePlayGamesRequest, initOverrides) {
20122
+ const response = await this.signInWithGooglePlayGamesRaw({ signInWithGooglePlayGamesRequest }, initOverrides);
20123
+ return await response.value();
20124
+ }
19268
20125
  };
19269
20126
 
19270
20127
  // src/src/apis/AuthSessionsApi.ts
@@ -21724,342 +22581,82 @@ var ListAllInboxStatusEnum = {
21724
22581
  ARCHIVED: "archived"
21725
22582
  };
21726
22583
 
21727
- // src/src/apis/MuseApi.ts
21728
- var MuseApi = class extends BaseAPI {
22584
+ // src/src/apis/PushApi.ts
22585
+ var PushApi = class extends BaseAPI {
21729
22586
  /**
21730
- * 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).
21731
- * Paginated per-call audit log for Muse
22587
+ * Get a specific push notification message with delivery events.
22588
+ * Get push notification details
21732
22589
  */
21733
- 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
+ }
21734
22597
  const queryParameters = {};
21735
22598
  const headerParameters = {};
22599
+ if (this.configuration && this.configuration.apiKey) {
22600
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22601
+ }
21736
22602
  const response = await this.request({
21737
- path: `/v1/muse/audit-log`,
22603
+ path: `/push/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
21738
22604
  method: "GET",
21739
22605
  headers: headerParameters,
21740
22606
  query: queryParameters
21741
22607
  }, initOverrides);
21742
- return new VoidApiResponse(response);
22608
+ return new JSONApiResponse(response, (jsonValue) => PushDetailResponseFromJSON(jsonValue));
21743
22609
  }
21744
22610
  /**
21745
- * 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).
21746
- * Paginated per-call audit log for Muse
22611
+ * Get a specific push notification message with delivery events.
22612
+ * Get push notification details
21747
22613
  */
21748
- async v1MuseAuditLogGet(initOverrides) {
21749
- await this.v1MuseAuditLogGetRaw(initOverrides);
22614
+ async getPush(id, initOverrides) {
22615
+ const response = await this.getPushRaw({ id }, initOverrides);
22616
+ return await response.value();
21750
22617
  }
21751
22618
  /**
21752
- * 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.
21753
- * Stream a pre-send advisory for a draft broadcast
22619
+ * Get aggregated push notification statistics for the account.
22620
+ * Get push notification statistics
21754
22621
  */
21755
- async v1MuseBroadcastsAnalyzePostRaw(initOverrides) {
22622
+ async getPushStatsRaw(initOverrides) {
21756
22623
  const queryParameters = {};
21757
22624
  const headerParameters = {};
22625
+ if (this.configuration && this.configuration.apiKey) {
22626
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22627
+ }
21758
22628
  const response = await this.request({
21759
- path: `/v1/muse/broadcasts/analyze`,
21760
- method: "POST",
22629
+ path: `/push/stats`,
22630
+ method: "GET",
21761
22631
  headers: headerParameters,
21762
22632
  query: queryParameters
21763
22633
  }, initOverrides);
21764
- return new VoidApiResponse(response);
22634
+ return new JSONApiResponse(response, (jsonValue) => PushStatsResponseFromJSON(jsonValue));
21765
22635
  }
21766
22636
  /**
21767
- * 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.
21768
- * Stream a pre-send advisory for a draft broadcast
22637
+ * Get aggregated push notification statistics for the account.
22638
+ * Get push notification statistics
21769
22639
  */
21770
- async v1MuseBroadcastsAnalyzePost(initOverrides) {
21771
- await this.v1MuseBroadcastsAnalyzePostRaw(initOverrides);
22640
+ async getPushStats(initOverrides) {
22641
+ const response = await this.getPushStatsRaw(initOverrides);
22642
+ return await response.value();
21772
22643
  }
21773
22644
  /**
21774
- * 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).
21775
- * 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
21776
22647
  */
21777
- 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
+ }
21778
22655
  const queryParameters = {};
21779
22656
  const headerParameters = {};
21780
- const response = await this.request({
21781
- path: `/v1/muse/entitlement`,
21782
- method: "GET",
21783
- headers: headerParameters,
21784
- query: queryParameters
21785
- }, initOverrides);
21786
- return new VoidApiResponse(response);
21787
- }
21788
- /**
21789
- * 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).
21790
- * Return the current account\'s Zyphr Muse entitlement
21791
- */
21792
- async v1MuseEntitlementGet(initOverrides) {
21793
- await this.v1MuseEntitlementGetRaw(initOverrides);
21794
- }
21795
- /**
21796
- * 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.
21797
- * Per-prompt eval baseline snapshots
21798
- */
21799
- async v1MuseEvalBaselinesGetRaw(initOverrides) {
21800
- const queryParameters = {};
21801
- const headerParameters = {};
21802
- const response = await this.request({
21803
- path: `/v1/muse/eval-baselines`,
21804
- method: "GET",
21805
- headers: headerParameters,
21806
- query: queryParameters
21807
- }, initOverrides);
21808
- return new VoidApiResponse(response);
21809
- }
21810
- /**
21811
- * 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.
21812
- * Per-prompt eval baseline snapshots
21813
- */
21814
- async v1MuseEvalBaselinesGet(initOverrides) {
21815
- await this.v1MuseEvalBaselinesGetRaw(initOverrides);
21816
- }
21817
- /**
21818
- * 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.
21819
- * Read Muse settings for a project
21820
- */
21821
- async v1MuseSettingsProjectIdGetRaw(requestParameters, initOverrides) {
21822
- if (requestParameters["projectId"] == null) {
21823
- throw new RequiredError(
21824
- "projectId",
21825
- 'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdGet().'
21826
- );
21827
- }
21828
- const queryParameters = {};
21829
- const headerParameters = {};
21830
- const response = await this.request({
21831
- path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
21832
- method: "GET",
21833
- headers: headerParameters,
21834
- query: queryParameters
21835
- }, initOverrides);
21836
- return new VoidApiResponse(response);
21837
- }
21838
- /**
21839
- * 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.
21840
- * Read Muse settings for a project
21841
- */
21842
- async v1MuseSettingsProjectIdGet(projectId, initOverrides) {
21843
- await this.v1MuseSettingsProjectIdGetRaw({ projectId }, initOverrides);
21844
- }
21845
- /**
21846
- * 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.
21847
- * Update Muse settings for a project (admin or developer only)
21848
- */
21849
- async v1MuseSettingsProjectIdPatchRaw(requestParameters, initOverrides) {
21850
- if (requestParameters["projectId"] == null) {
21851
- throw new RequiredError(
21852
- "projectId",
21853
- 'Required parameter "projectId" was null or undefined when calling v1MuseSettingsProjectIdPatch().'
21854
- );
21855
- }
21856
- const queryParameters = {};
21857
- const headerParameters = {};
21858
- const response = await this.request({
21859
- path: `/v1/muse/settings/{project_id}`.replace(`{${"project_id"}}`, encodeURIComponent(String(requestParameters["projectId"]))),
21860
- method: "PATCH",
21861
- headers: headerParameters,
21862
- query: queryParameters
21863
- }, initOverrides);
21864
- return new VoidApiResponse(response);
21865
- }
21866
- /**
21867
- * 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.
21868
- * Update Muse settings for a project (admin or developer only)
21869
- */
21870
- async v1MuseSettingsProjectIdPatch(projectId, initOverrides) {
21871
- await this.v1MuseSettingsProjectIdPatchRaw({ projectId }, initOverrides);
21872
- }
21873
- /**
21874
- * Suggest 5 ranked subject-line candidates for a template
21875
- */
21876
- async v1MuseSubjectsSuggestPostRaw(requestParameters, initOverrides) {
21877
- if (requestParameters["v1MuseSubjectsSuggestPostRequest"] == null) {
21878
- throw new RequiredError(
21879
- "v1MuseSubjectsSuggestPostRequest",
21880
- 'Required parameter "v1MuseSubjectsSuggestPostRequest" was null or undefined when calling v1MuseSubjectsSuggestPost().'
21881
- );
21882
- }
21883
- const queryParameters = {};
21884
- const headerParameters = {};
21885
- headerParameters["Content-Type"] = "application/json";
21886
- const response = await this.request({
21887
- path: `/v1/muse/subjects/suggest`,
21888
- method: "POST",
21889
- headers: headerParameters,
21890
- query: queryParameters,
21891
- body: V1MuseSubjectsSuggestPostRequestToJSON(requestParameters["v1MuseSubjectsSuggestPostRequest"])
21892
- }, initOverrides);
21893
- return new VoidApiResponse(response);
21894
- }
21895
- /**
21896
- * Suggest 5 ranked subject-line candidates for a template
21897
- */
21898
- async v1MuseSubjectsSuggestPost(v1MuseSubjectsSuggestPostRequest, initOverrides) {
21899
- await this.v1MuseSubjectsSuggestPostRaw({ v1MuseSubjectsSuggestPostRequest }, initOverrides);
21900
- }
21901
- /**
21902
- * Stream a draft template from a natural-language brief
21903
- */
21904
- async v1MuseTemplatesDraftPostRaw(initOverrides) {
21905
- const queryParameters = {};
21906
- const headerParameters = {};
21907
- const response = await this.request({
21908
- path: `/v1/muse/templates/draft`,
21909
- method: "POST",
21910
- headers: headerParameters,
21911
- query: queryParameters
21912
- }, initOverrides);
21913
- return new VoidApiResponse(response);
21914
- }
21915
- /**
21916
- * Stream a draft template from a natural-language brief
21917
- */
21918
- async v1MuseTemplatesDraftPost(initOverrides) {
21919
- await this.v1MuseTemplatesDraftPostRaw(initOverrides);
21920
- }
21921
- /**
21922
- * Stream a rewritten block per the user\'s instruction
21923
- */
21924
- async v1MuseTemplatesRewritePostRaw(initOverrides) {
21925
- const queryParameters = {};
21926
- const headerParameters = {};
21927
- const response = await this.request({
21928
- path: `/v1/muse/templates/rewrite`,
21929
- method: "POST",
21930
- headers: headerParameters,
21931
- query: queryParameters
21932
- }, initOverrides);
21933
- return new VoidApiResponse(response);
21934
- }
21935
- /**
21936
- * Stream a rewritten block per the user\'s instruction
21937
- */
21938
- async v1MuseTemplatesRewritePost(initOverrides) {
21939
- await this.v1MuseTemplatesRewritePostRaw(initOverrides);
21940
- }
21941
- /**
21942
- * 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).
21943
- * Per-account Zyphr Muse usage + budget tier
21944
- */
21945
- async v1MuseUsageGetRaw(initOverrides) {
21946
- const queryParameters = {};
21947
- const headerParameters = {};
21948
- const response = await this.request({
21949
- path: `/v1/muse/usage`,
21950
- method: "GET",
21951
- headers: headerParameters,
21952
- query: queryParameters
21953
- }, initOverrides);
21954
- return new VoidApiResponse(response);
21955
- }
21956
- /**
21957
- * 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).
21958
- * Per-account Zyphr Muse usage + budget tier
21959
- */
21960
- async v1MuseUsageGet(initOverrides) {
21961
- await this.v1MuseUsageGetRaw(initOverrides);
21962
- }
21963
- /**
21964
- * 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.
21965
- * Stream a generated workflow from a natural-language description
21966
- */
21967
- async v1MuseWorkflowsGeneratePostRaw(initOverrides) {
21968
- const queryParameters = {};
21969
- const headerParameters = {};
21970
- const response = await this.request({
21971
- path: `/v1/muse/workflows/generate`,
21972
- method: "POST",
21973
- headers: headerParameters,
21974
- query: queryParameters
21975
- }, initOverrides);
21976
- return new VoidApiResponse(response);
21977
- }
21978
- /**
21979
- * 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.
21980
- * Stream a generated workflow from a natural-language description
21981
- */
21982
- async v1MuseWorkflowsGeneratePost(initOverrides) {
21983
- await this.v1MuseWorkflowsGeneratePostRaw(initOverrides);
21984
- }
21985
- };
21986
-
21987
- // src/src/apis/PushApi.ts
21988
- var PushApi = class extends BaseAPI {
21989
- /**
21990
- * Get a specific push notification message with delivery events.
21991
- * Get push notification details
21992
- */
21993
- async getPushRaw(requestParameters, initOverrides) {
21994
- if (requestParameters["id"] == null) {
21995
- throw new RequiredError(
21996
- "id",
21997
- 'Required parameter "id" was null or undefined when calling getPush().'
21998
- );
21999
- }
22000
- const queryParameters = {};
22001
- const headerParameters = {};
22002
- if (this.configuration && this.configuration.apiKey) {
22003
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22004
- }
22005
- const response = await this.request({
22006
- path: `/push/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22007
- method: "GET",
22008
- headers: headerParameters,
22009
- query: queryParameters
22010
- }, initOverrides);
22011
- return new JSONApiResponse(response, (jsonValue) => PushDetailResponseFromJSON(jsonValue));
22012
- }
22013
- /**
22014
- * Get a specific push notification message with delivery events.
22015
- * Get push notification details
22016
- */
22017
- async getPush(id, initOverrides) {
22018
- const response = await this.getPushRaw({ id }, initOverrides);
22019
- return await response.value();
22020
- }
22021
- /**
22022
- * Get aggregated push notification statistics for the account.
22023
- * Get push notification statistics
22024
- */
22025
- async getPushStatsRaw(initOverrides) {
22026
- const queryParameters = {};
22027
- const headerParameters = {};
22028
- if (this.configuration && this.configuration.apiKey) {
22029
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22030
- }
22031
- const response = await this.request({
22032
- path: `/push/stats`,
22033
- method: "GET",
22034
- headers: headerParameters,
22035
- query: queryParameters
22036
- }, initOverrides);
22037
- return new JSONApiResponse(response, (jsonValue) => PushStatsResponseFromJSON(jsonValue));
22038
- }
22039
- /**
22040
- * Get aggregated push notification statistics for the account.
22041
- * Get push notification statistics
22042
- */
22043
- async getPushStats(initOverrides) {
22044
- const response = await this.getPushStatsRaw(initOverrides);
22045
- return await response.value();
22046
- }
22047
- /**
22048
- * Get all push notification topics a specific device is subscribed to.
22049
- * List topics for a device
22050
- */
22051
- async listDevicePushTopicsRaw(requestParameters, initOverrides) {
22052
- if (requestParameters["id"] == null) {
22053
- throw new RequiredError(
22054
- "id",
22055
- 'Required parameter "id" was null or undefined when calling listDevicePushTopics().'
22056
- );
22057
- }
22058
- const queryParameters = {};
22059
- const headerParameters = {};
22060
- if (this.configuration && this.configuration.apiKey) {
22061
- headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22062
- }
22657
+ if (this.configuration && this.configuration.apiKey) {
22658
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
22659
+ }
22063
22660
  const response = await this.request({
22064
22661
  path: `/push/devices/{id}/topics`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters["id"]))),
22065
22662
  method: "GET",
@@ -25908,6 +26505,468 @@ var ListWebhookDeliveriesStatusEnum = {
25908
26505
  EXHAUSTED: "exhausted"
25909
26506
  };
25910
26507
 
26508
+ // src/src/apis/WorkflowsApi.ts
26509
+ var WorkflowsApi = class extends BaseAPI {
26510
+ /**
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
26513
+ */
26514
+ async addWorkflowStepRaw(requestParameters, initOverrides) {
26515
+ if (requestParameters["key"] == null) {
26516
+ throw new RequiredError(
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().'
26525
+ );
26526
+ }
26527
+ const queryParameters = {};
26528
+ const headerParameters = {};
26529
+ headerParameters["Content-Type"] = "application/json";
26530
+ if (this.configuration && this.configuration.apiKey) {
26531
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26532
+ }
26533
+ const response = await this.request({
26534
+ path: `/workflows/{key}/steps`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26535
+ method: "POST",
26536
+ headers: headerParameters,
26537
+ query: queryParameters,
26538
+ body: AddWorkflowStepRequestToJSON(requestParameters["addWorkflowStepRequest"])
26539
+ }, initOverrides);
26540
+ return new JSONApiResponse(response, (jsonValue) => AddWorkflowStep201ResponseFromJSON(jsonValue));
26541
+ }
26542
+ /**
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
26545
+ */
26546
+ async addWorkflowStep(key, addWorkflowStepRequest, initOverrides) {
26547
+ const response = await this.addWorkflowStepRaw({ key, addWorkflowStepRequest }, initOverrides);
26548
+ return await response.value();
26549
+ }
26550
+ /**
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
26553
+ */
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
+ }
26561
+ const queryParameters = {};
26562
+ const headerParameters = {};
26563
+ headerParameters["Content-Type"] = "application/json";
26564
+ if (this.configuration && this.configuration.apiKey) {
26565
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26566
+ }
26567
+ const response = await this.request({
26568
+ path: `/workflows`,
26569
+ method: "POST",
26570
+ headers: headerParameters,
26571
+ query: queryParameters,
26572
+ body: CreateWorkflowRequestToJSON(requestParameters["createWorkflowRequest"])
26573
+ }, initOverrides);
26574
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
26575
+ }
26576
+ /**
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
26579
+ */
26580
+ async createWorkflow(createWorkflowRequest, initOverrides) {
26581
+ const response = await this.createWorkflowRaw({ createWorkflowRequest }, initOverrides);
26582
+ return await response.value();
26583
+ }
26584
+ /**
26585
+ * Permanently delete a workflow and all of its steps.
26586
+ * Delete a workflow
26587
+ */
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
+ }
26595
+ const queryParameters = {};
26596
+ const headerParameters = {};
26597
+ if (this.configuration && this.configuration.apiKey) {
26598
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26599
+ }
26600
+ const response = await this.request({
26601
+ path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26602
+ method: "DELETE",
26603
+ headers: headerParameters,
26604
+ query: queryParameters
26605
+ }, initOverrides);
26606
+ return new JSONApiResponse(response, (jsonValue) => DeleteWorkflow200ResponseFromJSON(jsonValue));
26607
+ }
26608
+ /**
26609
+ * Permanently delete a workflow and all of its steps.
26610
+ * Delete a workflow
26611
+ */
26612
+ async deleteWorkflow(key, initOverrides) {
26613
+ const response = await this.deleteWorkflowRaw({ key }, initOverrides);
26614
+ return await response.value();
26615
+ }
26616
+ /**
26617
+ * Remove a step from a workflow.
26618
+ * Delete a workflow step
26619
+ */
26620
+ async deleteWorkflowStepRaw(requestParameters, initOverrides) {
26621
+ if (requestParameters["key"] == null) {
26622
+ throw new RequiredError(
26623
+ "key",
26624
+ 'Required parameter "key" was null or undefined when calling deleteWorkflowStep().'
26625
+ );
26626
+ }
26627
+ if (requestParameters["stepKey"] == null) {
26628
+ throw new RequiredError(
26629
+ "stepKey",
26630
+ 'Required parameter "stepKey" was null or undefined when calling deleteWorkflowStep().'
26631
+ );
26632
+ }
26633
+ const queryParameters = {};
26634
+ const headerParameters = {};
26635
+ if (this.configuration && this.configuration.apiKey) {
26636
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26637
+ }
26638
+ const response = await this.request({
26639
+ path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
26640
+ method: "DELETE",
26641
+ headers: headerParameters,
26642
+ query: queryParameters
26643
+ }, initOverrides);
26644
+ return new JSONApiResponse(response, (jsonValue) => DeleteWorkflowStep200ResponseFromJSON(jsonValue));
26645
+ }
26646
+ /**
26647
+ * Remove a step from a workflow.
26648
+ * Delete a workflow step
26649
+ */
26650
+ async deleteWorkflowStep(key, stepKey, initOverrides) {
26651
+ const response = await this.deleteWorkflowStepRaw({ key, stepKey }, initOverrides);
26652
+ return await response.value();
26653
+ }
26654
+ /**
26655
+ * Retrieve a single workflow by its key, including its ordered steps.
26656
+ * Get a workflow
26657
+ */
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
+ );
26664
+ }
26665
+ const queryParameters = {};
26666
+ const headerParameters = {};
26667
+ if (this.configuration && this.configuration.apiKey) {
26668
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26669
+ }
26670
+ const response = await this.request({
26671
+ path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26672
+ method: "GET",
26673
+ headers: headerParameters,
26674
+ query: queryParameters
26675
+ }, initOverrides);
26676
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
26677
+ }
26678
+ /**
26679
+ * Retrieve a single workflow by its key, including its ordered steps.
26680
+ * Get a workflow
26681
+ */
26682
+ async getWorkflow(key, initOverrides) {
26683
+ const response = await this.getWorkflowRaw({ key }, initOverrides);
26684
+ return await response.value();
26685
+ }
26686
+ /**
26687
+ * List the executions of a workflow, most recent first. Supports pagination.
26688
+ * List workflow executions
26689
+ */
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
+ }
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
+ }
26704
+ const headerParameters = {};
26705
+ if (this.configuration && this.configuration.apiKey) {
26706
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26707
+ }
26708
+ const response = await this.request({
26709
+ path: `/workflows/{key}/executions`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26710
+ method: "GET",
26711
+ headers: headerParameters,
26712
+ query: queryParameters
26713
+ }, initOverrides);
26714
+ return new JSONApiResponse(response, (jsonValue) => ListWorkflowExecutions200ResponseFromJSON(jsonValue));
26715
+ }
26716
+ /**
26717
+ * List the executions of a workflow, most recent first. Supports pagination.
26718
+ * List workflow executions
26719
+ */
26720
+ async listWorkflowExecutions(key, page, perPage, initOverrides) {
26721
+ const response = await this.listWorkflowExecutionsRaw({ key, page, perPage }, initOverrides);
26722
+ return await response.value();
26723
+ }
26724
+ /**
26725
+ * List workflows in the project. Supports pagination, free-text search, and status filtering.
26726
+ * List workflows
26727
+ */
26728
+ async listWorkflowsRaw(requestParameters, initOverrides) {
26729
+ const queryParameters = {};
26730
+ if (requestParameters["page"] != null) {
26731
+ queryParameters["page"] = requestParameters["page"];
26732
+ }
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"];
26741
+ }
26742
+ const headerParameters = {};
26743
+ if (this.configuration && this.configuration.apiKey) {
26744
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26745
+ }
26746
+ const response = await this.request({
26747
+ path: `/workflows`,
26748
+ method: "GET",
26749
+ headers: headerParameters,
26750
+ query: queryParameters
26751
+ }, initOverrides);
26752
+ return new JSONApiResponse(response, (jsonValue) => ListWorkflows200ResponseFromJSON(jsonValue));
26753
+ }
26754
+ /**
26755
+ * List workflows in the project. Supports pagination, free-text search, and status filtering.
26756
+ * List workflows
26757
+ */
26758
+ async listWorkflows(page, perPage, search, status, initOverrides) {
26759
+ const response = await this.listWorkflowsRaw({ page, perPage, search, status }, initOverrides);
26760
+ return await response.value();
26761
+ }
26762
+ /**
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
26765
+ */
26766
+ async reorderWorkflowStepsRaw(requestParameters, initOverrides) {
26767
+ if (requestParameters["key"] == null) {
26768
+ throw new RequiredError(
26769
+ "key",
26770
+ 'Required parameter "key" was null or undefined when calling reorderWorkflowSteps().'
26771
+ );
26772
+ }
26773
+ if (requestParameters["reorderWorkflowStepsRequest"] == null) {
26774
+ throw new RequiredError(
26775
+ "reorderWorkflowStepsRequest",
26776
+ 'Required parameter "reorderWorkflowStepsRequest" was null or undefined when calling reorderWorkflowSteps().'
26777
+ );
26778
+ }
26779
+ const queryParameters = {};
26780
+ const headerParameters = {};
26781
+ headerParameters["Content-Type"] = "application/json";
26782
+ if (this.configuration && this.configuration.apiKey) {
26783
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26784
+ }
26785
+ const response = await this.request({
26786
+ path: `/workflows/{key}/steps/reorder`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26787
+ method: "PUT",
26788
+ headers: headerParameters,
26789
+ query: queryParameters,
26790
+ body: ReorderWorkflowStepsRequestToJSON(requestParameters["reorderWorkflowStepsRequest"])
26791
+ }, initOverrides);
26792
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
26793
+ }
26794
+ /**
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
26797
+ */
26798
+ async reorderWorkflowSteps(key, reorderWorkflowStepsRequest, initOverrides) {
26799
+ const response = await this.reorderWorkflowStepsRaw({ key, reorderWorkflowStepsRequest }, initOverrides);
26800
+ return await response.value();
26801
+ }
26802
+ /**
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
26805
+ */
26806
+ async triggerWorkflowRaw(requestParameters, initOverrides) {
26807
+ if (requestParameters["key"] == null) {
26808
+ throw new RequiredError(
26809
+ "key",
26810
+ 'Required parameter "key" was null or undefined when calling triggerWorkflow().'
26811
+ );
26812
+ }
26813
+ if (requestParameters["triggerWorkflowRequest"] == null) {
26814
+ throw new RequiredError(
26815
+ "triggerWorkflowRequest",
26816
+ 'Required parameter "triggerWorkflowRequest" was null or undefined when calling triggerWorkflow().'
26817
+ );
26818
+ }
26819
+ const queryParameters = {};
26820
+ const headerParameters = {};
26821
+ headerParameters["Content-Type"] = "application/json";
26822
+ if (this.configuration && this.configuration.apiKey) {
26823
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26824
+ }
26825
+ const response = await this.request({
26826
+ path: `/workflows/{key}/trigger`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26827
+ method: "POST",
26828
+ headers: headerParameters,
26829
+ query: queryParameters,
26830
+ body: TriggerWorkflowRequestToJSON(requestParameters["triggerWorkflowRequest"])
26831
+ }, initOverrides);
26832
+ return new JSONApiResponse(response, (jsonValue) => TriggerWorkflow202ResponseFromJSON(jsonValue));
26833
+ }
26834
+ /**
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
26837
+ */
26838
+ async triggerWorkflow(key, triggerWorkflowRequest, initOverrides) {
26839
+ const response = await this.triggerWorkflowRaw({ key, triggerWorkflowRequest }, initOverrides);
26840
+ return await response.value();
26841
+ }
26842
+ /**
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
26845
+ */
26846
+ async updateWorkflowRaw(requestParameters, initOverrides) {
26847
+ if (requestParameters["key"] == null) {
26848
+ throw new RequiredError(
26849
+ "key",
26850
+ 'Required parameter "key" was null or undefined when calling updateWorkflow().'
26851
+ );
26852
+ }
26853
+ if (requestParameters["updateWorkflowRequest"] == null) {
26854
+ throw new RequiredError(
26855
+ "updateWorkflowRequest",
26856
+ 'Required parameter "updateWorkflowRequest" was null or undefined when calling updateWorkflow().'
26857
+ );
26858
+ }
26859
+ const queryParameters = {};
26860
+ const headerParameters = {};
26861
+ headerParameters["Content-Type"] = "application/json";
26862
+ if (this.configuration && this.configuration.apiKey) {
26863
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26864
+ }
26865
+ const response = await this.request({
26866
+ path: `/workflows/{key}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26867
+ method: "PATCH",
26868
+ headers: headerParameters,
26869
+ query: queryParameters,
26870
+ body: UpdateWorkflowRequestToJSON(requestParameters["updateWorkflowRequest"])
26871
+ }, initOverrides);
26872
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
26873
+ }
26874
+ /**
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
26877
+ */
26878
+ async updateWorkflow(key, updateWorkflowRequest, initOverrides) {
26879
+ const response = await this.updateWorkflowRaw({ key, updateWorkflowRequest }, initOverrides);
26880
+ return await response.value();
26881
+ }
26882
+ /**
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
26885
+ */
26886
+ async updateWorkflowStatusRaw(requestParameters, initOverrides) {
26887
+ if (requestParameters["key"] == null) {
26888
+ throw new RequiredError(
26889
+ "key",
26890
+ 'Required parameter "key" was null or undefined when calling updateWorkflowStatus().'
26891
+ );
26892
+ }
26893
+ if (requestParameters["updateWorkflowStatusRequest"] == null) {
26894
+ throw new RequiredError(
26895
+ "updateWorkflowStatusRequest",
26896
+ 'Required parameter "updateWorkflowStatusRequest" was null or undefined when calling updateWorkflowStatus().'
26897
+ );
26898
+ }
26899
+ const queryParameters = {};
26900
+ const headerParameters = {};
26901
+ headerParameters["Content-Type"] = "application/json";
26902
+ if (this.configuration && this.configuration.apiKey) {
26903
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26904
+ }
26905
+ const response = await this.request({
26906
+ path: `/workflows/{key}/status`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))),
26907
+ method: "PATCH",
26908
+ headers: headerParameters,
26909
+ query: queryParameters,
26910
+ body: UpdateWorkflowStatusRequestToJSON(requestParameters["updateWorkflowStatusRequest"])
26911
+ }, initOverrides);
26912
+ return new JSONApiResponse(response, (jsonValue) => CreateWorkflow201ResponseFromJSON(jsonValue));
26913
+ }
26914
+ /**
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
26917
+ */
26918
+ async updateWorkflowStatus(key, updateWorkflowStatusRequest, initOverrides) {
26919
+ const response = await this.updateWorkflowStatusRaw({ key, updateWorkflowStatusRequest }, initOverrides);
26920
+ return await response.value();
26921
+ }
26922
+ /**
26923
+ * Update a step\'s name and/or config. Only the provided fields are changed.
26924
+ * Update a workflow step
26925
+ */
26926
+ async updateWorkflowStepRaw(requestParameters, initOverrides) {
26927
+ if (requestParameters["key"] == null) {
26928
+ throw new RequiredError(
26929
+ "key",
26930
+ 'Required parameter "key" was null or undefined when calling updateWorkflowStep().'
26931
+ );
26932
+ }
26933
+ if (requestParameters["stepKey"] == null) {
26934
+ throw new RequiredError(
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().'
26943
+ );
26944
+ }
26945
+ const queryParameters = {};
26946
+ const headerParameters = {};
26947
+ headerParameters["Content-Type"] = "application/json";
26948
+ if (this.configuration && this.configuration.apiKey) {
26949
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key");
26950
+ }
26951
+ const response = await this.request({
26952
+ path: `/workflows/{key}/steps/{stepKey}`.replace(`{${"key"}}`, encodeURIComponent(String(requestParameters["key"]))).replace(`{${"stepKey"}}`, encodeURIComponent(String(requestParameters["stepKey"]))),
26953
+ method: "PATCH",
26954
+ headers: headerParameters,
26955
+ query: queryParameters,
26956
+ body: UpdateWorkflowStepRequestToJSON(requestParameters["updateWorkflowStepRequest"])
26957
+ }, initOverrides);
26958
+ return new JSONApiResponse(response, (jsonValue) => AddWorkflowStep201ResponseFromJSON(jsonValue));
26959
+ }
26960
+ /**
26961
+ * Update a step\'s name and/or config. Only the provided fields are changed.
26962
+ * Update a workflow step
26963
+ */
26964
+ async updateWorkflowStep(key, stepKey, updateWorkflowStepRequest, initOverrides) {
26965
+ const response = await this.updateWorkflowStepRaw({ key, stepKey, updateWorkflowStepRequest }, initOverrides);
26966
+ return await response.value();
26967
+ }
26968
+ };
26969
+
25911
26970
  // src/errors.ts
25912
26971
  var ZyphrError = class extends Error {
25913
26972
  status;
@@ -26227,6 +27286,15 @@ var SDK_VERSION = "0.1.0";
26227
27286
  AddTopicSubscribersRequestFromJSONTyped,
26228
27287
  AddTopicSubscribersRequestToJSON,
26229
27288
  AddTopicSubscribersRequestToJSONTyped,
27289
+ AddWorkflowStep201ResponseFromJSON,
27290
+ AddWorkflowStep201ResponseFromJSONTyped,
27291
+ AddWorkflowStep201ResponseToJSON,
27292
+ AddWorkflowStep201ResponseToJSONTyped,
27293
+ AddWorkflowStepRequestBranchPathEnum,
27294
+ AddWorkflowStepRequestFromJSON,
27295
+ AddWorkflowStepRequestFromJSONTyped,
27296
+ AddWorkflowStepRequestToJSON,
27297
+ AddWorkflowStepRequestToJSONTyped,
26230
27298
  ApiErrorErrorFromJSON,
26231
27299
  ApiErrorErrorFromJSONTyped,
26232
27300
  ApiErrorErrorToJSON,
@@ -26518,6 +27586,14 @@ var SDK_VERSION = "0.1.0";
26518
27586
  CreateWebhookRequestFromJSONTyped,
26519
27587
  CreateWebhookRequestToJSON,
26520
27588
  CreateWebhookRequestToJSONTyped,
27589
+ CreateWorkflow201ResponseFromJSON,
27590
+ CreateWorkflow201ResponseFromJSONTyped,
27591
+ CreateWorkflow201ResponseToJSON,
27592
+ CreateWorkflow201ResponseToJSONTyped,
27593
+ CreateWorkflowRequestFromJSON,
27594
+ CreateWorkflowRequestFromJSONTyped,
27595
+ CreateWorkflowRequestToJSON,
27596
+ CreateWorkflowRequestToJSONTyped,
26521
27597
  DefaultConfig,
26522
27598
  DeleteDomainResponseDataFromJSON,
26523
27599
  DeleteDomainResponseDataFromJSONTyped,
@@ -26535,6 +27611,22 @@ var SDK_VERSION = "0.1.0";
26535
27611
  DeleteResultFromJSONTyped,
26536
27612
  DeleteResultToJSON,
26537
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,
26538
27630
  DeviceFromJSON,
26539
27631
  DeviceFromJSONTyped,
26540
27632
  DeviceListResponseFromJSON,
@@ -26801,6 +27893,22 @@ var SDK_VERSION = "0.1.0";
26801
27893
  ListWaaSEventTypes200ResponseToJSONTyped,
26802
27894
  ListWaaSEventTypesStatusEnum,
26803
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,
26804
27912
  LoginRequestFromJSON,
26805
27913
  LoginRequestFromJSONTyped,
26806
27914
  LoginRequestToJSON,
@@ -26914,7 +28022,6 @@ var SDK_VERSION = "0.1.0";
26914
28022
  MfaVerifyRequestFromJSONTyped,
26915
28023
  MfaVerifyRequestToJSON,
26916
28024
  MfaVerifyRequestToJSONTyped,
26917
- MuseApi,
26918
28025
  OAuthAuthorizationUrlResponseDataFromJSON,
26919
28026
  OAuthAuthorizationUrlResponseDataFromJSONTyped,
26920
28027
  OAuthAuthorizationUrlResponseDataToJSON,
@@ -27188,6 +28295,10 @@ var SDK_VERSION = "0.1.0";
27188
28295
  RenderTemplateRequestFromJSONTyped,
27189
28296
  RenderTemplateRequestToJSON,
27190
28297
  RenderTemplateRequestToJSONTyped,
28298
+ ReorderWorkflowStepsRequestFromJSON,
28299
+ ReorderWorkflowStepsRequestFromJSONTyped,
28300
+ ReorderWorkflowStepsRequestToJSON,
28301
+ ReorderWorkflowStepsRequestToJSONTyped,
27191
28302
  ReplayWebhookEventsRequestFromJSON,
27192
28303
  ReplayWebhookEventsRequestFromJSONTyped,
27193
28304
  ReplayWebhookEventsRequestToJSON,
@@ -27415,6 +28526,10 @@ var SDK_VERSION = "0.1.0";
27415
28526
  SignInWithGameCenterRequestFromJSONTyped,
27416
28527
  SignInWithGameCenterRequestToJSON,
27417
28528
  SignInWithGameCenterRequestToJSONTyped,
28529
+ SignInWithGooglePlayGamesRequestFromJSON,
28530
+ SignInWithGooglePlayGamesRequestFromJSONTyped,
28531
+ SignInWithGooglePlayGamesRequestToJSON,
28532
+ SignInWithGooglePlayGamesRequestToJSONTyped,
27418
28533
  SlackApi,
27419
28534
  SlackMessageFromJSON,
27420
28535
  SlackMessageFromJSONTyped,
@@ -27471,10 +28586,6 @@ var SDK_VERSION = "0.1.0";
27471
28586
  SmsDetailResponseToJSONTyped,
27472
28587
  SmsListResponseFromJSON,
27473
28588
  SmsListResponseFromJSONTyped,
27474
- SmsListResponseMetaFromJSON,
27475
- SmsListResponseMetaFromJSONTyped,
27476
- SmsListResponseMetaToJSON,
27477
- SmsListResponseMetaToJSONTyped,
27478
28589
  SmsListResponseToJSON,
27479
28590
  SmsListResponseToJSONTyped,
27480
28591
  SmsMessageDetailFromJSON,
@@ -27561,10 +28672,6 @@ var SDK_VERSION = "0.1.0";
27561
28672
  TestWebhookTransformRequestToJSON,
27562
28673
  TestWebhookTransformRequestToJSONTyped,
27563
28674
  TextApiResponse,
27564
- TopicDeleteResponseDataFromJSON,
27565
- TopicDeleteResponseDataFromJSONTyped,
27566
- TopicDeleteResponseDataToJSON,
27567
- TopicDeleteResponseDataToJSONTyped,
27568
28675
  TopicDeleteResponseFromJSON,
27569
28676
  TopicDeleteResponseFromJSONTyped,
27570
28677
  TopicDeleteResponseToJSON,
@@ -27618,6 +28725,18 @@ var SDK_VERSION = "0.1.0";
27618
28725
  TopicToJSON,
27619
28726
  TopicToJSONTyped,
27620
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,
27621
28740
  UnreadCountDataFromJSON,
27622
28741
  UnreadCountDataFromJSONTyped,
27623
28742
  UnreadCountDataToJSON,
@@ -27704,6 +28823,18 @@ var SDK_VERSION = "0.1.0";
27704
28823
  UpdateWebhookRequestFromJSONTyped,
27705
28824
  UpdateWebhookRequestToJSON,
27706
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,
27707
28838
  UpsertAuthEmailTemplateRequestEditorTypeEnum,
27708
28839
  UpsertAuthEmailTemplateRequestFromJSON,
27709
28840
  UpsertAuthEmailTemplateRequestFromJSONTyped,
@@ -27722,11 +28853,6 @@ var SDK_VERSION = "0.1.0";
27722
28853
  UserDevicesDeleteResponseToJSON,
27723
28854
  UserDevicesDeleteResponseToJSONTyped,
27724
28855
  UtilityApi,
27725
- V1MuseSubjectsSuggestPostRequestChannelEnum,
27726
- V1MuseSubjectsSuggestPostRequestFromJSON,
27727
- V1MuseSubjectsSuggestPostRequestFromJSONTyped,
27728
- V1MuseSubjectsSuggestPostRequestToJSON,
27729
- V1MuseSubjectsSuggestPostRequestToJSONTyped,
27730
28856
  ValidateResetTokenRequestFromJSON,
27731
28857
  ValidateResetTokenRequestFromJSONTyped,
27732
28858
  ValidateResetTokenRequestToJSON,
@@ -28057,6 +29183,14 @@ var SDK_VERSION = "0.1.0";
28057
29183
  WorkflowExecutionStatusToJSONTyped,
28058
29184
  WorkflowExecutionToJSON,
28059
29185
  WorkflowExecutionToJSONTyped,
29186
+ WorkflowFromJSON,
29187
+ WorkflowFromJSONTyped,
29188
+ WorkflowStatus,
29189
+ WorkflowStatusFromJSON,
29190
+ WorkflowStatusFromJSONTyped,
29191
+ WorkflowStatusToJSON,
29192
+ WorkflowStatusToJSONTyped,
29193
+ WorkflowStepBranchPathEnum,
28060
29194
  WorkflowStepExecutionFromJSON,
28061
29195
  WorkflowStepExecutionFromJSONTyped,
28062
29196
  WorkflowStepExecutionStatus,
@@ -28067,6 +29201,18 @@ var SDK_VERSION = "0.1.0";
28067
29201
  WorkflowStepExecutionStepTypeEnum,
28068
29202
  WorkflowStepExecutionToJSON,
28069
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,
28070
29216
  Zyphr,
28071
29217
  ZyphrAuthenticationError,
28072
29218
  ZyphrClient,
@@ -28084,6 +29230,8 @@ var SDK_VERSION = "0.1.0";
28084
29230
  instanceOfAddDomainRequest,
28085
29231
  instanceOfAddOrganizationMemberRequest,
28086
29232
  instanceOfAddTopicSubscribersRequest,
29233
+ instanceOfAddWorkflowStep201Response,
29234
+ instanceOfAddWorkflowStepRequest,
28087
29235
  instanceOfApiError,
28088
29236
  instanceOfApiErrorError,
28089
29237
  instanceOfApiErrorMeta,
@@ -28149,10 +29297,16 @@ var SDK_VERSION = "0.1.0";
28149
29297
  instanceOfCreateWaaSEventType201Response,
28150
29298
  instanceOfCreateWaaSEventTypeRequest,
28151
29299
  instanceOfCreateWebhookRequest,
29300
+ instanceOfCreateWorkflow201Response,
29301
+ instanceOfCreateWorkflowRequest,
28152
29302
  instanceOfDeleteDomainResponse,
28153
29303
  instanceOfDeleteDomainResponseData,
28154
29304
  instanceOfDeleteResult,
28155
29305
  instanceOfDeleteResultData,
29306
+ instanceOfDeleteWorkflow200Response,
29307
+ instanceOfDeleteWorkflow200ResponseData,
29308
+ instanceOfDeleteWorkflowStep200Response,
29309
+ instanceOfDeleteWorkflowStep200ResponseData,
28156
29310
  instanceOfDevice,
28157
29311
  instanceOfDeviceListResponse,
28158
29312
  instanceOfDevicePushTopic,
@@ -28210,6 +29364,10 @@ var SDK_VERSION = "0.1.0";
28210
29364
  instanceOfListWaaSEndpointDeliveries200Response,
28211
29365
  instanceOfListWaaSEndpoints200Response,
28212
29366
  instanceOfListWaaSEventTypes200Response,
29367
+ instanceOfListWorkflowExecutions200Response,
29368
+ instanceOfListWorkflowExecutions200ResponseMeta,
29369
+ instanceOfListWorkflows200Response,
29370
+ instanceOfListWorkflows200ResponseMeta,
28213
29371
  instanceOfLoginRequest,
28214
29372
  instanceOfMagicLinkSendRequest,
28215
29373
  instanceOfMagicLinkVerifyRequest,
@@ -28304,6 +29462,7 @@ var SDK_VERSION = "0.1.0";
28304
29462
  instanceOfRemoveTopicSubscribersRequest,
28305
29463
  instanceOfRenameWebAuthnCredentialRequest,
28306
29464
  instanceOfRenderTemplateRequest,
29465
+ instanceOfReorderWorkflowStepsRequest,
28307
29466
  instanceOfReplayWebhookEventsRequest,
28308
29467
  instanceOfRequestMeta,
28309
29468
  instanceOfResetPasswordRequest,
@@ -28359,6 +29518,7 @@ var SDK_VERSION = "0.1.0";
28359
29518
  instanceOfSetPreferencesRequestPreferencesInner,
28360
29519
  instanceOfSignInAnonymouslyRequest,
28361
29520
  instanceOfSignInWithGameCenterRequest,
29521
+ instanceOfSignInWithGooglePlayGamesRequest,
28362
29522
  instanceOfSlackMessage,
28363
29523
  instanceOfSlackMessageListResponse,
28364
29524
  instanceOfSlackMessageListResponseMeta,
@@ -28373,7 +29533,6 @@ var SDK_VERSION = "0.1.0";
28373
29533
  instanceOfSmsConfigResponse,
28374
29534
  instanceOfSmsDetailResponse,
28375
29535
  instanceOfSmsListResponse,
28376
- instanceOfSmsListResponseMeta,
28377
29536
  instanceOfSmsMessage,
28378
29537
  instanceOfSmsMessageDetail,
28379
29538
  instanceOfSubscribePushTopicRequest,
@@ -28395,7 +29554,6 @@ var SDK_VERSION = "0.1.0";
28395
29554
  instanceOfTestWebhookTransformRequest,
28396
29555
  instanceOfTopic,
28397
29556
  instanceOfTopicDeleteResponse,
28398
- instanceOfTopicDeleteResponseData,
28399
29557
  instanceOfTopicListResponse,
28400
29558
  instanceOfTopicResponse,
28401
29559
  instanceOfTopicStatsData,
@@ -28407,6 +29565,9 @@ var SDK_VERSION = "0.1.0";
28407
29565
  instanceOfTopicSubscribersAddResult,
28408
29566
  instanceOfTopicSubscribersRemoveResponse,
28409
29567
  instanceOfTopicSubscribersRemoveResult,
29568
+ instanceOfTriggerWorkflow202Response,
29569
+ instanceOfTriggerWorkflow202ResponseData,
29570
+ instanceOfTriggerWorkflowRequest,
28410
29571
  instanceOfUnreadCountData,
28411
29572
  instanceOfUnreadCountResponse,
28412
29573
  instanceOfUnsubscribe,
@@ -28427,11 +29588,13 @@ var SDK_VERSION = "0.1.0";
28427
29588
  instanceOfUpdateWaaSEndpointRequest,
28428
29589
  instanceOfUpdateWaaSEventTypeRequest,
28429
29590
  instanceOfUpdateWebhookRequest,
29591
+ instanceOfUpdateWorkflowRequest,
29592
+ instanceOfUpdateWorkflowStatusRequest,
29593
+ instanceOfUpdateWorkflowStepRequest,
28430
29594
  instanceOfUpsertAuthEmailTemplateRequest,
28431
29595
  instanceOfUpsertSmsConfigRequest,
28432
29596
  instanceOfUserDevicesDeleteResponse,
28433
29597
  instanceOfUserDevicesDeleteResponseData,
28434
- instanceOfV1MuseSubjectsSuggestPostRequest,
28435
29598
  instanceOfValidateResetTokenRequest,
28436
29599
  instanceOfValidateResetTokenResponse,
28437
29600
  instanceOfValidateResetTokenResponseData,
@@ -28507,10 +29670,14 @@ var SDK_VERSION = "0.1.0";
28507
29670
  instanceOfWebhookVersionsResponse,
28508
29671
  instanceOfWebhookVersionsResponseData,
28509
29672
  instanceOfWithdrawSubscriberConsentRequest,
29673
+ instanceOfWorkflow,
28510
29674
  instanceOfWorkflowExecution,
28511
29675
  instanceOfWorkflowExecutionStatus,
29676
+ instanceOfWorkflowStatus,
29677
+ instanceOfWorkflowStep,
28512
29678
  instanceOfWorkflowStepExecution,
28513
29679
  instanceOfWorkflowStepExecutionStatus,
29680
+ instanceOfWorkflowStepType,
28514
29681
  mapValues,
28515
29682
  parseErrorResponse,
28516
29683
  querystring