@novu/api 0.0.1-alpha.190 → 0.0.1-alpha.191
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 +11 -5
- package/docs/sdks/admin/README.md +12 -10
- package/docs/sdks/authentication/README.md +12 -10
- package/docs/sdks/credentials/README.md +18 -15
- package/docs/sdks/integrations/README.md +36 -30
- package/docs/sdks/messages/README.md +18 -15
- package/docs/sdks/notifications/README.md +12 -10
- package/docs/sdks/novu/README.md +24 -20
- package/docs/sdks/novumessages/README.md +18 -15
- package/docs/sdks/novunotifications/README.md +12 -10
- package/docs/sdks/novusubscribers/README.md +18 -15
- package/docs/sdks/preferences/README.md +24 -20
- package/docs/sdks/properties/README.md +6 -5
- package/docs/sdks/stats/README.md +12 -10
- package/docs/sdks/subscribers/README.md +36 -30
- package/docs/sdks/topics/README.md +30 -25
- package/docs/sdks/webhooks/README.md +6 -5
- package/funcs/adminIdempotencyGet.d.ts +1 -1
- package/funcs/adminIdempotencyGet.d.ts.map +1 -1
- package/funcs/adminIdempotencyGet.js +5 -3
- package/funcs/adminIdempotencyGet.js.map +1 -1
- package/funcs/adminIdempotencyPost.d.ts +1 -1
- package/funcs/adminIdempotencyPost.d.ts.map +1 -1
- package/funcs/adminIdempotencyPost.js +6 -4
- package/funcs/adminIdempotencyPost.js.map +1 -1
- package/funcs/cancel.d.ts +1 -1
- package/funcs/cancel.d.ts.map +1 -1
- package/funcs/cancel.js +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +6 -6
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +6 -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 +5 -3
- 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 +6 -6
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +6 -7
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +5 -3
- 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 +6 -5
- 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 +5 -3
- 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 +6 -7
- 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 +5 -3
- 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 +6 -7
- 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/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 +2 -23
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollerbulkcreatesubscribers.js +3 -40
- 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/adminIdempotencyGet.ts +12 -3
- package/src/funcs/adminIdempotencyPost.ts +13 -4
- package/src/funcs/cancel.ts +12 -3
- package/src/funcs/integrationsCreate.ts +12 -8
- package/src/funcs/integrationsDelete.ts +12 -3
- package/src/funcs/integrationsList.ts +12 -3
- package/src/funcs/integrationsListActive.ts +12 -3
- package/src/funcs/integrationsSetAsPrimary.ts +12 -3
- package/src/funcs/integrationsUpdate.ts +12 -3
- package/src/funcs/integrationsWebhooksRetrieve.ts +12 -3
- package/src/funcs/messagesDelete.ts +12 -3
- package/src/funcs/messagesDeleteByTransactionId.ts +12 -10
- package/src/funcs/messagesRetrieve.ts +12 -3
- package/src/funcs/notificationsList.ts +12 -3
- package/src/funcs/notificationsRetrieve.ts +12 -3
- package/src/funcs/notificationsStatsGraph.ts +12 -3
- package/src/funcs/notificationsStatsRetrieve.ts +12 -3
- package/src/funcs/subscribersAuthenticationChatAccessOauth.ts +12 -3
- package/src/funcs/subscribersAuthenticationChatAccessOauthCallBack.ts +12 -3
- package/src/funcs/subscribersCreate.ts +12 -8
- package/src/funcs/subscribersCreateBulk.ts +12 -9
- package/src/funcs/subscribersCredentialsAppend.ts +12 -3
- package/src/funcs/subscribersCredentialsDelete.ts +12 -10
- package/src/funcs/subscribersCredentialsUpdate.ts +12 -3
- package/src/funcs/subscribersDelete.ts +12 -3
- package/src/funcs/subscribersList.ts +13 -3
- package/src/funcs/subscribersMessagesMarkAll.ts +12 -8
- package/src/funcs/subscribersMessagesMarkAllAs.ts +12 -8
- package/src/funcs/subscribersMessagesUpdateAsSeen.ts +12 -8
- package/src/funcs/subscribersNotificationsFeed.ts +12 -3
- package/src/funcs/subscribersNotificationsUnseenCount.ts +12 -3
- package/src/funcs/subscribersPreferencesList.ts +12 -3
- package/src/funcs/subscribersPreferencesRetrieveByLevel.ts +12 -3
- package/src/funcs/subscribersPreferencesUpdate.ts +12 -3
- package/src/funcs/subscribersPreferencesUpdateGlobal.ts +12 -3
- package/src/funcs/subscribersPropertiesUpdateOnlineFlag.ts +12 -3
- package/src/funcs/subscribersRetrieve.ts +12 -3
- package/src/funcs/subscribersUpdate.ts +12 -3
- package/src/funcs/topicsCreate.ts +12 -7
- package/src/funcs/topicsDelete.ts +12 -8
- package/src/funcs/topicsList.ts +12 -3
- package/src/funcs/topicsRename.ts +12 -3
- package/src/funcs/topicsRetrieve.ts +12 -3
- package/src/funcs/topicsSubscribersAssign.ts +12 -3
- package/src/funcs/topicsSubscribersRemove.ts +12 -9
- package/src/funcs/topicsSubscribersRetrieve.ts +12 -3
- package/src/funcs/trigger.ts +12 -7
- package/src/funcs/triggerBroadcast.ts +12 -3
- package/src/funcs/triggerBulk.ts +12 -7
- package/src/lib/config.ts +2 -2
- package/src/models/components/index.ts +0 -1
- package/src/models/operations/eventscontrollertrigger.ts +4 -77
- package/src/models/operations/eventscontrollertriggerbulk.ts +4 -84
- package/src/models/operations/integrationscontrollercreateintegration.ts +4 -86
- package/src/models/operations/messagescontrollerdeletemessagesbytransactionid.ts +0 -7
- package/src/models/operations/subscriberscontrollerbulkcreatesubscribers.ts +4 -84
- package/src/models/operations/subscriberscontrollercreatesubscriber.ts +4 -86
- package/src/models/operations/subscriberscontrollerdeletesubscribercredentials.ts +0 -7
- package/src/models/operations/subscriberscontrollermarkactionasseen.ts +4 -84
- 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/errordto.d.ts +0 -64
- package/models/components/errordto.d.ts.map +0 -1
- package/models/components/errordto.js +0 -69
- package/models/components/errordto.js.map +0 -1
- package/src/models/components/errordto.ts +0 -103
|
@@ -17,13 +17,9 @@ export type TopicsControllerCreateTopicRequest = {
|
|
|
17
17
|
createTopicRequestDto: components.CreateTopicRequestDto;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
|
-
export type TopicsControllerCreateTopicResponseResult =
|
|
21
|
-
| components.CreateTopicResponseDto
|
|
22
|
-
| components.ErrorDto;
|
|
23
|
-
|
|
24
20
|
export type TopicsControllerCreateTopicResponse = {
|
|
25
21
|
headers: { [k: string]: Array<string> };
|
|
26
|
-
result: components.CreateTopicResponseDto
|
|
22
|
+
result: components.CreateTopicResponseDto;
|
|
27
23
|
};
|
|
28
24
|
|
|
29
25
|
/** @internal */
|
|
@@ -97,74 +93,6 @@ export function topicsControllerCreateTopicRequestFromJSON(
|
|
|
97
93
|
);
|
|
98
94
|
}
|
|
99
95
|
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const TopicsControllerCreateTopicResponseResult$inboundSchema: z.ZodType<
|
|
102
|
-
TopicsControllerCreateTopicResponseResult,
|
|
103
|
-
z.ZodTypeDef,
|
|
104
|
-
unknown
|
|
105
|
-
> = z.union([
|
|
106
|
-
components.CreateTopicResponseDto$inboundSchema,
|
|
107
|
-
components.ErrorDto$inboundSchema,
|
|
108
|
-
]);
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export type TopicsControllerCreateTopicResponseResult$Outbound =
|
|
112
|
-
| components.CreateTopicResponseDto$Outbound
|
|
113
|
-
| components.ErrorDto$Outbound;
|
|
114
|
-
|
|
115
|
-
/** @internal */
|
|
116
|
-
export const TopicsControllerCreateTopicResponseResult$outboundSchema:
|
|
117
|
-
z.ZodType<
|
|
118
|
-
TopicsControllerCreateTopicResponseResult$Outbound,
|
|
119
|
-
z.ZodTypeDef,
|
|
120
|
-
TopicsControllerCreateTopicResponseResult
|
|
121
|
-
> = z.union([
|
|
122
|
-
components.CreateTopicResponseDto$outboundSchema,
|
|
123
|
-
components.ErrorDto$outboundSchema,
|
|
124
|
-
]);
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
-
*/
|
|
130
|
-
export namespace TopicsControllerCreateTopicResponseResult$ {
|
|
131
|
-
/** @deprecated use `TopicsControllerCreateTopicResponseResult$inboundSchema` instead. */
|
|
132
|
-
export const inboundSchema =
|
|
133
|
-
TopicsControllerCreateTopicResponseResult$inboundSchema;
|
|
134
|
-
/** @deprecated use `TopicsControllerCreateTopicResponseResult$outboundSchema` instead. */
|
|
135
|
-
export const outboundSchema =
|
|
136
|
-
TopicsControllerCreateTopicResponseResult$outboundSchema;
|
|
137
|
-
/** @deprecated use `TopicsControllerCreateTopicResponseResult$Outbound` instead. */
|
|
138
|
-
export type Outbound = TopicsControllerCreateTopicResponseResult$Outbound;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export function topicsControllerCreateTopicResponseResultToJSON(
|
|
142
|
-
topicsControllerCreateTopicResponseResult:
|
|
143
|
-
TopicsControllerCreateTopicResponseResult,
|
|
144
|
-
): string {
|
|
145
|
-
return JSON.stringify(
|
|
146
|
-
TopicsControllerCreateTopicResponseResult$outboundSchema.parse(
|
|
147
|
-
topicsControllerCreateTopicResponseResult,
|
|
148
|
-
),
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function topicsControllerCreateTopicResponseResultFromJSON(
|
|
153
|
-
jsonString: string,
|
|
154
|
-
): SafeParseResult<
|
|
155
|
-
TopicsControllerCreateTopicResponseResult,
|
|
156
|
-
SDKValidationError
|
|
157
|
-
> {
|
|
158
|
-
return safeParse(
|
|
159
|
-
jsonString,
|
|
160
|
-
(x) =>
|
|
161
|
-
TopicsControllerCreateTopicResponseResult$inboundSchema.parse(
|
|
162
|
-
JSON.parse(x),
|
|
163
|
-
),
|
|
164
|
-
`Failed to parse 'TopicsControllerCreateTopicResponseResult' from JSON`,
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
96
|
/** @internal */
|
|
169
97
|
export const TopicsControllerCreateTopicResponse$inboundSchema: z.ZodType<
|
|
170
98
|
TopicsControllerCreateTopicResponse,
|
|
@@ -172,10 +100,7 @@ export const TopicsControllerCreateTopicResponse$inboundSchema: z.ZodType<
|
|
|
172
100
|
unknown
|
|
173
101
|
> = z.object({
|
|
174
102
|
Headers: z.record(z.array(z.string())),
|
|
175
|
-
Result:
|
|
176
|
-
components.CreateTopicResponseDto$inboundSchema,
|
|
177
|
-
components.ErrorDto$inboundSchema,
|
|
178
|
-
]),
|
|
103
|
+
Result: components.CreateTopicResponseDto$inboundSchema,
|
|
179
104
|
}).transform((v) => {
|
|
180
105
|
return remap$(v, {
|
|
181
106
|
"Headers": "headers",
|
|
@@ -186,9 +111,7 @@ export const TopicsControllerCreateTopicResponse$inboundSchema: z.ZodType<
|
|
|
186
111
|
/** @internal */
|
|
187
112
|
export type TopicsControllerCreateTopicResponse$Outbound = {
|
|
188
113
|
Headers: { [k: string]: Array<string> };
|
|
189
|
-
Result:
|
|
190
|
-
| components.CreateTopicResponseDto$Outbound
|
|
191
|
-
| components.ErrorDto$Outbound;
|
|
114
|
+
Result: components.CreateTopicResponseDto$Outbound;
|
|
192
115
|
};
|
|
193
116
|
|
|
194
117
|
/** @internal */
|
|
@@ -198,10 +121,7 @@ export const TopicsControllerCreateTopicResponse$outboundSchema: z.ZodType<
|
|
|
198
121
|
TopicsControllerCreateTopicResponse
|
|
199
122
|
> = z.object({
|
|
200
123
|
headers: z.record(z.array(z.string())),
|
|
201
|
-
result:
|
|
202
|
-
components.CreateTopicResponseDto$outboundSchema,
|
|
203
|
-
components.ErrorDto$outboundSchema,
|
|
204
|
-
]),
|
|
124
|
+
result: components.CreateTopicResponseDto$outboundSchema,
|
|
205
125
|
}).transform((v) => {
|
|
206
126
|
return remap$(v, {
|
|
207
127
|
headers: "Headers",
|
|
@@ -6,7 +6,6 @@ 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 TopicsControllerDeleteTopicRequest = {
|
|
@@ -22,7 +21,6 @@ export type TopicsControllerDeleteTopicRequest = {
|
|
|
22
21
|
|
|
23
22
|
export type TopicsControllerDeleteTopicResponse = {
|
|
24
23
|
headers: { [k: string]: Array<string> };
|
|
25
|
-
result: components.ErrorDto;
|
|
26
24
|
};
|
|
27
25
|
|
|
28
26
|
/** @internal */
|
|
@@ -101,18 +99,15 @@ export const TopicsControllerDeleteTopicResponse$inboundSchema: z.ZodType<
|
|
|
101
99
|
unknown
|
|
102
100
|
> = z.object({
|
|
103
101
|
Headers: z.record(z.array(z.string())),
|
|
104
|
-
Result: components.ErrorDto$inboundSchema,
|
|
105
102
|
}).transform((v) => {
|
|
106
103
|
return remap$(v, {
|
|
107
104
|
"Headers": "headers",
|
|
108
|
-
"Result": "result",
|
|
109
105
|
});
|
|
110
106
|
});
|
|
111
107
|
|
|
112
108
|
/** @internal */
|
|
113
109
|
export type TopicsControllerDeleteTopicResponse$Outbound = {
|
|
114
110
|
Headers: { [k: string]: Array<string> };
|
|
115
|
-
Result: components.ErrorDto$Outbound;
|
|
116
111
|
};
|
|
117
112
|
|
|
118
113
|
/** @internal */
|
|
@@ -122,11 +117,9 @@ export const TopicsControllerDeleteTopicResponse$outboundSchema: z.ZodType<
|
|
|
122
117
|
TopicsControllerDeleteTopicResponse
|
|
123
118
|
> = z.object({
|
|
124
119
|
headers: z.record(z.array(z.string())),
|
|
125
|
-
result: components.ErrorDto$outboundSchema,
|
|
126
120
|
}).transform((v) => {
|
|
127
121
|
return remap$(v, {
|
|
128
122
|
headers: "Headers",
|
|
129
|
-
result: "Result",
|
|
130
123
|
});
|
|
131
124
|
});
|
|
132
125
|
|
|
@@ -23,7 +23,6 @@ export type TopicsControllerRemoveSubscribersRequest = {
|
|
|
23
23
|
|
|
24
24
|
export type TopicsControllerRemoveSubscribersResponse = {
|
|
25
25
|
headers: { [k: string]: Array<string> };
|
|
26
|
-
result: components.ErrorDto;
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
/** @internal */
|
|
@@ -116,18 +115,15 @@ export const TopicsControllerRemoveSubscribersResponse$inboundSchema: z.ZodType<
|
|
|
116
115
|
unknown
|
|
117
116
|
> = z.object({
|
|
118
117
|
Headers: z.record(z.array(z.string())),
|
|
119
|
-
Result: components.ErrorDto$inboundSchema,
|
|
120
118
|
}).transform((v) => {
|
|
121
119
|
return remap$(v, {
|
|
122
120
|
"Headers": "headers",
|
|
123
|
-
"Result": "result",
|
|
124
121
|
});
|
|
125
122
|
});
|
|
126
123
|
|
|
127
124
|
/** @internal */
|
|
128
125
|
export type TopicsControllerRemoveSubscribersResponse$Outbound = {
|
|
129
126
|
Headers: { [k: string]: Array<string> };
|
|
130
|
-
Result: components.ErrorDto$Outbound;
|
|
131
127
|
};
|
|
132
128
|
|
|
133
129
|
/** @internal */
|
|
@@ -138,11 +134,9 @@ export const TopicsControllerRemoveSubscribersResponse$outboundSchema:
|
|
|
138
134
|
TopicsControllerRemoveSubscribersResponse
|
|
139
135
|
> = z.object({
|
|
140
136
|
headers: z.record(z.array(z.string())),
|
|
141
|
-
result: components.ErrorDto$outboundSchema,
|
|
142
137
|
}).transform((v) => {
|
|
143
138
|
return remap$(v, {
|
|
144
139
|
headers: "Headers",
|
|
145
|
-
result: "Result",
|
|
146
140
|
});
|
|
147
141
|
});
|
|
148
142
|
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type ErrorDto = {
|
|
5
|
-
/**
|
|
6
|
-
* HTTP status code of the error response.
|
|
7
|
-
*/
|
|
8
|
-
statusCode: number;
|
|
9
|
-
/**
|
|
10
|
-
* Timestamp of when the error occurred.
|
|
11
|
-
*/
|
|
12
|
-
timestamp: string;
|
|
13
|
-
/**
|
|
14
|
-
* The path where the error occurred.
|
|
15
|
-
*/
|
|
16
|
-
path: string;
|
|
17
|
-
/**
|
|
18
|
-
* A detailed error message.
|
|
19
|
-
*/
|
|
20
|
-
message: string;
|
|
21
|
-
/**
|
|
22
|
-
* Optional context object for additional error details.
|
|
23
|
-
*/
|
|
24
|
-
ctx?: {
|
|
25
|
-
[k: string]: any;
|
|
26
|
-
} | undefined;
|
|
27
|
-
/**
|
|
28
|
-
* Optional unique identifier for the error, useful for tracking using Sentry and
|
|
29
|
-
*
|
|
30
|
-
* @remarks
|
|
31
|
-
* New Relic, only available for 500.
|
|
32
|
-
*/
|
|
33
|
-
errorId?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
/** @internal */
|
|
36
|
-
export declare const ErrorDto$inboundSchema: z.ZodType<ErrorDto, z.ZodTypeDef, unknown>;
|
|
37
|
-
/** @internal */
|
|
38
|
-
export type ErrorDto$Outbound = {
|
|
39
|
-
statusCode: number;
|
|
40
|
-
timestamp: string;
|
|
41
|
-
path: string;
|
|
42
|
-
message: string;
|
|
43
|
-
ctx?: {
|
|
44
|
-
[k: string]: any;
|
|
45
|
-
} | undefined;
|
|
46
|
-
errorId?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const ErrorDto$outboundSchema: z.ZodType<ErrorDto$Outbound, z.ZodTypeDef, ErrorDto>;
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
export declare namespace ErrorDto$ {
|
|
55
|
-
/** @deprecated use `ErrorDto$inboundSchema` instead. */
|
|
56
|
-
const inboundSchema: z.ZodType<ErrorDto, z.ZodTypeDef, unknown>;
|
|
57
|
-
/** @deprecated use `ErrorDto$outboundSchema` instead. */
|
|
58
|
-
const outboundSchema: z.ZodType<ErrorDto$Outbound, z.ZodTypeDef, ErrorDto>;
|
|
59
|
-
/** @deprecated use `ErrorDto$Outbound` instead. */
|
|
60
|
-
type Outbound = ErrorDto$Outbound;
|
|
61
|
-
}
|
|
62
|
-
export declare function errorDtoToJSON(errorDto: ErrorDto): string;
|
|
63
|
-
export declare function errorDtoFromJSON(jsonString: string): SafeParseResult<ErrorDto, SDKValidationError>;
|
|
64
|
-
//# sourceMappingURL=errordto.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errordto.d.ts","sourceRoot":"","sources":["../../src/models/components/errordto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,QAAQ,GAAG;IACrB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sBAAsB,EAAE,CAAC,CAAC,OAAO,CAC5C,QAAQ,EACR,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iBAAiB,GAAG;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;IACvC,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,OAAO,CAC7C,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,QAAQ,CAQR,CAAC;AAEH;;;GAGG;AACH,yBAAiB,SAAS,CAAC;IACzB,wDAAwD;IACjD,MAAM,aAAa,4CAAyB,CAAC;IACpD,yDAAyD;IAClD,MAAM,cAAc,sDAA0B,CAAC;IACtD,mDAAmD;IACnD,KAAY,QAAQ,GAAG,iBAAiB,CAAC;CAC1C;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,QAAQ,GAAG,MAAM,CAEzD;AAED,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,CAM/C"}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
-
}
|
|
11
|
-
Object.defineProperty(o, k2, desc);
|
|
12
|
-
}) : (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
o[k2] = m[k];
|
|
15
|
-
}));
|
|
16
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
-
}) : function(o, v) {
|
|
19
|
-
o["default"] = v;
|
|
20
|
-
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
-
if (mod && mod.__esModule) return mod;
|
|
23
|
-
var result = {};
|
|
24
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
-
__setModuleDefault(result, mod);
|
|
26
|
-
return result;
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.errorDtoFromJSON = exports.errorDtoToJSON = exports.ErrorDto$ = exports.ErrorDto$outboundSchema = exports.ErrorDto$inboundSchema = void 0;
|
|
30
|
-
const z = __importStar(require("zod"));
|
|
31
|
-
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
-
/** @internal */
|
|
33
|
-
exports.ErrorDto$inboundSchema = z.object({
|
|
34
|
-
statusCode: z.number(),
|
|
35
|
-
timestamp: z.string(),
|
|
36
|
-
path: z.string(),
|
|
37
|
-
message: z.string(),
|
|
38
|
-
ctx: z.record(z.any()).optional(),
|
|
39
|
-
errorId: z.string().optional(),
|
|
40
|
-
});
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.ErrorDto$outboundSchema = z.object({
|
|
43
|
-
statusCode: z.number(),
|
|
44
|
-
timestamp: z.string(),
|
|
45
|
-
path: z.string(),
|
|
46
|
-
message: z.string(),
|
|
47
|
-
ctx: z.record(z.any()).optional(),
|
|
48
|
-
errorId: z.string().optional(),
|
|
49
|
-
});
|
|
50
|
-
/**
|
|
51
|
-
* @internal
|
|
52
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
|
-
*/
|
|
54
|
-
var ErrorDto$;
|
|
55
|
-
(function (ErrorDto$) {
|
|
56
|
-
/** @deprecated use `ErrorDto$inboundSchema` instead. */
|
|
57
|
-
ErrorDto$.inboundSchema = exports.ErrorDto$inboundSchema;
|
|
58
|
-
/** @deprecated use `ErrorDto$outboundSchema` instead. */
|
|
59
|
-
ErrorDto$.outboundSchema = exports.ErrorDto$outboundSchema;
|
|
60
|
-
})(ErrorDto$ || (exports.ErrorDto$ = ErrorDto$ = {}));
|
|
61
|
-
function errorDtoToJSON(errorDto) {
|
|
62
|
-
return JSON.stringify(exports.ErrorDto$outboundSchema.parse(errorDto));
|
|
63
|
-
}
|
|
64
|
-
exports.errorDtoToJSON = errorDtoToJSON;
|
|
65
|
-
function errorDtoFromJSON(jsonString) {
|
|
66
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ErrorDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ErrorDto' from JSON`);
|
|
67
|
-
}
|
|
68
|
-
exports.errorDtoFromJSON = errorDtoFromJSON;
|
|
69
|
-
//# sourceMappingURL=errordto.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"errordto.js","sourceRoot":"","sources":["../../src/models/components/errordto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAkCjD,gBAAgB;AACH,QAAA,sBAAsB,GAI/B,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,uBAAuB,GAIhC,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC/B,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,SAAS,CAOzB;AAPD,WAAiB,SAAS;IACxB,wDAAwD;IAC3C,uBAAa,GAAG,8BAAsB,CAAC;IACpD,yDAAyD;IAC5C,wBAAc,GAAG,+BAAuB,CAAC;AAGxD,CAAC,EAPgB,SAAS,yBAAT,SAAS,QAOzB;AAED,SAAgB,cAAc,CAAC,QAAkB;IAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,+BAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAFD,wCAEC;AAED,SAAgB,gBAAgB,CAC9B,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8BAAsB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClD,sCAAsC,CACvC,CAAC;AACJ,CAAC;AARD,4CAQC"}
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
-
|
|
10
|
-
export type ErrorDto = {
|
|
11
|
-
/**
|
|
12
|
-
* HTTP status code of the error response.
|
|
13
|
-
*/
|
|
14
|
-
statusCode: number;
|
|
15
|
-
/**
|
|
16
|
-
* Timestamp of when the error occurred.
|
|
17
|
-
*/
|
|
18
|
-
timestamp: string;
|
|
19
|
-
/**
|
|
20
|
-
* The path where the error occurred.
|
|
21
|
-
*/
|
|
22
|
-
path: string;
|
|
23
|
-
/**
|
|
24
|
-
* A detailed error message.
|
|
25
|
-
*/
|
|
26
|
-
message: string;
|
|
27
|
-
/**
|
|
28
|
-
* Optional context object for additional error details.
|
|
29
|
-
*/
|
|
30
|
-
ctx?: { [k: string]: any } | undefined;
|
|
31
|
-
/**
|
|
32
|
-
* Optional unique identifier for the error, useful for tracking using Sentry and
|
|
33
|
-
*
|
|
34
|
-
* @remarks
|
|
35
|
-
* New Relic, only available for 500.
|
|
36
|
-
*/
|
|
37
|
-
errorId?: string | undefined;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const ErrorDto$inboundSchema: z.ZodType<
|
|
42
|
-
ErrorDto,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
unknown
|
|
45
|
-
> = z.object({
|
|
46
|
-
statusCode: z.number(),
|
|
47
|
-
timestamp: z.string(),
|
|
48
|
-
path: z.string(),
|
|
49
|
-
message: z.string(),
|
|
50
|
-
ctx: z.record(z.any()).optional(),
|
|
51
|
-
errorId: z.string().optional(),
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
/** @internal */
|
|
55
|
-
export type ErrorDto$Outbound = {
|
|
56
|
-
statusCode: number;
|
|
57
|
-
timestamp: string;
|
|
58
|
-
path: string;
|
|
59
|
-
message: string;
|
|
60
|
-
ctx?: { [k: string]: any } | undefined;
|
|
61
|
-
errorId?: string | undefined;
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
/** @internal */
|
|
65
|
-
export const ErrorDto$outboundSchema: z.ZodType<
|
|
66
|
-
ErrorDto$Outbound,
|
|
67
|
-
z.ZodTypeDef,
|
|
68
|
-
ErrorDto
|
|
69
|
-
> = z.object({
|
|
70
|
-
statusCode: z.number(),
|
|
71
|
-
timestamp: z.string(),
|
|
72
|
-
path: z.string(),
|
|
73
|
-
message: z.string(),
|
|
74
|
-
ctx: z.record(z.any()).optional(),
|
|
75
|
-
errorId: z.string().optional(),
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @internal
|
|
80
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
-
*/
|
|
82
|
-
export namespace ErrorDto$ {
|
|
83
|
-
/** @deprecated use `ErrorDto$inboundSchema` instead. */
|
|
84
|
-
export const inboundSchema = ErrorDto$inboundSchema;
|
|
85
|
-
/** @deprecated use `ErrorDto$outboundSchema` instead. */
|
|
86
|
-
export const outboundSchema = ErrorDto$outboundSchema;
|
|
87
|
-
/** @deprecated use `ErrorDto$Outbound` instead. */
|
|
88
|
-
export type Outbound = ErrorDto$Outbound;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function errorDtoToJSON(errorDto: ErrorDto): string {
|
|
92
|
-
return JSON.stringify(ErrorDto$outboundSchema.parse(errorDto));
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function errorDtoFromJSON(
|
|
96
|
-
jsonString: string,
|
|
97
|
-
): SafeParseResult<ErrorDto, SDKValidationError> {
|
|
98
|
-
return safeParse(
|
|
99
|
-
jsonString,
|
|
100
|
-
(x) => ErrorDto$inboundSchema.parse(JSON.parse(x)),
|
|
101
|
-
`Failed to parse 'ErrorDto' from JSON`,
|
|
102
|
-
);
|
|
103
|
-
}
|