@keystrokehq/gemini 0.1.4 → 0.1.5

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 (67) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/count-tokens.cjs +1 -0
  4. package/dist/actions/count-tokens.cjs.map +1 -1
  5. package/dist/actions/count-tokens.d.cts +3 -4
  6. package/dist/actions/count-tokens.d.cts.map +1 -1
  7. package/dist/actions/count-tokens.d.mts +3 -4
  8. package/dist/actions/count-tokens.d.mts.map +1 -1
  9. package/dist/actions/count-tokens.mjs +1 -0
  10. package/dist/actions/count-tokens.mjs.map +1 -1
  11. package/dist/actions/embed-content.cjs +1 -0
  12. package/dist/actions/embed-content.cjs.map +1 -1
  13. package/dist/actions/embed-content.d.cts +3 -7
  14. package/dist/actions/embed-content.d.cts.map +1 -1
  15. package/dist/actions/embed-content.d.mts +3 -7
  16. package/dist/actions/embed-content.d.mts.map +1 -1
  17. package/dist/actions/embed-content.mjs +1 -0
  18. package/dist/actions/embed-content.mjs.map +1 -1
  19. package/dist/actions/generate-content.cjs +1 -0
  20. package/dist/actions/generate-content.cjs.map +1 -1
  21. package/dist/actions/generate-content.d.cts +3 -12
  22. package/dist/actions/generate-content.d.cts.map +1 -1
  23. package/dist/actions/generate-content.d.mts +3 -12
  24. package/dist/actions/generate-content.d.mts.map +1 -1
  25. package/dist/actions/generate-content.mjs +1 -0
  26. package/dist/actions/generate-content.mjs.map +1 -1
  27. package/dist/actions/generate-image.cjs +1 -0
  28. package/dist/actions/generate-image.cjs.map +1 -1
  29. package/dist/actions/generate-image.d.cts +3 -17
  30. package/dist/actions/generate-image.d.cts.map +1 -1
  31. package/dist/actions/generate-image.d.mts +3 -17
  32. package/dist/actions/generate-image.d.mts.map +1 -1
  33. package/dist/actions/generate-image.mjs +1 -0
  34. package/dist/actions/generate-image.mjs.map +1 -1
  35. package/dist/actions/generate-videos.cjs +1 -0
  36. package/dist/actions/generate-videos.cjs.map +1 -1
  37. package/dist/actions/generate-videos.d.cts +3 -10
  38. package/dist/actions/generate-videos.d.cts.map +1 -1
  39. package/dist/actions/generate-videos.d.mts +3 -10
  40. package/dist/actions/generate-videos.d.mts.map +1 -1
  41. package/dist/actions/generate-videos.mjs +1 -0
  42. package/dist/actions/generate-videos.mjs.map +1 -1
  43. package/dist/actions/list-models.cjs +1 -0
  44. package/dist/actions/list-models.cjs.map +1 -1
  45. package/dist/actions/list-models.d.cts +3 -5
  46. package/dist/actions/list-models.d.cts.map +1 -1
  47. package/dist/actions/list-models.d.mts +3 -5
  48. package/dist/actions/list-models.d.mts.map +1 -1
  49. package/dist/actions/list-models.mjs +1 -0
  50. package/dist/actions/list-models.mjs.map +1 -1
  51. package/dist/actions/wait-for-video.cjs +1 -0
  52. package/dist/actions/wait-for-video.cjs.map +1 -1
  53. package/dist/actions/wait-for-video.d.cts +3 -3
  54. package/dist/actions/wait-for-video.d.cts.map +1 -1
  55. package/dist/actions/wait-for-video.d.mts +3 -3
  56. package/dist/actions/wait-for-video.d.mts.map +1 -1
  57. package/dist/actions/wait-for-video.mjs +1 -0
  58. package/dist/actions/wait-for-video.mjs.map +1 -1
  59. package/dist/app.cjs.map +1 -1
  60. package/dist/app.d.cts +3 -1
  61. package/dist/app.d.cts.map +1 -1
  62. package/dist/app.d.mts +3 -1
  63. package/dist/app.d.mts.map +1 -1
  64. package/dist/app.mjs.map +1 -1
  65. package/dist/index.d.cts +1 -1
  66. package/dist/index.d.mts +1 -1
  67. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["gemini","executeGeminiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return gemini.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["gemini","executeGeminiTool"],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof gemini.credential> {\n return gemini.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAOA,YAAAA,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAMC,gBAAAA,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return gemini.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { gemini } from \"./app\";\nimport { executeGeminiTool } from \"./execute\";\n\n/** Bind one gateway tool to a typed app action; the call's output is parsed against `def.output`. */\nexport function action<TInput extends z.ZodType, TOutput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\n },\n): AppAction<TInput, TOutput, typeof gemini.credential> {\n return gemini.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAOA,SAAgB,OACd,MACA,KAOsD;CACtD,OAAO,OAAO,OAAO;EACnB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,kBAAkB,MAAM,KAAgC,CAAC;EACzF;CACF,CAAC;AACH"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/count-tokens.ts
@@ -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}).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"}
1
+ {"version":3,"file":"count-tokens.cjs","names":["z","action"],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiCountTokensInput,\n typeof GeminiCountTokensOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,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,oBAITC,eAAAA,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/count-tokens.d.ts
@@ -12,10 +14,7 @@ declare const GeminiCountTokensOutput: z.ZodObject<{
12
14
  token_count: z.ZodNullable<z.ZodNumber>;
13
15
  }, z.core.$loose>>>>;
14
16
  }, z.core.$loose>;
15
- declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- text: string;
17
- model?: string | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const geminiCountTokens: AppAction<typeof GeminiCountTokensInput, typeof GeminiCountTokensOutput, typeof gemini.credential>;
19
18
  //#endregion
20
19
  export { geminiCountTokens };
21
20
  //# sourceMappingURL=count-tokens.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"count-tokens.d.cts","names":[],"sources":["../../src/actions/count-tokens.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAQtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"count-tokens.d.cts","names":[],"sources":["../../src/actions/count-tokens.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAQtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/count-tokens.d.ts
@@ -12,10 +14,7 @@ declare const GeminiCountTokensOutput: z.ZodObject<{
12
14
  token_count: z.ZodNullable<z.ZodNumber>;
13
15
  }, z.core.$loose>>>>;
14
16
  }, z.core.$loose>;
15
- declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- text: string;
17
- model?: string | undefined;
18
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const geminiCountTokens: AppAction<typeof GeminiCountTokensInput, typeof GeminiCountTokensOutput, typeof gemini.credential>;
19
18
  //#endregion
20
19
  export { geminiCountTokens };
21
20
  //# sourceMappingURL=count-tokens.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"count-tokens.d.mts","names":[],"sources":["../../src/actions/count-tokens.ts"],"mappings":";;;cAIa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAQtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAKvB,iBAAA,gCAAiB,wBAAA"}
1
+ {"version":3,"file":"count-tokens.d.mts","names":[],"sources":["../../src/actions/count-tokens.ts"],"mappings":";;;;;cAMa,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;cAQtB,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAKvB,iBAAA,EAAmB,SAAA,QACvB,sBAAA,SACA,uBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/count-tokens.ts
@@ -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}).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"}
1
+ {"version":3,"file":"count-tokens.mjs","names":[],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiCountTokensInput,\n typeof GeminiCountTokensOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,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,oBAIT,OAAO,uBAAuB;CAChC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdqC,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,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/embed-content.ts
@@ -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}).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"}
1
+ {"version":3,"file":"embed-content.cjs","names":["z","action"],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiEmbedContentInput,\n typeof GeminiEmbedContentOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,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,qBAITC,eAAAA,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/embed-content.d.ts
@@ -12,13 +14,7 @@ declare const GeminiEmbedContentOutput: z.ZodObject<{
12
14
  embedding: z.ZodArray<z.ZodNumber>;
13
15
  dimensions: z.ZodNullable<z.ZodNumber>;
14
16
  }, z.core.$loose>;
15
- declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- text: string;
17
- model?: string | undefined;
18
- title?: string | undefined;
19
- task_type?: string | undefined;
20
- output_dimensionality?: number | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const geminiEmbedContent: AppAction<typeof GeminiEmbedContentInput, typeof GeminiEmbedContentOutput, typeof gemini.credential>;
22
18
  //#endregion
23
19
  export { geminiEmbedContent };
24
20
  //# sourceMappingURL=embed-content.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"embed-content.d.cts","names":[],"sources":["../../src/actions/embed-content.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAOvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"embed-content.d.cts","names":[],"sources":["../../src/actions/embed-content.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAOvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/embed-content.d.ts
@@ -12,13 +14,7 @@ declare const GeminiEmbedContentOutput: z.ZodObject<{
12
14
  embedding: z.ZodArray<z.ZodNumber>;
13
15
  dimensions: z.ZodNullable<z.ZodNumber>;
14
16
  }, z.core.$loose>;
15
- declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDefinition<{
16
- text: string;
17
- model?: string | undefined;
18
- title?: string | undefined;
19
- task_type?: string | undefined;
20
- output_dimensionality?: number | undefined;
21
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
17
+ declare const geminiEmbedContent: AppAction<typeof GeminiEmbedContentInput, typeof GeminiEmbedContentOutput, typeof gemini.credential>;
22
18
  //#endregion
23
19
  export { geminiEmbedContent };
24
20
  //# sourceMappingURL=embed-content.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"embed-content.d.mts","names":[],"sources":["../../src/actions/embed-content.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAOvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"embed-content.d.mts","names":[],"sources":["../../src/actions/embed-content.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;cAOvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;cAKxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const geminiEmbedContent = action("GEMINI_EMBED_CONTENT", {
@@ -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}).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"}
1
+ {"version":3,"file":"embed-content.mjs","names":[],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiEmbedContentInput,\n typeof GeminiEmbedContentOutput,\n typeof gemini.credential\n> = 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":";;;AAkBA,MAAa,qBAIT,OAAO,wBAAwB;CACjC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OApBqC,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,CAcS;CACP,QAdsC,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,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/generate-content.ts
@@ -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}).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,SAAS,yQAAyQ;CACrS,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;EAAW;EAAW;EAAW;EAAS;EAAW;EAAc;EAAU;EAAW;EAAa;EAAW;EAAU;EAAU;EAAW;EAAQ;EAAa;EAAQ;EAAQ;EAAQ;EAAe;EAAc;EAAa;EAAc;EAAW;EAAW;EAAW;EAAgB;EAAU;CAAe,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACtjB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACxG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACtN,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACvG,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,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 type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiGenerateContentInput,\n typeof GeminiGenerateContentOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAAS,waAAwa,CAAC,CAAC,SAAS;CAC1e,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS;CACtE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;CAC/E,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yQAAyQ;CACrS,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAY;EAAU;EAAW;EAAW;EAAW;EAAS;EAAW;EAAc;EAAU;EAAW;EAAa;EAAW;EAAU;EAAU;EAAW;EAAQ;EAAa;EAAQ;EAAQ;EAAQ;EAAe;EAAc;EAAa;EAAc;EAAW;EAAW;EAAW;EAAgB;EAAU;CAAe,CAAC,CAAC,CAAC,SAAS,uLAAuL,CAAC,CAAC,SAAS;CACtjB,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;CAChG,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;CACxG,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8JAA8J,CAAC,CAAC,SAAS;CACtN,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;AACvG,CAAC;AACD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,KAAKA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrG,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iDAAiD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvI,YAAYA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC3E,gBAAgBA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,wBAITC,eAAAA,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/generate-content.d.ts
@@ -53,18 +55,7 @@ declare const GeminiGenerateContentOutput: z.ZodObject<{
53
55
  usage_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
54
56
  composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
57
  }, z.core.$loose>;
56
- declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<{
57
- prompt: string;
58
- model?: string | undefined;
59
- top_k?: number | undefined;
60
- top_p?: number | undefined;
61
- voice_name?: "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" | undefined;
62
- temperature?: number | undefined;
63
- stop_sequences?: string[] | undefined;
64
- safety_settings?: Record<string, unknown>[] | undefined;
65
- max_output_tokens?: number | undefined;
66
- system_instruction?: string | undefined;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
+ declare const geminiGenerateContent: AppAction<typeof GeminiGenerateContentInput, typeof GeminiGenerateContentOutput, typeof gemini.credential>;
68
59
  //#endregion
69
60
  export { geminiGenerateContent };
70
61
  //# sourceMappingURL=generate-content.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-content.d.cts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA;;;;;;;;oBAMhC,MAAA"}
1
+ {"version":3,"file":"generate-content.d.cts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/generate-content.d.ts
@@ -53,18 +55,7 @@ declare const GeminiGenerateContentOutput: z.ZodObject<{
53
55
  usage_metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
54
56
  composio_execution_message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
57
  }, z.core.$loose>;
56
- declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<{
57
- prompt: string;
58
- model?: string | undefined;
59
- top_k?: number | undefined;
60
- top_p?: number | undefined;
61
- voice_name?: "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" | undefined;
62
- temperature?: number | undefined;
63
- stop_sequences?: string[] | undefined;
64
- safety_settings?: Record<string, unknown>[] | undefined;
65
- max_output_tokens?: number | undefined;
66
- system_instruction?: string | undefined;
67
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
+ declare const geminiGenerateContent: AppAction<typeof GeminiGenerateContentInput, typeof GeminiGenerateContentOutput, typeof gemini.credential>;
68
59
  //#endregion
69
60
  export { geminiGenerateContent };
70
61
  //# sourceMappingURL=generate-content.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-content.d.mts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA;;;;;;;;oBAMhC,MAAA"}
1
+ {"version":3,"file":"generate-content.d.mts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;;;cAMa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,EAAuB,SAAA,QAC3B,0BAAA,SACA,2BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const geminiGenerateContent = action("GEMINI_GENERATE_CONTENT", {
@@ -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}).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"}
1
+ {"version":3,"file":"generate-content.mjs","names":[],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiGenerateContentInput,\n typeof GeminiGenerateContentOutput,\n typeof gemini.credential\n> = 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":";;;AA4BA,MAAa,wBAIT,OAAO,2BAA2B;CACpC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA9BwC,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,CAmBS;CACP,QAnByC,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,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/generate-image.ts
@@ -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}).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,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACxN,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,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,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAClC,UAAUA,IAAAA,EAAE,KAAK;GAAC;GAA4B;GAA6B;GAAmC;EAAiC,CAAC,CAAC,CAAC,SAAS,2CAA2C;EACtM,WAAWA,IAAAA,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,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2UAA2U,CAAC,CAAC,SAAS;CACnY,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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,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"}
1
+ {"version":3,"file":"generate-image.cjs","names":["z","action"],"sources":["../../src/actions/generate-image.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiGenerateImageInput,\n typeof GeminiGenerateImageOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,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,CAAC,CAAC,SAAS,mKAAmK,CAAC,CAAC,SAAS;CACxN,YAAYA,IAAAA,EAAE,KAAK;EAAC;EAAM;EAAM;CAAI,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,iFAAiF,CAAC,CAAC,SAAS;CAC1J,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,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,iBAAiBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO;EAClC,UAAUA,IAAAA,EAAE,KAAK;GAAC;GAA4B;GAA6B;GAAmC;EAAiC,CAAC,CAAC,CAAC,SAAS,2CAA2C;EACtM,WAAWA,IAAAA,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,mBAAmBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2UAA2U,CAAC,CAAC,SAAS;CACnY,oBAAoBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,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,CAAC,CAAC,YAAY;AACf,MAAa,4BAA4BA,IAAAA,EAAE,OAAO,EAChD,OAAO,2CAA2C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/generate-image.d.ts
@@ -53,23 +55,7 @@ declare const GeminiGenerateImageOutput: z.ZodObject<{
53
55
  mimetype: z.ZodNullable<z.ZodString>;
54
56
  }, z.core.$loose>>;
55
57
  }, z.core.$loose>;
56
- declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionDefinition<{
57
- prompt: string;
58
- model?: "gemini-2.5-flash-image" | "gemini-3-pro-image-preview" | "gemini-2.0-flash-exp-image-generation" | undefined;
59
- top_k?: number | undefined;
60
- top_p?: number | undefined;
61
- timeout?: number | undefined;
62
- image_size?: "1K" | "2K" | "4K" | undefined;
63
- temperature?: number | undefined;
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
- safety_settings?: {
66
- [x: string]: unknown;
67
- category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT";
68
- threshold: "BLOCK_NONE" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH";
69
- }[] | undefined;
70
- max_output_tokens?: number | undefined;
71
- system_instruction?: string | undefined;
72
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
+ declare const geminiGenerateImage: AppAction<typeof GeminiGenerateImageInput, typeof GeminiGenerateImageOutput, typeof gemini.credential>;
73
59
  //#endregion
74
60
  export { geminiGenerateImage };
75
61
  //# sourceMappingURL=generate-image.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-image.d.cts","names":[],"sources":["../../src/actions/generate-image.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"generate-image.d.cts","names":[],"sources":["../../src/actions/generate-image.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/generate-image.d.ts
@@ -53,23 +55,7 @@ declare const GeminiGenerateImageOutput: z.ZodObject<{
53
55
  mimetype: z.ZodNullable<z.ZodString>;
54
56
  }, z.core.$loose>>;
55
57
  }, z.core.$loose>;
56
- declare const geminiGenerateImage: import("@keystrokehq/action").WorkflowActionDefinition<{
57
- prompt: string;
58
- model?: "gemini-2.5-flash-image" | "gemini-3-pro-image-preview" | "gemini-2.0-flash-exp-image-generation" | undefined;
59
- top_k?: number | undefined;
60
- top_p?: number | undefined;
61
- timeout?: number | undefined;
62
- image_size?: "1K" | "2K" | "4K" | undefined;
63
- temperature?: number | undefined;
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
- safety_settings?: {
66
- [x: string]: unknown;
67
- category: "HARM_CATEGORY_HARASSMENT" | "HARM_CATEGORY_HATE_SPEECH" | "HARM_CATEGORY_SEXUALLY_EXPLICIT" | "HARM_CATEGORY_DANGEROUS_CONTENT";
68
- threshold: "BLOCK_NONE" | "BLOCK_LOW_AND_ABOVE" | "BLOCK_MEDIUM_AND_ABOVE" | "BLOCK_ONLY_HIGH";
69
- }[] | undefined;
70
- max_output_tokens?: number | undefined;
71
- system_instruction?: string | undefined;
72
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
58
+ declare const geminiGenerateImage: AppAction<typeof GeminiGenerateImageInput, typeof GeminiGenerateImageOutput, typeof gemini.credential>;
73
59
  //#endregion
74
60
  export { geminiGenerateImage };
75
61
  //# sourceMappingURL=generate-image.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-image.d.mts","names":[],"sources":["../../src/actions/generate-image.ts"],"mappings":";;;cAIa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,gCAAmB,wBAAA"}
1
+ {"version":3,"file":"generate-image.d.mts","names":[],"sources":["../../src/actions/generate-image.ts"],"mappings":";;;;;cAMa,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAqBxB,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;cAIzB,mBAAA,EAAqB,SAAA,QACzB,wBAAA,SACA,yBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/generate-image.ts
@@ -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}).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"}
1
+ {"version":3,"file":"generate-image.mjs","names":[],"sources":["../../src/actions/generate-image.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiGenerateImageInput,\n typeof GeminiGenerateImageOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,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,sBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAbuC,EAAE,OAAO,EAChD,OAAO,2CAA2C,SAAS,EAC7D,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/generate-videos.ts
@@ -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. 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,SAAS;CAClJ,kBAAkBA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACvJ,mBAAmBA,IAAAA,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACpI,CAAC;AACD,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3I,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oaAAoa;AAC9b,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAK,qDAAqD,SAAS;CACnE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAAuBC,eAAAA,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"generate-videos.cjs","names":["z","action"],"sources":["../../src/actions/generate-videos.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiGenerateVideosInput,\n typeof GeminiGenerateVideosOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,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,SAAS;CAClJ,kBAAkBA,IAAAA,EAAE,MAAM;EAACA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;EAAGA,IAAAA,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACvJ,mBAAmBA,IAAAA,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACpI,CAAC;AACD,MAAM,uDAAuDA,IAAAA,EAAE,OAAO;CACpE,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3I,UAAUA,IAAAA,EAAE,OAAOA,IAAAA,EAAE,OAAO,GAAGA,IAAAA,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oaAAoa;AAC9b,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,KAAK,qDAAqD,SAAS;CACnE,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,uBAITC,eAAAA,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/generate-videos.d.ts
@@ -30,16 +32,7 @@ declare const GeminiGenerateVideosOutput: z.ZodObject<{
30
32
  }, z.core.$loose>>;
31
33
  operation_name: z.ZodNullable<z.ZodString>;
32
34
  }, z.core.$loose>;
33
- declare const geminiGenerateVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- prompt: string;
35
- seed?: number | undefined;
36
- model?: "veo-3.1-generate-preview" | "veo-3.1-fast-generate-preview" | undefined;
37
- resolution?: "720p" | "1080p" | undefined;
38
- aspect_ratio?: "9:16" | "16:9" | undefined;
39
- negative_prompt?: string | undefined;
40
- duration_seconds?: 4 | 6 | 8 | undefined;
41
- person_generation?: "allow_all" | undefined;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const geminiGenerateVideos: AppAction<typeof GeminiGenerateVideosInput, typeof GeminiGenerateVideosOutput, typeof gemini.credential>;
43
36
  //#endregion
44
37
  export { geminiGenerateVideos };
45
38
  //# sourceMappingURL=generate-videos.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-videos.d.cts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"generate-videos.d.cts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/generate-videos.d.ts
@@ -30,16 +32,7 @@ declare const GeminiGenerateVideosOutput: z.ZodObject<{
30
32
  }, z.core.$loose>>;
31
33
  operation_name: z.ZodNullable<z.ZodString>;
32
34
  }, z.core.$loose>;
33
- declare const geminiGenerateVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
34
- prompt: string;
35
- seed?: number | undefined;
36
- model?: "veo-3.1-generate-preview" | "veo-3.1-fast-generate-preview" | undefined;
37
- resolution?: "720p" | "1080p" | undefined;
38
- aspect_ratio?: "9:16" | "16:9" | undefined;
39
- negative_prompt?: string | undefined;
40
- duration_seconds?: 4 | 6 | 8 | undefined;
41
- person_generation?: "allow_all" | undefined;
42
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
35
+ declare const geminiGenerateVideos: AppAction<typeof GeminiGenerateVideosInput, typeof GeminiGenerateVideosOutput, typeof gemini.credential>;
43
36
  //#endregion
44
37
  export { geminiGenerateVideos };
45
38
  //# sourceMappingURL=generate-videos.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"generate-videos.d.mts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;cAIa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,gCAAoB,wBAAA"}
1
+ {"version":3,"file":"generate-videos.d.mts","names":[],"sources":["../../src/actions/generate-videos.ts"],"mappings":";;;;;cAMa,yBAAA,EAAyB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;cAezB,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;cAK1B,oBAAA,EAAsB,SAAA,QAC1B,yBAAA,SACA,0BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/generate-videos.ts
@@ -1 +1 @@
1
- {"version":3,"file":"generate-videos.mjs","names":[],"sources":["../../src/actions/generate-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateVideosInput = z.object({\n seed: z.number().int().describe(\"Seed value for reproducibility. 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,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,OAAO,EAAE,KAAK,CAAC,4BAA4B,+BAA+B,CAAC,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CACvR,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CAChI,YAAY,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,kBAAkB,EAAE,MAAM;EAAC,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACvJ,mBAAmB,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACpI,CAAC;AACD,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3I,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oaAAoa;AAM9b,MAAa,uBAAuB,OAAO,0BAA0B;CACnE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVwC,EAAE,OAAO;EACjD,KAAK,qDAAqD,SAAS;EACnE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"generate-videos.mjs","names":[],"sources":["../../src/actions/generate-videos.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\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: AppAction<\n typeof GeminiGenerateVideosInput,\n typeof GeminiGenerateVideosOutput,\n typeof gemini.credential\n> = 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":";;;;AAMA,MAAa,4BAA4B,EAAE,OAAO;CAChD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CAC7G,OAAO,EAAE,KAAK,CAAC,4BAA4B,+BAA+B,CAAC,CAAC,CAAC,QAAQ,0BAA0B,CAAC,CAAC,SAAS,kJAAkJ,CAAC,CAAC,SAAS;CACvR,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG;CAChI,YAAY,EAAE,KAAK,CAAC,QAAQ,OAAO,CAAC,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;CACvG,cAAc,EAAE,KAAK,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAC,SAAS,+CAA+C,CAAC,CAAC,SAAS;CAC1G,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kGAAkG,CAAC,CAAC,SAAS;CAClJ,kBAAkB,EAAE,MAAM;EAAC,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;EAAG,EAAE,QAAQ,CAAC;CAAC,CAAC,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CACvJ,mBAAmB,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;AACpI,CAAC;AACD,MAAM,uDAAuD,EAAE,OAAO;CACpE,MAAM,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,4FAA4F,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5J,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,sGAAsG,CAAC,CAAC,SAAS;CAC3I,UAAU,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,0GAA0G,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACvL,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,oaAAoa;AAM9b,MAAa,uBAIT,OAAO,0BAA0B;CACnC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdwC,EAAE,OAAO;EACjD,KAAK,qDAAqD,SAAS;EACnE,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/list-models.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-models.cjs","names":["z","action"],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.number().int().describe(\"Default top-k sampling parameter\").nullable().optional(),\n topP: z.number().describe(\"Default nucleus sampling parameter\").nullable().optional(),\n version: z.string().describe(\"Major version number\").nullable(),\n thinking: z.boolean().describe(\"Whether model supports thinking capability\").nullable().optional(),\n baseModelId: z.string().describe(\"Base model name for generation requests\").nullable().optional(),\n description: z.string().describe(\"Brief model summary\").nullable().optional(),\n displayName: z.string().describe(\"Human-readable model name\").nullable().optional(),\n temperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n maxTemperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n inputTokenLimit: z.number().int().describe(\"Maximum input tokens allowed\").nullable().optional(),\n outputTokenLimit: z.number().int().describe(\"Maximum output tokens available\").nullable().optional(),\n supportedGenerationMethods: z.array(z.string()).describe(\"Supported methods like generateContent\").nullable().optional(),\n}).passthrough().describe(\"Represents a Gemini model with its capabilities and limits.\");\nconst GeminiListModels_RawListModelsResponseSchema = z.object({\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of models\").nullable().optional(),\n nextPageToken: z.string().describe(\"Token for retrieving next page\").nullable().optional(),\n}).passthrough().describe(\"Raw API response from the models.list endpoint.\");\nexport const GeminiListModelsOutput = z.object({\n raw: GeminiListModels_RawListModelsResponseSchema.nullable(),\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of available models\").nullable().optional(),\n}).passthrough();\n\nexport const geminiListModels = action(\"GEMINI_LIST_MODELS\", {\n slug: \"gemini-list-models\",\n name: \"List Models (Gemini API)\",\n description: \"Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests.\",\n input: GeminiListModelsInput,\n output: GeminiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACxI,CAAC;AACD,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,4BAA4BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAK,6CAA6C,SAAS;CAC3D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mBAAmBC,eAAAA,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-models.cjs","names":["z","action"],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.number().int().describe(\"Default top-k sampling parameter\").nullable().optional(),\n topP: z.number().describe(\"Default nucleus sampling parameter\").nullable().optional(),\n version: z.string().describe(\"Major version number\").nullable(),\n thinking: z.boolean().describe(\"Whether model supports thinking capability\").nullable().optional(),\n baseModelId: z.string().describe(\"Base model name for generation requests\").nullable().optional(),\n description: z.string().describe(\"Brief model summary\").nullable().optional(),\n displayName: z.string().describe(\"Human-readable model name\").nullable().optional(),\n temperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n maxTemperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n inputTokenLimit: z.number().int().describe(\"Maximum input tokens allowed\").nullable().optional(),\n outputTokenLimit: z.number().int().describe(\"Maximum output tokens available\").nullable().optional(),\n supportedGenerationMethods: z.array(z.string()).describe(\"Supported methods like generateContent\").nullable().optional(),\n}).passthrough().describe(\"Represents a Gemini model with its capabilities and limits.\");\nconst GeminiListModels_RawListModelsResponseSchema = z.object({\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of models\").nullable().optional(),\n nextPageToken: z.string().describe(\"Token for retrieving next page\").nullable().optional(),\n}).passthrough().describe(\"Raw API response from the models.list endpoint.\");\nexport const GeminiListModelsOutput = z.object({\n raw: GeminiListModels_RawListModelsResponseSchema.nullable(),\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of available models\").nullable().optional(),\n}).passthrough();\n\nexport const geminiListModels: AppAction<\n typeof GeminiListModelsInput,\n typeof GeminiListModelsOutput,\n typeof gemini.credential\n> = action(\"GEMINI_LIST_MODELS\", {\n slug: \"gemini-list-models\",\n name: \"List Models (Gemini API)\",\n description: \"Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests.\",\n input: GeminiListModelsInput,\n output: GeminiListModelsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwBA,IAAAA,EAAE,OAAO;CAC5C,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACxI,CAAC;AACD,MAAM,+BAA+BA,IAAAA,EAAE,OAAO;CAC5C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAaA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgBA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,4BAA4BA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,+CAA+CA,IAAAA,EAAE,OAAO;CAC5D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAC3E,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,KAAK,6CAA6C,SAAS;CAC3D,QAAQA,IAAAA,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzG,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,mBAITC,eAAAA,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-models.d.ts
@@ -41,11 +43,7 @@ declare const GeminiListModelsOutput: z.ZodObject<{
41
43
  supportedGenerationMethods: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
42
44
  }, z.core.$loose>>>>;
43
45
  }, z.core.$loose>;
44
- declare const geminiListModels: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- page_size?: number | undefined;
46
- page_token?: string | undefined;
47
- filter_prefix?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const geminiListModels: AppAction<typeof GeminiListModelsInput, typeof GeminiListModelsOutput, typeof gemini.credential>;
49
47
  //#endregion
50
48
  export { geminiListModels };
51
49
  //# sourceMappingURL=list-models.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-models.d.cts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAwBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"list-models.d.cts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAwBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/list-models.d.ts
@@ -41,11 +43,7 @@ declare const GeminiListModelsOutput: z.ZodObject<{
41
43
  supportedGenerationMethods: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
42
44
  }, z.core.$loose>>>>;
43
45
  }, z.core.$loose>;
44
- declare const geminiListModels: import("@keystrokehq/action").WorkflowActionDefinition<{
45
- page_size?: number | undefined;
46
- page_token?: string | undefined;
47
- filter_prefix?: string | undefined;
48
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
46
+ declare const geminiListModels: AppAction<typeof GeminiListModelsInput, typeof GeminiListModelsOutput, typeof gemini.credential>;
49
47
  //#endregion
50
48
  export { geminiListModels };
51
49
  //# sourceMappingURL=list-models.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"list-models.d.mts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;cAIa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAwBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,gCAAgB,wBAAA"}
1
+ {"version":3,"file":"list-models.d.mts","names":[],"sources":["../../src/actions/list-models.ts"],"mappings":";;;;;cAMa,qBAAA,EAAqB,CAAA,CAAA,SAAA;;;;;cAwBrB,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAKtB,gBAAA,EAAkB,SAAA,QACtB,qBAAA,SACA,sBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/list-models.ts
@@ -1 +1 @@
1
- {"version":3,"file":"list-models.mjs","names":[],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.number().int().describe(\"Default top-k sampling parameter\").nullable().optional(),\n topP: z.number().describe(\"Default nucleus sampling parameter\").nullable().optional(),\n version: z.string().describe(\"Major version number\").nullable(),\n thinking: z.boolean().describe(\"Whether model supports thinking capability\").nullable().optional(),\n baseModelId: z.string().describe(\"Base model name for generation requests\").nullable().optional(),\n description: z.string().describe(\"Brief model summary\").nullable().optional(),\n displayName: z.string().describe(\"Human-readable model name\").nullable().optional(),\n temperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n maxTemperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n inputTokenLimit: z.number().int().describe(\"Maximum input tokens allowed\").nullable().optional(),\n outputTokenLimit: z.number().int().describe(\"Maximum output tokens available\").nullable().optional(),\n supportedGenerationMethods: z.array(z.string()).describe(\"Supported methods like generateContent\").nullable().optional(),\n}).passthrough().describe(\"Represents a Gemini model with its capabilities and limits.\");\nconst GeminiListModels_RawListModelsResponseSchema = z.object({\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of models\").nullable().optional(),\n nextPageToken: z.string().describe(\"Token for retrieving next page\").nullable().optional(),\n}).passthrough().describe(\"Raw API response from the models.list endpoint.\");\nexport const GeminiListModelsOutput = z.object({\n raw: GeminiListModels_RawListModelsResponseSchema.nullable(),\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of available models\").nullable().optional(),\n}).passthrough();\n\nexport const geminiListModels = action(\"GEMINI_LIST_MODELS\", {\n slug: \"gemini-list-models\",\n name: \"List Models (Gemini API)\",\n description: \"Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests.\",\n input: GeminiListModelsInput,\n output: GeminiListModelsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACxI,CAAC;AACD,MAAM,+BAA+B,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,4BAA4B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAM3E,MAAa,mBAAmB,OAAO,sBAAsB;CAC3D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVoC,EAAE,OAAO;EAC7C,KAAK,6CAA6C,SAAS;EAC3D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"list-models.mjs","names":[],"sources":["../../src/actions/list-models.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\n\nexport const GeminiListModelsInput = z.object({\n page_size: z.number().int().describe(\"Maximum number of models to return per page (default 50, max 1000).\").optional(),\n page_token: z.string().describe(\"Token from a previous response's nextPageToken to retrieve the next page.\").optional(),\n filter_prefix: z.string().default(\"\").describe(\"Filter models by name prefix (client-side). Leave empty to get all models.\").optional(),\n});\nconst GeminiListModels_ModelSchema = z.object({\n name: z.string().describe(\"Resource identifier in format models/{model}\").nullable(),\n topK: z.number().int().describe(\"Default top-k sampling parameter\").nullable().optional(),\n topP: z.number().describe(\"Default nucleus sampling parameter\").nullable().optional(),\n version: z.string().describe(\"Major version number\").nullable(),\n thinking: z.boolean().describe(\"Whether model supports thinking capability\").nullable().optional(),\n baseModelId: z.string().describe(\"Base model name for generation requests\").nullable().optional(),\n description: z.string().describe(\"Brief model summary\").nullable().optional(),\n displayName: z.string().describe(\"Human-readable model name\").nullable().optional(),\n temperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n maxTemperature: z.union([z.number().int(), z.number()]).nullable().optional(),\n inputTokenLimit: z.number().int().describe(\"Maximum input tokens allowed\").nullable().optional(),\n outputTokenLimit: z.number().int().describe(\"Maximum output tokens available\").nullable().optional(),\n supportedGenerationMethods: z.array(z.string()).describe(\"Supported methods like generateContent\").nullable().optional(),\n}).passthrough().describe(\"Represents a Gemini model with its capabilities and limits.\");\nconst GeminiListModels_RawListModelsResponseSchema = z.object({\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of models\").nullable().optional(),\n nextPageToken: z.string().describe(\"Token for retrieving next page\").nullable().optional(),\n}).passthrough().describe(\"Raw API response from the models.list endpoint.\");\nexport const GeminiListModelsOutput = z.object({\n raw: GeminiListModels_RawListModelsResponseSchema.nullable(),\n models: z.array(GeminiListModels_ModelSchema).describe(\"List of available models\").nullable().optional(),\n}).passthrough();\n\nexport const geminiListModels: AppAction<\n typeof GeminiListModelsInput,\n typeof GeminiListModelsOutput,\n typeof gemini.credential\n> = action(\"GEMINI_LIST_MODELS\", {\n slug: \"gemini-list-models\",\n name: \"List Models (Gemini API)\",\n description: \"Lists available Gemini and Veo models with their capabilities and limits. Useful for discovering supported models and their features before making generation requests.\",\n input: GeminiListModelsInput,\n output: GeminiListModelsOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,wBAAwB,EAAE,OAAO;CAC5C,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;CACrH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CACtH,eAAe,EAAE,OAAO,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;AACxI,CAAC;AACD,MAAM,+BAA+B,EAAE,OAAO;CAC5C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACnF,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACpF,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CAC9D,UAAU,EAAE,QAAQ,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAChG,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,aAAa,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzE,gBAAgB,EAAE,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,IAAI,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5E,iBAAiB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,8BAA8B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,4BAA4B,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACzH,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,6DAA6D;AACvF,MAAM,+CAA+C,EAAE,OAAO;CAC5D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,gBAAgB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7F,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAM3E,MAAa,mBAIT,OAAO,sBAAsB;CAC/B,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAdoC,EAAE,OAAO;EAC7C,KAAK,6CAA6C,SAAS;EAC3D,QAAQ,EAAE,MAAM,4BAA4B,CAAC,CAAC,SAAS,0BAA0B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzG,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/wait-for-video.ts
@@ -1 +1 @@
1
- {"version":3,"file":"wait-for-video.cjs","names":["z","action"],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.1-generate-preview/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.boolean().default(true).describe(\"Always True when this object is present, indicating content was filtered.\").nullable().optional(),\n filter_reasons: z.array(z.string()).describe(\"List of reasons why the content was blocked by safety filters.\").nullable().optional(),\n filtered_count: z.number().int().describe(\"Number of videos filtered by RAI safety policies.\").nullable(),\n}).passthrough().describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\").nullable(),\n video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),\n rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional(),\n}).passthrough();\n\nexport const geminiWaitForVideo = action(\"GEMINI_WAIT_FOR_VIDEO\", {\n slug: \"gemini-wait-for-video\",\n name: \"Wait and Download Video (Veo)\",\n description: \"Polls a Veo video generation operation until completion, then downloads and returns the video file. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. A done=true response without a video file indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.\",\n input: GeminiWaitForVideoInput,\n output: GeminiWaitForVideoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8eAA8e,EACphB,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gFAAgF;AAC1G,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpJ,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAAqBC,eAAAA,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"wait-for-video.cjs","names":["z","action"],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.1-generate-preview/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.boolean().default(true).describe(\"Always True when this object is present, indicating content was filtered.\").nullable().optional(),\n filter_reasons: z.array(z.string()).describe(\"List of reasons why the content was blocked by safety filters.\").nullable().optional(),\n filtered_count: z.number().int().describe(\"Number of videos filtered by RAI safety policies.\").nullable(),\n}).passthrough().describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\").nullable(),\n video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),\n rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional(),\n}).passthrough();\n\nexport const geminiWaitForVideo: AppAction<\n typeof GeminiWaitForVideoInput,\n typeof GeminiWaitForVideoOutput,\n typeof gemini.credential\n> = action(\"GEMINI_WAIT_FOR_VIDEO\", {\n slug: \"gemini-wait-for-video\",\n name: \"Wait and Download Video (Veo)\",\n description: \"Polls a Veo video generation operation until completion, then downloads and returns the video file. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. A done=true response without a video file indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.\",\n input: GeminiWaitForVideoInput,\n output: GeminiWaitForVideoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO,EAC9C,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8eAA8e,EACphB,CAAC;AACD,MAAM,4CAA4CA,IAAAA,EAAE,OAAO;CACzD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8CA,IAAAA,EAAE,OAAO;CAC3D,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,UAAUA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,gBAAgBA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gFAAgF;AAC1G,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,SAASA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;CACpJ,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;CAC1E,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;AACjF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,qBAITC,eAAAA,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/wait-for-video.d.ts
@@ -18,9 +20,7 @@ declare const GeminiWaitForVideoOutput: z.ZodObject<{
18
20
  filtered_count: z.ZodNullable<z.ZodNumber>;
19
21
  }, z.core.$loose>>>;
20
22
  }, z.core.$loose>;
21
- declare const geminiWaitForVideo: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- operation_name: string;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const geminiWaitForVideo: AppAction<typeof GeminiWaitForVideoInput, typeof GeminiWaitForVideoOutput, typeof gemini.credential>;
24
24
  //#endregion
25
25
  export { geminiWaitForVideo };
26
26
  //# sourceMappingURL=wait-for-video.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wait-for-video.d.cts","names":[],"sources":["../../src/actions/wait-for-video.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"wait-for-video.d.cts","names":[],"sources":["../../src/actions/wait-for-video.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { gemini } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/wait-for-video.d.ts
@@ -18,9 +20,7 @@ declare const GeminiWaitForVideoOutput: z.ZodObject<{
18
20
  filtered_count: z.ZodNullable<z.ZodNumber>;
19
21
  }, z.core.$loose>>>;
20
22
  }, z.core.$loose>;
21
- declare const geminiWaitForVideo: import("@keystrokehq/action").WorkflowActionDefinition<{
22
- operation_name: string;
23
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
23
+ declare const geminiWaitForVideo: AppAction<typeof GeminiWaitForVideoInput, typeof GeminiWaitForVideoOutput, typeof gemini.credential>;
24
24
  //#endregion
25
25
  export { geminiWaitForVideo };
26
26
  //# sourceMappingURL=wait-for-video.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"wait-for-video.d.mts","names":[],"sources":["../../src/actions/wait-for-video.ts"],"mappings":";;;cAIa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMxB,kBAAA,gCAAkB,wBAAA"}
1
+ {"version":3,"file":"wait-for-video.d.mts","names":[],"sources":["../../src/actions/wait-for-video.ts"],"mappings":";;;;;cAMa,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;cAcvB,wBAAA,EAAwB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;cAMxB,kBAAA,EAAoB,SAAA,QACxB,uBAAA,SACA,wBAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/wait-for-video.ts
@@ -1 +1 @@
1
- {"version":3,"file":"wait-for-video.mjs","names":[],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.1-generate-preview/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.boolean().default(true).describe(\"Always True when this object is present, indicating content was filtered.\").nullable().optional(),\n filter_reasons: z.array(z.string()).describe(\"List of reasons why the content was blocked by safety filters.\").nullable().optional(),\n filtered_count: z.number().int().describe(\"Number of videos filtered by RAI safety policies.\").nullable(),\n}).passthrough().describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\").nullable(),\n video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),\n rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional(),\n}).passthrough();\n\nexport const geminiWaitForVideo = action(\"GEMINI_WAIT_FOR_VIDEO\", {\n slug: \"gemini-wait-for-video\",\n name: \"Wait and Download Video (Veo)\",\n description: \"Polls a Veo video generation operation until completion, then downloads and returns the video file. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. A done=true response without a video file indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.\",\n input: GeminiWaitForVideoInput,\n output: GeminiWaitForVideoOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8eAA8e,EACphB,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gFAAgF;AAO1G,MAAa,qBAAqB,OAAO,yBAAyB;CAChE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAXsC,EAAE,OAAO;EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACpJ,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
1
+ {"version":3,"file":"wait-for-video.mjs","names":[],"sources":["../../src/actions/wait-for-video.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { gemini } from \"../app\";\n\nexport const GeminiWaitForVideoInput = z.object({\n operation_name: z.string().describe(\"The full operation name returned by GEMINI_GENERATE_VIDEOS. Format: 'models/<model-id>/operations/<operation-id>' where <operation-id> is an alphanumeric string (e.g., 'models/veo-3.1-generate-preview/operations/m8dl4dtqqzg8'). IMPORTANT: Do NOT use placeholder values like '...' - use the exact operation_name string from the generate videos response. Do not reuse operation_name from a failed GEMINI_GENERATE_VIDEOS job — always start a new GEMINI_GENERATE_VIDEOS call for retried requests.\"),\n});\nconst GeminiWaitForVideo_FileDownloadableSchema = z.object({\n name: z.string().describe(\"Name of the file\").nullable(),\n s3url: z.string().describe(\"S3 URL of the downloaded file.\").nullable(),\n mimetype: z.string().describe(\"Mime type of the file.\").nullable(),\n}).passthrough();\nconst GeminiWaitForVideo_RaiFilteringResultSchema = z.object({\n message: z.string().describe(\"Human-readable message explaining the filtering and suggesting next steps.\").nullable(),\n filtered: z.boolean().default(true).describe(\"Always True when this object is present, indicating content was filtered.\").nullable().optional(),\n filter_reasons: z.array(z.string()).describe(\"List of reasons why the content was blocked by safety filters.\").nullable().optional(),\n filtered_count: z.number().int().describe(\"Number of videos filtered by RAI safety policies.\").nullable(),\n}).passthrough().describe(\"Represents when video generation was blocked by Responsible AI safety filters.\");\nexport const GeminiWaitForVideoOutput = z.object({\n success: z.boolean().describe(\"True if video was successfully generated and downloaded, False if it was filtered by RAI safety policies.\").nullable(),\n video_file: GeminiWaitForVideo_FileDownloadableSchema.nullable().optional(),\n rai_filtering: GeminiWaitForVideo_RaiFilteringResultSchema.nullable().optional(),\n}).passthrough();\n\nexport const geminiWaitForVideo: AppAction<\n typeof GeminiWaitForVideoInput,\n typeof GeminiWaitForVideoOutput,\n typeof gemini.credential\n> = action(\"GEMINI_WAIT_FOR_VIDEO\", {\n slug: \"gemini-wait-for-video\",\n name: \"Wait and Download Video (Veo)\",\n description: \"Polls a Veo video generation operation until completion, then downloads and returns the video file. Generation takes 30–120+ seconds (up to ~10–12 min); long waits are normal, not failures. A done=true response without a video file indicates safety filter rejection (check raiMediaFilteredReasons) or quota exhaustion — adjust the prompt and regenerate. On timeout, use GEMINI_GET_VIDEOS_OPERATION with incremental backoff before starting a new job. Keep parallel jobs to 3–5 to avoid 429 RESOURCE_EXHAUSTED errors.\",\n input: GeminiWaitForVideoInput,\n output: GeminiWaitForVideoOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,0BAA0B,EAAE,OAAO,EAC9C,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,8eAA8e,EACphB,CAAC;AACD,MAAM,4CAA4C,EAAE,OAAO;CACzD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CACvD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACtE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACnE,CAAC,CAAC,CAAC,YAAY;AACf,MAAM,8CAA8C,EAAE,OAAO;CAC3D,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,4EAA4E,CAAC,CAAC,SAAS;CACpH,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9I,gBAAgB,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnI,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AAC1G,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,gFAAgF;AAO1G,MAAa,qBAIT,OAAO,yBAAyB;CAClC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAfsC,EAAE,OAAO;EAC/C,SAAS,EAAE,QAAQ,CAAC,CAAC,SAAS,2GAA2G,CAAC,CAAC,SAAS;EACpJ,YAAY,0CAA0C,SAAS,CAAC,CAAC,SAAS;EAC1E,eAAe,4CAA4C,SAAS,CAAC,CAAC,SAAS;CACjF,CAAC,CAAC,CAAC,YAWO;AACV,CAAC"}
package/dist/app.cjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const gemini = defineApp({\n slug: \"gemini\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,uCAAA,CAAA,CAAA,UAAA,CAAmB;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.cjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\n\nexport const gemini: KeystrokeApp<\"gemini\"> = defineApp({\n slug: \"gemini\",\n auth: \"keystroke\",\n});\n"],"mappings":";AAEA,MAAa,UAAA,uCAAA,CAAA,CAAA,UAAA,CAA2C;CACtD,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/app.d.cts CHANGED
@@ -1,5 +1,7 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+
1
3
  //#region src/app.d.ts
2
- declare const gemini: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
4
+ declare const gemini: KeystrokeApp<"gemini">;
3
5
  //#endregion
4
6
  export { gemini };
5
7
  //# sourceMappingURL=app.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.cts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAEa,MAAA,EAAQ,YAAY"}
package/dist/app.d.mts CHANGED
@@ -1,5 +1,7 @@
1
+ import { KeystrokeApp } from "@keystrokehq/keystroke/app";
2
+
1
3
  //#region src/app.d.ts
2
- declare const gemini: import("@keystrokehq/app").App<import("@keystrokehq/shared").Credential>;
4
+ declare const gemini: KeystrokeApp<"gemini">;
3
5
  //#endregion
4
6
  export { gemini };
5
7
  //# sourceMappingURL=app.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";cAEa,MAAA,6BAAM,GAAA,+BAAA,UAAA"}
1
+ {"version":3,"file":"app.d.mts","names":[],"sources":["../src/app.ts"],"mappings":";;;cAEa,MAAA,EAAQ,YAAY"}
package/dist/app.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp } from \"@keystrokehq/keystroke/app\";\n\nexport const gemini = defineApp({\n slug: \"gemini\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,SAAS,UAAU;CAC9B,MAAM;CACN,MAAM;AACR,CAAC"}
1
+ {"version":3,"file":"app.mjs","names":[],"sources":["../src/app.ts"],"sourcesContent":["import { defineApp, type KeystrokeApp } from \"@keystrokehq/keystroke/app\";\n\nexport const gemini: KeystrokeApp<\"gemini\"> = defineApp({\n slug: \"gemini\",\n auth: \"keystroke\",\n});\n"],"mappings":";;AAEA,MAAa,SAAiC,UAAU;CACtD,MAAM;CACN,MAAM;AACR,CAAC"}
package/dist/index.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ import { gemini } from "./app.cjs";
1
2
  import { geminiCountTokens } from "./actions/count-tokens.cjs";
2
3
  import { geminiEmbedContent } from "./actions/embed-content.cjs";
3
4
  import { geminiGenerateContent } from "./actions/generate-content.cjs";
@@ -5,6 +6,5 @@ import { geminiGenerateImage } from "./actions/generate-image.cjs";
5
6
  import { geminiGenerateVideos } from "./actions/generate-videos.cjs";
6
7
  import { geminiListModels } from "./actions/list-models.cjs";
7
8
  import { geminiWaitForVideo } from "./actions/wait-for-video.cjs";
8
- import { gemini } from "./app.cjs";
9
9
  import { geminiCatalog } from "./catalog.cjs";
10
10
  export { gemini, geminiCatalog, geminiCountTokens, geminiEmbedContent, geminiGenerateContent, geminiGenerateImage, geminiGenerateVideos, geminiListModels, geminiWaitForVideo };
package/dist/index.d.mts CHANGED
@@ -1,3 +1,4 @@
1
+ import { gemini } from "./app.mjs";
1
2
  import { geminiCountTokens } from "./actions/count-tokens.mjs";
2
3
  import { geminiEmbedContent } from "./actions/embed-content.mjs";
3
4
  import { geminiGenerateContent } from "./actions/generate-content.mjs";
@@ -5,6 +6,5 @@ import { geminiGenerateImage } from "./actions/generate-image.mjs";
5
6
  import { geminiGenerateVideos } from "./actions/generate-videos.mjs";
6
7
  import { geminiListModels } from "./actions/list-models.mjs";
7
8
  import { geminiWaitForVideo } from "./actions/wait-for-video.mjs";
8
- import { gemini } from "./app.mjs";
9
9
  import { geminiCatalog } from "./catalog.mjs";
10
10
  export { gemini, geminiCatalog, geminiCountTokens, geminiEmbedContent, geminiGenerateContent, geminiGenerateImage, geminiGenerateVideos, geminiListModels, geminiWaitForVideo };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/gemini",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": ">=0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.104",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {