@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.
- package/Client.d.ts +3 -0
- package/Client.js +11 -6
- package/api/resources/apiStatus/client/Client.js +1 -1
- package/api/resources/datasets/client/Client.d.ts +70 -0
- package/api/resources/datasets/client/Client.js +261 -0
- package/api/resources/datasets/client/index.d.ts +1 -0
- package/api/resources/datasets/client/index.js +17 -0
- package/api/resources/datasets/client/requests/UploadDatasetFileRequest.d.ts +11 -0
- package/api/resources/datasets/client/requests/UploadDatasetFileRequest.js +5 -0
- package/api/resources/datasets/client/requests/index.d.ts +1 -0
- package/api/resources/datasets/client/requests/index.js +2 -0
- package/api/resources/datasets/index.d.ts +2 -0
- package/api/resources/datasets/index.js +18 -0
- package/api/resources/datasets/types/CreateDatasetRequest.d.ts +6 -0
- package/api/resources/datasets/types/CreateDatasetRequest.js +5 -0
- package/api/resources/datasets/types/Dataset.d.ts +8 -0
- package/api/resources/datasets/types/Dataset.js +5 -0
- package/api/resources/datasets/types/DatasetFile.d.ts +8 -0
- package/api/resources/datasets/types/DatasetFile.js +5 -0
- package/api/resources/datasets/types/FilePurpose.d.ts +7 -0
- package/api/resources/datasets/types/FilePurpose.js +9 -0
- package/api/resources/datasets/types/PaginatedDatasetFiles.d.ts +8 -0
- package/api/resources/datasets/types/PaginatedDatasetFiles.js +5 -0
- package/api/resources/datasets/types/PaginatedDatasets.d.ts +8 -0
- package/api/resources/datasets/types/PaginatedDatasets.js +5 -0
- package/api/resources/datasets/types/index.d.ts +6 -0
- package/api/resources/datasets/types/index.js +22 -0
- package/api/resources/index.d.ts +3 -0
- package/api/resources/index.js +4 -1
- package/api/resources/tts/client/Client.d.ts +1 -3
- package/api/resources/tts/client/Client.js +3 -3
- package/api/resources/voiceChanger/client/Client.d.ts +1 -2
- package/api/resources/voiceChanger/client/Client.js +3 -3
- package/api/resources/voices/client/Client.js +8 -8
- package/api/resources/voices/types/LocalizeDialect.d.ts +11 -11
- package/api/resources/voices/types/LocalizeDialect.js +0 -8
- package/api/resources/voices/types/LocalizeEnglishDialect.d.ts +11 -0
- package/api/resources/voices/types/LocalizeEnglishDialect.js +13 -0
- package/api/resources/voices/types/index.d.ts +1 -0
- package/api/resources/voices/types/index.js +1 -0
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +1 -1
- package/dist/Client.d.ts +3 -0
- package/dist/Client.js +11 -6
- package/dist/api/resources/apiStatus/client/Client.js +1 -1
- package/dist/api/resources/datasets/client/Client.d.ts +70 -0
- package/dist/api/resources/datasets/client/Client.js +261 -0
- package/dist/api/resources/datasets/client/index.d.ts +1 -0
- package/dist/api/resources/datasets/client/index.js +17 -0
- package/dist/api/resources/datasets/client/requests/UploadDatasetFileRequest.d.ts +11 -0
- package/dist/api/resources/datasets/client/requests/UploadDatasetFileRequest.js +5 -0
- package/dist/api/resources/datasets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/datasets/client/requests/index.js +2 -0
- package/dist/api/resources/datasets/index.d.ts +2 -0
- package/dist/api/resources/datasets/index.js +18 -0
- package/dist/api/resources/datasets/types/CreateDatasetRequest.d.ts +6 -0
- package/dist/api/resources/datasets/types/CreateDatasetRequest.js +5 -0
- package/dist/api/resources/datasets/types/Dataset.d.ts +8 -0
- package/dist/api/resources/datasets/types/Dataset.js +5 -0
- package/dist/api/resources/datasets/types/DatasetFile.d.ts +8 -0
- package/dist/api/resources/datasets/types/DatasetFile.js +5 -0
- package/dist/api/resources/datasets/types/FilePurpose.d.ts +7 -0
- package/dist/api/resources/datasets/types/FilePurpose.js +9 -0
- package/dist/api/resources/datasets/types/PaginatedDatasetFiles.d.ts +8 -0
- package/dist/api/resources/datasets/types/PaginatedDatasetFiles.js +5 -0
- package/dist/api/resources/datasets/types/PaginatedDatasets.d.ts +8 -0
- package/dist/api/resources/datasets/types/PaginatedDatasets.js +5 -0
- package/dist/api/resources/datasets/types/index.d.ts +6 -0
- package/dist/api/resources/datasets/types/index.js +22 -0
- package/dist/api/resources/index.d.ts +3 -0
- package/dist/api/resources/index.js +4 -1
- package/dist/api/resources/tts/client/Client.d.ts +1 -3
- package/dist/api/resources/tts/client/Client.js +3 -3
- package/dist/api/resources/voiceChanger/client/Client.d.ts +1 -2
- package/dist/api/resources/voiceChanger/client/Client.js +3 -3
- package/dist/api/resources/voices/client/Client.js +8 -8
- package/dist/api/resources/voices/types/LocalizeDialect.d.ts +11 -11
- package/dist/api/resources/voices/types/LocalizeDialect.js +0 -8
- package/dist/api/resources/voices/types/LocalizeEnglishDialect.d.ts +11 -0
- package/dist/api/resources/voices/types/LocalizeEnglishDialect.js +13 -0
- package/dist/api/resources/voices/types/index.d.ts +1 -0
- package/dist/api/resources/voices/types/index.js +1 -0
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +1 -1
- package/dist/serialization/resources/datasets/index.d.ts +1 -0
- package/dist/serialization/resources/datasets/index.js +17 -0
- package/dist/serialization/resources/datasets/types/CreateDatasetRequest.d.ts +12 -0
- package/dist/serialization/resources/datasets/types/CreateDatasetRequest.js +33 -0
- package/dist/serialization/resources/datasets/types/Dataset.d.ts +14 -0
- package/dist/serialization/resources/datasets/types/Dataset.js +35 -0
- package/dist/serialization/resources/datasets/types/DatasetFile.d.ts +14 -0
- package/dist/serialization/resources/datasets/types/DatasetFile.js +35 -0
- package/dist/serialization/resources/datasets/types/FilePurpose.d.ts +10 -0
- package/dist/serialization/resources/datasets/types/FilePurpose.js +31 -0
- package/dist/serialization/resources/datasets/types/PaginatedDatasetFiles.d.ts +14 -0
- package/dist/serialization/resources/datasets/types/PaginatedDatasetFiles.js +35 -0
- package/dist/serialization/resources/datasets/types/PaginatedDatasets.d.ts +14 -0
- package/dist/serialization/resources/datasets/types/PaginatedDatasets.js +35 -0
- package/dist/serialization/resources/datasets/types/index.d.ts +6 -0
- package/dist/serialization/resources/datasets/types/index.js +22 -0
- package/dist/serialization/resources/index.d.ts +2 -0
- package/dist/serialization/resources/index.js +3 -1
- package/dist/serialization/resources/voices/types/LocalizeDialect.d.ts +2 -1
- package/dist/serialization/resources/voices/types/LocalizeDialect.js +2 -1
- package/dist/serialization/resources/voices/types/LocalizeEnglishDialect.d.ts +10 -0
- package/dist/serialization/resources/voices/types/LocalizeEnglishDialect.js +31 -0
- package/dist/serialization/resources/voices/types/index.d.ts +1 -0
- package/dist/serialization/resources/voices/types/index.js +1 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
- package/reference.md +204 -0
- package/serialization/resources/datasets/index.d.ts +1 -0
- package/serialization/resources/datasets/index.js +17 -0
- package/serialization/resources/datasets/types/CreateDatasetRequest.d.ts +12 -0
- package/serialization/resources/datasets/types/CreateDatasetRequest.js +33 -0
- package/serialization/resources/datasets/types/Dataset.d.ts +14 -0
- package/serialization/resources/datasets/types/Dataset.js +35 -0
- package/serialization/resources/datasets/types/DatasetFile.d.ts +14 -0
- package/serialization/resources/datasets/types/DatasetFile.js +35 -0
- package/serialization/resources/datasets/types/FilePurpose.d.ts +10 -0
- package/serialization/resources/datasets/types/FilePurpose.js +31 -0
- package/serialization/resources/datasets/types/PaginatedDatasetFiles.d.ts +14 -0
- package/serialization/resources/datasets/types/PaginatedDatasetFiles.js +35 -0
- package/serialization/resources/datasets/types/PaginatedDatasets.d.ts +14 -0
- package/serialization/resources/datasets/types/PaginatedDatasets.js +35 -0
- package/serialization/resources/datasets/types/index.d.ts +6 -0
- package/serialization/resources/datasets/types/index.js +22 -0
- package/serialization/resources/index.d.ts +2 -0
- package/serialization/resources/index.js +3 -1
- package/serialization/resources/voices/types/LocalizeDialect.d.ts +2 -1
- package/serialization/resources/voices/types/LocalizeDialect.js +2 -1
- package/serialization/resources/voices/types/LocalizeEnglishDialect.d.ts +10 -0
- package/serialization/resources/voices/types/LocalizeEnglishDialect.js +31 -0
- package/serialization/resources/voices/types/index.d.ts +1 -0
- package/serialization/resources/voices/types/index.js +1 -0
- package/version.d.ts +1 -1
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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.
|
|
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 =
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
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
|
}
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -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,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 =
|
|
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
|
-
|
|
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
|
+
}
|