@novu/api 1.6.1-rc.0 → 1.7.1
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/README.md +14 -17
- package/bin/mcp-server.js +474 -264
- package/bin/mcp-server.js.map +87 -83
- package/docs/sdks/groups/README.md +23 -23
- package/docs/sdks/master/README.md +4 -4
- package/docs/sdks/preferences/README.md +136 -2
- package/docs/sdks/translations/README.md +11 -11
- package/examples/package-lock.json +1 -1
- package/funcs/notificationsList.js +1 -0
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/translationsCreate.d.ts +2 -2
- package/funcs/translationsCreate.js +2 -2
- package/funcs/translationsDelete.d.ts +1 -1
- package/funcs/translationsDelete.js +1 -1
- package/funcs/translationsGroupsDelete.d.ts +1 -1
- package/funcs/translationsGroupsDelete.js +1 -1
- package/funcs/translationsGroupsRetrieve.d.ts +2 -2
- package/funcs/translationsGroupsRetrieve.js +2 -2
- package/funcs/translationsMasterImport.d.ts +1 -1
- package/funcs/translationsMasterImport.js +1 -1
- package/funcs/translationsMasterRetrieve.d.ts +2 -2
- package/funcs/translationsMasterRetrieve.js +2 -2
- package/funcs/translationsMasterUpload.d.ts +1 -1
- package/funcs/translationsMasterUpload.js +1 -1
- package/funcs/translationsRetrieve.d.ts +2 -2
- package/funcs/translationsRetrieve.js +2 -2
- package/funcs/translationsUpload.d.ts +1 -1
- package/funcs/translationsUpload.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/url.js +1 -1
- package/lib/url.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/mcp-server.js.map +1 -1
- package/mcp-server/server.js +1 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/translationsCreate.js +2 -2
- package/mcp-server/tools/translationsCreate.js.map +1 -1
- package/mcp-server/tools/translationsDelete.js +1 -1
- package/mcp-server/tools/translationsGroupsDelete.d.ts +1 -0
- package/mcp-server/tools/translationsGroupsDelete.d.ts.map +1 -1
- package/mcp-server/tools/translationsGroupsDelete.js +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.d.ts +1 -0
- package/mcp-server/tools/translationsGroupsRetrieve.d.ts.map +1 -1
- package/mcp-server/tools/translationsGroupsRetrieve.js +2 -2
- package/mcp-server/tools/translationsGroupsRetrieve.js.map +1 -1
- package/mcp-server/tools/translationsMasterImport.js +1 -1
- package/mcp-server/tools/translationsMasterImport.js.map +1 -1
- package/mcp-server/tools/translationsMasterRetrieve.js +2 -2
- package/mcp-server/tools/translationsMasterRetrieve.js.map +1 -1
- package/mcp-server/tools/translationsMasterUpload.js +1 -1
- package/mcp-server/tools/translationsMasterUpload.js.map +1 -1
- package/mcp-server/tools/translationsRetrieve.js +2 -2
- package/mcp-server/tools/translationsRetrieve.js.map +1 -1
- package/mcp-server/tools/translationsUpload.js +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +8 -0
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +3 -0
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/activitynotificationresponsedto.d.ts +23 -78
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js +9 -78
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/chatstepresponsedto.d.ts +2 -26
- package/models/components/chatstepresponsedto.d.ts.map +1 -1
- package/models/components/chatstepresponsedto.js +3 -26
- package/models/components/chatstepresponsedto.js.map +1 -1
- package/models/components/chatstepupsertdto.d.ts +6 -1
- package/models/components/chatstepupsertdto.d.ts.map +1 -1
- package/models/components/chatstepupsertdto.js +2 -0
- package/models/components/chatstepupsertdto.js.map +1 -1
- package/models/components/constraintvalidation.d.ts +4 -4
- package/models/components/constraintvalidation.d.ts.map +1 -1
- package/models/components/constraintvalidation.js +4 -4
- package/models/components/constraintvalidation.js.map +1 -1
- package/models/components/createlayoutdto.d.ts +5 -0
- package/models/components/createlayoutdto.d.ts.map +1 -1
- package/models/components/createlayoutdto.js +2 -0
- package/models/components/createlayoutdto.js.map +1 -1
- package/models/components/createtranslationrequestdto.d.ts +3 -0
- package/models/components/createtranslationrequestdto.d.ts.map +1 -1
- package/models/components/createtranslationrequestdto.js +1 -0
- package/models/components/createtranslationrequestdto.js.map +1 -1
- package/models/components/createworkflowdto.d.ts +9 -0
- package/models/components/createworkflowdto.d.ts.map +1 -1
- package/models/components/createworkflowdto.js +13 -0
- package/models/components/createworkflowdto.js.map +1 -1
- package/models/components/customstepresponsedto.d.ts +2 -26
- package/models/components/customstepresponsedto.d.ts.map +1 -1
- package/models/components/customstepresponsedto.js +3 -26
- package/models/components/customstepresponsedto.js.map +1 -1
- package/models/components/customstepupsertdto.d.ts +6 -1
- package/models/components/customstepupsertdto.d.ts.map +1 -1
- package/models/components/customstepupsertdto.js +2 -0
- package/models/components/customstepupsertdto.js.map +1 -1
- package/models/components/delaycontroldto.d.ts +12 -4
- package/models/components/delaycontroldto.d.ts.map +1 -1
- package/models/components/delaycontroldto.js +7 -4
- package/models/components/delaycontroldto.js.map +1 -1
- package/models/components/delaystepresponsedto.d.ts +14 -30
- package/models/components/delaystepresponsedto.d.ts.map +1 -1
- package/models/components/delaystepresponsedto.js +10 -30
- package/models/components/delaystepresponsedto.js.map +1 -1
- package/models/components/delaystepupsertdto.d.ts +6 -1
- package/models/components/delaystepupsertdto.d.ts.map +1 -1
- package/models/components/delaystepupsertdto.js +2 -0
- package/models/components/delaystepupsertdto.js.map +1 -1
- package/models/components/digeststepresponsedto.d.ts +2 -26
- package/models/components/digeststepresponsedto.d.ts.map +1 -1
- package/models/components/digeststepresponsedto.js +3 -26
- package/models/components/digeststepresponsedto.js.map +1 -1
- package/models/components/digeststepupsertdto.d.ts +6 -1
- package/models/components/digeststepupsertdto.d.ts.map +1 -1
- package/models/components/digeststepupsertdto.js +2 -0
- package/models/components/digeststepupsertdto.js.map +1 -1
- package/models/components/digesttimedconfigdto.d.ts +5 -0
- package/models/components/digesttimedconfigdto.d.ts.map +1 -1
- package/models/components/digesttimedconfigdto.js +2 -0
- package/models/components/digesttimedconfigdto.js.map +1 -1
- package/models/components/duplicatelayoutdto.d.ts +5 -0
- package/models/components/duplicatelayoutdto.d.ts.map +1 -1
- package/models/components/duplicatelayoutdto.js +2 -0
- package/models/components/duplicatelayoutdto.js.map +1 -1
- package/models/components/emailstepresponsedto.d.ts +2 -26
- package/models/components/emailstepresponsedto.d.ts.map +1 -1
- package/models/components/emailstepresponsedto.js +3 -26
- package/models/components/emailstepresponsedto.js.map +1 -1
- package/models/components/emailstepupsertdto.d.ts +6 -1
- package/models/components/emailstepupsertdto.d.ts.map +1 -1
- package/models/components/emailstepupsertdto.js +2 -0
- package/models/components/emailstepupsertdto.js.map +1 -1
- package/models/components/getmasterjsonresponsedto.d.ts +29 -0
- package/models/components/getmasterjsonresponsedto.d.ts.map +1 -1
- package/models/components/getmasterjsonresponsedto.js +26 -1
- package/models/components/getmasterjsonresponsedto.js.map +1 -1
- package/models/components/inappstepresponsedto.d.ts +2 -26
- package/models/components/inappstepresponsedto.d.ts.map +1 -1
- package/models/components/inappstepresponsedto.js +3 -26
- package/models/components/inappstepresponsedto.js.map +1 -1
- package/models/components/inappstepupsertdto.d.ts +6 -1
- package/models/components/inappstepupsertdto.d.ts.map +1 -1
- package/models/components/inappstepupsertdto.js +2 -0
- package/models/components/inappstepupsertdto.js.map +1 -1
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/layoutresponsedto.d.ts +9 -52
- package/models/components/layoutresponsedto.d.ts.map +1 -1
- package/models/components/layoutresponsedto.js +7 -52
- package/models/components/layoutresponsedto.js.map +1 -1
- package/models/components/listsubscribersresponsedto.d.ts +10 -0
- package/models/components/listsubscribersresponsedto.d.ts.map +1 -1
- package/models/components/listsubscribersresponsedto.js +4 -0
- package/models/components/listsubscribersresponsedto.js.map +1 -1
- package/models/components/listtopicsresponsedto.d.ts +10 -0
- package/models/components/listtopicsresponsedto.d.ts.map +1 -1
- package/models/components/listtopicsresponsedto.js +4 -0
- package/models/components/listtopicsresponsedto.js.map +1 -1
- package/models/components/listtopicsubscriptionsresponsedto.d.ts +10 -0
- package/models/components/listtopicsubscriptionsresponsedto.d.ts.map +1 -1
- package/models/components/listtopicsubscriptionsresponsedto.js +4 -0
- package/models/components/listtopicsubscriptionsresponsedto.js.map +1 -1
- package/models/components/patchsubscriberpreferencesdto.d.ts +8 -2
- package/models/components/patchsubscriberpreferencesdto.d.ts.map +1 -1
- package/models/components/patchsubscriberpreferencesdto.js +5 -2
- package/models/components/patchsubscriberpreferencesdto.js.map +1 -1
- package/models/components/payloadvalidationerrordto.d.ts +4 -4
- package/models/components/payloadvalidationerrordto.d.ts.map +1 -1
- package/models/components/payloadvalidationerrordto.js +4 -4
- package/models/components/payloadvalidationerrordto.js.map +1 -1
- package/models/components/pushstepresponsedto.d.ts +2 -26
- package/models/components/pushstepresponsedto.d.ts.map +1 -1
- package/models/components/pushstepresponsedto.js +3 -26
- package/models/components/pushstepresponsedto.js.map +1 -1
- package/models/components/pushstepupsertdto.d.ts +6 -1
- package/models/components/pushstepupsertdto.d.ts.map +1 -1
- package/models/components/pushstepupsertdto.js +2 -0
- package/models/components/pushstepupsertdto.js.map +1 -1
- package/models/components/smsstepresponsedto.d.ts +2 -26
- package/models/components/smsstepresponsedto.d.ts.map +1 -1
- package/models/components/smsstepresponsedto.js +3 -26
- package/models/components/smsstepresponsedto.js.map +1 -1
- package/models/components/smsstepupsertdto.d.ts +6 -1
- package/models/components/smsstepupsertdto.d.ts.map +1 -1
- package/models/components/smsstepupsertdto.js +2 -0
- package/models/components/smsstepupsertdto.js.map +1 -1
- package/models/components/steplistresponsedto.d.ts +2 -26
- package/models/components/steplistresponsedto.d.ts.map +1 -1
- package/models/components/steplistresponsedto.js +3 -26
- package/models/components/steplistresponsedto.js.map +1 -1
- package/models/components/stepresponsedto.d.ts +2 -26
- package/models/components/stepresponsedto.d.ts.map +1 -1
- package/models/components/stepresponsedto.js +3 -26
- package/models/components/stepresponsedto.js.map +1 -1
- package/models/components/steptypeenum.d.ts +3 -0
- package/models/components/steptypeenum.d.ts.map +1 -1
- package/models/components/steptypeenum.js +1 -0
- package/models/components/steptypeenum.js.map +1 -1
- package/models/components/throttlecontroldto.d.ts +132 -0
- package/models/components/throttlecontroldto.d.ts.map +1 -0
- package/models/components/throttlecontroldto.js +126 -0
- package/models/components/throttlecontroldto.js.map +1 -0
- package/models/components/throttlecontrolsmetadataresponsedto.d.ts +48 -0
- package/models/components/throttlecontrolsmetadataresponsedto.d.ts.map +1 -0
- package/models/components/throttlecontrolsmetadataresponsedto.js +75 -0
- package/models/components/throttlecontrolsmetadataresponsedto.js.map +1 -0
- package/models/components/throttlestepresponsedto.d.ts +230 -0
- package/models/components/throttlestepresponsedto.d.ts.map +1 -0
- package/models/components/throttlestepresponsedto.js +196 -0
- package/models/components/throttlestepresponsedto.js.map +1 -0
- package/models/components/throttlestepupsertdto.d.ts +86 -0
- package/models/components/throttlestepupsertdto.d.ts.map +1 -0
- package/models/components/throttlestepupsertdto.js +113 -0
- package/models/components/throttlestepupsertdto.js.map +1 -0
- package/models/components/topicpayloaddto.d.ts +5 -0
- package/models/components/topicpayloaddto.d.ts.map +1 -1
- package/models/components/topicpayloaddto.js +2 -0
- package/models/components/topicpayloaddto.js.map +1 -1
- package/models/components/translationgroupdto.d.ts +3 -0
- package/models/components/translationgroupdto.d.ts.map +1 -1
- package/models/components/translationgroupdto.js +1 -0
- package/models/components/translationgroupdto.js.map +1 -1
- package/models/components/translationresponsedto.d.ts +3 -0
- package/models/components/translationresponsedto.d.ts.map +1 -1
- package/models/components/translationresponsedto.js +1 -0
- package/models/components/translationresponsedto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +4 -4
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +4 -4
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/components/triggereventtoallrequestdto.d.ts +4 -4
- package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
- package/models/components/triggereventtoallrequestdto.js +4 -4
- package/models/components/triggereventtoallrequestdto.js.map +1 -1
- package/models/components/uicomponentenum.d.ts +30 -3
- package/models/components/uicomponentenum.d.ts.map +1 -1
- package/models/components/uicomponentenum.js +10 -1
- package/models/components/uicomponentenum.js.map +1 -1
- package/models/components/uischemagroupenum.d.ts +3 -0
- package/models/components/uischemagroupenum.d.ts.map +1 -1
- package/models/components/uischemagroupenum.js +1 -0
- package/models/components/uischemagroupenum.js.map +1 -1
- package/models/components/updatelayoutdto.d.ts +5 -0
- package/models/components/updatelayoutdto.d.ts.map +1 -1
- package/models/components/updatelayoutdto.js +2 -0
- package/models/components/updatelayoutdto.js.map +1 -1
- package/models/components/uploadtranslationsrequestdto.d.ts +3 -0
- package/models/components/uploadtranslationsrequestdto.d.ts.map +1 -1
- package/models/components/uploadtranslationsrequestdto.js +1 -0
- package/models/components/uploadtranslationsrequestdto.js.map +1 -1
- package/models/components/workflowlistresponsedto.d.ts +4 -52
- package/models/components/workflowlistresponsedto.d.ts.map +1 -1
- package/models/components/workflowlistresponsedto.js +5 -51
- package/models/components/workflowlistresponsedto.js.map +1 -1
- package/models/components/workflowresponsedto.d.ts +16 -79
- package/models/components/workflowresponsedto.d.ts.map +1 -1
- package/models/components/workflowresponsedto.js +20 -78
- package/models/components/workflowresponsedto.js.map +1 -1
- package/models/errors/errordto.d.ts +4 -4
- package/models/errors/errordto.d.ts.map +1 -1
- package/models/errors/errordto.js +4 -4
- package/models/errors/errordto.js.map +1 -1
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/payloadvalidationexceptiondto.d.ts +4 -4
- package/models/errors/payloadvalidationexceptiondto.d.ts.map +1 -1
- package/models/errors/payloadvalidationexceptiondto.js +4 -4
- package/models/errors/payloadvalidationexceptiondto.js.map +1 -1
- package/models/errors/validationerrordto.d.ts +4 -4
- package/models/errors/validationerrordto.d.ts.map +1 -1
- package/models/errors/validationerrordto.js +4 -4
- package/models/errors/validationerrordto.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +5 -0
- package/models/operations/notificationscontrollerlistnotifications.d.ts.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.js +2 -0
- package/models/operations/notificationscontrollerlistnotifications.js.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationendpoint.d.ts +3 -0
- package/models/operations/translationcontrollerdeletetranslationendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationendpoint.js +1 -0
- package/models/operations/translationcontrollerdeletetranslationendpoint.js.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.d.ts +3 -0
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.js +1 -0
- package/models/operations/translationcontrollerdeletetranslationgroupendpoint.js.map +1 -1
- package/models/operations/translationcontrollergetsingletranslation.d.ts +3 -0
- package/models/operations/translationcontrollergetsingletranslation.d.ts.map +1 -1
- package/models/operations/translationcontrollergetsingletranslation.js +1 -0
- package/models/operations/translationcontrollergetsingletranslation.js.map +1 -1
- package/models/operations/translationcontrollergettranslationgroupendpoint.d.ts +3 -0
- package/models/operations/translationcontrollergettranslationgroupendpoint.d.ts.map +1 -1
- package/models/operations/translationcontrollergettranslationgroupendpoint.js +1 -0
- package/models/operations/translationcontrollergettranslationgroupendpoint.js.map +1 -1
- package/models/operations/translationcontrolleruploadtranslationfiles.d.ts +1 -1
- package/package.json +1 -1
- package/sdk/groups.d.ts +3 -3
- package/sdk/groups.js +3 -3
- package/sdk/master.d.ts +4 -4
- package/sdk/master.js +4 -4
- package/sdk/translations.d.ts +6 -6
- package/sdk/translations.js +6 -6
- package/sources/json-development.json +482 -63
- package/src/funcs/notificationsList.ts +1 -0
- package/src/funcs/translationsCreate.ts +2 -2
- package/src/funcs/translationsDelete.ts +1 -1
- package/src/funcs/translationsGroupsDelete.ts +1 -1
- package/src/funcs/translationsGroupsRetrieve.ts +2 -2
- package/src/funcs/translationsMasterImport.ts +1 -1
- package/src/funcs/translationsMasterRetrieve.ts +2 -2
- package/src/funcs/translationsMasterUpload.ts +1 -1
- package/src/funcs/translationsRetrieve.ts +2 -2
- package/src/funcs/translationsUpload.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/lib/url.ts +1 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/translationsCreate.ts +2 -2
- package/src/mcp-server/tools/translationsDelete.ts +1 -1
- package/src/mcp-server/tools/translationsGroupsDelete.ts +1 -1
- package/src/mcp-server/tools/translationsGroupsRetrieve.ts +2 -2
- package/src/mcp-server/tools/translationsMasterImport.ts +1 -1
- package/src/mcp-server/tools/translationsMasterRetrieve.ts +2 -2
- package/src/mcp-server/tools/translationsMasterUpload.ts +1 -1
- package/src/mcp-server/tools/translationsRetrieve.ts +2 -2
- package/src/mcp-server/tools/translationsUpload.ts +1 -1
- package/src/models/components/activitynotificationjobresponsedto.ts +8 -0
- package/src/models/components/activitynotificationresponsedto.ts +19 -178
- package/src/models/components/chatstepresponsedto.ts +4 -57
- package/src/models/components/chatstepupsertdto.ts +8 -1
- package/src/models/components/constraintvalidation.ts +8 -8
- package/src/models/components/createlayoutdto.ts +7 -0
- package/src/models/components/createtranslationrequestdto.ts +1 -0
- package/src/models/components/createworkflowdto.ts +30 -0
- package/src/models/components/customstepresponsedto.ts +4 -57
- package/src/models/components/customstepupsertdto.ts +8 -1
- package/src/models/components/delaycontroldto.ts +16 -8
- package/src/models/components/delaystepresponsedto.ts +20 -65
- package/src/models/components/delaystepupsertdto.ts +8 -1
- package/src/models/components/digeststepresponsedto.ts +4 -57
- package/src/models/components/digeststepupsertdto.ts +8 -1
- package/src/models/components/digesttimedconfigdto.ts +7 -0
- package/src/models/components/duplicatelayoutdto.ts +7 -0
- package/src/models/components/emailstepresponsedto.ts +4 -57
- package/src/models/components/emailstepupsertdto.ts +8 -1
- package/src/models/components/getmasterjsonresponsedto.ts +53 -0
- package/src/models/components/inappstepresponsedto.ts +4 -57
- package/src/models/components/inappstepupsertdto.ts +8 -1
- package/src/models/components/index.ts +4 -0
- package/src/models/components/layoutresponsedto.ts +15 -100
- package/src/models/components/listsubscribersresponsedto.ts +14 -0
- package/src/models/components/listtopicsresponsedto.ts +14 -0
- package/src/models/components/listtopicsubscriptionsresponsedto.ts +14 -0
- package/src/models/components/patchsubscriberpreferencesdto.ts +17 -4
- package/src/models/components/payloadvalidationerrordto.ts +8 -8
- package/src/models/components/pushstepresponsedto.ts +4 -57
- package/src/models/components/pushstepupsertdto.ts +8 -1
- package/src/models/components/smsstepresponsedto.ts +4 -57
- package/src/models/components/smsstepupsertdto.ts +8 -1
- package/src/models/components/steplistresponsedto.ts +4 -57
- package/src/models/components/stepresponsedto.ts +4 -57
- package/src/models/components/steptypeenum.ts +1 -0
- package/src/models/components/throttlecontroldto.ts +179 -0
- package/src/models/components/throttlecontrolsmetadataresponsedto.ts +100 -0
- package/src/models/components/throttlestepresponsedto.ts +381 -0
- package/src/models/components/throttlestepupsertdto.ts +183 -0
- package/src/models/components/topicpayloaddto.ts +7 -0
- package/src/models/components/translationgroupdto.ts +1 -0
- package/src/models/components/translationresponsedto.ts +1 -0
- package/src/models/components/triggereventrequestdto.ts +8 -8
- package/src/models/components/triggereventtoallrequestdto.ts +9 -9
- package/src/models/components/uicomponentenum.ts +10 -1
- package/src/models/components/uischemagroupenum.ts +1 -0
- package/src/models/components/updatelayoutdto.ts +7 -0
- package/src/models/components/uploadtranslationsrequestdto.ts +1 -0
- package/src/models/components/workflowlistresponsedto.ts +8 -141
- package/src/models/components/workflowresponsedto.ts +45 -195
- package/src/models/errors/errordto.ts +8 -8
- package/src/models/errors/index.ts +1 -0
- package/src/models/errors/payloadvalidationexceptiondto.ts +8 -8
- package/src/models/errors/validationerrordto.ts +8 -8
- package/src/models/operations/notificationscontrollerlistnotifications.ts +7 -0
- package/src/models/operations/translationcontrollerdeletetranslationendpoint.ts +1 -0
- package/src/models/operations/translationcontrollerdeletetranslationgroupendpoint.ts +1 -0
- package/src/models/operations/translationcontrollergetsingletranslation.ts +1 -0
- package/src/models/operations/translationcontrollergettranslationgroupendpoint.ts +1 -0
- package/src/models/operations/translationcontrolleruploadtranslationfiles.ts +1 -1
- package/src/sdk/groups.ts +3 -3
- package/src/sdk/master.ts +4 -4
- package/src/sdk/translations.ts +6 -6
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
* Create
|
|
29
|
+
* Create a translation
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Create
|
|
32
|
+
* Create a translation for a specific workflow and locale, if the translation already exists, it will be updated
|
|
33
33
|
*/
|
|
34
34
|
export function translationsCreate(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Retrieve a translation group
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Retrieves a single translation group by
|
|
32
|
+
* Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId)
|
|
33
33
|
*/
|
|
34
34
|
export function translationsGroupsRetrieve(
|
|
35
35
|
client: NovuCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Import master translations JSON
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Import translations from master JSON format for a specific locale
|
|
32
|
+
* Import translations for multiple workflows from master JSON format for a specific locale
|
|
33
33
|
*/
|
|
34
34
|
export function translationsMasterImport(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Retrieve master translations JSON
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Retrieve all translations for a locale in master JSON format organized by resourceId (workflowId)
|
|
33
33
|
*/
|
|
34
34
|
export function translationsMasterRetrieve(
|
|
35
35
|
client: NovuCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Upload master translations JSON file
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Upload a master JSON file containing translations. Locale is automatically detected from filename (e.g., en_US.json)
|
|
32
|
+
* Upload a master JSON file containing translations for multiple workflows. Locale is automatically detected from filename (e.g., en_US.json)
|
|
33
33
|
*/
|
|
34
34
|
export function translationsMasterUpload(
|
|
35
35
|
client: NovuCore,
|
|
@@ -26,10 +26,10 @@ import { APICall, APIPromise } from "../types/async.js";
|
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Retrieve a translation
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
*
|
|
32
|
+
* Retrieve a specific translation by resource type, resource ID and locale
|
|
33
33
|
*/
|
|
34
34
|
export function translationsRetrieve(
|
|
35
35
|
client: NovuCore,
|
|
@@ -29,7 +29,7 @@ import { Result } from "../types/fp.js";
|
|
|
29
29
|
* Upload translation files
|
|
30
30
|
*
|
|
31
31
|
* @remarks
|
|
32
|
-
* Upload one or more JSON translation files for a specific workflow.
|
|
32
|
+
* Upload one or more JSON translation files for a specific workflow. Files name must match the locale, e.g. en_US.json
|
|
33
33
|
*/
|
|
34
34
|
export function translationsUpload(
|
|
35
35
|
client: NovuCore,
|
package/src/lib/config.ts
CHANGED
|
@@ -59,7 +59,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
61
|
openapiDocVersion: "3.9.0",
|
|
62
|
-
sdkVersion: "1.
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 1.
|
|
62
|
+
sdkVersion: "1.7.1",
|
|
63
|
+
genVersion: "2.721.3",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 1.7.1 2.721.3 3.9.0 @novu/api",
|
|
65
65
|
} as const;
|
package/src/lib/url.ts
CHANGED
|
@@ -10,7 +10,7 @@ export function pathToFunc(
|
|
|
10
10
|
pathPattern: string,
|
|
11
11
|
options?: { charEncoding?: "percent" | "none" },
|
|
12
12
|
): (params?: Params) => string {
|
|
13
|
-
const paramRE = /\{([a-zA-Z0-9_]
|
|
13
|
+
const paramRE = /\{([a-zA-Z0-9_][a-zA-Z0-9_-]*?)\}/g;
|
|
14
14
|
|
|
15
15
|
return function buildURLPath(params: Record<string, unknown> = {}): string {
|
|
16
16
|
return pathPattern.replace(paramRE, function (_, placeholder) {
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -15,9 +15,9 @@ const args = {
|
|
|
15
15
|
|
|
16
16
|
export const tool$translationsCreate: ToolDefinition<typeof args> = {
|
|
17
17
|
name: "translations-create",
|
|
18
|
-
description: `Create
|
|
18
|
+
description: `Create a translation
|
|
19
19
|
|
|
20
|
-
Create
|
|
20
|
+
Create a translation for a specific workflow and locale, if the translation already exists, it will be updated`,
|
|
21
21
|
args,
|
|
22
22
|
tool: async (client, args, ctx) => {
|
|
23
23
|
const [result, apiCall] = await translationsCreate(
|
|
@@ -14,7 +14,7 @@ const args = {
|
|
|
14
14
|
|
|
15
15
|
export const tool$translationsDelete: ToolDefinition<typeof args> = {
|
|
16
16
|
name: "translations-delete",
|
|
17
|
-
description: `Delete translation
|
|
17
|
+
description: `Delete a translation
|
|
18
18
|
|
|
19
19
|
Delete a specific translation by resource type, resource ID and locale`,
|
|
20
20
|
args,
|
|
@@ -15,7 +15,7 @@ const args = {
|
|
|
15
15
|
|
|
16
16
|
export const tool$translationsGroupsDelete: ToolDefinition<typeof args> = {
|
|
17
17
|
name: "translations-groups-delete",
|
|
18
|
-
description: `Delete translation group
|
|
18
|
+
description: `Delete a translation group
|
|
19
19
|
|
|
20
20
|
Delete an entire translation group and all its translations`,
|
|
21
21
|
args,
|
|
@@ -17,9 +17,9 @@ const args = {
|
|
|
17
17
|
|
|
18
18
|
export const tool$translationsGroupsRetrieve: ToolDefinition<typeof args> = {
|
|
19
19
|
name: "translations-groups-retrieve",
|
|
20
|
-
description: `
|
|
20
|
+
description: `Retrieve a translation group
|
|
21
21
|
|
|
22
|
-
Retrieves a single translation group by
|
|
22
|
+
Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId)`,
|
|
23
23
|
args,
|
|
24
24
|
tool: async (client, args, ctx) => {
|
|
25
25
|
const [result, apiCall] = await translationsGroupsRetrieve(
|
|
@@ -17,7 +17,7 @@ export const tool$translationsMasterImport: ToolDefinition<typeof args> = {
|
|
|
17
17
|
name: "translations-master-import",
|
|
18
18
|
description: `Import master translations JSON
|
|
19
19
|
|
|
20
|
-
Import translations from master JSON format for a specific locale`,
|
|
20
|
+
Import translations for multiple workflows from master JSON format for a specific locale`,
|
|
21
21
|
args,
|
|
22
22
|
tool: async (client, args, ctx) => {
|
|
23
23
|
const [result, apiCall] = await translationsMasterImport(
|
|
@@ -13,9 +13,9 @@ const args = {
|
|
|
13
13
|
|
|
14
14
|
export const tool$translationsMasterRetrieve: ToolDefinition<typeof args> = {
|
|
15
15
|
name: "translations-master-retrieve",
|
|
16
|
-
description: `
|
|
16
|
+
description: `Retrieve master translations JSON
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Retrieve all translations for a locale in master JSON format organized by resourceId (workflowId)`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await translationsMasterRetrieve(
|
|
@@ -14,7 +14,7 @@ export const tool$translationsMasterUpload: ToolDefinition<typeof args> = {
|
|
|
14
14
|
name: "translations-master-upload",
|
|
15
15
|
description: `Upload master translations JSON file
|
|
16
16
|
|
|
17
|
-
Upload a master JSON file containing translations. Locale is automatically detected from filename (e.g., en_US.json)`,
|
|
17
|
+
Upload a master JSON file containing translations for multiple workflows. Locale is automatically detected from filename (e.g., en_US.json)`,
|
|
18
18
|
args,
|
|
19
19
|
tool: async (client, args, ctx) => {
|
|
20
20
|
const [result, apiCall] = await translationsMasterUpload(
|
|
@@ -13,9 +13,9 @@ const args = {
|
|
|
13
13
|
|
|
14
14
|
export const tool$translationsRetrieve: ToolDefinition<typeof args> = {
|
|
15
15
|
name: "translations-retrieve",
|
|
16
|
-
description: `
|
|
16
|
+
description: `Retrieve a translation
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Retrieve a specific translation by resource type, resource ID and locale`,
|
|
19
19
|
args,
|
|
20
20
|
tool: async (client, args, ctx) => {
|
|
21
21
|
const [result, apiCall] = await translationsRetrieve(
|
|
@@ -17,7 +17,7 @@ export const tool$translationsUpload: ToolDefinition<typeof args> = {
|
|
|
17
17
|
name: "translations-upload",
|
|
18
18
|
description: `Upload translation files
|
|
19
19
|
|
|
20
|
-
Upload one or more JSON translation files for a specific workflow.
|
|
20
|
+
Upload one or more JSON translation files for a specific workflow. Files name must match the locale, e.g. en_US.json`,
|
|
21
21
|
args,
|
|
22
22
|
tool: async (client, args, ctx) => {
|
|
23
23
|
const [result, apiCall] = await translationsUpload(
|
|
@@ -44,6 +44,7 @@ export const ActivityNotificationJobResponseDtoType = {
|
|
|
44
44
|
Digest: "digest",
|
|
45
45
|
Trigger: "trigger",
|
|
46
46
|
Delay: "delay",
|
|
47
|
+
Throttle: "throttle",
|
|
47
48
|
Custom: "custom",
|
|
48
49
|
} as const;
|
|
49
50
|
/**
|
|
@@ -99,6 +100,10 @@ export type ActivityNotificationJobResponseDto = {
|
|
|
99
100
|
* Updated time of the notification
|
|
100
101
|
*/
|
|
101
102
|
updatedAt?: string | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* The number of times the digest/delay job has been extended to align with the subscribers schedule
|
|
105
|
+
*/
|
|
106
|
+
scheduleExtensionsCount?: number | undefined;
|
|
102
107
|
};
|
|
103
108
|
|
|
104
109
|
/** @internal */
|
|
@@ -204,6 +209,7 @@ export const ActivityNotificationJobResponseDto$inboundSchema: z.ZodType<
|
|
|
204
209
|
providerId: ProvidersIdEnum$inboundSchema,
|
|
205
210
|
status: z.string(),
|
|
206
211
|
updatedAt: z.string().optional(),
|
|
212
|
+
scheduleExtensionsCount: z.number().optional(),
|
|
207
213
|
}).transform((v) => {
|
|
208
214
|
return remap$(v, {
|
|
209
215
|
"_id": "id",
|
|
@@ -224,6 +230,7 @@ export type ActivityNotificationJobResponseDto$Outbound = {
|
|
|
224
230
|
providerId: string;
|
|
225
231
|
status: string;
|
|
226
232
|
updatedAt?: string | undefined;
|
|
233
|
+
scheduleExtensionsCount?: number | undefined;
|
|
227
234
|
};
|
|
228
235
|
|
|
229
236
|
/** @internal */
|
|
@@ -246,6 +253,7 @@ export const ActivityNotificationJobResponseDto$outboundSchema: z.ZodType<
|
|
|
246
253
|
providerId: ProvidersIdEnum$outboundSchema,
|
|
247
254
|
status: z.string(),
|
|
248
255
|
updatedAt: z.string().optional(),
|
|
256
|
+
scheduleExtensionsCount: z.number().optional(),
|
|
249
257
|
}).transform((v) => {
|
|
250
258
|
return remap$(v, {
|
|
251
259
|
id: "_id",
|
|
@@ -42,21 +42,6 @@ import {
|
|
|
42
42
|
StepTypeEnum$outboundSchema,
|
|
43
43
|
} from "./steptypeenum.js";
|
|
44
44
|
|
|
45
|
-
/**
|
|
46
|
-
* Payload of the notification
|
|
47
|
-
*/
|
|
48
|
-
export type ActivityNotificationResponseDtoPayload = {};
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Controls associated with the notification
|
|
52
|
-
*/
|
|
53
|
-
export type Controls = {};
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* To field for subscriber definition
|
|
57
|
-
*/
|
|
58
|
-
export type ActivityNotificationResponseDtoTo = {};
|
|
59
|
-
|
|
60
45
|
export type ActivityNotificationResponseDto = {
|
|
61
46
|
/**
|
|
62
47
|
* Unique identifier of the notification
|
|
@@ -110,7 +95,7 @@ export type ActivityNotificationResponseDto = {
|
|
|
110
95
|
/**
|
|
111
96
|
* Payload of the notification
|
|
112
97
|
*/
|
|
113
|
-
payload?:
|
|
98
|
+
payload?: { [k: string]: any } | undefined;
|
|
114
99
|
/**
|
|
115
100
|
* Tags associated with the notification
|
|
116
101
|
*/
|
|
@@ -118,11 +103,11 @@ export type ActivityNotificationResponseDto = {
|
|
|
118
103
|
/**
|
|
119
104
|
* Controls associated with the notification
|
|
120
105
|
*/
|
|
121
|
-
controls?:
|
|
106
|
+
controls?: { [k: string]: any } | undefined;
|
|
122
107
|
/**
|
|
123
108
|
* To field for subscriber definition
|
|
124
109
|
*/
|
|
125
|
-
to?:
|
|
110
|
+
to?: { [k: string]: any } | undefined;
|
|
126
111
|
/**
|
|
127
112
|
* Topics of the notification
|
|
128
113
|
*/
|
|
@@ -135,157 +120,12 @@ export type ActivityNotificationResponseDto = {
|
|
|
135
120
|
* Criticality of the notification
|
|
136
121
|
*/
|
|
137
122
|
critical?: boolean | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* Contexts (keys) in which the notification was sent
|
|
125
|
+
*/
|
|
126
|
+
contextKeys?: Array<string> | undefined;
|
|
138
127
|
};
|
|
139
128
|
|
|
140
|
-
/** @internal */
|
|
141
|
-
export const ActivityNotificationResponseDtoPayload$inboundSchema: z.ZodType<
|
|
142
|
-
ActivityNotificationResponseDtoPayload,
|
|
143
|
-
z.ZodTypeDef,
|
|
144
|
-
unknown
|
|
145
|
-
> = z.object({});
|
|
146
|
-
|
|
147
|
-
/** @internal */
|
|
148
|
-
export type ActivityNotificationResponseDtoPayload$Outbound = {};
|
|
149
|
-
|
|
150
|
-
/** @internal */
|
|
151
|
-
export const ActivityNotificationResponseDtoPayload$outboundSchema: z.ZodType<
|
|
152
|
-
ActivityNotificationResponseDtoPayload$Outbound,
|
|
153
|
-
z.ZodTypeDef,
|
|
154
|
-
ActivityNotificationResponseDtoPayload
|
|
155
|
-
> = z.object({});
|
|
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 ActivityNotificationResponseDtoPayload$ {
|
|
162
|
-
/** @deprecated use `ActivityNotificationResponseDtoPayload$inboundSchema` instead. */
|
|
163
|
-
export const inboundSchema =
|
|
164
|
-
ActivityNotificationResponseDtoPayload$inboundSchema;
|
|
165
|
-
/** @deprecated use `ActivityNotificationResponseDtoPayload$outboundSchema` instead. */
|
|
166
|
-
export const outboundSchema =
|
|
167
|
-
ActivityNotificationResponseDtoPayload$outboundSchema;
|
|
168
|
-
/** @deprecated use `ActivityNotificationResponseDtoPayload$Outbound` instead. */
|
|
169
|
-
export type Outbound = ActivityNotificationResponseDtoPayload$Outbound;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
export function activityNotificationResponseDtoPayloadToJSON(
|
|
173
|
-
activityNotificationResponseDtoPayload:
|
|
174
|
-
ActivityNotificationResponseDtoPayload,
|
|
175
|
-
): string {
|
|
176
|
-
return JSON.stringify(
|
|
177
|
-
ActivityNotificationResponseDtoPayload$outboundSchema.parse(
|
|
178
|
-
activityNotificationResponseDtoPayload,
|
|
179
|
-
),
|
|
180
|
-
);
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
export function activityNotificationResponseDtoPayloadFromJSON(
|
|
184
|
-
jsonString: string,
|
|
185
|
-
): SafeParseResult<ActivityNotificationResponseDtoPayload, SDKValidationError> {
|
|
186
|
-
return safeParse(
|
|
187
|
-
jsonString,
|
|
188
|
-
(x) =>
|
|
189
|
-
ActivityNotificationResponseDtoPayload$inboundSchema.parse(JSON.parse(x)),
|
|
190
|
-
`Failed to parse 'ActivityNotificationResponseDtoPayload' from JSON`,
|
|
191
|
-
);
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/** @internal */
|
|
195
|
-
export const Controls$inboundSchema: z.ZodType<
|
|
196
|
-
Controls,
|
|
197
|
-
z.ZodTypeDef,
|
|
198
|
-
unknown
|
|
199
|
-
> = z.object({});
|
|
200
|
-
|
|
201
|
-
/** @internal */
|
|
202
|
-
export type Controls$Outbound = {};
|
|
203
|
-
|
|
204
|
-
/** @internal */
|
|
205
|
-
export const Controls$outboundSchema: z.ZodType<
|
|
206
|
-
Controls$Outbound,
|
|
207
|
-
z.ZodTypeDef,
|
|
208
|
-
Controls
|
|
209
|
-
> = z.object({});
|
|
210
|
-
|
|
211
|
-
/**
|
|
212
|
-
* @internal
|
|
213
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
214
|
-
*/
|
|
215
|
-
export namespace Controls$ {
|
|
216
|
-
/** @deprecated use `Controls$inboundSchema` instead. */
|
|
217
|
-
export const inboundSchema = Controls$inboundSchema;
|
|
218
|
-
/** @deprecated use `Controls$outboundSchema` instead. */
|
|
219
|
-
export const outboundSchema = Controls$outboundSchema;
|
|
220
|
-
/** @deprecated use `Controls$Outbound` instead. */
|
|
221
|
-
export type Outbound = Controls$Outbound;
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export function controlsToJSON(controls: Controls): string {
|
|
225
|
-
return JSON.stringify(Controls$outboundSchema.parse(controls));
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
export function controlsFromJSON(
|
|
229
|
-
jsonString: string,
|
|
230
|
-
): SafeParseResult<Controls, SDKValidationError> {
|
|
231
|
-
return safeParse(
|
|
232
|
-
jsonString,
|
|
233
|
-
(x) => Controls$inboundSchema.parse(JSON.parse(x)),
|
|
234
|
-
`Failed to parse 'Controls' from JSON`,
|
|
235
|
-
);
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
/** @internal */
|
|
239
|
-
export const ActivityNotificationResponseDtoTo$inboundSchema: z.ZodType<
|
|
240
|
-
ActivityNotificationResponseDtoTo,
|
|
241
|
-
z.ZodTypeDef,
|
|
242
|
-
unknown
|
|
243
|
-
> = z.object({});
|
|
244
|
-
|
|
245
|
-
/** @internal */
|
|
246
|
-
export type ActivityNotificationResponseDtoTo$Outbound = {};
|
|
247
|
-
|
|
248
|
-
/** @internal */
|
|
249
|
-
export const ActivityNotificationResponseDtoTo$outboundSchema: z.ZodType<
|
|
250
|
-
ActivityNotificationResponseDtoTo$Outbound,
|
|
251
|
-
z.ZodTypeDef,
|
|
252
|
-
ActivityNotificationResponseDtoTo
|
|
253
|
-
> = z.object({});
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* @internal
|
|
257
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
258
|
-
*/
|
|
259
|
-
export namespace ActivityNotificationResponseDtoTo$ {
|
|
260
|
-
/** @deprecated use `ActivityNotificationResponseDtoTo$inboundSchema` instead. */
|
|
261
|
-
export const inboundSchema = ActivityNotificationResponseDtoTo$inboundSchema;
|
|
262
|
-
/** @deprecated use `ActivityNotificationResponseDtoTo$outboundSchema` instead. */
|
|
263
|
-
export const outboundSchema =
|
|
264
|
-
ActivityNotificationResponseDtoTo$outboundSchema;
|
|
265
|
-
/** @deprecated use `ActivityNotificationResponseDtoTo$Outbound` instead. */
|
|
266
|
-
export type Outbound = ActivityNotificationResponseDtoTo$Outbound;
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
export function activityNotificationResponseDtoToToJSON(
|
|
270
|
-
activityNotificationResponseDtoTo: ActivityNotificationResponseDtoTo,
|
|
271
|
-
): string {
|
|
272
|
-
return JSON.stringify(
|
|
273
|
-
ActivityNotificationResponseDtoTo$outboundSchema.parse(
|
|
274
|
-
activityNotificationResponseDtoTo,
|
|
275
|
-
),
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export function activityNotificationResponseDtoToFromJSON(
|
|
280
|
-
jsonString: string,
|
|
281
|
-
): SafeParseResult<ActivityNotificationResponseDtoTo, SDKValidationError> {
|
|
282
|
-
return safeParse(
|
|
283
|
-
jsonString,
|
|
284
|
-
(x) => ActivityNotificationResponseDtoTo$inboundSchema.parse(JSON.parse(x)),
|
|
285
|
-
`Failed to parse 'ActivityNotificationResponseDtoTo' from JSON`,
|
|
286
|
-
);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
129
|
/** @internal */
|
|
290
130
|
export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
|
|
291
131
|
ActivityNotificationResponseDto,
|
|
@@ -306,14 +146,14 @@ export const ActivityNotificationResponseDto$inboundSchema: z.ZodType<
|
|
|
306
146
|
.optional(),
|
|
307
147
|
template: ActivityNotificationTemplateResponseDto$inboundSchema.optional(),
|
|
308
148
|
jobs: z.array(ActivityNotificationJobResponseDto$inboundSchema).optional(),
|
|
309
|
-
payload: z.
|
|
310
|
-
.optional(),
|
|
149
|
+
payload: z.record(z.any()).optional(),
|
|
311
150
|
tags: z.array(z.string()).optional(),
|
|
312
|
-
controls: z.
|
|
313
|
-
to: z.
|
|
151
|
+
controls: z.record(z.any()).optional(),
|
|
152
|
+
to: z.record(z.any()).optional(),
|
|
314
153
|
topics: z.array(ActivityTopicDto$inboundSchema).optional(),
|
|
315
154
|
severity: SeverityLevelEnum$inboundSchema.optional(),
|
|
316
155
|
critical: z.boolean().optional(),
|
|
156
|
+
contextKeys: z.array(z.string()).optional(),
|
|
317
157
|
}).transform((v) => {
|
|
318
158
|
return remap$(v, {
|
|
319
159
|
"_id": "id",
|
|
@@ -340,13 +180,14 @@ export type ActivityNotificationResponseDto$Outbound = {
|
|
|
340
180
|
subscriber?: ActivityNotificationSubscriberResponseDto$Outbound | undefined;
|
|
341
181
|
template?: ActivityNotificationTemplateResponseDto$Outbound | undefined;
|
|
342
182
|
jobs?: Array<ActivityNotificationJobResponseDto$Outbound> | undefined;
|
|
343
|
-
payload?:
|
|
183
|
+
payload?: { [k: string]: any } | undefined;
|
|
344
184
|
tags?: Array<string> | undefined;
|
|
345
|
-
controls?:
|
|
346
|
-
to?:
|
|
185
|
+
controls?: { [k: string]: any } | undefined;
|
|
186
|
+
to?: { [k: string]: any } | undefined;
|
|
347
187
|
topics?: Array<ActivityTopicDto$Outbound> | undefined;
|
|
348
188
|
severity?: string | undefined;
|
|
349
189
|
critical?: boolean | undefined;
|
|
190
|
+
contextKeys?: Array<string> | undefined;
|
|
350
191
|
};
|
|
351
192
|
|
|
352
193
|
/** @internal */
|
|
@@ -369,14 +210,14 @@ export const ActivityNotificationResponseDto$outboundSchema: z.ZodType<
|
|
|
369
210
|
.optional(),
|
|
370
211
|
template: ActivityNotificationTemplateResponseDto$outboundSchema.optional(),
|
|
371
212
|
jobs: z.array(ActivityNotificationJobResponseDto$outboundSchema).optional(),
|
|
372
|
-
payload: z.
|
|
373
|
-
.optional(),
|
|
213
|
+
payload: z.record(z.any()).optional(),
|
|
374
214
|
tags: z.array(z.string()).optional(),
|
|
375
|
-
controls: z.
|
|
376
|
-
to: z.
|
|
215
|
+
controls: z.record(z.any()).optional(),
|
|
216
|
+
to: z.record(z.any()).optional(),
|
|
377
217
|
topics: z.array(ActivityTopicDto$outboundSchema).optional(),
|
|
378
218
|
severity: SeverityLevelEnum$outboundSchema.optional(),
|
|
379
219
|
critical: z.boolean().optional(),
|
|
220
|
+
contextKeys: z.array(z.string()).optional(),
|
|
380
221
|
}).transform((v) => {
|
|
381
222
|
return remap$(v, {
|
|
382
223
|
id: "_id",
|
|
@@ -48,11 +48,6 @@ export type ChatStepResponseDtoControlValues = {
|
|
|
48
48
|
additionalProperties?: { [k: string]: any };
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
/**
|
|
52
|
-
* Slug of the step
|
|
53
|
-
*/
|
|
54
|
-
export type ChatStepResponseDtoSlug = {};
|
|
55
|
-
|
|
56
51
|
export type ChatStepResponseDto = {
|
|
57
52
|
/**
|
|
58
53
|
* Controls metadata for the chat step
|
|
@@ -81,7 +76,7 @@ export type ChatStepResponseDto = {
|
|
|
81
76
|
/**
|
|
82
77
|
* Slug of the step
|
|
83
78
|
*/
|
|
84
|
-
slug:
|
|
79
|
+
slug: string;
|
|
85
80
|
/**
|
|
86
81
|
* Type of the step
|
|
87
82
|
*/
|
|
@@ -176,54 +171,6 @@ export function chatStepResponseDtoControlValuesFromJSON(
|
|
|
176
171
|
);
|
|
177
172
|
}
|
|
178
173
|
|
|
179
|
-
/** @internal */
|
|
180
|
-
export const ChatStepResponseDtoSlug$inboundSchema: z.ZodType<
|
|
181
|
-
ChatStepResponseDtoSlug,
|
|
182
|
-
z.ZodTypeDef,
|
|
183
|
-
unknown
|
|
184
|
-
> = z.object({});
|
|
185
|
-
|
|
186
|
-
/** @internal */
|
|
187
|
-
export type ChatStepResponseDtoSlug$Outbound = {};
|
|
188
|
-
|
|
189
|
-
/** @internal */
|
|
190
|
-
export const ChatStepResponseDtoSlug$outboundSchema: z.ZodType<
|
|
191
|
-
ChatStepResponseDtoSlug$Outbound,
|
|
192
|
-
z.ZodTypeDef,
|
|
193
|
-
ChatStepResponseDtoSlug
|
|
194
|
-
> = z.object({});
|
|
195
|
-
|
|
196
|
-
/**
|
|
197
|
-
* @internal
|
|
198
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
199
|
-
*/
|
|
200
|
-
export namespace ChatStepResponseDtoSlug$ {
|
|
201
|
-
/** @deprecated use `ChatStepResponseDtoSlug$inboundSchema` instead. */
|
|
202
|
-
export const inboundSchema = ChatStepResponseDtoSlug$inboundSchema;
|
|
203
|
-
/** @deprecated use `ChatStepResponseDtoSlug$outboundSchema` instead. */
|
|
204
|
-
export const outboundSchema = ChatStepResponseDtoSlug$outboundSchema;
|
|
205
|
-
/** @deprecated use `ChatStepResponseDtoSlug$Outbound` instead. */
|
|
206
|
-
export type Outbound = ChatStepResponseDtoSlug$Outbound;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
export function chatStepResponseDtoSlugToJSON(
|
|
210
|
-
chatStepResponseDtoSlug: ChatStepResponseDtoSlug,
|
|
211
|
-
): string {
|
|
212
|
-
return JSON.stringify(
|
|
213
|
-
ChatStepResponseDtoSlug$outboundSchema.parse(chatStepResponseDtoSlug),
|
|
214
|
-
);
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
export function chatStepResponseDtoSlugFromJSON(
|
|
218
|
-
jsonString: string,
|
|
219
|
-
): SafeParseResult<ChatStepResponseDtoSlug, SDKValidationError> {
|
|
220
|
-
return safeParse(
|
|
221
|
-
jsonString,
|
|
222
|
-
(x) => ChatStepResponseDtoSlug$inboundSchema.parse(JSON.parse(x)),
|
|
223
|
-
`Failed to parse 'ChatStepResponseDtoSlug' from JSON`,
|
|
224
|
-
);
|
|
225
|
-
}
|
|
226
|
-
|
|
227
174
|
/** @internal */
|
|
228
175
|
export const ChatStepResponseDto$inboundSchema: z.ZodType<
|
|
229
176
|
ChatStepResponseDto,
|
|
@@ -237,7 +184,7 @@ export const ChatStepResponseDto$inboundSchema: z.ZodType<
|
|
|
237
184
|
stepId: z.string(),
|
|
238
185
|
_id: z.string(),
|
|
239
186
|
name: z.string(),
|
|
240
|
-
slug: z.
|
|
187
|
+
slug: z.string(),
|
|
241
188
|
type: StepTypeEnum$inboundSchema,
|
|
242
189
|
origin: ResourceOriginEnum$inboundSchema,
|
|
243
190
|
workflowId: z.string(),
|
|
@@ -257,7 +204,7 @@ export type ChatStepResponseDto$Outbound = {
|
|
|
257
204
|
stepId: string;
|
|
258
205
|
_id: string;
|
|
259
206
|
name: string;
|
|
260
|
-
slug:
|
|
207
|
+
slug: string;
|
|
261
208
|
type: string;
|
|
262
209
|
origin: string;
|
|
263
210
|
workflowId: string;
|
|
@@ -278,7 +225,7 @@ export const ChatStepResponseDto$outboundSchema: z.ZodType<
|
|
|
278
225
|
stepId: z.string(),
|
|
279
226
|
id: z.string(),
|
|
280
227
|
name: z.string(),
|
|
281
|
-
slug: z.
|
|
228
|
+
slug: z.string(),
|
|
282
229
|
type: StepTypeEnum$outboundSchema,
|
|
283
230
|
origin: ResourceOriginEnum$outboundSchema,
|
|
284
231
|
workflowId: z.string(),
|