@keystrokehq/gemini 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +1 -1
  2. package/dist/actions/count-tokens.cjs +2 -2
  3. package/dist/actions/count-tokens.cjs.map +1 -1
  4. package/dist/actions/count-tokens.d.cts +2 -2
  5. package/dist/actions/count-tokens.d.mts +2 -2
  6. package/dist/actions/count-tokens.mjs +2 -2
  7. package/dist/actions/count-tokens.mjs.map +1 -1
  8. package/dist/actions/embed-content.cjs +1 -1
  9. package/dist/actions/embed-content.cjs.map +1 -1
  10. package/dist/actions/embed-content.d.cts +1 -1
  11. package/dist/actions/embed-content.d.mts +1 -1
  12. package/dist/actions/embed-content.mjs +1 -1
  13. package/dist/actions/embed-content.mjs.map +1 -1
  14. package/dist/actions/generate-content.cjs +1 -1
  15. package/dist/actions/generate-content.cjs.map +1 -1
  16. package/dist/actions/generate-content.d.cts +1 -1
  17. package/dist/actions/generate-content.d.mts +1 -1
  18. package/dist/actions/generate-content.mjs +1 -1
  19. package/dist/actions/generate-content.mjs.map +1 -1
  20. package/dist/actions/generate-image.cjs +3 -3
  21. package/dist/actions/generate-image.cjs.map +1 -1
  22. package/dist/actions/generate-image.d.cts +4 -3
  23. package/dist/actions/generate-image.d.mts +4 -3
  24. package/dist/actions/generate-image.mjs +3 -3
  25. package/dist/actions/generate-image.mjs.map +1 -1
  26. package/dist/actions/generate-videos.cjs +6 -18
  27. package/dist/actions/generate-videos.cjs.map +1 -1
  28. package/dist/actions/generate-videos.d.cts +5 -10
  29. package/dist/actions/generate-videos.d.cts.map +1 -1
  30. package/dist/actions/generate-videos.d.mts +5 -10
  31. package/dist/actions/generate-videos.d.mts.map +1 -1
  32. package/dist/actions/generate-videos.mjs +6 -18
  33. package/dist/actions/generate-videos.mjs.map +1 -1
  34. package/dist/actions/list-models.cjs +4 -4
  35. package/dist/actions/list-models.cjs.map +1 -1
  36. package/dist/actions/list-models.d.cts +4 -4
  37. package/dist/actions/list-models.d.mts +4 -4
  38. package/dist/actions/list-models.mjs +4 -4
  39. package/dist/actions/list-models.mjs.map +1 -1
  40. package/dist/actions/wait-for-video.cjs +4 -4
  41. package/dist/actions/wait-for-video.cjs.map +1 -1
  42. package/dist/actions/wait-for-video.d.cts +3 -3
  43. package/dist/actions/wait-for-video.d.mts +3 -3
  44. package/dist/actions/wait-for-video.mjs +4 -4
  45. package/dist/actions/wait-for-video.mjs.map +1 -1
  46. package/dist/catalog.cjs +2 -1
  47. package/dist/catalog.cjs.map +1 -1
  48. package/dist/catalog.d.cts +1 -0
  49. package/dist/catalog.d.mts +1 -0
  50. package/dist/catalog.mjs +2 -1
  51. package/dist/catalog.mjs.map +1 -1
  52. package/dist/execute.cjs +1 -1
  53. package/dist/execute.cjs.map +1 -1
  54. package/dist/execute.mjs +1 -1
  55. package/dist/execute.mjs.map +1 -1
  56. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Keystroke-managed integration.
4
4
 
5
5
  **App:** `gemini`
6
- **Version:** `20260702_00`
6
+ **Version:** `20260707_00`
7
7
  **Actions:** 7
8
8
 
9
9
  ```ts
@@ -8,11 +8,11 @@ const GeminiCountTokensInput = zod.z.object({
8
8
  const GeminiCountTokens_TokenDetailsSchema = zod.z.object({
9
9
  modality: zod.z.string().describe("The modality of the tokens (e.g., 'TEXT', 'IMAGE')").nullable(),
10
10
  token_count: zod.z.number().int().describe("Number of tokens for this modality").nullable()
11
- }).describe("Details about tokens for a specific modality.");
11
+ }).passthrough().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
14
  token_details: zod.z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").nullable().optional()
15
- });
15
+ }).passthrough();
16
16
  const geminiCountTokens = require_action.action("GEMINI_COUNT_TOKENS", {
17
17
  slug: "gemini-count-tokens",
18
18
  name: "Count Tokens (Gemini)",
@@ -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.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"}
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}).passthrough().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}).passthrough();\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,YAAY,CAAC,CAAC,SAAS,+CAA+C;AACzE,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,CAAC,CAAC,YAAY;AAEf,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -10,8 +10,8 @@ declare const GeminiCountTokensOutput: z.ZodObject<{
10
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
- }, z.core.$strip>>>>;
14
- }, z.core.$strip>;
13
+ }, z.core.$loose>>>>;
14
+ }, z.core.$loose>;
15
15
  declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  text: string;
17
17
  model?: string | undefined;
@@ -10,8 +10,8 @@ declare const GeminiCountTokensOutput: z.ZodObject<{
10
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
- }, z.core.$strip>>>>;
14
- }, z.core.$strip>;
13
+ }, z.core.$loose>>>>;
14
+ }, z.core.$loose>;
15
15
  declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  text: string;
17
17
  model?: string | undefined;
@@ -8,7 +8,7 @@ const GeminiCountTokensInput = z.object({
8
8
  const GeminiCountTokens_TokenDetailsSchema = z.object({
9
9
  modality: z.string().describe("The modality of the tokens (e.g., 'TEXT', 'IMAGE')").nullable(),
10
10
  token_count: z.number().int().describe("Number of tokens for this modality").nullable()
11
- }).describe("Details about tokens for a specific modality.");
11
+ }).passthrough().describe("Details about tokens for a specific modality.");
12
12
  const geminiCountTokens = action("GEMINI_COUNT_TOKENS", {
13
13
  slug: "gemini-count-tokens",
14
14
  name: "Count Tokens (Gemini)",
@@ -17,7 +17,7 @@ const geminiCountTokens = action("GEMINI_COUNT_TOKENS", {
17
17
  output: z.object({
18
18
  total_tokens: z.number().int().describe("Total number of tokens in the input").nullable(),
19
19
  token_details: z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").nullable().optional()
20
- })
20
+ }).passthrough()
21
21
  });
22
22
  //#endregion
23
23
  export { geminiCountTokens };
@@ -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.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"}
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}).passthrough().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}).passthrough();\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,YAAY,CAAC,CAAC,SAAS,+CAA+C;AAMzE,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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -11,7 +11,7 @@ const GeminiEmbedContentInput = zod.z.object({
11
11
  const GeminiEmbedContentOutput = zod.z.object({
12
12
  embedding: zod.z.array(zod.z.number()).describe("The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models."),
13
13
  dimensions: zod.z.number().int().describe("The number of dimensions in the embedding vector.").nullable()
14
- });
14
+ }).passthrough();
15
15
  const geminiEmbedContent = require_action.action("GEMINI_EMBED_CONTENT", {
16
16
  slug: "gemini-embed-content",
17
17
  name: "Embed Content (Gemini)",
@@ -1 +1 @@
1
- {"version":3,"file":"embed-content.cjs","names":["z","action"],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiEmbedContentInput = z.object({\n text: z.string().describe(\"The text content to generate embeddings for.\"),\n model: z.string().default(\"text-embedding-004\").describe(\"Embedding model to use. Options: 'text-embedding-004' (768 dimensions, default), 'gemini-embedding-001' (3072 dimensions, latest).\").optional(),\n title: z.string().describe(\"Optional title for the content. Use with task_type='RETRIEVAL_DOCUMENT' to improve embedding quality for document search.\").optional(),\n task_type: z.string().describe(\"Specifies the intended use case to optimize the embedding. Options: 'RETRIEVAL_QUERY' (search queries), 'RETRIEVAL_DOCUMENT' (documents to be searched), 'SEMANTIC_SIMILARITY' (text similarity), 'CLASSIFICATION' (categorization), 'CLUSTERING' (grouping), 'QUESTION_ANSWERING' (question-document matching). Note: Some task types like 'CODE_RETRIEVAL_QUERY' may only be supported by certain models.\").optional(),\n output_dimensionality: z.number().int().describe(\"Truncate the embedding to this number of dimensions. Only supported by 'gemini-embedding-001' model. Recommended values: 768, 1536, or 3072. Lower dimensions reduce storage but may affect quality.\").optional(),\n});\nexport const GeminiEmbedContentOutput = z.object({\n embedding: z.array(z.number()).describe(\"The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models.\"),\n dimensions: z.number().int().describe(\"The number of dimensions in the embedding vector.\").nullable(),\n});\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CACxM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACjK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6YAA6Y,CAAC,CAAC,SAAS;CACvb,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS;AACpQ,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACvL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACtG,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"embed-content.cjs","names":["z","action"],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiEmbedContentInput = z.object({\n text: z.string().describe(\"The text content to generate embeddings for.\"),\n model: z.string().default(\"text-embedding-004\").describe(\"Embedding model to use. Options: 'text-embedding-004' (768 dimensions, default), 'gemini-embedding-001' (3072 dimensions, latest).\").optional(),\n title: z.string().describe(\"Optional title for the content. Use with task_type='RETRIEVAL_DOCUMENT' to improve embedding quality for document search.\").optional(),\n task_type: z.string().describe(\"Specifies the intended use case to optimize the embedding. Options: 'RETRIEVAL_QUERY' (search queries), 'RETRIEVAL_DOCUMENT' (documents to be searched), 'SEMANTIC_SIMILARITY' (text similarity), 'CLASSIFICATION' (categorization), 'CLUSTERING' (grouping), 'QUESTION_ANSWERING' (question-document matching). Note: Some task types like 'CODE_RETRIEVAL_QUERY' may only be supported by certain models.\").optional(),\n output_dimensionality: z.number().int().describe(\"Truncate the embedding to this number of dimensions. Only supported by 'gemini-embedding-001' model. Recommended values: 768, 1536, or 3072. Lower dimensions reduce storage but may affect quality.\").optional(),\n});\nexport const GeminiEmbedContentOutput = z.object({\n embedding: z.array(z.number()).describe(\"The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models.\"),\n dimensions: z.number().int().describe(\"The number of dimensions in the embedding vector.\").nullable(),\n}).passthrough();\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CACxM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACjK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6YAA6Y,CAAC,CAAC,SAAS;CACvb,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS;AACpQ,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACvL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -11,7 +11,7 @@ declare const GeminiEmbedContentInput: z.ZodObject<{
11
11
  declare const GeminiEmbedContentOutput: z.ZodObject<{
12
12
  embedding: z.ZodArray<z.ZodNumber>;
13
13
  dimensions: z.ZodNullable<z.ZodNumber>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  text: string;
17
17
  model?: string | undefined;
@@ -11,7 +11,7 @@ declare const GeminiEmbedContentInput: z.ZodObject<{
11
11
  declare const GeminiEmbedContentOutput: z.ZodObject<{
12
12
  embedding: z.ZodArray<z.ZodNumber>;
13
13
  dimensions: z.ZodNullable<z.ZodNumber>;
14
- }, z.core.$strip>;
14
+ }, z.core.$loose>;
15
15
  declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDefinition<{
16
16
  text: string;
17
17
  model?: string | undefined;
@@ -14,7 +14,7 @@ const geminiEmbedContent = action("GEMINI_EMBED_CONTENT", {
14
14
  output: z.object({
15
15
  embedding: z.array(z.number()).describe("The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models."),
16
16
  dimensions: z.number().int().describe("The number of dimensions in the embedding vector.").nullable()
17
- })
17
+ }).passthrough()
18
18
  });
19
19
  //#endregion
20
20
  export { geminiEmbedContent };
@@ -1 +1 @@
1
- {"version":3,"file":"embed-content.mjs","names":[],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiEmbedContentInput = z.object({\n text: z.string().describe(\"The text content to generate embeddings for.\"),\n model: z.string().default(\"text-embedding-004\").describe(\"Embedding model to use. Options: 'text-embedding-004' (768 dimensions, default), 'gemini-embedding-001' (3072 dimensions, latest).\").optional(),\n title: z.string().describe(\"Optional title for the content. Use with task_type='RETRIEVAL_DOCUMENT' to improve embedding quality for document search.\").optional(),\n task_type: z.string().describe(\"Specifies the intended use case to optimize the embedding. Options: 'RETRIEVAL_QUERY' (search queries), 'RETRIEVAL_DOCUMENT' (documents to be searched), 'SEMANTIC_SIMILARITY' (text similarity), 'CLASSIFICATION' (categorization), 'CLUSTERING' (grouping), 'QUESTION_ANSWERING' (question-document matching). Note: Some task types like 'CODE_RETRIEVAL_QUERY' may only be supported by certain models.\").optional(),\n output_dimensionality: z.number().int().describe(\"Truncate the embedding to this number of dimensions. Only supported by 'gemini-embedding-001' model. Recommended values: 768, 1536, or 3072. Lower dimensions reduce storage but may affect quality.\").optional(),\n});\nexport const GeminiEmbedContentOutput = z.object({\n embedding: z.array(z.number()).describe(\"The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models.\"),\n dimensions: z.number().int().describe(\"The number of dimensions in the embedding vector.\").nullable(),\n});\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;AAgBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EACxM,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EACjK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6YAA6Y,CAAC,CAAC,SAAS;EACvb,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS;CACpQ,CAUS;CACP,QAVsC,EAAE,OAAO;EAC/C,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;EACvL,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtG,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"embed-content.mjs","names":[],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiEmbedContentInput = z.object({\n text: z.string().describe(\"The text content to generate embeddings for.\"),\n model: z.string().default(\"text-embedding-004\").describe(\"Embedding model to use. Options: 'text-embedding-004' (768 dimensions, default), 'gemini-embedding-001' (3072 dimensions, latest).\").optional(),\n title: z.string().describe(\"Optional title for the content. Use with task_type='RETRIEVAL_DOCUMENT' to improve embedding quality for document search.\").optional(),\n task_type: z.string().describe(\"Specifies the intended use case to optimize the embedding. Options: 'RETRIEVAL_QUERY' (search queries), 'RETRIEVAL_DOCUMENT' (documents to be searched), 'SEMANTIC_SIMILARITY' (text similarity), 'CLASSIFICATION' (categorization), 'CLUSTERING' (grouping), 'QUESTION_ANSWERING' (question-document matching). Note: Some task types like 'CODE_RETRIEVAL_QUERY' may only be supported by certain models.\").optional(),\n output_dimensionality: z.number().int().describe(\"Truncate the embedding to this number of dimensions. Only supported by 'gemini-embedding-001' model. Recommended values: 768, 1536, or 3072. Lower dimensions reduce storage but may affect quality.\").optional(),\n});\nexport const GeminiEmbedContentOutput = z.object({\n embedding: z.array(z.number()).describe(\"The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models.\"),\n dimensions: z.number().int().describe(\"The number of dimensions in the embedding vector.\").nullable(),\n}).passthrough();\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;AAgBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EACxM,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EACjK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6YAA6Y,CAAC,CAAC,SAAS;EACvb,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS;CACpQ,CAUS;CACP,QAVsC,EAAE,OAAO;EAC/C,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;EACvL,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -52,7 +52,7 @@ const GeminiGenerateContentOutput = zod.z.object({
52
52
  candidates: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).nullable().optional(),
53
53
  usage_metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
54
54
  composio_execution_message: zod.z.string().describe("Informational message about execution").nullable().optional()
55
- });
55
+ }).passthrough();
56
56
  const geminiGenerateContent = require_action.action("GEMINI_GENERATE_CONTENT", {
57
57
  slug: "gemini-generate-content",
58
58
  name: "Generate Content (Gemini)",
@@ -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.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,iBAA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MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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}).passthrough();\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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FAAiF,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,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -52,7 +52,7 @@ declare const GeminiGenerateContentOutput: z.ZodObject<{
52
52
  candidates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
53
53
  usage_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
54
54
  composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- }, z.core.$strip>;
55
+ }, z.core.$loose>;
56
56
  declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<{
57
57
  prompt: string;
58
58
  model?: string | undefined;
@@ -52,7 +52,7 @@ declare const GeminiGenerateContentOutput: z.ZodObject<{
52
52
  candidates: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
53
53
  usage_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
54
54
  composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- }, z.core.$strip>;
55
+ }, z.core.$loose>;
56
56
  declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<{
57
57
  prompt: string;
58
58
  model?: string | undefined;
@@ -55,7 +55,7 @@ const geminiGenerateContent = action("GEMINI_GENERATE_CONTENT", {
55
55
  candidates: z.array(z.record(z.string(), z.unknown())).nullable().optional(),
56
56
  usage_metadata: z.record(z.string(), z.unknown()).nullable().optional(),
57
57
  composio_execution_message: z.string().describe("Informational message about execution").nullable().optional()
58
- })
58
+ }).passthrough()
59
59
  });
60
60
  //#endregion
61
61
  export { geminiGenerateContent };
@@ -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.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,OA1B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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"}
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}).passthrough();\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,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -42,7 +42,7 @@ const GeminiGenerateImageInput = zod.z.object({
42
42
  "BLOCK_MEDIUM_AND_ABOVE",
43
43
  "BLOCK_ONLY_HIGH"
44
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(),
45
+ }).passthrough()).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
46
  max_output_tokens: zod.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
47
  system_instruction: zod.z.string().describe("System instruction to guide image generation behavior").optional()
48
48
  });
@@ -50,8 +50,8 @@ const GeminiGenerateImage_FileDownloadableSchema = zod.z.object({
50
50
  name: zod.z.string().describe("Name of the file").nullable(),
51
51
  s3url: zod.z.string().describe("S3 URL of the downloaded file.").nullable(),
52
52
  mimetype: zod.z.string().describe("Mime type of the file.").nullable()
53
- });
54
- const GeminiGenerateImageOutput = zod.z.object({ image: GeminiGenerateImage_FileDownloadableSchema.nullable() });
53
+ }).passthrough();
54
+ const GeminiGenerateImageOutput = zod.z.object({ image: GeminiGenerateImage_FileDownloadableSchema.nullable() }).passthrough();
55
55
  const geminiGenerateImage = require_action.action("GEMINI_GENERATE_IMAGE", {
56
56
  slug: "gemini-generate-image",
57
57
  name: "Generate Image (Nano Banana)",
@@ -1 +1 @@
1
- {"version":3,"file":"generate-image.cjs","names":["z","action"],"sources":["../../src/actions/generate-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateImageInput = 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.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});\nexport const GeminiGenerateImageOutput = 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 downloadable image per call, or a text-type entry in data.content when no image is produced. Always validate that an image was returned before treating the call as successful. 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: GeminiGenerateImageInput,\n output: GeminiGenerateImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAA0B;EAA8B;CAAuC,CAAC,CAAC,CAAC,QAAQ,4BAA4B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AS,uDAAuD,CAAC,CAAC,SAAS;AAC5G,CAAC;AACD,MAAM,6CAA6CA,IAAAA,EAAE,OAAO;CAC1D,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,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAO,2CAA2C,SAAS,EAC7D,CAAC;AAED,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"generate-image.cjs","names":["z","action"],"sources":["../../src/actions/generate-image.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateImageInput = 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}).passthrough()).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.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}).passthrough();\nexport const GeminiGenerateImageOutput = z.object({\n image: GeminiGenerateImage_FileDownloadableSchema.nullable(),\n}).passthrough();\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 downloadable image per call, or a text-type entry in data.content when no image is produced. Always validate that an image was returned before treating the call as successful. 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: GeminiGenerateImageInput,\n output: GeminiGenerateImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,OAAOA,IAAAA,EAAE,KAAK;EAAC;EAA0B;EAA8B;CAAuC,CAAC,CAAC,CAAC,QAAQ,4BAA4B,CAAC,CAAC,SAAS,2NAA2N,CAAC,CAAC,SAAS;CACtY,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,2PAA2P;CACvR,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,GAAG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AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAO,2CAA2C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAAsBC,eAAAA,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -42,7 +42,7 @@ declare const GeminiGenerateImageInput: z.ZodObject<{
42
42
  BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
43
43
  BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
44
44
  }>;
45
- }, z.core.$strip>>>;
45
+ }, z.core.$loose>>>;
46
46
  max_output_tokens: z.ZodOptional<z.ZodNumber>;
47
47
  system_instruction: z.ZodOptional<z.ZodString>;
48
48
  }, z.core.$strip>;
@@ -51,8 +51,8 @@ declare const GeminiGenerateImageOutput: z.ZodObject<{
51
51
  name: z.ZodNullable<z.ZodString>;
52
52
  s3url: z.ZodNullable<z.ZodString>;
53
53
  mimetype: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strip>>;
55
- }, z.core.$strip>;
54
+ }, z.core.$loose>>;
55
+ }, z.core.$loose>;
56
56
  declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionDefinition<{
57
57
  prompt: string;
58
58
  model?: "gemini-2.5-flash-image" | "gemini-3-pro-image-preview" | "gemini-2.0-flash-exp-image-generation" | undefined;
@@ -63,6 +63,7 @@ declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionD
63
63
  temperature?: number | undefined;
64
64
  aspect_ratio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | undefined;
65
65
  safety_settings?: {
66
+ [x: string]: unknown;
66
67
  category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT";
67
68
  threshold: "BLOCK_NONE" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH";
68
69
  }[] | undefined;
@@ -42,7 +42,7 @@ declare const GeminiGenerateImageInput: z.ZodObject<{
42
42
  BLOCK_MEDIUM_AND_ABOVE: "BLOCK_MEDIUM_AND_ABOVE";
43
43
  BLOCK_ONLY_HIGH: "BLOCK_ONLY_HIGH";
44
44
  }>;
45
- }, z.core.$strip>>>;
45
+ }, z.core.$loose>>>;
46
46
  max_output_tokens: z.ZodOptional<z.ZodNumber>;
47
47
  system_instruction: z.ZodOptional<z.ZodString>;
48
48
  }, z.core.$strip>;
@@ -51,8 +51,8 @@ declare const GeminiGenerateImageOutput: z.ZodObject<{
51
51
  name: z.ZodNullable<z.ZodString>;
52
52
  s3url: z.ZodNullable<z.ZodString>;
53
53
  mimetype: z.ZodNullable<z.ZodString>;
54
- }, z.core.$strip>>;
55
- }, z.core.$strip>;
54
+ }, z.core.$loose>>;
55
+ }, z.core.$loose>;
56
56
  declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionDefinition<{
57
57
  prompt: string;
58
58
  model?: "gemini-2.5-flash-image" | "gemini-3-pro-image-preview" | "gemini-2.0-flash-exp-image-generation" | undefined;
@@ -63,6 +63,7 @@ declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionD
63
63
  temperature?: number | undefined;
64
64
  aspect_ratio?: "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "4:5" | "5:4" | "9:16" | "16:9" | "21:9" | undefined;
65
65
  safety_settings?: {
66
+ [x: string]: unknown;
66
67
  category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT";
67
68
  threshold: "BLOCK_NONE" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH";
68
69
  }[] | undefined;
@@ -42,7 +42,7 @@ const GeminiGenerateImageInput = z.object({
42
42
  "BLOCK_MEDIUM_AND_ABOVE",
43
43
  "BLOCK_ONLY_HIGH"
44
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(),
45
+ }).passthrough()).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
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
47
  system_instruction: z.string().describe("System instruction to guide image generation behavior").optional()
48
48
  });
@@ -50,13 +50,13 @@ const GeminiGenerateImage_FileDownloadableSchema = z.object({
50
50
  name: z.string().describe("Name of the file").nullable(),
51
51
  s3url: z.string().describe("S3 URL of the downloaded file.").nullable(),
52
52
  mimetype: z.string().describe("Mime type of the file.").nullable()
53
- });
53
+ }).passthrough();
54
54
  const geminiGenerateImage = action("GEMINI_GENERATE_IMAGE", {
55
55
  slug: "gemini-generate-image",
56
56
  name: "Generate Image (Nano Banana)",
57
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 downloadable image per call, or a text-type entry in data.content when no image is produced. Always validate that an image was returned before treating the call as successful. 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
58
  input: GeminiGenerateImageInput,
59
- output: z.object({ image: GeminiGenerateImage_FileDownloadableSchema.nullable() })
59
+ output: z.object({ image: GeminiGenerateImage_FileDownloadableSchema.nullable() }).passthrough()
60
60
  });
61
61
  //#endregion
62
62
  export { geminiGenerateImage };
@@ -1 +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.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.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});\nexport const GeminiGenerateImageOutput = 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 downloadable image per call, or a text-type entry in data.content when no image is produced. Always validate that an image was returned before treating the call as successful. 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: GeminiGenerateImageInput,\n output: GeminiGenerateImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,KAAK;EAAC;EAA0B;EAA8B;CAAuC,CAAC,CAAC,CAAC,QAAQ,4BAA4B,CAAC,CAAC,SAAS,2NAA2N,CAAC,CAAC,SAAS;CACtY,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2PAA2P;CACvR,SAAS,EAAE,OAAO,CAAC,CAAC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EAChD,OAAO,2CAA2C,SAAS,EAC7D,CAOU;AACV,CAAC"}
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.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}).passthrough()).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.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}).passthrough();\nexport const GeminiGenerateImageOutput = z.object({\n image: GeminiGenerateImage_FileDownloadableSchema.nullable(),\n}).passthrough();\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 downloadable image per call, or a text-type entry in data.content when no image is produced. Always validate that an image was returned before treating the call as successful. 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: GeminiGenerateImageInput,\n output: GeminiGenerateImageOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2BAA2B,EAAE,OAAO;CAC/C,OAAO,EAAE,KAAK;EAAC;EAA0B;EAA8B;CAAuC,CAAC,CAAC,CAAC,QAAQ,4BAA4B,CAAC,CAAC,SAAS,2NAA2N,CAAC,CAAC,SAAS;CACtY,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2PAA2P;CACvR,SAAS,EAAE,OAAO,CAAC,CAAC,QAAQ,GAAG,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACxN,YAAY,EAAE,KAAK;EAAC;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC1J,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,cAAc,EAAE,KAAK;EAAC;EAAO;EAAO;EAAO;EAAO;EAAO;EAAO;EAAO;EAAQ;EAAQ;CAAM,CAAC,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4MAA4M,CAAC,CAAC,SAAS;CAC/U,iBAAiB,EAAE,MAAM,EAAE,OAAO;EAClC,UAAU,EAAE,KAAK;GAAC;GAA4B;GAA6B;GAAmC;EAAiC,CAAC,CAAC,CAAC,SAAS,2CAA2C;EACtM,WAAW,EAAE,KAAK;GAAC;GAAc;GAAuB;GAA0B;EAAiB,CAAC,CAAC,CAAC,SAAS,qDAAqD;CACtK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,kWAAkW,CAAC,CAAC,SAAS;CACtY,mBAAmB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2UAA2U,CAAC,CAAC,SAAS;CACnY,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;AAC5G,CAAC;AACD,MAAM,6CAA6C,EAAE,OAAO;CAC1D,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,CAAC,CAAC,YAAY;AAKf,MAAa,sBAAsB,OAAO,yBAAyB;CACjE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QATuC,EAAE,OAAO,EAChD,OAAO,2CAA2C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -2,40 +2,28 @@ const require_action = require("../action.cjs");
2
2
  let zod = require("zod");
3
3
  //#region src/actions/generate-videos.ts
4
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(),
5
+ seed: zod.z.number().int().describe("Seed value for reproducibility. Supported by the Veo 3.1 models.").optional(),
6
+ model: zod.z.enum(["veo-3.1-generate-preview", "veo-3.1-fast-generate-preview"]).default("veo-3.1-generate-preview").describe("Veo model for video generation. VEO_3_1 ('veo-3.1-generate-preview', default) or VEO_3_1_FAST ('veo-3.1-fast-generate-preview', faster/cheaper).").optional(),
13
7
  prompt: zod.z.string().describe("Text prompt for Veo video generation. Must be a non-empty string describing the video to generate."),
14
8
  resolution: zod.z.enum(["720p", "1080p"]).describe("Supported resolutions for video generation.").optional(),
15
9
  aspect_ratio: zod.z.enum(["16:9", "9:16"]).describe("Supported aspect ratios for video generation.").optional(),
16
10
  negative_prompt: zod.z.string().describe("Text describing content to avoid in the generated video (e.g., 'cartoon, drawing, low quality').").optional(),
17
11
  duration_seconds: zod.z.union([
18
12
  zod.z.literal(4),
19
- zod.z.literal(5),
20
13
  zod.z.literal(6),
21
- zod.z.literal(7),
22
14
  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()
15
+ ]).describe("Supported video durations in seconds (Veo 3.1: 4, 6, or 8).").optional(),
16
+ person_generation: zod.z.enum(["allow_all"]).describe("Person generation safety setting (Veo 3.1 supports only ALLOW_ALL).").optional()
29
17
  });
30
18
  const GeminiGenerateVideos_OperationCreationResponseSchema = zod.z.object({
31
19
  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').").nullable(),
20
+ name: zod.z.string().describe("Server-assigned operation resource name (e.g., 'models/veo-3.1-generate-preview/operations/abc123').").nullable(),
33
21
  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
22
  }).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
23
  const GeminiGenerateVideosOutput = zod.z.object({
36
24
  raw: GeminiGenerateVideos_OperationCreationResponseSchema.nullable(),
37
25
  operation_name: zod.z.string().describe("Long-running operation name/id").nullable()
38
- });
26
+ }).passthrough();
39
27
  const geminiGenerateVideos = require_action.action("GEMINI_GENERATE_VIDEOS", {
40
28
  slug: "gemini-generate-videos",
41
29
  name: "Generate Videos (Veo)",
@@ -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.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,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+ {"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. Supported by the Veo 3.1 models.\").optional(),\n model: z.enum([\"veo-3.1-generate-preview\", \"veo-3.1-fast-generate-preview\"]).default(\"veo-3.1-generate-preview\").describe(\"Veo model for video generation. VEO_3_1 ('veo-3.1-generate-preview', default) or VEO_3_1_FAST ('veo-3.1-fast-generate-preview', faster/cheaper).\").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(6), z.literal(8)]).describe(\"Supported video durations in seconds (Veo 3.1: 4, 6, or 8).\").optional(),\n person_generation: z.enum([\"allow_all\"]).describe(\"Person generation safety setting (Veo 3.1 supports only ALLOW_ALL).\").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.1-generate-preview/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}).passthrough();\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,kEAAkE,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,KAAK,CAAC,4BAA4B,+BAA+B,CAAC,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CACvR,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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
- "veo-3.0-generate-001": "veo-3.0-generate-001";
9
- "veo-3.0-fast-generate-001": "veo-3.0-fast-generate-001";
10
7
  "veo-3.1-generate-preview": "veo-3.1-generate-preview";
11
8
  "veo-3.1-fast-generate-preview": "veo-3.1-fast-generate-preview";
12
9
  }>>>;
@@ -20,10 +17,8 @@ declare const GeminiGenerateVideosInput: z.ZodObject<{
20
17
  "16:9": "16:9";
21
18
  }>>;
22
19
  negative_prompt: z.ZodOptional<z.ZodString>;
23
- duration_seconds: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<5>, z.ZodLiteral<6>, z.ZodLiteral<7>, z.ZodLiteral<8>]>>;
20
+ duration_seconds: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<4>, z.ZodLiteral<6>, z.ZodLiteral<8>]>>;
24
21
  person_generation: z.ZodOptional<z.ZodEnum<{
25
- dont_allow: "dont_allow";
26
- allow_adult: "allow_adult";
27
22
  allow_all: "allow_all";
28
23
  }>>;
29
24
  }, z.core.$strip>;
@@ -34,16 +29,16 @@ declare const GeminiGenerateVideosOutput: z.ZodObject<{
34
29
  metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
35
30
  }, z.core.$loose>>;
36
31
  operation_name: z.ZodNullable<z.ZodString>;
37
- }, z.core.$strip>;
32
+ }, z.core.$loose>;
38
33
  declare const geminiGenerateVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
39
34
  prompt: string;
40
35
  seed?: number | undefined;
41
- model?: "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" | undefined;
36
+ model?: "veo-3.1-generate-preview" | "veo-3.1-fast-generate-preview" | undefined;
42
37
  resolution?: "720p" | "1080p" | undefined;
43
38
  aspect_ratio?: "9:16" | "16:9" | undefined;
44
39
  negative_prompt?: string | undefined;
45
- duration_seconds?: 4 | 5 | 6 | 7 | 8 | undefined;
46
- person_generation?: "dont_allow" | "allow_adult" | "allow_all" | undefined;
40
+ duration_seconds?: 4 | 6 | 8 | undefined;
41
+ person_generation?: "allow_all" | undefined;
47
42
  }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
48
43
  //#endregion
49
44
  export { geminiGenerateVideos };
@@ -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"}