@keystrokehq/placid 0.1.0 → 0.1.3
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/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/create-collection.cjs +1 -1
- package/dist/actions/create-collection.cjs.map +1 -1
- package/dist/actions/create-collection.d.cts +16 -3
- package/dist/actions/create-collection.d.cts.map +1 -1
- package/dist/actions/create-collection.d.mts +16 -3
- package/dist/actions/create-collection.d.mts.map +1 -1
- package/dist/actions/create-collection.mjs +1 -1
- package/dist/actions/create-collection.mjs.map +1 -1
- package/dist/actions/create-template.cjs +7 -7
- package/dist/actions/create-template.cjs.map +1 -1
- package/dist/actions/create-template.d.cts +30 -3
- package/dist/actions/create-template.d.cts.map +1 -1
- package/dist/actions/create-template.d.mts +30 -3
- package/dist/actions/create-template.d.mts.map +1 -1
- package/dist/actions/create-template.mjs +7 -7
- package/dist/actions/create-template.mjs.map +1 -1
- package/dist/actions/delete-collection.cjs +1 -1
- package/dist/actions/delete-collection.cjs.map +1 -1
- package/dist/actions/delete-collection.d.cts +10 -3
- package/dist/actions/delete-collection.d.cts.map +1 -1
- package/dist/actions/delete-collection.d.mts +10 -3
- package/dist/actions/delete-collection.d.mts.map +1 -1
- package/dist/actions/delete-collection.mjs +1 -1
- package/dist/actions/delete-collection.mjs.map +1 -1
- package/dist/actions/delete-template.cjs +2 -2
- package/dist/actions/delete-template.cjs.map +1 -1
- package/dist/actions/delete-template.d.cts +10 -3
- package/dist/actions/delete-template.d.cts.map +1 -1
- package/dist/actions/delete-template.d.mts +10 -3
- package/dist/actions/delete-template.d.mts.map +1 -1
- package/dist/actions/delete-template.mjs +2 -2
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/get-collection.cjs +3 -3
- package/dist/actions/get-collection.cjs.map +1 -1
- package/dist/actions/get-collection.d.cts +12 -3
- package/dist/actions/get-collection.d.cts.map +1 -1
- package/dist/actions/get-collection.d.mts +12 -3
- package/dist/actions/get-collection.d.mts.map +1 -1
- package/dist/actions/get-collection.mjs +3 -3
- package/dist/actions/get-collection.mjs.map +1 -1
- package/dist/actions/get-collections.cjs +6 -6
- package/dist/actions/get-collections.cjs.map +1 -1
- package/dist/actions/get-collections.d.cts +26 -3
- package/dist/actions/get-collections.d.cts.map +1 -1
- package/dist/actions/get-collections.d.mts +26 -3
- package/dist/actions/get-collections.d.mts.map +1 -1
- package/dist/actions/get-collections.mjs +6 -6
- package/dist/actions/get-collections.mjs.map +1 -1
- package/dist/actions/get-template.cjs +3 -3
- package/dist/actions/get-template.cjs.map +1 -1
- package/dist/actions/get-template.d.cts +13 -3
- package/dist/actions/get-template.d.cts.map +1 -1
- package/dist/actions/get-template.d.mts +13 -3
- package/dist/actions/get-template.d.mts.map +1 -1
- package/dist/actions/get-template.mjs +3 -3
- package/dist/actions/get-template.mjs.map +1 -1
- package/dist/actions/list-nl-templates.cjs +7 -7
- package/dist/actions/list-nl-templates.cjs.map +1 -1
- package/dist/actions/list-nl-templates.d.cts +15 -3
- package/dist/actions/list-nl-templates.d.cts.map +1 -1
- package/dist/actions/list-nl-templates.d.mts +15 -3
- package/dist/actions/list-nl-templates.d.mts.map +1 -1
- package/dist/actions/list-nl-templates.mjs +7 -7
- package/dist/actions/list-nl-templates.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +6 -6
- package/dist/actions/list-templates.cjs.map +1 -1
- package/dist/actions/list-templates.d.cts +29 -3
- package/dist/actions/list-templates.d.cts.map +1 -1
- package/dist/actions/list-templates.d.mts +29 -3
- package/dist/actions/list-templates.d.mts.map +1 -1
- package/dist/actions/list-templates.mjs +6 -6
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/update-collection.cjs +3 -3
- package/dist/actions/update-collection.cjs.map +1 -1
- package/dist/actions/update-collection.d.cts +22 -3
- package/dist/actions/update-collection.d.cts.map +1 -1
- package/dist/actions/update-collection.d.mts +22 -3
- package/dist/actions/update-collection.d.mts.map +1 -1
- package/dist/actions/update-collection.mjs +3 -3
- package/dist/actions/update-collection.mjs.map +1 -1
- package/dist/actions/update-template.cjs +3 -3
- package/dist/actions/update-template.cjs.map +1 -1
- package/dist/actions/update-template.d.cts +23 -3
- package/dist/actions/update-template.d.cts.map +1 -1
- package/dist/actions/update-template.d.mts +23 -3
- package/dist/actions/update-template.d.mts.map +1 -1
- package/dist/actions/update-template.mjs +3 -3
- package/dist/actions/update-template.mjs.map +1 -1
- package/dist/catalog.cjs +7 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +8 -0
- package/dist/catalog.d.mts +8 -0
- package/dist/catalog.mjs +7 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-collection.d.ts
|
|
4
|
-
declare const PlacidGetCollectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidGetCollectionInput: z.ZodObject<{
|
|
5
|
+
collection_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlacidGetCollectionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
title: z.ZodNullable<z.ZodString>;
|
|
10
|
+
custom_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
template_uuids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const placidGetCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
collection_id: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { placidGetCollection };
|
|
9
18
|
//# sourceMappingURL=get-collection.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-collection.d.cts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-collection.d.cts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,18 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-collection.d.ts
|
|
4
|
-
declare const PlacidGetCollectionInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidGetCollectionInput: z.ZodObject<{
|
|
5
|
+
collection_id: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlacidGetCollectionOutput: z.ZodObject<{
|
|
8
|
+
id: z.ZodNullable<z.ZodString>;
|
|
9
|
+
title: z.ZodNullable<z.ZodString>;
|
|
10
|
+
custom_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11
|
+
template_uuids: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
12
|
+
}, z.core.$loose>;
|
|
13
|
+
declare const placidGetCollection: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
14
|
+
collection_id: string;
|
|
15
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
16
|
//#endregion
|
|
8
17
|
export { placidGetCollection };
|
|
9
18
|
//# sourceMappingURL=get-collection.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-collection.d.mts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"get-collection.d.mts","names":[],"sources":["../../src/actions/get-collection.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;cAGxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;cAOzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -6,11 +6,11 @@ const placidGetCollection = action("PLACID_GET_COLLECTION", {
|
|
|
6
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
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
8
|
output: z.object({
|
|
9
|
-
id: z.string().describe("Unique identifier of the collection (UUID)"),
|
|
10
|
-
title: z.string().describe("Title of the collection"),
|
|
9
|
+
id: z.string().describe("Unique identifier of the collection (UUID)").nullable(),
|
|
10
|
+
title: z.string().describe("Title of the collection").nullable(),
|
|
11
11
|
custom_data: z.string().describe("Custom reference data for the collection").nullable().optional(),
|
|
12
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.")
|
|
13
|
+
}).passthrough().describe("Response model containing a single collection's details.")
|
|
14
14
|
});
|
|
15
15
|
//#endregion
|
|
16
16
|
export { placidGetCollection };
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\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}).passthrough().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,OAdsC,EAAE,OAAO,EAC/C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,EACrF,CAAC,CAAC,CAAC,SAAS,yDAYH;CACP,QAZuC,EAAE,OAAO;EAChD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;EAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;EAC/D,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,YAAY,CAAC,CAAC,SAAS,0DAOhB;AACV,CAAC"}
|
|
@@ -6,26 +6,26 @@ const PlacidGetCollectionsInput = zod.z.object({
|
|
|
6
6
|
per_page: zod.z.number().int().describe("Number of collections per page (1-100). Server default is 20 if not specified.").optional()
|
|
7
7
|
}).describe("Request model for retrieving template collections with optional pagination.");
|
|
8
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"),
|
|
9
|
+
id: zod.z.string().describe("Unique identifier of the collection (UUID)").nullable(),
|
|
10
|
+
title: zod.z.string().describe("Title of the collection").nullable(),
|
|
11
11
|
templates: zod.z.array(zod.z.unknown()).describe("List of templates associated with this collection (max 500)").nullable().optional(),
|
|
12
12
|
custom_data: zod.z.string().describe("Custom reference data for the collection").nullable().optional()
|
|
13
|
-
}).describe("Representation of a single Placid template collection.");
|
|
13
|
+
}).passthrough().describe("Representation of a single Placid template collection.");
|
|
14
14
|
const PlacidGetCollections_MetaSchema = zod.z.object({
|
|
15
15
|
path: zod.z.string().describe("API endpoint path").nullable().optional(),
|
|
16
16
|
per_page: zod.z.union([zod.z.number().int(), zod.z.string()]).nullable().optional()
|
|
17
|
-
}).describe("Pagination metadata for collections listing.");
|
|
17
|
+
}).passthrough().describe("Pagination metadata for collections listing.");
|
|
18
18
|
const PlacidGetCollections_LinksSchema = zod.z.object({
|
|
19
19
|
last: zod.z.string().describe("URL to the last page").nullable().optional(),
|
|
20
20
|
next: zod.z.string().describe("URL to the next page").nullable().optional(),
|
|
21
21
|
prev: zod.z.string().describe("URL to the previous page").nullable().optional(),
|
|
22
22
|
first: zod.z.string().describe("URL to the first page").nullable().optional()
|
|
23
|
-
}).describe("Pagination links for cursor-based navigation.");
|
|
23
|
+
}).passthrough().describe("Pagination links for cursor-based navigation.");
|
|
24
24
|
const PlacidGetCollectionsOutput = zod.z.object({
|
|
25
25
|
data: zod.z.array(PlacidGetCollections_CollectionSchema).describe("List of template collections").nullable().optional(),
|
|
26
26
|
meta: PlacidGetCollections_MetaSchema.nullable().optional(),
|
|
27
27
|
links: PlacidGetCollections_LinksSchema.nullable().optional()
|
|
28
|
-
}).describe("Response model containing a list of collections and pagination metadata.");
|
|
28
|
+
}).passthrough().describe("Response model containing a list of collections and pagination metadata.");
|
|
29
29
|
const placidGetCollections = require_action.action("PLACID_GET_COLLECTIONS", {
|
|
30
30
|
slug: "placid-get-collections",
|
|
31
31
|
name: "Get Collections",
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\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}).passthrough().describe(\"Representation of a single Placid template collection.\");\nconst PlacidGetCollections_MetaSchema = 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}).passthrough().describe(\"Pagination metadata for collections listing.\");\nconst PlacidGetCollections_LinksSchema = 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}).passthrough().describe(\"Pagination links for cursor-based navigation.\");\nexport const PlacidGetCollectionsOutput = 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}).passthrough().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,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,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,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,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,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,kCAAkCA,IAAAA,EAAE,OAAO;CAC/C,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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,mCAAmCA,IAAAA,EAAE,OAAO;CAChD,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,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,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,YAAY,CAAC,CAAC,SAAS,0EAA0E;AAEpG,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-collections.d.ts
|
|
4
|
-
declare const PlacidGetCollectionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidGetCollectionsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlacidGetCollectionsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12
|
+
templates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
13
|
+
custom_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
per_page: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
last: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
first: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const placidGetCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
cursor?: string | undefined;
|
|
28
|
+
per_page?: number | undefined;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { placidGetCollections };
|
|
9
32
|
//# sourceMappingURL=get-collections.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-collections.d.cts","names":[],"sources":["../../src/actions/get-collections.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-collections.d.cts","names":[],"sources":["../../src/actions/get-collections.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-collections.d.ts
|
|
4
|
-
declare const PlacidGetCollectionsInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidGetCollectionsInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
per_page: z.ZodOptional<z.ZodNumber>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
declare const PlacidGetCollectionsOutput: z.ZodObject<{
|
|
9
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
id: z.ZodNullable<z.ZodString>;
|
|
11
|
+
title: z.ZodNullable<z.ZodString>;
|
|
12
|
+
templates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
13
|
+
custom_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
14
|
+
}, z.core.$loose>>>>;
|
|
15
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
16
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
per_page: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>>;
|
|
18
|
+
}, z.core.$loose>>>;
|
|
19
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
20
|
+
last: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
21
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
22
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
23
|
+
first: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$loose>>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
declare const placidGetCollections: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
27
|
+
cursor?: string | undefined;
|
|
28
|
+
per_page?: number | undefined;
|
|
29
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
30
|
//#endregion
|
|
8
31
|
export { placidGetCollections };
|
|
9
32
|
//# sourceMappingURL=get-collections.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-collections.d.mts","names":[],"sources":["../../src/actions/get-collections.ts"],"mappings":";;;cAIa,yBAAA,
|
|
1
|
+
{"version":3,"file":"get-collections.d.mts","names":[],"sources":["../../src/actions/get-collections.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;cAoBzB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;cAM1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -6,21 +6,21 @@ const PlacidGetCollectionsInput = z.object({
|
|
|
6
6
|
per_page: z.number().int().describe("Number of collections per page (1-100). Server default is 20 if not specified.").optional()
|
|
7
7
|
}).describe("Request model for retrieving template collections with optional pagination.");
|
|
8
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"),
|
|
9
|
+
id: z.string().describe("Unique identifier of the collection (UUID)").nullable(),
|
|
10
|
+
title: z.string().describe("Title of the collection").nullable(),
|
|
11
11
|
templates: z.array(z.unknown()).describe("List of templates associated with this collection (max 500)").nullable().optional(),
|
|
12
12
|
custom_data: z.string().describe("Custom reference data for the collection").nullable().optional()
|
|
13
|
-
}).describe("Representation of a single Placid template collection.");
|
|
13
|
+
}).passthrough().describe("Representation of a single Placid template collection.");
|
|
14
14
|
const PlacidGetCollections_MetaSchema = z.object({
|
|
15
15
|
path: z.string().describe("API endpoint path").nullable().optional(),
|
|
16
16
|
per_page: z.union([z.number().int(), z.string()]).nullable().optional()
|
|
17
|
-
}).describe("Pagination metadata for collections listing.");
|
|
17
|
+
}).passthrough().describe("Pagination metadata for collections listing.");
|
|
18
18
|
const PlacidGetCollections_LinksSchema = z.object({
|
|
19
19
|
last: z.string().describe("URL to the last page").nullable().optional(),
|
|
20
20
|
next: z.string().describe("URL to the next page").nullable().optional(),
|
|
21
21
|
prev: z.string().describe("URL to the previous page").nullable().optional(),
|
|
22
22
|
first: z.string().describe("URL to the first page").nullable().optional()
|
|
23
|
-
}).describe("Pagination links for cursor-based navigation.");
|
|
23
|
+
}).passthrough().describe("Pagination links for cursor-based navigation.");
|
|
24
24
|
const placidGetCollections = action("PLACID_GET_COLLECTIONS", {
|
|
25
25
|
slug: "placid-get-collections",
|
|
26
26
|
name: "Get Collections",
|
|
@@ -30,7 +30,7 @@ const placidGetCollections = action("PLACID_GET_COLLECTIONS", {
|
|
|
30
30
|
data: z.array(PlacidGetCollections_CollectionSchema).describe("List of template collections").nullable().optional(),
|
|
31
31
|
meta: PlacidGetCollections_MetaSchema.nullable().optional(),
|
|
32
32
|
links: PlacidGetCollections_LinksSchema.nullable().optional()
|
|
33
|
-
}).describe("Response model containing a list of collections and pagination metadata.")
|
|
33
|
+
}).passthrough().describe("Response model containing a list of collections and pagination metadata.")
|
|
34
34
|
});
|
|
35
35
|
//#endregion
|
|
36
36
|
export { placidGetCollections };
|
|
@@ -1 +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
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier of the collection (UUID)\").nullable(),\n title: z.string().describe(\"Title of the collection\").nullable(),\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}).passthrough().describe(\"Representation of a single Placid template collection.\");\nconst PlacidGetCollections_MetaSchema = 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}).passthrough().describe(\"Pagination metadata for collections listing.\");\nconst PlacidGetCollections_LinksSchema = 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}).passthrough().describe(\"Pagination links for cursor-based navigation.\");\nexport const PlacidGetCollectionsOutput = 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}).passthrough().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,4BAA4B,EAAE,OAAO;CAChD,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,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS;CAC/D,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,YAAY,CAAC,CAAC,SAAS,wDAAwD;AAClF,MAAM,kCAAkC,EAAE,OAAO;CAC/C,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,YAAY,CAAC,CAAC,SAAS,8CAA8C;AACxE,MAAM,mCAAmC,EAAE,OAAO;CAChD,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,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAOzE,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXwC,EAAE,OAAO;EACjD,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,YAAY,CAAC,CAAC,SAAS,0EAOhB;AACV,CAAC"}
|
|
@@ -4,11 +4,11 @@ let zod = require("zod");
|
|
|
4
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
5
|
const PlacidGetTemplateOutput = zod.z.object({
|
|
6
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"),
|
|
7
|
+
uuid: zod.z.string().describe("Unique template identifier (UUID)").nullable(),
|
|
8
|
+
title: zod.z.string().describe("Template title").nullable(),
|
|
9
9
|
layers: zod.z.array(zod.z.unknown()).describe("Array of template layers").nullable().optional(),
|
|
10
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.");
|
|
11
|
+
}).passthrough().describe("Response schema for a Placid template.");
|
|
12
12
|
const placidGetTemplate = require_action.action("PLACID_GET_TEMPLATE", {
|
|
13
13
|
slug: "placid-get-template",
|
|
14
14
|
name: "Get Template",
|
|
@@ -1 +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
|
|
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.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.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)\").nullable(),\n title: z.string().describe(\"Template title\").nullable(),\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}).passthrough().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,yBAAyBA,IAAAA,EAAE,OAAO,EAC7C,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACvE,CAAC,CAAC,CAAC,SAAS,wDAAwD;AACpE,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,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,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACtD,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,YAAY,CAAC,CAAC,SAAS,wCAAwC;AAElE,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-template.d.ts
|
|
4
|
-
declare const PlacidGetTemplateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidGetTemplateInput: z.ZodObject<{
|
|
5
|
+
template_uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlacidGetTemplateOutput: z.ZodObject<{
|
|
8
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
9
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
10
|
+
title: z.ZodNullable<z.ZodString>;
|
|
11
|
+
layers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
12
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const placidGetTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
template_uuid: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { placidGetTemplate };
|
|
9
19
|
//# sourceMappingURL=get-template.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template.d.cts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-template.d.cts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAGtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAQvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/get-template.d.ts
|
|
4
|
-
declare const PlacidGetTemplateInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidGetTemplateInput: z.ZodObject<{
|
|
5
|
+
template_uuid: z.ZodString;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
declare const PlacidGetTemplateOutput: z.ZodObject<{
|
|
8
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
9
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
10
|
+
title: z.ZodNullable<z.ZodString>;
|
|
11
|
+
layers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
|
|
12
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13
|
+
}, z.core.$loose>;
|
|
14
|
+
declare const placidGetTemplate: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
15
|
+
template_uuid: string;
|
|
16
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
17
|
//#endregion
|
|
8
18
|
export { placidGetTemplate };
|
|
9
19
|
//# sourceMappingURL=get-template.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-template.d.mts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,sBAAA,
|
|
1
|
+
{"version":3,"file":"get-template.d.mts","names":[],"sources":["../../src/actions/get-template.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;cAGtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAQvB,iBAAA,gCAAiB,wBAAA"}
|
|
@@ -7,11 +7,11 @@ const placidGetTemplate = action("PLACID_GET_TEMPLATE", {
|
|
|
7
7
|
input: z.object({ template_uuid: z.string().describe("Unique template UUID to retrieve") }).describe("Request parameters for retrieving a specific template."),
|
|
8
8
|
output: z.object({
|
|
9
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"),
|
|
10
|
+
uuid: z.string().describe("Unique template identifier (UUID)").nullable(),
|
|
11
|
+
title: z.string().describe("Template title").nullable(),
|
|
12
12
|
layers: z.array(z.unknown()).describe("Array of template layers").nullable().optional(),
|
|
13
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.")
|
|
14
|
+
}).passthrough().describe("Response schema for a Placid template.")
|
|
15
15
|
});
|
|
16
16
|
//#endregion
|
|
17
17
|
export { placidGetTemplate };
|
|
@@ -1 +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
|
|
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.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.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)\").nullable(),\n title: z.string().describe(\"Template title\").nullable(),\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}).passthrough().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,OAfoC,EAAE,OAAO,EAC7C,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,EACvE,CAAC,CAAC,CAAC,SAAS,wDAaH;CACP,QAbqC,EAAE,OAAO;EAC9C,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;EACtD,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,YAAY,CAAC,CAAC,SAAS,wCAOhB;AACV,CAAC"}
|
|
@@ -3,15 +3,15 @@ let zod = require("zod");
|
|
|
3
3
|
//#region src/actions/list-nl-templates.ts
|
|
4
4
|
const PlacidListNlTemplatesInput = zod.z.object({}).describe("Request model for listing all available templates via Natural Language API.");
|
|
5
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.");
|
|
6
|
+
name: zod.z.string().describe("Layer identifier name").nullable(),
|
|
7
|
+
type: zod.z.enum(["picture", "text"]).describe("Type of layer - either 'picture' for image/video layers or 'text' for text layers").nullable()
|
|
8
|
+
}).passthrough().describe("Represents a single layer within a template that can be modified.");
|
|
9
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"),
|
|
10
|
+
uuid: zod.z.string().describe("Unique template identifier (UUID) used to identify the template across all templates").nullable(),
|
|
11
|
+
title: zod.z.string().describe("User-defined name of the template").nullable(),
|
|
12
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.");
|
|
13
|
+
}).passthrough().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() }).passthrough().describe("Response model containing list of available templates via Natural Language API.");
|
|
15
15
|
const placidListNlTemplates = require_action.action("PLACID_LIST_NL_TEMPLATES", {
|
|
16
16
|
slug: "placid-list-nl-templates",
|
|
17
17
|
name: "List NL Templates",
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for listing all available templates via Natural Language API.\");\nconst PlacidListNlTemplates_TemplateLayerSchema = z.object({\n name: z.string().describe(\"Layer identifier name\").nullable(),\n type: z.enum([\"picture\", \"text\"]).describe(\"Type of layer - either 'picture' for image/video layers or 'text' for text layers\").nullable(),\n}).passthrough().describe(\"Represents a single layer within a template that can be modified.\");\nconst PlacidListNlTemplates_TemplateSchema = z.object({\n uuid: z.string().describe(\"Unique template identifier (UUID) used to identify the template across all templates\").nullable(),\n title: z.string().describe(\"User-defined name of the template\").nullable(),\n layers: z.array(PlacidListNlTemplates_TemplateLayerSchema).describe(\"List of dynamic layers that can be modified with text or images\").nullable().optional(),\n}).passthrough().describe(\"Represents a Placid template with layers that can be filled via text and/or image URLs.\");\nexport const PlacidListNlTemplatesOutput = z.object({\n data: z.array(PlacidListNlTemplates_TemplateSchema).describe(\"Array of available Placid templates\").nullable().optional(),\n}).passthrough().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,6BAA6BA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6EAA6E;AAC7I,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,MAAMA,IAAAA,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAC7F,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3H,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,QAAQA,IAAAA,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yFAAyF;AACnH,MAAa,8BAA8BA,IAAAA,EAAE,OAAO,EAClD,MAAMA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAAiF;AAE3G,MAAa,wBAAwBC,eAAAA,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-nl-templates.d.ts
|
|
4
|
-
declare const PlacidListNlTemplatesInput: z.
|
|
5
|
-
declare const PlacidListNlTemplatesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PlacidListNlTemplatesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PlacidListNlTemplatesOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
8
|
+
title: z.ZodNullable<z.ZodString>;
|
|
9
|
+
layers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
12
|
+
picture: "picture";
|
|
13
|
+
text: "text";
|
|
14
|
+
}>>;
|
|
15
|
+
}, z.core.$loose>>>>;
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const placidListNlTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { placidListNlTemplates };
|
|
9
21
|
//# sourceMappingURL=list-nl-templates.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-nl-templates.d.cts","names":[],"sources":["../../src/actions/list-nl-templates.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-nl-templates.d.cts","names":[],"sources":["../../src/actions/list-nl-templates.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-nl-templates.d.ts
|
|
4
|
-
declare const PlacidListNlTemplatesInput: z.
|
|
5
|
-
declare const PlacidListNlTemplatesOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PlacidListNlTemplatesInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PlacidListNlTemplatesOutput: z.ZodObject<{
|
|
6
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
7
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
8
|
+
title: z.ZodNullable<z.ZodString>;
|
|
9
|
+
layers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
10
|
+
name: z.ZodNullable<z.ZodString>;
|
|
11
|
+
type: z.ZodNullable<z.ZodEnum<{
|
|
12
|
+
picture: "picture";
|
|
13
|
+
text: "text";
|
|
14
|
+
}>>;
|
|
15
|
+
}, z.core.$loose>>>>;
|
|
16
|
+
}, z.core.$loose>>>>;
|
|
17
|
+
}, z.core.$loose>;
|
|
18
|
+
declare const placidListNlTemplates: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
19
|
//#endregion
|
|
8
20
|
export { placidListNlTemplates };
|
|
9
21
|
//# sourceMappingURL=list-nl-templates.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-nl-templates.d.mts","names":[],"sources":["../../src/actions/list-nl-templates.ts"],"mappings":";;;cAIa,0BAAA,
|
|
1
|
+
{"version":3,"file":"list-nl-templates.d.mts","names":[],"sources":["../../src/actions/list-nl-templates.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAU1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAI3B,qBAAA,gCAAqB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -3,20 +3,20 @@ import { z } from "zod";
|
|
|
3
3
|
//#region src/actions/list-nl-templates.ts
|
|
4
4
|
const PlacidListNlTemplatesInput = z.object({}).describe("Request model for listing all available templates via Natural Language API.");
|
|
5
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.");
|
|
6
|
+
name: z.string().describe("Layer identifier name").nullable(),
|
|
7
|
+
type: z.enum(["picture", "text"]).describe("Type of layer - either 'picture' for image/video layers or 'text' for text layers").nullable()
|
|
8
|
+
}).passthrough().describe("Represents a single layer within a template that can be modified.");
|
|
9
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"),
|
|
10
|
+
uuid: z.string().describe("Unique template identifier (UUID) used to identify the template across all templates").nullable(),
|
|
11
|
+
title: z.string().describe("User-defined name of the template").nullable(),
|
|
12
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.");
|
|
13
|
+
}).passthrough().describe("Represents a Placid template with layers that can be filled via text and/or image URLs.");
|
|
14
14
|
const placidListNlTemplates = action("PLACID_LIST_NL_TEMPLATES", {
|
|
15
15
|
slug: "placid-list-nl-templates",
|
|
16
16
|
name: "List NL Templates",
|
|
17
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
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.")
|
|
19
|
+
output: z.object({ data: z.array(PlacidListNlTemplates_TemplateSchema).describe("Array of available Placid templates").nullable().optional() }).passthrough().describe("Response model containing list of available templates via Natural Language API.")
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { placidListNlTemplates };
|
|
@@ -1 +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
|
|
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.object({}).describe(\"Request model for listing all available templates via Natural Language API.\");\nconst PlacidListNlTemplates_TemplateLayerSchema = z.object({\n name: z.string().describe(\"Layer identifier name\").nullable(),\n type: z.enum([\"picture\", \"text\"]).describe(\"Type of layer - either 'picture' for image/video layers or 'text' for text layers\").nullable(),\n}).passthrough().describe(\"Represents a single layer within a template that can be modified.\");\nconst PlacidListNlTemplates_TemplateSchema = z.object({\n uuid: z.string().describe(\"Unique template identifier (UUID) used to identify the template across all templates\").nullable(),\n title: z.string().describe(\"User-defined name of the template\").nullable(),\n layers: z.array(PlacidListNlTemplates_TemplateLayerSchema).describe(\"List of dynamic layers that can be modified with text or images\").nullable().optional(),\n}).passthrough().describe(\"Represents a Placid template with layers that can be filled via text and/or image URLs.\");\nexport const PlacidListNlTemplatesOutput = z.object({\n data: z.array(PlacidListNlTemplates_TemplateSchema).describe(\"Array of available Placid templates\").nullable().optional(),\n}).passthrough().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,6BAA6B,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,6EAA6E;AAC7I,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC5D,MAAM,EAAE,KAAK,CAAC,WAAW,MAAM,CAAC,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;AAC3I,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,mEAAmE;AAC7F,MAAM,uCAAuC,EAAE,OAAO;CACpD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC3H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACzE,QAAQ,EAAE,MAAM,yCAAyC,CAAC,CAAC,SAAS,iEAAiE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7J,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,yFAAyF;AAKnH,MAAa,wBAAwB,OAAO,4BAA4B;CACtE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATyC,EAAE,OAAO,EAClD,MAAM,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC1H,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iFAOhB;AACV,CAAC"}
|