@doist/automations-mcp 1.7.2 → 1.8.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.
@@ -7449,7 +7449,7 @@ var AutomationRunDtoSchema = z5.discriminatedUnion("status", [
7449
7449
  ...automationRunDtoBaseShape,
7450
7450
  status: z5.literal("skipped"),
7451
7451
  skipReason: z5.string().nullish(),
7452
- skipCategory: z5.enum(SKIP_CATEGORIES).nullish()
7452
+ skipCategory: z5.enum(SKIP_CATEGORIES).nullish().catch(null)
7453
7453
  })
7454
7454
  ]);
7455
7455
  var automationRunListResponseSchema = z5.object({
@@ -7551,7 +7551,7 @@ var AutomationRunDetailDtoSchema = z5.discriminatedUnion("status", [
7551
7551
  ...automationRunDetailDtoBaseShape,
7552
7552
  status: z5.literal("skipped"),
7553
7553
  skipReason: z5.string().nullish(),
7554
- skipCategory: z5.enum(SKIP_CATEGORIES).nullish()
7554
+ skipCategory: z5.enum(SKIP_CATEGORIES).nullish().catch(null)
7555
7555
  })
7556
7556
  ]);
7557
7557
  function summarizeToolCallArgumentKeys(args) {
@@ -9382,7 +9382,7 @@ var runStatusSchema = z11.discriminatedUnion("status", [
9382
9382
  status: z11.literal("skipped"),
9383
9383
  lastRun: z11.iso.datetime(),
9384
9384
  skipReason: z11.string().optional(),
9385
- skipCategory: z11.enum(SKIP_CATEGORIES).optional()
9385
+ skipCategory: z11.enum(SKIP_CATEGORIES).optional().catch(void 0)
9386
9386
  })
9387
9387
  ]);
9388
9388
  var automationSchema = z11.object({
@@ -10322,7 +10322,7 @@ var DraftTestRunDetailDtoSchema = z26.discriminatedUnion("status", [
10322
10322
  ...draftTestRunDetailDtoBaseShape,
10323
10323
  status: z26.literal("skipped"),
10324
10324
  skipReason: z26.string().nullish(),
10325
- skipCategory: z26.enum(SKIP_CATEGORIES).nullish()
10325
+ skipCategory: z26.enum(SKIP_CATEGORIES).nullish().catch(null)
10326
10326
  })
10327
10327
  ]);
10328
10328
 
@@ -11925,7 +11925,8 @@ var workspaceAutomationsEndpoints = {
11925
11925
  visibility: (workspaceId, id) => `${root8(workspaceId)}/${encodeURIComponent(id)}/visibility`,
11926
11926
  move: (workspaceId, id) => `${root8(workspaceId)}/${encodeURIComponent(id)}/move`,
11927
11927
  trigger: (workspaceId, id) => `${root8(workspaceId)}/${encodeURIComponent(id)}/trigger`,
11928
- draft: (workspaceId, id) => `${root8(workspaceId)}/${encodeURIComponent(id)}/draft`
11928
+ draft: (workspaceId, id) => `${root8(workspaceId)}/${encodeURIComponent(id)}/draft`,
11929
+ duplicate: (workspaceId, id) => `${root8(workspaceId)}/${encodeURIComponent(id)}/duplicate`
11929
11930
  };
11930
11931
  function root8(workspaceId) {
11931
11932
  return `/workspaces/${encodeURIComponent(workspaceId)}/automations`;
@@ -12038,6 +12039,15 @@ var WorkspaceAutomationsClient = class extends BaseClient {
12038
12039
  * Opens an edit draft seeded from the published manifest. Answers 409 when
12039
12040
  * one is already open; see `getOpenDraftConflictError`.
12040
12041
  */
12042
+ /** A draft copy of the automation, in the same workspace, for the caller to edit. */
12043
+ async duplicate(workspaceId, id, options) {
12044
+ const data = await this.request({
12045
+ method: "POST",
12046
+ path: workspaceAutomationsEndpoints.duplicate(IdSchema.parse(workspaceId), IdSchema.parse(id)),
12047
+ options
12048
+ });
12049
+ return automationDraftWithValidationSchema.parse(data);
12050
+ }
12041
12051
  async createDraft(workspaceId, id, options) {
12042
12052
  const data = await this.request({
12043
12053
  method: "POST",
@@ -13957,7 +13967,7 @@ import { McpServer } from "@modelcontextprotocol/server";
13957
13967
  // package.json
13958
13968
  var package_default = {
13959
13969
  name: "@doist/automations-mcp",
13960
- version: "1.7.2",
13970
+ version: "1.8.0",
13961
13971
  description: "MCP server and importable AI tools for Todoist Automations",
13962
13972
  type: "module",
13963
13973
  main: "./dist/index.js",
@@ -16568,4 +16578,4 @@ export {
16568
16578
  DEFAULT_BASE_URL,
16569
16579
  getMcpServer
16570
16580
  };
16571
- //# sourceMappingURL=chunk-DU2XQUPA.js.map
16581
+ //# sourceMappingURL=chunk-MDUGN2GS.js.map