@novu/api 0.6.1 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FUNCTIONS.md +12 -3
- package/README.md +145 -30
- package/bin/mcp-server.js +966 -518
- package/bin/mcp-server.js.map +60 -51
- package/docs/sdks/novu/README.md +142 -24
- package/docs/sdks/subscribers/README.md +113 -0
- package/funcs/subscribersSearch.js +1 -0
- package/funcs/subscribersSearch.js.map +1 -1
- package/funcs/subscribersUpsert.d.ts +18 -0
- package/funcs/subscribersUpsert.d.ts.map +1 -0
- package/funcs/subscribersUpsert.js +148 -0
- package/funcs/subscribersUpsert.js.map +1 -0
- package/hooks/types.d.ts +1 -1
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/config.js.map +1 -1
- package/lib/matchers.d.ts +3 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +13 -1
- package/lib/matchers.js.map +1 -1
- package/lib/sdks.d.ts +3 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +13 -13
- package/lib/sdks.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts.map +1 -1
- package/mcp-server/prompts.js +5 -1
- package/mcp-server/prompts.js.map +1 -1
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +10 -2
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +4 -3
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/subscribersUpsert.d.ts +11 -0
- package/mcp-server/tools/subscribersUpsert.d.ts.map +1 -0
- package/mcp-server/tools/subscribersUpsert.js +57 -0
- package/mcp-server/tools/subscribersUpsert.js.map +1 -0
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -3
- package/mcp-server/tools.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +15 -15
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +19 -18
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/activitynotificationstepresponsedto.d.ts +15 -15
- package/models/components/activitynotificationstepresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationstepresponsedto.js +18 -18
- package/models/components/activitynotificationstepresponsedto.js.map +1 -1
- package/models/components/channelsettingsdto.d.ts +2 -78
- package/models/components/channelsettingsdto.d.ts.map +1 -1
- package/models/components/channelsettingsdto.js +4 -41
- package/models/components/channelsettingsdto.js.map +1 -1
- package/models/components/chatorpushproviderenum.d.ts +79 -0
- package/models/components/chatorpushproviderenum.d.ts.map +1 -0
- package/models/components/chatorpushproviderenum.js +68 -0
- package/models/components/chatorpushproviderenum.js.map +1 -0
- package/models/components/constraintvalidation.d.ts +115 -0
- package/models/components/constraintvalidation.d.ts.map +1 -0
- package/models/components/constraintvalidation.js +157 -0
- package/models/components/constraintvalidation.js.map +1 -0
- package/models/components/digestmetadatadto.d.ts +8 -8
- package/models/components/digestmetadatadto.d.ts.map +1 -1
- package/models/components/digestmetadatadto.js +13 -13
- package/models/components/digestmetadatadto.js.map +1 -1
- package/models/components/digestregularmetadata.d.ts +16 -16
- package/models/components/digestregularmetadata.d.ts.map +1 -1
- package/models/components/digestregularmetadata.js +25 -25
- package/models/components/digestregularmetadata.js.map +1 -1
- package/models/components/digesttimedconfigdto.d.ts +8 -8
- package/models/components/digesttimedconfigdto.d.ts.map +1 -1
- package/models/components/digesttimedconfigdto.js +13 -14
- package/models/components/digesttimedconfigdto.js.map +1 -1
- package/models/components/getsubscriberpreferencesdto.d.ts +6 -6
- package/models/components/getsubscriberpreferencesdto.d.ts.map +1 -1
- package/models/components/getsubscriberpreferencesdto.js +6 -6
- package/models/components/getsubscriberpreferencesdto.js.map +1 -1
- package/models/components/index.d.ts +11 -5
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +11 -5
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +8 -8
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +14 -13
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/messageactionresult.d.ts +15 -15
- package/models/components/messageactionresult.d.ts.map +1 -1
- package/models/components/messageactionresult.js +18 -18
- package/models/components/messageactionresult.js.map +1 -1
- package/models/components/messagecta.d.ts +2 -2
- package/models/components/messagecta.d.ts.map +1 -1
- package/models/components/messagecta.js +2 -2
- package/models/components/messagecta.js.map +1 -1
- package/models/components/messageresponsedto.d.ts +14 -4
- package/models/components/messageresponsedto.d.ts.map +1 -1
- package/models/components/messageresponsedto.js +8 -4
- package/models/components/messageresponsedto.js.map +1 -1
- package/models/components/messagesresponsedto.d.ts +53 -0
- package/models/components/messagesresponsedto.d.ts.map +1 -0
- package/models/components/messagesresponsedto.js +68 -0
- package/models/components/messagesresponsedto.js.map +1 -0
- package/models/components/notificationfeeditemdto.d.ts +0 -5
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +0 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/notificationstepdto.d.ts +13 -13
- package/models/components/notificationstepdto.d.ts.map +1 -1
- package/models/components/notificationstepdto.js +16 -16
- package/models/components/notificationstepdto.js.map +1 -1
- package/models/components/notificationtriggerdto.d.ts +8 -8
- package/models/components/notificationtriggerdto.d.ts.map +1 -1
- package/models/components/notificationtriggerdto.js +13 -13
- package/models/components/notificationtriggerdto.js.map +1 -1
- package/models/components/patchsubscriberpreferencesdto.d.ts +1 -1
- package/models/components/preferenceoverridesourceenum.d.ts +37 -0
- package/models/components/preferenceoverridesourceenum.d.ts.map +1 -0
- package/models/components/preferenceoverridesourceenum.js +54 -0
- package/models/components/preferenceoverridesourceenum.js.map +1 -0
- package/models/components/providersidenum.d.ts +3 -0
- package/models/components/providersidenum.d.ts.map +1 -1
- package/models/components/providersidenum.js +1 -0
- package/models/components/providersidenum.js.map +1 -1
- package/models/components/stepfilterdto.d.ts +8 -8
- package/models/components/stepfilterdto.d.ts.map +1 -1
- package/models/components/stepfilterdto.js +13 -13
- package/models/components/stepfilterdto.js.map +1 -1
- package/models/components/stepsoverrides.d.ts +40 -0
- package/models/components/stepsoverrides.d.ts.map +1 -0
- package/models/components/{workflowinfodto.js → stepsoverrides.js} +19 -23
- package/models/components/stepsoverrides.js.map +1 -0
- package/models/components/steptypeenum.d.ts +2 -2
- package/models/components/steptypeenum.js +1 -1
- package/models/components/subscriberchanneldto.d.ts +8 -8
- package/models/components/subscriberchanneldto.d.ts.map +1 -1
- package/models/components/subscriberchanneldto.js +14 -13
- package/models/components/subscriberchanneldto.js.map +1 -1
- package/models/components/subscriberglobalpreferencedto.d.ts +38 -0
- package/models/components/subscriberglobalpreferencedto.d.ts.map +1 -0
- package/models/components/subscriberglobalpreferencedto.js +62 -0
- package/models/components/subscriberglobalpreferencedto.js.map +1 -0
- package/models/components/subscriberpreferencechannels.d.ts +52 -0
- package/models/components/subscriberpreferencechannels.d.ts.map +1 -0
- package/models/components/{preferencechannels.js → subscriberpreferencechannels.js} +17 -17
- package/models/components/subscriberpreferencechannels.js.map +1 -0
- package/models/components/subscriberpreferenceoverridedto.d.ts +39 -0
- package/models/components/subscriberpreferenceoverridedto.d.ts.map +1 -0
- package/models/components/subscriberpreferenceoverridedto.js +63 -0
- package/models/components/subscriberpreferenceoverridedto.js.map +1 -0
- package/models/components/subscriberpreferencesworkflowinfodto.d.ts +47 -0
- package/models/components/subscriberpreferencesworkflowinfodto.d.ts.map +1 -0
- package/models/components/subscriberpreferencesworkflowinfodto.js +65 -0
- package/models/components/subscriberpreferencesworkflowinfodto.js.map +1 -0
- package/models/components/subscriberresponsedto.d.ts +26 -26
- package/models/components/subscriberresponsedto.d.ts.map +1 -1
- package/models/components/subscriberresponsedto.js +12 -12
- package/models/components/subscriberresponsedto.js.map +1 -1
- package/models/components/subscriberworkflowpreferencedto.d.ts +50 -0
- package/models/components/subscriberworkflowpreferencedto.d.ts.map +1 -0
- package/models/components/subscriberworkflowpreferencedto.js +68 -0
- package/models/components/subscriberworkflowpreferencedto.js.map +1 -0
- package/models/components/timedconfig.d.ts +8 -8
- package/models/components/timedconfig.d.ts.map +1 -1
- package/models/components/timedconfig.js +14 -13
- package/models/components/timedconfig.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +102 -10
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +43 -3
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/components/triggereventtoallrequestdto.d.ts +84 -2
- package/models/components/triggereventtoallrequestdto.d.ts.map +1 -1
- package/models/components/triggereventtoallrequestdto.js +28 -2
- package/models/components/triggereventtoallrequestdto.js.map +1 -1
- package/models/components/updatesubscriberchannelrequestdto.d.ts +2 -78
- package/models/components/updatesubscriberchannelrequestdto.d.ts.map +1 -1
- package/models/components/updatesubscriberchannelrequestdto.js +4 -41
- package/models/components/updatesubscriberchannelrequestdto.js.map +1 -1
- package/models/components/updatesubscriberrequestdto.d.ts +72 -0
- package/models/components/updatesubscriberrequestdto.d.ts.map +1 -0
- package/models/components/updatesubscriberrequestdto.js +74 -0
- package/models/components/updatesubscriberrequestdto.js.map +1 -0
- package/models/components/workflowresponse.d.ts +3 -3
- package/models/components/workflowresponse.d.ts.map +1 -1
- package/models/components/workflowresponse.js +3 -3
- package/models/components/workflowresponse.js.map +1 -1
- package/models/errors/errordto.d.ts +83 -3
- package/models/errors/errordto.d.ts.map +1 -1
- package/models/errors/errordto.js +99 -3
- package/models/errors/errordto.js.map +1 -1
- package/models/errors/validationerrordto.d.ts +66 -51
- package/models/errors/validationerrordto.d.ts.map +1 -1
- package/models/errors/validationerrordto.js +83 -67
- package/models/errors/validationerrordto.js.map +1 -1
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/messagescontrollergetmessages.d.ts +2 -2
- package/models/operations/messagescontrollergetmessages.d.ts.map +1 -1
- package/models/operations/messagescontrollergetmessages.js +2 -2
- package/models/operations/messagescontrollergetmessages.js.map +1 -1
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts +26 -6
- package/models/operations/subscriberscontrollersearchsubscribers.d.ts.map +1 -1
- package/models/operations/subscriberscontrollersearchsubscribers.js +11 -6
- package/models/operations/subscriberscontrollersearchsubscribers.js.map +1 -1
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts +68 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.d.ts.map +1 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js +114 -0
- package/models/operations/subscribersv1controllerupdatesubscriber.js.map +1 -0
- package/package.json +3 -3
- package/sdk/subscribers.d.ts +7 -0
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +10 -0
- package/sdk/subscribers.js.map +1 -1
- package/sources/json-development.json +5818 -3516
- package/src/funcs/subscribersSearch.ts +1 -0
- package/src/funcs/subscribersUpsert.ts +240 -0
- package/src/hooks/types.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/matchers.ts +20 -0
- package/src/lib/sdks.ts +19 -13
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +8 -1
- package/src/mcp-server/resources.ts +16 -2
- package/src/mcp-server/server.ts +5 -3
- package/src/mcp-server/tools/subscribersUpsert.ts +43 -0
- package/src/mcp-server/tools.ts +6 -3
- package/src/models/components/activitynotificationjobresponsedto.ts +48 -26
- package/src/models/components/activitynotificationstepresponsedto.ts +50 -29
- package/src/models/components/channelsettingsdto.ts +8 -50
- package/src/models/components/chatorpushproviderenum.ts +54 -0
- package/src/models/components/constraintvalidation.ts +270 -0
- package/src/models/components/digestmetadatadto.ts +16 -15
- package/src/models/components/digestregularmetadata.ts +30 -36
- package/src/models/components/digesttimedconfigdto.ts +18 -14
- package/src/models/components/getsubscriberpreferencesdto.ts +18 -18
- package/src/models/components/index.ts +11 -5
- package/src/models/components/integrationresponsedto.ts +14 -18
- package/src/models/components/messageactionresult.ts +24 -31
- package/src/models/components/messagecta.ts +4 -4
- package/src/models/components/messageresponsedto.ts +22 -8
- package/src/models/components/messagesresponsedto.ts +103 -0
- package/src/models/components/notificationfeeditemdto.ts +0 -7
- package/src/models/components/notificationstepdto.ts +20 -26
- package/src/models/components/notificationtriggerdto.ts +18 -15
- package/src/models/components/patchsubscriberpreferencesdto.ts +1 -1
- package/src/models/components/preferenceoverridesourceenum.ts +42 -0
- package/src/models/components/providersidenum.ts +1 -0
- package/src/models/components/stepfilterdto.ts +16 -15
- package/src/models/components/stepsoverrides.ts +65 -0
- package/src/models/components/steptypeenum.ts +2 -2
- package/src/models/components/subscriberchanneldto.ts +14 -18
- package/src/models/components/subscriberglobalpreferencedto.ts +84 -0
- package/src/models/components/subscriberpreferencechannels.ts +108 -0
- package/src/models/components/subscriberpreferenceoverridedto.ts +88 -0
- package/src/models/components/subscriberpreferencesworkflowinfodto.ts +95 -0
- package/src/models/components/subscriberresponsedto.ts +34 -34
- package/src/models/components/subscriberworkflowpreferencedto.ts +110 -0
- package/src/models/components/timedconfig.ts +14 -16
- package/src/models/components/triggereventrequestdto.ts +122 -4
- package/src/models/components/triggereventtoallrequestdto.ts +92 -5
- package/src/models/components/updatesubscriberchannelrequestdto.ts +8 -56
- package/src/models/components/updatesubscriberrequestdto.ts +124 -0
- package/src/models/components/workflowresponse.ts +9 -9
- package/src/models/errors/errordto.ts +202 -5
- package/src/models/errors/validationerrordto.ts +178 -110
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/messagescontrollergetmessages.ts +4 -4
- package/src/models/operations/subscriberscontrollersearchsubscribers.ts +34 -12
- package/src/models/operations/subscribersv1controllerupdatesubscriber.ts +191 -0
- package/src/sdk/subscribers.ts +22 -0
- package/models/components/globalpreferencedto.d.ts +0 -38
- package/models/components/globalpreferencedto.d.ts.map +0 -1
- package/models/components/globalpreferencedto.js +0 -62
- package/models/components/globalpreferencedto.js.map +0 -1
- package/models/components/overrides.d.ts +0 -112
- package/models/components/overrides.d.ts.map +0 -1
- package/models/components/overrides.js +0 -111
- package/models/components/overrides.js.map +0 -1
- package/models/components/preferencechannels.d.ts +0 -37
- package/models/components/preferencechannels.d.ts.map +0 -1
- package/models/components/preferencechannels.js.map +0 -1
- package/models/components/workflowinfodto.d.ts +0 -42
- package/models/components/workflowinfodto.d.ts.map +0 -1
- package/models/components/workflowinfodto.js.map +0 -1
- package/models/components/workflowpreferencedto.d.ts +0 -50
- package/models/components/workflowpreferencedto.d.ts.map +0 -1
- package/models/components/workflowpreferencedto.js +0 -68
- package/models/components/workflowpreferencedto.js.map +0 -1
- package/src/models/components/globalpreferencedto.ts +0 -82
- package/src/models/components/overrides.ts +0 -139
- package/src/models/components/preferencechannels.ts +0 -91
- package/src/models/components/workflowinfodto.ts +0 -81
- package/src/models/components/workflowpreferencedto.ts +0 -108
|
@@ -1,39 +1,13 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
4
|
import { ChannelCredentials, ChannelCredentials$Outbound } from "./channelcredentials.js";
|
|
6
|
-
|
|
7
|
-
* The provider identifier for the credentials
|
|
8
|
-
*/
|
|
9
|
-
export declare const UpdateSubscriberChannelRequestDtoProviderId: {
|
|
10
|
-
readonly Slack: "slack";
|
|
11
|
-
readonly Discord: "discord";
|
|
12
|
-
readonly Msteams: "msteams";
|
|
13
|
-
readonly Mattermost: "mattermost";
|
|
14
|
-
readonly Ryver: "ryver";
|
|
15
|
-
readonly Zulip: "zulip";
|
|
16
|
-
readonly GrafanaOnCall: "grafana-on-call";
|
|
17
|
-
readonly Getstream: "getstream";
|
|
18
|
-
readonly RocketChat: "rocket-chat";
|
|
19
|
-
readonly WhatsappBusiness: "whatsapp-business";
|
|
20
|
-
readonly Fcm: "fcm";
|
|
21
|
-
readonly Apns: "apns";
|
|
22
|
-
readonly Expo: "expo";
|
|
23
|
-
readonly OneSignal: "one-signal";
|
|
24
|
-
readonly Pushpad: "pushpad";
|
|
25
|
-
readonly PushWebhook: "push-webhook";
|
|
26
|
-
readonly PusherBeams: "pusher-beams";
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* The provider identifier for the credentials
|
|
30
|
-
*/
|
|
31
|
-
export type UpdateSubscriberChannelRequestDtoProviderId = ClosedEnum<typeof UpdateSubscriberChannelRequestDtoProviderId>;
|
|
5
|
+
import { ChatOrPushProviderEnum } from "./chatorpushproviderenum.js";
|
|
32
6
|
export type UpdateSubscriberChannelRequestDto = {
|
|
33
7
|
/**
|
|
34
8
|
* The provider identifier for the credentials
|
|
35
9
|
*/
|
|
36
|
-
providerId:
|
|
10
|
+
providerId: ChatOrPushProviderEnum;
|
|
37
11
|
/**
|
|
38
12
|
* The integration identifier
|
|
39
13
|
*/
|
|
@@ -44,56 +18,6 @@ export type UpdateSubscriberChannelRequestDto = {
|
|
|
44
18
|
credentials: ChannelCredentials;
|
|
45
19
|
};
|
|
46
20
|
/** @internal */
|
|
47
|
-
export declare const UpdateSubscriberChannelRequestDtoProviderId$inboundSchema: z.ZodNativeEnum<typeof UpdateSubscriberChannelRequestDtoProviderId>;
|
|
48
|
-
/** @internal */
|
|
49
|
-
export declare const UpdateSubscriberChannelRequestDtoProviderId$outboundSchema: z.ZodNativeEnum<typeof UpdateSubscriberChannelRequestDtoProviderId>;
|
|
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 UpdateSubscriberChannelRequestDtoProviderId$ {
|
|
55
|
-
/** @deprecated use `UpdateSubscriberChannelRequestDtoProviderId$inboundSchema` instead. */
|
|
56
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
57
|
-
readonly Slack: "slack";
|
|
58
|
-
readonly Discord: "discord";
|
|
59
|
-
readonly Msteams: "msteams";
|
|
60
|
-
readonly Mattermost: "mattermost";
|
|
61
|
-
readonly Ryver: "ryver";
|
|
62
|
-
readonly Zulip: "zulip";
|
|
63
|
-
readonly GrafanaOnCall: "grafana-on-call";
|
|
64
|
-
readonly Getstream: "getstream";
|
|
65
|
-
readonly RocketChat: "rocket-chat";
|
|
66
|
-
readonly WhatsappBusiness: "whatsapp-business";
|
|
67
|
-
readonly Fcm: "fcm";
|
|
68
|
-
readonly Apns: "apns";
|
|
69
|
-
readonly Expo: "expo";
|
|
70
|
-
readonly OneSignal: "one-signal";
|
|
71
|
-
readonly Pushpad: "pushpad";
|
|
72
|
-
readonly PushWebhook: "push-webhook";
|
|
73
|
-
readonly PusherBeams: "pusher-beams";
|
|
74
|
-
}>;
|
|
75
|
-
/** @deprecated use `UpdateSubscriberChannelRequestDtoProviderId$outboundSchema` instead. */
|
|
76
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
77
|
-
readonly Slack: "slack";
|
|
78
|
-
readonly Discord: "discord";
|
|
79
|
-
readonly Msteams: "msteams";
|
|
80
|
-
readonly Mattermost: "mattermost";
|
|
81
|
-
readonly Ryver: "ryver";
|
|
82
|
-
readonly Zulip: "zulip";
|
|
83
|
-
readonly GrafanaOnCall: "grafana-on-call";
|
|
84
|
-
readonly Getstream: "getstream";
|
|
85
|
-
readonly RocketChat: "rocket-chat";
|
|
86
|
-
readonly WhatsappBusiness: "whatsapp-business";
|
|
87
|
-
readonly Fcm: "fcm";
|
|
88
|
-
readonly Apns: "apns";
|
|
89
|
-
readonly Expo: "expo";
|
|
90
|
-
readonly OneSignal: "one-signal";
|
|
91
|
-
readonly Pushpad: "pushpad";
|
|
92
|
-
readonly PushWebhook: "push-webhook";
|
|
93
|
-
readonly PusherBeams: "pusher-beams";
|
|
94
|
-
}>;
|
|
95
|
-
}
|
|
96
|
-
/** @internal */
|
|
97
21
|
export declare const UpdateSubscriberChannelRequestDto$inboundSchema: z.ZodType<UpdateSubscriberChannelRequestDto, z.ZodTypeDef, unknown>;
|
|
98
22
|
/** @internal */
|
|
99
23
|
export type UpdateSubscriberChannelRequestDto$Outbound = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatesubscriberchannelrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/updatesubscriberchannelrequestdto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"updatesubscriberchannelrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/updatesubscriberchannelrequestdto.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;AACrE,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,sBAAsB,EAGvB,MAAM,6BAA6B,CAAC;AAErC,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,UAAU,EAAE,sBAAsB,CAAC;IACnC;;OAEG;IACH,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,WAAW,EAAE,kBAAkB,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+CAA+C,EAAE,CAAC,CAAC,OAAO,CACrE,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,OAAO,CAKP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3C,WAAW,EAAE,2BAA2B,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,0CAA0C,EAC1C,CAAC,CAAC,UAAU,EACZ,iCAAiC,CAKjC,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kCAAkC,CAAC;IAClD,iFAAiF;IAC1E,MAAM,aAAa,qEAAkD,CAAC;IAC7E,kFAAkF;IAC3E,MAAM,cAAc,wGACuB,CAAC;IACnD,4EAA4E;IAC5E,KAAY,QAAQ,GAAG,0CAA0C,CAAC;CACnE;AAED,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR;AAED,wBAAgB,yCAAyC,CACvD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iCAAiC,EAAE,kBAAkB,CAAC,CAMxE"}
|
|
@@ -26,57 +26,20 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.updateSubscriberChannelRequestDtoFromJSON = exports.updateSubscriberChannelRequestDtoToJSON = exports.UpdateSubscriberChannelRequestDto$ = exports.UpdateSubscriberChannelRequestDto$outboundSchema = exports.UpdateSubscriberChannelRequestDto$inboundSchema =
|
|
29
|
+
exports.updateSubscriberChannelRequestDtoFromJSON = exports.updateSubscriberChannelRequestDtoToJSON = exports.UpdateSubscriberChannelRequestDto$ = exports.UpdateSubscriberChannelRequestDto$outboundSchema = exports.UpdateSubscriberChannelRequestDto$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
32
|
const channelcredentials_js_1 = require("./channelcredentials.js");
|
|
33
|
-
|
|
34
|
-
* The provider identifier for the credentials
|
|
35
|
-
*/
|
|
36
|
-
exports.UpdateSubscriberChannelRequestDtoProviderId = {
|
|
37
|
-
Slack: "slack",
|
|
38
|
-
Discord: "discord",
|
|
39
|
-
Msteams: "msteams",
|
|
40
|
-
Mattermost: "mattermost",
|
|
41
|
-
Ryver: "ryver",
|
|
42
|
-
Zulip: "zulip",
|
|
43
|
-
GrafanaOnCall: "grafana-on-call",
|
|
44
|
-
Getstream: "getstream",
|
|
45
|
-
RocketChat: "rocket-chat",
|
|
46
|
-
WhatsappBusiness: "whatsapp-business",
|
|
47
|
-
Fcm: "fcm",
|
|
48
|
-
Apns: "apns",
|
|
49
|
-
Expo: "expo",
|
|
50
|
-
OneSignal: "one-signal",
|
|
51
|
-
Pushpad: "pushpad",
|
|
52
|
-
PushWebhook: "push-webhook",
|
|
53
|
-
PusherBeams: "pusher-beams",
|
|
54
|
-
};
|
|
55
|
-
/** @internal */
|
|
56
|
-
exports.UpdateSubscriberChannelRequestDtoProviderId$inboundSchema = z
|
|
57
|
-
.nativeEnum(exports.UpdateSubscriberChannelRequestDtoProviderId);
|
|
58
|
-
/** @internal */
|
|
59
|
-
exports.UpdateSubscriberChannelRequestDtoProviderId$outboundSchema = exports.UpdateSubscriberChannelRequestDtoProviderId$inboundSchema;
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
63
|
-
*/
|
|
64
|
-
var UpdateSubscriberChannelRequestDtoProviderId$;
|
|
65
|
-
(function (UpdateSubscriberChannelRequestDtoProviderId$) {
|
|
66
|
-
/** @deprecated use `UpdateSubscriberChannelRequestDtoProviderId$inboundSchema` instead. */
|
|
67
|
-
UpdateSubscriberChannelRequestDtoProviderId$.inboundSchema = exports.UpdateSubscriberChannelRequestDtoProviderId$inboundSchema;
|
|
68
|
-
/** @deprecated use `UpdateSubscriberChannelRequestDtoProviderId$outboundSchema` instead. */
|
|
69
|
-
UpdateSubscriberChannelRequestDtoProviderId$.outboundSchema = exports.UpdateSubscriberChannelRequestDtoProviderId$outboundSchema;
|
|
70
|
-
})(UpdateSubscriberChannelRequestDtoProviderId$ || (exports.UpdateSubscriberChannelRequestDtoProviderId$ = UpdateSubscriberChannelRequestDtoProviderId$ = {}));
|
|
33
|
+
const chatorpushproviderenum_js_1 = require("./chatorpushproviderenum.js");
|
|
71
34
|
/** @internal */
|
|
72
35
|
exports.UpdateSubscriberChannelRequestDto$inboundSchema = z.object({
|
|
73
|
-
providerId:
|
|
36
|
+
providerId: chatorpushproviderenum_js_1.ChatOrPushProviderEnum$inboundSchema,
|
|
74
37
|
integrationIdentifier: z.string().optional(),
|
|
75
38
|
credentials: channelcredentials_js_1.ChannelCredentials$inboundSchema,
|
|
76
39
|
});
|
|
77
40
|
/** @internal */
|
|
78
41
|
exports.UpdateSubscriberChannelRequestDto$outboundSchema = z.object({
|
|
79
|
-
providerId:
|
|
42
|
+
providerId: chatorpushproviderenum_js_1.ChatOrPushProviderEnum$outboundSchema,
|
|
80
43
|
integrationIdentifier: z.string().optional(),
|
|
81
44
|
credentials: channelcredentials_js_1.ChannelCredentials$outboundSchema,
|
|
82
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatesubscriberchannelrequestdto.js","sourceRoot":"","sources":["../../src/models/components/updatesubscriberchannelrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;
|
|
1
|
+
{"version":3,"file":"updatesubscriberchannelrequestdto.js","sourceRoot":"","sources":["../../src/models/components/updatesubscriberchannelrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,mEAKiC;AACjC,2EAIqC;AAiBrC,gBAAgB;AACH,QAAA,+CAA+C,GAIxD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,gEAAoC;IAChD,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,wDAAgC;CAC9C,CAAC,CAAC;AASH,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,iEAAqC;IACjD,qBAAqB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5C,WAAW,EAAE,yDAAiC;CAC/C,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kCAAkC,CAQlD;AARD,WAAiB,kCAAkC;IACjD,iFAAiF;IACpE,gDAAa,GAAG,uDAA+C,CAAC;IAC7E,kFAAkF;IACrE,iDAAc,GACzB,wDAAgD,CAAC;AAGrD,CAAC,EARgB,kCAAkC,kDAAlC,kCAAkC,QAQlD;AAED,SAAgB,uCAAuC,CACrD,iCAAoE;IAEpE,OAAO,IAAI,CAAC,SAAS,CACnB,wDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AACJ,CAAC;AARD,0FAQC;AAED,SAAgB,yCAAyC,CACvD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uDAA+C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3E,+DAA+D,CAChE,CAAC;AACJ,CAAC;AARD,8FAQC"}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { SubscriberChannelDto, SubscriberChannelDto$Outbound } from "./subscriberchanneldto.js";
|
|
5
|
+
export type UpdateSubscriberRequestDto = {
|
|
6
|
+
/**
|
|
7
|
+
* The email address of the subscriber.
|
|
8
|
+
*/
|
|
9
|
+
email?: string | undefined;
|
|
10
|
+
/**
|
|
11
|
+
* The first name of the subscriber.
|
|
12
|
+
*/
|
|
13
|
+
firstName?: string | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The last name of the subscriber.
|
|
16
|
+
*/
|
|
17
|
+
lastName?: string | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The phone number of the subscriber.
|
|
20
|
+
*/
|
|
21
|
+
phone?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The avatar URL of the subscriber.
|
|
24
|
+
*/
|
|
25
|
+
avatar?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* The locale of the subscriber, for example "en-US".
|
|
28
|
+
*/
|
|
29
|
+
locale?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Custom data associated with the subscriber. Can contain any additional properties.
|
|
32
|
+
*/
|
|
33
|
+
data?: {
|
|
34
|
+
[k: string]: any;
|
|
35
|
+
} | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* An array of communication channels for the subscriber.
|
|
38
|
+
*/
|
|
39
|
+
channels?: Array<SubscriberChannelDto> | undefined;
|
|
40
|
+
};
|
|
41
|
+
/** @internal */
|
|
42
|
+
export declare const UpdateSubscriberRequestDto$inboundSchema: z.ZodType<UpdateSubscriberRequestDto, z.ZodTypeDef, unknown>;
|
|
43
|
+
/** @internal */
|
|
44
|
+
export type UpdateSubscriberRequestDto$Outbound = {
|
|
45
|
+
email?: string | undefined;
|
|
46
|
+
firstName?: string | undefined;
|
|
47
|
+
lastName?: string | undefined;
|
|
48
|
+
phone?: string | undefined;
|
|
49
|
+
avatar?: string | undefined;
|
|
50
|
+
locale?: string | undefined;
|
|
51
|
+
data?: {
|
|
52
|
+
[k: string]: any;
|
|
53
|
+
} | undefined;
|
|
54
|
+
channels?: Array<SubscriberChannelDto$Outbound> | undefined;
|
|
55
|
+
};
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const UpdateSubscriberRequestDto$outboundSchema: z.ZodType<UpdateSubscriberRequestDto$Outbound, z.ZodTypeDef, UpdateSubscriberRequestDto>;
|
|
58
|
+
/**
|
|
59
|
+
* @internal
|
|
60
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
61
|
+
*/
|
|
62
|
+
export declare namespace UpdateSubscriberRequestDto$ {
|
|
63
|
+
/** @deprecated use `UpdateSubscriberRequestDto$inboundSchema` instead. */
|
|
64
|
+
const inboundSchema: z.ZodType<UpdateSubscriberRequestDto, z.ZodTypeDef, unknown>;
|
|
65
|
+
/** @deprecated use `UpdateSubscriberRequestDto$outboundSchema` instead. */
|
|
66
|
+
const outboundSchema: z.ZodType<UpdateSubscriberRequestDto$Outbound, z.ZodTypeDef, UpdateSubscriberRequestDto>;
|
|
67
|
+
/** @deprecated use `UpdateSubscriberRequestDto$Outbound` instead. */
|
|
68
|
+
type Outbound = UpdateSubscriberRequestDto$Outbound;
|
|
69
|
+
}
|
|
70
|
+
export declare function updateSubscriberRequestDtoToJSON(updateSubscriberRequestDto: UpdateSubscriberRequestDto): string;
|
|
71
|
+
export declare function updateSubscriberRequestDtoFromJSON(jsonString: string): SafeParseResult<UpdateSubscriberRequestDto, SDKValidationError>;
|
|
72
|
+
//# sourceMappingURL=updatesubscriberrequestdto.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatesubscriberrequestdto.d.ts","sourceRoot":"","sources":["../../src/models/components/updatesubscriberrequestdto.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;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,QAAQ,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AiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -0,0 +1,74 @@
|
|
|
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.updateSubscriberRequestDtoFromJSON = exports.updateSubscriberRequestDtoToJSON = exports.UpdateSubscriberRequestDto$ = exports.UpdateSubscriberRequestDto$outboundSchema = exports.UpdateSubscriberRequestDto$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
32
|
+
const subscriberchanneldto_js_1 = require("./subscriberchanneldto.js");
|
|
33
|
+
/** @internal */
|
|
34
|
+
exports.UpdateSubscriberRequestDto$inboundSchema = z.object({
|
|
35
|
+
email: z.string().optional(),
|
|
36
|
+
firstName: z.string().optional(),
|
|
37
|
+
lastName: z.string().optional(),
|
|
38
|
+
phone: z.string().optional(),
|
|
39
|
+
avatar: z.string().optional(),
|
|
40
|
+
locale: z.string().optional(),
|
|
41
|
+
data: z.record(z.any()).optional(),
|
|
42
|
+
channels: z.array(subscriberchanneldto_js_1.SubscriberChannelDto$inboundSchema).optional(),
|
|
43
|
+
});
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.UpdateSubscriberRequestDto$outboundSchema = z.object({
|
|
46
|
+
email: z.string().optional(),
|
|
47
|
+
firstName: z.string().optional(),
|
|
48
|
+
lastName: z.string().optional(),
|
|
49
|
+
phone: z.string().optional(),
|
|
50
|
+
avatar: z.string().optional(),
|
|
51
|
+
locale: z.string().optional(),
|
|
52
|
+
data: z.record(z.any()).optional(),
|
|
53
|
+
channels: z.array(subscriberchanneldto_js_1.SubscriberChannelDto$outboundSchema).optional(),
|
|
54
|
+
});
|
|
55
|
+
/**
|
|
56
|
+
* @internal
|
|
57
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
|
+
*/
|
|
59
|
+
var UpdateSubscriberRequestDto$;
|
|
60
|
+
(function (UpdateSubscriberRequestDto$) {
|
|
61
|
+
/** @deprecated use `UpdateSubscriberRequestDto$inboundSchema` instead. */
|
|
62
|
+
UpdateSubscriberRequestDto$.inboundSchema = exports.UpdateSubscriberRequestDto$inboundSchema;
|
|
63
|
+
/** @deprecated use `UpdateSubscriberRequestDto$outboundSchema` instead. */
|
|
64
|
+
UpdateSubscriberRequestDto$.outboundSchema = exports.UpdateSubscriberRequestDto$outboundSchema;
|
|
65
|
+
})(UpdateSubscriberRequestDto$ || (exports.UpdateSubscriberRequestDto$ = UpdateSubscriberRequestDto$ = {}));
|
|
66
|
+
function updateSubscriberRequestDtoToJSON(updateSubscriberRequestDto) {
|
|
67
|
+
return JSON.stringify(exports.UpdateSubscriberRequestDto$outboundSchema.parse(updateSubscriberRequestDto));
|
|
68
|
+
}
|
|
69
|
+
exports.updateSubscriberRequestDtoToJSON = updateSubscriberRequestDtoToJSON;
|
|
70
|
+
function updateSubscriberRequestDtoFromJSON(jsonString) {
|
|
71
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UpdateSubscriberRequestDto$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateSubscriberRequestDto' from JSON`);
|
|
72
|
+
}
|
|
73
|
+
exports.updateSubscriberRequestDtoFromJSON = updateSubscriberRequestDtoFromJSON;
|
|
74
|
+
//# sourceMappingURL=updatesubscriberrequestdto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updatesubscriberrequestdto.js","sourceRoot":"","sources":["../../src/models/components/updatesubscriberrequestdto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AAqCnC,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChC,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C,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAND,4EAMC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC;AARD,gFAQC"}
|
|
@@ -4,7 +4,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
4
4
|
import { NotificationGroup, NotificationGroup$Outbound } from "./notificationgroup.js";
|
|
5
5
|
import { NotificationStepDto, NotificationStepDto$Outbound } from "./notificationstepdto.js";
|
|
6
6
|
import { NotificationTrigger, NotificationTrigger$Outbound } from "./notificationtrigger.js";
|
|
7
|
-
import {
|
|
7
|
+
import { SubscriberPreferenceChannels, SubscriberPreferenceChannels$Outbound } from "./subscriberpreferencechannels.js";
|
|
8
8
|
export type WorkflowResponseData = {};
|
|
9
9
|
export type WorkflowIntegrationStatus = {};
|
|
10
10
|
export type WorkflowResponse = {
|
|
@@ -13,7 +13,7 @@ export type WorkflowResponse = {
|
|
|
13
13
|
description: string;
|
|
14
14
|
active: boolean;
|
|
15
15
|
draft: boolean;
|
|
16
|
-
preferenceSettings:
|
|
16
|
+
preferenceSettings: SubscriberPreferenceChannels;
|
|
17
17
|
critical: boolean;
|
|
18
18
|
tags: Array<string>;
|
|
19
19
|
steps: Array<NotificationStepDto>;
|
|
@@ -79,7 +79,7 @@ export type WorkflowResponse$Outbound = {
|
|
|
79
79
|
description: string;
|
|
80
80
|
active: boolean;
|
|
81
81
|
draft: boolean;
|
|
82
|
-
preferenceSettings:
|
|
82
|
+
preferenceSettings: SubscriberPreferenceChannels$Outbound;
|
|
83
83
|
critical: boolean;
|
|
84
84
|
tags: Array<string>;
|
|
85
85
|
steps: Array<NotificationStepDto$Outbound>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflowresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/workflowresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"workflowresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/workflowresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG,EAAE,CAAC;AAEtC,MAAM,MAAM,yBAAyB,GAAG,EAAE,CAAC;AAE3C,MA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kB,CAAC,CAMvD"}
|
|
@@ -33,7 +33,7 @@ const schemas_js_1 = require("../../lib/schemas.js");
|
|
|
33
33
|
const notificationgroup_js_1 = require("./notificationgroup.js");
|
|
34
34
|
const notificationstepdto_js_1 = require("./notificationstepdto.js");
|
|
35
35
|
const notificationtrigger_js_1 = require("./notificationtrigger.js");
|
|
36
|
-
const
|
|
36
|
+
const subscriberpreferencechannels_js_1 = require("./subscriberpreferencechannels.js");
|
|
37
37
|
/** @internal */
|
|
38
38
|
exports.WorkflowResponseData$inboundSchema = z.object({});
|
|
39
39
|
/** @internal */
|
|
@@ -87,7 +87,7 @@ exports.WorkflowResponse$inboundSchema = z.object({
|
|
|
87
87
|
description: z.string(),
|
|
88
88
|
active: z.boolean(),
|
|
89
89
|
draft: z.boolean(),
|
|
90
|
-
preferenceSettings:
|
|
90
|
+
preferenceSettings: subscriberpreferencechannels_js_1.SubscriberPreferenceChannels$inboundSchema,
|
|
91
91
|
critical: z.boolean(),
|
|
92
92
|
tags: z.array(z.string()),
|
|
93
93
|
steps: z.array(notificationstepdto_js_1.NotificationStepDto$inboundSchema),
|
|
@@ -120,7 +120,7 @@ exports.WorkflowResponse$outboundSchema = z.object({
|
|
|
120
120
|
description: z.string(),
|
|
121
121
|
active: z.boolean(),
|
|
122
122
|
draft: z.boolean(),
|
|
123
|
-
preferenceSettings:
|
|
123
|
+
preferenceSettings: subscriberpreferencechannels_js_1.SubscriberPreferenceChannels$outboundSchema,
|
|
124
124
|
critical: z.boolean(),
|
|
125
125
|
tags: z.array(z.string()),
|
|
126
126
|
steps: z.array(notificationstepdto_js_1.NotificationStepDto$outboundSchema),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflowresponse.js","sourceRoot":"","sources":["../../src/models/components/workflowresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAChC,qEAKkC;AAClC,qEAKkC;AAClC,
|
|
1
|
+
{"version":3,"file":"workflowresponse.js","sourceRoot":"","sources":["../../src/models/components/workflowresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iEAKgC;AAChC,qEAKkC;AAClC,qEAKkC;AAClC,uFAK2C;AA8B3C,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,qBAAqB,CAOrC;AAPD,WAAiB,qBAAqB;IACpC,oEAAoE;IACvD,mCAAa,GAAG,0CAAkC,CAAC;IAChE,qEAAqE;IACxD,oCAAc,GAAG,2CAAmC,CAAC;AAGpE,CAAC,EAPgB,qBAAqB,qCAArB,qBAAqB,QAOrC;AAED,SAAgB,0BAA0B,CACxC,oBAA0C;IAE1C,OAAO,IAAI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAND,gEAMC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC;AARD,oEAQC;AAED,gBAAgB;AACH,QAAA,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAKjB,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAEjB;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AA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C,OAAO,IAAI,CAAC,SAAS,CACnB,uCAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AACJ,CAAC;AAND,wDAMC;AAED,SAAgB,wBAAwB,CACtC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AACJ,CAAC;AARD,4DAQC"}
|
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./sdkvalidationerror.js";
|
|
4
|
+
export type Five = string | number | boolean | {
|
|
5
|
+
[k: string]: any;
|
|
6
|
+
};
|
|
7
|
+
export type Four = {};
|
|
8
|
+
/**
|
|
9
|
+
* Value that failed validation
|
|
10
|
+
*/
|
|
11
|
+
export type Message = Four | string | number | boolean | Array<string | number | boolean | {
|
|
12
|
+
[k: string]: any;
|
|
13
|
+
} | null>;
|
|
2
14
|
export type ErrorDtoData = {
|
|
3
15
|
/**
|
|
4
16
|
* HTTP status code of the error response.
|
|
@@ -13,9 +25,11 @@ export type ErrorDtoData = {
|
|
|
13
25
|
*/
|
|
14
26
|
path: string;
|
|
15
27
|
/**
|
|
16
|
-
*
|
|
28
|
+
* Value that failed validation
|
|
17
29
|
*/
|
|
18
|
-
message
|
|
30
|
+
message?: Four | string | number | boolean | Array<string | number | boolean | {
|
|
31
|
+
[k: string]: any;
|
|
32
|
+
} | null> | null | undefined;
|
|
19
33
|
/**
|
|
20
34
|
* Optional context object for additional error details.
|
|
21
35
|
*/
|
|
@@ -61,13 +75,79 @@ export declare class ErrorDto extends Error {
|
|
|
61
75
|
constructor(err: ErrorDtoData);
|
|
62
76
|
}
|
|
63
77
|
/** @internal */
|
|
78
|
+
export declare const Five$inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown>;
|
|
79
|
+
/** @internal */
|
|
80
|
+
export type Five$Outbound = string | number | boolean | {
|
|
81
|
+
[k: string]: any;
|
|
82
|
+
};
|
|
83
|
+
/** @internal */
|
|
84
|
+
export declare const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five>;
|
|
85
|
+
/**
|
|
86
|
+
* @internal
|
|
87
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
88
|
+
*/
|
|
89
|
+
export declare namespace Five$ {
|
|
90
|
+
/** @deprecated use `Five$inboundSchema` instead. */
|
|
91
|
+
const inboundSchema: z.ZodType<Five, z.ZodTypeDef, unknown>;
|
|
92
|
+
/** @deprecated use `Five$outboundSchema` instead. */
|
|
93
|
+
const outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five>;
|
|
94
|
+
/** @deprecated use `Five$Outbound` instead. */
|
|
95
|
+
type Outbound = Five$Outbound;
|
|
96
|
+
}
|
|
97
|
+
export declare function fiveToJSON(five: Five): string;
|
|
98
|
+
export declare function fiveFromJSON(jsonString: string): SafeParseResult<Five, SDKValidationError>;
|
|
99
|
+
/** @internal */
|
|
100
|
+
export declare const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
|
|
101
|
+
/** @internal */
|
|
102
|
+
export type Four$Outbound = {};
|
|
103
|
+
/** @internal */
|
|
104
|
+
export declare const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
108
|
+
*/
|
|
109
|
+
export declare namespace Four$ {
|
|
110
|
+
/** @deprecated use `Four$inboundSchema` instead. */
|
|
111
|
+
const inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown>;
|
|
112
|
+
/** @deprecated use `Four$outboundSchema` instead. */
|
|
113
|
+
const outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four>;
|
|
114
|
+
/** @deprecated use `Four$Outbound` instead. */
|
|
115
|
+
type Outbound = Four$Outbound;
|
|
116
|
+
}
|
|
117
|
+
export declare function fourToJSON(four: Four): string;
|
|
118
|
+
export declare function fourFromJSON(jsonString: string): SafeParseResult<Four, SDKValidationError>;
|
|
119
|
+
/** @internal */
|
|
120
|
+
export declare const Message$inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
|
|
121
|
+
/** @internal */
|
|
122
|
+
export type Message$Outbound = Four$Outbound | string | number | boolean | Array<string | number | boolean | {
|
|
123
|
+
[k: string]: any;
|
|
124
|
+
} | null>;
|
|
125
|
+
/** @internal */
|
|
126
|
+
export declare const Message$outboundSchema: z.ZodType<Message$Outbound, z.ZodTypeDef, Message>;
|
|
127
|
+
/**
|
|
128
|
+
* @internal
|
|
129
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
+
*/
|
|
131
|
+
export declare namespace Message$ {
|
|
132
|
+
/** @deprecated use `Message$inboundSchema` instead. */
|
|
133
|
+
const inboundSchema: z.ZodType<Message, z.ZodTypeDef, unknown>;
|
|
134
|
+
/** @deprecated use `Message$outboundSchema` instead. */
|
|
135
|
+
const outboundSchema: z.ZodType<Message$Outbound, z.ZodTypeDef, Message>;
|
|
136
|
+
/** @deprecated use `Message$Outbound` instead. */
|
|
137
|
+
type Outbound = Message$Outbound;
|
|
138
|
+
}
|
|
139
|
+
export declare function messageToJSON(message: Message): string;
|
|
140
|
+
export declare function messageFromJSON(jsonString: string): SafeParseResult<Message, SDKValidationError>;
|
|
141
|
+
/** @internal */
|
|
64
142
|
export declare const ErrorDto$inboundSchema: z.ZodType<ErrorDto, z.ZodTypeDef, unknown>;
|
|
65
143
|
/** @internal */
|
|
66
144
|
export type ErrorDto$Outbound = {
|
|
67
145
|
statusCode: number;
|
|
68
146
|
timestamp: string;
|
|
69
147
|
path: string;
|
|
70
|
-
message
|
|
148
|
+
message?: Four$Outbound | string | number | boolean | Array<string | number | boolean | {
|
|
149
|
+
[k: string]: any;
|
|
150
|
+
} | null> | null | undefined;
|
|
71
151
|
ctx?: {
|
|
72
152
|
[k: string]: any;
|
|
73
153
|
} | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errordto.d.ts","sourceRoot":"","sources":["../../src/models/errors/errordto.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,MAAM,MAAM,YAAY,GAAG;IACzB;;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;
|
|
1
|
+
{"version":3,"file":"errordto.d.ts","sourceRoot":"","sources":["../../src/models/errors/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,yBAAyB,CAAC;AAE7D,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,CAAC;AAEpE,MAAM,MAAM,IAAI,GAAG,EAAE,CAAC;AAEtB;;GAEG;AACH,MAAM,MAAM,OAAO,GACf,IAAI,GACJ,MAAM,GACN,MAAM,GACN,OAAO,GACP,KAAK,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG;IAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE,GAAG,IAAI,CAAC,CAAC;AAEnE,MAAM,MAAM,YAAY,GAAG;IACzB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,SAAS,EAAE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