@keystrokehq/prismic 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/content-api-get-documents-with-fulltext-search.cjs +17 -17
  4. package/dist/actions/content-api-get-documents-with-fulltext-search.cjs.map +1 -1
  5. package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts +47 -3
  6. package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts.map +1 -1
  7. package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts +47 -3
  8. package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts.map +1 -1
  9. package/dist/actions/content-api-get-documents-with-fulltext-search.mjs +17 -17
  10. package/dist/actions/content-api-get-documents-with-fulltext-search.mjs.map +1 -1
  11. package/dist/actions/content-api-query-documents.cjs +17 -17
  12. package/dist/actions/content-api-query-documents.cjs.map +1 -1
  13. package/dist/actions/content-api-query-documents.d.cts +55 -3
  14. package/dist/actions/content-api-query-documents.d.cts.map +1 -1
  15. package/dist/actions/content-api-query-documents.d.mts +55 -3
  16. package/dist/actions/content-api-query-documents.d.mts.map +1 -1
  17. package/dist/actions/content-api-query-documents.mjs +17 -17
  18. package/dist/actions/content-api-query-documents.mjs.map +1 -1
  19. package/dist/actions/repository-api-get-info.cjs +13 -13
  20. package/dist/actions/repository-api-get-info.cjs.map +1 -1
  21. package/dist/actions/repository-api-get-info.d.cts +28 -3
  22. package/dist/actions/repository-api-get-info.d.cts.map +1 -1
  23. package/dist/actions/repository-api-get-info.d.mts +28 -3
  24. package/dist/actions/repository-api-get-info.d.mts.map +1 -1
  25. package/dist/actions/repository-api-get-info.mjs +13 -13
  26. package/dist/actions/repository-api-get-info.mjs.map +1 -1
  27. package/dist/actions/tags-api-get-all-tags.cjs +1 -1
  28. package/dist/actions/tags-api-get-all-tags.cjs.map +1 -1
  29. package/dist/actions/tags-api-get-all-tags.d.cts +5 -3
  30. package/dist/actions/tags-api-get-all-tags.d.cts.map +1 -1
  31. package/dist/actions/tags-api-get-all-tags.d.mts +5 -3
  32. package/dist/actions/tags-api-get-all-tags.d.mts.map +1 -1
  33. package/dist/actions/tags-api-get-all-tags.mjs +1 -1
  34. package/dist/actions/tags-api-get-all-tags.mjs.map +1 -1
  35. package/dist/actions/types-api-get-types.cjs +10 -10
  36. package/dist/actions/types-api-get-types.cjs.map +1 -1
  37. package/dist/actions/types-api-get-types.d.cts +23 -3
  38. package/dist/actions/types-api-get-types.d.cts.map +1 -1
  39. package/dist/actions/types-api-get-types.d.mts +23 -3
  40. package/dist/actions/types-api-get-types.d.mts.map +1 -1
  41. package/dist/actions/types-api-get-types.mjs +10 -10
  42. package/dist/actions/types-api-get-types.mjs.map +1 -1
  43. package/dist/catalog.cjs +13 -1
  44. package/dist/catalog.cjs.map +1 -1
  45. package/dist/catalog.d.cts +12 -0
  46. package/dist/catalog.d.mts +12 -0
  47. package/dist/catalog.mjs +13 -1
  48. package/dist/catalog.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["prismic","executePrismicTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prismic } from \"./app\";\nimport { executePrismicTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return prismic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePrismicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["prismic","executePrismicTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prismic } from \"./app\";\nimport { executePrismicTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return prismic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePrismicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prismic } from \"./app\";\nimport { executePrismicTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\n },\n) {\n return prismic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executePrismicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { prismic } from \"./app\";\nimport { executePrismicTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return prismic.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executePrismicTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,QAAQ,OAAO;EACpB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,mBAAmB,MAAM,KAAgC,CAAC;EAC1F;CACF,CAAC;AACH"}
@@ -11,36 +11,36 @@ const PrismicContentApiGetDocumentsWithFulltextSearchInput = zod.z.object({
11
11
  fetchLinks: zod.z.string().describe("Comma-separated list of linked document fields to fetch.").optional()
12
12
  }).describe("Request parameters to perform a full-text search on Prismic documents.");
13
13
  const PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema = zod.z.object({
14
- id: zod.z.string().describe("ID of the alternate document"),
14
+ id: zod.z.string().describe("ID of the alternate document").nullable(),
15
15
  uid: zod.z.string().describe("UID of the alternate document, if any").nullable().optional(),
16
- lang: zod.z.string().describe("Language code of the alternate version"),
17
- type: zod.z.string().describe("Document type of the alternate language version")
18
- });
16
+ lang: zod.z.string().describe("Language code of the alternate version").nullable(),
17
+ type: zod.z.string().describe("Document type of the alternate language version").nullable()
18
+ }).passthrough();
19
19
  const PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = zod.z.object({
20
- id: zod.z.string().describe("Document ID"),
20
+ id: zod.z.string().describe("Document ID").nullable(),
21
21
  uid: zod.z.string().describe("Document UID, if set").nullable().optional(),
22
22
  data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Document data fields, structure varies by type"),
23
- href: zod.z.string().describe("Document URL for API access"),
24
- lang: zod.z.string().describe("Language code of the document"),
23
+ href: zod.z.string().describe("Document URL for API access").nullable(),
24
+ lang: zod.z.string().describe("Language code of the document").nullable(),
25
25
  tags: zod.z.array(zod.z.string()).describe("List of tags assigned to the document"),
26
- type: zod.z.string().describe("Document type"),
26
+ type: zod.z.string().describe("Document type").nullable(),
27
27
  slugs: zod.z.array(zod.z.string()).describe("List of slugs for the document"),
28
28
  alternate_languages: zod.z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe("Alternate language versions of the document"),
29
- last_publication_date: zod.z.string().describe("Last publication date as ISO 8601 string"),
30
- first_publication_date: zod.z.string().describe("First publication date as ISO 8601 string")
31
- });
29
+ last_publication_date: zod.z.string().describe("Last publication date as ISO 8601 string").nullable(),
30
+ first_publication_date: zod.z.string().describe("First publication date as ISO 8601 string").nullable()
31
+ }).passthrough();
32
32
  const PrismicContentApiGetDocumentsWithFulltextSearchOutput = zod.z.object({
33
- page: zod.z.number().int().describe("Current page number"),
33
+ page: zod.z.number().int().describe("Current page number").nullable(),
34
34
  license: zod.z.string().describe("Content license information").nullable().optional(),
35
35
  results: zod.z.array(PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema).describe("List of matched documents ordered by relevance"),
36
36
  version: zod.z.string().describe("API version identifier").nullable().optional(),
37
37
  next_page: zod.z.string().describe("URL of next page, if any").nullable().optional(),
38
38
  prev_page: zod.z.string().describe("URL of previous page, if any").nullable().optional(),
39
- total_pages: zod.z.number().int().describe("Total number of pages available"),
40
- results_size: zod.z.number().int().describe("Number of returned results on this page"),
41
- results_per_page: zod.z.number().int().describe("Number of results per page"),
42
- total_results_size: zod.z.number().int().describe("Total number of matching results in repository")
43
- });
39
+ total_pages: zod.z.number().int().describe("Total number of pages available").nullable(),
40
+ results_size: zod.z.number().int().describe("Number of returned results on this page").nullable(),
41
+ results_per_page: zod.z.number().int().describe("Number of results per page").nullable(),
42
+ total_results_size: zod.z.number().int().describe("Total number of matching results in repository").nullable()
43
+ }).passthrough();
44
44
  const prismicContentApiGetDocumentsWithFulltextSearch = require_action.action("PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH", {
45
45
  slug: "prismic-content-api-get-documents-with-fulltext-search",
46
46
  name: "Get Prismic Documents with Fulltext Search",
@@ -1 +1 @@
1
- {"version":3,"file":"content-api-get-documents-with-fulltext-search.cjs","names":["z","action"],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicContentApiGetDocumentsWithFulltextSearchInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Full-text search query in Prismic predicate format. Must be wrapped in double square brackets. Format: [[fulltext(document, \\\"your search terms\\\")]]. Searches across all text fields in documents. Multiple words will match documents containing all terms.\"),\n lang: z.string().describe(\"Language code (e.g., 'en-us').\").optional(),\n page: z.number().int().default(1).describe(\"Page number, must be >= 1\").optional(),\n fetch: z.string().describe(\"Comma-separated list of field API IDs to fetch.\").optional(),\n pageSize: z.number().int().default(20).describe(\"Number of documents per page (1-100).\").optional(),\n orderings: z.string().describe(\"Sorting order, e.g., '[my.article.date desc]'\").optional(),\n fetchLinks: z.string().describe(\"Comma-separated list of linked document fields to fetch.\").optional(),\n}).describe(\"Request parameters to perform a full-text search on Prismic documents.\");\nconst PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the alternate document\"),\n uid: z.string().describe(\"UID of the alternate document, if any\").nullable().optional(),\n lang: z.string().describe(\"Language code of the alternate version\"),\n type: z.string().describe(\"Document type of the alternate language version\"),\n});\nconst PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Document ID\"),\n uid: z.string().describe(\"Document UID, if set\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Document data fields, structure varies by type\"),\n href: z.string().describe(\"Document URL for API access\"),\n lang: z.string().describe(\"Language code of the document\"),\n tags: z.array(z.string()).describe(\"List of tags assigned to the document\"),\n type: z.string().describe(\"Document type\"),\n slugs: z.array(z.string()).describe(\"List of slugs for the document\"),\n alternate_languages: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe(\"Alternate language versions of the document\"),\n last_publication_date: z.string().describe(\"Last publication date as ISO 8601 string\"),\n first_publication_date: z.string().describe(\"First publication date as ISO 8601 string\"),\n});\nexport const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n license: z.string().describe(\"Content license information\").nullable().optional(),\n results: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema).describe(\"List of matched documents ordered by relevance\"),\n version: z.string().describe(\"API version identifier\").nullable().optional(),\n next_page: z.string().describe(\"URL of next page, if any\").nullable().optional(),\n prev_page: z.string().describe(\"URL of previous page, if any\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n results_size: z.number().int().describe(\"Number of returned results on this page\"),\n results_per_page: z.number().int().describe(\"Number of results per page\"),\n total_results_size: z.number().int().describe(\"Total number of matching results in repository\"),\n});\n\nexport const prismicContentApiGetDocumentsWithFulltextSearch = action(\"PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH\", {\n slug: \"prismic-content-api-get-documents-with-fulltext-search\",\n name: \"Get Prismic Documents with Fulltext Search\",\n description: \"Search Prismic documents using full-text search. Searches across all text fields in documents for the specified terms. The search is case-insensitive and matches based on root words. Automatically retrieves the current master ref. Returns paginated results ordered by relevance.\",\n input: PrismicContentApiGetDocumentsWithFulltextSearchInput,\n output: PrismicContentApiGetDocumentsWithFulltextSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uDAAqEA,IAAAA,EAAE,OAAO;CACzF,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+PAA+P;CACtR,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,0EAAwFA,IAAAA,EAAE,OAAO;CACrG,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B;CACtD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,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SAAS,gDAAgD;CAC1I,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CACxE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;AAChG,CAAC;AAED,MAAa,kDAAkDC,eAAAA,OAAO,0DAA0D;CAC9H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"content-api-get-documents-with-fulltext-search.cjs","names":["z","action"],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicContentApiGetDocumentsWithFulltextSearchInput = z.object({\n q: z.string().describe(\"Full-text search query in Prismic predicate format. Must be wrapped in double square brackets. Format: [[fulltext(document, \\\"your search terms\\\")]]. Searches across all text fields in documents. Multiple words will match documents containing all terms.\"),\n lang: z.string().describe(\"Language code (e.g., 'en-us').\").optional(),\n page: z.number().int().default(1).describe(\"Page number, must be >= 1\").optional(),\n fetch: z.string().describe(\"Comma-separated list of field API IDs to fetch.\").optional(),\n pageSize: z.number().int().default(20).describe(\"Number of documents per page (1-100).\").optional(),\n orderings: z.string().describe(\"Sorting order, e.g., '[my.article.date desc]'\").optional(),\n fetchLinks: z.string().describe(\"Comma-separated list of linked document fields to fetch.\").optional(),\n}).describe(\"Request parameters to perform a full-text search on Prismic documents.\");\nconst PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema = z.object({\n id: z.string().describe(\"ID of the alternate document\").nullable(),\n uid: z.string().describe(\"UID of the alternate document, if any\").nullable().optional(),\n lang: z.string().describe(\"Language code of the alternate version\").nullable(),\n type: z.string().describe(\"Document type of the alternate language version\").nullable(),\n}).passthrough();\nconst PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = z.object({\n id: z.string().describe(\"Document ID\").nullable(),\n uid: z.string().describe(\"Document UID, if set\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Document data fields, structure varies by type\"),\n href: z.string().describe(\"Document URL for API access\").nullable(),\n lang: z.string().describe(\"Language code of the document\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags assigned to the document\"),\n type: z.string().describe(\"Document type\").nullable(),\n slugs: z.array(z.string()).describe(\"List of slugs for the document\"),\n alternate_languages: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe(\"Alternate language versions of the document\"),\n last_publication_date: z.string().describe(\"Last publication date as ISO 8601 string\").nullable(),\n first_publication_date: z.string().describe(\"First publication date as ISO 8601 string\").nullable(),\n}).passthrough();\nexport const PrismicContentApiGetDocumentsWithFulltextSearchOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n license: z.string().describe(\"Content license information\").nullable().optional(),\n results: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema).describe(\"List of matched documents ordered by relevance\"),\n version: z.string().describe(\"API version identifier\").nullable().optional(),\n next_page: z.string().describe(\"URL of next page, if any\").nullable().optional(),\n prev_page: z.string().describe(\"URL of previous page, if any\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n results_size: z.number().int().describe(\"Number of returned results on this page\").nullable(),\n results_per_page: z.number().int().describe(\"Number of results per page\").nullable(),\n total_results_size: z.number().int().describe(\"Total number of matching results in repository\").nullable(),\n}).passthrough();\n\nexport const prismicContentApiGetDocumentsWithFulltextSearch = action(\"PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH\", {\n slug: \"prismic-content-api-get-documents-with-fulltext-search\",\n name: \"Get Prismic Documents with Fulltext Search\",\n description: \"Search Prismic documents using full-text search. Searches across all text fields in documents for the specified terms. The search is case-insensitive and matches based on root words. Automatically retrieves the current master ref. Returns paginated results ordered by relevance.\",\n input: PrismicContentApiGetDocumentsWithFulltextSearchInput,\n output: PrismicContentApiGetDocumentsWithFulltextSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uDAAuDA,IAAAA,EAAE,OAAO;CAC3E,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+PAA+P;CACtR,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,0EAA0EA,IAAAA,EAAE,OAAO;CACvF,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,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#region src/actions/content-api-get-documents-with-fulltext-search.d.ts
4
- declare const PrismicContentApiGetDocumentsWithFulltextSearchInput: z.ZodTypeAny;
5
- declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodTypeAny;
6
- declare const prismicContentApiGetDocumentsWithFulltextSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicContentApiGetDocumentsWithFulltextSearchInput: z.ZodObject<{
5
+ q: z.ZodString;
6
+ lang: z.ZodOptional<z.ZodString>;
7
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ fetch: z.ZodOptional<z.ZodString>;
9
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
10
+ orderings: z.ZodOptional<z.ZodString>;
11
+ fetchLinks: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodObject<{
14
+ page: z.ZodNullable<z.ZodNumber>;
15
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ results: z.ZodArray<z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20
+ href: z.ZodNullable<z.ZodString>;
21
+ lang: z.ZodNullable<z.ZodString>;
22
+ tags: z.ZodArray<z.ZodString>;
23
+ type: z.ZodNullable<z.ZodString>;
24
+ slugs: z.ZodArray<z.ZodString>;
25
+ alternate_languages: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodNullable<z.ZodString>;
27
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ lang: z.ZodNullable<z.ZodString>;
29
+ type: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$loose>>;
31
+ last_publication_date: z.ZodNullable<z.ZodString>;
32
+ first_publication_date: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$loose>>;
34
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ total_pages: z.ZodNullable<z.ZodNumber>;
38
+ results_size: z.ZodNullable<z.ZodNumber>;
39
+ results_per_page: z.ZodNullable<z.ZodNumber>;
40
+ total_results_size: z.ZodNullable<z.ZodNumber>;
41
+ }, z.core.$loose>;
42
+ declare const prismicContentApiGetDocumentsWithFulltextSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
43
+ q: string;
44
+ lang?: string | undefined;
45
+ page?: number | undefined;
46
+ fetch?: string | undefined;
47
+ pageSize?: number | undefined;
48
+ orderings?: string | undefined;
49
+ fetchLinks?: string | undefined;
50
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
51
  //#endregion
8
52
  export { prismicContentApiGetDocumentsWithFulltextSearch };
9
53
  //# sourceMappingURL=content-api-get-documents-with-fulltext-search.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-api-get-documents-with-fulltext-search.d.cts","names":[],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"mappings":";;;cAIa,oDAAA,EAAsD,CAAA,CAAE,UAQgB;AAAA,cAoBxE,qDAAA,EAAuD,CAAA,CAAE,UAWpE;AAAA,cAEW,+CAAA,gCAA+C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"content-api-get-documents-with-fulltext-search.d.cts","names":[],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"mappings":";;;cAIa,oDAAA,EAAoD,CAAA,CAAA,SAAA;;;;;;;;;cA4BpD,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAarD,+CAAA,gCAA+C,wBAAA"}
@@ -1,9 +1,53 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/content-api-get-documents-with-fulltext-search.d.ts
4
- declare const PrismicContentApiGetDocumentsWithFulltextSearchInput: z.ZodTypeAny;
5
- declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodTypeAny;
6
- declare const prismicContentApiGetDocumentsWithFulltextSearch: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicContentApiGetDocumentsWithFulltextSearchInput: z.ZodObject<{
5
+ q: z.ZodString;
6
+ lang: z.ZodOptional<z.ZodString>;
7
+ page: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
8
+ fetch: z.ZodOptional<z.ZodString>;
9
+ pageSize: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
10
+ orderings: z.ZodOptional<z.ZodString>;
11
+ fetchLinks: z.ZodOptional<z.ZodString>;
12
+ }, z.core.$strip>;
13
+ declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodObject<{
14
+ page: z.ZodNullable<z.ZodNumber>;
15
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ results: z.ZodArray<z.ZodObject<{
17
+ id: z.ZodNullable<z.ZodString>;
18
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
20
+ href: z.ZodNullable<z.ZodString>;
21
+ lang: z.ZodNullable<z.ZodString>;
22
+ tags: z.ZodArray<z.ZodString>;
23
+ type: z.ZodNullable<z.ZodString>;
24
+ slugs: z.ZodArray<z.ZodString>;
25
+ alternate_languages: z.ZodArray<z.ZodObject<{
26
+ id: z.ZodNullable<z.ZodString>;
27
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ lang: z.ZodNullable<z.ZodString>;
29
+ type: z.ZodNullable<z.ZodString>;
30
+ }, z.core.$loose>>;
31
+ last_publication_date: z.ZodNullable<z.ZodString>;
32
+ first_publication_date: z.ZodNullable<z.ZodString>;
33
+ }, z.core.$loose>>;
34
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ total_pages: z.ZodNullable<z.ZodNumber>;
38
+ results_size: z.ZodNullable<z.ZodNumber>;
39
+ results_per_page: z.ZodNullable<z.ZodNumber>;
40
+ total_results_size: z.ZodNullable<z.ZodNumber>;
41
+ }, z.core.$loose>;
42
+ declare const prismicContentApiGetDocumentsWithFulltextSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
43
+ q: string;
44
+ lang?: string | undefined;
45
+ page?: number | undefined;
46
+ fetch?: string | undefined;
47
+ pageSize?: number | undefined;
48
+ orderings?: string | undefined;
49
+ fetchLinks?: string | undefined;
50
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
51
  //#endregion
8
52
  export { prismicContentApiGetDocumentsWithFulltextSearch };
9
53
  //# sourceMappingURL=content-api-get-documents-with-fulltext-search.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-api-get-documents-with-fulltext-search.d.mts","names":[],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"mappings":";;;cAIa,oDAAA,EAAsD,CAAA,CAAE,UAQgB;AAAA,cAoBxE,qDAAA,EAAuD,CAAA,CAAE,UAWpE;AAAA,cAEW,+CAAA,gCAA+C,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"content-api-get-documents-with-fulltext-search.d.mts","names":[],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"mappings":";;;cAIa,oDAAA,EAAoD,CAAA,CAAA,SAAA;;;;;;;;;cA4BpD,qDAAA,EAAqD,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAarD,+CAAA,gCAA+C,wBAAA"}
@@ -11,41 +11,41 @@ const PrismicContentApiGetDocumentsWithFulltextSearchInput = z.object({
11
11
  fetchLinks: z.string().describe("Comma-separated list of linked document fields to fetch.").optional()
12
12
  }).describe("Request parameters to perform a full-text search on Prismic documents.");
13
13
  const PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema = z.object({
14
- id: z.string().describe("ID of the alternate document"),
14
+ id: z.string().describe("ID of the alternate document").nullable(),
15
15
  uid: z.string().describe("UID of the alternate document, if any").nullable().optional(),
16
- lang: z.string().describe("Language code of the alternate version"),
17
- type: z.string().describe("Document type of the alternate language version")
18
- });
16
+ lang: z.string().describe("Language code of the alternate version").nullable(),
17
+ type: z.string().describe("Document type of the alternate language version").nullable()
18
+ }).passthrough();
19
19
  const PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = z.object({
20
- id: z.string().describe("Document ID"),
20
+ id: z.string().describe("Document ID").nullable(),
21
21
  uid: z.string().describe("Document UID, if set").nullable().optional(),
22
22
  data: z.record(z.string(), z.unknown()).describe("Document data fields, structure varies by type"),
23
- href: z.string().describe("Document URL for API access"),
24
- lang: z.string().describe("Language code of the document"),
23
+ href: z.string().describe("Document URL for API access").nullable(),
24
+ lang: z.string().describe("Language code of the document").nullable(),
25
25
  tags: z.array(z.string()).describe("List of tags assigned to the document"),
26
- type: z.string().describe("Document type"),
26
+ type: z.string().describe("Document type").nullable(),
27
27
  slugs: z.array(z.string()).describe("List of slugs for the document"),
28
28
  alternate_languages: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe("Alternate language versions of the document"),
29
- last_publication_date: z.string().describe("Last publication date as ISO 8601 string"),
30
- first_publication_date: z.string().describe("First publication date as ISO 8601 string")
31
- });
29
+ last_publication_date: z.string().describe("Last publication date as ISO 8601 string").nullable(),
30
+ first_publication_date: z.string().describe("First publication date as ISO 8601 string").nullable()
31
+ }).passthrough();
32
32
  const prismicContentApiGetDocumentsWithFulltextSearch = action("PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH", {
33
33
  slug: "prismic-content-api-get-documents-with-fulltext-search",
34
34
  name: "Get Prismic Documents with Fulltext Search",
35
35
  description: "Search Prismic documents using full-text search. Searches across all text fields in documents for the specified terms. The search is case-insensitive and matches based on root words. Automatically retrieves the current master ref. Returns paginated results ordered by relevance.",
36
36
  input: PrismicContentApiGetDocumentsWithFulltextSearchInput,
37
37
  output: z.object({
38
- page: z.number().int().describe("Current page number"),
38
+ page: z.number().int().describe("Current page number").nullable(),
39
39
  license: z.string().describe("Content license information").nullable().optional(),
40
40
  results: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema).describe("List of matched documents ordered by relevance"),
41
41
  version: z.string().describe("API version identifier").nullable().optional(),
42
42
  next_page: z.string().describe("URL of next page, if any").nullable().optional(),
43
43
  prev_page: z.string().describe("URL of previous page, if any").nullable().optional(),
44
- total_pages: z.number().int().describe("Total number of pages available"),
45
- results_size: z.number().int().describe("Number of returned results on this page"),
46
- results_per_page: z.number().int().describe("Number of results per page"),
47
- total_results_size: z.number().int().describe("Total number of matching results in repository")
48
- })
44
+ total_pages: z.number().int().describe("Total number of pages available").nullable(),
45
+ results_size: z.number().int().describe("Number of returned results on this page").nullable(),
46
+ results_per_page: z.number().int().describe("Number of results per page").nullable(),
47
+ total_results_size: z.number().int().describe("Total number of matching results in repository").nullable()
48
+ }).passthrough()
49
49
  });
50
50
  //#endregion
51
51
  export { prismicContentApiGetDocumentsWithFulltextSearch };
@@ -1 +1 @@
1
- {"version":3,"file":"content-api-get-documents-with-fulltext-search.mjs","names":[],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicContentApiGetDocumentsWithFulltextSearchInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Full-text search query in Prismic predicate format. Must be wrapped in double square brackets. Format: [[fulltext(document, \\\"your search terms\\\")]]. Searches across all text fields in documents. Multiple words will match documents containing all terms.\"),\n lang: z.string().describe(\"Language code (e.g., 'en-us').\").optional(),\n page: z.number().int().default(1).describe(\"Page number, must be >= 1\").optional(),\n fetch: z.string().describe(\"Comma-separated list of field API IDs to fetch.\").optional(),\n pageSize: z.number().int().default(20).describe(\"Number of documents per page (1-100).\").optional(),\n orderings: z.string().describe(\"Sorting order, e.g., '[my.article.date desc]'\").optional(),\n fetchLinks: z.string().describe(\"Comma-separated list of linked document fields to fetch.\").optional(),\n}).describe(\"Request parameters to perform a full-text search on Prismic documents.\");\nconst PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the alternate document\"),\n uid: z.string().describe(\"UID of the alternate document, if any\").nullable().optional(),\n lang: z.string().describe(\"Language code of the alternate version\"),\n type: z.string().describe(\"Document type of the alternate language version\"),\n});\nconst PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Document ID\"),\n uid: z.string().describe(\"Document UID, if set\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Document data fields, structure varies by type\"),\n href: z.string().describe(\"Document URL for API access\"),\n lang: z.string().describe(\"Language code of the document\"),\n tags: z.array(z.string()).describe(\"List of tags assigned to the document\"),\n type: z.string().describe(\"Document type\"),\n slugs: z.array(z.string()).describe(\"List of slugs for the document\"),\n alternate_languages: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe(\"Alternate language versions of the document\"),\n last_publication_date: z.string().describe(\"Last publication date as ISO 8601 string\"),\n first_publication_date: z.string().describe(\"First publication date as ISO 8601 string\"),\n});\nexport const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n license: z.string().describe(\"Content license information\").nullable().optional(),\n results: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema).describe(\"List of matched documents ordered by relevance\"),\n version: z.string().describe(\"API version identifier\").nullable().optional(),\n next_page: z.string().describe(\"URL of next page, if any\").nullable().optional(),\n prev_page: z.string().describe(\"URL of previous page, if any\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n results_size: z.number().int().describe(\"Number of returned results on this page\"),\n results_per_page: z.number().int().describe(\"Number of results per page\"),\n total_results_size: z.number().int().describe(\"Total number of matching results in repository\"),\n});\n\nexport const prismicContentApiGetDocumentsWithFulltextSearch = action(\"PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH\", {\n slug: \"prismic-content-api-get-documents-with-fulltext-search\",\n name: \"Get Prismic Documents with Fulltext Search\",\n description: \"Search Prismic documents using full-text search. Searches across all text fields in documents for the specified terms. The search is case-insensitive and matches based on root words. Automatically retrieves the current master ref. Returns paginated results ordered by relevance.\",\n input: PrismicContentApiGetDocumentsWithFulltextSearchInput,\n output: PrismicContentApiGetDocumentsWithFulltextSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uDAAqE,EAAE,OAAO;CACzF,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,+PAA+P;CACtR,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClG,WAAW,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N,aAAa;CACb,OAAO;CACP,QAlBiF,EAAE,OAAO;EAC1F,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;EACrD,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,gDAAgD;EAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;EACxE,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;EACjF,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EACxE,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CAChG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"content-api-get-documents-with-fulltext-search.mjs","names":[],"sources":["../../src/actions/content-api-get-documents-with-fulltext-search.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicContentApiGetDocumentsWithFulltextSearchInput = z.object({\n q: z.string().describe(\"Full-text search query in Prismic predicate format. Must be wrapped in double square brackets. Format: [[fulltext(document, \\\"your search terms\\\")]]. Searches across all text fields in documents. Multiple words will match documents containing all terms.\"),\n lang: z.string().describe(\"Language code (e.g., 'en-us').\").optional(),\n page: z.number().int().default(1).describe(\"Page number, must be >= 1\").optional(),\n fetch: z.string().describe(\"Comma-separated list of field API IDs to fetch.\").optional(),\n pageSize: z.number().int().default(20).describe(\"Number of documents per page (1-100).\").optional(),\n orderings: z.string().describe(\"Sorting order, e.g., '[my.article.date desc]'\").optional(),\n fetchLinks: z.string().describe(\"Comma-separated list of linked document fields to fetch.\").optional(),\n}).describe(\"Request parameters to perform a full-text search on Prismic documents.\");\nconst PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema = z.object({\n id: z.string().describe(\"ID of the alternate document\").nullable(),\n uid: z.string().describe(\"UID of the alternate document, if any\").nullable().optional(),\n lang: z.string().describe(\"Language code of the alternate version\").nullable(),\n type: z.string().describe(\"Document type of the alternate language version\").nullable(),\n}).passthrough();\nconst PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = z.object({\n id: z.string().describe(\"Document ID\").nullable(),\n uid: z.string().describe(\"Document UID, if set\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Document data fields, structure varies by type\"),\n href: z.string().describe(\"Document URL for API access\").nullable(),\n lang: z.string().describe(\"Language code of the document\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags assigned to the document\"),\n type: z.string().describe(\"Document type\").nullable(),\n slugs: z.array(z.string()).describe(\"List of slugs for the document\"),\n alternate_languages: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe(\"Alternate language versions of the document\"),\n last_publication_date: z.string().describe(\"Last publication date as ISO 8601 string\").nullable(),\n first_publication_date: z.string().describe(\"First publication date as ISO 8601 string\").nullable(),\n}).passthrough();\nexport const PrismicContentApiGetDocumentsWithFulltextSearchOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n license: z.string().describe(\"Content license information\").nullable().optional(),\n results: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema).describe(\"List of matched documents ordered by relevance\"),\n version: z.string().describe(\"API version identifier\").nullable().optional(),\n next_page: z.string().describe(\"URL of next page, if any\").nullable().optional(),\n prev_page: z.string().describe(\"URL of previous page, if any\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n results_size: z.number().int().describe(\"Number of returned results on this page\").nullable(),\n results_per_page: z.number().int().describe(\"Number of results per page\").nullable(),\n total_results_size: z.number().int().describe(\"Total number of matching results in repository\").nullable(),\n}).passthrough();\n\nexport const prismicContentApiGetDocumentsWithFulltextSearch = action(\"PRISMIC_CONTENT_API_GET_DOCUMENTS_WITH_FULLTEXT_SEARCH\", {\n slug: \"prismic-content-api-get-documents-with-fulltext-search\",\n name: \"Get Prismic Documents with Fulltext Search\",\n description: \"Search Prismic documents using full-text search. Searches across all text fields in documents for the specified terms. The search is case-insensitive and matches based on root words. Automatically retrieves the current master ref. Returns paginated results ordered by relevance.\",\n input: PrismicContentApiGetDocumentsWithFulltextSearchInput,\n output: PrismicContentApiGetDocumentsWithFulltextSearchOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uDAAuD,EAAE,OAAO;CAC3E,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,+PAA+P;CACtR,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACrE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;CACvF,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAClG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CACzF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D,CAAC,CAAC,SAAS;AACvG,CAAC,CAAC,CAAC,SAAS,wEAAwE;AACpF,MAAM,0EAA0E,EAAE,OAAO;CACvF,IAAI,EAAE,OAAO,CAAC,CAAC,S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AE,OAAO;EAC5E,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,SAAS,EAAE,MAAM,8DAA8D,CAAC,CAAC,SAAS,gDAAgD;EAC1I,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -16,34 +16,34 @@ const PrismicContentApiQueryDocumentsInput = zod.z.object({
16
16
  integrationFieldsRef: zod.z.string().describe("Reference of integration fields content.").optional()
17
17
  }).describe("Request parameters to query Prismic documents based on predicates and pagination.");
18
18
  const PrismicContentApiQueryDocuments_AlternateLanguageSchema = zod.z.object({
19
- id: zod.z.string().describe("ID of the alternate document"),
19
+ id: zod.z.string().describe("ID of the alternate document").nullable(),
20
20
  uid: zod.z.string().describe("UID of the alternate document, if any").nullable().optional(),
21
- lang: zod.z.string().describe("Language code of the alternate version"),
22
- type: zod.z.string().describe("Document type of the alternate language version")
23
- });
21
+ lang: zod.z.string().describe("Language code of the alternate version").nullable(),
22
+ type: zod.z.string().describe("Document type of the alternate language version").nullable()
23
+ }).passthrough();
24
24
  const PrismicContentApiQueryDocuments_DocumentSchema = zod.z.object({
25
- id: zod.z.string().describe("Document ID"),
25
+ id: zod.z.string().describe("Document ID").nullable(),
26
26
  uid: zod.z.string().describe("Document UID, if set").nullable().optional(),
27
27
  data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Document data fields, structure varies by type"),
28
- href: zod.z.string().describe("Document URL for API access"),
29
- lang: zod.z.string().describe("Language code of the document"),
28
+ href: zod.z.string().describe("Document URL for API access").nullable(),
29
+ lang: zod.z.string().describe("Language code of the document").nullable(),
30
30
  tags: zod.z.array(zod.z.string()).describe("List of tags assigned to the document"),
31
- type: zod.z.string().describe("Document type"),
31
+ type: zod.z.string().describe("Document type").nullable(),
32
32
  slugs: zod.z.array(zod.z.string()).describe("List of slugs for the document"),
33
33
  alternate_languages: zod.z.array(PrismicContentApiQueryDocuments_AlternateLanguageSchema).describe("Alternate language versions of the document"),
34
- last_publication_date: zod.z.string().describe("Last publication date as ISO 8601 string"),
35
- first_publication_date: zod.z.string().describe("First publication date as ISO 8601 string")
36
- });
34
+ last_publication_date: zod.z.string().describe("Last publication date as ISO 8601 string").nullable(),
35
+ first_publication_date: zod.z.string().describe("First publication date as ISO 8601 string").nullable()
36
+ }).passthrough();
37
37
  const PrismicContentApiQueryDocumentsOutput = zod.z.object({
38
- page: zod.z.number().int().describe("Current page number"),
38
+ page: zod.z.number().int().describe("Current page number").nullable(),
39
39
  results: zod.z.array(PrismicContentApiQueryDocuments_DocumentSchema).describe("List of matched documents"),
40
40
  next_page: zod.z.string().describe("URL of next page, if any").nullable().optional(),
41
41
  prev_page: zod.z.string().describe("URL of previous page, if any").nullable().optional(),
42
- total_pages: zod.z.number().int().describe("Total number of pages available"),
43
- results_size: zod.z.number().int().describe("Number of returned results on this page"),
44
- results_per_page: zod.z.number().int().describe("Number of results per page"),
45
- total_results_size: zod.z.number().int().describe("Total number of matching results in repository")
46
- });
42
+ total_pages: zod.z.number().int().describe("Total number of pages available").nullable(),
43
+ results_size: zod.z.number().int().describe("Number of returned results on this page").nullable(),
44
+ results_per_page: zod.z.number().int().describe("Number of results per page").nullable(),
45
+ total_results_size: zod.z.number().int().describe("Total number of matching results in repository").nullable()
46
+ }).passthrough();
47
47
  const prismicContentApiQueryDocuments = require_action.action("PRISMIC_CONTENT_API_QUERY_DOCUMENTS", {
48
48
  slug: "prismic-content-api-query-documents",
49
49
  name: "Prismic: Query Documents",
@@ -1 +1 @@
1
- {"version":3,"file":"content-api-query-documents.cjs","names":["z","action"],"sources":["../../src/actions/content-api-query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicContentApiQueryDocumentsInput: z.ZodTypeAny = z.object({\n q: z.string().describe(\"Query predicate(s) to filter documents using Prismic predicate syntax. Use double brackets for predicates: '[[at(document.type, \\\"page\\\")]]'. For multiple predicates, combine them in one string: '[[at(document.type, \\\"blog\\\")][at(document.tags, [\\\"featured\\\"])]]'.\").optional(),\n ref: z.string().describe(\"Content release reference ID from the repository (typically the master ref). Use PRISMIC_REPOSITORY_API_GET_REFS action to obtain valid ref values.\"),\n lang: z.string().describe(\"Language code to query (e.g., 'en-us'), default '*' for all languages\").optional(),\n page: z.number().int().describe(\"Page number for pagination, starting from 1\").optional(),\n after: z.string().describe(\"Document ID to paginate after for deep pagination.\").optional(),\n fetch: z.string().describe(\"Comma-separated list of specific fields to fetch for each document (e.g., 'document.title,document.description'). Reduces response size by only including specified fields.\").optional(),\n pageSize: z.number().int().describe(\"Number of documents per page (1-100)\").optional(),\n orderings: z.string().describe(\"Sort order, e.g., '[my.article.date desc]'\").optional(),\n fetchLinks: z.string().describe(\"Comma-separated list of fields from linked documents to include in the response (e.g., 'author.name,category.title'). Allows fetching related content in a single query.\").optional(),\n graphQuery: z.string().describe(\"GraphQuery to specify which fields to return.\").optional(),\n access_token: z.string().describe(\"Private API content token for authentication, if required.\").optional(),\n integrationFieldsRef: z.string().describe(\"Reference of integration fields content.\").optional(),\n}).describe(\"Request parameters to query Prismic documents based on predicates and pagination.\");\nconst PrismicContentApiQueryDocuments_AlternateLanguageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the alternate document\"),\n uid: z.string().describe(\"UID of the alternate document, if any\").nullable().optional(),\n lang: z.string().describe(\"Language code of the alternate version\"),\n type: z.string().describe(\"Document type of the alternate language version\"),\n});\nconst PrismicContentApiQueryDocuments_DocumentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Document ID\"),\n uid: z.string().describe(\"Document UID, if set\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Document data fields, structure varies by type\"),\n href: z.string().describe(\"Document URL for API access\"),\n lang: z.string().describe(\"Language code of the document\"),\n tags: z.array(z.string()).describe(\"List of tags assigned to the document\"),\n type: z.string().describe(\"Document type\"),\n slugs: z.array(z.string()).describe(\"List of slugs for the document\"),\n alternate_languages: z.array(PrismicContentApiQueryDocuments_AlternateLanguageSchema).describe(\"Alternate language versions of the document\"),\n last_publication_date: z.string().describe(\"Last publication date as ISO 8601 string\"),\n first_publication_date: z.string().describe(\"First publication date as ISO 8601 string\"),\n});\nexport const PrismicContentApiQueryDocumentsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n results: z.array(PrismicContentApiQueryDocuments_DocumentSchema).describe(\"List of matched documents\"),\n next_page: z.string().describe(\"URL of next page, if any\").nullable().optional(),\n prev_page: z.string().describe(\"URL of previous page, if any\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n results_size: z.number().int().describe(\"Number of returned results on this page\"),\n results_per_page: z.number().int().describe(\"Number of results per page\"),\n total_results_size: z.number().int().describe(\"Total number of matching results in repository\"),\n});\n\nexport const prismicContentApiQueryDocuments = action(\"PRISMIC_CONTENT_API_QUERY_DOCUMENTS\", {\n slug: \"prismic-content-api-query-documents\",\n name: \"Prismic: Query Documents\",\n description: \"Tool to query Prismic documents using predicates and pagination. Use when you need to fetch multiple documents from a repository after obtaining a ref.\",\n input: PrismicContentApiQueryDocumentsInput,\n output: PrismicContentApiQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqDA,IAAAA,EAAE,OAAO;CACzE,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CAC5S,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC9K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACnN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACtF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACrN,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,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,EAAE,OAAO;CAC1E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACrD,SAASA,IAAAA,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,2BAA2B;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/E,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC;CACjF,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;CACxE,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;AAChG,CAAC;AAED,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"content-api-query-documents.cjs","names":["z","action"],"sources":["../../src/actions/content-api-query-documents.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const PrismicContentApiQueryDocumentsInput = z.object({\n q: z.string().describe(\"Query predicate(s) to filter documents using Prismic predicate syntax. Use double brackets for predicates: '[[at(document.type, \\\"page\\\")]]'. For multiple predicates, combine them in one string: '[[at(document.type, \\\"blog\\\")][at(document.tags, [\\\"featured\\\"])]]'.\").optional(),\n ref: z.string().describe(\"Content release reference ID from the repository (typically the master ref). Use PRISMIC_REPOSITORY_API_GET_REFS action to obtain valid ref values.\"),\n lang: z.string().describe(\"Language code to query (e.g., 'en-us'), default '*' for all languages\").optional(),\n page: z.number().int().describe(\"Page number for pagination, starting from 1\").optional(),\n after: z.string().describe(\"Document ID to paginate after for deep pagination.\").optional(),\n fetch: z.string().describe(\"Comma-separated list of specific fields to fetch for each document (e.g., 'document.title,document.description'). Reduces response size by only including specified fields.\").optional(),\n pageSize: z.number().int().describe(\"Number of documents per page (1-100)\").optional(),\n orderings: z.string().describe(\"Sort order, e.g., '[my.article.date desc]'\").optional(),\n fetchLinks: z.string().describe(\"Comma-separated list of fields from linked documents to include in the response (e.g., 'author.name,category.title'). Allows fetching related content in a single query.\").optional(),\n graphQuery: z.string().describe(\"GraphQuery to specify which fields to return.\").optional(),\n access_token: z.string().describe(\"Private API content token for authentication, if required.\").optional(),\n integrationFieldsRef: z.string().describe(\"Reference of integration fields content.\").optional(),\n}).describe(\"Request parameters to query Prismic documents based on predicates and pagination.\");\nconst PrismicContentApiQueryDocuments_AlternateLanguageSchema = z.object({\n id: z.string().describe(\"ID of the alternate document\").nullable(),\n uid: z.string().describe(\"UID of the alternate document, if any\").nullable().optional(),\n lang: z.string().describe(\"Language code of the alternate version\").nullable(),\n type: z.string().describe(\"Document type of the alternate language version\").nullable(),\n}).passthrough();\nconst PrismicContentApiQueryDocuments_DocumentSchema = z.object({\n id: z.string().describe(\"Document ID\").nullable(),\n uid: z.string().describe(\"Document UID, if set\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Document data fields, structure varies by type\"),\n href: z.string().describe(\"Document URL for API access\").nullable(),\n lang: z.string().describe(\"Language code of the document\").nullable(),\n tags: z.array(z.string()).describe(\"List of tags assigned to the document\"),\n type: z.string().describe(\"Document type\").nullable(),\n slugs: z.array(z.string()).describe(\"List of slugs for the document\"),\n alternate_languages: z.array(PrismicContentApiQueryDocuments_AlternateLanguageSchema).describe(\"Alternate language versions of the document\"),\n last_publication_date: z.string().describe(\"Last publication date as ISO 8601 string\").nullable(),\n first_publication_date: z.string().describe(\"First publication date as ISO 8601 string\").nullable(),\n}).passthrough();\nexport const PrismicContentApiQueryDocumentsOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\n results: z.array(PrismicContentApiQueryDocuments_DocumentSchema).describe(\"List of matched documents\"),\n next_page: z.string().describe(\"URL of next page, if any\").nullable().optional(),\n prev_page: z.string().describe(\"URL of previous page, if any\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\").nullable(),\n results_size: z.number().int().describe(\"Number of returned results on this page\").nullable(),\n results_per_page: z.number().int().describe(\"Number of results per page\").nullable(),\n total_results_size: z.number().int().describe(\"Total number of matching results in repository\").nullable(),\n}).passthrough();\n\nexport const prismicContentApiQueryDocuments = action(\"PRISMIC_CONTENT_API_QUERY_DOCUMENTS\", {\n slug: \"prismic-content-api-query-documents\",\n name: \"Prismic: Query Documents\",\n description: \"Tool to query Prismic documents using predicates and pagination. Use when you need to fetch multiple documents from a repository after obtaining a ref.\",\n input: PrismicContentApiQueryDocumentsInput,\n output: PrismicContentApiQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CAC5S,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC9K,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC5G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACnN,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;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S,4BAA4B,CAAC,CAAC,SAAS;CACnF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,kCAAkCC,eAAAA,OAAO,uCAAuC;CAC3F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,61 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/content-api-query-documents.d.ts
4
- declare const PrismicContentApiQueryDocumentsInput: z.ZodTypeAny;
5
- declare const PrismicContentApiQueryDocumentsOutput: z.ZodTypeAny;
6
- declare const prismicContentApiQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicContentApiQueryDocumentsInput: z.ZodObject<{
5
+ q: z.ZodOptional<z.ZodString>;
6
+ ref: z.ZodString;
7
+ lang: z.ZodOptional<z.ZodString>;
8
+ page: z.ZodOptional<z.ZodNumber>;
9
+ after: z.ZodOptional<z.ZodString>;
10
+ fetch: z.ZodOptional<z.ZodString>;
11
+ pageSize: z.ZodOptional<z.ZodNumber>;
12
+ orderings: z.ZodOptional<z.ZodString>;
13
+ fetchLinks: z.ZodOptional<z.ZodString>;
14
+ graphQuery: z.ZodOptional<z.ZodString>;
15
+ access_token: z.ZodOptional<z.ZodString>;
16
+ integrationFieldsRef: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ declare const PrismicContentApiQueryDocumentsOutput: z.ZodObject<{
19
+ page: z.ZodNullable<z.ZodNumber>;
20
+ results: z.ZodArray<z.ZodObject<{
21
+ id: z.ZodNullable<z.ZodString>;
22
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
24
+ href: z.ZodNullable<z.ZodString>;
25
+ lang: z.ZodNullable<z.ZodString>;
26
+ tags: z.ZodArray<z.ZodString>;
27
+ type: z.ZodNullable<z.ZodString>;
28
+ slugs: z.ZodArray<z.ZodString>;
29
+ alternate_languages: z.ZodArray<z.ZodObject<{
30
+ id: z.ZodNullable<z.ZodString>;
31
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ lang: z.ZodNullable<z.ZodString>;
33
+ type: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ last_publication_date: z.ZodNullable<z.ZodString>;
36
+ first_publication_date: z.ZodNullable<z.ZodString>;
37
+ }, z.core.$loose>>;
38
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ total_pages: z.ZodNullable<z.ZodNumber>;
41
+ results_size: z.ZodNullable<z.ZodNumber>;
42
+ results_per_page: z.ZodNullable<z.ZodNumber>;
43
+ total_results_size: z.ZodNullable<z.ZodNumber>;
44
+ }, z.core.$loose>;
45
+ declare const prismicContentApiQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
46
+ ref: string;
47
+ q?: string | undefined;
48
+ lang?: string | undefined;
49
+ page?: number | undefined;
50
+ after?: string | undefined;
51
+ fetch?: string | undefined;
52
+ pageSize?: number | undefined;
53
+ orderings?: string | undefined;
54
+ fetchLinks?: string | undefined;
55
+ graphQuery?: string | undefined;
56
+ access_token?: string | undefined;
57
+ integrationFieldsRef?: string | undefined;
58
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
59
  //#endregion
8
60
  export { prismicContentApiQueryDocuments };
9
61
  //# sourceMappingURL=content-api-query-documents.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-api-query-documents.d.cts","names":[],"sources":["../../src/actions/content-api-query-documents.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAa2C;AAAA,cAoBnF,qCAAA,EAAuC,CAAA,CAAE,UASpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"content-api-query-documents.d.cts","names":[],"sources":["../../src/actions/content-api-query-documents.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAiCpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWrC,+BAAA,gCAA+B,wBAAA"}
@@ -1,9 +1,61 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/content-api-query-documents.d.ts
4
- declare const PrismicContentApiQueryDocumentsInput: z.ZodTypeAny;
5
- declare const PrismicContentApiQueryDocumentsOutput: z.ZodTypeAny;
6
- declare const prismicContentApiQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicContentApiQueryDocumentsInput: z.ZodObject<{
5
+ q: z.ZodOptional<z.ZodString>;
6
+ ref: z.ZodString;
7
+ lang: z.ZodOptional<z.ZodString>;
8
+ page: z.ZodOptional<z.ZodNumber>;
9
+ after: z.ZodOptional<z.ZodString>;
10
+ fetch: z.ZodOptional<z.ZodString>;
11
+ pageSize: z.ZodOptional<z.ZodNumber>;
12
+ orderings: z.ZodOptional<z.ZodString>;
13
+ fetchLinks: z.ZodOptional<z.ZodString>;
14
+ graphQuery: z.ZodOptional<z.ZodString>;
15
+ access_token: z.ZodOptional<z.ZodString>;
16
+ integrationFieldsRef: z.ZodOptional<z.ZodString>;
17
+ }, z.core.$strip>;
18
+ declare const PrismicContentApiQueryDocumentsOutput: z.ZodObject<{
19
+ page: z.ZodNullable<z.ZodNumber>;
20
+ results: z.ZodArray<z.ZodObject<{
21
+ id: z.ZodNullable<z.ZodString>;
22
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ data: z.ZodRecord<z.ZodString, z.ZodUnknown>;
24
+ href: z.ZodNullable<z.ZodString>;
25
+ lang: z.ZodNullable<z.ZodString>;
26
+ tags: z.ZodArray<z.ZodString>;
27
+ type: z.ZodNullable<z.ZodString>;
28
+ slugs: z.ZodArray<z.ZodString>;
29
+ alternate_languages: z.ZodArray<z.ZodObject<{
30
+ id: z.ZodNullable<z.ZodString>;
31
+ uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ lang: z.ZodNullable<z.ZodString>;
33
+ type: z.ZodNullable<z.ZodString>;
34
+ }, z.core.$loose>>;
35
+ last_publication_date: z.ZodNullable<z.ZodString>;
36
+ first_publication_date: z.ZodNullable<z.ZodString>;
37
+ }, z.core.$loose>>;
38
+ next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
+ prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ total_pages: z.ZodNullable<z.ZodNumber>;
41
+ results_size: z.ZodNullable<z.ZodNumber>;
42
+ results_per_page: z.ZodNullable<z.ZodNumber>;
43
+ total_results_size: z.ZodNullable<z.ZodNumber>;
44
+ }, z.core.$loose>;
45
+ declare const prismicContentApiQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
46
+ ref: string;
47
+ q?: string | undefined;
48
+ lang?: string | undefined;
49
+ page?: number | undefined;
50
+ after?: string | undefined;
51
+ fetch?: string | undefined;
52
+ pageSize?: number | undefined;
53
+ orderings?: string | undefined;
54
+ fetchLinks?: string | undefined;
55
+ graphQuery?: string | undefined;
56
+ access_token?: string | undefined;
57
+ integrationFieldsRef?: string | undefined;
58
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
59
  //#endregion
8
60
  export { prismicContentApiQueryDocuments };
9
61
  //# sourceMappingURL=content-api-query-documents.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-api-query-documents.d.mts","names":[],"sources":["../../src/actions/content-api-query-documents.ts"],"mappings":";;;cAIa,oCAAA,EAAsC,CAAA,CAAE,UAa2C;AAAA,cAoBnF,qCAAA,EAAuC,CAAA,CAAE,UASpD;AAAA,cAEW,+BAAA,gCAA+B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"content-api-query-documents.d.mts","names":[],"sources":["../../src/actions/content-api-query-documents.ts"],"mappings":";;;cAIa,oCAAA,EAAoC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAiCpC,qCAAA,EAAqC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWrC,+BAAA,gCAA+B,wBAAA"}