@doist/automations-mcp 1.4.0 → 1.4.2
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.
|
@@ -7014,6 +7014,8 @@ var USAGE_BILLING_DENIAL_CODES = [
|
|
|
7014
7014
|
"usage_billing_insufficient_credit",
|
|
7015
7015
|
"usage_billing_no_billing_account"
|
|
7016
7016
|
];
|
|
7017
|
+
var USAGE_BILLING_TEMPORARILY_UNAVAILABLE_CODE = "usage_billing_temporarily_unavailable";
|
|
7018
|
+
var USAGE_BILLING_UNAVAILABLE_CODE = "usage_billing_unavailable";
|
|
7017
7019
|
|
|
7018
7020
|
// ../../packages/core/dist/esm/constants/webhook-event-subscription.constants.js
|
|
7019
7021
|
var WEBHOOK_EVENT_TYPES = [
|
|
@@ -9082,7 +9084,7 @@ var ImportLocalOAuthConnectionBodySchema = z10.object({
|
|
|
9082
9084
|
* matched to it.
|
|
9083
9085
|
*/
|
|
9084
9086
|
repairConnectionId: z10.uuid().optional()
|
|
9085
|
-
});
|
|
9087
|
+
}).meta({ id: "ImportLocalOAuthConnection" });
|
|
9086
9088
|
var LocalOAuthSetupSchema = z10.object({
|
|
9087
9089
|
/** RFC 7591 registration endpoint; null when the server offers none. */
|
|
9088
9090
|
registrationEndpoint: z10.string().url().nullable(),
|
|
@@ -9234,20 +9236,20 @@ var updateAutomationSchema = z11.object({
|
|
|
9234
9236
|
manifest: manifestSchema.optional()
|
|
9235
9237
|
}).refine((data) => Object.keys(data).length > 0, {
|
|
9236
9238
|
message: "At least one field must be provided"
|
|
9237
|
-
});
|
|
9239
|
+
}).meta({ id: "UpdateAutomation" });
|
|
9238
9240
|
var updateAutomationMetadataSchema = z11.object({
|
|
9239
9241
|
name: z11.string().min(1),
|
|
9240
9242
|
description: z11.string()
|
|
9241
|
-
});
|
|
9243
|
+
}).meta({ id: "UpdateAutomationMetadata" });
|
|
9242
9244
|
var updateAutomationScheduleSchema = z11.object({
|
|
9243
9245
|
value: scheduleValueSchema
|
|
9244
|
-
});
|
|
9246
|
+
}).meta({ id: "UpdateAutomationSchedule" });
|
|
9245
9247
|
var updateAutomationVisibilitySchema = z11.object({
|
|
9246
9248
|
visibility: z11.enum(AUTOMATION_VISIBILITIES)
|
|
9247
|
-
});
|
|
9249
|
+
}).meta({ id: "UpdateAutomationVisibility" });
|
|
9248
9250
|
var moveAutomationSchema = z11.object({
|
|
9249
9251
|
visibility: z11.enum(AUTOMATION_VISIBILITIES).default("workspace")
|
|
9250
|
-
});
|
|
9252
|
+
}).meta({ id: "MoveAutomation" });
|
|
9251
9253
|
|
|
9252
9254
|
// ../../packages/core/dist/esm/schemas/automation-connection.schema.js
|
|
9253
9255
|
import z12 from "zod";
|
|
@@ -9265,7 +9267,7 @@ var UpsertAutomationConnectionSchema = z12.object({
|
|
|
9265
9267
|
* the service infers the role from `connection.capabilities[0]`.
|
|
9266
9268
|
*/
|
|
9267
9269
|
connectionType: z12.enum(CONNECTION_TYPES).optional()
|
|
9268
|
-
}).strict();
|
|
9270
|
+
}).strict().meta({ id: "UpsertAutomationConnection" });
|
|
9269
9271
|
var SetAutomationConnectionsSchema = z12.object({
|
|
9270
9272
|
mappings: z12.array(AutomationConnectionMappingSchema).nonempty("mappings cannot be empty")
|
|
9271
9273
|
}).strict();
|
|
@@ -9446,7 +9448,7 @@ var CreateAutomationDraftConnectionSchema = z15.object({
|
|
|
9446
9448
|
connectorId: z15.string().trim().min(1, "connectorId is required"),
|
|
9447
9449
|
connectionType: z15.enum(CONNECTION_TYPES),
|
|
9448
9450
|
connectionId: uuidv7Schema.min(1, "connectionId is required")
|
|
9449
|
-
}).strict();
|
|
9451
|
+
}).strict().meta({ id: "CreateAutomationDraftConnection" });
|
|
9450
9452
|
var AutomationDraftConnectionSchema = z15.object({
|
|
9451
9453
|
draftId: z15.string(),
|
|
9452
9454
|
connectorId: z15.string(),
|
|
@@ -9601,7 +9603,11 @@ var chatUsagePreviewSchema = z17.object({
|
|
|
9601
9603
|
var chatStreamRequestErrorResponseSchema = z17.object({
|
|
9602
9604
|
message: z17.string(),
|
|
9603
9605
|
statusCode: z17.number().int(),
|
|
9604
|
-
code: z17.enum(
|
|
9606
|
+
code: z17.enum([
|
|
9607
|
+
...USAGE_BILLING_DENIAL_CODES,
|
|
9608
|
+
USAGE_BILLING_TEMPORARILY_UNAVAILABLE_CODE,
|
|
9609
|
+
USAGE_BILLING_UNAVAILABLE_CODE
|
|
9610
|
+
]).optional().catch(void 0),
|
|
9605
9611
|
/** Present only when the server establishes whether work started. */
|
|
9606
9612
|
execution_started: z17.boolean().optional()
|
|
9607
9613
|
});
|
|
@@ -9613,13 +9619,13 @@ var getChatConversationsQuerySchema = z17.object({
|
|
|
9613
9619
|
});
|
|
9614
9620
|
var createChatConversationSchema = z17.object({
|
|
9615
9621
|
title: z17.string().nullable().optional()
|
|
9616
|
-
});
|
|
9622
|
+
}).meta({ id: "CreateChatConversation" });
|
|
9617
9623
|
var updateChatConversationSchema = z17.object({
|
|
9618
9624
|
title: z17.string().nullable().optional(),
|
|
9619
9625
|
isArchived: z17.boolean().optional()
|
|
9620
9626
|
}).refine((value) => value.title !== void 0 || value.isArchived !== void 0, {
|
|
9621
9627
|
message: "At least one field must be provided"
|
|
9622
|
-
});
|
|
9628
|
+
}).meta({ id: "UpdateChatConversation" });
|
|
9623
9629
|
|
|
9624
9630
|
// ../../packages/core/dist/esm/chat-tools/complete-automation-draft.js
|
|
9625
9631
|
import { z as z19 } from "zod";
|
|
@@ -10116,7 +10122,7 @@ var NotificationResponseSchema = z27.object({
|
|
|
10116
10122
|
const isStatusResponse = data.status !== void 0 && data.action === void 0;
|
|
10117
10123
|
const isAnswer = data.action === "answer" && data.value !== void 0 && data.status === void 0;
|
|
10118
10124
|
return isStatusResponse || isAnswer;
|
|
10119
|
-
}, { message: 'Provide either { status } or { action: "answer", value }' });
|
|
10125
|
+
}, { message: 'Provide either { status } or { action: "answer", value }' }).meta({ id: "NotificationResponse" });
|
|
10120
10126
|
var NOTIFICATION_STATUSES = [
|
|
10121
10127
|
...INFO_NOTIFICATION_STATUSES,
|
|
10122
10128
|
...PROMPT_NOTIFICATION_STATUSES
|
|
@@ -10302,10 +10308,10 @@ var RegisterPushSubscriptionSchema = z31.object({
|
|
|
10302
10308
|
endpoint: z31.url().max(768),
|
|
10303
10309
|
keys: PushSubscriptionKeysSchema,
|
|
10304
10310
|
deviceName: z31.string().max(255).optional()
|
|
10305
|
-
});
|
|
10311
|
+
}).meta({ id: "RegisterPushSubscription" });
|
|
10306
10312
|
var UpdatePushSubscriptionSchema = z31.object({
|
|
10307
10313
|
deviceName: z31.string().max(255).nullable().optional()
|
|
10308
|
-
});
|
|
10314
|
+
}).meta({ id: "UpdatePushSubscription" });
|
|
10309
10315
|
var RemovePushSubscriptionByEndpointQuerySchema = z31.object({
|
|
10310
10316
|
endpoint: z31.url().max(768)
|
|
10311
10317
|
});
|
|
@@ -10341,7 +10347,7 @@ var createSubscriptionSchema = z33.object({
|
|
|
10341
10347
|
triggerEventId: z33.string().min(1, "Trigger event ID is required"),
|
|
10342
10348
|
outputSchema: z33.record(z33.string(), z33.unknown()),
|
|
10343
10349
|
inputSchema: z33.record(z33.string(), z33.unknown()).optional()
|
|
10344
|
-
});
|
|
10350
|
+
}).meta({ id: "CreateSubscription" });
|
|
10345
10351
|
var subscriptionResponseSchema = z33.object({
|
|
10346
10352
|
id: z33.string(),
|
|
10347
10353
|
agentId: z33.string(),
|
|
@@ -10378,7 +10384,7 @@ var UserOnboardingStateSchema = z34.object({
|
|
|
10378
10384
|
});
|
|
10379
10385
|
var AcceptTermsSchema = z34.object({
|
|
10380
10386
|
version: z34.string().trim().min(1).max(64)
|
|
10381
|
-
});
|
|
10387
|
+
}).meta({ id: "AcceptTerms" });
|
|
10382
10388
|
var ConnectorIdSchema = z34.string().trim().min(1);
|
|
10383
10389
|
var InterestedConnectorIdsSchema = z34.array(ConnectorIdSchema).max(100);
|
|
10384
10390
|
var ConnectorPreferencesSchema = z34.object({
|
|
@@ -10425,7 +10431,7 @@ var UserPreferencesSchema = z34.object({
|
|
|
10425
10431
|
});
|
|
10426
10432
|
var CompleteOnboardingSchema = z34.object({
|
|
10427
10433
|
connectors: ConnectorPreferencesUpdateSchema.optional()
|
|
10428
|
-
}).default({});
|
|
10434
|
+
}).default({}).meta({ id: "CompleteOnboarding" });
|
|
10429
10435
|
var UpdateUserPreferencesSchema = z34.object({
|
|
10430
10436
|
connectors: ConnectorPreferencesUpdateSchema.optional(),
|
|
10431
10437
|
notifications: NotificationPreferencesUpdateSchema.optional(),
|
|
@@ -10444,7 +10450,7 @@ var UpdateUserPreferencesSchema = z34.object({
|
|
|
10444
10450
|
value.notifications?.usageBalance
|
|
10445
10451
|
];
|
|
10446
10452
|
return channelGroups.some((group) => group && ("email" in group && group.email !== void 0 || group.push !== void 0));
|
|
10447
|
-
}, { message: "At least one preference field must be provided" });
|
|
10453
|
+
}, { message: "At least one preference field must be provided" }).meta({ id: "UpdateUserPreferences" });
|
|
10448
10454
|
|
|
10449
10455
|
// ../../packages/core/dist/esm/schemas/webhook-event-subscription.schema.js
|
|
10450
10456
|
import { z as z43 } from "zod";
|
|
@@ -10631,14 +10637,14 @@ var CreateWebhookEventSubscriptionRequestSchema = z43.object({
|
|
|
10631
10637
|
eventTypes: z43.array(z43.enum(WEBHOOK_EVENT_TYPES)).min(1),
|
|
10632
10638
|
subjectAutomationId: z43.string().optional(),
|
|
10633
10639
|
description: z43.string().max(WEBHOOK_EVENT_SUBSCRIPTION_DESCRIPTION_MAX_LENGTH).optional()
|
|
10634
|
-
}).superRefine(rejectAccountScopedWithSubject);
|
|
10640
|
+
}).superRefine(rejectAccountScopedWithSubject).meta({ id: "CreateWebhookEventSubscriptionRequest" });
|
|
10635
10641
|
var UpdateWebhookEventSubscriptionRequestSchema = z43.object({
|
|
10636
10642
|
url: WebhookEndpointUrlSchema,
|
|
10637
10643
|
eventTypes: z43.array(z43.enum(WEBHOOK_EVENT_TYPES)).min(1),
|
|
10638
10644
|
status: z43.enum(WEBHOOK_EVENT_SUBSCRIPTION_STATUSES),
|
|
10639
10645
|
description: z43.string().max(WEBHOOK_EVENT_SUBSCRIPTION_DESCRIPTION_MAX_LENGTH).nullable(),
|
|
10640
10646
|
subjectAutomationId: z43.string().nullable()
|
|
10641
|
-
}).partial().superRefine(rejectAccountScopedWithSubject);
|
|
10647
|
+
}).partial().superRefine(rejectAccountScopedWithSubject).meta({ id: "UpdateWebhookEventSubscriptionRequest" });
|
|
10642
10648
|
var WebhookEventDeliveryDtoSchema = z43.object({
|
|
10643
10649
|
id: z43.string(),
|
|
10644
10650
|
eventType: z43.enum(WEBHOOK_EVENT_TYPES),
|
|
@@ -13144,7 +13150,7 @@ import { McpServer } from "@modelcontextprotocol/server";
|
|
|
13144
13150
|
// package.json
|
|
13145
13151
|
var package_default = {
|
|
13146
13152
|
name: "@doist/automations-mcp",
|
|
13147
|
-
version: "1.4.
|
|
13153
|
+
version: "1.4.2",
|
|
13148
13154
|
description: "MCP server and importable AI tools for Todoist Automations",
|
|
13149
13155
|
type: "module",
|
|
13150
13156
|
main: "./dist/index.js",
|
|
@@ -13190,7 +13196,7 @@ var package_default = {
|
|
|
13190
13196
|
prepack: "npm run build"
|
|
13191
13197
|
},
|
|
13192
13198
|
dependencies: {
|
|
13193
|
-
ai: "7.0.
|
|
13199
|
+
ai: "7.0.137",
|
|
13194
13200
|
zod: "4.6.5"
|
|
13195
13201
|
},
|
|
13196
13202
|
peerDependencies: {
|
|
@@ -13201,7 +13207,7 @@ var package_default = {
|
|
|
13201
13207
|
"@doist/automations-sdk": "*",
|
|
13202
13208
|
"@modelcontextprotocol/client": "2.3.1",
|
|
13203
13209
|
"@modelcontextprotocol/server": "2.3.1",
|
|
13204
|
-
"@types/node": "24.19.
|
|
13210
|
+
"@types/node": "24.19.2",
|
|
13205
13211
|
"conventional-changelog-conventionalcommits": "9.3.1",
|
|
13206
13212
|
esbuild: "0.28.2",
|
|
13207
13213
|
"gpt-tokenizer": "4.0.0",
|
|
@@ -15169,4 +15175,4 @@ export {
|
|
|
15169
15175
|
DEFAULT_BASE_URL,
|
|
15170
15176
|
getMcpServer
|
|
15171
15177
|
};
|
|
15172
|
-
//# sourceMappingURL=chunk-
|
|
15178
|
+
//# sourceMappingURL=chunk-LJDGJVBC.js.map
|