@keystrokehq/gan_ai 0.1.0 → 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 (73) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/get-avatar-video-inference-details.cjs +3 -3
  4. package/dist/actions/get-avatar-video-inference-details.cjs.map +1 -1
  5. package/dist/actions/get-avatar-video-inference-details.d.cts +23 -3
  6. package/dist/actions/get-avatar-video-inference-details.d.cts.map +1 -1
  7. package/dist/actions/get-avatar-video-inference-details.d.mts +23 -3
  8. package/dist/actions/get-avatar-video-inference-details.d.mts.map +1 -1
  9. package/dist/actions/get-avatar-video-inference-details.mjs +3 -3
  10. package/dist/actions/get-avatar-video-inference-details.mjs.map +1 -1
  11. package/dist/actions/get-photo-avatar-details.cjs +2 -2
  12. package/dist/actions/get-photo-avatar-details.cjs.map +1 -1
  13. package/dist/actions/get-photo-avatar-details.d.cts +19 -3
  14. package/dist/actions/get-photo-avatar-details.d.cts.map +1 -1
  15. package/dist/actions/get-photo-avatar-details.d.mts +19 -3
  16. package/dist/actions/get-photo-avatar-details.d.mts.map +1 -1
  17. package/dist/actions/get-photo-avatar-details.mjs +2 -2
  18. package/dist/actions/get-photo-avatar-details.mjs.map +1 -1
  19. package/dist/actions/get-photo-avatar-inference-details.cjs +5 -5
  20. package/dist/actions/get-photo-avatar-inference-details.cjs.map +1 -1
  21. package/dist/actions/get-photo-avatar-inference-details.d.cts +28 -3
  22. package/dist/actions/get-photo-avatar-inference-details.d.cts.map +1 -1
  23. package/dist/actions/get-photo-avatar-inference-details.d.mts +28 -3
  24. package/dist/actions/get-photo-avatar-inference-details.d.mts.map +1 -1
  25. package/dist/actions/get-photo-avatar-inference-details.mjs +5 -5
  26. package/dist/actions/get-photo-avatar-inference-details.mjs.map +1 -1
  27. package/dist/actions/list-avatar-videos.cjs +4 -4
  28. package/dist/actions/list-avatar-videos.cjs.map +1 -1
  29. package/dist/actions/list-avatar-videos.d.cts +46 -3
  30. package/dist/actions/list-avatar-videos.d.cts.map +1 -1
  31. package/dist/actions/list-avatar-videos.d.mts +46 -3
  32. package/dist/actions/list-avatar-videos.d.mts.map +1 -1
  33. package/dist/actions/list-avatar-videos.mjs +4 -4
  34. package/dist/actions/list-avatar-videos.mjs.map +1 -1
  35. package/dist/actions/list-photo-avatar-inferences.cjs +6 -6
  36. package/dist/actions/list-photo-avatar-inferences.cjs.map +1 -1
  37. package/dist/actions/list-photo-avatar-inferences.d.cts +47 -3
  38. package/dist/actions/list-photo-avatar-inferences.d.cts.map +1 -1
  39. package/dist/actions/list-photo-avatar-inferences.d.mts +47 -3
  40. package/dist/actions/list-photo-avatar-inferences.d.mts.map +1 -1
  41. package/dist/actions/list-photo-avatar-inferences.mjs +6 -6
  42. package/dist/actions/list-photo-avatar-inferences.mjs.map +1 -1
  43. package/dist/actions/list-photo-avatars.cjs +3 -3
  44. package/dist/actions/list-photo-avatars.cjs.map +1 -1
  45. package/dist/actions/list-photo-avatars.d.cts +30 -3
  46. package/dist/actions/list-photo-avatars.d.cts.map +1 -1
  47. package/dist/actions/list-photo-avatars.d.mts +30 -3
  48. package/dist/actions/list-photo-avatars.d.mts.map +1 -1
  49. package/dist/actions/list-photo-avatars.mjs +3 -3
  50. package/dist/actions/list-photo-avatars.mjs.map +1 -1
  51. package/dist/actions/login.cjs +2 -2
  52. package/dist/actions/login.cjs.map +1 -1
  53. package/dist/actions/login.d.cts +12 -3
  54. package/dist/actions/login.d.cts.map +1 -1
  55. package/dist/actions/login.d.mts +12 -3
  56. package/dist/actions/login.d.mts.map +1 -1
  57. package/dist/actions/login.mjs +2 -2
  58. package/dist/actions/login.mjs.map +1 -1
  59. package/dist/actions/tts.cjs +2 -2
  60. package/dist/actions/tts.cjs.map +1 -1
  61. package/dist/actions/tts.d.cts +12 -3
  62. package/dist/actions/tts.d.cts.map +1 -1
  63. package/dist/actions/tts.d.mts +12 -3
  64. package/dist/actions/tts.d.mts.map +1 -1
  65. package/dist/actions/tts.mjs +2 -2
  66. package/dist/actions/tts.mjs.map +1 -1
  67. package/dist/catalog.cjs +7 -1
  68. package/dist/catalog.cjs.map +1 -1
  69. package/dist/catalog.d.cts +8 -0
  70. package/dist/catalog.d.mts +8 -0
  71. package/dist/catalog.mjs +7 -1
  72. package/dist/catalog.mjs.map +1 -1
  73. package/package.json +2 -2
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/login.d.ts
4
- declare const GanAiLoginInput: z.ZodTypeAny;
5
- declare const GanAiLoginOutput: z.ZodTypeAny;
6
- declare const ganAiLogin: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiLoginInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ password: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const GanAiLoginOutput: z.ZodObject<{
9
+ access_token: z.ZodNullable<z.ZodString>;
10
+ refresh_token: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const ganAiLogin: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ email: string;
14
+ password: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { ganAiLogin };
9
18
  //# sourceMappingURL=login.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.cts","names":[],"sources":["../../src/actions/login.ts"],"mappings":";;;cAIa,eAAA,EAAiB,CAAA,CAAE,UAGY;AAAA,cAC/B,gBAAA,EAAkB,CAAA,CAAE,UAG8B;AAAA,cAElD,UAAA,gCAAU,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"login.d.cts","names":[],"sources":["../../src/actions/login.ts"],"mappings":";;;cAIa,eAAA,EAAe,CAAA,CAAA,SAAA;;;;cAIf,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;cAKhB,UAAA,gCAAU,wBAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/login.d.ts
4
- declare const GanAiLoginInput: z.ZodTypeAny;
5
- declare const GanAiLoginOutput: z.ZodTypeAny;
6
- declare const ganAiLogin: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiLoginInput: z.ZodObject<{
5
+ email: z.ZodString;
6
+ password: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const GanAiLoginOutput: z.ZodObject<{
9
+ access_token: z.ZodNullable<z.ZodString>;
10
+ refresh_token: z.ZodNullable<z.ZodString>;
11
+ }, z.core.$strip>;
12
+ declare const ganAiLogin: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ email: string;
14
+ password: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { ganAiLogin };
9
18
  //# sourceMappingURL=login.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"login.d.mts","names":[],"sources":["../../src/actions/login.ts"],"mappings":";;;cAIa,eAAA,EAAiB,CAAA,CAAE,UAGY;AAAA,cAC/B,gBAAA,EAAkB,CAAA,CAAE,UAG8B;AAAA,cAElD,UAAA,gCAAU,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"login.d.mts","names":[],"sources":["../../src/actions/login.ts"],"mappings":";;;cAIa,eAAA,EAAe,CAAA,CAAA,SAAA;;;;cAIf,gBAAA,EAAgB,CAAA,CAAA,SAAA;;;;cAKhB,UAAA,gCAAU,wBAAA"}
@@ -9,8 +9,8 @@ const ganAiLogin = action("GAN_AI_LOGIN", {
9
9
  password: z.string().describe("User's password.")
10
10
  }).describe("Request model for user login."),
11
11
  output: z.object({
12
- access_token: z.string().describe("JWT access token."),
13
- refresh_token: z.string().describe("JWT refresh token.")
12
+ access_token: z.string().describe("JWT access token.").nullable(),
13
+ refresh_token: z.string().describe("JWT refresh token.").nullable()
14
14
  }).describe("Response model containing JWT tokens from login.")
15
15
  });
16
16
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"login.mjs","names":[],"sources":["../../src/actions/login.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiLoginInput: z.ZodTypeAny = z.object({\n email: z.string().describe(\"User's email address.\"),\n password: z.string().describe(\"User's password.\"),\n}).describe(\"Request model for user login.\");\nexport const GanAiLoginOutput: z.ZodTypeAny = z.object({\n access_token: z.string().describe(\"JWT access token.\"),\n refresh_token: z.string().describe(\"JWT refresh token.\"),\n}).describe(\"Response model containing JWT tokens from login.\");\n\nexport const ganAiLogin = action(\"GAN_AI_LOGIN\", {\n slug: \"gan_ai-login\",\n name: \"Login\",\n description: \"Tool to authenticate a user and retrieve access and refresh tokens. Use when you need to login before calling other GAN.AI API actions.\",\n input: GanAiLoginInput,\n output: GanAiLoginOutput,\n});\n"],"mappings":";;AAaA,MAAa,aAAa,OAAO,gBAAgB;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb2C,EAAE,OAAO;EACpD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAClD,CAAC,CAAC,CAAC,SAAS,+BAUH;CACP,QAV4C,EAAE,OAAO;EACrD,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB;EACrD,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB;CACzD,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
1
+ {"version":3,"file":"login.mjs","names":[],"sources":["../../src/actions/login.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiLoginInput = z.object({\n email: z.string().describe(\"User's email address.\"),\n password: z.string().describe(\"User's password.\"),\n}).describe(\"Request model for user login.\");\nexport const GanAiLoginOutput = z.object({\n access_token: z.string().describe(\"JWT access token.\").nullable(),\n refresh_token: z.string().describe(\"JWT refresh token.\").nullable(),\n}).describe(\"Response model containing JWT tokens from login.\");\n\nexport const ganAiLogin = action(\"GAN_AI_LOGIN\", {\n slug: \"gan_ai-login\",\n name: \"Login\",\n description: \"Tool to authenticate a user and retrieve access and refresh tokens. Use when you need to login before calling other GAN.AI API actions.\",\n input: GanAiLoginInput,\n output: GanAiLoginOutput,\n});\n"],"mappings":";;AAaA,MAAa,aAAa,OAAO,gBAAgB;CAC/C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb6B,EAAE,OAAO;EACtC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,uBAAuB;EAClD,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,kBAAkB;CAClD,CAAC,CAAC,CAAC,SAAS,+BAUH;CACP,QAV8B,EAAE,OAAO;EACvC,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,mBAAmB,CAAC,CAAC,SAAS;EAChE,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,oBAAoB,CAAC,CAAC,SAAS;CACpE,CAAC,CAAC,CAAC,SAAS,kDAOF;AACV,CAAC"}
@@ -6,8 +6,8 @@ const GanAiTtsInput = zod.z.object({
6
6
  voice_id: zod.z.string().describe("Unique identifier (UUID) of the voice to use for speech synthesis. Obtain valid voice IDs from the GAN.AI Get Voices endpoint or dashboard.")
7
7
  }).describe("Request model for GAN.AI Text-to-Speech synchronous API.\nConverts text to speech using a specified voice.");
8
8
  const GanAiTtsOutput = zod.z.object({
9
- audio: zod.z.string().describe("Binary audio data in WAV format containing the synthesized speech."),
10
- audio_size_bytes: zod.z.number().int().describe("Size of the audio data in bytes.")
9
+ audio: zod.z.string().describe("Binary audio data in WAV format containing the synthesized speech.").nullable(),
10
+ audio_size_bytes: zod.z.number().int().describe("Size of the audio data in bytes.").nullable()
11
11
  }).describe("Response model for GAN.AI Text-to-Speech synchronous API.\nReturns the synthesized audio in WAV format.");
12
12
  const ganAiTts = require_action.action("GAN_AI_TTS", {
13
13
  slug: "gan_ai-tts",
@@ -1 +1 @@
1
- {"version":3,"file":"tts.cjs","names":["z","action"],"sources":["../../src/actions/tts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiTtsInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text content to convert to speech. Must be between 40 and 500 characters for optimal synthesis quality.\"),\n voice_id: z.string().describe(\"Unique identifier (UUID) of the voice to use for speech synthesis. Obtain valid voice IDs from the GAN.AI Get Voices endpoint or dashboard.\"),\n}).describe(\"Request model for GAN.AI Text-to-Speech synchronous API.\\nConverts text to speech using a specified voice.\");\nexport const GanAiTtsOutput: z.ZodTypeAny = z.object({\n audio: z.string().describe(\"Binary audio data in WAV format containing the synthesized speech.\"),\n audio_size_bytes: z.number().int().describe(\"Size of the audio data in bytes.\"),\n}).describe(\"Response model for GAN.AI Text-to-Speech synchronous API.\\nReturns the synthesized audio in WAV format.\");\n\nexport const ganAiTts = action(\"GAN_AI_TTS\", {\n slug: \"gan_ai-tts\",\n name: \"GAN AI Text-to-Speech\",\n description: \"Convert text to speech using GAN.AI's Text-to-Speech API. This tool synthesizes speech from text using a specified voice. The voice_id must be obtained from the GAN.AI Get Voices endpoint or from your GAN.AI dashboard. Returns audio in WAV format.\",\n input: GanAiTtsInput,\n output: GanAiTtsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gBAA8BA,IAAAA,EAAE,OAAO;CAClD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;AAC7K,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,MAAa,iBAA+BA,IAAAA,EAAE,OAAO;CACnD,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;CAC/F,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;AAChF,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAErH,MAAa,WAAWC,eAAAA,OAAO,cAAc;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"tts.cjs","names":["z","action"],"sources":["../../src/actions/tts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiTtsInput = z.object({\n text: z.string().describe(\"The text content to convert to speech. Must be between 40 and 500 characters for optimal synthesis quality.\"),\n voice_id: z.string().describe(\"Unique identifier (UUID) of the voice to use for speech synthesis. Obtain valid voice IDs from the GAN.AI Get Voices endpoint or dashboard.\"),\n}).describe(\"Request model for GAN.AI Text-to-Speech synchronous API.\\nConverts text to speech using a specified voice.\");\nexport const GanAiTtsOutput = z.object({\n audio: z.string().describe(\"Binary audio data in WAV format containing the synthesized speech.\").nullable(),\n audio_size_bytes: z.number().int().describe(\"Size of the audio data in bytes.\").nullable(),\n}).describe(\"Response model for GAN.AI Text-to-Speech synchronous API.\\nReturns the synthesized audio in WAV format.\");\n\nexport const ganAiTts = action(\"GAN_AI_TTS\", {\n slug: \"gan_ai-tts\",\n name: \"GAN AI Text-to-Speech\",\n description: \"Convert text to speech using GAN.AI's Text-to-Speech API. This tool synthesizes speech from text using a specified voice. The voice_id must be obtained from the GAN.AI Get Voices endpoint or from your GAN.AI dashboard. Returns audio in WAV format.\",\n input: GanAiTtsInput,\n output: GanAiTtsOutput,\n});\n"],"mappings":";;;AAIA,MAAa,gBAAgBA,IAAAA,EAAE,OAAO;CACpC,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;CACvI,UAAUA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;AAC7K,CAAC,CAAC,CAAC,SAAS,4GAA4G;AACxH,MAAa,iBAAiBA,IAAAA,EAAE,OAAO;CACrC,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;CAC1G,kBAAkBA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;AAC3F,CAAC,CAAC,CAAC,SAAS,yGAAyG;AAErH,MAAa,WAAWC,eAAAA,OAAO,cAAc;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/tts.d.ts
4
- declare const GanAiTtsInput: z.ZodTypeAny;
5
- declare const GanAiTtsOutput: z.ZodTypeAny;
6
- declare const ganAiTts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiTtsInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ voice_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const GanAiTtsOutput: z.ZodObject<{
9
+ audio: z.ZodNullable<z.ZodString>;
10
+ audio_size_bytes: z.ZodNullable<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const ganAiTts: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ text: string;
14
+ voice_id: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { ganAiTts };
9
18
  //# sourceMappingURL=tts.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tts.d.cts","names":[],"sources":["../../src/actions/tts.ts"],"mappings":";;;cAIa,aAAA,EAAe,CAAA,CAAE,UAG2F;AAAA,cAC5G,cAAA,EAAgB,CAAA,CAAE,UAGuF;AAAA,cAEzG,QAAA,gCAAQ,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"tts.d.cts","names":[],"sources":["../../src/actions/tts.ts"],"mappings":";;;cAIa,aAAA,EAAa,CAAA,CAAA,SAAA;;;;cAIb,cAAA,EAAc,CAAA,CAAA,SAAA;;;;cAKd,QAAA,gCAAQ,wBAAA"}
@@ -1,9 +1,18 @@
1
1
  import { z } from "zod";
2
2
 
3
3
  //#region src/actions/tts.d.ts
4
- declare const GanAiTtsInput: z.ZodTypeAny;
5
- declare const GanAiTtsOutput: z.ZodTypeAny;
6
- declare const ganAiTts: import("@keystrokehq/action").WorkflowActionDefinition<unknown, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
4
+ declare const GanAiTtsInput: z.ZodObject<{
5
+ text: z.ZodString;
6
+ voice_id: z.ZodString;
7
+ }, z.core.$strip>;
8
+ declare const GanAiTtsOutput: z.ZodObject<{
9
+ audio: z.ZodNullable<z.ZodString>;
10
+ audio_size_bytes: z.ZodNullable<z.ZodNumber>;
11
+ }, z.core.$strip>;
12
+ declare const ganAiTts: import("@keystrokehq/action").WorkflowActionDefinition<{
13
+ text: string;
14
+ voice_id: string;
15
+ }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
7
16
  //#endregion
8
17
  export { ganAiTts };
9
18
  //# sourceMappingURL=tts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tts.d.mts","names":[],"sources":["../../src/actions/tts.ts"],"mappings":";;;cAIa,aAAA,EAAe,CAAA,CAAE,UAG2F;AAAA,cAC5G,cAAA,EAAgB,CAAA,CAAE,UAGuF;AAAA,cAEzG,QAAA,gCAAQ,wBAAA,iDAAA,mBAAA,yCAAA,UAAA,4CAAA,UAAA"}
1
+ {"version":3,"file":"tts.d.mts","names":[],"sources":["../../src/actions/tts.ts"],"mappings":";;;cAIa,aAAA,EAAa,CAAA,CAAA,SAAA;;;;cAIb,cAAA,EAAc,CAAA,CAAA,SAAA;;;;cAKd,QAAA,gCAAQ,wBAAA"}
@@ -9,8 +9,8 @@ const ganAiTts = action("GAN_AI_TTS", {
9
9
  voice_id: z.string().describe("Unique identifier (UUID) of the voice to use for speech synthesis. Obtain valid voice IDs from the GAN.AI Get Voices endpoint or dashboard.")
10
10
  }).describe("Request model for GAN.AI Text-to-Speech synchronous API.\nConverts text to speech using a specified voice."),
11
11
  output: z.object({
12
- audio: z.string().describe("Binary audio data in WAV format containing the synthesized speech."),
13
- audio_size_bytes: z.number().int().describe("Size of the audio data in bytes.")
12
+ audio: z.string().describe("Binary audio data in WAV format containing the synthesized speech.").nullable(),
13
+ audio_size_bytes: z.number().int().describe("Size of the audio data in bytes.").nullable()
14
14
  }).describe("Response model for GAN.AI Text-to-Speech synchronous API.\nReturns the synthesized audio in WAV format.")
15
15
  });
16
16
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"tts.mjs","names":[],"sources":["../../src/actions/tts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiTtsInput: z.ZodTypeAny = z.object({\n text: z.string().describe(\"The text content to convert to speech. Must be between 40 and 500 characters for optimal synthesis quality.\"),\n voice_id: z.string().describe(\"Unique identifier (UUID) of the voice to use for speech synthesis. Obtain valid voice IDs from the GAN.AI Get Voices endpoint or dashboard.\"),\n}).describe(\"Request model for GAN.AI Text-to-Speech synchronous API.\\nConverts text to speech using a specified voice.\");\nexport const GanAiTtsOutput: z.ZodTypeAny = z.object({\n audio: z.string().describe(\"Binary audio data in WAV format containing the synthesized speech.\"),\n audio_size_bytes: z.number().int().describe(\"Size of the audio data in bytes.\"),\n}).describe(\"Response model for GAN.AI Text-to-Speech synchronous API.\\nReturns the synthesized audio in WAV format.\");\n\nexport const ganAiTts = action(\"GAN_AI_TTS\", {\n slug: \"gan_ai-tts\",\n name: \"GAN AI Text-to-Speech\",\n description: \"Convert text to speech using GAN.AI's Text-to-Speech API. This tool synthesizes speech from text using a specified voice. The voice_id must be obtained from the GAN.AI Get Voices endpoint or from your GAN.AI dashboard. Returns audio in WAV format.\",\n input: GanAiTtsInput,\n output: GanAiTtsOutput,\n});\n"],"mappings":";;AAaA,MAAa,WAAW,OAAO,cAAc;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAbyC,EAAE,OAAO;EAClD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;CAC7K,CAAC,CAAC,CAAC,SAAS,4GAUH;CACP,QAV0C,EAAE,OAAO;EACnD,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE;EAC/F,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC;CAChF,CAAC,CAAC,CAAC,SAAS,yGAOF;AACV,CAAC"}
1
+ {"version":3,"file":"tts.mjs","names":[],"sources":["../../src/actions/tts.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const GanAiTtsInput = z.object({\n text: z.string().describe(\"The text content to convert to speech. Must be between 40 and 500 characters for optimal synthesis quality.\"),\n voice_id: z.string().describe(\"Unique identifier (UUID) of the voice to use for speech synthesis. Obtain valid voice IDs from the GAN.AI Get Voices endpoint or dashboard.\"),\n}).describe(\"Request model for GAN.AI Text-to-Speech synchronous API.\\nConverts text to speech using a specified voice.\");\nexport const GanAiTtsOutput = z.object({\n audio: z.string().describe(\"Binary audio data in WAV format containing the synthesized speech.\").nullable(),\n audio_size_bytes: z.number().int().describe(\"Size of the audio data in bytes.\").nullable(),\n}).describe(\"Response model for GAN.AI Text-to-Speech synchronous API.\\nReturns the synthesized audio in WAV format.\");\n\nexport const ganAiTts = action(\"GAN_AI_TTS\", {\n slug: \"gan_ai-tts\",\n name: \"GAN AI Text-to-Speech\",\n description: \"Convert text to speech using GAN.AI's Text-to-Speech API. This tool synthesizes speech from text using a specified voice. The voice_id must be obtained from the GAN.AI Get Voices endpoint or from your GAN.AI dashboard. Returns audio in WAV format.\",\n input: GanAiTtsInput,\n output: GanAiTtsOutput,\n});\n"],"mappings":";;AAaA,MAAa,WAAW,OAAO,cAAc;CAC3C,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAb2B,EAAE,OAAO;EACpC,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,6GAA6G;EACvI,UAAU,EAAE,OAAO,CAAC,CAAC,SAAS,6IAA6I;CAC7K,CAAC,CAAC,CAAC,SAAS,4GAUH;CACP,QAV4B,EAAE,OAAO;EACrC,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oEAAoE,CAAC,CAAC,SAAS;EAC1G,kBAAkB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,kCAAkC,CAAC,CAAC,SAAS;CAC3F,CAAC,CAAC,CAAC,SAAS,yGAOF;AACV,CAAC"}
package/dist/catalog.cjs CHANGED
@@ -7,7 +7,13 @@ const ganAiCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/gan_ai",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "bearer_token": {
12
+ "label": "Gan.AI API Key",
13
+ "secret": true,
14
+ "description": "The API key generated from Gan.AI's platform, used to authenticate API requests."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  exports.ganAiCatalog = ganAiCatalog;
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ganAiCatalog = {\n \"slug\": \"gan_ai\",\n \"name\": \"Gan.AI\",\n \"description\": \"Gan.AI provides advanced APIs for text-to-speech, voice cloning, and video personalization, enabling developers to integrate natural and expressive speech synthesis into their applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/gan_ai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.cjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ganAiCatalog = {\n \"slug\": \"gan_ai\",\n \"name\": \"Gan.AI\",\n \"description\": \"Gan.AI provides advanced APIs for text-to-speech, voice cloning, and video personalization, enabling developers to integrate natural and expressive speech synthesis into their applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/gan_ai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"bearer_token\": {\n \"label\": \"Gan.AI API Key\",\n \"secret\": true,\n \"description\": \"The API key generated from Gan.AI's platform, used to authenticate API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,gBAAgB;EACd,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
@@ -8,6 +8,14 @@ declare const ganAiCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/gan_ai";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly bearer_token: {
13
+ readonly label: "Gan.AI API Key";
14
+ readonly secret: true;
15
+ readonly description: "The API key generated from Gan.AI's platform, used to authenticate API requests.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { ganAiCatalog };
@@ -8,6 +8,14 @@ declare const ganAiCatalog: {
8
8
  readonly logo: "https://logos.composio.dev/api/gan_ai";
9
9
  readonly authKind: "keystroke";
10
10
  readonly oauthScopes: readonly [];
11
+ readonly credentialFields: {
12
+ readonly bearer_token: {
13
+ readonly label: "Gan.AI API Key";
14
+ readonly secret: true;
15
+ readonly description: "The API key generated from Gan.AI's platform, used to authenticate API requests.";
16
+ };
17
+ };
18
+ readonly credentialScheme: "API_KEY";
11
19
  };
12
20
  //#endregion
13
21
  export { ganAiCatalog };
package/dist/catalog.mjs CHANGED
@@ -7,7 +7,13 @@ const ganAiCatalog = {
7
7
  "category": "Artificial Intelligence",
8
8
  "logo": "https://logos.composio.dev/api/gan_ai",
9
9
  "authKind": "keystroke",
10
- "oauthScopes": []
10
+ "oauthScopes": [],
11
+ "credentialFields": { "bearer_token": {
12
+ "label": "Gan.AI API Key",
13
+ "secret": true,
14
+ "description": "The API key generated from Gan.AI's platform, used to authenticate API requests."
15
+ } },
16
+ "credentialScheme": "API_KEY"
11
17
  };
12
18
  //#endregion
13
19
  export { ganAiCatalog };
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ganAiCatalog = {\n \"slug\": \"gan_ai\",\n \"name\": \"Gan.AI\",\n \"description\": \"Gan.AI provides advanced APIs for text-to-speech, voice cloning, and video personalization, enabling developers to integrate natural and expressive speech synthesis into their applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/gan_ai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": []\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;AAClB"}
1
+ {"version":3,"file":"catalog.mjs","names":[],"sources":["../src/catalog.ts"],"sourcesContent":["/** Generated — kept in sync with src/app.ts. */\nexport const ganAiCatalog = {\n \"slug\": \"gan_ai\",\n \"name\": \"Gan.AI\",\n \"description\": \"Gan.AI provides advanced APIs for text-to-speech, voice cloning, and video personalization, enabling developers to integrate natural and expressive speech synthesis into their applications.\",\n \"category\": \"Artificial Intelligence\",\n \"logo\": \"https://logos.composio.dev/api/gan_ai\",\n \"authKind\": \"keystroke\",\n \"oauthScopes\": [],\n \"credentialFields\": {\n \"bearer_token\": {\n \"label\": \"Gan.AI API Key\",\n \"secret\": true,\n \"description\": \"The API key generated from Gan.AI's platform, used to authenticate API requests.\"\n }\n },\n \"credentialScheme\": \"API_KEY\"\n} as const;\n"],"mappings":";;AACA,MAAa,eAAe;CAC1B,QAAQ;CACR,QAAQ;CACR,eAAe;CACf,YAAY;CACZ,QAAQ;CACR,YAAY;CACZ,eAAe,CAAC;CAChB,oBAAoB,EAClB,gBAAgB;EACd,SAAS;EACT,UAAU;EACV,eAAe;CACjB,EACF;CACA,oBAAoB;AACtB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@keystrokehq/gan_ai",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  "peerDependencies": {
34
- "@keystrokehq/keystroke": "^0.1.4",
34
+ "@keystrokehq/keystroke": ">=0.1.4",
35
35
  "zod": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {