@keystrokehq/prismic 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +17 -0
  2. package/dist/action.cjs +21 -0
  3. package/dist/action.cjs.map +1 -0
  4. package/dist/action.mjs +21 -0
  5. package/dist/action.mjs.map +1 -0
  6. package/dist/actions/content-api-get-documents-with-fulltext-search.cjs +54 -0
  7. package/dist/actions/content-api-get-documents-with-fulltext-search.cjs.map +1 -0
  8. package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts +9 -0
  9. package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts.map +1 -0
  10. package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts +9 -0
  11. package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts.map +1 -0
  12. package/dist/actions/content-api-get-documents-with-fulltext-search.mjs +53 -0
  13. package/dist/actions/content-api-get-documents-with-fulltext-search.mjs.map +1 -0
  14. package/dist/actions/content-api-query-documents.cjs +57 -0
  15. package/dist/actions/content-api-query-documents.cjs.map +1 -0
  16. package/dist/actions/content-api-query-documents.d.cts +9 -0
  17. package/dist/actions/content-api-query-documents.d.cts.map +1 -0
  18. package/dist/actions/content-api-query-documents.d.mts +9 -0
  19. package/dist/actions/content-api-query-documents.d.mts.map +1 -0
  20. package/dist/actions/content-api-query-documents.mjs +56 -0
  21. package/dist/actions/content-api-query-documents.mjs.map +1 -0
  22. package/dist/actions/index.cjs +11 -0
  23. package/dist/actions/index.d.cts +6 -0
  24. package/dist/actions/index.d.mts +6 -0
  25. package/dist/actions/index.mjs +6 -0
  26. package/dist/actions/repository-api-get-info.cjs +44 -0
  27. package/dist/actions/repository-api-get-info.cjs.map +1 -0
  28. package/dist/actions/repository-api-get-info.d.cts +9 -0
  29. package/dist/actions/repository-api-get-info.d.cts.map +1 -0
  30. package/dist/actions/repository-api-get-info.d.mts +9 -0
  31. package/dist/actions/repository-api-get-info.d.mts.map +1 -0
  32. package/dist/actions/repository-api-get-info.mjs +43 -0
  33. package/dist/actions/repository-api-get-info.mjs.map +1 -0
  34. package/dist/actions/tags-api-get-all-tags.cjs +16 -0
  35. package/dist/actions/tags-api-get-all-tags.cjs.map +1 -0
  36. package/dist/actions/tags-api-get-all-tags.d.cts +9 -0
  37. package/dist/actions/tags-api-get-all-tags.d.cts.map +1 -0
  38. package/dist/actions/tags-api-get-all-tags.d.mts +9 -0
  39. package/dist/actions/tags-api-get-all-tags.d.mts.map +1 -0
  40. package/dist/actions/tags-api-get-all-tags.mjs +13 -0
  41. package/dist/actions/tags-api-get-all-tags.mjs.map +1 -0
  42. package/dist/actions/types-api-get-types.cjs +33 -0
  43. package/dist/actions/types-api-get-types.cjs.map +1 -0
  44. package/dist/actions/types-api-get-types.d.cts +9 -0
  45. package/dist/actions/types-api-get-types.d.cts.map +1 -0
  46. package/dist/actions/types-api-get-types.d.mts +9 -0
  47. package/dist/actions/types-api-get-types.d.mts.map +1 -0
  48. package/dist/actions/types-api-get-types.mjs +32 -0
  49. package/dist/actions/types-api-get-types.mjs.map +1 -0
  50. package/dist/app.cjs +9 -0
  51. package/dist/app.cjs.map +1 -0
  52. package/dist/app.d.cts +5 -0
  53. package/dist/app.d.cts.map +1 -0
  54. package/dist/app.d.mts +5 -0
  55. package/dist/app.d.mts.map +1 -0
  56. package/dist/app.mjs +10 -0
  57. package/dist/app.mjs.map +1 -0
  58. package/dist/catalog.cjs +15 -0
  59. package/dist/catalog.cjs.map +1 -0
  60. package/dist/catalog.d.cts +14 -0
  61. package/dist/catalog.d.cts.map +1 -0
  62. package/dist/catalog.d.mts +14 -0
  63. package/dist/catalog.d.mts.map +1 -0
  64. package/dist/catalog.mjs +15 -0
  65. package/dist/catalog.mjs.map +1 -0
  66. package/dist/execute.cjs +18 -0
  67. package/dist/execute.cjs.map +1 -0
  68. package/dist/execute.mjs +18 -0
  69. package/dist/execute.mjs.map +1 -0
  70. package/dist/index.cjs +16 -0
  71. package/dist/index.d.cts +8 -0
  72. package/dist/index.d.mts +8 -0
  73. package/dist/index.mjs +9 -0
  74. package/package.json +49 -0
@@ -0,0 +1,43 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/repository-api-get-info.ts
4
+ const PrismicRepositoryApiGetInfoInput = z.object({}).describe("Request model for retrieving Prismic repository metadata. This endpoint requires no input parameters\nas it returns information about the authenticated repository based on the credentials provided in\nthe metadata. The repository is identified from the base_url in the authentication metadata.");
5
+ const PrismicRepositoryApiGetInfo_RefSchema = z.object({
6
+ id: z.string().describe("Unique identifier for the ref"),
7
+ ref: z.string().describe("Reference token"),
8
+ label: z.string().describe("Human-readable label"),
9
+ isMasterRef: z.boolean().describe("True if this is the master ref"),
10
+ scheduledAt: z.string().describe("Scheduled activation date, if applicable").nullable().optional()
11
+ }).describe("A single API reference (master or release).");
12
+ const PrismicRepositoryApiGetInfo_LanguageSchema = z.object({
13
+ id: z.string().describe("ISO code of the language"),
14
+ name: z.string().describe("Display name of the language")
15
+ }).describe("Supported language in the repository.");
16
+ const PrismicRepositoryApiGetInfo_ExperimentsSchema = z.object({
17
+ draft: z.array(z.record(z.string(), z.unknown())).describe("Draft experiments").nullable().optional(),
18
+ running: z.array(z.record(z.string(), z.unknown())).describe("Running experiments").nullable().optional()
19
+ }).describe("Active A/B test configurations.");
20
+ const prismicRepositoryApiGetInfo = action("PRISMIC_REPOSITORY_API_GET_INFO", {
21
+ slug: "prismic-repository-api-get-info",
22
+ name: "Get Prismic Repository Info",
23
+ description: "Retrieves comprehensive metadata about a Prismic repository including available refs (content versions), custom types, languages, tags, bookmarks, and API forms. This is typically the first API call made after authentication to discover repository configuration and available content endpoints. The 'refs' field is particularly important as refs are required for querying documents via the Content API.",
24
+ input: PrismicRepositoryApiGetInfoInput,
25
+ output: z.object({
26
+ refs: z.array(PrismicRepositoryApiGetInfo_RefSchema).describe("List of all refs in the repository"),
27
+ tags: z.array(z.string()).describe("List of all tags in the repository"),
28
+ forms: z.object({}).describe("Forms available for document search endpoints"),
29
+ types: z.object({}).describe("Map of custom type IDs to their names"),
30
+ license: z.string().describe("Repository license information").nullable().optional(),
31
+ version: z.string().describe("API version identifier").nullable().optional(),
32
+ bookmarks: z.object({}).describe("Named bookmarks mapping document aliases to IDs"),
33
+ languages: z.array(PrismicRepositoryApiGetInfo_LanguageSchema).describe("Supported languages in the repository"),
34
+ experiments: PrismicRepositoryApiGetInfo_ExperimentsSchema.nullable().optional(),
35
+ oauth_token: z.string().describe("OAuth token exchange URL").nullable().optional(),
36
+ oauth_initiate: z.string().describe("OAuth initiation URL").nullable().optional(),
37
+ integrationFieldsRef: z.string().describe("Reference for integration fields data, if present").nullable().optional()
38
+ }).describe("Response model containing Prismic repository metadata.")
39
+ });
40
+ //#endregion
41
+ export { prismicRepositoryApiGetInfo };
42
+
43
+ //# sourceMappingURL=repository-api-get-info.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository-api-get-info.mjs","names":[],"sources":["../../src/actions/repository-api-get-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicRepositoryApiGetInfoInput: z.ZodTypeAny = z.object({}).describe(\"Request model for retrieving Prismic repository metadata. This endpoint requires no input parameters\\nas it returns information about the authenticated repository based on the credentials provided in\\nthe metadata. The repository is identified from the base_url in the authentication metadata.\");\nconst PrismicRepositoryApiGetInfo_RefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the ref\"),\n ref: z.string().describe(\"Reference token\"),\n label: z.string().describe(\"Human-readable label\"),\n isMasterRef: z.boolean().describe(\"True if this is the master ref\"),\n scheduledAt: z.string().describe(\"Scheduled activation date, if applicable\").nullable().optional(),\n}).describe(\"A single API reference (master or release).\");\nconst PrismicRepositoryApiGetInfo_LanguageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ISO code of the language\"),\n name: z.string().describe(\"Display name of the language\"),\n}).describe(\"Supported language in the repository.\");\nconst PrismicRepositoryApiGetInfo_ExperimentsSchema: z.ZodTypeAny = z.object({\n draft: z.array(z.record(z.string(), z.unknown())).describe(\"Draft experiments\").nullable().optional(),\n running: z.array(z.record(z.string(), z.unknown())).describe(\"Running experiments\").nullable().optional(),\n}).describe(\"Active A/B test configurations.\");\nexport const PrismicRepositoryApiGetInfoOutput: z.ZodTypeAny = z.object({\n refs: z.array(PrismicRepositoryApiGetInfo_RefSchema).describe(\"List of all refs in the repository\"),\n tags: z.array(z.string()).describe(\"List of all tags in the repository\"),\n forms: z.object({}).describe(\"Forms available for document search endpoints\"),\n types: z.object({}).describe(\"Map of custom type IDs to their names\"),\n license: z.string().describe(\"Repository license information\").nullable().optional(),\n version: z.string().describe(\"API version identifier\").nullable().optional(),\n bookmarks: z.object({}).describe(\"Named bookmarks mapping document aliases to IDs\"),\n languages: z.array(PrismicRepositoryApiGetInfo_LanguageSchema).describe(\"Supported languages in the repository\"),\n experiments: PrismicRepositoryApiGetInfo_ExperimentsSchema.nullable().optional(),\n oauth_token: z.string().describe(\"OAuth token exchange URL\").nullable().optional(),\n oauth_initiate: z.string().describe(\"OAuth initiation URL\").nullable().optional(),\n integrationFieldsRef: z.string().describe(\"Reference for integration fields data, if present\").nullable().optional(),\n}).describe(\"Response model containing Prismic repository metadata.\");\n\nexport const prismicRepositoryApiGetInfo = action(\"PRISMIC_REPOSITORY_API_GET_INFO\", {\n slug: \"prismic-repository-api-get-info\",\n name: \"Get Prismic Repository Info\",\n description: \"Retrieves comprehensive metadata about a Prismic repository including available refs (content versions), custom types, languages, tags, bookmarks, and API forms. This is typically the first API call made after authentication to discover repository configuration and available content endpoints. The 'refs' field is particularly important as refs are required for querying documents via the Content API.\",\n input: PrismicRepositoryApiGetInfoInput,\n output: PrismicRepositoryApiGetInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS;AAC3X,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,6CAA2D,EAAE,OAAO;CACxE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;AAC1D,CAAC,CAAC,CAAC,SAAS,uCAAuC;AACnD,MAAM,gDAA8D,EAAE,OAAO;CAC3E,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpG,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,iCAAiC;AAgB7C,MAAa,8BAA8B,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApB6D,EAAE,OAAO;EACtE,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oCAAoC;EAClG,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC;EACvE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,+CAA+C;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uCAAuC;EACpE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;EAClF,WAAW,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,uCAAuC;EAC/G,aAAa,8CAA8C,SAAS,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
@@ -0,0 +1,16 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/tags-api-get-all-tags.ts
4
+ const PrismicTagsApiGetAllTagsInput = zod.z.object({}).describe("Parameters for retrieving all tags from Prismic.");
5
+ const PrismicTagsApiGetAllTagsOutput = zod.z.object({ tags: zod.z.array(zod.z.string()).describe("List of all tags present in the Prismic repository.") }).describe("Response model for the TAGS_API_GET_ALL_TAGS action.");
6
+ const prismicTagsApiGetAllTags = require_action.action("PRISMIC_TAGS_API_GET_ALL_TAGS", {
7
+ slug: "prismic-tags-api-get-all-tags",
8
+ name: "Get Prismic Tags",
9
+ description: "Tool to retrieve all tags from Prismic repository. Use when you need the full list of tags for filtering or categorization.",
10
+ input: PrismicTagsApiGetAllTagsInput,
11
+ output: PrismicTagsApiGetAllTagsOutput
12
+ });
13
+ //#endregion
14
+ exports.prismicTagsApiGetAllTags = prismicTagsApiGetAllTags;
15
+
16
+ //# sourceMappingURL=tags-api-get-all-tags.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags-api-get-all-tags.cjs","names":["z","action"],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicTagsApiGetAllTagsInput: z.ZodTypeAny = z.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of all tags present in the Prismic repository.\"),\n}).describe(\"Response model for the TAGS_API_GET_ALL_TAGS action.\");\n\nexport const prismicTagsApiGetAllTags = action(\"PRISMIC_TAGS_API_GET_ALL_TAGS\", {\n slug: \"prismic-tags-api-get-all-tags\",\n name: \"Get Prismic Tags\",\n description: \"Tool to retrieve all tags from Prismic repository. Use when you need the full list of tags for filtering or categorization.\",\n input: PrismicTagsApiGetAllTagsInput,\n output: PrismicTagsApiGetAllTagsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AACnI,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/tags-api-get-all-tags.d.ts
4
+ declare const PrismicTagsApiGetAllTagsInput: z.ZodTypeAny;
5
+ declare const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny;
6
+ declare const prismicTagsApiGetAllTags: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismicTagsApiGetAllTags };
9
+ //# sourceMappingURL=tags-api-get-all-tags.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags-api-get-all-tags.d.cts","names":[],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAsF;AAAA,cACvH,8BAAA,EAAgC,CAAA,CAAE,UAEoB;AAAA,cAEtD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/tags-api-get-all-tags.d.ts
4
+ declare const PrismicTagsApiGetAllTagsInput: z.ZodTypeAny;
5
+ declare const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny;
6
+ declare const prismicTagsApiGetAllTags: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismicTagsApiGetAllTags };
9
+ //# sourceMappingURL=tags-api-get-all-tags.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags-api-get-all-tags.d.mts","names":[],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAsF;AAAA,cACvH,8BAAA,EAAgC,CAAA,CAAE,UAEoB;AAAA,cAEtD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,13 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ const prismicTagsApiGetAllTags = action("PRISMIC_TAGS_API_GET_ALL_TAGS", {
4
+ slug: "prismic-tags-api-get-all-tags",
5
+ name: "Get Prismic Tags",
6
+ description: "Tool to retrieve all tags from Prismic repository. Use when you need the full list of tags for filtering or categorization.",
7
+ input: z.object({}).describe("Parameters for retrieving all tags from Prismic."),
8
+ output: z.object({ tags: z.array(z.string()).describe("List of all tags present in the Prismic repository.") }).describe("Response model for the TAGS_API_GET_ALL_TAGS action.")
9
+ });
10
+ //#endregion
11
+ export { prismicTagsApiGetAllTags };
12
+
13
+ //# sourceMappingURL=tags-api-get-all-tags.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tags-api-get-all-tags.mjs","names":[],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicTagsApiGetAllTagsInput: z.ZodTypeAny = z.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of all tags present in the Prismic repository.\"),\n}).describe(\"Response model for the TAGS_API_GET_ALL_TAGS action.\");\n\nexport const prismicTagsApiGetAllTags = action(\"PRISMIC_TAGS_API_GET_ALL_TAGS\", {\n slug: \"prismic-tags-api-get-all-tags\",\n name: \"Get Prismic Tags\",\n description: \"Tool to retrieve all tags from Prismic repository. Use when you need the full list of tags for filtering or categorization.\",\n input: PrismicTagsApiGetAllTagsInput,\n output: PrismicTagsApiGetAllTagsOutput,\n});\n"],"mappings":";;AASA,MAAa,2BAA2B,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATyD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDASxE;CACP,QAT0D,EAAE,OAAO,EACnE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
@@ -0,0 +1,33 @@
1
+ const require_action = require("../action.cjs");
2
+ let zod = require("zod");
3
+ //#region src/actions/types-api-get-types.ts
4
+ const PrismicTypesApiGetTypesInput = zod.z.object({
5
+ page: zod.z.number().int().describe("Page number for pagination (1-indexed). Use with limit parameter to navigate through results.").optional(),
6
+ sort: zod.z.string().describe("Sort order for results. Common values include 'name' to sort alphabetically by custom type name.").optional(),
7
+ limit: zod.z.number().int().describe("Maximum number of custom types to return per page. If not specified, returns all custom types.").optional()
8
+ }).describe("Request parameters for retrieving custom types from a Prismic repository.");
9
+ const PrismicTypesApiGetTypes_CustomTypeSchema = zod.z.object({
10
+ id: zod.z.string().describe("Custom type ID"),
11
+ json: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structure definition of the custom type"),
12
+ label: zod.z.string().describe("Display label of the custom type"),
13
+ repeatable: zod.z.boolean().describe("Whether the custom type is repeatable")
14
+ }).describe("Schema for a Prismic custom type or slice definition.");
15
+ const PrismicTypesApiGetTypesOutput = zod.z.object({
16
+ page: zod.z.number().int().describe("Current page number"),
17
+ results: zod.z.array(PrismicTypesApiGetTypes_CustomTypeSchema).describe("List of custom types defined in the repository"),
18
+ total_pages: zod.z.number().int().describe("Total number of pages available"),
19
+ results_size: zod.z.number().int().describe("Number of custom types returned in this response"),
20
+ results_per_page: zod.z.number().int().describe("Number of results returned per page"),
21
+ total_results_size: zod.z.number().int().describe("Total number of custom types in the repository")
22
+ }).describe("Response schema for listing custom types and slices in a Prismic repository.");
23
+ const prismicTypesApiGetTypes = require_action.action("PRISMIC_TYPES_API_GET_TYPES", {
24
+ slug: "prismic-types-api-get-types",
25
+ name: "Prismic: Get Custom Types",
26
+ description: "Retrieves all custom types (content models) defined in the Prismic repository. Custom types define the structure of content in Prismic. This action returns metadata about each custom type including its ID, label, structure definition (JSON schema), and whether it's repeatable. Use this to discover available content types before querying documents, or to understand the content model of a repository. Returns an empty list if no custom types are defined in the repository.",
27
+ input: PrismicTypesApiGetTypesInput,
28
+ output: PrismicTypesApiGetTypesOutput
29
+ });
30
+ //#endregion
31
+ exports.prismicTypesApiGetTypes = prismicTypesApiGetTypes;
32
+
33
+ //# sourceMappingURL=types-api-get-types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-api-get-types.cjs","names":["z","action"],"sources":["../../src/actions/types-api-get-types.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicTypesApiGetTypesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Use with limit parameter to navigate through results.\").optional(),\n sort: z.string().describe(\"Sort order for results. Common values include 'name' to sort alphabetically by custom type name.\").optional(),\n limit: z.number().int().describe(\"Maximum number of custom types to return per page. If not specified, returns all custom types.\").optional(),\n}).describe(\"Request parameters for retrieving custom types from a Prismic repository.\");\nconst PrismicTypesApiGetTypes_CustomTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Custom type ID\"),\n json: z.record(z.string(), z.unknown()).describe(\"Structure definition of the custom type\"),\n label: z.string().describe(\"Display label of the custom type\"),\n repeatable: z.boolean().describe(\"Whether the custom type is repeatable\"),\n}).describe(\"Schema for a Prismic custom type or slice definition.\");\nexport const PrismicTypesApiGetTypesOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n results: z.array(PrismicTypesApiGetTypes_CustomTypeSchema).describe(\"List of custom types defined in the repository\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n results_size: z.number().int().describe(\"Number of custom types returned in this response\"),\n results_per_page: z.number().int().describe(\"Number of results returned per page\"),\n total_results_size: z.number().int().describe(\"Total number of custom types in the repository\"),\n}).describe(\"Response schema for listing custom types and slices in a Prismic repository.\");\n\nexport const prismicTypesApiGetTypes = action(\"PRISMIC_TYPES_API_GET_TYPES\", {\n slug: \"prismic-types-api-get-types\",\n name: \"Prismic: Get Custom Types\",\n description: \"Retrieves all custom types (content models) defined in the Prismic repository. Custom types define the structure of content in Prismic. This action returns metadata about each custom type including its ID, label, structure definition (JSON schema), and whether it's repeatable. Use this to discover available content types before querying documents, or to understand the content model of a repository. Returns an empty list if no custom types are defined in the repository.\",\n input: PrismicTypesApiGetTypesInput,\n output: PrismicTypesApiGetTypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;AAC1E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACrD,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CAC1F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACjF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;AAChG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAE1F,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/types-api-get-types.d.ts
4
+ declare const PrismicTypesApiGetTypesInput: z.ZodTypeAny;
5
+ declare const PrismicTypesApiGetTypesOutput: z.ZodTypeAny;
6
+ declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismicTypesApiGetTypes };
9
+ //# sourceMappingURL=types-api-get-types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-api-get-types.d.cts","names":[],"sources":["../../src/actions/types-api-get-types.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAI2C;AAAA,cAO3E,6BAAA,EAA+B,CAAA,CAAE,UAO6C;AAAA,cAE9E,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,9 @@
1
+ import { z } from "zod";
2
+
3
+ //#region src/actions/types-api-get-types.d.ts
4
+ declare const PrismicTypesApiGetTypesInput: z.ZodTypeAny;
5
+ declare const PrismicTypesApiGetTypesOutput: z.ZodTypeAny;
6
+ declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
+ //#endregion
8
+ export { prismicTypesApiGetTypes };
9
+ //# sourceMappingURL=types-api-get-types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-api-get-types.d.mts","names":[],"sources":["../../src/actions/types-api-get-types.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAI2C;AAAA,cAO3E,6BAAA,EAA+B,CAAA,CAAE,UAO6C;AAAA,cAE9E,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -0,0 +1,32 @@
1
+ import { action } from "../action.mjs";
2
+ import { z } from "zod";
3
+ //#region src/actions/types-api-get-types.ts
4
+ const PrismicTypesApiGetTypesInput = z.object({
5
+ page: z.number().int().describe("Page number for pagination (1-indexed). Use with limit parameter to navigate through results.").optional(),
6
+ sort: z.string().describe("Sort order for results. Common values include 'name' to sort alphabetically by custom type name.").optional(),
7
+ limit: z.number().int().describe("Maximum number of custom types to return per page. If not specified, returns all custom types.").optional()
8
+ }).describe("Request parameters for retrieving custom types from a Prismic repository.");
9
+ const PrismicTypesApiGetTypes_CustomTypeSchema = z.object({
10
+ id: z.string().describe("Custom type ID"),
11
+ json: z.record(z.string(), z.unknown()).describe("Structure definition of the custom type"),
12
+ label: z.string().describe("Display label of the custom type"),
13
+ repeatable: z.boolean().describe("Whether the custom type is repeatable")
14
+ }).describe("Schema for a Prismic custom type or slice definition.");
15
+ const prismicTypesApiGetTypes = action("PRISMIC_TYPES_API_GET_TYPES", {
16
+ slug: "prismic-types-api-get-types",
17
+ name: "Prismic: Get Custom Types",
18
+ description: "Retrieves all custom types (content models) defined in the Prismic repository. Custom types define the structure of content in Prismic. This action returns metadata about each custom type including its ID, label, structure definition (JSON schema), and whether it's repeatable. Use this to discover available content types before querying documents, or to understand the content model of a repository. Returns an empty list if no custom types are defined in the repository.",
19
+ input: PrismicTypesApiGetTypesInput,
20
+ output: z.object({
21
+ page: z.number().int().describe("Current page number"),
22
+ results: z.array(PrismicTypesApiGetTypes_CustomTypeSchema).describe("List of custom types defined in the repository"),
23
+ total_pages: z.number().int().describe("Total number of pages available"),
24
+ results_size: z.number().int().describe("Number of custom types returned in this response"),
25
+ results_per_page: z.number().int().describe("Number of results returned per page"),
26
+ total_results_size: z.number().int().describe("Total number of custom types in the repository")
27
+ }).describe("Response schema for listing custom types and slices in a Prismic repository.")
28
+ });
29
+ //#endregion
30
+ export { prismicTypesApiGetTypes };
31
+
32
+ //# sourceMappingURL=types-api-get-types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types-api-get-types.mjs","names":[],"sources":["../../src/actions/types-api-get-types.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicTypesApiGetTypesInput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Use with limit parameter to navigate through results.\").optional(),\n sort: z.string().describe(\"Sort order for results. Common values include 'name' to sort alphabetically by custom type name.\").optional(),\n limit: z.number().int().describe(\"Maximum number of custom types to return per page. If not specified, returns all custom types.\").optional(),\n}).describe(\"Request parameters for retrieving custom types from a Prismic repository.\");\nconst PrismicTypesApiGetTypes_CustomTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Custom type ID\"),\n json: z.record(z.string(), z.unknown()).describe(\"Structure definition of the custom type\"),\n label: z.string().describe(\"Display label of the custom type\"),\n repeatable: z.boolean().describe(\"Whether the custom type is repeatable\"),\n}).describe(\"Schema for a Prismic custom type or slice definition.\");\nexport const PrismicTypesApiGetTypesOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n results: z.array(PrismicTypesApiGetTypes_CustomTypeSchema).describe(\"List of custom types defined in the repository\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n results_size: z.number().int().describe(\"Number of custom types returned in this response\"),\n results_per_page: z.number().int().describe(\"Number of results returned per page\"),\n total_results_size: z.number().int().describe(\"Total number of custom types in the repository\"),\n}).describe(\"Response schema for listing custom types and slices in a Prismic repository.\");\n\nexport const prismicTypesApiGetTypes = action(\"PRISMIC_TYPES_API_GET_TYPES\", {\n slug: \"prismic-types-api-get-types\",\n name: \"Prismic: Get Custom Types\",\n description: \"Retrieves all custom types (content models) defined in the Prismic repository. Custom types define the structure of content in Prismic. This action returns metadata about each custom type including its ID, label, structure definition (JSON schema), and whether it's repeatable. Use this to discover available content types before querying documents, or to understand the content model of a repository. Returns an empty list if no custom types are defined in the repository.\",\n input: PrismicTypesApiGetTypesInput,\n output: PrismicTypesApiGetTypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,2CAAyD,EAAE,OAAO;CACtE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;AAC1E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AAUnE,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EACrD,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;EACxE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;EAC1F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EACjF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CAChG,CAAC,CAAC,CAAC,SAAS,8EAOF;AACV,CAAC"}
package/dist/app.cjs ADDED
@@ -0,0 +1,9 @@
1
+ //#region src/app.ts
2
+ const prismic = (0, require("@keystrokehq/keystroke/app").defineApp)({
3
+ slug: "prismic",
4
+ auth: "keystroke"
5
+ });
6
+ //#endregion
7
+ exports.prismic = prismic;
8
+
9
+ //# sourceMappingURL=app.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const prismic = defineApp({\n slug: \"prismic\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,WAAA,uCAAA,CAAA,CAAA,UAAA,CAAoB;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const prismic: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { prismic };
5
+ //# sourceMappingURL=app.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
package/dist/app.d.mts ADDED
@@ -0,0 +1,5 @@
1
+ //#region src/app.d.ts
2
+ declare const prismic: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
3
+ //#endregion
4
+ export { prismic };
5
+ //# sourceMappingURL=app.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,OAAA,6BAAO,GAAA,+BAAA,UAAA"}
package/dist/app.mjs ADDED
@@ -0,0 +1,10 @@
1
+ import { defineApp } from "@keystrokehq/keystroke/app";
2
+ //#region src/app.ts
3
+ const prismic = defineApp({
4
+ slug: "prismic",
5
+ auth: "keystroke"
6
+ });
7
+ //#endregion
8
+ export { prismic };
9
+
10
+ //# sourceMappingURL=app.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const prismic = defineApp({\n slug: \"prismic\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,UAAU,UAAU;CAC/B,MAAM;CACN,MAAM;AACR,CAAC"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const prismicCatalog = {
4
+ "slug": "prismic",
5
+ "name": "Prismic",
6
+ "description": "Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.",
7
+ "category": "Website Builders",
8
+ "logo": "https://logos.composio.dev/api/prismic",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ exports.prismicCatalog = prismicCatalog;
14
+
15
+ //# sourceMappingURL=catalog.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const prismicCatalog = {\n \"slug\": \"prismic\",\n \"name\": \"Prismic\",\n \"description\": \"Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.\",\n \"category\": \"Website Builders\",\n \"logo\": \"https://logos.composio.dev/api/prismic\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const prismicCatalog: {
4
+ readonly slug: "prismic";
5
+ readonly name: "Prismic";
6
+ readonly description: "Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.";
7
+ readonly category: "Website Builders";
8
+ readonly logo: "https://logos.composio.dev/api/prismic";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { prismicCatalog };
14
+ //# sourceMappingURL=catalog.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.cts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
@@ -0,0 +1,14 @@
1
+ //#region src/catalog.d.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ declare const prismicCatalog: {
4
+ readonly slug: "prismic";
5
+ readonly name: "Prismic";
6
+ readonly description: "Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.";
7
+ readonly category: "Website Builders";
8
+ readonly logo: "https://logos.composio.dev/api/prismic";
9
+ readonly authKind: "keystroke";
10
+ readonly oauthScopes: readonly [];
11
+ };
12
+ //#endregion
13
+ export { prismicCatalog };
14
+ //# sourceMappingURL=catalog.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.d.mts","names":[],"sources":["../src/catalog.ts"],"mappings":";;cACa,cAAA;EAAA"}
@@ -0,0 +1,15 @@
1
+ //#region src/catalog.ts
2
+ /** Generated — kept in sync with src/app.ts. */
3
+ const prismicCatalog = {
4
+ "slug": "prismic",
5
+ "name": "Prismic",
6
+ "description": "Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.",
7
+ "category": "Website Builders",
8
+ "logo": "https://logos.composio.dev/api/prismic",
9
+ "authKind": "keystroke",
10
+ "oauthScopes": []
11
+ };
12
+ //#endregion
13
+ export { prismicCatalog };
14
+
15
+ //# sourceMappingURL=catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const prismicCatalog = {\n \"slug\": \"prismic\",\n \"name\": \"Prismic\",\n \"description\": \"Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.\",\n \"category\": \"Website Builders\",\n \"logo\": \"https://logos.composio.dev/api/prismic\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
@@ -0,0 +1,18 @@
1
+ let _keystrokehq_keystroke_client = require("@keystrokehq/keystroke/client");
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "prismic";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executePrismicTool(tool, args) {
7
+ const { result } = await (0, _keystrokehq_keystroke_client.createKeystrokeClient)().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ exports.executePrismicTool = executePrismicTool;
17
+
18
+ //# sourceMappingURL=execute.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.cjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"prismic\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePrismicTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,OAAA,GAAA,8BAAA,sBAAA,CAA4B,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
@@ -0,0 +1,18 @@
1
+ import { createKeystrokeClient } from "@keystrokehq/keystroke/client";
2
+ //#region src/execute.ts
3
+ const APP_SLUG = "prismic";
4
+ /** Pinned app version — updated on regeneration. */
5
+ const APP_VERSION = "20260615_00";
6
+ async function executePrismicTool(tool, args) {
7
+ const { result } = await createKeystrokeClient().tools.execute({
8
+ app: APP_SLUG,
9
+ tool,
10
+ arguments: args,
11
+ version: APP_VERSION
12
+ });
13
+ return result;
14
+ }
15
+ //#endregion
16
+ export { executePrismicTool };
17
+
18
+ //# sourceMappingURL=execute.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"execute.mjs","names":[],"sources":["../src/execute.ts"],"sourcesContent":["import { createKeystrokeClient } from \"@keystrokehq/keystroke/client\";\n\nconst APP_SLUG = \"prismic\";\n/** Pinned app version — updated on regeneration. */\nconst APP_VERSION = \"20260615_00\";\n\nexport async function executePrismicTool(\n tool: string,\n args: Record<string, unknown>,\n): Promise<unknown> {\n const { result } = await createKeystrokeClient().tools.execute({\n app: APP_SLUG,\n tool,\n arguments: args,\n version: APP_VERSION,\n });\n return result;\n}\n"],"mappings":";;AAEA,MAAM,WAAW;;AAEjB,MAAM,cAAc;AAEpB,eAAsB,mBACpB,MACA,MACkB;CAClB,MAAM,EAAE,WAAW,MAAM,sBAAsB,CAAC,CAAC,MAAM,QAAQ;EAC7D,KAAK;EACL;EACA,WAAW;EACX,SAAS;CACX,CAAC;CACD,OAAO;AACT"}
package/dist/index.cjs ADDED
@@ -0,0 +1,16 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_app = require("./app.cjs");
3
+ const require_catalog = require("./catalog.cjs");
4
+ const require_content_api_get_documents_with_fulltext_search = require("./actions/content-api-get-documents-with-fulltext-search.cjs");
5
+ const require_content_api_query_documents = require("./actions/content-api-query-documents.cjs");
6
+ const require_repository_api_get_info = require("./actions/repository-api-get-info.cjs");
7
+ const require_tags_api_get_all_tags = require("./actions/tags-api-get-all-tags.cjs");
8
+ const require_types_api_get_types = require("./actions/types-api-get-types.cjs");
9
+ require("./actions/index.cjs");
10
+ exports.prismic = require_app.prismic;
11
+ exports.prismicCatalog = require_catalog.prismicCatalog;
12
+ exports.prismicContentApiGetDocumentsWithFulltextSearch = require_content_api_get_documents_with_fulltext_search.prismicContentApiGetDocumentsWithFulltextSearch;
13
+ exports.prismicContentApiQueryDocuments = require_content_api_query_documents.prismicContentApiQueryDocuments;
14
+ exports.prismicRepositoryApiGetInfo = require_repository_api_get_info.prismicRepositoryApiGetInfo;
15
+ exports.prismicTagsApiGetAllTags = require_tags_api_get_all_tags.prismicTagsApiGetAllTags;
16
+ exports.prismicTypesApiGetTypes = require_types_api_get_types.prismicTypesApiGetTypes;
@@ -0,0 +1,8 @@
1
+ import { prismicContentApiGetDocumentsWithFulltextSearch } from "./actions/content-api-get-documents-with-fulltext-search.cjs";
2
+ import { prismicContentApiQueryDocuments } from "./actions/content-api-query-documents.cjs";
3
+ import { prismicRepositoryApiGetInfo } from "./actions/repository-api-get-info.cjs";
4
+ import { prismicTagsApiGetAllTags } from "./actions/tags-api-get-all-tags.cjs";
5
+ import { prismicTypesApiGetTypes } from "./actions/types-api-get-types.cjs";
6
+ import { prismic } from "./app.cjs";
7
+ import { prismicCatalog } from "./catalog.cjs";
8
+ export { prismic, prismicCatalog, prismicContentApiGetDocumentsWithFulltextSearch, prismicContentApiQueryDocuments, prismicRepositoryApiGetInfo, prismicTagsApiGetAllTags, prismicTypesApiGetTypes };
@@ -0,0 +1,8 @@
1
+ import { prismicContentApiGetDocumentsWithFulltextSearch } from "./actions/content-api-get-documents-with-fulltext-search.mjs";
2
+ import { prismicContentApiQueryDocuments } from "./actions/content-api-query-documents.mjs";
3
+ import { prismicRepositoryApiGetInfo } from "./actions/repository-api-get-info.mjs";
4
+ import { prismicTagsApiGetAllTags } from "./actions/tags-api-get-all-tags.mjs";
5
+ import { prismicTypesApiGetTypes } from "./actions/types-api-get-types.mjs";
6
+ import { prismic } from "./app.mjs";
7
+ import { prismicCatalog } from "./catalog.mjs";
8
+ export { prismic, prismicCatalog, prismicContentApiGetDocumentsWithFulltextSearch, prismicContentApiQueryDocuments, prismicRepositoryApiGetInfo, prismicTagsApiGetAllTags, prismicTypesApiGetTypes };
package/dist/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import { prismic } from "./app.mjs";
2
+ import { prismicCatalog } from "./catalog.mjs";
3
+ import { prismicContentApiGetDocumentsWithFulltextSearch } from "./actions/content-api-get-documents-with-fulltext-search.mjs";
4
+ import { prismicContentApiQueryDocuments } from "./actions/content-api-query-documents.mjs";
5
+ import { prismicRepositoryApiGetInfo } from "./actions/repository-api-get-info.mjs";
6
+ import { prismicTagsApiGetAllTags } from "./actions/tags-api-get-all-tags.mjs";
7
+ import { prismicTypesApiGetTypes } from "./actions/types-api-get-types.mjs";
8
+ import "./actions/index.mjs";
9
+ export { prismic, prismicCatalog, prismicContentApiGetDocumentsWithFulltextSearch, prismicContentApiQueryDocuments, prismicRepositoryApiGetInfo, prismicTagsApiGetAllTags, prismicTypesApiGetTypes };
package/package.json ADDED
@@ -0,0 +1,49 @@
1
+ {
2
+ "name": "@keystrokehq/prismic",
3
+ "version": "0.1.0",
4
+ "publishConfig": {
5
+ "access": "public",
6
+ "registry": "https://registry.npmjs.org"
7
+ },
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/keystrokehq/keystroke.git",
11
+ "directory": "packages/integrations/prismic"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "sideEffects": false,
17
+ "type": "module",
18
+ "main": "./dist/index.cjs",
19
+ "module": "./dist/index.mjs",
20
+ "types": "./dist/index.d.mts",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.mts",
24
+ "import": "./dist/index.mjs",
25
+ "require": "./dist/index.cjs"
26
+ },
27
+ "./actions": {
28
+ "types": "./dist/actions/index.d.mts",
29
+ "import": "./dist/actions/index.mjs",
30
+ "require": "./dist/actions/index.cjs"
31
+ }
32
+ },
33
+ "peerDependencies": {
34
+ "@keystrokehq/keystroke": "^0.1.4",
35
+ "zod": "^4.4.3"
36
+ },
37
+ "devDependencies": {
38
+ "@keystrokehq/keystroke": "link:../../keystroke",
39
+ "@types/node": "^25.9.1",
40
+ "tsdown": "^0.22.0",
41
+ "typescript": "^6.0.3",
42
+ "zod": "^4.4.3"
43
+ },
44
+ "scripts": {
45
+ "build": "tsdown",
46
+ "dev": "tsdown --watch --no-clean",
47
+ "typecheck": "tsc --noEmit"
48
+ }
49
+ }