@keystrokehq/gan_ai 0.1.1 → 0.1.2

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 (43) 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 +6 -6
  4. package/dist/actions/get-avatar-video-inference-details.cjs.map +1 -1
  5. package/dist/actions/get-avatar-video-inference-details.d.cts +9 -19
  6. package/dist/actions/get-avatar-video-inference-details.d.mts +9 -19
  7. package/dist/actions/get-avatar-video-inference-details.mjs +6 -6
  8. package/dist/actions/get-avatar-video-inference-details.mjs.map +1 -1
  9. package/dist/actions/get-photo-avatar-details.cjs +3 -3
  10. package/dist/actions/get-photo-avatar-details.cjs.map +1 -1
  11. package/dist/actions/get-photo-avatar-details.d.cts +6 -12
  12. package/dist/actions/get-photo-avatar-details.d.mts +6 -12
  13. package/dist/actions/get-photo-avatar-details.mjs +3 -3
  14. package/dist/actions/get-photo-avatar-details.mjs.map +1 -1
  15. package/dist/actions/get-photo-avatar-inference-details.cjs +5 -5
  16. package/dist/actions/get-photo-avatar-inference-details.cjs.map +1 -1
  17. package/dist/actions/get-photo-avatar-inference-details.d.cts +8 -21
  18. package/dist/actions/get-photo-avatar-inference-details.d.mts +8 -21
  19. package/dist/actions/get-photo-avatar-inference-details.mjs +5 -5
  20. package/dist/actions/get-photo-avatar-inference-details.mjs.map +1 -1
  21. package/dist/actions/list-avatar-videos.cjs +7 -7
  22. package/dist/actions/list-avatar-videos.cjs.map +1 -1
  23. package/dist/actions/list-avatar-videos.d.cts +13 -26
  24. package/dist/actions/list-avatar-videos.d.mts +13 -26
  25. package/dist/actions/list-avatar-videos.mjs +7 -7
  26. package/dist/actions/list-avatar-videos.mjs.map +1 -1
  27. package/dist/actions/list-photo-avatar-inferences.cjs +6 -6
  28. package/dist/actions/list-photo-avatar-inferences.cjs.map +1 -1
  29. package/dist/actions/list-photo-avatar-inferences.d.cts +12 -28
  30. package/dist/actions/list-photo-avatar-inferences.d.mts +12 -28
  31. package/dist/actions/list-photo-avatar-inferences.mjs +6 -6
  32. package/dist/actions/list-photo-avatar-inferences.mjs.map +1 -1
  33. package/dist/actions/list-photo-avatars.cjs +7 -7
  34. package/dist/actions/list-photo-avatars.cjs.map +1 -1
  35. package/dist/actions/list-photo-avatars.d.cts +8 -21
  36. package/dist/actions/list-photo-avatars.d.mts +8 -21
  37. package/dist/actions/list-photo-avatars.mjs +7 -7
  38. package/dist/actions/list-photo-avatars.mjs.map +1 -1
  39. package/dist/actions/login.d.cts +1 -4
  40. package/dist/actions/login.d.mts +1 -4
  41. package/dist/actions/tts.d.cts +1 -4
  42. package/dist/actions/tts.d.mts +1 -4
  43. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"list-avatar-videos.cjs","names":["z","action"],"sources":["../../src/actions/list-avatar-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListAvatarVideosInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip). Default is 0.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return. Default is 10.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n avatar_id: z.string().describe(\"UUID of the avatar to filter by.\").optional(),\n avatar_title: z.string().describe(\"Filter by avatar title.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end timestamp for filtering.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start timestamp for filtering.\").optional(),\n inference_title: z.string().describe(\"Filter by inference/video title.\").optional(),\n}).describe(\"Request parameters for listing avatar video inferences.\");\nconst GanAiListAvatarVideos_AvatarInferenceDetailsSchema = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Inference/video title.\").optional()),\n video: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the generated video.\").optional()),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Status of the inference.\").nullable(),\n avatar_id: z.string().describe(\"UUID of the avatar.\").nullable(),\n thumbnail: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the video thumbnail.\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp of creation.\").optional()),\n input_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Input text used for generation.\").optional()),\n avatar_title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Title of the avatar.\").optional()),\n inference_id: z.string().describe(\"UUID of the generated video inference.\").nullable(),\n}).describe(\"Details of a single avatar video inference.\");\nexport const GanAiListAvatarVideosOutput = z.object({\n data: z.preprocess((value) => (value === null ? undefined : value), z.array(GanAiListAvatarVideos_AvatarInferenceDetailsSchema).describe(\"List of avatar video inference objects.\").optional()),\n total: z.number().int().describe(\"Total number of matching inferences.\").nullable(),\n}).describe(\"Response schema for listing avatar video inferences.\");\n\nexport const ganAiListAvatarVideos = action(\"GAN_AI_LIST_AVATAR_VIDEOS\", {\n slug: \"gan_ai-list-avatar-videos\",\n name: \"List avatar video inferences\",\n description: \"Tool to list avatar video inferences. Use when you need to retrieve generated avatar videos with optional filtering by avatar ID, title, status, or date range.\",\n input: GanAiListAvatarVideosInput,\n output: GanAiListAvatarVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,4DAA4D,CAAC,CAAC,SAAS;CAClH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAC3G,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE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A,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC;CAC3I,YAAYA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC;CAC3I,cAAcA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAClI,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;CAC9L,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-avatar-videos.cjs","names":["z","action"],"sources":["../../src/actions/list-avatar-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListAvatarVideosInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip). Default is 0.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return. Default is 10.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n avatar_id: z.string().describe(\"UUID of the avatar to filter by.\").optional(),\n avatar_title: z.string().describe(\"Filter by avatar title.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end timestamp for filtering.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start timestamp for filtering.\").optional(),\n inference_title: z.string().describe(\"Filter by inference/video title.\").optional(),\n}).describe(\"Request parameters for listing avatar video inferences.\");\nconst GanAiListAvatarVideos_AvatarInferenceDetailsSchema = z.object({\n title: z.string().describe(\"Inference/video title.\").nullable().optional(),\n video: z.string().describe(\"URL of the generated video.\").nullable().optional(),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Status of the inference.\").nullable(),\n avatar_id: z.string().describe(\"UUID of the avatar.\").nullable(),\n thumbnail: z.string().describe(\"URL of the video thumbnail.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable().optional(),\n input_text: z.string().describe(\"Input text used for generation.\").nullable().optional(),\n avatar_title: z.string().describe(\"Title of the avatar.\").nullable().optional(),\n inference_id: z.string().describe(\"UUID of the generated video inference.\").nullable(),\n}).describe(\"Details of a single avatar video inference.\");\nexport const GanAiListAvatarVideosOutput = z.object({\n data: z.array(GanAiListAvatarVideos_AvatarInferenceDetailsSchema).describe(\"List of avatar video inference objects.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of matching inferences.\").nullable(),\n}).describe(\"Response schema for listing avatar video inferences.\");\n\nexport const ganAiListAvatarVideos = action(\"GAN_AI_LIST_AVATAR_VIDEOS\", {\n slug: \"gan_ai-list-avatar-videos\",\n name: \"List avatar video inferences\",\n description: \"Tool to list avatar video inferences. Use when you need to retrieve generated avatar videos with optional filtering by avatar ID, title, status, or date range.\",\n input: GanAiListAvatarVideosInput,\n output: GanAiListAvatarVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,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AC,CAAC,SAAS,6BAA6B,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAClF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC1I,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -6,10 +6,10 @@ declare const GanAiListAvatarVideosInput: z.ZodObject<{
6
6
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
7
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8
8
  draft: "draft";
9
- processing: "processing";
10
9
  failed: "failed";
11
- succeeded: "succeeded";
10
+ processing: "processing";
12
11
  deleted: "deleted";
12
+ succeeded: "succeeded";
13
13
  }>>>;
14
14
  avatar_id: z.ZodOptional<z.ZodString>;
15
15
  avatar_title: z.ZodOptional<z.ZodString>;
@@ -18,21 +18,21 @@ declare const GanAiListAvatarVideosInput: z.ZodObject<{
18
18
  inference_title: z.ZodOptional<z.ZodString>;
19
19
  }, z.core.$strip>;
20
20
  declare const GanAiListAvatarVideosOutput: z.ZodObject<{
21
- data: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
22
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  status: z.ZodNullable<z.ZodEnum<{
25
25
  draft: "draft";
26
- processing: "processing";
27
26
  failed: "failed";
28
- succeeded: "succeeded";
27
+ processing: "processing";
29
28
  deleted: "deleted";
29
+ succeeded: "succeeded";
30
30
  }>>;
31
31
  avatar_id: z.ZodNullable<z.ZodString>;
32
- thumbnail: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
- input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- avatar_title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ avatar_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  inference_id: z.ZodNullable<z.ZodString>;
37
37
  }, z.core.$strip>>>>;
38
38
  total: z.ZodNullable<z.ZodNumber>;
@@ -40,26 +40,13 @@ declare const GanAiListAvatarVideosOutput: z.ZodObject<{
40
40
  declare const ganAiListAvatarVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
41
41
  skip?: number | undefined;
42
42
  limit?: number | undefined;
43
- status?: ("draft" | "processing" | "failed" | "succeeded" | "deleted")[] | undefined;
43
+ status?: ("draft" | "failed" | "processing" | "deleted" | "succeeded")[] | undefined;
44
44
  avatar_id?: string | undefined;
45
45
  avatar_title?: string | undefined;
46
46
  end_datetime?: string | undefined;
47
47
  start_datetime?: string | undefined;
48
48
  inference_title?: string | undefined;
49
- }, {
50
- total: number | null;
51
- data?: {
52
- status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
53
- avatar_id: string | null;
54
- inference_id: string | null;
55
- title?: string | undefined;
56
- video?: string | undefined;
57
- thumbnail?: string | undefined;
58
- created_at?: string | undefined;
59
- input_text?: string | undefined;
60
- avatar_title?: string | undefined;
61
- }[] | undefined;
62
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
50
  //#endregion
64
51
  export { ganAiListAvatarVideos };
65
52
  //# sourceMappingURL=list-avatar-videos.d.cts.map
@@ -6,10 +6,10 @@ declare const GanAiListAvatarVideosInput: z.ZodObject<{
6
6
  limit: z.ZodOptional<z.ZodDefault<z.ZodNumber>>;
7
7
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
8
8
  draft: "draft";
9
- processing: "processing";
10
9
  failed: "failed";
11
- succeeded: "succeeded";
10
+ processing: "processing";
12
11
  deleted: "deleted";
12
+ succeeded: "succeeded";
13
13
  }>>>;
14
14
  avatar_id: z.ZodOptional<z.ZodString>;
15
15
  avatar_title: z.ZodOptional<z.ZodString>;
@@ -18,21 +18,21 @@ declare const GanAiListAvatarVideosInput: z.ZodObject<{
18
18
  inference_title: z.ZodOptional<z.ZodString>;
19
19
  }, z.core.$strip>;
20
20
  declare const GanAiListAvatarVideosOutput: z.ZodObject<{
21
- data: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
22
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ data: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  status: z.ZodNullable<z.ZodEnum<{
25
25
  draft: "draft";
26
- processing: "processing";
27
26
  failed: "failed";
28
- succeeded: "succeeded";
27
+ processing: "processing";
29
28
  deleted: "deleted";
29
+ succeeded: "succeeded";
30
30
  }>>;
31
31
  avatar_id: z.ZodNullable<z.ZodString>;
32
- thumbnail: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
33
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
34
- input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
35
- avatar_title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
+ thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ avatar_title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
36
  inference_id: z.ZodNullable<z.ZodString>;
37
37
  }, z.core.$strip>>>>;
38
38
  total: z.ZodNullable<z.ZodNumber>;
@@ -40,26 +40,13 @@ declare const GanAiListAvatarVideosOutput: z.ZodObject<{
40
40
  declare const ganAiListAvatarVideos: import("@keystrokehq/action").WorkflowActionDefinition<{
41
41
  skip?: number | undefined;
42
42
  limit?: number | undefined;
43
- status?: ("draft" | "processing" | "failed" | "succeeded" | "deleted")[] | undefined;
43
+ status?: ("draft" | "failed" | "processing" | "deleted" | "succeeded")[] | undefined;
44
44
  avatar_id?: string | undefined;
45
45
  avatar_title?: string | undefined;
46
46
  end_datetime?: string | undefined;
47
47
  start_datetime?: string | undefined;
48
48
  inference_title?: string | undefined;
49
- }, {
50
- total: number | null;
51
- data?: {
52
- status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
53
- avatar_id: string | null;
54
- inference_id: string | null;
55
- title?: string | undefined;
56
- video?: string | undefined;
57
- thumbnail?: string | undefined;
58
- created_at?: string | undefined;
59
- input_text?: string | undefined;
60
- avatar_title?: string | undefined;
61
- }[] | undefined;
62
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
49
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
63
50
  //#endregion
64
51
  export { ganAiListAvatarVideos };
65
52
  //# sourceMappingURL=list-avatar-videos.d.mts.map
@@ -18,8 +18,8 @@ const GanAiListAvatarVideosInput = z.object({
18
18
  inference_title: z.string().describe("Filter by inference/video title.").optional()
19
19
  }).describe("Request parameters for listing avatar video inferences.");
20
20
  const GanAiListAvatarVideos_AvatarInferenceDetailsSchema = z.object({
21
- title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Inference/video title.").optional()),
22
- video: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL of the generated video.").optional()),
21
+ title: z.string().describe("Inference/video title.").nullable().optional(),
22
+ video: z.string().describe("URL of the generated video.").nullable().optional(),
23
23
  status: z.enum([
24
24
  "draft",
25
25
  "processing",
@@ -28,10 +28,10 @@ const GanAiListAvatarVideos_AvatarInferenceDetailsSchema = z.object({
28
28
  "deleted"
29
29
  ]).describe("Status of the inference.").nullable(),
30
30
  avatar_id: z.string().describe("UUID of the avatar.").nullable(),
31
- thumbnail: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("URL of the video thumbnail.").optional()),
32
- created_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp of creation.").optional()),
33
- input_text: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Input text used for generation.").optional()),
34
- avatar_title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Title of the avatar.").optional()),
31
+ thumbnail: z.string().describe("URL of the video thumbnail.").nullable().optional(),
32
+ created_at: z.string().describe("ISO 8601 timestamp of creation.").nullable().optional(),
33
+ input_text: z.string().describe("Input text used for generation.").nullable().optional(),
34
+ avatar_title: z.string().describe("Title of the avatar.").nullable().optional(),
35
35
  inference_id: z.string().describe("UUID of the generated video inference.").nullable()
36
36
  }).describe("Details of a single avatar video inference.");
37
37
  const ganAiListAvatarVideos = action("GAN_AI_LIST_AVATAR_VIDEOS", {
@@ -40,7 +40,7 @@ const ganAiListAvatarVideos = action("GAN_AI_LIST_AVATAR_VIDEOS", {
40
40
  description: "Tool to list avatar video inferences. Use when you need to retrieve generated avatar videos with optional filtering by avatar ID, title, status, or date range.",
41
41
  input: GanAiListAvatarVideosInput,
42
42
  output: z.object({
43
- data: z.preprocess((value) => value === null ? void 0 : value, z.array(GanAiListAvatarVideos_AvatarInferenceDetailsSchema).describe("List of avatar video inference objects.").optional()),
43
+ data: z.array(GanAiListAvatarVideos_AvatarInferenceDetailsSchema).describe("List of avatar video inference objects.").nullable().optional(),
44
44
  total: z.number().int().describe("Total number of matching inferences.").nullable()
45
45
  }).describe("Response schema for listing avatar video inferences.")
46
46
  });
@@ -1 +1 @@
1
- {"version":3,"file":"list-avatar-videos.mjs","names":[],"sources":["../../src/actions/list-avatar-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListAvatarVideosInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip). Default is 0.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return. Default is 10.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n avatar_id: z.string().describe(\"UUID of the avatar to filter by.\").optional(),\n avatar_title: z.string().describe(\"Filter by avatar title.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end timestamp for filtering.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start timestamp for filtering.\").optional(),\n inference_title: z.string().describe(\"Filter by inference/video title.\").optional(),\n}).describe(\"Request parameters for listing avatar video inferences.\");\nconst GanAiListAvatarVideos_AvatarInferenceDetailsSchema = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Inference/video title.\").optional()),\n video: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the generated video.\").optional()),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Status of the inference.\").nullable(),\n avatar_id: z.string().describe(\"UUID of the avatar.\").nullable(),\n thumbnail: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL of the video thumbnail.\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp of creation.\").optional()),\n input_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Input text used for generation.\").optional()),\n avatar_title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Title of the avatar.\").optional()),\n inference_id: z.string().describe(\"UUID of the generated video inference.\").nullable(),\n}).describe(\"Details of a single avatar video inference.\");\nexport const GanAiListAvatarVideosOutput = z.object({\n data: z.preprocess((value) => (value === null ? undefined : value), z.array(GanAiListAvatarVideos_AvatarInferenceDetailsSchema).describe(\"List of avatar video inference objects.\").optional()),\n total: z.number().int().describe(\"Total number of matching inferences.\").nullable(),\n}).describe(\"Response schema for listing avatar video inferences.\");\n\nexport const ganAiListAvatarVideos = action(\"GAN_AI_LIST_AVATAR_VIDEOS\", {\n slug: \"gan_ai-list-avatar-videos\",\n name: \"List avatar video inferences\",\n description: \"Tool to list avatar video inferences. Use when you need to retrieve generated avatar videos with optional filtering by avatar ID, title, status, or date range.\",\n input: GanAiListAvatarVideosInput,\n output: GanAiListAvatarVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC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,6BAA6B,CAAC,CAAC,SAAS,CAAC;CACtI,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC;CAC3I,YAAY,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC;CAC3I,cAAc,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC;CAClI,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAMzD,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC;EAC9L,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"list-avatar-videos.mjs","names":[],"sources":["../../src/actions/list-avatar-videos.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListAvatarVideosInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip). Default is 0.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return. Default is 10.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n avatar_id: z.string().describe(\"UUID of the avatar to filter by.\").optional(),\n avatar_title: z.string().describe(\"Filter by avatar title.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end timestamp for filtering.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start timestamp for filtering.\").optional(),\n inference_title: z.string().describe(\"Filter by inference/video title.\").optional(),\n}).describe(\"Request parameters for listing avatar video inferences.\");\nconst GanAiListAvatarVideos_AvatarInferenceDetailsSchema = z.object({\n title: z.string().describe(\"Inference/video title.\").nullable().optional(),\n video: z.string().describe(\"URL of the generated video.\").nullable().optional(),\n status: z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"]).describe(\"Status of the inference.\").nullable(),\n avatar_id: z.string().describe(\"UUID of the avatar.\").nullable(),\n thumbnail: z.string().describe(\"URL of the video thumbnail.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp of creation.\").nullable().optional(),\n input_text: z.string().describe(\"Input text used for generation.\").nullable().optional(),\n avatar_title: z.string().describe(\"Title of the avatar.\").nullable().optional(),\n inference_id: z.string().describe(\"UUID of the generated video inference.\").nullable(),\n}).describe(\"Details of a single avatar video inference.\");\nexport const GanAiListAvatarVideosOutput = z.object({\n data: z.array(GanAiListAvatarVideos_AvatarInferenceDetailsSchema).describe(\"List of avatar video inference objects.\").nullable().optional(),\n total: z.number().int().describe(\"Total number of matching inferences.\").nullable(),\n}).describe(\"Response schema for listing avatar video inferences.\");\n\nexport const ganAiListAvatarVideos = action(\"GAN_AI_LIST_AVATAR_VIDEOS\", {\n slug: \"gan_ai-list-avatar-videos\",\n name: \"List avatar video inferences\",\n description: \"Tool to list avatar video inferences. Use when you need to retrieve generated avatar videos with optional filtering by avatar ID, title, status, or date range.\",\n input: GanAiListAvatarVideosInput,\n output: GanAiListAvatarVideosOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6B,EAAE,OAAO;CACjD,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,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EAAE,OAAO,CAAC,CAAC,SAAS,iCAAiC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACvF,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,sBAAsB,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9E,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AACvF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AAMzD,MAAa,wBAAwB,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAVyC,EAAE,OAAO;EAClD,MAAM,EAAE,MAAM,kDAAkD,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1I,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CACpF,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
@@ -21,8 +21,8 @@ const GanAiListPhotoAvatarInferences_CreditDetailsSchema = zod.z.object({
21
21
  tts_cost: zod.z.number().describe("Cost in credits for text-to-speech processing.").nullable()
22
22
  }).describe("Details about credit usage for an inference.");
23
23
  const GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = zod.z.object({
24
- title: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Inference title, if set.").optional()),
25
- video: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("CloudFront URL of the generated video.").optional()),
24
+ title: zod.z.string().describe("Inference title, if set.").nullable().optional(),
25
+ video: zod.z.string().describe("CloudFront URL of the generated video.").nullable().optional(),
26
26
  status: zod.z.enum([
27
27
  "draft",
28
28
  "processing",
@@ -30,16 +30,16 @@ const GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = zod.z.o
30
30
  "succeeded",
31
31
  "deleted"
32
32
  ]).describe("Status of the inference.").nullable(),
33
- created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the inference was created.").optional()),
34
- input_text: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Input text used to generate this inference.").optional()),
33
+ created_at: zod.z.string().describe("ISO 8601 timestamp when the inference was created.").nullable().optional(),
34
+ input_text: zod.z.string().describe("Input text used to generate this inference.").nullable().optional(),
35
35
  credit_details: GanAiListPhotoAvatarInferences_CreditDetailsSchema.nullable(),
36
36
  photo_avatar_id: zod.z.string().describe("UUID of the photo avatar.").nullable(),
37
- downloadable_video_link: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Direct download link for the video.").optional()),
37
+ downloadable_video_link: zod.z.string().describe("Direct download link for the video.").nullable().optional(),
38
38
  photo_avatar_inference_id: zod.z.string().describe("UUID of the inference.").nullable()
39
39
  }).describe("Details of a single photo avatar inference.");
40
40
  const GanAiListPhotoAvatarInferencesOutput = zod.z.object({
41
41
  total: zod.z.number().int().describe("Total number of matched inferences.").nullable(),
42
- inference_list: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe("Page of inference detail objects.").optional())
42
+ inference_list: zod.z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe("Page of inference detail objects.").nullable().optional()
43
43
  }).describe("Response schema for listing photo avatar inferences.");
44
44
  const ganAiListPhotoAvatarInferences = require_action.action("GAN_AI_LIST_PHOTO_AVATAR_INFERENCES", {
45
45
  slug: "gan_ai-list-photo-avatar-inferences",
@@ -1 +1 @@
1
- {"version":3,"file":"list-photo-avatar-inferences.cjs","names":["z","action"],"sources":["../../src/actions/list-photo-avatar-inferences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListPhotoAvatarInferencesInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip).\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return.\").optional(),\n title: z.string().describe(\"Filter by inference title.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end of the creation time window, e.g., '2023-01-07T23:59:59Z'.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start of the creation time window, e.g., '2023-01-01T00:00:00Z'.\").optional(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to filter by.\").optional(),\n}).describe(\"Request parameters for listing photo avatar inferences.\");\nconst GanAiListPhotoAvatarInferences_CreditDetailsSchema = z.object({\n gan_cost: z.number().describe(\"Cost in credits for GAN processing.\").nullable(),\n tts_cost: z.number().describe(\"Cost in credits for text-to-speech processing.\").nullable(),\n}).describe(\"Details about credit usage for an inference.\");\nconst GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Inference title, if set.\").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(\"Status of the inference.\").nullable(),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the inference was created.\").optional()),\n input_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Input text used to generate this inference.\").optional()),\n credit_details: GanAiListPhotoAvatarInferences_CreditDetailsSchema.nullable(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar.\").nullable(),\n downloadable_video_link: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Direct download link for the video.\").optional()),\n photo_avatar_inference_id: z.string().describe(\"UUID of the inference.\").nullable(),\n}).describe(\"Details of a single photo avatar inference.\");\nexport const GanAiListPhotoAvatarInferencesOutput = z.object({\n total: z.number().int().describe(\"Total number of matched inferences.\").nullable(),\n inference_list: z.preprocess((value) => (value === null ? undefined : value), z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe(\"Page of inference detail objects.\").optional()),\n}).describe(\"Response schema for listing photo avatar inferences.\");\n\nexport const ganAiListPhotoAvatarInferences = action(\"GAN_AI_LIST_PHOTO_AVATAR_INFERENCES\", {\n slug: \"gan_ai-list-photo-avatar-inferences\",\n name: \"List photo avatar inferences\",\n description: \"Tool to list photo avatar inferences. Use when you need to retrieve inference videos with optional filtering by avatar, title, status, or date range.\",\n input: GanAiListPhotoAvatarInferencesInput,\n output: GanAiListPhotoAvatarInferencesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5F,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;EAAa;CAAS,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClJ,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACtH,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC1H,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,qDAAqDA,IAAAA,EAAE,OAAO;CAClE,UAA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AAC,SAAS,6CAA6C;AACzD,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,gBAAgBA,IAAAA,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQA,IAAAA,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC;AAClN,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-photo-avatar-inferences.cjs","names":["z","action"],"sources":["../../src/actions/list-photo-avatar-inferences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListPhotoAvatarInferencesInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip).\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return.\").optional(),\n title: z.string().describe(\"Filter by inference title.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end of the creation time window, e.g., '2023-01-07T23:59:59Z'.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start of the creation time window, e.g., '2023-01-01T00:00:00Z'.\").optional(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to filter by.\").optional(),\n}).describe(\"Request parameters for listing photo avatar inferences.\");\nconst GanAiListPhotoAvatarInferences_CreditDetailsSchema = z.object({\n gan_cost: z.number().describe(\"Cost in credits for GAN processing.\").nullable(),\n tts_cost: z.number().describe(\"Cost in credits for text-to-speech processing.\").nullable(),\n}).describe(\"Details about credit usage for an inference.\");\nconst GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = z.object({\n title: z.string().describe(\"Inference title, if set.\").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(\"Status of the inference.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the inference was created.\").nullable().optional(),\n input_text: z.string().describe(\"Input text used to generate this inference.\").nullable().optional(),\n credit_details: GanAiListPhotoAvatarInferences_CreditDetailsSchema.nullable(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar.\").nullable(),\n downloadable_video_link: z.string().describe(\"Direct download link for the video.\").nullable().optional(),\n photo_avatar_inference_id: z.string().describe(\"UUID of the inference.\").nullable(),\n}).describe(\"Details of a single photo avatar inference.\");\nexport const GanAiListPhotoAvatarInferencesOutput = z.object({\n total: z.number().int().describe(\"Total number of matched inferences.\").nullable(),\n inference_list: z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe(\"Page of inference detail objects.\").nullable().optional(),\n}).describe(\"Response schema for listing photo avatar inferences.\");\n\nexport const ganAiListPhotoAvatarInferences = action(\"GAN_AI_LIST_PHOTO_AVATAR_INFERENCES\", {\n slug: \"gan_ai-list-photo-avatar-inferences\",\n name: \"List photo avatar inferences\",\n description: \"Tool to list photo avatar inferences. Use when you need to retrieve inference videos with optional filtering by avatar, title, status, or date range.\",\n input: GanAiListPhotoAvatarInferencesInput,\n output: GanAiListPhotoAvatarInferencesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsCA,IAAAA,EAAE,OAAO;CAC1D,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpG,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,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AAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACnG,gBAAgB,mDAAmD,SAAS;CAC5E,iBAAiBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CAC3E,yBAAyBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACxG,2BAA2BA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,wBAAwB,CAAC,CAAC,SAAS;AACpF,CAAC,CAAC,CAAC,SAAS,6CAA6C;AACzD,MAAa,uCAAuCA,IAAAA,EAAE,OAAO;CAC3D,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CACjF,gBAAgBA,IAAAA,EAAE,MAAM,gEAAgE,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AAC9J,CAAC,CAAC,CAAC,SAAS,sDAAsD;AAElE,MAAa,iCAAiCC,eAAAA,OAAO,uCAAuC;CAC1F,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -7,10 +7,10 @@ declare const GanAiListPhotoAvatarInferencesInput: z.ZodObject<{
7
7
  title: z.ZodOptional<z.ZodString>;
8
8
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9
9
  draft: "draft";
10
- processing: "processing";
11
10
  failed: "failed";
12
- succeeded: "succeeded";
11
+ processing: "processing";
13
12
  deleted: "deleted";
13
+ succeeded: "succeeded";
14
14
  }>>>;
15
15
  end_datetime: z.ZodOptional<z.ZodString>;
16
16
  start_datetime: z.ZodOptional<z.ZodString>;
@@ -18,24 +18,24 @@ declare const GanAiListPhotoAvatarInferencesInput: z.ZodObject<{
18
18
  }, z.core.$strip>;
19
19
  declare const GanAiListPhotoAvatarInferencesOutput: z.ZodObject<{
20
20
  total: z.ZodNullable<z.ZodNumber>;
21
- inference_list: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
22
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ inference_list: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  status: z.ZodNullable<z.ZodEnum<{
25
25
  draft: "draft";
26
- processing: "processing";
27
26
  failed: "failed";
28
- succeeded: "succeeded";
27
+ processing: "processing";
29
28
  deleted: "deleted";
29
+ succeeded: "succeeded";
30
30
  }>>;
31
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
- input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  credit_details: z.ZodNullable<z.ZodObject<{
34
34
  gan_cost: z.ZodNullable<z.ZodNumber>;
35
35
  tts_cost: z.ZodNullable<z.ZodNumber>;
36
36
  }, z.core.$strip>>;
37
37
  photo_avatar_id: z.ZodNullable<z.ZodString>;
38
- downloadable_video_link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
+ downloadable_video_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  photo_avatar_inference_id: z.ZodNullable<z.ZodString>;
40
40
  }, z.core.$strip>>>>;
41
41
  }, z.core.$strip>;
@@ -43,27 +43,11 @@ declare const ganAiListPhotoAvatarInferences: import("@keystrokehq/action").Work
43
43
  skip?: number | undefined;
44
44
  limit?: number | undefined;
45
45
  title?: string | undefined;
46
- status?: ("draft" | "processing" | "failed" | "succeeded" | "deleted")[] | undefined;
46
+ status?: ("draft" | "failed" | "processing" | "deleted" | "succeeded")[] | undefined;
47
47
  end_datetime?: string | undefined;
48
48
  start_datetime?: string | undefined;
49
49
  photo_avatar_id?: string | undefined;
50
- }, {
51
- total: number | null;
52
- inference_list?: {
53
- status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
54
- credit_details: {
55
- gan_cost: number | null;
56
- tts_cost: number | null;
57
- } | null;
58
- photo_avatar_id: string | null;
59
- photo_avatar_inference_id: string | null;
60
- title?: string | undefined;
61
- video?: string | undefined;
62
- created_at?: string | undefined;
63
- input_text?: string | undefined;
64
- downloadable_video_link?: string | undefined;
65
- }[] | undefined;
66
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
50
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
67
51
  //#endregion
68
52
  export { ganAiListPhotoAvatarInferences };
69
53
  //# sourceMappingURL=list-photo-avatar-inferences.d.cts.map
@@ -7,10 +7,10 @@ declare const GanAiListPhotoAvatarInferencesInput: z.ZodObject<{
7
7
  title: z.ZodOptional<z.ZodString>;
8
8
  status: z.ZodOptional<z.ZodArray<z.ZodEnum<{
9
9
  draft: "draft";
10
- processing: "processing";
11
10
  failed: "failed";
12
- succeeded: "succeeded";
11
+ processing: "processing";
13
12
  deleted: "deleted";
13
+ succeeded: "succeeded";
14
14
  }>>>;
15
15
  end_datetime: z.ZodOptional<z.ZodString>;
16
16
  start_datetime: z.ZodOptional<z.ZodString>;
@@ -18,24 +18,24 @@ declare const GanAiListPhotoAvatarInferencesInput: z.ZodObject<{
18
18
  }, z.core.$strip>;
19
19
  declare const GanAiListPhotoAvatarInferencesOutput: z.ZodObject<{
20
20
  total: z.ZodNullable<z.ZodNumber>;
21
- inference_list: z.ZodPreprocess<z.ZodOptional<z.ZodArray<z.ZodObject<{
22
- title: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
23
- video: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
21
+ inference_list: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
22
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
24
  status: z.ZodNullable<z.ZodEnum<{
25
25
  draft: "draft";
26
- processing: "processing";
27
26
  failed: "failed";
28
- succeeded: "succeeded";
27
+ processing: "processing";
29
28
  deleted: "deleted";
29
+ succeeded: "succeeded";
30
30
  }>>;
31
- created_at: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
32
- input_text: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
31
+ created_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ input_text: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
33
  credit_details: z.ZodNullable<z.ZodObject<{
34
34
  gan_cost: z.ZodNullable<z.ZodNumber>;
35
35
  tts_cost: z.ZodNullable<z.ZodNumber>;
36
36
  }, z.core.$strip>>;
37
37
  photo_avatar_id: z.ZodNullable<z.ZodString>;
38
- downloadable_video_link: z.ZodPreprocess<z.ZodOptional<z.ZodString>>;
38
+ downloadable_video_link: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
39
  photo_avatar_inference_id: z.ZodNullable<z.ZodString>;
40
40
  }, z.core.$strip>>>>;
41
41
  }, z.core.$strip>;
@@ -43,27 +43,11 @@ declare const ganAiListPhotoAvatarInferences: import("@keystrokehq/action").Work
43
43
  skip?: number | undefined;
44
44
  limit?: number | undefined;
45
45
  title?: string | undefined;
46
- status?: ("draft" | "processing" | "failed" | "succeeded" | "deleted")[] | undefined;
46
+ status?: ("draft" | "failed" | "processing" | "deleted" | "succeeded")[] | undefined;
47
47
  end_datetime?: string | undefined;
48
48
  start_datetime?: string | undefined;
49
49
  photo_avatar_id?: string | undefined;
50
- }, {
51
- total: number | null;
52
- inference_list?: {
53
- status: "draft" | "processing" | "failed" | "succeeded" | "deleted" | null;
54
- credit_details: {
55
- gan_cost: number | null;
56
- tts_cost: number | null;
57
- } | null;
58
- photo_avatar_id: string | null;
59
- photo_avatar_inference_id: string | null;
60
- title?: string | undefined;
61
- video?: string | undefined;
62
- created_at?: string | undefined;
63
- input_text?: string | undefined;
64
- downloadable_video_link?: string | undefined;
65
- }[] | undefined;
66
- }, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
50
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
67
51
  //#endregion
68
52
  export { ganAiListPhotoAvatarInferences };
69
53
  //# sourceMappingURL=list-photo-avatar-inferences.d.mts.map
@@ -21,8 +21,8 @@ const GanAiListPhotoAvatarInferences_CreditDetailsSchema = z.object({
21
21
  tts_cost: z.number().describe("Cost in credits for text-to-speech processing.").nullable()
22
22
  }).describe("Details about credit usage for an inference.");
23
23
  const GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = z.object({
24
- title: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Inference title, if set.").optional()),
25
- video: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("CloudFront URL of the generated video.").optional()),
24
+ title: z.string().describe("Inference title, if set.").nullable().optional(),
25
+ video: z.string().describe("CloudFront URL of the generated video.").nullable().optional(),
26
26
  status: z.enum([
27
27
  "draft",
28
28
  "processing",
@@ -30,11 +30,11 @@ const GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = z.objec
30
30
  "succeeded",
31
31
  "deleted"
32
32
  ]).describe("Status of the inference.").nullable(),
33
- created_at: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("ISO 8601 timestamp when the inference was created.").optional()),
34
- input_text: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Input text used to generate this inference.").optional()),
33
+ created_at: z.string().describe("ISO 8601 timestamp when the inference was created.").nullable().optional(),
34
+ input_text: z.string().describe("Input text used to generate this inference.").nullable().optional(),
35
35
  credit_details: GanAiListPhotoAvatarInferences_CreditDetailsSchema.nullable(),
36
36
  photo_avatar_id: z.string().describe("UUID of the photo avatar.").nullable(),
37
- downloadable_video_link: z.preprocess((value) => value === null ? void 0 : value, z.string().describe("Direct download link for the video.").optional()),
37
+ downloadable_video_link: z.string().describe("Direct download link for the video.").nullable().optional(),
38
38
  photo_avatar_inference_id: z.string().describe("UUID of the inference.").nullable()
39
39
  }).describe("Details of a single photo avatar inference.");
40
40
  const ganAiListPhotoAvatarInferences = action("GAN_AI_LIST_PHOTO_AVATAR_INFERENCES", {
@@ -44,7 +44,7 @@ const ganAiListPhotoAvatarInferences = action("GAN_AI_LIST_PHOTO_AVATAR_INFERENC
44
44
  input: GanAiListPhotoAvatarInferencesInput,
45
45
  output: z.object({
46
46
  total: z.number().int().describe("Total number of matched inferences.").nullable(),
47
- inference_list: z.preprocess((value) => value === null ? void 0 : value, z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe("Page of inference detail objects.").optional())
47
+ inference_list: z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe("Page of inference detail objects.").nullable().optional()
48
48
  }).describe("Response schema for listing photo avatar inferences.")
49
49
  });
50
50
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"list-photo-avatar-inferences.mjs","names":[],"sources":["../../src/actions/list-photo-avatar-inferences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListPhotoAvatarInferencesInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip).\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return.\").optional(),\n title: z.string().describe(\"Filter by inference title.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end of the creation time window, e.g., '2023-01-07T23:59:59Z'.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start of the creation time window, e.g., '2023-01-01T00:00:00Z'.\").optional(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to filter by.\").optional(),\n}).describe(\"Request parameters for listing photo avatar inferences.\");\nconst GanAiListPhotoAvatarInferences_CreditDetailsSchema = z.object({\n gan_cost: z.number().describe(\"Cost in credits for GAN processing.\").nullable(),\n tts_cost: z.number().describe(\"Cost in credits for text-to-speech processing.\").nullable(),\n}).describe(\"Details about credit usage for an inference.\");\nconst GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Inference title, if set.\").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(\"Status of the inference.\").nullable(),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the inference was created.\").optional()),\n input_text: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Input text used to generate this inference.\").optional()),\n credit_details: GanAiListPhotoAvatarInferences_CreditDetailsSchema.nullable(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar.\").nullable(),\n downloadable_video_link: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Direct download link for the video.\").optional()),\n photo_avatar_inference_id: z.string().describe(\"UUID of the inference.\").nullable(),\n}).describe(\"Details of a single photo avatar inference.\");\nexport const GanAiListPhotoAvatarInferencesOutput = z.object({\n total: z.number().int().describe(\"Total number of matched inferences.\").nullable(),\n inference_list: z.preprocess((value) => (value === null ? undefined : value), z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe(\"Page of inference detail objects.\").optional()),\n}).describe(\"Response schema for listing photo avatar inferences.\");\n\nexport const ganAiListPhotoAvatarInferences = action(\"GAN_AI_LIST_PHOTO_AVATAR_INFERENCES\", {\n slug: \"gan_ai-list-photo-avatar-inferences\",\n name: \"List photo avatar inferences\",\n description: \"Tool to list photo avatar inferences. Use when you need to retrieve inference videos with optional filtering by avatar, title, status, or date range.\",\n input: GanAiListPhotoAvatarInferencesInput,\n output: GanAiListPhotoAvatarInferencesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;EAAa;CAAS,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACtH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC1H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE,MAAM,qDAAqD,EAAE,OAAO;CAClE,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,qCAAqC,CAAC,CAAC,SAAS;CAC9E,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAM,mEAAmE,EAAE,OAAO;CAChF,OAAO,EAAE,YAAY,UAAW,UAAU,OAAO,SAAY,OAAQ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CAAC"}
1
+ {"version":3,"file":"list-photo-avatar-inferences.mjs","names":[],"sources":["../../src/actions/list-photo-avatar-inferences.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListPhotoAvatarInferencesInput = z.object({\n skip: z.number().int().default(0).describe(\"Pagination offset (number of items to skip).\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of items to return.\").optional(),\n title: z.string().describe(\"Filter by inference title.\").optional(),\n status: z.array(z.enum([\"draft\", \"processing\", \"failed\", \"succeeded\", \"deleted\"])).describe(\"Filter by one or more inference statuses.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end of the creation time window, e.g., '2023-01-07T23:59:59Z'.\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start of the creation time window, e.g., '2023-01-01T00:00:00Z'.\").optional(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar to filter by.\").optional(),\n}).describe(\"Request parameters for listing photo avatar inferences.\");\nconst GanAiListPhotoAvatarInferences_CreditDetailsSchema = z.object({\n gan_cost: z.number().describe(\"Cost in credits for GAN processing.\").nullable(),\n tts_cost: z.number().describe(\"Cost in credits for text-to-speech processing.\").nullable(),\n}).describe(\"Details about credit usage for an inference.\");\nconst GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema = z.object({\n title: z.string().describe(\"Inference title, if set.\").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(\"Status of the inference.\").nullable(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the inference was created.\").nullable().optional(),\n input_text: z.string().describe(\"Input text used to generate this inference.\").nullable().optional(),\n credit_details: GanAiListPhotoAvatarInferences_CreditDetailsSchema.nullable(),\n photo_avatar_id: z.string().describe(\"UUID of the photo avatar.\").nullable(),\n downloadable_video_link: z.string().describe(\"Direct download link for the video.\").nullable().optional(),\n photo_avatar_inference_id: z.string().describe(\"UUID of the inference.\").nullable(),\n}).describe(\"Details of a single photo avatar inference.\");\nexport const GanAiListPhotoAvatarInferencesOutput = z.object({\n total: z.number().int().describe(\"Total number of matched inferences.\").nullable(),\n inference_list: z.array(GanAiListPhotoAvatarInferences_PhotoAvatarInferenceDetailsSchema).describe(\"Page of inference detail objects.\").nullable().optional(),\n}).describe(\"Response schema for listing photo avatar inferences.\");\n\nexport const ganAiListPhotoAvatarInferences = action(\"GAN_AI_LIST_PHOTO_AVATAR_INFERENCES\", {\n slug: \"gan_ai-list-photo-avatar-inferences\",\n name: \"List photo avatar inferences\",\n description: \"Tool to list photo avatar inferences. Use when you need to retrieve inference videos with optional filtering by avatar, title, status, or date range.\",\n input: GanAiListPhotoAvatarInferencesInput,\n output: GanAiListPhotoAvatarInferencesOutput,\n});\n"],"mappings":";;;AAIA,MAAa,sCAAsC,EAAE,OAAO;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,8CAA8C,CAAC,CAAC,SAAS;CACpG,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CAC5F,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,4BAA4B,CAAC,CAAC,SAAS;CAClE,QAAQ,EAAE,MAAM,EAAE,KAAK;EAAC;EAAS;EAAc;EAAU;EAAa;CAAS,CAAC,CAAC,CAAC,CAAC,SAAS,2CAA2C,CAAC,CAAC,SAAS;CAClJ,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;CACtH,gBAAgB,EAAE,OAAO,CAAC,CAAC,SAAS,2EAA2E,CAAC,CAAC,SAAS;CAC1H,iBAAiB,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;AAC1F,CAAC,CAAC,CAAC,SAAS,yDAAyD;AACrE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AC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC9J,CAAC,CAAC,CAAC,SAAS,sDAOF;AACV,CAAC"}
@@ -11,16 +11,16 @@ const GanAiListPhotoAvatarsInput = zod.z.object({
11
11
  }).describe("Request model for listing avatars with optional filters and pagination.");
12
12
  const GanAiListPhotoAvatars_AvatarWebhookSchema = zod.z.object({ webhook_url: zod.z.string().describe("Webhook URL registered for the avatar").nullable() });
13
13
  const GanAiListPhotoAvatars_AvatarListItemSchema = zod.z.object({
14
- title: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("User-defined title of the avatar.").optional()),
15
- status: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("Current status of the avatar.").optional()),
14
+ title: zod.z.string().describe("User-defined title of the avatar.").nullable().optional(),
15
+ status: zod.z.string().describe("Current status of the avatar.").nullable().optional(),
16
16
  avatar_id: zod.z.string().describe("Unique UUID of the avatar.").nullable(),
17
- thumbnail: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL for the avatar thumbnail.").optional()),
18
- base_video: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("URL for the avatar base video.").optional()),
19
- created_at: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.string().describe("ISO 8601 timestamp when the avatar was created.").optional()),
20
- avatar_webhook: zod.z.preprocess((value) => value === null ? void 0 : value, GanAiListPhotoAvatars_AvatarWebhookSchema.optional())
17
+ thumbnail: zod.z.string().describe("URL for the avatar thumbnail.").nullable().optional(),
18
+ base_video: zod.z.string().describe("URL for the avatar base video.").nullable().optional(),
19
+ created_at: zod.z.string().describe("ISO 8601 timestamp when the avatar was created.").nullable().optional(),
20
+ avatar_webhook: GanAiListPhotoAvatars_AvatarWebhookSchema.nullable().optional()
21
21
  }).describe("Representation of a single avatar record.");
22
22
  const GanAiListPhotoAvatarsOutput = zod.z.object({
23
- avatars_list: zod.z.preprocess((value) => value === null ? void 0 : value, zod.z.array(GanAiListPhotoAvatars_AvatarListItemSchema).describe("Array of avatar objects (may be null if none).").optional()),
23
+ avatars_list: zod.z.array(GanAiListPhotoAvatars_AvatarListItemSchema).describe("Array of avatar objects (may be null if none).").nullable().optional(),
24
24
  total_avatars: zod.z.number().int().describe("Total number of avatars matching the query.").nullable()
25
25
  }).describe("Response model containing total count and list of avatars.");
26
26
  const ganAiListPhotoAvatars = require_action.action("GAN_AI_LIST_PHOTO_AVATARS", {
@@ -1 +1 @@
1
- {"version":3,"file":"list-photo-avatars.cjs","names":["z","action"],"sources":["../../src/actions/list-photo-avatars.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListPhotoAvatarsInput = z.object({\n skip: z.number().int().default(0).describe(\"Number of records to skip for pagination (offset). Default is 0.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of records to return. Default is 10.\").optional(),\n title: z.string().describe(\"Filter by avatar title (exact match).\").optional(),\n status: z.array(z.string()).describe(\"Filter by one or more statuses; common values include: consent_pending, processing, consent_failed, failed, published, deleted, draft.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end timestamp for filtering (inclusive).\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start timestamp for filtering (inclusive).\").optional(),\n}).describe(\"Request model for listing avatars with optional filters and pagination.\");\nconst GanAiListPhotoAvatars_AvatarWebhookSchema = z.object({\n webhook_url: z.string().describe(\"Webhook URL registered for the avatar\").nullable(),\n});\nconst GanAiListPhotoAvatars_AvatarListItemSchema = z.object({\n title: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"User-defined title of the avatar.\").optional()),\n status: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"Current status of the avatar.\").optional()),\n avatar_id: z.string().describe(\"Unique UUID of the avatar.\").nullable(),\n thumbnail: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL for the avatar thumbnail.\").optional()),\n base_video: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"URL for the avatar base video.\").optional()),\n created_at: z.preprocess((value) => (value === null ? undefined : value), z.string().describe(\"ISO 8601 timestamp when the avatar was created.\").optional()),\n avatar_webhook: z.preprocess((value) => (value === null ? undefined : value), GanAiListPhotoAvatars_AvatarWebhookSchema.optional()),\n}).describe(\"Representation of a single avatar record.\");\nexport const GanAiListPhotoAvatarsOutput = z.object({\n avatars_list: z.preprocess((value) => (value === null ? undefined : value), z.array(GanAiListPhotoAvatars_AvatarListItemSchema).describe(\"Array of avatar objects (may be null if none).\").optional()),\n total_avatars: z.number().int().describe(\"Total number of avatars matching the query.\").nullable(),\n}).describe(\"Response model containing total count and list of avatars.\");\n\nexport const ganAiListPhotoAvatars = action(\"GAN_AI_LIST_PHOTO_AVATARS\", {\n slug: \"gan_ai-list-photo-avatars\",\n name: \"List Photo Avatars\",\n description: \"Tool to list avatars. Use when you need a paginated collection of avatars with filters. Example: \\\"List the first 10 published avatars created after 2023-01-01\\\".\",\n input: GanAiListPhotoAvatarsInput,\n output: GanAiListPhotoAvatarsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CACxL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,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AQA,IAAAA,EAAE,MAAM,0CAA0C,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS,CAAC;CACrM,eAAeA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;AACnG,CAAC,CAAC,CAAC,SAAS,4DAA4D;AAExE,MAAa,wBAAwBC,eAAAA,OAAO,6BAA6B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"list-photo-avatars.cjs","names":["z","action"],"sources":["../../src/actions/list-photo-avatars.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiListPhotoAvatarsInput = z.object({\n skip: z.number().int().default(0).describe(\"Number of records to skip for pagination (offset). Default is 0.\").optional(),\n limit: z.number().int().default(10).describe(\"Maximum number of records to return. Default is 10.\").optional(),\n title: z.string().describe(\"Filter by avatar title (exact match).\").optional(),\n status: z.array(z.string()).describe(\"Filter by one or more statuses; common values include: consent_pending, processing, consent_failed, failed, published, deleted, draft.\").optional(),\n end_datetime: z.string().describe(\"ISO 8601 end timestamp for filtering (inclusive).\").optional(),\n start_datetime: z.string().describe(\"ISO 8601 start timestamp for filtering (inclusive).\").optional(),\n}).describe(\"Request model for listing avatars with optional filters and pagination.\");\nconst GanAiListPhotoAvatars_AvatarWebhookSchema = z.object({\n webhook_url: z.string().describe(\"Webhook URL registered for the avatar\").nullable(),\n});\nconst GanAiListPhotoAvatars_AvatarListItemSchema = z.object({\n title: z.string().describe(\"User-defined title of the avatar.\").nullable().optional(),\n status: z.string().describe(\"Current status of the avatar.\").nullable().optional(),\n avatar_id: z.string().describe(\"Unique UUID of the avatar.\").nullable(),\n thumbnail: z.string().describe(\"URL for the avatar thumbnail.\").nullable().optional(),\n base_video: z.string().describe(\"URL for the avatar base video.\").nullable().optional(),\n created_at: z.string().describe(\"ISO 8601 timestamp when the avatar was created.\").nullable().optional(),\n avatar_webhook: GanAiListPhotoAvatars_AvatarWebhookSchema.nullable().optional(),\n}).describe(\"Representation of a single avatar record.\");\nexport const GanAiListPhotoAvatarsOutput = z.object({\n avatars_list: z.array(GanAiListPhotoAvatars_AvatarListItemSchema).describe(\"Array of avatar objects (may be null if none).\").nullable().optional(),\n total_avatars: z.number().int().describe(\"Total number of avatars matching the query.\").nullable(),\n}).describe(\"Response model containing total count and list of avatars.\");\n\nexport const ganAiListPhotoAvatars = action(\"GAN_AI_LIST_PHOTO_AVATARS\", {\n slug: \"gan_ai-list-photo-avatars\",\n name: \"List Photo Avatars\",\n description: \"Tool to list avatars. Use when you need a paginated collection of avatars with filters. Example: \\\"List the first 10 published avatars created after 2023-01-01\\\".\",\n input: GanAiListPhotoAvatarsInput,\n output: GanAiListPhotoAvatarsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,6BAA6BA,IAAAA,EAAE,OAAO;CACjD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,kEAAkE,CAAC,CAAC,SAAS;CACxH,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;CAC7G,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,uCAAuC,CAAC,CAAC,SAAS;CAC7E,QAAQA,IAAAA,EAAE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,CAAC,SAAS,wIAAwI,CAAC,CAAC,SAAS;CACxL,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mDAAmD,CAAC,CAAC,SAAS;CAChG,gBAAgBA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;AACtG,CAAC,CAAC,CAAC,SAAS,yEAAyE;AACrF,MAAM,4CAA4CA,IAAAA,EAAE,OA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