@keystrokehq/gan_ai 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/README.md +1 -1
  2. package/dist/action.cjs.map +1 -1
  3. package/dist/action.mjs.map +1 -1
  4. package/dist/actions/get-avatar-video-inference-details.cjs +7 -7
  5. package/dist/actions/get-avatar-video-inference-details.cjs.map +1 -1
  6. package/dist/actions/get-avatar-video-inference-details.d.cts +8 -18
  7. package/dist/actions/get-avatar-video-inference-details.d.mts +8 -18
  8. package/dist/actions/get-avatar-video-inference-details.mjs +7 -7
  9. package/dist/actions/get-avatar-video-inference-details.mjs.map +1 -1
  10. package/dist/actions/get-photo-avatar-details.cjs +4 -4
  11. package/dist/actions/get-photo-avatar-details.cjs.map +1 -1
  12. package/dist/actions/get-photo-avatar-details.d.cts +5 -11
  13. package/dist/actions/get-photo-avatar-details.d.mts +5 -11
  14. package/dist/actions/get-photo-avatar-details.mjs +4 -4
  15. package/dist/actions/get-photo-avatar-details.mjs.map +1 -1
  16. package/dist/actions/get-photo-avatar-inference-details.cjs +7 -7
  17. package/dist/actions/get-photo-avatar-inference-details.cjs.map +1 -1
  18. package/dist/actions/get-photo-avatar-inference-details.d.cts +8 -21
  19. package/dist/actions/get-photo-avatar-inference-details.d.mts +8 -21
  20. package/dist/actions/get-photo-avatar-inference-details.mjs +7 -7
  21. package/dist/actions/get-photo-avatar-inference-details.mjs.map +1 -1
  22. package/dist/actions/list-avatar-videos.cjs +9 -9
  23. package/dist/actions/list-avatar-videos.cjs.map +1 -1
  24. package/dist/actions/list-avatar-videos.d.cts +10 -23
  25. package/dist/actions/list-avatar-videos.d.mts +10 -23
  26. package/dist/actions/list-avatar-videos.mjs +9 -9
  27. package/dist/actions/list-avatar-videos.mjs.map +1 -1
  28. package/dist/actions/list-photo-avatar-inferences.cjs +9 -9
  29. package/dist/actions/list-photo-avatar-inferences.cjs.map +1 -1
  30. package/dist/actions/list-photo-avatar-inferences.d.cts +10 -26
  31. package/dist/actions/list-photo-avatar-inferences.d.mts +10 -26
  32. package/dist/actions/list-photo-avatar-inferences.mjs +9 -9
  33. package/dist/actions/list-photo-avatar-inferences.mjs.map +1 -1
  34. package/dist/actions/list-photo-avatars.cjs +10 -10
  35. package/dist/actions/list-photo-avatars.cjs.map +1 -1
  36. package/dist/actions/list-photo-avatars.d.cts +11 -24
  37. package/dist/actions/list-photo-avatars.d.mts +11 -24
  38. package/dist/actions/list-photo-avatars.mjs +10 -10
  39. package/dist/actions/list-photo-avatars.mjs.map +1 -1
  40. package/dist/actions/login.cjs +1 -1
  41. package/dist/actions/login.cjs.map +1 -1
  42. package/dist/actions/login.d.cts +2 -5
  43. package/dist/actions/login.d.mts +2 -5
  44. package/dist/actions/login.mjs +1 -1
  45. package/dist/actions/login.mjs.map +1 -1
  46. package/dist/actions/tts.cjs +1 -1
  47. package/dist/actions/tts.cjs.map +1 -1
  48. package/dist/actions/tts.d.cts +2 -5
  49. package/dist/actions/tts.d.mts +2 -5
  50. package/dist/actions/tts.mjs +1 -1
  51. package/dist/actions/tts.mjs.map +1 -1
  52. package/dist/execute.cjs +1 -1
  53. package/dist/execute.cjs.map +1 -1
  54. package/dist/execute.mjs +1 -1
  55. package/dist/execute.mjs.map +1 -1
  56. package/package.json +1 -1
package/README.md CHANGED
@@ -3,7 +3,7 @@
3
3
  Keystroke-managed integration.
4
4
 
5
5
  **App:** `gan_ai`
6
- **Version:** `20260615_00`
6
+ **Version:** `20260707_00`
7
7
  **Actions:** 8
8
8
 
9
9
  ```ts
@@ -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 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
+ {"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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return ganAi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await 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 +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 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"}
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<TInput extends z.ZodType>(\n tool: string,\n def: {\n slug: string;\n name: string;\n description: string;\n input: TInput;\n output: z.ZodType;\n },\n) {\n return ganAi.action({\n slug: def.slug,\n name: def.name,\n description: def.description,\n input: def.input,\n output: def.output as z.ZodTypeAny,\n async run(input) {\n return def.output.parse(await 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"}
@@ -3,8 +3,8 @@ 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.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()),
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(),
8
8
  status: zod.z.enum([
9
9
  "draft",
10
10
  "processing",
@@ -13,12 +13,12 @@ const GanAiGetAvatarVideoInferenceDetailsOutput = zod.z.object({
13
13
  "deleted"
14
14
  ]).describe("Current state of the inference.").nullable(),
15
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()),
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
20
  inference_id: zod.z.string().describe("Inference ID (UUID).").nullable()
21
- });
21
+ }).passthrough();
22
22
  const ganAiGetAvatarVideoInferenceDetails = require_action.action("GAN_AI_GET_AVATAR_VIDEO_INFERENCE_DETAILS", {
23
23
  slug: "gan_ai-get-avatar-video-inference-details",
24
24
  name: "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.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
+ {"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.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.\").nullable(),\n avatar_id: z.string().describe(\"Avatar ID (UUID).\").nullable(),\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).\").nullable(),\n}).passthrough();\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,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,CAAC,CAAC,SAAS;CAC/H,WAAWA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;CAC7D,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,CAAC,CAAC,SAAS;AACrE,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sCAAsCC,eAAAA,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,8 +5,8 @@ declare const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodObject<{
5
5
  inference_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodObject<{
8
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  status: z.ZodNullable<z.ZodEnum<{
11
11
  draft: "draft";
12
12
  processing: "processing";
@@ -15,25 +15,15 @@ declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodObject<{
15
15
  deleted: "deleted";
16
16
  }>>;
17
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>>;
18
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ avatar_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  inference_id: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const ganAiGetAvatarVideoInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
25
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]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
27
  //#endregion
38
28
  export { ganAiGetAvatarVideoInferenceDetails };
39
29
  //# sourceMappingURL=get-avatar-video-inference-details.d.cts.map
@@ -5,8 +5,8 @@ declare const GanAiGetAvatarVideoInferenceDetailsInput: z.ZodObject<{
5
5
  inference_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodObject<{
8
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
10
  status: z.ZodNullable<z.ZodEnum<{
11
11
  draft: "draft";
12
12
  processing: "processing";
@@ -15,25 +15,15 @@ declare const GanAiGetAvatarVideoInferenceDetailsOutput: z.ZodObject<{
15
15
  deleted: "deleted";
16
16
  }>>;
17
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>>;
18
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ avatar_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
22
  inference_id: z.ZodNullable<z.ZodString>;
23
- }, z.core.$strip>;
23
+ }, z.core.$loose>;
24
24
  declare const ganAiGetAvatarVideoInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
25
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]>;
26
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
37
27
  //#endregion
38
28
  export { ganAiGetAvatarVideoInferenceDetails };
39
29
  //# sourceMappingURL=get-avatar-video-inference-details.d.mts.map
@@ -6,8 +6,8 @@ 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.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()),
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(),
11
11
  status: z.enum([
12
12
  "draft",
13
13
  "processing",
@@ -16,12 +16,12 @@ const ganAiGetAvatarVideoInferenceDetails = action("GAN_AI_GET_AVATAR_VIDEO_INFE
16
16
  "deleted"
17
17
  ]).describe("Current state of the inference.").nullable(),
18
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()),
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
23
  inference_id: z.string().describe("Inference ID (UUID).").nullable()
24
- })
24
+ }).passthrough()
25
25
  });
26
26
  //#endregion
27
27
  export { ganAiGetAvatarVideoInferenceDetails };
@@ -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.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"}
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.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.\").nullable(),\n avatar_id: z.string().describe(\"Avatar ID (UUID).\").nullable(),\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).\").nullable(),\n}).passthrough();\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,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,CAAC,CAAC,SAAS;EAC/H,WAAW,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAC7D,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,CAAC,CAAC,SAAS;CACrE,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -3,7 +3,7 @@ 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.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Avatar title if set").optional()),
6
+ title: zod.z.string().describe("Avatar title if set").nullable().optional(),
7
7
  status: zod.z.enum([
8
8
  "draft",
9
9
  "failed",
@@ -11,10 +11,10 @@ const GanAiGetPhotoAvatarDetailsOutput = zod.z.object({
11
11
  "published",
12
12
  "deleted"
13
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()),
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
16
  photo_avatar_id: zod.z.string().describe("The avatar's unique identifier").nullable()
17
- });
17
+ }).passthrough();
18
18
  const ganAiGetPhotoAvatarDetails = require_action.action("GAN_AI_GET_PHOTO_AVATAR_DETAILS", {
19
19
  slug: "gan_ai-get-photo-avatar-details",
20
20
  name: "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.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
+ {"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.string().describe(\"Avatar title if set\").nullable().optional(),\n status: z.enum([\"draft\", \"failed\", \"processing\", \"published\", \"deleted\"]).describe(\"Current status of the photo avatar\").nullable(),\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\").nullable(),\n}).passthrough();\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,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,CAAC,CAAC,SAAS;CAClI,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,CAAC,CAAC,SAAS;AAClF,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,6BAA6BC,eAAAA,OAAO,mCAAmC;CAClF,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -5,7 +5,7 @@ declare const GanAiGetPhotoAvatarDetailsInput: z.ZodObject<{
5
5
  photo_avatar_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodObject<{
8
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  status: z.ZodNullable<z.ZodEnum<{
10
10
  draft: "draft";
11
11
  processing: "processing";
@@ -13,19 +13,13 @@ declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodObject<{
13
13
  deleted: "deleted";
14
14
  published: "published";
15
15
  }>>;
16
- base_image: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ base_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  photo_avatar_id: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const ganAiGetPhotoAvatarDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
21
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]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
23
  //#endregion
30
24
  export { ganAiGetPhotoAvatarDetails };
31
25
  //# sourceMappingURL=get-photo-avatar-details.d.cts.map
@@ -5,7 +5,7 @@ declare const GanAiGetPhotoAvatarDetailsInput: z.ZodObject<{
5
5
  photo_avatar_id: z.ZodString;
6
6
  }, z.core.$strip>;
7
7
  declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodObject<{
8
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
8
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
9
  status: z.ZodNullable<z.ZodEnum<{
10
10
  draft: "draft";
11
11
  processing: "processing";
@@ -13,19 +13,13 @@ declare const GanAiGetPhotoAvatarDetailsOutput: z.ZodObject<{
13
13
  deleted: "deleted";
14
14
  published: "published";
15
15
  }>>;
16
- base_image: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
17
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
16
+ base_image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
18
  photo_avatar_id: z.ZodNullable<z.ZodString>;
19
- }, z.core.$strip>;
19
+ }, z.core.$loose>;
20
20
  declare const ganAiGetPhotoAvatarDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
21
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]>;
22
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
29
23
  //#endregion
30
24
  export { ganAiGetPhotoAvatarDetails };
31
25
  //# sourceMappingURL=get-photo-avatar-details.d.mts.map
@@ -6,7 +6,7 @@ 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.preprocess((value) => value === null ? void 0 : value, z.string().describe("Avatar title if set").optional()),
9
+ title: z.string().describe("Avatar title if set").nullable().optional(),
10
10
  status: z.enum([
11
11
  "draft",
12
12
  "failed",
@@ -14,10 +14,10 @@ const ganAiGetPhotoAvatarDetails = action("GAN_AI_GET_PHOTO_AVATAR_DETAILS", {
14
14
  "published",
15
15
  "deleted"
16
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()),
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
19
  photo_avatar_id: z.string().describe("The avatar's unique identifier").nullable()
20
- })
20
+ }).passthrough()
21
21
  });
22
22
  //#endregion
23
23
  export { ganAiGetPhotoAvatarDetails };
@@ -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.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"}
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.string().describe(\"Avatar title if set\").nullable().optional(),\n status: z.enum([\"draft\", \"failed\", \"processing\", \"published\", \"deleted\"]).describe(\"Current status of the photo avatar\").nullable(),\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\").nullable(),\n}).passthrough();\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,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,CAAC,CAAC,SAAS;EAClI,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,CAAC,CAAC,SAAS;CAClF,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}
@@ -8,10 +8,10 @@ const GanAiGetPhotoAvatarInferenceDetailsInput = zod.z.object({
8
8
  const GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema = zod.z.object({
9
9
  gan_cost: zod.z.number().describe("GAN processing cost used in the inference.").nullable(),
10
10
  tts_cost: zod.z.number().describe("Text-to-speech cost used in the inference.").nullable()
11
- });
11
+ }).passthrough();
12
12
  const GanAiGetPhotoAvatarInferenceDetailsOutput = zod.z.object({
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()),
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(),
15
15
  status: zod.z.enum([
16
16
  "draft",
17
17
  "processing",
@@ -19,13 +19,13 @@ const GanAiGetPhotoAvatarInferenceDetailsOutput = zod.z.object({
19
19
  "succeeded",
20
20
  "deleted"
21
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()),
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(),
24
24
  credit_details: GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema.nullable(),
25
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()),
26
+ downloadable_video_link: zod.z.string().describe("Download URL if requested.").nullable().optional(),
27
27
  photo_avatar_inference_id: zod.z.string().describe("Inference ID.").nullable()
28
- });
28
+ }).passthrough();
29
29
  const ganAiGetPhotoAvatarInferenceDetails = require_action.action("GAN_AI_GET_PHOTO_AVATAR_INFERENCE_DETAILS", {
30
30
  slug: "gan_ai-get-photo-avatar-inference-details",
31
31
  name: "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.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
+ {"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}).passthrough();\nexport const GanAiGetPhotoAvatarInferenceDetailsOutput = 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.\").nullable(),\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.\").nullable(),\n downloadable_video_link: z.string().describe(\"Download URL if requested.\").nullable().optional(),\n photo_avatar_inference_id: z.string().describe(\"Inference ID.\").nullable(),\n}).passthrough();\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,CAAC,CAAC,YAAY;AACf,MAAa,4CAA4CA,IAAAA,EAAE,OAAO;CAChE,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,CAAC,CAAC,SAAS;CAChI,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,CAAC,CAAC,SAAS;CAClE,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC/F,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;AAC3E,CAAC,CAAC,CAAC,YAAY;AAEf,MAAa,sCAAsCC,eAAAA,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,8 +6,8 @@ declare const GanAiGetPhotoAvatarInferenceDetailsInput: z.ZodObject<{
6
6
  photo_avatar_inference_id: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodObject<{
9
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  status: z.ZodNullable<z.ZodEnum<{
12
12
  draft: "draft";
13
13
  processing: "processing";
@@ -15,33 +15,20 @@ declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodObject<{
15
15
  succeeded: "succeeded";
16
16
  deleted: "deleted";
17
17
  }>>;
18
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  credit_details: z.ZodNullable<z.ZodObject<{
21
21
  gan_cost: z.ZodNullable<z.ZodNumber>;
22
22
  tts_cost: z.ZodNullable<z.ZodNumber>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  photo_avatar_id: z.ZodNullable<z.ZodString>;
25
- downloadable_video_link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ downloadable_video_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  photo_avatar_inference_id: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const ganAiGetPhotoAvatarInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  photo_avatar_inference_id: string;
30
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]>;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
32
  //#endregion
46
33
  export { ganAiGetPhotoAvatarInferenceDetails };
47
34
  //# sourceMappingURL=get-photo-avatar-inference-details.d.cts.map
@@ -6,8 +6,8 @@ declare const GanAiGetPhotoAvatarInferenceDetailsInput: z.ZodObject<{
6
6
  photo_avatar_inference_id: z.ZodString;
7
7
  }, z.core.$strip>;
8
8
  declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodObject<{
9
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
10
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
9
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
10
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
11
  status: z.ZodNullable<z.ZodEnum<{
12
12
  draft: "draft";
13
13
  processing: "processing";
@@ -15,33 +15,20 @@ declare const GanAiGetPhotoAvatarInferenceDetailsOutput: z.ZodObject<{
15
15
  succeeded: "succeeded";
16
16
  deleted: "deleted";
17
17
  }>>;
18
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
19
- input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
18
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
20
  credit_details: z.ZodNullable<z.ZodObject<{
21
21
  gan_cost: z.ZodNullable<z.ZodNumber>;
22
22
  tts_cost: z.ZodNullable<z.ZodNumber>;
23
- }, z.core.$strip>>;
23
+ }, z.core.$loose>>;
24
24
  photo_avatar_id: z.ZodNullable<z.ZodString>;
25
- downloadable_video_link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
25
+ downloadable_video_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
26
  photo_avatar_inference_id: z.ZodNullable<z.ZodString>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  declare const ganAiGetPhotoAvatarInferenceDetails: import("@keystrokehq/action").WorkflowActionDefinition<{
29
29
  photo_avatar_inference_id: string;
30
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]>;
31
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
45
32
  //#endregion
46
33
  export { ganAiGetPhotoAvatarInferenceDetails };
47
34
  //# sourceMappingURL=get-photo-avatar-inference-details.d.mts.map
@@ -8,15 +8,15 @@ const GanAiGetPhotoAvatarInferenceDetailsInput = z.object({
8
8
  const GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema = z.object({
9
9
  gan_cost: z.number().describe("GAN processing cost used in the inference.").nullable(),
10
10
  tts_cost: z.number().describe("Text-to-speech cost used in the inference.").nullable()
11
- });
11
+ }).passthrough();
12
12
  const ganAiGetPhotoAvatarInferenceDetails = action("GAN_AI_GET_PHOTO_AVATAR_INFERENCE_DETAILS", {
13
13
  slug: "gan_ai-get-photo-avatar-inference-details",
14
14
  name: "Get photo avatar inference details",
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.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()),
18
+ title: z.string().describe("Title of the inference.").nullable().optional(),
19
+ video: z.string().describe("CloudFront URL of the generated video.").nullable().optional(),
20
20
  status: z.enum([
21
21
  "draft",
22
22
  "processing",
@@ -24,13 +24,13 @@ const ganAiGetPhotoAvatarInferenceDetails = action("GAN_AI_GET_PHOTO_AVATAR_INFE
24
24
  "succeeded",
25
25
  "deleted"
26
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()),
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(),
29
29
  credit_details: GanAiGetPhotoAvatarInferenceDetails_CreditDetailsSchema.nullable(),
30
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()),
31
+ downloadable_video_link: z.string().describe("Download URL if requested.").nullable().optional(),
32
32
  photo_avatar_inference_id: z.string().describe("Inference ID.").nullable()
33
- })
33
+ }).passthrough()
34
34
  });
35
35
  //#endregion
36
36
  export { ganAiGetPhotoAvatarInferenceDetails };
@@ -1 +1 @@
1
- {"version":3,"file":"get-photo-avatar-inference-details.mjs","names":[],"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,2CAA2C,EAAE,OAAO;CAC/D,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC/H,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC1F,CAAC;AACD,MAAM,0DAA0D,EAAE,OAAO;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC;AAaD,MAAa,sCAAsC,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBuD,EAAE,OAAO;EAChE,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC;EAC9H,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC;EAC7I,QAAQ,EAAE,KAAK;GAAC;GAAS;GAAc;GAAU;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC;EAChJ,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC;EAC3I,gBAAgB,wDAAwD,SAAS;EACjF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAClE,yBAAyB,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC;EACnJ,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC3E,CAOU;AACV,CAAC"}
1
+ {"version":3,"file":"get-photo-avatar-inference-details.mjs","names":[],"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}).passthrough();\nexport const GanAiGetPhotoAvatarInferenceDetailsOutput = 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.\").nullable(),\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.\").nullable(),\n downloadable_video_link: z.string().describe(\"Download URL if requested.\").nullable().optional(),\n photo_avatar_inference_id: z.string().describe(\"Inference ID.\").nullable(),\n}).passthrough();\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,2CAA2C,EAAE,OAAO;CAC/D,mBAAmB,EAAE,QAAQ,CAAC,CAAC,QAAQ,KAAK,CAAC,CAAC,SAAS,6DAA6D,CAAC,CAAC,SAAS;CAC/H,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC;AAC1F,CAAC;AACD,MAAM,0DAA0D,EAAE,OAAO;CACvE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;CACrF,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,4CAA4C,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,YAAY;AAaf,MAAa,sCAAsC,OAAO,6CAA6C;CACrG,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAjBuD,EAAE,OAAO;EAChE,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,yBAAyB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACzF,QAAQ,EAAE,KAAK;GAAC;GAAS;GAAc;GAAU;GAAa;EAAS,CAAC,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;EAChI,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC5F,YAAY,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EACvF,gBAAgB,wDAAwD,SAAS;EACjF,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB,CAAC,CAAC,SAAS;EAClE,yBAAyB,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC/F,2BAA2B,EAAE,OAAO,CAAC,CAAC,SAAS,eAAe,CAAC,CAAC,SAAS;CAC3E,CAAC,CAAC,CAAC,YAOO;AACV,CAAC"}