@keystrokehq/gan_ai 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 (73) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-avatar-video-inference-details.cjs +9 -9
  4. package/dist/actions/get-avatar-video-inference-details.cjs.map +1 -1
  5. package/dist/actions/get-avatar-video-inference-details.d.cts +33 -3
  6. package/dist/actions/get-avatar-video-inference-details.d.cts.map +1 -1
  7. package/dist/actions/get-avatar-video-inference-details.d.mts +33 -3
  8. package/dist/actions/get-avatar-video-inference-details.d.mts.map +1 -1
  9. package/dist/actions/get-avatar-video-inference-details.mjs +9 -9
  10. package/dist/actions/get-avatar-video-inference-details.mjs.map +1 -1
  11. package/dist/actions/get-photo-avatar-details.cjs +5 -5
  12. package/dist/actions/get-photo-avatar-details.cjs.map +1 -1
  13. package/dist/actions/get-photo-avatar-details.d.cts +25 -3
  14. package/dist/actions/get-photo-avatar-details.d.cts.map +1 -1
  15. package/dist/actions/get-photo-avatar-details.d.mts +25 -3
  16. package/dist/actions/get-photo-avatar-details.d.mts.map +1 -1
  17. package/dist/actions/get-photo-avatar-details.mjs +5 -5
  18. package/dist/actions/get-photo-avatar-details.mjs.map +1 -1
  19. package/dist/actions/get-photo-avatar-inference-details.cjs +10 -10
  20. package/dist/actions/get-photo-avatar-inference-details.cjs.map +1 -1
  21. package/dist/actions/get-photo-avatar-inference-details.d.cts +41 -3
  22. package/dist/actions/get-photo-avatar-inference-details.d.cts.map +1 -1
  23. package/dist/actions/get-photo-avatar-inference-details.d.mts +41 -3
  24. package/dist/actions/get-photo-avatar-inference-details.d.mts.map +1 -1
  25. package/dist/actions/get-photo-avatar-inference-details.mjs +10 -10
  26. package/dist/actions/get-photo-avatar-inference-details.mjs.map +1 -1
  27. package/dist/actions/list-avatar-videos.cjs +11 -11
  28. package/dist/actions/list-avatar-videos.cjs.map +1 -1
  29. package/dist/actions/list-avatar-videos.d.cts +59 -3
  30. package/dist/actions/list-avatar-videos.d.cts.map +1 -1
  31. package/dist/actions/list-avatar-videos.d.mts +59 -3
  32. package/dist/actions/list-avatar-videos.d.mts.map +1 -1
  33. package/dist/actions/list-avatar-videos.mjs +11 -11
  34. package/dist/actions/list-avatar-videos.mjs.map +1 -1
  35. package/dist/actions/list-photo-avatar-inferences.cjs +12 -12
  36. package/dist/actions/list-photo-avatar-inferences.cjs.map +1 -1
  37. package/dist/actions/list-photo-avatar-inferences.d.cts +63 -3
  38. package/dist/actions/list-photo-avatar-inferences.d.cts.map +1 -1
  39. package/dist/actions/list-photo-avatar-inferences.d.mts +63 -3
  40. package/dist/actions/list-photo-avatar-inferences.d.mts.map +1 -1
  41. package/dist/actions/list-photo-avatar-inferences.mjs +12 -12
  42. package/dist/actions/list-photo-avatar-inferences.mjs.map +1 -1
  43. package/dist/actions/list-photo-avatars.cjs +10 -10
  44. package/dist/actions/list-photo-avatars.cjs.map +1 -1
  45. package/dist/actions/list-photo-avatars.d.cts +43 -3
  46. package/dist/actions/list-photo-avatars.d.cts.map +1 -1
  47. package/dist/actions/list-photo-avatars.d.mts +43 -3
  48. package/dist/actions/list-photo-avatars.d.mts.map +1 -1
  49. package/dist/actions/list-photo-avatars.mjs +10 -10
  50. package/dist/actions/list-photo-avatars.mjs.map +1 -1
  51. package/dist/actions/login.cjs +2 -2
  52. package/dist/actions/login.cjs.map +1 -1
  53. package/dist/actions/login.d.cts +15 -3
  54. package/dist/actions/login.d.cts.map +1 -1
  55. package/dist/actions/login.d.mts +15 -3
  56. package/dist/actions/login.d.mts.map +1 -1
  57. package/dist/actions/login.mjs +2 -2
  58. package/dist/actions/login.mjs.map +1 -1
  59. package/dist/actions/tts.cjs +2 -2
  60. package/dist/actions/tts.cjs.map +1 -1
  61. package/dist/actions/tts.d.cts +15 -3
  62. package/dist/actions/tts.d.cts.map +1 -1
  63. package/dist/actions/tts.d.mts +15 -3
  64. package/dist/actions/tts.d.mts.map +1 -1
  65. package/dist/actions/tts.mjs +2 -2
  66. package/dist/actions/tts.mjs.map +1 -1
  67. package/dist/catalog.cjs +7 -1
  68. package/dist/catalog.cjs.map +1 -1
  69. package/dist/catalog.d.cts +8 -0
  70. package/dist/catalog.d.mts +8 -0
  71. package/dist/catalog.mjs +7 -1
  72. package/dist/catalog.mjs.map +1 -1
  73. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"action.cjs","names":["ganAi","executeGanAiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ganAi } from \"./app\";\nimport { executeGanAiTool } 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 ganAi.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 executeGanAiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,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,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.cjs","names":["ganAi","executeGanAiTool"],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ganAi } from \"./app\";\nimport { executeGanAiTool } 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 ganAi.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 executeGanAiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAOA,YAAAA,MAAM,OAAO;EAClB,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,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -1 +1 @@
1
- {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ganAi } from \"./app\";\nimport { executeGanAiTool } 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 ganAi.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 executeGanAiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OACd,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
1
+ {"version":3,"file":"action.mjs","names":[],"sources":["../src/action.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { ganAi } from \"./app\";\nimport { executeGanAiTool } 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 ganAi.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 executeGanAiTool(tool, input as Record<string, unknown>));\n },\n });\n}\n"],"mappings":";;;;;AAMA,SAAgB,OAId,MACA,KAOA;CACA,OAAO,MAAM,OAAO;EAClB,MAAM,IAAI;EACV,MAAM,IAAI;EACV,aAAa,IAAI;EACjB,OAAO,IAAI;EACX,QAAQ,IAAI;EACZ,MAAM,IAAI,OAAO;GACf,OAAO,IAAI,OAAO,MAAM,MAAM,iBAAiB,MAAM,KAAgC,CAAC;EACxF;CACF,CAAC;AACH"}
@@ -3,21 +3,21 @@ let zod = require("zod");
3
3
  //#region src/actions/get-avatar-video-inference-details.ts
4
4
  const GanAiGetAvatarVideoInferenceDetailsInput = zod.z.object({ inference_id: zod.z.string().describe("The unique identifier (UUID) of the avatar video inference to retrieve.") });
5
5
  const GanAiGetAvatarVideoInferenceDetailsOutput = zod.z.object({
6
- title: zod.z.string().describe("Inference title, if available.").nullable().optional(),
7
- video: zod.z.string().describe("URL of the generated video, if ready.").nullable().optional(),
6
+ title: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Inference title, if available.").optional()),
7
+ video: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL of the generated video, if ready.").optional()),
8
8
  status: zod.z.enum([
9
9
  "draft",
10
10
  "processing",
11
11
  "failed",
12
12
  "succeeded",
13
13
  "deleted"
14
- ]).describe("Current state of the inference."),
15
- avatar_id: zod.z.string().describe("Avatar ID (UUID)."),
16
- thumbnail: zod.z.string().describe("URL of the thumbnail image, if ready.").nullable().optional(),
17
- created_at: zod.z.string().describe("Timestamp when the inference was created.").nullable().optional(),
18
- input_text: zod.z.string().describe("Input text used for the inference, if any.").nullable().optional(),
19
- avatar_title: zod.z.string().describe("Avatar title, if available.").nullable().optional(),
20
- inference_id: zod.z.string().describe("Inference ID (UUID).")
14
+ ]).describe("Current state of the inference.").nullable(),
15
+ avatar_id: zod.z.string().describe("Avatar ID (UUID).").nullable(),
16
+ thumbnail: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL of the thumbnail image, if ready.").optional()),
17
+ created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Timestamp when the inference was created.").optional()),
18
+ input_text: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Input text used for the inference, if any.").optional()),
19
+ avatar_title: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Avatar title, if available.").optional()),
20
+ inference_id: zod.z.string().describe("Inference ID (UUID).").nullable()
21
21
  });
22
22
  const ganAiGetAvatarVideoInferenceDetails = require_action.action("GAN_AI_GET_AVATAR_VIDEO_INFERENCE_DETAILS", {
23
23
  slug: "gan_ai-get-avatar-video-inference-details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-avatar-video-inference-details.cjs","names":["z","action"],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodTypeAny = z.object({\n inference_id: z.string().describe(\"The unique identifier (UUID) of the avatar video inference to retrieve.\"),\n});\nexport const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Inference title, if available.\").nullable().optional(),\n video: z.string().describe(\"URL of the generated video, if ready.\").nullable().optional(),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Current state of the inference.\"),\n avatar_id: z.string().describe(\"Avatar ID (UUID).\"),\n thumbnail: z.string().describe(\"URL of the thumbnail image, if ready.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the inference was created.\").nullable().optional(),\n input_text: z.string().describe(\"Input text used for the inference, if any.\").nullable().optional(),\n avatar_title: z.string().describe(\"Avatar title, if available.\").nullable().optional(),\n inference_id: z.string().describe(\"Inference ID (UUID).\"),\n});\n\nexport const ganAiGetAvatarVideoInferenceDetails = action(\"GAN_AI_GET_AVATAR_VIDEO_INFERENCE_DETAILS\", {\n slug: \"gan_ai-get-avatar-video-inference-details\",\n name: \"Get Avatar Video Inference Details\",\n description: \"Tool to retrieve detailed status and metadata for a specific avatar video inference. Use when you have an inference_id and need to check its processing status and access video URLs.\",\n input: GanAiGetAvatarVideoInferenceDetailsInput,\n output: GanAiGetAvatarVideoInferenceDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO,EAC7E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC7G,CAAC;AACD,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjF,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;EAAa;CAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC;CACpH,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;CAClD,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;AAC1D,CAAC;AAED,MAAa,sCAAsCC,eAAAA,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-avatar-video-inference-details.cjs","names":["z","action"],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetAvatarVideoInferenceDetailsInput = z.object({\n inference_id: z.string().describe(\"The unique identifier (UUID) of the avatar video inference to retrieve.\"),\n});\nexport const GanAiGetAvatarVideoInferenceDetailsOutput = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Inference title, if available.\").optional()),\n video: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the generated video, if ready.\").optional()),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Current state of the inference.\").nullable(),\n avatar_id: z.string().describe(\"Avatar ID (UUID).\").nullable(),\n thumbnail: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the thumbnail image, if ready.\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the inference was created.\").optional()),\n input_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Input text used for the inference, if any.\").optional()),\n avatar_title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Avatar title, if available.\").optional()),\n inference_id: z.string().describe(\"Inference ID (UUID).\").nullable(),\n});\n\nexport const ganAiGetAvatarVideoInferenceDetails = action(\"GAN_AI_GET_AVATAR_VIDEO_INFERENCE_DETAILS\", {\n slug: \"gan_ai-get-avatar-video-inference-details\",\n name: \"Get Avatar Video Inference Details\",\n description: \"Tool to retrieve detailed status and metadata for a specific avatar video inference. Use when you have an inference_id and need to check its processing status and access video URLs.\",\n input: GanAiGetAvatarVideoInferenceDetailsInput,\n output: GanAiGetAvatarVideoInferenceDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO,EAC/D,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC7G,CAAC;AACD,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;CACrI,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CAC5I,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;EAAa;CAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC7D,WAAWA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;CAChJ,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CACrJ,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;CACtJ,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACzI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;AACrE,CAAC;AAED,MAAa,sCAAsCC,eAAAA,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-avatar-video-inference-details.d.ts
4
- declare const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodTypeAny;
5
- declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodTypeAny;
6
- declare const ganAiGetAvatarVideoInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodObject<{
5
+ inference_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodObject<{
8
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ status: z.ZodNullable<z.ZodEnum<{
11
+ draft: "draft";
12
+ processing: "processing";
13
+ failed: "failed";
14
+ succeeded: "succeeded";
15
+ deleted: "deleted";
16
+ }>>;
17
+ avatar_id: z.ZodNullable<z.ZodString>;
18
+ thumbnail: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ avatar_title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ inference_id: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ declare const ganAiGetAvatarVideoInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ inference_id: string;
26
+ }, {
27
+ status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
28
+ avatar_id: string | null;
29
+ inference_id: string | null;
30
+ title?: string | undefined;
31
+ video?: string | undefined;
32
+ thumbnail?: string | undefined;
33
+ created_at?: string | undefined;
34
+ input_text?: string | undefined;
35
+ avatar_title?: string | undefined;
36
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { ganAiGetAvatarVideoInferenceDetails };
9
39
  //# sourceMappingURL=get-avatar-video-inference-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-avatar-video-inference-details.d.cts","names":[],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAEvD;AAAA,cACW,yCAAA,EAA2C,CAAA,CAAE,UAUxD;AAAA,cAEW,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-avatar-video-inference-details.d.cts","names":[],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;cAGxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYzC,mCAAA,gCAAmC,wBAAA"}
@@ -1,9 +1,39 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-avatar-video-inference-details.d.ts
4
- declare const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodTypeAny;
5
- declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodTypeAny;
6
- declare const ganAiGetAvatarVideoInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodObject<{
5
+ inference_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodObject<{
8
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ status: z.ZodNullable<z.ZodEnum<{
11
+ draft: "draft";
12
+ processing: "processing";
13
+ failed: "failed";
14
+ succeeded: "succeeded";
15
+ deleted: "deleted";
16
+ }>>;
17
+ avatar_id: z.ZodNullable<z.ZodString>;
18
+ thumbnail: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ avatar_title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
22
+ inference_id: z.ZodNullable<z.ZodString>;
23
+ }, z.core.$strip>;
24
+ declare const ganAiGetAvatarVideoInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
25
+ inference_id: string;
26
+ }, {
27
+ status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
28
+ avatar_id: string | null;
29
+ inference_id: string | null;
30
+ title?: string | undefined;
31
+ video?: string | undefined;
32
+ thumbnail?: string | undefined;
33
+ created_at?: string | undefined;
34
+ input_text?: string | undefined;
35
+ avatar_title?: string | undefined;
36
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
37
  //#endregion
8
38
  export { ganAiGetAvatarVideoInferenceDetails };
9
39
  //# sourceMappingURL=get-avatar-video-inference-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-avatar-video-inference-details.d.mts","names":[],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAEvD;AAAA,cACW,yCAAA,EAA2C,CAAA,CAAE,UAUxD;AAAA,cAEW,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-avatar-video-inference-details.d.mts","names":[],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;cAGxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;cAYzC,mCAAA,gCAAmC,wBAAA"}
@@ -6,21 +6,21 @@ const ganAiGetAvatarVideoInferenceDetails = action("GAN_AI_GET_AVATAR_VIDEO_INFE
6
6
  description: "Tool to retrieve detailed status and metadata for a specific avatar video inference. Use when you have an inference_id and need to check its processing status and access video URLs.",
7
7
  input: z.object({ inference_id: z.string().describe("The unique identifier (UUID) of the avatar video inference to retrieve.") }),
8
8
  output: z.object({
9
- title: z.string().describe("Inference title, if available.").nullable().optional(),
10
- video: z.string().describe("URL of the generated video, if ready.").nullable().optional(),
9
+ title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Inference title, if available.").optional()),
10
+ video: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL of the generated video, if ready.").optional()),
11
11
  status: z.enum([
12
12
  "draft",
13
13
  "processing",
14
14
  "failed",
15
15
  "succeeded",
16
16
  "deleted"
17
- ]).describe("Current state of the inference."),
18
- avatar_id: z.string().describe("Avatar ID (UUID)."),
19
- thumbnail: z.string().describe("URL of the thumbnail image, if ready.").nullable().optional(),
20
- created_at: z.string().describe("Timestamp when the inference was created.").nullable().optional(),
21
- input_text: z.string().describe("Input text used for the inference, if any.").nullable().optional(),
22
- avatar_title: z.string().describe("Avatar title, if available.").nullable().optional(),
23
- inference_id: z.string().describe("Inference ID (UUID).")
17
+ ]).describe("Current state of the inference.").nullable(),
18
+ avatar_id: z.string().describe("Avatar ID (UUID).").nullable(),
19
+ thumbnail: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL of the thumbnail image, if ready.").optional()),
20
+ created_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Timestamp when the inference was created.").optional()),
21
+ input_text: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Input text used for the inference, if any.").optional()),
22
+ avatar_title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Avatar title, if available.").optional()),
23
+ inference_id: z.string().describe("Inference ID (UUID).").nullable()
24
24
  })
25
25
  });
26
26
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-avatar-video-inference-details.mjs","names":[],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodTypeAny = z.object({\n inference_id: z.string().describe(\"The unique identifier (UUID) of the avatar video inference to retrieve.\"),\n});\nexport const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Inference title, if available.\").nullable().optional(),\n video: z.string().describe(\"URL of the generated video, if ready.\").nullable().optional(),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Current state of the inference.\"),\n avatar_id: z.string().describe(\"Avatar ID (UUID).\"),\n thumbnail: z.string().describe(\"URL of the thumbnail image, if ready.\").nullable().optional(),\n created_at: z.string().describe(\"Timestamp when the inference was created.\").nullable().optional(),\n input_text: z.string().describe(\"Input text used for the inference, if any.\").nullable().optional(),\n avatar_title: z.string().describe(\"Avatar title, if available.\").nullable().optional(),\n inference_id: z.string().describe(\"Inference ID (UUID).\"),\n});\n\nexport const ganAiGetAvatarVideoInferenceDetails = action(\"GAN_AI_GET_AVATAR_VIDEO_INFERENCE_DETAILS\", {\n slug: \"gan_ai-get-avatar-video-inference-details\",\n name: \"Get Avatar Video Inference Details\",\n description: \"Tool to retrieve detailed status and metadata for a specific avatar video inference. Use when you have an inference_id and need to check its processing status and access video URLs.\",\n input: GanAiGetAvatarVideoInferenceDetailsInput,\n output: GanAiGetAvatarVideoInferenceDetailsOutput,\n});\n"],"mappings":";;AAmBA,MAAa,sCAAsC,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBoE,EAAE,OAAO,EAC7E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC7G,CAiBS;CACP,QAjBqE,EAAE,OAAO;EAC9E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACxF,QAAQ,EAAE,KAAK;GAAC;GAAS;GAAc;GAAU;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC;EACpH,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EAClD,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAClG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACrF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB;CAC1D,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-avatar-video-inference-details.mjs","names":[],"sources":["../../src/actions/get-avatar-video-inference-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetAvatarVideoInferenceDetailsInput = z.object({\n inference_id: z.string().describe(\"The unique identifier (UUID) of the avatar video inference to retrieve.\"),\n});\nexport const GanAiGetAvatarVideoInferenceDetailsOutput = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Inference title, if available.\").optional()),\n video: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the generated video, if ready.\").optional()),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Current state of the inference.\").nullable(),\n avatar_id: z.string().describe(\"Avatar ID (UUID).\").nullable(),\n thumbnail: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the thumbnail image, if ready.\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Timestamp when the inference was created.\").optional()),\n input_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Input text used for the inference, if any.\").optional()),\n avatar_title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Avatar title, if available.\").optional()),\n inference_id: z.string().describe(\"Inference ID (UUID).\").nullable(),\n});\n\nexport const ganAiGetAvatarVideoInferenceDetails = action(\"GAN_AI_GET_AVATAR_VIDEO_INFERENCE_DETAILS\", {\n slug: \"gan_ai-get-avatar-video-inference-details\",\n name: \"Get Avatar Video Inference Details\",\n description: \"Tool to retrieve detailed status and metadata for a specific avatar video inference. Use when you have an inference_id and need to check its processing status and access video URLs.\",\n input: GanAiGetAvatarVideoInferenceDetailsInput,\n output: GanAiGetAvatarVideoInferenceDetailsOutput,\n});\n"],"mappings":";;AAmBA,MAAa,sCAAsC,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnBsD,EAAE,OAAO,EAC/D,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,EAC7G,CAiBS;CACP,QAjBuD,EAAE,OAAO;EAChE,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS,CAAC;EACrI,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;EAC5I,QAAQ,EAAE,KAAK;GAAC;GAAS;GAAc;GAAU;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,WAAW,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS,CAAC;EAChJ,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;EACrJ,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS,CAAC;EACtJ,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC;EACzI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS;CACrE,CAOU;AACV,CAAC"}
@@ -3,17 +3,17 @@ let zod = require("zod");
3
3
  //#region src/actions/get-photo-avatar-details.ts
4
4
  const GanAiGetPhotoAvatarDetailsInput = zod.z.object({ photo_avatar_id: zod.z.string().describe("UUID of the photo avatar to retrieve details for") });
5
5
  const GanAiGetPhotoAvatarDetailsOutput = zod.z.object({
6
- title: zod.z.string().describe("Avatar title if set").nullable().optional(),
6
+ title: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Avatar title if set").optional()),
7
7
  status: zod.z.enum([
8
8
  "draft",
9
9
  "failed",
10
10
  "processing",
11
11
  "published",
12
12
  "deleted"
13
- ]).describe("Current status of the photo avatar"),
14
- base_image: zod.z.string().describe("Presigned URL of the processed base image").nullable().optional(),
15
- created_at: zod.z.string().describe("ISO 8601 timestamp when the avatar was created").nullable().optional(),
16
- photo_avatar_id: zod.z.string().describe("The avatar's unique identifier")
13
+ ]).describe("Current status of the photo avatar").nullable(),
14
+ base_image: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Presigned URL of the processed base image").optional()),
15
+ created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the avatar was created").optional()),
16
+ photo_avatar_id: zod.z.string().describe("The avatar's unique identifier").nullable()
17
17
  });
18
18
  const ganAiGetPhotoAvatarDetails = require_action.action("GAN_AI_GET_PHOTO_AVATAR_DETAILS", {
19
19
  slug: "gan_ai-get-photo-avatar-details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-details.cjs","names":["z","action"],"sources":["../../src/actions/get-photo-avatar-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetPhotoAvatarDetailsInput: z.ZodTypeAny = z.object({\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to retrieve details for\"),\n});\nexport const GanAiGetPhotoAvatarDetailsOutput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Avatar title if set\").nullable().optional(),\n status: z.enum([\"draft\", \"failed\", \"processing\", \"published\", \"deleted\"]).describe(\"Current status of the photo avatar\"),\n base_image: z.string().describe(\"Presigned URL of the processed base image\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the avatar was created\").nullable().optional(),\n photo_avatar_id: z.string().describe(\"The avatar's unique identifier\"),\n});\n\nexport const ganAiGetPhotoAvatarDetails = action(\"GAN_AI_GET_PHOTO_AVATAR_DETAILS\", {\n slug: \"gan_ai-get-photo-avatar-details\",\n name: \"Get Photo Avatar Details\",\n description: \"Tool to retrieve detailed information for a specific photo avatar by ID. Use when you need to check photo avatar processing status and access its metadata and image URL.\",\n input: GanAiGetPhotoAvatarDetailsInput,\n output: GanAiGetPhotoAvatarDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAgDA,IAAAA,EAAE,OAAO,EACpE,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACzF,CAAC;AACD,MAAa,mCAAiDA,IAAAA,EAAE,OAAO;CACrE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtE,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAc;EAAa;CAAS,CAAC,CAAC,CAAC,SAAS,oCAAoC;CACvH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACjG,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACtG,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;AACvE,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-photo-avatar-details.cjs","names":["z","action"],"sources":["../../src/actions/get-photo-avatar-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetPhotoAvatarDetailsInput = z.object({\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to retrieve details for\"),\n});\nexport const GanAiGetPhotoAvatarDetailsOutput = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Avatar title if set\").optional()),\n status: z.enum([\"draft\", \"failed\", \"processing\", \"published\", \"deleted\"]).describe(\"Current status of the photo avatar\").nullable(),\n base_image: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Presigned URL of the processed base image\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the avatar was created\").optional()),\n photo_avatar_id: z.string().describe(\"The avatar's unique identifier\").nullable(),\n});\n\nexport const ganAiGetPhotoAvatarDetails = action(\"GAN_AI_GET_PHOTO_AVATAR_DETAILS\", {\n slug: \"gan_ai-get-photo-avatar-details\",\n name: \"Get Photo Avatar Details\",\n description: \"Tool to retrieve detailed information for a specific photo avatar by ID. Use when you need to check photo avatar processing status and access its metadata and image URL.\",\n input: GanAiGetPhotoAvatarDetailsInput,\n output: GanAiGetPhotoAvatarDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkCA,IAAAA,EAAE,OAAO,EACtD,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACzF,CAAC;AACD,MAAa,mCAAmCA,IAAAA,EAAE,OAAO;CACvD,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC;CAC1H,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAU;EAAc;EAAa;CAAS,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAClI,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;CACrJ,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CAC1J,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;AAClF,CAAC;AAED,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-photo-avatar-details.d.ts
4
- declare const GanAiGetPhotoAvatarDetailsInput: z.ZodTypeAny;
5
- declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodTypeAny;
6
- declare const ganAiGetPhotoAvatarDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiGetPhotoAvatarDetailsInput: z.ZodObject<{
5
+ photo_avatar_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodObject<{
8
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ status: z.ZodNullable<z.ZodEnum<{
10
+ draft: "draft";
11
+ processing: "processing";
12
+ failed: "failed";
13
+ deleted: "deleted";
14
+ published: "published";
15
+ }>>;
16
+ base_image: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ photo_avatar_id: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const ganAiGetPhotoAvatarDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ photo_avatar_id: string;
22
+ }, {
23
+ status: "draft" | "processing" | "failed" | "deleted" | "published" | null;
24
+ photo_avatar_id: string | null;
25
+ title?: string | undefined;
26
+ base_image?: string | undefined;
27
+ created_at?: string | undefined;
28
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { ganAiGetPhotoAvatarDetails };
9
31
  //# sourceMappingURL=get-photo-avatar-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-details.d.cts","names":[],"sources":["../../src/actions/get-photo-avatar-details.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAM/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-photo-avatar-details.d.cts","names":[],"sources":["../../src/actions/get-photo-avatar-details.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQhC,0BAAA,gCAA0B,wBAAA"}
@@ -1,9 +1,31 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-photo-avatar-details.d.ts
4
- declare const GanAiGetPhotoAvatarDetailsInput: z.ZodTypeAny;
5
- declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodTypeAny;
6
- declare const ganAiGetPhotoAvatarDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiGetPhotoAvatarDetailsInput: z.ZodObject<{
5
+ photo_avatar_id: z.ZodString;
6
+ }, z.core.$strip>;
7
+ declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodObject<{
8
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ status: z.ZodNullable<z.ZodEnum<{
10
+ draft: "draft";
11
+ processing: "processing";
12
+ failed: "failed";
13
+ deleted: "deleted";
14
+ published: "published";
15
+ }>>;
16
+ base_image: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
+ created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ photo_avatar_id: z.ZodNullable<z.ZodString>;
19
+ }, z.core.$strip>;
20
+ declare const ganAiGetPhotoAvatarDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
21
+ photo_avatar_id: string;
22
+ }, {
23
+ status: "draft" | "processing" | "failed" | "deleted" | "published" | null;
24
+ photo_avatar_id: string | null;
25
+ title?: string | undefined;
26
+ base_image?: string | undefined;
27
+ created_at?: string | undefined;
28
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
29
  //#endregion
8
30
  export { ganAiGetPhotoAvatarDetails };
9
31
  //# sourceMappingURL=get-photo-avatar-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-details.d.mts","names":[],"sources":["../../src/actions/get-photo-avatar-details.ts"],"mappings":";;;cAIa,+BAAA,EAAiC,CAAA,CAAE,UAE9C;AAAA,cACW,gCAAA,EAAkC,CAAA,CAAE,UAM/C;AAAA,cAEW,0BAAA,gCAA0B,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-photo-avatar-details.d.mts","names":[],"sources":["../../src/actions/get-photo-avatar-details.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;cAG/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;cAQhC,0BAAA,gCAA0B,wBAAA"}
@@ -6,17 +6,17 @@ const ganAiGetPhotoAvatarDetails = action("GAN_AI_GET_PHOTO_AVATAR_DETAILS", {
6
6
  description: "Tool to retrieve detailed information for a specific photo avatar by ID. Use when you need to check photo avatar processing status and access its metadata and image URL.",
7
7
  input: z.object({ photo_avatar_id: z.string().describe("UUID of the photo avatar to retrieve details for") }),
8
8
  output: z.object({
9
- title: z.string().describe("Avatar title if set").nullable().optional(),
9
+ title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Avatar title if set").optional()),
10
10
  status: z.enum([
11
11
  "draft",
12
12
  "failed",
13
13
  "processing",
14
14
  "published",
15
15
  "deleted"
16
- ]).describe("Current status of the photo avatar"),
17
- base_image: z.string().describe("Presigned URL of the processed base image").nullable().optional(),
18
- created_at: z.string().describe("ISO 8601 timestamp when the avatar was created").nullable().optional(),
19
- photo_avatar_id: z.string().describe("The avatar's unique identifier")
16
+ ]).describe("Current status of the photo avatar").nullable(),
17
+ base_image: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Presigned URL of the processed base image").optional()),
18
+ created_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the avatar was created").optional()),
19
+ photo_avatar_id: z.string().describe("The avatar's unique identifier").nullable()
20
20
  })
21
21
  });
22
22
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-details.mjs","names":[],"sources":["../../src/actions/get-photo-avatar-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetPhotoAvatarDetailsInput: z.ZodTypeAny = z.object({\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to retrieve details for\"),\n});\nexport const GanAiGetPhotoAvatarDetailsOutput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Avatar title if set\").nullable().optional(),\n status: z.enum([\"draft\", \"failed\", \"processing\", \"published\", \"deleted\"]).describe(\"Current status of the photo avatar\"),\n base_image: z.string().describe(\"Presigned URL of the processed base image\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the avatar was created\").nullable().optional(),\n photo_avatar_id: z.string().describe(\"The avatar's unique identifier\"),\n});\n\nexport const ganAiGetPhotoAvatarDetails = action(\"GAN_AI_GET_PHOTO_AVATAR_DETAILS\", {\n slug: \"gan_ai-get-photo-avatar-details\",\n name: \"Get Photo Avatar Details\",\n description: \"Tool to retrieve detailed information for a specific photo avatar by ID. Use when you need to check photo avatar processing status and access its metadata and image URL.\",\n input: GanAiGetPhotoAvatarDetailsInput,\n output: GanAiGetPhotoAvatarDetailsOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf2D,EAAE,OAAO,EACpE,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACzF,CAaS;CACP,QAb4D,EAAE,OAAO;EACrE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtE,QAAQ,EAAE,KAAK;GAAC;GAAS;GAAU;GAAc;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,oCAAoC;EACvH,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACjG,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACtG,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC;CACvE,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-photo-avatar-details.mjs","names":[],"sources":["../../src/actions/get-photo-avatar-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetPhotoAvatarDetailsInput = z.object({\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to retrieve details for\"),\n});\nexport const GanAiGetPhotoAvatarDetailsOutput = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Avatar title if set\").optional()),\n status: z.enum([\"draft\", \"failed\", \"processing\", \"published\", \"deleted\"]).describe(\"Current status of the photo avatar\").nullable(),\n base_image: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Presigned URL of the processed base image\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the avatar was created\").optional()),\n photo_avatar_id: z.string().describe(\"The avatar's unique identifier\").nullable(),\n});\n\nexport const ganAiGetPhotoAvatarDetails = action(\"GAN_AI_GET_PHOTO_AVATAR_DETAILS\", {\n slug: \"gan_ai-get-photo-avatar-details\",\n name: \"Get Photo Avatar Details\",\n description: \"Tool to retrieve detailed information for a specific photo avatar by ID. Use when you need to check photo avatar processing status and access its metadata and image URL.\",\n input: GanAiGetPhotoAvatarDetailsInput,\n output: GanAiGetPhotoAvatarDetailsOutput,\n});\n"],"mappings":";;AAeA,MAAa,6BAA6B,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAf6C,EAAE,OAAO,EACtD,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,EACzF,CAaS;CACP,QAb8C,EAAE,OAAO;EACvD,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qBAAqB,CAAC,CAAC,SAAS,CAAC;EAC1H,QAAQ,EAAE,KAAK;GAAC;GAAS;GAAU;GAAc;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;EAClI,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS,CAAC;EACrJ,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;EAC1J,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CAClF,CAOU;AACV,CAAC"}
@@ -6,25 +6,25 @@ const GanAiGetPhotoAvatarInferenceDetailsInput = zod.z.object({
6
6
  photo_avatar_inference_id: zod.z.string().describe("The photo avatar inference ID to fetch.")
7
7
  });
8
8
  const GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema = zod.z.object({
9
- gan_cost: zod.z.number().describe("GAN processing cost used in the inference."),
10
- tts_cost: zod.z.number().describe("Text-to-speech cost used in the inference.")
9
+ gan_cost: zod.z.number().describe("GAN processing cost used in the inference.").nullable(),
10
+ tts_cost: zod.z.number().describe("Text-to-speech cost used in the inference.").nullable()
11
11
  });
12
12
  const GanAiGetPhotoAvatarInferenceDetailsOutput = zod.z.object({
13
- title: zod.z.string().describe("Title of the inference.").nullable().optional(),
14
- video: zod.z.string().describe("CloudFront URL of the generated video.").nullable().optional(),
13
+ title: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Title of the inference.").optional()),
14
+ video: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("CloudFront URL of the generated video.").optional()),
15
15
  status: zod.z.enum([
16
16
  "draft",
17
17
  "processing",
18
18
  "failed",
19
19
  "succeeded",
20
20
  "deleted"
21
- ]).describe("Current status of the inference."),
22
- created_at: zod.z.string().describe("Creation timestamp of the inference.").nullable().optional(),
23
- input_text: zod.z.string().describe("Input text used for generation.").nullable().optional(),
21
+ ]).describe("Current status of the inference.").nullable(),
22
+ created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Creation timestamp of the inference.").optional()),
23
+ input_text: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Input text used for generation.").optional()),
24
24
  credit_details: GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema.nullable(),
25
- photo_avatar_id: zod.z.string().describe("Photo avatar ID."),
26
- downloadable_video_link: zod.z.string().describe("Download URL if requested.").nullable().optional(),
27
- photo_avatar_inference_id: zod.z.string().describe("Inference ID.")
25
+ photo_avatar_id: zod.z.string().describe("Photo avatar ID.").nullable(),
26
+ downloadable_video_link: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Download URL if requested.").optional()),
27
+ photo_avatar_inference_id: zod.z.string().describe("Inference ID.").nullable()
28
28
  });
29
29
  const ganAiGetPhotoAvatarInferenceDetails = require_action.action("GAN_AI_GET_PHOTO_AVATAR_INFERENCE_DETAILS", {
30
30
  slug: "gan_ai-get-photo-avatar-inference-details",
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-inference-details.cjs","names":["z","action"],"sources":["../../src/actions/get-photo-avatar-inference-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetPhotoAvatarInferenceDetailsInput: z.ZodTypeAny = z.object({\n downloadable_link: z.boolean().default(false).describe(\"Include downloadable video link when true (default: false).\").optional(),\n photo_avatar_inference_id: z.string().describe(\"The photo avatar inference ID to fetch.\"),\n});\nconst GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema: z.ZodTypeAny = z.object({\n gan_cost: z.number().describe(\"GAN processing cost used in the inference.\"),\n tts_cost: z.number().describe(\"Text-to-speech cost used in the inference.\"),\n});\nexport const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodTypeAny = z.object({\n title: z.string().describe(\"Title of the inference.\").nullable().optional(),\n video: z.string().describe(\"CloudFront URL of the generated video.\").nullable().optional(),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Current status of the inference.\"),\n created_at: z.string().describe(\"Creation timestamp of the inference.\").nullable().optional(),\n input_text: z.string().describe(\"Input text used for generation.\").nullable().optional(),\n credit_details: GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema.nullable(),\n photo_avatar_id: z.string().describe(\"Photo avatar ID.\"),\n downloadable_video_link: z.string().describe(\"Download URL if requested.\").nullable().optional(),\n photo_avatar_inference_id: z.string().describe(\"Inference ID.\"),\n});\n\nexport const ganAiGetPhotoAvatarInferenceDetails = action(\"GAN_AI_GET_PHOTO_AVATAR_INFERENCE_DETAILS\", {\n slug: \"gan_ai-get-photo-avatar-inference-details\",\n name: \"Get photo avatar inference details\",\n description: \"Tool to fetch photo avatar inference details. Use after obtaining a valid inference ID to retrieve detailed information.\",\n input: GanAiGetPhotoAvatarInferenceDetailsInput,\n output: GanAiGetPhotoAvatarInferenceDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAAyDA,IAAAA,EAAE,OAAO;CAC7E,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC/H,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC1F,CAAC;AACD,MAAM,0DAAwEA,IAAAA,EAAE,OAAO;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;CAC1E,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C;AAC5E,CAAC;AACD,MAAa,4CAA0DA,IAAAA,EAAE,OAAO;CAC9E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1E,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;EAAa;CAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC;CACrH,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC5F,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,gBAAgB,wDAAwD,SAAS;CACjF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CACvD,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe;AAChE,CAAC;AAED,MAAa,sCAAsCC,eAAAA,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"get-photo-avatar-inference-details.cjs","names":["z","action"],"sources":["../../src/actions/get-photo-avatar-inference-details.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiGetPhotoAvatarInferenceDetailsInput = z.object({\n downloadable_link: z.boolean().default(false).describe(\"Include downloadable video link when true (default: false).\").optional(),\n photo_avatar_inference_id: z.string().describe(\"The photo avatar inference ID to fetch.\"),\n});\nconst GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema = z.object({\n gan_cost: z.number().describe(\"GAN processing cost used in the inference.\").nullable(),\n tts_cost: z.number().describe(\"Text-to-speech cost used in the inference.\").nullable(),\n});\nexport const GanAiGetPhotoAvatarInferenceDetailsOutput = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Title of the inference.\").optional()),\n video: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"CloudFront URL of the generated video.\").optional()),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Current status of the inference.\").nullable(),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Creation timestamp of the inference.\").optional()),\n input_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Input text used for generation.\").optional()),\n credit_details: GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema.nullable(),\n photo_avatar_id: z.string().describe(\"Photo avatar ID.\").nullable(),\n downloadable_video_link: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Download URL if requested.\").optional()),\n photo_avatar_inference_id: z.string().describe(\"Inference ID.\").nullable(),\n});\n\nexport const ganAiGetPhotoAvatarInferenceDetails = action(\"GAN_AI_GET_PHOTO_AVATAR_INFERENCE_DETAILS\", {\n slug: \"gan_ai-get-photo-avatar-inference-details\",\n name: \"Get photo avatar inference details\",\n description: \"Tool to fetch photo avatar inference details. Use after obtaining a valid inference ID to retrieve detailed information.\",\n input: GanAiGetPhotoAvatarInferenceDetailsInput,\n output: GanAiGetPhotoAvatarInferenceDetailsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,2CAA2CA,IAAAA,EAAE,OAAO;CAC/D,mBAAmBA,IAAAA,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC/H,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC1F,CAAC;AACD,MAAM,0DAA0DA,IAAAA,EAAE,OAAO;CACvE,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC;AACD,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC;CAC9H,OAAOA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;CAC7I,QAAQA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;EAAa;CAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAChI,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;CAChJ,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC;CAC3I,gBAAgB,wDAAwD,SAAS;CACjF,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;CAClE,yBAAyBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;CACnJ,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;AAC3E,CAAC;AAED,MAAa,sCAAsCC,eAAAA,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-photo-avatar-inference-details.d.ts
4
- declare const GanAiGetPhotoAvatarInferenceDetailsInput: z.ZodTypeAny;
5
- declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodTypeAny;
6
- declare const ganAiGetPhotoAvatarInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiGetPhotoAvatarInferenceDetailsInput: z.ZodObject<{
5
+ downloadable_link: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ photo_avatar_inference_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodObject<{
9
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ status: z.ZodNullable<z.ZodEnum<{
12
+ draft: "draft";
13
+ processing: "processing";
14
+ failed: "failed";
15
+ succeeded: "succeeded";
16
+ deleted: "deleted";
17
+ }>>;
18
+ created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ credit_details: z.ZodNullable<z.ZodObject<{
21
+ gan_cost: z.ZodNullable<z.ZodNumber>;
22
+ tts_cost: z.ZodNullable<z.ZodNumber>;
23
+ }, z.core.$strip>>;
24
+ photo_avatar_id: z.ZodNullable<z.ZodString>;
25
+ downloadable_video_link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ photo_avatar_inference_id: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ declare const ganAiGetPhotoAvatarInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ photo_avatar_inference_id: string;
30
+ downloadable_link?: boolean | undefined;
31
+ }, {
32
+ status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
33
+ credit_details: {
34
+ gan_cost: number | null;
35
+ tts_cost: number | null;
36
+ } | null;
37
+ photo_avatar_id: string | null;
38
+ photo_avatar_inference_id: string | null;
39
+ title?: string | undefined;
40
+ video?: string | undefined;
41
+ created_at?: string | undefined;
42
+ input_text?: string | undefined;
43
+ downloadable_video_link?: string | undefined;
44
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { ganAiGetPhotoAvatarInferenceDetails };
9
47
  //# sourceMappingURL=get-photo-avatar-inference-details.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-inference-details.d.cts","names":[],"sources":["../../src/actions/get-photo-avatar-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGvD;AAAA,cAKW,yCAAA,EAA2C,CAAA,CAAE,UAUxD;AAAA,cAEW,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-photo-avatar-inference-details.d.cts","names":[],"sources":["../../src/actions/get-photo-avatar-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAQxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYzC,mCAAA,gCAAmC,wBAAA"}
@@ -1,9 +1,47 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/get-photo-avatar-inference-details.d.ts
4
- declare const GanAiGetPhotoAvatarInferenceDetailsInput: z.ZodTypeAny;
5
- declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodTypeAny;
6
- declare const ganAiGetPhotoAvatarInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiGetPhotoAvatarInferenceDetailsInput: z.ZodObject<{
5
+ downloadable_link: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
6
+ photo_avatar_inference_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodObject<{
9
+ title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
+ video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
11
+ status: z.ZodNullable<z.ZodEnum<{
12
+ draft: "draft";
13
+ processing: "processing";
14
+ failed: "failed";
15
+ succeeded: "succeeded";
16
+ deleted: "deleted";
17
+ }>>;
18
+ created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
+ input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
20
+ credit_details: z.ZodNullable<z.ZodObject<{
21
+ gan_cost: z.ZodNullable<z.ZodNumber>;
22
+ tts_cost: z.ZodNullable<z.ZodNumber>;
23
+ }, z.core.$strip>>;
24
+ photo_avatar_id: z.ZodNullable<z.ZodString>;
25
+ downloadable_video_link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
26
+ photo_avatar_inference_id: z.ZodNullable<z.ZodString>;
27
+ }, z.core.$strip>;
28
+ declare const ganAiGetPhotoAvatarInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
29
+ photo_avatar_inference_id: string;
30
+ downloadable_link?: boolean | undefined;
31
+ }, {
32
+ status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
33
+ credit_details: {
34
+ gan_cost: number | null;
35
+ tts_cost: number | null;
36
+ } | null;
37
+ photo_avatar_id: string | null;
38
+ photo_avatar_inference_id: string | null;
39
+ title?: string | undefined;
40
+ video?: string | undefined;
41
+ created_at?: string | undefined;
42
+ input_text?: string | undefined;
43
+ downloadable_video_link?: string | undefined;
44
+ }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
45
  //#endregion
8
46
  export { ganAiGetPhotoAvatarInferenceDetails };
9
47
  //# sourceMappingURL=get-photo-avatar-inference-details.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-inference-details.d.mts","names":[],"sources":["../../src/actions/get-photo-avatar-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAA0C,CAAA,CAAE,UAGvD;AAAA,cAKW,yCAAA,EAA2C,CAAA,CAAE,UAUxD;AAAA,cAEW,mCAAA,gCAAmC,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"get-photo-avatar-inference-details.d.mts","names":[],"sources":["../../src/actions/get-photo-avatar-inference-details.ts"],"mappings":";;;cAIa,wCAAA,EAAwC,CAAA,CAAA,SAAA;;;;cAQxC,yCAAA,EAAyC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAYzC,mCAAA,gCAAmC,wBAAA"}
@@ -6,8 +6,8 @@ const GanAiGetPhotoAvatarInferenceDetailsInput = z.object({
6
6
  photo_avatar_inference_id: z.string().describe("The photo avatar inference ID to fetch.")
7
7
  });
8
8
  const GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema = z.object({
9
- gan_cost: z.number().describe("GAN processing cost used in the inference."),
10
- tts_cost: z.number().describe("Text-to-speech cost used in the inference.")
9
+ gan_cost: z.number().describe("GAN processing cost used in the inference.").nullable(),
10
+ tts_cost: z.number().describe("Text-to-speech cost used in the inference.").nullable()
11
11
  });
12
12
  const ganAiGetPhotoAvatarInferenceDetails = action("GAN_AI_GET_PHOTO_AVATAR_INFERENCE_DETAILS", {
13
13
  slug: "gan_ai-get-photo-avatar-inference-details",
@@ -15,21 +15,21 @@ const ganAiGetPhotoAvatarInferenceDetails = action("GAN_AI_GET_PHOTO_AVATAR_INFE
15
15
  description: "Tool to fetch photo avatar inference details. Use after obtaining a valid inference ID to retrieve detailed information.",
16
16
  input: GanAiGetPhotoAvatarInferenceDetailsInput,
17
17
  output: z.object({
18
- title: z.string().describe("Title of the inference.").nullable().optional(),
19
- video: z.string().describe("CloudFront URL of the generated video.").nullable().optional(),
18
+ title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Title of the inference.").optional()),
19
+ video: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("CloudFront URL of the generated video.").optional()),
20
20
  status: z.enum([
21
21
  "draft",
22
22
  "processing",
23
23
  "failed",
24
24
  "succeeded",
25
25
  "deleted"
26
- ]).describe("Current status of the inference."),
27
- created_at: z.string().describe("Creation timestamp of the inference.").nullable().optional(),
28
- input_text: z.string().describe("Input text used for generation.").nullable().optional(),
26
+ ]).describe("Current status of the inference.").nullable(),
27
+ created_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Creation timestamp of the inference.").optional()),
28
+ input_text: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Input text used for generation.").optional()),
29
29
  credit_details: GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema.nullable(),
30
- photo_avatar_id: z.string().describe("Photo avatar ID."),
31
- downloadable_video_link: z.string().describe("Download URL if requested.").nullable().optional(),
32
- photo_avatar_inference_id: z.string().describe("Inference ID.")
30
+ photo_avatar_id: z.string().describe("Photo avatar ID.").nullable(),
31
+ downloadable_video_link: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Download URL if requested.").optional()),
32
+ photo_avatar_inference_id: z.string().describe("Inference ID.").nullable()
33
33
  })
34
34
  });
35
35
  //#endregion