@novu/api 3.19.1 → 3.20.0
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 +2 -2
- package/funcs/agentsIntegrationsCreate.d.ts +1 -2
- package/funcs/agentsIntegrationsCreate.d.ts.map +1 -1
- package/funcs/agentsIntegrationsCreate.js +5 -9
- package/funcs/agentsIntegrationsCreate.js.map +1 -1
- package/funcs/agentsSendReply.d.ts +5 -4
- package/funcs/agentsSendReply.d.ts.map +1 -1
- package/funcs/agentsSendReply.js +5 -4
- package/funcs/agentsSendReply.js.map +1 -1
- package/funcs/contextsList.js +1 -0
- package/funcs/contextsList.js.map +1 -1
- package/funcs/environmentsDiff.d.ts +1 -1
- package/funcs/environmentsDiff.js +1 -1
- package/funcs/environmentsPublish.d.ts +1 -1
- package/funcs/environmentsPublish.js +1 -1
- package/funcs/layoutsDelete.js +1 -1
- package/funcs/layoutsDelete.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +1 -0
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsList.js +1 -0
- package/funcs/subscribersNotificationsList.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +1 -0
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/models/components/activitynotificationexecutiondetailresponsedto.d.ts +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +4 -9
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +2 -8
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/activitynotificationresponsedto.d.ts +4 -1
- package/models/components/activitynotificationresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationresponsedto.js.map +1 -1
- package/models/components/activitynotificationstepresponsedto.d.ts +3 -8
- package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationstepresponsedto.js +2 -8
- package/models/components/activitynotificationstepresponsedto.js.map +1 -1
- package/models/components/activitynotificationsubscriberresponsedto.d.ts +4 -4
- package/models/components/activitynotificationsubscriberresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationsubscriberresponsedto.js +4 -4
- package/models/components/activitynotificationsubscriberresponsedto.js.map +1 -1
- package/models/components/activitynotificationtemplateresponsedto.d.ts +1 -1
- package/models/components/agentbehaviordto.d.ts +23 -14
- package/models/components/agentbehaviordto.d.ts.map +1 -1
- package/models/components/agentbehaviordto.js +18 -16
- package/models/components/agentbehaviordto.js.map +1 -1
- package/models/components/agentintegrationresponsedto.d.ts +4 -0
- package/models/components/agentintegrationresponsedto.d.ts.map +1 -1
- package/models/components/agentintegrationresponsedto.js +1 -0
- package/models/components/agentintegrationresponsedto.js.map +1 -1
- package/models/components/agentintegrationresponseintegrationdto.d.ts +0 -3
- package/models/components/agentintegrationresponseintegrationdto.d.ts.map +1 -1
- package/models/components/agentintegrationresponseintegrationdto.js.map +1 -1
- package/models/components/agentintegrationsummarydto.d.ts +0 -3
- package/models/components/agentintegrationsummarydto.d.ts.map +1 -1
- package/models/components/agentintegrationsummarydto.js.map +1 -1
- package/models/components/buttontypeenum.d.ts +2 -2
- package/models/components/buttontypeenum.js +1 -1
- package/models/components/channeltypeenum.d.ts +0 -6
- package/models/components/channeltypeenum.d.ts.map +1 -1
- package/models/components/channeltypeenum.js +0 -3
- package/models/components/channeltypeenum.js.map +1 -1
- package/models/components/chatcontroldto.d.ts +0 -7
- package/models/components/chatcontroldto.d.ts.map +1 -1
- package/models/components/chatcontroldto.js +2 -15
- package/models/components/chatcontroldto.js.map +1 -1
- package/models/components/chatcontrolsmetadataresponsedto.d.ts +40 -2
- package/models/components/chatcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/chatcontrolsmetadataresponsedto.js +24 -3
- package/models/components/chatcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/chatorpushproviderenum.d.ts +2 -0
- package/models/components/chatorpushproviderenum.d.ts.map +1 -1
- package/models/components/chatorpushproviderenum.js +2 -0
- package/models/components/chatorpushproviderenum.js.map +1 -1
- package/models/components/chatstepresponsedto.d.ts +12 -2
- package/models/components/chatstepresponsedto.d.ts.map +1 -1
- package/models/components/chatstepresponsedto.js +2 -0
- package/models/components/chatstepresponsedto.js.map +1 -1
- package/models/components/chatstepupsertdto.d.ts +18 -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/controlsmetadatadto.d.ts +6 -0
- package/models/components/controlsmetadatadto.d.ts.map +1 -1
- package/models/components/controlsmetadatadto.js +1 -0
- package/models/components/controlsmetadatadto.js.map +1 -1
- package/models/components/createintegrationrequestdto.d.ts +18 -12
- package/models/components/createintegrationrequestdto.d.ts.map +1 -1
- package/models/components/createintegrationrequestdto.js +3 -8
- package/models/components/createintegrationrequestdto.js.map +1 -1
- package/models/components/createworkflowdto.d.ts +1 -1
- package/models/components/credentialsdto.d.ts +19 -0
- package/models/components/credentialsdto.d.ts.map +1 -1
- package/models/components/credentialsdto.js +14 -1
- package/models/components/credentialsdto.js.map +1 -1
- package/models/components/customcontroldto.d.ts +0 -5
- package/models/components/customcontroldto.d.ts.map +1 -1
- package/models/components/customcontroldto.js +1 -10
- package/models/components/customcontroldto.js.map +1 -1
- package/models/components/customcontrolsmetadataresponsedto.d.ts +18 -2
- package/models/components/customcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/customcontrolsmetadataresponsedto.js +11 -3
- package/models/components/customcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/customstepresponsedto.d.ts +12 -2
- package/models/components/customstepresponsedto.d.ts.map +1 -1
- package/models/components/customstepresponsedto.js +2 -0
- package/models/components/customstepresponsedto.js.map +1 -1
- package/models/components/customstepupsertdto.d.ts +1 -1
- package/models/components/delaycontroldto.d.ts +0 -9
- package/models/components/delaycontroldto.d.ts.map +1 -1
- package/models/components/delaycontroldto.js +3 -20
- package/models/components/delaycontroldto.js.map +1 -1
- package/models/components/delaycontrolsmetadataresponsedto.d.ts +65 -2
- package/models/components/delaycontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/delaycontrolsmetadataresponsedto.js +37 -3
- package/models/components/delaycontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/delaystepresponsedto.d.ts +12 -2
- package/models/components/delaystepresponsedto.d.ts.map +1 -1
- package/models/components/delaystepresponsedto.js +2 -0
- package/models/components/delaystepresponsedto.js.map +1 -1
- package/models/components/delaystepupsertdto.d.ts +1 -1
- package/models/components/diffenvironmentrequestdto.d.ts +1 -1
- package/models/components/digestcontroldto.d.ts +0 -9
- package/models/components/digestcontroldto.d.ts.map +1 -1
- package/models/components/digestcontroldto.js +3 -22
- package/models/components/digestcontroldto.js.map +1 -1
- package/models/components/digestcontrolsmetadataresponsedto.d.ts +74 -2
- package/models/components/digestcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/digestcontrolsmetadataresponsedto.js +40 -3
- package/models/components/digestcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/digeststepresponsedto.d.ts +12 -2
- package/models/components/digeststepresponsedto.d.ts.map +1 -1
- package/models/components/digeststepresponsedto.js +2 -0
- package/models/components/digeststepresponsedto.js.map +1 -1
- package/models/components/digeststepupsertdto.d.ts +1 -1
- package/models/components/emailcontroldto.d.ts +0 -7
- package/models/components/emailcontroldto.d.ts.map +1 -1
- package/models/components/emailcontroldto.js +2 -22
- package/models/components/emailcontroldto.js.map +1 -1
- package/models/components/emailcontrolsdto.d.ts +0 -7
- package/models/components/emailcontrolsdto.d.ts.map +1 -1
- package/models/components/emailcontrolsdto.js +2 -14
- package/models/components/emailcontrolsdto.js.map +1 -1
- package/models/components/emailcontrolsmetadataresponsedto.d.ts +69 -2
- package/models/components/emailcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/emailcontrolsmetadataresponsedto.js +32 -3
- package/models/components/emailcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/emailstepresponsedto.d.ts +12 -2
- package/models/components/emailstepresponsedto.d.ts.map +1 -1
- package/models/components/emailstepresponsedto.js +2 -0
- package/models/components/emailstepresponsedto.js.map +1 -1
- package/models/components/emailstepupsertdto.d.ts +1 -1
- package/models/components/getchannelconnectionresponsedto.d.ts +3 -0
- package/models/components/getchannelconnectionresponsedto.d.ts.map +1 -1
- package/models/components/getchannelconnectionresponsedto.js +3 -0
- package/models/components/getchannelconnectionresponsedto.js.map +1 -1
- package/models/components/getchannelendpointresponsedto.d.ts +3 -0
- package/models/components/getchannelendpointresponsedto.d.ts.map +1 -1
- package/models/components/getchannelendpointresponsedto.js +3 -0
- package/models/components/getchannelendpointresponsedto.js.map +1 -1
- package/models/components/getpreferencesresponsedto.d.ts +4 -9
- package/models/components/getpreferencesresponsedto.d.ts.map +1 -1
- package/models/components/getpreferencesresponsedto.js +2 -8
- package/models/components/getpreferencesresponsedto.js.map +1 -1
- package/models/components/httprequestcontroldto.d.ts +0 -8
- package/models/components/httprequestcontroldto.d.ts.map +1 -1
- package/models/components/httprequestcontroldto.js +1 -24
- package/models/components/httprequestcontroldto.js.map +1 -1
- package/models/components/httprequestcontrolsmetadataresponsedto.d.ts +51 -2
- package/models/components/httprequestcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/httprequestcontrolsmetadataresponsedto.js +27 -3
- package/models/components/httprequestcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/httprequeststepresponsedto.d.ts +12 -2
- package/models/components/httprequeststepresponsedto.d.ts.map +1 -1
- package/models/components/httprequeststepresponsedto.js +2 -0
- package/models/components/httprequeststepresponsedto.js.map +1 -1
- package/models/components/httprequeststepupsertdto.d.ts +1 -1
- package/models/components/humansignaldto.d.ts +7 -7
- package/models/components/humansignaldto.d.ts.map +1 -1
- package/models/components/humansignaldto.js +2 -2
- package/models/components/humansignaldto.js.map +1 -1
- package/models/components/inappcontroldto.d.ts +0 -5
- package/models/components/inappcontroldto.d.ts.map +1 -1
- package/models/components/inappcontroldto.js +1 -18
- package/models/components/inappcontroldto.js.map +1 -1
- package/models/components/inappcontrolsmetadataresponsedto.d.ts +54 -2
- package/models/components/inappcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/inappcontrolsmetadataresponsedto.js +20 -3
- package/models/components/inappcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/inappstepresponsedto.d.ts +12 -2
- package/models/components/inappstepresponsedto.d.ts.map +1 -1
- package/models/components/inappstepresponsedto.js +2 -0
- package/models/components/inappstepresponsedto.js.map +1 -1
- package/models/components/inappstepupsertdto.d.ts +1 -1
- package/models/components/inboxnotificationdto.d.ts +1 -4
- package/models/components/inboxnotificationdto.d.ts.map +1 -1
- package/models/components/inboxnotificationdto.js.map +1 -1
- package/models/components/index.d.ts +1 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +1 -1
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +9 -1
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +1 -0
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/layoutcontrolsdto.d.ts +3 -2
- package/models/components/layoutcontrolsdto.d.ts.map +1 -1
- package/models/components/layoutcontrolsdto.js +1 -2
- package/models/components/layoutcontrolsdto.js.map +1 -1
- package/models/components/layoutresponsedto.d.ts +1 -1
- package/models/components/markmessageactionasseendto.d.ts +6 -11
- package/models/components/markmessageactionasseendto.d.ts.map +1 -1
- package/models/components/markmessageactionasseendto.js +2 -9
- package/models/components/markmessageactionasseendto.js.map +1 -1
- package/models/components/messageactionresult.d.ts +1 -1
- package/models/components/messagebutton.d.ts +1 -1
- package/models/components/messageresponsedto.d.ts +0 -3
- package/models/components/messageresponsedto.d.ts.map +1 -1
- package/models/components/messageresponsedto.js.map +1 -1
- package/models/components/metadatasetsignaldto.d.ts +12 -4
- package/models/components/metadatasetsignaldto.d.ts.map +1 -1
- package/models/components/metadatasetsignaldto.js +14 -2
- package/models/components/metadatasetsignaldto.js.map +1 -1
- package/models/components/notificationfeeditemdto.d.ts +0 -3
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/notificationworkflowdto.d.ts +1 -1
- package/models/components/providersidenum.d.ts +5 -2
- package/models/components/providersidenum.d.ts.map +1 -1
- package/models/components/providersidenum.js +4 -1
- package/models/components/providersidenum.js.map +1 -1
- package/models/components/publishenvironmentrequestdto.d.ts +1 -1
- package/models/components/pushcontroldto.d.ts +0 -5
- package/models/components/pushcontroldto.d.ts.map +1 -1
- package/models/components/pushcontroldto.js +1 -12
- package/models/components/pushcontroldto.js.map +1 -1
- package/models/components/pushcontrolsmetadataresponsedto.d.ts +26 -2
- package/models/components/pushcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/pushcontrolsmetadataresponsedto.js +13 -3
- package/models/components/pushcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/pushstepresponsedto.d.ts +12 -2
- package/models/components/pushstepresponsedto.d.ts.map +1 -1
- package/models/components/pushstepresponsedto.js +2 -0
- package/models/components/pushstepresponsedto.js.map +1 -1
- package/models/components/pushstepupsertdto.d.ts +1 -1
- package/models/components/resourcediffdto.d.ts +8 -0
- package/models/components/resourcediffdto.d.ts.map +1 -1
- package/models/components/resourcediffdto.js +2 -0
- package/models/components/resourcediffdto.js.map +1 -1
- package/models/components/resourcediffresultdto.d.ts +8 -0
- package/models/components/resourcediffresultdto.d.ts.map +1 -1
- package/models/components/resourcediffresultdto.js +2 -0
- package/models/components/resourcediffresultdto.js.map +1 -1
- package/models/components/resourceoriginenum.d.ts +2 -2
- package/models/components/resourceoriginenum.js +1 -1
- package/models/components/runtimeissuedto.d.ts +12 -1
- package/models/components/runtimeissuedto.d.ts.map +1 -1
- package/models/components/runtimeissuedto.js +6 -1
- package/models/components/runtimeissuedto.js.map +1 -1
- package/models/components/severitylevelenum.d.ts +2 -2
- package/models/components/severitylevelenum.js +1 -1
- package/models/components/smscontroldto.d.ts +0 -5
- package/models/components/smscontroldto.d.ts.map +1 -1
- package/models/components/smscontroldto.js +1 -11
- package/models/components/smscontroldto.js.map +1 -1
- package/models/components/smscontrolsmetadataresponsedto.d.ts +22 -2
- package/models/components/smscontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/smscontrolsmetadataresponsedto.js +12 -3
- package/models/components/smscontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/smsstepresponsedto.d.ts +12 -2
- package/models/components/smsstepresponsedto.d.ts.map +1 -1
- package/models/components/smsstepresponsedto.js +2 -0
- package/models/components/smsstepresponsedto.js.map +1 -1
- package/models/components/smsstepupsertdto.d.ts +1 -1
- package/models/components/steplistresponsedto.d.ts +1 -1
- package/models/components/stepresponsedto.d.ts +12 -2
- package/models/components/stepresponsedto.d.ts.map +1 -1
- package/models/components/stepresponsedto.js +2 -0
- package/models/components/stepresponsedto.js.map +1 -1
- package/models/components/subscriberchanneldto.d.ts +2 -0
- package/models/components/subscriberchanneldto.d.ts.map +1 -1
- package/models/components/subscriberchanneldto.js +2 -0
- package/models/components/subscriberchanneldto.js.map +1 -1
- package/models/components/subscriberpreferenceoverridedto.d.ts +0 -3
- package/models/components/subscriberpreferenceoverridedto.d.ts.map +1 -1
- package/models/components/subscriberpreferenceoverridedto.js.map +1 -1
- package/models/components/subscriptionpreferencedto.d.ts +4 -9
- package/models/components/subscriptionpreferencedto.d.ts.map +1 -1
- package/models/components/subscriptionpreferencedto.js +2 -8
- package/models/components/subscriptionpreferencedto.js.map +1 -1
- package/models/components/tenantpayloaddto.d.ts +6 -8
- package/models/components/tenantpayloaddto.d.ts.map +1 -1
- package/models/components/tenantpayloaddto.js +2 -8
- package/models/components/tenantpayloaddto.js.map +1 -1
- package/models/components/throttlecontroldto.d.ts +0 -9
- package/models/components/throttlecontroldto.d.ts.map +1 -1
- package/models/components/throttlecontroldto.js +3 -22
- package/models/components/throttlecontroldto.js.map +1 -1
- package/models/components/throttlecontrolsmetadataresponsedto.d.ts +70 -2
- package/models/components/throttlecontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/throttlecontrolsmetadataresponsedto.js +38 -3
- package/models/components/throttlecontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/throttlestepresponsedto.d.ts +12 -2
- package/models/components/throttlestepresponsedto.d.ts.map +1 -1
- package/models/components/throttlestepresponsedto.js +2 -0
- package/models/components/throttlestepresponsedto.js.map +1 -1
- package/models/components/throttlestepupsertdto.d.ts +1 -1
- package/models/components/toolapprovalrequestpayloaddto.d.ts +24 -0
- package/models/components/toolapprovalrequestpayloaddto.d.ts.map +1 -1
- package/models/components/toolapprovalrequestpayloaddto.js +11 -1
- package/models/components/toolapprovalrequestpayloaddto.js.map +1 -1
- package/models/components/toolcontroldto.d.ts +0 -5
- package/models/components/toolcontroldto.d.ts.map +1 -1
- package/models/components/toolcontroldto.js +1 -11
- package/models/components/toolcontroldto.js.map +1 -1
- package/models/components/toolcontrolsmetadataresponsedto.d.ts +22 -2
- package/models/components/toolcontrolsmetadataresponsedto.d.ts.map +1 -1
- package/models/components/toolcontrolsmetadataresponsedto.js +12 -3
- package/models/components/toolcontrolsmetadataresponsedto.js.map +1 -1
- package/models/components/toolstepresponsedto.d.ts +12 -2
- package/models/components/toolstepresponsedto.d.ts.map +1 -1
- package/models/components/toolstepresponsedto.js +2 -0
- package/models/components/toolstepresponsedto.js.map +1 -1
- package/models/components/toolstepupsertdto.d.ts +18 -1
- package/models/components/toolstepupsertdto.d.ts.map +1 -1
- package/models/components/toolstepupsertdto.js +2 -0
- package/models/components/toolstepupsertdto.js.map +1 -1
- package/models/components/toolwebhookendpointdto.d.ts +6 -14
- package/models/components/toolwebhookendpointdto.d.ts.map +1 -1
- package/models/components/toolwebhookendpointdto.js +3 -15
- package/models/components/toolwebhookendpointdto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +1 -1
- package/models/components/triggereventtoallrequestdto.d.ts +1 -1
- package/models/components/triggersignaldto.d.ts +4 -4
- package/models/components/triggersignaldto.d.ts.map +1 -1
- package/models/components/triggersignaldto.js +5 -6
- package/models/components/triggersignaldto.js.map +1 -1
- package/models/components/updateintegrationrequestdto.d.ts +20 -11
- package/models/components/updateintegrationrequestdto.d.ts.map +1 -1
- package/models/components/updateintegrationrequestdto.js +3 -8
- package/models/components/updateintegrationrequestdto.js.map +1 -1
- package/models/components/updateworkflowdto.d.ts +2 -2
- package/models/components/workflowissuetypeenum.d.ts +13 -0
- package/models/components/workflowissuetypeenum.d.ts.map +1 -0
- package/models/components/{layoutcontrolvaluesdto.js → workflowissuetypeenum.js} +10 -11
- package/models/components/workflowissuetypeenum.js.map +1 -0
- package/models/components/workflowlistresponsedto.d.ts +1 -1
- package/models/components/workflowpreferencedto.d.ts +9 -0
- package/models/components/workflowpreferencedto.d.ts.map +1 -1
- package/models/components/workflowpreferencedto.js +2 -0
- package/models/components/workflowpreferencedto.js.map +1 -1
- package/models/components/workflowresponse.d.ts +3 -5
- package/models/components/workflowresponse.d.ts.map +1 -1
- package/models/components/workflowresponse.js +2 -8
- package/models/components/workflowresponse.js.map +1 -1
- package/models/components/workflowresponsedto.d.ts +3 -3
- package/models/components/workflowresponsedto.d.ts.map +1 -1
- package/models/components/workflowresponsedto.js +1 -1
- package/models/components/workflowresponsedto.js.map +1 -1
- package/models/operations/agentintegrationscontrolleraddagentintegration.d.ts +2 -0
- package/models/operations/agentintegrationscontrolleraddagentintegration.d.ts.map +1 -1
- package/models/operations/agentintegrationscontrolleraddagentintegration.js +2 -0
- package/models/operations/agentintegrationscontrolleraddagentintegration.js.map +1 -1
- package/models/operations/contextscontrollerlistcontexts.d.ts +5 -0
- package/models/operations/contextscontrollerlistcontexts.d.ts.map +1 -1
- package/models/operations/contextscontrollerlistcontexts.js +1 -0
- package/models/operations/contextscontrollerlistcontexts.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +0 -3
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/models/operations/subscriberscontrollergetsubscribernotifications.d.ts +5 -0
- package/models/operations/subscriberscontrollergetsubscribernotifications.d.ts.map +1 -1
- package/models/operations/subscriberscontrollergetsubscribernotifications.js +1 -0
- package/models/operations/subscriberscontrollergetsubscribernotifications.js.map +1 -1
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts +2 -2
- package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts +2 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.d.ts.map +1 -1
- package/models/operations/subscribersv1controllergetnotificationsfeed.js +1 -0
- package/models/operations/subscribersv1controllergetnotificationsfeed.js.map +1 -1
- package/models/operations/subscribersv1controllergetunseencount.d.ts +5 -0
- package/models/operations/subscribersv1controllergetunseencount.d.ts.map +1 -1
- package/models/operations/subscribersv1controllergetunseencount.js +1 -0
- package/models/operations/subscribersv1controllergetunseencount.js.map +1 -1
- package/models/operations/subscribersv1controllermarkactionasseen.d.ts +10 -2
- package/models/operations/subscribersv1controllermarkactionasseen.d.ts.map +1 -1
- package/models/operations/subscribersv1controllermarkactionasseen.js +8 -2
- package/models/operations/subscribersv1controllermarkactionasseen.js.map +1 -1
- package/package.json +2 -2
- package/sdk/agents.d.ts +5 -4
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +5 -4
- package/sdk/agents.js.map +1 -1
- package/sdk/environments.d.ts +2 -2
- package/sdk/environments.js +2 -2
- package/sdk/novuintegrations.d.ts +1 -2
- package/sdk/novuintegrations.d.ts.map +1 -1
- package/sdk/novuintegrations.js +2 -2
- package/sdk/novuintegrations.js.map +1 -1
- package/src/funcs/agentsIntegrationsCreate.ts +9 -18
- package/src/funcs/agentsSendReply.ts +5 -4
- package/src/funcs/contextsList.ts +1 -0
- package/src/funcs/environmentsDiff.ts +1 -1
- package/src/funcs/environmentsPublish.ts +1 -1
- package/src/funcs/layoutsDelete.ts +1 -1
- package/src/funcs/subscribersNotificationsFeed.ts +1 -0
- package/src/funcs/subscribersNotificationsList.ts +1 -0
- package/src/funcs/subscribersNotificationsUnseenCount.ts +1 -0
- package/src/lib/config.ts +4 -4
- package/src/models/components/activitynotificationexecutiondetailresponsedto.ts +1 -1
- package/src/models/components/activitynotificationjobresponsedto.ts +3 -22
- package/src/models/components/activitynotificationresponsedto.ts +4 -1
- package/src/models/components/activitynotificationstepresponsedto.ts +2 -24
- package/src/models/components/activitynotificationsubscriberresponsedto.ts +8 -8
- package/src/models/components/activitynotificationtemplateresponsedto.ts +1 -1
- package/src/models/components/agentbehaviordto.ts +31 -45
- package/src/models/components/agentintegrationresponsedto.ts +5 -0
- package/src/models/components/agentintegrationresponseintegrationdto.ts +0 -3
- package/src/models/components/agentintegrationsummarydto.ts +0 -3
- package/src/models/components/buttontypeenum.ts +2 -2
- package/src/models/components/channeltypeenum.ts +0 -6
- package/src/models/components/chatcontroldto.ts +1 -27
- package/src/models/components/chatcontrolsmetadataresponsedto.ts +73 -7
- package/src/models/components/chatorpushproviderenum.ts +2 -0
- package/src/models/components/chatstepresponsedto.ts +11 -2
- package/src/models/components/chatstepupsertdto.ts +14 -1
- package/src/models/components/controlsmetadatadto.ts +5 -0
- package/src/models/components/createintegrationrequestdto.ts +12 -23
- package/src/models/components/createworkflowdto.ts +1 -1
- package/src/models/components/credentialsdto.ts +25 -0
- package/src/models/components/customcontroldto.ts +0 -20
- package/src/models/components/customcontrolsmetadataresponsedto.ts +47 -7
- package/src/models/components/customstepresponsedto.ts +11 -2
- package/src/models/components/customstepupsertdto.ts +1 -1
- package/src/models/components/delaycontroldto.ts +2 -32
- package/src/models/components/delaycontrolsmetadataresponsedto.ts +107 -7
- package/src/models/components/delaystepresponsedto.ts +11 -2
- package/src/models/components/delaystepupsertdto.ts +1 -1
- package/src/models/components/diffenvironmentrequestdto.ts +1 -1
- package/src/models/components/digestcontroldto.ts +2 -37
- package/src/models/components/digestcontrolsmetadataresponsedto.ts +125 -6
- package/src/models/components/digeststepresponsedto.ts +11 -2
- package/src/models/components/digeststepupsertdto.ts +1 -1
- package/src/models/components/emailcontroldto.ts +1 -35
- package/src/models/components/emailcontrolsdto.ts +1 -25
- package/src/models/components/emailcontrolsmetadataresponsedto.ts +111 -6
- package/src/models/components/emailstepresponsedto.ts +11 -2
- package/src/models/components/emailstepupsertdto.ts +1 -1
- package/src/models/components/getchannelconnectionresponsedto.ts +3 -0
- package/src/models/components/getchannelendpointresponsedto.ts +3 -0
- package/src/models/components/getpreferencesresponsedto.ts +3 -25
- package/src/models/components/httprequestcontroldto.ts +0 -41
- package/src/models/components/httprequestcontrolsmetadataresponsedto.ts +117 -6
- package/src/models/components/httprequeststepresponsedto.ts +11 -2
- package/src/models/components/httprequeststepupsertdto.ts +1 -1
- package/src/models/components/humansignaldto.ts +9 -9
- package/src/models/components/inappcontroldto.ts +0 -30
- package/src/models/components/inappcontrolsmetadataresponsedto.ts +79 -7
- package/src/models/components/inappstepresponsedto.ts +11 -2
- package/src/models/components/inappstepupsertdto.ts +1 -1
- package/src/models/components/inboxnotificationdto.ts +1 -4
- package/src/models/components/index.ts +1 -1
- package/src/models/components/integrationresponsedto.ts +8 -1
- package/src/models/components/layoutcontrolsdto.ts +2 -6
- package/src/models/components/layoutresponsedto.ts +1 -1
- package/src/models/components/markmessageactionasseendto.ts +3 -29
- package/src/models/components/messageactionresult.ts +1 -1
- package/src/models/components/messagebutton.ts +1 -1
- package/src/models/components/messageresponsedto.ts +0 -3
- package/src/models/components/metadatasetsignaldto.ts +22 -6
- package/src/models/components/notificationfeeditemdto.ts +0 -3
- package/src/models/components/notificationworkflowdto.ts +1 -1
- package/src/models/components/providersidenum.ts +5 -2
- package/src/models/components/publishenvironmentrequestdto.ts +1 -1
- package/src/models/components/pushcontroldto.ts +0 -22
- package/src/models/components/pushcontrolsmetadataresponsedto.ts +52 -7
- package/src/models/components/pushstepresponsedto.ts +11 -2
- package/src/models/components/pushstepupsertdto.ts +1 -1
- package/src/models/components/resourcediffdto.ts +10 -0
- package/src/models/components/resourcediffresultdto.ts +10 -0
- package/src/models/components/resourceoriginenum.ts +2 -2
- package/src/models/components/runtimeissuedto.ts +20 -2
- package/src/models/components/severitylevelenum.ts +2 -2
- package/src/models/components/smscontroldto.ts +0 -21
- package/src/models/components/smscontrolsmetadataresponsedto.ts +47 -4
- package/src/models/components/smsstepresponsedto.ts +11 -2
- package/src/models/components/smsstepupsertdto.ts +1 -1
- package/src/models/components/steplistresponsedto.ts +1 -1
- package/src/models/components/stepresponsedto.ts +11 -2
- package/src/models/components/subscriberchanneldto.ts +2 -0
- package/src/models/components/subscriberpreferenceoverridedto.ts +0 -3
- package/src/models/components/subscriptionpreferencedto.ts +3 -25
- package/src/models/components/tenantpayloaddto.ts +3 -16
- package/src/models/components/throttlecontroldto.ts +2 -36
- package/src/models/components/throttlecontrolsmetadataresponsedto.ts +119 -7
- package/src/models/components/throttlestepresponsedto.ts +11 -2
- package/src/models/components/throttlestepupsertdto.ts +1 -1
- package/src/models/components/toolapprovalrequestpayloaddto.ts +34 -0
- package/src/models/components/toolcontroldto.ts +0 -21
- package/src/models/components/toolcontrolsmetadataresponsedto.ts +47 -7
- package/src/models/components/toolstepresponsedto.ts +11 -2
- package/src/models/components/toolstepupsertdto.ts +14 -1
- package/src/models/components/toolwebhookendpointdto.ts +4 -35
- package/src/models/components/triggereventrequestdto.ts +1 -1
- package/src/models/components/triggereventtoallrequestdto.ts +1 -1
- package/src/models/components/triggersignaldto.ts +17 -10
- package/src/models/components/updateintegrationrequestdto.ts +14 -34
- package/src/models/components/updateworkflowdto.ts +2 -2
- package/src/models/components/workflowissuetypeenum.ts +20 -0
- package/src/models/components/workflowlistresponsedto.ts +1 -1
- package/src/models/components/workflowpreferencedto.ts +7 -0
- package/src/models/components/workflowresponse.ts +2 -21
- package/src/models/components/workflowresponsedto.ts +4 -4
- package/src/models/operations/agentintegrationscontrolleraddagentintegration.ts +4 -0
- package/src/models/operations/contextscontrollerlistcontexts.ts +6 -0
- package/src/models/operations/messagescontrollergetmessages.ts +0 -3
- package/src/models/operations/subscriberscontrollergetsubscribernotifications.ts +6 -0
- package/src/models/operations/subscriberscontrollersearchsubscribers.ts +2 -2
- package/src/models/operations/subscribersv1controllergetnotificationsfeed.ts +3 -0
- package/src/models/operations/subscribersv1controllergetunseencount.ts +6 -0
- package/src/models/operations/subscribersv1controllermarkactionasseen.ts +15 -3
- package/src/sdk/agents.ts +5 -4
- package/src/sdk/environments.ts +2 -2
- package/src/sdk/novuintegrations.ts +2 -7
- package/temp/example.ts +10 -0
- package/models/components/layoutcontrolvaluesdto.d.ts +0 -14
- package/models/components/layoutcontrolvaluesdto.d.ts.map +0 -1
- package/models/components/layoutcontrolvaluesdto.js.map +0 -1
- package/src/models/components/layoutcontrolvaluesdto.ts +0 -38
|
@@ -31,10 +31,9 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Send an agent reply
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* or when a server process outside the bridge needs to post into a live conversation.
|
|
34
|
+
* **Deprecated** — use `POST /v1/agents/events/ingest` (AgentEvent protocol).
|
|
35
|
+
* This route stays live for old `@novu/framework` and existing OpenAPI `sendReply` clients.
|
|
36
|
+
* Do not use it for new integrations.
|
|
38
37
|
*
|
|
39
38
|
* **Message actions**
|
|
40
39
|
* - `reply` — markdown, interactive card, or tool-approval card (optional `files`)
|
|
@@ -54,6 +53,8 @@ import { Result } from "../types/fp.js";
|
|
|
54
53
|
*
|
|
55
54
|
* Returns `{ data: { messageId, platformThreadId } }` when a reply or edit is delivered;
|
|
56
55
|
* otherwise `{ data: null }`.
|
|
56
|
+
*
|
|
57
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
57
58
|
*/
|
|
58
59
|
export function agentsSendReply(
|
|
59
60
|
client: NovuCore,
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Compare resources between environments
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Compares workflows and other resources between the
|
|
34
|
+
* Compares workflows and other resources between the development and target environments, returning detailed diff information including additions, modifications, and deletions.
|
|
35
35
|
*/
|
|
36
36
|
export function environmentsDiff(
|
|
37
37
|
client: NovuCore,
|
|
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
|
|
|
31
31
|
* Publish resources to target environment
|
|
32
32
|
*
|
|
33
33
|
* @remarks
|
|
34
|
-
* Publishes all workflows and resources from the
|
|
34
|
+
* Publishes all workflows and resources from the development environment to the target environment. Optionally specify specific resources to publish or use dryRun mode to preview changes.
|
|
35
35
|
*/
|
|
36
36
|
export function environmentsPublish(
|
|
37
37
|
client: NovuCore,
|
|
@@ -124,7 +124,7 @@ async function $do(
|
|
|
124
124
|
const context = {
|
|
125
125
|
options: client._options,
|
|
126
126
|
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
127
|
-
operationID: "
|
|
127
|
+
operationID: "LayoutsController_delete",
|
|
128
128
|
oAuth2Scopes: null,
|
|
129
129
|
|
|
130
130
|
resolvedSecurity: requestSecurity,
|
package/src/lib/config.ts
CHANGED
|
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
|
|
59
59
|
export const SDK_METADATA = {
|
|
60
60
|
language: "typescript",
|
|
61
|
-
openapiDocVersion: "3.19.
|
|
62
|
-
sdkVersion: "3.
|
|
63
|
-
genVersion: "2.
|
|
64
|
-
userAgent: "speakeasy-sdk/typescript 3.
|
|
61
|
+
openapiDocVersion: "3.19.2",
|
|
62
|
+
sdkVersion: "3.20.0",
|
|
63
|
+
genVersion: "2.961.1",
|
|
64
|
+
userAgent: "speakeasy-sdk/typescript 3.20.0 2.961.1 3.19.2 @novu/api",
|
|
65
65
|
} as const;
|
|
@@ -49,11 +49,6 @@ export type ActivityNotificationJobResponseDtoType = ClosedEnum<
|
|
|
49
49
|
typeof ActivityNotificationJobResponseDtoType
|
|
50
50
|
>;
|
|
51
51
|
|
|
52
|
-
/**
|
|
53
|
-
* Optional payload for the job
|
|
54
|
-
*/
|
|
55
|
-
export type Payload = {};
|
|
56
|
-
|
|
57
52
|
export type ActivityNotificationJobResponseDto = {
|
|
58
53
|
/**
|
|
59
54
|
* Unique identifier of the job
|
|
@@ -82,9 +77,9 @@ export type ActivityNotificationJobResponseDto = {
|
|
|
82
77
|
/**
|
|
83
78
|
* Optional payload for the job
|
|
84
79
|
*/
|
|
85
|
-
payload?:
|
|
80
|
+
payload?: { [k: string]: any } | undefined;
|
|
86
81
|
/**
|
|
87
|
-
* Provider ID of the
|
|
82
|
+
* Provider ID of the execution
|
|
88
83
|
*/
|
|
89
84
|
providerId: ProvidersIdEnum;
|
|
90
85
|
/**
|
|
@@ -107,20 +102,6 @@ export const ActivityNotificationJobResponseDtoType$inboundSchema:
|
|
|
107
102
|
ActivityNotificationJobResponseDtoType,
|
|
108
103
|
);
|
|
109
104
|
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const Payload$inboundSchema: z.ZodType<Payload, z.ZodTypeDef, unknown> =
|
|
112
|
-
z.object({});
|
|
113
|
-
|
|
114
|
-
export function payloadFromJSON(
|
|
115
|
-
jsonString: string,
|
|
116
|
-
): SafeParseResult<Payload, SDKValidationError> {
|
|
117
|
-
return safeParse(
|
|
118
|
-
jsonString,
|
|
119
|
-
(x) => Payload$inboundSchema.parse(JSON.parse(x)),
|
|
120
|
-
`Failed to parse 'Payload' from JSON`,
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
105
|
/** @internal */
|
|
125
106
|
export const ActivityNotificationJobResponseDto$inboundSchema: z.ZodType<
|
|
126
107
|
ActivityNotificationJobResponseDto,
|
|
@@ -135,7 +116,7 @@ export const ActivityNotificationJobResponseDto$inboundSchema: z.ZodType<
|
|
|
135
116
|
),
|
|
136
117
|
step: ActivityNotificationStepResponseDto$inboundSchema,
|
|
137
118
|
overrides: z.record(z.any()).optional(),
|
|
138
|
-
payload: z.
|
|
119
|
+
payload: z.record(z.any()).optional(),
|
|
139
120
|
providerId: ProvidersIdEnum$inboundSchema,
|
|
140
121
|
status: z.string(),
|
|
141
122
|
updatedAt: z.string().optional(),
|
|
@@ -65,6 +65,9 @@ export type ActivityNotificationResponseDto = {
|
|
|
65
65
|
* Last updated time of the notification
|
|
66
66
|
*/
|
|
67
67
|
updatedAt?: string | undefined;
|
|
68
|
+
/**
|
|
69
|
+
* Channels of the notification
|
|
70
|
+
*/
|
|
68
71
|
channels?: Array<string> | undefined;
|
|
69
72
|
/**
|
|
70
73
|
* Subscriber of the notification
|
|
@@ -99,7 +102,7 @@ export type ActivityNotificationResponseDto = {
|
|
|
99
102
|
*/
|
|
100
103
|
topics?: Array<ActivityTopicDto> | undefined;
|
|
101
104
|
/**
|
|
102
|
-
*
|
|
105
|
+
* Override the severity of the workflow
|
|
103
106
|
*/
|
|
104
107
|
severity?: SeverityLevelEnum | undefined;
|
|
105
108
|
/**
|
|
@@ -18,11 +18,6 @@ import { StepFilterDto, StepFilterDto$inboundSchema } from "./stepfilterdto.js";
|
|
|
18
18
|
*/
|
|
19
19
|
export type ActivityNotificationStepResponseDtoReplyCallback = {};
|
|
20
20
|
|
|
21
|
-
/**
|
|
22
|
-
* Control variables
|
|
23
|
-
*/
|
|
24
|
-
export type ControlVariables = {};
|
|
25
|
-
|
|
26
21
|
/**
|
|
27
22
|
* Metadata for the workflow step
|
|
28
23
|
*/
|
|
@@ -49,7 +44,7 @@ export type ActivityNotificationStepResponseDto = {
|
|
|
49
44
|
/**
|
|
50
45
|
* Control variables
|
|
51
46
|
*/
|
|
52
|
-
controlVariables?:
|
|
47
|
+
controlVariables?: { [k: string]: any } | undefined;
|
|
53
48
|
/**
|
|
54
49
|
* Metadata for the workflow step
|
|
55
50
|
*/
|
|
@@ -108,23 +103,6 @@ export function activityNotificationStepResponseDtoReplyCallbackFromJSON(
|
|
|
108
103
|
);
|
|
109
104
|
}
|
|
110
105
|
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const ControlVariables$inboundSchema: z.ZodType<
|
|
113
|
-
ControlVariables,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
unknown
|
|
116
|
-
> = z.object({});
|
|
117
|
-
|
|
118
|
-
export function controlVariablesFromJSON(
|
|
119
|
-
jsonString: string,
|
|
120
|
-
): SafeParseResult<ControlVariables, SDKValidationError> {
|
|
121
|
-
return safeParse(
|
|
122
|
-
jsonString,
|
|
123
|
-
(x) => ControlVariables$inboundSchema.parse(JSON.parse(x)),
|
|
124
|
-
`Failed to parse 'ControlVariables' from JSON`,
|
|
125
|
-
);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
106
|
/** @internal */
|
|
129
107
|
export const ActivityNotificationStepResponseDtoMetadata$inboundSchema:
|
|
130
108
|
z.ZodType<
|
|
@@ -174,7 +152,7 @@ export const ActivityNotificationStepResponseDto$inboundSchema: z.ZodType<
|
|
|
174
152
|
replyCallback: z.lazy(() =>
|
|
175
153
|
ActivityNotificationStepResponseDtoReplyCallback$inboundSchema
|
|
176
154
|
).optional(),
|
|
177
|
-
controlVariables: z.
|
|
155
|
+
controlVariables: z.record(z.any()).optional(),
|
|
178
156
|
metadata: z.lazy(() =>
|
|
179
157
|
ActivityNotificationStepResponseDtoMetadata$inboundSchema
|
|
180
158
|
).optional(),
|
|
@@ -12,7 +12,7 @@ export type ActivityNotificationSubscriberResponseDto = {
|
|
|
12
12
|
/**
|
|
13
13
|
* First name of the subscriber
|
|
14
14
|
*/
|
|
15
|
-
firstName?: string | undefined;
|
|
15
|
+
firstName?: string | null | undefined;
|
|
16
16
|
/**
|
|
17
17
|
* External unique identifier of the subscriber
|
|
18
18
|
*/
|
|
@@ -24,15 +24,15 @@ export type ActivityNotificationSubscriberResponseDto = {
|
|
|
24
24
|
/**
|
|
25
25
|
* Last name of the subscriber
|
|
26
26
|
*/
|
|
27
|
-
lastName?: string | undefined;
|
|
27
|
+
lastName?: string | null | undefined;
|
|
28
28
|
/**
|
|
29
29
|
* Email address of the subscriber
|
|
30
30
|
*/
|
|
31
|
-
email?: string | undefined;
|
|
31
|
+
email?: string | null | undefined;
|
|
32
32
|
/**
|
|
33
33
|
* Phone number of the subscriber
|
|
34
34
|
*/
|
|
35
|
-
phone?: string | undefined;
|
|
35
|
+
phone?: string | null | undefined;
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
/** @internal */
|
|
@@ -41,12 +41,12 @@ export const ActivityNotificationSubscriberResponseDto$inboundSchema: z.ZodType<
|
|
|
41
41
|
z.ZodTypeDef,
|
|
42
42
|
unknown
|
|
43
43
|
> = z.object({
|
|
44
|
-
firstName: z.string().optional(),
|
|
44
|
+
firstName: z.nullable(z.string()).optional(),
|
|
45
45
|
subscriberId: z.string(),
|
|
46
46
|
_id: z.string(),
|
|
47
|
-
lastName: z.string().optional(),
|
|
48
|
-
email: z.string().optional(),
|
|
49
|
-
phone: z.string().optional(),
|
|
47
|
+
lastName: z.nullable(z.string()).optional(),
|
|
48
|
+
email: z.nullable(z.string()).optional(),
|
|
49
|
+
phone: z.nullable(z.string()).optional(),
|
|
50
50
|
}).transform((v) => {
|
|
51
51
|
return remap$(v, {
|
|
52
52
|
"_id": "id",
|
|
@@ -8,11 +8,6 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
/**
|
|
12
|
-
* Cross-platform emoji name for resolved conversations (e.g. "check", "star"). Set to null to disable. Default: "check"
|
|
13
|
-
*/
|
|
14
|
-
export type ReactionOnResolved = {};
|
|
15
|
-
|
|
16
11
|
/**
|
|
17
12
|
* Controls whether the agent accepts inbound messages from senders not yet linked to a subscriber, across all channels. "open" on managed agents auto-creates a lightweight subscriber so the agent can reply; on custom-code / self-hosted agents, the turn is forwarded to the bridge with a null subscriber. "restricted" rejects unknown senders with a managed denial reply (any runtime). Optional on update (partial PATCH). Persisted agents always have a value — managed create defaults to "open"; self-hosted create defaults to "restricted".
|
|
18
13
|
*/
|
|
@@ -25,6 +20,19 @@ export const SubscriberAccess = {
|
|
|
25
20
|
*/
|
|
26
21
|
export type SubscriberAccess = ClosedEnum<typeof SubscriberAccess>;
|
|
27
22
|
|
|
23
|
+
/**
|
|
24
|
+
* How the agent replies in shared rooms. "mention_only" requires an @mention in every shared room. "auto_reply" replies to unmentioned follow-ups in a nested Slack or Teams thread after the agent has joined. "smart" behaves like auto_reply while one person is talking to the agent in a thread, then requires an @mention there once someone else or another agent joins, or the incumbent @mentions another teammate. Create persists "smart". An omitted field on existing agents still means "auto_reply". DMs always reply without a mention. Optional on update (partial PATCH).
|
|
25
|
+
*/
|
|
26
|
+
export const ReplyPolicy = {
|
|
27
|
+
MentionOnly: "mention_only",
|
|
28
|
+
AutoReply: "auto_reply",
|
|
29
|
+
Smart: "smart",
|
|
30
|
+
} as const;
|
|
31
|
+
/**
|
|
32
|
+
* How the agent replies in shared rooms. "mention_only" requires an @mention in every shared room. "auto_reply" replies to unmentioned follow-ups in a nested Slack or Teams thread after the agent has joined. "smart" behaves like auto_reply while one person is talking to the agent in a thread, then requires an @mention there once someone else or another agent joins, or the incumbent @mentions another teammate. Create persists "smart". An omitted field on existing agents still means "auto_reply". DMs always reply without a mention. Optional on update (partial PATCH).
|
|
33
|
+
*/
|
|
34
|
+
export type ReplyPolicy = ClosedEnum<typeof ReplyPolicy>;
|
|
35
|
+
|
|
28
36
|
export type AgentBehaviorDto = {
|
|
29
37
|
/**
|
|
30
38
|
* Acknowledge incoming messages. On platforms that support a native typing indicator (e.g. Slack, WhatsApp, Microsoft Teams, Telegram), shows a "Typing…" indicator while the agent processes the message. On platforms that do not (e.g. Email), reacts with an "eyes" emoji to the first inbound message in a thread. Default: true
|
|
@@ -33,46 +41,17 @@ export type AgentBehaviorDto = {
|
|
|
33
41
|
/**
|
|
34
42
|
* Cross-platform emoji name for resolved conversations (e.g. "check", "star"). Set to null to disable. Default: "check"
|
|
35
43
|
*/
|
|
36
|
-
reactionOnResolved?:
|
|
44
|
+
reactionOnResolved?: string | null | undefined;
|
|
37
45
|
/**
|
|
38
46
|
* Controls whether the agent accepts inbound messages from senders not yet linked to a subscriber, across all channels. "open" on managed agents auto-creates a lightweight subscriber so the agent can reply; on custom-code / self-hosted agents, the turn is forwarded to the bridge with a null subscriber. "restricted" rejects unknown senders with a managed denial reply (any runtime). Optional on update (partial PATCH). Persisted agents always have a value — managed create defaults to "open"; self-hosted create defaults to "restricted".
|
|
39
47
|
*/
|
|
40
48
|
subscriberAccess?: SubscriberAccess | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* How the agent replies in shared rooms. "mention_only" requires an @mention in every shared room. "auto_reply" replies to unmentioned follow-ups in a nested Slack or Teams thread after the agent has joined. "smart" behaves like auto_reply while one person is talking to the agent in a thread, then requires an @mention there once someone else or another agent joins, or the incumbent @mentions another teammate. Create persists "smart". An omitted field on existing agents still means "auto_reply". DMs always reply without a mention. Optional on update (partial PATCH).
|
|
51
|
+
*/
|
|
52
|
+
replyPolicy?: ReplyPolicy | undefined;
|
|
41
53
|
};
|
|
42
54
|
|
|
43
|
-
/** @internal */
|
|
44
|
-
export const ReactionOnResolved$inboundSchema: z.ZodType<
|
|
45
|
-
ReactionOnResolved,
|
|
46
|
-
z.ZodTypeDef,
|
|
47
|
-
unknown
|
|
48
|
-
> = z.object({});
|
|
49
|
-
/** @internal */
|
|
50
|
-
export type ReactionOnResolved$Outbound = {};
|
|
51
|
-
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const ReactionOnResolved$outboundSchema: z.ZodType<
|
|
54
|
-
ReactionOnResolved$Outbound,
|
|
55
|
-
z.ZodTypeDef,
|
|
56
|
-
ReactionOnResolved
|
|
57
|
-
> = z.object({});
|
|
58
|
-
|
|
59
|
-
export function reactionOnResolvedToJSON(
|
|
60
|
-
reactionOnResolved: ReactionOnResolved,
|
|
61
|
-
): string {
|
|
62
|
-
return JSON.stringify(
|
|
63
|
-
ReactionOnResolved$outboundSchema.parse(reactionOnResolved),
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
export function reactionOnResolvedFromJSON(
|
|
67
|
-
jsonString: string,
|
|
68
|
-
): SafeParseResult<ReactionOnResolved, SDKValidationError> {
|
|
69
|
-
return safeParse(
|
|
70
|
-
jsonString,
|
|
71
|
-
(x) => ReactionOnResolved$inboundSchema.parse(JSON.parse(x)),
|
|
72
|
-
`Failed to parse 'ReactionOnResolved' from JSON`,
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
55
|
/** @internal */
|
|
77
56
|
export const SubscriberAccess$inboundSchema: z.ZodNativeEnum<
|
|
78
57
|
typeof SubscriberAccess
|
|
@@ -82,6 +61,13 @@ export const SubscriberAccess$outboundSchema: z.ZodNativeEnum<
|
|
|
82
61
|
typeof SubscriberAccess
|
|
83
62
|
> = SubscriberAccess$inboundSchema;
|
|
84
63
|
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const ReplyPolicy$inboundSchema: z.ZodNativeEnum<typeof ReplyPolicy> = z
|
|
66
|
+
.nativeEnum(ReplyPolicy);
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const ReplyPolicy$outboundSchema: z.ZodNativeEnum<typeof ReplyPolicy> =
|
|
69
|
+
ReplyPolicy$inboundSchema;
|
|
70
|
+
|
|
85
71
|
/** @internal */
|
|
86
72
|
export const AgentBehaviorDto$inboundSchema: z.ZodType<
|
|
87
73
|
AgentBehaviorDto,
|
|
@@ -89,15 +75,16 @@ export const AgentBehaviorDto$inboundSchema: z.ZodType<
|
|
|
89
75
|
unknown
|
|
90
76
|
> = z.object({
|
|
91
77
|
acknowledgeOnReceived: z.boolean().default(true),
|
|
92
|
-
reactionOnResolved: z.nullable(z.
|
|
93
|
-
.optional(),
|
|
78
|
+
reactionOnResolved: z.nullable(z.string().default("check")),
|
|
94
79
|
subscriberAccess: SubscriberAccess$inboundSchema.optional(),
|
|
80
|
+
replyPolicy: ReplyPolicy$inboundSchema.default("auto_reply"),
|
|
95
81
|
});
|
|
96
82
|
/** @internal */
|
|
97
83
|
export type AgentBehaviorDto$Outbound = {
|
|
98
84
|
acknowledgeOnReceived: boolean;
|
|
99
|
-
reactionOnResolved
|
|
85
|
+
reactionOnResolved: string | null;
|
|
100
86
|
subscriberAccess?: string | undefined;
|
|
87
|
+
replyPolicy: string;
|
|
101
88
|
};
|
|
102
89
|
|
|
103
90
|
/** @internal */
|
|
@@ -107,10 +94,9 @@ export const AgentBehaviorDto$outboundSchema: z.ZodType<
|
|
|
107
94
|
AgentBehaviorDto
|
|
108
95
|
> = z.object({
|
|
109
96
|
acknowledgeOnReceived: z.boolean().default(true),
|
|
110
|
-
reactionOnResolved: z.nullable(
|
|
111
|
-
z.lazy(() => ReactionOnResolved$outboundSchema),
|
|
112
|
-
).optional(),
|
|
97
|
+
reactionOnResolved: z.nullable(z.string().default("check")),
|
|
113
98
|
subscriberAccess: SubscriberAccess$outboundSchema.optional(),
|
|
99
|
+
replyPolicy: ReplyPolicy$outboundSchema.default("auto_reply"),
|
|
114
100
|
});
|
|
115
101
|
|
|
116
102
|
export function agentBehaviorDtoToJSON(
|
|
@@ -36,6 +36,10 @@ export type AgentIntegrationResponseDto = {
|
|
|
36
36
|
* Cloud only. `true` when this channel type (provider) falls outside the organization plan active-channel limit (by connection order). Active channels are counted per channel type, so multiple integrations of the same provider (e.g. several Slack workspaces) count as a single active channel. Over-limit channels keep their configuration but the agent will not respond on them until the plan is upgraded or older channel types are disconnected.
|
|
37
37
|
*/
|
|
38
38
|
exceedsPlanLimit?: boolean | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* `true` when at least one person has linked their chat on this integration (it has a channel endpoint), so the agent has someone to reach there. Only returned by the list, and only when true. Email has no channel endpoints, so it never carries the flag.
|
|
41
|
+
*/
|
|
42
|
+
hasChannelEndpoints?: boolean | undefined;
|
|
39
43
|
};
|
|
40
44
|
|
|
41
45
|
/** @internal */
|
|
@@ -70,6 +74,7 @@ export const AgentIntegrationResponseDto$inboundSchema: z.ZodType<
|
|
|
70
74
|
createdAt: z.string(),
|
|
71
75
|
updatedAt: z.string(),
|
|
72
76
|
exceedsPlanLimit: z.boolean().optional(),
|
|
77
|
+
hasChannelEndpoints: z.boolean().optional(),
|
|
73
78
|
}).transform((v) => {
|
|
74
79
|
return remap$(v, {
|
|
75
80
|
"_id": "id",
|
|
@@ -6,14 +6,14 @@ import * as z from "zod/v3";
|
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Type of
|
|
9
|
+
* Type of the button
|
|
10
10
|
*/
|
|
11
11
|
export const ButtonTypeEnum = {
|
|
12
12
|
Primary: "primary",
|
|
13
13
|
Secondary: "secondary",
|
|
14
14
|
} as const;
|
|
15
15
|
/**
|
|
16
|
-
* Type of
|
|
16
|
+
* Type of the button
|
|
17
17
|
*/
|
|
18
18
|
export type ButtonTypeEnum = ClosedEnum<typeof ButtonTypeEnum>;
|
|
19
19
|
|
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
7
7
|
|
|
8
|
-
/**
|
|
9
|
-
* Channel type through which the message is sent
|
|
10
|
-
*/
|
|
11
8
|
export const ChannelTypeEnum = {
|
|
12
9
|
InApp: "in_app",
|
|
13
10
|
Email: "email",
|
|
@@ -16,9 +13,6 @@ export const ChannelTypeEnum = {
|
|
|
16
13
|
Push: "push",
|
|
17
14
|
Tool: "tool",
|
|
18
15
|
} as const;
|
|
19
|
-
/**
|
|
20
|
-
* Channel type through which the message is sent
|
|
21
|
-
*/
|
|
22
16
|
export type ChannelTypeEnum = ClosedEnum<typeof ChannelTypeEnum>;
|
|
23
17
|
|
|
24
18
|
/** @internal */
|
|
@@ -3,10 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
6
|
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
7
|
|
|
11
8
|
/**
|
|
12
9
|
* Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
|
|
@@ -37,25 +34,11 @@ export type ChatControlDto = {
|
|
|
37
34
|
editorType?: ChatControlDtoEditorType | undefined;
|
|
38
35
|
};
|
|
39
36
|
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const ChatControlDtoEditorType$inboundSchema: z.ZodNativeEnum<
|
|
42
|
-
typeof ChatControlDtoEditorType
|
|
43
|
-
> = z.nativeEnum(ChatControlDtoEditorType);
|
|
44
37
|
/** @internal */
|
|
45
38
|
export const ChatControlDtoEditorType$outboundSchema: z.ZodNativeEnum<
|
|
46
39
|
typeof ChatControlDtoEditorType
|
|
47
|
-
> = ChatControlDtoEditorType
|
|
40
|
+
> = z.nativeEnum(ChatControlDtoEditorType);
|
|
48
41
|
|
|
49
|
-
/** @internal */
|
|
50
|
-
export const ChatControlDto$inboundSchema: z.ZodType<
|
|
51
|
-
ChatControlDto,
|
|
52
|
-
z.ZodTypeDef,
|
|
53
|
-
unknown
|
|
54
|
-
> = z.object({
|
|
55
|
-
skip: z.record(z.any()).optional(),
|
|
56
|
-
body: z.string().optional(),
|
|
57
|
-
editorType: ChatControlDtoEditorType$inboundSchema.optional(),
|
|
58
|
-
});
|
|
59
42
|
/** @internal */
|
|
60
43
|
export type ChatControlDto$Outbound = {
|
|
61
44
|
skip?: { [k: string]: any } | undefined;
|
|
@@ -77,12 +60,3 @@ export const ChatControlDto$outboundSchema: z.ZodType<
|
|
|
77
60
|
export function chatControlDtoToJSON(chatControlDto: ChatControlDto): string {
|
|
78
61
|
return JSON.stringify(ChatControlDto$outboundSchema.parse(chatControlDto));
|
|
79
62
|
}
|
|
80
|
-
export function chatControlDtoFromJSON(
|
|
81
|
-
jsonString: string,
|
|
82
|
-
): SafeParseResult<ChatControlDto, SDKValidationError> {
|
|
83
|
-
return safeParse(
|
|
84
|
-
jsonString,
|
|
85
|
-
(x) => ChatControlDto$inboundSchema.parse(JSON.parse(x)),
|
|
86
|
-
`Failed to parse 'ChatControlDto' from JSON`,
|
|
87
|
-
);
|
|
88
|
-
}
|
|
@@ -3,15 +3,48 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
collectExtraKeys as collectExtraKeys$,
|
|
8
|
+
safeParse,
|
|
9
|
+
} from "../../lib/schemas.js";
|
|
10
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
11
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
12
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
import {
|
|
10
|
-
ChatControlDto,
|
|
11
|
-
ChatControlDto$inboundSchema,
|
|
12
|
-
} from "./chatcontroldto.js";
|
|
13
13
|
import { UiSchema, UiSchema$inboundSchema } from "./uischema.js";
|
|
14
14
|
|
|
15
|
+
/**
|
|
16
|
+
* Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
|
|
17
|
+
*/
|
|
18
|
+
export const ChatControlsMetadataResponseDtoEditorType = {
|
|
19
|
+
Block: "block",
|
|
20
|
+
Text: "text",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
|
|
24
|
+
*/
|
|
25
|
+
export type ChatControlsMetadataResponseDtoEditorType = ClosedEnum<
|
|
26
|
+
typeof ChatControlsMetadataResponseDtoEditorType
|
|
27
|
+
>;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Control values specific to Chat
|
|
31
|
+
*/
|
|
32
|
+
export type ChatControlsMetadataResponseDtoValues = {
|
|
33
|
+
/**
|
|
34
|
+
* JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference.
|
|
35
|
+
*/
|
|
36
|
+
skip?: { [k: string]: any } | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Content of the chat message.
|
|
39
|
+
*/
|
|
40
|
+
body?: string | undefined;
|
|
41
|
+
/**
|
|
42
|
+
* Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
|
|
43
|
+
*/
|
|
44
|
+
editorType?: ChatControlsMetadataResponseDtoEditorType | undefined;
|
|
45
|
+
additionalProperties?: { [k: string]: any } | undefined;
|
|
46
|
+
};
|
|
47
|
+
|
|
15
48
|
export type ChatControlsMetadataResponseDto = {
|
|
16
49
|
/**
|
|
17
50
|
* JSON Schema for data
|
|
@@ -24,9 +57,41 @@ export type ChatControlsMetadataResponseDto = {
|
|
|
24
57
|
/**
|
|
25
58
|
* Control values specific to Chat
|
|
26
59
|
*/
|
|
27
|
-
values
|
|
60
|
+
values?: ChatControlsMetadataResponseDtoValues | undefined;
|
|
28
61
|
};
|
|
29
62
|
|
|
63
|
+
/** @internal */
|
|
64
|
+
export const ChatControlsMetadataResponseDtoEditorType$inboundSchema:
|
|
65
|
+
z.ZodNativeEnum<typeof ChatControlsMetadataResponseDtoEditorType> = z
|
|
66
|
+
.nativeEnum(ChatControlsMetadataResponseDtoEditorType);
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export const ChatControlsMetadataResponseDtoValues$inboundSchema: z.ZodType<
|
|
70
|
+
ChatControlsMetadataResponseDtoValues,
|
|
71
|
+
z.ZodTypeDef,
|
|
72
|
+
unknown
|
|
73
|
+
> = collectExtraKeys$(
|
|
74
|
+
z.object({
|
|
75
|
+
skip: z.record(z.any()).optional(),
|
|
76
|
+
body: z.string().optional(),
|
|
77
|
+
editorType: ChatControlsMetadataResponseDtoEditorType$inboundSchema
|
|
78
|
+
.optional(),
|
|
79
|
+
}).catchall(z.any()),
|
|
80
|
+
"additionalProperties",
|
|
81
|
+
true,
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
export function chatControlsMetadataResponseDtoValuesFromJSON(
|
|
85
|
+
jsonString: string,
|
|
86
|
+
): SafeParseResult<ChatControlsMetadataResponseDtoValues, SDKValidationError> {
|
|
87
|
+
return safeParse(
|
|
88
|
+
jsonString,
|
|
89
|
+
(x) =>
|
|
90
|
+
ChatControlsMetadataResponseDtoValues$inboundSchema.parse(JSON.parse(x)),
|
|
91
|
+
`Failed to parse 'ChatControlsMetadataResponseDtoValues' from JSON`,
|
|
92
|
+
);
|
|
93
|
+
}
|
|
94
|
+
|
|
30
95
|
/** @internal */
|
|
31
96
|
export const ChatControlsMetadataResponseDto$inboundSchema: z.ZodType<
|
|
32
97
|
ChatControlsMetadataResponseDto,
|
|
@@ -35,7 +100,8 @@ export const ChatControlsMetadataResponseDto$inboundSchema: z.ZodType<
|
|
|
35
100
|
> = z.object({
|
|
36
101
|
dataSchema: z.record(z.any()).optional(),
|
|
37
102
|
uiSchema: UiSchema$inboundSchema.optional(),
|
|
38
|
-
values:
|
|
103
|
+
values: z.lazy(() => ChatControlsMetadataResponseDtoValues$inboundSchema)
|
|
104
|
+
.optional(),
|
|
39
105
|
});
|
|
40
106
|
|
|
41
107
|
export function chatControlsMetadataResponseDtoFromJSON(
|