@keystrokehq/gemini 0.1.1 → 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/count-tokens.cjs +1 -1
- package/dist/actions/count-tokens.cjs.map +1 -1
- package/dist/actions/count-tokens.d.cts +2 -8
- package/dist/actions/count-tokens.d.mts +2 -8
- package/dist/actions/count-tokens.mjs +1 -1
- package/dist/actions/count-tokens.mjs.map +1 -1
- package/dist/actions/embed-content.d.cts +1 -4
- package/dist/actions/embed-content.d.mts +1 -4
- package/dist/actions/generate-content.cjs +7 -7
- package/dist/actions/generate-content.cjs.map +1 -1
- package/dist/actions/generate-content.d.cts +8 -16
- package/dist/actions/generate-content.d.cts.map +1 -1
- package/dist/actions/generate-content.d.mts +8 -16
- package/dist/actions/generate-content.d.mts.map +1 -1
- package/dist/actions/generate-content.mjs +7 -7
- package/dist/actions/generate-content.mjs.map +1 -1
- package/dist/actions/generate-image.d.cts +1 -7
- package/dist/actions/generate-image.d.mts +1 -7
- package/dist/actions/generate-videos.cjs +2 -2
- package/dist/actions/generate-videos.cjs.map +1 -1
- package/dist/actions/generate-videos.d.cts +3 -11
- package/dist/actions/generate-videos.d.cts.map +1 -1
- package/dist/actions/generate-videos.d.mts +3 -11
- package/dist/actions/generate-videos.d.mts.map +1 -1
- package/dist/actions/generate-videos.mjs +2 -2
- package/dist/actions/generate-videos.mjs.map +1 -1
- package/dist/actions/list-models.cjs +14 -14
- package/dist/actions/list-models.cjs.map +1 -1
- package/dist/actions/list-models.d.cts +26 -60
- package/dist/actions/list-models.d.mts +26 -60
- package/dist/actions/list-models.mjs +14 -14
- package/dist/actions/list-models.mjs.map +1 -1
- package/dist/actions/wait-for-video.cjs +4 -4
- package/dist/actions/wait-for-video.cjs.map +1 -1
- package/dist/actions/wait-for-video.d.cts +5 -18
- package/dist/actions/wait-for-video.d.mts +5 -18
- package/dist/actions/wait-for-video.mjs +4 -4
- package/dist/actions/wait-for-video.mjs.map +1 -1
- package/package.json +1 -1
package/dist/action.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.cjs","names":["gemini","executeGeminiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action
|
|
1
|
+
{"version":3,"file":"action.cjs","names":["gemini","executeGeminiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return gemini.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
package/dist/action.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action
|
|
1
|
+
{"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return gemini.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
|
|
@@ -11,7 +11,7 @@ const GeminiCountTokens_TokenDetailsSchema = zod.z.object({
|
|
|
11
11
|
}).describe("Details about tokens for a specific modality.");
|
|
12
12
|
const GeminiCountTokensOutput = zod.z.object({
|
|
13
13
|
total_tokens: zod.z.number().int().describe("Total number of tokens in the input").nullable(),
|
|
14
|
-
token_details: zod.z.
|
|
14
|
+
token_details: zod.z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").nullable().optional()
|
|
15
15
|
});
|
|
16
16
|
const geminiCountTokens = require_action.action("GEMINI_COUNT_TOKENS", {
|
|
17
17
|
slug: "gemini-count-tokens",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-tokens.cjs","names":["z","action"],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput = z.object({\n text: z.string().describe(\"Text to count tokens for\"),\n model: z.string().default(\"gemini-2.0-flash\").describe(\"Model to use for token counting. Must be a model that supports the countTokens method. Use the ListModels action to see available models and their supported methods.\").optional(),\n});\nconst GeminiCountTokens_TokenDetailsSchema = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\").nullable(),\n token_count: z.number().int().describe(\"Number of tokens for this modality\").nullable(),\n}).describe(\"Details about tokens for a specific modality.\");\nexport const GeminiCountTokensOutput = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens in the input\").nullable(),\n token_details: z.
|
|
1
|
+
{"version":3,"file":"count-tokens.cjs","names":["z","action"],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput = z.object({\n text: z.string().describe(\"Text to count tokens for\"),\n model: z.string().default(\"gemini-2.0-flash\").describe(\"Model to use for token counting. Must be a model that supports the countTokens method. Use the ListModels action to see available models and their supported methods.\").optional(),\n});\nconst GeminiCountTokens_TokenDetailsSchema = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\").nullable(),\n token_count: z.number().int().describe(\"Number of tokens for this modality\").nullable(),\n}).describe(\"Details about tokens for a specific modality.\");\nexport const GeminiCountTokensOutput = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens in the input\").nullable(),\n token_details: z.array(GeminiCountTokens_TokenDetailsSchema).describe(\"Breakdown of tokens by modality (e.g., text, image)\").nullable().optional(),\n});\n\nexport const geminiCountTokens = action(\"GEMINI_COUNT_TOKENS\", {\n slug: \"gemini-count-tokens\",\n name: \"Count Tokens (Gemini)\",\n description: \"Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.\",\n input: GeminiCountTokensInput,\n output: GeminiCountTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxF,eAAeA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -7,7 +7,7 @@ declare const GeminiCountTokensInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const GeminiCountTokensOutput: z.ZodObject<{
|
|
9
9
|
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
10
|
-
token_details: z.
|
|
10
|
+
token_details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
11
|
modality: z.ZodNullable<z.ZodString>;
|
|
12
12
|
token_count: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
}, z.core.$strip>>>>;
|
|
@@ -15,13 +15,7 @@ declare const GeminiCountTokensOutput: z.ZodObject<{
|
|
|
15
15
|
declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
text: string;
|
|
17
17
|
model?: string | undefined;
|
|
18
|
-
},
|
|
19
|
-
total_tokens: number | null;
|
|
20
|
-
token_details?: {
|
|
21
|
-
modality: string | null;
|
|
22
|
-
token_count: number | null;
|
|
23
|
-
}[] | undefined;
|
|
24
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
19
|
//#endregion
|
|
26
20
|
export { geminiCountTokens };
|
|
27
21
|
//# sourceMappingURL=count-tokens.d.cts.map
|
|
@@ -7,7 +7,7 @@ declare const GeminiCountTokensInput: z.ZodObject<{
|
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
declare const GeminiCountTokensOutput: z.ZodObject<{
|
|
9
9
|
total_tokens: z.ZodNullable<z.ZodNumber>;
|
|
10
|
-
token_details: z.
|
|
10
|
+
token_details: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
11
11
|
modality: z.ZodNullable<z.ZodString>;
|
|
12
12
|
token_count: z.ZodNullable<z.ZodNumber>;
|
|
13
13
|
}, z.core.$strip>>>>;
|
|
@@ -15,13 +15,7 @@ declare const GeminiCountTokensOutput: z.ZodObject<{
|
|
|
15
15
|
declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
16
16
|
text: string;
|
|
17
17
|
model?: string | undefined;
|
|
18
|
-
},
|
|
19
|
-
total_tokens: number | null;
|
|
20
|
-
token_details?: {
|
|
21
|
-
modality: string | null;
|
|
22
|
-
token_count: number | null;
|
|
23
|
-
}[] | undefined;
|
|
24
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
18
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
19
|
//#endregion
|
|
26
20
|
export { geminiCountTokens };
|
|
27
21
|
//# sourceMappingURL=count-tokens.d.mts.map
|
|
@@ -16,7 +16,7 @@ const geminiCountTokens = action("GEMINI_COUNT_TOKENS", {
|
|
|
16
16
|
input: GeminiCountTokensInput,
|
|
17
17
|
output: z.object({
|
|
18
18
|
total_tokens: z.number().int().describe("Total number of tokens in the input").nullable(),
|
|
19
|
-
token_details: z.
|
|
19
|
+
token_details: z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").nullable().optional()
|
|
20
20
|
})
|
|
21
21
|
});
|
|
22
22
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"count-tokens.mjs","names":[],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput = z.object({\n text: z.string().describe(\"Text to count tokens for\"),\n model: z.string().default(\"gemini-2.0-flash\").describe(\"Model to use for token counting. Must be a model that supports the countTokens method. Use the ListModels action to see available models and their supported methods.\").optional(),\n});\nconst GeminiCountTokens_TokenDetailsSchema = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\").nullable(),\n token_count: z.number().int().describe(\"Number of tokens for this modality\").nullable(),\n}).describe(\"Details about tokens for a specific modality.\");\nexport const GeminiCountTokensOutput = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens in the input\").nullable(),\n token_details: z.
|
|
1
|
+
{"version":3,"file":"count-tokens.mjs","names":[],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput = z.object({\n text: z.string().describe(\"Text to count tokens for\"),\n model: z.string().default(\"gemini-2.0-flash\").describe(\"Model to use for token counting. Must be a model that supports the countTokens method. Use the ListModels action to see available models and their supported methods.\").optional(),\n});\nconst GeminiCountTokens_TokenDetailsSchema = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\").nullable(),\n token_count: z.number().int().describe(\"Number of tokens for this modality\").nullable(),\n}).describe(\"Details about tokens for a specific modality.\");\nexport const GeminiCountTokensOutput = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens in the input\").nullable(),\n token_details: z.array(GeminiCountTokens_TokenDetailsSchema).describe(\"Breakdown of tokens by modality (e.g., text, image)\").nullable().optional(),\n});\n\nexport const geminiCountTokens = action(\"GEMINI_COUNT_TOKENS\", {\n slug: \"gemini-count-tokens\",\n name: \"Count Tokens (Gemini)\",\n description: \"Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.\",\n input: GeminiCountTokensInput,\n output: GeminiCountTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAM,uCAAuC,EAAE,OAAO;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAM3D,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACxF,eAAe,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,CAOU;AACV,CAAC"}
|
|
@@ -18,10 +18,7 @@ declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDe
|
|
|
18
18
|
title?: string | undefined;
|
|
19
19
|
task_type?: string | undefined;
|
|
20
20
|
output_dimensionality?: number | undefined;
|
|
21
|
-
},
|
|
22
|
-
embedding: number[];
|
|
23
|
-
dimensions: number | null;
|
|
24
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
22
|
//#endregion
|
|
26
23
|
export { geminiEmbedContent };
|
|
27
24
|
//# sourceMappingURL=embed-content.d.cts.map
|
|
@@ -18,10 +18,7 @@ declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDe
|
|
|
18
18
|
title?: string | undefined;
|
|
19
19
|
task_type?: string | undefined;
|
|
20
20
|
output_dimensionality?: number | undefined;
|
|
21
|
-
},
|
|
22
|
-
embedding: number[];
|
|
23
|
-
dimensions: number | null;
|
|
24
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
21
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
25
22
|
//#endregion
|
|
26
23
|
export { geminiEmbedContent };
|
|
27
24
|
//# sourceMappingURL=embed-content.d.mts.map
|
|
@@ -45,13 +45,13 @@ const GeminiGenerateContentInput = zod.z.object({
|
|
|
45
45
|
system_instruction: zod.z.string().describe("System instruction to guide the model's behavior").optional()
|
|
46
46
|
});
|
|
47
47
|
const GeminiGenerateContentOutput = zod.z.object({
|
|
48
|
-
raw: zod.z.
|
|
49
|
-
text: zod.z.
|
|
50
|
-
mime_type: zod.z.
|
|
51
|
-
audio_data: zod.z.
|
|
52
|
-
candidates: zod.z.
|
|
53
|
-
usage_metadata: zod.z.
|
|
54
|
-
composio_execution_message: zod.z.
|
|
48
|
+
raw: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
49
|
+
text: zod.z.string().describe("Generated text content (for text generation models)").nullable().optional(),
|
|
50
|
+
mime_type: zod.z.string().describe("MIME type of the audio data (e.g., 'audio/pcm')").nullable().optional(),
|
|
51
|
+
audio_data: zod.z.string().describe("Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.").nullable().optional(),
|
|
52
|
+
candidates: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).nullable().optional(),
|
|
53
|
+
usage_metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
|
|
54
|
+
composio_execution_message: zod.z.string().describe("Informational message about execution").nullable().optional()
|
|
55
55
|
});
|
|
56
56
|
const geminiGenerateContent = require_action.action("GEMINI_GENERATE_CONTENT", {
|
|
57
57
|
slug: "gemini-generate-content",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-content.cjs","names":["z","action"],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateContentInput = z.object({\n model: z.string().default(\"gemini-2.5-flash\").describe(\"Model to use for generation. Text generation models: 'gemini-2.5-flash' (default, fast & efficient), 'gemini-2.5-pro' (advanced reasoning), 'gemini-2.0-flash' (previous generation), 'gemini-2.0-flash-lite' (cost-optimized). Text-to-speech models: 'gemini-2.5-flash-preview-tts' (low latency), 'gemini-2.5-pro-preview-tts' (high quality). Note: TTS models require voice_name parameter and return audio data instead of text.\").optional(),\n top_k: z.number().int().describe(\"Top-k sampling parameter\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter (0.0 to 1.0)\").optional(),\n prompt: z.string().describe(\"REQUIRED. The text prompt for content generation. This field must be provided. Example: 'Write a short poem about the ocean' or 'Explain quantum computing in simple terms'. For TTS models, include style instructions in the prompt (e.g., 'Say cheerfully: Hello!').\"),\n voice_name: z.enum([\"Achernar\", \"Achird\", \"Algenib\", \"Algieba\", \"Alnilam\", \"Aoede\", \"Autonoe\", \"Callirrhoe\", \"Charon\", \"Despina\", \"Enceladus\", \"Erinome\", \"Fenrir\", \"Gacrux\", \"Iapetus\", \"Kore\", \"Laomedeia\", \"Leda\", \"Orus\", \"Puck\", \"Pulcherrima\", \"Rasalgethi\", \"Sadachbia\", \"Sadaltager\", \"Schedar\", \"Sulafat\", \"Umbriel\", \"Vindemiatrix\", \"Zephyr\", \"Zubenelgenubi\"]).describe(\"Available prebuilt voices for text-to-speech generation.\\n\\nComplete list of 30 official Gemini TTS voices as documented at:\\nhttps://ai.google.dev/gemini-api/docs/speech-generation\").optional(),\n temperature: z.number().describe(\"Controls randomness (0.0 to 2.0)\").optional(),\n stop_sequences: z.array(z.string()).describe(\"Sequences where generation should stop\").optional(),\n safety_settings: z.array(z.record(z.string(), z.unknown())).describe(\"Safety filter settings\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens to generate If response finishReason='MAX_TOKENS', output was truncated; narrow prompt scope or increase this value and regenerate.\").optional(),\n system_instruction: z.string().describe(\"System instruction to guide the model's behavior\").optional(),\n});\nexport const GeminiGenerateContentOutput = z.object({\n raw: z.
|
|
1
|
+
{"version":3,"file":"generate-content.cjs","names":["z","action"],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateContentInput = z.object({\n model: z.string().default(\"gemini-2.5-flash\").describe(\"Model to use for generation. Text generation models: 'gemini-2.5-flash' (default, fast & efficient), 'gemini-2.5-pro' (advanced reasoning), 'gemini-2.0-flash' (previous generation), 'gemini-2.0-flash-lite' (cost-optimized). Text-to-speech models: 'gemini-2.5-flash-preview-tts' (low latency), 'gemini-2.5-pro-preview-tts' (high quality). Note: TTS models require voice_name parameter and return audio data instead of text.\").optional(),\n top_k: z.number().int().describe(\"Top-k sampling parameter\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter (0.0 to 1.0)\").optional(),\n prompt: z.string().describe(\"REQUIRED. The text prompt for content generation. This field must be provided. Example: 'Write a short poem about the ocean' or 'Explain quantum computing in simple terms'. For TTS models, include style instructions in the prompt (e.g., 'Say cheerfully: Hello!').\"),\n voice_name: z.enum([\"Achernar\", \"Achird\", \"Algenib\", \"Algieba\", \"Alnilam\", \"Aoede\", \"Autonoe\", \"Callirrhoe\", \"Charon\", \"Despina\", \"Enceladus\", \"Erinome\", \"Fenrir\", \"Gacrux\", \"Iapetus\", \"Kore\", \"Laomedeia\", \"Leda\", \"Orus\", \"Puck\", \"Pulcherrima\", \"Rasalgethi\", \"Sadachbia\", \"Sadaltager\", \"Schedar\", \"Sulafat\", \"Umbriel\", \"Vindemiatrix\", \"Zephyr\", \"Zubenelgenubi\"]).describe(\"Available prebuilt voices for text-to-speech generation.\\n\\nComplete list of 30 official Gemini TTS voices as documented at:\\nhttps://ai.google.dev/gemini-api/docs/speech-generation\").optional(),\n temperature: z.number().describe(\"Controls randomness (0.0 to 2.0)\").optional(),\n stop_sequences: z.array(z.string()).describe(\"Sequences where generation should stop\").optional(),\n safety_settings: z.array(z.record(z.string(), z.unknown())).describe(\"Safety filter settings\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens to generate If response finishReason='MAX_TOKENS', output was truncated; narrow prompt scope or increase this value and regenerate.\").optional(),\n system_instruction: z.string().describe(\"System instruction to guide the model's behavior\").optional(),\n});\nexport const GeminiGenerateContentOutput = z.object({\n raw: z.record(z.string(), z.unknown()).nullable().optional(),\n text: z.string().describe(\"Generated text content (for text generation models)\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the audio data (e.g., 'audio/pcm')\").nullable().optional(),\n audio_data: z.string().describe(\"Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.\").nullable().optional(),\n candidates: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n usage_metadata: z.record(z.string(), z.unknown()).nullable().optional(),\n composio_execution_message: z.string().describe(\"Informational message about execution\").nullable().optional(),\n});\n\nexport const geminiGenerateContent = action(\"GEMINI_GENERATE_CONTENT\", {\n slug: \"gemini-generate-content\",\n name: \"Generate Content (Gemini)\",\n description: \"Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.\",\n input: GeminiGenerateContentInput,\n output: GeminiGenerateContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS;CAC1e,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yQAAyQ;CACrS,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;EAAW;EAAW;EAAW;EAAS;EAAW;EAAc;EAAU;EAAW;EAAa;EAAW;EAAU;EAAU;EAAW;EAAQ;EAAa;EAAQ;EAAQ;EAAQ;EAAe;EAAc;EAAa;EAAc;EAAW;EAAW;EAAW;EAAgB;EAAU;CAAe,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACtjB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACxG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACtN,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACvG,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -45,13 +45,13 @@ declare const GeminiGenerateContentInput: z.ZodObject<{
|
|
|
45
45
|
system_instruction: z.ZodOptional<z.ZodString>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
declare const GeminiGenerateContentOutput: z.ZodObject<{
|
|
48
|
-
raw: z.
|
|
49
|
-
text: z.
|
|
50
|
-
mime_type: z.
|
|
51
|
-
audio_data: z.
|
|
52
|
-
candidates: z.
|
|
53
|
-
usage_metadata: z.
|
|
54
|
-
composio_execution_message: z.
|
|
48
|
+
raw: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
audio_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
candidates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
53
|
+
usage_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
54
|
+
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
57
57
|
prompt: string;
|
|
@@ -64,15 +64,7 @@ declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActio
|
|
|
64
64
|
safety_settings?: Record<string, unknown>[] | undefined;
|
|
65
65
|
max_output_tokens?: number | undefined;
|
|
66
66
|
system_instruction?: string | undefined;
|
|
67
|
-
},
|
|
68
|
-
raw?: Record<string, unknown> | undefined;
|
|
69
|
-
text?: string | undefined;
|
|
70
|
-
mime_type?: string | undefined;
|
|
71
|
-
audio_data?: string | undefined;
|
|
72
|
-
candidates?: Record<string, unknown>[] | undefined;
|
|
73
|
-
usage_metadata?: Record<string, unknown> | undefined;
|
|
74
|
-
composio_execution_message?: string | undefined;
|
|
75
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
67
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
76
68
|
//#endregion
|
|
77
69
|
export { geminiGenerateContent };
|
|
78
70
|
//# sourceMappingURL=generate-content.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-content.d.cts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA"}
|
|
1
|
+
{"version":3,"file":"generate-content.d.cts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA;;;;;;;;oBAMhC,MAAA"}
|
|
@@ -45,13 +45,13 @@ declare const GeminiGenerateContentInput: z.ZodObject<{
|
|
|
45
45
|
system_instruction: z.ZodOptional<z.ZodString>;
|
|
46
46
|
}, z.core.$strip>;
|
|
47
47
|
declare const GeminiGenerateContentOutput: z.ZodObject<{
|
|
48
|
-
raw: z.
|
|
49
|
-
text: z.
|
|
50
|
-
mime_type: z.
|
|
51
|
-
audio_data: z.
|
|
52
|
-
candidates: z.
|
|
53
|
-
usage_metadata: z.
|
|
54
|
-
composio_execution_message: z.
|
|
48
|
+
raw: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
49
|
+
text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
mime_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
51
|
+
audio_data: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
candidates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
|
|
53
|
+
usage_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
54
|
+
composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
55
55
|
}, z.core.$strip>;
|
|
56
56
|
declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
57
57
|
prompt: string;
|
|
@@ -64,15 +64,7 @@ declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActio
|
|
|
64
64
|
safety_settings?: Record<string, unknown>[] | undefined;
|
|
65
65
|
max_output_tokens?: number | undefined;
|
|
66
66
|
system_instruction?: string | undefined;
|
|
67
|
-
},
|
|
68
|
-
raw?: Record<string, unknown> | undefined;
|
|
69
|
-
text?: string | undefined;
|
|
70
|
-
mime_type?: string | undefined;
|
|
71
|
-
audio_data?: string | undefined;
|
|
72
|
-
candidates?: Record<string, unknown>[] | undefined;
|
|
73
|
-
usage_metadata?: Record<string, unknown> | undefined;
|
|
74
|
-
composio_execution_message?: string | undefined;
|
|
75
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
67
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
76
68
|
//#endregion
|
|
77
69
|
export { geminiGenerateContent };
|
|
78
70
|
//# sourceMappingURL=generate-content.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-content.d.mts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA"}
|
|
1
|
+
{"version":3,"file":"generate-content.d.mts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA;;;;;;;;oBAMhC,MAAA"}
|
|
@@ -48,13 +48,13 @@ const geminiGenerateContent = action("GEMINI_GENERATE_CONTENT", {
|
|
|
48
48
|
system_instruction: z.string().describe("System instruction to guide the model's behavior").optional()
|
|
49
49
|
}),
|
|
50
50
|
output: z.object({
|
|
51
|
-
raw: z.
|
|
52
|
-
text: z.
|
|
53
|
-
mime_type: z.
|
|
54
|
-
audio_data: z.
|
|
55
|
-
candidates: z.
|
|
56
|
-
usage_metadata: z.
|
|
57
|
-
composio_execution_message: z.
|
|
51
|
+
raw: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
52
|
+
text: z.string().describe("Generated text content (for text generation models)").nullable().optional(),
|
|
53
|
+
mime_type: z.string().describe("MIME type of the audio data (e.g., 'audio/pcm')").nullable().optional(),
|
|
54
|
+
audio_data: z.string().describe("Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.").nullable().optional(),
|
|
55
|
+
candidates: z.array(z.record(z.string(), z.unknown())).nullable().optional(),
|
|
56
|
+
usage_metadata: z.record(z.string(), z.unknown()).nullable().optional(),
|
|
57
|
+
composio_execution_message: z.string().describe("Informational message about execution").nullable().optional()
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-content.mjs","names":[],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateContentInput = z.object({\n model: z.string().default(\"gemini-2.5-flash\").describe(\"Model to use for generation. Text generation models: 'gemini-2.5-flash' (default, fast & efficient), 'gemini-2.5-pro' (advanced reasoning), 'gemini-2.0-flash' (previous generation), 'gemini-2.0-flash-lite' (cost-optimized). Text-to-speech models: 'gemini-2.5-flash-preview-tts' (low latency), 'gemini-2.5-pro-preview-tts' (high quality). Note: TTS models require voice_name parameter and return audio data instead of text.\").optional(),\n top_k: z.number().int().describe(\"Top-k sampling parameter\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter (0.0 to 1.0)\").optional(),\n prompt: z.string().describe(\"REQUIRED. The text prompt for content generation. This field must be provided. Example: 'Write a short poem about the ocean' or 'Explain quantum computing in simple terms'. For TTS models, include style instructions in the prompt (e.g., 'Say cheerfully: Hello!').\"),\n voice_name: z.enum([\"Achernar\", \"Achird\", \"Algenib\", \"Algieba\", \"Alnilam\", \"Aoede\", \"Autonoe\", \"Callirrhoe\", \"Charon\", \"Despina\", \"Enceladus\", \"Erinome\", \"Fenrir\", \"Gacrux\", \"Iapetus\", \"Kore\", \"Laomedeia\", \"Leda\", \"Orus\", \"Puck\", \"Pulcherrima\", \"Rasalgethi\", \"Sadachbia\", \"Sadaltager\", \"Schedar\", \"Sulafat\", \"Umbriel\", \"Vindemiatrix\", \"Zephyr\", \"Zubenelgenubi\"]).describe(\"Available prebuilt voices for text-to-speech generation.\\n\\nComplete list of 30 official Gemini TTS voices as documented at:\\nhttps://ai.google.dev/gemini-api/docs/speech-generation\").optional(),\n temperature: z.number().describe(\"Controls randomness (0.0 to 2.0)\").optional(),\n stop_sequences: z.array(z.string()).describe(\"Sequences where generation should stop\").optional(),\n safety_settings: z.array(z.record(z.string(), z.unknown())).describe(\"Safety filter settings\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens to generate If response finishReason='MAX_TOKENS', output was truncated; narrow prompt scope or increase this value and regenerate.\").optional(),\n system_instruction: z.string().describe(\"System instruction to guide the model's behavior\").optional(),\n});\nexport const GeminiGenerateContentOutput = z.object({\n raw: z.
|
|
1
|
+
{"version":3,"file":"generate-content.mjs","names":[],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateContentInput = z.object({\n model: z.string().default(\"gemini-2.5-flash\").describe(\"Model to use for generation. Text generation models: 'gemini-2.5-flash' (default, fast & efficient), 'gemini-2.5-pro' (advanced reasoning), 'gemini-2.0-flash' (previous generation), 'gemini-2.0-flash-lite' (cost-optimized). Text-to-speech models: 'gemini-2.5-flash-preview-tts' (low latency), 'gemini-2.5-pro-preview-tts' (high quality). Note: TTS models require voice_name parameter and return audio data instead of text.\").optional(),\n top_k: z.number().int().describe(\"Top-k sampling parameter\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter (0.0 to 1.0)\").optional(),\n prompt: z.string().describe(\"REQUIRED. The text prompt for content generation. This field must be provided. Example: 'Write a short poem about the ocean' or 'Explain quantum computing in simple terms'. For TTS models, include style instructions in the prompt (e.g., 'Say cheerfully: Hello!').\"),\n voice_name: z.enum([\"Achernar\", \"Achird\", \"Algenib\", \"Algieba\", \"Alnilam\", \"Aoede\", \"Autonoe\", \"Callirrhoe\", \"Charon\", \"Despina\", \"Enceladus\", \"Erinome\", \"Fenrir\", \"Gacrux\", \"Iapetus\", \"Kore\", \"Laomedeia\", \"Leda\", \"Orus\", \"Puck\", \"Pulcherrima\", \"Rasalgethi\", \"Sadachbia\", \"Sadaltager\", \"Schedar\", \"Sulafat\", \"Umbriel\", \"Vindemiatrix\", \"Zephyr\", \"Zubenelgenubi\"]).describe(\"Available prebuilt voices for text-to-speech generation.\\n\\nComplete list of 30 official Gemini TTS voices as documented at:\\nhttps://ai.google.dev/gemini-api/docs/speech-generation\").optional(),\n temperature: z.number().describe(\"Controls randomness (0.0 to 2.0)\").optional(),\n stop_sequences: z.array(z.string()).describe(\"Sequences where generation should stop\").optional(),\n safety_settings: z.array(z.record(z.string(), z.unknown())).describe(\"Safety filter settings\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens to generate If response finishReason='MAX_TOKENS', output was truncated; narrow prompt scope or increase this value and regenerate.\").optional(),\n system_instruction: z.string().describe(\"System instruction to guide the model's behavior\").optional(),\n});\nexport const GeminiGenerateContentOutput = z.object({\n raw: z.record(z.string(), z.unknown()).nullable().optional(),\n text: z.string().describe(\"Generated text content (for text generation models)\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the audio data (e.g., 'audio/pcm')\").nullable().optional(),\n audio_data: z.string().describe(\"Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.\").nullable().optional(),\n candidates: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n usage_metadata: z.record(z.string(), z.unknown()).nullable().optional(),\n composio_execution_message: z.string().describe(\"Informational message about execution\").nullable().optional(),\n});\n\nexport const geminiGenerateContent = action(\"GEMINI_GENERATE_CONTENT\", {\n slug: \"gemini-generate-content\",\n name: \"Generate Content (Gemini)\",\n description: \"Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.\",\n input: GeminiGenerateContentInput,\n output: GeminiGenerateContentOutput,\n});\n"],"mappings":";;AA0BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BwC,EAAE,OAAO;EACjD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS;EAC1e,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;EACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yQAAyQ;EACrS,YAAY,EAAE,KAAK;GAAC;GAAY;GAAU;GAAW;GAAW;GAAW;GAAS;GAAW;GAAc;GAAU;GAAW;GAAa;GAAW;GAAU;GAAU;GAAW;GAAQ;GAAa;GAAQ;GAAQ;GAAQ;GAAe;GAAc;GAAa;GAAc;GAAW;GAAW;GAAW;GAAgB;GAAU;EAAe,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;EACtjB,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAC9E,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAChG,iBAAiB,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;EACxG,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;EACtN,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACvG,CAeS;CACP,QAfyC,EAAE,OAAO;EAClD,KAAK,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrG,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvI,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC3E,gBAAgB,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAOU;AACV,CAAC"}
|
|
@@ -68,13 +68,7 @@ declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionD
|
|
|
68
68
|
}[] | undefined;
|
|
69
69
|
max_output_tokens?: number | undefined;
|
|
70
70
|
system_instruction?: string | undefined;
|
|
71
|
-
},
|
|
72
|
-
image: {
|
|
73
|
-
name: string | null;
|
|
74
|
-
s3url: string | null;
|
|
75
|
-
mimetype: string | null;
|
|
76
|
-
} | null;
|
|
77
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
71
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
78
72
|
//#endregion
|
|
79
73
|
export { geminiGenerateImage };
|
|
80
74
|
//# sourceMappingURL=generate-image.d.cts.map
|
|
@@ -68,13 +68,7 @@ declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionD
|
|
|
68
68
|
}[] | undefined;
|
|
69
69
|
max_output_tokens?: number | undefined;
|
|
70
70
|
system_instruction?: string | undefined;
|
|
71
|
-
},
|
|
72
|
-
image: {
|
|
73
|
-
name: string | null;
|
|
74
|
-
s3url: string | null;
|
|
75
|
-
mimetype: string | null;
|
|
76
|
-
} | null;
|
|
77
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
71
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
78
72
|
//#endregion
|
|
79
73
|
export { geminiGenerateImage };
|
|
80
74
|
//# sourceMappingURL=generate-image.d.mts.map
|
|
@@ -28,9 +28,9 @@ const GeminiGenerateVideosInput = zod.z.object({
|
|
|
28
28
|
]).describe("Person generation safety settings for video generation.\n\nModel-specific restrictions apply:\n- Veo 2: Supports DONT_ALLOW, ALLOW_ADULT, and ALLOW_ALL\n- Veo 3/3.1 models: Only ALLOW_ALL is supported (requires allowlist access)").optional()
|
|
29
29
|
});
|
|
30
30
|
const GeminiGenerateVideos_OperationCreationResponseSchema = zod.z.object({
|
|
31
|
-
done: zod.z.
|
|
31
|
+
done: zod.z.boolean().default(false).describe("Indicates whether the operation is complete. Always False when operation is first created.").nullable().optional(),
|
|
32
32
|
name: zod.z.string().describe("Server-assigned operation resource name (e.g., 'models/veo-3.0-generate-001/operations/abc123').").nullable(),
|
|
33
|
-
metadata: zod.z.
|
|
33
|
+
metadata: zod.z.record(zod.z.string(), zod.z.unknown()).describe("Operation metadata with progress information (optional, may be present even when operation is not done).").nullable().optional()
|
|
34
34
|
}).passthrough().describe("Response from the predictLongRunning endpoint when initiating video generation.\n\nRepresents a Google Cloud Long-Running Operation object as defined by the standard\nOperation schema (google.longrunning.Operation). When first created, the response\nincludes 'name' (the operation identifier) and 'done' (typically False, indicating\nthe operation is in progress). Optional 'metadata' may provide progress information.");
|
|
35
35
|
const GeminiGenerateVideosOutput = zod.z.object({
|
|
36
36
|
raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-videos.cjs","names":["z","action"],"sources":["../../src/actions/generate-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateVideosInput = z.object({\n seed: z.number().int().describe(\"Seed value for reproducibility. IMPORTANT: Only supported by Veo 3/3.1 models (VEO_3, VEO_3_FAST, VEO_3_1, VEO_3_1_FAST). VEO_2 does NOT support seed - using seed with VEO_2 will result in a validation error.\").optional(),\n model: z.enum([\"veo-2.0-generate-001\", \"veo-3.0-generate-001\", \"veo-3.0-fast-generate-001\", \"veo-3.1-generate-preview\", \"veo-3.1-fast-generate-preview\"]).default(\"veo-3.0-generate-001\").describe(\"Veo model for video generation. Available enum values: VEO_3 (default, recommended), VEO_2, VEO_3_FAST, VEO_3_1 (newest), VEO_3_1_FAST (newest). Avoid preview model ID variants (e.g., '*generate-preview*') — they fail to produce downloadable URIs. Use only stable IDs: veo-2.0-generate-001 or veo-3.0-generate-001.\").optional(),\n prompt: z.string().describe(\"Text prompt for Veo video generation. Must be a non-empty string describing the video to generate.\"),\n resolution: z.enum([\"720p\", \"1080p\"]).describe(\"Supported resolutions for video generation.\").optional(),\n aspect_ratio: z.enum([\"16:9\", \"9:16\"]).describe(\"Supported aspect ratios for video generation.\").optional(),\n negative_prompt: z.string().describe(\"Text describing content to avoid in the generated video (e.g., 'cartoon, drawing, low quality').\").optional(),\n duration_seconds: z.union([z.literal(4), z.literal(5), z.literal(6), z.literal(7), z.literal(8)]).describe(\"Supported video durations in seconds.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports 5, 6, 7, or 8 seconds (4 seconds NOT supported)\\n- Veo 3/3.1 models: Supports 4, 6, or 8 seconds (5 and 7 seconds NOT supported)\").optional(),\n person_generation: z.enum([\"dont_allow\", \"allow_adult\", \"allow_all\"]).describe(\"Person generation safety settings for video generation.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports DONT_ALLOW, ALLOW_ADULT, and ALLOW_ALL\\n- Veo 3/3.1 models: Only ALLOW_ALL is supported (requires allowlist access)\").optional(),\n});\nconst GeminiGenerateVideos_OperationCreationResponseSchema = z.object({\n done: z.
|
|
1
|
+
{"version":3,"file":"generate-videos.cjs","names":["z","action"],"sources":["../../src/actions/generate-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateVideosInput = z.object({\n seed: z.number().int().describe(\"Seed value for reproducibility. IMPORTANT: Only supported by Veo 3/3.1 models (VEO_3, VEO_3_FAST, VEO_3_1, VEO_3_1_FAST). VEO_2 does NOT support seed - using seed with VEO_2 will result in a validation error.\").optional(),\n model: z.enum([\"veo-2.0-generate-001\", \"veo-3.0-generate-001\", \"veo-3.0-fast-generate-001\", \"veo-3.1-generate-preview\", \"veo-3.1-fast-generate-preview\"]).default(\"veo-3.0-generate-001\").describe(\"Veo model for video generation. Available enum values: VEO_3 (default, recommended), VEO_2, VEO_3_FAST, VEO_3_1 (newest), VEO_3_1_FAST (newest). Avoid preview model ID variants (e.g., '*generate-preview*') — they fail to produce downloadable URIs. Use only stable IDs: veo-2.0-generate-001 or veo-3.0-generate-001.\").optional(),\n prompt: z.string().describe(\"Text prompt for Veo video generation. Must be a non-empty string describing the video to generate.\"),\n resolution: z.enum([\"720p\", \"1080p\"]).describe(\"Supported resolutions for video generation.\").optional(),\n aspect_ratio: z.enum([\"16:9\", \"9:16\"]).describe(\"Supported aspect ratios for video generation.\").optional(),\n negative_prompt: z.string().describe(\"Text describing content to avoid in the generated video (e.g., 'cartoon, drawing, low quality').\").optional(),\n duration_seconds: z.union([z.literal(4), z.literal(5), z.literal(6), z.literal(7), z.literal(8)]).describe(\"Supported video durations in seconds.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports 5, 6, 7, or 8 seconds (4 seconds NOT supported)\\n- Veo 3/3.1 models: Supports 4, 6, or 8 seconds (5 and 7 seconds NOT supported)\").optional(),\n person_generation: z.enum([\"dont_allow\", \"allow_adult\", \"allow_all\"]).describe(\"Person generation safety settings for video generation.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports DONT_ALLOW, ALLOW_ADULT, and ALLOW_ALL\\n- Veo 3/3.1 models: Only ALLOW_ALL is supported (requires allowlist access)\").optional(),\n});\nconst GeminiGenerateVideos_OperationCreationResponseSchema = z.object({\n done: z.boolean().default(false).describe(\"Indicates whether the operation is complete. Always False when operation is first created.\").nullable().optional(),\n name: z.string().describe(\"Server-assigned operation resource name (e.g., 'models/veo-3.0-generate-001/operations/abc123').\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Operation metadata with progress information (optional, may be present even when operation is not done).\").nullable().optional(),\n}).passthrough().describe(\"Response from the predictLongRunning endpoint when initiating video generation.\\n\\nRepresents a Google Cloud Long-Running Operation object as defined by the standard\\nOperation schema (google.longrunning.Operation). When first created, the response\\nincludes 'name' (the operation identifier) and 'done' (typically False, indicating\\nthe operation is in progress). Optional 'metadata' may provide progress information.\");\nexport const GeminiGenerateVideosOutput = z.object({\n raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),\n operation_name: z.string().describe(\"Long-running operation name/id\").nullable(),\n});\n\nexport const geminiGenerateVideos = action(\"GEMINI_GENERATE_VIDEOS\", {\n slug: \"gemini-generate-videos\",\n name: \"Generate Videos (Veo)\",\n description: \"Generates videos from text prompts using Google's Veo models. Returns an operation_name for tracking; pass it verbatim (no edits) to GEMINI_WAIT_FOR_VIDEO or GEMINI_GET_VIDEOS_OPERATION. Jobs take 30–180+ seconds; wait 10s before first poll, then poll every 10–30s (allow up to 12 min). Successful results include data.video_file.s3url — missing s3url means failure. If done=true but no video_file, check raiMediaFilteredReasons (safety block); revise prompt and regenerate. Text-only; cannot accept image inputs. Max ~3–5 concurrent jobs; 429 RESOURCE_EXHAUSTED requires exponential backoff. For retries, always start a fresh call — never reuse a failed operation_name.\",\n input: GeminiGenerateVideosInput,\n output: GeminiGenerateVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4BA,IAAAA,EAAE,OAAO;CAChD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kNAAkN,CAAC,CAAC,SAAS;CAC7P,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAAwB;EAAwB;EAA6B;EAA4B;CAA+B,CAAC,CAAC,CAAC,QAAQ,sBAAsB,CAAC,CAAC,SAAS,4TAA4T,CAAC,CAAC,SAAS;CAC1gB,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CAChI,YAAYA,IAAAA,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACvG,cAAcA,IAAAA,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1G,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,kBAAkBA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,iOAAiO,CAAC,CAAC,SAAS;CACvV,mBAAmBA,IAAAA,EAAE,KAAK;EAAC;EAAc;EAAe;CAAW,CAAC,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS;AAClU,CAAC;AACD,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oaAAoa;AAC9b,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAK,qDAAqD,SAAS;CACnE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACjF,CAAC;AAED,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -29,9 +29,9 @@ declare const GeminiGenerateVideosInput: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
declare const GeminiGenerateVideosOutput: z.ZodObject<{
|
|
31
31
|
raw: z.ZodNullable<z.ZodObject<{
|
|
32
|
-
done: z.
|
|
32
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
33
33
|
name: z.ZodNullable<z.ZodString>;
|
|
34
|
-
metadata: z.
|
|
34
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
35
|
}, z.core.$loose>>;
|
|
36
36
|
operation_name: z.ZodNullable<z.ZodString>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -44,15 +44,7 @@ declare const geminiGenerateVideos: import("@keystrokehq/action").WorkflowAction
|
|
|
44
44
|
negative_prompt?: string | undefined;
|
|
45
45
|
duration_seconds?: 4 | 5 | 6 | 7 | 8 | undefined;
|
|
46
46
|
person_generation?: "dont_allow" | "allow_adult" | "allow_all" | undefined;
|
|
47
|
-
},
|
|
48
|
-
raw: {
|
|
49
|
-
[x: string]: unknown;
|
|
50
|
-
name: string | null;
|
|
51
|
-
done?: boolean | undefined;
|
|
52
|
-
metadata?: Record<string, unknown> | undefined;
|
|
53
|
-
} | null;
|
|
54
|
-
operation_name: string | null;
|
|
55
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
56
48
|
//#endregion
|
|
57
49
|
export { geminiGenerateVideos };
|
|
58
50
|
//# sourceMappingURL=generate-videos.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-videos.d.cts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA
|
|
1
|
+
{"version":3,"file":"generate-videos.d.cts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -29,9 +29,9 @@ declare const GeminiGenerateVideosInput: z.ZodObject<{
|
|
|
29
29
|
}, z.core.$strip>;
|
|
30
30
|
declare const GeminiGenerateVideosOutput: z.ZodObject<{
|
|
31
31
|
raw: z.ZodNullable<z.ZodObject<{
|
|
32
|
-
done: z.
|
|
32
|
+
done: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
33
33
|
name: z.ZodNullable<z.ZodString>;
|
|
34
|
-
metadata: z.
|
|
34
|
+
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
35
35
|
}, z.core.$loose>>;
|
|
36
36
|
operation_name: z.ZodNullable<z.ZodString>;
|
|
37
37
|
}, z.core.$strip>;
|
|
@@ -44,15 +44,7 @@ declare const geminiGenerateVideos: import("@keystrokehq/action").WorkflowAction
|
|
|
44
44
|
negative_prompt?: string | undefined;
|
|
45
45
|
duration_seconds?: 4 | 5 | 6 | 7 | 8 | undefined;
|
|
46
46
|
person_generation?: "dont_allow" | "allow_adult" | "allow_all" | undefined;
|
|
47
|
-
},
|
|
48
|
-
raw: {
|
|
49
|
-
[x: string]: unknown;
|
|
50
|
-
name: string | null;
|
|
51
|
-
done?: boolean | undefined;
|
|
52
|
-
metadata?: Record<string, unknown> | undefined;
|
|
53
|
-
} | null;
|
|
54
|
-
operation_name: string | null;
|
|
55
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
47
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
56
48
|
//#endregion
|
|
57
49
|
export { geminiGenerateVideos };
|
|
58
50
|
//# sourceMappingURL=generate-videos.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-videos.d.mts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA
|
|
1
|
+
{"version":3,"file":"generate-videos.d.mts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
|
|
@@ -28,9 +28,9 @@ const GeminiGenerateVideosInput = z.object({
|
|
|
28
28
|
]).describe("Person generation safety settings for video generation.\n\nModel-specific restrictions apply:\n- Veo 2: Supports DONT_ALLOW, ALLOW_ADULT, and ALLOW_ALL\n- Veo 3/3.1 models: Only ALLOW_ALL is supported (requires allowlist access)").optional()
|
|
29
29
|
});
|
|
30
30
|
const GeminiGenerateVideos_OperationCreationResponseSchema = z.object({
|
|
31
|
-
done: z.
|
|
31
|
+
done: z.boolean().default(false).describe("Indicates whether the operation is complete. Always False when operation is first created.").nullable().optional(),
|
|
32
32
|
name: z.string().describe("Server-assigned operation resource name (e.g., 'models/veo-3.0-generate-001/operations/abc123').").nullable(),
|
|
33
|
-
metadata: z.
|
|
33
|
+
metadata: z.record(z.string(), z.unknown()).describe("Operation metadata with progress information (optional, may be present even when operation is not done).").nullable().optional()
|
|
34
34
|
}).passthrough().describe("Response from the predictLongRunning endpoint when initiating video generation.\n\nRepresents a Google Cloud Long-Running Operation object as defined by the standard\nOperation schema (google.longrunning.Operation). When first created, the response\nincludes 'name' (the operation identifier) and 'done' (typically False, indicating\nthe operation is in progress). Optional 'metadata' may provide progress information.");
|
|
35
35
|
const geminiGenerateVideos = action("GEMINI_GENERATE_VIDEOS", {
|
|
36
36
|
slug: "gemini-generate-videos",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate-videos.mjs","names":[],"sources":["../../src/actions/generate-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateVideosInput = z.object({\n seed: z.number().int().describe(\"Seed value for reproducibility. IMPORTANT: Only supported by Veo 3/3.1 models (VEO_3, VEO_3_FAST, VEO_3_1, VEO_3_1_FAST). VEO_2 does NOT support seed - using seed with VEO_2 will result in a validation error.\").optional(),\n model: z.enum([\"veo-2.0-generate-001\", \"veo-3.0-generate-001\", \"veo-3.0-fast-generate-001\", \"veo-3.1-generate-preview\", \"veo-3.1-fast-generate-preview\"]).default(\"veo-3.0-generate-001\").describe(\"Veo model for video generation. Available enum values: VEO_3 (default, recommended), VEO_2, VEO_3_FAST, VEO_3_1 (newest), VEO_3_1_FAST (newest). Avoid preview model ID variants (e.g., '*generate-preview*') — they fail to produce downloadable URIs. Use only stable IDs: veo-2.0-generate-001 or veo-3.0-generate-001.\").optional(),\n prompt: z.string().describe(\"Text prompt for Veo video generation. Must be a non-empty string describing the video to generate.\"),\n resolution: z.enum([\"720p\", \"1080p\"]).describe(\"Supported resolutions for video generation.\").optional(),\n aspect_ratio: z.enum([\"16:9\", \"9:16\"]).describe(\"Supported aspect ratios for video generation.\").optional(),\n negative_prompt: z.string().describe(\"Text describing content to avoid in the generated video (e.g., 'cartoon, drawing, low quality').\").optional(),\n duration_seconds: z.union([z.literal(4), z.literal(5), z.literal(6), z.literal(7), z.literal(8)]).describe(\"Supported video durations in seconds.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports 5, 6, 7, or 8 seconds (4 seconds NOT supported)\\n- Veo 3/3.1 models: Supports 4, 6, or 8 seconds (5 and 7 seconds NOT supported)\").optional(),\n person_generation: z.enum([\"dont_allow\", \"allow_adult\", \"allow_all\"]).describe(\"Person generation safety settings for video generation.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports DONT_ALLOW, ALLOW_ADULT, and ALLOW_ALL\\n- Veo 3/3.1 models: Only ALLOW_ALL is supported (requires allowlist access)\").optional(),\n});\nconst GeminiGenerateVideos_OperationCreationResponseSchema = z.object({\n done: z.
|
|
1
|
+
{"version":3,"file":"generate-videos.mjs","names":[],"sources":["../../src/actions/generate-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateVideosInput = z.object({\n seed: z.number().int().describe(\"Seed value for reproducibility. IMPORTANT: Only supported by Veo 3/3.1 models (VEO_3, VEO_3_FAST, VEO_3_1, VEO_3_1_FAST). VEO_2 does NOT support seed - using seed with VEO_2 will result in a validation error.\").optional(),\n model: z.enum([\"veo-2.0-generate-001\", \"veo-3.0-generate-001\", \"veo-3.0-fast-generate-001\", \"veo-3.1-generate-preview\", \"veo-3.1-fast-generate-preview\"]).default(\"veo-3.0-generate-001\").describe(\"Veo model for video generation. Available enum values: VEO_3 (default, recommended), VEO_2, VEO_3_FAST, VEO_3_1 (newest), VEO_3_1_FAST (newest). Avoid preview model ID variants (e.g., '*generate-preview*') — they fail to produce downloadable URIs. Use only stable IDs: veo-2.0-generate-001 or veo-3.0-generate-001.\").optional(),\n prompt: z.string().describe(\"Text prompt for Veo video generation. Must be a non-empty string describing the video to generate.\"),\n resolution: z.enum([\"720p\", \"1080p\"]).describe(\"Supported resolutions for video generation.\").optional(),\n aspect_ratio: z.enum([\"16:9\", \"9:16\"]).describe(\"Supported aspect ratios for video generation.\").optional(),\n negative_prompt: z.string().describe(\"Text describing content to avoid in the generated video (e.g., 'cartoon, drawing, low quality').\").optional(),\n duration_seconds: z.union([z.literal(4), z.literal(5), z.literal(6), z.literal(7), z.literal(8)]).describe(\"Supported video durations in seconds.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports 5, 6, 7, or 8 seconds (4 seconds NOT supported)\\n- Veo 3/3.1 models: Supports 4, 6, or 8 seconds (5 and 7 seconds NOT supported)\").optional(),\n person_generation: z.enum([\"dont_allow\", \"allow_adult\", \"allow_all\"]).describe(\"Person generation safety settings for video generation.\\n\\nModel-specific restrictions apply:\\n- Veo 2: Supports DONT_ALLOW, ALLOW_ADULT, and ALLOW_ALL\\n- Veo 3/3.1 models: Only ALLOW_ALL is supported (requires allowlist access)\").optional(),\n});\nconst GeminiGenerateVideos_OperationCreationResponseSchema = z.object({\n done: z.boolean().default(false).describe(\"Indicates whether the operation is complete. Always False when operation is first created.\").nullable().optional(),\n name: z.string().describe(\"Server-assigned operation resource name (e.g., 'models/veo-3.0-generate-001/operations/abc123').\").nullable(),\n metadata: z.record(z.string(), z.unknown()).describe(\"Operation metadata with progress information (optional, may be present even when operation is not done).\").nullable().optional(),\n}).passthrough().describe(\"Response from the predictLongRunning endpoint when initiating video generation.\\n\\nRepresents a Google Cloud Long-Running Operation object as defined by the standard\\nOperation schema (google.longrunning.Operation). When first created, the response\\nincludes 'name' (the operation identifier) and 'done' (typically False, indicating\\nthe operation is in progress). Optional 'metadata' may provide progress information.\");\nexport const GeminiGenerateVideosOutput = z.object({\n raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),\n operation_name: z.string().describe(\"Long-running operation name/id\").nullable(),\n});\n\nexport const geminiGenerateVideos = action(\"GEMINI_GENERATE_VIDEOS\", {\n slug: \"gemini-generate-videos\",\n name: \"Generate Videos (Veo)\",\n description: \"Generates videos from text prompts using Google's Veo models. Returns an operation_name for tracking; pass it verbatim (no edits) to GEMINI_WAIT_FOR_VIDEO or GEMINI_GET_VIDEOS_OPERATION. Jobs take 30–180+ seconds; wait 10s before first poll, then poll every 10–30s (allow up to 12 min). Successful results include data.video_file.s3url — missing s3url means failure. If done=true but no video_file, check raiMediaFilteredReasons (safety block); revise prompt and regenerate. Text-only; cannot accept image inputs. Max ~3–5 concurrent jobs; 429 RESOURCE_EXHAUSTED requires exponential backoff. For retries, always start a fresh call — never reuse a failed operation_name.\",\n input: GeminiGenerateVideosInput,\n output: GeminiGenerateVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kNAAkN,CAAC,CAAC,SAAS;CAC7P,OAAO,EAAE,KAAK;EAAC;EAAwB;EAAwB;EAA6B;EAA4B;CAA+B,CAAC,CAAC,CAAC,QAAQ,sBAAsB,CAAC,CAAC,SAAS,4TAA4T,CAAC,CAAC,SAAS;CAC1gB,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CAChI,YAAY,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,kBAAkB,EAAE,MAAM;EAAC,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,iOAAiO,CAAC,CAAC,SAAS;CACvV,mBAAmB,EAAE,KAAK;EAAC;EAAc;EAAe;CAAW,CAAC,CAAC,CAAC,SAAS,sOAAsO,CAAC,CAAC,SAAS;AAClU,CAAC;AACD,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CACvI,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oaAAoa;AAM9b,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,KAAK,qDAAqD,SAAS;EACnE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,CAOU;AACV,CAAC"}
|
|
@@ -8,26 +8,26 @@ const GeminiListModelsInput = zod.z.object({
|
|
|
8
8
|
});
|
|
9
9
|
const GeminiListModels_ModelSchema = zod.z.object({
|
|
10
10
|
name: zod.z.string().describe("Resource identifier in format models/{model}").nullable(),
|
|
11
|
-
topK: zod.z.
|
|
12
|
-
topP: zod.z.
|
|
11
|
+
topK: zod.z.number().int().describe("Default top-k sampling parameter").nullable().optional(),
|
|
12
|
+
topP: zod.z.number().describe("Default nucleus sampling parameter").nullable().optional(),
|
|
13
13
|
version: zod.z.string().describe("Major version number").nullable(),
|
|
14
|
-
thinking: zod.z.
|
|
15
|
-
baseModelId: zod.z.
|
|
16
|
-
description: zod.z.
|
|
17
|
-
displayName: zod.z.
|
|
18
|
-
temperature: zod.z.
|
|
19
|
-
maxTemperature: zod.z.
|
|
20
|
-
inputTokenLimit: zod.z.
|
|
21
|
-
outputTokenLimit: zod.z.
|
|
22
|
-
supportedGenerationMethods: zod.z.
|
|
14
|
+
thinking: zod.z.boolean().describe("Whether model supports thinking capability").nullable().optional(),
|
|
15
|
+
baseModelId: zod.z.string().describe("Base model name for generation requests").nullable().optional(),
|
|
16
|
+
description: zod.z.string().describe("Brief model summary").nullable().optional(),
|
|
17
|
+
displayName: zod.z.string().describe("Human-readable model name").nullable().optional(),
|
|
18
|
+
temperature: zod.z.union([zod.z.number().int(), zod.z.number()]).nullable().optional(),
|
|
19
|
+
maxTemperature: zod.z.union([zod.z.number().int(), zod.z.number()]).nullable().optional(),
|
|
20
|
+
inputTokenLimit: zod.z.number().int().describe("Maximum input tokens allowed").nullable().optional(),
|
|
21
|
+
outputTokenLimit: zod.z.number().int().describe("Maximum output tokens available").nullable().optional(),
|
|
22
|
+
supportedGenerationMethods: zod.z.array(zod.z.string()).describe("Supported methods like generateContent").nullable().optional()
|
|
23
23
|
}).describe("Represents a Gemini model with its capabilities and limits.");
|
|
24
24
|
const GeminiListModels_RawListModelsResponseSchema = zod.z.object({
|
|
25
|
-
models: zod.z.
|
|
26
|
-
nextPageToken: zod.z.
|
|
25
|
+
models: zod.z.array(GeminiListModels_ModelSchema).describe("List of models").nullable().optional(),
|
|
26
|
+
nextPageToken: zod.z.string().describe("Token for retrieving next page").nullable().optional()
|
|
27
27
|
}).describe("Raw API response from the models.list endpoint.");
|
|
28
28
|
const GeminiListModelsOutput = zod.z.object({
|
|
29
29
|
raw: GeminiListModels_RawListModelsResponseSchema.nullable(),
|
|
30
|
-
models: zod.z.
|
|
30
|
+
models: zod.z.array(GeminiListModels_ModelSchema).describe("List of available models").nullable().optional()
|
|
31
31
|
});
|
|
32
32
|
const geminiListModels = require_action.action("GEMINI_LIST_MODELS", {
|
|
33
33
|
slug: "gemini-list-models",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-models.cjs","names":["z","action"],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.
|
|
1
|
+
{"version":3,"file":"list-models.cjs","names":["z","action"],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.number().int().describe(\"Default top-k sampling parameter\").nullable().optional(),\n topP: z.number().describe(\"Default nucleus sampling parameter\").nullable().optional(),\n version: z.string().describe(\"Major version number\").nullable(),\n thinking: z.boolean().describe(\"Whether model supports thinking capability\").nullable().optional(),\n baseModelId: z.string().describe(\"Base model name for generation requests\").nullable().optional(),\n description: z.string().describe(\"Brief model summary\").nullable().optional(),\n displayName: z.string().describe(\"Human-readable model name\").nullable().optional(),\n temperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n maxTemperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n inputTokenLimit: z.number().int().describe(\"Maximum input tokens allowed\").nullable().optional(),\n outputTokenLimit: z.number().int().describe(\"Maximum output tokens available\").nullable().optional(),\n supportedGenerationMethods: z.array(z.string()).describe(\"Supported methods like generateContent\").nullable().optional(),\n}).describe(\"Represents a Gemini model with its capabilities and limits.\");\nconst GeminiListModels_RawListModelsResponseSchema = z.object({\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of models\").nullable().optional(),\n nextPageToken: z.string().describe(\"Token for retrieving next page\").nullable().optional(),\n}).describe(\"Raw API response from the models.list endpoint.\");\nexport const GeminiListModelsOutput = z.object({\n raw: GeminiListModels_RawListModelsResponseSchema.nullable(),\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of available models\").nullable().optional(),\n});\n\nexport const geminiListModels = action(\"GEMINI_LIST_MODELS\", {\n slug: \"gemini-list-models\",\n name: \"List Models (Gemini API)\",\n description: \"Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests. Before calling video generation tools, verify model availability here — preview Veo models (e.g., veo-3.0-generate-preview) may be unavailable or return missing video URIs; prefer stable models like veo-2.0-generate-001.\",\n input: GeminiListModelsInput,\n output: GeminiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACxI,CAAC;AACD,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,4BAA4BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAC7D,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAK,6CAA6C,SAAS;CAC3D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC;AAED,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -8,78 +8,44 @@ declare const GeminiListModelsInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const GeminiListModelsOutput: z.ZodObject<{
|
|
10
10
|
raw: z.ZodNullable<z.ZodObject<{
|
|
11
|
-
models: z.
|
|
11
|
+
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
|
-
topK: z.
|
|
14
|
-
topP: z.
|
|
13
|
+
topK: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
15
|
version: z.ZodNullable<z.ZodString>;
|
|
16
|
-
thinking: z.
|
|
17
|
-
baseModelId: z.
|
|
18
|
-
description: z.
|
|
19
|
-
displayName: z.
|
|
20
|
-
temperature: z.
|
|
21
|
-
maxTemperature: z.
|
|
22
|
-
inputTokenLimit: z.
|
|
23
|
-
outputTokenLimit: z.
|
|
24
|
-
supportedGenerationMethods: z.
|
|
16
|
+
thinking: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
baseModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
21
|
+
maxTemperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
22
|
+
inputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
outputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
supportedGenerationMethods: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
25
|
}, z.core.$strip>>>>;
|
|
26
|
-
nextPageToken: z.
|
|
26
|
+
nextPageToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
|
-
models: z.
|
|
28
|
+
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
|
-
topK: z.
|
|
31
|
-
topP: z.
|
|
30
|
+
topK: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
version: z.ZodNullable<z.ZodString>;
|
|
33
|
-
thinking: z.
|
|
34
|
-
baseModelId: z.
|
|
35
|
-
description: z.
|
|
36
|
-
displayName: z.
|
|
37
|
-
temperature: z.
|
|
38
|
-
maxTemperature: z.
|
|
39
|
-
inputTokenLimit: z.
|
|
40
|
-
outputTokenLimit: z.
|
|
41
|
-
supportedGenerationMethods: z.
|
|
33
|
+
thinking: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
baseModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
38
|
+
maxTemperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
39
|
+
inputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
outputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
|
+
supportedGenerationMethods: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
42
|
}, z.core.$strip>>>>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
declare const geminiListModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
page_size?: number | undefined;
|
|
46
46
|
page_token?: string | undefined;
|
|
47
47
|
filter_prefix?: string | undefined;
|
|
48
|
-
},
|
|
49
|
-
raw: {
|
|
50
|
-
models?: {
|
|
51
|
-
name: string | null;
|
|
52
|
-
version: string | null;
|
|
53
|
-
topK?: number | undefined;
|
|
54
|
-
topP?: number | undefined;
|
|
55
|
-
thinking?: boolean | undefined;
|
|
56
|
-
baseModelId?: string | undefined;
|
|
57
|
-
description?: string | undefined;
|
|
58
|
-
displayName?: string | undefined;
|
|
59
|
-
temperature?: number | undefined;
|
|
60
|
-
maxTemperature?: number | undefined;
|
|
61
|
-
inputTokenLimit?: number | undefined;
|
|
62
|
-
outputTokenLimit?: number | undefined;
|
|
63
|
-
supportedGenerationMethods?: string[] | undefined;
|
|
64
|
-
}[] | undefined;
|
|
65
|
-
nextPageToken?: string | undefined;
|
|
66
|
-
} | null;
|
|
67
|
-
models?: {
|
|
68
|
-
name: string | null;
|
|
69
|
-
version: string | null;
|
|
70
|
-
topK?: number | undefined;
|
|
71
|
-
topP?: number | undefined;
|
|
72
|
-
thinking?: boolean | undefined;
|
|
73
|
-
baseModelId?: string | undefined;
|
|
74
|
-
description?: string | undefined;
|
|
75
|
-
displayName?: string | undefined;
|
|
76
|
-
temperature?: number | undefined;
|
|
77
|
-
maxTemperature?: number | undefined;
|
|
78
|
-
inputTokenLimit?: number | undefined;
|
|
79
|
-
outputTokenLimit?: number | undefined;
|
|
80
|
-
supportedGenerationMethods?: string[] | undefined;
|
|
81
|
-
}[] | undefined;
|
|
82
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
83
49
|
//#endregion
|
|
84
50
|
export { geminiListModels };
|
|
85
51
|
//# sourceMappingURL=list-models.d.cts.map
|
|
@@ -8,78 +8,44 @@ declare const GeminiListModelsInput: z.ZodObject<{
|
|
|
8
8
|
}, z.core.$strip>;
|
|
9
9
|
declare const GeminiListModelsOutput: z.ZodObject<{
|
|
10
10
|
raw: z.ZodNullable<z.ZodObject<{
|
|
11
|
-
models: z.
|
|
11
|
+
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
12
12
|
name: z.ZodNullable<z.ZodString>;
|
|
13
|
-
topK: z.
|
|
14
|
-
topP: z.
|
|
13
|
+
topK: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
14
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
15
15
|
version: z.ZodNullable<z.ZodString>;
|
|
16
|
-
thinking: z.
|
|
17
|
-
baseModelId: z.
|
|
18
|
-
description: z.
|
|
19
|
-
displayName: z.
|
|
20
|
-
temperature: z.
|
|
21
|
-
maxTemperature: z.
|
|
22
|
-
inputTokenLimit: z.
|
|
23
|
-
outputTokenLimit: z.
|
|
24
|
-
supportedGenerationMethods: z.
|
|
16
|
+
thinking: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
17
|
+
baseModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
18
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
19
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
21
|
+
maxTemperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
22
|
+
inputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
23
|
+
outputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
24
|
+
supportedGenerationMethods: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
25
25
|
}, z.core.$strip>>>>;
|
|
26
|
-
nextPageToken: z.
|
|
26
|
+
nextPageToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
27
27
|
}, z.core.$strip>>;
|
|
28
|
-
models: z.
|
|
28
|
+
models: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
|
|
29
29
|
name: z.ZodNullable<z.ZodString>;
|
|
30
|
-
topK: z.
|
|
31
|
-
topP: z.
|
|
30
|
+
topK: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
31
|
+
topP: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
32
32
|
version: z.ZodNullable<z.ZodString>;
|
|
33
|
-
thinking: z.
|
|
34
|
-
baseModelId: z.
|
|
35
|
-
description: z.
|
|
36
|
-
displayName: z.
|
|
37
|
-
temperature: z.
|
|
38
|
-
maxTemperature: z.
|
|
39
|
-
inputTokenLimit: z.
|
|
40
|
-
outputTokenLimit: z.
|
|
41
|
-
supportedGenerationMethods: z.
|
|
33
|
+
thinking: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
|
|
34
|
+
baseModelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
36
|
+
displayName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
37
|
+
temperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
38
|
+
maxTemperature: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodNumber, z.ZodNumber]>>>;
|
|
39
|
+
inputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
40
|
+
outputTokenLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
41
|
+
supportedGenerationMethods: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
42
42
|
}, z.core.$strip>>>>;
|
|
43
43
|
}, z.core.$strip>;
|
|
44
44
|
declare const geminiListModels: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
45
45
|
page_size?: number | undefined;
|
|
46
46
|
page_token?: string | undefined;
|
|
47
47
|
filter_prefix?: string | undefined;
|
|
48
|
-
},
|
|
49
|
-
raw: {
|
|
50
|
-
models?: {
|
|
51
|
-
name: string | null;
|
|
52
|
-
version: string | null;
|
|
53
|
-
topK?: number | undefined;
|
|
54
|
-
topP?: number | undefined;
|
|
55
|
-
thinking?: boolean | undefined;
|
|
56
|
-
baseModelId?: string | undefined;
|
|
57
|
-
description?: string | undefined;
|
|
58
|
-
displayName?: string | undefined;
|
|
59
|
-
temperature?: number | undefined;
|
|
60
|
-
maxTemperature?: number | undefined;
|
|
61
|
-
inputTokenLimit?: number | undefined;
|
|
62
|
-
outputTokenLimit?: number | undefined;
|
|
63
|
-
supportedGenerationMethods?: string[] | undefined;
|
|
64
|
-
}[] | undefined;
|
|
65
|
-
nextPageToken?: string | undefined;
|
|
66
|
-
} | null;
|
|
67
|
-
models?: {
|
|
68
|
-
name: string | null;
|
|
69
|
-
version: string | null;
|
|
70
|
-
topK?: number | undefined;
|
|
71
|
-
topP?: number | undefined;
|
|
72
|
-
thinking?: boolean | undefined;
|
|
73
|
-
baseModelId?: string | undefined;
|
|
74
|
-
description?: string | undefined;
|
|
75
|
-
displayName?: string | undefined;
|
|
76
|
-
temperature?: number | undefined;
|
|
77
|
-
maxTemperature?: number | undefined;
|
|
78
|
-
inputTokenLimit?: number | undefined;
|
|
79
|
-
outputTokenLimit?: number | undefined;
|
|
80
|
-
supportedGenerationMethods?: string[] | undefined;
|
|
81
|
-
}[] | undefined;
|
|
82
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
48
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
83
49
|
//#endregion
|
|
84
50
|
export { geminiListModels };
|
|
85
51
|
//# sourceMappingURL=list-models.d.mts.map
|
|
@@ -8,22 +8,22 @@ const GeminiListModelsInput = z.object({
|
|
|
8
8
|
});
|
|
9
9
|
const GeminiListModels_ModelSchema = z.object({
|
|
10
10
|
name: z.string().describe("Resource identifier in format models/{model}").nullable(),
|
|
11
|
-
topK: z.
|
|
12
|
-
topP: z.
|
|
11
|
+
topK: z.number().int().describe("Default top-k sampling parameter").nullable().optional(),
|
|
12
|
+
topP: z.number().describe("Default nucleus sampling parameter").nullable().optional(),
|
|
13
13
|
version: z.string().describe("Major version number").nullable(),
|
|
14
|
-
thinking: z.
|
|
15
|
-
baseModelId: z.
|
|
16
|
-
description: z.
|
|
17
|
-
displayName: z.
|
|
18
|
-
temperature: z.
|
|
19
|
-
maxTemperature: z.
|
|
20
|
-
inputTokenLimit: z.
|
|
21
|
-
outputTokenLimit: z.
|
|
22
|
-
supportedGenerationMethods: z.
|
|
14
|
+
thinking: z.boolean().describe("Whether model supports thinking capability").nullable().optional(),
|
|
15
|
+
baseModelId: z.string().describe("Base model name for generation requests").nullable().optional(),
|
|
16
|
+
description: z.string().describe("Brief model summary").nullable().optional(),
|
|
17
|
+
displayName: z.string().describe("Human-readable model name").nullable().optional(),
|
|
18
|
+
temperature: z.union([z.number().int(), z.number()]).nullable().optional(),
|
|
19
|
+
maxTemperature: z.union([z.number().int(), z.number()]).nullable().optional(),
|
|
20
|
+
inputTokenLimit: z.number().int().describe("Maximum input tokens allowed").nullable().optional(),
|
|
21
|
+
outputTokenLimit: z.number().int().describe("Maximum output tokens available").nullable().optional(),
|
|
22
|
+
supportedGenerationMethods: z.array(z.string()).describe("Supported methods like generateContent").nullable().optional()
|
|
23
23
|
}).describe("Represents a Gemini model with its capabilities and limits.");
|
|
24
24
|
const GeminiListModels_RawListModelsResponseSchema = z.object({
|
|
25
|
-
models: z.
|
|
26
|
-
nextPageToken: z.
|
|
25
|
+
models: z.array(GeminiListModels_ModelSchema).describe("List of models").nullable().optional(),
|
|
26
|
+
nextPageToken: z.string().describe("Token for retrieving next page").nullable().optional()
|
|
27
27
|
}).describe("Raw API response from the models.list endpoint.");
|
|
28
28
|
const geminiListModels = action("GEMINI_LIST_MODELS", {
|
|
29
29
|
slug: "gemini-list-models",
|
|
@@ -32,7 +32,7 @@ const geminiListModels = action("GEMINI_LIST_MODELS", {
|
|
|
32
32
|
input: GeminiListModelsInput,
|
|
33
33
|
output: z.object({
|
|
34
34
|
raw: GeminiListModels_RawListModelsResponseSchema.nullable(),
|
|
35
|
-
models: z.
|
|
35
|
+
models: z.array(GeminiListModels_ModelSchema).describe("List of available models").nullable().optional()
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-models.mjs","names":[],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.
|
|
1
|
+
{"version":3,"file":"list-models.mjs","names":[],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.number().int().describe(\"Default top-k sampling parameter\").nullable().optional(),\n topP: z.number().describe(\"Default nucleus sampling parameter\").nullable().optional(),\n version: z.string().describe(\"Major version number\").nullable(),\n thinking: z.boolean().describe(\"Whether model supports thinking capability\").nullable().optional(),\n baseModelId: z.string().describe(\"Base model name for generation requests\").nullable().optional(),\n description: z.string().describe(\"Brief model summary\").nullable().optional(),\n displayName: z.string().describe(\"Human-readable model name\").nullable().optional(),\n temperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n maxTemperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n inputTokenLimit: z.number().int().describe(\"Maximum input tokens allowed\").nullable().optional(),\n outputTokenLimit: z.number().int().describe(\"Maximum output tokens available\").nullable().optional(),\n supportedGenerationMethods: z.array(z.string()).describe(\"Supported methods like generateContent\").nullable().optional(),\n}).describe(\"Represents a Gemini model with its capabilities and limits.\");\nconst GeminiListModels_RawListModelsResponseSchema = z.object({\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of models\").nullable().optional(),\n nextPageToken: z.string().describe(\"Token for retrieving next page\").nullable().optional(),\n}).describe(\"Raw API response from the models.list endpoint.\");\nexport const GeminiListModelsOutput = z.object({\n raw: GeminiListModels_RawListModelsResponseSchema.nullable(),\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of available models\").nullable().optional(),\n});\n\nexport const geminiListModels = action(\"GEMINI_LIST_MODELS\", {\n slug: \"gemini-list-models\",\n name: \"List Models (Gemini API)\",\n description: \"Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests. Before calling video generation tools, verify model availability here — preview Veo models (e.g., veo-3.0-generate-preview) may be unavailable or return missing video URIs; prefer stable models like veo-2.0-generate-001.\",\n input: GeminiListModelsInput,\n output: GeminiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACxI,CAAC;AACD,MAAM,+BAA+B,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,4BAA4B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,SAAS,6DAA6D;AACzE,MAAM,+CAA+C,EAAE,OAAO;CAC5D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,iDAAiD;AAM7D,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,KAAK,6CAA6C,SAAS;EAC3D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAOU;AACV,CAAC"}
|
|
@@ -9,14 +9,14 @@ const GeminiWaitForVideo_FileDownloadableSchema = zod.z.object({
|
|
|
9
9
|
});
|
|
10
10
|
const GeminiWaitForVideo_RaiFilteringResultSchema = zod.z.object({
|
|
11
11
|
message: zod.z.string().describe("Human-readable message explaining the filtering and suggesting next steps.").nullable(),
|
|
12
|
-
filtered: zod.z.
|
|
13
|
-
filter_reasons: zod.z.
|
|
12
|
+
filtered: zod.z.boolean().default(true).describe("Always True when this object is present, indicating content was filtered.").nullable().optional(),
|
|
13
|
+
filter_reasons: zod.z.array(zod.z.string()).describe("List of reasons why the content was blocked by safety filters.").nullable().optional(),
|
|
14
14
|
filtered_count: zod.z.number().int().describe("Number of videos filtered by RAI safety policies.").nullable()
|
|
15
15
|
}).describe("Represents when video generation was blocked by Responsible AI safety filters.");
|
|
16
16
|
const GeminiWaitForVideoOutput = zod.z.object({
|
|
17
17
|
success: zod.z.boolean().describe("True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.").nullable(),
|
|
18
|
-
video_file:
|
|
19
|
-
rai_filtering:
|
|
18
|
+
video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),
|
|
19
|
+
rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional()
|
|
20
20
|
});
|
|
21
21
|
const geminiWaitForVideo = require_action.action("GEMINI_WAIT_FOR_VIDEO", {
|
|
22
22
|
slug: "gemini-wait-for-video",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait-for-video.cjs","names":["z","action"],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.0-generate-001/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. CRITICAL: Must be from a generate-video operation (VEO_2, VEO_3, VEO_3_FAST models), NOT generate-preview operations (VEO_3_1, VEO_3_1_FAST models). Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.
|
|
1
|
+
{"version":3,"file":"wait-for-video.cjs","names":["z","action"],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.0-generate-001/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. CRITICAL: Must be from a generate-video operation (VEO_2, VEO_3, VEO_3_FAST models), NOT generate-preview operations (VEO_3_1, VEO_3_1_FAST models). Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.boolean().default(true).describe(\"Always True when this object is present, indicating content was filtered.\").nullable().optional(),\n filter_reasons: z.array(z.string()).describe(\"List of reasons why the content was blocked by safety filters.\").nullable().optional(),\n filtered_count: z.number().int().describe(\"Number of videos filtered by RAI safety policies.\").nullable(),\n}).describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\").nullable(),\n video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),\n rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional(),\n});\n\nexport const geminiWaitForVideo = action(\"GEMINI_WAIT_FOR_VIDEO\", {\n slug: \"gemini-wait-for-video\",\n name: \"Wait and Download Video (Veo)\",\n description: \"Polls a Veo video generation operation until completion, then downloads and returns the video file. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. A done=true response without a video file indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.\",\n input: GeminiWaitForVideoInput,\n output: GeminiWaitForVideoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+nBAA+nB,EACrqB,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpJ,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -6,34 +6,21 @@ declare const GeminiWaitForVideoInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const GeminiWaitForVideoOutput: z.ZodObject<{
|
|
8
8
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
-
video_file: z.
|
|
9
|
+
video_file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
s3url: z.ZodNullable<z.ZodString>;
|
|
12
12
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
13
13
|
}, z.core.$strip>>>;
|
|
14
|
-
rai_filtering: z.
|
|
14
|
+
rai_filtering: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
15
|
message: z.ZodNullable<z.ZodString>;
|
|
16
|
-
filtered: z.
|
|
17
|
-
filter_reasons: z.
|
|
16
|
+
filtered: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
17
|
+
filter_reasons: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
18
|
filtered_count: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
declare const geminiWaitForVideo: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
operation_name: string;
|
|
23
|
-
},
|
|
24
|
-
success: boolean | null;
|
|
25
|
-
video_file?: {
|
|
26
|
-
name: string | null;
|
|
27
|
-
s3url: string | null;
|
|
28
|
-
mimetype: string | null;
|
|
29
|
-
} | undefined;
|
|
30
|
-
rai_filtering?: {
|
|
31
|
-
message: string | null;
|
|
32
|
-
filtered_count: number | null;
|
|
33
|
-
filtered?: boolean | undefined;
|
|
34
|
-
filter_reasons?: string[] | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
24
|
//#endregion
|
|
38
25
|
export { geminiWaitForVideo };
|
|
39
26
|
//# sourceMappingURL=wait-for-video.d.cts.map
|
|
@@ -6,34 +6,21 @@ declare const GeminiWaitForVideoInput: z.ZodObject<{
|
|
|
6
6
|
}, z.core.$strip>;
|
|
7
7
|
declare const GeminiWaitForVideoOutput: z.ZodObject<{
|
|
8
8
|
success: z.ZodNullable<z.ZodBoolean>;
|
|
9
|
-
video_file: z.
|
|
9
|
+
video_file: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
10
10
|
name: z.ZodNullable<z.ZodString>;
|
|
11
11
|
s3url: z.ZodNullable<z.ZodString>;
|
|
12
12
|
mimetype: z.ZodNullable<z.ZodString>;
|
|
13
13
|
}, z.core.$strip>>>;
|
|
14
|
-
rai_filtering: z.
|
|
14
|
+
rai_filtering: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
15
15
|
message: z.ZodNullable<z.ZodString>;
|
|
16
|
-
filtered: z.
|
|
17
|
-
filter_reasons: z.
|
|
16
|
+
filtered: z.ZodOptional<z.ZodNullable<z.ZodDefault<z.ZodBoolean>>>;
|
|
17
|
+
filter_reasons: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
|
|
18
18
|
filtered_count: z.ZodNullable<z.ZodNumber>;
|
|
19
19
|
}, z.core.$strip>>>;
|
|
20
20
|
}, z.core.$strip>;
|
|
21
21
|
declare const geminiWaitForVideo: import("@keystrokehq/action").WorkflowActionDefinition<{
|
|
22
22
|
operation_name: string;
|
|
23
|
-
},
|
|
24
|
-
success: boolean | null;
|
|
25
|
-
video_file?: {
|
|
26
|
-
name: string | null;
|
|
27
|
-
s3url: string | null;
|
|
28
|
-
mimetype: string | null;
|
|
29
|
-
} | undefined;
|
|
30
|
-
rai_filtering?: {
|
|
31
|
-
message: string | null;
|
|
32
|
-
filtered_count: number | null;
|
|
33
|
-
filtered?: boolean | undefined;
|
|
34
|
-
filter_reasons?: string[] | undefined;
|
|
35
|
-
} | undefined;
|
|
36
|
-
}, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
23
|
+
}, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
37
24
|
//#endregion
|
|
38
25
|
export { geminiWaitForVideo };
|
|
39
26
|
//# sourceMappingURL=wait-for-video.d.mts.map
|
|
@@ -9,8 +9,8 @@ const GeminiWaitForVideo_FileDownloadableSchema = z.object({
|
|
|
9
9
|
});
|
|
10
10
|
const GeminiWaitForVideo_RaiFilteringResultSchema = z.object({
|
|
11
11
|
message: z.string().describe("Human-readable message explaining the filtering and suggesting next steps.").nullable(),
|
|
12
|
-
filtered: z.
|
|
13
|
-
filter_reasons: z.
|
|
12
|
+
filtered: z.boolean().default(true).describe("Always True when this object is present, indicating content was filtered.").nullable().optional(),
|
|
13
|
+
filter_reasons: z.array(z.string()).describe("List of reasons why the content was blocked by safety filters.").nullable().optional(),
|
|
14
14
|
filtered_count: z.number().int().describe("Number of videos filtered by RAI safety policies.").nullable()
|
|
15
15
|
}).describe("Represents when video generation was blocked by Responsible AI safety filters.");
|
|
16
16
|
const geminiWaitForVideo = action("GEMINI_WAIT_FOR_VIDEO", {
|
|
@@ -20,8 +20,8 @@ const geminiWaitForVideo = action("GEMINI_WAIT_FOR_VIDEO", {
|
|
|
20
20
|
input: GeminiWaitForVideoInput,
|
|
21
21
|
output: z.object({
|
|
22
22
|
success: z.boolean().describe("True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.").nullable(),
|
|
23
|
-
video_file:
|
|
24
|
-
rai_filtering:
|
|
23
|
+
video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),
|
|
24
|
+
rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional()
|
|
25
25
|
})
|
|
26
26
|
});
|
|
27
27
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait-for-video.mjs","names":[],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.0-generate-001/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. CRITICAL: Must be from a generate-video operation (VEO_2, VEO_3, VEO_3_FAST models), NOT generate-preview operations (VEO_3_1, VEO_3_1_FAST models). Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.
|
|
1
|
+
{"version":3,"file":"wait-for-video.mjs","names":[],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.0-generate-001/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. CRITICAL: Must be from a generate-video operation (VEO_2, VEO_3, VEO_3_FAST models), NOT generate-preview operations (VEO_3_1, VEO_3_1_FAST models). Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n});\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.boolean().default(true).describe(\"Always True when this object is present, indicating content was filtered.\").nullable().optional(),\n filter_reasons: z.array(z.string()).describe(\"List of reasons why the content was blocked by safety filters.\").nullable().optional(),\n filtered_count: z.number().int().describe(\"Number of videos filtered by RAI safety policies.\").nullable(),\n}).describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\").nullable(),\n video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),\n rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional(),\n});\n\nexport const geminiWaitForVideo = action(\"GEMINI_WAIT_FOR_VIDEO\", {\n slug: \"gemini-wait-for-video\",\n name: \"Wait and Download Video (Veo)\",\n description: \"Polls a Veo video generation operation until completion, then downloads and returns the video file. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. A done=true response without a video file indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.\",\n input: GeminiWaitForVideoInput,\n output: GeminiWaitForVideoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+nBAA+nB,EACrqB,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC;AACD,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAO5F,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACpJ,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACjF,CAOU;AACV,CAAC"}
|