@novu/api 0.0.1-alpha.191 → 0.0.1-alpha.193
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/sdks/messages/README.md +1 -1
- package/docs/sdks/novu/README.md +3 -0
- package/docs/sdks/preferences/README.md +1 -1
- package/docs/sdks/stats/README.md +1 -1
- package/docs/sdks/subscribers/README.md +2 -2
- package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +2 -2
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +2 -2
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/subscribersList.d.ts +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +3 -3
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +2 -2
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +2 -2
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js +17 -1
- package/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js +17 -1
- package/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.js.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.d.ts.map +1 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js +17 -1
- package/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.js.map +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +4 -83
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationexecutiondetailresponsedto.js +7 -56
- package/models/components/activitynotificationexecutiondetailresponsedto.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +3 -3
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +3 -3
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/activitynotificationresponsedto.d.ts +112 -0
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js +94 -1
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/activitynotificationstepresponsedto.d.ts +139 -3
- package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationstepresponsedto.js +117 -4
- package/models/components/activitynotificationstepresponsedto.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +3 -3
- package/models/components/activitynotificationtemplateresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.js +3 -3
- package/models/components/activitynotificationtemplateresponsedto.js.map +1 -1
- package/models/components/{builderfieldtype.d.ts → builderfieldtypeenum.d.ts} +8 -8
- package/models/components/builderfieldtypeenum.d.ts.map +1 -0
- package/models/components/{builderfieldtype.js → builderfieldtypeenum.js} +12 -12
- package/models/components/builderfieldtypeenum.js.map +1 -0
- package/models/components/{digestwitheventsdto.d.ts → digestmetadatadto.d.ts} +47 -14
- package/models/components/digestmetadatadto.d.ts.map +1 -0
- package/models/components/{digestwitheventsdto.js → digestmetadatadto.js} +32 -17
- package/models/components/digestmetadatadto.js.map +1 -0
- package/models/components/digesttimedconfigdto.d.ts +106 -0
- package/models/components/digesttimedconfigdto.d.ts.map +1 -0
- package/models/components/digesttimedconfigdto.js +99 -0
- package/models/components/digesttimedconfigdto.js.map +1 -0
- package/models/components/digesttypeenum.d.ts +37 -0
- package/models/components/digesttypeenum.d.ts.map +1 -0
- package/models/components/digesttypeenum.js +54 -0
- package/models/components/digesttypeenum.js.map +1 -0
- package/models/components/digestunitenum.d.ts +46 -0
- package/models/components/digestunitenum.d.ts.map +1 -0
- package/models/components/digestunitenum.js +57 -0
- package/models/components/digestunitenum.js.map +1 -0
- package/models/components/executiondetailssourceenum.d.ts +40 -0
- package/models/components/executiondetailssourceenum.d.ts.map +1 -0
- package/models/components/executiondetailssourceenum.js +55 -0
- package/models/components/executiondetailssourceenum.js.map +1 -0
- package/models/components/executiondetailsstatusenum.d.ts +46 -0
- package/models/components/executiondetailsstatusenum.d.ts.map +1 -0
- package/models/components/executiondetailsstatusenum.js +57 -0
- package/models/components/executiondetailsstatusenum.js.map +1 -0
- package/models/components/index.d.ts +14 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +14 -5
- package/models/components/index.js.map +1 -1
- package/models/components/monthlytypeenum.d.ts +34 -0
- package/models/components/monthlytypeenum.d.ts.map +1 -0
- package/models/components/monthlytypeenum.js +53 -0
- package/models/components/monthlytypeenum.js.map +1 -0
- package/models/components/notificationstepdata.d.ts +113 -0
- package/models/components/notificationstepdata.d.ts.map +1 -0
- package/models/components/notificationstepdata.js +142 -0
- package/models/components/notificationstepdata.js.map +1 -0
- package/models/components/notificationstepdto.d.ts +116 -0
- package/models/components/notificationstepdto.d.ts.map +1 -0
- package/models/components/notificationstepdto.js +145 -0
- package/models/components/notificationstepdto.js.map +1 -0
- package/models/components/notificationtrigger.d.ts +8 -26
- package/models/components/notificationtrigger.d.ts.map +1 -1
- package/models/components/notificationtrigger.js +13 -16
- package/models/components/notificationtrigger.js.map +1 -1
- package/models/components/notificationtriggerdto.d.ts +77 -0
- package/models/components/notificationtriggerdto.d.ts.map +1 -0
- package/models/components/notificationtriggerdto.js +89 -0
- package/models/components/notificationtriggerdto.js.map +1 -0
- package/models/components/ordinalenum.d.ts +46 -0
- package/models/components/ordinalenum.d.ts.map +1 -0
- package/models/components/{stepfilter.js → ordinalenum.js} +23 -20
- package/models/components/ordinalenum.js.map +1 -0
- package/models/components/ordinalvalueenum.d.ts +58 -0
- package/models/components/ordinalvalueenum.d.ts.map +1 -0
- package/models/components/ordinalvalueenum.js +61 -0
- package/models/components/ordinalvalueenum.js.map +1 -0
- package/models/components/replycallback.d.ts +37 -0
- package/models/components/replycallback.d.ts.map +1 -0
- package/models/components/replycallback.js +61 -0
- package/models/components/replycallback.js.map +1 -0
- package/models/components/stepfilterdto.d.ts +2 -2
- package/models/components/stepfilterdto.d.ts.map +1 -1
- package/models/components/stepfilterdto.js +3 -3
- package/models/components/stepfilterdto.js.map +1 -1
- package/models/components/timedconfig.d.ts +8 -8
- package/models/components/timedconfig.d.ts.map +1 -1
- package/models/components/timedconfig.js +13 -14
- package/models/components/timedconfig.js.map +1 -1
- package/models/components/workflowresponse.d.ts +3 -3
- package/models/components/workflowresponse.d.ts.map +1 -1
- package/models/components/workflowresponse.js +3 -3
- package/models/components/workflowresponse.js.map +1 -1
- package/models/operations/eventscontrollercancel.d.ts +2 -2
- package/models/operations/eventscontrollercancel.d.ts.map +1 -1
- package/models/operations/eventscontrollercancel.js +2 -2
- package/models/operations/eventscontrollercancel.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts +2 -2
- package/models/operations/integrationscontrollergetwebhooksupportstatus.d.ts.map +1 -1
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js +2 -2
- package/models/operations/integrationscontrollergetwebhooksupportstatus.js.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.d.ts +2 -2
- package/models/operations/integrationscontrollerremoveintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollerremoveintegration.js +2 -2
- package/models/operations/integrationscontrollerremoveintegration.js.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts +2 -2
- package/models/operations/integrationscontrollersetintegrationasprimary.d.ts.map +1 -1
- package/models/operations/integrationscontrollersetintegrationasprimary.js +2 -2
- package/models/operations/integrationscontrollersetintegrationasprimary.js.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts +2 -2
- package/models/operations/integrationscontrollerupdateintegrationbyid.d.ts.map +1 -1
- package/models/operations/integrationscontrollerupdateintegrationbyid.js +2 -2
- package/models/operations/integrationscontrollerupdateintegrationbyid.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.d.ts +2 -2
- package/models/operations/messagescontrollerdeletemessage.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessage.js +2 -2
- package/models/operations/messagescontrollerdeletemessage.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +5 -5
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +2 -2
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +5 -5
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js +2 -2
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts +2 -2
- package/models/operations/notificationscontrollergetactivitygraphstats.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetactivitygraphstats.js +2 -2
- package/models/operations/notificationscontrollergetactivitygraphstats.js.map +1 -1
- package/models/operations/notificationscontrollergetnotification.d.ts +2 -2
- package/models/operations/notificationscontrollergetnotification.d.ts.map +1 -1
- package/models/operations/notificationscontrollergetnotification.js +2 -2
- package/models/operations/notificationscontrollergetnotification.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -5
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -2
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts +5 -5
- package/models/operations/subscriberscontrollerchataccessoauth.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchataccessoauth.js +2 -2
- package/models/operations/subscriberscontrollerchataccessoauth.js.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts +5 -5
- package/models/operations/subscriberscontrollerchatoauthcallback.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerchatoauthcallback.js +2 -2
- package/models/operations/subscriberscontrollerchatoauthcallback.js.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +3 -3
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +2 -2
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts +5 -5
- package/models/operations/subscriberscontrollergetnotificationsfeed.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetnotificationsfeed.js +2 -2
- package/models/operations/subscriberscontrollergetnotificationsfeed.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.d.ts +5 -5
- package/models/operations/subscriberscontrollergetsubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriber.js +2 -2
- package/models/operations/subscriberscontrollergetsubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts +5 -5
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js +2 -2
- package/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.js.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.d.ts +5 -5
- package/models/operations/subscriberscontrollergetunseencount.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetunseencount.js +2 -2
- package/models/operations/subscriberscontrollergetunseencount.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts +5 -5
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js +2 -2
- package/models/operations/subscriberscontrollerlistsubscriberpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts +3 -3
- package/models/operations/subscriberscontrollerlistsubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerlistsubscribers.js +2 -2
- package/models/operations/subscriberscontrollerlistsubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +4 -4
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +2 -2
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +2 -2
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +2 -2
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +2 -2
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +2 -2
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts +2 -2
- package/models/operations/subscriberscontrollermodifysubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js +2 -2
- package/models/operations/subscriberscontrollermodifysubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts +2 -2
- package/models/operations/subscriberscontrollerremovesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerremovesubscriber.js +2 -2
- package/models/operations/subscriberscontrollerremovesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriber.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberchannel.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberonlineflag.js.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts +3 -3
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js +2 -2
- package/models/operations/subscriberscontrollerupdatesubscriberpreference.js.map +1 -1
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts +32 -0
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.d.ts.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js +70 -0
- package/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.js.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts +32 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.d.ts.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js +70 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.js.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts +32 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.d.ts.map +1 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js +70 -0
- package/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.js.map +1 -0
- package/models/operations/topicscontrollerassign.d.ts +5 -5
- package/models/operations/topicscontrollerassign.d.ts.map +1 -1
- package/models/operations/topicscontrollerassign.js +2 -2
- package/models/operations/topicscontrollerassign.js.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.d.ts +5 -5
- package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +2 -2
- package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
- package/models/operations/topicscontrollergettopic.d.ts +5 -5
- package/models/operations/topicscontrollergettopic.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopic.js +2 -2
- package/models/operations/topicscontrollergettopic.js.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.d.ts +5 -5
- package/models/operations/topicscontrollergettopicsubscriber.d.ts.map +1 -1
- package/models/operations/topicscontrollergettopicsubscriber.js +2 -2
- package/models/operations/topicscontrollergettopicsubscriber.js.map +1 -1
- package/models/operations/topicscontrollerlisttopics.d.ts +5 -5
- package/models/operations/topicscontrollerlisttopics.d.ts.map +1 -1
- package/models/operations/topicscontrollerlisttopics.js +2 -2
- package/models/operations/topicscontrollerlisttopics.js.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.d.ts +5 -5
- package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +2 -2
- package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
- package/models/operations/topicscontrollerrenametopic.d.ts +5 -5
- package/models/operations/topicscontrollerrenametopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerrenametopic.js +2 -2
- package/models/operations/topicscontrollerrenametopic.js.map +1 -1
- package/package.json +1 -1
- package/sdk/messages.d.ts +1 -1
- package/sdk/messages.d.ts.map +1 -1
- package/sdk/messages.js +2 -2
- package/sdk/messages.js.map +1 -1
- package/sdk/preferences.d.ts +1 -1
- package/sdk/preferences.d.ts.map +1 -1
- package/sdk/preferences.js +2 -2
- package/sdk/preferences.js.map +1 -1
- package/sdk/sdk.d.ts +3 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +6 -6
- package/sdk/sdk.js.map +1 -1
- package/sdk/stats.d.ts +1 -1
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +2 -2
- package/sdk/stats.js.map +1 -1
- package/sdk/subscribers.d.ts +2 -2
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +4 -4
- package/sdk/subscribers.js.map +1 -1
- package/src/funcs/messagesDeleteByTransactionId.ts +2 -2
- package/src/funcs/notificationsStatsGraph.ts +2 -2
- package/src/funcs/subscribersList.ts +3 -3
- package/src/funcs/subscribersPreferencesList.ts +2 -2
- package/src/funcs/subscribersRetrieve.ts +2 -2
- package/src/funcs/testApiRateLimitBulkControllerGlobalCategoryNoCostOverride.ts +30 -0
- package/src/funcs/testApiRateLimitBulkControllerNoCategoryNoCostOverride.ts +29 -0
- package/src/funcs/testApiRateLimitBulkControllerNoCategorySingleCostOverride.ts +30 -0
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +16 -81
- package/src/models/components/activitynotificationjobresponsedto.ts +9 -9
- package/src/models/components/activitynotificationresponsedto.ts +228 -0
- package/src/models/components/activitynotificationstepresponsedto.ts +294 -9
- package/src/models/components/activitynotificationtemplateresponsedto.ts +9 -9
- package/src/models/components/builderfieldtypeenum.ts +39 -0
- package/src/models/components/digestmetadatadto.ts +185 -0
- package/src/models/components/digesttimedconfigdto.ts +157 -0
- package/src/models/components/digesttypeenum.ts +40 -0
- package/src/models/components/digestunitenum.ts +43 -0
- package/src/models/components/executiondetailssourceenum.ts +43 -0
- package/src/models/components/executiondetailsstatusenum.ts +45 -0
- package/src/models/components/index.ts +14 -5
- package/src/models/components/monthlytypeenum.ts +39 -0
- package/src/models/components/notificationstepdata.ts +287 -0
- package/src/models/components/notificationstepdto.ts +297 -0
- package/src/models/components/notificationtrigger.ts +18 -33
- package/src/models/components/notificationtriggerdto.ts +130 -0
- package/src/models/components/ordinalenum.ts +41 -0
- package/src/models/components/ordinalvalueenum.ts +47 -0
- package/src/models/components/replycallback.ts +72 -0
- package/src/models/components/stepfilterdto.ts +7 -7
- package/src/models/components/timedconfig.ts +16 -14
- package/src/models/components/workflowresponse.ts +9 -9
- package/src/models/operations/eventscontrollercancel.ts +4 -4
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/integrationscontrollergetwebhooksupportstatus.ts +4 -4
- package/src/models/operations/integrationscontrollerremoveintegration.ts +4 -4
- package/src/models/operations/integrationscontrollersetintegrationasprimary.ts +4 -4
- package/src/models/operations/integrationscontrollerupdateintegrationbyid.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessage.ts +4 -4
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +7 -7
- package/src/models/operations/messagescontrollergetmessages.ts +7 -7
- package/src/models/operations/notificationscontrollergetactivitygraphstats.ts +4 -4
- package/src/models/operations/notificationscontrollergetnotification.ts +4 -4
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -7
- package/src/models/operations/subscriberscontrollerchataccessoauth.ts +7 -7
- package/src/models/operations/subscriberscontrollerchatoauthcallback.ts +7 -7
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +5 -5
- package/src/models/operations/subscriberscontrollergetnotificationsfeed.ts +7 -7
- package/src/models/operations/subscriberscontrollergetsubscriber.ts +7 -7
- package/src/models/operations/subscriberscontrollergetsubscriberpreferencebylevel.ts +7 -7
- package/src/models/operations/subscriberscontrollergetunseencount.ts +7 -7
- package/src/models/operations/subscriberscontrollerlistsubscriberpreferences.ts +7 -7
- package/src/models/operations/subscriberscontrollerlistsubscribers.ts +5 -5
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +6 -6
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -4
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -4
- package/src/models/operations/subscriberscontrollermodifysubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerremovesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriber.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberchannel.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberglobalpreferences.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberonlineflag.ts +4 -4
- package/src/models/operations/subscriberscontrollerupdatesubscriberpreference.ts +5 -5
- package/src/models/operations/testapiratelimitbulkcontrollerglobalcategorynocostoverride.ts +92 -0
- package/src/models/operations/testapiratelimitbulkcontrollernocategorynocostoverride.ts +91 -0
- package/src/models/operations/testapiratelimitbulkcontrollernocategorysinglecostoverride.ts +92 -0
- package/src/models/operations/topicscontrollerassign.ts +7 -7
- package/src/models/operations/topicscontrollerdeletetopic.ts +7 -7
- package/src/models/operations/topicscontrollergettopic.ts +7 -7
- package/src/models/operations/topicscontrollergettopicsubscriber.ts +7 -7
- package/src/models/operations/topicscontrollerlisttopics.ts +7 -7
- package/src/models/operations/topicscontrollerremovesubscribers.ts +7 -7
- package/src/models/operations/topicscontrollerrenametopic.ts +7 -7
- package/src/sdk/messages.ts +2 -2
- package/src/sdk/preferences.ts +2 -2
- package/src/sdk/sdk.ts +6 -0
- package/src/sdk/stats.ts +2 -2
- package/src/sdk/subscribers.ts +4 -4
- package/models/components/builderfieldtype.d.ts.map +0 -1
- package/models/components/builderfieldtype.js.map +0 -1
- package/models/components/digestwitheventsdto.d.ts.map +0 -1
- package/models/components/digestwitheventsdto.js.map +0 -1
- package/models/components/notificationstep.d.ts +0 -121
- package/models/components/notificationstep.d.ts.map +0 -1
- package/models/components/notificationstep.js +0 -190
- package/models/components/notificationstep.js.map +0 -1
- package/models/components/notificationstepvariant.d.ts +0 -118
- package/models/components/notificationstepvariant.d.ts.map +0 -1
- package/models/components/notificationstepvariant.js +0 -189
- package/models/components/notificationstepvariant.js.map +0 -1
- package/models/components/stepfilter.d.ts +0 -25
- package/models/components/stepfilter.d.ts.map +0 -1
- package/models/components/stepfilter.js.map +0 -1
- package/src/models/components/builderfieldtype.ts +0 -39
- package/src/models/components/digestwitheventsdto.ts +0 -127
- package/src/models/components/notificationstep.ts +0 -341
- package/src/models/components/notificationstepvariant.ts +0 -358
- package/src/models/components/stepfilter.ts +0 -54
|
@@ -1,341 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
DelayRegularMetadata,
|
|
12
|
-
DelayRegularMetadata$inboundSchema,
|
|
13
|
-
DelayRegularMetadata$Outbound,
|
|
14
|
-
DelayRegularMetadata$outboundSchema,
|
|
15
|
-
} from "./delayregularmetadata.js";
|
|
16
|
-
import {
|
|
17
|
-
DelayScheduledMetadata,
|
|
18
|
-
DelayScheduledMetadata$inboundSchema,
|
|
19
|
-
DelayScheduledMetadata$Outbound,
|
|
20
|
-
DelayScheduledMetadata$outboundSchema,
|
|
21
|
-
} from "./delayscheduledmetadata.js";
|
|
22
|
-
import {
|
|
23
|
-
DigestRegularMetadata,
|
|
24
|
-
DigestRegularMetadata$inboundSchema,
|
|
25
|
-
DigestRegularMetadata$Outbound,
|
|
26
|
-
DigestRegularMetadata$outboundSchema,
|
|
27
|
-
} from "./digestregularmetadata.js";
|
|
28
|
-
import {
|
|
29
|
-
DigestTimedMetadata,
|
|
30
|
-
DigestTimedMetadata$inboundSchema,
|
|
31
|
-
DigestTimedMetadata$Outbound,
|
|
32
|
-
DigestTimedMetadata$outboundSchema,
|
|
33
|
-
} from "./digesttimedmetadata.js";
|
|
34
|
-
import {
|
|
35
|
-
MessageTemplate,
|
|
36
|
-
MessageTemplate$inboundSchema,
|
|
37
|
-
MessageTemplate$Outbound,
|
|
38
|
-
MessageTemplate$outboundSchema,
|
|
39
|
-
} from "./messagetemplate.js";
|
|
40
|
-
import {
|
|
41
|
-
NotificationStepVariant,
|
|
42
|
-
NotificationStepVariant$inboundSchema,
|
|
43
|
-
NotificationStepVariant$Outbound,
|
|
44
|
-
NotificationStepVariant$outboundSchema,
|
|
45
|
-
} from "./notificationstepvariant.js";
|
|
46
|
-
import {
|
|
47
|
-
StepFilterDto,
|
|
48
|
-
StepFilterDto$inboundSchema,
|
|
49
|
-
StepFilterDto$Outbound,
|
|
50
|
-
StepFilterDto$outboundSchema,
|
|
51
|
-
} from "./stepfilterdto.js";
|
|
52
|
-
|
|
53
|
-
export type ParentId = {};
|
|
54
|
-
|
|
55
|
-
export type Metadata =
|
|
56
|
-
| DelayScheduledMetadata
|
|
57
|
-
| DelayRegularMetadata
|
|
58
|
-
| DigestTimedMetadata
|
|
59
|
-
| DigestRegularMetadata;
|
|
60
|
-
|
|
61
|
-
export type ReplyCallback = {};
|
|
62
|
-
|
|
63
|
-
export type NotificationStep = {
|
|
64
|
-
id?: string | undefined;
|
|
65
|
-
uuid?: string | undefined;
|
|
66
|
-
name?: string | undefined;
|
|
67
|
-
templateId?: string | undefined;
|
|
68
|
-
active?: boolean | undefined;
|
|
69
|
-
shouldStopOnFail?: boolean | undefined;
|
|
70
|
-
template?: MessageTemplate | undefined;
|
|
71
|
-
filters?: Array<StepFilterDto> | undefined;
|
|
72
|
-
parentId?: ParentId | undefined;
|
|
73
|
-
metadata?:
|
|
74
|
-
| DelayScheduledMetadata
|
|
75
|
-
| DelayRegularMetadata
|
|
76
|
-
| DigestTimedMetadata
|
|
77
|
-
| DigestRegularMetadata
|
|
78
|
-
| undefined;
|
|
79
|
-
replyCallback?: ReplyCallback | undefined;
|
|
80
|
-
variants?: NotificationStepVariant | undefined;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export const ParentId$inboundSchema: z.ZodType<
|
|
85
|
-
ParentId,
|
|
86
|
-
z.ZodTypeDef,
|
|
87
|
-
unknown
|
|
88
|
-
> = z.object({});
|
|
89
|
-
|
|
90
|
-
/** @internal */
|
|
91
|
-
export type ParentId$Outbound = {};
|
|
92
|
-
|
|
93
|
-
/** @internal */
|
|
94
|
-
export const ParentId$outboundSchema: z.ZodType<
|
|
95
|
-
ParentId$Outbound,
|
|
96
|
-
z.ZodTypeDef,
|
|
97
|
-
ParentId
|
|
98
|
-
> = z.object({});
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
-
*/
|
|
104
|
-
export namespace ParentId$ {
|
|
105
|
-
/** @deprecated use `ParentId$inboundSchema` instead. */
|
|
106
|
-
export const inboundSchema = ParentId$inboundSchema;
|
|
107
|
-
/** @deprecated use `ParentId$outboundSchema` instead. */
|
|
108
|
-
export const outboundSchema = ParentId$outboundSchema;
|
|
109
|
-
/** @deprecated use `ParentId$Outbound` instead. */
|
|
110
|
-
export type Outbound = ParentId$Outbound;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export function parentIdToJSON(parentId: ParentId): string {
|
|
114
|
-
return JSON.stringify(ParentId$outboundSchema.parse(parentId));
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export function parentIdFromJSON(
|
|
118
|
-
jsonString: string,
|
|
119
|
-
): SafeParseResult<ParentId, SDKValidationError> {
|
|
120
|
-
return safeParse(
|
|
121
|
-
jsonString,
|
|
122
|
-
(x) => ParentId$inboundSchema.parse(JSON.parse(x)),
|
|
123
|
-
`Failed to parse 'ParentId' from JSON`,
|
|
124
|
-
);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
/** @internal */
|
|
128
|
-
export const Metadata$inboundSchema: z.ZodType<
|
|
129
|
-
Metadata,
|
|
130
|
-
z.ZodTypeDef,
|
|
131
|
-
unknown
|
|
132
|
-
> = z.union([
|
|
133
|
-
DelayScheduledMetadata$inboundSchema,
|
|
134
|
-
DelayRegularMetadata$inboundSchema,
|
|
135
|
-
DigestTimedMetadata$inboundSchema,
|
|
136
|
-
DigestRegularMetadata$inboundSchema,
|
|
137
|
-
]);
|
|
138
|
-
|
|
139
|
-
/** @internal */
|
|
140
|
-
export type Metadata$Outbound =
|
|
141
|
-
| DelayScheduledMetadata$Outbound
|
|
142
|
-
| DelayRegularMetadata$Outbound
|
|
143
|
-
| DigestTimedMetadata$Outbound
|
|
144
|
-
| DigestRegularMetadata$Outbound;
|
|
145
|
-
|
|
146
|
-
/** @internal */
|
|
147
|
-
export const Metadata$outboundSchema: z.ZodType<
|
|
148
|
-
Metadata$Outbound,
|
|
149
|
-
z.ZodTypeDef,
|
|
150
|
-
Metadata
|
|
151
|
-
> = z.union([
|
|
152
|
-
DelayScheduledMetadata$outboundSchema,
|
|
153
|
-
DelayRegularMetadata$outboundSchema,
|
|
154
|
-
DigestTimedMetadata$outboundSchema,
|
|
155
|
-
DigestRegularMetadata$outboundSchema,
|
|
156
|
-
]);
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* @internal
|
|
160
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
161
|
-
*/
|
|
162
|
-
export namespace Metadata$ {
|
|
163
|
-
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
164
|
-
export const inboundSchema = Metadata$inboundSchema;
|
|
165
|
-
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
166
|
-
export const outboundSchema = Metadata$outboundSchema;
|
|
167
|
-
/** @deprecated use `Metadata$Outbound` instead. */
|
|
168
|
-
export type Outbound = Metadata$Outbound;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
export function metadataToJSON(metadata: Metadata): string {
|
|
172
|
-
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export function metadataFromJSON(
|
|
176
|
-
jsonString: string,
|
|
177
|
-
): SafeParseResult<Metadata, SDKValidationError> {
|
|
178
|
-
return safeParse(
|
|
179
|
-
jsonString,
|
|
180
|
-
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
181
|
-
`Failed to parse 'Metadata' from JSON`,
|
|
182
|
-
);
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/** @internal */
|
|
186
|
-
export const ReplyCallback$inboundSchema: z.ZodType<
|
|
187
|
-
ReplyCallback,
|
|
188
|
-
z.ZodTypeDef,
|
|
189
|
-
unknown
|
|
190
|
-
> = z.object({});
|
|
191
|
-
|
|
192
|
-
/** @internal */
|
|
193
|
-
export type ReplyCallback$Outbound = {};
|
|
194
|
-
|
|
195
|
-
/** @internal */
|
|
196
|
-
export const ReplyCallback$outboundSchema: z.ZodType<
|
|
197
|
-
ReplyCallback$Outbound,
|
|
198
|
-
z.ZodTypeDef,
|
|
199
|
-
ReplyCallback
|
|
200
|
-
> = z.object({});
|
|
201
|
-
|
|
202
|
-
/**
|
|
203
|
-
* @internal
|
|
204
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
205
|
-
*/
|
|
206
|
-
export namespace ReplyCallback$ {
|
|
207
|
-
/** @deprecated use `ReplyCallback$inboundSchema` instead. */
|
|
208
|
-
export const inboundSchema = ReplyCallback$inboundSchema;
|
|
209
|
-
/** @deprecated use `ReplyCallback$outboundSchema` instead. */
|
|
210
|
-
export const outboundSchema = ReplyCallback$outboundSchema;
|
|
211
|
-
/** @deprecated use `ReplyCallback$Outbound` instead. */
|
|
212
|
-
export type Outbound = ReplyCallback$Outbound;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export function replyCallbackToJSON(replyCallback: ReplyCallback): string {
|
|
216
|
-
return JSON.stringify(ReplyCallback$outboundSchema.parse(replyCallback));
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
export function replyCallbackFromJSON(
|
|
220
|
-
jsonString: string,
|
|
221
|
-
): SafeParseResult<ReplyCallback, SDKValidationError> {
|
|
222
|
-
return safeParse(
|
|
223
|
-
jsonString,
|
|
224
|
-
(x) => ReplyCallback$inboundSchema.parse(JSON.parse(x)),
|
|
225
|
-
`Failed to parse 'ReplyCallback' from JSON`,
|
|
226
|
-
);
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
/** @internal */
|
|
230
|
-
export const NotificationStep$inboundSchema: z.ZodType<
|
|
231
|
-
NotificationStep,
|
|
232
|
-
z.ZodTypeDef,
|
|
233
|
-
unknown
|
|
234
|
-
> = z.object({
|
|
235
|
-
_id: z.string().optional(),
|
|
236
|
-
uuid: z.string().optional(),
|
|
237
|
-
name: z.string().optional(),
|
|
238
|
-
_templateId: z.string().optional(),
|
|
239
|
-
active: z.boolean().optional(),
|
|
240
|
-
shouldStopOnFail: z.boolean().optional(),
|
|
241
|
-
template: MessageTemplate$inboundSchema.optional(),
|
|
242
|
-
filters: z.array(StepFilterDto$inboundSchema).optional(),
|
|
243
|
-
_parentId: z.lazy(() => ParentId$inboundSchema).optional(),
|
|
244
|
-
metadata: z.union([
|
|
245
|
-
DelayScheduledMetadata$inboundSchema,
|
|
246
|
-
DelayRegularMetadata$inboundSchema,
|
|
247
|
-
DigestTimedMetadata$inboundSchema,
|
|
248
|
-
DigestRegularMetadata$inboundSchema,
|
|
249
|
-
]).optional(),
|
|
250
|
-
replyCallback: z.lazy(() => ReplyCallback$inboundSchema).optional(),
|
|
251
|
-
variants: NotificationStepVariant$inboundSchema.optional(),
|
|
252
|
-
}).transform((v) => {
|
|
253
|
-
return remap$(v, {
|
|
254
|
-
"_id": "id",
|
|
255
|
-
"_templateId": "templateId",
|
|
256
|
-
"_parentId": "parentId",
|
|
257
|
-
});
|
|
258
|
-
});
|
|
259
|
-
|
|
260
|
-
/** @internal */
|
|
261
|
-
export type NotificationStep$Outbound = {
|
|
262
|
-
_id?: string | undefined;
|
|
263
|
-
uuid?: string | undefined;
|
|
264
|
-
name?: string | undefined;
|
|
265
|
-
_templateId?: string | undefined;
|
|
266
|
-
active?: boolean | undefined;
|
|
267
|
-
shouldStopOnFail?: boolean | undefined;
|
|
268
|
-
template?: MessageTemplate$Outbound | undefined;
|
|
269
|
-
filters?: Array<StepFilterDto$Outbound> | undefined;
|
|
270
|
-
_parentId?: ParentId$Outbound | undefined;
|
|
271
|
-
metadata?:
|
|
272
|
-
| DelayScheduledMetadata$Outbound
|
|
273
|
-
| DelayRegularMetadata$Outbound
|
|
274
|
-
| DigestTimedMetadata$Outbound
|
|
275
|
-
| DigestRegularMetadata$Outbound
|
|
276
|
-
| undefined;
|
|
277
|
-
replyCallback?: ReplyCallback$Outbound | undefined;
|
|
278
|
-
variants?: NotificationStepVariant$Outbound | undefined;
|
|
279
|
-
};
|
|
280
|
-
|
|
281
|
-
/** @internal */
|
|
282
|
-
export const NotificationStep$outboundSchema: z.ZodType<
|
|
283
|
-
NotificationStep$Outbound,
|
|
284
|
-
z.ZodTypeDef,
|
|
285
|
-
NotificationStep
|
|
286
|
-
> = z.object({
|
|
287
|
-
id: z.string().optional(),
|
|
288
|
-
uuid: z.string().optional(),
|
|
289
|
-
name: z.string().optional(),
|
|
290
|
-
templateId: z.string().optional(),
|
|
291
|
-
active: z.boolean().optional(),
|
|
292
|
-
shouldStopOnFail: z.boolean().optional(),
|
|
293
|
-
template: MessageTemplate$outboundSchema.optional(),
|
|
294
|
-
filters: z.array(StepFilterDto$outboundSchema).optional(),
|
|
295
|
-
parentId: z.lazy(() => ParentId$outboundSchema).optional(),
|
|
296
|
-
metadata: z.union([
|
|
297
|
-
DelayScheduledMetadata$outboundSchema,
|
|
298
|
-
DelayRegularMetadata$outboundSchema,
|
|
299
|
-
DigestTimedMetadata$outboundSchema,
|
|
300
|
-
DigestRegularMetadata$outboundSchema,
|
|
301
|
-
]).optional(),
|
|
302
|
-
replyCallback: z.lazy(() => ReplyCallback$outboundSchema).optional(),
|
|
303
|
-
variants: NotificationStepVariant$outboundSchema.optional(),
|
|
304
|
-
}).transform((v) => {
|
|
305
|
-
return remap$(v, {
|
|
306
|
-
id: "_id",
|
|
307
|
-
templateId: "_templateId",
|
|
308
|
-
parentId: "_parentId",
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
|
|
312
|
-
/**
|
|
313
|
-
* @internal
|
|
314
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
315
|
-
*/
|
|
316
|
-
export namespace NotificationStep$ {
|
|
317
|
-
/** @deprecated use `NotificationStep$inboundSchema` instead. */
|
|
318
|
-
export const inboundSchema = NotificationStep$inboundSchema;
|
|
319
|
-
/** @deprecated use `NotificationStep$outboundSchema` instead. */
|
|
320
|
-
export const outboundSchema = NotificationStep$outboundSchema;
|
|
321
|
-
/** @deprecated use `NotificationStep$Outbound` instead. */
|
|
322
|
-
export type Outbound = NotificationStep$Outbound;
|
|
323
|
-
}
|
|
324
|
-
|
|
325
|
-
export function notificationStepToJSON(
|
|
326
|
-
notificationStep: NotificationStep,
|
|
327
|
-
): string {
|
|
328
|
-
return JSON.stringify(
|
|
329
|
-
NotificationStep$outboundSchema.parse(notificationStep),
|
|
330
|
-
);
|
|
331
|
-
}
|
|
332
|
-
|
|
333
|
-
export function notificationStepFromJSON(
|
|
334
|
-
jsonString: string,
|
|
335
|
-
): SafeParseResult<NotificationStep, SDKValidationError> {
|
|
336
|
-
return safeParse(
|
|
337
|
-
jsonString,
|
|
338
|
-
(x) => NotificationStep$inboundSchema.parse(JSON.parse(x)),
|
|
339
|
-
`Failed to parse 'NotificationStep' from JSON`,
|
|
340
|
-
);
|
|
341
|
-
}
|
|
@@ -1,358 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
-
import {
|
|
11
|
-
DelayRegularMetadata,
|
|
12
|
-
DelayRegularMetadata$inboundSchema,
|
|
13
|
-
DelayRegularMetadata$Outbound,
|
|
14
|
-
DelayRegularMetadata$outboundSchema,
|
|
15
|
-
} from "./delayregularmetadata.js";
|
|
16
|
-
import {
|
|
17
|
-
DelayScheduledMetadata,
|
|
18
|
-
DelayScheduledMetadata$inboundSchema,
|
|
19
|
-
DelayScheduledMetadata$Outbound,
|
|
20
|
-
DelayScheduledMetadata$outboundSchema,
|
|
21
|
-
} from "./delayscheduledmetadata.js";
|
|
22
|
-
import {
|
|
23
|
-
DigestRegularMetadata,
|
|
24
|
-
DigestRegularMetadata$inboundSchema,
|
|
25
|
-
DigestRegularMetadata$Outbound,
|
|
26
|
-
DigestRegularMetadata$outboundSchema,
|
|
27
|
-
} from "./digestregularmetadata.js";
|
|
28
|
-
import {
|
|
29
|
-
DigestTimedMetadata,
|
|
30
|
-
DigestTimedMetadata$inboundSchema,
|
|
31
|
-
DigestTimedMetadata$Outbound,
|
|
32
|
-
DigestTimedMetadata$outboundSchema,
|
|
33
|
-
} from "./digesttimedmetadata.js";
|
|
34
|
-
import {
|
|
35
|
-
MessageTemplate,
|
|
36
|
-
MessageTemplate$inboundSchema,
|
|
37
|
-
MessageTemplate$Outbound,
|
|
38
|
-
MessageTemplate$outboundSchema,
|
|
39
|
-
} from "./messagetemplate.js";
|
|
40
|
-
import {
|
|
41
|
-
StepFilterDto,
|
|
42
|
-
StepFilterDto$inboundSchema,
|
|
43
|
-
StepFilterDto$Outbound,
|
|
44
|
-
StepFilterDto$outboundSchema,
|
|
45
|
-
} from "./stepfilterdto.js";
|
|
46
|
-
|
|
47
|
-
export type NotificationStepVariantParentId = {};
|
|
48
|
-
|
|
49
|
-
export type NotificationStepVariantMetadata =
|
|
50
|
-
| DelayScheduledMetadata
|
|
51
|
-
| DelayRegularMetadata
|
|
52
|
-
| DigestTimedMetadata
|
|
53
|
-
| DigestRegularMetadata;
|
|
54
|
-
|
|
55
|
-
export type NotificationStepVariantReplyCallback = {};
|
|
56
|
-
|
|
57
|
-
export type NotificationStepVariant = {
|
|
58
|
-
id?: string | undefined;
|
|
59
|
-
uuid?: string | undefined;
|
|
60
|
-
name?: string | undefined;
|
|
61
|
-
templateId?: string | undefined;
|
|
62
|
-
active?: boolean | undefined;
|
|
63
|
-
shouldStopOnFail?: boolean | undefined;
|
|
64
|
-
template?: MessageTemplate | undefined;
|
|
65
|
-
filters?: Array<StepFilterDto> | undefined;
|
|
66
|
-
parentId?: NotificationStepVariantParentId | undefined;
|
|
67
|
-
metadata?:
|
|
68
|
-
| DelayScheduledMetadata
|
|
69
|
-
| DelayRegularMetadata
|
|
70
|
-
| DigestTimedMetadata
|
|
71
|
-
| DigestRegularMetadata
|
|
72
|
-
| undefined;
|
|
73
|
-
replyCallback?: NotificationStepVariantReplyCallback | undefined;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
/** @internal */
|
|
77
|
-
export const NotificationStepVariantParentId$inboundSchema: z.ZodType<
|
|
78
|
-
NotificationStepVariantParentId,
|
|
79
|
-
z.ZodTypeDef,
|
|
80
|
-
unknown
|
|
81
|
-
> = z.object({});
|
|
82
|
-
|
|
83
|
-
/** @internal */
|
|
84
|
-
export type NotificationStepVariantParentId$Outbound = {};
|
|
85
|
-
|
|
86
|
-
/** @internal */
|
|
87
|
-
export const NotificationStepVariantParentId$outboundSchema: z.ZodType<
|
|
88
|
-
NotificationStepVariantParentId$Outbound,
|
|
89
|
-
z.ZodTypeDef,
|
|
90
|
-
NotificationStepVariantParentId
|
|
91
|
-
> = z.object({});
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
96
|
-
*/
|
|
97
|
-
export namespace NotificationStepVariantParentId$ {
|
|
98
|
-
/** @deprecated use `NotificationStepVariantParentId$inboundSchema` instead. */
|
|
99
|
-
export const inboundSchema = NotificationStepVariantParentId$inboundSchema;
|
|
100
|
-
/** @deprecated use `NotificationStepVariantParentId$outboundSchema` instead. */
|
|
101
|
-
export const outboundSchema = NotificationStepVariantParentId$outboundSchema;
|
|
102
|
-
/** @deprecated use `NotificationStepVariantParentId$Outbound` instead. */
|
|
103
|
-
export type Outbound = NotificationStepVariantParentId$Outbound;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
export function notificationStepVariantParentIdToJSON(
|
|
107
|
-
notificationStepVariantParentId: NotificationStepVariantParentId,
|
|
108
|
-
): string {
|
|
109
|
-
return JSON.stringify(
|
|
110
|
-
NotificationStepVariantParentId$outboundSchema.parse(
|
|
111
|
-
notificationStepVariantParentId,
|
|
112
|
-
),
|
|
113
|
-
);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
export function notificationStepVariantParentIdFromJSON(
|
|
117
|
-
jsonString: string,
|
|
118
|
-
): SafeParseResult<NotificationStepVariantParentId, SDKValidationError> {
|
|
119
|
-
return safeParse(
|
|
120
|
-
jsonString,
|
|
121
|
-
(x) => NotificationStepVariantParentId$inboundSchema.parse(JSON.parse(x)),
|
|
122
|
-
`Failed to parse 'NotificationStepVariantParentId' from JSON`,
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
/** @internal */
|
|
127
|
-
export const NotificationStepVariantMetadata$inboundSchema: z.ZodType<
|
|
128
|
-
NotificationStepVariantMetadata,
|
|
129
|
-
z.ZodTypeDef,
|
|
130
|
-
unknown
|
|
131
|
-
> = z.union([
|
|
132
|
-
DelayScheduledMetadata$inboundSchema,
|
|
133
|
-
DelayRegularMetadata$inboundSchema,
|
|
134
|
-
DigestTimedMetadata$inboundSchema,
|
|
135
|
-
DigestRegularMetadata$inboundSchema,
|
|
136
|
-
]);
|
|
137
|
-
|
|
138
|
-
/** @internal */
|
|
139
|
-
export type NotificationStepVariantMetadata$Outbound =
|
|
140
|
-
| DelayScheduledMetadata$Outbound
|
|
141
|
-
| DelayRegularMetadata$Outbound
|
|
142
|
-
| DigestTimedMetadata$Outbound
|
|
143
|
-
| DigestRegularMetadata$Outbound;
|
|
144
|
-
|
|
145
|
-
/** @internal */
|
|
146
|
-
export const NotificationStepVariantMetadata$outboundSchema: z.ZodType<
|
|
147
|
-
NotificationStepVariantMetadata$Outbound,
|
|
148
|
-
z.ZodTypeDef,
|
|
149
|
-
NotificationStepVariantMetadata
|
|
150
|
-
> = z.union([
|
|
151
|
-
DelayScheduledMetadata$outboundSchema,
|
|
152
|
-
DelayRegularMetadata$outboundSchema,
|
|
153
|
-
DigestTimedMetadata$outboundSchema,
|
|
154
|
-
DigestRegularMetadata$outboundSchema,
|
|
155
|
-
]);
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* @internal
|
|
159
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
160
|
-
*/
|
|
161
|
-
export namespace NotificationStepVariantMetadata$ {
|
|
162
|
-
/** @deprecated use `NotificationStepVariantMetadata$inboundSchema` instead. */
|
|
163
|
-
export const inboundSchema = NotificationStepVariantMetadata$inboundSchema;
|
|
164
|
-
/** @deprecated use `NotificationStepVariantMetadata$outboundSchema` instead. */
|
|
165
|
-
export const outboundSchema = NotificationStepVariantMetadata$outboundSchema;
|
|
166
|
-
/** @deprecated use `NotificationStepVariantMetadata$Outbound` instead. */
|
|
167
|
-
export type Outbound = NotificationStepVariantMetadata$Outbound;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
export function notificationStepVariantMetadataToJSON(
|
|
171
|
-
notificationStepVariantMetadata: NotificationStepVariantMetadata,
|
|
172
|
-
): string {
|
|
173
|
-
return JSON.stringify(
|
|
174
|
-
NotificationStepVariantMetadata$outboundSchema.parse(
|
|
175
|
-
notificationStepVariantMetadata,
|
|
176
|
-
),
|
|
177
|
-
);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
export function notificationStepVariantMetadataFromJSON(
|
|
181
|
-
jsonString: string,
|
|
182
|
-
): SafeParseResult<NotificationStepVariantMetadata, SDKValidationError> {
|
|
183
|
-
return safeParse(
|
|
184
|
-
jsonString,
|
|
185
|
-
(x) => NotificationStepVariantMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
186
|
-
`Failed to parse 'NotificationStepVariantMetadata' from JSON`,
|
|
187
|
-
);
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
/** @internal */
|
|
191
|
-
export const NotificationStepVariantReplyCallback$inboundSchema: z.ZodType<
|
|
192
|
-
NotificationStepVariantReplyCallback,
|
|
193
|
-
z.ZodTypeDef,
|
|
194
|
-
unknown
|
|
195
|
-
> = z.object({});
|
|
196
|
-
|
|
197
|
-
/** @internal */
|
|
198
|
-
export type NotificationStepVariantReplyCallback$Outbound = {};
|
|
199
|
-
|
|
200
|
-
/** @internal */
|
|
201
|
-
export const NotificationStepVariantReplyCallback$outboundSchema: z.ZodType<
|
|
202
|
-
NotificationStepVariantReplyCallback$Outbound,
|
|
203
|
-
z.ZodTypeDef,
|
|
204
|
-
NotificationStepVariantReplyCallback
|
|
205
|
-
> = z.object({});
|
|
206
|
-
|
|
207
|
-
/**
|
|
208
|
-
* @internal
|
|
209
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
210
|
-
*/
|
|
211
|
-
export namespace NotificationStepVariantReplyCallback$ {
|
|
212
|
-
/** @deprecated use `NotificationStepVariantReplyCallback$inboundSchema` instead. */
|
|
213
|
-
export const inboundSchema =
|
|
214
|
-
NotificationStepVariantReplyCallback$inboundSchema;
|
|
215
|
-
/** @deprecated use `NotificationStepVariantReplyCallback$outboundSchema` instead. */
|
|
216
|
-
export const outboundSchema =
|
|
217
|
-
NotificationStepVariantReplyCallback$outboundSchema;
|
|
218
|
-
/** @deprecated use `NotificationStepVariantReplyCallback$Outbound` instead. */
|
|
219
|
-
export type Outbound = NotificationStepVariantReplyCallback$Outbound;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export function notificationStepVariantReplyCallbackToJSON(
|
|
223
|
-
notificationStepVariantReplyCallback: NotificationStepVariantReplyCallback,
|
|
224
|
-
): string {
|
|
225
|
-
return JSON.stringify(
|
|
226
|
-
NotificationStepVariantReplyCallback$outboundSchema.parse(
|
|
227
|
-
notificationStepVariantReplyCallback,
|
|
228
|
-
),
|
|
229
|
-
);
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
export function notificationStepVariantReplyCallbackFromJSON(
|
|
233
|
-
jsonString: string,
|
|
234
|
-
): SafeParseResult<NotificationStepVariantReplyCallback, SDKValidationError> {
|
|
235
|
-
return safeParse(
|
|
236
|
-
jsonString,
|
|
237
|
-
(x) =>
|
|
238
|
-
NotificationStepVariantReplyCallback$inboundSchema.parse(JSON.parse(x)),
|
|
239
|
-
`Failed to parse 'NotificationStepVariantReplyCallback' from JSON`,
|
|
240
|
-
);
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/** @internal */
|
|
244
|
-
export const NotificationStepVariant$inboundSchema: z.ZodType<
|
|
245
|
-
NotificationStepVariant,
|
|
246
|
-
z.ZodTypeDef,
|
|
247
|
-
unknown
|
|
248
|
-
> = z.object({
|
|
249
|
-
_id: z.string().optional(),
|
|
250
|
-
uuid: z.string().optional(),
|
|
251
|
-
name: z.string().optional(),
|
|
252
|
-
_templateId: z.string().optional(),
|
|
253
|
-
active: z.boolean().optional(),
|
|
254
|
-
shouldStopOnFail: z.boolean().optional(),
|
|
255
|
-
template: MessageTemplate$inboundSchema.optional(),
|
|
256
|
-
filters: z.array(StepFilterDto$inboundSchema).optional(),
|
|
257
|
-
_parentId: z.lazy(() => NotificationStepVariantParentId$inboundSchema)
|
|
258
|
-
.optional(),
|
|
259
|
-
metadata: z.union([
|
|
260
|
-
DelayScheduledMetadata$inboundSchema,
|
|
261
|
-
DelayRegularMetadata$inboundSchema,
|
|
262
|
-
DigestTimedMetadata$inboundSchema,
|
|
263
|
-
DigestRegularMetadata$inboundSchema,
|
|
264
|
-
]).optional(),
|
|
265
|
-
replyCallback: z.lazy(() =>
|
|
266
|
-
NotificationStepVariantReplyCallback$inboundSchema
|
|
267
|
-
).optional(),
|
|
268
|
-
}).transform((v) => {
|
|
269
|
-
return remap$(v, {
|
|
270
|
-
"_id": "id",
|
|
271
|
-
"_templateId": "templateId",
|
|
272
|
-
"_parentId": "parentId",
|
|
273
|
-
});
|
|
274
|
-
});
|
|
275
|
-
|
|
276
|
-
/** @internal */
|
|
277
|
-
export type NotificationStepVariant$Outbound = {
|
|
278
|
-
_id?: string | undefined;
|
|
279
|
-
uuid?: string | undefined;
|
|
280
|
-
name?: string | undefined;
|
|
281
|
-
_templateId?: string | undefined;
|
|
282
|
-
active?: boolean | undefined;
|
|
283
|
-
shouldStopOnFail?: boolean | undefined;
|
|
284
|
-
template?: MessageTemplate$Outbound | undefined;
|
|
285
|
-
filters?: Array<StepFilterDto$Outbound> | undefined;
|
|
286
|
-
_parentId?: NotificationStepVariantParentId$Outbound | undefined;
|
|
287
|
-
metadata?:
|
|
288
|
-
| DelayScheduledMetadata$Outbound
|
|
289
|
-
| DelayRegularMetadata$Outbound
|
|
290
|
-
| DigestTimedMetadata$Outbound
|
|
291
|
-
| DigestRegularMetadata$Outbound
|
|
292
|
-
| undefined;
|
|
293
|
-
replyCallback?: NotificationStepVariantReplyCallback$Outbound | undefined;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
/** @internal */
|
|
297
|
-
export const NotificationStepVariant$outboundSchema: z.ZodType<
|
|
298
|
-
NotificationStepVariant$Outbound,
|
|
299
|
-
z.ZodTypeDef,
|
|
300
|
-
NotificationStepVariant
|
|
301
|
-
> = z.object({
|
|
302
|
-
id: z.string().optional(),
|
|
303
|
-
uuid: z.string().optional(),
|
|
304
|
-
name: z.string().optional(),
|
|
305
|
-
templateId: z.string().optional(),
|
|
306
|
-
active: z.boolean().optional(),
|
|
307
|
-
shouldStopOnFail: z.boolean().optional(),
|
|
308
|
-
template: MessageTemplate$outboundSchema.optional(),
|
|
309
|
-
filters: z.array(StepFilterDto$outboundSchema).optional(),
|
|
310
|
-
parentId: z.lazy(() => NotificationStepVariantParentId$outboundSchema)
|
|
311
|
-
.optional(),
|
|
312
|
-
metadata: z.union([
|
|
313
|
-
DelayScheduledMetadata$outboundSchema,
|
|
314
|
-
DelayRegularMetadata$outboundSchema,
|
|
315
|
-
DigestTimedMetadata$outboundSchema,
|
|
316
|
-
DigestRegularMetadata$outboundSchema,
|
|
317
|
-
]).optional(),
|
|
318
|
-
replyCallback: z.lazy(() =>
|
|
319
|
-
NotificationStepVariantReplyCallback$outboundSchema
|
|
320
|
-
).optional(),
|
|
321
|
-
}).transform((v) => {
|
|
322
|
-
return remap$(v, {
|
|
323
|
-
id: "_id",
|
|
324
|
-
templateId: "_templateId",
|
|
325
|
-
parentId: "_parentId",
|
|
326
|
-
});
|
|
327
|
-
});
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* @internal
|
|
331
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
332
|
-
*/
|
|
333
|
-
export namespace NotificationStepVariant$ {
|
|
334
|
-
/** @deprecated use `NotificationStepVariant$inboundSchema` instead. */
|
|
335
|
-
export const inboundSchema = NotificationStepVariant$inboundSchema;
|
|
336
|
-
/** @deprecated use `NotificationStepVariant$outboundSchema` instead. */
|
|
337
|
-
export const outboundSchema = NotificationStepVariant$outboundSchema;
|
|
338
|
-
/** @deprecated use `NotificationStepVariant$Outbound` instead. */
|
|
339
|
-
export type Outbound = NotificationStepVariant$Outbound;
|
|
340
|
-
}
|
|
341
|
-
|
|
342
|
-
export function notificationStepVariantToJSON(
|
|
343
|
-
notificationStepVariant: NotificationStepVariant,
|
|
344
|
-
): string {
|
|
345
|
-
return JSON.stringify(
|
|
346
|
-
NotificationStepVariant$outboundSchema.parse(notificationStepVariant),
|
|
347
|
-
);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
export function notificationStepVariantFromJSON(
|
|
351
|
-
jsonString: string,
|
|
352
|
-
): SafeParseResult<NotificationStepVariant, SDKValidationError> {
|
|
353
|
-
return safeParse(
|
|
354
|
-
jsonString,
|
|
355
|
-
(x) => NotificationStepVariant$inboundSchema.parse(JSON.parse(x)),
|
|
356
|
-
`Failed to parse 'NotificationStepVariant' from JSON`,
|
|
357
|
-
);
|
|
358
|
-
}
|