@runwayml/sdk 4.26.0 → 4.28.0

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 (53) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/package.json +1 -1
  3. package/resources/image-to-video.d.mts +122 -3
  4. package/resources/image-to-video.d.mts.map +1 -1
  5. package/resources/image-to-video.d.ts +122 -3
  6. package/resources/image-to-video.d.ts.map +1 -1
  7. package/resources/organization/organization.d.mts +2 -2
  8. package/resources/organization/organization.d.mts.map +1 -1
  9. package/resources/organization/organization.d.ts +2 -2
  10. package/resources/organization/organization.d.ts.map +1 -1
  11. package/resources/organization/organization.js.map +1 -1
  12. package/resources/organization/organization.mjs.map +1 -1
  13. package/resources/organization/webapp/audit-logs.d.mts +62 -0
  14. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  15. package/resources/organization/webapp/audit-logs.d.ts +62 -0
  16. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  17. package/resources/organization/webapp/webapp.d.mts +20 -0
  18. package/resources/organization/webapp/webapp.d.mts.map +1 -1
  19. package/resources/organization/webapp/webapp.d.ts +20 -0
  20. package/resources/organization/webapp/webapp.d.ts.map +1 -1
  21. package/resources/organization/webapp/webapp.js.map +1 -1
  22. package/resources/organization/webapp/webapp.mjs.map +1 -1
  23. package/resources/tasks.d.mts +2 -2
  24. package/resources/tasks.d.ts +2 -2
  25. package/resources/text-to-speech.d.mts +113 -11
  26. package/resources/text-to-speech.d.mts.map +1 -1
  27. package/resources/text-to-speech.d.ts +113 -11
  28. package/resources/text-to-speech.d.ts.map +1 -1
  29. package/resources/text-to-speech.js +3 -1
  30. package/resources/text-to-speech.js.map +1 -1
  31. package/resources/text-to-speech.mjs +3 -1
  32. package/resources/text-to-speech.mjs.map +1 -1
  33. package/resources/text-to-video.d.mts +92 -4
  34. package/resources/text-to-video.d.mts.map +1 -1
  35. package/resources/text-to-video.d.ts +92 -4
  36. package/resources/text-to-video.d.ts.map +1 -1
  37. package/resources/video-to-video.d.mts +121 -5
  38. package/resources/video-to-video.d.mts.map +1 -1
  39. package/resources/video-to-video.d.ts +121 -5
  40. package/resources/video-to-video.d.ts.map +1 -1
  41. package/src/resources/image-to-video.ts +162 -3
  42. package/src/resources/organization/organization.ts +8 -0
  43. package/src/resources/organization/webapp/audit-logs.ts +124 -0
  44. package/src/resources/organization/webapp/webapp.ts +35 -0
  45. package/src/resources/tasks.ts +2 -2
  46. package/src/resources/text-to-speech.ts +134 -10
  47. package/src/resources/text-to-video.ts +126 -4
  48. package/src/resources/video-to-video.ts +170 -5
  49. package/src/version.ts +1 -1
  50. package/version.d.mts +1 -1
  51. package/version.d.ts +1 -1
  52. package/version.js +1 -1
  53. package/version.mjs +1 -1
@@ -239,6 +239,8 @@ export namespace AuditLogRetrieveResponse {
239
239
  * Action-specific details.
240
240
  */
241
241
  export interface Metadata {
242
+ 'Accepted by'?: string;
243
+
242
244
  'Ad account ID'?: string;
243
245
 
244
246
  'Ad creative ID'?: string;
@@ -257,6 +259,8 @@ export namespace AuditLogRetrieveResponse {
257
259
 
258
260
  'Ad sync start date'?: string;
259
261
 
262
+ 'Added member'?: string;
263
+
260
264
  'Ads created as'?: string;
261
265
 
262
266
  'Ads onboarding answers'?: Array<string>;
@@ -271,6 +275,8 @@ export namespace AuditLogRetrieveResponse {
271
275
 
272
276
  'Amount received'?: number;
273
277
 
278
+ Anonymous?: boolean;
279
+
274
280
  'API account'?: string;
275
281
 
276
282
  'API project ID'?: string;
@@ -287,10 +293,16 @@ export namespace AuditLogRetrieveResponse {
287
293
 
288
294
  'Asset name'?: string;
289
295
 
296
+ 'Asset type'?: string;
297
+
298
+ Automatic?: boolean;
299
+
290
300
  'AWS license'?: string;
291
301
 
292
302
  'Brand kit ID'?: string;
293
303
 
304
+ 'Cancels at period end'?: boolean;
305
+
294
306
  'Comment ID'?: string;
295
307
 
296
308
  'Comment target ID'?: string;
@@ -299,12 +311,16 @@ export namespace AuditLogRetrieveResponse {
299
311
 
300
312
  'Comment text'?: string;
301
313
 
314
+ Connector?: string;
315
+
302
316
  'Creatives cancelled'?: number;
303
317
 
304
318
  'Creatives queued'?: number;
305
319
 
306
320
  'Creatives retried'?: number;
307
321
 
322
+ 'Credits used'?: number;
323
+
308
324
  'Default project discoverability'?: string;
309
325
 
310
326
  'Default task name template'?: string | null;
@@ -313,10 +329,18 @@ export namespace AuditLogRetrieveResponse {
313
329
 
314
330
  Direction?: string;
315
331
 
332
+ 'Downloaded by owner'?: boolean;
333
+
316
334
  'Email domain'?: string;
317
335
 
336
+ Enabled?: boolean;
337
+
318
338
  'Error code'?: string;
319
339
 
340
+ Filename?: string;
341
+
342
+ 'From workspace ID'?: number;
343
+
320
344
  'Group name'?: string;
321
345
 
322
346
  'Hard spend cap'?: boolean;
@@ -325,8 +349,12 @@ export namespace AuditLogRetrieveResponse {
325
349
 
326
350
  'Invited member'?: string;
327
351
 
352
+ 'Join policy'?: string;
353
+
328
354
  'Language model or provider'?: string;
329
355
 
356
+ 'Link type'?: string;
357
+
330
358
  'Login method'?: string;
331
359
 
332
360
  'Media included'?: boolean;
@@ -335,8 +363,12 @@ export namespace AuditLogRetrieveResponse {
335
363
 
336
364
  Mentions?: number;
337
365
 
366
+ Method?: string;
367
+
338
368
  Model?: string;
339
369
 
370
+ 'New email'?: string;
371
+
340
372
  'New role'?: string;
341
373
 
342
374
  'New text'?: string;
@@ -359,6 +391,8 @@ export namespace AuditLogRetrieveResponse {
359
391
 
360
392
  'Platform object ID'?: string;
361
393
 
394
+ 'Previous email'?: string;
395
+
362
396
  'Previous project credit cap'?: number | null;
363
397
 
364
398
  'Previous role'?: string | null;
@@ -369,12 +403,22 @@ export namespace AuditLogRetrieveResponse {
369
403
 
370
404
  'Project credit cap'?: number | null;
371
405
 
406
+ 'Project ID'?: string;
407
+
372
408
  Provider?: string;
373
409
 
374
410
  Reason?: string | null;
375
411
 
412
+ 'Recharge amount (USD cents)'?: number;
413
+
414
+ 'Recharge below (credits)'?: number;
415
+
376
416
  'Removed member'?: string;
377
417
 
418
+ 'Requested via'?: Array<string>;
419
+
420
+ 'Result metric ID'?: string | null;
421
+
378
422
  'Review decision'?: string;
379
423
 
380
424
  Role?: string;
@@ -387,14 +431,22 @@ export namespace AuditLogRetrieveResponse {
387
431
 
388
432
  Setting?: string;
389
433
 
434
+ 'Shared in project'?: string | null;
435
+
390
436
  'Shared with projects'?: Array<string>;
391
437
 
392
438
  'Shared with workspace'?: boolean;
393
439
 
440
+ Source?: string;
441
+
442
+ 'Source application'?: string;
443
+
394
444
  'Source category ID'?: string;
395
445
 
396
446
  'Spend cap'?: number;
397
447
 
448
+ 'Spend cap (USD cents)'?: number;
449
+
398
450
  'Spend cap change'?: number;
399
451
 
400
452
  'Status after'?: string;
@@ -409,8 +461,18 @@ export namespace AuditLogRetrieveResponse {
409
461
 
410
462
  'Target member'?: string | null;
411
463
 
464
+ 'Task ID'?: string;
465
+
466
+ 'To workspace ID'?: number;
467
+
468
+ Tool?: string;
469
+
470
+ 'Updated fields'?: Array<string>;
471
+
412
472
  'Via public API'?: boolean;
413
473
 
474
+ Watermarked?: boolean;
475
+
414
476
  Workspace?: string | null;
415
477
 
416
478
  'Workspace description'?: string | null;
@@ -594,6 +656,8 @@ export namespace AuditLogListResponse {
594
656
  * Action-specific details.
595
657
  */
596
658
  export interface Metadata {
659
+ 'Accepted by'?: string;
660
+
597
661
  'Ad account ID'?: string;
598
662
 
599
663
  'Ad creative ID'?: string;
@@ -612,6 +676,8 @@ export namespace AuditLogListResponse {
612
676
 
613
677
  'Ad sync start date'?: string;
614
678
 
679
+ 'Added member'?: string;
680
+
615
681
  'Ads created as'?: string;
616
682
 
617
683
  'Ads onboarding answers'?: Array<string>;
@@ -626,6 +692,8 @@ export namespace AuditLogListResponse {
626
692
 
627
693
  'Amount received'?: number;
628
694
 
695
+ Anonymous?: boolean;
696
+
629
697
  'API account'?: string;
630
698
 
631
699
  'API project ID'?: string;
@@ -642,10 +710,16 @@ export namespace AuditLogListResponse {
642
710
 
643
711
  'Asset name'?: string;
644
712
 
713
+ 'Asset type'?: string;
714
+
715
+ Automatic?: boolean;
716
+
645
717
  'AWS license'?: string;
646
718
 
647
719
  'Brand kit ID'?: string;
648
720
 
721
+ 'Cancels at period end'?: boolean;
722
+
649
723
  'Comment ID'?: string;
650
724
 
651
725
  'Comment target ID'?: string;
@@ -654,12 +728,16 @@ export namespace AuditLogListResponse {
654
728
 
655
729
  'Comment text'?: string;
656
730
 
731
+ Connector?: string;
732
+
657
733
  'Creatives cancelled'?: number;
658
734
 
659
735
  'Creatives queued'?: number;
660
736
 
661
737
  'Creatives retried'?: number;
662
738
 
739
+ 'Credits used'?: number;
740
+
663
741
  'Default project discoverability'?: string;
664
742
 
665
743
  'Default task name template'?: string | null;
@@ -668,10 +746,18 @@ export namespace AuditLogListResponse {
668
746
 
669
747
  Direction?: string;
670
748
 
749
+ 'Downloaded by owner'?: boolean;
750
+
671
751
  'Email domain'?: string;
672
752
 
753
+ Enabled?: boolean;
754
+
673
755
  'Error code'?: string;
674
756
 
757
+ Filename?: string;
758
+
759
+ 'From workspace ID'?: number;
760
+
675
761
  'Group name'?: string;
676
762
 
677
763
  'Hard spend cap'?: boolean;
@@ -680,8 +766,12 @@ export namespace AuditLogListResponse {
680
766
 
681
767
  'Invited member'?: string;
682
768
 
769
+ 'Join policy'?: string;
770
+
683
771
  'Language model or provider'?: string;
684
772
 
773
+ 'Link type'?: string;
774
+
685
775
  'Login method'?: string;
686
776
 
687
777
  'Media included'?: boolean;
@@ -690,8 +780,12 @@ export namespace AuditLogListResponse {
690
780
 
691
781
  Mentions?: number;
692
782
 
783
+ Method?: string;
784
+
693
785
  Model?: string;
694
786
 
787
+ 'New email'?: string;
788
+
695
789
  'New role'?: string;
696
790
 
697
791
  'New text'?: string;
@@ -714,6 +808,8 @@ export namespace AuditLogListResponse {
714
808
 
715
809
  'Platform object ID'?: string;
716
810
 
811
+ 'Previous email'?: string;
812
+
717
813
  'Previous project credit cap'?: number | null;
718
814
 
719
815
  'Previous role'?: string | null;
@@ -724,12 +820,22 @@ export namespace AuditLogListResponse {
724
820
 
725
821
  'Project credit cap'?: number | null;
726
822
 
823
+ 'Project ID'?: string;
824
+
727
825
  Provider?: string;
728
826
 
729
827
  Reason?: string | null;
730
828
 
829
+ 'Recharge amount (USD cents)'?: number;
830
+
831
+ 'Recharge below (credits)'?: number;
832
+
731
833
  'Removed member'?: string;
732
834
 
835
+ 'Requested via'?: Array<string>;
836
+
837
+ 'Result metric ID'?: string | null;
838
+
733
839
  'Review decision'?: string;
734
840
 
735
841
  Role?: string;
@@ -742,14 +848,22 @@ export namespace AuditLogListResponse {
742
848
 
743
849
  Setting?: string;
744
850
 
851
+ 'Shared in project'?: string | null;
852
+
745
853
  'Shared with projects'?: Array<string>;
746
854
 
747
855
  'Shared with workspace'?: boolean;
748
856
 
857
+ Source?: string;
858
+
859
+ 'Source application'?: string;
860
+
749
861
  'Source category ID'?: string;
750
862
 
751
863
  'Spend cap'?: number;
752
864
 
865
+ 'Spend cap (USD cents)'?: number;
866
+
753
867
  'Spend cap change'?: number;
754
868
 
755
869
  'Status after'?: string;
@@ -764,8 +878,18 @@ export namespace AuditLogListResponse {
764
878
 
765
879
  'Target member'?: string | null;
766
880
 
881
+ 'Task ID'?: string;
882
+
883
+ 'To workspace ID'?: number;
884
+
885
+ Tool?: string;
886
+
887
+ 'Updated fields'?: Array<string>;
888
+
767
889
  'Via public API'?: boolean;
768
890
 
891
+ Watermarked?: boolean;
892
+
769
893
  Workspace?: string | null;
770
894
 
771
895
  'Workspace description'?: string | null;
@@ -46,6 +46,41 @@ export interface WebappListUsageResponse {
46
46
  */
47
47
  email: string;
48
48
 
49
+ /**
50
+ * Number of output files the generation returned, including ones the user later
51
+ * deleted and excluding attachments such as playable proxies. Copying an output
52
+ * into a project can raise it. 0 when it returned no files, for example while it
53
+ * runs or after it failed. `null` when `taskId` is null or the generation no
54
+ * longer exists.
55
+ */
56
+ outputCount: number | null;
57
+
58
+ /**
59
+ * Media type of the generation's output: one of the listed values, which won't be
60
+ * remapped. Agent sandbox sessions report `file`. `null` when `taskId` is null,
61
+ * the generation no longer exists, or the type wasn't recorded.
62
+ */
63
+ outputType:
64
+ | 'image'
65
+ | 'video'
66
+ | 'text'
67
+ | 'file'
68
+ | 'audio'
69
+ | 'font'
70
+ | 'model'
71
+ | 'project'
72
+ | 'mesh'
73
+ | 'cloud'
74
+ | 'splat'
75
+ | null;
76
+
77
+ /**
78
+ * Current status of the generation when you request it, so it can change between
79
+ * pulls (upsert on `transactionId`). A refund row doesn't mean the generation
80
+ * failed. `null` when `taskId` is null or the generation no longer exists.
81
+ */
82
+ status: 'PENDING' | 'THROTTLED' | 'RUNNING' | 'FAILED' | 'SUCCEEDED' | 'CANCELLED' | null;
83
+
49
84
  /**
50
85
  * ID of the generation this row belongs to. A charge and its refunds share it.
51
86
  * `null` for App Studio usage, which has no generation.
@@ -275,8 +275,8 @@ export namespace TaskRetrieveResponse {
275
275
  status: 'SUCCEEDED';
276
276
 
277
277
  /**
278
- * Layer details for successful Seedream 5 Pro Layers tasks. Each URI matches the
279
- * output URL at the same index.
278
+ * Layer details for successful Seedream layer decomposition tasks. Each URI
279
+ * matches the output URL at the same index.
280
280
  */
281
281
  layers?: Array<Succeeded.Layer>;
282
282
  }
@@ -9,7 +9,9 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
9
9
  */
10
10
  export class TextToSpeech extends APIResource {
11
11
  /**
12
- * This endpoint will start a new task to generate speech from text.
12
+ * This endpoint will start a new task to generate speech from text. ElevenLabs
13
+ * models accept preset voices or custom voices created via the Voices API. Seed
14
+ * Audio accepts a reference audio clip.
13
15
  */
14
16
  create(
15
17
  body: TextToSpeechCreateParams,
@@ -50,6 +52,8 @@ export namespace TextToSpeechCreateResponse {
50
52
  export type TextToSpeechCreateParams =
51
53
  | TextToSpeechCreateParams.SeedAudio
52
54
  | TextToSpeechCreateParams.ElevenV4
55
+ | TextToSpeechCreateParams.Gemini3_8FlashTts
56
+ | TextToSpeechCreateParams.Gemini3_8FlashLiteTts
53
57
  | TextToSpeechCreateParams.ElevenMultilingualV2
54
58
  | TextToSpeechCreateParams.ElevenV3;
55
59
 
@@ -123,9 +127,9 @@ export declare namespace TextToSpeechCreateParams {
123
127
  promptText: string;
124
128
 
125
129
  /**
126
- * A voice preset from the RunwayML API.
130
+ * The voice to use for the generated speech.
127
131
  */
128
- voice: ElevenV4.Voice;
132
+ voice: ElevenV4.RunwayPreset | ElevenV4.Custom;
129
133
 
130
134
  /**
131
135
  * Language code to enforce pronunciation, such as "en" or "pt". A regional code
@@ -183,7 +187,7 @@ export declare namespace TextToSpeechCreateParams {
183
187
  /**
184
188
  * A voice preset from the RunwayML API.
185
189
  */
186
- export interface Voice {
190
+ export interface RunwayPreset {
187
191
  /**
188
192
  * The preset voice ID to use for the generated speech.
189
193
  */
@@ -240,6 +244,102 @@ export declare namespace TextToSpeechCreateParams {
240
244
 
241
245
  type: 'runway-preset';
242
246
  }
247
+
248
+ /**
249
+ * A custom voice belonging to the authenticated organization.
250
+ */
251
+ export interface Custom {
252
+ /**
253
+ * The ID of a custom voice created via the Voices API.
254
+ */
255
+ id: string;
256
+
257
+ type: 'custom';
258
+ }
259
+ }
260
+
261
+ export interface Gemini3_8FlashTts {
262
+ model: 'gemini_3.8_flash_tts';
263
+
264
+ /**
265
+ * The script, in the order it is spoken. Use one turn for a single speaker, or
266
+ * alternate speakers across turns for a dialogue.
267
+ */
268
+ turns: Array<Gemini3_8FlashTts.Turn>;
269
+
270
+ /**
271
+ * The Google voice for each speaker, such as "Kore" or "Puck". Pass one voice for
272
+ * a single speaker, or two for a dialogue.
273
+ */
274
+ voiceIds: Array<string>;
275
+
276
+ /**
277
+ * The language of the script, such as "en-US". When omitted, the model detects it.
278
+ */
279
+ languageCode?: string;
280
+ }
281
+
282
+ export namespace Gemini3_8FlashTts {
283
+ export interface Turn {
284
+ /**
285
+ * The words to speak in this turn.
286
+ */
287
+ text: string;
288
+
289
+ /**
290
+ * The position in `voiceIds` of the voice that speaks this turn. Defaults to the
291
+ * first voice.
292
+ */
293
+ speaker?: number;
294
+
295
+ /**
296
+ * How this turn should be delivered, such as "calm and reassuring". It guides the
297
+ * delivery and is not read aloud.
298
+ */
299
+ style?: string;
300
+ }
301
+ }
302
+
303
+ export interface Gemini3_8FlashLiteTts {
304
+ model: 'gemini_3.8_flash_lite_tts';
305
+
306
+ /**
307
+ * The script, in the order it is spoken. Use one turn for a single speaker, or
308
+ * alternate speakers across turns for a dialogue.
309
+ */
310
+ turns: Array<Gemini3_8FlashLiteTts.Turn>;
311
+
312
+ /**
313
+ * The Google voice for each speaker, such as "Kore" or "Puck". Pass one voice for
314
+ * a single speaker, or two for a dialogue.
315
+ */
316
+ voiceIds: Array<string>;
317
+
318
+ /**
319
+ * The language of the script, such as "en-US". When omitted, the model detects it.
320
+ */
321
+ languageCode?: string;
322
+ }
323
+
324
+ export namespace Gemini3_8FlashLiteTts {
325
+ export interface Turn {
326
+ /**
327
+ * The words to speak in this turn.
328
+ */
329
+ text: string;
330
+
331
+ /**
332
+ * The position in `voiceIds` of the voice that speaks this turn. Defaults to the
333
+ * first voice.
334
+ */
335
+ speaker?: number;
336
+
337
+ /**
338
+ * How this turn should be delivered, such as "calm and reassuring". It guides the
339
+ * delivery and is not read aloud.
340
+ */
341
+ style?: string;
342
+ }
243
343
  }
244
344
 
245
345
  export interface ElevenMultilingualV2 {
@@ -252,16 +352,16 @@ export declare namespace TextToSpeechCreateParams {
252
352
  promptText: string;
253
353
 
254
354
  /**
255
- * A voice preset from the RunwayML API.
355
+ * The voice to use for the generated speech.
256
356
  */
257
- voice: ElevenMultilingualV2.Voice;
357
+ voice: ElevenMultilingualV2.RunwayPreset | ElevenMultilingualV2.Custom;
258
358
  }
259
359
 
260
360
  export namespace ElevenMultilingualV2 {
261
361
  /**
262
362
  * A voice preset from the RunwayML API.
263
363
  */
264
- export interface Voice {
364
+ export interface RunwayPreset {
265
365
  /**
266
366
  * The preset voice ID to use for the generated speech.
267
367
  */
@@ -318,6 +418,18 @@ export declare namespace TextToSpeechCreateParams {
318
418
 
319
419
  type: 'runway-preset';
320
420
  }
421
+
422
+ /**
423
+ * A custom voice belonging to the authenticated organization.
424
+ */
425
+ export interface Custom {
426
+ /**
427
+ * The ID of a custom voice created via the Voices API.
428
+ */
429
+ id: string;
430
+
431
+ type: 'custom';
432
+ }
321
433
  }
322
434
 
323
435
  export interface ElevenV3 {
@@ -330,9 +442,9 @@ export declare namespace TextToSpeechCreateParams {
330
442
  promptText: string;
331
443
 
332
444
  /**
333
- * A voice preset from the RunwayML API.
445
+ * The voice to use for the generated speech.
334
446
  */
335
- voice: ElevenV3.Voice;
447
+ voice: ElevenV3.RunwayPreset | ElevenV3.Custom;
336
448
 
337
449
  /**
338
450
  * Text normalization mode: 'auto', 'on', or 'off' (e.g. spelling out numbers).
@@ -382,7 +494,7 @@ export declare namespace TextToSpeechCreateParams {
382
494
  /**
383
495
  * A voice preset from the RunwayML API.
384
496
  */
385
- export interface Voice {
497
+ export interface RunwayPreset {
386
498
  /**
387
499
  * The preset voice ID to use for the generated speech.
388
500
  */
@@ -439,6 +551,18 @@ export declare namespace TextToSpeechCreateParams {
439
551
 
440
552
  type: 'runway-preset';
441
553
  }
554
+
555
+ /**
556
+ * A custom voice belonging to the authenticated organization.
557
+ */
558
+ export interface Custom {
559
+ /**
560
+ * The ID of a custom voice created via the Voices API.
561
+ */
562
+ id: string;
563
+
564
+ type: 'custom';
565
+ }
442
566
  }
443
567
  }
444
568