@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
|
@@ -5,18 +5,18 @@
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "
|
|
8
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type Four = {};
|
|
11
11
|
|
|
12
|
-
export type
|
|
12
|
+
export type Value = Four | string | number | boolean;
|
|
13
13
|
|
|
14
14
|
export type Errors = {
|
|
15
15
|
messages: Array<string>;
|
|
16
16
|
value: Four | string | number | boolean | null;
|
|
17
17
|
};
|
|
18
18
|
|
|
19
|
-
export type
|
|
19
|
+
export type ValidationErrorDtoData = {
|
|
20
20
|
/**
|
|
21
21
|
* HTTP status code of the error response.
|
|
22
22
|
*/
|
|
@@ -50,6 +50,56 @@ export type ValidationErrorDto = {
|
|
|
50
50
|
errors: { [k: string]: Errors };
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
+
export class ValidationErrorDto extends Error {
|
|
54
|
+
/**
|
|
55
|
+
* HTTP status code of the error response.
|
|
56
|
+
*/
|
|
57
|
+
statusCode: number;
|
|
58
|
+
/**
|
|
59
|
+
* Timestamp of when the error occurred.
|
|
60
|
+
*/
|
|
61
|
+
timestamp: string;
|
|
62
|
+
/**
|
|
63
|
+
* The path where the error occurred.
|
|
64
|
+
*/
|
|
65
|
+
path: string;
|
|
66
|
+
/**
|
|
67
|
+
* Optional context object for additional error details.
|
|
68
|
+
*/
|
|
69
|
+
ctx?: { [k: string]: any } | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* Optional unique identifier for the error, useful for tracking using Sentry and
|
|
72
|
+
*
|
|
73
|
+
* @remarks
|
|
74
|
+
* New Relic, only available for 500.
|
|
75
|
+
*/
|
|
76
|
+
errorId?: string | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* A record of validation errors keyed by field name
|
|
79
|
+
*/
|
|
80
|
+
errors: { [k: string]: Errors };
|
|
81
|
+
|
|
82
|
+
/** The original data that was passed to this error instance. */
|
|
83
|
+
data$: ValidationErrorDtoData;
|
|
84
|
+
|
|
85
|
+
constructor(err: ValidationErrorDtoData) {
|
|
86
|
+
const message = "message" in err && typeof err.message === "string"
|
|
87
|
+
? err.message
|
|
88
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
89
|
+
super(message);
|
|
90
|
+
this.data$ = err;
|
|
91
|
+
|
|
92
|
+
this.statusCode = err.statusCode;
|
|
93
|
+
this.timestamp = err.timestamp;
|
|
94
|
+
this.path = err.path;
|
|
95
|
+
if (err.ctx != null) this.ctx = err.ctx;
|
|
96
|
+
if (err.errorId != null) this.errorId = err.errorId;
|
|
97
|
+
this.errors = err.errors;
|
|
98
|
+
|
|
99
|
+
this.name = "ValidationErrorDto";
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
53
103
|
/** @internal */
|
|
54
104
|
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
55
105
|
.object({});
|
|
@@ -89,29 +139,22 @@ export function fourFromJSON(
|
|
|
89
139
|
}
|
|
90
140
|
|
|
91
141
|
/** @internal */
|
|
92
|
-
export const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
z.number(),
|
|
100
|
-
z.boolean(),
|
|
101
|
-
]);
|
|
142
|
+
export const Value$inboundSchema: z.ZodType<Value, z.ZodTypeDef, unknown> = z
|
|
143
|
+
.union([
|
|
144
|
+
z.lazy(() => Four$inboundSchema),
|
|
145
|
+
z.string(),
|
|
146
|
+
z.number(),
|
|
147
|
+
z.boolean(),
|
|
148
|
+
]);
|
|
102
149
|
|
|
103
150
|
/** @internal */
|
|
104
|
-
export type
|
|
105
|
-
| Four$Outbound
|
|
106
|
-
| string
|
|
107
|
-
| number
|
|
108
|
-
| boolean;
|
|
151
|
+
export type Value$Outbound = Four$Outbound | string | number | boolean;
|
|
109
152
|
|
|
110
153
|
/** @internal */
|
|
111
|
-
export const
|
|
112
|
-
|
|
154
|
+
export const Value$outboundSchema: z.ZodType<
|
|
155
|
+
Value$Outbound,
|
|
113
156
|
z.ZodTypeDef,
|
|
114
|
-
|
|
157
|
+
Value
|
|
115
158
|
> = z.union([
|
|
116
159
|
z.lazy(() => Four$outboundSchema),
|
|
117
160
|
z.string(),
|
|
@@ -123,30 +166,26 @@ export const ValidationErrorDtoValue$outboundSchema: z.ZodType<
|
|
|
123
166
|
* @internal
|
|
124
167
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
125
168
|
*/
|
|
126
|
-
export namespace
|
|
127
|
-
/** @deprecated use `
|
|
128
|
-
export const inboundSchema =
|
|
129
|
-
/** @deprecated use `
|
|
130
|
-
export const outboundSchema =
|
|
131
|
-
/** @deprecated use `
|
|
132
|
-
export type Outbound =
|
|
169
|
+
export namespace Value$ {
|
|
170
|
+
/** @deprecated use `Value$inboundSchema` instead. */
|
|
171
|
+
export const inboundSchema = Value$inboundSchema;
|
|
172
|
+
/** @deprecated use `Value$outboundSchema` instead. */
|
|
173
|
+
export const outboundSchema = Value$outboundSchema;
|
|
174
|
+
/** @deprecated use `Value$Outbound` instead. */
|
|
175
|
+
export type Outbound = Value$Outbound;
|
|
133
176
|
}
|
|
134
177
|
|
|
135
|
-
export function
|
|
136
|
-
|
|
137
|
-
): string {
|
|
138
|
-
return JSON.stringify(
|
|
139
|
-
ValidationErrorDtoValue$outboundSchema.parse(validationErrorDtoValue),
|
|
140
|
-
);
|
|
178
|
+
export function valueToJSON(value: Value): string {
|
|
179
|
+
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
141
180
|
}
|
|
142
181
|
|
|
143
|
-
export function
|
|
182
|
+
export function valueFromJSON(
|
|
144
183
|
jsonString: string,
|
|
145
|
-
): SafeParseResult<
|
|
184
|
+
): SafeParseResult<Value, SDKValidationError> {
|
|
146
185
|
return safeParse(
|
|
147
186
|
jsonString,
|
|
148
|
-
(x) =>
|
|
149
|
-
`Failed to parse '
|
|
187
|
+
(x) => Value$inboundSchema.parse(JSON.parse(x)),
|
|
188
|
+
`Failed to parse 'Value' from JSON`,
|
|
150
189
|
);
|
|
151
190
|
}
|
|
152
191
|
|
|
@@ -227,7 +266,10 @@ export const ValidationErrorDto$inboundSchema: z.ZodType<
|
|
|
227
266
|
ctx: z.record(z.any()).optional(),
|
|
228
267
|
errorId: z.string().optional(),
|
|
229
268
|
errors: z.record(z.lazy(() => Errors$inboundSchema)),
|
|
230
|
-
})
|
|
269
|
+
})
|
|
270
|
+
.transform((v) => {
|
|
271
|
+
return new ValidationErrorDto(v);
|
|
272
|
+
});
|
|
231
273
|
|
|
232
274
|
/** @internal */
|
|
233
275
|
export type ValidationErrorDto$Outbound = {
|
|
@@ -245,15 +287,17 @@ export const ValidationErrorDto$outboundSchema: z.ZodType<
|
|
|
245
287
|
ValidationErrorDto$Outbound,
|
|
246
288
|
z.ZodTypeDef,
|
|
247
289
|
ValidationErrorDto
|
|
248
|
-
> = z.
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
290
|
+
> = z.instanceof(ValidationErrorDto)
|
|
291
|
+
.transform(v => v.data$)
|
|
292
|
+
.pipe(z.object({
|
|
293
|
+
statusCode: z.number(),
|
|
294
|
+
timestamp: z.string(),
|
|
295
|
+
path: z.string(),
|
|
296
|
+
message: z.string(),
|
|
297
|
+
ctx: z.record(z.any()).optional(),
|
|
298
|
+
errorId: z.string().optional(),
|
|
299
|
+
errors: z.record(z.lazy(() => Errors$outboundSchema)),
|
|
300
|
+
}));
|
|
257
301
|
|
|
258
302
|
/**
|
|
259
303
|
* @internal
|
|
@@ -267,21 +311,3 @@ export namespace ValidationErrorDto$ {
|
|
|
267
311
|
/** @deprecated use `ValidationErrorDto$Outbound` instead. */
|
|
268
312
|
export type Outbound = ValidationErrorDto$Outbound;
|
|
269
313
|
}
|
|
270
|
-
|
|
271
|
-
export function validationErrorDtoToJSON(
|
|
272
|
-
validationErrorDto: ValidationErrorDto,
|
|
273
|
-
): string {
|
|
274
|
-
return JSON.stringify(
|
|
275
|
-
ValidationErrorDto$outboundSchema.parse(validationErrorDto),
|
|
276
|
-
);
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
export function validationErrorDtoFromJSON(
|
|
280
|
-
jsonString: string,
|
|
281
|
-
): SafeParseResult<ValidationErrorDto, SDKValidationError> {
|
|
282
|
-
return safeParse(
|
|
283
|
-
jsonString,
|
|
284
|
-
(x) => ValidationErrorDto$inboundSchema.parse(JSON.parse(x)),
|
|
285
|
-
`Failed to parse 'ValidationErrorDto' from JSON`,
|
|
286
|
-
);
|
|
287
|
-
}
|
|
@@ -9,76 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type EventsControllerTriggerResponseResult =
|
|
13
|
-
| components.TriggerEventResponseDto
|
|
14
|
-
| components.ValidationErrorDto;
|
|
15
|
-
|
|
16
12
|
export type EventsControllerTriggerResponse = {
|
|
17
13
|
headers: { [k: string]: Array<string> };
|
|
18
|
-
result: components.TriggerEventResponseDto
|
|
14
|
+
result: components.TriggerEventResponseDto;
|
|
19
15
|
};
|
|
20
16
|
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const EventsControllerTriggerResponseResult$inboundSchema: z.ZodType<
|
|
23
|
-
EventsControllerTriggerResponseResult,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
unknown
|
|
26
|
-
> = z.union([
|
|
27
|
-
components.TriggerEventResponseDto$inboundSchema,
|
|
28
|
-
components.ValidationErrorDto$inboundSchema,
|
|
29
|
-
]);
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type EventsControllerTriggerResponseResult$Outbound =
|
|
33
|
-
| components.TriggerEventResponseDto$Outbound
|
|
34
|
-
| components.ValidationErrorDto$Outbound;
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const EventsControllerTriggerResponseResult$outboundSchema: z.ZodType<
|
|
38
|
-
EventsControllerTriggerResponseResult$Outbound,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
EventsControllerTriggerResponseResult
|
|
41
|
-
> = z.union([
|
|
42
|
-
components.TriggerEventResponseDto$outboundSchema,
|
|
43
|
-
components.ValidationErrorDto$outboundSchema,
|
|
44
|
-
]);
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export namespace EventsControllerTriggerResponseResult$ {
|
|
51
|
-
/** @deprecated use `EventsControllerTriggerResponseResult$inboundSchema` instead. */
|
|
52
|
-
export const inboundSchema =
|
|
53
|
-
EventsControllerTriggerResponseResult$inboundSchema;
|
|
54
|
-
/** @deprecated use `EventsControllerTriggerResponseResult$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema =
|
|
56
|
-
EventsControllerTriggerResponseResult$outboundSchema;
|
|
57
|
-
/** @deprecated use `EventsControllerTriggerResponseResult$Outbound` instead. */
|
|
58
|
-
export type Outbound = EventsControllerTriggerResponseResult$Outbound;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export function eventsControllerTriggerResponseResultToJSON(
|
|
62
|
-
eventsControllerTriggerResponseResult: EventsControllerTriggerResponseResult,
|
|
63
|
-
): string {
|
|
64
|
-
return JSON.stringify(
|
|
65
|
-
EventsControllerTriggerResponseResult$outboundSchema.parse(
|
|
66
|
-
eventsControllerTriggerResponseResult,
|
|
67
|
-
),
|
|
68
|
-
);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export function eventsControllerTriggerResponseResultFromJSON(
|
|
72
|
-
jsonString: string,
|
|
73
|
-
): SafeParseResult<EventsControllerTriggerResponseResult, SDKValidationError> {
|
|
74
|
-
return safeParse(
|
|
75
|
-
jsonString,
|
|
76
|
-
(x) =>
|
|
77
|
-
EventsControllerTriggerResponseResult$inboundSchema.parse(JSON.parse(x)),
|
|
78
|
-
`Failed to parse 'EventsControllerTriggerResponseResult' from JSON`,
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
17
|
/** @internal */
|
|
83
18
|
export const EventsControllerTriggerResponse$inboundSchema: z.ZodType<
|
|
84
19
|
EventsControllerTriggerResponse,
|
|
@@ -86,10 +21,7 @@ export const EventsControllerTriggerResponse$inboundSchema: z.ZodType<
|
|
|
86
21
|
unknown
|
|
87
22
|
> = z.object({
|
|
88
23
|
Headers: z.record(z.array(z.string())),
|
|
89
|
-
Result:
|
|
90
|
-
components.TriggerEventResponseDto$inboundSchema,
|
|
91
|
-
components.ValidationErrorDto$inboundSchema,
|
|
92
|
-
]),
|
|
24
|
+
Result: components.TriggerEventResponseDto$inboundSchema,
|
|
93
25
|
}).transform((v) => {
|
|
94
26
|
return remap$(v, {
|
|
95
27
|
"Headers": "headers",
|
|
@@ -100,9 +32,7 @@ export const EventsControllerTriggerResponse$inboundSchema: z.ZodType<
|
|
|
100
32
|
/** @internal */
|
|
101
33
|
export type EventsControllerTriggerResponse$Outbound = {
|
|
102
34
|
Headers: { [k: string]: Array<string> };
|
|
103
|
-
Result:
|
|
104
|
-
| components.TriggerEventResponseDto$Outbound
|
|
105
|
-
| components.ValidationErrorDto$Outbound;
|
|
35
|
+
Result: components.TriggerEventResponseDto$Outbound;
|
|
106
36
|
};
|
|
107
37
|
|
|
108
38
|
/** @internal */
|
|
@@ -112,10 +42,7 @@ export const EventsControllerTriggerResponse$outboundSchema: z.ZodType<
|
|
|
112
42
|
EventsControllerTriggerResponse
|
|
113
43
|
> = z.object({
|
|
114
44
|
headers: z.record(z.array(z.string())),
|
|
115
|
-
result:
|
|
116
|
-
components.TriggerEventResponseDto$outboundSchema,
|
|
117
|
-
components.ValidationErrorDto$outboundSchema,
|
|
118
|
-
]),
|
|
45
|
+
result: components.TriggerEventResponseDto$outboundSchema,
|
|
119
46
|
}).transform((v) => {
|
|
120
47
|
return remap$(v, {
|
|
121
48
|
headers: "Headers",
|
|
@@ -9,85 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type EventsControllerTriggerBulkResponseResult =
|
|
13
|
-
| components.ValidationErrorDto
|
|
14
|
-
| Array<components.TriggerEventResponseDto>;
|
|
15
|
-
|
|
16
12
|
export type EventsControllerTriggerBulkResponse = {
|
|
17
13
|
headers: { [k: string]: Array<string> };
|
|
18
|
-
result:
|
|
19
|
-
| components.ValidationErrorDto
|
|
20
|
-
| Array<components.TriggerEventResponseDto>;
|
|
14
|
+
result: Array<components.TriggerEventResponseDto>;
|
|
21
15
|
};
|
|
22
16
|
|
|
23
|
-
/** @internal */
|
|
24
|
-
export const EventsControllerTriggerBulkResponseResult$inboundSchema: z.ZodType<
|
|
25
|
-
EventsControllerTriggerBulkResponseResult,
|
|
26
|
-
z.ZodTypeDef,
|
|
27
|
-
unknown
|
|
28
|
-
> = z.union([
|
|
29
|
-
components.ValidationErrorDto$inboundSchema,
|
|
30
|
-
z.array(components.TriggerEventResponseDto$inboundSchema),
|
|
31
|
-
]);
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type EventsControllerTriggerBulkResponseResult$Outbound =
|
|
35
|
-
| components.ValidationErrorDto$Outbound
|
|
36
|
-
| Array<components.TriggerEventResponseDto$Outbound>;
|
|
37
|
-
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const EventsControllerTriggerBulkResponseResult$outboundSchema:
|
|
40
|
-
z.ZodType<
|
|
41
|
-
EventsControllerTriggerBulkResponseResult$Outbound,
|
|
42
|
-
z.ZodTypeDef,
|
|
43
|
-
EventsControllerTriggerBulkResponseResult
|
|
44
|
-
> = z.union([
|
|
45
|
-
components.ValidationErrorDto$outboundSchema,
|
|
46
|
-
z.array(components.TriggerEventResponseDto$outboundSchema),
|
|
47
|
-
]);
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export namespace EventsControllerTriggerBulkResponseResult$ {
|
|
54
|
-
/** @deprecated use `EventsControllerTriggerBulkResponseResult$inboundSchema` instead. */
|
|
55
|
-
export const inboundSchema =
|
|
56
|
-
EventsControllerTriggerBulkResponseResult$inboundSchema;
|
|
57
|
-
/** @deprecated use `EventsControllerTriggerBulkResponseResult$outboundSchema` instead. */
|
|
58
|
-
export const outboundSchema =
|
|
59
|
-
EventsControllerTriggerBulkResponseResult$outboundSchema;
|
|
60
|
-
/** @deprecated use `EventsControllerTriggerBulkResponseResult$Outbound` instead. */
|
|
61
|
-
export type Outbound = EventsControllerTriggerBulkResponseResult$Outbound;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function eventsControllerTriggerBulkResponseResultToJSON(
|
|
65
|
-
eventsControllerTriggerBulkResponseResult:
|
|
66
|
-
EventsControllerTriggerBulkResponseResult,
|
|
67
|
-
): string {
|
|
68
|
-
return JSON.stringify(
|
|
69
|
-
EventsControllerTriggerBulkResponseResult$outboundSchema.parse(
|
|
70
|
-
eventsControllerTriggerBulkResponseResult,
|
|
71
|
-
),
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function eventsControllerTriggerBulkResponseResultFromJSON(
|
|
76
|
-
jsonString: string,
|
|
77
|
-
): SafeParseResult<
|
|
78
|
-
EventsControllerTriggerBulkResponseResult,
|
|
79
|
-
SDKValidationError
|
|
80
|
-
> {
|
|
81
|
-
return safeParse(
|
|
82
|
-
jsonString,
|
|
83
|
-
(x) =>
|
|
84
|
-
EventsControllerTriggerBulkResponseResult$inboundSchema.parse(
|
|
85
|
-
JSON.parse(x),
|
|
86
|
-
),
|
|
87
|
-
`Failed to parse 'EventsControllerTriggerBulkResponseResult' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
17
|
/** @internal */
|
|
92
18
|
export const EventsControllerTriggerBulkResponse$inboundSchema: z.ZodType<
|
|
93
19
|
EventsControllerTriggerBulkResponse,
|
|
@@ -95,10 +21,7 @@ export const EventsControllerTriggerBulkResponse$inboundSchema: z.ZodType<
|
|
|
95
21
|
unknown
|
|
96
22
|
> = z.object({
|
|
97
23
|
Headers: z.record(z.array(z.string())),
|
|
98
|
-
Result: z.
|
|
99
|
-
components.ValidationErrorDto$inboundSchema,
|
|
100
|
-
z.array(components.TriggerEventResponseDto$inboundSchema),
|
|
101
|
-
]),
|
|
24
|
+
Result: z.array(components.TriggerEventResponseDto$inboundSchema),
|
|
102
25
|
}).transform((v) => {
|
|
103
26
|
return remap$(v, {
|
|
104
27
|
"Headers": "headers",
|
|
@@ -109,9 +32,7 @@ export const EventsControllerTriggerBulkResponse$inboundSchema: z.ZodType<
|
|
|
109
32
|
/** @internal */
|
|
110
33
|
export type EventsControllerTriggerBulkResponse$Outbound = {
|
|
111
34
|
Headers: { [k: string]: Array<string> };
|
|
112
|
-
Result:
|
|
113
|
-
| components.ValidationErrorDto$Outbound
|
|
114
|
-
| Array<components.TriggerEventResponseDto$Outbound>;
|
|
35
|
+
Result: Array<components.TriggerEventResponseDto$Outbound>;
|
|
115
36
|
};
|
|
116
37
|
|
|
117
38
|
/** @internal */
|
|
@@ -121,10 +42,7 @@ export const EventsControllerTriggerBulkResponse$outboundSchema: z.ZodType<
|
|
|
121
42
|
EventsControllerTriggerBulkResponse
|
|
122
43
|
> = z.object({
|
|
123
44
|
headers: z.record(z.array(z.string())),
|
|
124
|
-
result: z.
|
|
125
|
-
components.ValidationErrorDto$outboundSchema,
|
|
126
|
-
z.array(components.TriggerEventResponseDto$outboundSchema),
|
|
127
|
-
]),
|
|
45
|
+
result: z.array(components.TriggerEventResponseDto$outboundSchema),
|
|
128
46
|
}).transform((v) => {
|
|
129
47
|
return remap$(v, {
|
|
130
48
|
headers: "Headers",
|
|
@@ -9,85 +9,11 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
9
9
|
import * as components from "../components/index.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export type IntegrationsControllerCreateIntegrationResponseResult =
|
|
13
|
-
| components.ValidationErrorDto
|
|
14
|
-
| components.IntegrationResponseDto;
|
|
15
|
-
|
|
16
12
|
export type IntegrationsControllerCreateIntegrationResponse = {
|
|
17
13
|
headers: { [k: string]: Array<string> };
|
|
18
|
-
result: components.
|
|
14
|
+
result: components.IntegrationResponseDto;
|
|
19
15
|
};
|
|
20
16
|
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const IntegrationsControllerCreateIntegrationResponseResult$inboundSchema:
|
|
23
|
-
z.ZodType<
|
|
24
|
-
IntegrationsControllerCreateIntegrationResponseResult,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.union([
|
|
28
|
-
components.ValidationErrorDto$inboundSchema,
|
|
29
|
-
components.IntegrationResponseDto$inboundSchema,
|
|
30
|
-
]);
|
|
31
|
-
|
|
32
|
-
/** @internal */
|
|
33
|
-
export type IntegrationsControllerCreateIntegrationResponseResult$Outbound =
|
|
34
|
-
| components.ValidationErrorDto$Outbound
|
|
35
|
-
| components.IntegrationResponseDto$Outbound;
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const IntegrationsControllerCreateIntegrationResponseResult$outboundSchema:
|
|
39
|
-
z.ZodType<
|
|
40
|
-
IntegrationsControllerCreateIntegrationResponseResult$Outbound,
|
|
41
|
-
z.ZodTypeDef,
|
|
42
|
-
IntegrationsControllerCreateIntegrationResponseResult
|
|
43
|
-
> = z.union([
|
|
44
|
-
components.ValidationErrorDto$outboundSchema,
|
|
45
|
-
components.IntegrationResponseDto$outboundSchema,
|
|
46
|
-
]);
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* @internal
|
|
50
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
|
-
*/
|
|
52
|
-
export namespace IntegrationsControllerCreateIntegrationResponseResult$ {
|
|
53
|
-
/** @deprecated use `IntegrationsControllerCreateIntegrationResponseResult$inboundSchema` instead. */
|
|
54
|
-
export const inboundSchema =
|
|
55
|
-
IntegrationsControllerCreateIntegrationResponseResult$inboundSchema;
|
|
56
|
-
/** @deprecated use `IntegrationsControllerCreateIntegrationResponseResult$outboundSchema` instead. */
|
|
57
|
-
export const outboundSchema =
|
|
58
|
-
IntegrationsControllerCreateIntegrationResponseResult$outboundSchema;
|
|
59
|
-
/** @deprecated use `IntegrationsControllerCreateIntegrationResponseResult$Outbound` instead. */
|
|
60
|
-
export type Outbound =
|
|
61
|
-
IntegrationsControllerCreateIntegrationResponseResult$Outbound;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export function integrationsControllerCreateIntegrationResponseResultToJSON(
|
|
65
|
-
integrationsControllerCreateIntegrationResponseResult:
|
|
66
|
-
IntegrationsControllerCreateIntegrationResponseResult,
|
|
67
|
-
): string {
|
|
68
|
-
return JSON.stringify(
|
|
69
|
-
IntegrationsControllerCreateIntegrationResponseResult$outboundSchema.parse(
|
|
70
|
-
integrationsControllerCreateIntegrationResponseResult,
|
|
71
|
-
),
|
|
72
|
-
);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export function integrationsControllerCreateIntegrationResponseResultFromJSON(
|
|
76
|
-
jsonString: string,
|
|
77
|
-
): SafeParseResult<
|
|
78
|
-
IntegrationsControllerCreateIntegrationResponseResult,
|
|
79
|
-
SDKValidationError
|
|
80
|
-
> {
|
|
81
|
-
return safeParse(
|
|
82
|
-
jsonString,
|
|
83
|
-
(x) =>
|
|
84
|
-
IntegrationsControllerCreateIntegrationResponseResult$inboundSchema.parse(
|
|
85
|
-
JSON.parse(x),
|
|
86
|
-
),
|
|
87
|
-
`Failed to parse 'IntegrationsControllerCreateIntegrationResponseResult' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
17
|
/** @internal */
|
|
92
18
|
export const IntegrationsControllerCreateIntegrationResponse$inboundSchema:
|
|
93
19
|
z.ZodType<
|
|
@@ -96,10 +22,7 @@ export const IntegrationsControllerCreateIntegrationResponse$inboundSchema:
|
|
|
96
22
|
unknown
|
|
97
23
|
> = z.object({
|
|
98
24
|
Headers: z.record(z.array(z.string())),
|
|
99
|
-
Result:
|
|
100
|
-
components.ValidationErrorDto$inboundSchema,
|
|
101
|
-
components.IntegrationResponseDto$inboundSchema,
|
|
102
|
-
]),
|
|
25
|
+
Result: components.IntegrationResponseDto$inboundSchema,
|
|
103
26
|
}).transform((v) => {
|
|
104
27
|
return remap$(v, {
|
|
105
28
|
"Headers": "headers",
|
|
@@ -110,9 +33,7 @@ export const IntegrationsControllerCreateIntegrationResponse$inboundSchema:
|
|
|
110
33
|
/** @internal */
|
|
111
34
|
export type IntegrationsControllerCreateIntegrationResponse$Outbound = {
|
|
112
35
|
Headers: { [k: string]: Array<string> };
|
|
113
|
-
Result:
|
|
114
|
-
| components.ValidationErrorDto$Outbound
|
|
115
|
-
| components.IntegrationResponseDto$Outbound;
|
|
36
|
+
Result: components.IntegrationResponseDto$Outbound;
|
|
116
37
|
};
|
|
117
38
|
|
|
118
39
|
/** @internal */
|
|
@@ -123,10 +44,7 @@ export const IntegrationsControllerCreateIntegrationResponse$outboundSchema:
|
|
|
123
44
|
IntegrationsControllerCreateIntegrationResponse
|
|
124
45
|
> = z.object({
|
|
125
46
|
headers: z.record(z.array(z.string())),
|
|
126
|
-
result:
|
|
127
|
-
components.ValidationErrorDto$outboundSchema,
|
|
128
|
-
components.IntegrationResponseDto$outboundSchema,
|
|
129
|
-
]),
|
|
47
|
+
result: components.IntegrationResponseDto$outboundSchema,
|
|
130
48
|
}).transform((v) => {
|
|
131
49
|
return remap$(v, {
|
|
132
50
|
headers: "Headers",
|
|
@@ -7,7 +7,6 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import * as components from "../components/index.js";
|
|
11
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
11
|
|
|
13
12
|
/**
|
|
@@ -35,7 +34,6 @@ export type MessagesControllerDeleteMessagesByTransactionIdRequest = {
|
|
|
35
34
|
|
|
36
35
|
export type MessagesControllerDeleteMessagesByTransactionIdResponse = {
|
|
37
36
|
headers: { [k: string]: Array<string> };
|
|
38
|
-
result: components.ValidationErrorDto;
|
|
39
37
|
};
|
|
40
38
|
|
|
41
39
|
/** @internal */
|
|
@@ -135,18 +133,15 @@ export const MessagesControllerDeleteMessagesByTransactionIdResponse$inboundSche
|
|
|
135
133
|
unknown
|
|
136
134
|
> = z.object({
|
|
137
135
|
Headers: z.record(z.array(z.string())),
|
|
138
|
-
Result: components.ValidationErrorDto$inboundSchema,
|
|
139
136
|
}).transform((v) => {
|
|
140
137
|
return remap$(v, {
|
|
141
138
|
"Headers": "headers",
|
|
142
|
-
"Result": "result",
|
|
143
139
|
});
|
|
144
140
|
});
|
|
145
141
|
|
|
146
142
|
/** @internal */
|
|
147
143
|
export type MessagesControllerDeleteMessagesByTransactionIdResponse$Outbound = {
|
|
148
144
|
Headers: { [k: string]: Array<string> };
|
|
149
|
-
Result: components.ValidationErrorDto$Outbound;
|
|
150
145
|
};
|
|
151
146
|
|
|
152
147
|
/** @internal */
|
|
@@ -157,11 +152,9 @@ export const MessagesControllerDeleteMessagesByTransactionIdResponse$outboundSch
|
|
|
157
152
|
MessagesControllerDeleteMessagesByTransactionIdResponse
|
|
158
153
|
> = z.object({
|
|
159
154
|
headers: z.record(z.array(z.string())),
|
|
160
|
-
result: components.ValidationErrorDto$outboundSchema,
|
|
161
155
|
}).transform((v) => {
|
|
162
156
|
return remap$(v, {
|
|
163
157
|
headers: "Headers",
|
|
164
|
-
result: "Result",
|
|
165
158
|
});
|
|
166
159
|
});
|
|
167
160
|
|
|
@@ -6,12 +6,10 @@ import * as z from "zod";
|
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
10
|
|
|
12
11
|
export type SubscribersControllerBulkCreateSubscribersResponse = {
|
|
13
12
|
headers: { [k: string]: Array<string> };
|
|
14
|
-
result: components.ValidationErrorDto;
|
|
15
13
|
};
|
|
16
14
|
|
|
17
15
|
/** @internal */
|
|
@@ -22,18 +20,15 @@ export const SubscribersControllerBulkCreateSubscribersResponse$inboundSchema:
|
|
|
22
20
|
unknown
|
|
23
21
|
> = z.object({
|
|
24
22
|
Headers: z.record(z.array(z.string())),
|
|
25
|
-
Result: components.ValidationErrorDto$inboundSchema,
|
|
26
23
|
}).transform((v) => {
|
|
27
24
|
return remap$(v, {
|
|
28
25
|
"Headers": "headers",
|
|
29
|
-
"Result": "result",
|
|
30
26
|
});
|
|
31
27
|
});
|
|
32
28
|
|
|
33
29
|
/** @internal */
|
|
34
30
|
export type SubscribersControllerBulkCreateSubscribersResponse$Outbound = {
|
|
35
31
|
Headers: { [k: string]: Array<string> };
|
|
36
|
-
Result: components.ValidationErrorDto$Outbound;
|
|
37
32
|
};
|
|
38
33
|
|
|
39
34
|
/** @internal */
|
|
@@ -44,11 +39,9 @@ export const SubscribersControllerBulkCreateSubscribersResponse$outboundSchema:
|
|
|
44
39
|
SubscribersControllerBulkCreateSubscribersResponse
|
|
45
40
|
> = z.object({
|
|
46
41
|
headers: z.record(z.array(z.string())),
|
|
47
|
-
result: components.ValidationErrorDto$outboundSchema,
|
|
48
42
|
}).transform((v) => {
|
|
49
43
|
return remap$(v, {
|
|
50
44
|
headers: "Headers",
|
|
51
|
-
result: "Result",
|
|
52
45
|
});
|
|
53
46
|
});
|
|
54
47
|
|