@doist/automations-mcp 1.7.3 → 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.
@@ -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.3",
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-K5HPLEAY.js.map
16581
+ //# sourceMappingURL=chunk-MDUGN2GS.js.map