@runwayml/sdk 4.20.1 → 4.22.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.
- package/CHANGELOG.md +21 -0
- package/package.json +1 -1
- package/resources/image-to-video.d.mts +38 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +38 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/organization/organization.d.mts +2 -2
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +2 -2
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +28 -14
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +28 -14
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +98 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +98 -1
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.js +8 -0
- package/resources/text-to-image.js.map +1 -1
- package/resources/text-to-image.mjs +8 -0
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts +67 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +67 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +17 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +17 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/workflow-invocations.d.mts +32 -5
- package/resources/workflow-invocations.d.mts.map +1 -1
- package/resources/workflow-invocations.d.ts +32 -5
- package/resources/workflow-invocations.d.ts.map +1 -1
- package/src/resources/image-to-video.ts +46 -1
- package/src/resources/organization/organization.ts +6 -0
- package/src/resources/organization/webapp/audit-logs.ts +55 -12
- package/src/resources/text-to-image.ts +151 -0
- package/src/resources/text-to-speech.ts +130 -0
- package/src/resources/text-to-video.ts +43 -1
- package/src/resources/workflow-invocations.ts +36 -5
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -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`, `
|
|
468
|
-
* `
|
|
469
|
-
* `
|
|
470
|
-
* `
|
|
471
|
-
* `
|
|
472
|
-
* `
|
|
473
|
-
* `
|
|
474
|
-
* `
|
|
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`, `
|
|
487
|
-
* `AccountLinkDeleted`, `
|
|
488
|
-
* `
|
|
489
|
-
* `
|
|
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`,
|
|
@@ -10,6 +10,14 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
10
10
|
export class TextToImage extends APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* This endpoint will start a new task to generate images from text and/or image(s)
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* ```ts
|
|
16
|
+
* const textToImage = await client.textToImage.create({
|
|
17
|
+
* model: 'ideogram_4_5',
|
|
18
|
+
* promptText: 'x',
|
|
19
|
+
* });
|
|
20
|
+
* ```
|
|
13
21
|
*/
|
|
14
22
|
create(
|
|
15
23
|
body: TextToImageCreateParams,
|
|
@@ -59,6 +67,8 @@ export type TextToImageCreateParams =
|
|
|
59
67
|
| TextToImageCreateParams.GeminiImage3Pro
|
|
60
68
|
| TextToImageCreateParams.GptImage2_5Flare
|
|
61
69
|
| TextToImageCreateParams.GptImage2_5Sunburst
|
|
70
|
+
| TextToImageCreateParams.Ideogram4_0
|
|
71
|
+
| TextToImageCreateParams.Ideogram4_5
|
|
62
72
|
| TextToImageCreateParams.Gemini2_5Flash;
|
|
63
73
|
|
|
64
74
|
export declare namespace TextToImageCreateParams {
|
|
@@ -940,6 +950,147 @@ export declare namespace TextToImageCreateParams {
|
|
|
940
950
|
}
|
|
941
951
|
}
|
|
942
952
|
|
|
953
|
+
export interface Ideogram4_0 {
|
|
954
|
+
model: 'ideogram_4_0';
|
|
955
|
+
|
|
956
|
+
/**
|
|
957
|
+
* Describe the image to generate, or how to remix the reference image.
|
|
958
|
+
*/
|
|
959
|
+
promptText: string;
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
963
|
+
* of credits consumed by the generation.
|
|
964
|
+
*/
|
|
965
|
+
outputCount?: number;
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* How much rendering effort the model spends on each image. `low` costs 4 credits
|
|
969
|
+
* per image, `medium` 7 and `high` 11.
|
|
970
|
+
*/
|
|
971
|
+
quality?: 'low' | 'medium' | 'high';
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* The resolution of the output image, expressed as `<width>:<height>`.
|
|
975
|
+
*/
|
|
976
|
+
ratio?:
|
|
977
|
+
| '2048:2048'
|
|
978
|
+
| '2560:1440'
|
|
979
|
+
| '1440:2560'
|
|
980
|
+
| '2304:1728'
|
|
981
|
+
| '1728:2304'
|
|
982
|
+
| '2496:1664'
|
|
983
|
+
| '1664:2496'
|
|
984
|
+
| '3072:1280'
|
|
985
|
+
| '1280:3072';
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* An image to remix. The prompt describes how the output should differ from it.
|
|
989
|
+
*/
|
|
990
|
+
referenceImages?: Array<Ideogram4_0.ReferenceImage>;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
export namespace Ideogram4_0 {
|
|
994
|
+
export interface ReferenceImage {
|
|
995
|
+
/**
|
|
996
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
997
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
998
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
999
|
+
*/
|
|
1000
|
+
uri: string;
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
export interface Ideogram4_5 {
|
|
1005
|
+
model: 'ideogram_4_5';
|
|
1006
|
+
|
|
1007
|
+
/**
|
|
1008
|
+
* Describe the image to generate, or the changes to make to the reference images.
|
|
1009
|
+
*/
|
|
1010
|
+
promptText: string;
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1014
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1015
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1016
|
+
*/
|
|
1017
|
+
maskUri?: string;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* The number of images to generate. Increasing this number will affect the number
|
|
1021
|
+
* of credits consumed by the generation.
|
|
1022
|
+
*/
|
|
1023
|
+
outputCount?: number;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* When true, edit the first reference image while preserving its composition and
|
|
1027
|
+
* dimensions. Requires at least one reference image.
|
|
1028
|
+
*/
|
|
1029
|
+
preciseEdit?: boolean;
|
|
1030
|
+
|
|
1031
|
+
/**
|
|
1032
|
+
* How much rendering effort the model spends on each image. Defaults to `medium`
|
|
1033
|
+
* (8 credits per image) when generating from reference images and `high` (25
|
|
1034
|
+
* credits) otherwise, including `preciseEdit`. `low` costs 4 credits and
|
|
1035
|
+
* `very_low` 1; `very_low` requires reference images and is not available with
|
|
1036
|
+
* `preciseEdit`.
|
|
1037
|
+
*/
|
|
1038
|
+
quality?: 'very_low' | 'low' | 'medium' | 'high';
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
* The resolution of the output image, expressed as `<width>:<height>`. Omit it or
|
|
1042
|
+
* use `auto` to let the model choose. With reference images, widescreen 1K sizes
|
|
1043
|
+
* are `1024:576`, `576:1024`, `1408:704`, `704:1408` instead of `1280:720`,
|
|
1044
|
+
* `720:1280`, `1440:720`, `720:1440`. Not available with `maskUri` or
|
|
1045
|
+
* `preciseEdit`, which keep the size of the first reference image.
|
|
1046
|
+
*/
|
|
1047
|
+
ratio?:
|
|
1048
|
+
| '1024:1024'
|
|
1049
|
+
| '1280:720'
|
|
1050
|
+
| '720:1280'
|
|
1051
|
+
| '1152:864'
|
|
1052
|
+
| '864:1152'
|
|
1053
|
+
| '1248:832'
|
|
1054
|
+
| '832:1248'
|
|
1055
|
+
| '1120:896'
|
|
1056
|
+
| '896:1120'
|
|
1057
|
+
| '1440:720'
|
|
1058
|
+
| '720:1440'
|
|
1059
|
+
| '2048:2048'
|
|
1060
|
+
| '2560:1440'
|
|
1061
|
+
| '1440:2560'
|
|
1062
|
+
| '2304:1728'
|
|
1063
|
+
| '1728:2304'
|
|
1064
|
+
| '2496:1664'
|
|
1065
|
+
| '1664:2496'
|
|
1066
|
+
| '2240:1792'
|
|
1067
|
+
| '1792:2240'
|
|
1068
|
+
| '2880:1440'
|
|
1069
|
+
| '1440:2880'
|
|
1070
|
+
| '1024:576'
|
|
1071
|
+
| '576:1024'
|
|
1072
|
+
| '1408:704'
|
|
1073
|
+
| '704:1408'
|
|
1074
|
+
| 'auto';
|
|
1075
|
+
|
|
1076
|
+
/**
|
|
1077
|
+
* Up to 5 images to guide the generation. With `maskUri` or `preciseEdit`, the
|
|
1078
|
+
* first image is the one being edited and the rest are references.
|
|
1079
|
+
*/
|
|
1080
|
+
referenceImages?: Array<Ideogram4_5.ReferenceImage>;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
export namespace Ideogram4_5 {
|
|
1084
|
+
export interface ReferenceImage {
|
|
1085
|
+
/**
|
|
1086
|
+
* A HTTPS URL, Runway upload URI, or base64 data URI (e.g.
|
|
1087
|
+
* `data:image/png;base64,...`, up to 5MB) containing an encoded image. See
|
|
1088
|
+
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
1089
|
+
*/
|
|
1090
|
+
uri: string;
|
|
1091
|
+
}
|
|
1092
|
+
}
|
|
1093
|
+
|
|
943
1094
|
export interface Gemini2_5Flash {
|
|
944
1095
|
model: 'gemini_2.5_flash';
|
|
945
1096
|
|
|
@@ -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
|
-
*
|
|
231
|
-
*
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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.
|
|
1
|
+
export const VERSION = '4.22.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.22.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "4.
|
|
1
|
+
export declare const VERSION = "4.22.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '4.
|
|
1
|
+
export const VERSION = '4.22.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|