@supertone/supertone 0.1.4 → 0.1.5

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 (181) hide show
  1. package/README.md +281 -9
  2. package/custom_test/test_real_api.ts +149 -13
  3. package/dist/commonjs/funcs/customVoicesCreateClonedVoice.d.ts +1 -1
  4. package/dist/commonjs/funcs/customVoicesCreateClonedVoice.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/customVoicesCreateClonedVoice.js +6 -2
  6. package/dist/commonjs/funcs/customVoicesCreateClonedVoice.js.map +1 -1
  7. package/dist/commonjs/funcs/customVoicesEditCustomVoice.d.ts +1 -1
  8. package/dist/commonjs/funcs/customVoicesEditCustomVoice.js +2 -2
  9. package/dist/commonjs/funcs/customVoicesGetCustomVoice.d.ts +1 -1
  10. package/dist/commonjs/funcs/customVoicesGetCustomVoice.d.ts.map +1 -1
  11. package/dist/commonjs/funcs/customVoicesGetCustomVoice.js +1 -1
  12. package/dist/commonjs/funcs/customVoicesGetCustomVoice.js.map +1 -1
  13. package/dist/commonjs/funcs/textToSpeechPredictDuration.js +3 -1
  14. package/dist/commonjs/funcs/textToSpeechPredictDuration.js.map +1 -1
  15. package/dist/commonjs/lib/config.d.ts +3 -3
  16. package/dist/commonjs/lib/config.d.ts.map +1 -1
  17. package/dist/commonjs/lib/config.js +3 -3
  18. package/dist/commonjs/lib/config.js.map +1 -1
  19. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.d.ts +3 -0
  20. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
  21. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.js +1 -0
  22. package/dist/commonjs/models/apiconverttexttospeechusingcharacterrequest.js.map +1 -1
  23. package/dist/commonjs/models/createcustomvoiceresponse.d.ts +32 -0
  24. package/dist/commonjs/models/createcustomvoiceresponse.d.ts.map +1 -0
  25. package/dist/commonjs/models/{createclonedvoiceuploadresponse.js → createcustomvoiceresponse.js} +17 -17
  26. package/dist/commonjs/models/createcustomvoiceresponse.js.map +1 -0
  27. package/dist/commonjs/models/getcustomvoicelistresponse.d.ts +3 -3
  28. package/dist/commonjs/models/getcustomvoicelistresponse.d.ts.map +1 -1
  29. package/dist/commonjs/models/getcustomvoicelistresponse.js +3 -3
  30. package/dist/commonjs/models/getcustomvoicelistresponse.js.map +1 -1
  31. package/dist/commonjs/models/getcustomvoiceresponse.d.ts +42 -0
  32. package/dist/commonjs/models/getcustomvoiceresponse.d.ts.map +1 -0
  33. package/dist/commonjs/models/{getcustomvoiceresponsedata.js → getcustomvoiceresponse.js} +17 -17
  34. package/dist/commonjs/models/getcustomvoiceresponse.js.map +1 -0
  35. package/dist/commonjs/models/index.d.ts +5 -6
  36. package/dist/commonjs/models/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/index.js +5 -6
  38. package/dist/commonjs/models/index.js.map +1 -1
  39. package/dist/commonjs/models/operations/editcustomvoice.d.ts +2 -2
  40. package/dist/commonjs/models/operations/editcustomvoice.js +4 -4
  41. package/dist/commonjs/models/operations/predictduration.d.ts +2 -2
  42. package/dist/commonjs/models/operations/predictduration.d.ts.map +1 -1
  43. package/dist/commonjs/models/operations/predictduration.js +4 -4
  44. package/dist/commonjs/models/operations/predictduration.js.map +1 -1
  45. package/dist/commonjs/models/{predictttsdurationusingcharacterrequest.d.ts → predictttsdurationrequest.d.ts} +41 -38
  46. package/dist/commonjs/models/predictttsdurationrequest.d.ts.map +1 -0
  47. package/dist/commonjs/models/predictttsdurationrequest.js +181 -0
  48. package/dist/commonjs/models/predictttsdurationrequest.js.map +1 -0
  49. package/dist/commonjs/models/updatecustomvoicerequest.d.ts +37 -0
  50. package/dist/commonjs/models/{updateclonedvoicerequest.d.ts.map → updatecustomvoicerequest.d.ts.map} +1 -1
  51. package/dist/commonjs/models/{updateclonedvoicerequest.js → updatecustomvoicerequest.js} +17 -17
  52. package/dist/commonjs/models/{updateclonedvoicerequest.js.map → updatecustomvoicerequest.js.map} +1 -1
  53. package/dist/commonjs/models/updatecustomvoiceresponse.d.ts +42 -0
  54. package/dist/commonjs/models/{updateclonedvoiceresponse.d.ts.map → updatecustomvoiceresponse.d.ts.map} +1 -1
  55. package/dist/commonjs/models/{updateclonedvoiceresponse.js → updatecustomvoiceresponse.js} +17 -17
  56. package/dist/commonjs/models/{updateclonedvoiceresponse.js.map → updatecustomvoiceresponse.js.map} +1 -1
  57. package/dist/commonjs/sdk/customvoices.d.ts +3 -3
  58. package/dist/commonjs/sdk/customvoices.d.ts.map +1 -1
  59. package/dist/commonjs/sdk/texttospeech.d.ts +6 -13
  60. package/dist/commonjs/sdk/texttospeech.d.ts.map +1 -1
  61. package/dist/commonjs/sdk/texttospeech.js +12 -9
  62. package/dist/commonjs/sdk/texttospeech.js.map +1 -1
  63. package/dist/esm/funcs/customVoicesCreateClonedVoice.d.ts +1 -1
  64. package/dist/esm/funcs/customVoicesCreateClonedVoice.d.ts.map +1 -1
  65. package/dist/esm/funcs/customVoicesCreateClonedVoice.js +6 -2
  66. package/dist/esm/funcs/customVoicesCreateClonedVoice.js.map +1 -1
  67. package/dist/esm/funcs/customVoicesEditCustomVoice.d.ts +1 -1
  68. package/dist/esm/funcs/customVoicesEditCustomVoice.js +2 -2
  69. package/dist/esm/funcs/customVoicesGetCustomVoice.d.ts +1 -1
  70. package/dist/esm/funcs/customVoicesGetCustomVoice.d.ts.map +1 -1
  71. package/dist/esm/funcs/customVoicesGetCustomVoice.js +1 -1
  72. package/dist/esm/funcs/customVoicesGetCustomVoice.js.map +1 -1
  73. package/dist/esm/funcs/textToSpeechPredictDuration.js +3 -1
  74. package/dist/esm/funcs/textToSpeechPredictDuration.js.map +1 -1
  75. package/dist/esm/lib/config.d.ts +3 -3
  76. package/dist/esm/lib/config.d.ts.map +1 -1
  77. package/dist/esm/lib/config.js +3 -3
  78. package/dist/esm/lib/config.js.map +1 -1
  79. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.d.ts +3 -0
  80. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.d.ts.map +1 -1
  81. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.js +1 -0
  82. package/dist/esm/models/apiconverttexttospeechusingcharacterrequest.js.map +1 -1
  83. package/dist/esm/models/createcustomvoiceresponse.d.ts +32 -0
  84. package/dist/esm/models/createcustomvoiceresponse.d.ts.map +1 -0
  85. package/dist/esm/models/createcustomvoiceresponse.js +40 -0
  86. package/dist/esm/models/createcustomvoiceresponse.js.map +1 -0
  87. package/dist/esm/models/getcustomvoicelistresponse.d.ts +3 -3
  88. package/dist/esm/models/getcustomvoicelistresponse.d.ts.map +1 -1
  89. package/dist/esm/models/getcustomvoicelistresponse.js +3 -3
  90. package/dist/esm/models/getcustomvoicelistresponse.js.map +1 -1
  91. package/dist/esm/models/getcustomvoiceresponse.d.ts +42 -0
  92. package/dist/esm/models/getcustomvoiceresponse.d.ts.map +1 -0
  93. package/dist/esm/models/getcustomvoiceresponse.js +44 -0
  94. package/dist/esm/models/getcustomvoiceresponse.js.map +1 -0
  95. package/dist/esm/models/index.d.ts +5 -6
  96. package/dist/esm/models/index.d.ts.map +1 -1
  97. package/dist/esm/models/index.js +5 -6
  98. package/dist/esm/models/index.js.map +1 -1
  99. package/dist/esm/models/operations/editcustomvoice.d.ts +2 -2
  100. package/dist/esm/models/operations/editcustomvoice.js +4 -4
  101. package/dist/esm/models/operations/predictduration.d.ts +2 -2
  102. package/dist/esm/models/operations/predictduration.d.ts.map +1 -1
  103. package/dist/esm/models/operations/predictduration.js +4 -4
  104. package/dist/esm/models/operations/predictduration.js.map +1 -1
  105. package/dist/esm/models/{predictttsdurationusingcharacterrequest.d.ts → predictttsdurationrequest.d.ts} +41 -38
  106. package/dist/esm/models/predictttsdurationrequest.d.ts.map +1 -0
  107. package/dist/esm/models/predictttsdurationrequest.js +143 -0
  108. package/dist/esm/models/predictttsdurationrequest.js.map +1 -0
  109. package/dist/esm/models/updatecustomvoicerequest.d.ts +37 -0
  110. package/dist/esm/models/{updateclonedvoicerequest.d.ts.map → updatecustomvoicerequest.d.ts.map} +1 -1
  111. package/dist/esm/models/updatecustomvoicerequest.js +33 -0
  112. package/dist/esm/models/{updateclonedvoicerequest.js.map → updatecustomvoicerequest.js.map} +1 -1
  113. package/dist/esm/models/updatecustomvoiceresponse.d.ts +42 -0
  114. package/dist/esm/models/{updateclonedvoiceresponse.d.ts.map → updatecustomvoiceresponse.d.ts.map} +1 -1
  115. package/dist/esm/models/updatecustomvoiceresponse.js +44 -0
  116. package/dist/esm/models/{updateclonedvoiceresponse.js.map → updatecustomvoiceresponse.js.map} +1 -1
  117. package/dist/esm/sdk/customvoices.d.ts +3 -3
  118. package/dist/esm/sdk/customvoices.d.ts.map +1 -1
  119. package/dist/esm/sdk/texttospeech.d.ts +6 -13
  120. package/dist/esm/sdk/texttospeech.d.ts.map +1 -1
  121. package/dist/esm/sdk/texttospeech.js +13 -10
  122. package/dist/esm/sdk/texttospeech.js.map +1 -1
  123. package/jsr.json +1 -1
  124. package/openapi.json +85 -49
  125. package/package.json +1 -1
  126. package/src/funcs/customVoicesCreateClonedVoice.ts +9 -5
  127. package/src/funcs/customVoicesEditCustomVoice.ts +5 -5
  128. package/src/funcs/customVoicesGetCustomVoice.ts +4 -4
  129. package/src/funcs/textToSpeechPredictDuration.ts +3 -5
  130. package/src/lib/config.ts +41 -41
  131. package/src/models/apiconverttexttospeechusingcharacterrequest.ts +1 -0
  132. package/src/models/createcustomvoiceresponse.ts +78 -0
  133. package/src/models/getcustomvoicelistresponse.ts +9 -9
  134. package/src/models/getcustomvoiceresponse.ts +92 -0
  135. package/src/models/index.ts +5 -6
  136. package/src/models/operations/editcustomvoice.ts +6 -6
  137. package/src/models/operations/predictduration.ts +6 -12
  138. package/src/models/predictttsdurationrequest.ts +256 -0
  139. package/src/models/updatecustomvoicerequest.ts +76 -0
  140. package/src/models/{updateclonedvoiceresponse.ts → updatecustomvoiceresponse.ts} +21 -21
  141. package/src/sdk/customvoices.ts +3 -3
  142. package/src/sdk/texttospeech.ts +54 -40
  143. package/dist/commonjs/models/createclonedvoiceuploadresponse.d.ts +0 -32
  144. package/dist/commonjs/models/createclonedvoiceuploadresponse.d.ts.map +0 -1
  145. package/dist/commonjs/models/createclonedvoiceuploadresponse.js.map +0 -1
  146. package/dist/commonjs/models/getcustomvoiceresponsedata.d.ts +0 -42
  147. package/dist/commonjs/models/getcustomvoiceresponsedata.d.ts.map +0 -1
  148. package/dist/commonjs/models/getcustomvoiceresponsedata.js.map +0 -1
  149. package/dist/commonjs/models/getsingleclonedvoiceresponse.d.ts +0 -42
  150. package/dist/commonjs/models/getsingleclonedvoiceresponse.d.ts.map +0 -1
  151. package/dist/commonjs/models/getsingleclonedvoiceresponse.js +0 -82
  152. package/dist/commonjs/models/getsingleclonedvoiceresponse.js.map +0 -1
  153. package/dist/commonjs/models/predictttsdurationusingcharacterrequest.d.ts.map +0 -1
  154. package/dist/commonjs/models/predictttsdurationusingcharacterrequest.js +0 -182
  155. package/dist/commonjs/models/predictttsdurationusingcharacterrequest.js.map +0 -1
  156. package/dist/commonjs/models/updateclonedvoicerequest.d.ts +0 -37
  157. package/dist/commonjs/models/updateclonedvoiceresponse.d.ts +0 -42
  158. package/dist/esm/models/createclonedvoiceuploadresponse.d.ts +0 -32
  159. package/dist/esm/models/createclonedvoiceuploadresponse.d.ts.map +0 -1
  160. package/dist/esm/models/createclonedvoiceuploadresponse.js +0 -40
  161. package/dist/esm/models/createclonedvoiceuploadresponse.js.map +0 -1
  162. package/dist/esm/models/getcustomvoiceresponsedata.d.ts +0 -42
  163. package/dist/esm/models/getcustomvoiceresponsedata.d.ts.map +0 -1
  164. package/dist/esm/models/getcustomvoiceresponsedata.js +0 -44
  165. package/dist/esm/models/getcustomvoiceresponsedata.js.map +0 -1
  166. package/dist/esm/models/getsingleclonedvoiceresponse.d.ts +0 -42
  167. package/dist/esm/models/getsingleclonedvoiceresponse.d.ts.map +0 -1
  168. package/dist/esm/models/getsingleclonedvoiceresponse.js +0 -44
  169. package/dist/esm/models/getsingleclonedvoiceresponse.js.map +0 -1
  170. package/dist/esm/models/predictttsdurationusingcharacterrequest.d.ts.map +0 -1
  171. package/dist/esm/models/predictttsdurationusingcharacterrequest.js +0 -144
  172. package/dist/esm/models/predictttsdurationusingcharacterrequest.js.map +0 -1
  173. package/dist/esm/models/updateclonedvoicerequest.d.ts +0 -37
  174. package/dist/esm/models/updateclonedvoicerequest.js +0 -33
  175. package/dist/esm/models/updateclonedvoiceresponse.d.ts +0 -42
  176. package/dist/esm/models/updateclonedvoiceresponse.js +0 -44
  177. package/src/models/createclonedvoiceuploadresponse.ts +0 -80
  178. package/src/models/getcustomvoiceresponsedata.ts +0 -92
  179. package/src/models/getsingleclonedvoiceresponse.ts +0 -94
  180. package/src/models/predictttsdurationusingcharacterrequest.ts +0 -276
  181. package/src/models/updateclonedvoicerequest.ts +0 -76
@@ -6,7 +6,7 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
6
  /**
7
7
  * Language code of the voice
8
8
  */
9
- export declare const PredictTTSDurationUsingCharacterRequestLanguage: {
9
+ export declare const PredictTTSDurationRequestLanguage: {
10
10
  readonly En: "en";
11
11
  readonly Ko: "ko";
12
12
  readonly Ja: "ja";
@@ -34,32 +34,33 @@ export declare const PredictTTSDurationUsingCharacterRequestLanguage: {
34
34
  /**
35
35
  * Language code of the voice
36
36
  */
37
- export type PredictTTSDurationUsingCharacterRequestLanguage = ClosedEnum<typeof PredictTTSDurationUsingCharacterRequestLanguage>;
37
+ export type PredictTTSDurationRequestLanguage = ClosedEnum<typeof PredictTTSDurationRequestLanguage>;
38
38
  /**
39
39
  * The model type to use for the text-to-speech conversion
40
40
  */
41
- export declare const PredictTTSDurationUsingCharacterRequestModel: {
41
+ export declare const PredictTTSDurationRequestModel: {
42
42
  readonly SonaSpeech1: "sona_speech_1";
43
43
  readonly SonaSpeech2: "sona_speech_2";
44
44
  readonly SonaSpeech2t: "sona_speech_2t";
45
+ readonly SonaSpeech2Flash: "sona_speech_2_flash";
45
46
  readonly SupertonicApi1: "supertonic_api_1";
46
47
  };
47
48
  /**
48
49
  * The model type to use for the text-to-speech conversion
49
50
  */
50
- export type PredictTTSDurationUsingCharacterRequestModel = ClosedEnum<typeof PredictTTSDurationUsingCharacterRequestModel>;
51
+ export type PredictTTSDurationRequestModel = ClosedEnum<typeof PredictTTSDurationRequestModel>;
51
52
  /**
52
53
  * The desired output format of the audio file (wav, mp3). Default is wav.
53
54
  */
54
- export declare const PredictTTSDurationUsingCharacterRequestOutputFormat: {
55
+ export declare const PredictTTSDurationRequestOutputFormat: {
55
56
  readonly Wav: "wav";
56
57
  readonly Mp3: "mp3";
57
58
  };
58
59
  /**
59
60
  * The desired output format of the audio file (wav, mp3). Default is wav.
60
61
  */
61
- export type PredictTTSDurationUsingCharacterRequestOutputFormat = ClosedEnum<typeof PredictTTSDurationUsingCharacterRequestOutputFormat>;
62
- export type PredictTTSDurationUsingCharacterRequest = {
62
+ export type PredictTTSDurationRequestOutputFormat = ClosedEnum<typeof PredictTTSDurationRequestOutputFormat>;
63
+ export type PredictTTSDurationRequest = {
63
64
  /**
64
65
  * The text to convert to speech. Max length is 300 characters.
65
66
  */
@@ -67,7 +68,7 @@ export type PredictTTSDurationUsingCharacterRequest = {
67
68
  /**
68
69
  * Language code of the voice
69
70
  */
70
- language: PredictTTSDurationUsingCharacterRequestLanguage;
71
+ language: PredictTTSDurationRequestLanguage;
71
72
  /**
72
73
  * The style of character to use for the text-to-speech conversion
73
74
  */
@@ -75,23 +76,23 @@ export type PredictTTSDurationUsingCharacterRequest = {
75
76
  /**
76
77
  * The model type to use for the text-to-speech conversion
77
78
  */
78
- model?: PredictTTSDurationUsingCharacterRequestModel | undefined;
79
+ model?: PredictTTSDurationRequestModel | undefined;
79
80
  /**
80
81
  * The desired output format of the audio file (wav, mp3). Default is wav.
81
82
  */
82
- outputFormat?: PredictTTSDurationUsingCharacterRequestOutputFormat | undefined;
83
+ outputFormat?: PredictTTSDurationRequestOutputFormat | undefined;
83
84
  voiceSettings?: ConvertTextToSpeechParameters | undefined;
84
85
  };
85
86
  /** @internal */
86
- export declare const PredictTTSDurationUsingCharacterRequestLanguage$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestLanguage>;
87
+ export declare const PredictTTSDurationRequestLanguage$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestLanguage>;
87
88
  /** @internal */
88
- export declare const PredictTTSDurationUsingCharacterRequestLanguage$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestLanguage>;
89
+ export declare const PredictTTSDurationRequestLanguage$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestLanguage>;
89
90
  /**
90
91
  * @internal
91
92
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
92
93
  */
93
- export declare namespace PredictTTSDurationUsingCharacterRequestLanguage$ {
94
- /** @deprecated use `PredictTTSDurationUsingCharacterRequestLanguage$inboundSchema` instead. */
94
+ export declare namespace PredictTTSDurationRequestLanguage$ {
95
+ /** @deprecated use `PredictTTSDurationRequestLanguage$inboundSchema` instead. */
95
96
  const inboundSchema: z.ZodNativeEnum<{
96
97
  readonly En: "en";
97
98
  readonly Ko: "ko";
@@ -117,7 +118,7 @@ export declare namespace PredictTTSDurationUsingCharacterRequestLanguage$ {
117
118
  readonly Ru: "ru";
118
119
  readonly Vi: "vi";
119
120
  }>;
120
- /** @deprecated use `PredictTTSDurationUsingCharacterRequestLanguage$outboundSchema` instead. */
121
+ /** @deprecated use `PredictTTSDurationRequestLanguage$outboundSchema` instead. */
121
122
  const outboundSchema: z.ZodNativeEnum<{
122
123
  readonly En: "en";
123
124
  readonly Ko: "ko";
@@ -145,53 +146,55 @@ export declare namespace PredictTTSDurationUsingCharacterRequestLanguage$ {
145
146
  }>;
146
147
  }
147
148
  /** @internal */
148
- export declare const PredictTTSDurationUsingCharacterRequestModel$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestModel>;
149
+ export declare const PredictTTSDurationRequestModel$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestModel>;
149
150
  /** @internal */
150
- export declare const PredictTTSDurationUsingCharacterRequestModel$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestModel>;
151
+ export declare const PredictTTSDurationRequestModel$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestModel>;
151
152
  /**
152
153
  * @internal
153
154
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
154
155
  */
155
- export declare namespace PredictTTSDurationUsingCharacterRequestModel$ {
156
- /** @deprecated use `PredictTTSDurationUsingCharacterRequestModel$inboundSchema` instead. */
156
+ export declare namespace PredictTTSDurationRequestModel$ {
157
+ /** @deprecated use `PredictTTSDurationRequestModel$inboundSchema` instead. */
157
158
  const inboundSchema: z.ZodNativeEnum<{
158
159
  readonly SonaSpeech1: "sona_speech_1";
159
160
  readonly SonaSpeech2: "sona_speech_2";
160
161
  readonly SonaSpeech2t: "sona_speech_2t";
162
+ readonly SonaSpeech2Flash: "sona_speech_2_flash";
161
163
  readonly SupertonicApi1: "supertonic_api_1";
162
164
  }>;
163
- /** @deprecated use `PredictTTSDurationUsingCharacterRequestModel$outboundSchema` instead. */
165
+ /** @deprecated use `PredictTTSDurationRequestModel$outboundSchema` instead. */
164
166
  const outboundSchema: z.ZodNativeEnum<{
165
167
  readonly SonaSpeech1: "sona_speech_1";
166
168
  readonly SonaSpeech2: "sona_speech_2";
167
169
  readonly SonaSpeech2t: "sona_speech_2t";
170
+ readonly SonaSpeech2Flash: "sona_speech_2_flash";
168
171
  readonly SupertonicApi1: "supertonic_api_1";
169
172
  }>;
170
173
  }
171
174
  /** @internal */
172
- export declare const PredictTTSDurationUsingCharacterRequestOutputFormat$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestOutputFormat>;
175
+ export declare const PredictTTSDurationRequestOutputFormat$inboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestOutputFormat>;
173
176
  /** @internal */
174
- export declare const PredictTTSDurationUsingCharacterRequestOutputFormat$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationUsingCharacterRequestOutputFormat>;
177
+ export declare const PredictTTSDurationRequestOutputFormat$outboundSchema: z.ZodNativeEnum<typeof PredictTTSDurationRequestOutputFormat>;
175
178
  /**
176
179
  * @internal
177
180
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
178
181
  */
179
- export declare namespace PredictTTSDurationUsingCharacterRequestOutputFormat$ {
180
- /** @deprecated use `PredictTTSDurationUsingCharacterRequestOutputFormat$inboundSchema` instead. */
182
+ export declare namespace PredictTTSDurationRequestOutputFormat$ {
183
+ /** @deprecated use `PredictTTSDurationRequestOutputFormat$inboundSchema` instead. */
181
184
  const inboundSchema: z.ZodNativeEnum<{
182
185
  readonly Wav: "wav";
183
186
  readonly Mp3: "mp3";
184
187
  }>;
185
- /** @deprecated use `PredictTTSDurationUsingCharacterRequestOutputFormat$outboundSchema` instead. */
188
+ /** @deprecated use `PredictTTSDurationRequestOutputFormat$outboundSchema` instead. */
186
189
  const outboundSchema: z.ZodNativeEnum<{
187
190
  readonly Wav: "wav";
188
191
  readonly Mp3: "mp3";
189
192
  }>;
190
193
  }
191
194
  /** @internal */
192
- export declare const PredictTTSDurationUsingCharacterRequest$inboundSchema: z.ZodType<PredictTTSDurationUsingCharacterRequest, z.ZodTypeDef, unknown>;
195
+ export declare const PredictTTSDurationRequest$inboundSchema: z.ZodType<PredictTTSDurationRequest, z.ZodTypeDef, unknown>;
193
196
  /** @internal */
194
- export type PredictTTSDurationUsingCharacterRequest$Outbound = {
197
+ export type PredictTTSDurationRequest$Outbound = {
195
198
  text: string;
196
199
  language: string;
197
200
  style?: string | undefined;
@@ -200,19 +203,19 @@ export type PredictTTSDurationUsingCharacterRequest$Outbound = {
200
203
  voice_settings?: ConvertTextToSpeechParameters$Outbound | undefined;
201
204
  };
202
205
  /** @internal */
203
- export declare const PredictTTSDurationUsingCharacterRequest$outboundSchema: z.ZodType<PredictTTSDurationUsingCharacterRequest$Outbound, z.ZodTypeDef, PredictTTSDurationUsingCharacterRequest>;
206
+ export declare const PredictTTSDurationRequest$outboundSchema: z.ZodType<PredictTTSDurationRequest$Outbound, z.ZodTypeDef, PredictTTSDurationRequest>;
204
207
  /**
205
208
  * @internal
206
209
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
207
210
  */
208
- export declare namespace PredictTTSDurationUsingCharacterRequest$ {
209
- /** @deprecated use `PredictTTSDurationUsingCharacterRequest$inboundSchema` instead. */
210
- const inboundSchema: z.ZodType<PredictTTSDurationUsingCharacterRequest, z.ZodTypeDef, unknown>;
211
- /** @deprecated use `PredictTTSDurationUsingCharacterRequest$outboundSchema` instead. */
212
- const outboundSchema: z.ZodType<PredictTTSDurationUsingCharacterRequest$Outbound, z.ZodTypeDef, PredictTTSDurationUsingCharacterRequest>;
213
- /** @deprecated use `PredictTTSDurationUsingCharacterRequest$Outbound` instead. */
214
- type Outbound = PredictTTSDurationUsingCharacterRequest$Outbound;
211
+ export declare namespace PredictTTSDurationRequest$ {
212
+ /** @deprecated use `PredictTTSDurationRequest$inboundSchema` instead. */
213
+ const inboundSchema: z.ZodType<PredictTTSDurationRequest, z.ZodTypeDef, unknown>;
214
+ /** @deprecated use `PredictTTSDurationRequest$outboundSchema` instead. */
215
+ const outboundSchema: z.ZodType<PredictTTSDurationRequest$Outbound, z.ZodTypeDef, PredictTTSDurationRequest>;
216
+ /** @deprecated use `PredictTTSDurationRequest$Outbound` instead. */
217
+ type Outbound = PredictTTSDurationRequest$Outbound;
215
218
  }
216
- export declare function predictTTSDurationUsingCharacterRequestToJSON(predictTTSDurationUsingCharacterRequest: PredictTTSDurationUsingCharacterRequest): string;
217
- export declare function predictTTSDurationUsingCharacterRequestFromJSON(jsonString: string): SafeParseResult<PredictTTSDurationUsingCharacterRequest, SDKValidationError>;
218
- //# sourceMappingURL=predictttsdurationusingcharacterrequest.d.ts.map
219
+ export declare function predictTTSDurationRequestToJSON(predictTTSDurationRequest: PredictTTSDurationRequest): string;
220
+ export declare function predictTTSDurationRequestFromJSON(jsonString: string): SafeParseResult<PredictTTSDurationRequest, SDKValidationError>;
221
+ //# sourceMappingURL=predictttsdurationrequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"predictttsdurationrequest.d.ts","sourceRoot":"","sources":["../../../src/models/predictttsdurationrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;CAwBpC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG,UAAU,CACxD,OAAO,iCAAiC,CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;;;;CAMjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qCAAqC;;;CAGxC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,qCAAqC,GAAG,UAAU,CAC5D,OAAO,qCAAqC,CAC7C,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,iCAAiC,CAAC;IAC5C;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,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D,sFAAsF;IAC/E,MAAM,cAAc;;;MAC2B,CAAC;CACxD;AAED,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,sCAAsC,GAAG,SAAS,CAAC;CACrE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAezB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D;AAED,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
@@ -0,0 +1,143 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { ConvertTextToSpeechParameters$inboundSchema, ConvertTextToSpeechParameters$outboundSchema, } from "./converttexttospeechparameters.js";
8
+ /**
9
+ * Language code of the voice
10
+ */
11
+ export const PredictTTSDurationRequestLanguage = {
12
+ En: "en",
13
+ Ko: "ko",
14
+ Ja: "ja",
15
+ Bg: "bg",
16
+ Cs: "cs",
17
+ Da: "da",
18
+ El: "el",
19
+ Es: "es",
20
+ Et: "et",
21
+ Fi: "fi",
22
+ Hu: "hu",
23
+ It: "it",
24
+ Nl: "nl",
25
+ Pl: "pl",
26
+ Pt: "pt",
27
+ Ro: "ro",
28
+ Ar: "ar",
29
+ De: "de",
30
+ Fr: "fr",
31
+ Hi: "hi",
32
+ Id: "id",
33
+ Ru: "ru",
34
+ Vi: "vi",
35
+ };
36
+ /**
37
+ * The model type to use for the text-to-speech conversion
38
+ */
39
+ export const PredictTTSDurationRequestModel = {
40
+ SonaSpeech1: "sona_speech_1",
41
+ SonaSpeech2: "sona_speech_2",
42
+ SonaSpeech2t: "sona_speech_2t",
43
+ SonaSpeech2Flash: "sona_speech_2_flash",
44
+ SupertonicApi1: "supertonic_api_1",
45
+ };
46
+ /**
47
+ * The desired output format of the audio file (wav, mp3). Default is wav.
48
+ */
49
+ export const PredictTTSDurationRequestOutputFormat = {
50
+ Wav: "wav",
51
+ Mp3: "mp3",
52
+ };
53
+ /** @internal */
54
+ export const PredictTTSDurationRequestLanguage$inboundSchema = z.nativeEnum(PredictTTSDurationRequestLanguage);
55
+ /** @internal */
56
+ export const PredictTTSDurationRequestLanguage$outboundSchema = PredictTTSDurationRequestLanguage$inboundSchema;
57
+ /**
58
+ * @internal
59
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
60
+ */
61
+ export var PredictTTSDurationRequestLanguage$;
62
+ (function (PredictTTSDurationRequestLanguage$) {
63
+ /** @deprecated use `PredictTTSDurationRequestLanguage$inboundSchema` instead. */
64
+ PredictTTSDurationRequestLanguage$.inboundSchema = PredictTTSDurationRequestLanguage$inboundSchema;
65
+ /** @deprecated use `PredictTTSDurationRequestLanguage$outboundSchema` instead. */
66
+ PredictTTSDurationRequestLanguage$.outboundSchema = PredictTTSDurationRequestLanguage$outboundSchema;
67
+ })(PredictTTSDurationRequestLanguage$ || (PredictTTSDurationRequestLanguage$ = {}));
68
+ /** @internal */
69
+ export const PredictTTSDurationRequestModel$inboundSchema = z.nativeEnum(PredictTTSDurationRequestModel);
70
+ /** @internal */
71
+ export const PredictTTSDurationRequestModel$outboundSchema = PredictTTSDurationRequestModel$inboundSchema;
72
+ /**
73
+ * @internal
74
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
+ */
76
+ export var PredictTTSDurationRequestModel$;
77
+ (function (PredictTTSDurationRequestModel$) {
78
+ /** @deprecated use `PredictTTSDurationRequestModel$inboundSchema` instead. */
79
+ PredictTTSDurationRequestModel$.inboundSchema = PredictTTSDurationRequestModel$inboundSchema;
80
+ /** @deprecated use `PredictTTSDurationRequestModel$outboundSchema` instead. */
81
+ PredictTTSDurationRequestModel$.outboundSchema = PredictTTSDurationRequestModel$outboundSchema;
82
+ })(PredictTTSDurationRequestModel$ || (PredictTTSDurationRequestModel$ = {}));
83
+ /** @internal */
84
+ export const PredictTTSDurationRequestOutputFormat$inboundSchema = z.nativeEnum(PredictTTSDurationRequestOutputFormat);
85
+ /** @internal */
86
+ export const PredictTTSDurationRequestOutputFormat$outboundSchema = PredictTTSDurationRequestOutputFormat$inboundSchema;
87
+ /**
88
+ * @internal
89
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
+ */
91
+ export var PredictTTSDurationRequestOutputFormat$;
92
+ (function (PredictTTSDurationRequestOutputFormat$) {
93
+ /** @deprecated use `PredictTTSDurationRequestOutputFormat$inboundSchema` instead. */
94
+ PredictTTSDurationRequestOutputFormat$.inboundSchema = PredictTTSDurationRequestOutputFormat$inboundSchema;
95
+ /** @deprecated use `PredictTTSDurationRequestOutputFormat$outboundSchema` instead. */
96
+ PredictTTSDurationRequestOutputFormat$.outboundSchema = PredictTTSDurationRequestOutputFormat$outboundSchema;
97
+ })(PredictTTSDurationRequestOutputFormat$ || (PredictTTSDurationRequestOutputFormat$ = {}));
98
+ /** @internal */
99
+ export const PredictTTSDurationRequest$inboundSchema = z.object({
100
+ text: z.string(),
101
+ language: PredictTTSDurationRequestLanguage$inboundSchema,
102
+ style: z.string().optional(),
103
+ model: PredictTTSDurationRequestModel$inboundSchema.default("sona_speech_1"),
104
+ output_format: PredictTTSDurationRequestOutputFormat$inboundSchema.default("wav"),
105
+ voice_settings: ConvertTextToSpeechParameters$inboundSchema.optional(),
106
+ }).transform((v) => {
107
+ return remap$(v, {
108
+ "output_format": "outputFormat",
109
+ "voice_settings": "voiceSettings",
110
+ });
111
+ });
112
+ /** @internal */
113
+ export const PredictTTSDurationRequest$outboundSchema = z.object({
114
+ text: z.string(),
115
+ language: PredictTTSDurationRequestLanguage$outboundSchema,
116
+ style: z.string().optional(),
117
+ model: PredictTTSDurationRequestModel$outboundSchema.default("sona_speech_1"),
118
+ outputFormat: PredictTTSDurationRequestOutputFormat$outboundSchema.default("wav"),
119
+ voiceSettings: ConvertTextToSpeechParameters$outboundSchema.optional(),
120
+ }).transform((v) => {
121
+ return remap$(v, {
122
+ outputFormat: "output_format",
123
+ voiceSettings: "voice_settings",
124
+ });
125
+ });
126
+ /**
127
+ * @internal
128
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
129
+ */
130
+ export var PredictTTSDurationRequest$;
131
+ (function (PredictTTSDurationRequest$) {
132
+ /** @deprecated use `PredictTTSDurationRequest$inboundSchema` instead. */
133
+ PredictTTSDurationRequest$.inboundSchema = PredictTTSDurationRequest$inboundSchema;
134
+ /** @deprecated use `PredictTTSDurationRequest$outboundSchema` instead. */
135
+ PredictTTSDurationRequest$.outboundSchema = PredictTTSDurationRequest$outboundSchema;
136
+ })(PredictTTSDurationRequest$ || (PredictTTSDurationRequest$ = {}));
137
+ export function predictTTSDurationRequestToJSON(predictTTSDurationRequest) {
138
+ return JSON.stringify(PredictTTSDurationRequest$outboundSchema.parse(predictTTSDurationRequest));
139
+ }
140
+ export function predictTTSDurationRequestFromJSON(jsonString) {
141
+ return safeParse(jsonString, (x) => PredictTTSDurationRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PredictTTSDurationRequest' from JSON`);
142
+ }
143
+ //# sourceMappingURL=predictttsdurationrequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"predictttsdurationrequest.js","sourceRoot":"","sources":["../../../src/models/predictttsdurationrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C,OAAO,EAEL,2CAA2C,EAE3C,4CAA4C,GAC7C,MAAM,oCAAoC,CAAC;AAG5C;;GAEG;AACH,MAAM,CAAC,MAAM,iCAAiC,GAAG;IAC/C,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACA,CAAC;AAQX;;GAEG;AACH,MAAM,CAAC,MAAM,8BAA8B,GAAG;IAC5C,WAAW,EAAE,eAAe;IAC5B,WAAW,EAAE,eAAe;IAC5B,YAAY,EAAE,gBA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A0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,uCAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,wCAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C;AAED,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,37 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ export type UpdateCustomVoiceRequest = {
5
+ /**
6
+ * Name of the voice
7
+ */
8
+ name?: string | undefined;
9
+ /**
10
+ * Description of the voice
11
+ */
12
+ description?: string | undefined;
13
+ };
14
+ /** @internal */
15
+ export declare const UpdateCustomVoiceRequest$inboundSchema: z.ZodType<UpdateCustomVoiceRequest, z.ZodTypeDef, unknown>;
16
+ /** @internal */
17
+ export type UpdateCustomVoiceRequest$Outbound = {
18
+ name?: string | undefined;
19
+ description?: string | undefined;
20
+ };
21
+ /** @internal */
22
+ export declare const UpdateCustomVoiceRequest$outboundSchema: z.ZodType<UpdateCustomVoiceRequest$Outbound, z.ZodTypeDef, UpdateCustomVoiceRequest>;
23
+ /**
24
+ * @internal
25
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
+ */
27
+ export declare namespace UpdateCustomVoiceRequest$ {
28
+ /** @deprecated use `UpdateCustomVoiceRequest$inboundSchema` instead. */
29
+ const inboundSchema: z.ZodType<UpdateCustomVoiceRequest, z.ZodTypeDef, unknown>;
30
+ /** @deprecated use `UpdateCustomVoiceRequest$outboundSchema` instead. */
31
+ const outboundSchema: z.ZodType<UpdateCustomVoiceRequest$Outbound, z.ZodTypeDef, UpdateCustomVoiceRequest>;
32
+ /** @deprecated use `UpdateCustomVoiceRequest$Outbound` instead. */
33
+ type Outbound = UpdateCustomVoiceRequest$Outbound;
34
+ }
35
+ export declare function updateCustomVoiceRequestToJSON(updateCustomVoiceRequest: UpdateCustomVoiceRequest): string;
36
+ export declare function updateCustomVoiceRequestFromJSON(jsonString: string): SafeParseResult<UpdateCustomVoiceRequest, SDKValidationError>;
37
+ //# sourceMappingURL=updatecustomvoicerequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateclonedvoicerequest.d.ts","sourceRoot":"","sources":["../../../src/models/updateclonedvoicerequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAu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AAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAIxB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { safeParse } from "../lib/schemas.js";
6
+ /** @internal */
7
+ export const UpdateCustomVoiceRequest$inboundSchema = z.object({
8
+ name: z.string().optional(),
9
+ description: z.string().optional(),
10
+ });
11
+ /** @internal */
12
+ export const UpdateCustomVoiceRequest$outboundSchema = z.object({
13
+ name: z.string().optional(),
14
+ description: z.string().optional(),
15
+ });
16
+ /**
17
+ * @internal
18
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
19
+ */
20
+ export var UpdateCustomVoiceRequest$;
21
+ (function (UpdateCustomVoiceRequest$) {
22
+ /** @deprecated use `UpdateCustomVoiceRequest$inboundSchema` instead. */
23
+ UpdateCustomVoiceRequest$.inboundSchema = UpdateCustomVoiceRequest$inboundSchema;
24
+ /** @deprecated use `UpdateCustomVoiceRequest$outboundSchema` instead. */
25
+ UpdateCustomVoiceRequest$.outboundSchema = UpdateCustomVoiceRequest$outboundSchema;
26
+ })(UpdateCustomVoiceRequest$ || (UpdateCustomVoiceRequest$ = {}));
27
+ export function updateCustomVoiceRequestToJSON(updateCustomVoiceRequest) {
28
+ return JSON.stringify(UpdateCustomVoiceRequest$outboundSchema.parse(updateCustomVoiceRequest));
29
+ }
30
+ export function updateCustomVoiceRequestFromJSON(jsonString) {
31
+ return safeParse(jsonString, (x) => UpdateCustomVoiceRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCustomVoiceRequest' from JSON`);
32
+ }
33
+ //# sourceMappingURL=updatecustomvoicerequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateclonedvoicerequest.js","sourceRoot":"","sources":["../../../src/models/updateclonedvoicerequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAe9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,sCAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,uCAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,KAAzB,yBAAyB,QAOzC;AAED,MAAM,UAAU,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,uCAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;A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AAU,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,42 @@
1
+ import * as z from "zod";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
+ export type UpdateCustomVoiceResponse = {
5
+ /**
6
+ * Unique identifier for the voice
7
+ */
8
+ voiceId: string;
9
+ /**
10
+ * Name of the voice
11
+ */
12
+ name: string;
13
+ /**
14
+ * Description of the voice
15
+ */
16
+ description: string;
17
+ };
18
+ /** @internal */
19
+ export declare const UpdateCustomVoiceResponse$inboundSchema: z.ZodType<UpdateCustomVoiceResponse, z.ZodTypeDef, unknown>;
20
+ /** @internal */
21
+ export type UpdateCustomVoiceResponse$Outbound = {
22
+ voice_id: string;
23
+ name: string;
24
+ description: string;
25
+ };
26
+ /** @internal */
27
+ export declare const UpdateCustomVoiceResponse$outboundSchema: z.ZodType<UpdateCustomVoiceResponse$Outbound, z.ZodTypeDef, UpdateCustomVoiceResponse>;
28
+ /**
29
+ * @internal
30
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
31
+ */
32
+ export declare namespace UpdateCustomVoiceResponse$ {
33
+ /** @deprecated use `UpdateCustomVoiceResponse$inboundSchema` instead. */
34
+ const inboundSchema: z.ZodType<UpdateCustomVoiceResponse, z.ZodTypeDef, unknown>;
35
+ /** @deprecated use `UpdateCustomVoiceResponse$outboundSchema` instead. */
36
+ const outboundSchema: z.ZodType<UpdateCustomVoiceResponse$Outbound, z.ZodTypeDef, UpdateCustomVoiceResponse>;
37
+ /** @deprecated use `UpdateCustomVoiceResponse$Outbound` instead. */
38
+ type Outbound = UpdateCustomVoiceResponse$Outbound;
39
+ }
40
+ export declare function updateCustomVoiceResponseToJSON(updateCustomVoiceResponse: UpdateCustomVoiceResponse): string;
41
+ export declare function updateCustomVoiceResponseFromJSON(jsonString: string): SafeParseResult<UpdateCustomVoiceResponse, SDKValidationError>;
42
+ //# sourceMappingURL=updatecustomvoiceresponse.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateclonedvoiceresponse.d.ts","sourceRoot":"","sources":["../../../src/models/updateclonedvoiceresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CASzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D;AAED,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
1
+ {"version":3,"file":"updatecustomvoiceresponse.d.ts","sourceRoot":"","sources":["../../../src/models/updatecustomvoiceresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CASzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D;AAED,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
@@ -0,0 +1,44 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod";
5
+ import { remap as remap$ } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ /** @internal */
8
+ export const UpdateCustomVoiceResponse$inboundSchema = z.object({
9
+ voice_id: z.string(),
10
+ name: z.string(),
11
+ description: z.string(),
12
+ }).transform((v) => {
13
+ return remap$(v, {
14
+ "voice_id": "voiceId",
15
+ });
16
+ });
17
+ /** @internal */
18
+ export const UpdateCustomVoiceResponse$outboundSchema = z.object({
19
+ voiceId: z.string(),
20
+ name: z.string(),
21
+ description: z.string(),
22
+ }).transform((v) => {
23
+ return remap$(v, {
24
+ voiceId: "voice_id",
25
+ });
26
+ });
27
+ /**
28
+ * @internal
29
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
+ */
31
+ export var UpdateCustomVoiceResponse$;
32
+ (function (UpdateCustomVoiceResponse$) {
33
+ /** @deprecated use `UpdateCustomVoiceResponse$inboundSchema` instead. */
34
+ UpdateCustomVoiceResponse$.inboundSchema = UpdateCustomVoiceResponse$inboundSchema;
35
+ /** @deprecated use `UpdateCustomVoiceResponse$outboundSchema` instead. */
36
+ UpdateCustomVoiceResponse$.outboundSchema = UpdateCustomVoiceResponse$outboundSchema;
37
+ })(UpdateCustomVoiceResponse$ || (UpdateCustomVoiceResponse$ = {}));
38
+ export function updateCustomVoiceResponseToJSON(updateCustomVoiceResponse) {
39
+ return JSON.stringify(UpdateCustomVoiceResponse$outboundSchema.parse(updateCustomVoiceResponse));
40
+ }
41
+ export function updateCustomVoiceResponseFromJSON(jsonString) {
42
+ return safeParse(jsonString, (x) => UpdateCustomVoiceResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UpdateCustomVoiceResponse' from JSON`);
43
+ }
44
+ //# sourceMappingURL=updatecustomvoiceresponse.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateclonedvoiceresponse.js","sourceRoot":"","sources":["../../../src/models/updateclonedvoiceresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAmB9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,uCAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,wCAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C;AAED,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"updatecustomvoiceresponse.js","sourceRoot":"","sources":["../../../src/models/updatecustomvoiceresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAmB9C,gBAAgB;AAChB,MAAM,CAAC,MAAM,uCAAuC,GAIhD,CAAC,CAAC,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;KACtB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,MAAM,KAAW,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,uCAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,wCAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,KAA1B,0BAA0B,QAO1C;AAED,MAAM,UAAU,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -8,7 +8,7 @@ export declare class CustomVoices extends ClientSDK {
8
8
  * @remarks
9
9
  * Creates a custom (cloned) voice from uploaded audio files.
10
10
  */
11
- createClonedVoice(request: operations.CreateClonedVoiceRequest, options?: RequestOptions): Promise<models.CreateClonedVoiceUploadResponse>;
11
+ createClonedVoice(request: operations.CreateClonedVoiceRequest, options?: RequestOptions): Promise<models.CreateCustomVoiceResponse>;
12
12
  /**
13
13
  * Gets custom (cloned) voices
14
14
  *
@@ -29,14 +29,14 @@ export declare class CustomVoices extends ClientSDK {
29
29
  * @remarks
30
30
  * Gets details of a specific custom (cloned) voice by ID.
31
31
  */
32
- getCustomVoice(request: operations.GetCustomVoiceRequest, options?: RequestOptions): Promise<models.GetSingleClonedVoiceResponse>;
32
+ getCustomVoice(request: operations.GetCustomVoiceRequest, options?: RequestOptions): Promise<models.GetCustomVoiceResponse>;
33
33
  /**
34
34
  * Update cloned voice (partial update)
35
35
  *
36
36
  * @remarks
37
37
  * Partially updates properties of a custom (cloned) voice by ID.
38
38
  */
39
- editCustomVoice(request: operations.EditCustomVoiceRequest, options?: RequestOptions): Promise<models.UpdateClonedVoiceResponse>;
39
+ editCustomVoice(request: operations.EditCustomVoiceRequest, options?: RequestOptions): Promise<models.UpdateCustomVoiceResponse>;
40
40
  /**
41
41
  * Delete cloned voice
42
42
  *
@@ -1 +1 @@
1
- {"version":3,"file":"customvoices.d.ts","sourceRoot":"","sources":["../../../src/sdk/customvoices.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAG5D,qBAAa,YAAa,SAAQ,SAAS;IACzC;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,+BAA+B,CAAC;IAQlD;;;;;OAKG;IACG,gBAAgB,CACpB,OAAO,CAAC,EAAE,UAAU,CAAC,uBAAuB,GAAG,SAAS,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC;IAQ7C;;;;;OAKG;IACG,kBAAkB,CACtB,OAAO,CAAC,EAAE,UAAU,CAAC,yBAAyB,GAAG,SAAS,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAAC;IAQ7C;;;;;OAKG;IACG,cAAc,CAClB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,C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AE,UAAU,CAAC,sBAAsB,EAC1C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAC;IAQ5C;;;;;OAKG;IACG,iBAAiB,CACrB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,IAAI,CAAC;CAOjB"}
@@ -2,17 +2,6 @@ import { CreateSpeechAcceptEnum } from "../funcs/textToSpeechCreateSpeech.js";
2
2
  import { StreamSpeechAcceptEnum } from "../funcs/textToSpeechStreamSpeech.js";
3
3
  import { ClientSDK, RequestOptions } from "../lib/sdks.js";
4
4
  import * as operations from "../models/operations/index.js";
5
- import { type PronunciationDictionaryEntry } from "../lib/custom_utils/index.js";
6
- type CreateSpeechOptions = RequestOptions & {
7
- acceptHeaderOverride?: CreateSpeechAcceptEnum;
8
- maxTextLength?: number;
9
- pronunciationDictionary?: PronunciationDictionaryEntry[];
10
- };
11
- type StreamSpeechOptions = RequestOptions & {
12
- acceptHeaderOverride?: StreamSpeechAcceptEnum;
13
- maxTextLength?: number;
14
- pronunciationDictionary?: PronunciationDictionaryEntry[];
15
- };
16
5
  export { CreateSpeechAcceptEnum } from "../funcs/textToSpeechCreateSpeech.js";
17
6
  export { StreamSpeechAcceptEnum } from "../funcs/textToSpeechStreamSpeech.js";
18
7
  export declare class TextToSpeech extends ClientSDK {
@@ -54,14 +43,18 @@ export declare class TextToSpeech extends ClientSDK {
54
43
  * @remarks
55
44
  * Convert text to speech using the specified voice
56
45
  */
57
- createSpeech(request: operations.CreateSpeechRequest, options?: CreateSpeechOptions): Promise<operations.CreateSpeechResponse>;
46
+ createSpeech(request: operations.CreateSpeechRequest, options?: RequestOptions & {
47
+ acceptHeaderOverride?: CreateSpeechAcceptEnum;
48
+ }): Promise<operations.CreateSpeechResponse>;
58
49
  /**
59
50
  * Convert text to speech with streaming response
60
51
  *
61
52
  * @remarks
62
53
  * Convert text to speech using the specified voice with streaming response. Returns binary audio stream.
63
54
  */
64
- streamSpeech(request: operations.StreamSpeechRequest, options?: StreamSpeechOptions): Promise<operations.StreamSpeechResponse>;
55
+ streamSpeech(request: operations.StreamSpeechRequest, options?: RequestOptions & {
56
+ acceptHeaderOverride?: StreamSpeechAcceptEnum;
57
+ }): Promise<operations.StreamSpeechResponse>;
65
58
  /**
66
59
  * Predict text-to-speech duration
67
60
  *