@runwayml/sdk 4.20.1 → 4.21.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 (39) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/package.json +1 -1
  3. package/resources/image-to-video.d.mts +38 -1
  4. package/resources/image-to-video.d.mts.map +1 -1
  5. package/resources/image-to-video.d.ts +38 -1
  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 +28 -14
  14. package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
  15. package/resources/organization/webapp/audit-logs.d.ts +28 -14
  16. package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
  17. package/resources/text-to-speech.d.mts +67 -1
  18. package/resources/text-to-speech.d.mts.map +1 -1
  19. package/resources/text-to-speech.d.ts +67 -1
  20. package/resources/text-to-speech.d.ts.map +1 -1
  21. package/resources/text-to-video.d.mts +17 -1
  22. package/resources/text-to-video.d.mts.map +1 -1
  23. package/resources/text-to-video.d.ts +17 -1
  24. package/resources/text-to-video.d.ts.map +1 -1
  25. package/resources/workflow-invocations.d.mts +32 -5
  26. package/resources/workflow-invocations.d.mts.map +1 -1
  27. package/resources/workflow-invocations.d.ts +32 -5
  28. package/resources/workflow-invocations.d.ts.map +1 -1
  29. package/src/resources/image-to-video.ts +46 -1
  30. package/src/resources/organization/organization.ts +4 -0
  31. package/src/resources/organization/webapp/audit-logs.ts +55 -12
  32. package/src/resources/text-to-speech.ts +130 -0
  33. package/src/resources/text-to-video.ts +43 -1
  34. package/src/resources/workflow-invocations.ts +36 -5
  35. package/src/version.ts +1 -1
  36. package/version.d.mts +1 -1
  37. package/version.d.ts +1 -1
  38. package/version.js +1 -1
  39. package/version.mjs +1 -1
@@ -128,6 +128,11 @@ export declare namespace WorkflowInvocationRetrieveResponse {
128
128
  */
129
129
  failure: string;
130
130
  status: 'FAILED';
131
+ /**
132
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
133
+ * larger value.
134
+ */
135
+ cost?: Failed.Cost;
131
136
  /**
132
137
  * A machine-readable error code for the failure. See
133
138
  * https://docs.dev.runwayml.com/errors/task-failures/ for more information.
@@ -142,6 +147,16 @@ export declare namespace WorkflowInvocationRetrieveResponse {
142
147
  };
143
148
  }
144
149
  namespace Failed {
150
+ /**
151
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
152
+ * larger value.
153
+ */
154
+ interface Cost {
155
+ /**
156
+ * Credits charged for this task.
157
+ */
158
+ credits: number;
159
+ }
145
160
  interface NodeErrors {
146
161
  /**
147
162
  * A human-readable description of the node error.
@@ -184,17 +199,29 @@ export declare namespace WorkflowInvocationRetrieveResponse {
184
199
  };
185
200
  status: 'SUCCEEDED';
186
201
  /**
187
- * A record mapping workflow node IDs to their error details. A workflow invocation
188
- * succeeds as long as every node reached a terminal state, so individual nodes may
189
- * still have failed — for example a moderated prompt or an upstream provider
190
- * outage — leaving their output missing from `output`. Check this field to detect
191
- * a partial run. Only present when one or more nodes have errored.
202
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
203
+ * larger value.
204
+ */
205
+ cost?: Succeeded.Cost;
206
+ /**
207
+ * A record mapping workflow node IDs to their error details. Only present when one
208
+ * or more nodes have errored.
192
209
  */
193
210
  nodeErrors?: {
194
211
  [key: string]: Succeeded.NodeErrors;
195
212
  };
196
213
  }
197
214
  namespace Succeeded {
215
+ /**
216
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
217
+ * larger value.
218
+ */
219
+ interface Cost {
220
+ /**
221
+ * Credits charged for this task.
222
+ */
223
+ credits: number;
224
+ }
198
225
  interface NodeErrors {
199
226
  /**
200
227
  * A human-readable description of the node error.
@@ -1 +1 @@
1
- {"version":3,"file":"workflow-invocations.d.ts","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,OAAO,EAAE,yCAAyC,EAAoC,0BAAuB;AAE7G,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,yCAAyC,CAAC,kCAAkC,CAAC;CAMjF;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAC1C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,MAAM,GACzC,kCAAkC,CAAC,SAAS,CAAC;AAEjD,yBAAiB,kCAAkC,CAAC;IAClD;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;;;WAIG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MA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AAM,EAAE,WAAW,CAAC;QAEpB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,CAAC,UAAU,CAAA;SAAE,CAAC;KACtD;IAED,UAAiB,SAAS,CAAC;QACzB,UAAiB,UAAU;YACzB;;eAEG;YACH,OAAO,EAAE,MAAM,CAAC;YAEhB;;;;;eAKG;YACH,WAAW,CAAC,EAAE,MAAM,CAAC;YAErB;;eAEG;YACH,QAAQ,CAAC,EAAE,MAAM,CAAC;SACnB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,mBAAmB,CAAC;IAC3C,OAAO,EAAE,KAAK,kCAAkC,IAAI,kCAAkC,EAAE,CAAC;CAC1F"}
1
+ {"version":3,"file":"workflow-invocations.d.ts","sourceRoot":"","sources":["../src/resources/workflow-invocations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,OAAO,EAAE,yCAAyC,EAAoC,0BAAuB;AAE7G,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;;;;;OAMG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACvB,yCAAyC,CAAC,kCAAkC,CAAC;CAMjF;AAED;;GAEG;AACH,MAAM,MAAM,kCAAkC,GAC1C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,SAAS,GAC5C,kCAAkC,CAAC,OAAO,GAC1C,kCAAkC,CAAC,MAAM,GACzC,kCAAkC,CAAC,SAAS,CAAC;AAEjD,yBAAiB,kCAAkC,CAAC;IAClD;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,U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=
72
72
  | ImageToVideoCreateParams.Wan3
73
73
  | ImageToVideoCreateParams.GeminiOmniFlash1_1
74
74
  | ImageToVideoCreateParams.Wan3Prime
75
- | ImageToVideoCreateParams.H3Max;
75
+ | ImageToVideoCreateParams.H3Max
76
+ | ImageToVideoCreateParams.GrokImagine1_5Lite;
76
77
 
77
78
  export declare namespace ImageToVideoCreateParams {
78
79
  export interface Gen4_5 {
@@ -1254,6 +1255,50 @@ export declare namespace ImageToVideoCreateParams {
1254
1255
  uri: string;
1255
1256
  }
1256
1257
  }
1258
+
1259
+ export interface GrokImagine1_5Lite {
1260
+ model: 'grok_imagine_1_5_lite';
1261
+
1262
+ /**
1263
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1264
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1265
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1266
+ */
1267
+ promptImage: string | Array<GrokImagine1_5Lite.PromptImage>;
1268
+
1269
+ /**
1270
+ * The number of seconds of duration for the output video.
1271
+ */
1272
+ duration?: number;
1273
+
1274
+ /**
1275
+ * An optional text prompt describing motion or changes in the output video.
1276
+ */
1277
+ promptText?: string;
1278
+
1279
+ /**
1280
+ * The resolution of the output video. The output keeps the input image's aspect
1281
+ * ratio. `auto_1080p` is rendered at 720p and upscaled.
1282
+ */
1283
+ ratio?: 'auto_480p' | 'auto_720p' | 'auto_1080p';
1284
+ }
1285
+
1286
+ export namespace GrokImagine1_5Lite {
1287
+ export interface PromptImage {
1288
+ /**
1289
+ * The position of the image in the output video. "first" will use the image as the
1290
+ * first frame of the video.
1291
+ */
1292
+ position: 'first';
1293
+
1294
+ /**
1295
+ * A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
1296
+ * `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
1297
+ * [our docs](/assets/inputs#images) on image inputs for more information.
1298
+ */
1299
+ uri: string;
1300
+ }
1301
+ }
1257
1302
  }
1258
1303
 
1259
1304
  export declare namespace ImageToVideo {
@@ -135,6 +135,7 @@ export interface OrganizationRetrieveUsageResponse {
135
135
  | 'eleven_multilingual_v2'
136
136
  | 'seed_audio'
137
137
  | 'eleven_v3'
138
+ | 'eleven_v4'
138
139
  | 'eleven_text_to_sound_v2'
139
140
  | 'eleven_voice_isolation'
140
141
  | 'eleven_voice_dubbing'
@@ -153,6 +154,7 @@ export interface OrganizationRetrieveUsageResponse {
153
154
  | 'wan3'
154
155
  | 'wan3_prime'
155
156
  | 'grok_imagine_1_5'
157
+ | 'grok_imagine_1_5_lite'
156
158
  | 'grok_imagine_image_2'
157
159
  | 'muse_image'
158
160
  | 'magnific_precision_upscaler_v2'
@@ -239,6 +241,7 @@ export namespace OrganizationRetrieveUsageResponse {
239
241
  | 'eleven_multilingual_v2'
240
242
  | 'seed_audio'
241
243
  | 'eleven_v3'
244
+ | 'eleven_v4'
242
245
  | 'eleven_text_to_sound_v2'
243
246
  | 'eleven_voice_isolation'
244
247
  | 'eleven_voice_dubbing'
@@ -257,6 +260,7 @@ export namespace OrganizationRetrieveUsageResponse {
257
260
  | 'wan3'
258
261
  | 'wan3_prime'
259
262
  | 'grok_imagine_1_5'
263
+ | 'grok_imagine_1_5_lite'
260
264
  | 'grok_imagine_image_2'
261
265
  | 'muse_image'
262
266
  | 'magnific_precision_upscaler_v2'
@@ -55,6 +55,7 @@ export interface AuditLogRetrieveResponse {
55
55
  | 'MemberRemoved'
56
56
  | 'MemberRoleChanged'
57
57
  | 'InviteAccepted'
58
+ | 'MemberJoinedViaDomain'
58
59
  | 'TeamSettingsUpdated'
59
60
  | 'InviteLinkToggled'
60
61
  | 'UserGroupCreated'
@@ -64,6 +65,7 @@ export interface AuditLogRetrieveResponse {
64
65
  | 'UserGroupRestored'
65
66
  | 'UserGroupMemberAdded'
66
67
  | 'UserGroupMemberRemoved'
68
+ | 'UserGroupCreditCapUpdated'
67
69
  | 'SSOLogin'
68
70
  | 'SSOUserProvisioned'
69
71
  | 'SSOConfigCreated'
@@ -110,10 +112,17 @@ export interface AuditLogRetrieveResponse {
110
112
  | 'AgentConnectorSessionEnabled'
111
113
  | 'AgentConnectorSessionDisabled'
112
114
  | 'GenerationCreated'
115
+ | 'StudioSessionOpened'
113
116
  | 'AccountLinkCreated'
114
117
  | 'AccountLinkDeleted'
118
+ | 'AdConnectionAuthorizationStarted'
119
+ | 'AdConnectionConnected'
120
+ | 'AdAccountSelectionUpdated'
121
+ | 'AdAccountSyncRequested'
122
+ | 'AdConnectionDisconnected'
115
123
  | 'OrganizationSettingsUpdated'
116
124
  | 'OrganizationDisabledModelsUpdated'
125
+ | 'OrganizationAgentSandboxUpdated'
117
126
  | 'OrganizationApiAccountReleased'
118
127
  | 'OrganizationApiAccountMemberInvited'
119
128
  | 'OrganizationApiAccountMemberRoleChanged'
@@ -206,6 +215,14 @@ export namespace AuditLogRetrieveResponse {
206
215
  * Action-specific details.
207
216
  */
208
217
  export interface Metadata {
218
+ 'Ad account ID'?: unknown;
219
+
220
+ 'Ad sync end date'?: unknown;
221
+
222
+ 'Ad sync run ID'?: unknown;
223
+
224
+ 'Ad sync start date'?: unknown;
225
+
209
226
  'Agent session ID'?: unknown;
210
227
 
211
228
  'Agent tagged'?: unknown;
@@ -218,6 +235,10 @@ export namespace AuditLogRetrieveResponse {
218
235
 
219
236
  'API project ID'?: unknown;
220
237
 
238
+ 'App Studio app'?: unknown;
239
+
240
+ 'App Studio session'?: unknown;
241
+
221
242
  Application?: unknown;
222
243
 
223
244
  'Asset name'?: unknown;
@@ -240,6 +261,8 @@ export namespace AuditLogRetrieveResponse {
240
261
 
241
262
  Direction?: unknown;
242
263
 
264
+ 'Email domain'?: unknown;
265
+
243
266
  'Error code'?: unknown;
244
267
 
245
268
  'Group name'?: unknown;
@@ -276,12 +299,18 @@ export namespace AuditLogRetrieveResponse {
276
299
 
277
300
  Platform?: unknown;
278
301
 
302
+ 'Previous project credit cap'?: unknown;
303
+
279
304
  'Previous role'?: unknown;
280
305
 
281
306
  'Previous text'?: unknown;
282
307
 
283
308
  'Previous value'?: unknown;
284
309
 
310
+ 'Project credit cap'?: unknown;
311
+
312
+ Provider?: unknown;
313
+
285
314
  Reason?: unknown;
286
315
 
287
316
  'Removed member'?: unknown;
@@ -290,6 +319,8 @@ export namespace AuditLogRetrieveResponse {
290
319
 
291
320
  'Root asset ID'?: unknown;
292
321
 
322
+ Selected?: unknown;
323
+
293
324
  Setting?: unknown;
294
325
 
295
326
  'Shared with projects'?: unknown;
@@ -339,6 +370,7 @@ export interface AuditLogListResponse {
339
370
  | 'MemberRemoved'
340
371
  | 'MemberRoleChanged'
341
372
  | 'InviteAccepted'
373
+ | 'MemberJoinedViaDomain'
342
374
  | 'TeamSettingsUpdated'
343
375
  | 'InviteLinkToggled'
344
376
  | 'UserGroupCreated'
@@ -348,6 +380,7 @@ export interface AuditLogListResponse {
348
380
  | 'UserGroupRestored'
349
381
  | 'UserGroupMemberAdded'
350
382
  | 'UserGroupMemberRemoved'
383
+ | 'UserGroupCreditCapUpdated'
351
384
  | 'SSOLogin'
352
385
  | 'SSOUserProvisioned'
353
386
  | 'SSOConfigCreated'
@@ -394,10 +427,17 @@ export interface AuditLogListResponse {
394
427
  | 'AgentConnectorSessionEnabled'
395
428
  | 'AgentConnectorSessionDisabled'
396
429
  | 'GenerationCreated'
430
+ | 'StudioSessionOpened'
397
431
  | 'AccountLinkCreated'
398
432
  | 'AccountLinkDeleted'
433
+ | 'AdConnectionAuthorizationStarted'
434
+ | 'AdConnectionConnected'
435
+ | 'AdAccountSelectionUpdated'
436
+ | 'AdAccountSyncRequested'
437
+ | 'AdConnectionDisconnected'
399
438
  | 'OrganizationSettingsUpdated'
400
439
  | 'OrganizationDisabledModelsUpdated'
440
+ | 'OrganizationAgentSandboxUpdated'
401
441
  | 'OrganizationApiAccountReleased'
402
442
  | 'OrganizationApiAccountMemberInvited'
403
443
  | 'OrganizationApiAccountMemberRoleChanged'
@@ -464,14 +504,15 @@ export interface AuditLogListParams extends CursorPageParams {
464
504
  * 50 actions. Allowed values: `UserLogin`, `PasswordChanged`,
465
505
  * `EmailChangeRequested`, `EmailChanged`, `UserRegistered`, `UserAccountDeleted`,
466
506
  * `WorkspaceCreated`, `WorkspaceDeleted`, `MemberInvited`, `MemberRemoved`,
467
- * `MemberRoleChanged`, `InviteAccepted`, `TeamSettingsUpdated`,
468
- * `InviteLinkToggled`, `UserGroupCreated`, `UserGroupUpdated`, `UserGroupDeleted`,
469
- * `UserGroupArchived`, `UserGroupRestored`, `UserGroupMemberAdded`,
470
- * `UserGroupMemberRemoved`, `SSOLogin`, `SSOUserProvisioned`, `SSOConfigCreated`,
471
- * `SSOUserAutoAddedToTeam`, `SSODomainRegistrationCloned`, `AssetCreated`,
472
- * `AssetUpdated`, `AssetDeleted`, `AssetDownloaded`, `AssetShared`,
473
- * `AssetUnshared`, `CommentCreated`, `CommentEdited`, `CommentDeleted`,
474
- * `CommentAgentCallRun`, `CommentRemovedByModerator`,
507
+ * `MemberRoleChanged`, `InviteAccepted`, `MemberJoinedViaDomain`,
508
+ * `TeamSettingsUpdated`, `InviteLinkToggled`, `UserGroupCreated`,
509
+ * `UserGroupUpdated`, `UserGroupDeleted`, `UserGroupArchived`,
510
+ * `UserGroupRestored`, `UserGroupMemberAdded`, `UserGroupMemberRemoved`,
511
+ * `UserGroupCreditCapUpdated`, `SSOLogin`, `SSOUserProvisioned`,
512
+ * `SSOConfigCreated`, `SSOUserAutoAddedToTeam`, `SSODomainRegistrationCloned`,
513
+ * `AssetCreated`, `AssetUpdated`, `AssetDeleted`, `AssetDownloaded`,
514
+ * `AssetShared`, `AssetUnshared`, `CommentCreated`, `CommentEdited`,
515
+ * `CommentDeleted`, `CommentAgentCallRun`, `CommentRemovedByModerator`,
475
516
  * `CommentRestoredByModerator`, `CommentRemovalReasonChanged`,
476
517
  * `PermissionGranted`, `PermissionUpdated`, `PermissionRevoked`,
477
518
  * `PermissionAccepted`, `SubscriptionCancelled`,
@@ -483,10 +524,12 @@ export interface AuditLogListParams extends CursorPageParams {
483
524
  * `AgentSessionUnshared`, `AgentConnectorLinkTokenCreated`,
484
525
  * `AgentConnectorConnected`, `AgentConnectorDisconnected`,
485
526
  * `AgentConnectorAssetExported`, `AgentConnectorSessionEnabled`,
486
- * `AgentConnectorSessionDisabled`, `GenerationCreated`, `AccountLinkCreated`,
487
- * `AccountLinkDeleted`, `OrganizationSettingsUpdated`,
488
- * `OrganizationDisabledModelsUpdated`, `OrganizationApiAccountReleased`,
489
- * `OrganizationApiAccountMemberInvited`,
527
+ * `AgentConnectorSessionDisabled`, `GenerationCreated`, `StudioSessionOpened`,
528
+ * `AccountLinkCreated`, `AccountLinkDeleted`, `AdConnectionAuthorizationStarted`,
529
+ * `AdConnectionConnected`, `AdAccountSelectionUpdated`, `AdAccountSyncRequested`,
530
+ * `AdConnectionDisconnected`, `OrganizationSettingsUpdated`,
531
+ * `OrganizationDisabledModelsUpdated`, `OrganizationAgentSandboxUpdated`,
532
+ * `OrganizationApiAccountReleased`, `OrganizationApiAccountMemberInvited`,
490
533
  * `OrganizationApiAccountMemberRoleChanged`,
491
534
  * `OrganizationApiAccountMemberRemoved`, `WorkspaceCountryLockUpdated`,
492
535
  * `WorkspaceTagCreated`, `WorkspaceTagUpdated`, `WorkspaceTagDeleted`,
@@ -49,6 +49,7 @@ export namespace TextToSpeechCreateResponse {
49
49
 
50
50
  export type TextToSpeechCreateParams =
51
51
  | TextToSpeechCreateParams.SeedAudio
52
+ | TextToSpeechCreateParams.ElevenV4
52
53
  | TextToSpeechCreateParams.ElevenMultilingualV2
53
54
  | TextToSpeechCreateParams.ElevenV3;
54
55
 
@@ -112,6 +113,135 @@ export declare namespace TextToSpeechCreateParams {
112
113
  }
113
114
  }
114
115
 
116
+ export interface ElevenV4 {
117
+ model: 'eleven_v4';
118
+
119
+ /**
120
+ * The text to convert to speech. You can include expressive audio tags like
121
+ * [laughs], [whispers], or [pause] in the script.
122
+ */
123
+ promptText: string;
124
+
125
+ /**
126
+ * A voice preset from the RunwayML API.
127
+ */
128
+ voice: ElevenV4.Voice;
129
+
130
+ /**
131
+ * Language code to enforce pronunciation, such as "en" or "pt". A regional code
132
+ * such as "pt-BR" is read as its language.
133
+ */
134
+ languageCode?: string;
135
+
136
+ /**
137
+ * Text that comes after this request, so the speech can lead into a later
138
+ * generation.
139
+ */
140
+ nextText?: string;
141
+
142
+ /**
143
+ * Text that comes before this request, so the speech can continue from an earlier
144
+ * generation.
145
+ */
146
+ previousText?: string;
147
+
148
+ /**
149
+ * Optional seed for more consistent output. The same seed and settings tend to
150
+ * sound alike, but it is not guaranteed.
151
+ */
152
+ seed?: number;
153
+
154
+ /**
155
+ * How closely the output tracks the original speaker.
156
+ */
157
+ similarityBoost?: number;
158
+
159
+ /**
160
+ * Speech speed multiplier. Values below 1 slow the speech down, and values above 1
161
+ * speed it up.
162
+ */
163
+ speed?: number;
164
+
165
+ /**
166
+ * Voice stability. Lower values allow broader emotional range; higher values are
167
+ * steadier.
168
+ */
169
+ stability?: number;
170
+
171
+ /**
172
+ * Style exaggeration. Higher values amplify the speaker style.
173
+ */
174
+ style?: number;
175
+
176
+ /**
177
+ * Boost similarity to the original speaker at a small latency cost.
178
+ */
179
+ useSpeakerBoost?: boolean;
180
+ }
181
+
182
+ export namespace ElevenV4 {
183
+ /**
184
+ * A voice preset from the RunwayML API.
185
+ */
186
+ export interface Voice {
187
+ /**
188
+ * The preset voice ID to use for the generated speech.
189
+ */
190
+ presetId:
191
+ | 'Maya'
192
+ | 'Arjun'
193
+ | 'Serene'
194
+ | 'Bernard'
195
+ | 'Billy'
196
+ | 'Mark'
197
+ | 'Clint'
198
+ | 'Mabel'
199
+ | 'Chad'
200
+ | 'Leslie'
201
+ | 'Eleanor'
202
+ | 'Elias'
203
+ | 'Elliot'
204
+ | 'Grungle'
205
+ | 'Brodie'
206
+ | 'Sandra'
207
+ | 'Kirk'
208
+ | 'Kylie'
209
+ | 'Lara'
210
+ | 'Lisa'
211
+ | 'Malachi'
212
+ | 'Marlene'
213
+ | 'Martin'
214
+ | 'Miriam'
215
+ | 'Monster'
216
+ | 'Paula'
217
+ | 'Pip'
218
+ | 'Rusty'
219
+ | 'Ragnar'
220
+ | 'Xylar'
221
+ | 'Maggie'
222
+ | 'Jack'
223
+ | 'Katie'
224
+ | 'Noah'
225
+ | 'James'
226
+ | 'Rina'
227
+ | 'Ella'
228
+ | 'Mariah'
229
+ | 'Frank'
230
+ | 'Claudia'
231
+ | 'Niki'
232
+ | 'Vincent'
233
+ | 'Kendrick'
234
+ | 'Myrna'
235
+ | 'Tom'
236
+ | 'Wanda'
237
+ | 'Benjamin'
238
+ | 'Kiana'
239
+ | 'Rachel';
240
+
241
+ type: 'runway-preset';
242
+ }
243
+ }
244
+
115
245
  export interface ElevenMultilingualV2 {
116
246
  model: 'eleven_multilingual_v2';
117
247
 
@@ -70,7 +70,8 @@ export type TextToVideoCreateParams =
70
70
  | TextToVideoCreateParams.Wan3
71
71
  | TextToVideoCreateParams.GeminiOmniFlash1_1
72
72
  | TextToVideoCreateParams.Wan3Prime
73
- | TextToVideoCreateParams.H3Max;
73
+ | TextToVideoCreateParams.H3Max
74
+ | TextToVideoCreateParams.GrokImagine1_5Lite;
74
75
 
75
76
  export declare namespace TextToVideoCreateParams {
76
77
  export interface Gen4_5 {
@@ -1178,6 +1179,47 @@ export declare namespace TextToVideoCreateParams {
1178
1179
  */
1179
1180
  seed?: number;
1180
1181
  }
1182
+
1183
+ export interface GrokImagine1_5Lite {
1184
+ model: 'grok_imagine_1_5_lite';
1185
+
1186
+ /**
1187
+ * A non-empty text prompt describing what should appear in the output.
1188
+ */
1189
+ promptText: string;
1190
+
1191
+ /**
1192
+ * The number of seconds of duration for the output video.
1193
+ */
1194
+ duration?: number;
1195
+
1196
+ /**
1197
+ * The resolution of the output video. The 1080p sizes are rendered at 720p and
1198
+ * upscaled.
1199
+ */
1200
+ ratio?:
1201
+ | '848:480'
1202
+ | '480:848'
1203
+ | '480:480'
1204
+ | '640:480'
1205
+ | '480:640'
1206
+ | '720:480'
1207
+ | '480:720'
1208
+ | '1280:720'
1209
+ | '720:1280'
1210
+ | '720:720'
1211
+ | '960:720'
1212
+ | '720:960'
1213
+ | '1088:720'
1214
+ | '720:1088'
1215
+ | '1904:1072'
1216
+ | '1072:1904'
1217
+ | '1424:1424'
1218
+ | '1648:1232'
1219
+ | '1232:1648'
1220
+ | '1744:1152'
1221
+ | '1152:1744';
1222
+ }
1181
1223
  }
1182
1224
 
1183
1225
  export declare namespace TextToVideo {
@@ -166,6 +166,12 @@ export namespace WorkflowInvocationRetrieveResponse {
166
166
 
167
167
  status: 'FAILED';
168
168
 
169
+ /**
170
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
171
+ * larger value.
172
+ */
173
+ cost?: Failed.Cost;
174
+
169
175
  /**
170
176
  * A machine-readable error code for the failure. See
171
177
  * https://docs.dev.runwayml.com/errors/task-failures/ for more information.
@@ -180,6 +186,17 @@ export namespace WorkflowInvocationRetrieveResponse {
180
186
  }
181
187
 
182
188
  export namespace Failed {
189
+ /**
190
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
191
+ * larger value.
192
+ */
193
+ export interface Cost {
194
+ /**
195
+ * Credits charged for this task.
196
+ */
197
+ credits: number;
198
+ }
199
+
183
200
  export interface NodeErrors {
184
201
  /**
185
202
  * A human-readable description of the node error.
@@ -227,16 +244,30 @@ export namespace WorkflowInvocationRetrieveResponse {
227
244
  status: 'SUCCEEDED';
228
245
 
229
246
  /**
230
- * A record mapping workflow node IDs to their error details. A workflow invocation
231
- * succeeds as long as every node reached a terminal state, so individual nodes may
232
- * still have failed — for example a moderated prompt or an upstream provider
233
- * outage — leaving their output missing from `output`. Check this field to detect
234
- * a partial run. Only present when one or more nodes have errored.
247
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
248
+ * larger value.
249
+ */
250
+ cost?: Succeeded.Cost;
251
+
252
+ /**
253
+ * A record mapping workflow node IDs to their error details. Only present when one
254
+ * or more nodes have errored.
235
255
  */
236
256
  nodeErrors?: { [key: string]: Succeeded.NodeErrors };
237
257
  }
238
258
 
239
259
  export namespace Succeeded {
260
+ /**
261
+ * Omitted until every descendant task is terminal, so a later GET cannot return a
262
+ * larger value.
263
+ */
264
+ export interface Cost {
265
+ /**
266
+ * Credits charged for this task.
267
+ */
268
+ credits: number;
269
+ }
270
+
240
271
  export interface NodeErrors {
241
272
  /**
242
273
  * A human-readable description of the node error.
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '4.20.1'; // x-release-please-version
1
+ export const VERSION = '4.21.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.20.1";
1
+ export declare const VERSION = "4.21.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "4.20.1";
1
+ export declare const VERSION = "4.21.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '4.20.1'; // x-release-please-version
4
+ exports.VERSION = '4.21.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '4.20.1'; // x-release-please-version
1
+ export const VERSION = '4.21.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map