@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
@@ -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.LocalizeEnglishDialect = void 0;
30
+ const core = __importStar(require("../../../../core"));
31
+ exports.LocalizeEnglishDialect = core.serialization.enum_(["au", "in", "so", "uk", "us"]);
@@ -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);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "2.0.3";
1
+ export declare const SDK_VERSION = "2.1.0-alpha0";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "2.0.3";
4
+ exports.SDK_VERSION = "2.1.0-alpha0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cartesia/cartesia-js",
3
- "version": "2.0.3",
3
+ "version": "2.1.0-alpha0",
4
4
  "private": false,
5
5
  "repository": "https://github.com/cartesia-ai/cartesia-js",
6
6
  "main": "./index.js",
package/reference.md CHANGED
@@ -42,6 +42,210 @@ await client.apiStatus.get();
42
42
  </dl>
43
43
  </details>
44
44
 
45
+ ## Datasets
46
+
47
+ <details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">list</a>() -> Cartesia.PaginatedDatasets</code></summary>
48
+ <dl>
49
+ <dd>
50
+
51
+ #### 🔌 Usage
52
+
53
+ <dl>
54
+ <dd>
55
+
56
+ <dl>
57
+ <dd>
58
+
59
+ ```typescript
60
+ await client.datasets.list();
61
+ ```
62
+
63
+ </dd>
64
+ </dl>
65
+ </dd>
66
+ </dl>
67
+
68
+ #### ⚙️ Parameters
69
+
70
+ <dl>
71
+ <dd>
72
+
73
+ <dl>
74
+ <dd>
75
+
76
+ **requestOptions:** `Datasets.RequestOptions`
77
+
78
+ </dd>
79
+ </dl>
80
+ </dd>
81
+ </dl>
82
+
83
+ </dd>
84
+ </dl>
85
+ </details>
86
+
87
+ <details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">create</a>({ ...params }) -> Cartesia.Dataset</code></summary>
88
+ <dl>
89
+ <dd>
90
+
91
+ #### 🔌 Usage
92
+
93
+ <dl>
94
+ <dd>
95
+
96
+ <dl>
97
+ <dd>
98
+
99
+ ```typescript
100
+ await client.datasets.create({
101
+ name: "string",
102
+ });
103
+ ```
104
+
105
+ </dd>
106
+ </dl>
107
+ </dd>
108
+ </dl>
109
+
110
+ #### ⚙️ Parameters
111
+
112
+ <dl>
113
+ <dd>
114
+
115
+ <dl>
116
+ <dd>
117
+
118
+ **request:** `Cartesia.CreateDatasetRequest`
119
+
120
+ </dd>
121
+ </dl>
122
+
123
+ <dl>
124
+ <dd>
125
+
126
+ **requestOptions:** `Datasets.RequestOptions`
127
+
128
+ </dd>
129
+ </dl>
130
+ </dd>
131
+ </dl>
132
+
133
+ </dd>
134
+ </dl>
135
+ </details>
136
+
137
+ <details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">listFiles</a>(id) -> Cartesia.PaginatedDatasetFiles</code></summary>
138
+ <dl>
139
+ <dd>
140
+
141
+ #### 🔌 Usage
142
+
143
+ <dl>
144
+ <dd>
145
+
146
+ <dl>
147
+ <dd>
148
+
149
+ ```typescript
150
+ await client.datasets.listFiles("string");
151
+ ```
152
+
153
+ </dd>
154
+ </dl>
155
+ </dd>
156
+ </dl>
157
+
158
+ #### ⚙️ Parameters
159
+
160
+ <dl>
161
+ <dd>
162
+
163
+ <dl>
164
+ <dd>
165
+
166
+ **id:** `string`
167
+
168
+ </dd>
169
+ </dl>
170
+
171
+ <dl>
172
+ <dd>
173
+
174
+ **requestOptions:** `Datasets.RequestOptions`
175
+
176
+ </dd>
177
+ </dl>
178
+ </dd>
179
+ </dl>
180
+
181
+ </dd>
182
+ </dl>
183
+ </details>
184
+
185
+ <details><summary><code>client.datasets.<a href="/src/api/resources/datasets/client/Client.ts">uploadFile</a>(file, id, { ...params }) -> void</code></summary>
186
+ <dl>
187
+ <dd>
188
+
189
+ #### 🔌 Usage
190
+
191
+ <dl>
192
+ <dd>
193
+
194
+ <dl>
195
+ <dd>
196
+
197
+ ```typescript
198
+ await client.datasets.uploadFile(fs.createReadStream("/path/to/your/file"), "string", {});
199
+ ```
200
+
201
+ </dd>
202
+ </dl>
203
+ </dd>
204
+ </dl>
205
+
206
+ #### ⚙️ Parameters
207
+
208
+ <dl>
209
+ <dd>
210
+
211
+ <dl>
212
+ <dd>
213
+
214
+ **file:** `File | fs.ReadStream | Blob`
215
+
216
+ </dd>
217
+ </dl>
218
+
219
+ <dl>
220
+ <dd>
221
+
222
+ **id:** `string`
223
+
224
+ </dd>
225
+ </dl>
226
+
227
+ <dl>
228
+ <dd>
229
+
230
+ **request:** `Cartesia.UploadDatasetFileRequest`
231
+
232
+ </dd>
233
+ </dl>
234
+
235
+ <dl>
236
+ <dd>
237
+
238
+ **requestOptions:** `Datasets.RequestOptions`
239
+
240
+ </dd>
241
+ </dl>
242
+ </dd>
243
+ </dl>
244
+
245
+ </dd>
246
+ </dl>
247
+ </details>
248
+
45
249
  ## Tts
46
250
 
47
251
  <details><summary><code>client.tts.<a href="/src/api/resources/tts/client/Client.ts">bytes</a>({ ...params }) -> stream.Readable</code></summary>
@@ -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
  }