@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
package/bin/mcp-server.js
CHANGED
|
@@ -4028,12 +4028,6 @@ var init_console_logger = __esm(() => {
|
|
|
4028
4028
|
];
|
|
4029
4029
|
});
|
|
4030
4030
|
|
|
4031
|
-
// src/mcp-server/scopes.ts
|
|
4032
|
-
var mcpScopes;
|
|
4033
|
-
var init_scopes = __esm(() => {
|
|
4034
|
-
mcpScopes = [];
|
|
4035
|
-
});
|
|
4036
|
-
|
|
4037
4031
|
// node_modules/@modelcontextprotocol/sdk/dist/esm/types.js
|
|
4038
4032
|
var LATEST_PROTOCOL_VERSION = "2024-11-05", SUPPORTED_PROTOCOL_VERSIONS, JSONRPC_VERSION = "2.0", ProgressTokenSchema, CursorSchema, BaseRequestParamsSchema, RequestSchema, BaseNotificationParamsSchema, NotificationSchema, ResultSchema, RequestIdSchema, JSONRPCRequestSchema, JSONRPCNotificationSchema, JSONRPCResponseSchema, ErrorCode, JSONRPCErrorSchema, JSONRPCMessageSchema, EmptyResultSchema, CancelledNotificationSchema, ImplementationSchema, ClientCapabilitiesSchema, InitializeRequestSchema, ServerCapabilitiesSchema, InitializeResultSchema, InitializedNotificationSchema, PingRequestSchema, ProgressSchema, ProgressNotificationSchema, PaginatedRequestSchema, PaginatedResultSchema, ResourceContentsSchema, TextResourceContentsSchema, BlobResourceContentsSchema, ResourceSchema, ResourceTemplateSchema, ListResourcesRequestSchema, ListResourcesResultSchema, ListResourceTemplatesRequestSchema, ListResourceTemplatesResultSchema, ReadResourceRequestSchema, ReadResourceResultSchema, ResourceListChangedNotificationSchema, SubscribeRequestSchema, UnsubscribeRequestSchema, ResourceUpdatedNotificationSchema, PromptArgumentSchema, PromptSchema, ListPromptsRequestSchema, ListPromptsResultSchema, GetPromptRequestSchema, TextContentSchema, ImageContentSchema, EmbeddedResourceSchema, PromptMessageSchema, GetPromptResultSchema, PromptListChangedNotificationSchema, ToolSchema, ListToolsRequestSchema, ListToolsResultSchema, CallToolResultSchema, CompatibilityCallToolResultSchema, CallToolRequestSchema, ToolListChangedNotificationSchema, LoggingLevelSchema, SetLevelRequestSchema, LoggingMessageNotificationSchema, ModelHintSchema, ModelPreferencesSchema, SamplingMessageSchema, CreateMessageRequestSchema, CreateMessageResultSchema, ResourceReferenceSchema, PromptReferenceSchema, CompleteRequestSchema, CompleteResultSchema, RootSchema, ListRootsRequestSchema, ListRootsResultSchema, RootsListChangedNotificationSchema, ClientRequestSchema, ClientNotificationSchema, ClientResultSchema, ServerRequestSchema, ServerNotificationSchema, ServerResultSchema, McpError;
|
|
4039
4033
|
var init_types = __esm(() => {
|
|
@@ -34263,10 +34257,10 @@ var init_config = __esm(() => {
|
|
|
34263
34257
|
];
|
|
34264
34258
|
SDK_METADATA = {
|
|
34265
34259
|
language: "typescript",
|
|
34266
|
-
openapiDocVersion: "1.
|
|
34267
|
-
sdkVersion: "0.
|
|
34268
|
-
genVersion: "2.
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34260
|
+
openapiDocVersion: "2.1.13",
|
|
34261
|
+
sdkVersion: "0.7.0",
|
|
34262
|
+
genVersion: "2.597.9",
|
|
34263
|
+
userAgent: "speakeasy-sdk/typescript 0.7.0 2.597.9 2.1.13 @novu/api"
|
|
34270
34264
|
};
|
|
34271
34265
|
});
|
|
34272
34266
|
|
|
@@ -34861,26 +34855,22 @@ class ClientSDK {
|
|
|
34861
34855
|
}
|
|
34862
34856
|
cookie = cookie.startsWith("; ") ? cookie.slice(2) : cookie;
|
|
34863
34857
|
headers.set("cookie", cookie);
|
|
34864
|
-
const userHeaders = new Headers(options?.fetchOptions?.headers);
|
|
34858
|
+
const userHeaders = new Headers(options?.headers ?? options?.fetchOptions?.headers);
|
|
34865
34859
|
for (const [k2, v2] of userHeaders) {
|
|
34866
34860
|
headers.set(k2, v2);
|
|
34867
34861
|
}
|
|
34868
34862
|
if (!isBrowserLike) {
|
|
34869
34863
|
headers.set(conf.uaHeader ?? "user-agent", SDK_METADATA.userAgent);
|
|
34870
34864
|
}
|
|
34871
|
-
|
|
34865
|
+
const fetchOptions = {
|
|
34866
|
+
...options?.fetchOptions,
|
|
34867
|
+
...options
|
|
34868
|
+
};
|
|
34872
34869
|
if (!fetchOptions?.signal && conf.timeoutMs && conf.timeoutMs > 0) {
|
|
34873
34870
|
const timeoutSignal = AbortSignal.timeout(conf.timeoutMs);
|
|
34874
|
-
|
|
34875
|
-
fetchOptions = { signal: timeoutSignal };
|
|
34876
|
-
} else {
|
|
34877
|
-
fetchOptions.signal = timeoutSignal;
|
|
34878
|
-
}
|
|
34871
|
+
fetchOptions.signal = timeoutSignal;
|
|
34879
34872
|
}
|
|
34880
34873
|
if (conf.body instanceof ReadableStream) {
|
|
34881
|
-
if (!fetchOptions) {
|
|
34882
|
-
fetchOptions = {};
|
|
34883
|
-
}
|
|
34884
34874
|
Object.assign(fetchOptions, { duplex: "half" });
|
|
34885
34875
|
}
|
|
34886
34876
|
let input;
|
|
@@ -34989,9 +34979,12 @@ async function logResponse(logger, res, req) {
|
|
|
34989
34979
|
logger.groupEnd();
|
|
34990
34980
|
logger.group("Body:");
|
|
34991
34981
|
switch (true) {
|
|
34992
|
-
case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct)):
|
|
34982
|
+
case (matchContentType(res, "application/json") || jsonLikeContentTypeRE.test(ct) && !jsonlLikeContentTypeRE.test(ct)):
|
|
34993
34983
|
logger.log(await res.clone().json());
|
|
34994
34984
|
break;
|
|
34985
|
+
case (matchContentType(res, "application/jsonl") || jsonlLikeContentTypeRE.test(ct)):
|
|
34986
|
+
logger.log(await res.clone().text());
|
|
34987
|
+
break;
|
|
34995
34988
|
case matchContentType(res, "text/event-stream"):
|
|
34996
34989
|
logger.log(`<${contentType2}>`);
|
|
34997
34990
|
break;
|
|
@@ -35013,7 +35006,7 @@ async function logResponse(logger, res, req) {
|
|
|
35013
35006
|
logger.groupEnd();
|
|
35014
35007
|
logger.groupEnd();
|
|
35015
35008
|
}
|
|
35016
|
-
var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE;
|
|
35009
|
+
var gt, webWorkerLike, isBrowserLike, jsonLikeContentTypeRE, jsonlLikeContentTypeRE;
|
|
35017
35010
|
var init_sdks = __esm(() => {
|
|
35018
35011
|
init_hooks();
|
|
35019
35012
|
init_httpclienterrors();
|
|
@@ -35025,7 +35018,8 @@ var init_sdks = __esm(() => {
|
|
|
35025
35018
|
gt = typeof globalThis === "undefined" ? null : globalThis;
|
|
35026
35019
|
webWorkerLike = typeof gt === "object" && gt != null && "importScripts" in gt && typeof gt["importScripts"] === "function";
|
|
35027
35020
|
isBrowserLike = webWorkerLike || typeof navigator !== "undefined" && "serviceWorker" in navigator || typeof window === "object" && typeof window.document !== "undefined";
|
|
35028
|
-
jsonLikeContentTypeRE =
|
|
35021
|
+
jsonLikeContentTypeRE = /(application|text)\/.*?\+*json.*/;
|
|
35022
|
+
jsonlLikeContentTypeRE = /(application|text)\/(.*?\+*\bjsonl\b.*|.*?\+*\bx-ndjson\b.*)/;
|
|
35029
35023
|
});
|
|
35030
35024
|
|
|
35031
35025
|
// src/core.ts
|
|
@@ -35040,7 +35034,10 @@ var init_core = __esm(() => {
|
|
|
35040
35034
|
function createRegisterPrompt(logger, server, sdk, allowedScopes) {
|
|
35041
35035
|
return (prompt) => {
|
|
35042
35036
|
const scopes = prompt.scopes ?? [];
|
|
35043
|
-
if (
|
|
35037
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35038
|
+
return;
|
|
35039
|
+
}
|
|
35040
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35044
35041
|
return;
|
|
35045
35042
|
}
|
|
35046
35043
|
if (prompt.args) {
|
|
@@ -35111,7 +35108,10 @@ var init_shared = __esm(() => {
|
|
|
35111
35108
|
function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
35112
35109
|
return (resource) => {
|
|
35113
35110
|
const scopes = resource.scopes ?? [];
|
|
35114
|
-
if (
|
|
35111
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35112
|
+
return;
|
|
35113
|
+
}
|
|
35114
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35115
35115
|
return;
|
|
35116
35116
|
}
|
|
35117
35117
|
const metadata = {
|
|
@@ -35125,7 +35125,10 @@ function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
|
35125
35125
|
function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
|
|
35126
35126
|
return (resource) => {
|
|
35127
35127
|
const scopes = resource.scopes ?? [];
|
|
35128
|
-
if (
|
|
35128
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35129
|
+
return;
|
|
35130
|
+
}
|
|
35131
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35129
35132
|
return;
|
|
35130
35133
|
}
|
|
35131
35134
|
const metadata = {
|
|
@@ -35183,11 +35186,11 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
|
|
|
35183
35186
|
if (allowedTools && !allowedTools.has(tool.name)) {
|
|
35184
35187
|
return;
|
|
35185
35188
|
}
|
|
35186
|
-
const
|
|
35187
|
-
if (allowedScopes.size > 0 &&
|
|
35189
|
+
const scopes = tool.scopes ?? [];
|
|
35190
|
+
if (allowedScopes.size > 0 && scopes.length === 0) {
|
|
35188
35191
|
return;
|
|
35189
35192
|
}
|
|
35190
|
-
if (!
|
|
35193
|
+
if (allowedScopes.size > 0 && !scopes.every((s) => allowedScopes.has(s))) {
|
|
35191
35194
|
return;
|
|
35192
35195
|
}
|
|
35193
35196
|
if (tool.args) {
|
|
@@ -35313,6 +35316,27 @@ function safeParse(rawValue, fn, errorMessage) {
|
|
|
35313
35316
|
return ERR(new SDKValidationError(errorMessage, err, rawValue));
|
|
35314
35317
|
}
|
|
35315
35318
|
}
|
|
35319
|
+
function collectExtraKeys(obj, extrasKey, optional2) {
|
|
35320
|
+
return obj.transform((val) => {
|
|
35321
|
+
const extras = {};
|
|
35322
|
+
const { shape } = obj;
|
|
35323
|
+
for (const [key] of Object.entries(val)) {
|
|
35324
|
+
if (key in shape) {
|
|
35325
|
+
continue;
|
|
35326
|
+
}
|
|
35327
|
+
const v2 = val[key];
|
|
35328
|
+
if (typeof v2 === "undefined") {
|
|
35329
|
+
continue;
|
|
35330
|
+
}
|
|
35331
|
+
extras[key] = v2;
|
|
35332
|
+
delete val[key];
|
|
35333
|
+
}
|
|
35334
|
+
if (optional2 && Object.keys(extras).length === 0) {
|
|
35335
|
+
return val;
|
|
35336
|
+
}
|
|
35337
|
+
return { ...val, [extrasKey]: extras };
|
|
35338
|
+
});
|
|
35339
|
+
}
|
|
35316
35340
|
var init_schemas = __esm(() => {
|
|
35317
35341
|
init_sdkvalidationerror();
|
|
35318
35342
|
});
|
|
@@ -35360,6 +35384,9 @@ function match(...matchers) {
|
|
|
35360
35384
|
case "json":
|
|
35361
35385
|
raw = await response.json();
|
|
35362
35386
|
break;
|
|
35387
|
+
case "jsonl":
|
|
35388
|
+
raw = response.body;
|
|
35389
|
+
break;
|
|
35363
35390
|
case "bytes":
|
|
35364
35391
|
raw = new Uint8Array(await response.arrayBuffer());
|
|
35365
35392
|
break;
|
|
@@ -35449,6 +35476,7 @@ var init_matchers = __esm(() => {
|
|
|
35449
35476
|
init_http();
|
|
35450
35477
|
init_schemas();
|
|
35451
35478
|
DEFAULT_CONTENT_TYPES = {
|
|
35479
|
+
jsonl: "application/jsonl",
|
|
35452
35480
|
json: "application/json",
|
|
35453
35481
|
text: "text/plain",
|
|
35454
35482
|
bytes: "application/octet-stream",
|
|
@@ -35614,7 +35642,7 @@ var init_security = __esm(() => {
|
|
|
35614
35642
|
});
|
|
35615
35643
|
|
|
35616
35644
|
// src/models/errors/errordto.ts
|
|
35617
|
-
var ErrorDto, ErrorDto$inboundSchema, ErrorDto$outboundSchema, ErrorDto$;
|
|
35645
|
+
var ErrorDto, Five$inboundSchema, Five$outboundSchema, Five$, Four$inboundSchema, Four$outboundSchema, Four$, Message$inboundSchema, Message$outboundSchema, Message$, ErrorDto$inboundSchema, ErrorDto$outboundSchema, ErrorDto$;
|
|
35618
35646
|
var init_errordto = __esm(() => {
|
|
35619
35647
|
init_lib();
|
|
35620
35648
|
ErrorDto = class ErrorDto extends Error {
|
|
@@ -35638,11 +35666,47 @@ var init_errordto = __esm(() => {
|
|
|
35638
35666
|
this.name = "ErrorDto";
|
|
35639
35667
|
}
|
|
35640
35668
|
};
|
|
35669
|
+
Five$inboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
|
|
35670
|
+
Five$outboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
|
|
35671
|
+
((Five$) => {
|
|
35672
|
+
Five$.inboundSchema = Five$inboundSchema;
|
|
35673
|
+
Five$.outboundSchema = Five$outboundSchema;
|
|
35674
|
+
})(Five$ ||= {});
|
|
35675
|
+
Four$inboundSchema = objectType({});
|
|
35676
|
+
Four$outboundSchema = objectType({});
|
|
35677
|
+
((Four$) => {
|
|
35678
|
+
Four$.inboundSchema = Four$inboundSchema;
|
|
35679
|
+
Four$.outboundSchema = Four$outboundSchema;
|
|
35680
|
+
})(Four$ ||= {});
|
|
35681
|
+
Message$inboundSchema = unionType([
|
|
35682
|
+
lazyType(() => Four$inboundSchema),
|
|
35683
|
+
stringType(),
|
|
35684
|
+
numberType(),
|
|
35685
|
+
booleanType(),
|
|
35686
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
35687
|
+
]);
|
|
35688
|
+
Message$outboundSchema = unionType([
|
|
35689
|
+
lazyType(() => Four$outboundSchema),
|
|
35690
|
+
stringType(),
|
|
35691
|
+
numberType(),
|
|
35692
|
+
booleanType(),
|
|
35693
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
35694
|
+
]);
|
|
35695
|
+
((Message$) => {
|
|
35696
|
+
Message$.inboundSchema = Message$inboundSchema;
|
|
35697
|
+
Message$.outboundSchema = Message$outboundSchema;
|
|
35698
|
+
})(Message$ ||= {});
|
|
35641
35699
|
ErrorDto$inboundSchema = objectType({
|
|
35642
35700
|
statusCode: numberType(),
|
|
35643
35701
|
timestamp: stringType(),
|
|
35644
35702
|
path: stringType(),
|
|
35645
|
-
message:
|
|
35703
|
+
message: nullableType(unionType([
|
|
35704
|
+
lazyType(() => Four$inboundSchema),
|
|
35705
|
+
stringType(),
|
|
35706
|
+
numberType(),
|
|
35707
|
+
booleanType(),
|
|
35708
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
35709
|
+
])).optional(),
|
|
35646
35710
|
ctx: recordType(anyType()).optional(),
|
|
35647
35711
|
errorId: stringType().optional()
|
|
35648
35712
|
}).transform((v2) => {
|
|
@@ -35652,7 +35716,13 @@ var init_errordto = __esm(() => {
|
|
|
35652
35716
|
statusCode: numberType(),
|
|
35653
35717
|
timestamp: stringType(),
|
|
35654
35718
|
path: stringType(),
|
|
35655
|
-
message:
|
|
35719
|
+
message: nullableType(unionType([
|
|
35720
|
+
lazyType(() => Four$outboundSchema),
|
|
35721
|
+
stringType(),
|
|
35722
|
+
numberType(),
|
|
35723
|
+
booleanType(),
|
|
35724
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
35725
|
+
])).optional(),
|
|
35656
35726
|
ctx: recordType(anyType()).optional(),
|
|
35657
35727
|
errorId: stringType().optional()
|
|
35658
35728
|
}));
|
|
@@ -35662,110 +35732,6 @@ var init_errordto = __esm(() => {
|
|
|
35662
35732
|
})(ErrorDto$ ||= {});
|
|
35663
35733
|
});
|
|
35664
35734
|
|
|
35665
|
-
// src/models/errors/validationerrordto.ts
|
|
35666
|
-
var ValidationErrorDto, Value$inboundSchema, Value$outboundSchema, Value$, Errors$inboundSchema, Errors$outboundSchema, Errors$, ValidationErrorDto$inboundSchema, ValidationErrorDto$outboundSchema, ValidationErrorDto$;
|
|
35667
|
-
var init_validationerrordto = __esm(() => {
|
|
35668
|
-
init_lib();
|
|
35669
|
-
ValidationErrorDto = class ValidationErrorDto extends Error {
|
|
35670
|
-
statusCode;
|
|
35671
|
-
timestamp;
|
|
35672
|
-
path;
|
|
35673
|
-
ctx;
|
|
35674
|
-
errorId;
|
|
35675
|
-
errors;
|
|
35676
|
-
data$;
|
|
35677
|
-
constructor(err) {
|
|
35678
|
-
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
35679
|
-
super(message);
|
|
35680
|
-
this.data$ = err;
|
|
35681
|
-
this.statusCode = err.statusCode;
|
|
35682
|
-
this.timestamp = err.timestamp;
|
|
35683
|
-
this.path = err.path;
|
|
35684
|
-
if (err.ctx != null)
|
|
35685
|
-
this.ctx = err.ctx;
|
|
35686
|
-
if (err.errorId != null)
|
|
35687
|
-
this.errorId = err.errorId;
|
|
35688
|
-
this.errors = err.errors;
|
|
35689
|
-
this.name = "ValidationErrorDto";
|
|
35690
|
-
}
|
|
35691
|
-
};
|
|
35692
|
-
Value$inboundSchema = unionType([
|
|
35693
|
-
stringType(),
|
|
35694
|
-
numberType(),
|
|
35695
|
-
booleanType(),
|
|
35696
|
-
recordType(anyType()),
|
|
35697
|
-
arrayType(recordType(anyType()))
|
|
35698
|
-
]);
|
|
35699
|
-
Value$outboundSchema = unionType([
|
|
35700
|
-
stringType(),
|
|
35701
|
-
numberType(),
|
|
35702
|
-
booleanType(),
|
|
35703
|
-
recordType(anyType()),
|
|
35704
|
-
arrayType(recordType(anyType()))
|
|
35705
|
-
]);
|
|
35706
|
-
((Value$) => {
|
|
35707
|
-
Value$.inboundSchema = Value$inboundSchema;
|
|
35708
|
-
Value$.outboundSchema = Value$outboundSchema;
|
|
35709
|
-
})(Value$ ||= {});
|
|
35710
|
-
Errors$inboundSchema = objectType({
|
|
35711
|
-
messages: arrayType(stringType()),
|
|
35712
|
-
value: nullableType(unionType([
|
|
35713
|
-
stringType(),
|
|
35714
|
-
numberType(),
|
|
35715
|
-
booleanType(),
|
|
35716
|
-
recordType(anyType()),
|
|
35717
|
-
arrayType(recordType(anyType()))
|
|
35718
|
-
]))
|
|
35719
|
-
});
|
|
35720
|
-
Errors$outboundSchema = objectType({
|
|
35721
|
-
messages: arrayType(stringType()),
|
|
35722
|
-
value: nullableType(unionType([
|
|
35723
|
-
stringType(),
|
|
35724
|
-
numberType(),
|
|
35725
|
-
booleanType(),
|
|
35726
|
-
recordType(anyType()),
|
|
35727
|
-
arrayType(recordType(anyType()))
|
|
35728
|
-
]))
|
|
35729
|
-
});
|
|
35730
|
-
((Errors$) => {
|
|
35731
|
-
Errors$.inboundSchema = Errors$inboundSchema;
|
|
35732
|
-
Errors$.outboundSchema = Errors$outboundSchema;
|
|
35733
|
-
})(Errors$ ||= {});
|
|
35734
|
-
ValidationErrorDto$inboundSchema = objectType({
|
|
35735
|
-
statusCode: numberType(),
|
|
35736
|
-
timestamp: stringType(),
|
|
35737
|
-
path: stringType(),
|
|
35738
|
-
message: stringType(),
|
|
35739
|
-
ctx: recordType(anyType()).optional(),
|
|
35740
|
-
errorId: stringType().optional(),
|
|
35741
|
-
errors: recordType(lazyType(() => Errors$inboundSchema))
|
|
35742
|
-
}).transform((v2) => {
|
|
35743
|
-
return new ValidationErrorDto(v2);
|
|
35744
|
-
});
|
|
35745
|
-
ValidationErrorDto$outboundSchema = instanceOfType(ValidationErrorDto).transform((v2) => v2.data$).pipe(objectType({
|
|
35746
|
-
statusCode: numberType(),
|
|
35747
|
-
timestamp: stringType(),
|
|
35748
|
-
path: stringType(),
|
|
35749
|
-
message: stringType(),
|
|
35750
|
-
ctx: recordType(anyType()).optional(),
|
|
35751
|
-
errorId: stringType().optional(),
|
|
35752
|
-
errors: recordType(lazyType(() => Errors$outboundSchema))
|
|
35753
|
-
}));
|
|
35754
|
-
((ValidationErrorDto$) => {
|
|
35755
|
-
ValidationErrorDto$.inboundSchema = ValidationErrorDto$inboundSchema;
|
|
35756
|
-
ValidationErrorDto$.outboundSchema = ValidationErrorDto$outboundSchema;
|
|
35757
|
-
})(ValidationErrorDto$ ||= {});
|
|
35758
|
-
});
|
|
35759
|
-
|
|
35760
|
-
// src/models/errors/index.ts
|
|
35761
|
-
var init_errors = __esm(() => {
|
|
35762
|
-
init_errordto();
|
|
35763
|
-
init_httpclienterrors();
|
|
35764
|
-
init_sdkerror();
|
|
35765
|
-
init_sdkvalidationerror();
|
|
35766
|
-
init_validationerrordto();
|
|
35767
|
-
});
|
|
35768
|
-
|
|
35769
35735
|
// src/models/components/executiondetailssourceenum.ts
|
|
35770
35736
|
var ExecutionDetailsSourceEnum, ExecutionDetailsSourceEnum$inboundSchema, ExecutionDetailsSourceEnum$outboundSchema, ExecutionDetailsSourceEnum$;
|
|
35771
35737
|
var init_executiondetailssourceenum = __esm(() => {
|
|
@@ -35860,6 +35826,7 @@ var init_providersidenum = __esm(() => {
|
|
|
35860
35826
|
BrevoSms: "brevo-sms",
|
|
35861
35827
|
EazySms: "eazy-sms",
|
|
35862
35828
|
Mobishastra: "mobishastra",
|
|
35829
|
+
AfroMessage: "afro-message",
|
|
35863
35830
|
Fcm: "fcm",
|
|
35864
35831
|
Apns: "apns",
|
|
35865
35832
|
Expo: "expo",
|
|
@@ -36020,31 +35987,31 @@ var init_fieldfilterpartdto = __esm(() => {
|
|
|
36020
35987
|
});
|
|
36021
35988
|
|
|
36022
35989
|
// src/models/components/stepfilterdto.ts
|
|
36023
|
-
var
|
|
35990
|
+
var StepFilterDtoValue, StepFilterDtoValue$inboundSchema, StepFilterDtoValue$outboundSchema, StepFilterDtoValue$, StepFilterDto$inboundSchema, StepFilterDto$outboundSchema, StepFilterDto$;
|
|
36024
35991
|
var init_stepfilterdto = __esm(() => {
|
|
36025
35992
|
init_lib();
|
|
36026
35993
|
init_builderfieldtypeenum();
|
|
36027
35994
|
init_fieldfilterpartdto();
|
|
36028
|
-
|
|
35995
|
+
StepFilterDtoValue = {
|
|
36029
35996
|
And: "AND",
|
|
36030
35997
|
Or: "OR"
|
|
36031
35998
|
};
|
|
36032
|
-
|
|
36033
|
-
|
|
36034
|
-
((
|
|
36035
|
-
|
|
36036
|
-
|
|
36037
|
-
})(
|
|
35999
|
+
StepFilterDtoValue$inboundSchema = nativeEnumType(StepFilterDtoValue);
|
|
36000
|
+
StepFilterDtoValue$outboundSchema = StepFilterDtoValue$inboundSchema;
|
|
36001
|
+
((StepFilterDtoValue$) => {
|
|
36002
|
+
StepFilterDtoValue$.inboundSchema = StepFilterDtoValue$inboundSchema;
|
|
36003
|
+
StepFilterDtoValue$.outboundSchema = StepFilterDtoValue$outboundSchema;
|
|
36004
|
+
})(StepFilterDtoValue$ ||= {});
|
|
36038
36005
|
StepFilterDto$inboundSchema = objectType({
|
|
36039
36006
|
isNegated: booleanType(),
|
|
36040
36007
|
type: BuilderFieldTypeEnum$inboundSchema,
|
|
36041
|
-
value:
|
|
36008
|
+
value: StepFilterDtoValue$inboundSchema,
|
|
36042
36009
|
children: arrayType(FieldFilterPartDto$inboundSchema)
|
|
36043
36010
|
});
|
|
36044
36011
|
StepFilterDto$outboundSchema = objectType({
|
|
36045
36012
|
isNegated: booleanType(),
|
|
36046
36013
|
type: BuilderFieldTypeEnum$outboundSchema,
|
|
36047
|
-
value:
|
|
36014
|
+
value: StepFilterDtoValue$outboundSchema,
|
|
36048
36015
|
children: arrayType(FieldFilterPartDto$outboundSchema)
|
|
36049
36016
|
});
|
|
36050
36017
|
((StepFilterDto$) => {
|
|
@@ -36054,7 +36021,7 @@ var init_stepfilterdto = __esm(() => {
|
|
|
36054
36021
|
});
|
|
36055
36022
|
|
|
36056
36023
|
// src/models/components/activitynotificationstepresponsedto.ts
|
|
36057
|
-
var ActivityNotificationStepResponseDtoReplyCallback$inboundSchema, ActivityNotificationStepResponseDtoReplyCallback$outboundSchema, ActivityNotificationStepResponseDtoReplyCallback$, ControlVariables$inboundSchema, ControlVariables$outboundSchema, ControlVariables$,
|
|
36024
|
+
var ActivityNotificationStepResponseDtoReplyCallback$inboundSchema, ActivityNotificationStepResponseDtoReplyCallback$outboundSchema, ActivityNotificationStepResponseDtoReplyCallback$, ControlVariables$inboundSchema, ControlVariables$outboundSchema, ControlVariables$, ActivityNotificationStepResponseDtoMetadata$inboundSchema, ActivityNotificationStepResponseDtoMetadata$outboundSchema, ActivityNotificationStepResponseDtoMetadata$, Issues$inboundSchema, Issues$outboundSchema, Issues$, ActivityNotificationStepResponseDto$inboundSchema, ActivityNotificationStepResponseDto$outboundSchema, ActivityNotificationStepResponseDto$;
|
|
36058
36025
|
var init_activitynotificationstepresponsedto = __esm(() => {
|
|
36059
36026
|
init_lib();
|
|
36060
36027
|
init_primitives();
|
|
@@ -36072,12 +36039,12 @@ var init_activitynotificationstepresponsedto = __esm(() => {
|
|
|
36072
36039
|
ControlVariables$.inboundSchema = ControlVariables$inboundSchema;
|
|
36073
36040
|
ControlVariables$.outboundSchema = ControlVariables$outboundSchema;
|
|
36074
36041
|
})(ControlVariables$ ||= {});
|
|
36075
|
-
|
|
36076
|
-
|
|
36077
|
-
((
|
|
36078
|
-
|
|
36079
|
-
|
|
36080
|
-
})(
|
|
36042
|
+
ActivityNotificationStepResponseDtoMetadata$inboundSchema = objectType({});
|
|
36043
|
+
ActivityNotificationStepResponseDtoMetadata$outboundSchema = objectType({});
|
|
36044
|
+
((ActivityNotificationStepResponseDtoMetadata$) => {
|
|
36045
|
+
ActivityNotificationStepResponseDtoMetadata$.inboundSchema = ActivityNotificationStepResponseDtoMetadata$inboundSchema;
|
|
36046
|
+
ActivityNotificationStepResponseDtoMetadata$.outboundSchema = ActivityNotificationStepResponseDtoMetadata$outboundSchema;
|
|
36047
|
+
})(ActivityNotificationStepResponseDtoMetadata$ ||= {});
|
|
36081
36048
|
Issues$inboundSchema = objectType({});
|
|
36082
36049
|
Issues$outboundSchema = objectType({});
|
|
36083
36050
|
((Issues$) => {
|
|
@@ -36089,7 +36056,7 @@ var init_activitynotificationstepresponsedto = __esm(() => {
|
|
|
36089
36056
|
active: booleanType(),
|
|
36090
36057
|
replyCallback: lazyType(() => ActivityNotificationStepResponseDtoReplyCallback$inboundSchema).optional(),
|
|
36091
36058
|
controlVariables: lazyType(() => ControlVariables$inboundSchema).optional(),
|
|
36092
|
-
metadata: lazyType(() =>
|
|
36059
|
+
metadata: lazyType(() => ActivityNotificationStepResponseDtoMetadata$inboundSchema).optional(),
|
|
36093
36060
|
issues: lazyType(() => Issues$inboundSchema).optional(),
|
|
36094
36061
|
filters: arrayType(StepFilterDto$inboundSchema),
|
|
36095
36062
|
template: MessageTemplateDto$inboundSchema.optional(),
|
|
@@ -36109,7 +36076,7 @@ var init_activitynotificationstepresponsedto = __esm(() => {
|
|
|
36109
36076
|
active: booleanType(),
|
|
36110
36077
|
replyCallback: lazyType(() => ActivityNotificationStepResponseDtoReplyCallback$outboundSchema).optional(),
|
|
36111
36078
|
controlVariables: lazyType(() => ControlVariables$outboundSchema).optional(),
|
|
36112
|
-
metadata: lazyType(() =>
|
|
36079
|
+
metadata: lazyType(() => ActivityNotificationStepResponseDtoMetadata$outboundSchema).optional(),
|
|
36113
36080
|
issues: lazyType(() => Issues$outboundSchema).optional(),
|
|
36114
36081
|
filters: arrayType(StepFilterDto$outboundSchema),
|
|
36115
36082
|
template: MessageTemplateDto$outboundSchema.optional(),
|
|
@@ -36191,13 +36158,13 @@ var init_ordinalvalueenum = __esm(() => {
|
|
|
36191
36158
|
});
|
|
36192
36159
|
|
|
36193
36160
|
// src/models/components/digesttimedconfigdto.ts
|
|
36194
|
-
var
|
|
36161
|
+
var DigestTimedConfigDtoWeekDays, DigestTimedConfigDtoWeekDays$inboundSchema, DigestTimedConfigDtoWeekDays$outboundSchema, DigestTimedConfigDtoWeekDays$, DigestTimedConfigDto$inboundSchema, DigestTimedConfigDto$outboundSchema, DigestTimedConfigDto$;
|
|
36195
36162
|
var init_digesttimedconfigdto = __esm(() => {
|
|
36196
36163
|
init_lib();
|
|
36197
36164
|
init_monthlytypeenum();
|
|
36198
36165
|
init_ordinalenum();
|
|
36199
36166
|
init_ordinalvalueenum();
|
|
36200
|
-
|
|
36167
|
+
DigestTimedConfigDtoWeekDays = {
|
|
36201
36168
|
Monday: "monday",
|
|
36202
36169
|
Tuesday: "tuesday",
|
|
36203
36170
|
Wednesday: "wednesday",
|
|
@@ -36206,15 +36173,15 @@ var init_digesttimedconfigdto = __esm(() => {
|
|
|
36206
36173
|
Saturday: "saturday",
|
|
36207
36174
|
Sunday: "sunday"
|
|
36208
36175
|
};
|
|
36209
|
-
|
|
36210
|
-
|
|
36211
|
-
((
|
|
36212
|
-
|
|
36213
|
-
|
|
36214
|
-
})(
|
|
36176
|
+
DigestTimedConfigDtoWeekDays$inboundSchema = nativeEnumType(DigestTimedConfigDtoWeekDays);
|
|
36177
|
+
DigestTimedConfigDtoWeekDays$outboundSchema = DigestTimedConfigDtoWeekDays$inboundSchema;
|
|
36178
|
+
((DigestTimedConfigDtoWeekDays$) => {
|
|
36179
|
+
DigestTimedConfigDtoWeekDays$.inboundSchema = DigestTimedConfigDtoWeekDays$inboundSchema;
|
|
36180
|
+
DigestTimedConfigDtoWeekDays$.outboundSchema = DigestTimedConfigDtoWeekDays$outboundSchema;
|
|
36181
|
+
})(DigestTimedConfigDtoWeekDays$ ||= {});
|
|
36215
36182
|
DigestTimedConfigDto$inboundSchema = objectType({
|
|
36216
36183
|
atTime: stringType().optional(),
|
|
36217
|
-
weekDays: arrayType(
|
|
36184
|
+
weekDays: arrayType(DigestTimedConfigDtoWeekDays$inboundSchema).optional(),
|
|
36218
36185
|
monthDays: arrayType(numberType()).optional(),
|
|
36219
36186
|
ordinal: OrdinalEnum$inboundSchema.optional(),
|
|
36220
36187
|
ordinalValue: OrdinalValueEnum$inboundSchema.optional(),
|
|
@@ -36223,7 +36190,7 @@ var init_digesttimedconfigdto = __esm(() => {
|
|
|
36223
36190
|
});
|
|
36224
36191
|
DigestTimedConfigDto$outboundSchema = objectType({
|
|
36225
36192
|
atTime: stringType().optional(),
|
|
36226
|
-
weekDays: arrayType(
|
|
36193
|
+
weekDays: arrayType(DigestTimedConfigDtoWeekDays$outboundSchema).optional(),
|
|
36227
36194
|
monthDays: arrayType(numberType()).optional(),
|
|
36228
36195
|
ordinal: OrdinalEnum$outboundSchema.optional(),
|
|
36229
36196
|
ordinalValue: OrdinalValueEnum$outboundSchema.optional(),
|
|
@@ -36274,13 +36241,13 @@ var init_digestunitenum = __esm(() => {
|
|
|
36274
36241
|
});
|
|
36275
36242
|
|
|
36276
36243
|
// src/models/components/digestmetadatadto.ts
|
|
36277
|
-
var
|
|
36244
|
+
var DigestMetadataDtoUnit, DigestMetadataDtoUnit$inboundSchema, DigestMetadataDtoUnit$outboundSchema, DigestMetadataDtoUnit$, DigestMetadataDto$inboundSchema, DigestMetadataDto$outboundSchema, DigestMetadataDto$;
|
|
36278
36245
|
var init_digestmetadatadto = __esm(() => {
|
|
36279
36246
|
init_lib();
|
|
36280
36247
|
init_digesttimedconfigdto();
|
|
36281
36248
|
init_digesttypeenum();
|
|
36282
36249
|
init_digestunitenum();
|
|
36283
|
-
|
|
36250
|
+
DigestMetadataDtoUnit = {
|
|
36284
36251
|
Seconds: "seconds",
|
|
36285
36252
|
Minutes: "minutes",
|
|
36286
36253
|
Hours: "hours",
|
|
@@ -36288,16 +36255,16 @@ var init_digestmetadatadto = __esm(() => {
|
|
|
36288
36255
|
Weeks: "weeks",
|
|
36289
36256
|
Months: "months"
|
|
36290
36257
|
};
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
((
|
|
36294
|
-
|
|
36295
|
-
|
|
36296
|
-
})(
|
|
36258
|
+
DigestMetadataDtoUnit$inboundSchema = nativeEnumType(DigestMetadataDtoUnit);
|
|
36259
|
+
DigestMetadataDtoUnit$outboundSchema = DigestMetadataDtoUnit$inboundSchema;
|
|
36260
|
+
((DigestMetadataDtoUnit$) => {
|
|
36261
|
+
DigestMetadataDtoUnit$.inboundSchema = DigestMetadataDtoUnit$inboundSchema;
|
|
36262
|
+
DigestMetadataDtoUnit$.outboundSchema = DigestMetadataDtoUnit$outboundSchema;
|
|
36263
|
+
})(DigestMetadataDtoUnit$ ||= {});
|
|
36297
36264
|
DigestMetadataDto$inboundSchema = objectType({
|
|
36298
36265
|
digestKey: stringType().optional(),
|
|
36299
36266
|
amount: numberType().optional(),
|
|
36300
|
-
unit:
|
|
36267
|
+
unit: DigestMetadataDtoUnit$inboundSchema.optional(),
|
|
36301
36268
|
type: DigestTypeEnum$inboundSchema,
|
|
36302
36269
|
events: arrayType(recordType(anyType())).optional(),
|
|
36303
36270
|
backoff: booleanType().optional(),
|
|
@@ -36309,7 +36276,7 @@ var init_digestmetadatadto = __esm(() => {
|
|
|
36309
36276
|
DigestMetadataDto$outboundSchema = objectType({
|
|
36310
36277
|
digestKey: stringType().optional(),
|
|
36311
36278
|
amount: numberType().optional(),
|
|
36312
|
-
unit:
|
|
36279
|
+
unit: DigestMetadataDtoUnit$outboundSchema.optional(),
|
|
36313
36280
|
type: DigestTypeEnum$outboundSchema,
|
|
36314
36281
|
events: arrayType(recordType(anyType())).optional(),
|
|
36315
36282
|
backoff: booleanType().optional(),
|
|
@@ -36325,7 +36292,7 @@ var init_digestmetadatadto = __esm(() => {
|
|
|
36325
36292
|
});
|
|
36326
36293
|
|
|
36327
36294
|
// src/models/components/activitynotificationjobresponsedto.ts
|
|
36328
|
-
var ActivityNotificationJobResponseDtoType, ActivityNotificationJobResponseDtoType$inboundSchema, ActivityNotificationJobResponseDtoType$outboundSchema, ActivityNotificationJobResponseDtoType$,
|
|
36295
|
+
var ActivityNotificationJobResponseDtoType, ActivityNotificationJobResponseDtoType$inboundSchema, ActivityNotificationJobResponseDtoType$outboundSchema, ActivityNotificationJobResponseDtoType$, ActivityNotificationJobResponseDtoPayload$inboundSchema, ActivityNotificationJobResponseDtoPayload$outboundSchema, ActivityNotificationJobResponseDtoPayload$, ActivityNotificationJobResponseDto$inboundSchema, ActivityNotificationJobResponseDto$outboundSchema, ActivityNotificationJobResponseDto$;
|
|
36329
36296
|
var init_activitynotificationjobresponsedto = __esm(() => {
|
|
36330
36297
|
init_lib();
|
|
36331
36298
|
init_primitives();
|
|
@@ -36350,12 +36317,12 @@ var init_activitynotificationjobresponsedto = __esm(() => {
|
|
|
36350
36317
|
ActivityNotificationJobResponseDtoType$.inboundSchema = ActivityNotificationJobResponseDtoType$inboundSchema;
|
|
36351
36318
|
ActivityNotificationJobResponseDtoType$.outboundSchema = ActivityNotificationJobResponseDtoType$outboundSchema;
|
|
36352
36319
|
})(ActivityNotificationJobResponseDtoType$ ||= {});
|
|
36353
|
-
|
|
36354
|
-
|
|
36355
|
-
((
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
})(
|
|
36320
|
+
ActivityNotificationJobResponseDtoPayload$inboundSchema = objectType({});
|
|
36321
|
+
ActivityNotificationJobResponseDtoPayload$outboundSchema = objectType({});
|
|
36322
|
+
((ActivityNotificationJobResponseDtoPayload$) => {
|
|
36323
|
+
ActivityNotificationJobResponseDtoPayload$.inboundSchema = ActivityNotificationJobResponseDtoPayload$inboundSchema;
|
|
36324
|
+
ActivityNotificationJobResponseDtoPayload$.outboundSchema = ActivityNotificationJobResponseDtoPayload$outboundSchema;
|
|
36325
|
+
})(ActivityNotificationJobResponseDtoPayload$ ||= {});
|
|
36359
36326
|
ActivityNotificationJobResponseDto$inboundSchema = objectType({
|
|
36360
36327
|
_id: stringType(),
|
|
36361
36328
|
type: ActivityNotificationJobResponseDtoType$inboundSchema,
|
|
@@ -36363,7 +36330,7 @@ var init_activitynotificationjobresponsedto = __esm(() => {
|
|
|
36363
36330
|
executionDetails: arrayType(ActivityNotificationExecutionDetailResponseDto$inboundSchema),
|
|
36364
36331
|
step: ActivityNotificationStepResponseDto$inboundSchema,
|
|
36365
36332
|
overrides: recordType(anyType()).optional(),
|
|
36366
|
-
payload: lazyType(() =>
|
|
36333
|
+
payload: lazyType(() => ActivityNotificationJobResponseDtoPayload$inboundSchema).optional(),
|
|
36367
36334
|
providerId: ProvidersIdEnum$inboundSchema,
|
|
36368
36335
|
status: stringType(),
|
|
36369
36336
|
updatedAt: stringType().optional()
|
|
@@ -36379,7 +36346,7 @@ var init_activitynotificationjobresponsedto = __esm(() => {
|
|
|
36379
36346
|
executionDetails: arrayType(ActivityNotificationExecutionDetailResponseDto$outboundSchema),
|
|
36380
36347
|
step: ActivityNotificationStepResponseDto$outboundSchema,
|
|
36381
36348
|
overrides: recordType(anyType()).optional(),
|
|
36382
|
-
payload: lazyType(() =>
|
|
36349
|
+
payload: lazyType(() => ActivityNotificationJobResponseDtoPayload$outboundSchema).optional(),
|
|
36383
36350
|
providerId: ProvidersIdEnum$outboundSchema,
|
|
36384
36351
|
status: stringType(),
|
|
36385
36352
|
updatedAt: stringType().optional()
|
|
@@ -36446,27 +36413,27 @@ var init_notificationtriggervariable = __esm(() => {
|
|
|
36446
36413
|
});
|
|
36447
36414
|
|
|
36448
36415
|
// src/models/components/notificationtriggerdto.ts
|
|
36449
|
-
var
|
|
36416
|
+
var NotificationTriggerDtoType, NotificationTriggerDtoType$inboundSchema, NotificationTriggerDtoType$outboundSchema, NotificationTriggerDtoType$, NotificationTriggerDto$inboundSchema, NotificationTriggerDto$outboundSchema, NotificationTriggerDto$;
|
|
36450
36417
|
var init_notificationtriggerdto = __esm(() => {
|
|
36451
36418
|
init_lib();
|
|
36452
36419
|
init_notificationtriggervariable();
|
|
36453
|
-
|
|
36420
|
+
NotificationTriggerDtoType = {
|
|
36454
36421
|
Event: "event"
|
|
36455
36422
|
};
|
|
36456
|
-
|
|
36457
|
-
|
|
36458
|
-
((
|
|
36459
|
-
|
|
36460
|
-
|
|
36461
|
-
})(
|
|
36423
|
+
NotificationTriggerDtoType$inboundSchema = nativeEnumType(NotificationTriggerDtoType);
|
|
36424
|
+
NotificationTriggerDtoType$outboundSchema = NotificationTriggerDtoType$inboundSchema;
|
|
36425
|
+
((NotificationTriggerDtoType$) => {
|
|
36426
|
+
NotificationTriggerDtoType$.inboundSchema = NotificationTriggerDtoType$inboundSchema;
|
|
36427
|
+
NotificationTriggerDtoType$.outboundSchema = NotificationTriggerDtoType$outboundSchema;
|
|
36428
|
+
})(NotificationTriggerDtoType$ ||= {});
|
|
36462
36429
|
NotificationTriggerDto$inboundSchema = objectType({
|
|
36463
|
-
type:
|
|
36430
|
+
type: NotificationTriggerDtoType$inboundSchema,
|
|
36464
36431
|
identifier: stringType(),
|
|
36465
36432
|
variables: arrayType(NotificationTriggerVariable$inboundSchema),
|
|
36466
36433
|
subscriberVariables: arrayType(NotificationTriggerVariable$inboundSchema).optional()
|
|
36467
36434
|
});
|
|
36468
36435
|
NotificationTriggerDto$outboundSchema = objectType({
|
|
36469
|
-
type:
|
|
36436
|
+
type: NotificationTriggerDtoType$outboundSchema,
|
|
36470
36437
|
identifier: stringType(),
|
|
36471
36438
|
variables: arrayType(NotificationTriggerVariable$outboundSchema),
|
|
36472
36439
|
subscriberVariables: arrayType(NotificationTriggerVariable$outboundSchema).optional()
|
|
@@ -36934,6 +36901,22 @@ var init_bulksubscribercreatedto = __esm(() => {
|
|
|
36934
36901
|
})(BulkSubscriberCreateDto$ ||= {});
|
|
36935
36902
|
});
|
|
36936
36903
|
|
|
36904
|
+
// src/models/components/stepsoverrides.ts
|
|
36905
|
+
var StepsOverrides$inboundSchema, StepsOverrides$outboundSchema, StepsOverrides$;
|
|
36906
|
+
var init_stepsoverrides = __esm(() => {
|
|
36907
|
+
init_lib();
|
|
36908
|
+
StepsOverrides$inboundSchema = objectType({
|
|
36909
|
+
providers: recordType(recordType(anyType()))
|
|
36910
|
+
});
|
|
36911
|
+
StepsOverrides$outboundSchema = objectType({
|
|
36912
|
+
providers: recordType(recordType(anyType()))
|
|
36913
|
+
});
|
|
36914
|
+
((StepsOverrides$) => {
|
|
36915
|
+
StepsOverrides$.inboundSchema = StepsOverrides$inboundSchema;
|
|
36916
|
+
StepsOverrides$.outboundSchema = StepsOverrides$outboundSchema;
|
|
36917
|
+
})(StepsOverrides$ ||= {});
|
|
36918
|
+
});
|
|
36919
|
+
|
|
36937
36920
|
// src/models/components/channelcredentialsdto.ts
|
|
36938
36921
|
var ChannelCredentialsDto$inboundSchema, ChannelCredentialsDto$outboundSchema, ChannelCredentialsDto$;
|
|
36939
36922
|
var init_channelcredentialsdto = __esm(() => {
|
|
@@ -36953,11 +36936,11 @@ var init_channelcredentialsdto = __esm(() => {
|
|
|
36953
36936
|
});
|
|
36954
36937
|
|
|
36955
36938
|
// src/models/components/subscriberchanneldto.ts
|
|
36956
|
-
var
|
|
36939
|
+
var ProviderId, ProviderId$inboundSchema, ProviderId$outboundSchema, ProviderId$, SubscriberChannelDto$inboundSchema, SubscriberChannelDto$outboundSchema, SubscriberChannelDto$;
|
|
36957
36940
|
var init_subscriberchanneldto = __esm(() => {
|
|
36958
36941
|
init_lib();
|
|
36959
36942
|
init_channelcredentialsdto();
|
|
36960
|
-
|
|
36943
|
+
ProviderId = {
|
|
36961
36944
|
Slack: "slack",
|
|
36962
36945
|
Discord: "discord",
|
|
36963
36946
|
Msteams: "msteams",
|
|
@@ -36976,19 +36959,19 @@ var init_subscriberchanneldto = __esm(() => {
|
|
|
36976
36959
|
PushWebhook: "push-webhook",
|
|
36977
36960
|
PusherBeams: "pusher-beams"
|
|
36978
36961
|
};
|
|
36979
|
-
|
|
36980
|
-
|
|
36981
|
-
((
|
|
36982
|
-
|
|
36983
|
-
|
|
36984
|
-
})(
|
|
36962
|
+
ProviderId$inboundSchema = nativeEnumType(ProviderId);
|
|
36963
|
+
ProviderId$outboundSchema = ProviderId$inboundSchema;
|
|
36964
|
+
((ProviderId$) => {
|
|
36965
|
+
ProviderId$.inboundSchema = ProviderId$inboundSchema;
|
|
36966
|
+
ProviderId$.outboundSchema = ProviderId$outboundSchema;
|
|
36967
|
+
})(ProviderId$ ||= {});
|
|
36985
36968
|
SubscriberChannelDto$inboundSchema = objectType({
|
|
36986
|
-
providerId:
|
|
36969
|
+
providerId: ProviderId$inboundSchema,
|
|
36987
36970
|
integrationIdentifier: stringType().optional(),
|
|
36988
36971
|
credentials: ChannelCredentialsDto$inboundSchema
|
|
36989
36972
|
});
|
|
36990
36973
|
SubscriberChannelDto$outboundSchema = objectType({
|
|
36991
|
-
providerId:
|
|
36974
|
+
providerId: ProviderId$outboundSchema,
|
|
36992
36975
|
integrationIdentifier: stringType().optional(),
|
|
36993
36976
|
credentials: ChannelCredentialsDto$outboundSchema
|
|
36994
36977
|
});
|
|
@@ -37101,13 +37084,36 @@ var init_topicpayloaddto = __esm(() => {
|
|
|
37101
37084
|
});
|
|
37102
37085
|
|
|
37103
37086
|
// src/models/components/triggereventrequestdto.ts
|
|
37104
|
-
var One$inboundSchema, One$outboundSchema, One$, To$inboundSchema, To$outboundSchema, To$, Actor$inboundSchema, Actor$outboundSchema, Actor$, Tenant$inboundSchema, Tenant$outboundSchema, Tenant$, TriggerEventRequestDto$inboundSchema, TriggerEventRequestDto$outboundSchema, TriggerEventRequestDto$;
|
|
37087
|
+
var Overrides$inboundSchema, Overrides$outboundSchema, Overrides$, One$inboundSchema, One$outboundSchema, One$, To$inboundSchema, To$outboundSchema, To$, Actor$inboundSchema, Actor$outboundSchema, Actor$, Tenant$inboundSchema, Tenant$outboundSchema, Tenant$, TriggerEventRequestDto$inboundSchema, TriggerEventRequestDto$outboundSchema, TriggerEventRequestDto$;
|
|
37105
37088
|
var init_triggereventrequestdto = __esm(() => {
|
|
37106
37089
|
init_lib();
|
|
37107
37090
|
init_primitives();
|
|
37091
|
+
init_stepsoverrides();
|
|
37108
37092
|
init_subscriberpayloaddto();
|
|
37109
37093
|
init_tenantpayloaddto();
|
|
37110
37094
|
init_topicpayloaddto();
|
|
37095
|
+
Overrides$inboundSchema = objectType({
|
|
37096
|
+
steps: recordType(StepsOverrides$inboundSchema).optional(),
|
|
37097
|
+
providers: recordType(recordType(anyType())).optional(),
|
|
37098
|
+
email: recordType(anyType()).optional(),
|
|
37099
|
+
push: recordType(anyType()).optional(),
|
|
37100
|
+
sms: recordType(anyType()).optional(),
|
|
37101
|
+
chat: recordType(anyType()).optional(),
|
|
37102
|
+
layoutIdentifier: stringType().optional()
|
|
37103
|
+
});
|
|
37104
|
+
Overrides$outboundSchema = objectType({
|
|
37105
|
+
steps: recordType(StepsOverrides$outboundSchema).optional(),
|
|
37106
|
+
providers: recordType(recordType(anyType())).optional(),
|
|
37107
|
+
email: recordType(anyType()).optional(),
|
|
37108
|
+
push: recordType(anyType()).optional(),
|
|
37109
|
+
sms: recordType(anyType()).optional(),
|
|
37110
|
+
chat: recordType(anyType()).optional(),
|
|
37111
|
+
layoutIdentifier: stringType().optional()
|
|
37112
|
+
});
|
|
37113
|
+
((Overrides$) => {
|
|
37114
|
+
Overrides$.inboundSchema = Overrides$inboundSchema;
|
|
37115
|
+
Overrides$.outboundSchema = Overrides$outboundSchema;
|
|
37116
|
+
})(Overrides$ ||= {});
|
|
37111
37117
|
One$inboundSchema = unionType([
|
|
37112
37118
|
TopicPayloadDto$inboundSchema,
|
|
37113
37119
|
SubscriberPayloadDto$inboundSchema,
|
|
@@ -37161,7 +37167,7 @@ var init_triggereventrequestdto = __esm(() => {
|
|
|
37161
37167
|
TriggerEventRequestDto$inboundSchema = objectType({
|
|
37162
37168
|
name: stringType(),
|
|
37163
37169
|
payload: recordType(anyType()).optional(),
|
|
37164
|
-
overrides:
|
|
37170
|
+
overrides: lazyType(() => Overrides$inboundSchema).optional(),
|
|
37165
37171
|
to: unionType([
|
|
37166
37172
|
TopicPayloadDto$inboundSchema,
|
|
37167
37173
|
SubscriberPayloadDto$inboundSchema,
|
|
@@ -37183,7 +37189,7 @@ var init_triggereventrequestdto = __esm(() => {
|
|
|
37183
37189
|
TriggerEventRequestDto$outboundSchema = objectType({
|
|
37184
37190
|
workflowId: stringType(),
|
|
37185
37191
|
payload: recordType(anyType()).optional(),
|
|
37186
|
-
overrides:
|
|
37192
|
+
overrides: lazyType(() => Overrides$outboundSchema).optional(),
|
|
37187
37193
|
to: unionType([
|
|
37188
37194
|
TopicPayloadDto$outboundSchema,
|
|
37189
37195
|
SubscriberPayloadDto$outboundSchema,
|
|
@@ -37286,13 +37292,11 @@ var init_channelctatypeenum = __esm(() => {
|
|
|
37286
37292
|
})(ChannelCTATypeEnum$ ||= {});
|
|
37287
37293
|
});
|
|
37288
37294
|
|
|
37289
|
-
// src/models/components/
|
|
37290
|
-
var
|
|
37291
|
-
var
|
|
37295
|
+
// src/models/components/chatorpushproviderenum.ts
|
|
37296
|
+
var ChatOrPushProviderEnum, ChatOrPushProviderEnum$inboundSchema, ChatOrPushProviderEnum$outboundSchema, ChatOrPushProviderEnum$;
|
|
37297
|
+
var init_chatorpushproviderenum = __esm(() => {
|
|
37292
37298
|
init_lib();
|
|
37293
|
-
|
|
37294
|
-
init_channelcredentials();
|
|
37295
|
-
ProviderId = {
|
|
37299
|
+
ChatOrPushProviderEnum = {
|
|
37296
37300
|
Slack: "slack",
|
|
37297
37301
|
Discord: "discord",
|
|
37298
37302
|
Msteams: "msteams",
|
|
@@ -37311,14 +37315,23 @@ var init_channelsettingsdto = __esm(() => {
|
|
|
37311
37315
|
PushWebhook: "push-webhook",
|
|
37312
37316
|
PusherBeams: "pusher-beams"
|
|
37313
37317
|
};
|
|
37314
|
-
|
|
37315
|
-
|
|
37316
|
-
((
|
|
37317
|
-
|
|
37318
|
-
|
|
37319
|
-
})(
|
|
37318
|
+
ChatOrPushProviderEnum$inboundSchema = nativeEnumType(ChatOrPushProviderEnum);
|
|
37319
|
+
ChatOrPushProviderEnum$outboundSchema = ChatOrPushProviderEnum$inboundSchema;
|
|
37320
|
+
((ChatOrPushProviderEnum$) => {
|
|
37321
|
+
ChatOrPushProviderEnum$.inboundSchema = ChatOrPushProviderEnum$inboundSchema;
|
|
37322
|
+
ChatOrPushProviderEnum$.outboundSchema = ChatOrPushProviderEnum$outboundSchema;
|
|
37323
|
+
})(ChatOrPushProviderEnum$ ||= {});
|
|
37324
|
+
});
|
|
37325
|
+
|
|
37326
|
+
// src/models/components/channelsettingsdto.ts
|
|
37327
|
+
var ChannelSettingsDto$inboundSchema, ChannelSettingsDto$outboundSchema, ChannelSettingsDto$;
|
|
37328
|
+
var init_channelsettingsdto = __esm(() => {
|
|
37329
|
+
init_lib();
|
|
37330
|
+
init_primitives();
|
|
37331
|
+
init_channelcredentials();
|
|
37332
|
+
init_chatorpushproviderenum();
|
|
37320
37333
|
ChannelSettingsDto$inboundSchema = objectType({
|
|
37321
|
-
providerId:
|
|
37334
|
+
providerId: ChatOrPushProviderEnum$inboundSchema,
|
|
37322
37335
|
integrationIdentifier: stringType().optional(),
|
|
37323
37336
|
credentials: ChannelCredentials$inboundSchema,
|
|
37324
37337
|
_integrationId: stringType()
|
|
@@ -37328,7 +37341,7 @@ var init_channelsettingsdto = __esm(() => {
|
|
|
37328
37341
|
});
|
|
37329
37342
|
});
|
|
37330
37343
|
ChannelSettingsDto$outboundSchema = objectType({
|
|
37331
|
-
providerId:
|
|
37344
|
+
providerId: ChatOrPushProviderEnum$outboundSchema,
|
|
37332
37345
|
integrationIdentifier: stringType().optional(),
|
|
37333
37346
|
credentials: ChannelCredentials$outboundSchema,
|
|
37334
37347
|
integrationId: stringType()
|
|
@@ -37362,6 +37375,66 @@ var init_channeltypeenum = __esm(() => {
|
|
|
37362
37375
|
})(ChannelTypeEnum$ ||= {});
|
|
37363
37376
|
});
|
|
37364
37377
|
|
|
37378
|
+
// src/models/components/constraintvalidation.ts
|
|
37379
|
+
var Five$inboundSchema2, Five$outboundSchema2, Five$2, Four$inboundSchema2, Four$outboundSchema2, Four$2, Value$inboundSchema, Value$outboundSchema, Value$, ConstraintValidation$inboundSchema, ConstraintValidation$outboundSchema, ConstraintValidation$;
|
|
37380
|
+
var init_constraintvalidation = __esm(() => {
|
|
37381
|
+
init_lib();
|
|
37382
|
+
Five$inboundSchema2 = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
|
|
37383
|
+
Five$outboundSchema2 = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
|
|
37384
|
+
((Five$) => {
|
|
37385
|
+
Five$.inboundSchema = Five$inboundSchema2;
|
|
37386
|
+
Five$.outboundSchema = Five$outboundSchema2;
|
|
37387
|
+
})(Five$2 ||= {});
|
|
37388
|
+
Four$inboundSchema2 = objectType({});
|
|
37389
|
+
Four$outboundSchema2 = objectType({});
|
|
37390
|
+
((Four$) => {
|
|
37391
|
+
Four$.inboundSchema = Four$inboundSchema2;
|
|
37392
|
+
Four$.outboundSchema = Four$outboundSchema2;
|
|
37393
|
+
})(Four$2 ||= {});
|
|
37394
|
+
Value$inboundSchema = unionType([
|
|
37395
|
+
lazyType(() => Four$inboundSchema2),
|
|
37396
|
+
stringType(),
|
|
37397
|
+
numberType(),
|
|
37398
|
+
booleanType(),
|
|
37399
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
37400
|
+
]);
|
|
37401
|
+
Value$outboundSchema = unionType([
|
|
37402
|
+
lazyType(() => Four$outboundSchema2),
|
|
37403
|
+
stringType(),
|
|
37404
|
+
numberType(),
|
|
37405
|
+
booleanType(),
|
|
37406
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
37407
|
+
]);
|
|
37408
|
+
((Value$) => {
|
|
37409
|
+
Value$.inboundSchema = Value$inboundSchema;
|
|
37410
|
+
Value$.outboundSchema = Value$outboundSchema;
|
|
37411
|
+
})(Value$ ||= {});
|
|
37412
|
+
ConstraintValidation$inboundSchema = objectType({
|
|
37413
|
+
messages: arrayType(stringType()),
|
|
37414
|
+
value: nullableType(unionType([
|
|
37415
|
+
lazyType(() => Four$inboundSchema2),
|
|
37416
|
+
stringType(),
|
|
37417
|
+
numberType(),
|
|
37418
|
+
booleanType(),
|
|
37419
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
37420
|
+
])).optional()
|
|
37421
|
+
});
|
|
37422
|
+
ConstraintValidation$outboundSchema = objectType({
|
|
37423
|
+
messages: arrayType(stringType()),
|
|
37424
|
+
value: nullableType(unionType([
|
|
37425
|
+
lazyType(() => Four$outboundSchema2),
|
|
37426
|
+
stringType(),
|
|
37427
|
+
numberType(),
|
|
37428
|
+
booleanType(),
|
|
37429
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
37430
|
+
])).optional()
|
|
37431
|
+
});
|
|
37432
|
+
((ConstraintValidation$) => {
|
|
37433
|
+
ConstraintValidation$.inboundSchema = ConstraintValidation$inboundSchema;
|
|
37434
|
+
ConstraintValidation$.outboundSchema = ConstraintValidation$outboundSchema;
|
|
37435
|
+
})(ConstraintValidation$ ||= {});
|
|
37436
|
+
});
|
|
37437
|
+
|
|
37365
37438
|
// src/models/components/credentialsdto.ts
|
|
37366
37439
|
var TlsOptions$inboundSchema, TlsOptions$outboundSchema, TlsOptions$, CredentialsDto$inboundSchema, CredentialsDto$outboundSchema, CredentialsDto$;
|
|
37367
37440
|
var init_credentialsdto = __esm(() => {
|
|
@@ -37665,10 +37738,10 @@ var init_deletemessageresponsedto = __esm(() => {
|
|
|
37665
37738
|
});
|
|
37666
37739
|
|
|
37667
37740
|
// src/models/components/digestregularmetadata.ts
|
|
37668
|
-
var
|
|
37741
|
+
var Unit, Type, BackoffUnit, Unit$inboundSchema, Unit$outboundSchema, Unit$, Type$inboundSchema, Type$outboundSchema, Type$, BackoffUnit$inboundSchema, BackoffUnit$outboundSchema, BackoffUnit$, DigestRegularMetadata$inboundSchema, DigestRegularMetadata$outboundSchema, DigestRegularMetadata$;
|
|
37669
37742
|
var init_digestregularmetadata = __esm(() => {
|
|
37670
37743
|
init_lib();
|
|
37671
|
-
|
|
37744
|
+
Unit = {
|
|
37672
37745
|
Seconds: "seconds",
|
|
37673
37746
|
Minutes: "minutes",
|
|
37674
37747
|
Hours: "hours",
|
|
@@ -37676,7 +37749,7 @@ var init_digestregularmetadata = __esm(() => {
|
|
|
37676
37749
|
Weeks: "weeks",
|
|
37677
37750
|
Months: "months"
|
|
37678
37751
|
};
|
|
37679
|
-
|
|
37752
|
+
Type = {
|
|
37680
37753
|
Regular: "regular",
|
|
37681
37754
|
Backoff: "backoff"
|
|
37682
37755
|
};
|
|
@@ -37688,18 +37761,18 @@ var init_digestregularmetadata = __esm(() => {
|
|
|
37688
37761
|
Weeks: "weeks",
|
|
37689
37762
|
Months: "months"
|
|
37690
37763
|
};
|
|
37691
|
-
|
|
37692
|
-
|
|
37693
|
-
((
|
|
37694
|
-
|
|
37695
|
-
|
|
37696
|
-
})(
|
|
37697
|
-
|
|
37698
|
-
|
|
37699
|
-
((
|
|
37700
|
-
|
|
37701
|
-
|
|
37702
|
-
})(
|
|
37764
|
+
Unit$inboundSchema = nativeEnumType(Unit);
|
|
37765
|
+
Unit$outboundSchema = Unit$inboundSchema;
|
|
37766
|
+
((Unit$) => {
|
|
37767
|
+
Unit$.inboundSchema = Unit$inboundSchema;
|
|
37768
|
+
Unit$.outboundSchema = Unit$outboundSchema;
|
|
37769
|
+
})(Unit$ ||= {});
|
|
37770
|
+
Type$inboundSchema = nativeEnumType(Type);
|
|
37771
|
+
Type$outboundSchema = Type$inboundSchema;
|
|
37772
|
+
((Type$) => {
|
|
37773
|
+
Type$.inboundSchema = Type$inboundSchema;
|
|
37774
|
+
Type$.outboundSchema = Type$outboundSchema;
|
|
37775
|
+
})(Type$ ||= {});
|
|
37703
37776
|
BackoffUnit$inboundSchema = nativeEnumType(BackoffUnit);
|
|
37704
37777
|
BackoffUnit$outboundSchema = BackoffUnit$inboundSchema;
|
|
37705
37778
|
((BackoffUnit$) => {
|
|
@@ -37708,9 +37781,9 @@ var init_digestregularmetadata = __esm(() => {
|
|
|
37708
37781
|
})(BackoffUnit$ ||= {});
|
|
37709
37782
|
DigestRegularMetadata$inboundSchema = objectType({
|
|
37710
37783
|
amount: numberType().optional(),
|
|
37711
|
-
unit:
|
|
37784
|
+
unit: Unit$inboundSchema.optional(),
|
|
37712
37785
|
digestKey: stringType().optional(),
|
|
37713
|
-
type:
|
|
37786
|
+
type: Type$inboundSchema,
|
|
37714
37787
|
backoff: booleanType().optional(),
|
|
37715
37788
|
backoffAmount: numberType().optional(),
|
|
37716
37789
|
backoffUnit: BackoffUnit$inboundSchema.optional(),
|
|
@@ -37718,9 +37791,9 @@ var init_digestregularmetadata = __esm(() => {
|
|
|
37718
37791
|
});
|
|
37719
37792
|
DigestRegularMetadata$outboundSchema = objectType({
|
|
37720
37793
|
amount: numberType().optional(),
|
|
37721
|
-
unit:
|
|
37794
|
+
unit: Unit$outboundSchema.optional(),
|
|
37722
37795
|
digestKey: stringType().optional(),
|
|
37723
|
-
type:
|
|
37796
|
+
type: Type$outboundSchema,
|
|
37724
37797
|
backoff: booleanType().optional(),
|
|
37725
37798
|
backoffAmount: numberType().optional(),
|
|
37726
37799
|
backoffUnit: BackoffUnit$outboundSchema.optional(),
|
|
@@ -37733,10 +37806,10 @@ var init_digestregularmetadata = __esm(() => {
|
|
|
37733
37806
|
});
|
|
37734
37807
|
|
|
37735
37808
|
// src/models/components/timedconfig.ts
|
|
37736
|
-
var
|
|
37809
|
+
var WeekDays, Ordinal, OrdinalValue, MonthlyType, WeekDays$inboundSchema, WeekDays$outboundSchema, WeekDays$, Ordinal$inboundSchema, Ordinal$outboundSchema, Ordinal$, OrdinalValue$inboundSchema, OrdinalValue$outboundSchema, OrdinalValue$, MonthlyType$inboundSchema, MonthlyType$outboundSchema, MonthlyType$, TimedConfig$inboundSchema, TimedConfig$outboundSchema, TimedConfig$;
|
|
37737
37810
|
var init_timedconfig = __esm(() => {
|
|
37738
37811
|
init_lib();
|
|
37739
|
-
|
|
37812
|
+
WeekDays = {
|
|
37740
37813
|
Monday: "monday",
|
|
37741
37814
|
Tuesday: "tuesday",
|
|
37742
37815
|
Wednesday: "wednesday",
|
|
@@ -37769,12 +37842,12 @@ var init_timedconfig = __esm(() => {
|
|
|
37769
37842
|
Each: "each",
|
|
37770
37843
|
On: "on"
|
|
37771
37844
|
};
|
|
37772
|
-
|
|
37773
|
-
|
|
37774
|
-
((
|
|
37775
|
-
|
|
37776
|
-
|
|
37777
|
-
})(
|
|
37845
|
+
WeekDays$inboundSchema = nativeEnumType(WeekDays);
|
|
37846
|
+
WeekDays$outboundSchema = WeekDays$inboundSchema;
|
|
37847
|
+
((WeekDays$) => {
|
|
37848
|
+
WeekDays$.inboundSchema = WeekDays$inboundSchema;
|
|
37849
|
+
WeekDays$.outboundSchema = WeekDays$outboundSchema;
|
|
37850
|
+
})(WeekDays$ ||= {});
|
|
37778
37851
|
Ordinal$inboundSchema = nativeEnumType(Ordinal);
|
|
37779
37852
|
Ordinal$outboundSchema = Ordinal$inboundSchema;
|
|
37780
37853
|
((Ordinal$) => {
|
|
@@ -37795,7 +37868,7 @@ var init_timedconfig = __esm(() => {
|
|
|
37795
37868
|
})(MonthlyType$ ||= {});
|
|
37796
37869
|
TimedConfig$inboundSchema = objectType({
|
|
37797
37870
|
atTime: stringType().optional(),
|
|
37798
|
-
weekDays: arrayType(
|
|
37871
|
+
weekDays: arrayType(WeekDays$inboundSchema).optional(),
|
|
37799
37872
|
monthDays: arrayType(stringType()).optional(),
|
|
37800
37873
|
ordinal: Ordinal$inboundSchema.optional(),
|
|
37801
37874
|
ordinalValue: OrdinalValue$inboundSchema.optional(),
|
|
@@ -37803,7 +37876,7 @@ var init_timedconfig = __esm(() => {
|
|
|
37803
37876
|
});
|
|
37804
37877
|
TimedConfig$outboundSchema = objectType({
|
|
37805
37878
|
atTime: stringType().optional(),
|
|
37806
|
-
weekDays: arrayType(
|
|
37879
|
+
weekDays: arrayType(WeekDays$outboundSchema).optional(),
|
|
37807
37880
|
monthDays: arrayType(stringType()).optional(),
|
|
37808
37881
|
ordinal: Ordinal$outboundSchema.optional(),
|
|
37809
37882
|
ordinalValue: OrdinalValue$outboundSchema.optional(),
|
|
@@ -37938,22 +38011,22 @@ var init_emailblock = __esm(() => {
|
|
|
37938
38011
|
});
|
|
37939
38012
|
|
|
37940
38013
|
// src/models/components/messageactionresult.ts
|
|
37941
|
-
var
|
|
38014
|
+
var Payload$inboundSchema, Payload$outboundSchema, Payload$, MessageActionResult$inboundSchema, MessageActionResult$outboundSchema, MessageActionResult$;
|
|
37942
38015
|
var init_messageactionresult = __esm(() => {
|
|
37943
38016
|
init_lib();
|
|
37944
38017
|
init_buttontypeenum();
|
|
37945
|
-
|
|
37946
|
-
|
|
37947
|
-
((
|
|
37948
|
-
|
|
37949
|
-
|
|
37950
|
-
})(
|
|
38018
|
+
Payload$inboundSchema = objectType({});
|
|
38019
|
+
Payload$outboundSchema = objectType({});
|
|
38020
|
+
((Payload$) => {
|
|
38021
|
+
Payload$.inboundSchema = Payload$inboundSchema;
|
|
38022
|
+
Payload$.outboundSchema = Payload$outboundSchema;
|
|
38023
|
+
})(Payload$ ||= {});
|
|
37951
38024
|
MessageActionResult$inboundSchema = objectType({
|
|
37952
|
-
payload: lazyType(() =>
|
|
38025
|
+
payload: lazyType(() => Payload$inboundSchema).optional(),
|
|
37953
38026
|
type: ButtonTypeEnum$inboundSchema.optional()
|
|
37954
38027
|
});
|
|
37955
38028
|
MessageActionResult$outboundSchema = objectType({
|
|
37956
|
-
payload: lazyType(() =>
|
|
38029
|
+
payload: lazyType(() => Payload$outboundSchema).optional(),
|
|
37957
38030
|
type: ButtonTypeEnum$outboundSchema.optional()
|
|
37958
38031
|
});
|
|
37959
38032
|
((MessageActionResult$) => {
|
|
@@ -38047,12 +38120,12 @@ var init_messagecta = __esm(() => {
|
|
|
38047
38120
|
init_messagectadata();
|
|
38048
38121
|
MessageCTA$inboundSchema = objectType({
|
|
38049
38122
|
type: ChannelCTATypeEnum$inboundSchema.optional(),
|
|
38050
|
-
data: MessageCTAData$inboundSchema,
|
|
38123
|
+
data: MessageCTAData$inboundSchema.optional(),
|
|
38051
38124
|
action: MessageAction$inboundSchema.optional()
|
|
38052
38125
|
});
|
|
38053
38126
|
MessageCTA$outboundSchema = objectType({
|
|
38054
38127
|
type: ChannelCTATypeEnum$outboundSchema.optional(),
|
|
38055
|
-
data: MessageCTAData$outboundSchema,
|
|
38128
|
+
data: MessageCTAData$outboundSchema.optional(),
|
|
38056
38129
|
action: MessageAction$outboundSchema.optional()
|
|
38057
38130
|
});
|
|
38058
38131
|
((MessageCTA$) => {
|
|
@@ -38136,7 +38209,6 @@ var init_notificationfeeditemdto = __esm(() => {
|
|
|
38136
38209
|
channel: ChannelTypeEnum$inboundSchema,
|
|
38137
38210
|
read: booleanType(),
|
|
38138
38211
|
seen: booleanType(),
|
|
38139
|
-
deleted: booleanType(),
|
|
38140
38212
|
deviceTokens: nullableType(arrayType(stringType())).optional(),
|
|
38141
38213
|
cta: MessageCTA$inboundSchema,
|
|
38142
38214
|
status: NotificationFeedItemDtoStatus$inboundSchema,
|
|
@@ -38177,7 +38249,6 @@ var init_notificationfeeditemdto = __esm(() => {
|
|
|
38177
38249
|
channel: ChannelTypeEnum$outboundSchema,
|
|
38178
38250
|
read: booleanType(),
|
|
38179
38251
|
seen: booleanType(),
|
|
38180
|
-
deleted: booleanType(),
|
|
38181
38252
|
deviceTokens: nullableType(arrayType(stringType())).optional(),
|
|
38182
38253
|
cta: MessageCTA$outboundSchema,
|
|
38183
38254
|
status: NotificationFeedItemDtoStatus$outboundSchema,
|
|
@@ -38289,12 +38360,12 @@ var init_filtertopicsresponsedto = __esm(() => {
|
|
|
38289
38360
|
})(FilterTopicsResponseDto$ ||= {});
|
|
38290
38361
|
});
|
|
38291
38362
|
|
|
38292
|
-
// src/models/components/
|
|
38293
|
-
var
|
|
38294
|
-
var
|
|
38363
|
+
// src/models/components/subscriberpreferencechannels.ts
|
|
38364
|
+
var SubscriberPreferenceChannels$inboundSchema, SubscriberPreferenceChannels$outboundSchema, SubscriberPreferenceChannels$;
|
|
38365
|
+
var init_subscriberpreferencechannels = __esm(() => {
|
|
38295
38366
|
init_lib();
|
|
38296
38367
|
init_primitives();
|
|
38297
|
-
|
|
38368
|
+
SubscriberPreferenceChannels$inboundSchema = objectType({
|
|
38298
38369
|
email: booleanType().optional(),
|
|
38299
38370
|
sms: booleanType().optional(),
|
|
38300
38371
|
in_app: booleanType().optional(),
|
|
@@ -38305,7 +38376,7 @@ var init_preferencechannels = __esm(() => {
|
|
|
38305
38376
|
in_app: "inApp"
|
|
38306
38377
|
});
|
|
38307
38378
|
});
|
|
38308
|
-
|
|
38379
|
+
SubscriberPreferenceChannels$outboundSchema = objectType({
|
|
38309
38380
|
email: booleanType().optional(),
|
|
38310
38381
|
sms: booleanType().optional(),
|
|
38311
38382
|
inApp: booleanType().optional(),
|
|
@@ -38316,131 +38387,128 @@ var init_preferencechannels = __esm(() => {
|
|
|
38316
38387
|
inApp: "in_app"
|
|
38317
38388
|
});
|
|
38318
38389
|
});
|
|
38319
|
-
((
|
|
38320
|
-
|
|
38321
|
-
|
|
38322
|
-
})(
|
|
38390
|
+
((SubscriberPreferenceChannels$) => {
|
|
38391
|
+
SubscriberPreferenceChannels$.inboundSchema = SubscriberPreferenceChannels$inboundSchema;
|
|
38392
|
+
SubscriberPreferenceChannels$.outboundSchema = SubscriberPreferenceChannels$outboundSchema;
|
|
38393
|
+
})(SubscriberPreferenceChannels$ ||= {});
|
|
38323
38394
|
});
|
|
38324
38395
|
|
|
38325
|
-
// src/models/components/
|
|
38326
|
-
var
|
|
38327
|
-
var
|
|
38396
|
+
// src/models/components/subscriberglobalpreferencedto.ts
|
|
38397
|
+
var SubscriberGlobalPreferenceDto$inboundSchema, SubscriberGlobalPreferenceDto$outboundSchema, SubscriberGlobalPreferenceDto$;
|
|
38398
|
+
var init_subscriberglobalpreferencedto = __esm(() => {
|
|
38328
38399
|
init_lib();
|
|
38329
|
-
|
|
38330
|
-
|
|
38400
|
+
init_subscriberpreferencechannels();
|
|
38401
|
+
SubscriberGlobalPreferenceDto$inboundSchema = objectType({
|
|
38331
38402
|
enabled: booleanType(),
|
|
38332
|
-
channels:
|
|
38403
|
+
channels: SubscriberPreferenceChannels$inboundSchema
|
|
38333
38404
|
});
|
|
38334
|
-
|
|
38405
|
+
SubscriberGlobalPreferenceDto$outboundSchema = objectType({
|
|
38335
38406
|
enabled: booleanType(),
|
|
38336
|
-
channels:
|
|
38407
|
+
channels: SubscriberPreferenceChannels$outboundSchema
|
|
38337
38408
|
});
|
|
38338
|
-
((
|
|
38339
|
-
|
|
38340
|
-
|
|
38341
|
-
})(
|
|
38409
|
+
((SubscriberGlobalPreferenceDto$) => {
|
|
38410
|
+
SubscriberGlobalPreferenceDto$.inboundSchema = SubscriberGlobalPreferenceDto$inboundSchema;
|
|
38411
|
+
SubscriberGlobalPreferenceDto$.outboundSchema = SubscriberGlobalPreferenceDto$outboundSchema;
|
|
38412
|
+
})(SubscriberGlobalPreferenceDto$ ||= {});
|
|
38342
38413
|
});
|
|
38343
38414
|
|
|
38344
|
-
// src/models/components/
|
|
38345
|
-
var
|
|
38346
|
-
var
|
|
38415
|
+
// src/models/components/preferenceoverridesourceenum.ts
|
|
38416
|
+
var PreferenceOverrideSourceEnum, PreferenceOverrideSourceEnum$inboundSchema, PreferenceOverrideSourceEnum$outboundSchema, PreferenceOverrideSourceEnum$;
|
|
38417
|
+
var init_preferenceoverridesourceenum = __esm(() => {
|
|
38347
38418
|
init_lib();
|
|
38348
|
-
|
|
38349
|
-
InApp: "in_app",
|
|
38350
|
-
Email: "email",
|
|
38351
|
-
Sms: "sms",
|
|
38352
|
-
Chat: "chat",
|
|
38353
|
-
Push: "push"
|
|
38354
|
-
};
|
|
38355
|
-
Source = {
|
|
38419
|
+
PreferenceOverrideSourceEnum = {
|
|
38356
38420
|
Subscriber: "subscriber",
|
|
38357
38421
|
Template: "template",
|
|
38358
38422
|
WorkflowOverride: "workflowOverride"
|
|
38359
38423
|
};
|
|
38360
|
-
|
|
38361
|
-
|
|
38362
|
-
((
|
|
38363
|
-
|
|
38364
|
-
|
|
38365
|
-
})(
|
|
38366
|
-
|
|
38367
|
-
|
|
38368
|
-
|
|
38369
|
-
|
|
38370
|
-
|
|
38371
|
-
|
|
38372
|
-
|
|
38373
|
-
|
|
38374
|
-
|
|
38424
|
+
PreferenceOverrideSourceEnum$inboundSchema = nativeEnumType(PreferenceOverrideSourceEnum);
|
|
38425
|
+
PreferenceOverrideSourceEnum$outboundSchema = PreferenceOverrideSourceEnum$inboundSchema;
|
|
38426
|
+
((PreferenceOverrideSourceEnum$) => {
|
|
38427
|
+
PreferenceOverrideSourceEnum$.inboundSchema = PreferenceOverrideSourceEnum$inboundSchema;
|
|
38428
|
+
PreferenceOverrideSourceEnum$.outboundSchema = PreferenceOverrideSourceEnum$outboundSchema;
|
|
38429
|
+
})(PreferenceOverrideSourceEnum$ ||= {});
|
|
38430
|
+
});
|
|
38431
|
+
|
|
38432
|
+
// src/models/components/subscriberpreferenceoverridedto.ts
|
|
38433
|
+
var SubscriberPreferenceOverrideDto$inboundSchema, SubscriberPreferenceOverrideDto$outboundSchema, SubscriberPreferenceOverrideDto$;
|
|
38434
|
+
var init_subscriberpreferenceoverridedto = __esm(() => {
|
|
38435
|
+
init_lib();
|
|
38436
|
+
init_channeltypeenum();
|
|
38437
|
+
init_preferenceoverridesourceenum();
|
|
38438
|
+
SubscriberPreferenceOverrideDto$inboundSchema = objectType({
|
|
38439
|
+
channel: ChannelTypeEnum$inboundSchema,
|
|
38440
|
+
source: PreferenceOverrideSourceEnum$inboundSchema
|
|
38375
38441
|
});
|
|
38376
|
-
|
|
38377
|
-
channel:
|
|
38378
|
-
source:
|
|
38442
|
+
SubscriberPreferenceOverrideDto$outboundSchema = objectType({
|
|
38443
|
+
channel: ChannelTypeEnum$outboundSchema,
|
|
38444
|
+
source: PreferenceOverrideSourceEnum$outboundSchema
|
|
38379
38445
|
});
|
|
38380
|
-
((
|
|
38381
|
-
|
|
38382
|
-
|
|
38383
|
-
})(
|
|
38446
|
+
((SubscriberPreferenceOverrideDto$) => {
|
|
38447
|
+
SubscriberPreferenceOverrideDto$.inboundSchema = SubscriberPreferenceOverrideDto$inboundSchema;
|
|
38448
|
+
SubscriberPreferenceOverrideDto$.outboundSchema = SubscriberPreferenceOverrideDto$outboundSchema;
|
|
38449
|
+
})(SubscriberPreferenceOverrideDto$ ||= {});
|
|
38384
38450
|
});
|
|
38385
38451
|
|
|
38386
|
-
// src/models/components/
|
|
38387
|
-
var
|
|
38388
|
-
var
|
|
38452
|
+
// src/models/components/subscriberpreferencesworkflowinfodto.ts
|
|
38453
|
+
var SubscriberPreferencesWorkflowInfoDto$inboundSchema, SubscriberPreferencesWorkflowInfoDto$outboundSchema, SubscriberPreferencesWorkflowInfoDto$;
|
|
38454
|
+
var init_subscriberpreferencesworkflowinfodto = __esm(() => {
|
|
38389
38455
|
init_lib();
|
|
38390
|
-
|
|
38456
|
+
SubscriberPreferencesWorkflowInfoDto$inboundSchema = objectType({
|
|
38391
38457
|
slug: stringType(),
|
|
38392
38458
|
identifier: stringType(),
|
|
38393
|
-
name: stringType()
|
|
38459
|
+
name: stringType(),
|
|
38460
|
+
updatedAt: stringType().optional()
|
|
38394
38461
|
});
|
|
38395
|
-
|
|
38462
|
+
SubscriberPreferencesWorkflowInfoDto$outboundSchema = objectType({
|
|
38396
38463
|
slug: stringType(),
|
|
38397
38464
|
identifier: stringType(),
|
|
38398
|
-
name: stringType()
|
|
38465
|
+
name: stringType(),
|
|
38466
|
+
updatedAt: stringType().optional()
|
|
38399
38467
|
});
|
|
38400
|
-
((
|
|
38401
|
-
|
|
38402
|
-
|
|
38403
|
-
})(
|
|
38468
|
+
((SubscriberPreferencesWorkflowInfoDto$) => {
|
|
38469
|
+
SubscriberPreferencesWorkflowInfoDto$.inboundSchema = SubscriberPreferencesWorkflowInfoDto$inboundSchema;
|
|
38470
|
+
SubscriberPreferencesWorkflowInfoDto$.outboundSchema = SubscriberPreferencesWorkflowInfoDto$outboundSchema;
|
|
38471
|
+
})(SubscriberPreferencesWorkflowInfoDto$ ||= {});
|
|
38404
38472
|
});
|
|
38405
38473
|
|
|
38406
|
-
// src/models/components/
|
|
38407
|
-
var
|
|
38408
|
-
var
|
|
38474
|
+
// src/models/components/subscriberworkflowpreferencedto.ts
|
|
38475
|
+
var SubscriberWorkflowPreferenceDto$inboundSchema, SubscriberWorkflowPreferenceDto$outboundSchema, SubscriberWorkflowPreferenceDto$;
|
|
38476
|
+
var init_subscriberworkflowpreferencedto = __esm(() => {
|
|
38409
38477
|
init_lib();
|
|
38410
|
-
|
|
38411
|
-
|
|
38412
|
-
|
|
38413
|
-
|
|
38478
|
+
init_subscriberpreferencechannels();
|
|
38479
|
+
init_subscriberpreferenceoverridedto();
|
|
38480
|
+
init_subscriberpreferencesworkflowinfodto();
|
|
38481
|
+
SubscriberWorkflowPreferenceDto$inboundSchema = objectType({
|
|
38414
38482
|
enabled: booleanType(),
|
|
38415
|
-
channels:
|
|
38416
|
-
overrides: arrayType(
|
|
38417
|
-
workflow:
|
|
38483
|
+
channels: SubscriberPreferenceChannels$inboundSchema,
|
|
38484
|
+
overrides: arrayType(SubscriberPreferenceOverrideDto$inboundSchema),
|
|
38485
|
+
workflow: SubscriberPreferencesWorkflowInfoDto$inboundSchema
|
|
38418
38486
|
});
|
|
38419
|
-
|
|
38487
|
+
SubscriberWorkflowPreferenceDto$outboundSchema = objectType({
|
|
38420
38488
|
enabled: booleanType(),
|
|
38421
|
-
channels:
|
|
38422
|
-
overrides: arrayType(
|
|
38423
|
-
workflow:
|
|
38489
|
+
channels: SubscriberPreferenceChannels$outboundSchema,
|
|
38490
|
+
overrides: arrayType(SubscriberPreferenceOverrideDto$outboundSchema),
|
|
38491
|
+
workflow: SubscriberPreferencesWorkflowInfoDto$outboundSchema
|
|
38424
38492
|
});
|
|
38425
|
-
((
|
|
38426
|
-
|
|
38427
|
-
|
|
38428
|
-
})(
|
|
38493
|
+
((SubscriberWorkflowPreferenceDto$) => {
|
|
38494
|
+
SubscriberWorkflowPreferenceDto$.inboundSchema = SubscriberWorkflowPreferenceDto$inboundSchema;
|
|
38495
|
+
SubscriberWorkflowPreferenceDto$.outboundSchema = SubscriberWorkflowPreferenceDto$outboundSchema;
|
|
38496
|
+
})(SubscriberWorkflowPreferenceDto$ ||= {});
|
|
38429
38497
|
});
|
|
38430
38498
|
|
|
38431
38499
|
// src/models/components/getsubscriberpreferencesdto.ts
|
|
38432
38500
|
var GetSubscriberPreferencesDto$inboundSchema, GetSubscriberPreferencesDto$outboundSchema, GetSubscriberPreferencesDto$;
|
|
38433
38501
|
var init_getsubscriberpreferencesdto = __esm(() => {
|
|
38434
38502
|
init_lib();
|
|
38435
|
-
|
|
38436
|
-
|
|
38503
|
+
init_subscriberglobalpreferencedto();
|
|
38504
|
+
init_subscriberworkflowpreferencedto();
|
|
38437
38505
|
GetSubscriberPreferencesDto$inboundSchema = objectType({
|
|
38438
|
-
global:
|
|
38439
|
-
workflows: arrayType(
|
|
38506
|
+
global: SubscriberGlobalPreferenceDto$inboundSchema,
|
|
38507
|
+
workflows: arrayType(SubscriberWorkflowPreferenceDto$inboundSchema)
|
|
38440
38508
|
});
|
|
38441
38509
|
GetSubscriberPreferencesDto$outboundSchema = objectType({
|
|
38442
|
-
global:
|
|
38443
|
-
workflows: arrayType(
|
|
38510
|
+
global: SubscriberGlobalPreferenceDto$outboundSchema,
|
|
38511
|
+
workflows: arrayType(SubscriberWorkflowPreferenceDto$outboundSchema)
|
|
38444
38512
|
});
|
|
38445
38513
|
((GetSubscriberPreferencesDto$) => {
|
|
38446
38514
|
GetSubscriberPreferencesDto$.inboundSchema = GetSubscriberPreferencesDto$inboundSchema;
|
|
@@ -38488,25 +38556,25 @@ var init_gettopicresponsedto = __esm(() => {
|
|
|
38488
38556
|
});
|
|
38489
38557
|
|
|
38490
38558
|
// src/models/components/integrationresponsedto.ts
|
|
38491
|
-
var
|
|
38559
|
+
var Channel, Channel$inboundSchema, Channel$outboundSchema, Channel$, IntegrationResponseDto$inboundSchema, IntegrationResponseDto$outboundSchema, IntegrationResponseDto$;
|
|
38492
38560
|
var init_integrationresponsedto = __esm(() => {
|
|
38493
38561
|
init_lib();
|
|
38494
38562
|
init_primitives();
|
|
38495
38563
|
init_credentialsdto();
|
|
38496
38564
|
init_stepfilterdto();
|
|
38497
|
-
|
|
38565
|
+
Channel = {
|
|
38498
38566
|
InApp: "in_app",
|
|
38499
38567
|
Email: "email",
|
|
38500
38568
|
Sms: "sms",
|
|
38501
38569
|
Chat: "chat",
|
|
38502
38570
|
Push: "push"
|
|
38503
38571
|
};
|
|
38504
|
-
|
|
38505
|
-
|
|
38506
|
-
((
|
|
38507
|
-
|
|
38508
|
-
|
|
38509
|
-
})(
|
|
38572
|
+
Channel$inboundSchema = nativeEnumType(Channel);
|
|
38573
|
+
Channel$outboundSchema = Channel$inboundSchema;
|
|
38574
|
+
((Channel$) => {
|
|
38575
|
+
Channel$.inboundSchema = Channel$inboundSchema;
|
|
38576
|
+
Channel$.outboundSchema = Channel$outboundSchema;
|
|
38577
|
+
})(Channel$ ||= {});
|
|
38510
38578
|
IntegrationResponseDto$inboundSchema = objectType({
|
|
38511
38579
|
_id: stringType().optional(),
|
|
38512
38580
|
_environmentId: stringType(),
|
|
@@ -38514,7 +38582,7 @@ var init_integrationresponsedto = __esm(() => {
|
|
|
38514
38582
|
name: stringType(),
|
|
38515
38583
|
identifier: stringType(),
|
|
38516
38584
|
providerId: stringType(),
|
|
38517
|
-
channel:
|
|
38585
|
+
channel: Channel$inboundSchema,
|
|
38518
38586
|
credentials: CredentialsDto$inboundSchema,
|
|
38519
38587
|
active: booleanType(),
|
|
38520
38588
|
deleted: booleanType(),
|
|
@@ -38536,7 +38604,7 @@ var init_integrationresponsedto = __esm(() => {
|
|
|
38536
38604
|
name: stringType(),
|
|
38537
38605
|
identifier: stringType(),
|
|
38538
38606
|
providerId: stringType(),
|
|
38539
|
-
channel:
|
|
38607
|
+
channel: Channel$outboundSchema,
|
|
38540
38608
|
credentials: CredentialsDto$outboundSchema,
|
|
38541
38609
|
active: booleanType(),
|
|
38542
38610
|
deleted: booleanType(),
|
|
@@ -38567,58 +38635,58 @@ var init_subscriberresponsedto = __esm(() => {
|
|
|
38567
38635
|
_id: stringType().optional(),
|
|
38568
38636
|
firstName: stringType().optional(),
|
|
38569
38637
|
lastName: stringType().optional(),
|
|
38570
|
-
email:
|
|
38638
|
+
email: stringType().optional(),
|
|
38571
38639
|
phone: stringType().optional(),
|
|
38572
38640
|
avatar: stringType().optional(),
|
|
38573
38641
|
locale: stringType().optional(),
|
|
38574
|
-
subscriberId: stringType(),
|
|
38575
38642
|
channels: arrayType(ChannelSettingsDto$inboundSchema).optional(),
|
|
38576
38643
|
topics: arrayType(stringType()).optional(),
|
|
38577
38644
|
isOnline: booleanType().optional(),
|
|
38578
38645
|
lastOnlineAt: stringType().optional(),
|
|
38646
|
+
__v: numberType().optional(),
|
|
38647
|
+
data: nullableType(recordType(anyType())).optional(),
|
|
38648
|
+
timezone: stringType().optional(),
|
|
38649
|
+
subscriberId: stringType(),
|
|
38579
38650
|
_organizationId: stringType(),
|
|
38580
38651
|
_environmentId: stringType(),
|
|
38581
38652
|
deleted: booleanType(),
|
|
38582
38653
|
createdAt: stringType(),
|
|
38583
|
-
updatedAt: stringType()
|
|
38584
|
-
__v: numberType().optional(),
|
|
38585
|
-
data: nullableType(recordType(anyType())).optional(),
|
|
38586
|
-
timezone: stringType().optional()
|
|
38654
|
+
updatedAt: stringType()
|
|
38587
38655
|
}).transform((v2) => {
|
|
38588
38656
|
return remap(v2, {
|
|
38589
38657
|
_id: "id",
|
|
38658
|
+
__v: "v",
|
|
38590
38659
|
_organizationId: "organizationId",
|
|
38591
|
-
_environmentId: "environmentId"
|
|
38592
|
-
__v: "v"
|
|
38660
|
+
_environmentId: "environmentId"
|
|
38593
38661
|
});
|
|
38594
38662
|
});
|
|
38595
38663
|
SubscriberResponseDto$outboundSchema = objectType({
|
|
38596
38664
|
id: stringType().optional(),
|
|
38597
38665
|
firstName: stringType().optional(),
|
|
38598
38666
|
lastName: stringType().optional(),
|
|
38599
|
-
email:
|
|
38667
|
+
email: stringType().optional(),
|
|
38600
38668
|
phone: stringType().optional(),
|
|
38601
38669
|
avatar: stringType().optional(),
|
|
38602
38670
|
locale: stringType().optional(),
|
|
38603
|
-
subscriberId: stringType(),
|
|
38604
38671
|
channels: arrayType(ChannelSettingsDto$outboundSchema).optional(),
|
|
38605
38672
|
topics: arrayType(stringType()).optional(),
|
|
38606
38673
|
isOnline: booleanType().optional(),
|
|
38607
38674
|
lastOnlineAt: stringType().optional(),
|
|
38675
|
+
v: numberType().optional(),
|
|
38676
|
+
data: nullableType(recordType(anyType())).optional(),
|
|
38677
|
+
timezone: stringType().optional(),
|
|
38678
|
+
subscriberId: stringType(),
|
|
38608
38679
|
organizationId: stringType(),
|
|
38609
38680
|
environmentId: stringType(),
|
|
38610
38681
|
deleted: booleanType(),
|
|
38611
38682
|
createdAt: stringType(),
|
|
38612
|
-
updatedAt: stringType()
|
|
38613
|
-
v: numberType().optional(),
|
|
38614
|
-
data: nullableType(recordType(anyType())).optional(),
|
|
38615
|
-
timezone: stringType().optional()
|
|
38683
|
+
updatedAt: stringType()
|
|
38616
38684
|
}).transform((v2) => {
|
|
38617
38685
|
return remap(v2, {
|
|
38618
38686
|
id: "_id",
|
|
38687
|
+
v: "__v",
|
|
38619
38688
|
organizationId: "_organizationId",
|
|
38620
|
-
environmentId: "_environmentId"
|
|
38621
|
-
v: "__v"
|
|
38689
|
+
environmentId: "_environmentId"
|
|
38622
38690
|
});
|
|
38623
38691
|
});
|
|
38624
38692
|
((SubscriberResponseDto$) => {
|
|
@@ -38923,7 +38991,7 @@ var init_notificationstepdata = __esm(() => {
|
|
|
38923
38991
|
});
|
|
38924
38992
|
|
|
38925
38993
|
// src/models/components/notificationstepdto.ts
|
|
38926
|
-
var
|
|
38994
|
+
var Metadata$inboundSchema, Metadata$outboundSchema, Metadata$, NotificationStepDto$inboundSchema, NotificationStepDto$outboundSchema, NotificationStepDto$;
|
|
38927
38995
|
var init_notificationstepdto = __esm(() => {
|
|
38928
38996
|
init_lib();
|
|
38929
38997
|
init_primitives();
|
|
@@ -38935,22 +39003,22 @@ var init_notificationstepdto = __esm(() => {
|
|
|
38935
39003
|
init_notificationstepdata();
|
|
38936
39004
|
init_replycallback();
|
|
38937
39005
|
init_stepfilterdto();
|
|
38938
|
-
|
|
39006
|
+
Metadata$inboundSchema = unionType([
|
|
38939
39007
|
DelayScheduledMetadata$inboundSchema,
|
|
38940
39008
|
DelayRegularMetadata$inboundSchema,
|
|
38941
39009
|
DigestTimedMetadata$inboundSchema,
|
|
38942
39010
|
DigestRegularMetadata$inboundSchema
|
|
38943
39011
|
]);
|
|
38944
|
-
|
|
39012
|
+
Metadata$outboundSchema = unionType([
|
|
38945
39013
|
DelayScheduledMetadata$outboundSchema,
|
|
38946
39014
|
DelayRegularMetadata$outboundSchema,
|
|
38947
39015
|
DigestTimedMetadata$outboundSchema,
|
|
38948
39016
|
DigestRegularMetadata$outboundSchema
|
|
38949
39017
|
]);
|
|
38950
|
-
((
|
|
38951
|
-
|
|
38952
|
-
|
|
38953
|
-
})(
|
|
39018
|
+
((Metadata$) => {
|
|
39019
|
+
Metadata$.inboundSchema = Metadata$inboundSchema;
|
|
39020
|
+
Metadata$.outboundSchema = Metadata$outboundSchema;
|
|
39021
|
+
})(Metadata$ ||= {});
|
|
38954
39022
|
NotificationStepDto$inboundSchema = objectType({
|
|
38955
39023
|
_id: stringType().optional(),
|
|
38956
39024
|
uuid: stringType().optional(),
|
|
@@ -39047,7 +39115,7 @@ var init_workflowresponse = __esm(() => {
|
|
|
39047
39115
|
init_notificationgroup();
|
|
39048
39116
|
init_notificationstepdto();
|
|
39049
39117
|
init_notificationtrigger();
|
|
39050
|
-
|
|
39118
|
+
init_subscriberpreferencechannels();
|
|
39051
39119
|
WorkflowResponseData$inboundSchema = objectType({});
|
|
39052
39120
|
WorkflowResponseData$outboundSchema = objectType({});
|
|
39053
39121
|
((WorkflowResponseData$) => {
|
|
@@ -39066,7 +39134,7 @@ var init_workflowresponse = __esm(() => {
|
|
|
39066
39134
|
description: stringType(),
|
|
39067
39135
|
active: booleanType(),
|
|
39068
39136
|
draft: booleanType(),
|
|
39069
|
-
preferenceSettings:
|
|
39137
|
+
preferenceSettings: SubscriberPreferenceChannels$inboundSchema,
|
|
39070
39138
|
critical: booleanType(),
|
|
39071
39139
|
tags: arrayType(stringType()),
|
|
39072
39140
|
steps: arrayType(NotificationStepDto$inboundSchema),
|
|
@@ -39098,7 +39166,7 @@ var init_workflowresponse = __esm(() => {
|
|
|
39098
39166
|
description: stringType(),
|
|
39099
39167
|
active: booleanType(),
|
|
39100
39168
|
draft: booleanType(),
|
|
39101
|
-
preferenceSettings:
|
|
39169
|
+
preferenceSettings: SubscriberPreferenceChannels$outboundSchema,
|
|
39102
39170
|
critical: booleanType(),
|
|
39103
39171
|
tags: arrayType(stringType()),
|
|
39104
39172
|
steps: arrayType(NotificationStepDto$outboundSchema),
|
|
@@ -39141,8 +39209,8 @@ var init_messageresponsedto = __esm(() => {
|
|
|
39141
39209
|
init_messagestatusenum();
|
|
39142
39210
|
init_subscriberresponsedto();
|
|
39143
39211
|
init_workflowresponse();
|
|
39144
|
-
Content$inboundSchema = unionType([EmailBlock$inboundSchema, stringType()]);
|
|
39145
|
-
Content$outboundSchema = unionType([EmailBlock$outboundSchema, stringType()]);
|
|
39212
|
+
Content$inboundSchema = unionType([arrayType(EmailBlock$inboundSchema), stringType()]);
|
|
39213
|
+
Content$outboundSchema = unionType([arrayType(EmailBlock$outboundSchema), stringType()]);
|
|
39146
39214
|
((Content$) => {
|
|
39147
39215
|
Content$.inboundSchema = Content$inboundSchema;
|
|
39148
39216
|
Content$.outboundSchema = Content$outboundSchema;
|
|
@@ -39171,14 +39239,16 @@ var init_messageresponsedto = __esm(() => {
|
|
|
39171
39239
|
template: WorkflowResponse$inboundSchema.optional(),
|
|
39172
39240
|
templateIdentifier: stringType().optional(),
|
|
39173
39241
|
createdAt: stringType(),
|
|
39242
|
+
deliveredAt: arrayType(stringType()).optional(),
|
|
39174
39243
|
lastSeenDate: stringType().optional(),
|
|
39175
39244
|
lastReadDate: stringType().optional(),
|
|
39176
|
-
content: unionType([EmailBlock$inboundSchema, stringType()]),
|
|
39245
|
+
content: unionType([arrayType(EmailBlock$inboundSchema), stringType()]),
|
|
39177
39246
|
transactionId: stringType(),
|
|
39178
39247
|
subject: stringType().optional(),
|
|
39179
39248
|
channel: ChannelTypeEnum$inboundSchema,
|
|
39180
39249
|
read: booleanType(),
|
|
39181
39250
|
seen: booleanType(),
|
|
39251
|
+
snoozedUntil: stringType().optional(),
|
|
39182
39252
|
email: stringType().optional(),
|
|
39183
39253
|
phone: stringType().optional(),
|
|
39184
39254
|
directWebhookUrl: stringType().optional(),
|
|
@@ -39216,14 +39286,16 @@ var init_messageresponsedto = __esm(() => {
|
|
|
39216
39286
|
template: WorkflowResponse$outboundSchema.optional(),
|
|
39217
39287
|
templateIdentifier: stringType().optional(),
|
|
39218
39288
|
createdAt: stringType(),
|
|
39289
|
+
deliveredAt: arrayType(stringType()).optional(),
|
|
39219
39290
|
lastSeenDate: stringType().optional(),
|
|
39220
39291
|
lastReadDate: stringType().optional(),
|
|
39221
|
-
content: unionType([EmailBlock$outboundSchema, stringType()]),
|
|
39292
|
+
content: unionType([arrayType(EmailBlock$outboundSchema), stringType()]),
|
|
39222
39293
|
transactionId: stringType(),
|
|
39223
39294
|
subject: stringType().optional(),
|
|
39224
39295
|
channel: ChannelTypeEnum$outboundSchema,
|
|
39225
39296
|
read: booleanType(),
|
|
39226
39297
|
seen: booleanType(),
|
|
39298
|
+
snoozedUntil: stringType().optional(),
|
|
39227
39299
|
email: stringType().optional(),
|
|
39228
39300
|
phone: stringType().optional(),
|
|
39229
39301
|
directWebhookUrl: stringType().optional(),
|
|
@@ -39255,6 +39327,31 @@ var init_messageresponsedto = __esm(() => {
|
|
|
39255
39327
|
})(MessageResponseDto$ ||= {});
|
|
39256
39328
|
});
|
|
39257
39329
|
|
|
39330
|
+
// src/models/components/messagesresponsedto.ts
|
|
39331
|
+
var MessagesResponseDto$inboundSchema, MessagesResponseDto$outboundSchema, MessagesResponseDto$;
|
|
39332
|
+
var init_messagesresponsedto = __esm(() => {
|
|
39333
|
+
init_lib();
|
|
39334
|
+
init_messageresponsedto();
|
|
39335
|
+
MessagesResponseDto$inboundSchema = objectType({
|
|
39336
|
+
totalCount: numberType().optional(),
|
|
39337
|
+
hasMore: booleanType(),
|
|
39338
|
+
data: arrayType(MessageResponseDto$inboundSchema),
|
|
39339
|
+
pageSize: numberType(),
|
|
39340
|
+
page: numberType()
|
|
39341
|
+
});
|
|
39342
|
+
MessagesResponseDto$outboundSchema = objectType({
|
|
39343
|
+
totalCount: numberType().optional(),
|
|
39344
|
+
hasMore: booleanType(),
|
|
39345
|
+
data: arrayType(MessageResponseDto$outboundSchema),
|
|
39346
|
+
pageSize: numberType(),
|
|
39347
|
+
page: numberType()
|
|
39348
|
+
});
|
|
39349
|
+
((MessagesResponseDto$) => {
|
|
39350
|
+
MessagesResponseDto$.inboundSchema = MessagesResponseDto$inboundSchema;
|
|
39351
|
+
MessagesResponseDto$.outboundSchema = MessagesResponseDto$outboundSchema;
|
|
39352
|
+
})(MessagesResponseDto$ ||= {});
|
|
39353
|
+
});
|
|
39354
|
+
|
|
39258
39355
|
// src/models/components/patchpreferencechannelsdto.ts
|
|
39259
39356
|
var PatchPreferenceChannelsDto$inboundSchema, PatchPreferenceChannelsDto$outboundSchema, PatchPreferenceChannelsDto$;
|
|
39260
39357
|
var init_patchpreferencechannelsdto = __esm(() => {
|
|
@@ -39530,10 +39627,37 @@ var init_triggereventresponsedto = __esm(() => {
|
|
|
39530
39627
|
var TriggerEventToAllRequestDtoOverrides$inboundSchema, TriggerEventToAllRequestDtoOverrides$outboundSchema, TriggerEventToAllRequestDtoOverrides$, TriggerEventToAllRequestDtoActor$inboundSchema, TriggerEventToAllRequestDtoActor$outboundSchema, TriggerEventToAllRequestDtoActor$, TriggerEventToAllRequestDtoTenant$inboundSchema, TriggerEventToAllRequestDtoTenant$outboundSchema, TriggerEventToAllRequestDtoTenant$, TriggerEventToAllRequestDto$inboundSchema, TriggerEventToAllRequestDto$outboundSchema, TriggerEventToAllRequestDto$;
|
|
39531
39628
|
var init_triggereventtoallrequestdto = __esm(() => {
|
|
39532
39629
|
init_lib();
|
|
39630
|
+
init_primitives();
|
|
39631
|
+
init_schemas();
|
|
39632
|
+
init_stepsoverrides();
|
|
39533
39633
|
init_subscriberpayloaddto();
|
|
39534
39634
|
init_tenantpayloaddto();
|
|
39535
|
-
TriggerEventToAllRequestDtoOverrides$inboundSchema = objectType({
|
|
39536
|
-
|
|
39635
|
+
TriggerEventToAllRequestDtoOverrides$inboundSchema = collectExtraKeys(objectType({
|
|
39636
|
+
steps: recordType(StepsOverrides$inboundSchema).optional(),
|
|
39637
|
+
providers: recordType(recordType(anyType())).optional(),
|
|
39638
|
+
email: recordType(anyType()).optional(),
|
|
39639
|
+
push: recordType(anyType()).optional(),
|
|
39640
|
+
sms: recordType(anyType()).optional(),
|
|
39641
|
+
chat: recordType(anyType()).optional(),
|
|
39642
|
+
layoutIdentifier: stringType().optional()
|
|
39643
|
+
}).catchall(recordType(anyType())), "additionalProperties", true);
|
|
39644
|
+
TriggerEventToAllRequestDtoOverrides$outboundSchema = objectType({
|
|
39645
|
+
steps: recordType(StepsOverrides$outboundSchema).optional(),
|
|
39646
|
+
providers: recordType(recordType(anyType())).optional(),
|
|
39647
|
+
email: recordType(anyType()).optional(),
|
|
39648
|
+
push: recordType(anyType()).optional(),
|
|
39649
|
+
sms: recordType(anyType()).optional(),
|
|
39650
|
+
chat: recordType(anyType()).optional(),
|
|
39651
|
+
layoutIdentifier: stringType().optional(),
|
|
39652
|
+
additionalProperties: recordType(recordType(anyType()))
|
|
39653
|
+
}).transform((v2) => {
|
|
39654
|
+
return {
|
|
39655
|
+
...v2.additionalProperties,
|
|
39656
|
+
...remap(v2, {
|
|
39657
|
+
additionalProperties: null
|
|
39658
|
+
})
|
|
39659
|
+
};
|
|
39660
|
+
});
|
|
39537
39661
|
((TriggerEventToAllRequestDtoOverrides$) => {
|
|
39538
39662
|
TriggerEventToAllRequestDtoOverrides$.inboundSchema = TriggerEventToAllRequestDtoOverrides$inboundSchema;
|
|
39539
39663
|
TriggerEventToAllRequestDtoOverrides$.outboundSchema = TriggerEventToAllRequestDtoOverrides$outboundSchema;
|
|
@@ -39630,42 +39754,18 @@ var init_updateintegrationrequestdto = __esm(() => {
|
|
|
39630
39754
|
});
|
|
39631
39755
|
|
|
39632
39756
|
// src/models/components/updatesubscriberchannelrequestdto.ts
|
|
39633
|
-
var
|
|
39757
|
+
var UpdateSubscriberChannelRequestDto$inboundSchema, UpdateSubscriberChannelRequestDto$outboundSchema, UpdateSubscriberChannelRequestDto$;
|
|
39634
39758
|
var init_updatesubscriberchannelrequestdto = __esm(() => {
|
|
39635
39759
|
init_lib();
|
|
39636
39760
|
init_channelcredentials();
|
|
39637
|
-
|
|
39638
|
-
Slack: "slack",
|
|
39639
|
-
Discord: "discord",
|
|
39640
|
-
Msteams: "msteams",
|
|
39641
|
-
Mattermost: "mattermost",
|
|
39642
|
-
Ryver: "ryver",
|
|
39643
|
-
Zulip: "zulip",
|
|
39644
|
-
GrafanaOnCall: "grafana-on-call",
|
|
39645
|
-
Getstream: "getstream",
|
|
39646
|
-
RocketChat: "rocket-chat",
|
|
39647
|
-
WhatsappBusiness: "whatsapp-business",
|
|
39648
|
-
Fcm: "fcm",
|
|
39649
|
-
Apns: "apns",
|
|
39650
|
-
Expo: "expo",
|
|
39651
|
-
OneSignal: "one-signal",
|
|
39652
|
-
Pushpad: "pushpad",
|
|
39653
|
-
PushWebhook: "push-webhook",
|
|
39654
|
-
PusherBeams: "pusher-beams"
|
|
39655
|
-
};
|
|
39656
|
-
UpdateSubscriberChannelRequestDtoProviderId$inboundSchema = nativeEnumType(UpdateSubscriberChannelRequestDtoProviderId);
|
|
39657
|
-
UpdateSubscriberChannelRequestDtoProviderId$outboundSchema = UpdateSubscriberChannelRequestDtoProviderId$inboundSchema;
|
|
39658
|
-
((UpdateSubscriberChannelRequestDtoProviderId$) => {
|
|
39659
|
-
UpdateSubscriberChannelRequestDtoProviderId$.inboundSchema = UpdateSubscriberChannelRequestDtoProviderId$inboundSchema;
|
|
39660
|
-
UpdateSubscriberChannelRequestDtoProviderId$.outboundSchema = UpdateSubscriberChannelRequestDtoProviderId$outboundSchema;
|
|
39661
|
-
})(UpdateSubscriberChannelRequestDtoProviderId$ ||= {});
|
|
39761
|
+
init_chatorpushproviderenum();
|
|
39662
39762
|
UpdateSubscriberChannelRequestDto$inboundSchema = objectType({
|
|
39663
|
-
providerId:
|
|
39763
|
+
providerId: ChatOrPushProviderEnum$inboundSchema,
|
|
39664
39764
|
integrationIdentifier: stringType().optional(),
|
|
39665
39765
|
credentials: ChannelCredentials$inboundSchema
|
|
39666
39766
|
});
|
|
39667
39767
|
UpdateSubscriberChannelRequestDto$outboundSchema = objectType({
|
|
39668
|
-
providerId:
|
|
39768
|
+
providerId: ChatOrPushProviderEnum$outboundSchema,
|
|
39669
39769
|
integrationIdentifier: stringType().optional(),
|
|
39670
39770
|
credentials: ChannelCredentials$outboundSchema
|
|
39671
39771
|
});
|
|
@@ -39691,6 +39791,37 @@ var init_updatesubscriberonlineflagrequestdto = __esm(() => {
|
|
|
39691
39791
|
})(UpdateSubscriberOnlineFlagRequestDto$ ||= {});
|
|
39692
39792
|
});
|
|
39693
39793
|
|
|
39794
|
+
// src/models/components/updatesubscriberrequestdto.ts
|
|
39795
|
+
var UpdateSubscriberRequestDto$inboundSchema, UpdateSubscriberRequestDto$outboundSchema, UpdateSubscriberRequestDto$;
|
|
39796
|
+
var init_updatesubscriberrequestdto = __esm(() => {
|
|
39797
|
+
init_lib();
|
|
39798
|
+
init_subscriberchanneldto();
|
|
39799
|
+
UpdateSubscriberRequestDto$inboundSchema = objectType({
|
|
39800
|
+
email: stringType().optional(),
|
|
39801
|
+
firstName: stringType().optional(),
|
|
39802
|
+
lastName: stringType().optional(),
|
|
39803
|
+
phone: stringType().optional(),
|
|
39804
|
+
avatar: stringType().optional(),
|
|
39805
|
+
locale: stringType().optional(),
|
|
39806
|
+
data: recordType(anyType()).optional(),
|
|
39807
|
+
channels: arrayType(SubscriberChannelDto$inboundSchema).optional()
|
|
39808
|
+
});
|
|
39809
|
+
UpdateSubscriberRequestDto$outboundSchema = objectType({
|
|
39810
|
+
email: stringType().optional(),
|
|
39811
|
+
firstName: stringType().optional(),
|
|
39812
|
+
lastName: stringType().optional(),
|
|
39813
|
+
phone: stringType().optional(),
|
|
39814
|
+
avatar: stringType().optional(),
|
|
39815
|
+
locale: stringType().optional(),
|
|
39816
|
+
data: recordType(anyType()).optional(),
|
|
39817
|
+
channels: arrayType(SubscriberChannelDto$outboundSchema).optional()
|
|
39818
|
+
});
|
|
39819
|
+
((UpdateSubscriberRequestDto$) => {
|
|
39820
|
+
UpdateSubscriberRequestDto$.inboundSchema = UpdateSubscriberRequestDto$inboundSchema;
|
|
39821
|
+
UpdateSubscriberRequestDto$.outboundSchema = UpdateSubscriberRequestDto$outboundSchema;
|
|
39822
|
+
})(UpdateSubscriberRequestDto$ ||= {});
|
|
39823
|
+
});
|
|
39824
|
+
|
|
39694
39825
|
// src/models/components/index.ts
|
|
39695
39826
|
var init_components = __esm(() => {
|
|
39696
39827
|
init_activitiesresponsedto();
|
|
@@ -39716,6 +39847,8 @@ var init_components = __esm(() => {
|
|
|
39716
39847
|
init_channelctatypeenum();
|
|
39717
39848
|
init_channelsettingsdto();
|
|
39718
39849
|
init_channeltypeenum();
|
|
39850
|
+
init_chatorpushproviderenum();
|
|
39851
|
+
init_constraintvalidation();
|
|
39719
39852
|
init_createdsubscriberdto();
|
|
39720
39853
|
init_createintegrationrequestdto();
|
|
39721
39854
|
init_createsubscriberrequestdto();
|
|
@@ -39743,7 +39876,6 @@ var init_components = __esm(() => {
|
|
|
39743
39876
|
init_filtertopicsresponsedto();
|
|
39744
39877
|
init_getsubscriberpreferencesdto();
|
|
39745
39878
|
init_gettopicresponsedto();
|
|
39746
|
-
init_globalpreferencedto();
|
|
39747
39879
|
init_integrationresponsedto();
|
|
39748
39880
|
init_listsubscribersresponsedto();
|
|
39749
39881
|
init_markallmessageasrequestdto();
|
|
@@ -39756,6 +39888,7 @@ var init_components = __esm(() => {
|
|
|
39756
39888
|
init_messagectadata();
|
|
39757
39889
|
init_messagemarkasrequestdto();
|
|
39758
39890
|
init_messageresponsedto();
|
|
39891
|
+
init_messagesresponsedto();
|
|
39759
39892
|
init_messagestatusenum();
|
|
39760
39893
|
init_messagetemplate();
|
|
39761
39894
|
init_messagetemplatedto();
|
|
@@ -39769,11 +39902,10 @@ var init_components = __esm(() => {
|
|
|
39769
39902
|
init_notificationtriggervariable();
|
|
39770
39903
|
init_ordinalenum();
|
|
39771
39904
|
init_ordinalvalueenum();
|
|
39772
|
-
init_overrides();
|
|
39773
39905
|
init_patchpreferencechannelsdto();
|
|
39774
39906
|
init_patchsubscriberpreferencesdto();
|
|
39775
39907
|
init_patchsubscriberrequestdto();
|
|
39776
|
-
|
|
39908
|
+
init_preferenceoverridesourceenum();
|
|
39777
39909
|
init_providersidenum();
|
|
39778
39910
|
init_removesubscriberresponsedto();
|
|
39779
39911
|
init_removesubscribersrequestdto();
|
|
@@ -39782,11 +39914,17 @@ var init_components = __esm(() => {
|
|
|
39782
39914
|
init_replycallback();
|
|
39783
39915
|
init_security2();
|
|
39784
39916
|
init_stepfilterdto();
|
|
39917
|
+
init_stepsoverrides();
|
|
39785
39918
|
init_steptypeenum();
|
|
39786
39919
|
init_subscriberchanneldto();
|
|
39787
39920
|
init_subscriberfeedresponsedto();
|
|
39921
|
+
init_subscriberglobalpreferencedto();
|
|
39788
39922
|
init_subscriberpayloaddto();
|
|
39923
|
+
init_subscriberpreferencechannels();
|
|
39924
|
+
init_subscriberpreferenceoverridedto();
|
|
39925
|
+
init_subscriberpreferencesworkflowinfodto();
|
|
39789
39926
|
init_subscriberresponsedto();
|
|
39927
|
+
init_subscriberworkflowpreferencedto();
|
|
39790
39928
|
init_tenantpayloaddto();
|
|
39791
39929
|
init_textalignenum();
|
|
39792
39930
|
init_timedconfig();
|
|
@@ -39802,12 +39940,116 @@ var init_components = __esm(() => {
|
|
|
39802
39940
|
init_updateintegrationrequestdto();
|
|
39803
39941
|
init_updatesubscriberchannelrequestdto();
|
|
39804
39942
|
init_updatesubscriberonlineflagrequestdto();
|
|
39805
|
-
|
|
39943
|
+
init_updatesubscriberrequestdto();
|
|
39806
39944
|
init_workfloworiginenum();
|
|
39807
|
-
init_workflowpreferencedto();
|
|
39808
39945
|
init_workflowresponse();
|
|
39809
39946
|
});
|
|
39810
39947
|
|
|
39948
|
+
// src/models/errors/validationerrordto.ts
|
|
39949
|
+
var ValidationErrorDto, Message5$inboundSchema, Message5$outboundSchema, Message5$, Message4$inboundSchema, Message4$outboundSchema, Message4$, ValidationErrorDtoMessage$inboundSchema, ValidationErrorDtoMessage$outboundSchema, ValidationErrorDtoMessage$, ValidationErrorDto$inboundSchema, ValidationErrorDto$outboundSchema, ValidationErrorDto$;
|
|
39950
|
+
var init_validationerrordto = __esm(() => {
|
|
39951
|
+
init_lib();
|
|
39952
|
+
init_components();
|
|
39953
|
+
ValidationErrorDto = class ValidationErrorDto extends Error {
|
|
39954
|
+
statusCode;
|
|
39955
|
+
timestamp;
|
|
39956
|
+
path;
|
|
39957
|
+
ctx;
|
|
39958
|
+
errorId;
|
|
39959
|
+
errors;
|
|
39960
|
+
data$;
|
|
39961
|
+
constructor(err) {
|
|
39962
|
+
const message = "message" in err && typeof err.message === "string" ? err.message : `API error occurred: ${JSON.stringify(err)}`;
|
|
39963
|
+
super(message);
|
|
39964
|
+
this.data$ = err;
|
|
39965
|
+
this.statusCode = err.statusCode;
|
|
39966
|
+
this.timestamp = err.timestamp;
|
|
39967
|
+
this.path = err.path;
|
|
39968
|
+
if (err.ctx != null)
|
|
39969
|
+
this.ctx = err.ctx;
|
|
39970
|
+
if (err.errorId != null)
|
|
39971
|
+
this.errorId = err.errorId;
|
|
39972
|
+
this.errors = err.errors;
|
|
39973
|
+
this.name = "ValidationErrorDto";
|
|
39974
|
+
}
|
|
39975
|
+
};
|
|
39976
|
+
Message5$inboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
|
|
39977
|
+
Message5$outboundSchema = unionType([stringType(), numberType(), booleanType(), recordType(anyType())]);
|
|
39978
|
+
((Message5$) => {
|
|
39979
|
+
Message5$.inboundSchema = Message5$inboundSchema;
|
|
39980
|
+
Message5$.outboundSchema = Message5$outboundSchema;
|
|
39981
|
+
})(Message5$ ||= {});
|
|
39982
|
+
Message4$inboundSchema = objectType({});
|
|
39983
|
+
Message4$outboundSchema = objectType({});
|
|
39984
|
+
((Message4$) => {
|
|
39985
|
+
Message4$.inboundSchema = Message4$inboundSchema;
|
|
39986
|
+
Message4$.outboundSchema = Message4$outboundSchema;
|
|
39987
|
+
})(Message4$ ||= {});
|
|
39988
|
+
ValidationErrorDtoMessage$inboundSchema = unionType([
|
|
39989
|
+
lazyType(() => Message4$inboundSchema),
|
|
39990
|
+
stringType(),
|
|
39991
|
+
numberType(),
|
|
39992
|
+
booleanType(),
|
|
39993
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
39994
|
+
]);
|
|
39995
|
+
ValidationErrorDtoMessage$outboundSchema = unionType([
|
|
39996
|
+
lazyType(() => Message4$outboundSchema),
|
|
39997
|
+
stringType(),
|
|
39998
|
+
numberType(),
|
|
39999
|
+
booleanType(),
|
|
40000
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
40001
|
+
]);
|
|
40002
|
+
((ValidationErrorDtoMessage$) => {
|
|
40003
|
+
ValidationErrorDtoMessage$.inboundSchema = ValidationErrorDtoMessage$inboundSchema;
|
|
40004
|
+
ValidationErrorDtoMessage$.outboundSchema = ValidationErrorDtoMessage$outboundSchema;
|
|
40005
|
+
})(ValidationErrorDtoMessage$ ||= {});
|
|
40006
|
+
ValidationErrorDto$inboundSchema = objectType({
|
|
40007
|
+
statusCode: numberType(),
|
|
40008
|
+
timestamp: stringType(),
|
|
40009
|
+
path: stringType(),
|
|
40010
|
+
message: nullableType(unionType([
|
|
40011
|
+
lazyType(() => Message4$inboundSchema),
|
|
40012
|
+
stringType(),
|
|
40013
|
+
numberType(),
|
|
40014
|
+
booleanType(),
|
|
40015
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
40016
|
+
])).optional(),
|
|
40017
|
+
ctx: recordType(anyType()).optional(),
|
|
40018
|
+
errorId: stringType().optional(),
|
|
40019
|
+
errors: recordType(ConstraintValidation$inboundSchema)
|
|
40020
|
+
}).transform((v2) => {
|
|
40021
|
+
return new ValidationErrorDto(v2);
|
|
40022
|
+
});
|
|
40023
|
+
ValidationErrorDto$outboundSchema = instanceOfType(ValidationErrorDto).transform((v2) => v2.data$).pipe(objectType({
|
|
40024
|
+
statusCode: numberType(),
|
|
40025
|
+
timestamp: stringType(),
|
|
40026
|
+
path: stringType(),
|
|
40027
|
+
message: nullableType(unionType([
|
|
40028
|
+
lazyType(() => Message4$outboundSchema),
|
|
40029
|
+
stringType(),
|
|
40030
|
+
numberType(),
|
|
40031
|
+
booleanType(),
|
|
40032
|
+
arrayType(nullableType(unionType([stringType(), numberType(), booleanType(), recordType(anyType())])))
|
|
40033
|
+
])).optional(),
|
|
40034
|
+
ctx: recordType(anyType()).optional(),
|
|
40035
|
+
errorId: stringType().optional(),
|
|
40036
|
+
errors: recordType(ConstraintValidation$outboundSchema)
|
|
40037
|
+
}));
|
|
40038
|
+
((ValidationErrorDto$) => {
|
|
40039
|
+
ValidationErrorDto$.inboundSchema = ValidationErrorDto$inboundSchema;
|
|
40040
|
+
ValidationErrorDto$.outboundSchema = ValidationErrorDto$outboundSchema;
|
|
40041
|
+
})(ValidationErrorDto$ ||= {});
|
|
40042
|
+
});
|
|
40043
|
+
|
|
40044
|
+
// src/models/errors/index.ts
|
|
40045
|
+
var init_errors = __esm(() => {
|
|
40046
|
+
init_errordto();
|
|
40047
|
+
init_httpclienterrors();
|
|
40048
|
+
init_sdkerror();
|
|
40049
|
+
init_sdkvalidationerror();
|
|
40050
|
+
init_validationerrordto();
|
|
40051
|
+
});
|
|
40052
|
+
|
|
39811
40053
|
// src/models/operations/eventscontrollerbroadcasteventtoall.ts
|
|
39812
40054
|
var EventsControllerBroadcastEventToAllRequest$inboundSchema, EventsControllerBroadcastEventToAllRequest$outboundSchema, EventsControllerBroadcastEventToAllRequest$, EventsControllerBroadcastEventToAllResponse$inboundSchema, EventsControllerBroadcastEventToAllResponse$outboundSchema, EventsControllerBroadcastEventToAllResponse$;
|
|
39813
40055
|
var init_eventscontrollerbroadcasteventtoall = __esm(() => {
|
|
@@ -40510,7 +40752,7 @@ var init_messagescontrollergetmessages = __esm(() => {
|
|
|
40510
40752
|
})(MessagesControllerGetMessagesRequest$ ||= {});
|
|
40511
40753
|
MessagesControllerGetMessagesResponse$inboundSchema = objectType({
|
|
40512
40754
|
Headers: recordType(arrayType(stringType())),
|
|
40513
|
-
Result:
|
|
40755
|
+
Result: MessagesResponseDto$inboundSchema
|
|
40514
40756
|
}).transform((v2) => {
|
|
40515
40757
|
return remap(v2, {
|
|
40516
40758
|
Headers: "headers",
|
|
@@ -40519,7 +40761,7 @@ var init_messagescontrollergetmessages = __esm(() => {
|
|
|
40519
40761
|
});
|
|
40520
40762
|
MessagesControllerGetMessagesResponse$outboundSchema = objectType({
|
|
40521
40763
|
headers: recordType(arrayType(stringType())),
|
|
40522
|
-
result:
|
|
40764
|
+
result: MessagesResponseDto$outboundSchema
|
|
40523
40765
|
}).transform((v2) => {
|
|
40524
40766
|
return remap(v2, {
|
|
40525
40767
|
headers: "Headers",
|
|
@@ -41023,13 +41265,14 @@ var init_subscriberscontrollersearchsubscribers = __esm(() => {
|
|
|
41023
41265
|
SubscribersControllerSearchSubscribersRequest$inboundSchema = objectType({
|
|
41024
41266
|
after: stringType().optional(),
|
|
41025
41267
|
before: stringType().optional(),
|
|
41268
|
+
limit: numberType().optional(),
|
|
41269
|
+
orderDirection: OrderDirection$inboundSchema.optional(),
|
|
41270
|
+
orderBy: stringType().optional(),
|
|
41271
|
+
includeCursor: booleanType().optional(),
|
|
41026
41272
|
email: stringType().optional(),
|
|
41027
41273
|
name: stringType().optional(),
|
|
41028
41274
|
phone: stringType().optional(),
|
|
41029
41275
|
subscriberId: stringType().optional(),
|
|
41030
|
-
limit: numberType().optional(),
|
|
41031
|
-
orderDirection: OrderDirection$inboundSchema.optional(),
|
|
41032
|
-
orderBy: anyType().optional(),
|
|
41033
41276
|
"idempotency-key": stringType().optional()
|
|
41034
41277
|
}).transform((v2) => {
|
|
41035
41278
|
return remap(v2, {
|
|
@@ -41039,13 +41282,14 @@ var init_subscriberscontrollersearchsubscribers = __esm(() => {
|
|
|
41039
41282
|
SubscribersControllerSearchSubscribersRequest$outboundSchema = objectType({
|
|
41040
41283
|
after: stringType().optional(),
|
|
41041
41284
|
before: stringType().optional(),
|
|
41285
|
+
limit: numberType().optional(),
|
|
41286
|
+
orderDirection: OrderDirection$outboundSchema.optional(),
|
|
41287
|
+
orderBy: stringType().optional(),
|
|
41288
|
+
includeCursor: booleanType().optional(),
|
|
41042
41289
|
email: stringType().optional(),
|
|
41043
41290
|
name: stringType().optional(),
|
|
41044
41291
|
phone: stringType().optional(),
|
|
41045
41292
|
subscriberId: stringType().optional(),
|
|
41046
|
-
limit: numberType().optional(),
|
|
41047
|
-
orderDirection: OrderDirection$outboundSchema.optional(),
|
|
41048
|
-
orderBy: anyType().optional(),
|
|
41049
41293
|
idempotencyKey: stringType().optional()
|
|
41050
41294
|
}).transform((v2) => {
|
|
41051
41295
|
return remap(v2, {
|
|
@@ -41753,6 +41997,60 @@ var init_subscribersv1controllermodifysubscriberchannel = __esm(() => {
|
|
|
41753
41997
|
})(SubscribersV1ControllerModifySubscriberChannelResponse$ ||= {});
|
|
41754
41998
|
});
|
|
41755
41999
|
|
|
42000
|
+
// src/models/operations/subscribersv1controllerupdatesubscriber.ts
|
|
42001
|
+
var SubscribersV1ControllerUpdateSubscriberRequest$inboundSchema, SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema, SubscribersV1ControllerUpdateSubscriberRequest$, SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema, SubscribersV1ControllerUpdateSubscriberResponse$outboundSchema, SubscribersV1ControllerUpdateSubscriberResponse$;
|
|
42002
|
+
var init_subscribersv1controllerupdatesubscriber = __esm(() => {
|
|
42003
|
+
init_lib();
|
|
42004
|
+
init_primitives();
|
|
42005
|
+
init_components();
|
|
42006
|
+
SubscribersV1ControllerUpdateSubscriberRequest$inboundSchema = objectType({
|
|
42007
|
+
subscriberId: stringType(),
|
|
42008
|
+
"idempotency-key": stringType().optional(),
|
|
42009
|
+
UpdateSubscriberRequestDto: UpdateSubscriberRequestDto$inboundSchema
|
|
42010
|
+
}).transform((v2) => {
|
|
42011
|
+
return remap(v2, {
|
|
42012
|
+
"idempotency-key": "idempotencyKey",
|
|
42013
|
+
UpdateSubscriberRequestDto: "updateSubscriberRequestDto"
|
|
42014
|
+
});
|
|
42015
|
+
});
|
|
42016
|
+
SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema = objectType({
|
|
42017
|
+
subscriberId: stringType(),
|
|
42018
|
+
idempotencyKey: stringType().optional(),
|
|
42019
|
+
updateSubscriberRequestDto: UpdateSubscriberRequestDto$outboundSchema
|
|
42020
|
+
}).transform((v2) => {
|
|
42021
|
+
return remap(v2, {
|
|
42022
|
+
idempotencyKey: "idempotency-key",
|
|
42023
|
+
updateSubscriberRequestDto: "UpdateSubscriberRequestDto"
|
|
42024
|
+
});
|
|
42025
|
+
});
|
|
42026
|
+
((SubscribersV1ControllerUpdateSubscriberRequest$) => {
|
|
42027
|
+
SubscribersV1ControllerUpdateSubscriberRequest$.inboundSchema = SubscribersV1ControllerUpdateSubscriberRequest$inboundSchema;
|
|
42028
|
+
SubscribersV1ControllerUpdateSubscriberRequest$.outboundSchema = SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema;
|
|
42029
|
+
})(SubscribersV1ControllerUpdateSubscriberRequest$ ||= {});
|
|
42030
|
+
SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema = objectType({
|
|
42031
|
+
Headers: recordType(arrayType(stringType())),
|
|
42032
|
+
Result: SubscriberResponseDto$inboundSchema
|
|
42033
|
+
}).transform((v2) => {
|
|
42034
|
+
return remap(v2, {
|
|
42035
|
+
Headers: "headers",
|
|
42036
|
+
Result: "result"
|
|
42037
|
+
});
|
|
42038
|
+
});
|
|
42039
|
+
SubscribersV1ControllerUpdateSubscriberResponse$outboundSchema = objectType({
|
|
42040
|
+
headers: recordType(arrayType(stringType())),
|
|
42041
|
+
result: SubscriberResponseDto$outboundSchema
|
|
42042
|
+
}).transform((v2) => {
|
|
42043
|
+
return remap(v2, {
|
|
42044
|
+
headers: "Headers",
|
|
42045
|
+
result: "Result"
|
|
42046
|
+
});
|
|
42047
|
+
});
|
|
42048
|
+
((SubscribersV1ControllerUpdateSubscriberResponse$) => {
|
|
42049
|
+
SubscribersV1ControllerUpdateSubscriberResponse$.inboundSchema = SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema;
|
|
42050
|
+
SubscribersV1ControllerUpdateSubscriberResponse$.outboundSchema = SubscribersV1ControllerUpdateSubscriberResponse$outboundSchema;
|
|
42051
|
+
})(SubscribersV1ControllerUpdateSubscriberResponse$ ||= {});
|
|
42052
|
+
});
|
|
42053
|
+
|
|
41756
42054
|
// src/models/operations/subscribersv1controllerupdatesubscriberchannel.ts
|
|
41757
42055
|
var SubscribersV1ControllerUpdateSubscriberChannelRequest$inboundSchema, SubscribersV1ControllerUpdateSubscriberChannelRequest$outboundSchema, SubscribersV1ControllerUpdateSubscriberChannelRequest$, SubscribersV1ControllerUpdateSubscriberChannelResponse$inboundSchema, SubscribersV1ControllerUpdateSubscriberChannelResponse$outboundSchema, SubscribersV1ControllerUpdateSubscriberChannelResponse$;
|
|
41758
42056
|
var init_subscribersv1controllerupdatesubscriberchannel = __esm(() => {
|
|
@@ -42310,6 +42608,7 @@ var init_operations = __esm(() => {
|
|
|
42310
42608
|
init_subscribersv1controllermarkallunreadasread();
|
|
42311
42609
|
init_subscribersv1controllermarkmessagesas();
|
|
42312
42610
|
init_subscribersv1controllermodifysubscriberchannel();
|
|
42611
|
+
init_subscribersv1controllerupdatesubscriber();
|
|
42313
42612
|
init_subscribersv1controllerupdatesubscriberchannel();
|
|
42314
42613
|
init_subscribersv1controllerupdatesubscriberonlineflag();
|
|
42315
42614
|
init_topicscontrollerassign();
|
|
@@ -47114,6 +47413,7 @@ async function $do35(client, request, options) {
|
|
|
47114
47413
|
after: payload.after,
|
|
47115
47414
|
before: payload.before,
|
|
47116
47415
|
email: payload.email,
|
|
47416
|
+
includeCursor: payload.includeCursor,
|
|
47117
47417
|
limit: payload.limit,
|
|
47118
47418
|
name: payload.name,
|
|
47119
47419
|
orderBy: payload.orderBy,
|
|
@@ -47234,11 +47534,154 @@ var init_subscribersSearch2 = __esm(() => {
|
|
|
47234
47534
|
};
|
|
47235
47535
|
});
|
|
47236
47536
|
|
|
47537
|
+
// src/funcs/subscribersUpsert.ts
|
|
47538
|
+
function subscribersUpsert(client, updateSubscriberRequestDto, subscriberId, idempotencyKey, options) {
|
|
47539
|
+
return new APIPromise($do36(client, updateSubscriberRequestDto, subscriberId, idempotencyKey, options));
|
|
47540
|
+
}
|
|
47541
|
+
async function $do36(client, updateSubscriberRequestDto, subscriberId, idempotencyKey, options) {
|
|
47542
|
+
const input = {
|
|
47543
|
+
updateSubscriberRequestDto,
|
|
47544
|
+
subscriberId,
|
|
47545
|
+
idempotencyKey
|
|
47546
|
+
};
|
|
47547
|
+
const parsed = safeParse(input, (value) => SubscribersV1ControllerUpdateSubscriberRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47548
|
+
if (!parsed.ok) {
|
|
47549
|
+
return [parsed, { status: "invalid" }];
|
|
47550
|
+
}
|
|
47551
|
+
const payload = parsed.value;
|
|
47552
|
+
const body = encodeJSON("body", payload.UpdateSubscriberRequestDto, {
|
|
47553
|
+
explode: true
|
|
47554
|
+
});
|
|
47555
|
+
const pathParams = {
|
|
47556
|
+
subscriberId: encodeSimple("subscriberId", payload.subscriberId, {
|
|
47557
|
+
explode: false,
|
|
47558
|
+
charEncoding: "percent"
|
|
47559
|
+
})
|
|
47560
|
+
};
|
|
47561
|
+
const path = pathToFunc("/v1/subscribers/{subscriberId}")(pathParams);
|
|
47562
|
+
const headers = new Headers(compactMap({
|
|
47563
|
+
"Content-Type": "application/json",
|
|
47564
|
+
Accept: "application/json",
|
|
47565
|
+
"idempotency-key": encodeSimple("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" })
|
|
47566
|
+
}));
|
|
47567
|
+
const secConfig = await extractSecurity(client._options.secretKey);
|
|
47568
|
+
const securityInput = secConfig == null ? {} : { secretKey: secConfig };
|
|
47569
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
47570
|
+
const context = {
|
|
47571
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
47572
|
+
operationID: "SubscribersV1Controller_updateSubscriber",
|
|
47573
|
+
oAuth2Scopes: [],
|
|
47574
|
+
resolvedSecurity: requestSecurity,
|
|
47575
|
+
securitySource: client._options.secretKey,
|
|
47576
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
47577
|
+
strategy: "backoff",
|
|
47578
|
+
backoff: {
|
|
47579
|
+
initialInterval: 1000,
|
|
47580
|
+
maxInterval: 30000,
|
|
47581
|
+
exponent: 1.5,
|
|
47582
|
+
maxElapsedTime: 3600000
|
|
47583
|
+
},
|
|
47584
|
+
retryConnectionErrors: true
|
|
47585
|
+
},
|
|
47586
|
+
retryCodes: options?.retryCodes || ["408", "409", "429", "5XX"]
|
|
47587
|
+
};
|
|
47588
|
+
const requestRes = client._createRequest(context, {
|
|
47589
|
+
security: requestSecurity,
|
|
47590
|
+
method: "PUT",
|
|
47591
|
+
baseURL: options?.serverURL,
|
|
47592
|
+
path,
|
|
47593
|
+
headers,
|
|
47594
|
+
body,
|
|
47595
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
47596
|
+
}, options);
|
|
47597
|
+
if (!requestRes.ok) {
|
|
47598
|
+
return [requestRes, { status: "invalid" }];
|
|
47599
|
+
}
|
|
47600
|
+
const req = requestRes.value;
|
|
47601
|
+
const doResult = await client._do(req, {
|
|
47602
|
+
context,
|
|
47603
|
+
errorCodes: [
|
|
47604
|
+
"400",
|
|
47605
|
+
"401",
|
|
47606
|
+
"403",
|
|
47607
|
+
"404",
|
|
47608
|
+
"405",
|
|
47609
|
+
"409",
|
|
47610
|
+
"413",
|
|
47611
|
+
"414",
|
|
47612
|
+
"415",
|
|
47613
|
+
"422",
|
|
47614
|
+
"429",
|
|
47615
|
+
"4XX",
|
|
47616
|
+
"500",
|
|
47617
|
+
"503",
|
|
47618
|
+
"5XX"
|
|
47619
|
+
],
|
|
47620
|
+
retryConfig: context.retryConfig,
|
|
47621
|
+
retryCodes: context.retryCodes
|
|
47622
|
+
});
|
|
47623
|
+
if (!doResult.ok) {
|
|
47624
|
+
return [doResult, { status: "request-error", request: req }];
|
|
47625
|
+
}
|
|
47626
|
+
const response = doResult.value;
|
|
47627
|
+
const responseFields = {
|
|
47628
|
+
HttpMeta: { Response: response, Request: req }
|
|
47629
|
+
};
|
|
47630
|
+
const [result] = await match(json(200, SubscribersV1ControllerUpdateSubscriberResponse$inboundSchema, { hdrs: true, key: "Result" }), jsonErr(414, ErrorDto$inboundSchema), jsonErr([400, 401, 403, 404, 405, 409, 413, 415], ErrorDto$inboundSchema, { hdrs: true }), jsonErr(422, ValidationErrorDto$inboundSchema, { hdrs: true }), fail(429), jsonErr(500, ErrorDto$inboundSchema, { hdrs: true }), fail(503), fail("4XX"), fail("5XX"))(response, { extraFields: responseFields });
|
|
47631
|
+
if (!result.ok) {
|
|
47632
|
+
return [result, { status: "complete", request: req, response }];
|
|
47633
|
+
}
|
|
47634
|
+
return [result, { status: "complete", request: req, response }];
|
|
47635
|
+
}
|
|
47636
|
+
var init_subscribersUpsert = __esm(() => {
|
|
47637
|
+
init_encodings();
|
|
47638
|
+
init_matchers();
|
|
47639
|
+
init_primitives();
|
|
47640
|
+
init_schemas();
|
|
47641
|
+
init_security();
|
|
47642
|
+
init_url();
|
|
47643
|
+
init_errors();
|
|
47644
|
+
init_operations();
|
|
47645
|
+
init_async();
|
|
47646
|
+
});
|
|
47647
|
+
|
|
47648
|
+
// src/mcp-server/tools/subscribersUpsert.ts
|
|
47649
|
+
var args36, tool$subscribersUpsert;
|
|
47650
|
+
var init_subscribersUpsert2 = __esm(() => {
|
|
47651
|
+
init_lib();
|
|
47652
|
+
init_subscribersUpsert();
|
|
47653
|
+
init_components();
|
|
47654
|
+
init_tools();
|
|
47655
|
+
args36 = {
|
|
47656
|
+
updateSubscriberRequestDto: UpdateSubscriberRequestDto$inboundSchema,
|
|
47657
|
+
subscriberId: stringType(),
|
|
47658
|
+
idempotencyKey: stringType().optional()
|
|
47659
|
+
};
|
|
47660
|
+
tool$subscribersUpsert = {
|
|
47661
|
+
name: "subscribers-upsert",
|
|
47662
|
+
description: `Upsert subscriber
|
|
47663
|
+
|
|
47664
|
+
Used to upsert the subscriber entity with new information`,
|
|
47665
|
+
args: args36,
|
|
47666
|
+
tool: async (client, args37, ctx) => {
|
|
47667
|
+
const [result, apiCall] = await subscribersUpsert(client, args37.updateSubscriberRequestDto, args37.subscriberId, args37.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47668
|
+
if (!result.ok) {
|
|
47669
|
+
return {
|
|
47670
|
+
content: [{ type: "text", text: result.error.message }],
|
|
47671
|
+
isError: true
|
|
47672
|
+
};
|
|
47673
|
+
}
|
|
47674
|
+
const value = result.value.result;
|
|
47675
|
+
return formatResult(value, apiCall);
|
|
47676
|
+
}
|
|
47677
|
+
};
|
|
47678
|
+
});
|
|
47679
|
+
|
|
47237
47680
|
// src/funcs/topicsCreate.ts
|
|
47238
47681
|
function topicsCreate(client, createTopicRequestDto, idempotencyKey, options) {
|
|
47239
|
-
return new APIPromise($
|
|
47682
|
+
return new APIPromise($do37(client, createTopicRequestDto, idempotencyKey, options));
|
|
47240
47683
|
}
|
|
47241
|
-
async function $
|
|
47684
|
+
async function $do37(client, createTopicRequestDto, idempotencyKey, options) {
|
|
47242
47685
|
const input = {
|
|
47243
47686
|
createTopicRequestDto,
|
|
47244
47687
|
idempotencyKey
|
|
@@ -47342,13 +47785,13 @@ var init_topicsCreate = __esm(() => {
|
|
|
47342
47785
|
});
|
|
47343
47786
|
|
|
47344
47787
|
// src/mcp-server/tools/topicsCreate.ts
|
|
47345
|
-
var
|
|
47788
|
+
var args37, tool$topicsCreate;
|
|
47346
47789
|
var init_topicsCreate2 = __esm(() => {
|
|
47347
47790
|
init_lib();
|
|
47348
47791
|
init_topicsCreate();
|
|
47349
47792
|
init_components();
|
|
47350
47793
|
init_tools();
|
|
47351
|
-
|
|
47794
|
+
args37 = {
|
|
47352
47795
|
createTopicRequestDto: CreateTopicRequestDto$inboundSchema,
|
|
47353
47796
|
idempotencyKey: stringType().optional()
|
|
47354
47797
|
};
|
|
@@ -47357,9 +47800,9 @@ var init_topicsCreate2 = __esm(() => {
|
|
|
47357
47800
|
description: `Topic creation
|
|
47358
47801
|
|
|
47359
47802
|
Create a topic`,
|
|
47360
|
-
args:
|
|
47361
|
-
tool: async (client,
|
|
47362
|
-
const [result, apiCall] = await topicsCreate(client,
|
|
47803
|
+
args: args37,
|
|
47804
|
+
tool: async (client, args38, ctx) => {
|
|
47805
|
+
const [result, apiCall] = await topicsCreate(client, args38.createTopicRequestDto, args38.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47363
47806
|
if (!result.ok) {
|
|
47364
47807
|
return {
|
|
47365
47808
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47374,9 +47817,9 @@ Create a topic`,
|
|
|
47374
47817
|
|
|
47375
47818
|
// src/funcs/topicsDelete.ts
|
|
47376
47819
|
function topicsDelete(client, topicKey, idempotencyKey, options) {
|
|
47377
|
-
return new APIPromise($
|
|
47820
|
+
return new APIPromise($do38(client, topicKey, idempotencyKey, options));
|
|
47378
47821
|
}
|
|
47379
|
-
async function $
|
|
47822
|
+
async function $do38(client, topicKey, idempotencyKey, options) {
|
|
47380
47823
|
const input = {
|
|
47381
47824
|
topicKey,
|
|
47382
47825
|
idempotencyKey
|
|
@@ -47480,12 +47923,12 @@ var init_topicsDelete = __esm(() => {
|
|
|
47480
47923
|
});
|
|
47481
47924
|
|
|
47482
47925
|
// src/mcp-server/tools/topicsDelete.ts
|
|
47483
|
-
var
|
|
47926
|
+
var args38, tool$topicsDelete;
|
|
47484
47927
|
var init_topicsDelete2 = __esm(() => {
|
|
47485
47928
|
init_lib();
|
|
47486
47929
|
init_topicsDelete();
|
|
47487
47930
|
init_tools();
|
|
47488
|
-
|
|
47931
|
+
args38 = {
|
|
47489
47932
|
topicKey: stringType(),
|
|
47490
47933
|
idempotencyKey: stringType().optional()
|
|
47491
47934
|
};
|
|
@@ -47494,9 +47937,9 @@ var init_topicsDelete2 = __esm(() => {
|
|
|
47494
47937
|
description: `Delete topic
|
|
47495
47938
|
|
|
47496
47939
|
Delete a topic by its topic key if it has no subscribers`,
|
|
47497
|
-
args:
|
|
47498
|
-
tool: async (client,
|
|
47499
|
-
const [result, apiCall] = await topicsDelete(client,
|
|
47940
|
+
args: args38,
|
|
47941
|
+
tool: async (client, args39, ctx) => {
|
|
47942
|
+
const [result, apiCall] = await topicsDelete(client, args39.topicKey, args39.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47500
47943
|
if (!result.ok) {
|
|
47501
47944
|
return {
|
|
47502
47945
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47510,9 +47953,9 @@ Delete a topic by its topic key if it has no subscribers`,
|
|
|
47510
47953
|
|
|
47511
47954
|
// src/funcs/topicsList.ts
|
|
47512
47955
|
function topicsList(client, request, options) {
|
|
47513
|
-
return new APIPromise($
|
|
47956
|
+
return new APIPromise($do39(client, request, options));
|
|
47514
47957
|
}
|
|
47515
|
-
async function $
|
|
47958
|
+
async function $do39(client, request, options) {
|
|
47516
47959
|
const parsed = safeParse(request, (value) => TopicsControllerListTopicsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
47517
47960
|
if (!parsed.ok) {
|
|
47518
47961
|
return [parsed, { status: "invalid" }];
|
|
@@ -47615,12 +48058,12 @@ var init_topicsList = __esm(() => {
|
|
|
47615
48058
|
});
|
|
47616
48059
|
|
|
47617
48060
|
// src/mcp-server/tools/topicsList.ts
|
|
47618
|
-
var
|
|
48061
|
+
var args39, tool$topicsList;
|
|
47619
48062
|
var init_topicsList2 = __esm(() => {
|
|
47620
48063
|
init_topicsList();
|
|
47621
48064
|
init_operations();
|
|
47622
48065
|
init_tools();
|
|
47623
|
-
|
|
48066
|
+
args39 = {
|
|
47624
48067
|
request: TopicsControllerListTopicsRequest$inboundSchema
|
|
47625
48068
|
};
|
|
47626
48069
|
tool$topicsList = {
|
|
@@ -47628,9 +48071,9 @@ var init_topicsList2 = __esm(() => {
|
|
|
47628
48071
|
description: `Get topic list filtered
|
|
47629
48072
|
|
|
47630
48073
|
Returns a list of topics that can be paginated using the \`page\` query parameter and filtered by the topic key with the \`key\` query parameter`,
|
|
47631
|
-
args:
|
|
47632
|
-
tool: async (client,
|
|
47633
|
-
const [result, apiCall] = await topicsList(client,
|
|
48074
|
+
args: args39,
|
|
48075
|
+
tool: async (client, args40, ctx) => {
|
|
48076
|
+
const [result, apiCall] = await topicsList(client, args40.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47634
48077
|
if (!result.ok) {
|
|
47635
48078
|
return {
|
|
47636
48079
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47645,9 +48088,9 @@ Returns a list of topics that can be paginated using the \`page\` query paramete
|
|
|
47645
48088
|
|
|
47646
48089
|
// src/funcs/topicsRename.ts
|
|
47647
48090
|
function topicsRename(client, renameTopicRequestDto, topicKey, idempotencyKey, options) {
|
|
47648
|
-
return new APIPromise($
|
|
48091
|
+
return new APIPromise($do40(client, renameTopicRequestDto, topicKey, idempotencyKey, options));
|
|
47649
48092
|
}
|
|
47650
|
-
async function $
|
|
48093
|
+
async function $do40(client, renameTopicRequestDto, topicKey, idempotencyKey, options) {
|
|
47651
48094
|
const input = {
|
|
47652
48095
|
renameTopicRequestDto,
|
|
47653
48096
|
topicKey,
|
|
@@ -47758,13 +48201,13 @@ var init_topicsRename = __esm(() => {
|
|
|
47758
48201
|
});
|
|
47759
48202
|
|
|
47760
48203
|
// src/mcp-server/tools/topicsRename.ts
|
|
47761
|
-
var
|
|
48204
|
+
var args40, tool$topicsRename;
|
|
47762
48205
|
var init_topicsRename2 = __esm(() => {
|
|
47763
48206
|
init_lib();
|
|
47764
48207
|
init_topicsRename();
|
|
47765
48208
|
init_components();
|
|
47766
48209
|
init_tools();
|
|
47767
|
-
|
|
48210
|
+
args40 = {
|
|
47768
48211
|
renameTopicRequestDto: RenameTopicRequestDto$inboundSchema,
|
|
47769
48212
|
topicKey: stringType(),
|
|
47770
48213
|
idempotencyKey: stringType().optional()
|
|
@@ -47774,9 +48217,9 @@ var init_topicsRename2 = __esm(() => {
|
|
|
47774
48217
|
description: `Rename a topic
|
|
47775
48218
|
|
|
47776
48219
|
Rename a topic by providing a new name`,
|
|
47777
|
-
args:
|
|
47778
|
-
tool: async (client,
|
|
47779
|
-
const [result, apiCall] = await topicsRename(client,
|
|
48220
|
+
args: args40,
|
|
48221
|
+
tool: async (client, args41, ctx) => {
|
|
48222
|
+
const [result, apiCall] = await topicsRename(client, args41.renameTopicRequestDto, args41.topicKey, args41.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47780
48223
|
if (!result.ok) {
|
|
47781
48224
|
return {
|
|
47782
48225
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47791,9 +48234,9 @@ Rename a topic by providing a new name`,
|
|
|
47791
48234
|
|
|
47792
48235
|
// src/funcs/topicsRetrieve.ts
|
|
47793
48236
|
function topicsRetrieve(client, topicKey, idempotencyKey, options) {
|
|
47794
|
-
return new APIPromise($
|
|
48237
|
+
return new APIPromise($do41(client, topicKey, idempotencyKey, options));
|
|
47795
48238
|
}
|
|
47796
|
-
async function $
|
|
48239
|
+
async function $do41(client, topicKey, idempotencyKey, options) {
|
|
47797
48240
|
const input = {
|
|
47798
48241
|
topicKey,
|
|
47799
48242
|
idempotencyKey
|
|
@@ -47900,12 +48343,12 @@ var init_topicsRetrieve = __esm(() => {
|
|
|
47900
48343
|
});
|
|
47901
48344
|
|
|
47902
48345
|
// src/mcp-server/tools/topicsRetrieve.ts
|
|
47903
|
-
var
|
|
48346
|
+
var args41, tool$topicsRetrieve;
|
|
47904
48347
|
var init_topicsRetrieve2 = __esm(() => {
|
|
47905
48348
|
init_lib();
|
|
47906
48349
|
init_topicsRetrieve();
|
|
47907
48350
|
init_tools();
|
|
47908
|
-
|
|
48351
|
+
args41 = {
|
|
47909
48352
|
topicKey: stringType(),
|
|
47910
48353
|
idempotencyKey: stringType().optional()
|
|
47911
48354
|
};
|
|
@@ -47914,9 +48357,9 @@ var init_topicsRetrieve2 = __esm(() => {
|
|
|
47914
48357
|
description: `Get topic
|
|
47915
48358
|
|
|
47916
48359
|
Get a topic by its topic key`,
|
|
47917
|
-
args:
|
|
47918
|
-
tool: async (client,
|
|
47919
|
-
const [result, apiCall] = await topicsRetrieve(client,
|
|
48360
|
+
args: args41,
|
|
48361
|
+
tool: async (client, args42, ctx) => {
|
|
48362
|
+
const [result, apiCall] = await topicsRetrieve(client, args42.topicKey, args42.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
47920
48363
|
if (!result.ok) {
|
|
47921
48364
|
return {
|
|
47922
48365
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -47931,9 +48374,9 @@ Get a topic by its topic key`,
|
|
|
47931
48374
|
|
|
47932
48375
|
// src/funcs/topicsSubscribersAssign.ts
|
|
47933
48376
|
function topicsSubscribersAssign(client, addSubscribersRequestDto, topicKey, idempotencyKey, options) {
|
|
47934
|
-
return new APIPromise($
|
|
48377
|
+
return new APIPromise($do42(client, addSubscribersRequestDto, topicKey, idempotencyKey, options));
|
|
47935
48378
|
}
|
|
47936
|
-
async function $
|
|
48379
|
+
async function $do42(client, addSubscribersRequestDto, topicKey, idempotencyKey, options) {
|
|
47937
48380
|
const input = {
|
|
47938
48381
|
addSubscribersRequestDto,
|
|
47939
48382
|
topicKey,
|
|
@@ -48044,13 +48487,13 @@ var init_topicsSubscribersAssign = __esm(() => {
|
|
|
48044
48487
|
});
|
|
48045
48488
|
|
|
48046
48489
|
// src/mcp-server/tools/topicsSubscribersAssign.ts
|
|
48047
|
-
var
|
|
48490
|
+
var args42, tool$topicsSubscribersAssign;
|
|
48048
48491
|
var init_topicsSubscribersAssign2 = __esm(() => {
|
|
48049
48492
|
init_lib();
|
|
48050
48493
|
init_topicsSubscribersAssign();
|
|
48051
48494
|
init_components();
|
|
48052
48495
|
init_tools();
|
|
48053
|
-
|
|
48496
|
+
args42 = {
|
|
48054
48497
|
addSubscribersRequestDto: AddSubscribersRequestDto$inboundSchema,
|
|
48055
48498
|
topicKey: stringType(),
|
|
48056
48499
|
idempotencyKey: stringType().optional()
|
|
@@ -48060,9 +48503,9 @@ var init_topicsSubscribersAssign2 = __esm(() => {
|
|
|
48060
48503
|
description: `Subscribers addition
|
|
48061
48504
|
|
|
48062
48505
|
Add subscribers to a topic by key`,
|
|
48063
|
-
args:
|
|
48064
|
-
tool: async (client,
|
|
48065
|
-
const [result, apiCall] = await topicsSubscribersAssign(client,
|
|
48506
|
+
args: args42,
|
|
48507
|
+
tool: async (client, args43, ctx) => {
|
|
48508
|
+
const [result, apiCall] = await topicsSubscribersAssign(client, args43.addSubscribersRequestDto, args43.topicKey, args43.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48066
48509
|
if (!result.ok) {
|
|
48067
48510
|
return {
|
|
48068
48511
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48077,9 +48520,9 @@ Add subscribers to a topic by key`,
|
|
|
48077
48520
|
|
|
48078
48521
|
// src/funcs/topicsSubscribersRemove.ts
|
|
48079
48522
|
function topicsSubscribersRemove(client, removeSubscribersRequestDto, topicKey, idempotencyKey, options) {
|
|
48080
|
-
return new APIPromise($
|
|
48523
|
+
return new APIPromise($do43(client, removeSubscribersRequestDto, topicKey, idempotencyKey, options));
|
|
48081
48524
|
}
|
|
48082
|
-
async function $
|
|
48525
|
+
async function $do43(client, removeSubscribersRequestDto, topicKey, idempotencyKey, options) {
|
|
48083
48526
|
const input = {
|
|
48084
48527
|
removeSubscribersRequestDto,
|
|
48085
48528
|
topicKey,
|
|
@@ -48187,13 +48630,13 @@ var init_topicsSubscribersRemove = __esm(() => {
|
|
|
48187
48630
|
});
|
|
48188
48631
|
|
|
48189
48632
|
// src/mcp-server/tools/topicsSubscribersRemove.ts
|
|
48190
|
-
var
|
|
48633
|
+
var args43, tool$topicsSubscribersRemove;
|
|
48191
48634
|
var init_topicsSubscribersRemove2 = __esm(() => {
|
|
48192
48635
|
init_lib();
|
|
48193
48636
|
init_topicsSubscribersRemove();
|
|
48194
48637
|
init_components();
|
|
48195
48638
|
init_tools();
|
|
48196
|
-
|
|
48639
|
+
args43 = {
|
|
48197
48640
|
removeSubscribersRequestDto: RemoveSubscribersRequestDto$inboundSchema,
|
|
48198
48641
|
topicKey: stringType(),
|
|
48199
48642
|
idempotencyKey: stringType().optional()
|
|
@@ -48203,9 +48646,9 @@ var init_topicsSubscribersRemove2 = __esm(() => {
|
|
|
48203
48646
|
description: `Subscribers removal
|
|
48204
48647
|
|
|
48205
48648
|
Remove subscribers from a topic`,
|
|
48206
|
-
args:
|
|
48207
|
-
tool: async (client,
|
|
48208
|
-
const [result, apiCall] = await topicsSubscribersRemove(client,
|
|
48649
|
+
args: args43,
|
|
48650
|
+
tool: async (client, args44, ctx) => {
|
|
48651
|
+
const [result, apiCall] = await topicsSubscribersRemove(client, args44.removeSubscribersRequestDto, args44.topicKey, args44.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48209
48652
|
if (!result.ok) {
|
|
48210
48653
|
return {
|
|
48211
48654
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48219,9 +48662,9 @@ Remove subscribers from a topic`,
|
|
|
48219
48662
|
|
|
48220
48663
|
// src/funcs/topicsSubscribersRetrieve.ts
|
|
48221
48664
|
function topicsSubscribersRetrieve(client, externalSubscriberId, topicKey, idempotencyKey, options) {
|
|
48222
|
-
return new APIPromise($
|
|
48665
|
+
return new APIPromise($do44(client, externalSubscriberId, topicKey, idempotencyKey, options));
|
|
48223
48666
|
}
|
|
48224
|
-
async function $
|
|
48667
|
+
async function $do44(client, externalSubscriberId, topicKey, idempotencyKey, options) {
|
|
48225
48668
|
const input = {
|
|
48226
48669
|
externalSubscriberId,
|
|
48227
48670
|
topicKey,
|
|
@@ -48327,12 +48770,12 @@ var init_topicsSubscribersRetrieve = __esm(() => {
|
|
|
48327
48770
|
});
|
|
48328
48771
|
|
|
48329
48772
|
// src/mcp-server/tools/topicsSubscribersRetrieve.ts
|
|
48330
|
-
var
|
|
48773
|
+
var args44, tool$topicsSubscribersRetrieve;
|
|
48331
48774
|
var init_topicsSubscribersRetrieve2 = __esm(() => {
|
|
48332
48775
|
init_lib();
|
|
48333
48776
|
init_topicsSubscribersRetrieve();
|
|
48334
48777
|
init_tools();
|
|
48335
|
-
|
|
48778
|
+
args44 = {
|
|
48336
48779
|
externalSubscriberId: stringType(),
|
|
48337
48780
|
topicKey: stringType(),
|
|
48338
48781
|
idempotencyKey: stringType().optional()
|
|
@@ -48342,9 +48785,9 @@ var init_topicsSubscribersRetrieve2 = __esm(() => {
|
|
|
48342
48785
|
description: `Check topic subscriber
|
|
48343
48786
|
|
|
48344
48787
|
Check if a subscriber belongs to a certain topic`,
|
|
48345
|
-
args:
|
|
48346
|
-
tool: async (client,
|
|
48347
|
-
const [result, apiCall] = await topicsSubscribersRetrieve(client,
|
|
48788
|
+
args: args44,
|
|
48789
|
+
tool: async (client, args45, ctx) => {
|
|
48790
|
+
const [result, apiCall] = await topicsSubscribersRetrieve(client, args45.externalSubscriberId, args45.topicKey, args45.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48348
48791
|
if (!result.ok) {
|
|
48349
48792
|
return {
|
|
48350
48793
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48359,9 +48802,9 @@ Check if a subscriber belongs to a certain topic`,
|
|
|
48359
48802
|
|
|
48360
48803
|
// src/funcs/trigger.ts
|
|
48361
48804
|
function trigger(client, triggerEventRequestDto, idempotencyKey, options) {
|
|
48362
|
-
return new APIPromise($
|
|
48805
|
+
return new APIPromise($do45(client, triggerEventRequestDto, idempotencyKey, options));
|
|
48363
48806
|
}
|
|
48364
|
-
async function $
|
|
48807
|
+
async function $do45(client, triggerEventRequestDto, idempotencyKey, options) {
|
|
48365
48808
|
const input = {
|
|
48366
48809
|
triggerEventRequestDto,
|
|
48367
48810
|
idempotencyKey
|
|
@@ -48465,13 +48908,13 @@ var init_trigger = __esm(() => {
|
|
|
48465
48908
|
});
|
|
48466
48909
|
|
|
48467
48910
|
// src/mcp-server/tools/trigger.ts
|
|
48468
|
-
var
|
|
48911
|
+
var args45, tool$trigger;
|
|
48469
48912
|
var init_trigger2 = __esm(() => {
|
|
48470
48913
|
init_lib();
|
|
48471
48914
|
init_trigger();
|
|
48472
48915
|
init_components();
|
|
48473
48916
|
init_tools();
|
|
48474
|
-
|
|
48917
|
+
args45 = {
|
|
48475
48918
|
triggerEventRequestDto: TriggerEventRequestDto$inboundSchema,
|
|
48476
48919
|
idempotencyKey: stringType().optional()
|
|
48477
48920
|
};
|
|
@@ -48484,9 +48927,9 @@ var init_trigger2 = __esm(() => {
|
|
|
48484
48927
|
The trigger identifier is used to match the particular workflow associated with it.
|
|
48485
48928
|
Additional information can be passed according the body interface below.
|
|
48486
48929
|
`,
|
|
48487
|
-
args:
|
|
48488
|
-
tool: async (client,
|
|
48489
|
-
const [result, apiCall] = await trigger(client,
|
|
48930
|
+
args: args45,
|
|
48931
|
+
tool: async (client, args46, ctx) => {
|
|
48932
|
+
const [result, apiCall] = await trigger(client, args46.triggerEventRequestDto, args46.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48490
48933
|
if (!result.ok) {
|
|
48491
48934
|
return {
|
|
48492
48935
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48501,9 +48944,9 @@ var init_trigger2 = __esm(() => {
|
|
|
48501
48944
|
|
|
48502
48945
|
// src/funcs/triggerBroadcast.ts
|
|
48503
48946
|
function triggerBroadcast(client, triggerEventToAllRequestDto, idempotencyKey, options) {
|
|
48504
|
-
return new APIPromise($
|
|
48947
|
+
return new APIPromise($do46(client, triggerEventToAllRequestDto, idempotencyKey, options));
|
|
48505
48948
|
}
|
|
48506
|
-
async function $
|
|
48949
|
+
async function $do46(client, triggerEventToAllRequestDto, idempotencyKey, options) {
|
|
48507
48950
|
const input = {
|
|
48508
48951
|
triggerEventToAllRequestDto,
|
|
48509
48952
|
idempotencyKey
|
|
@@ -48604,13 +49047,13 @@ var init_triggerBroadcast = __esm(() => {
|
|
|
48604
49047
|
});
|
|
48605
49048
|
|
|
48606
49049
|
// src/mcp-server/tools/triggerBroadcast.ts
|
|
48607
|
-
var
|
|
49050
|
+
var args46, tool$triggerBroadcast;
|
|
48608
49051
|
var init_triggerBroadcast2 = __esm(() => {
|
|
48609
49052
|
init_lib();
|
|
48610
49053
|
init_triggerBroadcast();
|
|
48611
49054
|
init_components();
|
|
48612
49055
|
init_tools();
|
|
48613
|
-
|
|
49056
|
+
args46 = {
|
|
48614
49057
|
triggerEventToAllRequestDto: TriggerEventToAllRequestDto$inboundSchema,
|
|
48615
49058
|
idempotencyKey: stringType().optional()
|
|
48616
49059
|
};
|
|
@@ -48620,9 +49063,9 @@ var init_triggerBroadcast2 = __esm(() => {
|
|
|
48620
49063
|
|
|
48621
49064
|
Trigger a broadcast event to all existing subscribers, could be used to send announcements, etc.
|
|
48622
49065
|
In the future could be used to trigger events to a subset of subscribers based on defined filters.`,
|
|
48623
|
-
args:
|
|
48624
|
-
tool: async (client,
|
|
48625
|
-
const [result, apiCall] = await triggerBroadcast(client,
|
|
49066
|
+
args: args46,
|
|
49067
|
+
tool: async (client, args47, ctx) => {
|
|
49068
|
+
const [result, apiCall] = await triggerBroadcast(client, args47.triggerEventToAllRequestDto, args47.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48626
49069
|
if (!result.ok) {
|
|
48627
49070
|
return {
|
|
48628
49071
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48637,9 +49080,9 @@ Trigger a broadcast event to all existing subscribers, could be used to send ann
|
|
|
48637
49080
|
|
|
48638
49081
|
// src/funcs/triggerBulk.ts
|
|
48639
49082
|
function triggerBulk(client, bulkTriggerEventDto, idempotencyKey, options) {
|
|
48640
|
-
return new APIPromise($
|
|
49083
|
+
return new APIPromise($do47(client, bulkTriggerEventDto, idempotencyKey, options));
|
|
48641
49084
|
}
|
|
48642
|
-
async function $
|
|
49085
|
+
async function $do47(client, bulkTriggerEventDto, idempotencyKey, options) {
|
|
48643
49086
|
const input = {
|
|
48644
49087
|
bulkTriggerEventDto,
|
|
48645
49088
|
idempotencyKey
|
|
@@ -48743,13 +49186,13 @@ var init_triggerBulk = __esm(() => {
|
|
|
48743
49186
|
});
|
|
48744
49187
|
|
|
48745
49188
|
// src/mcp-server/tools/triggerBulk.ts
|
|
48746
|
-
var
|
|
49189
|
+
var args47, tool$triggerBulk;
|
|
48747
49190
|
var init_triggerBulk2 = __esm(() => {
|
|
48748
49191
|
init_lib();
|
|
48749
49192
|
init_triggerBulk();
|
|
48750
49193
|
init_components();
|
|
48751
49194
|
init_tools();
|
|
48752
|
-
|
|
49195
|
+
args47 = {
|
|
48753
49196
|
bulkTriggerEventDto: BulkTriggerEventDto$inboundSchema,
|
|
48754
49197
|
idempotencyKey: stringType().optional()
|
|
48755
49198
|
};
|
|
@@ -48761,9 +49204,9 @@ var init_triggerBulk2 = __esm(() => {
|
|
|
48761
49204
|
Using this endpoint you can trigger multiple events at once, to avoid multiple calls to the API.
|
|
48762
49205
|
The bulk API is limited to 100 events per request.
|
|
48763
49206
|
`,
|
|
48764
|
-
args:
|
|
48765
|
-
tool: async (client,
|
|
48766
|
-
const [result, apiCall] = await triggerBulk(client,
|
|
49207
|
+
args: args47,
|
|
49208
|
+
tool: async (client, args48, ctx) => {
|
|
49209
|
+
const [result, apiCall] = await triggerBulk(client, args48.bulkTriggerEventDto, args48.idempotencyKey, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
48767
49210
|
if (!result.ok) {
|
|
48768
49211
|
return {
|
|
48769
49212
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -48780,14 +49223,14 @@ var init_triggerBulk2 = __esm(() => {
|
|
|
48780
49223
|
function createMCPServer(deps) {
|
|
48781
49224
|
const server = new McpServer({
|
|
48782
49225
|
name: "Novu",
|
|
48783
|
-
version: "0.
|
|
49226
|
+
version: "0.7.0"
|
|
48784
49227
|
});
|
|
48785
49228
|
const client = new NovuCore({
|
|
48786
49229
|
secretKey: deps.secretKey,
|
|
48787
49230
|
serverURL: deps.serverURL,
|
|
48788
49231
|
serverIdx: deps.serverIdx
|
|
48789
49232
|
});
|
|
48790
|
-
const scopes = new Set(deps.scopes
|
|
49233
|
+
const scopes = new Set(deps.scopes);
|
|
48791
49234
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
48792
49235
|
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
48793
49236
|
const resource = createRegisterResource(deps.logger, server, client, scopes);
|
|
@@ -48804,6 +49247,7 @@ function createMCPServer(deps) {
|
|
|
48804
49247
|
tool(tool$subscribersPatch);
|
|
48805
49248
|
tool(tool$subscribersDelete);
|
|
48806
49249
|
tool(tool$subscribersList);
|
|
49250
|
+
tool(tool$subscribersUpsert);
|
|
48807
49251
|
tool(tool$subscribersCreateBulk);
|
|
48808
49252
|
tool(tool$integrationsList);
|
|
48809
49253
|
tool(tool$integrationsCreate);
|
|
@@ -48846,7 +49290,6 @@ var init_server2 = __esm(() => {
|
|
|
48846
49290
|
init_mcp();
|
|
48847
49291
|
init_core();
|
|
48848
49292
|
init_resources();
|
|
48849
|
-
init_scopes();
|
|
48850
49293
|
init_tools();
|
|
48851
49294
|
init_cancel2();
|
|
48852
49295
|
init_integrationsCreate2();
|
|
@@ -48883,6 +49326,7 @@ var init_server2 = __esm(() => {
|
|
|
48883
49326
|
init_subscribersPropertiesUpdateOnlineFlag2();
|
|
48884
49327
|
init_subscribersRetrieve2();
|
|
48885
49328
|
init_subscribersSearch2();
|
|
49329
|
+
init_subscribersUpsert2();
|
|
48886
49330
|
init_topicsCreate2();
|
|
48887
49331
|
init_topicsDelete2();
|
|
48888
49332
|
init_topicsList2();
|
|
@@ -49978,7 +50422,11 @@ function buildContext(process2) {
|
|
|
49978
50422
|
// src/mcp-server/cli/start/command.ts
|
|
49979
50423
|
init_lib();
|
|
49980
50424
|
init_console_logger();
|
|
49981
|
-
|
|
50425
|
+
|
|
50426
|
+
// src/mcp-server/scopes.ts
|
|
50427
|
+
var mcpScopes = [];
|
|
50428
|
+
|
|
50429
|
+
// src/mcp-server/cli/start/command.ts
|
|
49982
50430
|
var startCommand = tn({
|
|
49983
50431
|
loader: async () => {
|
|
49984
50432
|
const { main: main2 } = await Promise.resolve().then(() => (init_impl(), exports_impl));
|
|
@@ -50083,7 +50531,7 @@ var routes = rn({
|
|
|
50083
50531
|
var app = Ve(routes, {
|
|
50084
50532
|
name: "mcp",
|
|
50085
50533
|
versionInfo: {
|
|
50086
|
-
currentVersion: "0.
|
|
50534
|
+
currentVersion: "0.7.0"
|
|
50087
50535
|
}
|
|
50088
50536
|
});
|
|
50089
50537
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -50091,5 +50539,5 @@ export {
|
|
|
50091
50539
|
app
|
|
50092
50540
|
};
|
|
50093
50541
|
|
|
50094
|
-
//# debugId=
|
|
50542
|
+
//# debugId=D2A4F2C8177278F264756E2164756E21
|
|
50095
50543
|
//# sourceMappingURL=mcp-server.js.map
|