@keystrokehq/storyblok 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/fetch-content-type-items-graphql.cjs +34 -0
- package/dist/actions/fetch-content-type-items-graphql.cjs.map +1 -0
- package/dist/actions/fetch-content-type-items-graphql.d.cts +9 -0
- package/dist/actions/fetch-content-type-items-graphql.d.cts.map +1 -0
- package/dist/actions/fetch-content-type-items-graphql.d.mts +9 -0
- package/dist/actions/fetch-content-type-items-graphql.d.mts.map +1 -0
- package/dist/actions/fetch-content-type-items-graphql.mjs +33 -0
- package/dist/actions/fetch-content-type-items-graphql.mjs.map +1 -0
- package/dist/actions/fetch-graphql-content-item.cjs +34 -0
- package/dist/actions/fetch-graphql-content-item.cjs.map +1 -0
- package/dist/actions/fetch-graphql-content-item.d.cts +9 -0
- package/dist/actions/fetch-graphql-content-item.d.cts.map +1 -0
- package/dist/actions/fetch-graphql-content-item.d.mts +9 -0
- package/dist/actions/fetch-graphql-content-item.d.mts.map +1 -0
- package/dist/actions/fetch-graphql-content-item.mjs +33 -0
- package/dist/actions/fetch-graphql-content-item.mjs.map +1 -0
- package/dist/actions/get-app.cjs +42 -0
- package/dist/actions/get-app.cjs.map +1 -0
- package/dist/actions/get-app.d.cts +9 -0
- package/dist/actions/get-app.d.cts.map +1 -0
- package/dist/actions/get-app.d.mts +9 -0
- package/dist/actions/get-app.d.mts.map +1 -0
- package/dist/actions/get-app.mjs +41 -0
- package/dist/actions/get-app.mjs.map +1 -0
- package/dist/actions/get-datasource-entries.cjs +31 -0
- package/dist/actions/get-datasource-entries.cjs.map +1 -0
- package/dist/actions/get-datasource-entries.d.cts +9 -0
- package/dist/actions/get-datasource-entries.d.cts.map +1 -0
- package/dist/actions/get-datasource-entries.d.mts +9 -0
- package/dist/actions/get-datasource-entries.d.mts.map +1 -0
- package/dist/actions/get-datasource-entries.mjs +30 -0
- package/dist/actions/get-datasource-entries.mjs.map +1 -0
- package/dist/actions/get-graphql-rate-limit.cjs +18 -0
- package/dist/actions/get-graphql-rate-limit.cjs.map +1 -0
- package/dist/actions/get-graphql-rate-limit.d.cts +9 -0
- package/dist/actions/get-graphql-rate-limit.d.cts.map +1 -0
- package/dist/actions/get-graphql-rate-limit.d.mts +9 -0
- package/dist/actions/get-graphql-rate-limit.d.mts.map +1 -0
- package/dist/actions/get-graphql-rate-limit.mjs +17 -0
- package/dist/actions/get-graphql-rate-limit.mjs.map +1 -0
- package/dist/actions/get-page-item.cjs +23 -0
- package/dist/actions/get-page-item.cjs.map +1 -0
- package/dist/actions/get-page-item.d.cts +9 -0
- package/dist/actions/get-page-item.d.cts.map +1 -0
- package/dist/actions/get-page-item.d.mts +9 -0
- package/dist/actions/get-page-item.d.mts.map +1 -0
- package/dist/actions/get-page-item.mjs +20 -0
- package/dist/actions/get-page-item.mjs.map +1 -0
- package/dist/actions/index.cjs +21 -0
- package/dist/actions/index.d.cts +11 -0
- package/dist/actions/index.d.mts +11 -0
- package/dist/actions/index.mjs +11 -0
- package/dist/actions/list-graphql-content-type-items.cjs +22 -0
- package/dist/actions/list-graphql-content-type-items.cjs.map +1 -0
- package/dist/actions/list-graphql-content-type-items.d.cts +9 -0
- package/dist/actions/list-graphql-content-type-items.d.cts.map +1 -0
- package/dist/actions/list-graphql-content-type-items.d.mts +9 -0
- package/dist/actions/list-graphql-content-type-items.d.mts.map +1 -0
- package/dist/actions/list-graphql-content-type-items.mjs +19 -0
- package/dist/actions/list-graphql-content-type-items.mjs.map +1 -0
- package/dist/actions/query-page-items.cjs +33 -0
- package/dist/actions/query-page-items.cjs.map +1 -0
- package/dist/actions/query-page-items.d.cts +9 -0
- package/dist/actions/query-page-items.d.cts.map +1 -0
- package/dist/actions/query-page-items.d.mts +9 -0
- package/dist/actions/query-page-items.d.mts.map +1 -0
- package/dist/actions/query-page-items.mjs +32 -0
- package/dist/actions/query-page-items.mjs.map +1 -0
- package/dist/actions/retrieve-links-graphql.cjs +25 -0
- package/dist/actions/retrieve-links-graphql.cjs.map +1 -0
- package/dist/actions/retrieve-links-graphql.d.cts +9 -0
- package/dist/actions/retrieve-links-graphql.d.cts.map +1 -0
- package/dist/actions/retrieve-links-graphql.d.mts +9 -0
- package/dist/actions/retrieve-links-graphql.d.mts.map +1 -0
- package/dist/actions/retrieve-links-graphql.mjs +24 -0
- package/dist/actions/retrieve-links-graphql.mjs.map +1 -0
- package/dist/actions/retrieve-tags.cjs +19 -0
- package/dist/actions/retrieve-tags.cjs.map +1 -0
- package/dist/actions/retrieve-tags.d.cts +9 -0
- package/dist/actions/retrieve-tags.d.cts.map +1 -0
- package/dist/actions/retrieve-tags.d.mts +9 -0
- package/dist/actions/retrieve-tags.d.mts.map +1 -0
- package/dist/actions/retrieve-tags.mjs +18 -0
- package/dist/actions/retrieve-tags.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +26 -0
- package/dist/index.d.cts +13 -0
- package/dist/index.d.mts +13 -0
- package/dist/index.mjs +14 -0
- package/package.json +49 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-datasource-entries.mjs","names":[],"sources":["../../src/actions/get-datasource-entries.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokGetDatasourceEntriesInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"The GraphQL query string to retrieve datasource entries. Use 'DatasourceEntries' query with fields like id, name, value, dimension_value. Example: '{ DatasourceEntries { items { id name value } } }'\"),\n version: z.string().default(\"draft\").describe(\"Content version to retrieve. Use 'draft' for draft content or 'published' for published content.\").optional(),\n variables: z.record(z.string(), z.unknown()).describe(\"Optional variables for the GraphQL query. Use when your query contains variable placeholders.\").optional(),\n}).describe(\"Request model for retrieving datasource entries via GraphQL.\");\nconst StoryblokGetDatasourceEntries_DatasourceEntrySchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique identifier of the datasource entry\").nullable().optional(),\n name: z.string().describe(\"Name of the datasource entry\").nullable().optional(),\n value: z.string().describe(\"Value of the datasource entry\").nullable().optional(),\n dimension_value: z.string().describe(\"Dimension value of the datasource entry\").nullable().optional(),\n}).describe(\"Individual datasource entry item.\");\nconst StoryblokGetDatasourceEntries_DatasourceEntriesDataSchema: z.ZodTypeAny = z.object({\n items: z.array(StoryblokGetDatasourceEntries_DatasourceEntrySchema).describe(\"List of datasource entry items\").nullable().optional(),\n}).describe(\"DatasourceEntries data structure.\");\nconst StoryblokGetDatasourceEntries_GetDatasourceEntriesResponseDataSchema: z.ZodTypeAny = z.object({\n DatasourceEntries: StoryblokGetDatasourceEntries_DatasourceEntriesDataSchema.nullable().optional(),\n}).describe(\"Data object containing DatasourceEntries.\");\nexport const StoryblokGetDatasourceEntriesOutput: z.ZodTypeAny = z.object({\n data: StoryblokGetDatasourceEntries_GetDatasourceEntriesResponseDataSchema.nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"Any errors returned by the GraphQL API\").nullable().optional(),\n}).describe(\"Response model for GetDatasourceEntries GraphQL query.\");\n\nexport const storyblokGetDatasourceEntries = action(\"STORYBLOK_GET_DATASOURCE_ENTRIES\", {\n slug: \"storyblok-get-datasource-entries\",\n name: \"Get Datasource Entries\",\n description: \"Tool to retrieve datasource entries from Storyblok via GraphQL API. Use when you need to fetch datasource data. Returns datasource entries with fields like id, name, value, and dimension_value.\",\n input: StoryblokGetDatasourceEntriesInput,\n output: StoryblokGetDatasourceEntriesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmD,EAAE,OAAO;CACvE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wMAAwM;CACnO,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAC3J,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,+FAA+F,CAAC,CAAC,SAAS;AAClK,CAAC,CAAC,CAAC,SAAS,8DAA8D;AAC1E,MAAM,sDAAoE,EAAE,OAAO;CACjF,IAAI,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,+BAA+B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,4DAA0E,EAAE,OAAO,EACvF,OAAO,EAAE,MAAM,mDAAmD,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EACrI,CAAC,CAAC,CAAC,SAAS,mCAAmC;AAC/C,MAAM,uEAAqF,EAAE,OAAO,EAClG,mBAAmB,0DAA0D,SAAS,CAAC,CAAC,SAAS,EACnG,CAAC,CAAC,CAAC,SAAS,2CAA2C;AAMvD,MAAa,gCAAgC,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAV+D,EAAE,OAAO;EACxE,MAAM,qEAAqE,SAAS,CAAC,CAAC,SAAS;EAC/F,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5H,CAAC,CAAC,CAAC,SAAS,wDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-graphql-rate-limit.ts
|
|
4
|
+
const StoryblokGetGraphqlRateLimitInput = zod.z.object({ query: zod.z.string().default("{ RateLimit { maxCost } }").describe("GraphQL query string to get rate limit information. Use the default value to query the maxCost field, which represents the approximation of the maximum cost of a single request.").optional() });
|
|
5
|
+
const StoryblokGetGraphqlRateLimit_RateLimitDataSchema = zod.z.object({ maxCost: zod.z.number().describe("Approximation of the maximum cost of a single request. Used to calculate safe request rate: 100 / maxCost = requests per second.") }).describe("Rate limit information from Storyblok GraphQL API.");
|
|
6
|
+
const StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema = zod.z.object({ RateLimit: StoryblokGetGraphqlRateLimit_RateLimitDataSchema.nullable() }).describe("Data wrapper for the GraphQL response.");
|
|
7
|
+
const StoryblokGetGraphqlRateLimitOutput = zod.z.object({ data: StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema.nullable() }).describe("Response from Storyblok GraphQL rate limit query.");
|
|
8
|
+
const storyblokGetGraphqlRateLimit = require_action.action("STORYBLOK_GET_GRAPHQL_RATE_LIMIT", {
|
|
9
|
+
slug: "storyblok-get-graphql-rate-limit",
|
|
10
|
+
name: "Get GraphQL Rate Limit",
|
|
11
|
+
description: "Tool to retrieve rate limit information from Storyblok GraphQL API. Use when you need to check the maximum cost per request to calculate safe request rates (100 / maxCost = requests per second).",
|
|
12
|
+
input: StoryblokGetGraphqlRateLimitInput,
|
|
13
|
+
output: StoryblokGetGraphqlRateLimitOutput
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
exports.storyblokGetGraphqlRateLimit = storyblokGetGraphqlRateLimit;
|
|
17
|
+
|
|
18
|
+
//# sourceMappingURL=get-graphql-rate-limit.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-graphql-rate-limit.cjs","names":["z","action"],"sources":["../../src/actions/get-graphql-rate-limit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokGetGraphqlRateLimitInput: z.ZodTypeAny = z.object({\n query: z.string().default(\"{ RateLimit { maxCost } }\").describe(\"GraphQL query string to get rate limit information. Use the default value to query the maxCost field, which represents the approximation of the maximum cost of a single request.\").optional(),\n});\nconst StoryblokGetGraphqlRateLimit_RateLimitDataSchema: z.ZodTypeAny = z.object({\n maxCost: z.number().describe(\"Approximation of the maximum cost of a single request. Used to calculate safe request rate: 100 / maxCost = requests per second.\"),\n}).describe(\"Rate limit information from Storyblok GraphQL API.\");\nconst StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema: z.ZodTypeAny = z.object({\n RateLimit: StoryblokGetGraphqlRateLimit_RateLimitDataSchema.nullable(),\n}).describe(\"Data wrapper for the GraphQL response.\");\nexport const StoryblokGetGraphqlRateLimitOutput: z.ZodTypeAny = z.object({\n data: StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema.nullable(),\n}).describe(\"Response from Storyblok GraphQL rate limit query.\");\n\nexport const storyblokGetGraphqlRateLimit = action(\"STORYBLOK_GET_GRAPHQL_RATE_LIMIT\", {\n slug: \"storyblok-get-graphql-rate-limit\",\n name: \"Get GraphQL Rate Limit\",\n description: \"Tool to retrieve rate limit information from Storyblok GraphQL API. Use when you need to check the maximum cost per request to calculate safe request rates (100 / maxCost = requests per second).\",\n input: StoryblokGetGraphqlRateLimitInput,\n output: StoryblokGetGraphqlRateLimitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkDA,IAAAA,EAAE,OAAO,EACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,mLAAmL,CAAC,CAAC,SAAS,EAChQ,CAAC;AACD,MAAM,mDAAiEA,IAAAA,EAAE,OAAO,EAC9E,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,EACjK,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,qEAAmFA,IAAAA,EAAE,OAAO,EAChG,WAAW,iDAAiD,SAAS,EACvE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AACpD,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,MAAM,mEAAmE,SAAS,EACpF,CAAC,CAAC,CAAC,SAAS,mDAAmD;AAE/D,MAAa,+BAA+BC,eAAAA,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-graphql-rate-limit.d.ts
|
|
4
|
+
declare const StoryblokGetGraphqlRateLimitInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokGetGraphqlRateLimitOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokGetGraphqlRateLimit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokGetGraphqlRateLimit };
|
|
9
|
+
//# sourceMappingURL=get-graphql-rate-limit.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-graphql-rate-limit.d.cts","names":[],"sources":["../../src/actions/get-graphql-rate-limit.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAOW,kCAAA,EAAoC,CAAA,CAAE,UAEa;AAAA,cAEnD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-graphql-rate-limit.d.ts
|
|
4
|
+
declare const StoryblokGetGraphqlRateLimitInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokGetGraphqlRateLimitOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokGetGraphqlRateLimit: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokGetGraphqlRateLimit };
|
|
9
|
+
//# sourceMappingURL=get-graphql-rate-limit.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-graphql-rate-limit.d.mts","names":[],"sources":["../../src/actions/get-graphql-rate-limit.ts"],"mappings":";;;cAIa,iCAAA,EAAmC,CAAA,CAAE,UAEhD;AAAA,cAOW,kCAAA,EAAoC,CAAA,CAAE,UAEa;AAAA,cAEnD,4BAAA,gCAA4B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/get-graphql-rate-limit.ts
|
|
4
|
+
const StoryblokGetGraphqlRateLimitInput = z.object({ query: z.string().default("{ RateLimit { maxCost } }").describe("GraphQL query string to get rate limit information. Use the default value to query the maxCost field, which represents the approximation of the maximum cost of a single request.").optional() });
|
|
5
|
+
const StoryblokGetGraphqlRateLimit_RateLimitDataSchema = z.object({ maxCost: z.number().describe("Approximation of the maximum cost of a single request. Used to calculate safe request rate: 100 / maxCost = requests per second.") }).describe("Rate limit information from Storyblok GraphQL API.");
|
|
6
|
+
const StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema = z.object({ RateLimit: StoryblokGetGraphqlRateLimit_RateLimitDataSchema.nullable() }).describe("Data wrapper for the GraphQL response.");
|
|
7
|
+
const storyblokGetGraphqlRateLimit = action("STORYBLOK_GET_GRAPHQL_RATE_LIMIT", {
|
|
8
|
+
slug: "storyblok-get-graphql-rate-limit",
|
|
9
|
+
name: "Get GraphQL Rate Limit",
|
|
10
|
+
description: "Tool to retrieve rate limit information from Storyblok GraphQL API. Use when you need to check the maximum cost per request to calculate safe request rates (100 / maxCost = requests per second).",
|
|
11
|
+
input: StoryblokGetGraphqlRateLimitInput,
|
|
12
|
+
output: z.object({ data: StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema.nullable() }).describe("Response from Storyblok GraphQL rate limit query.")
|
|
13
|
+
});
|
|
14
|
+
//#endregion
|
|
15
|
+
export { storyblokGetGraphqlRateLimit };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=get-graphql-rate-limit.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-graphql-rate-limit.mjs","names":[],"sources":["../../src/actions/get-graphql-rate-limit.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokGetGraphqlRateLimitInput: z.ZodTypeAny = z.object({\n query: z.string().default(\"{ RateLimit { maxCost } }\").describe(\"GraphQL query string to get rate limit information. Use the default value to query the maxCost field, which represents the approximation of the maximum cost of a single request.\").optional(),\n});\nconst StoryblokGetGraphqlRateLimit_RateLimitDataSchema: z.ZodTypeAny = z.object({\n maxCost: z.number().describe(\"Approximation of the maximum cost of a single request. Used to calculate safe request rate: 100 / maxCost = requests per second.\"),\n}).describe(\"Rate limit information from Storyblok GraphQL API.\");\nconst StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema: z.ZodTypeAny = z.object({\n RateLimit: StoryblokGetGraphqlRateLimit_RateLimitDataSchema.nullable(),\n}).describe(\"Data wrapper for the GraphQL response.\");\nexport const StoryblokGetGraphqlRateLimitOutput: z.ZodTypeAny = z.object({\n data: StoryblokGetGraphqlRateLimit_GetGraphqlRateLimitResponseDataSchema.nullable(),\n}).describe(\"Response from Storyblok GraphQL rate limit query.\");\n\nexport const storyblokGetGraphqlRateLimit = action(\"STORYBLOK_GET_GRAPHQL_RATE_LIMIT\", {\n slug: \"storyblok-get-graphql-rate-limit\",\n name: \"Get GraphQL Rate Limit\",\n description: \"Tool to retrieve rate limit information from Storyblok GraphQL API. Use when you need to check the maximum cost per request to calculate safe request rates (100 / maxCost = requests per second).\",\n input: StoryblokGetGraphqlRateLimitInput,\n output: StoryblokGetGraphqlRateLimitOutput,\n});\n"],"mappings":";;;AAIA,MAAa,oCAAkD,EAAE,OAAO,EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,2BAA2B,CAAC,CAAC,SAAS,mLAAmL,CAAC,CAAC,SAAS,EAChQ,CAAC;AACD,MAAM,mDAAiE,EAAE,OAAO,EAC9E,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,kIAAkI,EACjK,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,qEAAmF,EAAE,OAAO,EAChG,WAAW,iDAAiD,SAAS,EACvE,CAAC,CAAC,CAAC,SAAS,wCAAwC;AAKpD,MAAa,+BAA+B,OAAO,oCAAoC;CACrF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAT8D,EAAE,OAAO,EACvE,MAAM,mEAAmE,SAAS,EACpF,CAAC,CAAC,CAAC,SAAS,mDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/get-page-item.ts
|
|
4
|
+
const StoryblokGetPageItemInput = zod.z.object({
|
|
5
|
+
id: zod.z.string().describe("The ID or slug of the page item to retrieve. Use either numeric ID or string slug like 'home'.").optional(),
|
|
6
|
+
fields: zod.z.string().default("id name slug full_slug content { _uid component }").describe("GraphQL fields to retrieve from the PageItem. Customize to fetch only needed fields.").optional(),
|
|
7
|
+
version: zod.z.enum(["draft", "published"]).default("draft").describe("Version of the content to retrieve - either 'draft' or 'published'.").optional()
|
|
8
|
+
}).describe("Request model for retrieving a single page item by ID or slug using Storyblok GraphQL API.");
|
|
9
|
+
const StoryblokGetPageItemOutput = zod.z.object({
|
|
10
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("The 'data' object returned by the GraphQL API, containing the PageItem.").nullable().optional(),
|
|
11
|
+
errors: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("Any errors returned by the GraphQL API.").nullable().optional()
|
|
12
|
+
}).describe("Response model for Storyblok GraphQL PageItem query.");
|
|
13
|
+
const storyblokGetPageItem = require_action.action("STORYBLOK_GET_PAGE_ITEM", {
|
|
14
|
+
slug: "storyblok-get-page-item",
|
|
15
|
+
name: "Get Page Item",
|
|
16
|
+
description: "Tool to retrieve a single page item by ID or slug from Storyblok using GraphQL. Use when you need to fetch specific page content with custom field selection. Supports both draft and published versions.",
|
|
17
|
+
input: StoryblokGetPageItemInput,
|
|
18
|
+
output: StoryblokGetPageItemOutput
|
|
19
|
+
});
|
|
20
|
+
//#endregion
|
|
21
|
+
exports.storyblokGetPageItem = storyblokGetPageItem;
|
|
22
|
+
|
|
23
|
+
//# sourceMappingURL=get-page-item.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-item.cjs","names":["z","action"],"sources":["../../src/actions/get-page-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokGetPageItemInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID or slug of the page item to retrieve. Use either numeric ID or string slug like 'home'.\").optional(),\n fields: z.string().default(\"id name slug full_slug content { _uid component }\").describe(\"GraphQL fields to retrieve from the PageItem. Customize to fetch only needed fields.\").optional(),\n version: z.enum([\"draft\", \"published\"]).default(\"draft\").describe(\"Version of the content to retrieve - either 'draft' or 'published'.\").optional(),\n}).describe(\"Request model for retrieving a single page item by ID or slug using Storyblok GraphQL API.\");\nexport const StoryblokGetPageItemOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The 'data' object returned by the GraphQL API, containing the PageItem.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"Any errors returned by the GraphQL API.\").nullable().optional(),\n}).describe(\"Response model for Storyblok GraphQL PageItem query.\");\n\nexport const storyblokGetPageItem = action(\"STORYBLOK_GET_PAGE_ITEM\", {\n slug: \"storyblok-get-page-item\",\n name: \"Get Page Item\",\n description: \"Tool to retrieve a single page item by ID or slug from Storyblok using GraphQL. Use when you need to fetch specific page content with custom field selection. Supports both draft and published versions.\",\n input: StoryblokGetPageItemInput,\n output: StoryblokGetPageItemOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;CACnI,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,mDAAmD,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;CAC1L,SAASA,IAAAA,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACpJ,CAAC,CAAC,CAAC,SAAS,4FAA4F;AACxG,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChJ,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC7H,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,uBAAuBC,eAAAA,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-page-item.d.ts
|
|
4
|
+
declare const StoryblokGetPageItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokGetPageItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokGetPageItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokGetPageItem };
|
|
9
|
+
//# sourceMappingURL=get-page-item.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-item.d.cts","names":[],"sources":["../../src/actions/get-page-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAI+D;AAAA,cAC5F,0BAAA,EAA4B,CAAA,CAAE,UAGwB;AAAA,cAEtD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/get-page-item.d.ts
|
|
4
|
+
declare const StoryblokGetPageItemInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokGetPageItemOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokGetPageItem: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokGetPageItem };
|
|
9
|
+
//# sourceMappingURL=get-page-item.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-item.d.mts","names":[],"sources":["../../src/actions/get-page-item.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UAI+D;AAAA,cAC5F,0BAAA,EAA4B,CAAA,CAAE,UAGwB;AAAA,cAEtD,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const storyblokGetPageItem = action("STORYBLOK_GET_PAGE_ITEM", {
|
|
4
|
+
slug: "storyblok-get-page-item",
|
|
5
|
+
name: "Get Page Item",
|
|
6
|
+
description: "Tool to retrieve a single page item by ID or slug from Storyblok using GraphQL. Use when you need to fetch specific page content with custom field selection. Supports both draft and published versions.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
id: z.string().describe("The ID or slug of the page item to retrieve. Use either numeric ID or string slug like 'home'.").optional(),
|
|
9
|
+
fields: z.string().default("id name slug full_slug content { _uid component }").describe("GraphQL fields to retrieve from the PageItem. Customize to fetch only needed fields.").optional(),
|
|
10
|
+
version: z.enum(["draft", "published"]).default("draft").describe("Version of the content to retrieve - either 'draft' or 'published'.").optional()
|
|
11
|
+
}).describe("Request model for retrieving a single page item by ID or slug using Storyblok GraphQL API."),
|
|
12
|
+
output: z.object({
|
|
13
|
+
data: z.record(z.string(), z.unknown()).describe("The 'data' object returned by the GraphQL API, containing the PageItem.").nullable().optional(),
|
|
14
|
+
errors: z.array(z.record(z.string(), z.unknown())).describe("Any errors returned by the GraphQL API.").nullable().optional()
|
|
15
|
+
}).describe("Response model for Storyblok GraphQL PageItem query.")
|
|
16
|
+
});
|
|
17
|
+
//#endregion
|
|
18
|
+
export { storyblokGetPageItem };
|
|
19
|
+
|
|
20
|
+
//# sourceMappingURL=get-page-item.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-page-item.mjs","names":[],"sources":["../../src/actions/get-page-item.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokGetPageItemInput: z.ZodTypeAny = z.object({\n id: z.string().describe(\"The ID or slug of the page item to retrieve. Use either numeric ID or string slug like 'home'.\").optional(),\n fields: z.string().default(\"id name slug full_slug content { _uid component }\").describe(\"GraphQL fields to retrieve from the PageItem. Customize to fetch only needed fields.\").optional(),\n version: z.enum([\"draft\", \"published\"]).default(\"draft\").describe(\"Version of the content to retrieve - either 'draft' or 'published'.\").optional(),\n}).describe(\"Request model for retrieving a single page item by ID or slug using Storyblok GraphQL API.\");\nexport const StoryblokGetPageItemOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"The 'data' object returned by the GraphQL API, containing the PageItem.\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"Any errors returned by the GraphQL API.\").nullable().optional(),\n}).describe(\"Response model for Storyblok GraphQL PageItem query.\");\n\nexport const storyblokGetPageItem = action(\"STORYBLOK_GET_PAGE_ITEM\", {\n slug: \"storyblok-get-page-item\",\n name: \"Get Page Item\",\n description: \"Tool to retrieve a single page item by ID or slug from Storyblok using GraphQL. Use when you need to fetch specific page content with custom field selection. Supports both draft and published versions.\",\n input: StoryblokGetPageItemInput,\n output: StoryblokGetPageItemOutput,\n});\n"],"mappings":";;AAcA,MAAa,uBAAuB,OAAO,2BAA2B;CACpE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAdqD,EAAE,OAAO;EAC9D,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EACnI,QAAQ,EAAE,OAAO,CAAC,CAAC,QAAQ,mDAAmD,CAAC,CAAC,SAAS,sFAAsF,CAAC,CAAC,SAAS;EAC1L,SAAS,EAAE,KAAK,CAAC,SAAS,WAAW,CAAC,CAAC,CAAC,QAAQ,OAAO,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACpJ,CAAC,CAAC,CAAC,SAAS,4FAUH;CACP,QAVsD,EAAE,OAAO;EAC/D,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAChJ,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7H,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_fetch_content_type_items_graphql = require("./fetch-content-type-items-graphql.cjs");
|
|
3
|
+
const require_fetch_graphql_content_item = require("./fetch-graphql-content-item.cjs");
|
|
4
|
+
const require_get_app = require("./get-app.cjs");
|
|
5
|
+
const require_get_datasource_entries = require("./get-datasource-entries.cjs");
|
|
6
|
+
const require_get_graphql_rate_limit = require("./get-graphql-rate-limit.cjs");
|
|
7
|
+
const require_get_page_item = require("./get-page-item.cjs");
|
|
8
|
+
const require_list_graphql_content_type_items = require("./list-graphql-content-type-items.cjs");
|
|
9
|
+
const require_query_page_items = require("./query-page-items.cjs");
|
|
10
|
+
const require_retrieve_links_graphql = require("./retrieve-links-graphql.cjs");
|
|
11
|
+
const require_retrieve_tags = require("./retrieve-tags.cjs");
|
|
12
|
+
exports.storyblokFetchContentTypeItemsGraphql = require_fetch_content_type_items_graphql.storyblokFetchContentTypeItemsGraphql;
|
|
13
|
+
exports.storyblokFetchGraphqlContentItem = require_fetch_graphql_content_item.storyblokFetchGraphqlContentItem;
|
|
14
|
+
exports.storyblokGetApp = require_get_app.storyblokGetApp;
|
|
15
|
+
exports.storyblokGetDatasourceEntries = require_get_datasource_entries.storyblokGetDatasourceEntries;
|
|
16
|
+
exports.storyblokGetGraphqlRateLimit = require_get_graphql_rate_limit.storyblokGetGraphqlRateLimit;
|
|
17
|
+
exports.storyblokGetPageItem = require_get_page_item.storyblokGetPageItem;
|
|
18
|
+
exports.storyblokListGraphqlContentTypeItems = require_list_graphql_content_type_items.storyblokListGraphqlContentTypeItems;
|
|
19
|
+
exports.storyblokQueryPageItems = require_query_page_items.storyblokQueryPageItems;
|
|
20
|
+
exports.storyblokRetrieveLinksGraphql = require_retrieve_links_graphql.storyblokRetrieveLinksGraphql;
|
|
21
|
+
exports.storyblokRetrieveTags = require_retrieve_tags.storyblokRetrieveTags;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { storyblokFetchContentTypeItemsGraphql } from "./fetch-content-type-items-graphql.cjs";
|
|
2
|
+
import { storyblokFetchGraphqlContentItem } from "./fetch-graphql-content-item.cjs";
|
|
3
|
+
import { storyblokGetApp } from "./get-app.cjs";
|
|
4
|
+
import { storyblokGetDatasourceEntries } from "./get-datasource-entries.cjs";
|
|
5
|
+
import { storyblokGetGraphqlRateLimit } from "./get-graphql-rate-limit.cjs";
|
|
6
|
+
import { storyblokGetPageItem } from "./get-page-item.cjs";
|
|
7
|
+
import { storyblokListGraphqlContentTypeItems } from "./list-graphql-content-type-items.cjs";
|
|
8
|
+
import { storyblokQueryPageItems } from "./query-page-items.cjs";
|
|
9
|
+
import { storyblokRetrieveLinksGraphql } from "./retrieve-links-graphql.cjs";
|
|
10
|
+
import { storyblokRetrieveTags } from "./retrieve-tags.cjs";
|
|
11
|
+
export { storyblokFetchContentTypeItemsGraphql, storyblokFetchGraphqlContentItem, storyblokGetApp, storyblokGetDatasourceEntries, storyblokGetGraphqlRateLimit, storyblokGetPageItem, storyblokListGraphqlContentTypeItems, storyblokQueryPageItems, storyblokRetrieveLinksGraphql, storyblokRetrieveTags };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { storyblokFetchContentTypeItemsGraphql } from "./fetch-content-type-items-graphql.mjs";
|
|
2
|
+
import { storyblokFetchGraphqlContentItem } from "./fetch-graphql-content-item.mjs";
|
|
3
|
+
import { storyblokGetApp } from "./get-app.mjs";
|
|
4
|
+
import { storyblokGetDatasourceEntries } from "./get-datasource-entries.mjs";
|
|
5
|
+
import { storyblokGetGraphqlRateLimit } from "./get-graphql-rate-limit.mjs";
|
|
6
|
+
import { storyblokGetPageItem } from "./get-page-item.mjs";
|
|
7
|
+
import { storyblokListGraphqlContentTypeItems } from "./list-graphql-content-type-items.mjs";
|
|
8
|
+
import { storyblokQueryPageItems } from "./query-page-items.mjs";
|
|
9
|
+
import { storyblokRetrieveLinksGraphql } from "./retrieve-links-graphql.mjs";
|
|
10
|
+
import { storyblokRetrieveTags } from "./retrieve-tags.mjs";
|
|
11
|
+
export { storyblokFetchContentTypeItemsGraphql, storyblokFetchGraphqlContentItem, storyblokGetApp, storyblokGetDatasourceEntries, storyblokGetGraphqlRateLimit, storyblokGetPageItem, storyblokListGraphqlContentTypeItems, storyblokQueryPageItems, storyblokRetrieveLinksGraphql, storyblokRetrieveTags };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { storyblokFetchContentTypeItemsGraphql } from "./fetch-content-type-items-graphql.mjs";
|
|
2
|
+
import { storyblokFetchGraphqlContentItem } from "./fetch-graphql-content-item.mjs";
|
|
3
|
+
import { storyblokGetApp } from "./get-app.mjs";
|
|
4
|
+
import { storyblokGetDatasourceEntries } from "./get-datasource-entries.mjs";
|
|
5
|
+
import { storyblokGetGraphqlRateLimit } from "./get-graphql-rate-limit.mjs";
|
|
6
|
+
import { storyblokGetPageItem } from "./get-page-item.mjs";
|
|
7
|
+
import { storyblokListGraphqlContentTypeItems } from "./list-graphql-content-type-items.mjs";
|
|
8
|
+
import { storyblokQueryPageItems } from "./query-page-items.mjs";
|
|
9
|
+
import { storyblokRetrieveLinksGraphql } from "./retrieve-links-graphql.mjs";
|
|
10
|
+
import { storyblokRetrieveTags } from "./retrieve-tags.mjs";
|
|
11
|
+
export { storyblokFetchContentTypeItemsGraphql, storyblokFetchGraphqlContentItem, storyblokGetApp, storyblokGetDatasourceEntries, storyblokGetGraphqlRateLimit, storyblokGetPageItem, storyblokListGraphqlContentTypeItems, storyblokQueryPageItems, storyblokRetrieveLinksGraphql, storyblokRetrieveTags };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-graphql-content-type-items.ts
|
|
4
|
+
const StoryblokListGraphqlContentTypeItemsInput = zod.z.object({
|
|
5
|
+
query: zod.z.string().describe("GraphQL query string for retrieving content items. Use the pattern: { [ContentType]Items { total items { id name slug full_slug created_at published_at uuid content } } } where [ContentType] is dynamically generated (e.g., PageItems, BlogArticleItems). Available fields: id, name, slug, full_slug, parent_id, position, is_startpage, first_published_at, created_at, published_at, uuid, content, alternates, translated_slugs. Supports pagination (page, per_page), filtering (with_tag, starts_with, by_uuids, excluding_ids), and language parameter for localized content."),
|
|
6
|
+
version: zod.z.string().default("published").describe("Content version to retrieve. Use 'published' for published content (default) or 'draft' for unpublished/draft content.").optional()
|
|
7
|
+
}).describe("Request model for querying Storyblok GraphQL content type items.");
|
|
8
|
+
const StoryblokListGraphqlContentTypeItemsOutput = zod.z.object({
|
|
9
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("GraphQL response data containing the requested content items. Structure varies based on the ContentType queried. Typically contains: { [ContentType]Items: { total: int, items: [content objects] } }").nullable().optional(),
|
|
10
|
+
errors: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).describe("GraphQL errors if the query failed. Each error contains message, locations, and extensions.").nullable().optional()
|
|
11
|
+
}).describe("Response model for Storyblok GraphQL content type items query.");
|
|
12
|
+
const storyblokListGraphqlContentTypeItems = require_action.action("STORYBLOK_LIST_GRAPHQL_CONTENT_TYPE_ITEMS", {
|
|
13
|
+
slug: "storyblok-list-graphql-content-type-items",
|
|
14
|
+
name: "List GraphQL Content Type Items",
|
|
15
|
+
description: "Tool to retrieve multiple content items with pagination, filtering, and relation resolution for any Storyblok content type via GraphQL. Content types are dynamically generated as [ContentType]Items (e.g., PageItems, BlogArticleItems). Use when you need to query structured content with flexible field selection and filtering.",
|
|
16
|
+
input: StoryblokListGraphqlContentTypeItemsInput,
|
|
17
|
+
output: StoryblokListGraphqlContentTypeItemsOutput
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
exports.storyblokListGraphqlContentTypeItems = storyblokListGraphqlContentTypeItems;
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=list-graphql-content-type-items.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-graphql-content-type-items.cjs","names":["z","action"],"sources":["../../src/actions/list-graphql-content-type-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokListGraphqlContentTypeItemsInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"GraphQL query string for retrieving content items. Use the pattern: { [ContentType]Items { total items { id name slug full_slug created_at published_at uuid content } } } where [ContentType] is dynamically generated (e.g., PageItems, BlogArticleItems). Available fields: id, name, slug, full_slug, parent_id, position, is_startpage, first_published_at, created_at, published_at, uuid, content, alternates, translated_slugs. Supports pagination (page, per_page), filtering (with_tag, starts_with, by_uuids, excluding_ids), and language parameter for localized content.\"),\n version: z.string().default(\"published\").describe(\"Content version to retrieve. Use 'published' for published content (default) or 'draft' for unpublished/draft content.\").optional(),\n}).describe(\"Request model for querying Storyblok GraphQL content type items.\");\nexport const StoryblokListGraphqlContentTypeItemsOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"GraphQL response data containing the requested content items. Structure varies based on the ContentType queried. Typically contains: { [ContentType]Items: { total: int, items: [content objects] } }\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the query failed. Each error contains message, locations, and extensions.\").nullable().optional(),\n}).describe(\"Response model for Storyblok GraphQL content type items query.\");\n\nexport const storyblokListGraphqlContentTypeItems = action(\"STORYBLOK_LIST_GRAPHQL_CONTENT_TYPE_ITEMS\", {\n slug: \"storyblok-list-graphql-content-type-items\",\n name: \"List GraphQL Content Type Items\",\n description: \"Tool to retrieve multiple content items with pagination, filtering, and relation resolution for any Storyblok content type via GraphQL. Content types are dynamically generated as [ContentType]Items (e.g., PageItems, BlogArticleItems). Use when you need to query structured content with flexible field selection and filtering.\",\n input: StoryblokListGraphqlContentTypeItemsInput,\n output: StoryblokListGraphqlContentTypeItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yjBAAyjB;CACplB,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,SAAS,kEAAkE;AAC9E,MAAa,6CAA2DA,IAAAA,EAAE,OAAO;CAC/E,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9Q,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACjL,CAAC,CAAC,CAAC,SAAS,gEAAgE;AAE5E,MAAa,uCAAuCC,eAAAA,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-graphql-content-type-items.d.ts
|
|
4
|
+
declare const StoryblokListGraphqlContentTypeItemsInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokListGraphqlContentTypeItemsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokListGraphqlContentTypeItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokListGraphqlContentTypeItems };
|
|
9
|
+
//# sourceMappingURL=list-graphql-content-type-items.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-graphql-content-type-items.d.cts","names":[],"sources":["../../src/actions/list-graphql-content-type-items.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGqB;AAAA,cAClE,0CAAA,EAA4C,CAAA,CAAE,UAGkB;AAAA,cAEhE,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-graphql-content-type-items.d.ts
|
|
4
|
+
declare const StoryblokListGraphqlContentTypeItemsInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokListGraphqlContentTypeItemsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokListGraphqlContentTypeItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokListGraphqlContentTypeItems };
|
|
9
|
+
//# sourceMappingURL=list-graphql-content-type-items.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-graphql-content-type-items.d.mts","names":[],"sources":["../../src/actions/list-graphql-content-type-items.ts"],"mappings":";;;cAIa,yCAAA,EAA2C,CAAA,CAAE,UAGqB;AAAA,cAClE,0CAAA,EAA4C,CAAA,CAAE,UAGkB;AAAA,cAEhE,oCAAA,gCAAoC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
const storyblokListGraphqlContentTypeItems = action("STORYBLOK_LIST_GRAPHQL_CONTENT_TYPE_ITEMS", {
|
|
4
|
+
slug: "storyblok-list-graphql-content-type-items",
|
|
5
|
+
name: "List GraphQL Content Type Items",
|
|
6
|
+
description: "Tool to retrieve multiple content items with pagination, filtering, and relation resolution for any Storyblok content type via GraphQL. Content types are dynamically generated as [ContentType]Items (e.g., PageItems, BlogArticleItems). Use when you need to query structured content with flexible field selection and filtering.",
|
|
7
|
+
input: z.object({
|
|
8
|
+
query: z.string().describe("GraphQL query string for retrieving content items. Use the pattern: { [ContentType]Items { total items { id name slug full_slug created_at published_at uuid content } } } where [ContentType] is dynamically generated (e.g., PageItems, BlogArticleItems). Available fields: id, name, slug, full_slug, parent_id, position, is_startpage, first_published_at, created_at, published_at, uuid, content, alternates, translated_slugs. Supports pagination (page, per_page), filtering (with_tag, starts_with, by_uuids, excluding_ids), and language parameter for localized content."),
|
|
9
|
+
version: z.string().default("published").describe("Content version to retrieve. Use 'published' for published content (default) or 'draft' for unpublished/draft content.").optional()
|
|
10
|
+
}).describe("Request model for querying Storyblok GraphQL content type items."),
|
|
11
|
+
output: z.object({
|
|
12
|
+
data: z.record(z.string(), z.unknown()).describe("GraphQL response data containing the requested content items. Structure varies based on the ContentType queried. Typically contains: { [ContentType]Items: { total: int, items: [content objects] } }").nullable().optional(),
|
|
13
|
+
errors: z.array(z.record(z.string(), z.unknown())).describe("GraphQL errors if the query failed. Each error contains message, locations, and extensions.").nullable().optional()
|
|
14
|
+
}).describe("Response model for Storyblok GraphQL content type items query.")
|
|
15
|
+
});
|
|
16
|
+
//#endregion
|
|
17
|
+
export { storyblokListGraphqlContentTypeItems };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=list-graphql-content-type-items.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-graphql-content-type-items.mjs","names":[],"sources":["../../src/actions/list-graphql-content-type-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokListGraphqlContentTypeItemsInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"GraphQL query string for retrieving content items. Use the pattern: { [ContentType]Items { total items { id name slug full_slug created_at published_at uuid content } } } where [ContentType] is dynamically generated (e.g., PageItems, BlogArticleItems). Available fields: id, name, slug, full_slug, parent_id, position, is_startpage, first_published_at, created_at, published_at, uuid, content, alternates, translated_slugs. Supports pagination (page, per_page), filtering (with_tag, starts_with, by_uuids, excluding_ids), and language parameter for localized content.\"),\n version: z.string().default(\"published\").describe(\"Content version to retrieve. Use 'published' for published content (default) or 'draft' for unpublished/draft content.\").optional(),\n}).describe(\"Request model for querying Storyblok GraphQL content type items.\");\nexport const StoryblokListGraphqlContentTypeItemsOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"GraphQL response data containing the requested content items. Structure varies based on the ContentType queried. Typically contains: { [ContentType]Items: { total: int, items: [content objects] } }\").nullable().optional(),\n errors: z.array(z.record(z.string(), z.unknown())).describe(\"GraphQL errors if the query failed. Each error contains message, locations, and extensions.\").nullable().optional(),\n}).describe(\"Response model for Storyblok GraphQL content type items query.\");\n\nexport const storyblokListGraphqlContentTypeItems = action(\"STORYBLOK_LIST_GRAPHQL_CONTENT_TYPE_ITEMS\", {\n slug: \"storyblok-list-graphql-content-type-items\",\n name: \"List GraphQL Content Type Items\",\n description: \"Tool to retrieve multiple content items with pagination, filtering, and relation resolution for any Storyblok content type via GraphQL. Content types are dynamically generated as [ContentType]Items (e.g., PageItems, BlogArticleItems). Use when you need to query structured content with flexible field selection and filtering.\",\n input: StoryblokListGraphqlContentTypeItemsInput,\n output: StoryblokListGraphqlContentTypeItemsOutput,\n});\n"],"mappings":";;AAaA,MAAa,uCAAuC,OAAO,6CAA6C;CACtG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbqE,EAAE,OAAO;EAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yjBAAyjB;EACplB,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,WAAW,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS;CACvL,CAAC,CAAC,CAAC,SAAS,kEAUH;CACP,QAVsE,EAAE,OAAO;EAC/E,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,uMAAuM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC9Q,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,6FAA6F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjL,CAAC,CAAC,CAAC,SAAS,gEAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/query-page-items.ts
|
|
4
|
+
const StoryblokQueryPageItemsInput = zod.z.object({
|
|
5
|
+
query: zod.z.string().describe("GraphQL query string for PageItems. PageItems is a dynamically generated query type for the 'page' content type that retrieves multiple page items. Include fields like id, name, slug, full_slug, uuid, content, published_at, etc."),
|
|
6
|
+
variables: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional variables for the GraphQL query. Can include filters like starts_with (filter by path), first_published_at_lt (filter by publish date), excluding_slugs (exclude specific slugs), or pagination parameters like first, after, last, before.").optional()
|
|
7
|
+
});
|
|
8
|
+
const StoryblokQueryPageItems_GraphqlErrorLocationSchema = zod.z.object({
|
|
9
|
+
line: zod.z.number().int().describe("The line number where the error occurred."),
|
|
10
|
+
column: zod.z.number().int().describe("The column number where the error occurred.")
|
|
11
|
+
}).describe("Indicates where in the GraphQL document the error occurred.");
|
|
12
|
+
const StoryblokQueryPageItems_GraphqlErrorSchema = zod.z.object({
|
|
13
|
+
path: zod.z.array(zod.z.union([zod.z.string(), zod.z.number().int()])).describe("The path of the response field which experienced the error.").nullable().optional(),
|
|
14
|
+
message: zod.z.string().describe("A human-readable description of the error that occurred."),
|
|
15
|
+
locations: zod.z.array(StoryblokQueryPageItems_GraphqlErrorLocationSchema).describe("Indicates where in the GraphQL document the error occurred.").nullable().optional(),
|
|
16
|
+
extensions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Additional arbitrary information about the error, such as error codes or metadata.").nullable().optional()
|
|
17
|
+
}).describe("Information about an error that occurred during validation or execution.");
|
|
18
|
+
const StoryblokQueryPageItemsOutput = zod.z.object({
|
|
19
|
+
data: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. For PageItems queries, typically contains a PageItems object with 'total' count and 'items' array. May contain partial data if errors occurred during field resolver execution.").nullable().optional(),
|
|
20
|
+
errors: zod.z.array(StoryblokQueryPageItems_GraphqlErrorSchema).describe("Contains information about any errors that occurred during validation or execution. Each error contains message, locations, path, and extensions fields. Not present if no errors occurred.").nullable().optional(),
|
|
21
|
+
extensions: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.").nullable().optional()
|
|
22
|
+
}).describe("Standard GraphQL response format containing data, errors, and optional extensions.");
|
|
23
|
+
const storyblokQueryPageItems = require_action.action("STORYBLOK_QUERY_PAGE_ITEMS", {
|
|
24
|
+
slug: "storyblok-query-page-items",
|
|
25
|
+
name: "Query page items via GraphQL",
|
|
26
|
+
description: "Execute GraphQL queries to retrieve multiple page items from Storyblok with filtering options. Use when you need to fetch page content with filters like path prefix, publish date, or slug exclusions.",
|
|
27
|
+
input: StoryblokQueryPageItemsInput,
|
|
28
|
+
output: StoryblokQueryPageItemsOutput
|
|
29
|
+
});
|
|
30
|
+
//#endregion
|
|
31
|
+
exports.storyblokQueryPageItems = storyblokQueryPageItems;
|
|
32
|
+
|
|
33
|
+
//# sourceMappingURL=query-page-items.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-page-items.cjs","names":["z","action"],"sources":["../../src/actions/query-page-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokQueryPageItemsInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"GraphQL query string for PageItems. PageItems is a dynamically generated query type for the 'page' content type that retrieves multiple page items. Include fields like id, name, slug, full_slug, uuid, content, published_at, etc.\"),\n variables: z.record(z.string(), z.unknown()).describe(\"Optional variables for the GraphQL query. Can include filters like starts_with (filter by path), first_published_at_lt (filter by publish date), excluding_slugs (exclude specific slugs), or pagination parameters like first, after, last, before.\").optional(),\n});\nconst StoryblokQueryPageItems_GraphqlErrorLocationSchema: z.ZodTypeAny = z.object({\n line: z.number().int().describe(\"The line number where the error occurred.\"),\n column: z.number().int().describe(\"The column number where the error occurred.\"),\n}).describe(\"Indicates where in the GraphQL document the error occurred.\");\nconst StoryblokQueryPageItems_GraphqlErrorSchema: z.ZodTypeAny = z.object({\n path: z.array(z.union([z.string(), z.number().int()])).describe(\"The path of the response field which experienced the error.\").nullable().optional(),\n message: z.string().describe(\"A human-readable description of the error that occurred.\"),\n locations: z.array(StoryblokQueryPageItems_GraphqlErrorLocationSchema).describe(\"Indicates where in the GraphQL document the error occurred.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Additional arbitrary information about the error, such as error codes or metadata.\").nullable().optional(),\n}).describe(\"Information about an error that occurred during validation or execution.\");\nexport const StoryblokQueryPageItemsOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. For PageItems queries, typically contains a PageItems object with 'total' count and 'items' array. May contain partial data if errors occurred during field resolver execution.\").nullable().optional(),\n errors: z.array(StoryblokQueryPageItems_GraphqlErrorSchema).describe(\"Contains information about any errors that occurred during validation or execution. Each error contains message, locations, path, and extensions fields. Not present if no errors occurred.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.\").nullable().optional(),\n}).describe(\"Standard GraphQL response format containing data, errors, and optional extensions.\");\n\nexport const storyblokQueryPageItems = action(\"STORYBLOK_QUERY_PAGE_ITEMS\", {\n slug: \"storyblok-query-page-items\",\n name: \"Query page items via GraphQL\",\n description: \"Execute GraphQL queries to retrieve multiple page items from Storyblok with filtering options. Use when you need to fetch page content with filters like path prefix, publish date, or slug exclusions.\",\n input: StoryblokQueryPageItemsInput,\n output: StoryblokQueryPageItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6CA,IAAAA,EAAE,OAAO;CACjE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO;CACjQ,WAAWA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;AACzT,CAAC;AACD,MAAM,qDAAmEA,IAAAA,EAAE,OAAO;CAChF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC3E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,6CAA2DA,IAAAA,EAAE,OAAO;CACxE,MAAMA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,WAAWA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,SAAS,0EAA0E;AACtF,MAAa,gCAA8CA,IAAAA,EAAE,OAAO;CAClE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sRAAsR,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7V,QAAQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxR,YAAYA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvM,CAAC,CAAC,CAAC,SAAS,oFAAoF;AAEhG,MAAa,0BAA0BC,eAAAA,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/query-page-items.d.ts
|
|
4
|
+
declare const StoryblokQueryPageItemsInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokQueryPageItemsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokQueryPageItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokQueryPageItems };
|
|
9
|
+
//# sourceMappingURL=query-page-items.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-page-items.d.cts","names":[],"sources":["../../src/actions/query-page-items.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cAWW,6BAAA,EAA+B,CAAA,CAAE,UAImD;AAAA,cAEpF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/query-page-items.d.ts
|
|
4
|
+
declare const StoryblokQueryPageItemsInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokQueryPageItemsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokQueryPageItems: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokQueryPageItems };
|
|
9
|
+
//# sourceMappingURL=query-page-items.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-page-items.d.mts","names":[],"sources":["../../src/actions/query-page-items.ts"],"mappings":";;;cAIa,4BAAA,EAA8B,CAAA,CAAE,UAG3C;AAAA,cAWW,6BAAA,EAA+B,CAAA,CAAE,UAImD;AAAA,cAEpF,uBAAA,gCAAuB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/query-page-items.ts
|
|
4
|
+
const StoryblokQueryPageItemsInput = z.object({
|
|
5
|
+
query: z.string().describe("GraphQL query string for PageItems. PageItems is a dynamically generated query type for the 'page' content type that retrieves multiple page items. Include fields like id, name, slug, full_slug, uuid, content, published_at, etc."),
|
|
6
|
+
variables: z.record(z.string(), z.unknown()).describe("Optional variables for the GraphQL query. Can include filters like starts_with (filter by path), first_published_at_lt (filter by publish date), excluding_slugs (exclude specific slugs), or pagination parameters like first, after, last, before.").optional()
|
|
7
|
+
});
|
|
8
|
+
const StoryblokQueryPageItems_GraphqlErrorLocationSchema = z.object({
|
|
9
|
+
line: z.number().int().describe("The line number where the error occurred."),
|
|
10
|
+
column: z.number().int().describe("The column number where the error occurred.")
|
|
11
|
+
}).describe("Indicates where in the GraphQL document the error occurred.");
|
|
12
|
+
const StoryblokQueryPageItems_GraphqlErrorSchema = z.object({
|
|
13
|
+
path: z.array(z.union([z.string(), z.number().int()])).describe("The path of the response field which experienced the error.").nullable().optional(),
|
|
14
|
+
message: z.string().describe("A human-readable description of the error that occurred."),
|
|
15
|
+
locations: z.array(StoryblokQueryPageItems_GraphqlErrorLocationSchema).describe("Indicates where in the GraphQL document the error occurred.").nullable().optional(),
|
|
16
|
+
extensions: z.record(z.string(), z.unknown()).describe("Additional arbitrary information about the error, such as error codes or metadata.").nullable().optional()
|
|
17
|
+
}).describe("Information about an error that occurred during validation or execution.");
|
|
18
|
+
const storyblokQueryPageItems = action("STORYBLOK_QUERY_PAGE_ITEMS", {
|
|
19
|
+
slug: "storyblok-query-page-items",
|
|
20
|
+
name: "Query page items via GraphQL",
|
|
21
|
+
description: "Execute GraphQL queries to retrieve multiple page items from Storyblok with filtering options. Use when you need to fetch page content with filters like path prefix, publish date, or slug exclusions.",
|
|
22
|
+
input: StoryblokQueryPageItemsInput,
|
|
23
|
+
output: z.object({
|
|
24
|
+
data: z.record(z.string(), z.unknown()).describe("Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. For PageItems queries, typically contains a PageItems object with 'total' count and 'items' array. May contain partial data if errors occurred during field resolver execution.").nullable().optional(),
|
|
25
|
+
errors: z.array(StoryblokQueryPageItems_GraphqlErrorSchema).describe("Contains information about any errors that occurred during validation or execution. Each error contains message, locations, path, and extensions fields. Not present if no errors occurred.").nullable().optional(),
|
|
26
|
+
extensions: z.record(z.string(), z.unknown()).describe("Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.").nullable().optional()
|
|
27
|
+
}).describe("Standard GraphQL response format containing data, errors, and optional extensions.")
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { storyblokQueryPageItems };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=query-page-items.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-page-items.mjs","names":[],"sources":["../../src/actions/query-page-items.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokQueryPageItemsInput: z.ZodTypeAny = z.object({\n query: z.string().describe(\"GraphQL query string for PageItems. PageItems is a dynamically generated query type for the 'page' content type that retrieves multiple page items. Include fields like id, name, slug, full_slug, uuid, content, published_at, etc.\"),\n variables: z.record(z.string(), z.unknown()).describe(\"Optional variables for the GraphQL query. Can include filters like starts_with (filter by path), first_published_at_lt (filter by publish date), excluding_slugs (exclude specific slugs), or pagination parameters like first, after, last, before.\").optional(),\n});\nconst StoryblokQueryPageItems_GraphqlErrorLocationSchema: z.ZodTypeAny = z.object({\n line: z.number().int().describe(\"The line number where the error occurred.\"),\n column: z.number().int().describe(\"The column number where the error occurred.\"),\n}).describe(\"Indicates where in the GraphQL document the error occurred.\");\nconst StoryblokQueryPageItems_GraphqlErrorSchema: z.ZodTypeAny = z.object({\n path: z.array(z.union([z.string(), z.number().int()])).describe(\"The path of the response field which experienced the error.\").nullable().optional(),\n message: z.string().describe(\"A human-readable description of the error that occurred.\"),\n locations: z.array(StoryblokQueryPageItems_GraphqlErrorLocationSchema).describe(\"Indicates where in the GraphQL document the error occurred.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Additional arbitrary information about the error, such as error codes or metadata.\").nullable().optional(),\n}).describe(\"Information about an error that occurred during validation or execution.\");\nexport const StoryblokQueryPageItemsOutput: z.ZodTypeAny = z.object({\n data: z.record(z.string(), z.unknown()).describe(\"Contains the result of the executed GraphQL operation. The structure mirrors the shape of the query. For PageItems queries, typically contains a PageItems object with 'total' count and 'items' array. May contain partial data if errors occurred during field resolver execution.\").nullable().optional(),\n errors: z.array(StoryblokQueryPageItems_GraphqlErrorSchema).describe(\"Contains information about any errors that occurred during validation or execution. Each error contains message, locations, path, and extensions fields. Not present if no errors occurred.\").nullable().optional(),\n extensions: z.record(z.string(), z.unknown()).describe(\"Optional field for additional metadata about the response. Content is at the discretion of the GraphQL implementation.\").nullable().optional(),\n}).describe(\"Standard GraphQL response format containing data, errors, and optional extensions.\");\n\nexport const storyblokQueryPageItems = action(\"STORYBLOK_QUERY_PAGE_ITEMS\", {\n slug: \"storyblok-query-page-items\",\n name: \"Query page items via GraphQL\",\n description: \"Execute GraphQL queries to retrieve multiple page items from Storyblok with filtering options. Use when you need to fetch page content with filters like path prefix, publish date, or slug exclusions.\",\n input: StoryblokQueryPageItemsInput,\n output: StoryblokQueryPageItemsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,+BAA6C,EAAE,OAAO;CACjE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,sOAAsO;CACjQ,WAAW,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sPAAsP,CAAC,CAAC,SAAS;AACzT,CAAC;AACD,MAAM,qDAAmE,EAAE,OAAO;CAChF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2CAA2C;CAC3E,QAAQ,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C;AACjF,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,0DAA0D;CACvF,WAAW,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnK,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,oFAAoF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnK,CAAC,CAAC,CAAC,SAAS,0EAA0E;AAOtF,MAAa,0BAA0B,OAAO,8BAA8B;CAC1E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXyD,EAAE,OAAO;EAClE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,sRAAsR,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC7V,QAAQ,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,6LAA6L,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxR,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,wHAAwH,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvM,CAAC,CAAC,CAAC,SAAS,oFAOF;AACV,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/retrieve-links-graphql.ts
|
|
4
|
+
const StoryblokRetrieveLinksGraphqlInput = zod.z.object({ query: zod.z.string().default("query { Links { items { id uuid slug name published } } }").describe("GraphQL query string to retrieve links. Default query fetches all standard link fields (id, uuid, slug, name, published).").optional() }).describe("Request parameters for retrieving links via GraphQL query.");
|
|
5
|
+
const StoryblokRetrieveLinksGraphql_LinkItemSchema = zod.z.object({
|
|
6
|
+
id: zod.z.number().int().describe("Unique numeric identifier for the link entry").nullable().optional(),
|
|
7
|
+
name: zod.z.string().describe("Display name or title of the link").nullable().optional(),
|
|
8
|
+
slug: zod.z.string().describe("URL-friendly slug of the link (e.g., 'about-us', 'contact')").nullable().optional(),
|
|
9
|
+
uuid: zod.z.string().describe("Universal unique identifier (UUID) for the link").nullable().optional(),
|
|
10
|
+
published: zod.z.boolean().describe("Publication status - true if the link is published and visible, false otherwise").nullable().optional()
|
|
11
|
+
}).describe("Individual link entry in the navigation structure.");
|
|
12
|
+
const StoryblokRetrieveLinksGraphql_LinksDataSchema = zod.z.object({ items: zod.z.array(StoryblokRetrieveLinksGraphql_LinkItemSchema).describe("Array of link entries available for navigation").nullable().optional() }).describe("Links collection wrapper.");
|
|
13
|
+
const StoryblokRetrieveLinksGraphql_LinksQueryDataSchema = zod.z.object({ Links: StoryblokRetrieveLinksGraphql_LinksDataSchema.nullable().optional() }).describe("Top-level Links query result.");
|
|
14
|
+
const StoryblokRetrieveLinksGraphqlOutput = zod.z.object({ data: StoryblokRetrieveLinksGraphql_LinksQueryDataSchema.nullable().optional() }).describe("Response containing links data from GraphQL API.");
|
|
15
|
+
const storyblokRetrieveLinksGraphql = require_action.action("STORYBLOK_RETRIEVE_LINKS_GRAPHQL", {
|
|
16
|
+
slug: "storyblok-retrieve-links-graphql",
|
|
17
|
+
name: "Retrieve Links via GraphQL",
|
|
18
|
+
description: "Tool to retrieve links for navigation using Storyblok's GraphQL API. Use when you need to fetch navigation links with their metadata (id, uuid, slug, name, published status).",
|
|
19
|
+
input: StoryblokRetrieveLinksGraphqlInput,
|
|
20
|
+
output: StoryblokRetrieveLinksGraphqlOutput
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.storyblokRetrieveLinksGraphql = storyblokRetrieveLinksGraphql;
|
|
24
|
+
|
|
25
|
+
//# sourceMappingURL=retrieve-links-graphql.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-links-graphql.cjs","names":["z","action"],"sources":["../../src/actions/retrieve-links-graphql.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const StoryblokRetrieveLinksGraphqlInput: z.ZodTypeAny = z.object({\n query: z.string().default(\"query { Links { items { id uuid slug name published } } }\").describe(\"GraphQL query string to retrieve links. Default query fetches all standard link fields (id, uuid, slug, name, published).\").optional(),\n}).describe(\"Request parameters for retrieving links via GraphQL query.\");\nconst StoryblokRetrieveLinksGraphql_LinkItemSchema: z.ZodTypeAny = z.object({\n id: z.number().int().describe(\"Unique numeric identifier for the link entry\").nullable().optional(),\n name: z.string().describe(\"Display name or title of the link\").nullable().optional(),\n slug: z.string().describe(\"URL-friendly slug of the link (e.g., 'about-us', 'contact')\").nullable().optional(),\n uuid: z.string().describe(\"Universal unique identifier (UUID) for the link\").nullable().optional(),\n published: z.boolean().describe(\"Publication status - true if the link is published and visible, false otherwise\").nullable().optional(),\n}).describe(\"Individual link entry in the navigation structure.\");\nconst StoryblokRetrieveLinksGraphql_LinksDataSchema: z.ZodTypeAny = z.object({\n items: z.array(StoryblokRetrieveLinksGraphql_LinkItemSchema).describe(\"Array of link entries available for navigation\").nullable().optional(),\n}).describe(\"Links collection wrapper.\");\nconst StoryblokRetrieveLinksGraphql_LinksQueryDataSchema: z.ZodTypeAny = z.object({\n Links: StoryblokRetrieveLinksGraphql_LinksDataSchema.nullable().optional(),\n}).describe(\"Top-level Links query result.\");\nexport const StoryblokRetrieveLinksGraphqlOutput: z.ZodTypeAny = z.object({\n data: StoryblokRetrieveLinksGraphql_LinksQueryDataSchema.nullable().optional(),\n}).describe(\"Response containing links data from GraphQL API.\");\n\nexport const storyblokRetrieveLinksGraphql = action(\"STORYBLOK_RETRIEVE_LINKS_GRAPHQL\", {\n slug: \"storyblok-retrieve-links-graphql\",\n name: \"Retrieve Links via GraphQL\",\n description: \"Tool to retrieve links for navigation using Storyblok's GraphQL API. Use when you need to fetch navigation links with their metadata (id, uuid, slug, name, published status).\",\n input: StoryblokRetrieveLinksGraphqlInput,\n output: StoryblokRetrieveLinksGraphqlOutput,\n});\n"],"mappings":";;;AAIA,MAAa,qCAAmDA,IAAAA,EAAE,OAAO,EACvE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,2DAA2D,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS,EACxO,CAAC,CAAC,CAAC,SAAS,4DAA4D;AACxE,MAAM,+CAA6DA,IAAAA,EAAE,OAAO;CAC1E,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,WAAWA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzI,CAAC,CAAC,CAAC,SAAS,oDAAoD;AAChE,MAAM,gDAA8DA,IAAAA,EAAE,OAAO,EAC3E,OAAOA,IAAAA,EAAE,MAAM,4CAA4C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS,EAC9I,CAAC,CAAC,CAAC,SAAS,2BAA2B;AACvC,MAAM,qDAAmEA,IAAAA,EAAE,OAAO,EAChF,OAAO,8CAA8C,SAAS,CAAC,CAAC,SAAS,EAC3E,CAAC,CAAC,CAAC,SAAS,+BAA+B;AAC3C,MAAa,sCAAoDA,IAAAA,EAAE,OAAO,EACxE,MAAM,mDAAmD,SAAS,CAAC,CAAC,SAAS,EAC/E,CAAC,CAAC,CAAC,SAAS,kDAAkD;AAE9D,MAAa,gCAAgCC,eAAAA,OAAO,oCAAoC;CACtF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-links-graphql.d.ts
|
|
4
|
+
declare const StoryblokRetrieveLinksGraphqlInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokRetrieveLinksGraphqlOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokRetrieveLinksGraphql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokRetrieveLinksGraphql };
|
|
9
|
+
//# sourceMappingURL=retrieve-links-graphql.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-links-graphql.d.cts","names":[],"sources":["../../src/actions/retrieve-links-graphql.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEsB;AAAA,cAc5D,mCAAA,EAAqC,CAAA,CAAE,UAEW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/retrieve-links-graphql.d.ts
|
|
4
|
+
declare const StoryblokRetrieveLinksGraphqlInput: z.ZodTypeAny;
|
|
5
|
+
declare const StoryblokRetrieveLinksGraphqlOutput: z.ZodTypeAny;
|
|
6
|
+
declare const storyblokRetrieveLinksGraphql: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { storyblokRetrieveLinksGraphql };
|
|
9
|
+
//# sourceMappingURL=retrieve-links-graphql.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"retrieve-links-graphql.d.mts","names":[],"sources":["../../src/actions/retrieve-links-graphql.ts"],"mappings":";;;cAIa,kCAAA,EAAoC,CAAA,CAAE,UAEsB;AAAA,cAc5D,mCAAA,EAAqC,CAAA,CAAE,UAEW;AAAA,cAElD,6BAAA,gCAA6B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/retrieve-links-graphql.ts
|
|
4
|
+
const StoryblokRetrieveLinksGraphqlInput = z.object({ query: z.string().default("query { Links { items { id uuid slug name published } } }").describe("GraphQL query string to retrieve links. Default query fetches all standard link fields (id, uuid, slug, name, published).").optional() }).describe("Request parameters for retrieving links via GraphQL query.");
|
|
5
|
+
const StoryblokRetrieveLinksGraphql_LinkItemSchema = z.object({
|
|
6
|
+
id: z.number().int().describe("Unique numeric identifier for the link entry").nullable().optional(),
|
|
7
|
+
name: z.string().describe("Display name or title of the link").nullable().optional(),
|
|
8
|
+
slug: z.string().describe("URL-friendly slug of the link (e.g., 'about-us', 'contact')").nullable().optional(),
|
|
9
|
+
uuid: z.string().describe("Universal unique identifier (UUID) for the link").nullable().optional(),
|
|
10
|
+
published: z.boolean().describe("Publication status - true if the link is published and visible, false otherwise").nullable().optional()
|
|
11
|
+
}).describe("Individual link entry in the navigation structure.");
|
|
12
|
+
const StoryblokRetrieveLinksGraphql_LinksDataSchema = z.object({ items: z.array(StoryblokRetrieveLinksGraphql_LinkItemSchema).describe("Array of link entries available for navigation").nullable().optional() }).describe("Links collection wrapper.");
|
|
13
|
+
const StoryblokRetrieveLinksGraphql_LinksQueryDataSchema = z.object({ Links: StoryblokRetrieveLinksGraphql_LinksDataSchema.nullable().optional() }).describe("Top-level Links query result.");
|
|
14
|
+
const storyblokRetrieveLinksGraphql = action("STORYBLOK_RETRIEVE_LINKS_GRAPHQL", {
|
|
15
|
+
slug: "storyblok-retrieve-links-graphql",
|
|
16
|
+
name: "Retrieve Links via GraphQL",
|
|
17
|
+
description: "Tool to retrieve links for navigation using Storyblok's GraphQL API. Use when you need to fetch navigation links with their metadata (id, uuid, slug, name, published status).",
|
|
18
|
+
input: StoryblokRetrieveLinksGraphqlInput,
|
|
19
|
+
output: z.object({ data: StoryblokRetrieveLinksGraphql_LinksQueryDataSchema.nullable().optional() }).describe("Response containing links data from GraphQL API.")
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { storyblokRetrieveLinksGraphql };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=retrieve-links-graphql.mjs.map
|