@keystrokehq/gemini 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -0
- package/dist/action.cjs +21 -0
- package/dist/action.cjs.map +1 -0
- package/dist/action.mjs +21 -0
- package/dist/action.mjs.map +1 -0
- package/dist/actions/count-tokens.cjs +26 -0
- package/dist/actions/count-tokens.cjs.map +1 -0
- package/dist/actions/count-tokens.d.cts +9 -0
- package/dist/actions/count-tokens.d.cts.map +1 -0
- package/dist/actions/count-tokens.d.mts +9 -0
- package/dist/actions/count-tokens.d.mts.map +1 -0
- package/dist/actions/count-tokens.mjs +25 -0
- package/dist/actions/count-tokens.mjs.map +1 -0
- package/dist/actions/embed-content.cjs +25 -0
- package/dist/actions/embed-content.cjs.map +1 -0
- package/dist/actions/embed-content.d.cts +9 -0
- package/dist/actions/embed-content.d.cts.map +1 -0
- package/dist/actions/embed-content.d.mts +9 -0
- package/dist/actions/embed-content.d.mts.map +1 -0
- package/dist/actions/embed-content.mjs +22 -0
- package/dist/actions/embed-content.mjs.map +1 -0
- package/dist/actions/generate-content.cjs +66 -0
- package/dist/actions/generate-content.cjs.map +1 -0
- package/dist/actions/generate-content.d.cts +9 -0
- package/dist/actions/generate-content.d.cts.map +1 -0
- package/dist/actions/generate-content.d.mts +9 -0
- package/dist/actions/generate-content.d.mts.map +1 -0
- package/dist/actions/generate-content.mjs +63 -0
- package/dist/actions/generate-content.mjs.map +1 -0
- package/dist/actions/generate-image.cjs +65 -0
- package/dist/actions/generate-image.cjs.map +1 -0
- package/dist/actions/generate-image.d.cts +9 -0
- package/dist/actions/generate-image.d.cts.map +1 -0
- package/dist/actions/generate-image.d.mts +9 -0
- package/dist/actions/generate-image.d.mts.map +1 -0
- package/dist/actions/generate-image.mjs +64 -0
- package/dist/actions/generate-image.mjs.map +1 -0
- package/dist/actions/generate-videos.cjs +49 -0
- package/dist/actions/generate-videos.cjs.map +1 -0
- package/dist/actions/generate-videos.d.cts +9 -0
- package/dist/actions/generate-videos.d.cts.map +1 -0
- package/dist/actions/generate-videos.d.mts +9 -0
- package/dist/actions/generate-videos.d.mts.map +1 -0
- package/dist/actions/generate-videos.mjs +48 -0
- package/dist/actions/generate-videos.mjs.map +1 -0
- package/dist/actions/index.cjs +15 -0
- package/dist/actions/index.d.cts +8 -0
- package/dist/actions/index.d.mts +8 -0
- package/dist/actions/index.mjs +8 -0
- package/dist/actions/list-models.cjs +42 -0
- package/dist/actions/list-models.cjs.map +1 -0
- package/dist/actions/list-models.d.cts +9 -0
- package/dist/actions/list-models.d.cts.map +1 -0
- package/dist/actions/list-models.d.mts +9 -0
- package/dist/actions/list-models.d.mts.map +1 -0
- package/dist/actions/list-models.mjs +41 -0
- package/dist/actions/list-models.mjs.map +1 -0
- package/dist/actions/wait-for-video.cjs +31 -0
- package/dist/actions/wait-for-video.cjs.map +1 -0
- package/dist/actions/wait-for-video.d.cts +9 -0
- package/dist/actions/wait-for-video.d.cts.map +1 -0
- package/dist/actions/wait-for-video.d.mts +9 -0
- package/dist/actions/wait-for-video.d.mts.map +1 -0
- package/dist/actions/wait-for-video.mjs +30 -0
- package/dist/actions/wait-for-video.mjs.map +1 -0
- package/dist/app.cjs +9 -0
- package/dist/app.cjs.map +1 -0
- package/dist/app.d.cts +5 -0
- package/dist/app.d.cts.map +1 -0
- package/dist/app.d.mts +5 -0
- package/dist/app.d.mts.map +1 -0
- package/dist/app.mjs +10 -0
- package/dist/app.mjs.map +1 -0
- package/dist/catalog.cjs +15 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +14 -0
- package/dist/catalog.d.cts.map +1 -0
- package/dist/catalog.d.mts +14 -0
- package/dist/catalog.d.mts.map +1 -0
- package/dist/catalog.mjs +15 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/execute.cjs +18 -0
- package/dist/execute.cjs.map +1 -0
- package/dist/execute.mjs +18 -0
- package/dist/execute.mjs.map +1 -0
- package/dist/index.cjs +20 -0
- package/dist/index.d.cts +10 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.mjs +11 -0
- package/package.json +49 -0
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/generate-image.ts
|
|
4
|
+
const GeminiGenerateImageInput = z.object({
|
|
5
|
+
model: z.enum([
|
|
6
|
+
"gemini-2.5-flash-image",
|
|
7
|
+
"gemini-3-pro-image-preview",
|
|
8
|
+
"gemini-2.0-flash-exp-image-generation"
|
|
9
|
+
]).default("gemini-3-pro-image-preview").describe("Model to use for image generation. Options: 'gemini-2.5-flash-image' (GA stable, fast), 'gemini-3-pro-image-preview' (advanced with 4K, thinking mode), 'gemini-2.0-flash-exp-image-generation' (2.0 Flash experimental).").optional(),
|
|
10
|
+
top_k: z.number().int().describe("Top-k sampling parameter").optional(),
|
|
11
|
+
top_p: z.number().describe("Nucleus sampling parameter (0.0 to 1.0)").optional(),
|
|
12
|
+
prompt: z.string().describe("Text prompt for image generation Sensitive, trademarked, or explicit content triggers HTTP 400 (PROHIBITED_CONTENT or IMAGE_RECITATION) with no image returned — rephrase into neutral, policy-compliant language rather than retrying identical prompts."),
|
|
13
|
+
timeout: z.number().default(300).describe("Request timeout in seconds. Default is 300 seconds (5 minutes). Increase for complex prompts or high-resolution images. Minimum 120 seconds, maximum 600 seconds.").optional(),
|
|
14
|
+
image_size: z.enum([
|
|
15
|
+
"1K",
|
|
16
|
+
"2K",
|
|
17
|
+
"4K"
|
|
18
|
+
]).default("1K").describe("Output resolution (only for 'gemini-3-pro-image-preview'). Options: 1K, 2K, 4K.").optional(),
|
|
19
|
+
temperature: z.number().describe("Controls randomness (0.0 to 2.0)").optional(),
|
|
20
|
+
aspect_ratio: z.enum([
|
|
21
|
+
"1:1",
|
|
22
|
+
"2:3",
|
|
23
|
+
"3:2",
|
|
24
|
+
"3:4",
|
|
25
|
+
"4:3",
|
|
26
|
+
"4:5",
|
|
27
|
+
"5:4",
|
|
28
|
+
"9:16",
|
|
29
|
+
"16:9",
|
|
30
|
+
"21:9"
|
|
31
|
+
]).default("1:1").describe("Aspect ratio for generated image. Not supported by 'gemini-2.0-flash-exp-image-generation' model. Accepted values: '1:1', '4:5', '16:9', '9:16'. Unsupported strings will fail or silently default to 1:1.").optional(),
|
|
32
|
+
safety_settings: z.array(z.object({
|
|
33
|
+
category: z.enum([
|
|
34
|
+
"HARM_CATEGORY_HARASSMENT",
|
|
35
|
+
"HARM_CATEGORY_HATE_SPEECH",
|
|
36
|
+
"HARM_CATEGORY_SEXUALLY_EXPLICIT",
|
|
37
|
+
"HARM_CATEGORY_DANGEROUS_CONTENT"
|
|
38
|
+
]).describe("The category of harmful content to filter"),
|
|
39
|
+
threshold: z.enum([
|
|
40
|
+
"BLOCK_NONE",
|
|
41
|
+
"BLOCK_LOW_AND_ABOVE",
|
|
42
|
+
"BLOCK_MEDIUM_AND_ABOVE",
|
|
43
|
+
"BLOCK_ONLY_HIGH"
|
|
44
|
+
]).describe("The threshold for blocking content in this category")
|
|
45
|
+
})).describe("Safety filter settings. List of objects specifying content categories to filter and threshold levels. Each setting requires 'category' (HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, or HARM_CATEGORY_DANGEROUS_CONTENT) and 'threshold' (BLOCK_NONE, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, or BLOCK_ONLY_HIGH).").optional(),
|
|
46
|
+
max_output_tokens: z.number().int().describe("Maximum number of tokens to generate (max 32,768). For image generation, images consume tokens based on resolution: 1K/2K consume 1,120 tokens, 4K consumes 2,000 tokens. If set too low, the API may return MAX_TOKENS finish reason with no image. If not specified, the API uses its default which is sufficient for image generation.").optional(),
|
|
47
|
+
system_instruction: z.string().describe("System instruction to guide image generation behavior").optional()
|
|
48
|
+
});
|
|
49
|
+
const GeminiGenerateImage_FileDownloadableSchema = z.object({
|
|
50
|
+
name: z.string().describe("Name of the file"),
|
|
51
|
+
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
52
|
+
mimetype: z.string().describe("Mime type of the file.")
|
|
53
|
+
});
|
|
54
|
+
const geminiGenerateImage = action("GEMINI_GENERATE_IMAGE", {
|
|
55
|
+
slug: "gemini-generate-image",
|
|
56
|
+
name: "Generate Image (Nano Banana)",
|
|
57
|
+
description: "Generates images from text prompts using Gemini models (Nano Banana). Supports models: 'gemini-2.5-flash-image' (GA stable, fast), 'gemini-3-pro-image-preview' (Nano Banana Pro - advanced with 4K resolution, thinking mode, up to 14 reference images), and 'gemini-2.0-flash-exp-image-generation' (2.0 Flash experimental). Returns one image per call; images are uploaded to S3. Parse response at data.image.s3url or the text-type entry in data.content — prefer the URL to avoid base64 blobs. Always validate s3url before treating call as successful; a 200 response may contain only text with no image. Store s3url immediately as URLs can expire. Output formats are raster only (JPG/PNG/WebP); request PNG for transparency. Concurrent usage may trigger HTTP 429/RESOURCE_EXHAUSTED — keep concurrency ≤3 and use exponential backoff (1s→2s→4s, ~5 retries). NOTE NEVER EVER TRUE SYNC_TO_WORKBENCH IN RUBE_MULTI_EXECUTE_TOOL",
|
|
58
|
+
input: GeminiGenerateImageInput,
|
|
59
|
+
output: z.object({ image: GeminiGenerateImage_FileDownloadableSchema.nullable() })
|
|
60
|
+
});
|
|
61
|
+
//#endregion
|
|
62
|
+
export { geminiGenerateImage };
|
|
63
|
+
|
|
64
|
+
//# sourceMappingURL=generate-image.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-image.mjs","names":[],"sources":["../../src/actions/generate-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateImageInput: z.ZodTypeAny = z.object({\n model: z.enum([\"gemini-2.5-flash-image\", \"gemini-3-pro-image-preview\", \"gemini-2.0-flash-exp-image-generation\"]).default(\"gemini-3-pro-image-preview\").describe(\"Model to use for image generation. Options: 'gemini-2.5-flash-image' (GA stable, fast), 'gemini-3-pro-image-preview' (advanced with 4K, thinking mode), 'gemini-2.0-flash-exp-image-generation' (2.0 Flash experimental).\").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(\"Text prompt for image generation Sensitive, trademarked, or explicit content triggers HTTP 400 (PROHIBITED_CONTENT or IMAGE_RECITATION) with no image returned — rephrase into neutral, policy-compliant language rather than retrying identical prompts.\"),\n timeout: z.number().default(300).describe(\"Request timeout in seconds. Default is 300 seconds (5 minutes). Increase for complex prompts or high-resolution images. Minimum 120 seconds, maximum 600 seconds.\").optional(),\n image_size: z.enum([\"1K\", \"2K\", \"4K\"]).default(\"1K\").describe(\"Output resolution (only for 'gemini-3-pro-image-preview'). Options: 1K, 2K, 4K.\").optional(),\n temperature: z.number().describe(\"Controls randomness (0.0 to 2.0)\").optional(),\n aspect_ratio: z.enum([\"1:1\", \"2:3\", \"3:2\", \"3:4\", \"4:3\", \"4:5\", \"5:4\", \"9:16\", \"16:9\", \"21:9\"]).default(\"1:1\").describe(\"Aspect ratio for generated image. Not supported by 'gemini-2.0-flash-exp-image-generation' model. Accepted values: '1:1', '4:5', '16:9', '9:16'. Unsupported strings will fail or silently default to 1:1.\").optional(),\n safety_settings: z.array(z.object({\n category: z.enum([\"HARM_CATEGORY_HARASSMENT\", \"HARM_CATEGORY_HATE_SPEECH\", \"HARM_CATEGORY_SEXUALLY_EXPLICIT\", \"HARM_CATEGORY_DANGEROUS_CONTENT\"]).describe(\"The category of harmful content to filter\"),\n threshold: z.enum([\"BLOCK_NONE\", \"BLOCK_LOW_AND_ABOVE\", \"BLOCK_MEDIUM_AND_ABOVE\", \"BLOCK_ONLY_HIGH\"]).describe(\"The threshold for blocking content in this category\"),\n})).describe(\"Safety filter settings. List of objects specifying content categories to filter and threshold levels. Each setting requires 'category' (HARM_CATEGORY_HARASSMENT, HARM_CATEGORY_HATE_SPEECH, HARM_CATEGORY_SEXUALLY_EXPLICIT, or HARM_CATEGORY_DANGEROUS_CONTENT) and 'threshold' (BLOCK_NONE, BLOCK_LOW_AND_ABOVE, BLOCK_MEDIUM_AND_ABOVE, or BLOCK_ONLY_HIGH).\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens to generate (max 32,768). For image generation, images consume tokens based on resolution: 1K/2K consume 1,120 tokens, 4K consumes 2,000 tokens. If set too low, the API may return MAX_TOKENS finish reason with no image. If not specified, the API uses its default which is sufficient for image generation.\").optional(),\n system_instruction: z.string().describe(\"System instruction to guide image generation behavior\").optional(),\n});\nconst GeminiGenerateImage_FileDownloadableSchema: z.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nexport const GeminiGenerateImageOutput: z.ZodTypeAny = z.object({\n image: GeminiGenerateImage_FileDownloadableSchema.nullable(),\n});\n\nexport const geminiGenerateImage = action(\"GEMINI_GENERATE_IMAGE\", {\n slug: \"gemini-generate-image\",\n name: \"Generate Image (Nano Banana)\",\n description: \"Generates images from text prompts using Gemini models (Nano Banana). Supports models: 'gemini-2.5-flash-image' (GA stable, fast), 'gemini-3-pro-image-preview' (Nano Banana Pro - advanced with 4K resolution, thinking mode, up to 14 reference images), and 'gemini-2.0-flash-exp-image-generation' (2.0 Flash experimental). Returns one image per call; images are uploaded to S3. Parse response at data.image.s3url or the text-type entry in data.content — prefer the URL to avoid base64 blobs. Always validate s3url before treating call as successful; a 200 response may contain only text with no image. Store s3url immediately as URLs can expire. Output formats are raster only (JPG/PNG/WebP); request PNG for transparency. Concurrent usage may trigger HTTP 429/RESOURCE_EXHAUSTED — keep concurrency ≤3 and use exponential backoff (1s→2s→4s, ~5 retries). NOTE NEVER EVER TRUE SYNC_TO_WORKBENCH IN RUBE_MULTI_EXECUTE_TOOL\",\n input: GeminiGenerateIm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C,CAAC,SAAS;CACnY,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC5G,CAAC;AACD,MAAM,6CAA2D,EAAE,OAAO;CACxE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AAKD,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATqD,EAAE,OAAO,EAC9D,OAAO,2CAA2C,SAAS,EAC7D,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/generate-videos.ts
|
|
4
|
+
const GeminiGenerateVideosInput = zod.z.object({
|
|
5
|
+
seed: zod.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(),
|
|
6
|
+
model: zod.z.enum([
|
|
7
|
+
"veo-2.0-generate-001",
|
|
8
|
+
"veo-3.0-generate-001",
|
|
9
|
+
"veo-3.0-fast-generate-001",
|
|
10
|
+
"veo-3.1-generate-preview",
|
|
11
|
+
"veo-3.1-fast-generate-preview"
|
|
12
|
+
]).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(),
|
|
13
|
+
prompt: zod.z.string().describe("Text prompt for Veo video generation. Must be a non-empty string describing the video to generate."),
|
|
14
|
+
resolution: zod.z.enum(["720p", "1080p"]).describe("Supported resolutions for video generation.").optional(),
|
|
15
|
+
aspect_ratio: zod.z.enum(["16:9", "9:16"]).describe("Supported aspect ratios for video generation.").optional(),
|
|
16
|
+
negative_prompt: zod.z.string().describe("Text describing content to avoid in the generated video (e.g., 'cartoon, drawing, low quality').").optional(),
|
|
17
|
+
duration_seconds: zod.z.union([
|
|
18
|
+
zod.z.literal(4),
|
|
19
|
+
zod.z.literal(5),
|
|
20
|
+
zod.z.literal(6),
|
|
21
|
+
zod.z.literal(7),
|
|
22
|
+
zod.z.literal(8)
|
|
23
|
+
]).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(),
|
|
24
|
+
person_generation: zod.z.enum([
|
|
25
|
+
"dont_allow",
|
|
26
|
+
"allow_adult",
|
|
27
|
+
"allow_all"
|
|
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
|
+
});
|
|
30
|
+
const GeminiGenerateVideos_OperationCreationResponseSchema = zod.z.object({
|
|
31
|
+
done: zod.z.boolean().default(false).describe("Indicates whether the operation is complete. Always False when operation is first created.").nullable().optional(),
|
|
32
|
+
name: zod.z.string().describe("Server-assigned operation resource name (e.g., 'models/veo-3.0-generate-001/operations/abc123')."),
|
|
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
|
+
}).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
|
+
const GeminiGenerateVideosOutput = zod.z.object({
|
|
36
|
+
raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),
|
|
37
|
+
operation_name: zod.z.string().describe("Long-running operation name/id")
|
|
38
|
+
});
|
|
39
|
+
const geminiGenerateVideos = require_action.action("GEMINI_GENERATE_VIDEOS", {
|
|
40
|
+
slug: "gemini-generate-videos",
|
|
41
|
+
name: "Generate Videos (Veo)",
|
|
42
|
+
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.",
|
|
43
|
+
input: GeminiGenerateVideosInput,
|
|
44
|
+
output: GeminiGenerateVideosOutput
|
|
45
|
+
});
|
|
46
|
+
//#endregion
|
|
47
|
+
exports.geminiGenerateVideos = geminiGenerateVideos;
|
|
48
|
+
|
|
49
|
+
//# sourceMappingURL=generate-videos.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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').\"),\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.ZodTypeAny = z.object({\n raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),\n operation_name: z.string().describe(\"Long-running operation name/id\"),\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,4BAA0CA,IAAAA,EAAE,OAAO;CAC9D,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,6C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Aa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/generate-videos.d.ts
|
|
4
|
+
declare const GeminiGenerateVideosInput: z.ZodTypeAny;
|
|
5
|
+
declare const GeminiGenerateVideosOutput: z.ZodTypeAny;
|
|
6
|
+
declare const geminiGenerateVideos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { geminiGenerateVideos };
|
|
9
|
+
//# sourceMappingURL=generate-videos.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-videos.d.cts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UASxC;AAAA,cAMW,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/generate-videos.d.ts
|
|
4
|
+
declare const GeminiGenerateVideosInput: z.ZodTypeAny;
|
|
5
|
+
declare const GeminiGenerateVideosOutput: z.ZodTypeAny;
|
|
6
|
+
declare const geminiGenerateVideos: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { geminiGenerateVideos };
|
|
9
|
+
//# sourceMappingURL=generate-videos.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-videos.d.mts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAA2B,CAAA,CAAE,UASxC;AAAA,cAMW,0BAAA,EAA4B,CAAA,CAAE,UAGzC;AAAA,cAEW,oBAAA,gCAAoB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/generate-videos.ts
|
|
4
|
+
const GeminiGenerateVideosInput = z.object({
|
|
5
|
+
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(),
|
|
6
|
+
model: z.enum([
|
|
7
|
+
"veo-2.0-generate-001",
|
|
8
|
+
"veo-3.0-generate-001",
|
|
9
|
+
"veo-3.0-fast-generate-001",
|
|
10
|
+
"veo-3.1-generate-preview",
|
|
11
|
+
"veo-3.1-fast-generate-preview"
|
|
12
|
+
]).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(),
|
|
13
|
+
prompt: z.string().describe("Text prompt for Veo video generation. Must be a non-empty string describing the video to generate."),
|
|
14
|
+
resolution: z.enum(["720p", "1080p"]).describe("Supported resolutions for video generation.").optional(),
|
|
15
|
+
aspect_ratio: z.enum(["16:9", "9:16"]).describe("Supported aspect ratios for video generation.").optional(),
|
|
16
|
+
negative_prompt: z.string().describe("Text describing content to avoid in the generated video (e.g., 'cartoon, drawing, low quality').").optional(),
|
|
17
|
+
duration_seconds: z.union([
|
|
18
|
+
z.literal(4),
|
|
19
|
+
z.literal(5),
|
|
20
|
+
z.literal(6),
|
|
21
|
+
z.literal(7),
|
|
22
|
+
z.literal(8)
|
|
23
|
+
]).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(),
|
|
24
|
+
person_generation: z.enum([
|
|
25
|
+
"dont_allow",
|
|
26
|
+
"allow_adult",
|
|
27
|
+
"allow_all"
|
|
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
|
+
});
|
|
30
|
+
const GeminiGenerateVideos_OperationCreationResponseSchema = z.object({
|
|
31
|
+
done: z.boolean().default(false).describe("Indicates whether the operation is complete. Always False when operation is first created.").nullable().optional(),
|
|
32
|
+
name: z.string().describe("Server-assigned operation resource name (e.g., 'models/veo-3.0-generate-001/operations/abc123')."),
|
|
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
|
+
}).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
|
+
const geminiGenerateVideos = action("GEMINI_GENERATE_VIDEOS", {
|
|
36
|
+
slug: "gemini-generate-videos",
|
|
37
|
+
name: "Generate Videos (Veo)",
|
|
38
|
+
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.",
|
|
39
|
+
input: GeminiGenerateVideosInput,
|
|
40
|
+
output: z.object({
|
|
41
|
+
raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),
|
|
42
|
+
operation_name: z.string().describe("Long-running operation name/id")
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
//#endregion
|
|
46
|
+
export { geminiGenerateVideos };
|
|
47
|
+
|
|
48
|
+
//# sourceMappingURL=generate-videos.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = 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').\"),\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.ZodTypeAny = z.object({\n raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),\n operation_name: z.string().describe(\"Long-running operation name/id\"),\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,4BAA0C,EAAE,OAAO;CAC9D,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,uDAAqE,EAAE,OAAO;CAClF,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;CAC5H,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,QAVsD,EAAE,OAAO;EAC/D,KAAK,qDAAqD,SAAS;EACnE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACtE,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_count_tokens = require("./count-tokens.cjs");
|
|
3
|
+
const require_embed_content = require("./embed-content.cjs");
|
|
4
|
+
const require_generate_content = require("./generate-content.cjs");
|
|
5
|
+
const require_generate_image = require("./generate-image.cjs");
|
|
6
|
+
const require_generate_videos = require("./generate-videos.cjs");
|
|
7
|
+
const require_list_models = require("./list-models.cjs");
|
|
8
|
+
const require_wait_for_video = require("./wait-for-video.cjs");
|
|
9
|
+
exports.geminiCountTokens = require_count_tokens.geminiCountTokens;
|
|
10
|
+
exports.geminiEmbedContent = require_embed_content.geminiEmbedContent;
|
|
11
|
+
exports.geminiGenerateContent = require_generate_content.geminiGenerateContent;
|
|
12
|
+
exports.geminiGenerateImage = require_generate_image.geminiGenerateImage;
|
|
13
|
+
exports.geminiGenerateVideos = require_generate_videos.geminiGenerateVideos;
|
|
14
|
+
exports.geminiListModels = require_list_models.geminiListModels;
|
|
15
|
+
exports.geminiWaitForVideo = require_wait_for_video.geminiWaitForVideo;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { geminiCountTokens } from "./count-tokens.cjs";
|
|
2
|
+
import { geminiEmbedContent } from "./embed-content.cjs";
|
|
3
|
+
import { geminiGenerateContent } from "./generate-content.cjs";
|
|
4
|
+
import { geminiGenerateImage } from "./generate-image.cjs";
|
|
5
|
+
import { geminiGenerateVideos } from "./generate-videos.cjs";
|
|
6
|
+
import { geminiListModels } from "./list-models.cjs";
|
|
7
|
+
import { geminiWaitForVideo } from "./wait-for-video.cjs";
|
|
8
|
+
export { geminiCountTokens, geminiEmbedContent, geminiGenerateContent, geminiGenerateImage, geminiGenerateVideos, geminiListModels, geminiWaitForVideo };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { geminiCountTokens } from "./count-tokens.mjs";
|
|
2
|
+
import { geminiEmbedContent } from "./embed-content.mjs";
|
|
3
|
+
import { geminiGenerateContent } from "./generate-content.mjs";
|
|
4
|
+
import { geminiGenerateImage } from "./generate-image.mjs";
|
|
5
|
+
import { geminiGenerateVideos } from "./generate-videos.mjs";
|
|
6
|
+
import { geminiListModels } from "./list-models.mjs";
|
|
7
|
+
import { geminiWaitForVideo } from "./wait-for-video.mjs";
|
|
8
|
+
export { geminiCountTokens, geminiEmbedContent, geminiGenerateContent, geminiGenerateImage, geminiGenerateVideos, geminiListModels, geminiWaitForVideo };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { geminiCountTokens } from "./count-tokens.mjs";
|
|
2
|
+
import { geminiEmbedContent } from "./embed-content.mjs";
|
|
3
|
+
import { geminiGenerateContent } from "./generate-content.mjs";
|
|
4
|
+
import { geminiGenerateImage } from "./generate-image.mjs";
|
|
5
|
+
import { geminiGenerateVideos } from "./generate-videos.mjs";
|
|
6
|
+
import { geminiListModels } from "./list-models.mjs";
|
|
7
|
+
import { geminiWaitForVideo } from "./wait-for-video.mjs";
|
|
8
|
+
export { geminiCountTokens, geminiEmbedContent, geminiGenerateContent, geminiGenerateImage, geminiGenerateVideos, geminiListModels, geminiWaitForVideo };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/list-models.ts
|
|
4
|
+
const GeminiListModelsInput = zod.z.object({
|
|
5
|
+
page_size: zod.z.number().int().describe("Maximum number of models to return per page (default 50, max 1000).").optional(),
|
|
6
|
+
page_token: zod.z.string().describe("Token from a previous response's nextPageToken to retrieve the next page.").optional(),
|
|
7
|
+
filter_prefix: zod.z.string().default("").describe("Filter models by name prefix (client-side). Leave empty to get all models.").optional()
|
|
8
|
+
});
|
|
9
|
+
const GeminiListModels_ModelSchema = zod.z.object({
|
|
10
|
+
name: zod.z.string().describe("Resource identifier in format models/{model}"),
|
|
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
|
+
version: zod.z.string().describe("Major version number"),
|
|
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
|
+
}).describe("Represents a Gemini model with its capabilities and limits.");
|
|
24
|
+
const GeminiListModels_RawListModelsResponseSchema = zod.z.object({
|
|
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
|
+
}).describe("Raw API response from the models.list endpoint.");
|
|
28
|
+
const GeminiListModelsOutput = zod.z.object({
|
|
29
|
+
raw: GeminiListModels_RawListModelsResponseSchema.nullable(),
|
|
30
|
+
models: zod.z.array(GeminiListModels_ModelSchema).describe("List of available models").nullable().optional()
|
|
31
|
+
});
|
|
32
|
+
const geminiListModels = require_action.action("GEMINI_LIST_MODELS", {
|
|
33
|
+
slug: "gemini-list-models",
|
|
34
|
+
name: "List Models (Gemini API)",
|
|
35
|
+
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.",
|
|
36
|
+
input: GeminiListModelsInput,
|
|
37
|
+
output: GeminiListModelsOutput
|
|
38
|
+
});
|
|
39
|
+
//#endregion
|
|
40
|
+
exports.geminiListModels = geminiListModels;
|
|
41
|
+
|
|
42
|
+
//# sourceMappingURL=list-models.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\"),\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\"),\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.ZodTypeAny = 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.ZodTypeAny = 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,wBAAsCA,IAAAA,EAA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
|
5
|
+
declare const GeminiListModelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const geminiListModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { geminiListModels };
|
|
9
|
+
//# sourceMappingURL=list-models.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-models.d.cts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAIpC;AAAA,cAoBW,sBAAA,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/list-models.d.ts
|
|
4
|
+
declare const GeminiListModelsInput: z.ZodTypeAny;
|
|
5
|
+
declare const GeminiListModelsOutput: z.ZodTypeAny;
|
|
6
|
+
declare const geminiListModels: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { geminiListModels };
|
|
9
|
+
//# sourceMappingURL=list-models.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-models.d.mts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;cAIa,qBAAA,EAAuB,CAAA,CAAE,UAIpC;AAAA,cAoBW,sBAAA,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAEW,gBAAA,gCAAgB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/list-models.ts
|
|
4
|
+
const GeminiListModelsInput = z.object({
|
|
5
|
+
page_size: z.number().int().describe("Maximum number of models to return per page (default 50, max 1000).").optional(),
|
|
6
|
+
page_token: z.string().describe("Token from a previous response's nextPageToken to retrieve the next page.").optional(),
|
|
7
|
+
filter_prefix: z.string().default("").describe("Filter models by name prefix (client-side). Leave empty to get all models.").optional()
|
|
8
|
+
});
|
|
9
|
+
const GeminiListModels_ModelSchema = z.object({
|
|
10
|
+
name: z.string().describe("Resource identifier in format models/{model}"),
|
|
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
|
+
version: z.string().describe("Major version number"),
|
|
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
|
+
}).describe("Represents a Gemini model with its capabilities and limits.");
|
|
24
|
+
const GeminiListModels_RawListModelsResponseSchema = z.object({
|
|
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
|
+
}).describe("Raw API response from the models.list endpoint.");
|
|
28
|
+
const geminiListModels = action("GEMINI_LIST_MODELS", {
|
|
29
|
+
slug: "gemini-list-models",
|
|
30
|
+
name: "List Models (Gemini API)",
|
|
31
|
+
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.",
|
|
32
|
+
input: GeminiListModelsInput,
|
|
33
|
+
output: z.object({
|
|
34
|
+
raw: GeminiListModels_RawListModelsResponseSchema.nullable(),
|
|
35
|
+
models: z.array(GeminiListModels_ModelSchema).describe("List of available models").nullable().optional()
|
|
36
|
+
})
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
39
|
+
export { geminiListModels };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=list-models.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\"),\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\"),\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.ZodTypeAny = 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.ZodTypeAny = 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,wBAAsC,EAAE,OAAO;CAC1D,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,+BAA6C,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,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M,+CAA6D,EAAE,OAAO;CAC1E,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,QAVkD,EAAE,OAAO;EAC3D,KAAK,6CAA6C,SAAS;EAC3D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAOU;AACV,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const require_action = require("../action.cjs");
|
|
2
|
+
let zod = require("zod");
|
|
3
|
+
//#region src/actions/wait-for-video.ts
|
|
4
|
+
const GeminiWaitForVideoInput = zod.z.object({ operation_name: zod.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.") });
|
|
5
|
+
const GeminiWaitForVideo_FileDownloadableSchema = zod.z.object({
|
|
6
|
+
name: zod.z.string().describe("Name of the file"),
|
|
7
|
+
s3url: zod.z.string().describe("S3 URL of the downloaded file."),
|
|
8
|
+
mimetype: zod.z.string().describe("Mime type of the file.")
|
|
9
|
+
});
|
|
10
|
+
const GeminiWaitForVideo_RaiFilteringResultSchema = zod.z.object({
|
|
11
|
+
message: zod.z.string().describe("Human-readable message explaining the filtering and suggesting next steps."),
|
|
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
|
+
filtered_count: zod.z.number().int().describe("Number of videos filtered by RAI safety policies.")
|
|
15
|
+
}).describe("Represents when video generation was blocked by Responsible AI safety filters.");
|
|
16
|
+
const GeminiWaitForVideoOutput = zod.z.object({
|
|
17
|
+
success: zod.z.boolean().describe("True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies."),
|
|
18
|
+
video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),
|
|
19
|
+
rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional()
|
|
20
|
+
});
|
|
21
|
+
const geminiWaitForVideo = require_action.action("GEMINI_WAIT_FOR_VIDEO", {
|
|
22
|
+
slug: "gemini-wait-for-video",
|
|
23
|
+
name: "Wait and Download Video (Veo)",
|
|
24
|
+
description: "Polls a Veo video generation operation until completion, then downloads and returns the video as a FileDownloadable. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. On completion, the URL is nested at data.video_file.s3url — validate it is non-empty before downstream use. A done=true response without a valid s3url 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.",
|
|
25
|
+
input: GeminiWaitForVideoInput,
|
|
26
|
+
output: GeminiWaitForVideoOutput
|
|
27
|
+
});
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.geminiWaitForVideo = geminiWaitForVideo;
|
|
30
|
+
|
|
31
|
+
//# sourceMappingURL=wait-for-video.cjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nconst GeminiWaitForVideo_RaiFilteringResultSchema: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\"),\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.\"),\n}).describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\"),\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 as a FileDownloadable. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. On completion, the URL is nested at data.video_file.s3url — validate it is non-empty before downstream use. A done=true response without a valid s3url 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,0BAAwCA,IAAAA,EAAE,OAAO,EAC5D,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+nBAA+nB,EACrqB,CAAC;AACD,MAAM,4CAA0DA,IAAAA,EAAE,OAAO;CACvE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AACD,MAAM,8CAA4DA,IAAAA,EAAE,OAAO;CACzE,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACzG,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;AAC/F,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAC5F,MAAa,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G;CACzI,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"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/wait-for-video.d.ts
|
|
4
|
+
declare const GeminiWaitForVideoInput: z.ZodTypeAny;
|
|
5
|
+
declare const GeminiWaitForVideoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const geminiWaitForVideo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { geminiWaitForVideo };
|
|
9
|
+
//# sourceMappingURL=wait-for-video.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for-video.d.cts","names":[],"sources":["../../src/actions/wait-for-video.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAYW,wBAAA,EAA0B,CAAA,CAAE,UAIvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
|
|
3
|
+
//#region src/actions/wait-for-video.d.ts
|
|
4
|
+
declare const GeminiWaitForVideoInput: z.ZodTypeAny;
|
|
5
|
+
declare const GeminiWaitForVideoOutput: z.ZodTypeAny;
|
|
6
|
+
declare const geminiWaitForVideo: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
|
|
7
|
+
//#endregion
|
|
8
|
+
export { geminiWaitForVideo };
|
|
9
|
+
//# sourceMappingURL=wait-for-video.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wait-for-video.d.mts","names":[],"sources":["../../src/actions/wait-for-video.ts"],"mappings":";;;cAIa,uBAAA,EAAyB,CAAA,CAAE,UAEtC;AAAA,cAYW,wBAAA,EAA0B,CAAA,CAAE,UAIvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { action } from "../action.mjs";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
//#region src/actions/wait-for-video.ts
|
|
4
|
+
const GeminiWaitForVideoInput = z.object({ 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.") });
|
|
5
|
+
const GeminiWaitForVideo_FileDownloadableSchema = z.object({
|
|
6
|
+
name: z.string().describe("Name of the file"),
|
|
7
|
+
s3url: z.string().describe("S3 URL of the downloaded file."),
|
|
8
|
+
mimetype: z.string().describe("Mime type of the file.")
|
|
9
|
+
});
|
|
10
|
+
const GeminiWaitForVideo_RaiFilteringResultSchema = z.object({
|
|
11
|
+
message: z.string().describe("Human-readable message explaining the filtering and suggesting next steps."),
|
|
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
|
+
filtered_count: z.number().int().describe("Number of videos filtered by RAI safety policies.")
|
|
15
|
+
}).describe("Represents when video generation was blocked by Responsible AI safety filters.");
|
|
16
|
+
const geminiWaitForVideo = action("GEMINI_WAIT_FOR_VIDEO", {
|
|
17
|
+
slug: "gemini-wait-for-video",
|
|
18
|
+
name: "Wait and Download Video (Veo)",
|
|
19
|
+
description: "Polls a Veo video generation operation until completion, then downloads and returns the video as a FileDownloadable. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. On completion, the URL is nested at data.video_file.s3url — validate it is non-empty before downstream use. A done=true response without a valid s3url 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.",
|
|
20
|
+
input: GeminiWaitForVideoInput,
|
|
21
|
+
output: z.object({
|
|
22
|
+
success: z.boolean().describe("True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies."),
|
|
23
|
+
video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),
|
|
24
|
+
rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional()
|
|
25
|
+
})
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { geminiWaitForVideo };
|
|
29
|
+
|
|
30
|
+
//# sourceMappingURL=wait-for-video.mjs.map
|
|
@@ -0,0 +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.ZodTypeAny = 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.ZodTypeAny = z.object({\n name: z.string().describe(\"Name of the file\"),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\"),\n mimetype: z.string().describe(\"Mime type of the file.\"),\n});\nconst GeminiWaitForVideo_RaiFilteringResultSchema: z.ZodTypeAny = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\"),\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.\"),\n}).describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput: z.ZodTypeAny = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\"),\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 as a FileDownloadable. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. On completion, the URL is nested at data.video_file.s3url — validate it is non-empty before downstream use. A done=true response without a valid s3url 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,0BAAwC,EAAE,OAAO,EAC5D,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,+nBAA+nB,EACrqB,CAAC;AACD,MAAM,4CAA0D,EAAE,OAAO;CACvE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAC5C,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CAC3D,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB;AACxD,CAAC;AACD,MAAM,8CAA4D,EAAE,OAAO;CACzE,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E;CACzG,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;AAC/F,CAAC,CAAC,CAAC,SAAS,gFAAgF;AAO5F,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXoD,EAAE,OAAO;EAC7D,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G;EACzI,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACjF,CAOU;AACV,CAAC"}
|
package/dist/app.cjs
ADDED
package/dist/app.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const gemini = defineApp({\n slug: \"gemini\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,uCAAA,CAAA,CAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
|
package/dist/app.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
|
package/dist/app.d.mts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
|