@keystrokehq/placid 0.1.0 → 0.1.2
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.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.map +1 -1
- package/dist/actions/create-template.cjs +6 -6
- 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 +6 -6
- package/dist/actions/create-template.mjs.map +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.map +1 -1
- package/dist/actions/delete-template.cjs +1 -1
- 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 +1 -1
- package/dist/actions/delete-template.mjs.map +1 -1
- package/dist/actions/get-collection.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-collection.mjs.map +1 -1
- package/dist/actions/get-collections.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-collections.mjs.map +1 -1
- package/dist/actions/get-template.cjs +2 -2
- 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 +2 -2
- package/dist/actions/get-template.mjs.map +1 -1
- package/dist/actions/list-nl-templates.cjs +4 -4
- 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 +4 -4
- package/dist/actions/list-nl-templates.mjs.map +1 -1
- package/dist/actions/list-templates.cjs +2 -2
- 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 +2 -2
- package/dist/actions/list-templates.mjs.map +1 -1
- package/dist/actions/update-collection.cjs +2 -2
- 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 +2 -2
- package/dist/actions/update-collection.mjs.map +1 -1
- package/dist/actions/update-template.cjs +2 -2
- 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 +2 -2
- 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 +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}).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,SAAS,0DAOF;AACV,CAAC"}
|
|
@@ -6,8 +6,8 @@ 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
13
|
}).describe("Representation of a single Placid template collection.");
|
|
@@ -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}).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}).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}).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}).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,M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C,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,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,SAAS,0EAA0E;AAEtF,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.$strip>>>>;
|
|
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.$strip>>>;
|
|
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.$strip>>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
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.$strip>>>>;
|
|
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.$strip>>>;
|
|
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.$strip>>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
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,8 +6,8 @@ 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
13
|
}).describe("Representation of a single Placid template collection.");
|
|
@@ -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}).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}).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}).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}).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,S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,+CAA+C;AAO3D,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,SAAS,0EAOF;AACV,CAAC"}
|
|
@@ -4,8 +4,8 @@ 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
11
|
}).describe("Response schema for a Placid 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}).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,SAAS,wCAAwC;AAEpD,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.$strip>;
|
|
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.$strip>;
|
|
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,8 +7,8 @@ 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
14
|
}).describe("Response schema for a Placid template.")
|
|
@@ -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}).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,SAAS,wCAOF;AACV,CAAC"}
|
|
@@ -3,12 +3,12 @@ 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")
|
|
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
8
|
}).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
13
|
}).describe("Represents a Placid template with layers that can be filled via text and/or image URLs.");
|
|
14
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.");
|
|
@@ -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}).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}).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}).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,SAAS,mEAAmE;AAC/E,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,SAAS,yFAAyF;AACrG,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,SAAS,iFAAiF;AAE7F,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.$strip>>>>;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
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.$strip>>>>;
|
|
16
|
+
}, z.core.$strip>>>>;
|
|
17
|
+
}, z.core.$strip>;
|
|
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,12 +3,12 @@ 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")
|
|
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
8
|
}).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
13
|
}).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", {
|
|
@@ -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}).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}).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}).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,SAAS,mEAAmE;AAC/E,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,SAAS,yFAAyF;AAKrG,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,SAAS,iFAOF;AACV,CAAC"}
|
|
@@ -9,8 +9,8 @@ const PlacidListTemplatesInput = zod.z.object({
|
|
|
9
9
|
}).describe("Request model for retrieving templates with optional filtering and pagination.");
|
|
10
10
|
const PlacidListTemplates_TemplateSchema = zod.z.object({
|
|
11
11
|
tags: zod.z.array(zod.z.string()).describe("List of tags associated with the template").nullable().optional(),
|
|
12
|
-
uuid: zod.z.string().describe("Unique identifier of the template (UUID)"),
|
|
13
|
-
title: zod.z.string().describe("Title of the template"),
|
|
12
|
+
uuid: zod.z.string().describe("Unique identifier of the template (UUID)").nullable(),
|
|
13
|
+
title: zod.z.string().describe("Title of the template").nullable(),
|
|
14
14
|
layers: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("List of layers in the template").nullable().optional(),
|
|
15
15
|
thumbnail: zod.z.string().describe("URL of the template thumbnail preview").nullable().optional()
|
|
16
16
|
}).describe("Representation of a single Placid template.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListTemplatesInput
|
|
1
|
+
{"version":3,"file":"list-templates.cjs","names":["z","action"],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListTemplatesInput = z.object({\n cursor: z.string().describe(\"Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.\").optional(),\n order_by: z.string().describe(\"Sort templates. Format: <field>-<direction>. Fields: created_at, updated_at, title. Directions: asc, desc\").optional(),\n title_filter: z.string().describe(\"Filter templates by title\").optional(),\n collection_id: z.string().describe(\"Filter templates by collection UUID\").optional(),\n}).describe(\"Request model for retrieving templates with optional filtering and pagination.\");\nconst PlacidListTemplates_TemplateSchema = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the template\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the template (UUID)\").nullable(),\n title: z.string().describe(\"Title of the template\").nullable(),\n layers: z.array(z.record(z.string(), z.unknown())).describe(\"List of layers in the template\").nullable().optional(),\n thumbnail: z.string().describe(\"URL of the template thumbnail preview\").nullable().optional(),\n}).describe(\"Representation of a single Placid template.\");\nconst PlacidListTemplates_MetaSchema = z.object({\n path: z.string().describe(\"API endpoint path\").nullable().optional(),\n per_page: z.number().int().describe(\"Number of templates per page\").nullable().optional(),\n}).describe(\"Pagination metadata for templates listing.\");\nconst PlacidListTemplates_LinksSchema = z.object({\n next: z.string().describe(\"URL to the next page\").nullable().optional(),\n prev: z.string().describe(\"URL to the previous page\").nullable().optional(),\n}).describe(\"Pagination links for cursor-based navigation.\");\nexport const PlacidListTemplatesOutput = z.object({\n data: z.array(PlacidListTemplates_TemplateSchema).describe(\"List of templates\").nullable().optional(),\n meta: PlacidListTemplates_MetaSchema.nullable().optional(),\n links: PlacidListTemplates_LinksSchema.nullable().optional(),\n}).describe(\"Response model containing a list of templates and pagination metadata.\");\n\nexport const placidListTemplates = action(\"PLACID_LIST_TEMPLATES\", {\n slug: \"placid-list-templates\",\n name: \"List Templates\",\n description: \"Tool to retrieve a list of templates from your project. Returns 20 items per page with cursor pagination. Use to browse templates, optionally filtered by collection or title.\",\n input: PlacidListTemplatesInput,\n output: PlacidListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACrJ,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,qCAAqCA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB,CAAC,CAAC,SAAS;CAC7D,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAA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: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidListTemplatesInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
order_by: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title_filter: z.ZodOptional<z.ZodString>;
|
|
8
|
+
collection_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PlacidListTemplatesOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
13
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
14
|
+
title: z.ZodNullable<z.ZodString>;
|
|
15
|
+
layers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
16
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>>>;
|
|
18
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
per_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const placidListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
cursor?: string | undefined;
|
|
29
|
+
order_by?: string | undefined;
|
|
30
|
+
title_filter?: string | undefined;
|
|
31
|
+
collection_id?: string | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { placidListTemplates };
|
|
9
35
|
//# sourceMappingURL=list-templates.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates.d.cts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-templates.d.cts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/list-templates.d.ts
|
|
4
|
-
declare const PlacidListTemplatesInput: z.
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
declare const PlacidListTemplatesInput: z.ZodObject<{
|
|
5
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
6
|
+
order_by: z.ZodOptional<z.ZodString>;
|
|
7
|
+
title_filter: z.ZodOptional<z.ZodString>;
|
|
8
|
+
collection_id: z.ZodOptional<z.ZodString>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
declare const PlacidListTemplatesOutput: z.ZodObject<{
|
|
11
|
+
data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
|
+
tags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
13
|
+
uuid: z.ZodNullable<z.ZodString>;
|
|
14
|
+
title: z.ZodNullable<z.ZodString>;
|
|
15
|
+
layers: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
16
|
+
thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
}, z.core.$strip>>>>;
|
|
18
|
+
meta: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
19
|
+
path: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
per_page: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
21
|
+
}, z.core.$strip>>>;
|
|
22
|
+
links: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
23
|
+
next: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
prev: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const placidListTemplates: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
28
|
+
cursor?: string | undefined;
|
|
29
|
+
order_by?: string | undefined;
|
|
30
|
+
title_filter?: string | undefined;
|
|
31
|
+
collection_id?: string | undefined;
|
|
32
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
33
|
//#endregion
|
|
8
34
|
export { placidListTemplates };
|
|
9
35
|
//# sourceMappingURL=list-templates.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates.d.mts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,wBAAA,
|
|
1
|
+
{"version":3,"file":"list-templates.d.mts","names":[],"sources":["../../src/actions/list-templates.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAMzB,mBAAA,gCAAmB,wBAAA"}
|
|
@@ -9,8 +9,8 @@ const PlacidListTemplatesInput = z.object({
|
|
|
9
9
|
}).describe("Request model for retrieving templates with optional filtering and pagination.");
|
|
10
10
|
const PlacidListTemplates_TemplateSchema = z.object({
|
|
11
11
|
tags: z.array(z.string()).describe("List of tags associated with the template").nullable().optional(),
|
|
12
|
-
uuid: z.string().describe("Unique identifier of the template (UUID)"),
|
|
13
|
-
title: z.string().describe("Title of the template"),
|
|
12
|
+
uuid: z.string().describe("Unique identifier of the template (UUID)").nullable(),
|
|
13
|
+
title: z.string().describe("Title of the template").nullable(),
|
|
14
14
|
layers: z.array(z.record(z.string(), z.unknown())).describe("List of layers in the template").nullable().optional(),
|
|
15
15
|
thumbnail: z.string().describe("URL of the template thumbnail preview").nullable().optional()
|
|
16
16
|
}).describe("Representation of a single Placid template.");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListTemplatesInput
|
|
1
|
+
{"version":3,"file":"list-templates.mjs","names":[],"sources":["../../src/actions/list-templates.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PlacidListTemplatesInput = z.object({\n cursor: z.string().describe(\"Cursor for cursor-based pagination. Use the value from the 'next' link in the response to get the next page.\").optional(),\n order_by: z.string().describe(\"Sort templates. Format: <field>-<direction>. Fields: created_at, updated_at, title. Directions: asc, desc\").optional(),\n title_filter: z.string().describe(\"Filter templates by title\").optional(),\n collection_id: z.string().describe(\"Filter templates by collection UUID\").optional(),\n}).describe(\"Request model for retrieving templates with optional filtering and pagination.\");\nconst PlacidListTemplates_TemplateSchema = z.object({\n tags: z.array(z.string()).describe(\"List of tags associated with the template\").nullable().optional(),\n uuid: z.string().describe(\"Unique identifier of the template (UUID)\").nullable(),\n title: z.string().describe(\"Title of the template\").nullable(),\n layers: z.array(z.record(z.string(), z.unknown())).describe(\"List of layers in the template\").nullable().optional(),\n thumbnail: z.string().describe(\"URL of the template thumbnail preview\").nullable().optional(),\n}).describe(\"Representation of a single Placid template.\");\nconst PlacidListTemplates_MetaSchema = z.object({\n path: z.string().describe(\"API endpoint path\").nullable().optional(),\n per_page: z.number().int().describe(\"Number of templates per page\").nullable().optional(),\n}).describe(\"Pagination metadata for templates listing.\");\nconst PlacidListTemplates_LinksSchema = z.object({\n next: z.string().describe(\"URL to the next page\").nullable().optional(),\n prev: z.string().describe(\"URL to the previous page\").nullable().optional(),\n}).describe(\"Pagination links for cursor-based navigation.\");\nexport const PlacidListTemplatesOutput = z.object({\n data: z.array(PlacidListTemplates_TemplateSchema).describe(\"List of templates\").nullable().optional(),\n meta: PlacidListTemplates_MetaSchema.nullable().optional(),\n links: PlacidListTemplates_LinksSchema.nullable().optional(),\n}).describe(\"Response model containing a list of templates and pagination metadata.\");\n\nexport const placidListTemplates = action(\"PLACID_LIST_TEMPLATES\", {\n slug: \"placid-list-templates\",\n name: \"List Templates\",\n description: \"Tool to retrieve a list of templates from your project. Returns 20 items per page with cursor pagination. Use to browse templates, optionally filtered by collection or title.\",\n input: PlacidListTemplatesInput,\n output: PlacidListTemplatesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,8GAA8G,CAAC,CAAC,SAAS;CACrJ,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACxE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAM,qCAAqC,EAAE,OAAO;CAClD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;CAC/E,OAAO,EAAE,OAAO,CAAC,CAAC,SAA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