@keystrokehq/prismic 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/content-api-get-documents-with-fulltext-search.cjs +3 -3
- package/dist/actions/content-api-get-documents-with-fulltext-search.cjs.map +1 -1
- package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts +3 -3
- package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts +3 -3
- package/dist/actions/content-api-get-documents-with-fulltext-search.mjs +3 -3
- package/dist/actions/content-api-get-documents-with-fulltext-search.mjs.map +1 -1
- package/dist/actions/content-api-query-documents.cjs +3 -3
- package/dist/actions/content-api-query-documents.cjs.map +1 -1
- package/dist/actions/content-api-query-documents.d.cts +3 -3
- package/dist/actions/content-api-query-documents.d.mts +3 -3
- package/dist/actions/content-api-query-documents.mjs +3 -3
- package/dist/actions/content-api-query-documents.mjs.map +1 -1
- package/dist/actions/repository-api-get-info.cjs +7 -7
- package/dist/actions/repository-api-get-info.cjs.map +1 -1
- package/dist/actions/repository-api-get-info.d.cts +7 -7
- package/dist/actions/repository-api-get-info.d.mts +7 -7
- package/dist/actions/repository-api-get-info.mjs +7 -7
- package/dist/actions/repository-api-get-info.mjs.map +1 -1
- package/dist/actions/tags-api-get-all-tags.cjs +1 -1
- package/dist/actions/tags-api-get-all-tags.cjs.map +1 -1
- package/dist/actions/tags-api-get-all-tags.d.cts +1 -1
- package/dist/actions/tags-api-get-all-tags.d.mts +1 -1
- package/dist/actions/tags-api-get-all-tags.mjs +1 -1
- package/dist/actions/tags-api-get-all-tags.mjs.map +1 -1
- package/dist/actions/types-api-get-types.cjs +2 -2
- package/dist/actions/types-api-get-types.cjs.map +1 -1
- package/dist/actions/types-api-get-types.d.cts +2 -2
- package/dist/actions/types-api-get-types.d.mts +2 -2
- package/dist/actions/types-api-get-types.mjs +2 -2
- package/dist/actions/types-api-get-types.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ const PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema =
|
|
|
15
15
|
uid: zod.z.string().describe("UID of the alternate document, if any").nullable().optional(),
|
|
16
16
|
lang: zod.z.string().describe("Language code of the alternate version").nullable(),
|
|
17
17
|
type: zod.z.string().describe("Document type of the alternate language version").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = zod.z.object({
|
|
20
20
|
id: zod.z.string().describe("Document ID").nullable(),
|
|
21
21
|
uid: zod.z.string().describe("Document UID, if set").nullable().optional(),
|
|
@@ -28,7 +28,7 @@ const PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = zod.z.obj
|
|
|
28
28
|
alternate_languages: zod.z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe("Alternate language versions of the document"),
|
|
29
29
|
last_publication_date: zod.z.string().describe("Last publication date as ISO 8601 string").nullable(),
|
|
30
30
|
first_publication_date: zod.z.string().describe("First publication date as ISO 8601 string").nullable()
|
|
31
|
-
});
|
|
31
|
+
}).passthrough();
|
|
32
32
|
const PrismicContentApiGetDocumentsWithFulltextSearchOutput = zod.z.object({
|
|
33
33
|
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
34
34
|
license: zod.z.string().describe("Content license information").nullable().optional(),
|
|
@@ -40,7 +40,7 @@ const PrismicContentApiGetDocumentsWithFulltextSearchOutput = zod.z.object({
|
|
|
40
40
|
results_size: zod.z.number().int().describe("Number of returned results on this page").nullable(),
|
|
41
41
|
results_per_page: zod.z.number().int().describe("Number of results per page").nullable(),
|
|
42
42
|
total_results_size: zod.z.number().int().describe("Total number of matching results in repository").nullable()
|
|
43
|
-
});
|
|
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.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});\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});\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});\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,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxF,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,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DAA0D;CAC9H,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -27,10 +27,10 @@ declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodObject
|
|
|
27
27
|
uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
lang: z.ZodNullable<z.ZodString>;
|
|
29
29
|
type: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
31
|
last_publication_date: z.ZodNullable<z.ZodString>;
|
|
32
32
|
first_publication_date: z.ZodNullable<z.ZodString>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -38,7 +38,7 @@ declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodObject
|
|
|
38
38
|
results_size: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
results_per_page: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
total_results_size: z.ZodNullable<z.ZodNumber>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>;
|
|
42
42
|
declare const prismicContentApiGetDocumentsWithFulltextSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
43
|
q: string;
|
|
44
44
|
lang?: string | undefined;
|
|
@@ -27,10 +27,10 @@ declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodObject
|
|
|
27
27
|
uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
lang: z.ZodNullable<z.ZodString>;
|
|
29
29
|
type: z.ZodNullable<z.ZodString>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>>;
|
|
31
31
|
last_publication_date: z.ZodNullable<z.ZodString>;
|
|
32
32
|
first_publication_date: z.ZodNullable<z.ZodString>;
|
|
33
|
-
}, z.core.$
|
|
33
|
+
}, z.core.$loose>>;
|
|
34
34
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
35
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
36
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -38,7 +38,7 @@ declare const PrismicContentApiGetDocumentsWithFulltextSearchOutput: z.ZodObject
|
|
|
38
38
|
results_size: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
results_per_page: z.ZodNullable<z.ZodNumber>;
|
|
40
40
|
total_results_size: z.ZodNullable<z.ZodNumber>;
|
|
41
|
-
}, z.core.$
|
|
41
|
+
}, z.core.$loose>;
|
|
42
42
|
declare const prismicContentApiGetDocumentsWithFulltextSearch: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
43
43
|
q: string;
|
|
44
44
|
lang?: string | undefined;
|
|
@@ -15,7 +15,7 @@ const PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema =
|
|
|
15
15
|
uid: z.string().describe("UID of the alternate document, if any").nullable().optional(),
|
|
16
16
|
lang: z.string().describe("Language code of the alternate version").nullable(),
|
|
17
17
|
type: z.string().describe("Document type of the alternate language version").nullable()
|
|
18
|
-
});
|
|
18
|
+
}).passthrough();
|
|
19
19
|
const PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = z.object({
|
|
20
20
|
id: z.string().describe("Document ID").nullable(),
|
|
21
21
|
uid: z.string().describe("Document UID, if set").nullable().optional(),
|
|
@@ -28,7 +28,7 @@ const PrismicContentApiGetDocumentsWithFulltextSearch_DocumentSchema = z.object(
|
|
|
28
28
|
alternate_languages: z.array(PrismicContentApiGetDocumentsWithFulltextSearch_AlternateLanguageSchema).describe("Alternate language versions of the document"),
|
|
29
29
|
last_publication_date: z.string().describe("Last publication date as ISO 8601 string").nullable(),
|
|
30
30
|
first_publication_date: z.string().describe("First publication date as ISO 8601 string").nullable()
|
|
31
|
-
});
|
|
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",
|
|
@@ -45,7 +45,7 @@ const prismicContentApiGetDocumentsWithFulltextSearch = action("PRISMIC_CONTENT_
|
|
|
45
45
|
results_size: z.number().int().describe("Number of returned results on this page").nullable(),
|
|
46
46
|
results_per_page: z.number().int().describe("Number of results per page").nullable(),
|
|
47
47
|
total_results_size: z.number().int().describe("Total number of matching results in repository").nullable()
|
|
48
|
-
})
|
|
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.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});\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});\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});\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,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxF,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,CA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CAAC,SAAS;EACnF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -20,7 +20,7 @@ const PrismicContentApiQueryDocuments_AlternateLanguageSchema = zod.z.object({
|
|
|
20
20
|
uid: zod.z.string().describe("UID of the alternate document, if any").nullable().optional(),
|
|
21
21
|
lang: zod.z.string().describe("Language code of the alternate version").nullable(),
|
|
22
22
|
type: zod.z.string().describe("Document type of the alternate language version").nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const PrismicContentApiQueryDocuments_DocumentSchema = zod.z.object({
|
|
25
25
|
id: zod.z.string().describe("Document ID").nullable(),
|
|
26
26
|
uid: zod.z.string().describe("Document UID, if set").nullable().optional(),
|
|
@@ -33,7 +33,7 @@ const PrismicContentApiQueryDocuments_DocumentSchema = zod.z.object({
|
|
|
33
33
|
alternate_languages: zod.z.array(PrismicContentApiQueryDocuments_AlternateLanguageSchema).describe("Alternate language versions of the document"),
|
|
34
34
|
last_publication_date: zod.z.string().describe("Last publication date as ISO 8601 string").nullable(),
|
|
35
35
|
first_publication_date: zod.z.string().describe("First publication date as ISO 8601 string").nullable()
|
|
36
|
-
});
|
|
36
|
+
}).passthrough();
|
|
37
37
|
const PrismicContentApiQueryDocumentsOutput = zod.z.object({
|
|
38
38
|
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
39
39
|
results: zod.z.array(PrismicContentApiQueryDocuments_DocumentSchema).describe("List of matched documents"),
|
|
@@ -43,7 +43,7 @@ const PrismicContentApiQueryDocumentsOutput = zod.z.object({
|
|
|
43
43
|
results_size: zod.z.number().int().describe("Number of returned results on this page").nullable(),
|
|
44
44
|
results_per_page: zod.z.number().int().describe("Number of results per page").nullable(),
|
|
45
45
|
total_results_size: zod.z.number().int().describe("Total number of matching results in repository").nullable()
|
|
46
|
-
});
|
|
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.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});\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});\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});\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,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AC,SAAS;CACtF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxF,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: PrismicContentApiQueryDocument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AAA,EAAE,OAAO;CAC5D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,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,CAAC,CAAC,SAAS;CACnF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC5F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,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"}
|
|
@@ -31,17 +31,17 @@ declare const PrismicContentApiQueryDocumentsOutput: z.ZodObject<{
|
|
|
31
31
|
uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
lang: z.ZodNullable<z.ZodString>;
|
|
33
33
|
type: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
35
|
last_publication_date: z.ZodNullable<z.ZodString>;
|
|
36
36
|
first_publication_date: z.ZodNullable<z.ZodString>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
38
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
41
41
|
results_size: z.ZodNullable<z.ZodNumber>;
|
|
42
42
|
results_per_page: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
total_results_size: z.ZodNullable<z.ZodNumber>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const prismicContentApiQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
ref: string;
|
|
47
47
|
q?: string | undefined;
|
|
@@ -31,17 +31,17 @@ declare const PrismicContentApiQueryDocumentsOutput: z.ZodObject<{
|
|
|
31
31
|
uid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
lang: z.ZodNullable<z.ZodString>;
|
|
33
33
|
type: z.ZodNullable<z.ZodString>;
|
|
34
|
-
}, z.core.$
|
|
34
|
+
}, z.core.$loose>>;
|
|
35
35
|
last_publication_date: z.ZodNullable<z.ZodString>;
|
|
36
36
|
first_publication_date: z.ZodNullable<z.ZodString>;
|
|
37
|
-
}, z.core.$
|
|
37
|
+
}, z.core.$loose>>;
|
|
38
38
|
next_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
39
39
|
prev_page: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
40
40
|
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
41
41
|
results_size: z.ZodNullable<z.ZodNumber>;
|
|
42
42
|
results_per_page: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
total_results_size: z.ZodNullable<z.ZodNumber>;
|
|
44
|
-
}, z.core.$
|
|
44
|
+
}, z.core.$loose>;
|
|
45
45
|
declare const prismicContentApiQueryDocuments: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
46
46
|
ref: string;
|
|
47
47
|
q?: string | undefined;
|
|
@@ -20,7 +20,7 @@ const PrismicContentApiQueryDocuments_AlternateLanguageSchema = z.object({
|
|
|
20
20
|
uid: z.string().describe("UID of the alternate document, if any").nullable().optional(),
|
|
21
21
|
lang: z.string().describe("Language code of the alternate version").nullable(),
|
|
22
22
|
type: z.string().describe("Document type of the alternate language version").nullable()
|
|
23
|
-
});
|
|
23
|
+
}).passthrough();
|
|
24
24
|
const PrismicContentApiQueryDocuments_DocumentSchema = z.object({
|
|
25
25
|
id: z.string().describe("Document ID").nullable(),
|
|
26
26
|
uid: z.string().describe("Document UID, if set").nullable().optional(),
|
|
@@ -33,7 +33,7 @@ const PrismicContentApiQueryDocuments_DocumentSchema = z.object({
|
|
|
33
33
|
alternate_languages: z.array(PrismicContentApiQueryDocuments_AlternateLanguageSchema).describe("Alternate language versions of the document"),
|
|
34
34
|
last_publication_date: z.string().describe("Last publication date as ISO 8601 string").nullable(),
|
|
35
35
|
first_publication_date: z.string().describe("First publication date as ISO 8601 string").nullable()
|
|
36
|
-
});
|
|
36
|
+
}).passthrough();
|
|
37
37
|
const prismicContentApiQueryDocuments = action("PRISMIC_CONTENT_API_QUERY_DOCUMENTS", {
|
|
38
38
|
slug: "prismic-content-api-query-documents",
|
|
39
39
|
name: "Prismic: Query Documents",
|
|
@@ -48,7 +48,7 @@ const prismicContentApiQueryDocuments = action("PRISMIC_CONTENT_API_QUERY_DOCUME
|
|
|
48
48
|
results_size: z.number().int().describe("Number of returned results on this page").nullable(),
|
|
49
49
|
results_per_page: z.number().int().describe("Number of results per page").nullable(),
|
|
50
50
|
total_results_size: z.number().int().describe("Total number of matching results in repository").nullable()
|
|
51
|
-
})
|
|
51
|
+
}).passthrough()
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
54
54
|
export { prismicContentApiQueryDocuments };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"content-api-query-documents.mjs","names":[],"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});\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});\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});\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,uCAAuC,EAAE,OAAO;CAC3D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CAC5S,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC9K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6KAA6K,CAAC,CAAC,SAAS;CACnN,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACrF,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACtF,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,0KAA0K,CAAC,CAAC,SAAS;CACrN,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1F,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CACzG,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS;AACjG,CAAC,CAAC,CAAC,SAAS,mFAAmF;AAC/F,MAAM,0DAA0D,EAAE,OAAO;CACvE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS;CACjE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAC7E,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS;AACxF,CAAC;
|
|
1
|
+
{"version":3,"file":"content-api-query-documents.mjs","names":[],"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,uCAAuC,EAAE,OAAO;CAC3D,GAAG,EAAE,OAAO,CAAC,CAAC,SAAS,0QAA0Q,CAAC,CAAC,SAAS;CAC5S,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,qJAAqJ;CAC9K,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC5G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACxF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC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B,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
|
|
@@ -8,29 +8,29 @@ const PrismicRepositoryApiGetInfo_RefSchema = zod.z.object({
|
|
|
8
8
|
label: zod.z.string().describe("Human-readable label").nullable(),
|
|
9
9
|
isMasterRef: zod.z.boolean().describe("True if this is the master ref").nullable(),
|
|
10
10
|
scheduledAt: zod.z.string().describe("Scheduled activation date, if applicable").nullable().optional()
|
|
11
|
-
}).describe("A single API reference (master or release).");
|
|
11
|
+
}).passthrough().describe("A single API reference (master or release).");
|
|
12
12
|
const PrismicRepositoryApiGetInfo_LanguageSchema = zod.z.object({
|
|
13
13
|
id: zod.z.string().describe("ISO code of the language").nullable(),
|
|
14
14
|
name: zod.z.string().describe("Display name of the language").nullable()
|
|
15
|
-
}).describe("Supported language in the repository.");
|
|
15
|
+
}).passthrough().describe("Supported language in the repository.");
|
|
16
16
|
const PrismicRepositoryApiGetInfo_ExperimentsSchema = zod.z.object({
|
|
17
17
|
draft: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Draft experiments").nullable().optional(),
|
|
18
18
|
running: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Running experiments").nullable().optional()
|
|
19
|
-
}).describe("Active A/B test configurations.");
|
|
19
|
+
}).passthrough().describe("Active A/B test configurations.");
|
|
20
20
|
const PrismicRepositoryApiGetInfoOutput = zod.z.object({
|
|
21
21
|
refs: zod.z.array(PrismicRepositoryApiGetInfo_RefSchema).describe("List of all refs in the repository"),
|
|
22
22
|
tags: zod.z.array(zod.z.string()).describe("List of all tags in the repository"),
|
|
23
|
-
forms: zod.z.
|
|
24
|
-
types: zod.z.
|
|
23
|
+
forms: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Forms available for document search endpoints"),
|
|
24
|
+
types: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Map of custom type IDs to their names"),
|
|
25
25
|
license: zod.z.string().describe("Repository license information").nullable().optional(),
|
|
26
26
|
version: zod.z.string().describe("API version identifier").nullable().optional(),
|
|
27
|
-
bookmarks: zod.z.
|
|
27
|
+
bookmarks: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Named bookmarks mapping document aliases to IDs"),
|
|
28
28
|
languages: zod.z.array(PrismicRepositoryApiGetInfo_LanguageSchema).describe("Supported languages in the repository"),
|
|
29
29
|
experiments: PrismicRepositoryApiGetInfo_ExperimentsSchema.nullable().optional(),
|
|
30
30
|
oauth_token: zod.z.string().describe("OAuth token exchange URL").nullable().optional(),
|
|
31
31
|
oauth_initiate: zod.z.string().describe("OAuth initiation URL").nullable().optional(),
|
|
32
32
|
integrationFieldsRef: zod.z.string().describe("Reference for integration fields data, if present").nullable().optional()
|
|
33
|
-
}).describe("Response model containing Prismic repository metadata.");
|
|
33
|
+
}).passthrough().describe("Response model containing Prismic repository metadata.");
|
|
34
34
|
const prismicRepositoryApiGetInfo = require_action.action("PRISMIC_REPOSITORY_API_GET_INFO", {
|
|
35
35
|
slug: "prismic-repository-api-get-info",
|
|
36
36
|
name: "Get Prismic Repository Info",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repository-api-get-info.cjs","names":["z","action"],"sources":["../../src/actions/repository-api-get-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport 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.\");\nconst PrismicRepositoryApiGetInfo_RefSchema = z.object({\n id: z.string().describe(\"Unique identifier for the ref\").nullable(),\n ref: z.string().describe(\"Reference token\").nullable(),\n label: z.string().describe(\"Human-readable label\").nullable(),\n isMasterRef: z.boolean().describe(\"True if this is the master ref\").nullable(),\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.object({\n id: z.string().describe(\"ISO code of the language\").nullable(),\n name: z.string().describe(\"Display name of the language\").nullable(),\n}).describe(\"Supported language in the repository.\");\nconst PrismicRepositoryApiGetInfo_ExperimentsSchema = 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.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.
|
|
1
|
+
{"version":3,"file":"repository-api-get-info.cjs","names":["z","action"],"sources":["../../src/actions/repository-api-get-info.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport 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.\");\nconst PrismicRepositoryApiGetInfo_RefSchema = z.object({\n id: z.string().describe(\"Unique identifier for the ref\").nullable(),\n ref: z.string().describe(\"Reference token\").nullable(),\n label: z.string().describe(\"Human-readable label\").nullable(),\n isMasterRef: z.boolean().describe(\"True if this is the master ref\").nullable(),\n scheduledAt: z.string().describe(\"Scheduled activation date, if applicable\").nullable().optional(),\n}).passthrough().describe(\"A single API reference (master or release).\");\nconst PrismicRepositoryApiGetInfo_LanguageSchema = z.object({\n id: z.string().describe(\"ISO code of the language\").nullable(),\n name: z.string().describe(\"Display name of the language\").nullable(),\n}).passthrough().describe(\"Supported language in the repository.\");\nconst PrismicRepositoryApiGetInfo_ExperimentsSchema = 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}).passthrough().describe(\"Active A/B test configurations.\");\nexport const PrismicRepositoryApiGetInfoOutput = 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.record(z.string(), z.unknown()).describe(\"Forms available for document search endpoints\"),\n types: z.record(z.string(), z.unknown()).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.record(z.string(), z.unknown()).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}).passthrough().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,mCAAmCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS;AAC7W,MAAM,wCAAwCA,IAAAA,EAAE,OAAO;CACrD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SA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Output: z.ZodObject<{
|
|
|
9
9
|
label: z.ZodNullable<z.ZodString>;
|
|
10
10
|
isMasterRef: z.ZodNullable<z.ZodBoolean>;
|
|
11
11
|
scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
13
|
tags: z.ZodArray<z.ZodString>;
|
|
14
|
-
forms: z.
|
|
15
|
-
types: z.
|
|
14
|
+
forms: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
+
types: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16
16
|
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
bookmarks: z.
|
|
18
|
+
bookmarks: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19
19
|
languages: z.ZodArray<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
21
|
name: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
experiments: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
24
|
draft: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
25
25
|
running: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
oauth_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
oauth_initiate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
integrationFieldsRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const prismicRepositoryApiGetInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { prismicRepositoryApiGetInfo };
|
|
@@ -9,25 +9,25 @@ declare const PrismicRepositoryApiGetInfoOutput: z.ZodObject<{
|
|
|
9
9
|
label: z.ZodNullable<z.ZodString>;
|
|
10
10
|
isMasterRef: z.ZodNullable<z.ZodBoolean>;
|
|
11
11
|
scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
12
|
-
}, z.core.$
|
|
12
|
+
}, z.core.$loose>>;
|
|
13
13
|
tags: z.ZodArray<z.ZodString>;
|
|
14
|
-
forms: z.
|
|
15
|
-
types: z.
|
|
14
|
+
forms: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
15
|
+
types: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
16
16
|
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
-
bookmarks: z.
|
|
18
|
+
bookmarks: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
19
19
|
languages: z.ZodArray<z.ZodObject<{
|
|
20
20
|
id: z.ZodNullable<z.ZodString>;
|
|
21
21
|
name: z.ZodNullable<z.ZodString>;
|
|
22
|
-
}, z.core.$
|
|
22
|
+
}, z.core.$loose>>;
|
|
23
23
|
experiments: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
24
24
|
draft: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
25
25
|
running: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
26
|
-
}, z.core.$
|
|
26
|
+
}, z.core.$loose>>>;
|
|
27
27
|
oauth_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
28
28
|
oauth_initiate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
29
29
|
integrationFieldsRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
30
|
-
}, z.core.$
|
|
30
|
+
}, z.core.$loose>;
|
|
31
31
|
declare const prismicRepositoryApiGetInfo: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
32
32
|
//#endregion
|
|
33
33
|
export { prismicRepositoryApiGetInfo };
|
|
@@ -8,15 +8,15 @@ const PrismicRepositoryApiGetInfo_RefSchema = z.object({
|
|
|
8
8
|
label: z.string().describe("Human-readable label").nullable(),
|
|
9
9
|
isMasterRef: z.boolean().describe("True if this is the master ref").nullable(),
|
|
10
10
|
scheduledAt: z.string().describe("Scheduled activation date, if applicable").nullable().optional()
|
|
11
|
-
}).describe("A single API reference (master or release).");
|
|
11
|
+
}).passthrough().describe("A single API reference (master or release).");
|
|
12
12
|
const PrismicRepositoryApiGetInfo_LanguageSchema = z.object({
|
|
13
13
|
id: z.string().describe("ISO code of the language").nullable(),
|
|
14
14
|
name: z.string().describe("Display name of the language").nullable()
|
|
15
|
-
}).describe("Supported language in the repository.");
|
|
15
|
+
}).passthrough().describe("Supported language in the repository.");
|
|
16
16
|
const PrismicRepositoryApiGetInfo_ExperimentsSchema = z.object({
|
|
17
17
|
draft: z.array(z.record(z.string(), z.unknown())).describe("Draft experiments").nullable().optional(),
|
|
18
18
|
running: z.array(z.record(z.string(), z.unknown())).describe("Running experiments").nullable().optional()
|
|
19
|
-
}).describe("Active A/B test configurations.");
|
|
19
|
+
}).passthrough().describe("Active A/B test configurations.");
|
|
20
20
|
const prismicRepositoryApiGetInfo = action("PRISMIC_REPOSITORY_API_GET_INFO", {
|
|
21
21
|
slug: "prismic-repository-api-get-info",
|
|
22
22
|
name: "Get Prismic Repository Info",
|
|
@@ -25,17 +25,17 @@ const prismicRepositoryApiGetInfo = action("PRISMIC_REPOSITORY_API_GET_INFO", {
|
|
|
25
25
|
output: z.object({
|
|
26
26
|
refs: z.array(PrismicRepositoryApiGetInfo_RefSchema).describe("List of all refs in the repository"),
|
|
27
27
|
tags: z.array(z.string()).describe("List of all tags in the repository"),
|
|
28
|
-
forms: z.
|
|
29
|
-
types: z.
|
|
28
|
+
forms: z.record(z.string(), z.unknown()).describe("Forms available for document search endpoints"),
|
|
29
|
+
types: z.record(z.string(), z.unknown()).describe("Map of custom type IDs to their names"),
|
|
30
30
|
license: z.string().describe("Repository license information").nullable().optional(),
|
|
31
31
|
version: z.string().describe("API version identifier").nullable().optional(),
|
|
32
|
-
bookmarks: z.
|
|
32
|
+
bookmarks: z.record(z.string(), z.unknown()).describe("Named bookmarks mapping document aliases to IDs"),
|
|
33
33
|
languages: z.array(PrismicRepositoryApiGetInfo_LanguageSchema).describe("Supported languages in the repository"),
|
|
34
34
|
experiments: PrismicRepositoryApiGetInfo_ExperimentsSchema.nullable().optional(),
|
|
35
35
|
oauth_token: z.string().describe("OAuth token exchange URL").nullable().optional(),
|
|
36
36
|
oauth_initiate: z.string().describe("OAuth initiation URL").nullable().optional(),
|
|
37
37
|
integrationFieldsRef: z.string().describe("Reference for integration fields data, if present").nullable().optional()
|
|
38
|
-
}).describe("Response model containing Prismic repository metadata.")
|
|
38
|
+
}).passthrough().describe("Response model containing Prismic repository metadata.")
|
|
39
39
|
});
|
|
40
40
|
//#endregion
|
|
41
41
|
export { prismicRepositoryApiGetInfo };
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Unique identifier for the ref\").nullable(),\n ref: z.string().describe(\"Reference token\").nullable(),\n label: z.string().describe(\"Human-readable label\").nullable(),\n isMasterRef: z.boolean().describe(\"True if this is the master ref\").nullable(),\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.object({\n id: z.string().describe(\"ISO code of the language\").nullable(),\n name: z.string().describe(\"Display name of the language\").nullable(),\n}).describe(\"Supported language in the repository.\");\nconst PrismicRepositoryApiGetInfo_ExperimentsSchema = 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.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.
|
|
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.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.object({\n id: z.string().describe(\"Unique identifier for the ref\").nullable(),\n ref: z.string().describe(\"Reference token\").nullable(),\n label: z.string().describe(\"Human-readable label\").nullable(),\n isMasterRef: z.boolean().describe(\"True if this is the master ref\").nullable(),\n scheduledAt: z.string().describe(\"Scheduled activation date, if applicable\").nullable().optional(),\n}).passthrough().describe(\"A single API reference (master or release).\");\nconst PrismicRepositoryApiGetInfo_LanguageSchema = z.object({\n id: z.string().describe(\"ISO code of the language\").nullable(),\n name: z.string().describe(\"Display name of the language\").nullable(),\n}).passthrough().describe(\"Supported language in the repository.\");\nconst PrismicRepositoryApiGetInfo_ExperimentsSchema = 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}).passthrough().describe(\"Active A/B test configurations.\");\nexport const PrismicRepositoryApiGetInfoOutput = 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.record(z.string(), z.unknown()).describe(\"Forms available for document search endpoints\"),\n types: z.record(z.string(), z.unknown()).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.record(z.string(), z.unknown()).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}).passthrough().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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AAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QApB+C,EAAE,OAAO;EACxD,MAAM,EAAE,MAAM,qCAAqC,CAAC,CAAC,SAAS,oCAAoC;EAClG,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,oCAAoC;EACvE,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+CAA+C;EACjG,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uCAAuC;EACzF,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,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,iDAAiD;EACvG,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,YAAY,CAAC,CAAC,SAAS,wDAOhB;AACV,CAAC"}
|
|
@@ -2,7 +2,7 @@ const require_action = require("../action.cjs");
|
|
|
2
2
|
let zod = require("zod");
|
|
3
3
|
//#region src/actions/tags-api-get-all-tags.ts
|
|
4
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.");
|
|
5
|
+
const PrismicTagsApiGetAllTagsOutput = zod.z.object({ tags: zod.z.array(zod.z.string()).describe("List of all tags present in the Prismic repository.") }).passthrough().describe("Response model for the TAGS_API_GET_ALL_TAGS action.");
|
|
6
6
|
const prismicTagsApiGetAllTags = require_action.action("PRISMIC_TAGS_API_GET_ALL_TAGS", {
|
|
7
7
|
slug: "prismic-tags-api-get-all-tags",
|
|
8
8
|
name: "Get Prismic Tags",
|
|
@@ -1 +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.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput = 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,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AACrH,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,SAAS,sDAAsD;
|
|
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.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput = z.object({\n tags: z.array(z.string()).describe(\"List of all tags present in the Prismic repository.\"),\n}).passthrough().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,gCAAgCA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AACrH,MAAa,iCAAiCA,IAAAA,EAAE,OAAO,EACrD,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAAsD;AAEhF,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PrismicTagsApiGetAllTagsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const PrismicTagsApiGetAllTagsOutput: z.ZodObject<{
|
|
6
6
|
tags: z.ZodArray<z.ZodString>;
|
|
7
|
-
}, z.core.$
|
|
7
|
+
}, z.core.$loose>;
|
|
8
8
|
declare const prismicTagsApiGetAllTags: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { prismicTagsApiGetAllTags };
|
|
@@ -4,7 +4,7 @@ import { z } from "zod";
|
|
|
4
4
|
declare const PrismicTagsApiGetAllTagsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
5
|
declare const PrismicTagsApiGetAllTagsOutput: z.ZodObject<{
|
|
6
6
|
tags: z.ZodArray<z.ZodString>;
|
|
7
|
-
}, z.core.$
|
|
7
|
+
}, z.core.$loose>;
|
|
8
8
|
declare const prismicTagsApiGetAllTags: import("@keystrokehq/action").WorkflowActionDefinition<Record<string, never>, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
9
9
|
//#endregion
|
|
10
10
|
export { prismicTagsApiGetAllTags };
|
|
@@ -5,7 +5,7 @@ const prismicTagsApiGetAllTags = action("PRISMIC_TAGS_API_GET_ALL_TAGS", {
|
|
|
5
5
|
name: "Get Prismic Tags",
|
|
6
6
|
description: "Tool to retrieve all tags from Prismic repository. Use when you need the full list of tags for filtering or categorization.",
|
|
7
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.")
|
|
8
|
+
output: z.object({ tags: z.array(z.string()).describe("List of all tags present in the Prismic repository.") }).passthrough().describe("Response model for the TAGS_API_GET_ALL_TAGS action.")
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
11
|
export { prismicTagsApiGetAllTags };
|
|
@@ -1 +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.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput = 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,OAT2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAS1D;CACP,QAT4C,EAAE,OAAO,EACrD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,SAAS,
|
|
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.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput = z.object({\n tags: z.array(z.string()).describe(\"List of all tags present in the Prismic repository.\"),\n}).passthrough().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,OAT2C,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAS1D;CACP,QAT4C,EAAE,OAAO,EACrD,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,sDAOhB;AACV,CAAC"}
|
|
@@ -11,7 +11,7 @@ const PrismicTypesApiGetTypes_CustomTypeSchema = zod.z.object({
|
|
|
11
11
|
json: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structure definition of the custom type"),
|
|
12
12
|
label: zod.z.string().describe("Display label of the custom type").nullable(),
|
|
13
13
|
repeatable: zod.z.boolean().describe("Whether the custom type is repeatable").nullable()
|
|
14
|
-
}).describe("Schema for a Prismic custom type or slice definition.");
|
|
14
|
+
}).passthrough().describe("Schema for a Prismic custom type or slice definition.");
|
|
15
15
|
const PrismicTypesApiGetTypesOutput = zod.z.object({
|
|
16
16
|
page: zod.z.number().int().describe("Current page number").nullable(),
|
|
17
17
|
results: zod.z.array(PrismicTypesApiGetTypes_CustomTypeSchema).describe("List of custom types defined in the repository"),
|
|
@@ -19,7 +19,7 @@ const PrismicTypesApiGetTypesOutput = zod.z.object({
|
|
|
19
19
|
results_size: zod.z.number().int().describe("Number of custom types returned in this response").nullable(),
|
|
20
20
|
results_per_page: zod.z.number().int().describe("Number of results returned per page").nullable(),
|
|
21
21
|
total_results_size: zod.z.number().int().describe("Total number of custom types in the repository").nullable()
|
|
22
|
-
}).describe("Response schema for listing custom types and slices in a Prismic repository.");
|
|
22
|
+
}).passthrough().describe("Response schema for listing custom types and slices in a Prismic repository.");
|
|
23
23
|
const prismicTypesApiGetTypes = require_action.action("PRISMIC_TYPES_API_GET_TYPES", {
|
|
24
24
|
slug: "prismic-types-api-get-types",
|
|
25
25
|
name: "Prismic: Get Custom Types",
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Custom type ID\").nullable(),\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\").nullable(),\n repeatable: z.boolean().describe(\"Whether the custom type is repeatable\").nullable(),\n}).describe(\"Schema for a Prismic custom type or slice definition.\");\nexport const PrismicTypesApiGetTypesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\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\").nullable(),\n results_size: z.number().int().describe(\"Number of custom types returned in this response\").nullable(),\n results_per_page: z.number().int().describe(\"Number of results returned per page\").nullable(),\n total_results_size: z.number().int().describe(\"Total number of custom types in the repository\").nullable(),\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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,2CAA2CA,IAAAA,EAAE,OAAO;CACxD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,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,CAAC,CAAC,SAAS;CACxE,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,uDAAuD;
|
|
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.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.object({\n id: z.string().describe(\"Custom type ID\").nullable(),\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\").nullable(),\n repeatable: z.boolean().describe(\"Whether the custom type is repeatable\").nullable(),\n}).passthrough().describe(\"Schema for a Prismic custom type or slice definition.\");\nexport const PrismicTypesApiGetTypesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\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\").nullable(),\n results_size: z.number().int().describe(\"Number of custom types returned in this response\").nullable(),\n results_per_page: z.number().int().describe(\"Number of results returned per page\").nullable(),\n total_results_size: z.number().int().describe(\"Total number of custom types in the repository\").nullable(),\n}).passthrough().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,+BAA+BA,IAAAA,EAAE,OAAO;CACnD,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,CA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;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -13,12 +13,12 @@ declare const PrismicTypesApiGetTypesOutput: z.ZodObject<{
|
|
|
13
13
|
json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
14
|
label: z.ZodNullable<z.ZodString>;
|
|
15
15
|
repeatable: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
results_size: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
results_per_page: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
total_results_size: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
page?: number | undefined;
|
|
24
24
|
sort?: string | undefined;
|
|
@@ -13,12 +13,12 @@ declare const PrismicTypesApiGetTypesOutput: z.ZodObject<{
|
|
|
13
13
|
json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
14
14
|
label: z.ZodNullable<z.ZodString>;
|
|
15
15
|
repeatable: z.ZodNullable<z.ZodBoolean>;
|
|
16
|
-
}, z.core.$
|
|
16
|
+
}, z.core.$loose>>;
|
|
17
17
|
total_pages: z.ZodNullable<z.ZodNumber>;
|
|
18
18
|
results_size: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
results_per_page: z.ZodNullable<z.ZodNumber>;
|
|
20
20
|
total_results_size: z.ZodNullable<z.ZodNumber>;
|
|
21
|
-
}, z.core.$
|
|
21
|
+
}, z.core.$loose>;
|
|
22
22
|
declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
23
23
|
page?: number | undefined;
|
|
24
24
|
sort?: string | undefined;
|
|
@@ -11,7 +11,7 @@ const PrismicTypesApiGetTypes_CustomTypeSchema = z.object({
|
|
|
11
11
|
json: z.record(z.string(), z.unknown()).describe("Structure definition of the custom type"),
|
|
12
12
|
label: z.string().describe("Display label of the custom type").nullable(),
|
|
13
13
|
repeatable: z.boolean().describe("Whether the custom type is repeatable").nullable()
|
|
14
|
-
}).describe("Schema for a Prismic custom type or slice definition.");
|
|
14
|
+
}).passthrough().describe("Schema for a Prismic custom type or slice definition.");
|
|
15
15
|
const prismicTypesApiGetTypes = action("PRISMIC_TYPES_API_GET_TYPES", {
|
|
16
16
|
slug: "prismic-types-api-get-types",
|
|
17
17
|
name: "Prismic: Get Custom Types",
|
|
@@ -24,7 +24,7 @@ const prismicTypesApiGetTypes = action("PRISMIC_TYPES_API_GET_TYPES", {
|
|
|
24
24
|
results_size: z.number().int().describe("Number of custom types returned in this response").nullable(),
|
|
25
25
|
results_per_page: z.number().int().describe("Number of results returned per page").nullable(),
|
|
26
26
|
total_results_size: z.number().int().describe("Total number of custom types in the repository").nullable()
|
|
27
|
-
}).describe("Response schema for listing custom types and slices in a Prismic repository.")
|
|
27
|
+
}).passthrough().describe("Response schema for listing custom types and slices in a Prismic repository.")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
30
30
|
export { prismicTypesApiGetTypes };
|
|
@@ -1 +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.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.object({\n id: z.string().describe(\"Custom type ID\").nullable(),\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\").nullable(),\n repeatable: z.boolean().describe(\"Whether the custom type is repeatable\").nullable(),\n}).describe(\"Schema for a Prismic custom type or slice definition.\");\nexport const PrismicTypesApiGetTypesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\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\").nullable(),\n results_size: z.number().int().describe(\"Number of custom types returned in this response\").nullable(),\n results_per_page: z.number().int().describe(\"Number of results returned per page\").nullable(),\n total_results_size: z.number().int().describe(\"Total number of custom types in the repository\").nullable(),\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,+BAA+B,EAAE,OAAO;CACnD,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,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,SAAS,uDAAuD;
|
|
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.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.object({\n id: z.string().describe(\"Custom type ID\").nullable(),\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\").nullable(),\n repeatable: z.boolean().describe(\"Whether the custom type is repeatable\").nullable(),\n}).passthrough().describe(\"Schema for a Prismic custom type or slice definition.\");\nexport const PrismicTypesApiGetTypesOutput = z.object({\n page: z.number().int().describe(\"Current page number\").nullable(),\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\").nullable(),\n results_size: z.number().int().describe(\"Number of custom types returned in this response\").nullable(),\n results_per_page: z.number().int().describe(\"Number of results returned per page\").nullable(),\n total_results_size: z.number().int().describe(\"Total number of custom types in the repository\").nullable(),\n}).passthrough().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,+BAA+B,EAAE,OAAO;CACnD,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,2CAA2C,EAAE,OAAO;CACxD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS;CACnD,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC1F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CACxE,YAAY,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;AACrF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,uDAAuD;AAUjF,MAAa,0BAA0B,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAd2C,EAAE,OAAO;EACpD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC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