@novu/api 0.0.1-alpha.104 → 0.0.1-alpha.106
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 +15 -5
- package/docs/sdks/authentication/README.md +10 -8
- package/docs/sdks/credentials/README.md +15 -12
- package/docs/sdks/integrations/README.md +30 -24
- package/docs/sdks/messages/README.md +15 -12
- package/docs/sdks/notifications/README.md +10 -8
- package/docs/sdks/novu/README.md +20 -16
- package/docs/sdks/novumessages/README.md +15 -12
- package/docs/sdks/novunotifications/README.md +10 -8
- package/docs/sdks/novusubscribers/README.md +15 -12
- package/docs/sdks/preferences/README.md +20 -16
- package/docs/sdks/properties/README.md +5 -4
- package/docs/sdks/stats/README.md +10 -8
- package/docs/sdks/subscribers/README.md +30 -24
- package/docs/sdks/topics/README.md +25 -20
- package/docs/sdks/webhooks/README.md +5 -4
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +2 -2
- package/funcs/cancel.js.map +1 -1
- package/funcs/integrationsCreate.d.ts +1 -1
- package/funcs/integrationsCreate.d.ts.map +1 -1
- package/funcs/integrationsCreate.js +2 -2
- package/funcs/integrationsCreate.js.map +1 -1
- package/funcs/integrationsDelete.d.ts +1 -1
- package/funcs/integrationsDelete.d.ts.map +1 -1
- package/funcs/integrationsDelete.js +2 -2
- package/funcs/integrationsDelete.js.map +1 -1
- package/funcs/integrationsList.d.ts +1 -1
- package/funcs/integrationsList.d.ts.map +1 -1
- package/funcs/integrationsList.js +2 -2
- package/funcs/integrationsList.js.map +1 -1
- package/funcs/integrationsListActive.d.ts +1 -1
- package/funcs/integrationsListActive.d.ts.map +1 -1
- package/funcs/integrationsListActive.js +2 -2
- package/funcs/integrationsListActive.js.map +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts +1 -1
- package/funcs/integrationsSetAsPrimary.d.ts.map +1 -1
- package/funcs/integrationsSetAsPrimary.js +2 -2
- package/funcs/integrationsSetAsPrimary.js.map +1 -1
- package/funcs/integrationsUpdate.d.ts +1 -1
- package/funcs/integrationsUpdate.d.ts.map +1 -1
- package/funcs/integrationsUpdate.js +2 -2
- package/funcs/integrationsUpdate.js.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts +1 -1
- package/funcs/integrationsWebhooksRetrieve.d.ts.map +1 -1
- package/funcs/integrationsWebhooksRetrieve.js +2 -2
- package/funcs/integrationsWebhooksRetrieve.js.map +1 -1
- package/funcs/messagesDelete.d.ts +1 -1
- package/funcs/messagesDelete.d.ts.map +1 -1
- package/funcs/messagesDelete.js +2 -2
- package/funcs/messagesDelete.js.map +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts +1 -1
- package/funcs/messagesDeleteByTransactionId.d.ts.map +1 -1
- package/funcs/messagesDeleteByTransactionId.js +3 -5
- package/funcs/messagesDeleteByTransactionId.js.map +1 -1
- package/funcs/messagesRetrieve.d.ts +1 -1
- package/funcs/messagesRetrieve.d.ts.map +1 -1
- package/funcs/messagesRetrieve.js +2 -2
- package/funcs/messagesRetrieve.js.map +1 -1
- package/funcs/notificationsList.d.ts +1 -1
- package/funcs/notificationsList.d.ts.map +1 -1
- package/funcs/notificationsList.js +2 -2
- package/funcs/notificationsList.js.map +1 -1
- package/funcs/notificationsRetrieve.d.ts +1 -1
- package/funcs/notificationsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsRetrieve.js +2 -2
- package/funcs/notificationsRetrieve.js.map +1 -1
- package/funcs/notificationsStatsGraph.d.ts +1 -1
- package/funcs/notificationsStatsGraph.d.ts.map +1 -1
- package/funcs/notificationsStatsGraph.js +2 -2
- package/funcs/notificationsStatsGraph.js.map +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts +1 -1
- package/funcs/notificationsStatsRetrieve.d.ts.map +1 -1
- package/funcs/notificationsStatsRetrieve.js +2 -2
- package/funcs/notificationsStatsRetrieve.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauth.js +2 -2
- package/funcs/subscribersAuthenticationChatAccessOauth.js.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.d.ts.map +1 -1
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js +2 -2
- package/funcs/subscribersAuthenticationChatAccessOauthCallBack.js.map +1 -1
- package/funcs/subscribersCreate.d.ts +1 -1
- package/funcs/subscribersCreate.d.ts.map +1 -1
- package/funcs/subscribersCreate.js +2 -2
- package/funcs/subscribersCreate.js.map +1 -1
- package/funcs/subscribersCreateBulk.d.ts +1 -1
- package/funcs/subscribersCreateBulk.d.ts.map +1 -1
- package/funcs/subscribersCreateBulk.js +3 -5
- package/funcs/subscribersCreateBulk.js.map +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts +1 -1
- package/funcs/subscribersCredentialsAppend.d.ts.map +1 -1
- package/funcs/subscribersCredentialsAppend.js +2 -2
- package/funcs/subscribersCredentialsAppend.js.map +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts +1 -1
- package/funcs/subscribersCredentialsDelete.d.ts.map +1 -1
- package/funcs/subscribersCredentialsDelete.js +3 -5
- package/funcs/subscribersCredentialsDelete.js.map +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts +1 -1
- package/funcs/subscribersCredentialsUpdate.d.ts.map +1 -1
- package/funcs/subscribersCredentialsUpdate.js +2 -2
- package/funcs/subscribersCredentialsUpdate.js.map +1 -1
- package/funcs/subscribersDelete.d.ts +1 -1
- package/funcs/subscribersDelete.d.ts.map +1 -1
- package/funcs/subscribersDelete.js +2 -2
- package/funcs/subscribersDelete.js.map +1 -1
- package/funcs/subscribersList.d.ts +1 -1
- package/funcs/subscribersList.d.ts.map +1 -1
- package/funcs/subscribersList.js +2 -2
- package/funcs/subscribersList.js.map +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAll.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAll.js +2 -2
- package/funcs/subscribersMessagesMarkAll.js.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts +1 -1
- package/funcs/subscribersMessagesMarkAllAs.d.ts.map +1 -1
- package/funcs/subscribersMessagesMarkAllAs.js +2 -2
- package/funcs/subscribersMessagesMarkAllAs.js.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.d.ts.map +1 -1
- package/funcs/subscribersMessagesUpdateAsSeen.js +2 -2
- package/funcs/subscribersMessagesUpdateAsSeen.js.map +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts +1 -1
- package/funcs/subscribersNotificationsFeed.d.ts.map +1 -1
- package/funcs/subscribersNotificationsFeed.js +2 -2
- package/funcs/subscribersNotificationsFeed.js.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts +1 -1
- package/funcs/subscribersNotificationsUnseenCount.d.ts.map +1 -1
- package/funcs/subscribersNotificationsUnseenCount.js +2 -2
- package/funcs/subscribersNotificationsUnseenCount.js.map +1 -1
- package/funcs/subscribersPreferencesList.d.ts +1 -1
- package/funcs/subscribersPreferencesList.d.ts.map +1 -1
- package/funcs/subscribersPreferencesList.js +2 -2
- package/funcs/subscribersPreferencesList.js.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.d.ts.map +1 -1
- package/funcs/subscribersPreferencesRetrieveByLevel.js +2 -2
- package/funcs/subscribersPreferencesRetrieveByLevel.js.map +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdate.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdate.js +2 -2
- package/funcs/subscribersPreferencesUpdate.js.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.d.ts.map +1 -1
- package/funcs/subscribersPreferencesUpdateGlobal.js +2 -2
- package/funcs/subscribersPreferencesUpdateGlobal.js.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.d.ts.map +1 -1
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js +2 -2
- package/funcs/subscribersPropertiesUpdateOnlineFlag.js.map +1 -1
- package/funcs/subscribersRetrieve.d.ts +1 -1
- package/funcs/subscribersRetrieve.d.ts.map +1 -1
- package/funcs/subscribersRetrieve.js +2 -2
- package/funcs/subscribersRetrieve.js.map +1 -1
- package/funcs/subscribersUpdate.d.ts +1 -1
- package/funcs/subscribersUpdate.d.ts.map +1 -1
- package/funcs/subscribersUpdate.js +2 -2
- package/funcs/subscribersUpdate.js.map +1 -1
- package/funcs/topicsCreate.d.ts +1 -1
- package/funcs/topicsCreate.d.ts.map +1 -1
- package/funcs/topicsCreate.js +3 -6
- package/funcs/topicsCreate.js.map +1 -1
- package/funcs/topicsDelete.d.ts +1 -1
- package/funcs/topicsDelete.d.ts.map +1 -1
- package/funcs/topicsDelete.js +2 -2
- package/funcs/topicsDelete.js.map +1 -1
- package/funcs/topicsList.d.ts +1 -1
- package/funcs/topicsList.d.ts.map +1 -1
- package/funcs/topicsList.js +2 -2
- package/funcs/topicsList.js.map +1 -1
- package/funcs/topicsRename.d.ts +1 -1
- package/funcs/topicsRename.d.ts.map +1 -1
- package/funcs/topicsRename.js +2 -2
- package/funcs/topicsRename.js.map +1 -1
- package/funcs/topicsRetrieve.d.ts +1 -1
- package/funcs/topicsRetrieve.d.ts.map +1 -1
- package/funcs/topicsRetrieve.js +2 -2
- package/funcs/topicsRetrieve.js.map +1 -1
- package/funcs/topicsSubscribersAssign.d.ts +1 -1
- package/funcs/topicsSubscribersAssign.d.ts.map +1 -1
- package/funcs/topicsSubscribersAssign.js +2 -2
- package/funcs/topicsSubscribersAssign.js.map +1 -1
- package/funcs/topicsSubscribersRemove.d.ts +1 -1
- package/funcs/topicsSubscribersRemove.d.ts.map +1 -1
- package/funcs/topicsSubscribersRemove.js +3 -4
- package/funcs/topicsSubscribersRemove.js.map +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts +1 -1
- package/funcs/topicsSubscribersRetrieve.d.ts.map +1 -1
- package/funcs/topicsSubscribersRetrieve.js +2 -2
- package/funcs/topicsSubscribersRetrieve.js.map +1 -1
- package/funcs/trigger.d.ts +1 -1
- package/funcs/trigger.d.ts.map +1 -1
- package/funcs/trigger.js +3 -6
- package/funcs/trigger.js.map +1 -1
- package/funcs/triggerBroadcast.d.ts +1 -1
- package/funcs/triggerBroadcast.d.ts.map +1 -1
- package/funcs/triggerBroadcast.js +2 -2
- package/funcs/triggerBroadcast.js.map +1 -1
- package/funcs/triggerBulk.d.ts +1 -1
- package/funcs/triggerBulk.d.ts.map +1 -1
- package/funcs/triggerBulk.js +3 -6
- package/funcs/triggerBulk.js.map +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.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/{components → errors}/validationerrordto.d.ts +51 -17
- package/models/errors/validationerrordto.d.ts.map +1 -0
- package/models/{components → errors}/validationerrordto.js +43 -26
- package/models/errors/validationerrordto.js.map +1 -0
- package/models/operations/eventscontrollertrigger.d.ts +2 -23
- package/models/operations/eventscontrollertrigger.d.ts.map +1 -1
- package/models/operations/eventscontrollertrigger.js +3 -38
- package/models/operations/eventscontrollertrigger.js.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.d.ts +2 -23
- package/models/operations/eventscontrollertriggerbulk.d.ts.map +1 -1
- package/models/operations/eventscontrollertriggerbulk.js +3 -38
- package/models/operations/eventscontrollertriggerbulk.js.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.d.ts +2 -23
- package/models/operations/integrationscontrollercreateintegration.d.ts.map +1 -1
- package/models/operations/integrationscontrollercreateintegration.js +3 -38
- package/models/operations/integrationscontrollercreateintegration.js.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts +0 -3
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.d.ts.map +1 -1
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js +0 -5
- package/models/operations/messagescontrollerdeletemessagesbytransactionid.js.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts +0 -3
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +0 -5
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts +2 -23
- package/models/operations/subscriberscontrollercreatesubscriber.d.ts.map +1 -1
- package/models/operations/subscriberscontrollercreatesubscriber.js +3 -38
- package/models/operations/subscriberscontrollercreatesubscriber.js.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts +0 -3
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js +0 -5
- package/models/operations/subscriberscontrollerdeletesubscribercredentials.js.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts +2 -23
- package/models/operations/subscriberscontrollermarkactionasseen.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkactionasseen.js +3 -38
- package/models/operations/subscriberscontrollermarkactionasseen.js.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts +2 -23
- package/models/operations/subscriberscontrollermarkallunreadasread.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkallunreadasread.js +3 -27
- package/models/operations/subscriberscontrollermarkallunreadasread.js.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts +2 -23
- package/models/operations/subscriberscontrollermarkmessagesas.d.ts.map +1 -1
- package/models/operations/subscriberscontrollermarkmessagesas.js +3 -38
- package/models/operations/subscriberscontrollermarkmessagesas.js.map +1 -1
- package/models/operations/topicscontrollercreatetopic.d.ts +2 -23
- package/models/operations/topicscontrollercreatetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollercreatetopic.js +3 -38
- package/models/operations/topicscontrollercreatetopic.js.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.d.ts +0 -3
- package/models/operations/topicscontrollerdeletetopic.d.ts.map +1 -1
- package/models/operations/topicscontrollerdeletetopic.js +0 -5
- package/models/operations/topicscontrollerdeletetopic.js.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.d.ts +0 -2
- package/models/operations/topicscontrollerremovesubscribers.d.ts.map +1 -1
- package/models/operations/topicscontrollerremovesubscribers.js +0 -4
- package/models/operations/topicscontrollerremovesubscribers.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/cancel.ts +4 -1
- package/src/funcs/integrationsCreate.ts +4 -6
- package/src/funcs/integrationsDelete.ts +4 -1
- package/src/funcs/integrationsList.ts +4 -1
- package/src/funcs/integrationsListActive.ts +4 -1
- package/src/funcs/integrationsSetAsPrimary.ts +4 -1
- package/src/funcs/integrationsUpdate.ts +4 -1
- package/src/funcs/integrationsWebhooksRetrieve.ts +4 -1
- package/src/funcs/messagesDelete.ts +4 -1
- package/src/funcs/messagesDeleteByTransactionId.ts +4 -8
- package/src/funcs/messagesRetrieve.ts +4 -1
- package/src/funcs/notificationsList.ts +4 -1
- package/src/funcs/notificationsRetrieve.ts +4 -1
- package/src/funcs/notificationsStatsGraph.ts +4 -1
- package/src/funcs/notificationsStatsRetrieve.ts +4 -1
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +4 -1
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +4 -1
- package/src/funcs/subscribersCreate.ts +4 -6
- package/src/funcs/subscribersCreateBulk.ts +4 -8
- package/src/funcs/subscribersCredentialsAppend.ts +4 -1
- package/src/funcs/subscribersCredentialsDelete.ts +4 -8
- package/src/funcs/subscribersCredentialsUpdate.ts +4 -1
- package/src/funcs/subscribersDelete.ts +4 -1
- package/src/funcs/subscribersList.ts +5 -1
- package/src/funcs/subscribersMessagesMarkAll.ts +4 -6
- package/src/funcs/subscribersMessagesMarkAllAs.ts +4 -6
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +4 -6
- package/src/funcs/subscribersNotificationsFeed.ts +4 -1
- package/src/funcs/subscribersNotificationsUnseenCount.ts +4 -1
- package/src/funcs/subscribersPreferencesList.ts +4 -1
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +4 -1
- package/src/funcs/subscribersPreferencesUpdate.ts +4 -1
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +4 -1
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +4 -1
- package/src/funcs/subscribersRetrieve.ts +4 -1
- package/src/funcs/subscribersUpdate.ts +4 -1
- package/src/funcs/topicsCreate.ts +4 -5
- package/src/funcs/topicsDelete.ts +6 -8
- package/src/funcs/topicsList.ts +4 -1
- package/src/funcs/topicsRename.ts +4 -1
- package/src/funcs/topicsRetrieve.ts +4 -1
- package/src/funcs/topicsSubscribersAssign.ts +4 -1
- package/src/funcs/topicsSubscribersRemove.ts +4 -7
- package/src/funcs/topicsSubscribersRetrieve.ts +4 -1
- package/src/funcs/trigger.ts +4 -5
- package/src/funcs/triggerBroadcast.ts +4 -1
- package/src/funcs/triggerBulk.ts +4 -5
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -1
- package/src/models/errors/index.ts +1 -0
- package/src/models/{components → errors}/validationerrordto.ts +92 -66
- package/src/models/operations/eventscontrollertrigger.ts +4 -77
- package/src/models/operations/eventscontrollertriggerbulk.ts +4 -86
- package/src/models/operations/integrationscontrollercreateintegration.ts +4 -86
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +0 -7
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +0 -7
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -86
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -7
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -86
- package/src/models/operations/subscriberscontrollermarkallunreadasread.ts +4 -71
- package/src/models/operations/subscriberscontrollermarkmessagesas.ts +4 -86
- package/src/models/operations/topicscontrollercreatetopic.ts +4 -84
- package/src/models/operations/topicscontrollerdeletetopic.ts +0 -7
- package/src/models/operations/topicscontrollerremovesubscribers.ts +0 -6
- package/models/components/validationerrordto.d.ts.map +0 -1
- package/models/components/validationerrordto.js.map +0 -1
|
@@ -38,6 +38,7 @@ export async function subscribersUpdate(
|
|
|
38
38
|
Result<
|
|
39
39
|
operations.SubscribersControllerUpdateSubscriberResponse,
|
|
40
40
|
| errors.ErrorDto
|
|
41
|
+
| errors.ValidationErrorDto
|
|
41
42
|
| SDKError
|
|
42
43
|
| SDKValidationError
|
|
43
44
|
| UnexpectedClientError
|
|
@@ -123,7 +124,7 @@ export async function subscribersUpdate(
|
|
|
123
124
|
|
|
124
125
|
const doResult = await client._do(req, {
|
|
125
126
|
context,
|
|
126
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
127
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
127
128
|
retryConfig: context.retryConfig,
|
|
128
129
|
retryCodes: context.retryCodes,
|
|
129
130
|
});
|
|
@@ -139,6 +140,7 @@ export async function subscribersUpdate(
|
|
|
139
140
|
const [result] = await M.match<
|
|
140
141
|
operations.SubscribersControllerUpdateSubscriberResponse,
|
|
141
142
|
| errors.ErrorDto
|
|
143
|
+
| errors.ValidationErrorDto
|
|
142
144
|
| SDKError
|
|
143
145
|
| SDKValidationError
|
|
144
146
|
| UnexpectedClientError
|
|
@@ -153,6 +155,7 @@ export async function subscribersUpdate(
|
|
|
153
155
|
{ hdrs: true, key: "Result" },
|
|
154
156
|
),
|
|
155
157
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
158
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
156
159
|
M.fail([429, 503]),
|
|
157
160
|
M.fail(["4XX", "5XX"]),
|
|
158
161
|
)(response, { extraFields: responseFields });
|
|
@@ -37,6 +37,7 @@ export async function topicsCreate(
|
|
|
37
37
|
Result<
|
|
38
38
|
operations.TopicsControllerCreateTopicResponse,
|
|
39
39
|
| errors.ErrorDto
|
|
40
|
+
| errors.ValidationErrorDto
|
|
40
41
|
| SDKError
|
|
41
42
|
| SDKValidationError
|
|
42
43
|
| UnexpectedClientError
|
|
@@ -106,7 +107,7 @@ export async function topicsCreate(
|
|
|
106
107
|
|
|
107
108
|
const doResult = await client._do(req, {
|
|
108
109
|
context,
|
|
109
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
110
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
110
111
|
retryConfig: context.retryConfig,
|
|
111
112
|
retryCodes: context.retryCodes,
|
|
112
113
|
});
|
|
@@ -122,6 +123,7 @@ export async function topicsCreate(
|
|
|
122
123
|
const [result] = await M.match<
|
|
123
124
|
operations.TopicsControllerCreateTopicResponse,
|
|
124
125
|
| errors.ErrorDto
|
|
126
|
+
| errors.ValidationErrorDto
|
|
125
127
|
| SDKError
|
|
126
128
|
| SDKValidationError
|
|
127
129
|
| UnexpectedClientError
|
|
@@ -130,15 +132,12 @@ export async function topicsCreate(
|
|
|
130
132
|
| RequestTimeoutError
|
|
131
133
|
| ConnectionError
|
|
132
134
|
>(
|
|
133
|
-
M.json(200, operations.TopicsControllerCreateTopicResponse$inboundSchema, {
|
|
134
|
-
hdrs: true,
|
|
135
|
-
key: "Result",
|
|
136
|
-
}),
|
|
137
135
|
M.json(201, operations.TopicsControllerCreateTopicResponse$inboundSchema, {
|
|
138
136
|
hdrs: true,
|
|
139
137
|
key: "Result",
|
|
140
138
|
}),
|
|
141
139
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
140
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
142
141
|
M.fail([429, 503]),
|
|
143
142
|
M.fail(["4XX", "5XX"]),
|
|
144
143
|
)(response, { extraFields: responseFields });
|
|
@@ -36,6 +36,7 @@ export async function topicsDelete(
|
|
|
36
36
|
Result<
|
|
37
37
|
operations.TopicsControllerDeleteTopicResponse | undefined,
|
|
38
38
|
| errors.ErrorDto
|
|
39
|
+
| errors.ValidationErrorDto
|
|
39
40
|
| SDKError
|
|
40
41
|
| SDKValidationError
|
|
41
42
|
| UnexpectedClientError
|
|
@@ -116,7 +117,7 @@ export async function topicsDelete(
|
|
|
116
117
|
|
|
117
118
|
const doResult = await client._do(req, {
|
|
118
119
|
context,
|
|
119
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
120
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
120
121
|
retryConfig: context.retryConfig,
|
|
121
122
|
retryCodes: context.retryCodes,
|
|
122
123
|
});
|
|
@@ -132,6 +133,7 @@ export async function topicsDelete(
|
|
|
132
133
|
const [result] = await M.match<
|
|
133
134
|
operations.TopicsControllerDeleteTopicResponse | undefined,
|
|
134
135
|
| errors.ErrorDto
|
|
136
|
+
| errors.ValidationErrorDto
|
|
135
137
|
| SDKError
|
|
136
138
|
| SDKValidationError
|
|
137
139
|
| UnexpectedClientError
|
|
@@ -140,18 +142,14 @@ export async function topicsDelete(
|
|
|
140
142
|
| RequestTimeoutError
|
|
141
143
|
| ConnectionError
|
|
142
144
|
>(
|
|
143
|
-
M.json(
|
|
144
|
-
200,
|
|
145
|
-
operations.TopicsControllerDeleteTopicResponse$inboundSchema.optional(),
|
|
146
|
-
{ hdrs: true, key: "Result" },
|
|
147
|
-
),
|
|
148
145
|
M.nil(
|
|
149
146
|
204,
|
|
150
147
|
operations.TopicsControllerDeleteTopicResponse$inboundSchema.optional(),
|
|
151
148
|
{ hdrs: true },
|
|
152
149
|
),
|
|
153
|
-
M.jsonErr(400, errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
154
|
-
M.fail([
|
|
150
|
+
M.jsonErr([400, 404], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
151
|
+
M.fail([409, 429, 503]),
|
|
152
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
155
153
|
M.fail(["4XX", "5XX"]),
|
|
156
154
|
)(response, { extraFields: responseFields });
|
|
157
155
|
if (!result.ok) {
|
package/src/funcs/topicsList.ts
CHANGED
|
@@ -36,6 +36,7 @@ export async function topicsList(
|
|
|
36
36
|
Result<
|
|
37
37
|
operations.TopicsControllerListTopicsResponse,
|
|
38
38
|
| errors.ErrorDto
|
|
39
|
+
| errors.ValidationErrorDto
|
|
39
40
|
| SDKError
|
|
40
41
|
| SDKValidationError
|
|
41
42
|
| UnexpectedClientError
|
|
@@ -112,7 +113,7 @@ export async function topicsList(
|
|
|
112
113
|
|
|
113
114
|
const doResult = await client._do(req, {
|
|
114
115
|
context,
|
|
115
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
116
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
116
117
|
retryConfig: context.retryConfig,
|
|
117
118
|
retryCodes: context.retryCodes,
|
|
118
119
|
});
|
|
@@ -128,6 +129,7 @@ export async function topicsList(
|
|
|
128
129
|
const [result] = await M.match<
|
|
129
130
|
operations.TopicsControllerListTopicsResponse,
|
|
130
131
|
| errors.ErrorDto
|
|
132
|
+
| errors.ValidationErrorDto
|
|
131
133
|
| SDKError
|
|
132
134
|
| SDKValidationError
|
|
133
135
|
| UnexpectedClientError
|
|
@@ -141,6 +143,7 @@ export async function topicsList(
|
|
|
141
143
|
key: "Result",
|
|
142
144
|
}),
|
|
143
145
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
146
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
144
147
|
M.fail([429, 503]),
|
|
145
148
|
M.fail(["4XX", "5XX"]),
|
|
146
149
|
)(response, { extraFields: responseFields });
|
|
@@ -38,6 +38,7 @@ export async function topicsRename(
|
|
|
38
38
|
Result<
|
|
39
39
|
operations.TopicsControllerRenameTopicResponse,
|
|
40
40
|
| errors.ErrorDto
|
|
41
|
+
| errors.ValidationErrorDto
|
|
41
42
|
| SDKError
|
|
42
43
|
| SDKValidationError
|
|
43
44
|
| UnexpectedClientError
|
|
@@ -122,7 +123,7 @@ export async function topicsRename(
|
|
|
122
123
|
|
|
123
124
|
const doResult = await client._do(req, {
|
|
124
125
|
context,
|
|
125
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
126
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
126
127
|
retryConfig: context.retryConfig,
|
|
127
128
|
retryCodes: context.retryCodes,
|
|
128
129
|
});
|
|
@@ -138,6 +139,7 @@ export async function topicsRename(
|
|
|
138
139
|
const [result] = await M.match<
|
|
139
140
|
operations.TopicsControllerRenameTopicResponse,
|
|
140
141
|
| errors.ErrorDto
|
|
142
|
+
| errors.ValidationErrorDto
|
|
141
143
|
| SDKError
|
|
142
144
|
| SDKValidationError
|
|
143
145
|
| UnexpectedClientError
|
|
@@ -151,6 +153,7 @@ export async function topicsRename(
|
|
|
151
153
|
key: "Result",
|
|
152
154
|
}),
|
|
153
155
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
156
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
154
157
|
M.fail([429, 503]),
|
|
155
158
|
M.fail(["4XX", "5XX"]),
|
|
156
159
|
)(response, { extraFields: responseFields });
|
|
@@ -36,6 +36,7 @@ export async function topicsRetrieve(
|
|
|
36
36
|
Result<
|
|
37
37
|
operations.TopicsControllerGetTopicResponse,
|
|
38
38
|
| errors.ErrorDto
|
|
39
|
+
| errors.ValidationErrorDto
|
|
39
40
|
| SDKError
|
|
40
41
|
| SDKValidationError
|
|
41
42
|
| UnexpectedClientError
|
|
@@ -116,7 +117,7 @@ export async function topicsRetrieve(
|
|
|
116
117
|
|
|
117
118
|
const doResult = await client._do(req, {
|
|
118
119
|
context,
|
|
119
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
120
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
120
121
|
retryConfig: context.retryConfig,
|
|
121
122
|
retryCodes: context.retryCodes,
|
|
122
123
|
});
|
|
@@ -132,6 +133,7 @@ export async function topicsRetrieve(
|
|
|
132
133
|
const [result] = await M.match<
|
|
133
134
|
operations.TopicsControllerGetTopicResponse,
|
|
134
135
|
| errors.ErrorDto
|
|
136
|
+
| errors.ValidationErrorDto
|
|
135
137
|
| SDKError
|
|
136
138
|
| SDKValidationError
|
|
137
139
|
| UnexpectedClientError
|
|
@@ -145,6 +147,7 @@ export async function topicsRetrieve(
|
|
|
145
147
|
key: "Result",
|
|
146
148
|
}),
|
|
147
149
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
150
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
148
151
|
M.fail([429, 503]),
|
|
149
152
|
M.fail(["4XX", "5XX"]),
|
|
150
153
|
)(response, { extraFields: responseFields });
|
|
@@ -38,6 +38,7 @@ export async function topicsSubscribersAssign(
|
|
|
38
38
|
Result<
|
|
39
39
|
operations.TopicsControllerAssignResponse,
|
|
40
40
|
| errors.ErrorDto
|
|
41
|
+
| errors.ValidationErrorDto
|
|
41
42
|
| SDKError
|
|
42
43
|
| SDKValidationError
|
|
43
44
|
| UnexpectedClientError
|
|
@@ -122,7 +123,7 @@ export async function topicsSubscribersAssign(
|
|
|
122
123
|
|
|
123
124
|
const doResult = await client._do(req, {
|
|
124
125
|
context,
|
|
125
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
126
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
126
127
|
retryConfig: context.retryConfig,
|
|
127
128
|
retryCodes: context.retryCodes,
|
|
128
129
|
});
|
|
@@ -138,6 +139,7 @@ export async function topicsSubscribersAssign(
|
|
|
138
139
|
const [result] = await M.match<
|
|
139
140
|
operations.TopicsControllerAssignResponse,
|
|
140
141
|
| errors.ErrorDto
|
|
142
|
+
| errors.ValidationErrorDto
|
|
141
143
|
| SDKError
|
|
142
144
|
| SDKValidationError
|
|
143
145
|
| UnexpectedClientError
|
|
@@ -151,6 +153,7 @@ export async function topicsSubscribersAssign(
|
|
|
151
153
|
key: "Result",
|
|
152
154
|
}),
|
|
153
155
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
156
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
154
157
|
M.fail([429, 503]),
|
|
155
158
|
M.fail(["4XX", "5XX"]),
|
|
156
159
|
)(response, { extraFields: responseFields });
|
|
@@ -38,6 +38,7 @@ export async function topicsSubscribersRemove(
|
|
|
38
38
|
Result<
|
|
39
39
|
operations.TopicsControllerRemoveSubscribersResponse | undefined,
|
|
40
40
|
| errors.ErrorDto
|
|
41
|
+
| errors.ValidationErrorDto
|
|
41
42
|
| SDKError
|
|
42
43
|
| SDKValidationError
|
|
43
44
|
| UnexpectedClientError
|
|
@@ -126,7 +127,7 @@ export async function topicsSubscribersRemove(
|
|
|
126
127
|
|
|
127
128
|
const doResult = await client._do(req, {
|
|
128
129
|
context,
|
|
129
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
130
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
130
131
|
retryConfig: context.retryConfig,
|
|
131
132
|
retryCodes: context.retryCodes,
|
|
132
133
|
});
|
|
@@ -142,6 +143,7 @@ export async function topicsSubscribersRemove(
|
|
|
142
143
|
const [result] = await M.match<
|
|
143
144
|
operations.TopicsControllerRemoveSubscribersResponse | undefined,
|
|
144
145
|
| errors.ErrorDto
|
|
146
|
+
| errors.ValidationErrorDto
|
|
145
147
|
| SDKError
|
|
146
148
|
| SDKValidationError
|
|
147
149
|
| UnexpectedClientError
|
|
@@ -150,12 +152,6 @@ export async function topicsSubscribersRemove(
|
|
|
150
152
|
| RequestTimeoutError
|
|
151
153
|
| ConnectionError
|
|
152
154
|
>(
|
|
153
|
-
M.json(
|
|
154
|
-
200,
|
|
155
|
-
operations.TopicsControllerRemoveSubscribersResponse$inboundSchema
|
|
156
|
-
.optional(),
|
|
157
|
-
{ hdrs: true, key: "Result" },
|
|
158
|
-
),
|
|
159
155
|
M.nil(
|
|
160
156
|
204,
|
|
161
157
|
operations.TopicsControllerRemoveSubscribersResponse$inboundSchema
|
|
@@ -163,6 +159,7 @@ export async function topicsSubscribersRemove(
|
|
|
163
159
|
{ hdrs: true },
|
|
164
160
|
),
|
|
165
161
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
162
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
166
163
|
M.fail([429, 503]),
|
|
167
164
|
M.fail(["4XX", "5XX"]),
|
|
168
165
|
)(response, { extraFields: responseFields });
|
|
@@ -37,6 +37,7 @@ export async function topicsSubscribersRetrieve(
|
|
|
37
37
|
Result<
|
|
38
38
|
operations.TopicsControllerGetTopicSubscriberResponse,
|
|
39
39
|
| errors.ErrorDto
|
|
40
|
+
| errors.ValidationErrorDto
|
|
40
41
|
| SDKError
|
|
41
42
|
| SDKValidationError
|
|
42
43
|
| UnexpectedClientError
|
|
@@ -127,7 +128,7 @@ export async function topicsSubscribersRetrieve(
|
|
|
127
128
|
|
|
128
129
|
const doResult = await client._do(req, {
|
|
129
130
|
context,
|
|
130
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
131
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
131
132
|
retryConfig: context.retryConfig,
|
|
132
133
|
retryCodes: context.retryCodes,
|
|
133
134
|
});
|
|
@@ -143,6 +144,7 @@ export async function topicsSubscribersRetrieve(
|
|
|
143
144
|
const [result] = await M.match<
|
|
144
145
|
operations.TopicsControllerGetTopicSubscriberResponse,
|
|
145
146
|
| errors.ErrorDto
|
|
147
|
+
| errors.ValidationErrorDto
|
|
146
148
|
| SDKError
|
|
147
149
|
| SDKValidationError
|
|
148
150
|
| UnexpectedClientError
|
|
@@ -157,6 +159,7 @@ export async function topicsSubscribersRetrieve(
|
|
|
157
159
|
{ hdrs: true, key: "Result" },
|
|
158
160
|
),
|
|
159
161
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
162
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
160
163
|
M.fail([429, 503]),
|
|
161
164
|
M.fail(["4XX", "5XX"]),
|
|
162
165
|
)(response, { extraFields: responseFields });
|
package/src/funcs/trigger.ts
CHANGED
|
@@ -40,6 +40,7 @@ export async function trigger(
|
|
|
40
40
|
Result<
|
|
41
41
|
operations.EventsControllerTriggerResponse,
|
|
42
42
|
| errors.ErrorDto
|
|
43
|
+
| errors.ValidationErrorDto
|
|
43
44
|
| SDKError
|
|
44
45
|
| SDKValidationError
|
|
45
46
|
| UnexpectedClientError
|
|
@@ -109,7 +110,7 @@ export async function trigger(
|
|
|
109
110
|
|
|
110
111
|
const doResult = await client._do(req, {
|
|
111
112
|
context,
|
|
112
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
113
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
113
114
|
retryConfig: context.retryConfig,
|
|
114
115
|
retryCodes: context.retryCodes,
|
|
115
116
|
});
|
|
@@ -125,6 +126,7 @@ export async function trigger(
|
|
|
125
126
|
const [result] = await M.match<
|
|
126
127
|
operations.EventsControllerTriggerResponse,
|
|
127
128
|
| errors.ErrorDto
|
|
129
|
+
| errors.ValidationErrorDto
|
|
128
130
|
| SDKError
|
|
129
131
|
| SDKValidationError
|
|
130
132
|
| UnexpectedClientError
|
|
@@ -133,15 +135,12 @@ export async function trigger(
|
|
|
133
135
|
| RequestTimeoutError
|
|
134
136
|
| ConnectionError
|
|
135
137
|
>(
|
|
136
|
-
M.json(200, operations.EventsControllerTriggerResponse$inboundSchema, {
|
|
137
|
-
hdrs: true,
|
|
138
|
-
key: "Result",
|
|
139
|
-
}),
|
|
140
138
|
M.json(201, operations.EventsControllerTriggerResponse$inboundSchema, {
|
|
141
139
|
hdrs: true,
|
|
142
140
|
key: "Result",
|
|
143
141
|
}),
|
|
144
142
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
143
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
145
144
|
M.fail([429, 503]),
|
|
146
145
|
M.fail(["4XX", "5XX"]),
|
|
147
146
|
)(response, { extraFields: responseFields });
|
|
@@ -39,6 +39,7 @@ export async function triggerBroadcast(
|
|
|
39
39
|
Result<
|
|
40
40
|
operations.EventsControllerBroadcastEventToAllResponse,
|
|
41
41
|
| errors.ErrorDto
|
|
42
|
+
| errors.ValidationErrorDto
|
|
42
43
|
| SDKError
|
|
43
44
|
| SDKValidationError
|
|
44
45
|
| UnexpectedClientError
|
|
@@ -109,7 +110,7 @@ export async function triggerBroadcast(
|
|
|
109
110
|
|
|
110
111
|
const doResult = await client._do(req, {
|
|
111
112
|
context,
|
|
112
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
113
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
113
114
|
retryConfig: context.retryConfig,
|
|
114
115
|
retryCodes: context.retryCodes,
|
|
115
116
|
});
|
|
@@ -125,6 +126,7 @@ export async function triggerBroadcast(
|
|
|
125
126
|
const [result] = await M.match<
|
|
126
127
|
operations.EventsControllerBroadcastEventToAllResponse,
|
|
127
128
|
| errors.ErrorDto
|
|
129
|
+
| errors.ValidationErrorDto
|
|
128
130
|
| SDKError
|
|
129
131
|
| SDKValidationError
|
|
130
132
|
| UnexpectedClientError
|
|
@@ -139,6 +141,7 @@ export async function triggerBroadcast(
|
|
|
139
141
|
{ hdrs: true, key: "Result" },
|
|
140
142
|
),
|
|
141
143
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
144
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
142
145
|
M.fail([429, 503]),
|
|
143
146
|
M.fail(["4XX", "5XX"]),
|
|
144
147
|
)(response, { extraFields: responseFields });
|
package/src/funcs/triggerBulk.ts
CHANGED
|
@@ -39,6 +39,7 @@ export async function triggerBulk(
|
|
|
39
39
|
Result<
|
|
40
40
|
operations.EventsControllerTriggerBulkResponse,
|
|
41
41
|
| errors.ErrorDto
|
|
42
|
+
| errors.ValidationErrorDto
|
|
42
43
|
| SDKError
|
|
43
44
|
| SDKValidationError
|
|
44
45
|
| UnexpectedClientError
|
|
@@ -108,7 +109,7 @@ export async function triggerBulk(
|
|
|
108
109
|
|
|
109
110
|
const doResult = await client._do(req, {
|
|
110
111
|
context,
|
|
111
|
-
errorCodes: ["400", "404", "409", "429", "4XX", "503", "5XX"],
|
|
112
|
+
errorCodes: ["400", "404", "409", "422", "429", "4XX", "503", "5XX"],
|
|
112
113
|
retryConfig: context.retryConfig,
|
|
113
114
|
retryCodes: context.retryCodes,
|
|
114
115
|
});
|
|
@@ -124,6 +125,7 @@ export async function triggerBulk(
|
|
|
124
125
|
const [result] = await M.match<
|
|
125
126
|
operations.EventsControllerTriggerBulkResponse,
|
|
126
127
|
| errors.ErrorDto
|
|
128
|
+
| errors.ValidationErrorDto
|
|
127
129
|
| SDKError
|
|
128
130
|
| SDKValidationError
|
|
129
131
|
| UnexpectedClientError
|
|
@@ -132,15 +134,12 @@ export async function triggerBulk(
|
|
|
132
134
|
| RequestTimeoutError
|
|
133
135
|
| ConnectionError
|
|
134
136
|
>(
|
|
135
|
-
M.json(200, operations.EventsControllerTriggerBulkResponse$inboundSchema, {
|
|
136
|
-
hdrs: true,
|
|
137
|
-
key: "Result",
|
|
138
|
-
}),
|
|
139
137
|
M.json(201, operations.EventsControllerTriggerBulkResponse$inboundSchema, {
|
|
140
138
|
hdrs: true,
|
|
141
139
|
key: "Result",
|
|
142
140
|
}),
|
|
143
141
|
M.jsonErr([400, 404, 409], errors.ErrorDto$inboundSchema, { hdrs: true }),
|
|
142
|
+
M.jsonErr(422, errors.ValidationErrorDto$inboundSchema, { hdrs: true }),
|
|
144
143
|
M.fail([429, 503]),
|
|
145
144
|
M.fail(["4XX", "5XX"]),
|
|
146
145
|
)(response, { extraFields: responseFields });
|
package/src/lib/config.ts
CHANGED
|
@@ -55,7 +55,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
55
55
|
export const SDK_METADATA = {
|
|
56
56
|
language: "typescript",
|
|
57
57
|
openapiDocVersion: "1.0",
|
|
58
|
-
sdkVersion: "0.0.1-alpha.
|
|
58
|
+
sdkVersion: "0.0.1-alpha.106",
|
|
59
59
|
genVersion: "2.477.4",
|
|
60
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.
|
|
60
|
+
userAgent: "speakeasy-sdk/typescript 0.0.1-alpha.106 2.477.4 1.0 @novu/api",
|
|
61
61
|
} as const;
|
|
@@ -87,6 +87,5 @@ export * from "./updatesubscriberonlineflagrequestdto.js";
|
|
|
87
87
|
export * from "./updatesubscriberpreferencerequestdto.js";
|
|
88
88
|
export * from "./updatesubscriberpreferenceresponsedto.js";
|
|
89
89
|
export * from "./updatesubscriberrequestdto.js";
|
|
90
|
-
export * from "./validationerrordto.js";
|
|
91
90
|
export * from "./workflowresponse.js";
|
|
92
91
|
export * from "./workflowtostepcontrolvaluesdto.js";
|