@novu/api 0.5.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +124 -68
- package/bin/mcp-server.js +223 -173
- package/bin/mcp-server.js.map +65 -64
- package/docs/sdks/authentication/README.md +17 -17
- package/docs/sdks/integrations/README.md +55 -55
- package/docs/sdks/novu/README.md +146 -146
- package/docs/sdks/novumessages/README.md +34 -34
- package/docs/sdks/stats/README.md +14 -14
- package/docs/sdks/subscribers/README.md +82 -82
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +2 -8
- package/lib/sdks.js.map +1 -1
- package/lib/security.d.ts +4 -3
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -1
- package/lib/security.js.map +1 -1
- package/mcp-server/extensions.d.ts +11 -0
- package/mcp-server/extensions.d.ts.map +1 -0
- package/mcp-server/extensions.js +6 -0
- package/mcp-server/extensions.js.map +1 -0
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/prompts.d.ts +26 -0
- package/mcp-server/prompts.d.ts.map +1 -0
- package/mcp-server/prompts.js +48 -0
- package/mcp-server/prompts.js.map +1 -0
- package/mcp-server/resources.d.ts +9 -4
- package/mcp-server/resources.d.ts.map +1 -1
- package/mcp-server/resources.js +38 -10
- package/mcp-server/resources.js.map +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +31 -24
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/integrationsCreate.js +1 -1
- package/mcp-server/tools/integrationsDelete.js +1 -1
- package/mcp-server/tools/integrationsList.js +1 -1
- package/mcp-server/tools/integrationsListActive.js +1 -1
- package/mcp-server/tools/integrationsSetAsPrimary.js +1 -1
- package/mcp-server/tools/integrationsUpdate.js +1 -1
- package/mcp-server/tools/integrationsWebhooksRetrieve.js +1 -1
- package/mcp-server/tools/messagesDelete.js +1 -1
- package/mcp-server/tools/messagesDeleteByTransactionId.js +1 -1
- package/mcp-server/tools/messagesRetrieve.js +1 -1
- package/mcp-server/tools/notificationsList.js +1 -1
- package/mcp-server/tools/notificationsRetrieve.js +1 -1
- package/mcp-server/tools/notificationsStatsGraph.js +1 -1
- package/mcp-server/tools/notificationsStatsRetrieve.js +1 -1
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauth.js +1 -1
- package/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.js +1 -1
- package/mcp-server/tools/subscribersCreate.js +1 -1
- package/mcp-server/tools/subscribersCreateBulk.js +1 -1
- package/mcp-server/tools/subscribersCredentialsAppend.js +1 -1
- package/mcp-server/tools/subscribersCredentialsDelete.js +1 -1
- package/mcp-server/tools/subscribersCredentialsUpdate.js +1 -1
- package/mcp-server/tools/subscribersDelete.js +1 -1
- package/mcp-server/tools/subscribersList.js +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAll.js +1 -1
- package/mcp-server/tools/subscribersMessagesMarkAllAs.js +1 -1
- package/mcp-server/tools/subscribersMessagesUpdateAsSeen.js +1 -1
- package/mcp-server/tools/subscribersNotificationsFeed.js +1 -1
- package/mcp-server/tools/subscribersNotificationsUnseenCount.js +1 -1
- package/mcp-server/tools/subscribersPatch.js +1 -1
- package/mcp-server/tools/subscribersPreferencesList.js +1 -1
- package/mcp-server/tools/subscribersPreferencesUpdate.js +1 -1
- package/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.js +1 -1
- package/mcp-server/tools/subscribersRetrieve.js +1 -1
- package/mcp-server/tools/subscribersSearch.js +1 -1
- package/mcp-server/tools/topicsCreate.js +1 -1
- package/mcp-server/tools/topicsDelete.js +1 -1
- package/mcp-server/tools/topicsList.js +1 -1
- package/mcp-server/tools/topicsRename.js +1 -1
- package/mcp-server/tools/topicsRetrieve.js +1 -1
- package/mcp-server/tools/topicsSubscribersAssign.js +1 -1
- package/mcp-server/tools/topicsSubscribersRemove.js +1 -1
- package/mcp-server/tools/topicsSubscribersRetrieve.js +1 -1
- package/mcp-server/tools.d.ts.map +1 -1
- package/mcp-server/tools.js +4 -0
- package/mcp-server/tools.js.map +1 -1
- package/models/components/activitynotificationjobresponsedto.d.ts +9 -0
- package/models/components/activitynotificationjobresponsedto.d.ts.map +1 -1
- package/models/components/activitynotificationjobresponsedto.js +2 -0
- package/models/components/activitynotificationjobresponsedto.js.map +1 -1
- package/models/components/channelsettingsdto.d.ts +8 -8
- package/models/components/channelsettingsdto.d.ts.map +1 -1
- package/models/components/channelsettingsdto.js +14 -13
- package/models/components/channelsettingsdto.js.map +1 -1
- package/models/components/index.d.ts +0 -1
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -1
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +8 -8
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +13 -14
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/markallmessageasrequestdto.d.ts +8 -8
- package/models/components/markallmessageasrequestdto.d.ts.map +1 -1
- package/models/components/markallmessageasrequestdto.js +14 -13
- package/models/components/markallmessageasrequestdto.js.map +1 -1
- package/models/components/messagemarkasrequestdto.d.ts +8 -8
- package/models/components/messagemarkasrequestdto.d.ts.map +1 -1
- package/models/components/messagemarkasrequestdto.js +13 -14
- package/models/components/messagemarkasrequestdto.js.map +1 -1
- package/models/components/overrides.d.ts +8 -8
- package/models/components/overrides.d.ts.map +1 -1
- package/models/components/overrides.js +14 -13
- package/models/components/overrides.js.map +1 -1
- package/models/components/patchsubscriberrequestdto.d.ts +15 -15
- package/models/components/patchsubscriberrequestdto.d.ts.map +1 -1
- package/models/components/patchsubscriberrequestdto.js +19 -20
- package/models/components/patchsubscriberrequestdto.js.map +1 -1
- package/models/components/subscriberchanneldto.d.ts +8 -8
- package/models/components/subscriberchanneldto.d.ts.map +1 -1
- package/models/components/subscriberchanneldto.js +13 -14
- package/models/components/subscriberchanneldto.js.map +1 -1
- package/models/components/subscriberpayloaddto.d.ts +13 -13
- package/models/components/subscriberpayloaddto.d.ts.map +1 -1
- package/models/components/subscriberpayloaddto.js +16 -17
- package/models/components/subscriberpayloaddto.js.map +1 -1
- package/models/operations/eventscontrollercancel.d.ts +2 -3
- package/models/operations/eventscontrollercancel.d.ts.map +1 -1
- package/models/operations/eventscontrollercancel.js +2 -3
- package/models/operations/eventscontrollercancel.js.map +1 -1
- package/models/operations/notificationscontrollerlistnotifications.d.ts +2 -2
- package/package.json +2 -2
- package/sdk/authentication.d.ts +4 -4
- package/sdk/authentication.d.ts.map +1 -1
- package/sdk/authentication.js +6 -6
- package/sdk/authentication.js.map +1 -1
- package/sdk/integrations.d.ts +7 -7
- package/sdk/integrations.d.ts.map +1 -1
- package/sdk/integrations.js +9 -9
- package/sdk/integrations.js.map +1 -1
- package/sdk/novumessages.d.ts +4 -4
- package/sdk/novumessages.d.ts.map +1 -1
- package/sdk/novumessages.js +6 -6
- package/sdk/novumessages.js.map +1 -1
- package/sdk/sdk.d.ts +12 -12
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +15 -15
- package/sdk/sdk.js.map +1 -1
- package/sdk/stats.d.ts +4 -4
- package/sdk/stats.d.ts.map +1 -1
- package/sdk/stats.js +6 -6
- package/sdk/stats.js.map +1 -1
- package/sdk/subscribers.d.ts +26 -26
- package/sdk/subscribers.d.ts.map +1 -1
- package/sdk/subscribers.js +29 -29
- package/sdk/subscribers.js.map +1 -1
- package/sources/json-development.json +1146 -1148
- package/src/lib/config.ts +3 -3
- package/src/lib/sdks.ts +2 -7
- package/src/lib/security.ts +11 -3
- package/src/mcp-server/extensions.ts +17 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/prompts.ts +110 -0
- package/src/mcp-server/resources.ts +76 -14
- package/src/mcp-server/server.ts +41 -24
- package/src/mcp-server/tools/integrationsCreate.ts +1 -1
- package/src/mcp-server/tools/integrationsDelete.ts +1 -1
- package/src/mcp-server/tools/integrationsList.ts +1 -1
- package/src/mcp-server/tools/integrationsListActive.ts +1 -1
- package/src/mcp-server/tools/integrationsSetAsPrimary.ts +1 -1
- package/src/mcp-server/tools/integrationsUpdate.ts +1 -1
- package/src/mcp-server/tools/integrationsWebhooksRetrieve.ts +1 -1
- package/src/mcp-server/tools/messagesDelete.ts +1 -1
- package/src/mcp-server/tools/messagesDeleteByTransactionId.ts +1 -1
- package/src/mcp-server/tools/messagesRetrieve.ts +1 -1
- package/src/mcp-server/tools/notificationsList.ts +1 -1
- package/src/mcp-server/tools/notificationsRetrieve.ts +1 -1
- package/src/mcp-server/tools/notificationsStatsGraph.ts +1 -1
- package/src/mcp-server/tools/notificationsStatsRetrieve.ts +1 -1
- package/src/mcp-server/tools/subscribersAuthenticationChatAccessOauth.ts +1 -1
- package/src/mcp-server/tools/subscribersAuthenticationChatAccessOauthCallBack.ts +1 -1
- package/src/mcp-server/tools/subscribersCreate.ts +1 -1
- package/src/mcp-server/tools/subscribersCreateBulk.ts +1 -1
- package/src/mcp-server/tools/subscribersCredentialsAppend.ts +1 -1
- package/src/mcp-server/tools/subscribersCredentialsDelete.ts +1 -1
- package/src/mcp-server/tools/subscribersCredentialsUpdate.ts +1 -1
- package/src/mcp-server/tools/subscribersDelete.ts +1 -1
- package/src/mcp-server/tools/subscribersList.ts +1 -1
- package/src/mcp-server/tools/subscribersMessagesMarkAll.ts +1 -1
- package/src/mcp-server/tools/subscribersMessagesMarkAllAs.ts +1 -1
- package/src/mcp-server/tools/subscribersMessagesUpdateAsSeen.ts +1 -1
- package/src/mcp-server/tools/subscribersNotificationsFeed.ts +1 -1
- package/src/mcp-server/tools/subscribersNotificationsUnseenCount.ts +1 -1
- package/src/mcp-server/tools/subscribersPatch.ts +1 -1
- package/src/mcp-server/tools/subscribersPreferencesList.ts +1 -1
- package/src/mcp-server/tools/subscribersPreferencesUpdate.ts +1 -1
- package/src/mcp-server/tools/subscribersPropertiesUpdateOnlineFlag.ts +1 -1
- package/src/mcp-server/tools/subscribersRetrieve.ts +1 -1
- package/src/mcp-server/tools/subscribersSearch.ts +1 -1
- package/src/mcp-server/tools/topicsCreate.ts +1 -1
- package/src/mcp-server/tools/topicsDelete.ts +1 -1
- package/src/mcp-server/tools/topicsList.ts +1 -1
- package/src/mcp-server/tools/topicsRename.ts +1 -1
- package/src/mcp-server/tools/topicsRetrieve.ts +1 -1
- package/src/mcp-server/tools/topicsSubscribersAssign.ts +1 -1
- package/src/mcp-server/tools/topicsSubscribersRemove.ts +1 -1
- package/src/mcp-server/tools/topicsSubscribersRetrieve.ts +1 -1
- package/src/mcp-server/tools.ts +5 -0
- package/src/models/components/activitynotificationjobresponsedto.ts +7 -0
- package/src/models/components/channelsettingsdto.ts +14 -18
- package/src/models/components/index.ts +0 -1
- package/src/models/components/integrationresponsedto.ts +18 -14
- package/src/models/components/markallmessageasrequestdto.ts +14 -18
- package/src/models/components/messagemarkasrequestdto.ts +18 -14
- package/src/models/components/overrides.ts +14 -16
- package/src/models/components/patchsubscriberrequestdto.ts +23 -37
- package/src/models/components/subscriberchanneldto.ts +18 -14
- package/src/models/components/subscriberpayloaddto.ts +37 -19
- package/src/models/operations/eventscontrollercancel.ts +4 -5
- package/src/models/operations/notificationscontrollerlistnotifications.ts +2 -2
- package/src/sdk/authentication.ts +16 -16
- package/src/sdk/integrations.ts +17 -17
- package/src/sdk/novumessages.ts +16 -16
- package/src/sdk/sdk.ts +24 -24
- package/src/sdk/stats.ts +10 -10
- package/src/sdk/subscribers.ts +61 -61
- package/models/components/databooleandto.d.ts +0 -29
- package/models/components/databooleandto.d.ts.map +0 -1
- package/models/components/databooleandto.js +0 -59
- package/models/components/databooleandto.js.map +0 -1
- package/src/models/components/databooleandto.ts +0 -62
package/bin/mcp-server.js
CHANGED
|
@@ -34264,9 +34264,9 @@ var init_config = __esm(() => {
|
|
|
34264
34264
|
SDK_METADATA = {
|
|
34265
34265
|
language: "typescript",
|
|
34266
34266
|
openapiDocVersion: "1.0",
|
|
34267
|
-
sdkVersion: "0.
|
|
34268
|
-
genVersion: "2.
|
|
34269
|
-
userAgent: "speakeasy-sdk/typescript 0.
|
|
34267
|
+
sdkVersion: "0.6.1",
|
|
34268
|
+
genVersion: "2.558.2",
|
|
34269
|
+
userAgent: "speakeasy-sdk/typescript 0.6.1 2.558.2 1.0 @novu/api"
|
|
34270
34270
|
};
|
|
34271
34271
|
});
|
|
34272
34272
|
|
|
@@ -34879,12 +34879,9 @@ class ClientSDK {
|
|
|
34879
34879
|
}
|
|
34880
34880
|
if (conf.body instanceof ReadableStream) {
|
|
34881
34881
|
if (!fetchOptions) {
|
|
34882
|
-
fetchOptions = {
|
|
34883
|
-
duplex: "half"
|
|
34884
|
-
};
|
|
34885
|
-
} else {
|
|
34886
|
-
fetchOptions.duplex = "half";
|
|
34882
|
+
fetchOptions = {};
|
|
34887
34883
|
}
|
|
34884
|
+
Object.assign(fetchOptions, { duplex: "half" });
|
|
34888
34885
|
}
|
|
34889
34886
|
let input;
|
|
34890
34887
|
try {
|
|
@@ -35039,6 +35036,30 @@ var init_core = __esm(() => {
|
|
|
35039
35036
|
};
|
|
35040
35037
|
});
|
|
35041
35038
|
|
|
35039
|
+
// src/mcp-server/prompts.ts
|
|
35040
|
+
function createRegisterPrompt(logger, server, sdk, allowedScopes) {
|
|
35041
|
+
return (prompt) => {
|
|
35042
|
+
const scopes = prompt.scopes ?? [];
|
|
35043
|
+
if (!scopes.every((s) => allowedScopes.has(s))) {
|
|
35044
|
+
return;
|
|
35045
|
+
}
|
|
35046
|
+
if (prompt.args) {
|
|
35047
|
+
if (prompt.description) {
|
|
35048
|
+
server.prompt(prompt.name, prompt.description, prompt.args, async (args, ctx) => prompt.prompt(sdk, args, ctx));
|
|
35049
|
+
} else {
|
|
35050
|
+
server.prompt(prompt.name, prompt.args, async (args, ctx) => prompt.prompt(sdk, args, ctx));
|
|
35051
|
+
}
|
|
35052
|
+
} else {
|
|
35053
|
+
if (prompt.description) {
|
|
35054
|
+
server.prompt(prompt.name, prompt.description, async (ctx) => prompt.prompt(sdk, ctx));
|
|
35055
|
+
} else {
|
|
35056
|
+
server.prompt(prompt.name, async (ctx) => prompt.prompt(sdk, ctx));
|
|
35057
|
+
}
|
|
35058
|
+
}
|
|
35059
|
+
logger.debug("Registered prompt", { name: prompt.name });
|
|
35060
|
+
};
|
|
35061
|
+
}
|
|
35062
|
+
|
|
35042
35063
|
// src/mcp-server/shared.ts
|
|
35043
35064
|
async function consumeStream(stream) {
|
|
35044
35065
|
const reader = stream.getReader();
|
|
@@ -35086,6 +35107,38 @@ var init_shared = __esm(() => {
|
|
|
35086
35107
|
base64Schema = stringType().base64();
|
|
35087
35108
|
});
|
|
35088
35109
|
|
|
35110
|
+
// src/mcp-server/resources.ts
|
|
35111
|
+
function createRegisterResource(logger, server, sdk, allowedScopes) {
|
|
35112
|
+
return (resource) => {
|
|
35113
|
+
const scopes = resource.scopes ?? [];
|
|
35114
|
+
if (!scopes.every((s) => allowedScopes.has(s))) {
|
|
35115
|
+
return;
|
|
35116
|
+
}
|
|
35117
|
+
const metadata = {
|
|
35118
|
+
...resource.metadata,
|
|
35119
|
+
description: resource.description
|
|
35120
|
+
};
|
|
35121
|
+
server.resource(resource.name, resource.resource, metadata, async (uri, ctx) => resource.read(sdk, uri, ctx));
|
|
35122
|
+
logger.debug("Registered resource", { name: resource.name });
|
|
35123
|
+
};
|
|
35124
|
+
}
|
|
35125
|
+
function createRegisterResourceTemplate(logger, server, sdk, allowedScopes) {
|
|
35126
|
+
return (resource) => {
|
|
35127
|
+
const scopes = resource.scopes ?? [];
|
|
35128
|
+
if (!scopes.every((s) => allowedScopes.has(s))) {
|
|
35129
|
+
return;
|
|
35130
|
+
}
|
|
35131
|
+
const metadata = {
|
|
35132
|
+
...resource.metadata,
|
|
35133
|
+
description: resource.description
|
|
35134
|
+
};
|
|
35135
|
+
server.resource(resource.name, resource.resource, metadata, async (uri, vars, ctx) => resource.read(sdk, uri, vars, ctx));
|
|
35136
|
+
logger.debug("Registered resource template", { name: resource.name });
|
|
35137
|
+
};
|
|
35138
|
+
}
|
|
35139
|
+
var init_resources = () => {
|
|
35140
|
+
};
|
|
35141
|
+
|
|
35089
35142
|
// src/mcp-server/tools.ts
|
|
35090
35143
|
async function formatResult(value, init) {
|
|
35091
35144
|
if (typeof value === "undefined") {
|
|
@@ -35131,6 +35184,9 @@ function createRegisterTool(logger, server, sdk, allowedScopes, allowedTools) {
|
|
|
35131
35184
|
return;
|
|
35132
35185
|
}
|
|
35133
35186
|
const toolScopes = tool.scopes ?? [];
|
|
35187
|
+
if (allowedScopes.size > 0 && toolScopes.length === 0) {
|
|
35188
|
+
return;
|
|
35189
|
+
}
|
|
35134
35190
|
if (!toolScopes.every((s) => allowedScopes.has(s))) {
|
|
35135
35191
|
return;
|
|
35136
35192
|
}
|
|
@@ -35452,6 +35508,9 @@ function resolveSecurity(...options) {
|
|
|
35452
35508
|
} else if (o.type === "oauth2:password") {
|
|
35453
35509
|
return typeof o.value === "string" && !!o.value;
|
|
35454
35510
|
} else if (o.type === "oauth2:client_credentials") {
|
|
35511
|
+
if (typeof o.value == "string") {
|
|
35512
|
+
return !!o.value;
|
|
35513
|
+
}
|
|
35455
35514
|
return o.value.clientID != null || o.value.clientSecret != null;
|
|
35456
35515
|
} else if (typeof o.value === "string") {
|
|
35457
35516
|
return !!o.value;
|
|
@@ -35517,7 +35576,9 @@ function applyBearer(state, spec) {
|
|
|
35517
35576
|
if (value.slice(0, 7).toLowerCase() !== "bearer ") {
|
|
35518
35577
|
value = `Bearer ${value}`;
|
|
35519
35578
|
}
|
|
35520
|
-
|
|
35579
|
+
if (spec.fieldName !== undefined) {
|
|
35580
|
+
state.headers[spec.fieldName] = value;
|
|
35581
|
+
}
|
|
35521
35582
|
}
|
|
35522
35583
|
function resolveGlobalSecurity(security) {
|
|
35523
35584
|
return resolveSecurity([
|
|
@@ -36301,6 +36362,7 @@ var init_activitynotificationjobresponsedto = __esm(() => {
|
|
|
36301
36362
|
digest: DigestMetadataDto$inboundSchema.optional(),
|
|
36302
36363
|
executionDetails: arrayType(ActivityNotificationExecutionDetailResponseDto$inboundSchema),
|
|
36303
36364
|
step: ActivityNotificationStepResponseDto$inboundSchema,
|
|
36365
|
+
overrides: recordType(anyType()).optional(),
|
|
36304
36366
|
payload: lazyType(() => Payload$inboundSchema).optional(),
|
|
36305
36367
|
providerId: ProvidersIdEnum$inboundSchema,
|
|
36306
36368
|
status: stringType(),
|
|
@@ -36316,6 +36378,7 @@ var init_activitynotificationjobresponsedto = __esm(() => {
|
|
|
36316
36378
|
digest: DigestMetadataDto$outboundSchema.optional(),
|
|
36317
36379
|
executionDetails: arrayType(ActivityNotificationExecutionDetailResponseDto$outboundSchema),
|
|
36318
36380
|
step: ActivityNotificationStepResponseDto$outboundSchema,
|
|
36381
|
+
overrides: recordType(anyType()).optional(),
|
|
36319
36382
|
payload: lazyType(() => Payload$outboundSchema).optional(),
|
|
36320
36383
|
providerId: ProvidersIdEnum$outboundSchema,
|
|
36321
36384
|
status: stringType(),
|
|
@@ -36890,11 +36953,11 @@ var init_channelcredentialsdto = __esm(() => {
|
|
|
36890
36953
|
});
|
|
36891
36954
|
|
|
36892
36955
|
// src/models/components/subscriberchanneldto.ts
|
|
36893
|
-
var
|
|
36956
|
+
var SubscriberChannelDtoProviderId, SubscriberChannelDtoProviderId$inboundSchema, SubscriberChannelDtoProviderId$outboundSchema, SubscriberChannelDtoProviderId$, SubscriberChannelDto$inboundSchema, SubscriberChannelDto$outboundSchema, SubscriberChannelDto$;
|
|
36894
36957
|
var init_subscriberchanneldto = __esm(() => {
|
|
36895
36958
|
init_lib();
|
|
36896
36959
|
init_channelcredentialsdto();
|
|
36897
|
-
|
|
36960
|
+
SubscriberChannelDtoProviderId = {
|
|
36898
36961
|
Slack: "slack",
|
|
36899
36962
|
Discord: "discord",
|
|
36900
36963
|
Msteams: "msteams",
|
|
@@ -36913,19 +36976,19 @@ var init_subscriberchanneldto = __esm(() => {
|
|
|
36913
36976
|
PushWebhook: "push-webhook",
|
|
36914
36977
|
PusherBeams: "pusher-beams"
|
|
36915
36978
|
};
|
|
36916
|
-
|
|
36917
|
-
|
|
36918
|
-
((
|
|
36919
|
-
|
|
36920
|
-
|
|
36921
|
-
})(
|
|
36979
|
+
SubscriberChannelDtoProviderId$inboundSchema = nativeEnumType(SubscriberChannelDtoProviderId);
|
|
36980
|
+
SubscriberChannelDtoProviderId$outboundSchema = SubscriberChannelDtoProviderId$inboundSchema;
|
|
36981
|
+
((SubscriberChannelDtoProviderId$) => {
|
|
36982
|
+
SubscriberChannelDtoProviderId$.inboundSchema = SubscriberChannelDtoProviderId$inboundSchema;
|
|
36983
|
+
SubscriberChannelDtoProviderId$.outboundSchema = SubscriberChannelDtoProviderId$outboundSchema;
|
|
36984
|
+
})(SubscriberChannelDtoProviderId$ ||= {});
|
|
36922
36985
|
SubscriberChannelDto$inboundSchema = objectType({
|
|
36923
|
-
providerId:
|
|
36986
|
+
providerId: SubscriberChannelDtoProviderId$inboundSchema,
|
|
36924
36987
|
integrationIdentifier: stringType().optional(),
|
|
36925
36988
|
credentials: ChannelCredentialsDto$inboundSchema
|
|
36926
36989
|
});
|
|
36927
36990
|
SubscriberChannelDto$outboundSchema = objectType({
|
|
36928
|
-
providerId:
|
|
36991
|
+
providerId: SubscriberChannelDtoProviderId$outboundSchema,
|
|
36929
36992
|
integrationIdentifier: stringType().optional(),
|
|
36930
36993
|
credentials: ChannelCredentialsDto$outboundSchema
|
|
36931
36994
|
});
|
|
@@ -36936,16 +36999,16 @@ var init_subscriberchanneldto = __esm(() => {
|
|
|
36936
36999
|
});
|
|
36937
37000
|
|
|
36938
37001
|
// src/models/components/subscriberpayloaddto.ts
|
|
36939
|
-
var
|
|
37002
|
+
var SubscriberPayloadDtoData$inboundSchema, SubscriberPayloadDtoData$outboundSchema, SubscriberPayloadDtoData$, SubscriberPayloadDto$inboundSchema, SubscriberPayloadDto$outboundSchema, SubscriberPayloadDto$;
|
|
36940
37003
|
var init_subscriberpayloaddto = __esm(() => {
|
|
36941
37004
|
init_lib();
|
|
36942
37005
|
init_subscriberchanneldto();
|
|
36943
|
-
|
|
36944
|
-
|
|
36945
|
-
((
|
|
36946
|
-
|
|
36947
|
-
|
|
36948
|
-
})(
|
|
37006
|
+
SubscriberPayloadDtoData$inboundSchema = unionType([stringType(), arrayType(stringType()), booleanType(), numberType()]);
|
|
37007
|
+
SubscriberPayloadDtoData$outboundSchema = unionType([stringType(), arrayType(stringType()), booleanType(), numberType()]);
|
|
37008
|
+
((SubscriberPayloadDtoData$) => {
|
|
37009
|
+
SubscriberPayloadDtoData$.inboundSchema = SubscriberPayloadDtoData$inboundSchema;
|
|
37010
|
+
SubscriberPayloadDtoData$.outboundSchema = SubscriberPayloadDtoData$outboundSchema;
|
|
37011
|
+
})(SubscriberPayloadDtoData$ ||= {});
|
|
36949
37012
|
SubscriberPayloadDto$inboundSchema = objectType({
|
|
36950
37013
|
subscriberId: stringType(),
|
|
36951
37014
|
email: stringType().optional(),
|
|
@@ -37224,12 +37287,12 @@ var init_channelctatypeenum = __esm(() => {
|
|
|
37224
37287
|
});
|
|
37225
37288
|
|
|
37226
37289
|
// src/models/components/channelsettingsdto.ts
|
|
37227
|
-
var
|
|
37290
|
+
var ProviderId, ProviderId$inboundSchema, ProviderId$outboundSchema, ProviderId$, ChannelSettingsDto$inboundSchema, ChannelSettingsDto$outboundSchema, ChannelSettingsDto$;
|
|
37228
37291
|
var init_channelsettingsdto = __esm(() => {
|
|
37229
37292
|
init_lib();
|
|
37230
37293
|
init_primitives();
|
|
37231
37294
|
init_channelcredentials();
|
|
37232
|
-
|
|
37295
|
+
ProviderId = {
|
|
37233
37296
|
Slack: "slack",
|
|
37234
37297
|
Discord: "discord",
|
|
37235
37298
|
Msteams: "msteams",
|
|
@@ -37248,14 +37311,14 @@ var init_channelsettingsdto = __esm(() => {
|
|
|
37248
37311
|
PushWebhook: "push-webhook",
|
|
37249
37312
|
PusherBeams: "pusher-beams"
|
|
37250
37313
|
};
|
|
37251
|
-
|
|
37252
|
-
|
|
37253
|
-
((
|
|
37254
|
-
|
|
37255
|
-
|
|
37256
|
-
})(
|
|
37314
|
+
ProviderId$inboundSchema = nativeEnumType(ProviderId);
|
|
37315
|
+
ProviderId$outboundSchema = ProviderId$inboundSchema;
|
|
37316
|
+
((ProviderId$) => {
|
|
37317
|
+
ProviderId$.inboundSchema = ProviderId$inboundSchema;
|
|
37318
|
+
ProviderId$.outboundSchema = ProviderId$outboundSchema;
|
|
37319
|
+
})(ProviderId$ ||= {});
|
|
37257
37320
|
ChannelSettingsDto$inboundSchema = objectType({
|
|
37258
|
-
providerId:
|
|
37321
|
+
providerId: ProviderId$inboundSchema,
|
|
37259
37322
|
integrationIdentifier: stringType().optional(),
|
|
37260
37323
|
credentials: ChannelCredentials$inboundSchema,
|
|
37261
37324
|
_integrationId: stringType()
|
|
@@ -37265,7 +37328,7 @@ var init_channelsettingsdto = __esm(() => {
|
|
|
37265
37328
|
});
|
|
37266
37329
|
});
|
|
37267
37330
|
ChannelSettingsDto$outboundSchema = objectType({
|
|
37268
|
-
providerId:
|
|
37331
|
+
providerId: ProviderId$outboundSchema,
|
|
37269
37332
|
integrationIdentifier: stringType().optional(),
|
|
37270
37333
|
credentials: ChannelCredentials$outboundSchema,
|
|
37271
37334
|
integrationId: stringType()
|
|
@@ -37504,22 +37567,6 @@ var init_createtopicresponsedto = __esm(() => {
|
|
|
37504
37567
|
})(CreateTopicResponseDto$ ||= {});
|
|
37505
37568
|
});
|
|
37506
37569
|
|
|
37507
|
-
// src/models/components/databooleandto.ts
|
|
37508
|
-
var DataBooleanDto$inboundSchema, DataBooleanDto$outboundSchema, DataBooleanDto$;
|
|
37509
|
-
var init_databooleandto = __esm(() => {
|
|
37510
|
-
init_lib();
|
|
37511
|
-
DataBooleanDto$inboundSchema = objectType({
|
|
37512
|
-
data: booleanType()
|
|
37513
|
-
});
|
|
37514
|
-
DataBooleanDto$outboundSchema = objectType({
|
|
37515
|
-
data: booleanType()
|
|
37516
|
-
});
|
|
37517
|
-
((DataBooleanDto$) => {
|
|
37518
|
-
DataBooleanDto$.inboundSchema = DataBooleanDto$inboundSchema;
|
|
37519
|
-
DataBooleanDto$.outboundSchema = DataBooleanDto$outboundSchema;
|
|
37520
|
-
})(DataBooleanDto$ ||= {});
|
|
37521
|
-
});
|
|
37522
|
-
|
|
37523
37570
|
// src/models/components/delayregularmetadata.ts
|
|
37524
37571
|
var DelayRegularMetadataUnit, DelayRegularMetadataType, DelayRegularMetadataUnit$inboundSchema, DelayRegularMetadataUnit$outboundSchema, DelayRegularMetadataUnit$, DelayRegularMetadataType$inboundSchema, DelayRegularMetadataType$outboundSchema, DelayRegularMetadataType$, DelayRegularMetadata$inboundSchema, DelayRegularMetadata$outboundSchema, DelayRegularMetadata$;
|
|
37525
37572
|
var init_delayregularmetadata = __esm(() => {
|
|
@@ -38295,10 +38342,10 @@ var init_globalpreferencedto = __esm(() => {
|
|
|
38295
38342
|
});
|
|
38296
38343
|
|
|
38297
38344
|
// src/models/components/overrides.ts
|
|
38298
|
-
var
|
|
38345
|
+
var Channel, Source, Channel$inboundSchema, Channel$outboundSchema, Channel$, Source$inboundSchema, Source$outboundSchema, Source$, Overrides$inboundSchema, Overrides$outboundSchema, Overrides$;
|
|
38299
38346
|
var init_overrides = __esm(() => {
|
|
38300
38347
|
init_lib();
|
|
38301
|
-
|
|
38348
|
+
Channel = {
|
|
38302
38349
|
InApp: "in_app",
|
|
38303
38350
|
Email: "email",
|
|
38304
38351
|
Sms: "sms",
|
|
@@ -38310,12 +38357,12 @@ var init_overrides = __esm(() => {
|
|
|
38310
38357
|
Template: "template",
|
|
38311
38358
|
WorkflowOverride: "workflowOverride"
|
|
38312
38359
|
};
|
|
38313
|
-
|
|
38314
|
-
|
|
38315
|
-
((
|
|
38316
|
-
|
|
38317
|
-
|
|
38318
|
-
})(
|
|
38360
|
+
Channel$inboundSchema = nativeEnumType(Channel);
|
|
38361
|
+
Channel$outboundSchema = Channel$inboundSchema;
|
|
38362
|
+
((Channel$) => {
|
|
38363
|
+
Channel$.inboundSchema = Channel$inboundSchema;
|
|
38364
|
+
Channel$.outboundSchema = Channel$outboundSchema;
|
|
38365
|
+
})(Channel$ ||= {});
|
|
38319
38366
|
Source$inboundSchema = nativeEnumType(Source);
|
|
38320
38367
|
Source$outboundSchema = Source$inboundSchema;
|
|
38321
38368
|
((Source$) => {
|
|
@@ -38323,11 +38370,11 @@ var init_overrides = __esm(() => {
|
|
|
38323
38370
|
Source$.outboundSchema = Source$outboundSchema;
|
|
38324
38371
|
})(Source$ ||= {});
|
|
38325
38372
|
Overrides$inboundSchema = objectType({
|
|
38326
|
-
channel:
|
|
38373
|
+
channel: Channel$inboundSchema,
|
|
38327
38374
|
source: Source$inboundSchema
|
|
38328
38375
|
});
|
|
38329
38376
|
Overrides$outboundSchema = objectType({
|
|
38330
|
-
channel:
|
|
38377
|
+
channel: Channel$outboundSchema,
|
|
38331
38378
|
source: Source$outboundSchema
|
|
38332
38379
|
});
|
|
38333
38380
|
((Overrides$) => {
|
|
@@ -38441,25 +38488,25 @@ var init_gettopicresponsedto = __esm(() => {
|
|
|
38441
38488
|
});
|
|
38442
38489
|
|
|
38443
38490
|
// src/models/components/integrationresponsedto.ts
|
|
38444
|
-
var
|
|
38491
|
+
var IntegrationResponseDtoChannel, IntegrationResponseDtoChannel$inboundSchema, IntegrationResponseDtoChannel$outboundSchema, IntegrationResponseDtoChannel$, IntegrationResponseDto$inboundSchema, IntegrationResponseDto$outboundSchema, IntegrationResponseDto$;
|
|
38445
38492
|
var init_integrationresponsedto = __esm(() => {
|
|
38446
38493
|
init_lib();
|
|
38447
38494
|
init_primitives();
|
|
38448
38495
|
init_credentialsdto();
|
|
38449
38496
|
init_stepfilterdto();
|
|
38450
|
-
|
|
38497
|
+
IntegrationResponseDtoChannel = {
|
|
38451
38498
|
InApp: "in_app",
|
|
38452
38499
|
Email: "email",
|
|
38453
38500
|
Sms: "sms",
|
|
38454
38501
|
Chat: "chat",
|
|
38455
38502
|
Push: "push"
|
|
38456
38503
|
};
|
|
38457
|
-
|
|
38458
|
-
|
|
38459
|
-
((
|
|
38460
|
-
|
|
38461
|
-
|
|
38462
|
-
})(
|
|
38504
|
+
IntegrationResponseDtoChannel$inboundSchema = nativeEnumType(IntegrationResponseDtoChannel);
|
|
38505
|
+
IntegrationResponseDtoChannel$outboundSchema = IntegrationResponseDtoChannel$inboundSchema;
|
|
38506
|
+
((IntegrationResponseDtoChannel$) => {
|
|
38507
|
+
IntegrationResponseDtoChannel$.inboundSchema = IntegrationResponseDtoChannel$inboundSchema;
|
|
38508
|
+
IntegrationResponseDtoChannel$.outboundSchema = IntegrationResponseDtoChannel$outboundSchema;
|
|
38509
|
+
})(IntegrationResponseDtoChannel$ ||= {});
|
|
38463
38510
|
IntegrationResponseDto$inboundSchema = objectType({
|
|
38464
38511
|
_id: stringType().optional(),
|
|
38465
38512
|
_environmentId: stringType(),
|
|
@@ -38467,7 +38514,7 @@ var init_integrationresponsedto = __esm(() => {
|
|
|
38467
38514
|
name: stringType(),
|
|
38468
38515
|
identifier: stringType(),
|
|
38469
38516
|
providerId: stringType(),
|
|
38470
|
-
channel:
|
|
38517
|
+
channel: IntegrationResponseDtoChannel$inboundSchema,
|
|
38471
38518
|
credentials: CredentialsDto$inboundSchema,
|
|
38472
38519
|
active: booleanType(),
|
|
38473
38520
|
deleted: booleanType(),
|
|
@@ -38489,7 +38536,7 @@ var init_integrationresponsedto = __esm(() => {
|
|
|
38489
38536
|
name: stringType(),
|
|
38490
38537
|
identifier: stringType(),
|
|
38491
38538
|
providerId: stringType(),
|
|
38492
|
-
channel:
|
|
38539
|
+
channel: IntegrationResponseDtoChannel$outboundSchema,
|
|
38493
38540
|
credentials: CredentialsDto$outboundSchema,
|
|
38494
38541
|
active: booleanType(),
|
|
38495
38542
|
deleted: booleanType(),
|
|
@@ -38602,10 +38649,10 @@ var init_listsubscribersresponsedto = __esm(() => {
|
|
|
38602
38649
|
});
|
|
38603
38650
|
|
|
38604
38651
|
// src/models/components/markallmessageasrequestdto.ts
|
|
38605
|
-
var
|
|
38652
|
+
var MarkAs, FeedIdentifier$inboundSchema, FeedIdentifier$outboundSchema, FeedIdentifier$, MarkAs$inboundSchema, MarkAs$outboundSchema, MarkAs$, MarkAllMessageAsRequestDto$inboundSchema, MarkAllMessageAsRequestDto$outboundSchema, MarkAllMessageAsRequestDto$;
|
|
38606
38653
|
var init_markallmessageasrequestdto = __esm(() => {
|
|
38607
38654
|
init_lib();
|
|
38608
|
-
|
|
38655
|
+
MarkAs = {
|
|
38609
38656
|
Read: "read",
|
|
38610
38657
|
Seen: "seen",
|
|
38611
38658
|
Unread: "unread",
|
|
@@ -38617,19 +38664,19 @@ var init_markallmessageasrequestdto = __esm(() => {
|
|
|
38617
38664
|
FeedIdentifier$.inboundSchema = FeedIdentifier$inboundSchema;
|
|
38618
38665
|
FeedIdentifier$.outboundSchema = FeedIdentifier$outboundSchema;
|
|
38619
38666
|
})(FeedIdentifier$ ||= {});
|
|
38620
|
-
|
|
38621
|
-
|
|
38622
|
-
((
|
|
38623
|
-
|
|
38624
|
-
|
|
38625
|
-
})(
|
|
38667
|
+
MarkAs$inboundSchema = nativeEnumType(MarkAs);
|
|
38668
|
+
MarkAs$outboundSchema = MarkAs$inboundSchema;
|
|
38669
|
+
((MarkAs$) => {
|
|
38670
|
+
MarkAs$.inboundSchema = MarkAs$inboundSchema;
|
|
38671
|
+
MarkAs$.outboundSchema = MarkAs$outboundSchema;
|
|
38672
|
+
})(MarkAs$ ||= {});
|
|
38626
38673
|
MarkAllMessageAsRequestDto$inboundSchema = objectType({
|
|
38627
38674
|
feedIdentifier: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
38628
|
-
markAs:
|
|
38675
|
+
markAs: MarkAs$inboundSchema
|
|
38629
38676
|
});
|
|
38630
38677
|
MarkAllMessageAsRequestDto$outboundSchema = objectType({
|
|
38631
38678
|
feedIdentifier: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
38632
|
-
markAs:
|
|
38679
|
+
markAs: MarkAs$outboundSchema
|
|
38633
38680
|
});
|
|
38634
38681
|
((MarkAllMessageAsRequestDto$) => {
|
|
38635
38682
|
MarkAllMessageAsRequestDto$.inboundSchema = MarkAllMessageAsRequestDto$inboundSchema;
|
|
@@ -38672,10 +38719,10 @@ var init_markmessageactionasseendto = __esm(() => {
|
|
|
38672
38719
|
});
|
|
38673
38720
|
|
|
38674
38721
|
// src/models/components/messagemarkasrequestdto.ts
|
|
38675
|
-
var
|
|
38722
|
+
var MessageMarkAsRequestDtoMarkAs, MessageId$inboundSchema, MessageId$outboundSchema, MessageId$, MessageMarkAsRequestDtoMarkAs$inboundSchema, MessageMarkAsRequestDtoMarkAs$outboundSchema, MessageMarkAsRequestDtoMarkAs$, MessageMarkAsRequestDto$inboundSchema, MessageMarkAsRequestDto$outboundSchema, MessageMarkAsRequestDto$;
|
|
38676
38723
|
var init_messagemarkasrequestdto = __esm(() => {
|
|
38677
38724
|
init_lib();
|
|
38678
|
-
|
|
38725
|
+
MessageMarkAsRequestDtoMarkAs = {
|
|
38679
38726
|
Read: "read",
|
|
38680
38727
|
Seen: "seen",
|
|
38681
38728
|
Unread: "unread",
|
|
@@ -38687,19 +38734,19 @@ var init_messagemarkasrequestdto = __esm(() => {
|
|
|
38687
38734
|
MessageId$.inboundSchema = MessageId$inboundSchema;
|
|
38688
38735
|
MessageId$.outboundSchema = MessageId$outboundSchema;
|
|
38689
38736
|
})(MessageId$ ||= {});
|
|
38690
|
-
|
|
38691
|
-
|
|
38692
|
-
((
|
|
38693
|
-
|
|
38694
|
-
|
|
38695
|
-
})(
|
|
38737
|
+
MessageMarkAsRequestDtoMarkAs$inboundSchema = nativeEnumType(MessageMarkAsRequestDtoMarkAs);
|
|
38738
|
+
MessageMarkAsRequestDtoMarkAs$outboundSchema = MessageMarkAsRequestDtoMarkAs$inboundSchema;
|
|
38739
|
+
((MessageMarkAsRequestDtoMarkAs$) => {
|
|
38740
|
+
MessageMarkAsRequestDtoMarkAs$.inboundSchema = MessageMarkAsRequestDtoMarkAs$inboundSchema;
|
|
38741
|
+
MessageMarkAsRequestDtoMarkAs$.outboundSchema = MessageMarkAsRequestDtoMarkAs$outboundSchema;
|
|
38742
|
+
})(MessageMarkAsRequestDtoMarkAs$ ||= {});
|
|
38696
38743
|
MessageMarkAsRequestDto$inboundSchema = objectType({
|
|
38697
38744
|
messageId: unionType([stringType(), arrayType(stringType())]),
|
|
38698
|
-
markAs:
|
|
38745
|
+
markAs: MessageMarkAsRequestDtoMarkAs$inboundSchema
|
|
38699
38746
|
});
|
|
38700
38747
|
MessageMarkAsRequestDto$outboundSchema = objectType({
|
|
38701
38748
|
messageId: unionType([stringType(), arrayType(stringType())]),
|
|
38702
|
-
markAs:
|
|
38749
|
+
markAs: MessageMarkAsRequestDtoMarkAs$outboundSchema
|
|
38703
38750
|
});
|
|
38704
38751
|
((MessageMarkAsRequestDto$) => {
|
|
38705
38752
|
MessageMarkAsRequestDto$.inboundSchema = MessageMarkAsRequestDto$inboundSchema;
|
|
@@ -39261,15 +39308,15 @@ var init_patchsubscriberpreferencesdto = __esm(() => {
|
|
|
39261
39308
|
});
|
|
39262
39309
|
|
|
39263
39310
|
// src/models/components/patchsubscriberrequestdto.ts
|
|
39264
|
-
var
|
|
39311
|
+
var Data$inboundSchema, Data$outboundSchema, Data$, PatchSubscriberRequestDto$inboundSchema, PatchSubscriberRequestDto$outboundSchema, PatchSubscriberRequestDto$;
|
|
39265
39312
|
var init_patchsubscriberrequestdto = __esm(() => {
|
|
39266
39313
|
init_lib();
|
|
39267
|
-
|
|
39268
|
-
|
|
39269
|
-
((
|
|
39270
|
-
|
|
39271
|
-
|
|
39272
|
-
})(
|
|
39314
|
+
Data$inboundSchema = objectType({});
|
|
39315
|
+
Data$outboundSchema = objectType({});
|
|
39316
|
+
((Data$) => {
|
|
39317
|
+
Data$.inboundSchema = Data$inboundSchema;
|
|
39318
|
+
Data$.outboundSchema = Data$outboundSchema;
|
|
39319
|
+
})(Data$ ||= {});
|
|
39273
39320
|
PatchSubscriberRequestDto$inboundSchema = objectType({
|
|
39274
39321
|
firstName: nullableType(stringType()).optional(),
|
|
39275
39322
|
lastName: nullableType(stringType()).optional(),
|
|
@@ -39278,7 +39325,7 @@ var init_patchsubscriberrequestdto = __esm(() => {
|
|
|
39278
39325
|
avatar: nullableType(stringType()).optional(),
|
|
39279
39326
|
timezone: nullableType(stringType()).optional(),
|
|
39280
39327
|
locale: nullableType(stringType()).optional(),
|
|
39281
|
-
data: nullableType(lazyType(() =>
|
|
39328
|
+
data: nullableType(lazyType(() => Data$inboundSchema)).optional()
|
|
39282
39329
|
});
|
|
39283
39330
|
PatchSubscriberRequestDto$outboundSchema = objectType({
|
|
39284
39331
|
firstName: nullableType(stringType()).optional(),
|
|
@@ -39288,7 +39335,7 @@ var init_patchsubscriberrequestdto = __esm(() => {
|
|
|
39288
39335
|
avatar: nullableType(stringType()).optional(),
|
|
39289
39336
|
timezone: nullableType(stringType()).optional(),
|
|
39290
39337
|
locale: nullableType(stringType()).optional(),
|
|
39291
|
-
data: nullableType(lazyType(() =>
|
|
39338
|
+
data: nullableType(lazyType(() => Data$outboundSchema)).optional()
|
|
39292
39339
|
});
|
|
39293
39340
|
((PatchSubscriberRequestDto$) => {
|
|
39294
39341
|
PatchSubscriberRequestDto$.inboundSchema = PatchSubscriberRequestDto$inboundSchema;
|
|
@@ -39675,7 +39722,6 @@ var init_components = __esm(() => {
|
|
|
39675
39722
|
init_createtopicrequestdto();
|
|
39676
39723
|
init_createtopicresponsedto();
|
|
39677
39724
|
init_credentialsdto();
|
|
39678
|
-
init_databooleandto();
|
|
39679
39725
|
init_delayregularmetadata();
|
|
39680
39726
|
init_delayscheduledmetadata();
|
|
39681
39727
|
init_deletemessageresponsedto();
|
|
@@ -39819,7 +39865,6 @@ var EventsControllerCancelRequest$inboundSchema, EventsControllerCancelRequest$o
|
|
|
39819
39865
|
var init_eventscontrollercancel = __esm(() => {
|
|
39820
39866
|
init_lib();
|
|
39821
39867
|
init_primitives();
|
|
39822
|
-
init_components();
|
|
39823
39868
|
EventsControllerCancelRequest$inboundSchema = objectType({
|
|
39824
39869
|
transactionId: stringType(),
|
|
39825
39870
|
"idempotency-key": stringType().optional()
|
|
@@ -39842,7 +39887,7 @@ var init_eventscontrollercancel = __esm(() => {
|
|
|
39842
39887
|
})(EventsControllerCancelRequest$ ||= {});
|
|
39843
39888
|
EventsControllerCancelResponse$inboundSchema = objectType({
|
|
39844
39889
|
Headers: recordType(arrayType(stringType())),
|
|
39845
|
-
Result:
|
|
39890
|
+
Result: booleanType()
|
|
39846
39891
|
}).transform((v2) => {
|
|
39847
39892
|
return remap(v2, {
|
|
39848
39893
|
Headers: "headers",
|
|
@@ -39851,7 +39896,7 @@ var init_eventscontrollercancel = __esm(() => {
|
|
|
39851
39896
|
});
|
|
39852
39897
|
EventsControllerCancelResponse$outboundSchema = objectType({
|
|
39853
39898
|
headers: recordType(arrayType(stringType())),
|
|
39854
|
-
result:
|
|
39899
|
+
result: booleanType()
|
|
39855
39900
|
}).transform((v2) => {
|
|
39856
39901
|
return remap(v2, {
|
|
39857
39902
|
headers: "Headers",
|
|
@@ -42562,7 +42607,7 @@ var init_integrationsCreate2 = __esm(() => {
|
|
|
42562
42607
|
idempotencyKey: stringType().optional()
|
|
42563
42608
|
};
|
|
42564
42609
|
tool$integrationsCreate = {
|
|
42565
|
-
name: "
|
|
42610
|
+
name: "integrations-create",
|
|
42566
42611
|
description: `Create integration
|
|
42567
42612
|
|
|
42568
42613
|
Create an integration for the current environment the user is based on the API key provided`,
|
|
@@ -42699,7 +42744,7 @@ var init_integrationsDelete2 = __esm(() => {
|
|
|
42699
42744
|
idempotencyKey: stringType().optional()
|
|
42700
42745
|
};
|
|
42701
42746
|
tool$integrationsDelete = {
|
|
42702
|
-
name: "
|
|
42747
|
+
name: "integrations-delete",
|
|
42703
42748
|
description: `Delete integration`,
|
|
42704
42749
|
args: args3,
|
|
42705
42750
|
tool: async (client, args4, ctx) => {
|
|
@@ -42826,7 +42871,7 @@ var init_integrationsList2 = __esm(() => {
|
|
|
42826
42871
|
idempotencyKey: stringType().optional()
|
|
42827
42872
|
};
|
|
42828
42873
|
tool$integrationsList = {
|
|
42829
|
-
name: "
|
|
42874
|
+
name: "integrations-list",
|
|
42830
42875
|
description: `Get integrations
|
|
42831
42876
|
|
|
42832
42877
|
Return all the integrations the user has created for that organization. Review v.0.17.0 changelog for a breaking change`,
|
|
@@ -42955,7 +43000,7 @@ var init_integrationsListActive2 = __esm(() => {
|
|
|
42955
43000
|
idempotencyKey: stringType().optional()
|
|
42956
43001
|
};
|
|
42957
43002
|
tool$integrationsListActive = {
|
|
42958
|
-
name: "
|
|
43003
|
+
name: "integrations-list-active",
|
|
42959
43004
|
description: `Get active integrations
|
|
42960
43005
|
|
|
42961
43006
|
Return all the active integrations the user has created for that organization. Review v.0.17.0 changelog for a breaking change`,
|
|
@@ -43092,7 +43137,7 @@ var init_integrationsSetAsPrimary2 = __esm(() => {
|
|
|
43092
43137
|
idempotencyKey: stringType().optional()
|
|
43093
43138
|
};
|
|
43094
43139
|
tool$integrationsSetAsPrimary = {
|
|
43095
|
-
name: "
|
|
43140
|
+
name: "integrations-set-as-primary",
|
|
43096
43141
|
description: `Set integration as primary`,
|
|
43097
43142
|
args: args6,
|
|
43098
43143
|
tool: async (client, args7, ctx) => {
|
|
@@ -43233,7 +43278,7 @@ var init_integrationsUpdate2 = __esm(() => {
|
|
|
43233
43278
|
idempotencyKey: stringType().optional()
|
|
43234
43279
|
};
|
|
43235
43280
|
tool$integrationsUpdate = {
|
|
43236
|
-
name: "
|
|
43281
|
+
name: "integrations-update",
|
|
43237
43282
|
description: `Update integration`,
|
|
43238
43283
|
args: args7,
|
|
43239
43284
|
tool: async (client, args8, ctx) => {
|
|
@@ -43365,7 +43410,7 @@ var init_integrationsWebhooksRetrieve2 = __esm(() => {
|
|
|
43365
43410
|
idempotencyKey: stringType().optional()
|
|
43366
43411
|
};
|
|
43367
43412
|
tool$integrationsWebhooksRetrieve = {
|
|
43368
|
-
name: "integrations-
|
|
43413
|
+
name: "integrations-webhooks-retrieve",
|
|
43369
43414
|
description: `Get webhook support status for provider
|
|
43370
43415
|
|
|
43371
43416
|
Return the status of the webhook for this provider, if it is supported or if it is not based on a boolean value`,
|
|
@@ -43502,7 +43547,7 @@ var init_messagesDelete2 = __esm(() => {
|
|
|
43502
43547
|
idempotencyKey: stringType().optional()
|
|
43503
43548
|
};
|
|
43504
43549
|
tool$messagesDelete = {
|
|
43505
|
-
name: "
|
|
43550
|
+
name: "messages-delete",
|
|
43506
43551
|
description: `Delete message
|
|
43507
43552
|
|
|
43508
43553
|
Deletes a message entity from the Novu platform`,
|
|
@@ -43646,7 +43691,7 @@ var init_messagesDeleteByTransactionId2 = __esm(() => {
|
|
|
43646
43691
|
idempotencyKey: stringType().optional()
|
|
43647
43692
|
};
|
|
43648
43693
|
tool$messagesDeleteByTransactionId = {
|
|
43649
|
-
name: "
|
|
43694
|
+
name: "messages-delete-by-transaction-id",
|
|
43650
43695
|
description: `Delete messages by transactionId
|
|
43651
43696
|
|
|
43652
43697
|
Deletes messages entity from the Novu platform using TransactionId of message`,
|
|
@@ -43779,7 +43824,7 @@ var init_messagesRetrieve2 = __esm(() => {
|
|
|
43779
43824
|
request: MessagesControllerGetMessagesRequest$inboundSchema
|
|
43780
43825
|
};
|
|
43781
43826
|
tool$messagesRetrieve = {
|
|
43782
|
-
name: "
|
|
43827
|
+
name: "messages-retrieve",
|
|
43783
43828
|
description: `Get messages
|
|
43784
43829
|
|
|
43785
43830
|
Returns a list of messages, could paginate using the \`page\` query parameter`,
|
|
@@ -43918,7 +43963,7 @@ var init_notificationsList2 = __esm(() => {
|
|
|
43918
43963
|
request: NotificationsControllerListNotificationsRequest$inboundSchema
|
|
43919
43964
|
};
|
|
43920
43965
|
tool$notificationsList = {
|
|
43921
|
-
name: "
|
|
43966
|
+
name: "notifications-list",
|
|
43922
43967
|
description: `Get notifications`,
|
|
43923
43968
|
args: args12,
|
|
43924
43969
|
tool: async (client, args13, ctx) => {
|
|
@@ -44053,7 +44098,7 @@ var init_notificationsRetrieve2 = __esm(() => {
|
|
|
44053
44098
|
idempotencyKey: stringType().optional()
|
|
44054
44099
|
};
|
|
44055
44100
|
tool$notificationsRetrieve = {
|
|
44056
|
-
name: "
|
|
44101
|
+
name: "notifications-retrieve",
|
|
44057
44102
|
description: `Get notification`,
|
|
44058
44103
|
args: args13,
|
|
44059
44104
|
tool: async (client, args14, ctx) => {
|
|
@@ -44186,7 +44231,7 @@ var init_notificationsStatsGraph2 = __esm(() => {
|
|
|
44186
44231
|
idempotencyKey: stringType().optional()
|
|
44187
44232
|
};
|
|
44188
44233
|
tool$notificationsStatsGraph = {
|
|
44189
|
-
name: "notifications-
|
|
44234
|
+
name: "notifications-stats-graph",
|
|
44190
44235
|
description: `Get notification graph statistics`,
|
|
44191
44236
|
args: args14,
|
|
44192
44237
|
tool: async (client, args15, ctx) => {
|
|
@@ -44313,7 +44358,7 @@ var init_notificationsStatsRetrieve2 = __esm(() => {
|
|
|
44313
44358
|
idempotencyKey: stringType().optional()
|
|
44314
44359
|
};
|
|
44315
44360
|
tool$notificationsStatsRetrieve = {
|
|
44316
|
-
name: "notifications-
|
|
44361
|
+
name: "notifications-stats-retrieve",
|
|
44317
44362
|
description: `Get notification statistics`,
|
|
44318
44363
|
args: args15,
|
|
44319
44364
|
tool: async (client, args16, ctx) => {
|
|
@@ -44453,7 +44498,7 @@ var init_subscribersAuthenticationChatAccessOauth2 = __esm(() => {
|
|
|
44453
44498
|
request: SubscribersV1ControllerChatAccessOauthRequest$inboundSchema
|
|
44454
44499
|
};
|
|
44455
44500
|
tool$subscribersAuthenticationChatAccessOauth = {
|
|
44456
|
-
name: "subscribers-
|
|
44501
|
+
name: "subscribers-authentication-chat-access-oauth",
|
|
44457
44502
|
description: `Handle chat oauth`,
|
|
44458
44503
|
args: args16,
|
|
44459
44504
|
tool: async (client, args17, ctx) => {
|
|
@@ -44593,7 +44638,7 @@ var init_subscribersAuthenticationChatAccessOauthCallBack2 = __esm(() => {
|
|
|
44593
44638
|
request: SubscribersV1ControllerChatOauthCallbackRequest$inboundSchema
|
|
44594
44639
|
};
|
|
44595
44640
|
tool$subscribersAuthenticationChatAccessOauthCallBack = {
|
|
44596
|
-
name: "subscribers-
|
|
44641
|
+
name: "subscribers-authentication-chat-access-oauth-call-back",
|
|
44597
44642
|
description: `Handle providers oauth redirect`,
|
|
44598
44643
|
args: args17,
|
|
44599
44644
|
tool: async (client, args18, ctx) => {
|
|
@@ -44726,7 +44771,7 @@ var init_subscribersCreate2 = __esm(() => {
|
|
|
44726
44771
|
idempotencyKey: stringType().optional()
|
|
44727
44772
|
};
|
|
44728
44773
|
tool$subscribersCreate = {
|
|
44729
|
-
name: "
|
|
44774
|
+
name: "subscribers-create",
|
|
44730
44775
|
description: `Create subscriber
|
|
44731
44776
|
|
|
44732
44777
|
Create subscriber with the given data`,
|
|
@@ -44861,7 +44906,7 @@ var init_subscribersCreateBulk2 = __esm(() => {
|
|
|
44861
44906
|
idempotencyKey: stringType().optional()
|
|
44862
44907
|
};
|
|
44863
44908
|
tool$subscribersCreateBulk = {
|
|
44864
|
-
name: "
|
|
44909
|
+
name: "subscribers-create-bulk",
|
|
44865
44910
|
description: `Bulk create subscribers
|
|
44866
44911
|
|
|
44867
44912
|
|
|
@@ -45007,7 +45052,7 @@ var init_subscribersCredentialsAppend2 = __esm(() => {
|
|
|
45007
45052
|
idempotencyKey: stringType().optional()
|
|
45008
45053
|
};
|
|
45009
45054
|
tool$subscribersCredentialsAppend = {
|
|
45010
|
-
name: "subscribers-
|
|
45055
|
+
name: "subscribers-credentials-append",
|
|
45011
45056
|
description: `Modify subscriber credentials
|
|
45012
45057
|
|
|
45013
45058
|
Subscriber credentials associated to the delivery methods such as slack and push tokens.
|
|
@@ -45151,7 +45196,7 @@ var init_subscribersCredentialsDelete2 = __esm(() => {
|
|
|
45151
45196
|
idempotencyKey: stringType().optional()
|
|
45152
45197
|
};
|
|
45153
45198
|
tool$subscribersCredentialsDelete = {
|
|
45154
|
-
name: "subscribers-
|
|
45199
|
+
name: "subscribers-credentials-delete",
|
|
45155
45200
|
description: `Delete subscriber credentials by providerId
|
|
45156
45201
|
|
|
45157
45202
|
Delete subscriber credentials such as slack and expo tokens.`,
|
|
@@ -45293,7 +45338,7 @@ var init_subscribersCredentialsUpdate2 = __esm(() => {
|
|
|
45293
45338
|
idempotencyKey: stringType().optional()
|
|
45294
45339
|
};
|
|
45295
45340
|
tool$subscribersCredentialsUpdate = {
|
|
45296
|
-
name: "subscribers-
|
|
45341
|
+
name: "subscribers-credentials-update",
|
|
45297
45342
|
description: `Update subscriber credentials
|
|
45298
45343
|
|
|
45299
45344
|
Subscriber credentials associated to the delivery methods such as slack and push tokens.`,
|
|
@@ -45430,7 +45475,7 @@ var init_subscribersDelete2 = __esm(() => {
|
|
|
45430
45475
|
idempotencyKey: stringType().optional()
|
|
45431
45476
|
};
|
|
45432
45477
|
tool$subscribersDelete = {
|
|
45433
|
-
name: "
|
|
45478
|
+
name: "subscribers-delete",
|
|
45434
45479
|
description: `Delete subscriber
|
|
45435
45480
|
|
|
45436
45481
|
Deletes a subscriber entity from the Novu platform`,
|
|
@@ -45637,7 +45682,7 @@ var init_subscribersList2 = __esm(() => {
|
|
|
45637
45682
|
idempotencyKey: stringType().optional()
|
|
45638
45683
|
};
|
|
45639
45684
|
tool$subscribersList = {
|
|
45640
|
-
name: "
|
|
45685
|
+
name: "subscribers-list",
|
|
45641
45686
|
description: `Get subscribers
|
|
45642
45687
|
|
|
45643
45688
|
Returns a list of subscribers, could paginated using the \`page\` and \`limit\` query parameter`,
|
|
@@ -45780,7 +45825,7 @@ var init_subscribersMessagesMarkAll2 = __esm(() => {
|
|
|
45780
45825
|
idempotencyKey: stringType().optional()
|
|
45781
45826
|
};
|
|
45782
45827
|
tool$subscribersMessagesMarkAll = {
|
|
45783
|
-
name: "subscribers-
|
|
45828
|
+
name: "subscribers-messages-mark-all",
|
|
45784
45829
|
description: `Marks all the subscriber messages as read, unread, seen or unseen. Optionally you can pass feed id (or array) to mark messages of a particular feed.`,
|
|
45785
45830
|
args: args25,
|
|
45786
45831
|
tool: async (client, args26, ctx) => {
|
|
@@ -45921,7 +45966,7 @@ var init_subscribersMessagesMarkAllAs2 = __esm(() => {
|
|
|
45921
45966
|
idempotencyKey: stringType().optional()
|
|
45922
45967
|
};
|
|
45923
45968
|
tool$subscribersMessagesMarkAllAs = {
|
|
45924
|
-
name: "subscribers-
|
|
45969
|
+
name: "subscribers-messages-mark-all-as",
|
|
45925
45970
|
description: `Mark a subscriber messages as seen, read, unseen or unread`,
|
|
45926
45971
|
args: args26,
|
|
45927
45972
|
tool: async (client, args27, ctx) => {
|
|
@@ -46062,7 +46107,7 @@ var init_subscribersMessagesUpdateAsSeen2 = __esm(() => {
|
|
|
46062
46107
|
request: SubscribersV1ControllerMarkActionAsSeenRequest$inboundSchema
|
|
46063
46108
|
};
|
|
46064
46109
|
tool$subscribersMessagesUpdateAsSeen = {
|
|
46065
|
-
name: "subscribers-
|
|
46110
|
+
name: "subscribers-messages-update-as-seen",
|
|
46066
46111
|
description: `Mark message action as seen`,
|
|
46067
46112
|
args: args27,
|
|
46068
46113
|
tool: async (client, args28, ctx) => {
|
|
@@ -46200,7 +46245,7 @@ var init_subscribersNotificationsFeed2 = __esm(() => {
|
|
|
46200
46245
|
request: SubscribersV1ControllerGetNotificationsFeedRequest$inboundSchema
|
|
46201
46246
|
};
|
|
46202
46247
|
tool$subscribersNotificationsFeed = {
|
|
46203
|
-
name: "subscribers-
|
|
46248
|
+
name: "subscribers-notifications-feed",
|
|
46204
46249
|
description: `Get in-app notification feed for a particular subscriber`,
|
|
46205
46250
|
args: args28,
|
|
46206
46251
|
tool: async (client, args29, ctx) => {
|
|
@@ -46335,7 +46380,7 @@ var init_subscribersNotificationsUnseenCount2 = __esm(() => {
|
|
|
46335
46380
|
request: SubscribersV1ControllerGetUnseenCountRequest$inboundSchema
|
|
46336
46381
|
};
|
|
46337
46382
|
tool$subscribersNotificationsUnseenCount = {
|
|
46338
|
-
name: "subscribers-
|
|
46383
|
+
name: "subscribers-notifications-unseen-count",
|
|
46339
46384
|
description: `Get the unseen in-app notifications count for subscribers feed`,
|
|
46340
46385
|
args: args29,
|
|
46341
46386
|
tool: async (client, args30, ctx) => {
|
|
@@ -46476,7 +46521,7 @@ var init_subscribersPatch2 = __esm(() => {
|
|
|
46476
46521
|
idempotencyKey: stringType().optional()
|
|
46477
46522
|
};
|
|
46478
46523
|
tool$subscribersPatch = {
|
|
46479
|
-
name: "
|
|
46524
|
+
name: "subscribers-patch",
|
|
46480
46525
|
description: `Patch subscriber
|
|
46481
46526
|
|
|
46482
46527
|
Patch subscriber by your internal id used to identify the subscriber`,
|
|
@@ -46613,7 +46658,7 @@ var init_subscribersPreferencesList2 = __esm(() => {
|
|
|
46613
46658
|
idempotencyKey: stringType().optional()
|
|
46614
46659
|
};
|
|
46615
46660
|
tool$subscribersPreferencesList = {
|
|
46616
|
-
name: "subscribers-
|
|
46661
|
+
name: "subscribers-preferences-list",
|
|
46617
46662
|
description: `Get subscriber preferences
|
|
46618
46663
|
|
|
46619
46664
|
Get subscriber global and workflow specific preferences`,
|
|
@@ -46756,7 +46801,7 @@ var init_subscribersPreferencesUpdate2 = __esm(() => {
|
|
|
46756
46801
|
idempotencyKey: stringType().optional()
|
|
46757
46802
|
};
|
|
46758
46803
|
tool$subscribersPreferencesUpdate = {
|
|
46759
|
-
name: "subscribers-
|
|
46804
|
+
name: "subscribers-preferences-update",
|
|
46760
46805
|
description: `Update subscriber global or workflow specific preferences
|
|
46761
46806
|
|
|
46762
46807
|
Update subscriber global or workflow specific preferences`,
|
|
@@ -46897,7 +46942,7 @@ var init_subscribersPropertiesUpdateOnlineFlag2 = __esm(() => {
|
|
|
46897
46942
|
idempotencyKey: stringType().optional()
|
|
46898
46943
|
};
|
|
46899
46944
|
tool$subscribersPropertiesUpdateOnlineFlag = {
|
|
46900
|
-
name: "subscribers-
|
|
46945
|
+
name: "subscribers-properties-update-online-flag",
|
|
46901
46946
|
description: `Update subscriber online status
|
|
46902
46947
|
|
|
46903
46948
|
Used to update the subscriber isOnline flag.`,
|
|
@@ -47034,7 +47079,7 @@ var init_subscribersRetrieve2 = __esm(() => {
|
|
|
47034
47079
|
idempotencyKey: stringType().optional()
|
|
47035
47080
|
};
|
|
47036
47081
|
tool$subscribersRetrieve = {
|
|
47037
|
-
name: "
|
|
47082
|
+
name: "subscribers-retrieve",
|
|
47038
47083
|
description: `Get subscriber
|
|
47039
47084
|
|
|
47040
47085
|
Get subscriber by your internal id used to identify the subscriber`,
|
|
@@ -47172,7 +47217,7 @@ var init_subscribersSearch2 = __esm(() => {
|
|
|
47172
47217
|
request: SubscribersControllerSearchSubscribersRequest$inboundSchema
|
|
47173
47218
|
};
|
|
47174
47219
|
tool$subscribersSearch = {
|
|
47175
|
-
name: "
|
|
47220
|
+
name: "subscribers-search",
|
|
47176
47221
|
description: `Search for subscribers`,
|
|
47177
47222
|
args: args35,
|
|
47178
47223
|
tool: async (client, args36, ctx) => {
|
|
@@ -47308,7 +47353,7 @@ var init_topicsCreate2 = __esm(() => {
|
|
|
47308
47353
|
idempotencyKey: stringType().optional()
|
|
47309
47354
|
};
|
|
47310
47355
|
tool$topicsCreate = {
|
|
47311
|
-
name: "
|
|
47356
|
+
name: "topics-create",
|
|
47312
47357
|
description: `Topic creation
|
|
47313
47358
|
|
|
47314
47359
|
Create a topic`,
|
|
@@ -47445,7 +47490,7 @@ var init_topicsDelete2 = __esm(() => {
|
|
|
47445
47490
|
idempotencyKey: stringType().optional()
|
|
47446
47491
|
};
|
|
47447
47492
|
tool$topicsDelete = {
|
|
47448
|
-
name: "
|
|
47493
|
+
name: "topics-delete",
|
|
47449
47494
|
description: `Delete topic
|
|
47450
47495
|
|
|
47451
47496
|
Delete a topic by its topic key if it has no subscribers`,
|
|
@@ -47579,7 +47624,7 @@ var init_topicsList2 = __esm(() => {
|
|
|
47579
47624
|
request: TopicsControllerListTopicsRequest$inboundSchema
|
|
47580
47625
|
};
|
|
47581
47626
|
tool$topicsList = {
|
|
47582
|
-
name: "
|
|
47627
|
+
name: "topics-list",
|
|
47583
47628
|
description: `Get topic list filtered
|
|
47584
47629
|
|
|
47585
47630
|
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`,
|
|
@@ -47725,7 +47770,7 @@ var init_topicsRename2 = __esm(() => {
|
|
|
47725
47770
|
idempotencyKey: stringType().optional()
|
|
47726
47771
|
};
|
|
47727
47772
|
tool$topicsRename = {
|
|
47728
|
-
name: "
|
|
47773
|
+
name: "topics-rename",
|
|
47729
47774
|
description: `Rename a topic
|
|
47730
47775
|
|
|
47731
47776
|
Rename a topic by providing a new name`,
|
|
@@ -47865,7 +47910,7 @@ var init_topicsRetrieve2 = __esm(() => {
|
|
|
47865
47910
|
idempotencyKey: stringType().optional()
|
|
47866
47911
|
};
|
|
47867
47912
|
tool$topicsRetrieve = {
|
|
47868
|
-
name: "
|
|
47913
|
+
name: "topics-retrieve",
|
|
47869
47914
|
description: `Get topic
|
|
47870
47915
|
|
|
47871
47916
|
Get a topic by its topic key`,
|
|
@@ -48011,7 +48056,7 @@ var init_topicsSubscribersAssign2 = __esm(() => {
|
|
|
48011
48056
|
idempotencyKey: stringType().optional()
|
|
48012
48057
|
};
|
|
48013
48058
|
tool$topicsSubscribersAssign = {
|
|
48014
|
-
name: "topics-
|
|
48059
|
+
name: "topics-subscribers-assign",
|
|
48015
48060
|
description: `Subscribers addition
|
|
48016
48061
|
|
|
48017
48062
|
Add subscribers to a topic by key`,
|
|
@@ -48154,7 +48199,7 @@ var init_topicsSubscribersRemove2 = __esm(() => {
|
|
|
48154
48199
|
idempotencyKey: stringType().optional()
|
|
48155
48200
|
};
|
|
48156
48201
|
tool$topicsSubscribersRemove = {
|
|
48157
|
-
name: "topics-
|
|
48202
|
+
name: "topics-subscribers-remove",
|
|
48158
48203
|
description: `Subscribers removal
|
|
48159
48204
|
|
|
48160
48205
|
Remove subscribers from a topic`,
|
|
@@ -48293,7 +48338,7 @@ var init_topicsSubscribersRetrieve2 = __esm(() => {
|
|
|
48293
48338
|
idempotencyKey: stringType().optional()
|
|
48294
48339
|
};
|
|
48295
48340
|
tool$topicsSubscribersRetrieve = {
|
|
48296
|
-
name: "topics-
|
|
48341
|
+
name: "topics-subscribers-retrieve",
|
|
48297
48342
|
description: `Check topic subscriber
|
|
48298
48343
|
|
|
48299
48344
|
Check if a subscriber belongs to a certain topic`,
|
|
@@ -48735,7 +48780,7 @@ var init_triggerBulk2 = __esm(() => {
|
|
|
48735
48780
|
function createMCPServer(deps) {
|
|
48736
48781
|
const server = new McpServer({
|
|
48737
48782
|
name: "Novu",
|
|
48738
|
-
version: "0.
|
|
48783
|
+
version: "0.6.1"
|
|
48739
48784
|
});
|
|
48740
48785
|
const client = new NovuCore({
|
|
48741
48786
|
secretKey: deps.secretKey,
|
|
@@ -48745,49 +48790,53 @@ function createMCPServer(deps) {
|
|
|
48745
48790
|
const scopes = new Set(deps.scopes ?? mcpScopes);
|
|
48746
48791
|
const allowedTools = deps.allowedTools && new Set(deps.allowedTools);
|
|
48747
48792
|
const tool = createRegisterTool(deps.logger, server, client, scopes, allowedTools);
|
|
48793
|
+
const resource = createRegisterResource(deps.logger, server, client, scopes);
|
|
48794
|
+
const resourceTemplate = createRegisterResourceTemplate(deps.logger, server, client, scopes);
|
|
48795
|
+
const prompt = createRegisterPrompt(deps.logger, server, client, scopes);
|
|
48796
|
+
const register = { tool, resource, resourceTemplate, prompt };
|
|
48748
48797
|
tool(tool$trigger);
|
|
48749
|
-
tool(tool$triggerBulk);
|
|
48750
|
-
tool(tool$triggerBroadcast);
|
|
48751
48798
|
tool(tool$cancel);
|
|
48752
|
-
tool(tool$
|
|
48753
|
-
tool(tool$
|
|
48754
|
-
tool(tool$integrationsList);
|
|
48755
|
-
tool(tool$integrationsCreate);
|
|
48756
|
-
tool(tool$integrationsListActive);
|
|
48757
|
-
tool(tool$integrationsUpdate);
|
|
48758
|
-
tool(tool$integrationsDelete);
|
|
48759
|
-
tool(tool$integrationsSetAsPrimary);
|
|
48760
|
-
tool(tool$subscribersList);
|
|
48761
|
-
tool(tool$subscribersCreateBulk);
|
|
48799
|
+
tool(tool$triggerBroadcast);
|
|
48800
|
+
tool(tool$triggerBulk);
|
|
48762
48801
|
tool(tool$subscribersSearch);
|
|
48763
48802
|
tool(tool$subscribersCreate);
|
|
48764
48803
|
tool(tool$subscribersRetrieve);
|
|
48765
48804
|
tool(tool$subscribersPatch);
|
|
48766
48805
|
tool(tool$subscribersDelete);
|
|
48806
|
+
tool(tool$subscribersList);
|
|
48807
|
+
tool(tool$subscribersCreateBulk);
|
|
48808
|
+
tool(tool$integrationsList);
|
|
48809
|
+
tool(tool$integrationsCreate);
|
|
48810
|
+
tool(tool$integrationsUpdate);
|
|
48811
|
+
tool(tool$integrationsDelete);
|
|
48812
|
+
tool(tool$integrationsSetAsPrimary);
|
|
48813
|
+
tool(tool$integrationsListActive);
|
|
48767
48814
|
tool(tool$messagesRetrieve);
|
|
48768
48815
|
tool(tool$messagesDelete);
|
|
48769
48816
|
tool(tool$messagesDeleteByTransactionId);
|
|
48817
|
+
tool(tool$notificationsList);
|
|
48818
|
+
tool(tool$notificationsRetrieve);
|
|
48770
48819
|
tool(tool$topicsCreate);
|
|
48771
48820
|
tool(tool$topicsList);
|
|
48772
48821
|
tool(tool$topicsDelete);
|
|
48773
48822
|
tool(tool$topicsRetrieve);
|
|
48774
48823
|
tool(tool$topicsRename);
|
|
48775
|
-
tool(tool$
|
|
48776
|
-
tool(tool$
|
|
48777
|
-
tool(tool$integrationsWebhooksRetrieve);
|
|
48824
|
+
tool(tool$subscribersPreferencesList);
|
|
48825
|
+
tool(tool$subscribersPreferencesUpdate);
|
|
48778
48826
|
tool(tool$subscribersCredentialsUpdate);
|
|
48779
48827
|
tool(tool$subscribersCredentialsAppend);
|
|
48780
48828
|
tool(tool$subscribersCredentialsDelete);
|
|
48781
|
-
tool(tool$
|
|
48829
|
+
tool(tool$subscribersAuthenticationChatAccessOauth);
|
|
48830
|
+
tool(tool$subscribersAuthenticationChatAccessOauthCallBack);
|
|
48831
|
+
tool(tool$subscribersMessagesUpdateAsSeen);
|
|
48832
|
+
tool(tool$subscribersMessagesMarkAll);
|
|
48833
|
+
tool(tool$subscribersMessagesMarkAllAs);
|
|
48782
48834
|
tool(tool$subscribersNotificationsFeed);
|
|
48783
48835
|
tool(tool$subscribersNotificationsUnseenCount);
|
|
48784
|
-
tool(tool$
|
|
48785
|
-
tool(tool$
|
|
48786
|
-
tool(tool$
|
|
48787
|
-
tool(tool$
|
|
48788
|
-
tool(tool$subscribersAuthenticationChatAccessOauth);
|
|
48789
|
-
tool(tool$subscribersPreferencesList);
|
|
48790
|
-
tool(tool$subscribersPreferencesUpdate);
|
|
48836
|
+
tool(tool$subscribersPropertiesUpdateOnlineFlag);
|
|
48837
|
+
tool(tool$integrationsWebhooksRetrieve);
|
|
48838
|
+
tool(tool$notificationsStatsGraph);
|
|
48839
|
+
tool(tool$notificationsStatsRetrieve);
|
|
48791
48840
|
tool(tool$topicsSubscribersAssign);
|
|
48792
48841
|
tool(tool$topicsSubscribersRetrieve);
|
|
48793
48842
|
tool(tool$topicsSubscribersRemove);
|
|
@@ -48796,6 +48845,7 @@ function createMCPServer(deps) {
|
|
|
48796
48845
|
var init_server2 = __esm(() => {
|
|
48797
48846
|
init_mcp();
|
|
48798
48847
|
init_core();
|
|
48848
|
+
init_resources();
|
|
48799
48849
|
init_scopes();
|
|
48800
48850
|
init_tools();
|
|
48801
48851
|
init_cancel2();
|
|
@@ -50033,7 +50083,7 @@ var routes = rn({
|
|
|
50033
50083
|
var app = Ve(routes, {
|
|
50034
50084
|
name: "mcp",
|
|
50035
50085
|
versionInfo: {
|
|
50036
|
-
currentVersion: "0.
|
|
50086
|
+
currentVersion: "0.6.1"
|
|
50037
50087
|
}
|
|
50038
50088
|
});
|
|
50039
50089
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -50041,5 +50091,5 @@ export {
|
|
|
50041
50091
|
app
|
|
50042
50092
|
};
|
|
50043
50093
|
|
|
50044
|
-
//# debugId=
|
|
50094
|
+
//# debugId=84B73577B7E9316964756E2164756E21
|
|
50045
50095
|
//# sourceMappingURL=mcp-server.js.map
|