@doist/automations-mcp 1.4.1 → 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.
@@ -9084,7 +9084,7 @@ var ImportLocalOAuthConnectionBodySchema = z10.object({
9084
9084
  * matched to it.
9085
9085
  */
9086
9086
  repairConnectionId: z10.uuid().optional()
9087
- });
9087
+ }).meta({ id: "ImportLocalOAuthConnection" });
9088
9088
  var LocalOAuthSetupSchema = z10.object({
9089
9089
  /** RFC 7591 registration endpoint; null when the server offers none. */
9090
9090
  registrationEndpoint: z10.string().url().nullable(),
@@ -9236,20 +9236,20 @@ var updateAutomationSchema = z11.object({
9236
9236
  manifest: manifestSchema.optional()
9237
9237
  }).refine((data) => Object.keys(data).length > 0, {
9238
9238
  message: "At least one field must be provided"
9239
- });
9239
+ }).meta({ id: "UpdateAutomation" });
9240
9240
  var updateAutomationMetadataSchema = z11.object({
9241
9241
  name: z11.string().min(1),
9242
9242
  description: z11.string()
9243
- });
9243
+ }).meta({ id: "UpdateAutomationMetadata" });
9244
9244
  var updateAutomationScheduleSchema = z11.object({
9245
9245
  value: scheduleValueSchema
9246
- });
9246
+ }).meta({ id: "UpdateAutomationSchedule" });
9247
9247
  var updateAutomationVisibilitySchema = z11.object({
9248
9248
  visibility: z11.enum(AUTOMATION_VISIBILITIES)
9249
- });
9249
+ }).meta({ id: "UpdateAutomationVisibility" });
9250
9250
  var moveAutomationSchema = z11.object({
9251
9251
  visibility: z11.enum(AUTOMATION_VISIBILITIES).default("workspace")
9252
- });
9252
+ }).meta({ id: "MoveAutomation" });
9253
9253
 
9254
9254
  // ../../packages/core/dist/esm/schemas/automation-connection.schema.js
9255
9255
  import z12 from "zod";
@@ -9267,7 +9267,7 @@ var UpsertAutomationConnectionSchema = z12.object({
9267
9267
  * the service infers the role from `connection.capabilities[0]`.
9268
9268
  */
9269
9269
  connectionType: z12.enum(CONNECTION_TYPES).optional()
9270
- }).strict();
9270
+ }).strict().meta({ id: "UpsertAutomationConnection" });
9271
9271
  var SetAutomationConnectionsSchema = z12.object({
9272
9272
  mappings: z12.array(AutomationConnectionMappingSchema).nonempty("mappings cannot be empty")
9273
9273
  }).strict();
@@ -9448,7 +9448,7 @@ var CreateAutomationDraftConnectionSchema = z15.object({
9448
9448
  connectorId: z15.string().trim().min(1, "connectorId is required"),
9449
9449
  connectionType: z15.enum(CONNECTION_TYPES),
9450
9450
  connectionId: uuidv7Schema.min(1, "connectionId is required")
9451
- }).strict();
9451
+ }).strict().meta({ id: "CreateAutomationDraftConnection" });
9452
9452
  var AutomationDraftConnectionSchema = z15.object({
9453
9453
  draftId: z15.string(),
9454
9454
  connectorId: z15.string(),
@@ -9619,13 +9619,13 @@ var getChatConversationsQuerySchema = z17.object({
9619
9619
  });
9620
9620
  var createChatConversationSchema = z17.object({
9621
9621
  title: z17.string().nullable().optional()
9622
- });
9622
+ }).meta({ id: "CreateChatConversation" });
9623
9623
  var updateChatConversationSchema = z17.object({
9624
9624
  title: z17.string().nullable().optional(),
9625
9625
  isArchived: z17.boolean().optional()
9626
9626
  }).refine((value) => value.title !== void 0 || value.isArchived !== void 0, {
9627
9627
  message: "At least one field must be provided"
9628
- });
9628
+ }).meta({ id: "UpdateChatConversation" });
9629
9629
 
9630
9630
  // ../../packages/core/dist/esm/chat-tools/complete-automation-draft.js
9631
9631
  import { z as z19 } from "zod";
@@ -10122,7 +10122,7 @@ var NotificationResponseSchema = z27.object({
10122
10122
  const isStatusResponse = data.status !== void 0 && data.action === void 0;
10123
10123
  const isAnswer = data.action === "answer" && data.value !== void 0 && data.status === void 0;
10124
10124
  return isStatusResponse || isAnswer;
10125
- }, { message: 'Provide either { status } or { action: "answer", value }' });
10125
+ }, { message: 'Provide either { status } or { action: "answer", value }' }).meta({ id: "NotificationResponse" });
10126
10126
  var NOTIFICATION_STATUSES = [
10127
10127
  ...INFO_NOTIFICATION_STATUSES,
10128
10128
  ...PROMPT_NOTIFICATION_STATUSES
@@ -10308,10 +10308,10 @@ var RegisterPushSubscriptionSchema = z31.object({
10308
10308
  endpoint: z31.url().max(768),
10309
10309
  keys: PushSubscriptionKeysSchema,
10310
10310
  deviceName: z31.string().max(255).optional()
10311
- });
10311
+ }).meta({ id: "RegisterPushSubscription" });
10312
10312
  var UpdatePushSubscriptionSchema = z31.object({
10313
10313
  deviceName: z31.string().max(255).nullable().optional()
10314
- });
10314
+ }).meta({ id: "UpdatePushSubscription" });
10315
10315
  var RemovePushSubscriptionByEndpointQuerySchema = z31.object({
10316
10316
  endpoint: z31.url().max(768)
10317
10317
  });
@@ -10347,7 +10347,7 @@ var createSubscriptionSchema = z33.object({
10347
10347
  triggerEventId: z33.string().min(1, "Trigger event ID is required"),
10348
10348
  outputSchema: z33.record(z33.string(), z33.unknown()),
10349
10349
  inputSchema: z33.record(z33.string(), z33.unknown()).optional()
10350
- });
10350
+ }).meta({ id: "CreateSubscription" });
10351
10351
  var subscriptionResponseSchema = z33.object({
10352
10352
  id: z33.string(),
10353
10353
  agentId: z33.string(),
@@ -10384,7 +10384,7 @@ var UserOnboardingStateSchema = z34.object({
10384
10384
  });
10385
10385
  var AcceptTermsSchema = z34.object({
10386
10386
  version: z34.string().trim().min(1).max(64)
10387
- });
10387
+ }).meta({ id: "AcceptTerms" });
10388
10388
  var ConnectorIdSchema = z34.string().trim().min(1);
10389
10389
  var InterestedConnectorIdsSchema = z34.array(ConnectorIdSchema).max(100);
10390
10390
  var ConnectorPreferencesSchema = z34.object({
@@ -10431,7 +10431,7 @@ var UserPreferencesSchema = z34.object({
10431
10431
  });
10432
10432
  var CompleteOnboardingSchema = z34.object({
10433
10433
  connectors: ConnectorPreferencesUpdateSchema.optional()
10434
- }).default({});
10434
+ }).default({}).meta({ id: "CompleteOnboarding" });
10435
10435
  var UpdateUserPreferencesSchema = z34.object({
10436
10436
  connectors: ConnectorPreferencesUpdateSchema.optional(),
10437
10437
  notifications: NotificationPreferencesUpdateSchema.optional(),
@@ -10450,7 +10450,7 @@ var UpdateUserPreferencesSchema = z34.object({
10450
10450
  value.notifications?.usageBalance
10451
10451
  ];
10452
10452
  return channelGroups.some((group) => group && ("email" in group && group.email !== void 0 || group.push !== void 0));
10453
- }, { message: "At least one preference field must be provided" });
10453
+ }, { message: "At least one preference field must be provided" }).meta({ id: "UpdateUserPreferences" });
10454
10454
 
10455
10455
  // ../../packages/core/dist/esm/schemas/webhook-event-subscription.schema.js
10456
10456
  import { z as z43 } from "zod";
@@ -10637,14 +10637,14 @@ var CreateWebhookEventSubscriptionRequestSchema = z43.object({
10637
10637
  eventTypes: z43.array(z43.enum(WEBHOOK_EVENT_TYPES)).min(1),
10638
10638
  subjectAutomationId: z43.string().optional(),
10639
10639
  description: z43.string().max(WEBHOOK_EVENT_SUBSCRIPTION_DESCRIPTION_MAX_LENGTH).optional()
10640
- }).superRefine(rejectAccountScopedWithSubject);
10640
+ }).superRefine(rejectAccountScopedWithSubject).meta({ id: "CreateWebhookEventSubscriptionRequest" });
10641
10641
  var UpdateWebhookEventSubscriptionRequestSchema = z43.object({
10642
10642
  url: WebhookEndpointUrlSchema,
10643
10643
  eventTypes: z43.array(z43.enum(WEBHOOK_EVENT_TYPES)).min(1),
10644
10644
  status: z43.enum(WEBHOOK_EVENT_SUBSCRIPTION_STATUSES),
10645
10645
  description: z43.string().max(WEBHOOK_EVENT_SUBSCRIPTION_DESCRIPTION_MAX_LENGTH).nullable(),
10646
10646
  subjectAutomationId: z43.string().nullable()
10647
- }).partial().superRefine(rejectAccountScopedWithSubject);
10647
+ }).partial().superRefine(rejectAccountScopedWithSubject).meta({ id: "UpdateWebhookEventSubscriptionRequest" });
10648
10648
  var WebhookEventDeliveryDtoSchema = z43.object({
10649
10649
  id: z43.string(),
10650
10650
  eventType: z43.enum(WEBHOOK_EVENT_TYPES),
@@ -13150,7 +13150,7 @@ import { McpServer } from "@modelcontextprotocol/server";
13150
13150
  // package.json
13151
13151
  var package_default = {
13152
13152
  name: "@doist/automations-mcp",
13153
- version: "1.4.1",
13153
+ version: "1.4.2",
13154
13154
  description: "MCP server and importable AI tools for Todoist Automations",
13155
13155
  type: "module",
13156
13156
  main: "./dist/index.js",
@@ -13196,7 +13196,7 @@ var package_default = {
13196
13196
  prepack: "npm run build"
13197
13197
  },
13198
13198
  dependencies: {
13199
- ai: "7.0.86",
13199
+ ai: "7.0.137",
13200
13200
  zod: "4.6.5"
13201
13201
  },
13202
13202
  peerDependencies: {
@@ -13207,7 +13207,7 @@ var package_default = {
13207
13207
  "@doist/automations-sdk": "*",
13208
13208
  "@modelcontextprotocol/client": "2.3.1",
13209
13209
  "@modelcontextprotocol/server": "2.3.1",
13210
- "@types/node": "24.19.1",
13210
+ "@types/node": "24.19.2",
13211
13211
  "conventional-changelog-conventionalcommits": "9.3.1",
13212
13212
  esbuild: "0.28.2",
13213
13213
  "gpt-tokenizer": "4.0.0",
@@ -15175,4 +15175,4 @@ export {
15175
15175
  DEFAULT_BASE_URL,
15176
15176
  getMcpServer
15177
15177
  };
15178
- //# sourceMappingURL=chunk-NJYR6WQU.js.map
15178
+ //# sourceMappingURL=chunk-LJDGJVBC.js.map