@keystrokehq/prismic 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/action.cjs.map +1 -1
- package/dist/action.mjs.map +1 -1
- package/dist/actions/content-api-get-documents-with-fulltext-search.cjs +14 -14
- 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 +47 -3
- package/dist/actions/content-api-get-documents-with-fulltext-search.d.cts.map +1 -1
- package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts +47 -3
- package/dist/actions/content-api-get-documents-with-fulltext-search.d.mts.map +1 -1
- package/dist/actions/content-api-get-documents-with-fulltext-search.mjs +14 -14
- package/dist/actions/content-api-get-documents-with-fulltext-search.mjs.map +1 -1
- package/dist/actions/content-api-query-documents.cjs +14 -14
- package/dist/actions/content-api-query-documents.cjs.map +1 -1
- package/dist/actions/content-api-query-documents.d.cts +55 -3
- package/dist/actions/content-api-query-documents.d.cts.map +1 -1
- package/dist/actions/content-api-query-documents.d.mts +55 -3
- package/dist/actions/content-api-query-documents.d.mts.map +1 -1
- package/dist/actions/content-api-query-documents.mjs +14 -14
- package/dist/actions/content-api-query-documents.mjs.map +1 -1
- package/dist/actions/repository-api-get-info.cjs +6 -6
- package/dist/actions/repository-api-get-info.cjs.map +1 -1
- package/dist/actions/repository-api-get-info.d.cts +28 -3
- package/dist/actions/repository-api-get-info.d.cts.map +1 -1
- package/dist/actions/repository-api-get-info.d.mts +28 -3
- package/dist/actions/repository-api-get-info.d.mts.map +1 -1
- package/dist/actions/repository-api-get-info.mjs +6 -6
- package/dist/actions/repository-api-get-info.mjs.map +1 -1
- package/dist/actions/tags-api-get-all-tags.cjs.map +1 -1
- package/dist/actions/tags-api-get-all-tags.d.cts +5 -3
- package/dist/actions/tags-api-get-all-tags.d.cts.map +1 -1
- package/dist/actions/tags-api-get-all-tags.d.mts +5 -3
- package/dist/actions/tags-api-get-all-tags.d.mts.map +1 -1
- package/dist/actions/tags-api-get-all-tags.mjs.map +1 -1
- package/dist/actions/types-api-get-types.cjs +8 -8
- package/dist/actions/types-api-get-types.cjs.map +1 -1
- package/dist/actions/types-api-get-types.d.cts +23 -3
- package/dist/actions/types-api-get-types.d.cts.map +1 -1
- package/dist/actions/types-api-get-types.d.mts +23 -3
- package/dist/actions/types-api-get-types.d.mts.map +1 -1
- package/dist/actions/types-api-get-types.mjs +8 -8
- package/dist/actions/types-api-get-types.mjs.map +1 -1
- package/dist/catalog.cjs +13 -1
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +12 -0
- package/dist/catalog.d.mts +12 -0
- package/dist/catalog.mjs +13 -1
- package/dist/catalog.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -16,23 +16,23 @@ 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")
|
|
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
23
|
});
|
|
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")
|
|
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
36
|
});
|
|
37
37
|
const prismicContentApiQueryDocuments = action("PRISMIC_CONTENT_API_QUERY_DOCUMENTS", {
|
|
38
38
|
slug: "prismic-content-api-query-documents",
|
|
@@ -40,14 +40,14 @@ const prismicContentApiQueryDocuments = action("PRISMIC_CONTENT_API_QUERY_DOCUME
|
|
|
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")
|
|
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
51
|
})
|
|
52
52
|
});
|
|
53
53
|
//#endregion
|
|
@@ -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
|
|
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,0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AAO;CACP,QAhBmD,EAAE,OAAO;EAC5D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS;EAChE,SAAS,EAAE,MAAM,8CAA8C,CAAC,CAAC,SAAS,2BAA2B;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/E,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;EACnF,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,CAOU;AACV,CAAC"}
|
|
@@ -3,15 +3,15 @@ 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
11
|
}).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")
|
|
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
15
|
}).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(),
|
|
@@ -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
|
|
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.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: PrismicRepositoryApiGet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@@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/actions/repository-api-get-info.d.ts
|
|
4
|
-
declare const PrismicRepositoryApiGetInfoInput: z.
|
|
5
|
-
declare const PrismicRepositoryApiGetInfoOutput: z.
|
|
6
|
-
|
|
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.$strip>>;
|
|
13
|
+
tags: z.ZodArray<z.ZodString>;
|
|
14
|
+
forms: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
types: z.ZodObject<{}, z.core.$strip>;
|
|
16
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
bookmarks: z.ZodObject<{}, z.core.$strip>;
|
|
19
|
+
languages: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
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.$strip>>>;
|
|
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.$strip>;
|
|
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,
|
|
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.
|
|
5
|
-
declare const PrismicRepositoryApiGetInfoOutput: z.
|
|
6
|
-
|
|
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.$strip>>;
|
|
13
|
+
tags: z.ZodArray<z.ZodString>;
|
|
14
|
+
forms: z.ZodObject<{}, z.core.$strip>;
|
|
15
|
+
types: z.ZodObject<{}, z.core.$strip>;
|
|
16
|
+
license: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
|
+
version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
bookmarks: z.ZodObject<{}, z.core.$strip>;
|
|
19
|
+
languages: z.ZodArray<z.ZodObject<{
|
|
20
|
+
id: z.ZodNullable<z.ZodString>;
|
|
21
|
+
name: z.ZodNullable<z.ZodString>;
|
|
22
|
+
}, z.core.$strip>>;
|
|
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.$strip>>>;
|
|
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.$strip>;
|
|
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,
|
|
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,15 +3,15 @@ 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
11
|
}).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")
|
|
13
|
+
id: z.string().describe("ISO code of the language").nullable(),
|
|
14
|
+
name: z.string().describe("Display name of the language").nullable()
|
|
15
15
|
}).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(),
|
|
@@ -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
|
|
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.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,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,CA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,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACnF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,iDAAiD;EAClF,WAAW,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,uCAAuC;EAC/G,aAAa,8CAA8C,SAAS,CAAC,CAAC,SAAS;EAC/E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChF,sBAAsB,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrH,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -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
|
|
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;AAElE,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.
|
|
5
|
-
declare const PrismicTagsApiGetAllTagsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PrismicTagsApiGetAllTagsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PrismicTagsApiGetAllTagsOutput: z.ZodObject<{
|
|
6
|
+
tags: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
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,
|
|
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.
|
|
5
|
-
declare const PrismicTagsApiGetAllTagsOutput: z.
|
|
6
|
-
|
|
4
|
+
declare const PrismicTagsApiGetAllTagsInput: z.ZodObject<{}, z.core.$strip>;
|
|
5
|
+
declare const PrismicTagsApiGetAllTagsOutput: z.ZodObject<{
|
|
6
|
+
tags: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
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,
|
|
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"}
|
|
@@ -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
|
|
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,sDAOF;AACV,CAAC"}
|
|
@@ -7,18 +7,18 @@ 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")
|
|
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
14
|
}).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")
|
|
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
22
|
}).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",
|
|
@@ -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
|
|
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;AACnE,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,SAAS,8EAA8E;AAE1F,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.
|
|
5
|
-
|
|
6
|
-
|
|
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.$strip>>;
|
|
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.$strip>;
|
|
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,
|
|
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.
|
|
5
|
-
|
|
6
|
-
|
|
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.$strip>>;
|
|
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.$strip>;
|
|
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,
|
|
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"}
|
|
@@ -7,10 +7,10 @@ const PrismicTypesApiGetTypesInput = z.object({
|
|
|
7
7
|
limit: 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 = z.object({
|
|
10
|
-
id: z.string().describe("Custom type ID"),
|
|
10
|
+
id: z.string().describe("Custom type ID").nullable(),
|
|
11
11
|
json: z.record(z.string(), z.unknown()).describe("Structure definition of the custom type"),
|
|
12
|
-
label: z.string().describe("Display label of the custom type"),
|
|
13
|
-
repeatable: z.boolean().describe("Whether the custom type is repeatable")
|
|
12
|
+
label: z.string().describe("Display label of the custom type").nullable(),
|
|
13
|
+
repeatable: z.boolean().describe("Whether the custom type is repeatable").nullable()
|
|
14
14
|
}).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",
|
|
@@ -18,12 +18,12 @@ const prismicTypesApiGetTypes = action("PRISMIC_TYPES_API_GET_TYPES", {
|
|
|
18
18
|
description: "Retrieves all custom types (content models) defined in the Prismic repository. Custom types define the structure of content in Prismic. This action returns metadata about each custom type including its ID, label, structure definition (JSON schema), and whether it's repeatable. Use this to discover available content types before querying documents, or to understand the content model of a repository. Returns an empty list if no custom types are defined in the repository.",
|
|
19
19
|
input: PrismicTypesApiGetTypesInput,
|
|
20
20
|
output: z.object({
|
|
21
|
-
page: z.number().int().describe("Current page number"),
|
|
21
|
+
page: z.number().int().describe("Current page number").nullable(),
|
|
22
22
|
results: z.array(PrismicTypesApiGetTypes_CustomTypeSchema).describe("List of custom types defined in the repository"),
|
|
23
|
-
total_pages: z.number().int().describe("Total number of pages available"),
|
|
24
|
-
results_size: z.number().int().describe("Number of custom types returned in this response"),
|
|
25
|
-
results_per_page: z.number().int().describe("Number of results returned per page"),
|
|
26
|
-
total_results_size: z.number().int().describe("Total number of custom types in the repository")
|
|
23
|
+
total_pages: z.number().int().describe("Total number of pages available").nullable(),
|
|
24
|
+
results_size: z.number().int().describe("Number of custom types returned in this response").nullable(),
|
|
25
|
+
results_per_page: z.number().int().describe("Number of results returned per page").nullable(),
|
|
26
|
+
total_results_size: z.number().int().describe("Total number of custom types in the repository").nullable()
|
|
27
27
|
}).describe("Response schema for listing custom types and slices in a Prismic repository.")
|
|
28
28
|
});
|
|
29
29
|
//#endregion
|
|
@@ -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
|
|
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;AAUnE,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,CAAC,SAAS;EAChE,SAAS,EAAE,MAAM,wCAAwC,CAAC,CAAC,SAAS,gDAAgD;EACpH,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EACnF,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACrG,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EAC5F,oBAAoB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CAC3G,CAAC,CAAC,CAAC,SAAS,8EAOF;AACV,CAAC"}
|
package/dist/catalog.cjs
CHANGED
|
@@ -7,7 +7,19 @@ const prismicCatalog = {
|
|
|
7
7
|
"category": "Website Builders",
|
|
8
8
|
"logo": "https://logos.composio.dev/api/prismic",
|
|
9
9
|
"authKind": "keystroke",
|
|
10
|
-
"oauthScopes": []
|
|
10
|
+
"oauthScopes": [],
|
|
11
|
+
"credentialFields": {
|
|
12
|
+
"subdomain": {
|
|
13
|
+
"label": "Repository Name",
|
|
14
|
+
"description": "The unique name of your Prismic repository."
|
|
15
|
+
},
|
|
16
|
+
"api_key": {
|
|
17
|
+
"label": "Prismic Access Token",
|
|
18
|
+
"secret": true,
|
|
19
|
+
"description": "The access token for authenticating API requests to your Prismic repository."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"credentialScheme": "API_KEY"
|
|
11
23
|
};
|
|
12
24
|
//#endregion
|
|
13
25
|
exports.prismicCatalog = prismicCatalog;
|
package/dist/catalog.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const prismicCatalog = {\n \"slug\": \"prismic\",\n \"name\": \"Prismic\",\n \"description\": \"Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.\",\n \"category\": \"Website Builders\",\n \"logo\": \"https://logos.composio.dev/api/prismic\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const prismicCatalog = {\n \"slug\": \"prismic\",\n \"name\": \"Prismic\",\n \"description\": \"Prismic is a headless CMS that enables developers and content teams to manage and deliver content seamlessly across various platforms.\",\n \"category\": \"Website Builders\",\n \"logo\": \"https://logos.composio.dev/api/prismic\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"subdomain\": {\n \"label\": \"Repository Name\",\n \"description\": \"The unique name of your Prismic repository.\"\n },\n \"api_key\": {\n \"label\": \"Prismic Access Token\",\n \"secret\": true,\n \"description\": \"The access token for authenticating API requests to your Prismic repository.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,iBAAiB;CAC5B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB;EAClB,aAAa;GACX,SAAS;GACT,eAAe;EACjB;EACA,WAAW;GACT,SAAS;GACT,UAAU;GACV,eAAe;EACjB;CACF;CACA,oBAAoB;AACtB"}
|