@runwayml/sdk 4.24.0 → 4.25.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 +7 -0
- package/package.json +1 -1
- package/resources/generate/audio.d.mts +12 -10
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +12 -10
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js +3 -2
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs +3 -2
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/image-to-video.d.mts +102 -4
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +102 -4
- 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 +124 -7
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +124 -7
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +18 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +18 -0
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/tasks.d.mts +34 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +34 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +236 -13
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +236 -13
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +91 -4
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +91 -4
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +108 -4
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +108 -4
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/resources/generate/audio.ts +12 -10
- package/src/resources/image-to-video.ts +133 -4
- package/src/resources/organization/organization.ts +14 -0
- package/src/resources/organization/webapp/audit-logs.ts +238 -5
- package/src/resources/organization/webapp/webapp.ts +22 -0
- package/src/resources/tasks.ts +41 -0
- package/src/resources/text-to-image.ts +342 -12
- package/src/resources/text-to-video.ts +120 -4
- package/src/resources/video-to-video.ts +139 -4
- 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
|
@@ -116,6 +116,15 @@ export interface AuditLogRetrieveResponse {
|
|
|
116
116
|
| 'GenerationCreated'
|
|
117
117
|
| 'StudioSessionOpened'
|
|
118
118
|
| 'AppStudioAiRunOpened'
|
|
119
|
+
| 'AppStudioAppCreated'
|
|
120
|
+
| 'AppStudioAppPublished'
|
|
121
|
+
| 'AppStudioAppVisibilityChanged'
|
|
122
|
+
| 'AppStudioAppRenamed'
|
|
123
|
+
| 'AppStudioAppDeleted'
|
|
124
|
+
| 'AppStudioAppCoOwnerChanged'
|
|
125
|
+
| 'AppStudioAppSecretChanged'
|
|
126
|
+
| 'AppStudioAppRunwayAccessGranted'
|
|
127
|
+
| 'AppStudioAppRunwayAccessRevoked'
|
|
119
128
|
| 'AccountLinkCreated'
|
|
120
129
|
| 'AccountLinkDeleted'
|
|
121
130
|
| 'AdConnectionAuthorizationStarted'
|
|
@@ -133,6 +142,7 @@ export interface AuditLogRetrieveResponse {
|
|
|
133
142
|
| 'AdPublishBatchQueued'
|
|
134
143
|
| 'AdPublishBatchCancelled'
|
|
135
144
|
| 'AdPublishBatchRetried'
|
|
145
|
+
| 'AdStatusChanged'
|
|
136
146
|
| 'OrganizationSettingsUpdated'
|
|
137
147
|
| 'OrganizationDisabledModelsUpdated'
|
|
138
148
|
| 'OrganizationAgentSandboxUpdated'
|
|
@@ -233,6 +243,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
233
243
|
|
|
234
244
|
'Ad creative ID'?: string;
|
|
235
245
|
|
|
246
|
+
'Ad level'?: string;
|
|
247
|
+
|
|
236
248
|
'Ad publish batch ID'?: string;
|
|
237
249
|
|
|
238
250
|
'Ad review batch ID'?: string;
|
|
@@ -245,6 +257,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
245
257
|
|
|
246
258
|
'Ad sync start date'?: string;
|
|
247
259
|
|
|
260
|
+
'Ads created as'?: string;
|
|
261
|
+
|
|
248
262
|
'Ads onboarding answers'?: Array<string>;
|
|
249
263
|
|
|
250
264
|
'Ads onboarding completed'?: boolean;
|
|
@@ -261,7 +275,11 @@ export namespace AuditLogRetrieveResponse {
|
|
|
261
275
|
|
|
262
276
|
'API project ID'?: string;
|
|
263
277
|
|
|
264
|
-
'App Studio app'?: string;
|
|
278
|
+
'App Studio app'?: string | null;
|
|
279
|
+
|
|
280
|
+
'App Studio app ID'?: string;
|
|
281
|
+
|
|
282
|
+
'App Studio deploy'?: string;
|
|
265
283
|
|
|
266
284
|
'App Studio session'?: string;
|
|
267
285
|
|
|
@@ -339,6 +357,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
339
357
|
|
|
340
358
|
'Platform ad account ID'?: string;
|
|
341
359
|
|
|
360
|
+
'Platform object ID'?: string;
|
|
361
|
+
|
|
342
362
|
'Previous project credit cap'?: number | null;
|
|
343
363
|
|
|
344
364
|
'Previous role'?: string | null;
|
|
@@ -361,6 +381,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
361
381
|
|
|
362
382
|
'Root asset ID'?: string;
|
|
363
383
|
|
|
384
|
+
'Secret name'?: string;
|
|
385
|
+
|
|
364
386
|
Selected?: boolean;
|
|
365
387
|
|
|
366
388
|
Setting?: string;
|
|
@@ -375,6 +397,10 @@ export namespace AuditLogRetrieveResponse {
|
|
|
375
397
|
|
|
376
398
|
'Spend cap change'?: number;
|
|
377
399
|
|
|
400
|
+
'Status after'?: string;
|
|
401
|
+
|
|
402
|
+
'Status before'?: string;
|
|
403
|
+
|
|
378
404
|
'Submitted via'?: string;
|
|
379
405
|
|
|
380
406
|
'Tag color'?: string;
|
|
@@ -475,6 +501,15 @@ export interface AuditLogListResponse {
|
|
|
475
501
|
| 'GenerationCreated'
|
|
476
502
|
| 'StudioSessionOpened'
|
|
477
503
|
| 'AppStudioAiRunOpened'
|
|
504
|
+
| 'AppStudioAppCreated'
|
|
505
|
+
| 'AppStudioAppPublished'
|
|
506
|
+
| 'AppStudioAppVisibilityChanged'
|
|
507
|
+
| 'AppStudioAppRenamed'
|
|
508
|
+
| 'AppStudioAppDeleted'
|
|
509
|
+
| 'AppStudioAppCoOwnerChanged'
|
|
510
|
+
| 'AppStudioAppSecretChanged'
|
|
511
|
+
| 'AppStudioAppRunwayAccessGranted'
|
|
512
|
+
| 'AppStudioAppRunwayAccessRevoked'
|
|
478
513
|
| 'AccountLinkCreated'
|
|
479
514
|
| 'AccountLinkDeleted'
|
|
480
515
|
| 'AdConnectionAuthorizationStarted'
|
|
@@ -492,6 +527,7 @@ export interface AuditLogListResponse {
|
|
|
492
527
|
| 'AdPublishBatchQueued'
|
|
493
528
|
| 'AdPublishBatchCancelled'
|
|
494
529
|
| 'AdPublishBatchRetried'
|
|
530
|
+
| 'AdStatusChanged'
|
|
495
531
|
| 'OrganizationSettingsUpdated'
|
|
496
532
|
| 'OrganizationDisabledModelsUpdated'
|
|
497
533
|
| 'OrganizationAgentSandboxUpdated'
|
|
@@ -532,6 +568,11 @@ export interface AuditLogListResponse {
|
|
|
532
568
|
*/
|
|
533
569
|
eventId: string;
|
|
534
570
|
|
|
571
|
+
/**
|
|
572
|
+
* Action-specific details.
|
|
573
|
+
*/
|
|
574
|
+
metadata: AuditLogListResponse.Metadata;
|
|
575
|
+
|
|
535
576
|
/**
|
|
536
577
|
* When the action occurred.
|
|
537
578
|
*/
|
|
@@ -548,6 +589,195 @@ export interface AuditLogListResponse {
|
|
|
548
589
|
workspaceName: string;
|
|
549
590
|
}
|
|
550
591
|
|
|
592
|
+
export namespace AuditLogListResponse {
|
|
593
|
+
/**
|
|
594
|
+
* Action-specific details.
|
|
595
|
+
*/
|
|
596
|
+
export interface Metadata {
|
|
597
|
+
'Ad account ID'?: string;
|
|
598
|
+
|
|
599
|
+
'Ad creative ID'?: string;
|
|
600
|
+
|
|
601
|
+
'Ad level'?: string;
|
|
602
|
+
|
|
603
|
+
'Ad publish batch ID'?: string;
|
|
604
|
+
|
|
605
|
+
'Ad review batch ID'?: string;
|
|
606
|
+
|
|
607
|
+
'Ad review request ID'?: string;
|
|
608
|
+
|
|
609
|
+
'Ad sync end date'?: string;
|
|
610
|
+
|
|
611
|
+
'Ad sync run ID'?: string;
|
|
612
|
+
|
|
613
|
+
'Ad sync start date'?: string;
|
|
614
|
+
|
|
615
|
+
'Ads created as'?: string;
|
|
616
|
+
|
|
617
|
+
'Ads onboarding answers'?: Array<string>;
|
|
618
|
+
|
|
619
|
+
'Ads onboarding completed'?: boolean;
|
|
620
|
+
|
|
621
|
+
'Agent session ID'?: string;
|
|
622
|
+
|
|
623
|
+
'Agent tagged'?: boolean;
|
|
624
|
+
|
|
625
|
+
Amount?: number;
|
|
626
|
+
|
|
627
|
+
'Amount received'?: number;
|
|
628
|
+
|
|
629
|
+
'API account'?: string;
|
|
630
|
+
|
|
631
|
+
'API project ID'?: string;
|
|
632
|
+
|
|
633
|
+
'App Studio app'?: string | null;
|
|
634
|
+
|
|
635
|
+
'App Studio app ID'?: string;
|
|
636
|
+
|
|
637
|
+
'App Studio deploy'?: string;
|
|
638
|
+
|
|
639
|
+
'App Studio session'?: string;
|
|
640
|
+
|
|
641
|
+
Application?: string;
|
|
642
|
+
|
|
643
|
+
'Asset name'?: string;
|
|
644
|
+
|
|
645
|
+
'AWS license'?: string;
|
|
646
|
+
|
|
647
|
+
'Brand kit ID'?: string;
|
|
648
|
+
|
|
649
|
+
'Comment ID'?: string;
|
|
650
|
+
|
|
651
|
+
'Comment target ID'?: string;
|
|
652
|
+
|
|
653
|
+
'Comment target type'?: string;
|
|
654
|
+
|
|
655
|
+
'Comment text'?: string;
|
|
656
|
+
|
|
657
|
+
'Creatives cancelled'?: number;
|
|
658
|
+
|
|
659
|
+
'Creatives queued'?: number;
|
|
660
|
+
|
|
661
|
+
'Creatives retried'?: number;
|
|
662
|
+
|
|
663
|
+
'Default project discoverability'?: string;
|
|
664
|
+
|
|
665
|
+
'Default task name template'?: string | null;
|
|
666
|
+
|
|
667
|
+
'Destination category ID'?: string;
|
|
668
|
+
|
|
669
|
+
Direction?: string;
|
|
670
|
+
|
|
671
|
+
'Email domain'?: string;
|
|
672
|
+
|
|
673
|
+
'Error code'?: string;
|
|
674
|
+
|
|
675
|
+
'Group name'?: string;
|
|
676
|
+
|
|
677
|
+
'Hard spend cap'?: boolean;
|
|
678
|
+
|
|
679
|
+
'Into a new test ad set'?: boolean;
|
|
680
|
+
|
|
681
|
+
'Invited member'?: string;
|
|
682
|
+
|
|
683
|
+
'Language model or provider'?: string;
|
|
684
|
+
|
|
685
|
+
'Login method'?: string;
|
|
686
|
+
|
|
687
|
+
'Media included'?: boolean;
|
|
688
|
+
|
|
689
|
+
'Member email'?: string;
|
|
690
|
+
|
|
691
|
+
Mentions?: number;
|
|
692
|
+
|
|
693
|
+
Model?: string;
|
|
694
|
+
|
|
695
|
+
'New role'?: string;
|
|
696
|
+
|
|
697
|
+
'New text'?: string;
|
|
698
|
+
|
|
699
|
+
'New User'?: boolean;
|
|
700
|
+
|
|
701
|
+
'New value'?: string | number | boolean | { [key: string]: boolean } | null;
|
|
702
|
+
|
|
703
|
+
Operation?: string;
|
|
704
|
+
|
|
705
|
+
Organization?: string;
|
|
706
|
+
|
|
707
|
+
Outcome?: string;
|
|
708
|
+
|
|
709
|
+
Plan?: string;
|
|
710
|
+
|
|
711
|
+
Platform?: string;
|
|
712
|
+
|
|
713
|
+
'Platform ad account ID'?: string;
|
|
714
|
+
|
|
715
|
+
'Platform object ID'?: string;
|
|
716
|
+
|
|
717
|
+
'Previous project credit cap'?: number | null;
|
|
718
|
+
|
|
719
|
+
'Previous role'?: string | null;
|
|
720
|
+
|
|
721
|
+
'Previous text'?: string;
|
|
722
|
+
|
|
723
|
+
'Previous value'?: string | number | boolean | { [key: string]: boolean } | null;
|
|
724
|
+
|
|
725
|
+
'Project credit cap'?: number | null;
|
|
726
|
+
|
|
727
|
+
Provider?: string;
|
|
728
|
+
|
|
729
|
+
Reason?: string | null;
|
|
730
|
+
|
|
731
|
+
'Removed member'?: string;
|
|
732
|
+
|
|
733
|
+
'Review decision'?: string;
|
|
734
|
+
|
|
735
|
+
Role?: string;
|
|
736
|
+
|
|
737
|
+
'Root asset ID'?: string;
|
|
738
|
+
|
|
739
|
+
'Secret name'?: string;
|
|
740
|
+
|
|
741
|
+
Selected?: boolean;
|
|
742
|
+
|
|
743
|
+
Setting?: string;
|
|
744
|
+
|
|
745
|
+
'Shared with projects'?: Array<string>;
|
|
746
|
+
|
|
747
|
+
'Shared with workspace'?: boolean;
|
|
748
|
+
|
|
749
|
+
'Source category ID'?: string;
|
|
750
|
+
|
|
751
|
+
'Spend cap'?: number;
|
|
752
|
+
|
|
753
|
+
'Spend cap change'?: number;
|
|
754
|
+
|
|
755
|
+
'Status after'?: string;
|
|
756
|
+
|
|
757
|
+
'Status before'?: string;
|
|
758
|
+
|
|
759
|
+
'Submitted via'?: string;
|
|
760
|
+
|
|
761
|
+
'Tag color'?: string;
|
|
762
|
+
|
|
763
|
+
'Tag name'?: string;
|
|
764
|
+
|
|
765
|
+
'Target member'?: string | null;
|
|
766
|
+
|
|
767
|
+
'Via public API'?: boolean;
|
|
768
|
+
|
|
769
|
+
Workspace?: string | null;
|
|
770
|
+
|
|
771
|
+
'Workspace description'?: string | null;
|
|
772
|
+
|
|
773
|
+
'Workspace ID'?: number;
|
|
774
|
+
|
|
775
|
+
'Workspace name'?: string | null;
|
|
776
|
+
|
|
777
|
+
'Workspace picture'?: string | null;
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
|
|
551
781
|
export interface AuditLogRetrieveParams {
|
|
552
782
|
/**
|
|
553
783
|
* Organization to report on. Optional when this API project is linked to a single
|
|
@@ -584,14 +814,17 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
584
814
|
* `AgentConnectorConnected`, `AgentConnectorDisconnected`,
|
|
585
815
|
* `AgentConnectorAssetExported`, `AgentConnectorSessionEnabled`,
|
|
586
816
|
* `AgentConnectorSessionDisabled`, `GenerationCreated`, `StudioSessionOpened`,
|
|
587
|
-
* `AppStudioAiRunOpened`, `
|
|
588
|
-
* `
|
|
589
|
-
* `
|
|
817
|
+
* `AppStudioAiRunOpened`, `AppStudioAppCreated`, `AppStudioAppPublished`,
|
|
818
|
+
* `AppStudioAppVisibilityChanged`, `AppStudioAppRenamed`, `AppStudioAppDeleted`,
|
|
819
|
+
* `AppStudioAppCoOwnerChanged`, `AppStudioAppSecretChanged`,
|
|
820
|
+
* `AppStudioAppRunwayAccessGranted`, `AppStudioAppRunwayAccessRevoked`,
|
|
821
|
+
* `AccountLinkCreated`, `AccountLinkDeleted`, `AdConnectionAuthorizationStarted`,
|
|
822
|
+
* `AdConnectionConnected`, `AdAccountSelectionUpdated`, `AdAccountSyncRequested`,
|
|
590
823
|
* `AdConnectionDisconnected`, `AdWorkspaceOnboardingUpdated`,
|
|
591
824
|
* `AdCreativeReviewSubmitted`, `AdCreativeReviewCancelled`,
|
|
592
825
|
* `AdCreativeReviewDecided`, `AdCreativeApprovalRevoked`, `AdCreativeArchived`,
|
|
593
826
|
* `AdCreativeUnarchived`, `AdPublishBatchQueued`, `AdPublishBatchCancelled`,
|
|
594
|
-
* `AdPublishBatchRetried`, `OrganizationSettingsUpdated`,
|
|
827
|
+
* `AdPublishBatchRetried`, `AdStatusChanged`, `OrganizationSettingsUpdated`,
|
|
595
828
|
* `OrganizationDisabledModelsUpdated`, `OrganizationAgentSandboxUpdated`,
|
|
596
829
|
* `OrganizationApiAccountReleased`, `OrganizationApiAccountMemberInvited`,
|
|
597
830
|
* `OrganizationApiAccountMemberRoleChanged`,
|
|
@@ -46,6 +46,12 @@ export interface WebappListUsageResponse {
|
|
|
46
46
|
*/
|
|
47
47
|
email: string;
|
|
48
48
|
|
|
49
|
+
/**
|
|
50
|
+
* ID of the generation this row belongs to. A charge and its refunds share it.
|
|
51
|
+
* `null` for App Studio usage, which has no generation.
|
|
52
|
+
*/
|
|
53
|
+
taskId: string | null;
|
|
54
|
+
|
|
49
55
|
/**
|
|
50
56
|
* When the generation was charged.
|
|
51
57
|
*/
|
|
@@ -56,12 +62,28 @@ export interface WebappListUsageResponse {
|
|
|
56
62
|
*/
|
|
57
63
|
tool: string;
|
|
58
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Unique ID of the credit transaction behind this row. Stable across requests, so
|
|
67
|
+
* use it to deduplicate overlapping pulls.
|
|
68
|
+
*/
|
|
69
|
+
transactionId: string;
|
|
70
|
+
|
|
59
71
|
/**
|
|
60
72
|
* Whether the row is a credit charge for a generation or a task refund (negative
|
|
61
73
|
* credits).
|
|
62
74
|
*/
|
|
63
75
|
type: 'charge' | 'refund';
|
|
64
76
|
|
|
77
|
+
/**
|
|
78
|
+
* Unit of `credits`. Always `credits`.
|
|
79
|
+
*/
|
|
80
|
+
unit: 'credits';
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* ID of the user who generated.
|
|
84
|
+
*/
|
|
85
|
+
userId: number;
|
|
86
|
+
|
|
65
87
|
/**
|
|
66
88
|
* ID of the owning workspace.
|
|
67
89
|
*/
|
package/src/resources/tasks.ts
CHANGED
|
@@ -273,6 +273,12 @@ export namespace TaskRetrieveResponse {
|
|
|
273
273
|
output: Array<string>;
|
|
274
274
|
|
|
275
275
|
status: 'SUCCEEDED';
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* Layer details for successful Seedream 5 Pro Layers tasks. Each URI matches the
|
|
279
|
+
* output URL at the same index.
|
|
280
|
+
*/
|
|
281
|
+
layers?: Array<Succeeded.Layer>;
|
|
276
282
|
}
|
|
277
283
|
|
|
278
284
|
export namespace Succeeded {
|
|
@@ -286,6 +292,41 @@ export namespace TaskRetrieveResponse {
|
|
|
286
292
|
*/
|
|
287
293
|
credits: number;
|
|
288
294
|
}
|
|
295
|
+
|
|
296
|
+
export interface Layer {
|
|
297
|
+
/**
|
|
298
|
+
* An ephemeral URL for this layer, matching output at the same index.
|
|
299
|
+
*/
|
|
300
|
+
uri: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* The layer bounds in absolute and normalized coordinates, when returned by the
|
|
304
|
+
* model provider.
|
|
305
|
+
*/
|
|
306
|
+
boundingBox?: Layer.BoundingBox;
|
|
307
|
+
|
|
308
|
+
/**
|
|
309
|
+
* The layer filename.
|
|
310
|
+
*/
|
|
311
|
+
name?: string;
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* The layer stacking order returned by the model provider.
|
|
315
|
+
*/
|
|
316
|
+
zIndex?: number;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export namespace Layer {
|
|
320
|
+
/**
|
|
321
|
+
* The layer bounds in absolute and normalized coordinates, when returned by the
|
|
322
|
+
* model provider.
|
|
323
|
+
*/
|
|
324
|
+
export interface BoundingBox {
|
|
325
|
+
absolute: Array<number>;
|
|
326
|
+
|
|
327
|
+
normalized: Array<number>;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
289
330
|
}
|
|
290
331
|
}
|
|
291
332
|
|