@doist/automations-mcp 1.8.0 → 1.10.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.
@@ -7012,7 +7012,9 @@ var AUTOMATION_RUN_STATUSES = [
7012
7012
  // ../../packages/core/dist/esm/constants/usage-billing.constants.js
7013
7013
  var USAGE_BILLING_DENIAL_CODES = [
7014
7014
  "usage_billing_insufficient_credit",
7015
- "usage_billing_no_billing_account"
7015
+ "usage_billing_no_billing_account",
7016
+ "usage_billing_plan_required",
7017
+ "usage_billing_billing_paused"
7016
7018
  ];
7017
7019
  var USAGE_BILLING_TEMPORARILY_UNAVAILABLE_CODE = "usage_billing_temporarily_unavailable";
7018
7020
  var USAGE_BILLING_UNAVAILABLE_CODE = "usage_billing_unavailable";
@@ -7054,93 +7056,78 @@ var PROVIDER_TYPES = ["direct", "pubsub", "app-level"];
7054
7056
  // ../../packages/core/dist/esm/models.js
7055
7057
  var MODEL_CATALOG = {
7056
7058
  "gemini-2.5-flash-lite": {
7057
- provider: "gemini",
7059
+ vendor: "google",
7058
7060
  family: "2.5",
7059
- providerModelId: "gemini-2.5-flash-lite",
7060
7061
  manifestSelectable: true
7061
7062
  },
7062
7063
  "gemini-2.5-flash": {
7063
- provider: "gemini",
7064
+ vendor: "google",
7064
7065
  family: "2.5",
7065
- providerModelId: "gemini-2.5-flash",
7066
7066
  manifestSelectable: true
7067
7067
  },
7068
7068
  "gemini-3.1-pro": {
7069
- provider: "gemini",
7069
+ vendor: "google",
7070
7070
  family: "3",
7071
- providerModelId: "gemini-3.1-pro-preview",
7072
7071
  manifestSelectable: true
7073
7072
  },
7074
7073
  "gemini-3.8-flash": {
7075
- provider: "gemini",
7074
+ vendor: "google",
7076
7075
  family: "3",
7077
- providerModelId: "gemini-3.8-flash",
7078
7076
  manifestSelectable: true
7079
7077
  },
7080
7078
  "claude-opus-4-6": {
7081
- provider: "anthropic",
7079
+ vendor: "anthropic",
7082
7080
  family: "4.6",
7083
- providerModelId: "claude-opus-4-6",
7084
7081
  manifestSelectable: true
7085
7082
  },
7086
7083
  "claude-sonnet-5": {
7087
- provider: "anthropic",
7084
+ vendor: "anthropic",
7088
7085
  family: "5",
7089
- providerModelId: "claude-sonnet-5",
7090
7086
  manifestSelectable: true
7091
7087
  },
7092
7088
  "claude-sonnet-5-5": {
7093
- provider: "anthropic",
7089
+ vendor: "anthropic",
7094
7090
  family: "5",
7095
- providerModelId: "claude-sonnet-5-5",
7096
7091
  manifestSelectable: false
7097
7092
  },
7098
7093
  "claude-haiku-5-5": {
7099
- provider: "anthropic",
7094
+ vendor: "anthropic",
7100
7095
  family: "5",
7101
- providerModelId: "claude-haiku-5-5",
7102
7096
  manifestSelectable: false
7103
7097
  },
7104
7098
  "claude-sonnet-4-6": {
7105
- provider: "anthropic",
7099
+ vendor: "anthropic",
7106
7100
  family: "4.6",
7107
- providerModelId: "claude-sonnet-4-6",
7108
7101
  manifestSelectable: true
7109
7102
  },
7110
7103
  "claude-haiku-4-5": {
7111
- provider: "anthropic",
7104
+ vendor: "anthropic",
7112
7105
  family: "4.5",
7113
- providerModelId: "claude-haiku-4-5",
7114
7106
  manifestSelectable: true
7115
7107
  },
7116
7108
  "deepseek-v4-flash": {
7117
- provider: "openrouter",
7109
+ vendor: "deepseek",
7118
7110
  family: "deepseek",
7119
- providerModelId: "deepseek/deepseek-v4-flash-0731",
7120
7111
  manifestSelectable: true
7121
7112
  },
7122
7113
  "deepseek-v4-pro": {
7123
- provider: "openrouter",
7114
+ vendor: "deepseek",
7124
7115
  family: "deepseek",
7125
- providerModelId: "deepseek/deepseek-v4-pro",
7126
7116
  manifestSelectable: true
7127
7117
  },
7128
7118
  "mimo-v2.5": {
7129
- provider: "openrouter",
7119
+ vendor: "mimo",
7130
7120
  family: "mimo",
7131
- providerModelId: "xiaomi/mimo-v2.5",
7132
7121
  manifestSelectable: true
7133
7122
  },
7134
7123
  "mimo-v2.5-pro": {
7135
- provider: "openrouter",
7124
+ vendor: "mimo",
7136
7125
  family: "mimo",
7137
- providerModelId: "xiaomi/mimo-v2.5-pro",
7138
7126
  manifestSelectable: true
7139
7127
  },
7140
7128
  "glm-5.2": {
7141
- provider: "openrouter",
7129
+ vendor: "glm",
7142
7130
  family: "glm",
7143
- providerModelId: "z-ai/glm-5.2",
7144
7131
  manifestSelectable: true
7145
7132
  }
7146
7133
  };
@@ -7149,8 +7136,8 @@ var SUPPORTED_SEARCH_MODELS = SUPPORTED_LLM_MODELS.filter(supportsWebSearch);
7149
7136
  var MANIFEST_LLM_MODELS = SUPPORTED_LLM_MODELS.filter((modelId) => MODEL_CATALOG[modelId].manifestSelectable);
7150
7137
  var MANIFEST_SEARCH_MODELS = MANIFEST_LLM_MODELS.filter((modelId) => supportsWebSearch(modelId));
7151
7138
  function supportsWebSearch(modelId) {
7152
- const { provider } = MODEL_CATALOG[modelId];
7153
- return provider === "gemini" || provider === "anthropic";
7139
+ const { vendor } = MODEL_CATALOG[modelId];
7140
+ return vendor === "google" || vendor === "anthropic";
7154
7141
  }
7155
7142
 
7156
7143
  // ../../packages/core/dist/esm/schemas/admin.schema.js
@@ -7181,6 +7168,8 @@ var admitUsersResponseSchema = z.object({
7181
7168
  welcomeCredit: z.object({
7182
7169
  granted: z.number().int().nonnegative(),
7183
7170
  alreadyGranted: z.number().int().nonnegative(),
7171
+ /** Users with no Stripe customer yet, who will get the credit when they first top-up. */
7172
+ pending: z.number().int().nonnegative().default(0),
7184
7173
  /** Users who got no credit, with the reason to show the admin. */
7185
7174
  notGranted: z.array(z.object({ userId: z.string(), reason: z.string() }))
7186
7175
  })
@@ -7194,7 +7183,9 @@ import { z as z2 } from "zod";
7194
7183
  var UsageBillingProductSchema = z2.literal("automations");
7195
7184
  var USAGE_BILLING_BLOCK_REASONS = [
7196
7185
  "insufficient_credit",
7197
- "temporarily_unavailable"
7186
+ "temporarily_unavailable",
7187
+ "plan_required",
7188
+ "billing_paused"
7198
7189
  ];
7199
7190
  var USAGE_BILLING_AUTHORIZATION_DENIAL_REASONS = [
7200
7191
  ...USAGE_BILLING_BLOCK_REASONS,
@@ -7202,6 +7193,7 @@ var USAGE_BILLING_AUTHORIZATION_DENIAL_REASONS = [
7202
7193
  ];
7203
7194
  var UsageBillingAuthorizationDenialReasonSchema = z2.enum(USAGE_BILLING_AUTHORIZATION_DENIAL_REASONS);
7204
7195
  var UsageBillingBlockReasonSchema = z2.enum(USAGE_BILLING_BLOCK_REASONS);
7196
+ var UsageBillingReasonFromTodoistSchema = z2.string().min(1);
7205
7197
  var UsageBillingAccountSchema = z2.object({
7206
7198
  id: z2.string().regex(/^[1-9]\d*$/),
7207
7199
  type: z2.literal("user")
@@ -7226,7 +7218,7 @@ var AuthorizeUsageResponseSchema = z2.discriminatedUnion("decision", [
7226
7218
  }),
7227
7219
  z2.object({
7228
7220
  decision: z2.literal("denied"),
7229
- reason: UsageBillingAuthorizationDenialReasonSchema,
7221
+ reason: UsageBillingReasonFromTodoistSchema,
7230
7222
  available_units: UsageBillingBalanceSchema
7231
7223
  })
7232
7224
  ]);
@@ -7280,7 +7272,7 @@ var ReadStateResponseSchema = z2.object({
7280
7272
  settled_units: UsageBillingBalanceSchema.optional(),
7281
7273
  settled_amount: UsageBillingBalanceSchema.optional(),
7282
7274
  is_settled_low_balance: z2.boolean().optional(),
7283
- usage_block_reason: UsageBillingBlockReasonSchema.nullable().optional()
7275
+ usage_block_reason: UsageBillingReasonFromTodoistSchema.nullable().optional()
7284
7276
  });
7285
7277
  var UsageBillingAmountSchema = UsageBillingUnitsSchema.nullable();
7286
7278
  var UsageBillingEntrySchema = z2.object({
@@ -7338,10 +7330,25 @@ var GrantWelcomeCreditRequestSchema = z2.object({
7338
7330
  account: UsageBillingAccountSchema,
7339
7331
  operator: z2.email().max(254)
7340
7332
  });
7341
- var GrantWelcomeCreditResponseSchema = z2.object({
7342
- status: z2.enum(["granted", "already_granted"]),
7343
- grant_id: z2.string().min(1)
7344
- });
7333
+ var GRANTED_WELCOME_CREDIT_STATUSES = ["granted", "already_granted"];
7334
+ var PENDING_WELCOME_CREDIT_STATUS = "pending";
7335
+ var WELCOME_CREDIT_STATUSES = [
7336
+ ...GRANTED_WELCOME_CREDIT_STATUSES,
7337
+ PENDING_WELCOME_CREDIT_STATUS
7338
+ ];
7339
+ function isKnownWelcomeCreditStatus(status) {
7340
+ return WELCOME_CREDIT_STATUSES.includes(status);
7341
+ }
7342
+ var GrantWelcomeCreditResponseSchema = z2.union([
7343
+ z2.object({
7344
+ status: z2.enum(GRANTED_WELCOME_CREDIT_STATUSES),
7345
+ grant_id: z2.string().min(1)
7346
+ }),
7347
+ z2.object({ status: z2.literal(PENDING_WELCOME_CREDIT_STATUS) }),
7348
+ z2.object({
7349
+ status: z2.string().min(1).refine((status) => !isKnownWelcomeCreditStatus(status))
7350
+ })
7351
+ ]);
7345
7352
 
7346
7353
  // ../../packages/core/dist/esm/types/failure-category.types.js
7347
7354
  var FAILURE_CATEGORIES = [
@@ -12597,6 +12604,10 @@ var UsageBillingTopUpUnavailableResponseSchema = z56.object({
12597
12604
  http_code: z56.literal(400),
12598
12605
  error_extra: z56.record(z56.string(), z56.unknown())
12599
12606
  });
12607
+ var UsageBillingTopUpRefusalSchema = z56.object({
12608
+ error_tag: z56.string().min(1),
12609
+ error_extra: z56.object({ event_id: z56.string().optional() }).optional()
12610
+ });
12600
12611
  var UsageBillingClient = class extends BaseClient {
12601
12612
  async readState(options) {
12602
12613
  const data = await this.request({
@@ -13967,7 +13978,7 @@ import { McpServer } from "@modelcontextprotocol/server";
13967
13978
  // package.json
13968
13979
  var package_default = {
13969
13980
  name: "@doist/automations-mcp",
13970
- version: "1.8.0",
13981
+ version: "1.10.0",
13971
13982
  description: "MCP server and importable AI tools for Todoist Automations",
13972
13983
  type: "module",
13973
13984
  main: "./dist/index.js",
@@ -16578,4 +16589,4 @@ export {
16578
16589
  DEFAULT_BASE_URL,
16579
16590
  getMcpServer
16580
16591
  };
16581
- //# sourceMappingURL=chunk-MDUGN2GS.js.map
16592
+ //# sourceMappingURL=chunk-4DEVWVZG.js.map