@runwayml/sdk 3.14.3 → 3.15.1

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 (209) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +31 -0
  3. package/client.d.mts +52 -1
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +52 -1
  6. package/client.d.ts.map +1 -1
  7. package/client.js +63 -17
  8. package/client.js.map +1 -1
  9. package/client.mjs +63 -17
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +54 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +54 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/internal/tslib.js +17 -17
  28. package/internal/utils/query.d.mts +5 -0
  29. package/internal/utils/query.d.mts.map +1 -0
  30. package/internal/utils/query.d.ts +5 -0
  31. package/internal/utils/query.d.ts.map +1 -0
  32. package/internal/utils/query.js +23 -0
  33. package/internal/utils/query.js.map +1 -0
  34. package/internal/utils/query.mjs +20 -0
  35. package/internal/utils/query.mjs.map +1 -0
  36. package/internal/utils.d.mts +1 -0
  37. package/internal/utils.d.ts +1 -0
  38. package/internal/utils.js +1 -0
  39. package/internal/utils.js.map +1 -1
  40. package/internal/utils.mjs +1 -0
  41. package/package.json +22 -1
  42. package/pagination.d.mts +2 -0
  43. package/pagination.d.mts.map +1 -0
  44. package/pagination.d.ts +2 -0
  45. package/pagination.d.ts.map +1 -0
  46. package/pagination.js +6 -0
  47. package/pagination.js.map +1 -0
  48. package/pagination.mjs +2 -0
  49. package/pagination.mjs.map +1 -0
  50. package/resources/avatars.d.mts +1308 -0
  51. package/resources/avatars.d.mts.map +1 -0
  52. package/resources/avatars.d.ts +1308 -0
  53. package/resources/avatars.d.ts.map +1 -0
  54. package/resources/avatars.js +87 -0
  55. package/resources/avatars.js.map +1 -0
  56. package/resources/avatars.mjs +83 -0
  57. package/resources/avatars.mjs.map +1 -0
  58. package/resources/character-performance.d.mts +3 -0
  59. package/resources/character-performance.d.mts.map +1 -1
  60. package/resources/character-performance.d.ts +3 -0
  61. package/resources/character-performance.d.ts.map +1 -1
  62. package/resources/character-performance.js +3 -0
  63. package/resources/character-performance.js.map +1 -1
  64. package/resources/character-performance.mjs +3 -0
  65. package/resources/character-performance.mjs.map +1 -1
  66. package/resources/documents.d.mts +209 -0
  67. package/resources/documents.d.mts.map +1 -0
  68. package/resources/documents.d.ts +209 -0
  69. package/resources/documents.d.ts.map +1 -0
  70. package/resources/documents.js +75 -0
  71. package/resources/documents.js.map +1 -0
  72. package/resources/documents.mjs +71 -0
  73. package/resources/documents.mjs.map +1 -0
  74. package/resources/image-to-video.d.mts +3 -0
  75. package/resources/image-to-video.d.mts.map +1 -1
  76. package/resources/image-to-video.d.ts +3 -0
  77. package/resources/image-to-video.d.ts.map +1 -1
  78. package/resources/image-to-video.js +3 -0
  79. package/resources/image-to-video.js.map +1 -1
  80. package/resources/image-to-video.mjs +3 -0
  81. package/resources/image-to-video.mjs.map +1 -1
  82. package/resources/index.d.mts +4 -0
  83. package/resources/index.d.mts.map +1 -1
  84. package/resources/index.d.ts +4 -0
  85. package/resources/index.d.ts.map +1 -1
  86. package/resources/index.js +9 -1
  87. package/resources/index.js.map +1 -1
  88. package/resources/index.mjs +4 -0
  89. package/resources/index.mjs.map +1 -1
  90. package/resources/organization.d.mts +2 -2
  91. package/resources/organization.d.mts.map +1 -1
  92. package/resources/organization.d.ts +2 -2
  93. package/resources/organization.d.ts.map +1 -1
  94. package/resources/realtime-sessions.d.mts +180 -0
  95. package/resources/realtime-sessions.d.mts.map +1 -0
  96. package/resources/realtime-sessions.d.ts +180 -0
  97. package/resources/realtime-sessions.d.ts.map +1 -0
  98. package/resources/realtime-sessions.js +32 -0
  99. package/resources/realtime-sessions.js.map +1 -0
  100. package/resources/realtime-sessions.mjs +28 -0
  101. package/resources/realtime-sessions.mjs.map +1 -0
  102. package/resources/sound-effect.d.mts +3 -0
  103. package/resources/sound-effect.d.mts.map +1 -1
  104. package/resources/sound-effect.d.ts +3 -0
  105. package/resources/sound-effect.d.ts.map +1 -1
  106. package/resources/sound-effect.js +3 -0
  107. package/resources/sound-effect.js.map +1 -1
  108. package/resources/sound-effect.mjs +3 -0
  109. package/resources/sound-effect.mjs.map +1 -1
  110. package/resources/speech-to-speech.d.mts +3 -0
  111. package/resources/speech-to-speech.d.mts.map +1 -1
  112. package/resources/speech-to-speech.d.ts +3 -0
  113. package/resources/speech-to-speech.d.ts.map +1 -1
  114. package/resources/speech-to-speech.js +3 -0
  115. package/resources/speech-to-speech.js.map +1 -1
  116. package/resources/speech-to-speech.mjs +3 -0
  117. package/resources/speech-to-speech.mjs.map +1 -1
  118. package/resources/tasks.d.mts +3 -0
  119. package/resources/tasks.d.mts.map +1 -1
  120. package/resources/tasks.d.ts +3 -0
  121. package/resources/tasks.d.ts.map +1 -1
  122. package/resources/tasks.js +3 -0
  123. package/resources/tasks.js.map +1 -1
  124. package/resources/tasks.mjs +3 -0
  125. package/resources/tasks.mjs.map +1 -1
  126. package/resources/text-to-image.d.mts +3 -0
  127. package/resources/text-to-image.d.mts.map +1 -1
  128. package/resources/text-to-image.d.ts +3 -0
  129. package/resources/text-to-image.d.ts.map +1 -1
  130. package/resources/text-to-image.js +3 -0
  131. package/resources/text-to-image.js.map +1 -1
  132. package/resources/text-to-image.mjs +3 -0
  133. package/resources/text-to-image.mjs.map +1 -1
  134. package/resources/text-to-speech.d.mts +3 -0
  135. package/resources/text-to-speech.d.mts.map +1 -1
  136. package/resources/text-to-speech.d.ts +3 -0
  137. package/resources/text-to-speech.d.ts.map +1 -1
  138. package/resources/text-to-speech.js +3 -0
  139. package/resources/text-to-speech.js.map +1 -1
  140. package/resources/text-to-speech.mjs +3 -0
  141. package/resources/text-to-speech.mjs.map +1 -1
  142. package/resources/text-to-video.d.mts +3 -0
  143. package/resources/text-to-video.d.mts.map +1 -1
  144. package/resources/text-to-video.d.ts +3 -0
  145. package/resources/text-to-video.d.ts.map +1 -1
  146. package/resources/text-to-video.js +3 -0
  147. package/resources/text-to-video.js.map +1 -1
  148. package/resources/text-to-video.mjs +3 -0
  149. package/resources/text-to-video.mjs.map +1 -1
  150. package/resources/video-to-video.d.mts +3 -0
  151. package/resources/video-to-video.d.mts.map +1 -1
  152. package/resources/video-to-video.d.ts +3 -0
  153. package/resources/video-to-video.d.ts.map +1 -1
  154. package/resources/video-to-video.js +3 -0
  155. package/resources/video-to-video.js.map +1 -1
  156. package/resources/video-to-video.mjs +3 -0
  157. package/resources/video-to-video.mjs.map +1 -1
  158. package/resources/voice-dubbing.d.mts +3 -0
  159. package/resources/voice-dubbing.d.mts.map +1 -1
  160. package/resources/voice-dubbing.d.ts +3 -0
  161. package/resources/voice-dubbing.d.ts.map +1 -1
  162. package/resources/voice-dubbing.js +3 -0
  163. package/resources/voice-dubbing.js.map +1 -1
  164. package/resources/voice-dubbing.mjs +3 -0
  165. package/resources/voice-dubbing.mjs.map +1 -1
  166. package/resources/voice-isolation.d.mts +3 -0
  167. package/resources/voice-isolation.d.mts.map +1 -1
  168. package/resources/voice-isolation.d.ts +3 -0
  169. package/resources/voice-isolation.d.ts.map +1 -1
  170. package/resources/voice-isolation.js +3 -0
  171. package/resources/voice-isolation.js.map +1 -1
  172. package/resources/voice-isolation.mjs +3 -0
  173. package/resources/voice-isolation.mjs.map +1 -1
  174. package/resources/voices.d.mts +257 -0
  175. package/resources/voices.d.mts.map +1 -0
  176. package/resources/voices.d.ts +257 -0
  177. package/resources/voices.d.ts.map +1 -0
  178. package/resources/voices.js +47 -0
  179. package/resources/voices.js.map +1 -0
  180. package/resources/voices.mjs +43 -0
  181. package/resources/voices.mjs.map +1 -0
  182. package/src/client.ts +159 -22
  183. package/src/core/pagination.ts +157 -0
  184. package/src/index.ts +1 -0
  185. package/src/internal/utils/query.ts +23 -0
  186. package/src/internal/utils.ts +1 -0
  187. package/src/pagination.ts +2 -0
  188. package/src/resources/avatars.ts +2049 -0
  189. package/src/resources/character-performance.ts +3 -0
  190. package/src/resources/documents.ts +270 -0
  191. package/src/resources/image-to-video.ts +3 -0
  192. package/src/resources/index.ts +37 -0
  193. package/src/resources/organization.ts +5 -1
  194. package/src/resources/realtime-sessions.ts +251 -0
  195. package/src/resources/sound-effect.ts +3 -0
  196. package/src/resources/speech-to-speech.ts +3 -0
  197. package/src/resources/tasks.ts +3 -0
  198. package/src/resources/text-to-image.ts +3 -0
  199. package/src/resources/text-to-speech.ts +3 -0
  200. package/src/resources/text-to-video.ts +3 -0
  201. package/src/resources/video-to-video.ts +3 -0
  202. package/src/resources/voice-dubbing.ts +3 -0
  203. package/src/resources/voice-isolation.ts +3 -0
  204. package/src/resources/voices.ts +345 -0
  205. package/src/version.ts +1 -1
  206. package/version.d.mts +1 -1
  207. package/version.d.ts +1 -1
  208. package/version.js +1 -1
  209. package/version.mjs +1 -1
@@ -0,0 +1,2049 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ import { APIResource } from '../core/resource';
4
+ import { APIPromise } from '../core/api-promise';
5
+ import { CursorPage, type CursorPageParams, PagePromise } from '../core/pagination';
6
+ import { buildHeaders } from '../internal/headers';
7
+ import { RequestOptions } from '../internal/request-options';
8
+ import { path } from '../internal/utils/path';
9
+
10
+ export class Avatars extends APIResource {
11
+ /**
12
+ * Create a new avatar with a reference image and voice.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * const avatar = await client.avatars.create({
17
+ * name: 'x',
18
+ * personality:
19
+ * 'You are a helpful support agent assisting users with their account questions. Be friendly, patient, and provide clear step-by-step guidance.',
20
+ * referenceImage: 'https://example.com/reference.jpg',
21
+ * voice: { presetId: 'adrian', type: 'runway-live-preset' },
22
+ * });
23
+ * ```
24
+ */
25
+ create(body: AvatarCreateParams, options?: RequestOptions): APIPromise<AvatarCreateResponse> {
26
+ return this._client.post('/v1/avatars', { body, ...options });
27
+ }
28
+
29
+ /**
30
+ * Get details of a specific avatar.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const avatar = await client.avatars.retrieve(
35
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
36
+ * );
37
+ * ```
38
+ */
39
+ retrieve(id: string, options?: RequestOptions): APIPromise<AvatarRetrieveResponse> {
40
+ return this._client.get(path`/v1/avatars/${id}`, options);
41
+ }
42
+
43
+ /**
44
+ * Update an existing avatar. At least one field must be provided.
45
+ *
46
+ * @example
47
+ * ```ts
48
+ * const avatar = await client.avatars.update(
49
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
50
+ * );
51
+ * ```
52
+ */
53
+ update(
54
+ id: string,
55
+ body: AvatarUpdateParams | null | undefined = {},
56
+ options?: RequestOptions,
57
+ ): APIPromise<AvatarUpdateResponse> {
58
+ return this._client.patch(path`/v1/avatars/${id}`, { body, ...options });
59
+ }
60
+
61
+ /**
62
+ * List avatars for the authenticated user with cursor-based pagination.
63
+ *
64
+ * @example
65
+ * ```ts
66
+ * // Automatically fetches more pages as needed.
67
+ * for await (const avatarListResponse of client.avatars.list({
68
+ * limit: 1,
69
+ * })) {
70
+ * // ...
71
+ * }
72
+ * ```
73
+ */
74
+ list(
75
+ query: AvatarListParams,
76
+ options?: RequestOptions,
77
+ ): PagePromise<AvatarListResponsesCursorPage, AvatarListResponse> {
78
+ return this._client.getAPIList('/v1/avatars', CursorPage<AvatarListResponse>, { query, ...options });
79
+ }
80
+
81
+ /**
82
+ * Delete an avatar.
83
+ *
84
+ * @example
85
+ * ```ts
86
+ * await client.avatars.delete(
87
+ * '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
88
+ * );
89
+ * ```
90
+ */
91
+ delete(id: string, options?: RequestOptions): APIPromise<void> {
92
+ return this._client.delete(path`/v1/avatars/${id}`, {
93
+ ...options,
94
+ headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
95
+ });
96
+ }
97
+ }
98
+
99
+ export type AvatarListResponsesCursorPage = CursorPage<AvatarListResponse>;
100
+
101
+ /**
102
+ * An avatar that is still being processed.
103
+ */
104
+ export type AvatarCreateResponse =
105
+ | AvatarCreateResponse.Processing
106
+ | AvatarCreateResponse.Ready
107
+ | AvatarCreateResponse.Failed;
108
+
109
+ export namespace AvatarCreateResponse {
110
+ /**
111
+ * An avatar that is still being processed.
112
+ */
113
+ export interface Processing {
114
+ /**
115
+ * The unique identifier of the avatar.
116
+ */
117
+ id: string;
118
+
119
+ /**
120
+ * When the avatar was created.
121
+ */
122
+ createdAt: string;
123
+
124
+ /**
125
+ * IDs of knowledge documents attached to this avatar.
126
+ */
127
+ documentIds: Array<string>;
128
+
129
+ /**
130
+ * The character name for the avatar.
131
+ */
132
+ name: string;
133
+
134
+ /**
135
+ * System prompt defining how the avatar should behave in conversations.
136
+ */
137
+ personality: string;
138
+
139
+ /**
140
+ * A URI pointing to a low-resolution preview of the processed reference image.
141
+ */
142
+ processedImageUri: string | null;
143
+
144
+ /**
145
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
146
+ */
147
+ referenceImageUri: string | null;
148
+
149
+ /**
150
+ * Opening message that the avatar will say when a session starts, or null if not
151
+ * set.
152
+ */
153
+ startScript: string | null;
154
+
155
+ status: 'PROCESSING';
156
+
157
+ /**
158
+ * When the avatar was last updated.
159
+ */
160
+ updatedAt: string;
161
+
162
+ /**
163
+ * The voice configured for this avatar.
164
+ */
165
+ voice: Processing.RunwayLivePreset | Processing.Custom;
166
+ }
167
+
168
+ export namespace Processing {
169
+ /**
170
+ * A preset voice from the Runway API.
171
+ */
172
+ export interface RunwayLivePreset {
173
+ /**
174
+ * A brief description of the voice characteristics.
175
+ */
176
+ description: string;
177
+
178
+ /**
179
+ * The display name of the voice.
180
+ */
181
+ name: string;
182
+
183
+ /**
184
+ * The preset voice identifier.
185
+ */
186
+ presetId:
187
+ | 'victoria'
188
+ | 'vincent'
189
+ | 'clara'
190
+ | 'drew'
191
+ | 'skye'
192
+ | 'max'
193
+ | 'morgan'
194
+ | 'felix'
195
+ | 'mia'
196
+ | 'marcus'
197
+ | 'summer'
198
+ | 'ruby'
199
+ | 'aurora'
200
+ | 'jasper'
201
+ | 'leo'
202
+ | 'adrian'
203
+ | 'nina'
204
+ | 'emma'
205
+ | 'blake'
206
+ | 'david'
207
+ | 'maya'
208
+ | 'nathan'
209
+ | 'sam'
210
+ | 'georgia'
211
+ | 'petra'
212
+ | 'adam'
213
+ | 'zach'
214
+ | 'violet'
215
+ | 'roman'
216
+ | 'luna';
217
+
218
+ type: 'runway-live-preset';
219
+ }
220
+
221
+ /**
222
+ * A custom voice created via the Voices API.
223
+ */
224
+ export interface Custom {
225
+ /**
226
+ * The unique identifier of the custom voice.
227
+ */
228
+ id: string;
229
+
230
+ /**
231
+ * Whether the voice has been deleted. When true, name and description are omitted.
232
+ */
233
+ deleted: boolean;
234
+
235
+ type: 'custom';
236
+
237
+ /**
238
+ * A brief description of the voice characteristics.
239
+ */
240
+ description?: string | null;
241
+
242
+ /**
243
+ * The display name of the voice.
244
+ */
245
+ name?: string;
246
+ }
247
+ }
248
+
249
+ /**
250
+ * An avatar that is ready for use in sessions.
251
+ */
252
+ export interface Ready {
253
+ /**
254
+ * The unique identifier of the avatar.
255
+ */
256
+ id: string;
257
+
258
+ /**
259
+ * When the avatar was created.
260
+ */
261
+ createdAt: string;
262
+
263
+ /**
264
+ * IDs of knowledge documents attached to this avatar.
265
+ */
266
+ documentIds: Array<string>;
267
+
268
+ /**
269
+ * The character name for the avatar.
270
+ */
271
+ name: string;
272
+
273
+ /**
274
+ * System prompt defining how the avatar should behave in conversations.
275
+ */
276
+ personality: string;
277
+
278
+ /**
279
+ * A URI pointing to a low-resolution preview of the processed reference image.
280
+ */
281
+ processedImageUri: string | null;
282
+
283
+ /**
284
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
285
+ */
286
+ referenceImageUri: string | null;
287
+
288
+ /**
289
+ * Opening message that the avatar will say when a session starts, or null if not
290
+ * set.
291
+ */
292
+ startScript: string | null;
293
+
294
+ status: 'READY';
295
+
296
+ /**
297
+ * When the avatar was last updated.
298
+ */
299
+ updatedAt: string;
300
+
301
+ /**
302
+ * The voice configured for this avatar.
303
+ */
304
+ voice: Ready.RunwayLivePreset | Ready.Custom;
305
+ }
306
+
307
+ export namespace Ready {
308
+ /**
309
+ * A preset voice from the Runway API.
310
+ */
311
+ export interface RunwayLivePreset {
312
+ /**
313
+ * A brief description of the voice characteristics.
314
+ */
315
+ description: string;
316
+
317
+ /**
318
+ * The display name of the voice.
319
+ */
320
+ name: string;
321
+
322
+ /**
323
+ * The preset voice identifier.
324
+ */
325
+ presetId:
326
+ | 'victoria'
327
+ | 'vincent'
328
+ | 'clara'
329
+ | 'drew'
330
+ | 'skye'
331
+ | 'max'
332
+ | 'morgan'
333
+ | 'felix'
334
+ | 'mia'
335
+ | 'marcus'
336
+ | 'summer'
337
+ | 'ruby'
338
+ | 'aurora'
339
+ | 'jasper'
340
+ | 'leo'
341
+ | 'adrian'
342
+ | 'nina'
343
+ | 'emma'
344
+ | 'blake'
345
+ | 'david'
346
+ | 'maya'
347
+ | 'nathan'
348
+ | 'sam'
349
+ | 'georgia'
350
+ | 'petra'
351
+ | 'adam'
352
+ | 'zach'
353
+ | 'violet'
354
+ | 'roman'
355
+ | 'luna';
356
+
357
+ type: 'runway-live-preset';
358
+ }
359
+
360
+ /**
361
+ * A custom voice created via the Voices API.
362
+ */
363
+ export interface Custom {
364
+ /**
365
+ * The unique identifier of the custom voice.
366
+ */
367
+ id: string;
368
+
369
+ /**
370
+ * Whether the voice has been deleted. When true, name and description are omitted.
371
+ */
372
+ deleted: boolean;
373
+
374
+ type: 'custom';
375
+
376
+ /**
377
+ * A brief description of the voice characteristics.
378
+ */
379
+ description?: string | null;
380
+
381
+ /**
382
+ * The display name of the voice.
383
+ */
384
+ name?: string;
385
+ }
386
+ }
387
+
388
+ /**
389
+ * An avatar that failed to finish processing.
390
+ */
391
+ export interface Failed {
392
+ /**
393
+ * The unique identifier of the avatar.
394
+ */
395
+ id: string;
396
+
397
+ /**
398
+ * When the avatar was created.
399
+ */
400
+ createdAt: string;
401
+
402
+ /**
403
+ * IDs of knowledge documents attached to this avatar.
404
+ */
405
+ documentIds: Array<string>;
406
+
407
+ /**
408
+ * A human-readable error message. This value is not stable and should not be
409
+ * matched against programmatically.
410
+ */
411
+ failureReason: string;
412
+
413
+ /**
414
+ * The character name for the avatar.
415
+ */
416
+ name: string;
417
+
418
+ /**
419
+ * System prompt defining how the avatar should behave in conversations.
420
+ */
421
+ personality: string;
422
+
423
+ /**
424
+ * A URI pointing to a low-resolution preview of the processed reference image.
425
+ */
426
+ processedImageUri: string | null;
427
+
428
+ /**
429
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
430
+ */
431
+ referenceImageUri: string | null;
432
+
433
+ /**
434
+ * Opening message that the avatar will say when a session starts, or null if not
435
+ * set.
436
+ */
437
+ startScript: string | null;
438
+
439
+ status: 'FAILED';
440
+
441
+ /**
442
+ * When the avatar was last updated.
443
+ */
444
+ updatedAt: string;
445
+
446
+ /**
447
+ * The voice configured for this avatar.
448
+ */
449
+ voice: Failed.RunwayLivePreset | Failed.Custom;
450
+ }
451
+
452
+ export namespace Failed {
453
+ /**
454
+ * A preset voice from the Runway API.
455
+ */
456
+ export interface RunwayLivePreset {
457
+ /**
458
+ * A brief description of the voice characteristics.
459
+ */
460
+ description: string;
461
+
462
+ /**
463
+ * The display name of the voice.
464
+ */
465
+ name: string;
466
+
467
+ /**
468
+ * The preset voice identifier.
469
+ */
470
+ presetId:
471
+ | 'victoria'
472
+ | 'vincent'
473
+ | 'clara'
474
+ | 'drew'
475
+ | 'skye'
476
+ | 'max'
477
+ | 'morgan'
478
+ | 'felix'
479
+ | 'mia'
480
+ | 'marcus'
481
+ | 'summer'
482
+ | 'ruby'
483
+ | 'aurora'
484
+ | 'jasper'
485
+ | 'leo'
486
+ | 'adrian'
487
+ | 'nina'
488
+ | 'emma'
489
+ | 'blake'
490
+ | 'david'
491
+ | 'maya'
492
+ | 'nathan'
493
+ | 'sam'
494
+ | 'georgia'
495
+ | 'petra'
496
+ | 'adam'
497
+ | 'zach'
498
+ | 'violet'
499
+ | 'roman'
500
+ | 'luna';
501
+
502
+ type: 'runway-live-preset';
503
+ }
504
+
505
+ /**
506
+ * A custom voice created via the Voices API.
507
+ */
508
+ export interface Custom {
509
+ /**
510
+ * The unique identifier of the custom voice.
511
+ */
512
+ id: string;
513
+
514
+ /**
515
+ * Whether the voice has been deleted. When true, name and description are omitted.
516
+ */
517
+ deleted: boolean;
518
+
519
+ type: 'custom';
520
+
521
+ /**
522
+ * A brief description of the voice characteristics.
523
+ */
524
+ description?: string | null;
525
+
526
+ /**
527
+ * The display name of the voice.
528
+ */
529
+ name?: string;
530
+ }
531
+ }
532
+ }
533
+
534
+ /**
535
+ * An avatar that is still being processed.
536
+ */
537
+ export type AvatarRetrieveResponse =
538
+ | AvatarRetrieveResponse.Processing
539
+ | AvatarRetrieveResponse.Ready
540
+ | AvatarRetrieveResponse.Failed;
541
+
542
+ export namespace AvatarRetrieveResponse {
543
+ /**
544
+ * An avatar that is still being processed.
545
+ */
546
+ export interface Processing {
547
+ /**
548
+ * The unique identifier of the avatar.
549
+ */
550
+ id: string;
551
+
552
+ /**
553
+ * When the avatar was created.
554
+ */
555
+ createdAt: string;
556
+
557
+ /**
558
+ * IDs of knowledge documents attached to this avatar.
559
+ */
560
+ documentIds: Array<string>;
561
+
562
+ /**
563
+ * The character name for the avatar.
564
+ */
565
+ name: string;
566
+
567
+ /**
568
+ * System prompt defining how the avatar should behave in conversations.
569
+ */
570
+ personality: string;
571
+
572
+ /**
573
+ * A URI pointing to a low-resolution preview of the processed reference image.
574
+ */
575
+ processedImageUri: string | null;
576
+
577
+ /**
578
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
579
+ */
580
+ referenceImageUri: string | null;
581
+
582
+ /**
583
+ * Opening message that the avatar will say when a session starts, or null if not
584
+ * set.
585
+ */
586
+ startScript: string | null;
587
+
588
+ status: 'PROCESSING';
589
+
590
+ /**
591
+ * When the avatar was last updated.
592
+ */
593
+ updatedAt: string;
594
+
595
+ /**
596
+ * The voice configured for this avatar.
597
+ */
598
+ voice: Processing.RunwayLivePreset | Processing.Custom;
599
+ }
600
+
601
+ export namespace Processing {
602
+ /**
603
+ * A preset voice from the Runway API.
604
+ */
605
+ export interface RunwayLivePreset {
606
+ /**
607
+ * A brief description of the voice characteristics.
608
+ */
609
+ description: string;
610
+
611
+ /**
612
+ * The display name of the voice.
613
+ */
614
+ name: string;
615
+
616
+ /**
617
+ * The preset voice identifier.
618
+ */
619
+ presetId:
620
+ | 'victoria'
621
+ | 'vincent'
622
+ | 'clara'
623
+ | 'drew'
624
+ | 'skye'
625
+ | 'max'
626
+ | 'morgan'
627
+ | 'felix'
628
+ | 'mia'
629
+ | 'marcus'
630
+ | 'summer'
631
+ | 'ruby'
632
+ | 'aurora'
633
+ | 'jasper'
634
+ | 'leo'
635
+ | 'adrian'
636
+ | 'nina'
637
+ | 'emma'
638
+ | 'blake'
639
+ | 'david'
640
+ | 'maya'
641
+ | 'nathan'
642
+ | 'sam'
643
+ | 'georgia'
644
+ | 'petra'
645
+ | 'adam'
646
+ | 'zach'
647
+ | 'violet'
648
+ | 'roman'
649
+ | 'luna';
650
+
651
+ type: 'runway-live-preset';
652
+ }
653
+
654
+ /**
655
+ * A custom voice created via the Voices API.
656
+ */
657
+ export interface Custom {
658
+ /**
659
+ * The unique identifier of the custom voice.
660
+ */
661
+ id: string;
662
+
663
+ /**
664
+ * Whether the voice has been deleted. When true, name and description are omitted.
665
+ */
666
+ deleted: boolean;
667
+
668
+ type: 'custom';
669
+
670
+ /**
671
+ * A brief description of the voice characteristics.
672
+ */
673
+ description?: string | null;
674
+
675
+ /**
676
+ * The display name of the voice.
677
+ */
678
+ name?: string;
679
+ }
680
+ }
681
+
682
+ /**
683
+ * An avatar that is ready for use in sessions.
684
+ */
685
+ export interface Ready {
686
+ /**
687
+ * The unique identifier of the avatar.
688
+ */
689
+ id: string;
690
+
691
+ /**
692
+ * When the avatar was created.
693
+ */
694
+ createdAt: string;
695
+
696
+ /**
697
+ * IDs of knowledge documents attached to this avatar.
698
+ */
699
+ documentIds: Array<string>;
700
+
701
+ /**
702
+ * The character name for the avatar.
703
+ */
704
+ name: string;
705
+
706
+ /**
707
+ * System prompt defining how the avatar should behave in conversations.
708
+ */
709
+ personality: string;
710
+
711
+ /**
712
+ * A URI pointing to a low-resolution preview of the processed reference image.
713
+ */
714
+ processedImageUri: string | null;
715
+
716
+ /**
717
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
718
+ */
719
+ referenceImageUri: string | null;
720
+
721
+ /**
722
+ * Opening message that the avatar will say when a session starts, or null if not
723
+ * set.
724
+ */
725
+ startScript: string | null;
726
+
727
+ status: 'READY';
728
+
729
+ /**
730
+ * When the avatar was last updated.
731
+ */
732
+ updatedAt: string;
733
+
734
+ /**
735
+ * The voice configured for this avatar.
736
+ */
737
+ voice: Ready.RunwayLivePreset | Ready.Custom;
738
+ }
739
+
740
+ export namespace Ready {
741
+ /**
742
+ * A preset voice from the Runway API.
743
+ */
744
+ export interface RunwayLivePreset {
745
+ /**
746
+ * A brief description of the voice characteristics.
747
+ */
748
+ description: string;
749
+
750
+ /**
751
+ * The display name of the voice.
752
+ */
753
+ name: string;
754
+
755
+ /**
756
+ * The preset voice identifier.
757
+ */
758
+ presetId:
759
+ | 'victoria'
760
+ | 'vincent'
761
+ | 'clara'
762
+ | 'drew'
763
+ | 'skye'
764
+ | 'max'
765
+ | 'morgan'
766
+ | 'felix'
767
+ | 'mia'
768
+ | 'marcus'
769
+ | 'summer'
770
+ | 'ruby'
771
+ | 'aurora'
772
+ | 'jasper'
773
+ | 'leo'
774
+ | 'adrian'
775
+ | 'nina'
776
+ | 'emma'
777
+ | 'blake'
778
+ | 'david'
779
+ | 'maya'
780
+ | 'nathan'
781
+ | 'sam'
782
+ | 'georgia'
783
+ | 'petra'
784
+ | 'adam'
785
+ | 'zach'
786
+ | 'violet'
787
+ | 'roman'
788
+ | 'luna';
789
+
790
+ type: 'runway-live-preset';
791
+ }
792
+
793
+ /**
794
+ * A custom voice created via the Voices API.
795
+ */
796
+ export interface Custom {
797
+ /**
798
+ * The unique identifier of the custom voice.
799
+ */
800
+ id: string;
801
+
802
+ /**
803
+ * Whether the voice has been deleted. When true, name and description are omitted.
804
+ */
805
+ deleted: boolean;
806
+
807
+ type: 'custom';
808
+
809
+ /**
810
+ * A brief description of the voice characteristics.
811
+ */
812
+ description?: string | null;
813
+
814
+ /**
815
+ * The display name of the voice.
816
+ */
817
+ name?: string;
818
+ }
819
+ }
820
+
821
+ /**
822
+ * An avatar that failed to finish processing.
823
+ */
824
+ export interface Failed {
825
+ /**
826
+ * The unique identifier of the avatar.
827
+ */
828
+ id: string;
829
+
830
+ /**
831
+ * When the avatar was created.
832
+ */
833
+ createdAt: string;
834
+
835
+ /**
836
+ * IDs of knowledge documents attached to this avatar.
837
+ */
838
+ documentIds: Array<string>;
839
+
840
+ /**
841
+ * A human-readable error message. This value is not stable and should not be
842
+ * matched against programmatically.
843
+ */
844
+ failureReason: string;
845
+
846
+ /**
847
+ * The character name for the avatar.
848
+ */
849
+ name: string;
850
+
851
+ /**
852
+ * System prompt defining how the avatar should behave in conversations.
853
+ */
854
+ personality: string;
855
+
856
+ /**
857
+ * A URI pointing to a low-resolution preview of the processed reference image.
858
+ */
859
+ processedImageUri: string | null;
860
+
861
+ /**
862
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
863
+ */
864
+ referenceImageUri: string | null;
865
+
866
+ /**
867
+ * Opening message that the avatar will say when a session starts, or null if not
868
+ * set.
869
+ */
870
+ startScript: string | null;
871
+
872
+ status: 'FAILED';
873
+
874
+ /**
875
+ * When the avatar was last updated.
876
+ */
877
+ updatedAt: string;
878
+
879
+ /**
880
+ * The voice configured for this avatar.
881
+ */
882
+ voice: Failed.RunwayLivePreset | Failed.Custom;
883
+ }
884
+
885
+ export namespace Failed {
886
+ /**
887
+ * A preset voice from the Runway API.
888
+ */
889
+ export interface RunwayLivePreset {
890
+ /**
891
+ * A brief description of the voice characteristics.
892
+ */
893
+ description: string;
894
+
895
+ /**
896
+ * The display name of the voice.
897
+ */
898
+ name: string;
899
+
900
+ /**
901
+ * The preset voice identifier.
902
+ */
903
+ presetId:
904
+ | 'victoria'
905
+ | 'vincent'
906
+ | 'clara'
907
+ | 'drew'
908
+ | 'skye'
909
+ | 'max'
910
+ | 'morgan'
911
+ | 'felix'
912
+ | 'mia'
913
+ | 'marcus'
914
+ | 'summer'
915
+ | 'ruby'
916
+ | 'aurora'
917
+ | 'jasper'
918
+ | 'leo'
919
+ | 'adrian'
920
+ | 'nina'
921
+ | 'emma'
922
+ | 'blake'
923
+ | 'david'
924
+ | 'maya'
925
+ | 'nathan'
926
+ | 'sam'
927
+ | 'georgia'
928
+ | 'petra'
929
+ | 'adam'
930
+ | 'zach'
931
+ | 'violet'
932
+ | 'roman'
933
+ | 'luna';
934
+
935
+ type: 'runway-live-preset';
936
+ }
937
+
938
+ /**
939
+ * A custom voice created via the Voices API.
940
+ */
941
+ export interface Custom {
942
+ /**
943
+ * The unique identifier of the custom voice.
944
+ */
945
+ id: string;
946
+
947
+ /**
948
+ * Whether the voice has been deleted. When true, name and description are omitted.
949
+ */
950
+ deleted: boolean;
951
+
952
+ type: 'custom';
953
+
954
+ /**
955
+ * A brief description of the voice characteristics.
956
+ */
957
+ description?: string | null;
958
+
959
+ /**
960
+ * The display name of the voice.
961
+ */
962
+ name?: string;
963
+ }
964
+ }
965
+ }
966
+
967
+ /**
968
+ * An avatar that is still being processed.
969
+ */
970
+ export type AvatarUpdateResponse =
971
+ | AvatarUpdateResponse.Processing
972
+ | AvatarUpdateResponse.Ready
973
+ | AvatarUpdateResponse.Failed;
974
+
975
+ export namespace AvatarUpdateResponse {
976
+ /**
977
+ * An avatar that is still being processed.
978
+ */
979
+ export interface Processing {
980
+ /**
981
+ * The unique identifier of the avatar.
982
+ */
983
+ id: string;
984
+
985
+ /**
986
+ * When the avatar was created.
987
+ */
988
+ createdAt: string;
989
+
990
+ /**
991
+ * IDs of knowledge documents attached to this avatar.
992
+ */
993
+ documentIds: Array<string>;
994
+
995
+ /**
996
+ * The character name for the avatar.
997
+ */
998
+ name: string;
999
+
1000
+ /**
1001
+ * System prompt defining how the avatar should behave in conversations.
1002
+ */
1003
+ personality: string;
1004
+
1005
+ /**
1006
+ * A URI pointing to a low-resolution preview of the processed reference image.
1007
+ */
1008
+ processedImageUri: string | null;
1009
+
1010
+ /**
1011
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
1012
+ */
1013
+ referenceImageUri: string | null;
1014
+
1015
+ /**
1016
+ * Opening message that the avatar will say when a session starts, or null if not
1017
+ * set.
1018
+ */
1019
+ startScript: string | null;
1020
+
1021
+ status: 'PROCESSING';
1022
+
1023
+ /**
1024
+ * When the avatar was last updated.
1025
+ */
1026
+ updatedAt: string;
1027
+
1028
+ /**
1029
+ * The voice configured for this avatar.
1030
+ */
1031
+ voice: Processing.RunwayLivePreset | Processing.Custom;
1032
+ }
1033
+
1034
+ export namespace Processing {
1035
+ /**
1036
+ * A preset voice from the Runway API.
1037
+ */
1038
+ export interface RunwayLivePreset {
1039
+ /**
1040
+ * A brief description of the voice characteristics.
1041
+ */
1042
+ description: string;
1043
+
1044
+ /**
1045
+ * The display name of the voice.
1046
+ */
1047
+ name: string;
1048
+
1049
+ /**
1050
+ * The preset voice identifier.
1051
+ */
1052
+ presetId:
1053
+ | 'victoria'
1054
+ | 'vincent'
1055
+ | 'clara'
1056
+ | 'drew'
1057
+ | 'skye'
1058
+ | 'max'
1059
+ | 'morgan'
1060
+ | 'felix'
1061
+ | 'mia'
1062
+ | 'marcus'
1063
+ | 'summer'
1064
+ | 'ruby'
1065
+ | 'aurora'
1066
+ | 'jasper'
1067
+ | 'leo'
1068
+ | 'adrian'
1069
+ | 'nina'
1070
+ | 'emma'
1071
+ | 'blake'
1072
+ | 'david'
1073
+ | 'maya'
1074
+ | 'nathan'
1075
+ | 'sam'
1076
+ | 'georgia'
1077
+ | 'petra'
1078
+ | 'adam'
1079
+ | 'zach'
1080
+ | 'violet'
1081
+ | 'roman'
1082
+ | 'luna';
1083
+
1084
+ type: 'runway-live-preset';
1085
+ }
1086
+
1087
+ /**
1088
+ * A custom voice created via the Voices API.
1089
+ */
1090
+ export interface Custom {
1091
+ /**
1092
+ * The unique identifier of the custom voice.
1093
+ */
1094
+ id: string;
1095
+
1096
+ /**
1097
+ * Whether the voice has been deleted. When true, name and description are omitted.
1098
+ */
1099
+ deleted: boolean;
1100
+
1101
+ type: 'custom';
1102
+
1103
+ /**
1104
+ * A brief description of the voice characteristics.
1105
+ */
1106
+ description?: string | null;
1107
+
1108
+ /**
1109
+ * The display name of the voice.
1110
+ */
1111
+ name?: string;
1112
+ }
1113
+ }
1114
+
1115
+ /**
1116
+ * An avatar that is ready for use in sessions.
1117
+ */
1118
+ export interface Ready {
1119
+ /**
1120
+ * The unique identifier of the avatar.
1121
+ */
1122
+ id: string;
1123
+
1124
+ /**
1125
+ * When the avatar was created.
1126
+ */
1127
+ createdAt: string;
1128
+
1129
+ /**
1130
+ * IDs of knowledge documents attached to this avatar.
1131
+ */
1132
+ documentIds: Array<string>;
1133
+
1134
+ /**
1135
+ * The character name for the avatar.
1136
+ */
1137
+ name: string;
1138
+
1139
+ /**
1140
+ * System prompt defining how the avatar should behave in conversations.
1141
+ */
1142
+ personality: string;
1143
+
1144
+ /**
1145
+ * A URI pointing to a low-resolution preview of the processed reference image.
1146
+ */
1147
+ processedImageUri: string | null;
1148
+
1149
+ /**
1150
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
1151
+ */
1152
+ referenceImageUri: string | null;
1153
+
1154
+ /**
1155
+ * Opening message that the avatar will say when a session starts, or null if not
1156
+ * set.
1157
+ */
1158
+ startScript: string | null;
1159
+
1160
+ status: 'READY';
1161
+
1162
+ /**
1163
+ * When the avatar was last updated.
1164
+ */
1165
+ updatedAt: string;
1166
+
1167
+ /**
1168
+ * The voice configured for this avatar.
1169
+ */
1170
+ voice: Ready.RunwayLivePreset | Ready.Custom;
1171
+ }
1172
+
1173
+ export namespace Ready {
1174
+ /**
1175
+ * A preset voice from the Runway API.
1176
+ */
1177
+ export interface RunwayLivePreset {
1178
+ /**
1179
+ * A brief description of the voice characteristics.
1180
+ */
1181
+ description: string;
1182
+
1183
+ /**
1184
+ * The display name of the voice.
1185
+ */
1186
+ name: string;
1187
+
1188
+ /**
1189
+ * The preset voice identifier.
1190
+ */
1191
+ presetId:
1192
+ | 'victoria'
1193
+ | 'vincent'
1194
+ | 'clara'
1195
+ | 'drew'
1196
+ | 'skye'
1197
+ | 'max'
1198
+ | 'morgan'
1199
+ | 'felix'
1200
+ | 'mia'
1201
+ | 'marcus'
1202
+ | 'summer'
1203
+ | 'ruby'
1204
+ | 'aurora'
1205
+ | 'jasper'
1206
+ | 'leo'
1207
+ | 'adrian'
1208
+ | 'nina'
1209
+ | 'emma'
1210
+ | 'blake'
1211
+ | 'david'
1212
+ | 'maya'
1213
+ | 'nathan'
1214
+ | 'sam'
1215
+ | 'georgia'
1216
+ | 'petra'
1217
+ | 'adam'
1218
+ | 'zach'
1219
+ | 'violet'
1220
+ | 'roman'
1221
+ | 'luna';
1222
+
1223
+ type: 'runway-live-preset';
1224
+ }
1225
+
1226
+ /**
1227
+ * A custom voice created via the Voices API.
1228
+ */
1229
+ export interface Custom {
1230
+ /**
1231
+ * The unique identifier of the custom voice.
1232
+ */
1233
+ id: string;
1234
+
1235
+ /**
1236
+ * Whether the voice has been deleted. When true, name and description are omitted.
1237
+ */
1238
+ deleted: boolean;
1239
+
1240
+ type: 'custom';
1241
+
1242
+ /**
1243
+ * A brief description of the voice characteristics.
1244
+ */
1245
+ description?: string | null;
1246
+
1247
+ /**
1248
+ * The display name of the voice.
1249
+ */
1250
+ name?: string;
1251
+ }
1252
+ }
1253
+
1254
+ /**
1255
+ * An avatar that failed to finish processing.
1256
+ */
1257
+ export interface Failed {
1258
+ /**
1259
+ * The unique identifier of the avatar.
1260
+ */
1261
+ id: string;
1262
+
1263
+ /**
1264
+ * When the avatar was created.
1265
+ */
1266
+ createdAt: string;
1267
+
1268
+ /**
1269
+ * IDs of knowledge documents attached to this avatar.
1270
+ */
1271
+ documentIds: Array<string>;
1272
+
1273
+ /**
1274
+ * A human-readable error message. This value is not stable and should not be
1275
+ * matched against programmatically.
1276
+ */
1277
+ failureReason: string;
1278
+
1279
+ /**
1280
+ * The character name for the avatar.
1281
+ */
1282
+ name: string;
1283
+
1284
+ /**
1285
+ * System prompt defining how the avatar should behave in conversations.
1286
+ */
1287
+ personality: string;
1288
+
1289
+ /**
1290
+ * A URI pointing to a low-resolution preview of the processed reference image.
1291
+ */
1292
+ processedImageUri: string | null;
1293
+
1294
+ /**
1295
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
1296
+ */
1297
+ referenceImageUri: string | null;
1298
+
1299
+ /**
1300
+ * Opening message that the avatar will say when a session starts, or null if not
1301
+ * set.
1302
+ */
1303
+ startScript: string | null;
1304
+
1305
+ status: 'FAILED';
1306
+
1307
+ /**
1308
+ * When the avatar was last updated.
1309
+ */
1310
+ updatedAt: string;
1311
+
1312
+ /**
1313
+ * The voice configured for this avatar.
1314
+ */
1315
+ voice: Failed.RunwayLivePreset | Failed.Custom;
1316
+ }
1317
+
1318
+ export namespace Failed {
1319
+ /**
1320
+ * A preset voice from the Runway API.
1321
+ */
1322
+ export interface RunwayLivePreset {
1323
+ /**
1324
+ * A brief description of the voice characteristics.
1325
+ */
1326
+ description: string;
1327
+
1328
+ /**
1329
+ * The display name of the voice.
1330
+ */
1331
+ name: string;
1332
+
1333
+ /**
1334
+ * The preset voice identifier.
1335
+ */
1336
+ presetId:
1337
+ | 'victoria'
1338
+ | 'vincent'
1339
+ | 'clara'
1340
+ | 'drew'
1341
+ | 'skye'
1342
+ | 'max'
1343
+ | 'morgan'
1344
+ | 'felix'
1345
+ | 'mia'
1346
+ | 'marcus'
1347
+ | 'summer'
1348
+ | 'ruby'
1349
+ | 'aurora'
1350
+ | 'jasper'
1351
+ | 'leo'
1352
+ | 'adrian'
1353
+ | 'nina'
1354
+ | 'emma'
1355
+ | 'blake'
1356
+ | 'david'
1357
+ | 'maya'
1358
+ | 'nathan'
1359
+ | 'sam'
1360
+ | 'georgia'
1361
+ | 'petra'
1362
+ | 'adam'
1363
+ | 'zach'
1364
+ | 'violet'
1365
+ | 'roman'
1366
+ | 'luna';
1367
+
1368
+ type: 'runway-live-preset';
1369
+ }
1370
+
1371
+ /**
1372
+ * A custom voice created via the Voices API.
1373
+ */
1374
+ export interface Custom {
1375
+ /**
1376
+ * The unique identifier of the custom voice.
1377
+ */
1378
+ id: string;
1379
+
1380
+ /**
1381
+ * Whether the voice has been deleted. When true, name and description are omitted.
1382
+ */
1383
+ deleted: boolean;
1384
+
1385
+ type: 'custom';
1386
+
1387
+ /**
1388
+ * A brief description of the voice characteristics.
1389
+ */
1390
+ description?: string | null;
1391
+
1392
+ /**
1393
+ * The display name of the voice.
1394
+ */
1395
+ name?: string;
1396
+ }
1397
+ }
1398
+ }
1399
+
1400
+ /**
1401
+ * An avatar that is still being processed.
1402
+ */
1403
+ export type AvatarListResponse =
1404
+ | AvatarListResponse.Processing
1405
+ | AvatarListResponse.Ready
1406
+ | AvatarListResponse.Failed;
1407
+
1408
+ export namespace AvatarListResponse {
1409
+ /**
1410
+ * An avatar that is still being processed.
1411
+ */
1412
+ export interface Processing {
1413
+ /**
1414
+ * The unique identifier of the avatar.
1415
+ */
1416
+ id: string;
1417
+
1418
+ /**
1419
+ * When the avatar was created.
1420
+ */
1421
+ createdAt: string;
1422
+
1423
+ /**
1424
+ * IDs of knowledge documents attached to this avatar.
1425
+ */
1426
+ documentIds: Array<string>;
1427
+
1428
+ /**
1429
+ * The character name for the avatar.
1430
+ */
1431
+ name: string;
1432
+
1433
+ /**
1434
+ * System prompt defining how the avatar should behave in conversations.
1435
+ */
1436
+ personality: string;
1437
+
1438
+ /**
1439
+ * A URI pointing to a low-resolution preview of the processed reference image.
1440
+ */
1441
+ processedImageUri: string | null;
1442
+
1443
+ /**
1444
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
1445
+ */
1446
+ referenceImageUri: string | null;
1447
+
1448
+ /**
1449
+ * Opening message that the avatar will say when a session starts, or null if not
1450
+ * set.
1451
+ */
1452
+ startScript: string | null;
1453
+
1454
+ status: 'PROCESSING';
1455
+
1456
+ /**
1457
+ * When the avatar was last updated.
1458
+ */
1459
+ updatedAt: string;
1460
+
1461
+ /**
1462
+ * The voice configured for this avatar.
1463
+ */
1464
+ voice: Processing.RunwayLivePreset | Processing.Custom;
1465
+ }
1466
+
1467
+ export namespace Processing {
1468
+ /**
1469
+ * A preset voice from the Runway API.
1470
+ */
1471
+ export interface RunwayLivePreset {
1472
+ /**
1473
+ * A brief description of the voice characteristics.
1474
+ */
1475
+ description: string;
1476
+
1477
+ /**
1478
+ * The display name of the voice.
1479
+ */
1480
+ name: string;
1481
+
1482
+ /**
1483
+ * The preset voice identifier.
1484
+ */
1485
+ presetId:
1486
+ | 'victoria'
1487
+ | 'vincent'
1488
+ | 'clara'
1489
+ | 'drew'
1490
+ | 'skye'
1491
+ | 'max'
1492
+ | 'morgan'
1493
+ | 'felix'
1494
+ | 'mia'
1495
+ | 'marcus'
1496
+ | 'summer'
1497
+ | 'ruby'
1498
+ | 'aurora'
1499
+ | 'jasper'
1500
+ | 'leo'
1501
+ | 'adrian'
1502
+ | 'nina'
1503
+ | 'emma'
1504
+ | 'blake'
1505
+ | 'david'
1506
+ | 'maya'
1507
+ | 'nathan'
1508
+ | 'sam'
1509
+ | 'georgia'
1510
+ | 'petra'
1511
+ | 'adam'
1512
+ | 'zach'
1513
+ | 'violet'
1514
+ | 'roman'
1515
+ | 'luna';
1516
+
1517
+ type: 'runway-live-preset';
1518
+ }
1519
+
1520
+ /**
1521
+ * A custom voice created via the Voices API.
1522
+ */
1523
+ export interface Custom {
1524
+ /**
1525
+ * The unique identifier of the custom voice.
1526
+ */
1527
+ id: string;
1528
+
1529
+ /**
1530
+ * Whether the voice has been deleted. When true, name and description are omitted.
1531
+ */
1532
+ deleted: boolean;
1533
+
1534
+ type: 'custom';
1535
+
1536
+ /**
1537
+ * A brief description of the voice characteristics.
1538
+ */
1539
+ description?: string | null;
1540
+
1541
+ /**
1542
+ * The display name of the voice.
1543
+ */
1544
+ name?: string;
1545
+ }
1546
+ }
1547
+
1548
+ /**
1549
+ * An avatar that is ready for use in sessions.
1550
+ */
1551
+ export interface Ready {
1552
+ /**
1553
+ * The unique identifier of the avatar.
1554
+ */
1555
+ id: string;
1556
+
1557
+ /**
1558
+ * When the avatar was created.
1559
+ */
1560
+ createdAt: string;
1561
+
1562
+ /**
1563
+ * IDs of knowledge documents attached to this avatar.
1564
+ */
1565
+ documentIds: Array<string>;
1566
+
1567
+ /**
1568
+ * The character name for the avatar.
1569
+ */
1570
+ name: string;
1571
+
1572
+ /**
1573
+ * System prompt defining how the avatar should behave in conversations.
1574
+ */
1575
+ personality: string;
1576
+
1577
+ /**
1578
+ * A URI pointing to a low-resolution preview of the processed reference image.
1579
+ */
1580
+ processedImageUri: string | null;
1581
+
1582
+ /**
1583
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
1584
+ */
1585
+ referenceImageUri: string | null;
1586
+
1587
+ /**
1588
+ * Opening message that the avatar will say when a session starts, or null if not
1589
+ * set.
1590
+ */
1591
+ startScript: string | null;
1592
+
1593
+ status: 'READY';
1594
+
1595
+ /**
1596
+ * When the avatar was last updated.
1597
+ */
1598
+ updatedAt: string;
1599
+
1600
+ /**
1601
+ * The voice configured for this avatar.
1602
+ */
1603
+ voice: Ready.RunwayLivePreset | Ready.Custom;
1604
+ }
1605
+
1606
+ export namespace Ready {
1607
+ /**
1608
+ * A preset voice from the Runway API.
1609
+ */
1610
+ export interface RunwayLivePreset {
1611
+ /**
1612
+ * A brief description of the voice characteristics.
1613
+ */
1614
+ description: string;
1615
+
1616
+ /**
1617
+ * The display name of the voice.
1618
+ */
1619
+ name: string;
1620
+
1621
+ /**
1622
+ * The preset voice identifier.
1623
+ */
1624
+ presetId:
1625
+ | 'victoria'
1626
+ | 'vincent'
1627
+ | 'clara'
1628
+ | 'drew'
1629
+ | 'skye'
1630
+ | 'max'
1631
+ | 'morgan'
1632
+ | 'felix'
1633
+ | 'mia'
1634
+ | 'marcus'
1635
+ | 'summer'
1636
+ | 'ruby'
1637
+ | 'aurora'
1638
+ | 'jasper'
1639
+ | 'leo'
1640
+ | 'adrian'
1641
+ | 'nina'
1642
+ | 'emma'
1643
+ | 'blake'
1644
+ | 'david'
1645
+ | 'maya'
1646
+ | 'nathan'
1647
+ | 'sam'
1648
+ | 'georgia'
1649
+ | 'petra'
1650
+ | 'adam'
1651
+ | 'zach'
1652
+ | 'violet'
1653
+ | 'roman'
1654
+ | 'luna';
1655
+
1656
+ type: 'runway-live-preset';
1657
+ }
1658
+
1659
+ /**
1660
+ * A custom voice created via the Voices API.
1661
+ */
1662
+ export interface Custom {
1663
+ /**
1664
+ * The unique identifier of the custom voice.
1665
+ */
1666
+ id: string;
1667
+
1668
+ /**
1669
+ * Whether the voice has been deleted. When true, name and description are omitted.
1670
+ */
1671
+ deleted: boolean;
1672
+
1673
+ type: 'custom';
1674
+
1675
+ /**
1676
+ * A brief description of the voice characteristics.
1677
+ */
1678
+ description?: string | null;
1679
+
1680
+ /**
1681
+ * The display name of the voice.
1682
+ */
1683
+ name?: string;
1684
+ }
1685
+ }
1686
+
1687
+ /**
1688
+ * An avatar that failed to finish processing.
1689
+ */
1690
+ export interface Failed {
1691
+ /**
1692
+ * The unique identifier of the avatar.
1693
+ */
1694
+ id: string;
1695
+
1696
+ /**
1697
+ * When the avatar was created.
1698
+ */
1699
+ createdAt: string;
1700
+
1701
+ /**
1702
+ * IDs of knowledge documents attached to this avatar.
1703
+ */
1704
+ documentIds: Array<string>;
1705
+
1706
+ /**
1707
+ * A human-readable error message. This value is not stable and should not be
1708
+ * matched against programmatically.
1709
+ */
1710
+ failureReason: string;
1711
+
1712
+ /**
1713
+ * The character name for the avatar.
1714
+ */
1715
+ name: string;
1716
+
1717
+ /**
1718
+ * System prompt defining how the avatar should behave in conversations.
1719
+ */
1720
+ personality: string;
1721
+
1722
+ /**
1723
+ * A URI pointing to a low-resolution preview of the processed reference image.
1724
+ */
1725
+ processedImageUri: string | null;
1726
+
1727
+ /**
1728
+ * A URI pointing to a low-resolution preview of the avatar's reference image.
1729
+ */
1730
+ referenceImageUri: string | null;
1731
+
1732
+ /**
1733
+ * Opening message that the avatar will say when a session starts, or null if not
1734
+ * set.
1735
+ */
1736
+ startScript: string | null;
1737
+
1738
+ status: 'FAILED';
1739
+
1740
+ /**
1741
+ * When the avatar was last updated.
1742
+ */
1743
+ updatedAt: string;
1744
+
1745
+ /**
1746
+ * The voice configured for this avatar.
1747
+ */
1748
+ voice: Failed.RunwayLivePreset | Failed.Custom;
1749
+ }
1750
+
1751
+ export namespace Failed {
1752
+ /**
1753
+ * A preset voice from the Runway API.
1754
+ */
1755
+ export interface RunwayLivePreset {
1756
+ /**
1757
+ * A brief description of the voice characteristics.
1758
+ */
1759
+ description: string;
1760
+
1761
+ /**
1762
+ * The display name of the voice.
1763
+ */
1764
+ name: string;
1765
+
1766
+ /**
1767
+ * The preset voice identifier.
1768
+ */
1769
+ presetId:
1770
+ | 'victoria'
1771
+ | 'vincent'
1772
+ | 'clara'
1773
+ | 'drew'
1774
+ | 'skye'
1775
+ | 'max'
1776
+ | 'morgan'
1777
+ | 'felix'
1778
+ | 'mia'
1779
+ | 'marcus'
1780
+ | 'summer'
1781
+ | 'ruby'
1782
+ | 'aurora'
1783
+ | 'jasper'
1784
+ | 'leo'
1785
+ | 'adrian'
1786
+ | 'nina'
1787
+ | 'emma'
1788
+ | 'blake'
1789
+ | 'david'
1790
+ | 'maya'
1791
+ | 'nathan'
1792
+ | 'sam'
1793
+ | 'georgia'
1794
+ | 'petra'
1795
+ | 'adam'
1796
+ | 'zach'
1797
+ | 'violet'
1798
+ | 'roman'
1799
+ | 'luna';
1800
+
1801
+ type: 'runway-live-preset';
1802
+ }
1803
+
1804
+ /**
1805
+ * A custom voice created via the Voices API.
1806
+ */
1807
+ export interface Custom {
1808
+ /**
1809
+ * The unique identifier of the custom voice.
1810
+ */
1811
+ id: string;
1812
+
1813
+ /**
1814
+ * Whether the voice has been deleted. When true, name and description are omitted.
1815
+ */
1816
+ deleted: boolean;
1817
+
1818
+ type: 'custom';
1819
+
1820
+ /**
1821
+ * A brief description of the voice characteristics.
1822
+ */
1823
+ description?: string | null;
1824
+
1825
+ /**
1826
+ * The display name of the voice.
1827
+ */
1828
+ name?: string;
1829
+ }
1830
+ }
1831
+ }
1832
+
1833
+ export interface AvatarCreateParams {
1834
+ /**
1835
+ * The character name for the avatar.
1836
+ */
1837
+ name: string;
1838
+
1839
+ /**
1840
+ * System prompt defining how the avatar should behave in conversations.
1841
+ */
1842
+ personality: string;
1843
+
1844
+ /**
1845
+ * A HTTPS URL.
1846
+ */
1847
+ referenceImage: string;
1848
+
1849
+ /**
1850
+ * The voice configuration for the avatar.
1851
+ */
1852
+ voice: AvatarCreateParams.RunwayLivePreset | AvatarCreateParams.Custom;
1853
+
1854
+ /**
1855
+ * Optional list of knowledge document IDs to attach to this avatar. Documents
1856
+ * provide additional context during conversations.
1857
+ */
1858
+ documentIds?: Array<string>;
1859
+
1860
+ /**
1861
+ * Controls image preprocessing. `optimize` improves the image for better avatar
1862
+ * results. `none` uses the image as-is; quality not guaranteed.
1863
+ */
1864
+ imageProcessing?: 'optimize' | 'none';
1865
+
1866
+ /**
1867
+ * Optional opening message that the avatar will say when a session starts.
1868
+ */
1869
+ startScript?: string;
1870
+ }
1871
+
1872
+ export namespace AvatarCreateParams {
1873
+ /**
1874
+ * A preset voice from the Runway API.
1875
+ */
1876
+ export interface RunwayLivePreset {
1877
+ /**
1878
+ * The ID of a preset voice. Available voices: `victoria` (Victoria), `vincent`
1879
+ * (Vincent), `clara` (Clara), `drew` (Drew), `skye` (Skye), `max` (Max), `morgan`
1880
+ * (Morgan), `felix` (Felix), `mia` (Mia), `marcus` (Marcus), `summer` (Summer),
1881
+ * `ruby` (Ruby), `aurora` (Aurora), `jasper` (Jasper), `leo` (Leo), `adrian`
1882
+ * (Adrian), `nina` (Nina), `emma` (Emma), `blake` (Blake), `david` (David), `maya`
1883
+ * (Maya), `nathan` (Nathan), `sam` (Sam), `georgia` (Georgia), `petra` (Petra),
1884
+ * `adam` (Adam), `zach` (Zach), `violet` (Violet), `roman` (Roman), `luna` (Luna).
1885
+ */
1886
+ presetId:
1887
+ | 'victoria'
1888
+ | 'vincent'
1889
+ | 'clara'
1890
+ | 'drew'
1891
+ | 'skye'
1892
+ | 'max'
1893
+ | 'morgan'
1894
+ | 'felix'
1895
+ | 'mia'
1896
+ | 'marcus'
1897
+ | 'summer'
1898
+ | 'ruby'
1899
+ | 'aurora'
1900
+ | 'jasper'
1901
+ | 'leo'
1902
+ | 'adrian'
1903
+ | 'nina'
1904
+ | 'emma'
1905
+ | 'blake'
1906
+ | 'david'
1907
+ | 'maya'
1908
+ | 'nathan'
1909
+ | 'sam'
1910
+ | 'georgia'
1911
+ | 'petra'
1912
+ | 'adam'
1913
+ | 'zach'
1914
+ | 'violet'
1915
+ | 'roman'
1916
+ | 'luna';
1917
+
1918
+ type: 'runway-live-preset';
1919
+ }
1920
+
1921
+ /**
1922
+ * A custom voice created via the Voices API.
1923
+ */
1924
+ export interface Custom {
1925
+ /**
1926
+ * The ID of a custom voice created via the Voices API.
1927
+ */
1928
+ id: string;
1929
+
1930
+ type: 'custom';
1931
+ }
1932
+ }
1933
+
1934
+ export interface AvatarUpdateParams {
1935
+ /**
1936
+ * List of knowledge document IDs to attach to this avatar. Replaces all current
1937
+ * attachments. Documents provide additional context during conversations.
1938
+ */
1939
+ documentIds?: Array<string>;
1940
+
1941
+ /**
1942
+ * Controls image preprocessing. `optimize` improves the image for better avatar
1943
+ * results. `none` uses the image as-is; quality not guaranteed.
1944
+ */
1945
+ imageProcessing?: 'optimize' | 'none';
1946
+
1947
+ /**
1948
+ * The character name for the avatar.
1949
+ */
1950
+ name?: string;
1951
+
1952
+ /**
1953
+ * System prompt defining how the avatar should behave in conversations.
1954
+ */
1955
+ personality?: string;
1956
+
1957
+ /**
1958
+ * A HTTPS URL.
1959
+ */
1960
+ referenceImage?: string;
1961
+
1962
+ /**
1963
+ * Optional opening message that the avatar will say when a session starts. Set to
1964
+ * null to clear.
1965
+ */
1966
+ startScript?: string | null;
1967
+
1968
+ /**
1969
+ * The voice configuration for the avatar.
1970
+ */
1971
+ voice?: AvatarUpdateParams.RunwayLivePreset | AvatarUpdateParams.Custom;
1972
+ }
1973
+
1974
+ export namespace AvatarUpdateParams {
1975
+ /**
1976
+ * A preset voice from the Runway API.
1977
+ */
1978
+ export interface RunwayLivePreset {
1979
+ /**
1980
+ * The ID of a preset voice. Available voices: `victoria` (Victoria), `vincent`
1981
+ * (Vincent), `clara` (Clara), `drew` (Drew), `skye` (Skye), `max` (Max), `morgan`
1982
+ * (Morgan), `felix` (Felix), `mia` (Mia), `marcus` (Marcus), `summer` (Summer),
1983
+ * `ruby` (Ruby), `aurora` (Aurora), `jasper` (Jasper), `leo` (Leo), `adrian`
1984
+ * (Adrian), `nina` (Nina), `emma` (Emma), `blake` (Blake), `david` (David), `maya`
1985
+ * (Maya), `nathan` (Nathan), `sam` (Sam), `georgia` (Georgia), `petra` (Petra),
1986
+ * `adam` (Adam), `zach` (Zach), `violet` (Violet), `roman` (Roman), `luna` (Luna).
1987
+ */
1988
+ presetId:
1989
+ | 'victoria'
1990
+ | 'vincent'
1991
+ | 'clara'
1992
+ | 'drew'
1993
+ | 'skye'
1994
+ | 'max'
1995
+ | 'morgan'
1996
+ | 'felix'
1997
+ | 'mia'
1998
+ | 'marcus'
1999
+ | 'summer'
2000
+ | 'ruby'
2001
+ | 'aurora'
2002
+ | 'jasper'
2003
+ | 'leo'
2004
+ | 'adrian'
2005
+ | 'nina'
2006
+ | 'emma'
2007
+ | 'blake'
2008
+ | 'david'
2009
+ | 'maya'
2010
+ | 'nathan'
2011
+ | 'sam'
2012
+ | 'georgia'
2013
+ | 'petra'
2014
+ | 'adam'
2015
+ | 'zach'
2016
+ | 'violet'
2017
+ | 'roman'
2018
+ | 'luna';
2019
+
2020
+ type: 'runway-live-preset';
2021
+ }
2022
+
2023
+ /**
2024
+ * A custom voice created via the Voices API.
2025
+ */
2026
+ export interface Custom {
2027
+ /**
2028
+ * The ID of a custom voice created via the Voices API.
2029
+ */
2030
+ id: string;
2031
+
2032
+ type: 'custom';
2033
+ }
2034
+ }
2035
+
2036
+ export interface AvatarListParams extends CursorPageParams {}
2037
+
2038
+ export declare namespace Avatars {
2039
+ export {
2040
+ type AvatarCreateResponse as AvatarCreateResponse,
2041
+ type AvatarRetrieveResponse as AvatarRetrieveResponse,
2042
+ type AvatarUpdateResponse as AvatarUpdateResponse,
2043
+ type AvatarListResponse as AvatarListResponse,
2044
+ type AvatarListResponsesCursorPage as AvatarListResponsesCursorPage,
2045
+ type AvatarCreateParams as AvatarCreateParams,
2046
+ type AvatarUpdateParams as AvatarUpdateParams,
2047
+ type AvatarListParams as AvatarListParams,
2048
+ };
2049
+ }