@keystrokehq/gemini 0.1.0 → 0.1.1

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 (64) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/count-tokens.cjs +4 -4
  5. package/dist/actions/count-tokens.cjs.map +1 -1
  6. package/dist/actions/count-tokens.d.cts +21 -3
  7. package/dist/actions/count-tokens.d.cts.map +1 -1
  8. package/dist/actions/count-tokens.d.mts +21 -3
  9. package/dist/actions/count-tokens.d.mts.map +1 -1
  10. package/dist/actions/count-tokens.mjs +4 -4
  11. package/dist/actions/count-tokens.mjs.map +1 -1
  12. package/dist/actions/embed-content.cjs +1 -1
  13. package/dist/actions/embed-content.cjs.map +1 -1
  14. package/dist/actions/embed-content.d.cts +21 -3
  15. package/dist/actions/embed-content.d.cts.map +1 -1
  16. package/dist/actions/embed-content.d.mts +21 -3
  17. package/dist/actions/embed-content.d.mts.map +1 -1
  18. package/dist/actions/embed-content.mjs +1 -1
  19. package/dist/actions/embed-content.mjs.map +1 -1
  20. package/dist/actions/generate-content.cjs +7 -7
  21. package/dist/actions/generate-content.cjs.map +1 -1
  22. package/dist/actions/generate-content.d.cts +72 -3
  23. package/dist/actions/generate-content.d.cts.map +1 -1
  24. package/dist/actions/generate-content.d.mts +72 -3
  25. package/dist/actions/generate-content.d.mts.map +1 -1
  26. package/dist/actions/generate-content.mjs +7 -7
  27. package/dist/actions/generate-content.mjs.map +1 -1
  28. package/dist/actions/generate-image.cjs +4 -4
  29. package/dist/actions/generate-image.cjs.map +1 -1
  30. package/dist/actions/generate-image.d.cts +74 -3
  31. package/dist/actions/generate-image.d.cts.map +1 -1
  32. package/dist/actions/generate-image.d.mts +74 -3
  33. package/dist/actions/generate-image.d.mts.map +1 -1
  34. package/dist/actions/generate-image.mjs +4 -4
  35. package/dist/actions/generate-image.mjs.map +1 -1
  36. package/dist/actions/generate-videos.cjs +4 -4
  37. package/dist/actions/generate-videos.cjs.map +1 -1
  38. package/dist/actions/generate-videos.d.cts +52 -3
  39. package/dist/actions/generate-videos.d.cts.map +1 -1
  40. package/dist/actions/generate-videos.d.mts +52 -3
  41. package/dist/actions/generate-videos.d.mts.map +1 -1
  42. package/dist/actions/generate-videos.mjs +4 -4
  43. package/dist/actions/generate-videos.mjs.map +1 -1
  44. package/dist/actions/list-models.cjs +16 -16
  45. package/dist/actions/list-models.cjs.map +1 -1
  46. package/dist/actions/list-models.d.cts +79 -3
  47. package/dist/actions/list-models.d.cts.map +1 -1
  48. package/dist/actions/list-models.d.mts +79 -3
  49. package/dist/actions/list-models.d.mts.map +1 -1
  50. package/dist/actions/list-models.mjs +16 -16
  51. package/dist/actions/list-models.mjs.map +1 -1
  52. package/dist/actions/wait-for-video.cjs +11 -11
  53. package/dist/actions/wait-for-video.cjs.map +1 -1
  54. package/dist/actions/wait-for-video.d.cts +33 -3
  55. package/dist/actions/wait-for-video.d.cts.map +1 -1
  56. package/dist/actions/wait-for-video.d.mts +33 -3
  57. package/dist/actions/wait-for-video.d.mts.map +1 -1
  58. package/dist/actions/wait-for-video.mjs +11 -11
  59. package/dist/actions/wait-for-video.mjs.map +1 -1
  60. package/dist/execute.cjs +1 -1
  61. package/dist/execute.cjs.map +1 -1
  62. package/dist/execute.mjs +1 -1
  63. package/dist/execute.mjs.map +1 -1
  64. package/package.json +2 -2
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Keystroke-managed integration.
4
4
 
5
5
  **App:** `gemini`
6
- **Version:** `20260618_00`
6
+ **Version:** `20260702_00`
7
7
  **Actions:** 7
8
8
 
9
9
  ```ts
@@ -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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\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,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,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 +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(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: z.ZodTypeAny;\n output: z.ZodTypeAny;\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,\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 { 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<\n TInput extends z.ZodType,\n TOutput extends z.ZodType,\n>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: TOutput;\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,\n async run(input) {\n return def.output.parse(await executeGeminiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,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"}
@@ -6,12 +6,12 @@ const GeminiCountTokensInput = zod.z.object({
6
6
  model: zod.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()
7
7
  });
8
8
  const GeminiCountTokens_TokenDetailsSchema = zod.z.object({
9
- modality: zod.z.string().describe("The modality of the tokens (e.g., 'TEXT', 'IMAGE')"),
10
- token_count: zod.z.number().int().describe("Number of tokens for this modality")
9
+ modality: zod.z.string().describe("The modality of the tokens (e.g., 'TEXT', 'IMAGE')").nullable(),
10
+ token_count: zod.z.number().int().describe("Number of tokens for this modality").nullable()
11
11
  }).describe("Details about tokens for a specific modality.");
12
12
  const GeminiCountTokensOutput = zod.z.object({
13
- total_tokens: zod.z.number().int().describe("Total number of tokens in the input"),
14
- token_details: zod.z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").nullable().optional()
13
+ total_tokens: zod.z.number().int().describe("Total number of tokens in the input").nullable(),
14
+ token_details: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").optional())
15
15
  });
16
16
  const geminiCountTokens = require_action.action("GEMINI_COUNT_TOKENS", {
17
17
  slug: "gemini-count-tokens",
@@ -1 +1 @@
1
- {"version":3,"file":"count-tokens.cjs","names":["z","action"],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\"),\n token_count: z.number().int().describe(\"Number of tokens for this modality\"),\n}).describe(\"Details about tokens for a specific modality.\");\nexport const GeminiCountTokensOutput: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens in the input\"),\n token_details: z.array(GeminiCountTokens_TokenDetailsSchema).describe(\"Breakdown of tokens by modality (e.g., text, image)\").nullable().optional(),\n});\n\nexport const geminiCountTokens = action(\"GEMINI_COUNT_TOKENS\", {\n slug: \"gemini-count-tokens\",\n name: \"Count Tokens (Gemini)\",\n description: \"Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.\",\n input: GeminiCountTokensInput,\n output: GeminiCountTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuCA,IAAAA,EAAE,OAAO;CAC3D,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,uCAAqDA,IAAAA,EAAE,OAAO;CAClE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAClF,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC7E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;CAC7E,eAAeA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACnJ,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"count-tokens.cjs","names":["z","action"],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput = z.object({\n text: z.string().describe(\"Text to count tokens for\"),\n model: z.string().default(\"gemini-2.0-flash\").describe(\"Model to use for token counting. Must be a model that supports the countTokens method. Use the ListModels action to see available models and their supported methods.\").optional(),\n});\nconst GeminiCountTokens_TokenDetailsSchema = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\").nullable(),\n token_count: z.number().int().describe(\"Number of tokens for this modality\").nullable(),\n}).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.preprocess((value) => (value === null ? undefined : value), z.array(GeminiCountTokens_TokenDetailsSchema).describe(\"Breakdown of tokens by modality (e.g., text, image)\").optional()),\n});\n\nexport const geminiCountTokens = action(\"GEMINI_COUNT_TOKENS\", {\n slug: \"gemini-count-tokens\",\n name: \"Count Tokens (Gemini)\",\n description: \"Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.\",\n input: GeminiCountTokensInput,\n output: GeminiCountTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyBA,IAAAA,EAAE,OAAO;CAC7C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAM,uCAAuCA,IAAAA,EAAE,OAAO;CACpD,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7F,aAAaA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAC3D,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACxF,eAAeA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;AACvM,CAAC;AAED,MAAa,oBAAoBC,eAAAA,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/count-tokens.d.ts
4
- declare const GeminiCountTokensInput: z.ZodTypeAny;
5
- declare const GeminiCountTokensOutput: z.ZodTypeAny;
6
- declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GeminiCountTokensInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ declare const GeminiCountTokensOutput: z.ZodObject<{
9
+ total_tokens: z.ZodNullable<z.ZodNumber>;
10
+ token_details: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ modality: z.ZodNullable<z.ZodString>;
12
+ token_count: z.ZodNullable<z.ZodNumber>;
13
+ }, z.core.$strip>>>>;
14
+ }, z.core.$strip>;
15
+ declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ text: string;
17
+ model?: string | undefined;
18
+ }, {
19
+ total_tokens: number | null;
20
+ token_details?: {
21
+ modality: string | null;
22
+ token_count: number | null;
23
+ }[] | undefined;
24
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { geminiCountTokens };
9
27
  //# 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,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAKW,uBAAA,EAAyB,CAAA,CAAE,UAGtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/count-tokens.d.ts
4
- declare const GeminiCountTokensInput: z.ZodTypeAny;
5
- declare const GeminiCountTokensOutput: z.ZodTypeAny;
6
- declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GeminiCountTokensInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ }, z.core.$strip>;
8
+ declare const GeminiCountTokensOutput: z.ZodObject<{
9
+ total_tokens: z.ZodNullable<z.ZodNumber>;
10
+ token_details: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
11
+ modality: z.ZodNullable<z.ZodString>;
12
+ token_count: z.ZodNullable<z.ZodNumber>;
13
+ }, z.core.$strip>>>>;
14
+ }, z.core.$strip>;
15
+ declare const geminiCountTokens: import("@keystrokehq/action").WorkflowActionDefinition<{
16
+ text: string;
17
+ model?: string | undefined;
18
+ }, {
19
+ total_tokens: number | null;
20
+ token_details?: {
21
+ modality: string | null;
22
+ token_count: number | null;
23
+ }[] | undefined;
24
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { geminiCountTokens };
9
27
  //# 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,EAAwB,CAAA,CAAE,UAGrC;AAAA,cAKW,uBAAA,EAAyB,CAAA,CAAE,UAGtC;AAAA,cAEW,iBAAA,gCAAiB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -6,8 +6,8 @@ const GeminiCountTokensInput = z.object({
6
6
  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()
7
7
  });
8
8
  const GeminiCountTokens_TokenDetailsSchema = z.object({
9
- modality: z.string().describe("The modality of the tokens (e.g., 'TEXT', 'IMAGE')"),
10
- token_count: z.number().int().describe("Number of tokens for this modality")
9
+ modality: z.string().describe("The modality of the tokens (e.g., 'TEXT', 'IMAGE')").nullable(),
10
+ token_count: z.number().int().describe("Number of tokens for this modality").nullable()
11
11
  }).describe("Details about tokens for a specific modality.");
12
12
  const geminiCountTokens = action("GEMINI_COUNT_TOKENS", {
13
13
  slug: "gemini-count-tokens",
@@ -15,8 +15,8 @@ const geminiCountTokens = action("GEMINI_COUNT_TOKENS", {
15
15
  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.",
16
16
  input: GeminiCountTokensInput,
17
17
  output: z.object({
18
- total_tokens: z.number().int().describe("Total number of tokens in the input"),
19
- token_details: z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").nullable().optional()
18
+ total_tokens: z.number().int().describe("Total number of tokens in the input").nullable(),
19
+ token_details: z.preprocess((value) => value === null ? void 0 : value, z.array(GeminiCountTokens_TokenDetailsSchema).describe("Breakdown of tokens by modality (e.g., text, image)").optional())
20
20
  })
21
21
  });
22
22
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"count-tokens.mjs","names":[],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\"),\n token_count: z.number().int().describe(\"Number of tokens for this modality\"),\n}).describe(\"Details about tokens for a specific modality.\");\nexport const GeminiCountTokensOutput: z.ZodTypeAny = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens in the input\"),\n token_details: z.array(GeminiCountTokens_TokenDetailsSchema).describe(\"Breakdown of tokens by modality (e.g., text, image)\").nullable().optional(),\n});\n\nexport const geminiCountTokens = action(\"GEMINI_COUNT_TOKENS\", {\n slug: \"gemini-count-tokens\",\n name: \"Count Tokens (Gemini)\",\n description: \"Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.\",\n input: GeminiCountTokensInput,\n output: GeminiCountTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAuC,EAAE,OAAO;CAC3D,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,uCAAqD,EAAE,OAAO;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD;CAClF,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC;AAC7E,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAM3D,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVmD,EAAE,OAAO;EAC5D,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC;EAC7E,eAAe,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnJ,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"count-tokens.mjs","names":[],"sources":["../../src/actions/count-tokens.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiCountTokensInput = z.object({\n text: z.string().describe(\"Text to count tokens for\"),\n model: z.string().default(\"gemini-2.0-flash\").describe(\"Model to use for token counting. Must be a model that supports the countTokens method. Use the ListModels action to see available models and their supported methods.\").optional(),\n});\nconst GeminiCountTokens_TokenDetailsSchema = z.object({\n modality: z.string().describe(\"The modality of the tokens (e.g., 'TEXT', 'IMAGE')\").nullable(),\n token_count: z.number().int().describe(\"Number of tokens for this modality\").nullable(),\n}).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.preprocess((value) => (value === null ? undefined : value), z.array(GeminiCountTokens_TokenDetailsSchema).describe(\"Breakdown of tokens by modality (e.g., text, image)\").optional()),\n});\n\nexport const geminiCountTokens = action(\"GEMINI_COUNT_TOKENS\", {\n slug: \"gemini-count-tokens\",\n name: \"Count Tokens (Gemini)\",\n description: \"Counts the number of tokens in text using Gemini tokenization. Useful for estimating costs, checking input limits, and optimizing prompts before making API calls.\",\n input: GeminiCountTokensInput,\n output: GeminiCountTokensOutput,\n});\n"],"mappings":";;;AAIA,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,0BAA0B;CACpD,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,kBAAkB,CAAC,CAAC,SAAS,uKAAuK,CAAC,CAAC,SAAS;AAC3O,CAAC;AACD,MAAM,uCAAuC,EAAE,OAAO;CACpD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;CAC7F,aAAa,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACxF,CAAC,CAAC,CAAC,SAAS,+CAA+C;AAM3D,MAAa,oBAAoB,OAAO,uBAAuB;CAC7D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVqC,EAAE,OAAO;EAC9C,cAAc,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;EACxF,eAAe,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,oCAAoC,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS,CAAC;CACvM,CAOU;AACV,CAAC"}
@@ -10,7 +10,7 @@ const GeminiEmbedContentInput = zod.z.object({
10
10
  });
11
11
  const GeminiEmbedContentOutput = zod.z.object({
12
12
  embedding: zod.z.array(zod.z.number()).describe("The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models."),
13
- dimensions: zod.z.number().int().describe("The number of dimensions in the embedding vector.")
13
+ dimensions: zod.z.number().int().describe("The number of dimensions in the embedding vector.").nullable()
14
14
  });
15
15
  const geminiEmbedContent = require_action.action("GEMINI_EMBED_CONTENT", {
16
16
  slug: "gemini-embed-content",
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\n});\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAAwCA,IAAAA,EAAE,OAAO;CAC5D,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,2BAAyCA,IAAAA,EAAE,OAAO;CAC7D,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;AAC3F,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"embed-content.cjs","names":["z","action"],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiEmbedContentInput = z.object({\n text: z.string().describe(\"The text content to generate embeddings for.\"),\n model: z.string().default(\"text-embedding-004\").describe(\"Embedding model to use. Options: 'text-embedding-004' (768 dimensions, default), 'gemini-embedding-001' (3072 dimensions, latest).\").optional(),\n title: z.string().describe(\"Optional title for the content. Use with task_type='RETRIEVAL_DOCUMENT' to improve embedding quality for document search.\").optional(),\n task_type: z.string().describe(\"Specifies the intended use case to optimize the embedding. Options: 'RETRIEVAL_QUERY' (search queries), 'RETRIEVAL_DOCUMENT' (documents to be searched), 'SEMANTIC_SIMILARITY' (text similarity), 'CLASSIFICATION' (categorization), 'CLUSTERING' (grouping), 'QUESTION_ANSWERING' (question-document matching). Note: Some task types like 'CODE_RETRIEVAL_QUERY' may only be supported by certain models.\").optional(),\n output_dimensionality: z.number().int().describe(\"Truncate the embedding to this number of dimensions. Only supported by 'gemini-embedding-001' model. Recommended values: 768, 1536, or 3072. Lower dimensions reduce storage but may affect quality.\").optional(),\n});\nexport const GeminiEmbedContentOutput = z.object({\n embedding: z.array(z.number()).describe(\"The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models.\"),\n dimensions: z.number().int().describe(\"The number of dimensions in the embedding vector.\").nullable(),\n});\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,0BAA0BA,IAAAA,EAAE,OAAO;CAC9C,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;CACxM,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;CACjK,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6YAA6Y,CAAC,CAAC,SAAS;CACvb,uBAAuBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS;AACpQ,CAAC;AACD,MAAa,2BAA2BA,IAAAA,EAAE,OAAO;CAC/C,WAAWA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;CACvL,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;AACtG,CAAC;AAED,MAAa,qBAAqBC,eAAAA,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/embed-content.d.ts
4
- declare const GeminiEmbedContentInput: z.ZodTypeAny;
5
- declare const GeminiEmbedContentOutput: z.ZodTypeAny;
6
- declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GeminiEmbedContentInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ title: z.ZodOptional<z.ZodString>;
8
+ task_type: z.ZodOptional<z.ZodString>;
9
+ output_dimensionality: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ declare const GeminiEmbedContentOutput: z.ZodObject<{
12
+ embedding: z.ZodArray<z.ZodNumber>;
13
+ dimensions: z.ZodNullable<z.ZodNumber>;
14
+ }, z.core.$strip>;
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
+ }, {
22
+ embedding: number[];
23
+ dimensions: number | null;
24
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { geminiEmbedContent };
9
27
  //# 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,EAAyB,CAAA,CAAE,UAMtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAGvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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,9 +1,27 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/embed-content.d.ts
4
- declare const GeminiEmbedContentInput: z.ZodTypeAny;
5
- declare const GeminiEmbedContentOutput: z.ZodTypeAny;
6
- declare const geminiEmbedContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GeminiEmbedContentInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
7
+ title: z.ZodOptional<z.ZodString>;
8
+ task_type: z.ZodOptional<z.ZodString>;
9
+ output_dimensionality: z.ZodOptional<z.ZodNumber>;
10
+ }, z.core.$strip>;
11
+ declare const GeminiEmbedContentOutput: z.ZodObject<{
12
+ embedding: z.ZodArray<z.ZodNumber>;
13
+ dimensions: z.ZodNullable<z.ZodNumber>;
14
+ }, z.core.$strip>;
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
+ }, {
22
+ embedding: number[];
23
+ dimensions: number | null;
24
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
25
  //#endregion
8
26
  export { geminiEmbedContent };
9
27
  //# 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,EAAyB,CAAA,CAAE,UAMtC;AAAA,cACW,wBAAA,EAA0B,CAAA,CAAE,UAGvC;AAAA,cAEW,kBAAA,gCAAkB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -13,7 +13,7 @@ const geminiEmbedContent = action("GEMINI_EMBED_CONTENT", {
13
13
  }),
14
14
  output: z.object({
15
15
  embedding: z.array(z.number()).describe("The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models."),
16
- dimensions: z.number().int().describe("The number of dimensions in the embedding vector.")
16
+ dimensions: z.number().int().describe("The number of dimensions in the embedding vector.").nullable()
17
17
  })
18
18
  });
19
19
  //#endregion
@@ -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.ZodTypeAny = 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.ZodTypeAny = 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.\"),\n});\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;AAgBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBmD,EAAE,OAAO;EAC5D,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,QAVoD,EAAE,OAAO;EAC7D,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;EACvL,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD;CAC3F,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"embed-content.mjs","names":[],"sources":["../../src/actions/embed-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiEmbedContentInput = z.object({\n text: z.string().describe(\"The text content to generate embeddings for.\"),\n model: z.string().default(\"text-embedding-004\").describe(\"Embedding model to use. Options: 'text-embedding-004' (768 dimensions, default), 'gemini-embedding-001' (3072 dimensions, latest).\").optional(),\n title: z.string().describe(\"Optional title for the content. Use with task_type='RETRIEVAL_DOCUMENT' to improve embedding quality for document search.\").optional(),\n task_type: z.string().describe(\"Specifies the intended use case to optimize the embedding. Options: 'RETRIEVAL_QUERY' (search queries), 'RETRIEVAL_DOCUMENT' (documents to be searched), 'SEMANTIC_SIMILARITY' (text similarity), 'CLASSIFICATION' (categorization), 'CLUSTERING' (grouping), 'QUESTION_ANSWERING' (question-document matching). Note: Some task types like 'CODE_RETRIEVAL_QUERY' may only be supported by certain models.\").optional(),\n output_dimensionality: z.number().int().describe(\"Truncate the embedding to this number of dimensions. Only supported by 'gemini-embedding-001' model. Recommended values: 768, 1536, or 3072. Lower dimensions reduce storage but may affect quality.\").optional(),\n});\nexport const GeminiEmbedContentOutput = z.object({\n embedding: z.array(z.number()).describe(\"The embedding vector as a list of floating-point numbers. Use for similarity calculations (e.g., cosine similarity) or as input to ML models.\"),\n dimensions: z.number().int().describe(\"The number of dimensions in the embedding vector.\").nullable(),\n});\n\nexport const geminiEmbedContent = action(\"GEMINI_EMBED_CONTENT\", {\n slug: \"gemini-embed-content\",\n name: \"Embed Content (Gemini)\",\n description: \"Generates text embeddings using Gemini embedding models. Converts text into numerical vectors for semantic search, similarity comparison, clustering, and classification tasks.\",\n input: GeminiEmbedContentInput,\n output: GeminiEmbedContentOutput,\n});\n"],"mappings":";;AAgBA,MAAa,qBAAqB,OAAO,wBAAwB;CAC/D,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAhBqC,EAAE,OAAO;EAC9C,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8CAA8C;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,QAAQ,oBAAoB,CAAC,CAAC,SAAS,oIAAoI,CAAC,CAAC,SAAS;EACxM,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,2HAA2H,CAAC,CAAC,SAAS;EACjK,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,6YAA6Y,CAAC,CAAC,SAAS;EACvb,uBAAuB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sMAAsM,CAAC,CAAC,SAAS;CACpQ,CAUS;CACP,QAVsC,EAAE,OAAO;EAC/C,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,+IAA+I;EACvL,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CACtG,CAOU;AACV,CAAC"}
@@ -45,13 +45,13 @@ const GeminiGenerateContentInput = zod.z.object({
45
45
  system_instruction: zod.z.string().describe("System instruction to guide the model's behavior").optional()
46
46
  });
47
47
  const GeminiGenerateContentOutput = zod.z.object({
48
- raw: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
49
- text: zod.z.string().describe("Generated text content (for text generation models)").nullable().optional(),
50
- mime_type: zod.z.string().describe("MIME type of the audio data (e.g., 'audio/pcm')").nullable().optional(),
51
- audio_data: zod.z.string().describe("Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.").nullable().optional(),
52
- candidates: zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).nullable().optional(),
53
- usage_metadata: zod.z.record(zod.z.string(), zod.z.unknown()).nullable().optional(),
54
- composio_execution_message: zod.z.string().describe("Informational message about execution").nullable().optional()
48
+ raw: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).optional()),
49
+ text: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Generated text content (for text generation models)").optional()),
50
+ mime_type: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("MIME type of the audio data (e.g., 'audio/pcm')").optional()),
51
+ audio_data: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.").optional()),
52
+ candidates: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(zod.z.record(zod.z.string(), zod.z.unknown())).optional()),
53
+ usage_metadata: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.record(zod.z.string(), zod.z.unknown()).optional()),
54
+ composio_execution_message: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Informational message about execution").optional())
55
55
  });
56
56
  const geminiGenerateContent = require_action.action("GEMINI_GENERATE_CONTENT", {
57
57
  slug: "gemini-generate-content",
@@ -1 +1 @@
1
- {"version":3,"file":"generate-content.cjs","names":["z","action"],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateContentInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n raw: z.record(z.string(), z.unknown()).nullable().optional(),\n text: z.string().describe(\"Generated text content (for text generation models)\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the audio data (e.g., 'audio/pcm')\").nullable().optional(),\n audio_data: z.string().describe(\"Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.\").nullable().optional(),\n candidates: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n usage_metadata: z.record(z.string(), z.unknown()).nullable().optional(),\n composio_execution_message: z.string().describe(\"Informational message about execution\").nullable().optional(),\n});\n\nexport const geminiGenerateContent = action(\"GEMINI_GENERATE_CONTENT\", {\n slug: \"gemini-generate-content\",\n name: \"Generate Content (Gemini)\",\n description: \"Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.\",\n input: GeminiGenerateContentInput,\n output: GeminiGenerateContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA2CA,IAAAA,EAAE,OAAO;CAC/D,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,aAA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AC,CAAC,SAAS;CACtE,4BAA4BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC/G,CAAC;AAED,MAAa,wBAAwBC,eAAAA,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
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.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).optional()),\n text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Generated text content (for text generation models)\").optional()),\n mime_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"MIME type of the audio data (e.g., 'audio/pcm')\").optional()),\n audio_data: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.\").optional()),\n candidates: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).optional()),\n usage_metadata: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).optional()),\n composio_execution_message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Informational message about execution\").optional()),\n});\n\nexport const geminiGenerateContent = action(\"GEMINI_GENERATE_CONTENT\", {\n slug: \"gemini-generate-content\",\n name: \"Generate Content (Gemini)\",\n description: \"Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.\",\n input: GeminiGenerateContentInput,\n output: GeminiGenerateContentOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAA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ateContentInput: z.ZodTypeAny;
5
- declare const GeminiGenerateContentOutput: z.ZodTypeAny;
6
- declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GeminiGenerateContentInput: z.ZodObject<{
5
+ model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ top_k: z.ZodOptional<z.ZodNumber>;
7
+ top_p: z.ZodOptional<z.ZodNumber>;
8
+ prompt: z.ZodString;
9
+ voice_name: z.ZodOptional<z.ZodEnum<{
10
+ Achernar: "Achernar";
11
+ Achird: "Achird";
12
+ Algenib: "Algenib";
13
+ Algieba: "Algieba";
14
+ Alnilam: "Alnilam";
15
+ Aoede: "Aoede";
16
+ Autonoe: "Autonoe";
17
+ Callirrhoe: "Callirrhoe";
18
+ Charon: "Charon";
19
+ Despina: "Despina";
20
+ Enceladus: "Enceladus";
21
+ Erinome: "Erinome";
22
+ Fenrir: "Fenrir";
23
+ Gacrux: "Gacrux";
24
+ Iapetus: "Iapetus";
25
+ Kore: "Kore";
26
+ Laomedeia: "Laomedeia";
27
+ Leda: "Leda";
28
+ Orus: "Orus";
29
+ Puck: "Puck";
30
+ Pulcherrima: "Pulcherrima";
31
+ Rasalgethi: "Rasalgethi";
32
+ Sadachbia: "Sadachbia";
33
+ Sadaltager: "Sadaltager";
34
+ Schedar: "Schedar";
35
+ Sulafat: "Sulafat";
36
+ Umbriel: "Umbriel";
37
+ Vindemiatrix: "Vindemiatrix";
38
+ Zephyr: "Zephyr";
39
+ Zubenelgenubi: "Zubenelgenubi";
40
+ }>>;
41
+ temperature: z.ZodOptional<z.ZodNumber>;
42
+ stop_sequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ safety_settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
44
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
45
+ system_instruction: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ declare const GeminiGenerateContentOutput: z.ZodObject<{
48
+ raw: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
49
+ text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
+ mime_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
51
+ audio_data: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
+ candidates: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
53
+ usage_metadata: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
54
+ composio_execution_message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
55
+ }, z.core.$strip>;
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
+ }, {
68
+ raw?: Record<string, unknown> | undefined;
69
+ text?: string | undefined;
70
+ mime_type?: string | undefined;
71
+ audio_data?: string | undefined;
72
+ candidates?: Record<string, unknown>[] | undefined;
73
+ usage_metadata?: Record<string, unknown> | undefined;
74
+ composio_execution_message?: string | undefined;
75
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
76
  //#endregion
8
77
  export { geminiGenerateContent };
9
78
  //# 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,EAA4B,CAAA,CAAE,UAWzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAQ1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"generate-content.d.cts","names":[],"sources":["../../src/actions/generate-content.ts"],"mappings":";;;cAIa,0BAAA,EAA0B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAY1B,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;cAU3B,qBAAA,gCAAqB,wBAAA"}
@@ -1,9 +1,78 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/generate-content.d.ts
4
- declare const GeminiGenerateContentInput: z.ZodTypeAny;
5
- declare const GeminiGenerateContentOutput: z.ZodTypeAny;
6
- declare const geminiGenerateContent: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GeminiGenerateContentInput: z.ZodObject<{
5
+ model: z.ZodOptional<z.ZodDefault<z.ZodString>>;
6
+ top_k: z.ZodOptional<z.ZodNumber>;
7
+ top_p: z.ZodOptional<z.ZodNumber>;
8
+ prompt: z.ZodString;
9
+ voice_name: z.ZodOptional<z.ZodEnum<{
10
+ Achernar: "Achernar";
11
+ Achird: "Achird";
12
+ Algenib: "Algenib";
13
+ Algieba: "Algieba";
14
+ Alnilam: "Alnilam";
15
+ Aoede: "Aoede";
16
+ Autonoe: "Autonoe";
17
+ Callirrhoe: "Callirrhoe";
18
+ Charon: "Charon";
19
+ Despina: "Despina";
20
+ Enceladus: "Enceladus";
21
+ Erinome: "Erinome";
22
+ Fenrir: "Fenrir";
23
+ Gacrux: "Gacrux";
24
+ Iapetus: "Iapetus";
25
+ Kore: "Kore";
26
+ Laomedeia: "Laomedeia";
27
+ Leda: "Leda";
28
+ Orus: "Orus";
29
+ Puck: "Puck";
30
+ Pulcherrima: "Pulcherrima";
31
+ Rasalgethi: "Rasalgethi";
32
+ Sadachbia: "Sadachbia";
33
+ Sadaltager: "Sadaltager";
34
+ Schedar: "Schedar";
35
+ Sulafat: "Sulafat";
36
+ Umbriel: "Umbriel";
37
+ Vindemiatrix: "Vindemiatrix";
38
+ Zephyr: "Zephyr";
39
+ Zubenelgenubi: "Zubenelgenubi";
40
+ }>>;
41
+ temperature: z.ZodOptional<z.ZodNumber>;
42
+ stop_sequences: z.ZodOptional<z.ZodArray<z.ZodString>>;
43
+ safety_settings: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
44
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
45
+ system_instruction: z.ZodOptional<z.ZodString>;
46
+ }, z.core.$strip>;
47
+ declare const GeminiGenerateContentOutput: z.ZodObject<{
48
+ raw: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
49
+ text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
50
+ mime_type: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
51
+ audio_data: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
52
+ candidates: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>>;
53
+ usage_metadata: z.ZodPreprocess<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
54
+ composio_execution_message: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
55
+ }, z.core.$strip>;
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
+ }, {
68
+ raw?: Record<string, unknown> | undefined;
69
+ text?: string | undefined;
70
+ mime_type?: string | undefined;
71
+ audio_data?: string | undefined;
72
+ candidates?: Record<string, unknown>[] | undefined;
73
+ usage_metadata?: Record<string, unknown> | undefined;
74
+ composio_execution_message?: string | undefined;
75
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
76
  //#endregion
8
77
  export { geminiGenerateContent };
9
78
  //# 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,EAA4B,CAAA,CAAE,UAWzC;AAAA,cACW,2BAAA,EAA6B,CAAA,CAAE,UAQ1C;AAAA,cAEW,qBAAA,gCAAqB,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
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"}
@@ -48,13 +48,13 @@ const geminiGenerateContent = action("GEMINI_GENERATE_CONTENT", {
48
48
  system_instruction: z.string().describe("System instruction to guide the model's behavior").optional()
49
49
  }),
50
50
  output: z.object({
51
- raw: z.record(z.string(), z.unknown()).nullable().optional(),
52
- text: z.string().describe("Generated text content (for text generation models)").nullable().optional(),
53
- mime_type: z.string().describe("MIME type of the audio data (e.g., 'audio/pcm')").nullable().optional(),
54
- audio_data: z.string().describe("Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.").nullable().optional(),
55
- candidates: z.array(z.record(z.string(), z.unknown())).nullable().optional(),
56
- usage_metadata: z.record(z.string(), z.unknown()).nullable().optional(),
57
- composio_execution_message: z.string().describe("Informational message about execution").nullable().optional()
51
+ raw: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).optional()),
52
+ text: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Generated text content (for text generation models)").optional()),
53
+ mime_type: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("MIME type of the audio data (e.g., 'audio/pcm')").optional()),
54
+ audio_data: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.").optional()),
55
+ candidates: z.preprocess((value) => value === null ? void 0 : value, z.array(z.record(z.string(), z.unknown())).optional()),
56
+ usage_metadata: z.preprocess((value) => value === null ? void 0 : value, z.record(z.string(), z.unknown()).optional()),
57
+ composio_execution_message: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Informational message about execution").optional())
58
58
  })
59
59
  });
60
60
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"generate-content.mjs","names":[],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateContentInput: z.ZodTypeAny = 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.ZodTypeAny = z.object({\n raw: z.record(z.string(), z.unknown()).nullable().optional(),\n text: z.string().describe(\"Generated text content (for text generation models)\").nullable().optional(),\n mime_type: z.string().describe(\"MIME type of the audio data (e.g., 'audio/pcm')\").nullable().optional(),\n audio_data: z.string().describe(\"Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.\").nullable().optional(),\n candidates: z.array(z.record(z.string(), z.unknown())).nullable().optional(),\n usage_metadata: z.record(z.string(), z.unknown()).nullable().optional(),\n composio_execution_message: z.string().describe(\"Informational message about execution\").nullable().optional(),\n});\n\nexport const geminiGenerateContent = action(\"GEMINI_GENERATE_CONTENT\", {\n slug: \"gemini-generate-content\",\n name: \"Generate Content (Gemini)\",\n description: \"Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.\",\n input: GeminiGenerateContentInput,\n output: GeminiGenerateContentOutput,\n});\n"],"mappings":";;AA0BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BsD,EAAE,OAAO;EAC/D,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;GA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AAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,4BAA4B,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/G,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"generate-content.mjs","names":[],"sources":["../../src/actions/generate-content.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GeminiGenerateContentInput = z.object({\n model: z.string().default(\"gemini-2.5-flash\").describe(\"Model to use for generation. Text generation models: 'gemini-2.5-flash' (default, fast & efficient), 'gemini-2.5-pro' (advanced reasoning), 'gemini-2.0-flash' (previous generation), 'gemini-2.0-flash-lite' (cost-optimized). Text-to-speech models: 'gemini-2.5-flash-preview-tts' (low latency), 'gemini-2.5-pro-preview-tts' (high quality). Note: TTS models require voice_name parameter and return audio data instead of text.\").optional(),\n top_k: z.number().int().describe(\"Top-k sampling parameter\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter (0.0 to 1.0)\").optional(),\n prompt: z.string().describe(\"REQUIRED. The text prompt for content generation. This field must be provided. Example: 'Write a short poem about the ocean' or 'Explain quantum computing in simple terms'. For TTS models, include style instructions in the prompt (e.g., 'Say cheerfully: Hello!').\"),\n voice_name: z.enum([\"Achernar\", \"Achird\", \"Algenib\", \"Algieba\", \"Alnilam\", \"Aoede\", \"Autonoe\", \"Callirrhoe\", \"Charon\", \"Despina\", \"Enceladus\", \"Erinome\", \"Fenrir\", \"Gacrux\", \"Iapetus\", \"Kore\", \"Laomedeia\", \"Leda\", \"Orus\", \"Puck\", \"Pulcherrima\", \"Rasalgethi\", \"Sadachbia\", \"Sadaltager\", \"Schedar\", \"Sulafat\", \"Umbriel\", \"Vindemiatrix\", \"Zephyr\", \"Zubenelgenubi\"]).describe(\"Available prebuilt voices for text-to-speech generation.\\n\\nComplete list of 30 official Gemini TTS voices as documented at:\\nhttps://ai.google.dev/gemini-api/docs/speech-generation\").optional(),\n temperature: z.number().describe(\"Controls randomness (0.0 to 2.0)\").optional(),\n stop_sequences: z.array(z.string()).describe(\"Sequences where generation should stop\").optional(),\n safety_settings: z.array(z.record(z.string(), z.unknown())).describe(\"Safety filter settings\").optional(),\n max_output_tokens: z.number().int().describe(\"Maximum number of tokens to generate If response finishReason='MAX_TOKENS', output was truncated; narrow prompt scope or increase this value and regenerate.\").optional(),\n system_instruction: z.string().describe(\"System instruction to guide the model's behavior\").optional(),\n});\nexport const GeminiGenerateContentOutput = z.object({\n raw: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).optional()),\n text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Generated text content (for text generation models)\").optional()),\n mime_type: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"MIME type of the audio data (e.g., 'audio/pcm')\").optional()),\n audio_data: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Base64-encoded audio data (for TTS models). PCM format: 24000 Hz, mono, 16-bit.\").optional()),\n candidates: z.preprocess((value) => (value === null ? undefined : value), z.array(z.record(z.string(), z.unknown())).optional()),\n usage_metadata: z.preprocess((value) => (value === null ? undefined : value), z.record(z.string(), z.unknown()).optional()),\n composio_execution_message: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Informational message about execution\").optional()),\n});\n\nexport const geminiGenerateContent = action(\"GEMINI_GENERATE_CONTENT\", {\n slug: \"gemini-generate-content\",\n name: \"Generate Content (Gemini)\",\n description: \"Generates text content or speech audio from prompts using Gemini models. Supports text generation models (Gemini Flash, Pro) and text-to-speech models with configurable parameters. Generated text is nested at results[i].response.data.text. Output may be wrapped in markdown fences (e.g., ```html...```) or preceded by explanatory prose; strip these before file writing or rendering.\",\n input: GeminiGenerateContentInput,\n output: GeminiGenerateContentOutput,\n});\n"],"mappings":";;AA0BA,MAAa,wBAAwB,OAAO,2BAA2B;CACrE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OA1BwC,EAAE,OAAO;EACjD,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