@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.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/create-collection.cjs +25 -0
- package/dist/actions/create-collection.cjs.map +1 -0
- package/dist/actions/create-collection.d.cts +9 -0
- package/dist/actions/create-collection.d.cts.map +1 -0
- package/dist/actions/create-collection.d.mts +9 -0
- package/dist/actions/create-collection.d.mts.map +1 -0
- package/dist/actions/create-collection.mjs +22 -0
- package/dist/actions/create-collection.mjs.map +1 -0
- package/dist/actions/create-template.cjs +37 -0
- package/dist/actions/create-template.cjs.map +1 -0
- package/dist/actions/create-template.d.cts +9 -0
- package/dist/actions/create-template.d.cts.map +1 -0
- package/dist/actions/create-template.d.mts +9 -0
- package/dist/actions/create-template.d.mts.map +1 -0
- package/dist/actions/create-template.mjs +36 -0
- package/dist/actions/create-template.mjs.map +1 -0
- package/dist/actions/delete-collection.cjs +19 -0
- package/dist/actions/delete-collection.cjs.map +1 -0
- package/dist/actions/delete-collection.d.cts +9 -0
- package/dist/actions/delete-collection.d.cts.map +1 -0
- package/dist/actions/delete-collection.d.mts +9 -0
- package/dist/actions/delete-collection.d.mts.map +1 -0
- package/dist/actions/delete-collection.mjs +16 -0
- package/dist/actions/delete-collection.mjs.map +1 -0
- package/dist/actions/delete-template.cjs +19 -0
- package/dist/actions/delete-template.cjs.map +1 -0
- package/dist/actions/delete-template.d.cts +9 -0
- package/dist/actions/delete-template.d.cts.map +1 -0
- package/dist/actions/delete-template.d.mts +9 -0
- package/dist/actions/delete-template.d.mts.map +1 -0
- package/dist/actions/delete-template.mjs +16 -0
- package/dist/actions/delete-template.mjs.map +1 -0
- package/dist/actions/get-collection.cjs +21 -0
- package/dist/actions/get-collection.cjs.map +1 -0
- package/dist/actions/get-collection.d.cts +9 -0
- package/dist/actions/get-collection.d.cts.map +1 -0
- package/dist/actions/get-collection.d.mts +9 -0
- package/dist/actions/get-collection.d.mts.map +1 -0
- package/dist/actions/get-collection.mjs +18 -0
- package/dist/actions/get-collection.mjs.map +1 -0
- package/dist/actions/get-collections.cjs +39 -0
- package/dist/actions/get-collections.cjs.map +1 -0
- package/dist/actions/get-collections.d.cts +9 -0
- package/dist/actions/get-collections.d.cts.map +1 -0
- package/dist/actions/get-collections.d.mts +9 -0
- package/dist/actions/get-collections.d.mts.map +1 -0
- package/dist/actions/get-collections.mjs +38 -0
- package/dist/actions/get-collections.mjs.map +1 -0
- package/dist/actions/get-template.cjs +22 -0
- package/dist/actions/get-template.cjs.map +1 -0
- package/dist/actions/get-template.d.cts +9 -0
- package/dist/actions/get-template.d.cts.map +1 -0
- package/dist/actions/get-template.d.mts +9 -0
- package/dist/actions/get-template.d.mts.map +1 -0
- package/dist/actions/get-template.mjs +19 -0
- package/dist/actions/get-template.mjs.map +1 -0
- package/dist/actions/index.cjs +23 -0
- package/dist/actions/index.d.cts +12 -0
- package/dist/actions/index.d.mts +12 -0
- package/dist/actions/index.mjs +12 -0
- package/dist/actions/list-nl-templates.cjs +25 -0
- package/dist/actions/list-nl-templates.cjs.map +1 -0
- package/dist/actions/list-nl-templates.d.cts +9 -0
- package/dist/actions/list-nl-templates.d.cts.map +1 -0
- package/dist/actions/list-nl-templates.d.mts +9 -0
- package/dist/actions/list-nl-templates.d.mts.map +1 -0
- package/dist/actions/list-nl-templates.mjs +24 -0
- package/dist/actions/list-nl-templates.mjs.map +1 -0
- package/dist/actions/list-templates.cjs +40 -0
- package/dist/actions/list-templates.cjs.map +1 -0
- package/dist/actions/list-templates.d.cts +9 -0
- package/dist/actions/list-templates.d.cts.map +1 -0
- package/dist/actions/list-templates.d.mts +9 -0
- package/dist/actions/list-templates.d.mts.map +1 -0
- package/dist/actions/list-templates.mjs +39 -0
- package/dist/actions/list-templates.mjs.map +1 -0
- package/dist/actions/update-collection.cjs +28 -0
- package/dist/actions/update-collection.cjs.map +1 -0
- package/dist/actions/update-collection.d.cts +9 -0
- package/dist/actions/update-collection.d.cts.map +1 -0
- package/dist/actions/update-collection.d.mts +9 -0
- package/dist/actions/update-collection.d.mts.map +1 -0
- package/dist/actions/update-collection.mjs +25 -0
- package/dist/actions/update-collection.mjs.map +1 -0
- package/dist/actions/update-template.cjs +31 -0
- package/dist/actions/update-template.cjs.map +1 -0
- package/dist/actions/update-template.d.cts +9 -0
- package/dist/actions/update-template.d.cts.map +1 -0
- package/dist/actions/update-template.d.mts +9 -0
- package/dist/actions/update-template.d.mts.map +1 -0
- package/dist/actions/update-template.mjs +28 -0
- package/dist/actions/update-template.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +28 -0
- package/dist/index.d.cts +14 -0
- package/dist/index.d.mts +14 -0
- package/dist/index.mjs +15 -0
- package/package.json +49 -0
package/README.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @keystrokehq/placid
|
|
2
|
+
|
|
3
|
+
Keystroke-managed integration.
|
|
4
|
+
|
|
5
|
+
**App:** `placid`
|
|
6
|
+
**Version:** `20260615_00`
|
|
7
|
+
**Actions:** 11
|
|
8
|
+
|
|
9
|
+
```ts
|
|
10
|
+
import { defineAgent } from "@keystrokehq/keystroke/agent";
|
|
11
|
+
import { placidCreateCollection } from "@keystrokehq/placid/actions";
|
|
12
|
+
|
|
13
|
+
export default defineAgent({
|
|
14
|
+
key: "placid-agent",
|
|
15
|
+
tools: [placidCreateCollection],
|
|
16
|
+
});
|
|
17
|
+
```
|
package/dist/action.cjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_app = require("./app.cjs");
|
|
2
|
+
const require_execute = require("./execute.cjs");
|
|
3
|
+
require("zod");
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return require_app.placid.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await require_execute.executePlacidTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.action = action;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["placid","executePlacidTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { placid } from \"./app\";\nimport { executePlacidTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return placid.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlacidTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { placid } from "./app.mjs";
|
|
2
|
+
import { executePlacidTool } from "./execute.mjs";
|
|
3
|
+
import "zod";
|
|
4
|
+
//#region src/action.ts
|
|
5
|
+
/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */
|
|
6
|
+
function action(tool, def) {
|
|
7
|
+
return placid.action({
|
|
8
|
+
slug: def.slug,
|
|
9
|
+
name: def.name,
|
|
10
|
+
description: def.description,
|
|
11
|
+
input: def.input,
|
|
12
|
+
output: def.output,
|
|
13
|
+
async run(input) {
|
|
14
|
+
return def.output.parse(await executePlacidTool(tool, input));
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { action };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=action.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { placid } from \"./app\";\nimport { executePlacidTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return placid.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePlacidTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-collection.ts
|
|
4
|
+
const PlacidCreateCollectionInput = zod.z.object({
|
|
5
|
+
title: zod.z.string().describe("Title of the collection (max 255 chars)"),
|
|
6
|
+
custom_data: zod.z.string().describe("Custom data to save and forward (max 255 chars)").optional(),
|
|
7
|
+
template_uuids: zod.z.array(zod.z.string()).describe("Array of template UUIDs to include (limited to 500)").optional()
|
|
8
|
+
}).describe("Request model for creating a new template collection.");
|
|
9
|
+
const PlacidCreateCollectionOutput = zod.z.object({
|
|
10
|
+
id: zod.z.string().describe("Unique identifier of the collection (UUID)").nullable().optional(),
|
|
11
|
+
title: zod.z.string().describe("Title of the collection").nullable().optional(),
|
|
12
|
+
custom_data: zod.z.string().describe("Custom reference data for the collection (max 255 chars)").nullable().optional(),
|
|
13
|
+
template_uuids: zod.z.array(zod.z.string()).describe("List of template UUIDs included in the collection").nullable().optional()
|
|
14
|
+
}).describe("Response model for a newly created template collection.");
|
|
15
|
+
const placidCreateCollection = require_action.action("PLACID_CREATE_COLLECTION", {
|
|
16
|
+
slug: "placid-create-collection",
|
|
17
|
+
name: "Create Collection",
|
|
18
|
+
description: "Tool to create a new template collection to group multiple templates. Use when organizing templates into collections with custom metadata.",
|
|
19
|
+
input: PlacidCreateCollectionInput,
|
|
20
|
+
output: PlacidCreateCollectionOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.placidCreateCollection = placidCreateCollection;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=create-collection.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-collection.cjs","names":["z","action"],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidCreateCollectionInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the collection (max 255 chars)\"),\n custom_data: z.string().describe(\"Custom data to save and forward (max 255 chars)\").optional(),\n template_uuids: z.array(z.string()).describe(\"Array of template UUIDs to include (limited to 500)\").optional(),\n}).describe(\"Request model for creating a new template collection.\");\nexport const PlacidCreateCollectionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\").nullable().optional(),\n title: z.string().describe(\"Title of the collection\").nullable().optional(),\n custom_data: z.string().describe(\"Custom reference data for the collection (max 255 chars)\").nullable().optional(),\n template_uuids: z.array(z.string()).describe(\"List of template UUIDs included in the collection\").nullable().optional(),\n}).describe(\"Response model for a newly created template collection.\");\n\nexport const placidCreateCollection = action(\"PLACID_CREATE_COLLECTION\", {\n slug: \"placid-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new template collection to group multiple templates. Use when organizing templates into collections with custom metadata.\",\n input: PlacidCreateCollectionInput,\n output: PlacidCreateCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;CACpE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CAC7F,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjH,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxH,CAAC,CAAC,CAAC,SAAS,yDAAyD;AAErE,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/create-collection.d.ts
|
|
4
|
+
declare const PlacidCreateCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidCreateCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidCreateCollection };
|
|
9
|
+
//# sourceMappingURL=create-collection.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-collection.d.cts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAIwB;AAAA,cACvD,4BAAA,EAA8B,CAAA,CAAE,UAKyB;AAAA,cAEzD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-collection.d.ts
|
|
4
|
+
declare const PlacidCreateCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidCreateCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidCreateCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidCreateCollection };
|
|
9
|
+
//# sourceMappingURL=create-collection.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-collection.d.mts","names":[],"sources":["../../src/actions/create-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAIwB;AAAA,cACvD,4BAAA,EAA8B,CAAA,CAAE,UAKyB;AAAA,cAEzD,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const placidCreateCollection = action("PLACID_CREATE_COLLECTION", {
|
|
4
|
+
slug: "placid-create-collection",
|
|
5
|
+
name: "Create Collection",
|
|
6
|
+
description: "Tool to create a new template collection to group multiple templates. Use when organizing templates into collections with custom metadata.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
title: z.string().describe("Title of the collection (max 255 chars)"),
|
|
9
|
+
custom_data: z.string().describe("Custom data to save and forward (max 255 chars)").optional(),
|
|
10
|
+
template_uuids: z.array(z.string()).describe("Array of template UUIDs to include (limited to 500)").optional()
|
|
11
|
+
}).describe("Request model for creating a new template collection."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
id: z.string().describe("Unique identifier of the collection (UUID)").nullable().optional(),
|
|
14
|
+
title: z.string().describe("Title of the collection").nullable().optional(),
|
|
15
|
+
custom_data: z.string().describe("Custom reference data for the collection (max 255 chars)").nullable().optional(),
|
|
16
|
+
template_uuids: z.array(z.string()).describe("List of template UUIDs included in the collection").nullable().optional()
|
|
17
|
+
}).describe("Response model for a newly created template collection.")
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { placidCreateCollection };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=create-collection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-collection.mjs","names":[],"sources":["../../src/actions/create-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidCreateCollectionInput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the collection (max 255 chars)\"),\n custom_data: z.string().describe(\"Custom data to save and forward (max 255 chars)\").optional(),\n template_uuids: z.array(z.string()).describe(\"Array of template UUIDs to include (limited to 500)\").optional(),\n}).describe(\"Request model for creating a new template collection.\");\nexport const PlacidCreateCollectionOutput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\").nullable().optional(),\n title: z.string().describe(\"Title of the collection\").nullable().optional(),\n custom_data: z.string().describe(\"Custom reference data for the collection (max 255 chars)\").nullable().optional(),\n template_uuids: z.array(z.string()).describe(\"List of template UUIDs included in the collection\").nullable().optional(),\n}).describe(\"Response model for a newly created template collection.\");\n\nexport const placidCreateCollection = action(\"PLACID_CREATE_COLLECTION\", {\n slug: \"placid-create-collection\",\n name: \"Create Collection\",\n description: \"Tool to create a new template collection to group multiple templates. Use when organizing templates into collections with custom metadata.\",\n input: PlacidCreateCollectionInput,\n output: PlacidCreateCollectionOutput,\n});\n"],"mappings":";;AAgBA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBuD,EAAE,OAAO;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;EACpE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;EAC7F,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC/G,CAAC,CAAC,CAAC,SAAS,uDAYH;CACP,QAZwD,EAAE,OAAO;EACjE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjH,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxH,CAAC,CAAC,CAAC,SAAS,yDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/create-template.ts
|
|
4
|
+
const PlacidCreateTemplateInput = zod.z.object({
|
|
5
|
+
url: zod.z.string().describe("Optional URL pointing to a PSD or other template source.").optional(),
|
|
6
|
+
tags: zod.z.array(zod.z.string()).describe("Optional list of tags to organize templates.").optional(),
|
|
7
|
+
title: zod.z.string().describe("Name of the template."),
|
|
8
|
+
width: zod.z.number().int().describe("Width of the template in pixels (must be >= 10)."),
|
|
9
|
+
height: zod.z.number().int().describe("Height of the template in pixels (must be >= 10)."),
|
|
10
|
+
custom_data: zod.z.union([zod.z.string(), zod.z.record(zod.z.string(), zod.z.unknown())]).optional()
|
|
11
|
+
}).describe("Request model for creating a new Placid template.");
|
|
12
|
+
const PlacidCreateTemplate_LayerSchema = zod.z.object({
|
|
13
|
+
name: zod.z.string().describe("Layer name/identifier."),
|
|
14
|
+
type: zod.z.string().describe("Layer type (e.g., text, picture, rectangle, browserframe, barcode, rating, subtitle).")
|
|
15
|
+
}).passthrough().describe("Represents a layer within a template.");
|
|
16
|
+
const PlacidCreateTemplateOutput = zod.z.object({
|
|
17
|
+
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the template.").nullable().optional(),
|
|
18
|
+
uuid: zod.z.string().describe("Unique template identifier (UUID)."),
|
|
19
|
+
title: zod.z.string().describe("Template title."),
|
|
20
|
+
width: zod.z.number().int().describe("Template width in pixels."),
|
|
21
|
+
height: zod.z.number().int().describe("Template height in pixels."),
|
|
22
|
+
layers: zod.z.array(PlacidCreateTemplate_LayerSchema).describe("Array of template layers.").nullable().optional(),
|
|
23
|
+
thumbnail: zod.z.string().describe("URL of the template thumbnail preview (may be null during regeneration).").nullable().optional(),
|
|
24
|
+
collections: zod.z.array(zod.z.string()).describe("Collection UUIDs the template belongs to.").nullable().optional(),
|
|
25
|
+
custom_data: zod.z.unknown().describe("Arbitrary custom data (max 255 chars when serialized).").nullable().optional()
|
|
26
|
+
}).describe("Response model for a newly created Placid template.");
|
|
27
|
+
const placidCreateTemplate = require_action.action("PLACID_CREATE_TEMPLATE", {
|
|
28
|
+
slug: "placid-create-template",
|
|
29
|
+
name: "Create Template",
|
|
30
|
+
description: "Tool to create a new Placid template. Use when you need a template with specific dimensions and optional tags or custom metadata. Example: \"Create a social-media banner.\"",
|
|
31
|
+
input: PlacidCreateTemplateInput,
|
|
32
|
+
output: PlacidCreateTemplateOutput
|
|
33
|
+
});
|
|
34
|
+
//#endregion
|
|
35
|
+
exports.placidCreateTemplate = placidCreateTemplate;
|
|
36
|
+
|
|
37
|
+
//# sourceMappingURL=create-template.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-template.cjs","names":["z","action"],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidCreateTemplateInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Optional URL pointing to a PSD or other template source.\").optional(),\n tags: z.array(z.string()).describe(\"Optional list of tags to organize templates.\").optional(),\n title: z.string().describe(\"Name of the template.\"),\n width: z.number().int().describe(\"Width of the template in pixels (must be >= 10).\"),\n height: z.number().int().describe(\"Height of the template in pixels (must be >= 10).\"),\n custom_data: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"Request model for creating a new Placid template.\");\nconst PlacidCreateTemplate_LayerSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Layer name/identifier.\"),\n type: z.string().describe(\"Layer type (e.g., text, picture, rectangle, browserframe, barcode, rating, subtitle).\"),\n}).passthrough().describe(\"Represents a layer within a template.\");\nexport const PlacidCreateTemplateOutput: 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 width: z.number().int().describe(\"Template width in pixels.\"),\n height: z.number().int().describe(\"Template height in pixels.\"),\n layers: z.array(PlacidCreateTemplate_LayerSchema).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 collections: z.array(z.string()).describe(\"Collection UUIDs the template belongs to.\").nullable().optional(),\n custom_data: z.unknown().describe(\"Arbitrary custom data (max 255 chars when serialized).\").nullable().optional(),\n}).describe(\"Response model for a newly created Placid template.\");\n\nexport const placidCreateTemplate = action(\"PLACID_CREATE_TEMPLATE\", {\n slug: \"placid-create-template\",\n name: \"Create Template\",\n description: \"Tool to create a new Placid template. Use when you need a template with specific dimensions and optional tags or custom metadata. Example: \\\"Create a social-media banner.\\\"\",\n input: PlacidCreateTemplateInput,\n output: PlacidCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAClD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACnF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACrF,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AACjE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;CAC9D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;CAC5D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CAC9D,QAAQA,IAAAA,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5G,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/H,aAAaA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3G,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAClH,CAAC,CAAC,CAAC,SAAS,qDAAqD;AAEjE,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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/create-template.d.ts
|
|
4
|
+
declare const PlacidCreateTemplateInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidCreateTemplateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidCreateTemplate };
|
|
9
|
+
//# sourceMappingURL=create-template.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-template.d.cts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAOsB;AAAA,cAKnD,0BAAA,EAA4B,CAAA,CAAE,UAUuB;AAAA,cAErD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/create-template.d.ts
|
|
4
|
+
declare const PlacidCreateTemplateInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidCreateTemplateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidCreateTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidCreateTemplate };
|
|
9
|
+
//# sourceMappingURL=create-template.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-template.d.mts","names":[],"sources":["../../src/actions/create-template.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAOsB;AAAA,cAKnD,0BAAA,EAA4B,CAAA,CAAE,UAUuB;AAAA,cAErD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/create-template.ts
|
|
4
|
+
const PlacidCreateTemplateInput = z.object({
|
|
5
|
+
url: z.string().describe("Optional URL pointing to a PSD or other template source.").optional(),
|
|
6
|
+
tags: z.array(z.string()).describe("Optional list of tags to organize templates.").optional(),
|
|
7
|
+
title: z.string().describe("Name of the template."),
|
|
8
|
+
width: z.number().int().describe("Width of the template in pixels (must be >= 10)."),
|
|
9
|
+
height: z.number().int().describe("Height of the template in pixels (must be >= 10)."),
|
|
10
|
+
custom_data: z.union([z.string(), z.record(z.string(), z.unknown())]).optional()
|
|
11
|
+
}).describe("Request model for creating a new Placid template.");
|
|
12
|
+
const PlacidCreateTemplate_LayerSchema = z.object({
|
|
13
|
+
name: z.string().describe("Layer name/identifier."),
|
|
14
|
+
type: z.string().describe("Layer type (e.g., text, picture, rectangle, browserframe, barcode, rating, subtitle).")
|
|
15
|
+
}).passthrough().describe("Represents a layer within a template.");
|
|
16
|
+
const placidCreateTemplate = action("PLACID_CREATE_TEMPLATE", {
|
|
17
|
+
slug: "placid-create-template",
|
|
18
|
+
name: "Create Template",
|
|
19
|
+
description: "Tool to create a new Placid template. Use when you need a template with specific dimensions and optional tags or custom metadata. Example: \"Create a social-media banner.\"",
|
|
20
|
+
input: PlacidCreateTemplateInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
tags: z.array(z.string()).describe("List of tags associated with the template.").nullable().optional(),
|
|
23
|
+
uuid: z.string().describe("Unique template identifier (UUID)."),
|
|
24
|
+
title: z.string().describe("Template title."),
|
|
25
|
+
width: z.number().int().describe("Template width in pixels."),
|
|
26
|
+
height: z.number().int().describe("Template height in pixels."),
|
|
27
|
+
layers: z.array(PlacidCreateTemplate_LayerSchema).describe("Array of template layers.").nullable().optional(),
|
|
28
|
+
thumbnail: z.string().describe("URL of the template thumbnail preview (may be null during regeneration).").nullable().optional(),
|
|
29
|
+
collections: z.array(z.string()).describe("Collection UUIDs the template belongs to.").nullable().optional(),
|
|
30
|
+
custom_data: z.unknown().describe("Arbitrary custom data (max 255 chars when serialized).").nullable().optional()
|
|
31
|
+
}).describe("Response model for a newly created Placid template.")
|
|
32
|
+
});
|
|
33
|
+
//#endregion
|
|
34
|
+
export { placidCreateTemplate };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=create-template.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-template.mjs","names":[],"sources":["../../src/actions/create-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidCreateTemplateInput: z.ZodTypeAny = z.object({\n url: z.string().describe(\"Optional URL pointing to a PSD or other template source.\").optional(),\n tags: z.array(z.string()).describe(\"Optional list of tags to organize templates.\").optional(),\n title: z.string().describe(\"Name of the template.\"),\n width: z.number().int().describe(\"Width of the template in pixels (must be >= 10).\"),\n height: z.number().int().describe(\"Height of the template in pixels (must be >= 10).\"),\n custom_data: z.union([z.string(), z.record(z.string(), z.unknown())]).optional(),\n}).describe(\"Request model for creating a new Placid template.\");\nconst PlacidCreateTemplate_LayerSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Layer name/identifier.\"),\n type: z.string().describe(\"Layer type (e.g., text, picture, rectangle, browserframe, barcode, rating, subtitle).\"),\n}).passthrough().describe(\"Represents a layer within a template.\");\nexport const PlacidCreateTemplateOutput: 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 width: z.number().int().describe(\"Template width in pixels.\"),\n height: z.number().int().describe(\"Template height in pixels.\"),\n layers: z.array(PlacidCreateTemplate_LayerSchema).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 collections: z.array(z.string()).describe(\"Collection UUIDs the template belongs to.\").nullable().optional(),\n custom_data: z.unknown().describe(\"Arbitrary custom data (max 255 chars when serialized).\").nullable().optional(),\n}).describe(\"Response model for a newly created Placid template.\");\n\nexport const placidCreateTemplate = action(\"PLACID_CREATE_TEMPLATE\", {\n slug: \"placid-create-template\",\n name: \"Create Template\",\n description: \"Tool to create a new Placid template. Use when you need a template with specific dimensions and optional tags or custom metadata. Example: \\\"Create a social-media banner.\\\"\",\n input: PlacidCreateTemplateInput,\n output: PlacidCreateTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0C,EAAE,OAAO;CAC9D,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;CAC9F,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;CAClD,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CACnF,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CACrF,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAC/D,MAAM,mCAAiD,EAAE,OAAO;CAC9D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF;AACnH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uCAAuC;AAajE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBsD,EAAE,OAAO;EAC/D,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC;EAC9D,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;EAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B;EAC5D,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EAC9D,QAAQ,EAAE,MAAM,gCAAgC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5G,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0EAA0E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/H,aAAa,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3G,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,CAAC,CAAC,CAAC,SAAS,qDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-collection.ts
|
|
4
|
+
const PlacidDeleteCollectionInput = zod.z.object({ collection_id: zod.z.string().describe("Unique collection ID") }).describe("Request parameters for deleting a specific template collection.");
|
|
5
|
+
const PlacidDeleteCollectionOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Additional info or error message, if any").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates if deletion was successful").nullable().optional()
|
|
8
|
+
}).describe("Response schema for collection deletion.");
|
|
9
|
+
const placidDeleteCollection = require_action.action("PLACID_DELETE_COLLECTION", {
|
|
10
|
+
slug: "placid-delete-collection",
|
|
11
|
+
name: "Delete Collection",
|
|
12
|
+
description: "Tool to delete a template collection by its ID. Use after confirming the collection is no longer needed. Note: This does not delete the templates within the collection.",
|
|
13
|
+
input: PlacidDeleteCollectionInput,
|
|
14
|
+
output: PlacidDeleteCollectionOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.placidDeleteCollection = placidDeleteCollection;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-collection.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-collection.cjs","names":["z","action"],"sources":["../../src/actions/delete-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidDeleteCollectionInput: z.ZodTypeAny = z.object({\n collection_id: z.string().describe(\"Unique collection ID\"),\n}).describe(\"Request parameters for deleting a specific template collection.\");\nexport const PlacidDeleteCollectionOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional info or error message, if any\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if deletion was successful\").nullable().optional(),\n}).describe(\"Response schema for collection deletion.\");\n\nexport const placidDeleteCollection = action(\"PLACID_DELETE_COLLECTION\", {\n slug: \"placid-delete-collection\",\n name: \"Delete Collection\",\n description: \"Tool to delete a template collection by its ID. Use after confirming the collection is no longer needed. Note: This does not delete the templates within the collection.\",\n input: PlacidDeleteCollectionInput,\n output: PlacidDeleteCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA4CA,IAAAA,EAAE,OAAO,EAChE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,EAC3D,CAAC,CAAC,CAAC,SAAS,iEAAiE;AAC7E,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC5F,CAAC,CAAC,CAAC,SAAS,0CAA0C;AAEtD,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/delete-collection.d.ts
|
|
4
|
+
declare const PlacidDeleteCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidDeleteCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidDeleteCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidDeleteCollection };
|
|
9
|
+
//# sourceMappingURL=delete-collection.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-collection.d.cts","names":[],"sources":["../../src/actions/delete-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEkC;AAAA,cACjE,4BAAA,EAA8B,CAAA,CAAE,UAGU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-collection.d.ts
|
|
4
|
+
declare const PlacidDeleteCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidDeleteCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidDeleteCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidDeleteCollection };
|
|
9
|
+
//# sourceMappingURL=delete-collection.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-collection.d.mts","names":[],"sources":["../../src/actions/delete-collection.ts"],"mappings":";;;cAIa,2BAAA,EAA6B,CAAA,CAAE,UAEkC;AAAA,cACjE,4BAAA,EAA8B,CAAA,CAAE,UAGU;AAAA,cAE1C,sBAAA,gCAAsB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const placidDeleteCollection = action("PLACID_DELETE_COLLECTION", {
|
|
4
|
+
slug: "placid-delete-collection",
|
|
5
|
+
name: "Delete Collection",
|
|
6
|
+
description: "Tool to delete a template collection by its ID. Use after confirming the collection is no longer needed. Note: This does not delete the templates within the collection.",
|
|
7
|
+
input: z.object({ collection_id: z.string().describe("Unique collection ID") }).describe("Request parameters for deleting a specific template collection."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Additional info or error message, if any").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates if deletion was successful").nullable().optional()
|
|
11
|
+
}).describe("Response schema for collection deletion.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { placidDeleteCollection };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-collection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-collection.mjs","names":[],"sources":["../../src/actions/delete-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidDeleteCollectionInput: z.ZodTypeAny = z.object({\n collection_id: z.string().describe(\"Unique collection ID\"),\n}).describe(\"Request parameters for deleting a specific template collection.\");\nexport const PlacidDeleteCollectionOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional info or error message, if any\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if deletion was successful\").nullable().optional(),\n}).describe(\"Response schema for collection deletion.\");\n\nexport const placidDeleteCollection = action(\"PLACID_DELETE_COLLECTION\", {\n slug: \"placid-delete-collection\",\n name: \"Delete Collection\",\n description: \"Tool to delete a template collection by its ID. Use after confirming the collection is no longer needed. Note: This does not delete the templates within the collection.\",\n input: PlacidDeleteCollectionInput,\n output: PlacidDeleteCollectionOutput,\n});\n"],"mappings":";;AAYA,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZuD,EAAE,OAAO,EAChE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,EAC3D,CAAC,CAAC,CAAC,SAAS,iEAUH;CACP,QAVwD,EAAE,OAAO;EACjE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,CAAC,CAAC,CAAC,SAAS,0CAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/delete-template.ts
|
|
4
|
+
const PlacidDeleteTemplateInput = zod.z.object({ template_uuid: zod.z.string().describe("UUID of the template to delete") }).describe("Request parameters for deleting a specific template.");
|
|
5
|
+
const PlacidDeleteTemplateOutput = zod.z.object({
|
|
6
|
+
message: zod.z.string().describe("Additional info or error message, if any").nullable().optional(),
|
|
7
|
+
success: zod.z.boolean().describe("Indicates if deletion was successful")
|
|
8
|
+
}).describe("Response schema for template deletion.");
|
|
9
|
+
const placidDeleteTemplate = require_action.action("PLACID_DELETE_TEMPLATE", {
|
|
10
|
+
slug: "placid-delete-template",
|
|
11
|
+
name: "Delete Template",
|
|
12
|
+
description: "Tool to delete a specific template identified by UUID. Use after confirming the template is no longer needed.",
|
|
13
|
+
input: PlacidDeleteTemplateInput,
|
|
14
|
+
output: PlacidDeleteTemplateOutput
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
exports.placidDeleteTemplate = placidDeleteTemplate;
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=delete-template.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-template.cjs","names":["z","action"],"sources":["../../src/actions/delete-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidDeleteTemplateInput: z.ZodTypeAny = z.object({\n template_uuid: z.string().describe(\"UUID of the template to delete\"),\n}).describe(\"Request parameters for deleting a specific template.\");\nexport const PlacidDeleteTemplateOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional info or error message, if any\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if deletion was successful\"),\n}).describe(\"Response schema for template deletion.\");\n\nexport const placidDeleteTemplate = action(\"PLACID_DELETE_TEMPLATE\", {\n slug: \"placid-delete-template\",\n name: \"Delete Template\",\n description: \"Tool to delete a specific template identified by UUID. Use after confirming the template is no longer needed.\",\n input: PlacidDeleteTemplateInput,\n output: PlacidDeleteTemplateOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO,EAC9D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,EACrE,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAClE,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;AACtE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAEpD,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,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/delete-template.d.ts
|
|
4
|
+
declare const PlacidDeleteTemplateInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidDeleteTemplateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidDeleteTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidDeleteTemplate };
|
|
9
|
+
//# sourceMappingURL=delete-template.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-template.d.cts","names":[],"sources":["../../src/actions/delete-template.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEyB;AAAA,cACtD,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/delete-template.d.ts
|
|
4
|
+
declare const PlacidDeleteTemplateInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidDeleteTemplateOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidDeleteTemplate: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidDeleteTemplate };
|
|
9
|
+
//# sourceMappingURL=delete-template.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-template.d.mts","names":[],"sources":["../../src/actions/delete-template.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAEyB;AAAA,cACtD,0BAAA,EAA4B,CAAA,CAAE,UAGU;AAAA,cAExC,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const placidDeleteTemplate = action("PLACID_DELETE_TEMPLATE", {
|
|
4
|
+
slug: "placid-delete-template",
|
|
5
|
+
name: "Delete Template",
|
|
6
|
+
description: "Tool to delete a specific template identified by UUID. Use after confirming the template is no longer needed.",
|
|
7
|
+
input: z.object({ template_uuid: z.string().describe("UUID of the template to delete") }).describe("Request parameters for deleting a specific template."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
message: z.string().describe("Additional info or error message, if any").nullable().optional(),
|
|
10
|
+
success: z.boolean().describe("Indicates if deletion was successful")
|
|
11
|
+
}).describe("Response schema for template deletion.")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
export { placidDeleteTemplate };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=delete-template.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delete-template.mjs","names":[],"sources":["../../src/actions/delete-template.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidDeleteTemplateInput: z.ZodTypeAny = z.object({\n template_uuid: z.string().describe(\"UUID of the template to delete\"),\n}).describe(\"Request parameters for deleting a specific template.\");\nexport const PlacidDeleteTemplateOutput: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Additional info or error message, if any\").nullable().optional(),\n success: z.boolean().describe(\"Indicates if deletion was successful\"),\n}).describe(\"Response schema for template deletion.\");\n\nexport const placidDeleteTemplate = action(\"PLACID_DELETE_TEMPLATE\", {\n slug: \"placid-delete-template\",\n name: \"Delete Template\",\n description: \"Tool to delete a specific template identified by UUID. Use after confirming the template is no longer needed.\",\n input: PlacidDeleteTemplateInput,\n output: PlacidDeleteTemplateOutput,\n});\n"],"mappings":";;AAYA,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAZqD,EAAE,OAAO,EAC9D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,EACrE,CAAC,CAAC,CAAC,SAAS,sDAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7F,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,sCAAsC;CACtE,CAAC,CAAC,CAAC,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-collection.ts
|
|
4
|
+
const PlacidGetCollectionInput = zod.z.object({ collection_id: zod.z.string().describe("Unique collection ID (UUID format) to retrieve") }).describe("Request model for retrieving a single collection by ID.");
|
|
5
|
+
const PlacidGetCollectionOutput = zod.z.object({
|
|
6
|
+
id: zod.z.string().describe("Unique identifier of the collection (UUID)"),
|
|
7
|
+
title: zod.z.string().describe("Title of the collection"),
|
|
8
|
+
custom_data: zod.z.string().describe("Custom reference data for the collection").nullable().optional(),
|
|
9
|
+
template_uuids: zod.z.array(zod.z.string()).describe("List of template UUIDs associated with this collection").nullable().optional()
|
|
10
|
+
}).describe("Response model containing a single collection's details.");
|
|
11
|
+
const placidGetCollection = require_action.action("PLACID_GET_COLLECTION", {
|
|
12
|
+
slug: "placid-get-collection",
|
|
13
|
+
name: "Get Collection",
|
|
14
|
+
description: "Tool to retrieve a single collection by its ID. Use when you need details about a specific collection including its title, custom data, and associated template UUIDs.",
|
|
15
|
+
input: PlacidGetCollectionInput,
|
|
16
|
+
output: PlacidGetCollectionOutput
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
exports.placidGetCollection = placidGetCollection;
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=get-collection.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-collection.cjs","names":["z","action"],"sources":["../../src/actions/get-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidGetCollectionInput: z.ZodTypeAny = z.object({\n collection_id: z.string().describe(\"Unique collection ID (UUID format) to retrieve\"),\n}).describe(\"Request model for retrieving a single collection by ID.\");\nexport const PlacidGetCollectionOutput: 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 associated with this collection\").nullable().optional(),\n}).describe(\"Response model containing a single collection's details.\");\n\nexport const placidGetCollection = action(\"PLACID_GET_COLLECTION\", {\n slug: \"placid-get-collection\",\n name: \"Get Collection\",\n description: \"Tool to retrieve a single collection by its ID. Use when you need details about a specific collection including its title, custom data, and associated template UUIDs.\",\n input: PlacidGetCollectionInput,\n output: PlacidGetCollectionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAAyCA,IAAAA,EAAE,OAAO,EAC7D,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EACrF,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,0DAA0D;AAEtE,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/get-collection.d.ts
|
|
4
|
+
declare const PlacidGetCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidGetCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidGetCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidGetCollection };
|
|
9
|
+
//# sourceMappingURL=get-collection.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-collection.d.cts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE6B;AAAA,cACzD,yBAAA,EAA2B,CAAA,CAAE,UAK6B;AAAA,cAE1D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-collection.d.ts
|
|
4
|
+
declare const PlacidGetCollectionInput: z.ZodTypeAny;
|
|
5
|
+
declare const PlacidGetCollectionOutput: z.ZodTypeAny;
|
|
6
|
+
declare const placidGetCollection: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { placidGetCollection };
|
|
9
|
+
//# sourceMappingURL=get-collection.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-collection.d.mts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,EAA0B,CAAA,CAAE,UAE6B;AAAA,cACzD,yBAAA,EAA2B,CAAA,CAAE,UAK6B;AAAA,cAE1D,mBAAA,gCAAmB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const placidGetCollection = action("PLACID_GET_COLLECTION", {
|
|
4
|
+
slug: "placid-get-collection",
|
|
5
|
+
name: "Get Collection",
|
|
6
|
+
description: "Tool to retrieve a single collection by its ID. Use when you need details about a specific collection including its title, custom data, and associated template UUIDs.",
|
|
7
|
+
input: z.object({ collection_id: z.string().describe("Unique collection ID (UUID format) to retrieve") }).describe("Request model for retrieving a single collection by ID."),
|
|
8
|
+
output: z.object({
|
|
9
|
+
id: z.string().describe("Unique identifier of the collection (UUID)"),
|
|
10
|
+
title: z.string().describe("Title of the collection"),
|
|
11
|
+
custom_data: z.string().describe("Custom reference data for the collection").nullable().optional(),
|
|
12
|
+
template_uuids: z.array(z.string()).describe("List of template UUIDs associated with this collection").nullable().optional()
|
|
13
|
+
}).describe("Response model containing a single collection's details.")
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { placidGetCollection };
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=get-collection.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-collection.mjs","names":[],"sources":["../../src/actions/get-collection.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidGetCollectionInput: z.ZodTypeAny = z.object({\n collection_id: z.string().describe(\"Unique collection ID (UUID format) to retrieve\"),\n}).describe(\"Request model for retrieving a single collection by ID.\");\nexport const PlacidGetCollectionOutput: 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 associated with this collection\").nullable().optional(),\n}).describe(\"Response model containing a single collection's details.\");\n\nexport const placidGetCollection = action(\"PLACID_GET_COLLECTION\", {\n slug: \"placid-get-collection\",\n name: \"Get Collection\",\n description: \"Tool to retrieve a single collection by its ID. Use when you need details about a specific collection including its title, custom data, and associated template UUIDs.\",\n input: PlacidGetCollectionInput,\n output: PlacidGetCollectionOutput,\n});\n"],"mappings":";;AAcA,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdoD,EAAE,OAAO,EAC7D,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EACrF,CAAC,CAAC,CAAC,SAAS,yDAYH;CACP,QAZqD,EAAE,OAAO;EAC9D,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,wDAAwD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-collections.ts
|
|
4
|
+
const PlacidGetCollectionsInput = 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
|
+
per_page: zod.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 = zod.z.object({
|
|
9
|
+
id: zod.z.string().describe("Unique identifier of the collection (UUID)"),
|
|
10
|
+
title: zod.z.string().describe("Title of the collection"),
|
|
11
|
+
templates: zod.z.array(zod.z.unknown()).describe("List of templates associated with this collection (max 500)").nullable().optional(),
|
|
12
|
+
custom_data: zod.z.string().describe("Custom reference data for the collection").nullable().optional()
|
|
13
|
+
}).describe("Representation of a single Placid template collection.");
|
|
14
|
+
const PlacidGetCollections_MetaSchema = zod.z.object({
|
|
15
|
+
path: zod.z.string().describe("API endpoint path").nullable().optional(),
|
|
16
|
+
per_page: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional()
|
|
17
|
+
}).describe("Pagination metadata for collections listing.");
|
|
18
|
+
const PlacidGetCollections_LinksSchema = zod.z.object({
|
|
19
|
+
last: zod.z.string().describe("URL to the last page").nullable().optional(),
|
|
20
|
+
next: zod.z.string().describe("URL to the next page").nullable().optional(),
|
|
21
|
+
prev: zod.z.string().describe("URL to the previous page").nullable().optional(),
|
|
22
|
+
first: zod.z.string().describe("URL to the first page").nullable().optional()
|
|
23
|
+
}).describe("Pagination links for cursor-based navigation.");
|
|
24
|
+
const PlacidGetCollectionsOutput = zod.z.object({
|
|
25
|
+
data: zod.z.array(PlacidGetCollections_CollectionSchema).describe("List of template collections").nullable().optional(),
|
|
26
|
+
meta: PlacidGetCollections_MetaSchema.nullable().optional(),
|
|
27
|
+
links: PlacidGetCollections_LinksSchema.nullable().optional()
|
|
28
|
+
}).describe("Response model containing a list of collections and pagination metadata.");
|
|
29
|
+
const placidGetCollections = require_action.action("PLACID_GET_COLLECTIONS", {
|
|
30
|
+
slug: "placid-get-collections",
|
|
31
|
+
name: "Get Collections",
|
|
32
|
+
description: "Tool to retrieve a list of all template collections. Use after authentication to paginate through your Placid collections.",
|
|
33
|
+
input: PlacidGetCollectionsInput,
|
|
34
|
+
output: PlacidGetCollectionsOutput
|
|
35
|
+
});
|
|
36
|
+
//#endregion
|
|
37
|
+
exports.placidGetCollections = placidGetCollections;
|
|
38
|
+
|
|
39
|
+
//# sourceMappingURL=get-collections.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-collections.cjs","names":["z","action"],"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,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACrJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gFAAgF,CAAC,CAAC,SAAS;AACjI,CAAC,CAAC,CAAC,SAAS,6EAA6E;AACzF,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CACpE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB;CACpD,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAM,kCAAgDA,IAAAA,EAAE,OAAO;CAC7D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnE,UAAUA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACxE,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mCAAiDA,IAAAA,EAAE,OAAO;CAC9D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,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;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClH,MAAM,gCAAgC,SAAS,CAAC,CAAC,SAAS;CAC1D,OAAO,iCAAiC,SAAS,CAAC,CAAC,SAAS;AAC9D,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAEtF,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|