@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
|
@@ -14,11 +14,31 @@ import {
|
|
|
14
14
|
MessageTemplateDto$outboundSchema,
|
|
15
15
|
} from "./messagetemplatedto.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
17
|
+
StepFilterDto,
|
|
18
|
+
StepFilterDto$inboundSchema,
|
|
19
|
+
StepFilterDto$Outbound,
|
|
20
|
+
StepFilterDto$outboundSchema,
|
|
21
|
+
} from "./stepfilterdto.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Reply callback settings
|
|
25
|
+
*/
|
|
26
|
+
export type ActivityNotificationStepResponseDtoReplyCallback = {};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Control variables
|
|
30
|
+
*/
|
|
31
|
+
export type ControlVariables = {};
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Metadata for the workflow step
|
|
35
|
+
*/
|
|
36
|
+
export type Metadata = {};
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Step issues
|
|
40
|
+
*/
|
|
41
|
+
export type Issues = {};
|
|
22
42
|
|
|
23
43
|
export type ActivityNotificationStepResponseDto = {
|
|
24
44
|
/**
|
|
@@ -29,16 +49,243 @@ export type ActivityNotificationStepResponseDto = {
|
|
|
29
49
|
* Whether the step is active or not
|
|
30
50
|
*/
|
|
31
51
|
active: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Reply callback settings
|
|
54
|
+
*/
|
|
55
|
+
replyCallback?: ActivityNotificationStepResponseDtoReplyCallback | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Control variables
|
|
58
|
+
*/
|
|
59
|
+
controlVariables?: ControlVariables | undefined;
|
|
60
|
+
/**
|
|
61
|
+
* Metadata for the workflow step
|
|
62
|
+
*/
|
|
63
|
+
metadata?: Metadata | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Step issues
|
|
66
|
+
*/
|
|
67
|
+
issues?: Issues | undefined;
|
|
32
68
|
/**
|
|
33
69
|
* Filter criteria for the step
|
|
34
70
|
*/
|
|
35
|
-
filters: Array<
|
|
71
|
+
filters: Array<StepFilterDto>;
|
|
36
72
|
/**
|
|
37
73
|
* Optional template for the step
|
|
38
74
|
*/
|
|
39
75
|
template?: MessageTemplateDto | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Variants of the step
|
|
78
|
+
*/
|
|
79
|
+
variants?: Array<ActivityNotificationStepResponseDto> | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* The identifier for the template associated with this step
|
|
82
|
+
*/
|
|
83
|
+
templateId: string;
|
|
84
|
+
/**
|
|
85
|
+
* The name of the step
|
|
86
|
+
*/
|
|
87
|
+
name?: string | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* The unique identifier for the parent step
|
|
90
|
+
*/
|
|
91
|
+
parentId?: string | null | undefined;
|
|
40
92
|
};
|
|
41
93
|
|
|
94
|
+
/** @internal */
|
|
95
|
+
export const ActivityNotificationStepResponseDtoReplyCallback$inboundSchema:
|
|
96
|
+
z.ZodType<
|
|
97
|
+
ActivityNotificationStepResponseDtoReplyCallback,
|
|
98
|
+
z.ZodTypeDef,
|
|
99
|
+
unknown
|
|
100
|
+
> = z.object({});
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export type ActivityNotificationStepResponseDtoReplyCallback$Outbound = {};
|
|
104
|
+
|
|
105
|
+
/** @internal */
|
|
106
|
+
export const ActivityNotificationStepResponseDtoReplyCallback$outboundSchema:
|
|
107
|
+
z.ZodType<
|
|
108
|
+
ActivityNotificationStepResponseDtoReplyCallback$Outbound,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
ActivityNotificationStepResponseDtoReplyCallback
|
|
111
|
+
> = z.object({});
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
116
|
+
*/
|
|
117
|
+
export namespace ActivityNotificationStepResponseDtoReplyCallback$ {
|
|
118
|
+
/** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$inboundSchema` instead. */
|
|
119
|
+
export const inboundSchema =
|
|
120
|
+
ActivityNotificationStepResponseDtoReplyCallback$inboundSchema;
|
|
121
|
+
/** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$outboundSchema` instead. */
|
|
122
|
+
export const outboundSchema =
|
|
123
|
+
ActivityNotificationStepResponseDtoReplyCallback$outboundSchema;
|
|
124
|
+
/** @deprecated use `ActivityNotificationStepResponseDtoReplyCallback$Outbound` instead. */
|
|
125
|
+
export type Outbound =
|
|
126
|
+
ActivityNotificationStepResponseDtoReplyCallback$Outbound;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function activityNotificationStepResponseDtoReplyCallbackToJSON(
|
|
130
|
+
activityNotificationStepResponseDtoReplyCallback:
|
|
131
|
+
ActivityNotificationStepResponseDtoReplyCallback,
|
|
132
|
+
): string {
|
|
133
|
+
return JSON.stringify(
|
|
134
|
+
ActivityNotificationStepResponseDtoReplyCallback$outboundSchema.parse(
|
|
135
|
+
activityNotificationStepResponseDtoReplyCallback,
|
|
136
|
+
),
|
|
137
|
+
);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function activityNotificationStepResponseDtoReplyCallbackFromJSON(
|
|
141
|
+
jsonString: string,
|
|
142
|
+
): SafeParseResult<
|
|
143
|
+
ActivityNotificationStepResponseDtoReplyCallback,
|
|
144
|
+
SDKValidationError
|
|
145
|
+
> {
|
|
146
|
+
return safeParse(
|
|
147
|
+
jsonString,
|
|
148
|
+
(x) =>
|
|
149
|
+
ActivityNotificationStepResponseDtoReplyCallback$inboundSchema.parse(
|
|
150
|
+
JSON.parse(x),
|
|
151
|
+
),
|
|
152
|
+
`Failed to parse 'ActivityNotificationStepResponseDtoReplyCallback' from JSON`,
|
|
153
|
+
);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/** @internal */
|
|
157
|
+
export const ControlVariables$inboundSchema: z.ZodType<
|
|
158
|
+
ControlVariables,
|
|
159
|
+
z.ZodTypeDef,
|
|
160
|
+
unknown
|
|
161
|
+
> = z.object({});
|
|
162
|
+
|
|
163
|
+
/** @internal */
|
|
164
|
+
export type ControlVariables$Outbound = {};
|
|
165
|
+
|
|
166
|
+
/** @internal */
|
|
167
|
+
export const ControlVariables$outboundSchema: z.ZodType<
|
|
168
|
+
ControlVariables$Outbound,
|
|
169
|
+
z.ZodTypeDef,
|
|
170
|
+
ControlVariables
|
|
171
|
+
> = z.object({});
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
176
|
+
*/
|
|
177
|
+
export namespace ControlVariables$ {
|
|
178
|
+
/** @deprecated use `ControlVariables$inboundSchema` instead. */
|
|
179
|
+
export const inboundSchema = ControlVariables$inboundSchema;
|
|
180
|
+
/** @deprecated use `ControlVariables$outboundSchema` instead. */
|
|
181
|
+
export const outboundSchema = ControlVariables$outboundSchema;
|
|
182
|
+
/** @deprecated use `ControlVariables$Outbound` instead. */
|
|
183
|
+
export type Outbound = ControlVariables$Outbound;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export function controlVariablesToJSON(
|
|
187
|
+
controlVariables: ControlVariables,
|
|
188
|
+
): string {
|
|
189
|
+
return JSON.stringify(
|
|
190
|
+
ControlVariables$outboundSchema.parse(controlVariables),
|
|
191
|
+
);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
export function controlVariablesFromJSON(
|
|
195
|
+
jsonString: string,
|
|
196
|
+
): SafeParseResult<ControlVariables, SDKValidationError> {
|
|
197
|
+
return safeParse(
|
|
198
|
+
jsonString,
|
|
199
|
+
(x) => ControlVariables$inboundSchema.parse(JSON.parse(x)),
|
|
200
|
+
`Failed to parse 'ControlVariables' from JSON`,
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/** @internal */
|
|
205
|
+
export const Metadata$inboundSchema: z.ZodType<
|
|
206
|
+
Metadata,
|
|
207
|
+
z.ZodTypeDef,
|
|
208
|
+
unknown
|
|
209
|
+
> = z.object({});
|
|
210
|
+
|
|
211
|
+
/** @internal */
|
|
212
|
+
export type Metadata$Outbound = {};
|
|
213
|
+
|
|
214
|
+
/** @internal */
|
|
215
|
+
export const Metadata$outboundSchema: z.ZodType<
|
|
216
|
+
Metadata$Outbound,
|
|
217
|
+
z.ZodTypeDef,
|
|
218
|
+
Metadata
|
|
219
|
+
> = z.object({});
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* @internal
|
|
223
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
224
|
+
*/
|
|
225
|
+
export namespace Metadata$ {
|
|
226
|
+
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
227
|
+
export const inboundSchema = Metadata$inboundSchema;
|
|
228
|
+
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
229
|
+
export const outboundSchema = Metadata$outboundSchema;
|
|
230
|
+
/** @deprecated use `Metadata$Outbound` instead. */
|
|
231
|
+
export type Outbound = Metadata$Outbound;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export function metadataToJSON(metadata: Metadata): string {
|
|
235
|
+
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export function metadataFromJSON(
|
|
239
|
+
jsonString: string,
|
|
240
|
+
): SafeParseResult<Metadata, SDKValidationError> {
|
|
241
|
+
return safeParse(
|
|
242
|
+
jsonString,
|
|
243
|
+
(x) => Metadata$inboundSchema.parse(JSON.parse(x)),
|
|
244
|
+
`Failed to parse 'Metadata' from JSON`,
|
|
245
|
+
);
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/** @internal */
|
|
249
|
+
export const Issues$inboundSchema: z.ZodType<Issues, z.ZodTypeDef, unknown> = z
|
|
250
|
+
.object({});
|
|
251
|
+
|
|
252
|
+
/** @internal */
|
|
253
|
+
export type Issues$Outbound = {};
|
|
254
|
+
|
|
255
|
+
/** @internal */
|
|
256
|
+
export const Issues$outboundSchema: z.ZodType<
|
|
257
|
+
Issues$Outbound,
|
|
258
|
+
z.ZodTypeDef,
|
|
259
|
+
Issues
|
|
260
|
+
> = z.object({});
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* @internal
|
|
264
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
265
|
+
*/
|
|
266
|
+
export namespace Issues$ {
|
|
267
|
+
/** @deprecated use `Issues$inboundSchema` instead. */
|
|
268
|
+
export const inboundSchema = Issues$inboundSchema;
|
|
269
|
+
/** @deprecated use `Issues$outboundSchema` instead. */
|
|
270
|
+
export const outboundSchema = Issues$outboundSchema;
|
|
271
|
+
/** @deprecated use `Issues$Outbound` instead. */
|
|
272
|
+
export type Outbound = Issues$Outbound;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
export function issuesToJSON(issues: Issues): string {
|
|
276
|
+
return JSON.stringify(Issues$outboundSchema.parse(issues));
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
export function issuesFromJSON(
|
|
280
|
+
jsonString: string,
|
|
281
|
+
): SafeParseResult<Issues, SDKValidationError> {
|
|
282
|
+
return safeParse(
|
|
283
|
+
jsonString,
|
|
284
|
+
(x) => Issues$inboundSchema.parse(JSON.parse(x)),
|
|
285
|
+
`Failed to parse 'Issues' from JSON`,
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
|
|
42
289
|
/** @internal */
|
|
43
290
|
export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
|
|
44
291
|
ActivityNotificationStepResponseDto,
|
|
@@ -47,11 +294,25 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
|
|
|
47
294
|
> = z.object({
|
|
48
295
|
_id: z.string(),
|
|
49
296
|
active: z.boolean(),
|
|
50
|
-
|
|
297
|
+
replyCallback: z.lazy(() =>
|
|
298
|
+
ActivityNotificationStepResponseDtoReplyCallback$inboundSchema
|
|
299
|
+
).optional(),
|
|
300
|
+
controlVariables: z.lazy(() => ControlVariables$inboundSchema).optional(),
|
|
301
|
+
metadata: z.lazy(() => Metadata$inboundSchema).optional(),
|
|
302
|
+
issues: z.lazy(() => Issues$inboundSchema).optional(),
|
|
303
|
+
filters: z.array(StepFilterDto$inboundSchema),
|
|
51
304
|
template: MessageTemplateDto$inboundSchema.optional(),
|
|
305
|
+
variants: z.array(
|
|
306
|
+
z.lazy(() => ActivityNotificationStepResponseDto$inboundSchema),
|
|
307
|
+
).optional(),
|
|
308
|
+
_templateId: z.string(),
|
|
309
|
+
name: z.string().optional(),
|
|
310
|
+
_parentId: z.nullable(z.string()).optional(),
|
|
52
311
|
}).transform((v) => {
|
|
53
312
|
return remap$(v, {
|
|
54
313
|
"_id": "id",
|
|
314
|
+
"_templateId": "templateId",
|
|
315
|
+
"_parentId": "parentId",
|
|
55
316
|
});
|
|
56
317
|
});
|
|
57
318
|
|
|
@@ -59,8 +320,18 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
|
|
|
59
320
|
export type ActivityNotificationStepResponseDto$Outbound = {
|
|
60
321
|
_id: string;
|
|
61
322
|
active: boolean;
|
|
62
|
-
|
|
323
|
+
replyCallback?:
|
|
324
|
+
| ActivityNotificationStepResponseDtoReplyCallback$Outbound
|
|
325
|
+
| undefined;
|
|
326
|
+
controlVariables?: ControlVariables$Outbound | undefined;
|
|
327
|
+
metadata?: Metadata$Outbound | undefined;
|
|
328
|
+
issues?: Issues$Outbound | undefined;
|
|
329
|
+
filters: Array<StepFilterDto$Outbound>;
|
|
63
330
|
template?: MessageTemplateDto$Outbound | undefined;
|
|
331
|
+
variants?: Array<ActivityNotificationStepResponseDto$Outbound> | undefined;
|
|
332
|
+
_templateId: string;
|
|
333
|
+
name?: string | undefined;
|
|
334
|
+
_parentId?: string | null | undefined;
|
|
64
335
|
};
|
|
65
336
|
|
|
66
337
|
/** @internal */
|
|
@@ -71,11 +342,25 @@ export const ActivityNotificationStepResponseDto$outboundSchema: z.ZodType<
|
|
|
71
342
|
> = z.object({
|
|
72
343
|
id: z.string(),
|
|
73
344
|
active: z.boolean(),
|
|
74
|
-
|
|
345
|
+
replyCallback: z.lazy(() =>
|
|
346
|
+
ActivityNotificationStepResponseDtoReplyCallback$outboundSchema
|
|
347
|
+
).optional(),
|
|
348
|
+
controlVariables: z.lazy(() => ControlVariables$outboundSchema).optional(),
|
|
349
|
+
metadata: z.lazy(() => Metadata$outboundSchema).optional(),
|
|
350
|
+
issues: z.lazy(() => Issues$outboundSchema).optional(),
|
|
351
|
+
filters: z.array(StepFilterDto$outboundSchema),
|
|
75
352
|
template: MessageTemplateDto$outboundSchema.optional(),
|
|
353
|
+
variants: z.array(
|
|
354
|
+
z.lazy(() => ActivityNotificationStepResponseDto$outboundSchema),
|
|
355
|
+
).optional(),
|
|
356
|
+
templateId: z.string(),
|
|
357
|
+
name: z.string().optional(),
|
|
358
|
+
parentId: z.nullable(z.string()).optional(),
|
|
76
359
|
}).transform((v) => {
|
|
77
360
|
return remap$(v, {
|
|
78
361
|
id: "_id",
|
|
362
|
+
templateId: "_templateId",
|
|
363
|
+
parentId: "_parentId",
|
|
79
364
|
});
|
|
80
365
|
});
|
|
81
366
|
|
|
@@ -8,11 +8,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
11
|
+
NotificationTriggerDto,
|
|
12
|
+
NotificationTriggerDto$inboundSchema,
|
|
13
|
+
NotificationTriggerDto$Outbound,
|
|
14
|
+
NotificationTriggerDto$outboundSchema,
|
|
15
|
+
} from "./notificationtriggerdto.js";
|
|
16
16
|
|
|
17
17
|
export type ActivityNotificationTemplateResponseDto = {
|
|
18
18
|
/**
|
|
@@ -26,7 +26,7 @@ export type ActivityNotificationTemplateResponseDto = {
|
|
|
26
26
|
/**
|
|
27
27
|
* Triggers of the template
|
|
28
28
|
*/
|
|
29
|
-
triggers: Array<
|
|
29
|
+
triggers: Array<NotificationTriggerDto>;
|
|
30
30
|
};
|
|
31
31
|
|
|
32
32
|
/** @internal */
|
|
@@ -37,7 +37,7 @@ export const ActivityNotificationTemplateResponseDto$inboundSchema: z.ZodType<
|
|
|
37
37
|
> = z.object({
|
|
38
38
|
_id: z.string().optional(),
|
|
39
39
|
name: z.string(),
|
|
40
|
-
triggers: z.array(
|
|
40
|
+
triggers: z.array(NotificationTriggerDto$inboundSchema),
|
|
41
41
|
}).transform((v) => {
|
|
42
42
|
return remap$(v, {
|
|
43
43
|
"_id": "id",
|
|
@@ -48,7 +48,7 @@ export const ActivityNotificationTemplateResponseDto$inboundSchema: z.ZodType<
|
|
|
48
48
|
export type ActivityNotificationTemplateResponseDto$Outbound = {
|
|
49
49
|
_id?: string | undefined;
|
|
50
50
|
name: string;
|
|
51
|
-
triggers: Array<
|
|
51
|
+
triggers: Array<NotificationTriggerDto$Outbound>;
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
/** @internal */
|
|
@@ -59,7 +59,7 @@ export const ActivityNotificationTemplateResponseDto$outboundSchema: z.ZodType<
|
|
|
59
59
|
> = z.object({
|
|
60
60
|
id: z.string().optional(),
|
|
61
61
|
name: z.string(),
|
|
62
|
-
triggers: z.array(
|
|
62
|
+
triggers: z.array(NotificationTriggerDto$outboundSchema),
|
|
63
63
|
}).transform((v) => {
|
|
64
64
|
return remap$(v, {
|
|
65
65
|
id: "_id",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const BuilderFieldTypeEnum = {
|
|
9
|
+
Boolean: "BOOLEAN",
|
|
10
|
+
Text: "TEXT",
|
|
11
|
+
Date: "DATE",
|
|
12
|
+
Number: "NUMBER",
|
|
13
|
+
Statement: "STATEMENT",
|
|
14
|
+
List: "LIST",
|
|
15
|
+
MultiList: "MULTI_LIST",
|
|
16
|
+
Group: "GROUP",
|
|
17
|
+
} as const;
|
|
18
|
+
export type BuilderFieldTypeEnum = ClosedEnum<typeof BuilderFieldTypeEnum>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const BuilderFieldTypeEnum$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof BuilderFieldTypeEnum
|
|
23
|
+
> = z.nativeEnum(BuilderFieldTypeEnum);
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const BuilderFieldTypeEnum$outboundSchema: z.ZodNativeEnum<
|
|
27
|
+
typeof BuilderFieldTypeEnum
|
|
28
|
+
> = BuilderFieldTypeEnum$inboundSchema;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export namespace BuilderFieldTypeEnum$ {
|
|
35
|
+
/** @deprecated use `BuilderFieldTypeEnum$inboundSchema` instead. */
|
|
36
|
+
export const inboundSchema = BuilderFieldTypeEnum$inboundSchema;
|
|
37
|
+
/** @deprecated use `BuilderFieldTypeEnum$outboundSchema` instead. */
|
|
38
|
+
export const outboundSchema = BuilderFieldTypeEnum$outboundSchema;
|
|
39
|
+
}
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
DigestTimedConfigDto,
|
|
12
|
+
DigestTimedConfigDto$inboundSchema,
|
|
13
|
+
DigestTimedConfigDto$Outbound,
|
|
14
|
+
DigestTimedConfigDto$outboundSchema,
|
|
15
|
+
} from "./digesttimedconfigdto.js";
|
|
16
|
+
import {
|
|
17
|
+
DigestTypeEnum,
|
|
18
|
+
DigestTypeEnum$inboundSchema,
|
|
19
|
+
DigestTypeEnum$outboundSchema,
|
|
20
|
+
} from "./digesttypeenum.js";
|
|
21
|
+
import {
|
|
22
|
+
DigestUnitEnum,
|
|
23
|
+
DigestUnitEnum$inboundSchema,
|
|
24
|
+
DigestUnitEnum$outboundSchema,
|
|
25
|
+
} from "./digestunitenum.js";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Unit of the digest
|
|
29
|
+
*/
|
|
30
|
+
export const Unit = {
|
|
31
|
+
Seconds: "seconds",
|
|
32
|
+
Minutes: "minutes",
|
|
33
|
+
Hours: "hours",
|
|
34
|
+
Days: "days",
|
|
35
|
+
Weeks: "weeks",
|
|
36
|
+
Months: "months",
|
|
37
|
+
} as const;
|
|
38
|
+
/**
|
|
39
|
+
* Unit of the digest
|
|
40
|
+
*/
|
|
41
|
+
export type Unit = ClosedEnum<typeof Unit>;
|
|
42
|
+
|
|
43
|
+
export type DigestMetadataDto = {
|
|
44
|
+
/**
|
|
45
|
+
* Optional key for the digest
|
|
46
|
+
*/
|
|
47
|
+
digestKey?: string | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Amount for the digest
|
|
50
|
+
*/
|
|
51
|
+
amount?: number | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Unit of the digest
|
|
54
|
+
*/
|
|
55
|
+
unit?: Unit | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* The Digest Type
|
|
58
|
+
*/
|
|
59
|
+
type: DigestTypeEnum;
|
|
60
|
+
/**
|
|
61
|
+
* Optional array of events associated with the digest, represented as key-value pairs
|
|
62
|
+
*/
|
|
63
|
+
events?: Array<{ [k: string]: any }> | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Regular digest: Indicates if backoff is enabled for the regular digest
|
|
66
|
+
*/
|
|
67
|
+
backoff?: boolean | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Regular digest: Amount for backoff
|
|
70
|
+
*/
|
|
71
|
+
backoffAmount?: number | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Regular digest: Unit for backoff
|
|
74
|
+
*/
|
|
75
|
+
backoffUnit?: DigestUnitEnum | undefined;
|
|
76
|
+
/**
|
|
77
|
+
* Regular digest: Indicates if the digest should update
|
|
78
|
+
*/
|
|
79
|
+
updateMode?: boolean | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Configuration for timed digest
|
|
82
|
+
*/
|
|
83
|
+
timed?: DigestTimedConfigDto | undefined;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const Unit$inboundSchema: z.ZodNativeEnum<typeof Unit> = z.nativeEnum(
|
|
88
|
+
Unit,
|
|
89
|
+
);
|
|
90
|
+
|
|
91
|
+
/** @internal */
|
|
92
|
+
export const Unit$outboundSchema: z.ZodNativeEnum<typeof Unit> =
|
|
93
|
+
Unit$inboundSchema;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* @internal
|
|
97
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
98
|
+
*/
|
|
99
|
+
export namespace Unit$ {
|
|
100
|
+
/** @deprecated use `Unit$inboundSchema` instead. */
|
|
101
|
+
export const inboundSchema = Unit$inboundSchema;
|
|
102
|
+
/** @deprecated use `Unit$outboundSchema` instead. */
|
|
103
|
+
export const outboundSchema = Unit$outboundSchema;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** @internal */
|
|
107
|
+
export const DigestMetadataDto$inboundSchema: z.ZodType<
|
|
108
|
+
DigestMetadataDto,
|
|
109
|
+
z.ZodTypeDef,
|
|
110
|
+
unknown
|
|
111
|
+
> = z.object({
|
|
112
|
+
digestKey: z.string().optional(),
|
|
113
|
+
amount: z.number().optional(),
|
|
114
|
+
unit: Unit$inboundSchema.optional(),
|
|
115
|
+
type: DigestTypeEnum$inboundSchema,
|
|
116
|
+
events: z.array(z.record(z.any())).optional(),
|
|
117
|
+
backoff: z.boolean().optional(),
|
|
118
|
+
backoffAmount: z.number().optional(),
|
|
119
|
+
backoffUnit: DigestUnitEnum$inboundSchema.optional(),
|
|
120
|
+
updateMode: z.boolean().optional(),
|
|
121
|
+
timed: DigestTimedConfigDto$inboundSchema.optional(),
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
/** @internal */
|
|
125
|
+
export type DigestMetadataDto$Outbound = {
|
|
126
|
+
digestKey?: string | undefined;
|
|
127
|
+
amount?: number | undefined;
|
|
128
|
+
unit?: string | undefined;
|
|
129
|
+
type: string;
|
|
130
|
+
events?: Array<{ [k: string]: any }> | undefined;
|
|
131
|
+
backoff?: boolean | undefined;
|
|
132
|
+
backoffAmount?: number | undefined;
|
|
133
|
+
backoffUnit?: string | undefined;
|
|
134
|
+
updateMode?: boolean | undefined;
|
|
135
|
+
timed?: DigestTimedConfigDto$Outbound | undefined;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const DigestMetadataDto$outboundSchema: z.ZodType<
|
|
140
|
+
DigestMetadataDto$Outbound,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
DigestMetadataDto
|
|
143
|
+
> = z.object({
|
|
144
|
+
digestKey: z.string().optional(),
|
|
145
|
+
amount: z.number().optional(),
|
|
146
|
+
unit: Unit$outboundSchema.optional(),
|
|
147
|
+
type: DigestTypeEnum$outboundSchema,
|
|
148
|
+
events: z.array(z.record(z.any())).optional(),
|
|
149
|
+
backoff: z.boolean().optional(),
|
|
150
|
+
backoffAmount: z.number().optional(),
|
|
151
|
+
backoffUnit: DigestUnitEnum$outboundSchema.optional(),
|
|
152
|
+
updateMode: z.boolean().optional(),
|
|
153
|
+
timed: DigestTimedConfigDto$outboundSchema.optional(),
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* @internal
|
|
158
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
159
|
+
*/
|
|
160
|
+
export namespace DigestMetadataDto$ {
|
|
161
|
+
/** @deprecated use `DigestMetadataDto$inboundSchema` instead. */
|
|
162
|
+
export const inboundSchema = DigestMetadataDto$inboundSchema;
|
|
163
|
+
/** @deprecated use `DigestMetadataDto$outboundSchema` instead. */
|
|
164
|
+
export const outboundSchema = DigestMetadataDto$outboundSchema;
|
|
165
|
+
/** @deprecated use `DigestMetadataDto$Outbound` instead. */
|
|
166
|
+
export type Outbound = DigestMetadataDto$Outbound;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export function digestMetadataDtoToJSON(
|
|
170
|
+
digestMetadataDto: DigestMetadataDto,
|
|
171
|
+
): string {
|
|
172
|
+
return JSON.stringify(
|
|
173
|
+
DigestMetadataDto$outboundSchema.parse(digestMetadataDto),
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export function digestMetadataDtoFromJSON(
|
|
178
|
+
jsonString: string,
|
|
179
|
+
): SafeParseResult<DigestMetadataDto, SDKValidationError> {
|
|
180
|
+
return safeParse(
|
|
181
|
+
jsonString,
|
|
182
|
+
(x) => DigestMetadataDto$inboundSchema.parse(JSON.parse(x)),
|
|
183
|
+
`Failed to parse 'DigestMetadataDto' from JSON`,
|
|
184
|
+
);
|
|
185
|
+
}
|