@cartesia/cartesia-js 2.0.3 → 2.1.0-alpha0

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 (142) hide show
  1. package/Client.d.ts +3 -0
  2. package/Client.js +11 -6
  3. package/api/resources/apiStatus/client/Client.js +1 -1
  4. package/api/resources/datasets/client/Client.d.ts +70 -0
  5. package/api/resources/datasets/client/Client.js +261 -0
  6. package/api/resources/datasets/client/index.d.ts +1 -0
  7. package/api/resources/datasets/client/index.js +17 -0
  8. package/api/resources/datasets/client/requests/UploadDatasetFileRequest.d.ts +11 -0
  9. package/api/resources/datasets/client/requests/UploadDatasetFileRequest.js +5 -0
  10. package/api/resources/datasets/client/requests/index.d.ts +1 -0
  11. package/api/resources/datasets/client/requests/index.js +2 -0
  12. package/api/resources/datasets/index.d.ts +2 -0
  13. package/api/resources/datasets/index.js +18 -0
  14. package/api/resources/datasets/types/CreateDatasetRequest.d.ts +6 -0
  15. package/api/resources/datasets/types/CreateDatasetRequest.js +5 -0
  16. package/api/resources/datasets/types/Dataset.d.ts +8 -0
  17. package/api/resources/datasets/types/Dataset.js +5 -0
  18. package/api/resources/datasets/types/DatasetFile.d.ts +8 -0
  19. package/api/resources/datasets/types/DatasetFile.js +5 -0
  20. package/api/resources/datasets/types/FilePurpose.d.ts +7 -0
  21. package/api/resources/datasets/types/FilePurpose.js +9 -0
  22. package/api/resources/datasets/types/PaginatedDatasetFiles.d.ts +8 -0
  23. package/api/resources/datasets/types/PaginatedDatasetFiles.js +5 -0
  24. package/api/resources/datasets/types/PaginatedDatasets.d.ts +8 -0
  25. package/api/resources/datasets/types/PaginatedDatasets.js +5 -0
  26. package/api/resources/datasets/types/index.d.ts +6 -0
  27. package/api/resources/datasets/types/index.js +22 -0
  28. package/api/resources/index.d.ts +3 -0
  29. package/api/resources/index.js +4 -1
  30. package/api/resources/tts/client/Client.d.ts +1 -3
  31. package/api/resources/tts/client/Client.js +3 -3
  32. package/api/resources/voiceChanger/client/Client.d.ts +1 -2
  33. package/api/resources/voiceChanger/client/Client.js +3 -3
  34. package/api/resources/voices/client/Client.js +8 -8
  35. package/api/resources/voices/types/LocalizeDialect.d.ts +11 -11
  36. package/api/resources/voices/types/LocalizeDialect.js +0 -8
  37. package/api/resources/voices/types/LocalizeEnglishDialect.d.ts +11 -0
  38. package/api/resources/voices/types/LocalizeEnglishDialect.js +13 -0
  39. package/api/resources/voices/types/index.d.ts +1 -0
  40. package/api/resources/voices/types/index.js +1 -0
  41. package/core/fetcher/Fetcher.d.ts +1 -1
  42. package/core/fetcher/getResponseBody.js +3 -0
  43. package/core/index.d.ts +1 -1
  44. package/core/index.js +1 -1
  45. package/dist/Client.d.ts +3 -0
  46. package/dist/Client.js +11 -6
  47. package/dist/api/resources/apiStatus/client/Client.js +1 -1
  48. package/dist/api/resources/datasets/client/Client.d.ts +70 -0
  49. package/dist/api/resources/datasets/client/Client.js +261 -0
  50. package/dist/api/resources/datasets/client/index.d.ts +1 -0
  51. package/dist/api/resources/datasets/client/index.js +17 -0
  52. package/dist/api/resources/datasets/client/requests/UploadDatasetFileRequest.d.ts +11 -0
  53. package/dist/api/resources/datasets/client/requests/UploadDatasetFileRequest.js +5 -0
  54. package/dist/api/resources/datasets/client/requests/index.d.ts +1 -0
  55. package/dist/api/resources/datasets/client/requests/index.js +2 -0
  56. package/dist/api/resources/datasets/index.d.ts +2 -0
  57. package/dist/api/resources/datasets/index.js +18 -0
  58. package/dist/api/resources/datasets/types/CreateDatasetRequest.d.ts +6 -0
  59. package/dist/api/resources/datasets/types/CreateDatasetRequest.js +5 -0
  60. package/dist/api/resources/datasets/types/Dataset.d.ts +8 -0
  61. package/dist/api/resources/datasets/types/Dataset.js +5 -0
  62. package/dist/api/resources/datasets/types/DatasetFile.d.ts +8 -0
  63. package/dist/api/resources/datasets/types/DatasetFile.js +5 -0
  64. package/dist/api/resources/datasets/types/FilePurpose.d.ts +7 -0
  65. package/dist/api/resources/datasets/types/FilePurpose.js +9 -0
  66. package/dist/api/resources/datasets/types/PaginatedDatasetFiles.d.ts +8 -0
  67. package/dist/api/resources/datasets/types/PaginatedDatasetFiles.js +5 -0
  68. package/dist/api/resources/datasets/types/PaginatedDatasets.d.ts +8 -0
  69. package/dist/api/resources/datasets/types/PaginatedDatasets.js +5 -0
  70. package/dist/api/resources/datasets/types/index.d.ts +6 -0
  71. package/dist/api/resources/datasets/types/index.js +22 -0
  72. package/dist/api/resources/index.d.ts +3 -0
  73. package/dist/api/resources/index.js +4 -1
  74. package/dist/api/resources/tts/client/Client.d.ts +1 -3
  75. package/dist/api/resources/tts/client/Client.js +3 -3
  76. package/dist/api/resources/voiceChanger/client/Client.d.ts +1 -2
  77. package/dist/api/resources/voiceChanger/client/Client.js +3 -3
  78. package/dist/api/resources/voices/client/Client.js +8 -8
  79. package/dist/api/resources/voices/types/LocalizeDialect.d.ts +11 -11
  80. package/dist/api/resources/voices/types/LocalizeDialect.js +0 -8
  81. package/dist/api/resources/voices/types/LocalizeEnglishDialect.d.ts +11 -0
  82. package/dist/api/resources/voices/types/LocalizeEnglishDialect.js +13 -0
  83. package/dist/api/resources/voices/types/index.d.ts +1 -0
  84. package/dist/api/resources/voices/types/index.js +1 -0
  85. package/dist/core/fetcher/Fetcher.d.ts +1 -1
  86. package/dist/core/fetcher/getResponseBody.js +3 -0
  87. package/dist/core/index.d.ts +1 -1
  88. package/dist/core/index.js +1 -1
  89. package/dist/serialization/resources/datasets/index.d.ts +1 -0
  90. package/dist/serialization/resources/datasets/index.js +17 -0
  91. package/dist/serialization/resources/datasets/types/CreateDatasetRequest.d.ts +12 -0
  92. package/dist/serialization/resources/datasets/types/CreateDatasetRequest.js +33 -0
  93. package/dist/serialization/resources/datasets/types/Dataset.d.ts +14 -0
  94. package/dist/serialization/resources/datasets/types/Dataset.js +35 -0
  95. package/dist/serialization/resources/datasets/types/DatasetFile.d.ts +14 -0
  96. package/dist/serialization/resources/datasets/types/DatasetFile.js +35 -0
  97. package/dist/serialization/resources/datasets/types/FilePurpose.d.ts +10 -0
  98. package/dist/serialization/resources/datasets/types/FilePurpose.js +31 -0
  99. package/dist/serialization/resources/datasets/types/PaginatedDatasetFiles.d.ts +14 -0
  100. package/dist/serialization/resources/datasets/types/PaginatedDatasetFiles.js +35 -0
  101. package/dist/serialization/resources/datasets/types/PaginatedDatasets.d.ts +14 -0
  102. package/dist/serialization/resources/datasets/types/PaginatedDatasets.js +35 -0
  103. package/dist/serialization/resources/datasets/types/index.d.ts +6 -0
  104. package/dist/serialization/resources/datasets/types/index.js +22 -0
  105. package/dist/serialization/resources/index.d.ts +2 -0
  106. package/dist/serialization/resources/index.js +3 -1
  107. package/dist/serialization/resources/voices/types/LocalizeDialect.d.ts +2 -1
  108. package/dist/serialization/resources/voices/types/LocalizeDialect.js +2 -1
  109. package/dist/serialization/resources/voices/types/LocalizeEnglishDialect.d.ts +10 -0
  110. package/dist/serialization/resources/voices/types/LocalizeEnglishDialect.js +31 -0
  111. package/dist/serialization/resources/voices/types/index.d.ts +1 -0
  112. package/dist/serialization/resources/voices/types/index.js +1 -0
  113. package/dist/version.d.ts +1 -1
  114. package/dist/version.js +1 -1
  115. package/package.json +1 -1
  116. package/reference.md +204 -0
  117. package/serialization/resources/datasets/index.d.ts +1 -0
  118. package/serialization/resources/datasets/index.js +17 -0
  119. package/serialization/resources/datasets/types/CreateDatasetRequest.d.ts +12 -0
  120. package/serialization/resources/datasets/types/CreateDatasetRequest.js +33 -0
  121. package/serialization/resources/datasets/types/Dataset.d.ts +14 -0
  122. package/serialization/resources/datasets/types/Dataset.js +35 -0
  123. package/serialization/resources/datasets/types/DatasetFile.d.ts +14 -0
  124. package/serialization/resources/datasets/types/DatasetFile.js +35 -0
  125. package/serialization/resources/datasets/types/FilePurpose.d.ts +10 -0
  126. package/serialization/resources/datasets/types/FilePurpose.js +31 -0
  127. package/serialization/resources/datasets/types/PaginatedDatasetFiles.d.ts +14 -0
  128. package/serialization/resources/datasets/types/PaginatedDatasetFiles.js +35 -0
  129. package/serialization/resources/datasets/types/PaginatedDatasets.d.ts +14 -0
  130. package/serialization/resources/datasets/types/PaginatedDatasets.js +35 -0
  131. package/serialization/resources/datasets/types/index.d.ts +6 -0
  132. package/serialization/resources/datasets/types/index.js +22 -0
  133. package/serialization/resources/index.d.ts +2 -0
  134. package/serialization/resources/index.js +3 -1
  135. package/serialization/resources/voices/types/LocalizeDialect.d.ts +2 -1
  136. package/serialization/resources/voices/types/LocalizeDialect.js +2 -1
  137. package/serialization/resources/voices/types/LocalizeEnglishDialect.d.ts +10 -0
  138. package/serialization/resources/voices/types/LocalizeEnglishDialect.js +31 -0
  139. package/serialization/resources/voices/types/index.d.ts +1 -0
  140. package/serialization/resources/voices/types/index.js +1 -0
  141. package/version.d.ts +1 -1
  142. package/version.js +1 -1
@@ -60,7 +60,7 @@ class Voices {
60
60
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
61
61
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/"),
62
62
  method: "GET",
63
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
63
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
64
64
  contentType: "application/json",
65
65
  requestType: "json",
66
66
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -116,7 +116,7 @@ class Voices {
116
116
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
117
117
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/"),
118
118
  method: "POST",
119
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
119
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
120
120
  contentType: "application/json",
121
121
  requestType: "json",
122
122
  body: serializers.CreateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -167,7 +167,7 @@ class Voices {
167
167
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
168
168
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
169
169
  method: "DELETE",
170
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
170
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
171
171
  contentType: "application/json",
172
172
  requestType: "json",
173
173
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -215,7 +215,7 @@ class Voices {
215
215
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
216
216
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
217
217
  method: "PATCH",
218
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
218
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
219
219
  contentType: "application/json",
220
220
  requestType: "json",
221
221
  body: serializers.UpdateVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -266,7 +266,7 @@ class Voices {
266
266
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
267
267
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, `/voices/${encodeURIComponent(serializers.VoiceId.jsonOrThrow(id))}`),
268
268
  method: "GET",
269
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
269
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
270
270
  contentType: "application/json",
271
271
  requestType: "json",
272
272
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -321,7 +321,7 @@ class Voices {
321
321
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
322
322
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/localize"),
323
323
  method: "POST",
324
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
324
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
325
325
  contentType: "application/json",
326
326
  requestType: "json",
327
327
  body: serializers.LocalizeVoiceRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -377,7 +377,7 @@ class Voices {
377
377
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
378
378
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/mix"),
379
379
  method: "POST",
380
- headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
380
+ headers: Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())),
381
381
  contentType: "application/json",
382
382
  requestType: "json",
383
383
  body: serializers.MixVoicesRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
@@ -464,7 +464,7 @@ class Voices {
464
464
  const _response = yield ((_a = this._options.fetcher) !== null && _a !== void 0 ? _a : core.fetcher)({
465
465
  url: (0, url_join_1.default)((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.CartesiaEnvironment.Production, "/voices/clone"),
466
466
  method: "POST",
467
- headers: Object.assign(Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.0.3", "User-Agent": "@cartesia/cartesia-js/2.0.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
467
+ headers: Object.assign(Object.assign({ "Cartesia-Version": (_e = (_c = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.cartesiaVersion) !== null && _c !== void 0 ? _c : (_d = this._options) === null || _d === void 0 ? void 0 : _d.cartesiaVersion) !== null && _e !== void 0 ? _e : "2024-06-10", "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "@cartesia/cartesia-js", "X-Fern-SDK-Version": "2.1.0-alpha0", "User-Agent": "@cartesia/cartesia-js/2.1.0-alpha0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, (yield this._getCustomAuthorizationHeaders())), _maybeEncodedRequest.headers),
468
468
  requestType: "file",
469
469
  duplex: _maybeEncodedRequest.duplex,
470
470
  body: _maybeEncodedRequest.body,
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Cartesia from "../../../index";
4
5
  /**
5
- * The dialect to localize to. This is only available when language is set to English.
6
- *
7
- * Options: Australian (au), Indian (in), Southern American (so), UK (uk), US (us).
6
+ * The dialect to localize to.
8
7
  */
9
- export declare type LocalizeDialect = "au" | "in" | "so" | "uk" | "us";
10
- export declare const LocalizeDialect: {
11
- readonly Au: "au";
12
- readonly In: "in";
13
- readonly So: "so";
14
- readonly Uk: "uk";
15
- readonly Us: "us";
16
- };
8
+ export declare type LocalizeDialect =
9
+ /**
10
+ * Only available when language is set to English (`en`).
11
+ * */
12
+ Cartesia.LocalizeEnglishDialect
13
+ /**
14
+ * The standard dialect for the language.
15
+ * */
16
+ | "st";
@@ -3,11 +3,3 @@
3
3
  * This file was auto-generated by Fern from our API Definition.
4
4
  */
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.LocalizeDialect = void 0;
7
- exports.LocalizeDialect = {
8
- Au: "au",
9
- In: "in",
10
- So: "so",
11
- Uk: "uk",
12
- Us: "us",
13
- };
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export declare type LocalizeEnglishDialect = "au" | "in" | "so" | "uk" | "us";
5
+ export declare const LocalizeEnglishDialect: {
6
+ readonly Au: "au";
7
+ readonly In: "in";
8
+ readonly So: "so";
9
+ readonly Uk: "uk";
10
+ readonly Us: "us";
11
+ };
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.LocalizeEnglishDialect = void 0;
7
+ exports.LocalizeEnglishDialect = {
8
+ Au: "au",
9
+ In: "in",
10
+ So: "so",
11
+ Uk: "uk",
12
+ Us: "us",
13
+ };
@@ -5,6 +5,7 @@ export * from "./VoiceMetadata";
5
5
  export * from "./CreateVoiceRequest";
6
6
  export * from "./UpdateVoiceRequest";
7
7
  export * from "./LocalizeTargetLanguage";
8
+ export * from "./LocalizeEnglishDialect";
8
9
  export * from "./LocalizeDialect";
9
10
  export * from "./Gender";
10
11
  export * from "./LocalizeVoiceRequest";
@@ -21,6 +21,7 @@ __exportStar(require("./VoiceMetadata"), exports);
21
21
  __exportStar(require("./CreateVoiceRequest"), exports);
22
22
  __exportStar(require("./UpdateVoiceRequest"), exports);
23
23
  __exportStar(require("./LocalizeTargetLanguage"), exports);
24
+ __exportStar(require("./LocalizeEnglishDialect"), exports);
24
25
  __exportStar(require("./LocalizeDialect"), exports);
25
26
  __exportStar(require("./Gender"), exports);
26
27
  __exportStar(require("./LocalizeVoiceRequest"), exports);
@@ -13,7 +13,7 @@ export declare namespace Fetcher {
13
13
  withCredentials?: boolean;
14
14
  abortSignal?: AbortSignal;
15
15
  requestType?: "json" | "file" | "bytes";
16
- responseType?: "json" | "blob" | "sse" | "streaming" | "text";
16
+ responseType?: "json" | "blob" | "sse" | "streaming" | "text" | "arraybuffer";
17
17
  duplex?: "half";
18
18
  }
19
19
  type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
@@ -22,6 +22,9 @@ function getResponseBody(response, responseType) {
22
22
  else if (response.body != null && responseType === "streaming") {
23
23
  return (0, chooseStreamWrapper_1.chooseStreamWrapper)(response.body);
24
24
  }
25
+ else if (response.body != null && responseType === "arraybuffer") {
26
+ return yield response.arrayBuffer();
27
+ }
25
28
  else if (response.body != null && responseType === "text") {
26
29
  return yield response.text();
27
30
  }
@@ -1,5 +1,5 @@
1
1
  export * from "./fetcher";
2
2
  export * from "./runtime";
3
- export * from "./streaming-fetcher";
4
3
  export * from "./form-data-utils";
4
+ export * from "./streaming-fetcher";
5
5
  export * as serialization from "./schemas";
@@ -29,6 +29,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.serialization = void 0;
30
30
  __exportStar(require("./fetcher"), exports);
31
31
  __exportStar(require("./runtime"), exports);
32
- __exportStar(require("./streaming-fetcher"), exports);
33
32
  __exportStar(require("./form-data-utils"), exports);
33
+ __exportStar(require("./streaming-fetcher"), exports);
34
34
  exports.serialization = __importStar(require("./schemas"));
@@ -0,0 +1 @@
1
+ export * from "./types";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./types"), exports);
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const CreateDatasetRequest: core.serialization.ObjectSchema<serializers.CreateDatasetRequest.Raw, Cartesia.CreateDatasetRequest>;
8
+ export declare namespace CreateDatasetRequest {
9
+ interface Raw {
10
+ name: string;
11
+ }
12
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.CreateDatasetRequest = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.CreateDatasetRequest = core.serialization.object({
32
+ name: core.serialization.string(),
33
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const Dataset: core.serialization.ObjectSchema<serializers.Dataset.Raw, Cartesia.Dataset>;
8
+ export declare namespace Dataset {
9
+ interface Raw {
10
+ id: string;
11
+ name: string;
12
+ created_at: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.Dataset = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.Dataset = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ name: core.serialization.string(),
34
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const DatasetFile: core.serialization.ObjectSchema<serializers.DatasetFile.Raw, Cartesia.DatasetFile>;
8
+ export declare namespace DatasetFile {
9
+ interface Raw {
10
+ id: string;
11
+ filename: string;
12
+ created_at: string;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.DatasetFile = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.DatasetFile = core.serialization.object({
32
+ id: core.serialization.string(),
33
+ filename: core.serialization.string(),
34
+ createdAt: core.serialization.property("created_at", core.serialization.string()),
35
+ });
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const FilePurpose: core.serialization.Schema<serializers.FilePurpose.Raw, Cartesia.FilePurpose>;
8
+ export declare namespace FilePurpose {
9
+ type Raw = "fine_tune";
10
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.FilePurpose = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.FilePurpose = core.serialization.enum_(["fine_tune"]);
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { DatasetFile } from "./DatasetFile";
8
+ export declare const PaginatedDatasetFiles: core.serialization.ObjectSchema<serializers.PaginatedDatasetFiles.Raw, Cartesia.PaginatedDatasetFiles>;
9
+ export declare namespace PaginatedDatasetFiles {
10
+ interface Raw {
11
+ data: DatasetFile.Raw[];
12
+ has_more: boolean;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PaginatedDatasetFiles = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const DatasetFile_1 = require("./DatasetFile");
32
+ exports.PaginatedDatasetFiles = core.serialization.object({
33
+ data: core.serialization.list(DatasetFile_1.DatasetFile),
34
+ hasMore: core.serialization.property("has_more", core.serialization.boolean()),
35
+ });
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ import { Dataset } from "./Dataset";
8
+ export declare const PaginatedDatasets: core.serialization.ObjectSchema<serializers.PaginatedDatasets.Raw, Cartesia.PaginatedDatasets>;
9
+ export declare namespace PaginatedDatasets {
10
+ interface Raw {
11
+ data: Dataset.Raw[];
12
+ has_more: boolean;
13
+ }
14
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.PaginatedDatasets = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ const Dataset_1 = require("./Dataset");
32
+ exports.PaginatedDatasets = core.serialization.object({
33
+ data: core.serialization.list(Dataset_1.Dataset),
34
+ hasMore: core.serialization.property("has_more", core.serialization.boolean()),
35
+ });
@@ -0,0 +1,6 @@
1
+ export * from "./Dataset";
2
+ export * from "./CreateDatasetRequest";
3
+ export * from "./DatasetFile";
4
+ export * from "./FilePurpose";
5
+ export * from "./PaginatedDatasets";
6
+ export * from "./PaginatedDatasetFiles";
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./Dataset"), exports);
18
+ __exportStar(require("./CreateDatasetRequest"), exports);
19
+ __exportStar(require("./DatasetFile"), exports);
20
+ __exportStar(require("./FilePurpose"), exports);
21
+ __exportStar(require("./PaginatedDatasets"), exports);
22
+ __exportStar(require("./PaginatedDatasetFiles"), exports);
@@ -1,5 +1,7 @@
1
1
  export * as apiStatus from "./apiStatus";
2
2
  export * from "./apiStatus/types";
3
+ export * as datasets from "./datasets";
4
+ export * from "./datasets/types";
3
5
  export * as embedding from "./embedding";
4
6
  export * from "./embedding/types";
5
7
  export * as tts from "./tts";
@@ -26,9 +26,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.voices = exports.voiceChanger = exports.tts = exports.embedding = exports.apiStatus = void 0;
29
+ exports.voices = exports.voiceChanger = exports.tts = exports.embedding = exports.datasets = exports.apiStatus = void 0;
30
30
  exports.apiStatus = __importStar(require("./apiStatus"));
31
31
  __exportStar(require("./apiStatus/types"), exports);
32
+ exports.datasets = __importStar(require("./datasets"));
33
+ __exportStar(require("./datasets/types"), exports);
32
34
  exports.embedding = __importStar(require("./embedding"));
33
35
  __exportStar(require("./embedding/types"), exports);
34
36
  exports.tts = __importStar(require("./tts"));
@@ -4,7 +4,8 @@
4
4
  import * as serializers from "../../../index";
5
5
  import * as Cartesia from "../../../../api/index";
6
6
  import * as core from "../../../../core";
7
+ import { LocalizeEnglishDialect } from "./LocalizeEnglishDialect";
7
8
  export declare const LocalizeDialect: core.serialization.Schema<serializers.LocalizeDialect.Raw, Cartesia.LocalizeDialect>;
8
9
  export declare namespace LocalizeDialect {
9
- type Raw = "au" | "in" | "so" | "uk" | "us";
10
+ type Raw = LocalizeEnglishDialect.Raw | "st";
10
11
  }
@@ -28,4 +28,5 @@ var __importStar = (this && this.__importStar) || function (mod) {
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.LocalizeDialect = void 0;
30
30
  const core = __importStar(require("../../../../core"));
31
- exports.LocalizeDialect = core.serialization.enum_(["au", "in", "so", "uk", "us"]);
31
+ const LocalizeEnglishDialect_1 = require("./LocalizeEnglishDialect");
32
+ exports.LocalizeDialect = core.serialization.undiscriminatedUnion([LocalizeEnglishDialect_1.LocalizeEnglishDialect, core.serialization.stringLiteral("st")]);
@@ -0,0 +1,10 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as serializers from "../../../index";
5
+ import * as Cartesia from "../../../../api/index";
6
+ import * as core from "../../../../core";
7
+ export declare const LocalizeEnglishDialect: core.serialization.Schema<serializers.LocalizeEnglishDialect.Raw, Cartesia.LocalizeEnglishDialect>;
8
+ export declare namespace LocalizeEnglishDialect {
9
+ type Raw = "au" | "in" | "so" | "uk" | "us";
10
+ }