@keystrokehq/placid 0.1.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.
Files changed (122) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/create-collection.cjs +25 -0
  7. package/dist/actions/create-collection.cjs.map +1 -0
  8. package/dist/actions/create-collection.d.cts +9 -0
  9. package/dist/actions/create-collection.d.cts.map +1 -0
  10. package/dist/actions/create-collection.d.mts +9 -0
  11. package/dist/actions/create-collection.d.mts.map +1 -0
  12. package/dist/actions/create-collection.mjs +22 -0
  13. package/dist/actions/create-collection.mjs.map +1 -0
  14. package/dist/actions/create-template.cjs +37 -0
  15. package/dist/actions/create-template.cjs.map +1 -0
  16. package/dist/actions/create-template.d.cts +9 -0
  17. package/dist/actions/create-template.d.cts.map +1 -0
  18. package/dist/actions/create-template.d.mts +9 -0
  19. package/dist/actions/create-template.d.mts.map +1 -0
  20. package/dist/actions/create-template.mjs +36 -0
  21. package/dist/actions/create-template.mjs.map +1 -0
  22. package/dist/actions/delete-collection.cjs +19 -0
  23. package/dist/actions/delete-collection.cjs.map +1 -0
  24. package/dist/actions/delete-collection.d.cts +9 -0
  25. package/dist/actions/delete-collection.d.cts.map +1 -0
  26. package/dist/actions/delete-collection.d.mts +9 -0
  27. package/dist/actions/delete-collection.d.mts.map +1 -0
  28. package/dist/actions/delete-collection.mjs +16 -0
  29. package/dist/actions/delete-collection.mjs.map +1 -0
  30. package/dist/actions/delete-template.cjs +19 -0
  31. package/dist/actions/delete-template.cjs.map +1 -0
  32. package/dist/actions/delete-template.d.cts +9 -0
  33. package/dist/actions/delete-template.d.cts.map +1 -0
  34. package/dist/actions/delete-template.d.mts +9 -0
  35. package/dist/actions/delete-template.d.mts.map +1 -0
  36. package/dist/actions/delete-template.mjs +16 -0
  37. package/dist/actions/delete-template.mjs.map +1 -0
  38. package/dist/actions/get-collection.cjs +21 -0
  39. package/dist/actions/get-collection.cjs.map +1 -0
  40. package/dist/actions/get-collection.d.cts +9 -0
  41. package/dist/actions/get-collection.d.cts.map +1 -0
  42. package/dist/actions/get-collection.d.mts +9 -0
  43. package/dist/actions/get-collection.d.mts.map +1 -0
  44. package/dist/actions/get-collection.mjs +18 -0
  45. package/dist/actions/get-collection.mjs.map +1 -0
  46. package/dist/actions/get-collections.cjs +39 -0
  47. package/dist/actions/get-collections.cjs.map +1 -0
  48. package/dist/actions/get-collections.d.cts +9 -0
  49. package/dist/actions/get-collections.d.cts.map +1 -0
  50. package/dist/actions/get-collections.d.mts +9 -0
  51. package/dist/actions/get-collections.d.mts.map +1 -0
  52. package/dist/actions/get-collections.mjs +38 -0
  53. package/dist/actions/get-collections.mjs.map +1 -0
  54. package/dist/actions/get-template.cjs +22 -0
  55. package/dist/actions/get-template.cjs.map +1 -0
  56. package/dist/actions/get-template.d.cts +9 -0
  57. package/dist/actions/get-template.d.cts.map +1 -0
  58. package/dist/actions/get-template.d.mts +9 -0
  59. package/dist/actions/get-template.d.mts.map +1 -0
  60. package/dist/actions/get-template.mjs +19 -0
  61. package/dist/actions/get-template.mjs.map +1 -0
  62. package/dist/actions/index.cjs +23 -0
  63. package/dist/actions/index.d.cts +12 -0
  64. package/dist/actions/index.d.mts +12 -0
  65. package/dist/actions/index.mjs +12 -0
  66. package/dist/actions/list-nl-templates.cjs +25 -0
  67. package/dist/actions/list-nl-templates.cjs.map +1 -0
  68. package/dist/actions/list-nl-templates.d.cts +9 -0
  69. package/dist/actions/list-nl-templates.d.cts.map +1 -0
  70. package/dist/actions/list-nl-templates.d.mts +9 -0
  71. package/dist/actions/list-nl-templates.d.mts.map +1 -0
  72. package/dist/actions/list-nl-templates.mjs +24 -0
  73. package/dist/actions/list-nl-templates.mjs.map +1 -0
  74. package/dist/actions/list-templates.cjs +40 -0
  75. package/dist/actions/list-templates.cjs.map +1 -0
  76. package/dist/actions/list-templates.d.cts +9 -0
  77. package/dist/actions/list-templates.d.cts.map +1 -0
  78. package/dist/actions/list-templates.d.mts +9 -0
  79. package/dist/actions/list-templates.d.mts.map +1 -0
  80. package/dist/actions/list-templates.mjs +39 -0
  81. package/dist/actions/list-templates.mjs.map +1 -0
  82. package/dist/actions/update-collection.cjs +28 -0
  83. package/dist/actions/update-collection.cjs.map +1 -0
  84. package/dist/actions/update-collection.d.cts +9 -0
  85. package/dist/actions/update-collection.d.cts.map +1 -0
  86. package/dist/actions/update-collection.d.mts +9 -0
  87. package/dist/actions/update-collection.d.mts.map +1 -0
  88. package/dist/actions/update-collection.mjs +25 -0
  89. package/dist/actions/update-collection.mjs.map +1 -0
  90. package/dist/actions/update-template.cjs +31 -0
  91. package/dist/actions/update-template.cjs.map +1 -0
  92. package/dist/actions/update-template.d.cts +9 -0
  93. package/dist/actions/update-template.d.cts.map +1 -0
  94. package/dist/actions/update-template.d.mts +9 -0
  95. package/dist/actions/update-template.d.mts.map +1 -0
  96. package/dist/actions/update-template.mjs +28 -0
  97. package/dist/actions/update-template.mjs.map +1 -0
  98. package/dist/app.cjs +9 -0
  99. package/dist/app.cjs.map +1 -0
  100. package/dist/app.d.cts +5 -0
  101. package/dist/app.d.cts.map +1 -0
  102. package/dist/app.d.mts +5 -0
  103. package/dist/app.d.mts.map +1 -0
  104. package/dist/app.mjs +10 -0
  105. package/dist/app.mjs.map +1 -0
  106. package/dist/catalog.cjs +15 -0
  107. package/dist/catalog.cjs.map +1 -0
  108. package/dist/catalog.d.cts +14 -0
  109. package/dist/catalog.d.cts.map +1 -0
  110. package/dist/catalog.d.mts +14 -0
  111. package/dist/catalog.d.mts.map +1 -0
  112. package/dist/catalog.mjs +15 -0
  113. package/dist/catalog.mjs.map +1 -0
  114. package/dist/execute.cjs +18 -0
  115. package/dist/execute.cjs.map +1 -0
  116. package/dist/execute.mjs +18 -0
  117. package/dist/execute.mjs.map +1 -0
  118. package/dist/index.cjs +28 -0
  119. package/dist/index.d.cts +14 -0
  120. package/dist/index.d.mts +14 -0
  121. package/dist/index.mjs +15 -0
  122. package/package.json +49 -0
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-collections.d.ts
4
+ declare const PlacidGetCollectionsInput: z.ZodTypeAny;
5
+ declare const PlacidGetCollectionsOutput: z.ZodTypeAny;
6
+ declare const placidGetCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidGetCollections };
9
+ //# sourceMappingURL=get-collections.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-collections.d.cts","names":[],"sources":["../../src/actions/get-collections.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGgD;AAAA,cAiB7E,0BAAA,EAA4B,CAAA,CAAE,UAI4C;AAAA,cAE1E,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-collections.d.ts
4
+ declare const PlacidGetCollectionsInput: z.ZodTypeAny;
5
+ declare const PlacidGetCollectionsOutput: z.ZodTypeAny;
6
+ declare const placidGetCollections: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidGetCollections };
9
+ //# sourceMappingURL=get-collections.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-collections.d.mts","names":[],"sources":["../../src/actions/get-collections.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAGgD;AAAA,cAiB7E,0BAAA,EAA4B,CAAA,CAAE,UAI4C;AAAA,cAE1E,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,38 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/get-collections.ts
4
+ const PlacidGetCollectionsInput = z.object({
5
+ cursor: z.string().describe("Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.").optional(),
6
+ per_page: z.number().int().describe("Number of collections per page (1-100). Server default is 20 if not specified.").optional()
7
+ }).describe("Request model for retrieving template collections with optional pagination.");
8
+ const PlacidGetCollections_CollectionSchema = z.object({
9
+ id: z.string().describe("Unique identifier of the collection (UUID)"),
10
+ title: z.string().describe("Title of the collection"),
11
+ templates: z.array(z.unknown()).describe("List of templates associated with this collection (max 500)").nullable().optional(),
12
+ custom_data: z.string().describe("Custom reference data for the collection").nullable().optional()
13
+ }).describe("Representation of a single Placid template collection.");
14
+ const PlacidGetCollections_MetaSchema = z.object({
15
+ path: z.string().describe("API endpoint path").nullable().optional(),
16
+ per_page: z.union([z.number().int(), z.string()]).nullable().optional()
17
+ }).describe("Pagination metadata for collections listing.");
18
+ const PlacidGetCollections_LinksSchema = z.object({
19
+ last: z.string().describe("URL to the last page").nullable().optional(),
20
+ next: z.string().describe("URL to the next page").nullable().optional(),
21
+ prev: z.string().describe("URL to the previous page").nullable().optional(),
22
+ first: z.string().describe("URL to the first page").nullable().optional()
23
+ }).describe("Pagination links for cursor-based navigation.");
24
+ const placidGetCollections = action("PLACID_GET_COLLECTIONS", {
25
+ slug: "placid-get-collections",
26
+ name: "Get Collections",
27
+ description: "Tool to retrieve a list of all template collections. Use after authentication to paginate through your Placid collections.",
28
+ input: PlacidGetCollectionsInput,
29
+ output: z.object({
30
+ data: z.array(PlacidGetCollections_CollectionSchema).describe("List of template collections").nullable().optional(),
31
+ meta: PlacidGetCollections_MetaSchema.nullable().optional(),
32
+ links: PlacidGetCollections_LinksSchema.nullable().optional()
33
+ }).describe("Response model containing a list of collections and pagination metadata.")
34
+ });
35
+ //#endregion
36
+ export { placidGetCollections };
37
+
38
+ //# sourceMappingURL=get-collections.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-collections.mjs","names":[],"sources":["../../src/actions/get-collections.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidGetCollectionsInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.\").optional(),\n per_page: z.number().int().describe(\"Number of collections per page (1-100). Server default is 20 if not specified.\").optional(),\n}).describe(\"Request model for retrieving template collections with optional pagination.\");\nconst PlacidGetCollections_CollectionSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\"),\n title: z.string().describe(\"Title of the collection\"),\n templates: z.array(z.unknown()).describe(\"List of templates associated with this collection (max 500)\").nullable().optional(),\n custom_data: z.string().describe(\"Custom reference data for the collection\").nullable().optional(),\n}).describe(\"Representation of a single Placid template collection.\");\nconst PlacidGetCollections_MetaSchema: z.ZodTypeAny = z.object({\n path: z.string().describe(\"API endpoint path\").nullable().optional(),\n per_page: z.union([z.number().int(), z.string()]).nullable().optional(),\n}).describe(\"Pagination metadata for collections listing.\");\nconst PlacidGetCollections_LinksSchema: z.ZodTypeAny = z.object({\n last: z.string().describe(\"URL to the last page\").nullable().optional(),\n next: z.string().describe(\"URL to the next page\").nullable().optional(),\n prev: z.string().describe(\"URL to the previous page\").nullable().optional(),\n first: z.string().describe(\"URL to the first page\").nullable().optional(),\n}).describe(\"Pagination links for cursor-based navigation.\");\nexport const PlacidGetCollectionsOutput: z.ZodTypeAny = z.object({\n data: z.array(PlacidGetCollections_CollectionSchema).describe(\"List of template collections\").nullable().optional(),\n meta: PlacidGetCollections_MetaSchema.nullable().optional(),\n links: PlacidGetCollections_LinksSchema.nullable().optional(),\n}).describe(\"Response model containing a list of collections and pagination metadata.\");\n\nexport const placidGetCollections = action(\"PLACID_GET_COLLECTIONS\", {\n slug: \"placid-get-collections\",\n name: \"Get Collections\",\n description: \"Tool to retrieve a list of all template collections. Use after authentication to paginate through your Placid collections.\",\n input: PlacidGetCollectionsInput,\n output: PlacidGetCollectionsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACrJ,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,WAAW,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,kCAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAO3D,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsD,EAAE,OAAO;EAC/D,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClH,MAAM,gCAAgC,SAAS,CAAC,CAAC,SAAS;EAC1D,OAAO,iCAAiC,SAAS,CAAC,CAAC,SAAS;CAC9D,CAAC,CAAC,CAAC,SAAS,0EAOF;AACV,CAAC"}
@@ -0,0 +1,22 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/get-template.ts
4
+ const PlacidGetTemplateInput = zod.z.object({ template_uuid: zod.z.string().describe("Unique template UUID to retrieve") }).describe("Request parameters for retrieving a specific template.");
5
+ const PlacidGetTemplateOutput = zod.z.object({
6
+ tags: zod.z.array(zod.z.string()).describe("List of tags associated with the template").nullable().optional(),
7
+ uuid: zod.z.string().describe("Unique template identifier (UUID)"),
8
+ title: zod.z.string().describe("Template title"),
9
+ layers: zod.z.array(zod.z.unknown()).describe("Array of template layers").nullable().optional(),
10
+ thumbnail: zod.z.string().describe("URL of the template thumbnail preview (may be null during regeneration)").nullable().optional()
11
+ }).describe("Response schema for a Placid template.");
12
+ const placidGetTemplate = require_action.action("PLACID_GET_TEMPLATE", {
13
+ slug: "placid-get-template",
14
+ name: "Get Template",
15
+ description: "Tool to retrieve a template by UUID. Returns template details including title, thumbnail, tags, and layers.",
16
+ input: PlacidGetTemplateInput,
17
+ output: PlacidGetTemplateOutput
18
+ });
19
+ //#endregion
20
+ exports.placidGetTemplate = placidGetTemplate;
21
+
22
+ //# sourceMappingURL=get-template.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-template.cjs","names":["z","action"],"sources":["../../src/actions/get-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidGetTemplateInput: z.ZodTypeAny = z.object({\n template_uuid: z.string().describe(\"Unique template UUID to retrieve\"),\n}).describe(\"Request parameters for retrieving a specific template.\");\nexport const PlacidGetTemplateOutput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the template\").nullable().optional(),\n uuid: z.string().describe(\"Unique template identifier (UUID)\"),\n title: z.string().describe(\"Template title\"),\n layers: z.array(z.unknown()).describe(\"Array of template layers\").nullable().optional(),\n thumbnail: z.string().describe(\"URL of the template thumbnail preview (may be null during regeneration)\").nullable().optional(),\n}).describe(\"Response schema for a Placid template.\");\n\nexport const placidGetTemplate = action(\"PLACID_GET_TEMPLATE\", {\n slug: \"placid-get-template\",\n name: \"Get Template\",\n description: \"Tool to retrieve a template by UUID. Returns template details including title, thumbnail, tags, and layers.\",\n input: PlacidGetTemplateInput,\n output: PlacidGetTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO,EAC3D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACvE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC7D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CAC3C,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAChI,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-template.d.ts
4
+ declare const PlacidGetTemplateInput: z.ZodTypeAny;
5
+ declare const PlacidGetTemplateOutput: z.ZodTypeAny;
6
+ declare const placidGetTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidGetTemplate };
9
+ //# sourceMappingURL=get-template.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-template.d.cts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE8B;AAAA,cACxD,uBAAA,EAAyB,CAAA,CAAE,UAMa;AAAA,cAExC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/get-template.d.ts
4
+ declare const PlacidGetTemplateInput: z.ZodTypeAny;
5
+ declare const PlacidGetTemplateOutput: z.ZodTypeAny;
6
+ declare const placidGetTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidGetTemplate };
9
+ //# sourceMappingURL=get-template.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-template.d.mts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,sBAAA,EAAwB,CAAA,CAAE,UAE8B;AAAA,cACxD,uBAAA,EAAyB,CAAA,CAAE,UAMa;AAAA,cAExC,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,19 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const placidGetTemplate = action("PLACID_GET_TEMPLATE", {
4
+ slug: "placid-get-template",
5
+ name: "Get Template",
6
+ description: "Tool to retrieve a template by UUID. Returns template details including title, thumbnail, tags, and layers.",
7
+ input: z.object({ template_uuid: z.string().describe("Unique template UUID to retrieve") }).describe("Request parameters for retrieving a specific template."),
8
+ output: z.object({
9
+ tags: z.array(z.string()).describe("List of tags associated with the template").nullable().optional(),
10
+ uuid: z.string().describe("Unique template identifier (UUID)"),
11
+ title: z.string().describe("Template title"),
12
+ layers: z.array(z.unknown()).describe("Array of template layers").nullable().optional(),
13
+ thumbnail: z.string().describe("URL of the template thumbnail preview (may be null during regeneration)").nullable().optional()
14
+ }).describe("Response schema for a Placid template.")
15
+ });
16
+ //#endregion
17
+ export { placidGetTemplate };
18
+
19
+ //# sourceMappingURL=get-template.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-template.mjs","names":[],"sources":["../../src/actions/get-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidGetTemplateInput: z.ZodTypeAny = z.object({\n template_uuid: z.string().describe(\"Unique template UUID to retrieve\"),\n}).describe(\"Request parameters for retrieving a specific template.\");\nexport const PlacidGetTemplateOutput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the template\").nullable().optional(),\n uuid: z.string().describe(\"Unique template identifier (UUID)\"),\n title: z.string().describe(\"Template title\"),\n layers: z.array(z.unknown()).describe(\"Array of template layers\").nullable().optional(),\n thumbnail: z.string().describe(\"URL of the template thumbnail preview (may be null during regeneration)\").nullable().optional(),\n}).describe(\"Response schema for a Placid template.\");\n\nexport const placidGetTemplate = action(\"PLACID_GET_TEMPLATE\", {\n slug: \"placid-get-template\",\n name: \"Get Template\",\n description: \"Tool to retrieve a template by UUID. Returns template details including title, thumbnail, tags, and layers.\",\n input: PlacidGetTemplateInput,\n output: PlacidGetTemplateOutput,\n});\n"],"mappings":";;AAeA,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAfkD,EAAE,OAAO,EAC3D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACvE,CAAC,CAAC,CAAC,SAAS,wDAaH;CACP,QAbmD,EAAE,OAAO;EAC5D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;EAC7D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;EAC3C,QAAQ,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChI,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
@@ -0,0 +1,23 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_create_collection = require("./create-collection.cjs");
3
+ const require_create_template = require("./create-template.cjs");
4
+ const require_delete_collection = require("./delete-collection.cjs");
5
+ const require_delete_template = require("./delete-template.cjs");
6
+ const require_get_collection = require("./get-collection.cjs");
7
+ const require_get_collections = require("./get-collections.cjs");
8
+ const require_get_template = require("./get-template.cjs");
9
+ const require_list_nl_templates = require("./list-nl-templates.cjs");
10
+ const require_list_templates = require("./list-templates.cjs");
11
+ const require_update_collection = require("./update-collection.cjs");
12
+ const require_update_template = require("./update-template.cjs");
13
+ exports.placidCreateCollection = require_create_collection.placidCreateCollection;
14
+ exports.placidCreateTemplate = require_create_template.placidCreateTemplate;
15
+ exports.placidDeleteCollection = require_delete_collection.placidDeleteCollection;
16
+ exports.placidDeleteTemplate = require_delete_template.placidDeleteTemplate;
17
+ exports.placidGetCollection = require_get_collection.placidGetCollection;
18
+ exports.placidGetCollections = require_get_collections.placidGetCollections;
19
+ exports.placidGetTemplate = require_get_template.placidGetTemplate;
20
+ exports.placidListNlTemplates = require_list_nl_templates.placidListNlTemplates;
21
+ exports.placidListTemplates = require_list_templates.placidListTemplates;
22
+ exports.placidUpdateCollection = require_update_collection.placidUpdateCollection;
23
+ exports.placidUpdateTemplate = require_update_template.placidUpdateTemplate;
@@ -0,0 +1,12 @@
1
+ import { placidCreateCollection } from "./create-collection.cjs";
2
+ import { placidCreateTemplate } from "./create-template.cjs";
3
+ import { placidDeleteCollection } from "./delete-collection.cjs";
4
+ import { placidDeleteTemplate } from "./delete-template.cjs";
5
+ import { placidGetCollection } from "./get-collection.cjs";
6
+ import { placidGetCollections } from "./get-collections.cjs";
7
+ import { placidGetTemplate } from "./get-template.cjs";
8
+ import { placidListNlTemplates } from "./list-nl-templates.cjs";
9
+ import { placidListTemplates } from "./list-templates.cjs";
10
+ import { placidUpdateCollection } from "./update-collection.cjs";
11
+ import { placidUpdateTemplate } from "./update-template.cjs";
12
+ export { placidCreateCollection, placidCreateTemplate, placidDeleteCollection, placidDeleteTemplate, placidGetCollection, placidGetCollections, placidGetTemplate, placidListNlTemplates, placidListTemplates, placidUpdateCollection, placidUpdateTemplate };
@@ -0,0 +1,12 @@
1
+ import { placidCreateCollection } from "./create-collection.mjs";
2
+ import { placidCreateTemplate } from "./create-template.mjs";
3
+ import { placidDeleteCollection } from "./delete-collection.mjs";
4
+ import { placidDeleteTemplate } from "./delete-template.mjs";
5
+ import { placidGetCollection } from "./get-collection.mjs";
6
+ import { placidGetCollections } from "./get-collections.mjs";
7
+ import { placidGetTemplate } from "./get-template.mjs";
8
+ import { placidListNlTemplates } from "./list-nl-templates.mjs";
9
+ import { placidListTemplates } from "./list-templates.mjs";
10
+ import { placidUpdateCollection } from "./update-collection.mjs";
11
+ import { placidUpdateTemplate } from "./update-template.mjs";
12
+ export { placidCreateCollection, placidCreateTemplate, placidDeleteCollection, placidDeleteTemplate, placidGetCollection, placidGetCollections, placidGetTemplate, placidListNlTemplates, placidListTemplates, placidUpdateCollection, placidUpdateTemplate };
@@ -0,0 +1,12 @@
1
+ import { placidCreateCollection } from "./create-collection.mjs";
2
+ import { placidCreateTemplate } from "./create-template.mjs";
3
+ import { placidDeleteCollection } from "./delete-collection.mjs";
4
+ import { placidDeleteTemplate } from "./delete-template.mjs";
5
+ import { placidGetCollection } from "./get-collection.mjs";
6
+ import { placidGetCollections } from "./get-collections.mjs";
7
+ import { placidGetTemplate } from "./get-template.mjs";
8
+ import { placidListNlTemplates } from "./list-nl-templates.mjs";
9
+ import { placidListTemplates } from "./list-templates.mjs";
10
+ import { placidUpdateCollection } from "./update-collection.mjs";
11
+ import { placidUpdateTemplate } from "./update-template.mjs";
12
+ export { placidCreateCollection, placidCreateTemplate, placidDeleteCollection, placidDeleteTemplate, placidGetCollection, placidGetCollections, placidGetTemplate, placidListNlTemplates, placidListTemplates, placidUpdateCollection, placidUpdateTemplate };
@@ -0,0 +1,25 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-nl-templates.ts
4
+ const PlacidListNlTemplatesInput = zod.z.object({}).describe("Request model for listing all available templates via Natural Language API.");
5
+ const PlacidListNlTemplates_TemplateLayerSchema = zod.z.object({
6
+ name: zod.z.string().describe("Layer identifier name"),
7
+ type: zod.z.enum(["picture", "text"]).describe("Type of layer - either 'picture' for image/video layers or 'text' for text layers")
8
+ }).describe("Represents a single layer within a template that can be modified.");
9
+ const PlacidListNlTemplates_TemplateSchema = zod.z.object({
10
+ uuid: zod.z.string().describe("Unique template identifier (UUID) used to identify the template across all templates"),
11
+ title: zod.z.string().describe("User-defined name of the template"),
12
+ layers: zod.z.array(PlacidListNlTemplates_TemplateLayerSchema).describe("List of dynamic layers that can be modified with text or images").nullable().optional()
13
+ }).describe("Represents a Placid template with layers that can be filled via text and/or image URLs.");
14
+ const PlacidListNlTemplatesOutput = zod.z.object({ data: zod.z.array(PlacidListNlTemplates_TemplateSchema).describe("Array of available Placid templates").nullable().optional() }).describe("Response model containing list of available templates via Natural Language API.");
15
+ const placidListNlTemplates = require_action.action("PLACID_LIST_NL_TEMPLATES", {
16
+ slug: "placid-list-nl-templates",
17
+ name: "List NL Templates",
18
+ description: "Tool to list all available templates via the Natural Language API. Use when you need to discover available templates for generating images.",
19
+ input: PlacidListNlTemplatesInput,
20
+ output: PlacidListNlTemplatesOutput
21
+ });
22
+ //#endregion
23
+ exports.placidListNlTemplates = placidListNlTemplates;
24
+
25
+ //# sourceMappingURL=list-nl-templates.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-nl-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-nl-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListNlTemplatesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing all available templates via Natural Language API.\");\nconst PlacidListNlTemplates_TemplateLayerSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Layer identifier name\"),\n type: z.enum([\"picture\", \"text\"]).describe(\"Type of layer - either 'picture' for image/video layers or 'text' for text layers\"),\n}).describe(\"Represents a single layer within a template that can be modified.\");\nconst PlacidListNlTemplates_TemplateSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique template identifier (UUID) used to identify the template across all templates\"),\n title: z.string().describe(\"User-defined name of the template\"),\n layers: z.array(PlacidListNlTemplates_TemplateLayerSchema).describe(\"List of dynamic layers that can be modified with text or images\").nullable().optional(),\n}).describe(\"Represents a Placid template with layers that can be filled via text and/or image URLs.\");\nexport const PlacidListNlTemplatesOutput: z.ZodTypeAny = z.object({\n data: z.array(PlacidListNlTemplates_TemplateSchema).describe(\"Array of available Placid templates\").nullable().optional(),\n}).describe(\"Response model containing list of available templates via Natural Language API.\");\n\nexport const placidListNlTemplates = action(\"PLACID_LIST_NL_TEMPLATES\", {\n slug: \"placid-list-nl-templates\",\n name: \"List NL Templates\",\n description: \"Tool to list all available templates via the Natural Language API. Use when you need to discover available templates for generating images.\",\n input: PlacidListNlTemplatesInput,\n output: PlacidListNlTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6EAA6E;AAC3J,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAChI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CAChH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,yFAAyF;AACrG,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,MAAMA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,SAAS,iFAAiF;AAE7F,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-nl-templates.d.ts
4
+ declare const PlacidListNlTemplatesInput: z.ZodTypeAny;
5
+ declare const PlacidListNlTemplatesOutput: z.ZodTypeAny;
6
+ declare const placidListNlTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidListNlTemplates };
9
+ //# sourceMappingURL=list-nl-templates.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-nl-templates.d.cts","names":[],"sources":["../../src/actions/list-nl-templates.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAiH;AAAA,cAU/I,2BAAA,EAA6B,CAAA,CAAE,UAEkD;AAAA,cAEjF,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-nl-templates.d.ts
4
+ declare const PlacidListNlTemplatesInput: z.ZodTypeAny;
5
+ declare const PlacidListNlTemplatesOutput: z.ZodTypeAny;
6
+ declare const placidListNlTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidListNlTemplates };
9
+ //# sourceMappingURL=list-nl-templates.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-nl-templates.d.mts","names":[],"sources":["../../src/actions/list-nl-templates.ts"],"mappings":";;;cAIa,0BAAA,EAA4B,CAAA,CAAE,UAAiH;AAAA,cAU/I,2BAAA,EAA6B,CAAA,CAAE,UAEkD;AAAA,cAEjF,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,24 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-nl-templates.ts
4
+ const PlacidListNlTemplatesInput = z.object({}).describe("Request model for listing all available templates via Natural Language API.");
5
+ const PlacidListNlTemplates_TemplateLayerSchema = z.object({
6
+ name: z.string().describe("Layer identifier name"),
7
+ type: z.enum(["picture", "text"]).describe("Type of layer - either 'picture' for image/video layers or 'text' for text layers")
8
+ }).describe("Represents a single layer within a template that can be modified.");
9
+ const PlacidListNlTemplates_TemplateSchema = z.object({
10
+ uuid: z.string().describe("Unique template identifier (UUID) used to identify the template across all templates"),
11
+ title: z.string().describe("User-defined name of the template"),
12
+ layers: z.array(PlacidListNlTemplates_TemplateLayerSchema).describe("List of dynamic layers that can be modified with text or images").nullable().optional()
13
+ }).describe("Represents a Placid template with layers that can be filled via text and/or image URLs.");
14
+ const placidListNlTemplates = action("PLACID_LIST_NL_TEMPLATES", {
15
+ slug: "placid-list-nl-templates",
16
+ name: "List NL Templates",
17
+ description: "Tool to list all available templates via the Natural Language API. Use when you need to discover available templates for generating images.",
18
+ input: PlacidListNlTemplatesInput,
19
+ output: z.object({ data: z.array(PlacidListNlTemplates_TemplateSchema).describe("Array of available Placid templates").nullable().optional() }).describe("Response model containing list of available templates via Natural Language API.")
20
+ });
21
+ //#endregion
22
+ export { placidListNlTemplates };
23
+
24
+ //# sourceMappingURL=list-nl-templates.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-nl-templates.mjs","names":[],"sources":["../../src/actions/list-nl-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListNlTemplatesInput: z.ZodTypeAny = z.object({}).describe(\"Request model for listing all available templates via Natural Language API.\");\nconst PlacidListNlTemplates_TemplateLayerSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Layer identifier name\"),\n type: z.enum([\"picture\", \"text\"]).describe(\"Type of layer - either 'picture' for image/video layers or 'text' for text layers\"),\n}).describe(\"Represents a single layer within a template that can be modified.\");\nconst PlacidListNlTemplates_TemplateSchema: z.ZodTypeAny = z.object({\n uuid: z.string().describe(\"Unique template identifier (UUID) used to identify the template across all templates\"),\n title: z.string().describe(\"User-defined name of the template\"),\n layers: z.array(PlacidListNlTemplates_TemplateLayerSchema).describe(\"List of dynamic layers that can be modified with text or images\").nullable().optional(),\n}).describe(\"Represents a Placid template with layers that can be filled via text and/or image URLs.\");\nexport const PlacidListNlTemplatesOutput: z.ZodTypeAny = z.object({\n data: z.array(PlacidListNlTemplates_TemplateSchema).describe(\"Array of available Placid templates\").nullable().optional(),\n}).describe(\"Response model containing list of available templates via Natural Language API.\");\n\nexport const placidListNlTemplates = action(\"PLACID_LIST_NL_TEMPLATES\", {\n slug: \"placid-list-nl-templates\",\n name: \"List NL Templates\",\n description: \"Tool to list all available templates via the Natural Language API. Use when you need to discover available templates for generating images.\",\n input: PlacidListNlTemplatesInput,\n output: PlacidListNlTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6EAA6E;AAC3J,MAAM,4CAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CACjD,MAAM,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAChI,CAAC,CAAC,CAAC,SAAS,mEAAmE;AAC/E,MAAM,uCAAqD,EAAE,OAAO;CAClE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF;CAChH,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC;CAC9D,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,SAAS,yFAAyF;AAKrG,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuD,EAAE,OAAO,EAChE,MAAM,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,SAAS,iFAOF;AACV,CAAC"}
@@ -0,0 +1,40 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/list-templates.ts
4
+ const PlacidListTemplatesInput = zod.z.object({
5
+ cursor: zod.z.string().describe("Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.").optional(),
6
+ order_by: zod.z.string().describe("Sort templates. Format: <field>-<direction>. Fields: created_at, updated_at, title. Directions: asc, desc").optional(),
7
+ title_filter: zod.z.string().describe("Filter templates by title").optional(),
8
+ collection_id: zod.z.string().describe("Filter templates by collection UUID").optional()
9
+ }).describe("Request model for retrieving templates with optional filtering and pagination.");
10
+ const PlacidListTemplates_TemplateSchema = zod.z.object({
11
+ tags: zod.z.array(zod.z.string()).describe("List of tags associated with the template").nullable().optional(),
12
+ uuid: zod.z.string().describe("Unique identifier of the template (UUID)"),
13
+ title: zod.z.string().describe("Title of the template"),
14
+ layers: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of layers in the template").nullable().optional(),
15
+ thumbnail: zod.z.string().describe("URL of the template thumbnail preview").nullable().optional()
16
+ }).describe("Representation of a single Placid template.");
17
+ const PlacidListTemplates_MetaSchema = zod.z.object({
18
+ path: zod.z.string().describe("API endpoint path").nullable().optional(),
19
+ per_page: zod.z.number().int().describe("Number of templates per page").nullable().optional()
20
+ }).describe("Pagination metadata for templates listing.");
21
+ const PlacidListTemplates_LinksSchema = zod.z.object({
22
+ next: zod.z.string().describe("URL to the next page").nullable().optional(),
23
+ prev: zod.z.string().describe("URL to the previous page").nullable().optional()
24
+ }).describe("Pagination links for cursor-based navigation.");
25
+ const PlacidListTemplatesOutput = zod.z.object({
26
+ data: zod.z.array(PlacidListTemplates_TemplateSchema).describe("List of templates").nullable().optional(),
27
+ meta: PlacidListTemplates_MetaSchema.nullable().optional(),
28
+ links: PlacidListTemplates_LinksSchema.nullable().optional()
29
+ }).describe("Response model containing a list of templates and pagination metadata.");
30
+ const placidListTemplates = require_action.action("PLACID_LIST_TEMPLATES", {
31
+ slug: "placid-list-templates",
32
+ name: "List Templates",
33
+ description: "Tool to retrieve a list of templates from your project. Returns 20 items per page with cursor pagination. Use to browse templates, optionally filtered by collection or title.",
34
+ input: PlacidListTemplatesInput,
35
+ output: PlacidListTemplatesOutput
36
+ });
37
+ //#endregion
38
+ exports.placidListTemplates = placidListTemplates;
39
+
40
+ //# sourceMappingURL=list-templates.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListTemplatesInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.\").optional(),\n order_by: z.string().describe(\"Sort templates. Format: <field>-<direction>. Fields: created_at, updated_at, title. Directions: asc, desc\").optional(),\n title_filter: z.string().describe(\"Filter templates by title\").optional(),\n collection_id: z.string().describe(\"Filter templates by collection UUID\").optional(),\n}).describe(\"Request model for retrieving templates with optional filtering and pagination.\");\nconst PlacidListTemplates_TemplateSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the template\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the template (UUID)\"),\n title: z.string().describe(\"Title of the template\"),\n layers: z.array(z.record(z.string(), z.unknown())).describe(\"List of layers in the template\").nullable().optional(),\n thumbnail: z.string().describe(\"URL of the template thumbnail preview\").nullable().optional(),\n}).describe(\"Representation of a single Placid template.\");\nconst PlacidListTemplates_MetaSchema: z.ZodTypeAny = z.object({\n path: z.string().describe(\"API endpoint path\").nullable().optional(),\n per_page: z.number().int().describe(\"Number of templates per page\").nullable().optional(),\n}).describe(\"Pagination metadata for templates listing.\");\nconst PlacidListTemplates_LinksSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page\").nullable().optional(),\n prev: z.string().describe(\"URL to the previous page\").nullable().optional(),\n}).describe(\"Pagination links for cursor-based navigation.\");\nexport const PlacidListTemplatesOutput: z.ZodTypeAny = z.object({\n data: z.array(PlacidListTemplates_TemplateSchema).describe(\"List of templates\").nullable().optional(),\n meta: PlacidListTemplates_MetaSchema.nullable().optional(),\n links: PlacidListTemplates_LinksSchema.nullable().optional(),\n}).describe(\"Response model containing a list of templates and pagination metadata.\");\n\nexport const placidListTemplates = action(\"PLACID_LIST_TEMPLATES\", {\n slug: \"placid-list-templates\",\n name: \"List Templates\",\n description: \"Tool to retrieve a list of templates from your project. Returns 20 items per page with cursor pagination. Use to browse templates, optionally filtered by collection or title.\",\n input: PlacidListTemplatesInput,\n output: PlacidListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACrJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,qCAAmDA,IAAAA,EAAE,OAAO;CAChE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAClD,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,iCAA+CA,IAAAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;CACzD,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;AAC7D,CAAC,CAAC,CAAC,SAAS,wEAAwE;AAEpF,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-templates.d.ts
4
+ declare const PlacidListTemplatesInput: z.ZodTypeAny;
5
+ declare const PlacidListTemplatesOutput: z.ZodTypeAny;
6
+ declare const placidListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidListTemplates };
9
+ //# sourceMappingURL=list-templates.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.d.cts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKoD;AAAA,cAgBhF,yBAAA,EAA2B,CAAA,CAAE,UAI2C;AAAA,cAExE,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/list-templates.d.ts
4
+ declare const PlacidListTemplatesInput: z.ZodTypeAny;
5
+ declare const PlacidListTemplatesOutput: z.ZodTypeAny;
6
+ declare const placidListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidListTemplates };
9
+ //# sourceMappingURL=list-templates.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.d.mts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAKoD;AAAA,cAgBhF,yBAAA,EAA2B,CAAA,CAAE,UAI2C;AAAA,cAExE,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,39 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/list-templates.ts
4
+ const PlacidListTemplatesInput = z.object({
5
+ cursor: z.string().describe("Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.").optional(),
6
+ order_by: z.string().describe("Sort templates. Format: <field>-<direction>. Fields: created_at, updated_at, title. Directions: asc, desc").optional(),
7
+ title_filter: z.string().describe("Filter templates by title").optional(),
8
+ collection_id: z.string().describe("Filter templates by collection UUID").optional()
9
+ }).describe("Request model for retrieving templates with optional filtering and pagination.");
10
+ const PlacidListTemplates_TemplateSchema = z.object({
11
+ tags: z.array(z.string()).describe("List of tags associated with the template").nullable().optional(),
12
+ uuid: z.string().describe("Unique identifier of the template (UUID)"),
13
+ title: z.string().describe("Title of the template"),
14
+ layers: z.array(z.record(z.string(), z.unknown())).describe("List of layers in the template").nullable().optional(),
15
+ thumbnail: z.string().describe("URL of the template thumbnail preview").nullable().optional()
16
+ }).describe("Representation of a single Placid template.");
17
+ const PlacidListTemplates_MetaSchema = z.object({
18
+ path: z.string().describe("API endpoint path").nullable().optional(),
19
+ per_page: z.number().int().describe("Number of templates per page").nullable().optional()
20
+ }).describe("Pagination metadata for templates listing.");
21
+ const PlacidListTemplates_LinksSchema = z.object({
22
+ next: z.string().describe("URL to the next page").nullable().optional(),
23
+ prev: z.string().describe("URL to the previous page").nullable().optional()
24
+ }).describe("Pagination links for cursor-based navigation.");
25
+ const placidListTemplates = action("PLACID_LIST_TEMPLATES", {
26
+ slug: "placid-list-templates",
27
+ name: "List Templates",
28
+ description: "Tool to retrieve a list of templates from your project. Returns 20 items per page with cursor pagination. Use to browse templates, optionally filtered by collection or title.",
29
+ input: PlacidListTemplatesInput,
30
+ output: z.object({
31
+ data: z.array(PlacidListTemplates_TemplateSchema).describe("List of templates").nullable().optional(),
32
+ meta: PlacidListTemplates_MetaSchema.nullable().optional(),
33
+ links: PlacidListTemplates_LinksSchema.nullable().optional()
34
+ }).describe("Response model containing a list of templates and pagination metadata.")
35
+ });
36
+ //#endregion
37
+ export { placidListTemplates };
38
+
39
+ //# sourceMappingURL=list-templates.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListTemplatesInput: z.ZodTypeAny = z.object({\n cursor: z.string().describe(\"Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.\").optional(),\n order_by: z.string().describe(\"Sort templates. Format: <field>-<direction>. Fields: created_at, updated_at, title. Directions: asc, desc\").optional(),\n title_filter: z.string().describe(\"Filter templates by title\").optional(),\n collection_id: z.string().describe(\"Filter templates by collection UUID\").optional(),\n}).describe(\"Request model for retrieving templates with optional filtering and pagination.\");\nconst PlacidListTemplates_TemplateSchema: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the template\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the template (UUID)\"),\n title: z.string().describe(\"Title of the template\"),\n layers: z.array(z.record(z.string(), z.unknown())).describe(\"List of layers in the template\").nullable().optional(),\n thumbnail: z.string().describe(\"URL of the template thumbnail preview\").nullable().optional(),\n}).describe(\"Representation of a single Placid template.\");\nconst PlacidListTemplates_MetaSchema: z.ZodTypeAny = z.object({\n path: z.string().describe(\"API endpoint path\").nullable().optional(),\n per_page: z.number().int().describe(\"Number of templates per page\").nullable().optional(),\n}).describe(\"Pagination metadata for templates listing.\");\nconst PlacidListTemplates_LinksSchema: z.ZodTypeAny = z.object({\n next: z.string().describe(\"URL to the next page\").nullable().optional(),\n prev: z.string().describe(\"URL to the previous page\").nullable().optional(),\n}).describe(\"Pagination links for cursor-based navigation.\");\nexport const PlacidListTemplatesOutput: z.ZodTypeAny = z.object({\n data: z.array(PlacidListTemplates_TemplateSchema).describe(\"List of templates\").nullable().optional(),\n meta: PlacidListTemplates_MetaSchema.nullable().optional(),\n links: PlacidListTemplates_LinksSchema.nullable().optional(),\n}).describe(\"Response model containing a list of templates and pagination metadata.\");\n\nexport const placidListTemplates = action(\"PLACID_LIST_TEMPLATES\", {\n slug: \"placid-list-templates\",\n name: \"List Templates\",\n description: \"Tool to retrieve a list of templates from your project. Returns 20 items per page with cursor pagination. Use to browse templates, optionally filtered by collection or title.\",\n input: PlacidListTemplatesInput,\n output: PlacidListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyC,EAAE,OAAO;CAC7D,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACrJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,qCAAmD,EAAE,OAAO;CAChE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C;CACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAClD,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9F,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,iCAA+C,EAAE,OAAO;CAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,4CAA4C;AACxD,MAAM,kCAAgD,EAAE,OAAO;CAC7D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAO3D,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXqD,EAAE,OAAO;EAC9D,MAAM,EAAE,MAAM,kCAAkC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,MAAM,+BAA+B,SAAS,CAAC,CAAC,SAAS;EACzD,OAAO,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC7D,CAAC,CAAC,CAAC,SAAS,wEAOF;AACV,CAAC"}
@@ -0,0 +1,28 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/update-collection.ts
4
+ const PlacidUpdateCollectionInput = zod.z.object({
5
+ title: zod.z.string().describe("New title of the collection (max 255 characters)").optional(),
6
+ custom_data: zod.z.string().describe("Custom reference data to save and forward with the collection (max 1024 characters)").optional(),
7
+ collection_id: zod.z.string().describe("Unique collection ID to update"),
8
+ template_uuids: zod.z.array(zod.z.string()).describe("Replace entire list of template UUIDs in the collection (limited to 500 templates). Mutually exclusive with add_template_uuids and remove_template_uuids.").optional(),
9
+ add_template_uuids: zod.z.array(zod.z.string()).describe("List of template UUIDs to add to the collection. Cannot be used with template_uuids.").optional(),
10
+ remove_template_uuids: zod.z.array(zod.z.string()).describe("List of template UUIDs to remove from the collection. Cannot be used with template_uuids.").optional()
11
+ }).describe("Request model for updating an existing template collection.");
12
+ const PlacidUpdateCollectionOutput = zod.z.object({
13
+ id: zod.z.string().describe("Unique identifier of the collection (UUID)"),
14
+ title: zod.z.string().describe("Title of the collection"),
15
+ custom_data: zod.z.string().describe("Custom reference data for the collection").nullable().optional(),
16
+ template_uuids: zod.z.array(zod.z.string()).describe("List of template UUIDs in the collection (max 500)").nullable().optional()
17
+ }).describe("Response model for the updated collection.");
18
+ const placidUpdateCollection = require_action.action("PLACID_UPDATE_COLLECTION", {
19
+ slug: "placid-update-collection",
20
+ name: "Update Collection",
21
+ description: "Tool to update an existing template collection. Use to modify title, custom_data, or manage templates (replace all, or incrementally add/remove specific templates).",
22
+ input: PlacidUpdateCollectionInput,
23
+ output: PlacidUpdateCollectionOutput
24
+ });
25
+ //#endregion
26
+ exports.placidUpdateCollection = placidUpdateCollection;
27
+
28
+ //# sourceMappingURL=update-collection.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collection.cjs","names":["z","action"],"sources":["../../src/actions/update-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidUpdateCollectionInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title of the collection (max 255 characters)\").optional(),\n custom_data: z.string().describe(\"Custom reference data to save and forward with the collection (max 1024 characters)\").optional(),\n collection_id: z.string().describe(\"Unique collection ID to update\"),\n template_uuids: z.array(z.string()).describe(\"Replace entire list of template UUIDs in the collection (limited to 500 templates). Mutually exclusive with add_template_uuids and remove_template_uuids.\").optional(),\n add_template_uuids: z.array(z.string()).describe(\"List of template UUIDs to add to the collection. Cannot be used with template_uuids.\").optional(),\n remove_template_uuids: z.array(z.string()).describe(\"List of template UUIDs to remove from the collection. Cannot be used with template_uuids.\").optional(),\n}).describe(\"Request model for updating an existing template collection.\");\nexport const PlacidUpdateCollectionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\"),\n title: z.string().describe(\"Title of the collection\"),\n custom_data: z.string().describe(\"Custom reference data for the collection\").nullable().optional(),\n template_uuids: z.array(z.string()).describe(\"List of template UUIDs in the collection (max 500)\").nullable().optional(),\n}).describe(\"Response model for the updated collection.\");\n\nexport const placidUpdateCollection = action(\"PLACID_UPDATE_COLLECTION\", {\n slug: \"placid-update-collection\",\n name: \"Update Collection\",\n description: \"Tool to update an existing template collection. Use to modify title, custom_data, or manage templates (replace all, or incrementally add/remove specific templates).\",\n input: PlacidUpdateCollectionInput,\n output: PlacidUpdateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACxF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;CACjI,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACnE,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;CACnN,oBAAoBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAClJ,uBAAuBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;AAC5J,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,4CAA4C;AAExD,MAAa,yBAAyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-collection.d.ts
4
+ declare const PlacidUpdateCollectionInput: z.ZodTypeAny;
5
+ declare const PlacidUpdateCollectionOutput: z.ZodTypeAny;
6
+ declare const placidUpdateCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidUpdateCollection };
9
+ //# sourceMappingURL=update-collection.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collection.d.cts","names":[],"sources":["../../src/actions/update-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAO8B;AAAA,cAC7D,4BAAA,EAA8B,CAAA,CAAE,UAKY;AAAA,cAE5C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/update-collection.d.ts
4
+ declare const PlacidUpdateCollectionInput: z.ZodTypeAny;
5
+ declare const PlacidUpdateCollectionOutput: z.ZodTypeAny;
6
+ declare const placidUpdateCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { placidUpdateCollection };
9
+ //# sourceMappingURL=update-collection.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collection.d.mts","names":[],"sources":["../../src/actions/update-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAO8B;AAAA,cAC7D,4BAAA,EAA8B,CAAA,CAAE,UAKY;AAAA,cAE5C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,25 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const placidUpdateCollection = action("PLACID_UPDATE_COLLECTION", {
4
+ slug: "placid-update-collection",
5
+ name: "Update Collection",
6
+ description: "Tool to update an existing template collection. Use to modify title, custom_data, or manage templates (replace all, or incrementally add/remove specific templates).",
7
+ input: z.object({
8
+ title: z.string().describe("New title of the collection (max 255 characters)").optional(),
9
+ custom_data: z.string().describe("Custom reference data to save and forward with the collection (max 1024 characters)").optional(),
10
+ collection_id: z.string().describe("Unique collection ID to update"),
11
+ template_uuids: z.array(z.string()).describe("Replace entire list of template UUIDs in the collection (limited to 500 templates). Mutually exclusive with add_template_uuids and remove_template_uuids.").optional(),
12
+ add_template_uuids: z.array(z.string()).describe("List of template UUIDs to add to the collection. Cannot be used with template_uuids.").optional(),
13
+ remove_template_uuids: z.array(z.string()).describe("List of template UUIDs to remove from the collection. Cannot be used with template_uuids.").optional()
14
+ }).describe("Request model for updating an existing template collection."),
15
+ output: z.object({
16
+ id: z.string().describe("Unique identifier of the collection (UUID)"),
17
+ title: z.string().describe("Title of the collection"),
18
+ custom_data: z.string().describe("Custom reference data for the collection").nullable().optional(),
19
+ template_uuids: z.array(z.string()).describe("List of template UUIDs in the collection (max 500)").nullable().optional()
20
+ }).describe("Response model for the updated collection.")
21
+ });
22
+ //#endregion
23
+ export { placidUpdateCollection };
24
+
25
+ //# sourceMappingURL=update-collection.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-collection.mjs","names":[],"sources":["../../src/actions/update-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidUpdateCollectionInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"New title of the collection (max 255 characters)\").optional(),\n custom_data: z.string().describe(\"Custom reference data to save and forward with the collection (max 1024 characters)\").optional(),\n collection_id: z.string().describe(\"Unique collection ID to update\"),\n template_uuids: z.array(z.string()).describe(\"Replace entire list of template UUIDs in the collection (limited to 500 templates). Mutually exclusive with add_template_uuids and remove_template_uuids.\").optional(),\n add_template_uuids: z.array(z.string()).describe(\"List of template UUIDs to add to the collection. Cannot be used with template_uuids.\").optional(),\n remove_template_uuids: z.array(z.string()).describe(\"List of template UUIDs to remove from the collection. Cannot be used with template_uuids.\").optional(),\n}).describe(\"Request model for updating an existing template collection.\");\nexport const PlacidUpdateCollectionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\"),\n title: z.string().describe(\"Title of the collection\"),\n custom_data: z.string().describe(\"Custom reference data for the collection\").nullable().optional(),\n template_uuids: z.array(z.string()).describe(\"List of template UUIDs in the collection (max 500)\").nullable().optional(),\n}).describe(\"Response model for the updated collection.\");\n\nexport const placidUpdateCollection = action(\"PLACID_UPDATE_COLLECTION\", {\n slug: \"placid-update-collection\",\n name: \"Update Collection\",\n description: \"Tool to update an existing template collection. Use to modify title, custom_data, or manage templates (replace all, or incrementally add/remove specific templates).\",\n input: PlacidUpdateCollectionInput,\n output: PlacidUpdateCollectionOutput,\n});\n"],"mappings":";;AAmBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBuD,EAAE,OAAO;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACxF,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qFAAqF,CAAC,CAAC,SAAS;EACjI,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;EACnE,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2JAA2J,CAAC,CAAC,SAAS;EACnN,oBAAoB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAClJ,uBAAuB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAC5J,CAAC,CAAC,CAAC,SAAS,6DAYH;CACP,QAZwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;EACpE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;EACpD,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzH,CAAC,CAAC,CAAC,SAAS,4CAOF;AACV,CAAC"}