@keystrokehq/prismic 0.1.0 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/content-api-get-documents-with-fulltext-search.cjs +17 -17
  4. package/dist/actions/content-api-get-documents-with-fulltext-search.cjs.map +1 -1
  5. package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts +47 -3
  6. package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts.map +1 -1
  7. package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts +47 -3
  8. package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts.map +1 -1
  9. package/dist/actions/content-api-get-documents-with-fulltext-search.mjs +17 -17
  10. package/dist/actions/content-api-get-documents-with-fulltext-search.mjs.map +1 -1
  11. package/dist/actions/content-api-query-documents.cjs +17 -17
  12. package/dist/actions/content-api-query-documents.cjs.map +1 -1
  13. package/dist/actions/content-api-query-documents.d.cts +55 -3
  14. package/dist/actions/content-api-query-documents.d.cts.map +1 -1
  15. package/dist/actions/content-api-query-documents.d.mts +55 -3
  16. package/dist/actions/content-api-query-documents.d.mts.map +1 -1
  17. package/dist/actions/content-api-query-documents.mjs +17 -17
  18. package/dist/actions/content-api-query-documents.mjs.map +1 -1
  19. package/dist/actions/repository-api-get-info.cjs +13 -13
  20. package/dist/actions/repository-api-get-info.cjs.map +1 -1
  21. package/dist/actions/repository-api-get-info.d.cts +28 -3
  22. package/dist/actions/repository-api-get-info.d.cts.map +1 -1
  23. package/dist/actions/repository-api-get-info.d.mts +28 -3
  24. package/dist/actions/repository-api-get-info.d.mts.map +1 -1
  25. package/dist/actions/repository-api-get-info.mjs +13 -13
  26. package/dist/actions/repository-api-get-info.mjs.map +1 -1
  27. package/dist/actions/tags-api-get-all-tags.cjs +1 -1
  28. package/dist/actions/tags-api-get-all-tags.cjs.map +1 -1
  29. package/dist/actions/tags-api-get-all-tags.d.cts +5 -3
  30. package/dist/actions/tags-api-get-all-tags.d.cts.map +1 -1
  31. package/dist/actions/tags-api-get-all-tags.d.mts +5 -3
  32. package/dist/actions/tags-api-get-all-tags.d.mts.map +1 -1
  33. package/dist/actions/tags-api-get-all-tags.mjs +1 -1
  34. package/dist/actions/tags-api-get-all-tags.mjs.map +1 -1
  35. package/dist/actions/types-api-get-types.cjs +10 -10
  36. package/dist/actions/types-api-get-types.cjs.map +1 -1
  37. package/dist/actions/types-api-get-types.d.cts +23 -3
  38. package/dist/actions/types-api-get-types.d.cts.map +1 -1
  39. package/dist/actions/types-api-get-types.d.mts +23 -3
  40. package/dist/actions/types-api-get-types.d.mts.map +1 -1
  41. package/dist/actions/types-api-get-types.mjs +10 -10
  42. package/dist/actions/types-api-get-types.mjs.map +1 -1
  43. package/dist/catalog.cjs +13 -1
  44. package/dist/catalog.cjs.map +1 -1
  45. package/dist/catalog.d.cts +12 -0
  46. package/dist/catalog.d.mts +12 -0
  47. package/dist/catalog.mjs +13 -1
  48. package/dist/catalog.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -16,39 +16,39 @@ const PrismicContentApiQueryDocumentsInput = z.object({
16
16
  integrationFieldsRef: z.string().describe("Reference of integration fields content.").optional()
17
17
  }).describe("Request parameters to query Prismic documents based on predicates and pagination.");
18
18
  const PrismicContentApiQueryDocuments_AlternateLanguageSchema = z.object({
19
- id: z.string().describe("ID of the alternate document"),
19
+ id: z.string().describe("ID of the alternate document").nullable(),
20
20
  uid: z.string().describe("UID of the alternate document, if any").nullable().optional(),
21
- lang: z.string().describe("Language code of the alternate version"),
22
- type: z.string().describe("Document type of the alternate language version")
23
- });
21
+ lang: z.string().describe("Language code of the alternate version").nullable(),
22
+ type: z.string().describe("Document type of the alternate language version").nullable()
23
+ }).passthrough();
24
24
  const PrismicContentApiQueryDocuments_DocumentSchema = z.object({
25
- id: z.string().describe("Document ID"),
25
+ id: z.string().describe("Document ID").nullable(),
26
26
  uid: z.string().describe("Document UID, if set").nullable().optional(),
27
27
  data: z.record(z.string(), z.unknown()).describe("Document data fields, structure varies by type"),
28
- href: z.string().describe("Document URL for API access"),
29
- lang: z.string().describe("Language code of the document"),
28
+ href: z.string().describe("Document URL for API access").nullable(),
29
+ lang: z.string().describe("Language code of the document").nullable(),
30
30
  tags: z.array(z.string()).describe("List of tags assigned to the document"),
31
- type: z.string().describe("Document type"),
31
+ type: z.string().describe("Document type").nullable(),
32
32
  slugs: z.array(z.string()).describe("List of slugs for the document"),
33
33
  alternate_languages: z.array(PrismicContentApiQueryDocuments_AlternateLanguageSchema).describe("Alternate language versions of the document"),
34
- last_publication_date: z.string().describe("Last publication date as ISO 8601 string"),
35
- first_publication_date: z.string().describe("First publication date as ISO 8601 string")
36
- });
34
+ last_publication_date: z.string().describe("Last publication date as ISO 8601 string").nullable(),
35
+ first_publication_date: z.string().describe("First publication date as ISO 8601 string").nullable()
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",
40
40
  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.",
41
41
  input: PrismicContentApiQueryDocumentsInput,
42
42
  output: z.object({
43
- page: z.number().int().describe("Current page number"),
43
+ page: z.number().int().describe("Current page number").nullable(),
44
44
  results: z.array(PrismicContentApiQueryDocuments_DocumentSchema).describe("List of matched documents"),
45
45
  next_page: z.string().describe("URL of next page, if any").nullable().optional(),
46
46
  prev_page: z.string().describe("URL of previous page, if any").nullable().optional(),
47
- total_pages: z.number().int().describe("Total number of pages available"),
48
- results_size: z.number().int().describe("Number of returned results on this page"),
49
- results_per_page: z.number().int().describe("Number of results per page"),
50
- total_results_size: z.number().int().describe("Total number of matching results in repository")
51
- })
47
+ total_pages: z.number().int().describe("Total number of pages available").nullable(),
48
+ results_size: z.number().int().describe("Number of returned results on this page").nullable(),
49
+ results_per_page: z.number().int().describe("Number of results per page").nullable(),
50
+ total_results_size: z.number().int().describe("Total number of matching results in repository").nullable()
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.ZodTypeAny = z.object({\n q: z.string().describe(\"Query predicate(s) to filter documents using Prismic predicate syntax. Use double brackets for predicates: '[[at(document.type, \\\"page\\\")]]'. For multiple predicates, combine them in one string: '[[at(document.type, \\\"blog\\\")][at(document.tags, [\\\"featured\\\"])]]'.\").optional(),\n ref: z.string().describe(\"Content release reference ID from the repository (typically the master ref). Use PRISMIC_REPOSITORY_API_GET_REFS action to obtain valid ref values.\"),\n lang: z.string().describe(\"Language code to query (e.g., 'en-us'), default '*' for all languages\").optional(),\n page: z.number().int().describe(\"Page number for pagination, starting from 1\").optional(),\n after: z.string().describe(\"Document ID to paginate after for deep pagination.\").optional(),\n fetch: z.string().describe(\"Comma-separated list of specific fields to fetch for each document (e.g., 'document.title,document.description'). Reduces response size by only including specified fields.\").optional(),\n pageSize: z.number().int().describe(\"Number of documents per page (1-100)\").optional(),\n orderings: z.string().describe(\"Sort order, e.g., '[my.article.date desc]'\").optional(),\n fetchLinks: z.string().describe(\"Comma-separated list of fields from linked documents to include in the response (e.g., 'author.name,category.title'). Allows fetching related content in a single query.\").optional(),\n graphQuery: z.string().describe(\"GraphQuery to specify which fields to return.\").optional(),\n access_token: z.string().describe(\"Private API content token for authentication, if required.\").optional(),\n integrationFieldsRef: z.string().describe(\"Reference of integration fields content.\").optional(),\n}).describe(\"Request parameters to query Prismic documents based on predicates and pagination.\");\nconst PrismicContentApiQueryDocuments_AlternateLanguageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ID of the alternate document\"),\n uid: z.string().describe(\"UID of the alternate document, if any\").nullable().optional(),\n lang: z.string().describe(\"Language code of the alternate version\"),\n type: z.string().describe(\"Document type of the alternate language version\"),\n});\nconst PrismicContentApiQueryDocuments_DocumentSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Document ID\"),\n uid: z.string().describe(\"Document UID, if set\").nullable().optional(),\n data: z.record(z.string(), z.unknown()).describe(\"Document data fields, structure varies by type\"),\n href: z.string().describe(\"Document URL for API access\"),\n lang: z.string().describe(\"Language code of the document\"),\n tags: z.array(z.string()).describe(\"List of tags assigned to the document\"),\n type: z.string().describe(\"Document type\"),\n slugs: z.array(z.string()).describe(\"List of slugs for the document\"),\n alternate_languages: z.array(PrismicContentApiQueryDocuments_AlternateLanguageSchema).describe(\"Alternate language versions of the document\"),\n last_publication_date: z.string().describe(\"Last publication date as ISO 8601 string\"),\n first_publication_date: z.string().describe(\"First publication date as ISO 8601 string\"),\n});\nexport const PrismicContentApiQueryDocumentsOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n results: z.array(PrismicContentApiQueryDocuments_DocumentSchema).describe(\"List of matched documents\"),\n next_page: z.string().describe(\"URL of next page, if any\").nullable().optional(),\n prev_page: z.string().describe(\"URL of previous page, if any\").nullable().optional(),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n results_size: z.number().int().describe(\"Number of returned results on this page\"),\n results_per_page: z.number().int().describe(\"Number of results per page\"),\n total_results_size: z.number().int().describe(\"Total number of matching results in repository\"),\n});\n\nexport const prismicContentApiQueryDocuments = action(\"PRISMIC_CONTENT_API_QUERY_DOCUMENTS\", {\n slug: \"prismic-content-api-query-documents\",\n name: \"Prismic: Query Documents\",\n description: \"Tool to query Prismic documents using predicates and pagination. Use when you need to fetch multiple documents from a repository after obtaining a ref.\",\n input: PrismicContentApiQueryDocumentsInput,\n output: PrismicContentApiQueryDocumentsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,uCAAqD,EAAE,OAAO;CACz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AO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B;EACxE,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;CAChG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"content-api-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,E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AE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,34 +3,34 @@ let zod = require("zod");
3
3
  //#region src/actions/repository-api-get-info.ts
4
4
  const PrismicRepositoryApiGetInfoInput = zod.z.object({}).describe("Request model for retrieving Prismic repository metadata. This endpoint requires no input parameters\nas it returns information about the authenticated repository based on the credentials provided in\nthe metadata. The repository is identified from the base_url in the authentication metadata.");
5
5
  const PrismicRepositoryApiGetInfo_RefSchema = zod.z.object({
6
- id: zod.z.string().describe("Unique identifier for the ref"),
7
- ref: zod.z.string().describe("Reference token"),
8
- label: zod.z.string().describe("Human-readable label"),
9
- isMasterRef: zod.z.boolean().describe("True if this is the master ref"),
6
+ id: zod.z.string().describe("Unique identifier for the ref").nullable(),
7
+ ref: zod.z.string().describe("Reference token").nullable(),
8
+ label: zod.z.string().describe("Human-readable label").nullable(),
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
- id: zod.z.string().describe("ISO code of the language"),
14
- name: zod.z.string().describe("Display name of the language")
15
- }).describe("Supported language in the repository.");
13
+ id: zod.z.string().describe("ISO code of the language").nullable(),
14
+ name: zod.z.string().describe("Display name of the language").nullable()
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.object({}).describe("Forms available for document search endpoints"),
24
- types: zod.z.object({}).describe("Map of custom type IDs to their names"),
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.object({}).describe("Named bookmarks mapping document aliases to IDs"),
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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving Prismic repository metadata. This endpoint requires no input parameters\\nas it returns information about the authenticated repository based on the credentials provided in\\nthe metadata. The repository is identified from the base_url in the authentication metadata.\");\nconst PrismicRepositoryApiGetInfo_RefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the ref\"),\n ref: z.string().describe(\"Reference token\"),\n label: z.string().describe(\"Human-readable label\"),\n isMasterRef: z.boolean().describe(\"True if this is the master ref\"),\n scheduledAt: z.string().describe(\"Scheduled activation date, if applicable\").nullable().optional(),\n}).describe(\"A single API reference (master or release).\");\nconst PrismicRepositoryApiGetInfo_LanguageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ISO code of the language\"),\n name: z.string().describe(\"Display name of the language\"),\n}).describe(\"Supported language in the repository.\");\nconst PrismicRepositoryApiGetInfo_ExperimentsSchema: z.ZodTypeAny = z.object({\n draft: z.array(z.record(z.string(), z.unknown())).describe(\"Draft experiments\").nullable().optional(),\n running: z.array(z.record(z.string(), z.unknown())).describe(\"Running experiments\").nullable().optional(),\n}).describe(\"Active A/B test configurations.\");\nexport const PrismicRepositoryApiGetInfoOutput: z.ZodTypeAny = z.object({\n refs: z.array(PrismicRepositoryApiGetInfo_RefSchema).describe(\"List of all refs in the repository\"),\n tags: z.array(z.string()).describe(\"List of all tags in the repository\"),\n forms: z.object({}).describe(\"Forms available for document search endpoints\"),\n types: z.object({}).describe(\"Map of custom type IDs to their names\"),\n license: z.string().describe(\"Repository license information\").nullable().optional(),\n version: z.string().describe(\"API version identifier\").nullable().optional(),\n bookmarks: z.object({}).describe(\"Named bookmarks mapping document aliases to IDs\"),\n languages: z.array(PrismicRepositoryApiGetInfo_LanguageSchema).describe(\"Supported languages in the repository\"),\n experiments: PrismicRepositoryApiGetInfo_ExperimentsSchema.nullable().optional(),\n oauth_token: z.string().describe(\"OAuth token exchange URL\").nullable().optional(),\n oauth_initiate: z.string().describe(\"OAuth initiation URL\").nullable().optional(),\n integrationFieldsRef: z.string().describe(\"Reference for integration fields data, if present\").nullable().optional(),\n}).describe(\"Response model containing Prismic repository metadata.\");\n\nexport const prismicRepositoryApiGetInfo = action(\"PRISMIC_REPOSITORY_API_GET_INFO\", {\n slug: \"prismic-repository-api-get-info\",\n name: \"Get Prismic Repository Info\",\n description: \"Retrieves comprehensive metadata about a Prismic repository including available refs (content versions), custom types, languages, tags, bookmarks, and API forms. This is typically the first API call made after authentication to discover repository configuration and available content endpoints. The 'refs' field is particularly important as refs are required for querying documents via the Content API.\",\n input: PrismicRepositoryApiGetInfoInput,\n output: PrismicRepositoryApiGetInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiDA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS;AAC3X,MAAM,wCAAsDA,IAAAA,EAAE,OAAO;CACnE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,KAAKA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC1C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,aAAaA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CAClE,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,IA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SAAS,uCAAuC;CAC/G,aAAa,8CAA8C,SAAS,CAAC,CAAC,SAAS;CAC/E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,sBAAsBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACrH,CAAC,CAAC,CAAC,SAAS,wDAAwD;AAEpE,MAAa,8BAA8BC,eAAAA,OAAO,mCAAmC;CACnF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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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"zod";
2
2
 
3
3
  //#region src/actions/repository-api-get-info.d.ts
4
- declare const PrismicRepositoryApiGetInfoInput: z.ZodTypeAny;
5
- declare const PrismicRepositoryApiGetInfoOutput: z.ZodTypeAny;
6
- declare const prismicRepositoryApiGetInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicRepositoryApiGetInfoInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismicRepositoryApiGetInfoOutput: z.ZodObject<{
6
+ refs: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ ref: z.ZodNullable<z.ZodString>;
9
+ label: z.ZodNullable<z.ZodString>;
10
+ isMasterRef: z.ZodNullable<z.ZodBoolean>;
11
+ scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>>;
13
+ tags: z.ZodArray<z.ZodString>;
14
+ forms: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ types: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ bookmarks: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19
+ languages: z.ZodArray<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ name: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$loose>>;
23
+ experiments: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ draft: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
25
+ running: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
26
+ }, z.core.$loose>>>;
27
+ oauth_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ oauth_initiate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ integrationFieldsRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>;
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]>;
7
32
  //#endregion
8
33
  export { prismicRepositoryApiGetInfo };
9
34
  //# sourceMappingURL=repository-api-get-info.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository-api-get-info.d.cts","names":[],"sources":["../../src/actions/repository-api-get-info.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA2U;AAAA,cAgB/W,iCAAA,EAAmC,CAAA,CAAE,UAamB;AAAA,cAExD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"repository-api-get-info.d.cts","names":[],"sources":["../../src/actions/repository-api-get-info.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAejC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,34 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/repository-api-get-info.d.ts
4
- declare const PrismicRepositoryApiGetInfoInput: z.ZodTypeAny;
5
- declare const PrismicRepositoryApiGetInfoOutput: z.ZodTypeAny;
6
- declare const prismicRepositoryApiGetInfo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicRepositoryApiGetInfoInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismicRepositoryApiGetInfoOutput: z.ZodObject<{
6
+ refs: z.ZodArray<z.ZodObject<{
7
+ id: z.ZodNullable<z.ZodString>;
8
+ ref: z.ZodNullable<z.ZodString>;
9
+ label: z.ZodNullable<z.ZodString>;
10
+ isMasterRef: z.ZodNullable<z.ZodBoolean>;
11
+ scheduledAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ }, z.core.$loose>>;
13
+ tags: z.ZodArray<z.ZodString>;
14
+ forms: z.ZodRecord<z.ZodString, z.ZodUnknown>;
15
+ types: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
+ license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ bookmarks: z.ZodRecord<z.ZodString, z.ZodUnknown>;
19
+ languages: z.ZodArray<z.ZodObject<{
20
+ id: z.ZodNullable<z.ZodString>;
21
+ name: z.ZodNullable<z.ZodString>;
22
+ }, z.core.$loose>>;
23
+ experiments: z.ZodOptional<z.ZodNullable<z.ZodObject<{
24
+ draft: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
25
+ running: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
26
+ }, z.core.$loose>>>;
27
+ oauth_token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ oauth_initiate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ integrationFieldsRef: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ }, z.core.$loose>;
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]>;
7
32
  //#endregion
8
33
  export { prismicRepositoryApiGetInfo };
9
34
  //# sourceMappingURL=repository-api-get-info.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"repository-api-get-info.d.mts","names":[],"sources":["../../src/actions/repository-api-get-info.ts"],"mappings":";;;cAIa,gCAAA,EAAkC,CAAA,CAAE,UAA2U;AAAA,cAgB/W,iCAAA,EAAmC,CAAA,CAAE,UAamB;AAAA,cAExD,2BAAA,gCAA2B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"repository-api-get-info.d.mts","names":[],"sources":["../../src/actions/repository-api-get-info.ts"],"mappings":";;;cAIa,gCAAA,EAAgC,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAgBhC,iCAAA,EAAiC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAejC,2BAAA,gCAA2B,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -3,20 +3,20 @@ import { z } from "zod";
3
3
  //#region src/actions/repository-api-get-info.ts
4
4
  const PrismicRepositoryApiGetInfoInput = z.object({}).describe("Request model for retrieving Prismic repository metadata. This endpoint requires no input parameters\nas it returns information about the authenticated repository based on the credentials provided in\nthe metadata. The repository is identified from the base_url in the authentication metadata.");
5
5
  const PrismicRepositoryApiGetInfo_RefSchema = z.object({
6
- id: z.string().describe("Unique identifier for the ref"),
7
- ref: z.string().describe("Reference token"),
8
- label: z.string().describe("Human-readable label"),
9
- isMasterRef: z.boolean().describe("True if this is the master ref"),
6
+ id: z.string().describe("Unique identifier for the ref").nullable(),
7
+ ref: z.string().describe("Reference token").nullable(),
8
+ label: z.string().describe("Human-readable label").nullable(),
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
- id: z.string().describe("ISO code of the language"),
14
- name: z.string().describe("Display name of the language")
15
- }).describe("Supported language in the repository.");
13
+ id: z.string().describe("ISO code of the language").nullable(),
14
+ name: z.string().describe("Display name of the language").nullable()
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.object({}).describe("Forms available for document search endpoints"),
29
- types: z.object({}).describe("Map of custom type IDs to their names"),
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.object({}).describe("Named bookmarks mapping document aliases to IDs"),
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.ZodTypeAny = z.object({}).describe(\"Request model for retrieving Prismic repository metadata. This endpoint requires no input parameters\\nas it returns information about the authenticated repository based on the credentials provided in\\nthe metadata. The repository is identified from the base_url in the authentication metadata.\");\nconst PrismicRepositoryApiGetInfo_RefSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Unique identifier for the ref\"),\n ref: z.string().describe(\"Reference token\"),\n label: z.string().describe(\"Human-readable label\"),\n isMasterRef: z.boolean().describe(\"True if this is the master ref\"),\n scheduledAt: z.string().describe(\"Scheduled activation date, if applicable\").nullable().optional(),\n}).describe(\"A single API reference (master or release).\");\nconst PrismicRepositoryApiGetInfo_LanguageSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"ISO code of the language\"),\n name: z.string().describe(\"Display name of the language\"),\n}).describe(\"Supported language in the repository.\");\nconst PrismicRepositoryApiGetInfo_ExperimentsSchema: z.ZodTypeAny = z.object({\n draft: z.array(z.record(z.string(), z.unknown())).describe(\"Draft experiments\").nullable().optional(),\n running: z.array(z.record(z.string(), z.unknown())).describe(\"Running experiments\").nullable().optional(),\n}).describe(\"Active A/B test configurations.\");\nexport const PrismicRepositoryApiGetInfoOutput: z.ZodTypeAny = z.object({\n refs: z.array(PrismicRepositoryApiGetInfo_RefSchema).describe(\"List of all refs in the repository\"),\n tags: z.array(z.string()).describe(\"List of all tags in the repository\"),\n forms: z.object({}).describe(\"Forms available for document search endpoints\"),\n types: z.object({}).describe(\"Map of custom type IDs to their names\"),\n license: z.string().describe(\"Repository license information\").nullable().optional(),\n version: z.string().describe(\"API version identifier\").nullable().optional(),\n bookmarks: z.object({}).describe(\"Named bookmarks mapping document aliases to IDs\"),\n languages: z.array(PrismicRepositoryApiGetInfo_LanguageSchema).describe(\"Supported languages in the repository\"),\n experiments: PrismicRepositoryApiGetInfo_ExperimentsSchema.nullable().optional(),\n oauth_token: z.string().describe(\"OAuth token exchange URL\").nullable().optional(),\n oauth_initiate: z.string().describe(\"OAuth initiation URL\").nullable().optional(),\n integrationFieldsRef: z.string().describe(\"Reference for integration fields data, if present\").nullable().optional(),\n}).describe(\"Response model containing Prismic repository metadata.\");\n\nexport const prismicRepositoryApiGetInfo = action(\"PRISMIC_REPOSITORY_API_GET_INFO\", {\n slug: \"prismic-repository-api-get-info\",\n name: \"Get Prismic Repository Info\",\n description: \"Retrieves comprehensive metadata about a Prismic repository including available refs (content versions), custom types, languages, tags, bookmarks, and API forms. This is typically the first API call made after authentication to discover repository configuration and available content endpoints. The 'refs' field is particularly important as refs are required for querying documents via the Content API.\",\n input: PrismicRepositoryApiGetInfoInput,\n output: PrismicRepositoryApiGetInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAiD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS;AAC3X,MAAM,wCAAsD,EAAE,OAAO;CACnE,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B;CACvD,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB;CAC1C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CACjD,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC;CAClE,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0CAA0C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAM,6CAA2D,EAAE,OAA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,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
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.\",\n input: PrismicRepositoryApiGetInfoInput,\n output: PrismicRepositoryApiGetInfoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,mCAAmC,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,uSAAuS;AAC7W,MAAM,wCAAwC,EAAE,OAAO;CACrD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS;CAClE,KAAK,EAAE,OAAO,CAAC,CAAC,SAAS,iBAAiB,CAAC,CAAC,SAAS;CACrD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC5D,aAAa,EAAE,QAAQ,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,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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.ZodTypeAny = z.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of all tags present in the Prismic repository.\"),\n}).describe(\"Response model for the TAGS_API_GET_ALL_TAGS action.\");\n\nexport const prismicTagsApiGetAllTags = action(\"PRISMIC_TAGS_API_GET_ALL_TAGS\", {\n slug: \"prismic-tags-api-get-all-tags\",\n name: \"Get Prismic Tags\",\n description: \"Tool to retrieve all tags from Prismic repository. Use when you need the full list of tags for filtering or categorization.\",\n input: PrismicTagsApiGetAllTagsInput,\n output: PrismicTagsApiGetAllTagsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gCAA8CA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDAAkD;AACnI,MAAa,iCAA+CA,IAAAA,EAAE,OAAO,EACnE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,2BAA2BC,eAAAA,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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"}
@@ -1,9 +1,11 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/tags-api-get-all-tags.d.ts
4
- declare const PrismicTagsApiGetAllTagsInput: z.ZodTypeAny;
5
- declare const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny;
6
- declare const prismicTagsApiGetAllTags: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicTagsApiGetAllTagsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismicTagsApiGetAllTagsOutput: z.ZodObject<{
6
+ tags: z.ZodArray<z.ZodString>;
7
+ }, z.core.$loose>;
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]>;
7
9
  //#endregion
8
10
  export { prismicTagsApiGetAllTags };
9
11
  //# sourceMappingURL=tags-api-get-all-tags.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags-api-get-all-tags.d.cts","names":[],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAsF;AAAA,cACvH,8BAAA,EAAgC,CAAA,CAAE,UAEoB;AAAA,cAEtD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"tags-api-get-all-tags.d.cts","names":[],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -1,9 +1,11 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/tags-api-get-all-tags.d.ts
4
- declare const PrismicTagsApiGetAllTagsInput: z.ZodTypeAny;
5
- declare const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny;
6
- declare const prismicTagsApiGetAllTags: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicTagsApiGetAllTagsInput: z.ZodObject<{}, z.core.$strip>;
5
+ declare const PrismicTagsApiGetAllTagsOutput: z.ZodObject<{
6
+ tags: z.ZodArray<z.ZodString>;
7
+ }, z.core.$loose>;
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]>;
7
9
  //#endregion
8
10
  export { prismicTagsApiGetAllTags };
9
11
  //# sourceMappingURL=tags-api-get-all-tags.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tags-api-get-all-tags.d.mts","names":[],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"mappings":";;;cAIa,6BAAA,EAA+B,CAAA,CAAE,UAAsF;AAAA,cACvH,8BAAA,EAAgC,CAAA,CAAE,UAEoB;AAAA,cAEtD,wBAAA,gCAAwB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"tags-api-get-all-tags.d.mts","names":[],"sources":["../../src/actions/tags-api-get-all-tags.ts"],"mappings":";;;cAIa,6BAAA,EAA6B,CAAA,CAAA,SAAA,KAAA,CAAA,CAAA,IAAA,CAAA,MAAA;AAAA,cAC7B,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;cAI9B,wBAAA,gCAAwB,wBAAA,CAAA,MAAA,wDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
@@ -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.ZodTypeAny = z.object({}).describe(\"Parameters for retrieving all tags from Prismic.\");\nexport const PrismicTagsApiGetAllTagsOutput: z.ZodTypeAny = z.object({\n tags: z.array(z.string()).describe(\"List of all tags present in the Prismic repository.\"),\n}).describe(\"Response model for the TAGS_API_GET_ALL_TAGS action.\");\n\nexport const prismicTagsApiGetAllTags = action(\"PRISMIC_TAGS_API_GET_ALL_TAGS\", {\n slug: \"prismic-tags-api-get-all-tags\",\n name: \"Get Prismic Tags\",\n description: \"Tool to retrieve all tags from Prismic repository. Use when you need the full list of tags for filtering or categorization.\",\n input: PrismicTagsApiGetAllTagsInput,\n output: PrismicTagsApiGetAllTagsOutput,\n});\n"],"mappings":";;AASA,MAAa,2BAA2B,OAAO,iCAAiC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OATyD,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,kDASxE;CACP,QAT0D,EAAE,OAAO,EACnE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,qDAAqD,EAC1F,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
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"}
@@ -7,19 +7,19 @@ const PrismicTypesApiGetTypesInput = zod.z.object({
7
7
  limit: zod.z.number().int().describe("Maximum number of custom types to return per page. If not specified, returns all custom types.").optional()
8
8
  }).describe("Request parameters for retrieving custom types from a Prismic repository.");
9
9
  const PrismicTypesApiGetTypes_CustomTypeSchema = zod.z.object({
10
- id: zod.z.string().describe("Custom type ID"),
10
+ id: zod.z.string().describe("Custom type ID").nullable(),
11
11
  json: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Structure definition of the custom type"),
12
- label: zod.z.string().describe("Display label of the custom type"),
13
- repeatable: zod.z.boolean().describe("Whether the custom type is repeatable")
14
- }).describe("Schema for a Prismic custom type or slice definition.");
12
+ label: zod.z.string().describe("Display label of the custom type").nullable(),
13
+ repeatable: zod.z.boolean().describe("Whether the custom type is repeatable").nullable()
14
+ }).passthrough().describe("Schema for a Prismic custom type or slice definition.");
15
15
  const PrismicTypesApiGetTypesOutput = zod.z.object({
16
- page: zod.z.number().int().describe("Current page number"),
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"),
18
- total_pages: zod.z.number().int().describe("Total number of pages available"),
19
- results_size: zod.z.number().int().describe("Number of custom types returned in this response"),
20
- results_per_page: zod.z.number().int().describe("Number of results returned per page"),
21
- total_results_size: zod.z.number().int().describe("Total number of custom types in the repository")
22
- }).describe("Response schema for listing custom types and slices in a Prismic repository.");
18
+ total_pages: zod.z.number().int().describe("Total number of pages available").nullable(),
19
+ results_size: zod.z.number().int().describe("Number of custom types returned in this response").nullable(),
20
+ results_per_page: zod.z.number().int().describe("Number of results returned per page").nullable(),
21
+ total_results_size: zod.z.number().int().describe("Total number of custom types in the repository").nullable()
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.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Page number for pagination (1-indexed). Use with limit parameter to navigate through results.\").optional(),\n sort: z.string().describe(\"Sort order for results. Common values include 'name' to sort alphabetically by custom type name.\").optional(),\n limit: z.number().int().describe(\"Maximum number of custom types to return per page. If not specified, returns all custom types.\").optional(),\n}).describe(\"Request parameters for retrieving custom types from a Prismic repository.\");\nconst PrismicTypesApiGetTypes_CustomTypeSchema: z.ZodTypeAny = z.object({\n id: z.string().describe(\"Custom type ID\"),\n json: z.record(z.string(), z.unknown()).describe(\"Structure definition of the custom type\"),\n label: z.string().describe(\"Display label of the custom type\"),\n repeatable: z.boolean().describe(\"Whether the custom type is repeatable\"),\n}).describe(\"Schema for a Prismic custom type or slice definition.\");\nexport const PrismicTypesApiGetTypesOutput: z.ZodTypeAny = z.object({\n page: z.number().int().describe(\"Current page number\"),\n results: z.array(PrismicTypesApiGetTypes_CustomTypeSchema).describe(\"List of custom types defined in the repository\"),\n total_pages: z.number().int().describe(\"Total number of pages available\"),\n results_size: z.number().int().describe(\"Number of custom types returned in this response\"),\n results_per_page: z.number().int().describe(\"Number of results returned per page\"),\n total_results_size: z.number().int().describe(\"Total number of custom types in the repository\"),\n}).describe(\"Response schema for listing custom types and slices in a Prismic repository.\");\n\nexport const prismicTypesApiGetTypes = action(\"PRISMIC_TYPES_API_GET_TYPES\", {\n slug: \"prismic-types-api-get-types\",\n name: \"Prismic: Get Custom Types\",\n description: \"Retrieves all custom types (content models) defined in the Prismic repository. Custom types define the structure of content in Prismic. This action returns metadata about each custom type including its ID, label, structure definition (JSON schema), and whether it's repeatable. Use this to discover available content types before querying documents, or to understand the content model of a repository. Returns an empty list if no custom types are defined in the repository.\",\n input: PrismicTypesApiGetTypesInput,\n output: PrismicTypesApiGetTypesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;CAC1I,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;AAC9I,CAAC,CAAC,CAAC,SAAS,2EAA2E;AACvF,MAAM,2CAAyDA,IAAAA,EAAE,OAAO;CACtE,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gBAAgB;CACxC,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yCAAyC;CAC1F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC;CAC7D,YAAYA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uCAAuC;AAC1E,CAAC,CAAC,CAAC,SAAS,uDAAuD;AACnE,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB;CACrD,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD;CACpH,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC;CACxE,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD;CAC1F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CACjF,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD;AAChG,CAAC,CAAC,CAAC,SAAS,8EAA8E;AAE1F,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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,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,YAAY,CAAC,CAAC,SAAS,uDAAuD;AACjF,MAAa,gCAAgCA,IAAAA,EAAE,OAAO;CACpD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;CAChE,SAASA,IAAAA,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD;CACpH,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,kDAAkD,CAAC,CAAC,SAAS;CACrG,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC5F,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,8EAA8E;AAExG,MAAa,0BAA0BC,eAAAA,OAAO,+BAA+B;CAC3E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/types-api-get-types.d.ts
4
- declare const PrismicTypesApiGetTypesInput: z.ZodTypeAny;
5
- declare const PrismicTypesApiGetTypesOutput: z.ZodTypeAny;
6
- declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicTypesApiGetTypesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ sort: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodNumber>;
8
+ }, z.core.$strip>;
9
+ declare const PrismicTypesApiGetTypesOutput: z.ZodObject<{
10
+ page: z.ZodNullable<z.ZodNumber>;
11
+ results: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ label: z.ZodNullable<z.ZodString>;
15
+ repeatable: z.ZodNullable<z.ZodBoolean>;
16
+ }, z.core.$loose>>;
17
+ total_pages: z.ZodNullable<z.ZodNumber>;
18
+ results_size: z.ZodNullable<z.ZodNumber>;
19
+ results_per_page: z.ZodNullable<z.ZodNumber>;
20
+ total_results_size: z.ZodNullable<z.ZodNumber>;
21
+ }, z.core.$loose>;
22
+ declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ page?: number | undefined;
24
+ sort?: string | undefined;
25
+ limit?: number | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { prismicTypesApiGetTypes };
9
29
  //# sourceMappingURL=types-api-get-types.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-api-get-types.d.cts","names":[],"sources":["../../src/actions/types-api-get-types.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAI2C;AAAA,cAO3E,6BAAA,EAA+B,CAAA,CAAE,UAO6C;AAAA,cAE9E,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"types-api-get-types.d.cts","names":[],"sources":["../../src/actions/types-api-get-types.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAW5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAS7B,uBAAA,gCAAuB,wBAAA"}
@@ -1,9 +1,29 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/types-api-get-types.d.ts
4
- declare const PrismicTypesApiGetTypesInput: z.ZodTypeAny;
5
- declare const PrismicTypesApiGetTypesOutput: z.ZodTypeAny;
6
- declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const PrismicTypesApiGetTypesInput: z.ZodObject<{
5
+ page: z.ZodOptional<z.ZodNumber>;
6
+ sort: z.ZodOptional<z.ZodString>;
7
+ limit: z.ZodOptional<z.ZodNumber>;
8
+ }, z.core.$strip>;
9
+ declare const PrismicTypesApiGetTypesOutput: z.ZodObject<{
10
+ page: z.ZodNullable<z.ZodNumber>;
11
+ results: z.ZodArray<z.ZodObject<{
12
+ id: z.ZodNullable<z.ZodString>;
13
+ json: z.ZodRecord<z.ZodString, z.ZodUnknown>;
14
+ label: z.ZodNullable<z.ZodString>;
15
+ repeatable: z.ZodNullable<z.ZodBoolean>;
16
+ }, z.core.$loose>>;
17
+ total_pages: z.ZodNullable<z.ZodNumber>;
18
+ results_size: z.ZodNullable<z.ZodNumber>;
19
+ results_per_page: z.ZodNullable<z.ZodNumber>;
20
+ total_results_size: z.ZodNullable<z.ZodNumber>;
21
+ }, z.core.$loose>;
22
+ declare const prismicTypesApiGetTypes: import("@keystrokehq/action").WorkflowActionDefinition<{
23
+ page?: number | undefined;
24
+ sort?: string | undefined;
25
+ limit?: number | undefined;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
27
  //#endregion
8
28
  export { prismicTypesApiGetTypes };
9
29
  //# sourceMappingURL=types-api-get-types.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types-api-get-types.d.mts","names":[],"sources":["../../src/actions/types-api-get-types.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAI2C;AAAA,cAO3E,6BAAA,EAA+B,CAAA,CAAE,UAO6C;AAAA,cAE9E,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"types-api-get-types.d.mts","names":[],"sources":["../../src/actions/types-api-get-types.ts"],"mappings":";;;cAIa,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;cAW5B,6BAAA,EAA6B,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAS7B,uBAAA,gCAAuB,wBAAA"}