@runwayml/sdk 4.29.0 → 4.31.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 +27 -0
- package/client.d.mts +15 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -0
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/generate/generate.d.mts +4 -0
- package/resources/generate/generate.d.mts.map +1 -1
- package/resources/generate/generate.d.ts +4 -0
- package/resources/generate/generate.d.ts.map +1 -1
- package/resources/generate/generate.js +4 -0
- package/resources/generate/generate.js.map +1 -1
- package/resources/generate/generate.mjs +4 -0
- package/resources/generate/generate.mjs.map +1 -1
- package/resources/generate/image.d.mts +2 -2
- package/resources/generate/image.d.ts +2 -2
- package/resources/generate/index.d.mts +1 -0
- package/resources/generate/index.d.mts.map +1 -1
- package/resources/generate/index.d.ts +1 -0
- package/resources/generate/index.d.ts.map +1 -1
- package/resources/generate/index.js +3 -1
- package/resources/generate/index.js.map +1 -1
- package/resources/generate/index.mjs +1 -0
- package/resources/generate/index.mjs.map +1 -1
- package/resources/generate/mesh.d.mts +162 -0
- package/resources/generate/mesh.d.mts.map +1 -0
- package/resources/generate/mesh.d.ts +162 -0
- package/resources/generate/mesh.d.ts.map +1 -0
- package/resources/generate/mesh.js +16 -0
- package/resources/generate/mesh.js.map +1 -0
- package/resources/generate/mesh.mjs +12 -0
- package/resources/generate/mesh.mjs.map +1 -0
- package/resources/generate/video.d.mts +5 -0
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +5 -0
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-mesh.d.mts +128 -0
- package/resources/image-to-mesh.d.mts.map +1 -0
- package/resources/image-to-mesh.d.ts +128 -0
- package/resources/image-to-mesh.d.ts.map +1 -0
- package/resources/image-to-mesh.js +27 -0
- package/resources/image-to-mesh.js.map +1 -0
- package/resources/image-to-mesh.mjs +23 -0
- package/resources/image-to-mesh.mjs.map +1 -0
- package/resources/image-to-video.d.mts +6 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +6 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/model-catalog.d.mts +139 -0
- package/resources/model-catalog.d.mts.map +1 -0
- package/resources/model-catalog.d.ts +139 -0
- package/resources/model-catalog.d.ts.map +1 -0
- package/resources/model-catalog.js +28 -0
- package/resources/model-catalog.js.map +1 -0
- package/resources/model-catalog.mjs +24 -0
- package/resources/model-catalog.mjs.map +1 -0
- package/resources/organization/index.d.mts +1 -1
- package/resources/organization/index.d.mts.map +1 -1
- package/resources/organization/index.d.ts +1 -1
- package/resources/organization/index.d.ts.map +1 -1
- package/resources/organization/index.js.map +1 -1
- package/resources/organization/index.mjs.map +1 -1
- package/resources/organization/organization.d.mts +4 -4
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +4 -4
- 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 +34 -14
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +34 -14
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/index.d.mts +1 -1
- package/resources/organization/webapp/index.d.mts.map +1 -1
- package/resources/organization/webapp/index.d.ts +1 -1
- package/resources/organization/webapp/index.d.ts.map +1 -1
- package/resources/organization/webapp/index.js.map +1 -1
- package/resources/organization/webapp/index.mjs.map +1 -1
- package/resources/organization/webapp/webapp.d.mts +79 -1
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +79 -1
- package/resources/organization/webapp/webapp.d.ts.map +1 -1
- package/resources/organization/webapp/webapp.js +12 -0
- package/resources/organization/webapp/webapp.js.map +1 -1
- package/resources/organization/webapp/webapp.mjs +12 -0
- package/resources/organization/webapp/webapp.mjs.map +1 -1
- package/resources/tasks.d.mts +25 -2
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +25 -2
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +86 -4
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +86 -4
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-mesh.d.mts +83 -0
- package/resources/text-to-mesh.d.mts.map +1 -0
- package/resources/text-to-mesh.d.ts +83 -0
- package/resources/text-to-mesh.d.ts.map +1 -0
- package/resources/text-to-mesh.js +19 -0
- package/resources/text-to-mesh.js.map +1 -0
- package/resources/text-to-mesh.mjs +15 -0
- package/resources/text-to-mesh.mjs.map +1 -0
- package/resources/text-to-speech.d.mts +77 -1
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +77 -1
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-video.d.mts +7 -2
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +7 -2
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +7 -2
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +7 -2
- package/resources/video-to-video.d.ts.map +1 -1
- package/src/client.ts +29 -0
- package/src/resources/generate/generate.ts +10 -0
- package/src/resources/generate/image.ts +2 -2
- package/src/resources/generate/index.ts +1 -0
- package/src/resources/generate/mesh.ts +214 -0
- package/src/resources/generate/video.ts +6 -0
- package/src/resources/image-to-mesh.ts +176 -0
- package/src/resources/image-to-video.ts +7 -1
- package/src/resources/index.ts +3 -0
- package/src/resources/model-catalog.ts +161 -0
- package/src/resources/organization/index.ts +3 -0
- package/src/resources/organization/organization.ts +16 -2
- package/src/resources/organization/webapp/audit-logs.ts +58 -12
- package/src/resources/organization/webapp/index.ts +3 -0
- package/src/resources/organization/webapp/webapp.ts +104 -0
- package/src/resources/tasks.ts +33 -2
- package/src/resources/text-to-image.ts +132 -4
- package/src/resources/text-to-mesh.ts +118 -0
- package/src/resources/text-to-speech.ts +143 -1
- package/src/resources/text-to-video.ts +13 -2
- package/src/resources/video-to-video.ts +13 -2
- 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
|
@@ -0,0 +1,161 @@
|
|
|
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 { RequestOptions } from '../internal/request-options';
|
|
6
|
+
|
|
7
|
+
export class ModelCatalog extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List the endpoints and `model` values the organization associated with the API
|
|
10
|
+
* key has access to, grouped by model. An entry is `available` when model
|
|
11
|
+
* admission, the check a request makes on its `model` value before reading the
|
|
12
|
+
* body, accepts that value on that endpoint for the organization now, and `gated`
|
|
13
|
+
* with a reason when admission refuses it for a workspace policy or because the
|
|
14
|
+
* task it runs has been retired. A `model` value admission refuses for any other
|
|
15
|
+
* reason, such as no access or a release that has not reached the organization,
|
|
16
|
+
* has no entry. Deprecated and retired `model` values have no entry, and a request
|
|
17
|
+
* for a retired one is refused with a sunset error. A `model` value not yet
|
|
18
|
+
* announced has an entry only when admission accepts it, listed in
|
|
19
|
+
* `ungroupedEntries` and never `gated`. Checks that depend on the caller, the
|
|
20
|
+
* request or the moment run afterwards, at submission, and refuse with their own
|
|
21
|
+
* errors: the caller's region, the organization's country lock, daily task limits,
|
|
22
|
+
* credits, and provider outages.
|
|
23
|
+
*/
|
|
24
|
+
list(options?: RequestOptions): APIPromise<ModelCatalogListResponse> {
|
|
25
|
+
return this._client.get('/v1/model_catalog', options);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ModelCatalogListResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The models the organization has access to, with an entry per endpoint and
|
|
32
|
+
* `model` value. A `model` value admission refuses on an endpoint for a reason
|
|
33
|
+
* other than a workspace policy or a retired task, such as no access, has no
|
|
34
|
+
* entry. Deprecated and retired `model` values have no entry, and neither does a
|
|
35
|
+
* `model` value not yet announced that admission refuses.
|
|
36
|
+
*/
|
|
37
|
+
models: Array<ModelCatalogListResponse.Model>;
|
|
38
|
+
|
|
39
|
+
schemaVersion: 1;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Entries for `model` values that belong to no model listed in `models`, including
|
|
43
|
+
* every `model` value not yet announced.
|
|
44
|
+
*/
|
|
45
|
+
ungroupedEntries: Array<ModelCatalogListResponse.UngroupedEntry>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export namespace ModelCatalogListResponse {
|
|
49
|
+
/**
|
|
50
|
+
* A model, with the endpoints and `model` values that request it.
|
|
51
|
+
*/
|
|
52
|
+
export interface Model {
|
|
53
|
+
/**
|
|
54
|
+
* The model's catalog identifier.
|
|
55
|
+
*/
|
|
56
|
+
id: string;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Each endpoint and `model` value for this model, each answered on its own.
|
|
60
|
+
*/
|
|
61
|
+
entries: Array<Model.Entry>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The kind of media the model produces.
|
|
65
|
+
*/
|
|
66
|
+
medium: 'image' | 'video' | 'audio' | 'mesh';
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The model's display name.
|
|
70
|
+
*/
|
|
71
|
+
name: string;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export namespace Model {
|
|
75
|
+
/**
|
|
76
|
+
* A `model` value one endpoint accepts, and whether the organization may request
|
|
77
|
+
* it there.
|
|
78
|
+
*/
|
|
79
|
+
export interface Entry {
|
|
80
|
+
/**
|
|
81
|
+
* The endpoint path that accepts this `model` value.
|
|
82
|
+
*/
|
|
83
|
+
path: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* The value to send as `model` in a request to `path`.
|
|
87
|
+
*/
|
|
88
|
+
requestName: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* `available` when model admission accepts this `model` value on this endpoint for
|
|
92
|
+
* the organization now. `gated` when admission refuses it for a workspace policy
|
|
93
|
+
* or because the task it runs has been retired, explained in `reason`; a `model`
|
|
94
|
+
* value not yet announced is never `gated`. Admission does not cover the checks a
|
|
95
|
+
* request meets later at submission, which refuse with their own errors.
|
|
96
|
+
*/
|
|
97
|
+
state: 'available' | 'gated';
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Why a request for a gated model would be refused.
|
|
101
|
+
*/
|
|
102
|
+
reason?: string;
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* A stable code for `reason` on a gated entry, for clients that write their own
|
|
106
|
+
* message. Known codes: `sunset` when admission refuses because the task it runs
|
|
107
|
+
* has been retired; `admin_disabled`, `runway_disabled`, `not_purchased` or
|
|
108
|
+
* `region_restricted` when a workspace policy refuses it (`runway_disabled` when
|
|
109
|
+
* Runway turned the model off for the workspace and its admins cannot turn it on).
|
|
110
|
+
* New codes may be added; treat a code you do not recognize as absent and show
|
|
111
|
+
* `reason`.
|
|
112
|
+
*/
|
|
113
|
+
reasonCode?: string;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* A `model` value one endpoint accepts, and whether the organization may request
|
|
119
|
+
* it there.
|
|
120
|
+
*/
|
|
121
|
+
export interface UngroupedEntry {
|
|
122
|
+
/**
|
|
123
|
+
* The endpoint path that accepts this `model` value.
|
|
124
|
+
*/
|
|
125
|
+
path: string;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The value to send as `model` in a request to `path`.
|
|
129
|
+
*/
|
|
130
|
+
requestName: string;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* `available` when model admission accepts this `model` value on this endpoint for
|
|
134
|
+
* the organization now. `gated` when admission refuses it for a workspace policy
|
|
135
|
+
* or because the task it runs has been retired, explained in `reason`; a `model`
|
|
136
|
+
* value not yet announced is never `gated`. Admission does not cover the checks a
|
|
137
|
+
* request meets later at submission, which refuse with their own errors.
|
|
138
|
+
*/
|
|
139
|
+
state: 'available' | 'gated';
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Why a request for a gated model would be refused.
|
|
143
|
+
*/
|
|
144
|
+
reason?: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* A stable code for `reason` on a gated entry, for clients that write their own
|
|
148
|
+
* message. Known codes: `sunset` when admission refuses because the task it runs
|
|
149
|
+
* has been retired; `admin_disabled`, `runway_disabled`, `not_purchased` or
|
|
150
|
+
* `region_restricted` when a workspace policy refuses it (`runway_disabled` when
|
|
151
|
+
* Runway turned the model off for the workspace and its admins cannot turn it on).
|
|
152
|
+
* New codes may be added; treat a code you do not recognize as absent and show
|
|
153
|
+
* `reason`.
|
|
154
|
+
*/
|
|
155
|
+
reasonCode?: string;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export declare namespace ModelCatalog {
|
|
160
|
+
export { type ModelCatalogListResponse as ModelCatalogListResponse };
|
|
161
|
+
}
|
|
@@ -8,7 +8,10 @@ export {
|
|
|
8
8
|
} from './organization';
|
|
9
9
|
export {
|
|
10
10
|
Webapp,
|
|
11
|
+
type WebappListMembersResponse,
|
|
11
12
|
type WebappListUsageResponse,
|
|
13
|
+
type WebappListMembersParams,
|
|
12
14
|
type WebappListUsageParams,
|
|
15
|
+
type WebappListMembersResponsesCursorPage,
|
|
13
16
|
type WebappListUsageResponsesCursorPage,
|
|
14
17
|
} from './webapp/index';
|
|
@@ -4,6 +4,9 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import * as WebappAPI from './webapp/webapp';
|
|
5
5
|
import {
|
|
6
6
|
Webapp,
|
|
7
|
+
WebappListMembersParams,
|
|
8
|
+
WebappListMembersResponse,
|
|
9
|
+
WebappListMembersResponsesCursorPage,
|
|
7
10
|
WebappListUsageParams,
|
|
8
11
|
WebappListUsageResponse,
|
|
9
12
|
WebappListUsageResponsesCursorPage,
|
|
@@ -112,6 +115,9 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
112
115
|
* The list of models with usage during the queried time range.
|
|
113
116
|
*/
|
|
114
117
|
models: Array<
|
|
118
|
+
| 'trellis_2'
|
|
119
|
+
| 'hunyuan_3d_3_1_pro'
|
|
120
|
+
| 'tripo3d_h3_1'
|
|
115
121
|
| 'gen4.5'
|
|
116
122
|
| 'gen3a_turbo'
|
|
117
123
|
| 'gen4_turbo'
|
|
@@ -148,6 +154,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
148
154
|
| 'seed_audio'
|
|
149
155
|
| 'eleven_v3'
|
|
150
156
|
| 'eleven_v4'
|
|
157
|
+
| 'eleven_v4_turbo'
|
|
151
158
|
| 'gemini_3.8_flash_tts'
|
|
152
159
|
| 'gemini_3.8_flash_lite_tts'
|
|
153
160
|
| 'eleven_text_to_sound_v2'
|
|
@@ -156,7 +163,6 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
156
163
|
| 'eleven_voice_isolation'
|
|
157
164
|
| 'eleven_voice_dubbing'
|
|
158
165
|
| 'eleven_multilingual_sts_v2'
|
|
159
|
-
| 'eleven_scribe_v2'
|
|
160
166
|
| 'gwm1_avatars'
|
|
161
167
|
| 'gwm1_avatar_async_audio_to_video'
|
|
162
168
|
| 'gwm1_avatar_async_text_to_video'
|
|
@@ -181,6 +187,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
181
187
|
| 'bria_fibo_edit_1_5'
|
|
182
188
|
| 'ideogram_4_0'
|
|
183
189
|
| 'ideogram_4_5'
|
|
190
|
+
| 'ideogram_4_6'
|
|
184
191
|
| 'magnific_precision_upscaler_v2'
|
|
185
192
|
| 'magnific_video_upscaler_creative'
|
|
186
193
|
| 'ruby'
|
|
@@ -258,6 +265,9 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
258
265
|
* The model that credits were spent on.
|
|
259
266
|
*/
|
|
260
267
|
model:
|
|
268
|
+
| 'trellis_2'
|
|
269
|
+
| 'hunyuan_3d_3_1_pro'
|
|
270
|
+
| 'tripo3d_h3_1'
|
|
261
271
|
| 'gen4.5'
|
|
262
272
|
| 'gen3a_turbo'
|
|
263
273
|
| 'gen4_turbo'
|
|
@@ -294,6 +304,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
294
304
|
| 'seed_audio'
|
|
295
305
|
| 'eleven_v3'
|
|
296
306
|
| 'eleven_v4'
|
|
307
|
+
| 'eleven_v4_turbo'
|
|
297
308
|
| 'gemini_3.8_flash_tts'
|
|
298
309
|
| 'gemini_3.8_flash_lite_tts'
|
|
299
310
|
| 'eleven_text_to_sound_v2'
|
|
@@ -302,7 +313,6 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
302
313
|
| 'eleven_voice_isolation'
|
|
303
314
|
| 'eleven_voice_dubbing'
|
|
304
315
|
| 'eleven_multilingual_sts_v2'
|
|
305
|
-
| 'eleven_scribe_v2'
|
|
306
316
|
| 'gwm1_avatars'
|
|
307
317
|
| 'gwm1_avatar_async_audio_to_video'
|
|
308
318
|
| 'gwm1_avatar_async_text_to_video'
|
|
@@ -327,6 +337,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
327
337
|
| 'bria_fibo_edit_1_5'
|
|
328
338
|
| 'ideogram_4_0'
|
|
329
339
|
| 'ideogram_4_5'
|
|
340
|
+
| 'ideogram_4_6'
|
|
330
341
|
| 'magnific_precision_upscaler_v2'
|
|
331
342
|
| 'magnific_video_upscaler_creative'
|
|
332
343
|
| 'ruby'
|
|
@@ -437,8 +448,11 @@ export declare namespace Organization {
|
|
|
437
448
|
|
|
438
449
|
export {
|
|
439
450
|
Webapp as Webapp,
|
|
451
|
+
type WebappListMembersResponse as WebappListMembersResponse,
|
|
440
452
|
type WebappListUsageResponse as WebappListUsageResponse,
|
|
453
|
+
type WebappListMembersResponsesCursorPage as WebappListMembersResponsesCursorPage,
|
|
441
454
|
type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage,
|
|
455
|
+
type WebappListMembersParams as WebappListMembersParams,
|
|
442
456
|
type WebappListUsageParams as WebappListUsageParams,
|
|
443
457
|
};
|
|
444
458
|
}
|
|
@@ -44,6 +44,7 @@ export interface AuditLogRetrieveResponse {
|
|
|
44
44
|
*/
|
|
45
45
|
action:
|
|
46
46
|
| 'AgentArtifactCommentCreated'
|
|
47
|
+
| 'AgentArtifactCommentDeleted'
|
|
47
48
|
| 'AgentArtifactCreated'
|
|
48
49
|
| 'AgentArtifactVersionSaved'
|
|
49
50
|
| 'AgentArtifactSessionAttached'
|
|
@@ -151,6 +152,7 @@ export interface AuditLogRetrieveResponse {
|
|
|
151
152
|
| 'AdCreativeApprovalRevoked'
|
|
152
153
|
| 'AdCreativeArchived'
|
|
153
154
|
| 'AdCreativeUnarchived'
|
|
155
|
+
| 'AdCreativeCopyUpdated'
|
|
154
156
|
| 'AdPublishBatchQueued'
|
|
155
157
|
| 'AdPublishBatchCancelled'
|
|
156
158
|
| 'AdPublishBatchRetried'
|
|
@@ -179,6 +181,8 @@ export interface AuditLogRetrieveResponse {
|
|
|
179
181
|
| 'EnterpriseSpendCapEnforcementUpdated'
|
|
180
182
|
| 'OnboardingBonusGranted'
|
|
181
183
|
| 'PromotionCreditsGranted'
|
|
184
|
+
| 'CreditsGranted'
|
|
185
|
+
| 'SpendCapAmountChanged'
|
|
182
186
|
| 'AwsMarketplaceEnterpriseSubscriptionLinked';
|
|
183
187
|
|
|
184
188
|
/**
|
|
@@ -271,6 +275,10 @@ export namespace AuditLogRetrieveResponse {
|
|
|
271
275
|
|
|
272
276
|
'Ad review request ID'?: string;
|
|
273
277
|
|
|
278
|
+
'Ad revision ID'?: string;
|
|
279
|
+
|
|
280
|
+
'Ad revision number'?: string;
|
|
281
|
+
|
|
274
282
|
'Ad sync end date'?: string;
|
|
275
283
|
|
|
276
284
|
'Ad sync run ID'?: string;
|
|
@@ -339,6 +347,10 @@ export namespace AuditLogRetrieveResponse {
|
|
|
339
347
|
|
|
340
348
|
Connector?: string;
|
|
341
349
|
|
|
350
|
+
'Contract end'?: string;
|
|
351
|
+
|
|
352
|
+
'Contract start'?: string;
|
|
353
|
+
|
|
342
354
|
'Creatives cancelled'?: number;
|
|
343
355
|
|
|
344
356
|
'Creatives queued'?: number;
|
|
@@ -367,6 +379,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
367
379
|
|
|
368
380
|
'Files moved'?: number;
|
|
369
381
|
|
|
382
|
+
'From workspace'?: string;
|
|
383
|
+
|
|
370
384
|
'From workspace ID'?: number;
|
|
371
385
|
|
|
372
386
|
'Group name'?: string;
|
|
@@ -395,6 +409,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
395
409
|
|
|
396
410
|
Model?: string;
|
|
397
411
|
|
|
412
|
+
'Models changed'?: Array<string>;
|
|
413
|
+
|
|
398
414
|
'New email'?: string;
|
|
399
415
|
|
|
400
416
|
'New role'?: string;
|
|
@@ -425,6 +441,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
425
441
|
|
|
426
442
|
'Previous role'?: string | null;
|
|
427
443
|
|
|
444
|
+
'Previous spend cap'?: number;
|
|
445
|
+
|
|
428
446
|
'Previous text'?: string;
|
|
429
447
|
|
|
430
448
|
'Previous value'?: string | number | boolean | { [key: string]: boolean } | null;
|
|
@@ -487,6 +505,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
487
505
|
|
|
488
506
|
'Spend cap change'?: number;
|
|
489
507
|
|
|
508
|
+
'Spend cap used'?: number;
|
|
509
|
+
|
|
490
510
|
'Status after'?: string;
|
|
491
511
|
|
|
492
512
|
'Status before'?: string;
|
|
@@ -501,6 +521,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
501
521
|
|
|
502
522
|
'Task ID'?: string;
|
|
503
523
|
|
|
524
|
+
'To workspace'?: string;
|
|
525
|
+
|
|
504
526
|
'To workspace ID'?: number;
|
|
505
527
|
|
|
506
528
|
Tool?: string;
|
|
@@ -529,6 +551,7 @@ export interface AuditLogListResponse {
|
|
|
529
551
|
*/
|
|
530
552
|
action:
|
|
531
553
|
| 'AgentArtifactCommentCreated'
|
|
554
|
+
| 'AgentArtifactCommentDeleted'
|
|
532
555
|
| 'AgentArtifactCreated'
|
|
533
556
|
| 'AgentArtifactVersionSaved'
|
|
534
557
|
| 'AgentArtifactSessionAttached'
|
|
@@ -636,6 +659,7 @@ export interface AuditLogListResponse {
|
|
|
636
659
|
| 'AdCreativeApprovalRevoked'
|
|
637
660
|
| 'AdCreativeArchived'
|
|
638
661
|
| 'AdCreativeUnarchived'
|
|
662
|
+
| 'AdCreativeCopyUpdated'
|
|
639
663
|
| 'AdPublishBatchQueued'
|
|
640
664
|
| 'AdPublishBatchCancelled'
|
|
641
665
|
| 'AdPublishBatchRetried'
|
|
@@ -664,6 +688,8 @@ export interface AuditLogListResponse {
|
|
|
664
688
|
| 'EnterpriseSpendCapEnforcementUpdated'
|
|
665
689
|
| 'OnboardingBonusGranted'
|
|
666
690
|
| 'PromotionCreditsGranted'
|
|
691
|
+
| 'CreditsGranted'
|
|
692
|
+
| 'SpendCapAmountChanged'
|
|
667
693
|
| 'AwsMarketplaceEnterpriseSubscriptionLinked';
|
|
668
694
|
|
|
669
695
|
/**
|
|
@@ -726,6 +752,10 @@ export namespace AuditLogListResponse {
|
|
|
726
752
|
|
|
727
753
|
'Ad review request ID'?: string;
|
|
728
754
|
|
|
755
|
+
'Ad revision ID'?: string;
|
|
756
|
+
|
|
757
|
+
'Ad revision number'?: string;
|
|
758
|
+
|
|
729
759
|
'Ad sync end date'?: string;
|
|
730
760
|
|
|
731
761
|
'Ad sync run ID'?: string;
|
|
@@ -794,6 +824,10 @@ export namespace AuditLogListResponse {
|
|
|
794
824
|
|
|
795
825
|
Connector?: string;
|
|
796
826
|
|
|
827
|
+
'Contract end'?: string;
|
|
828
|
+
|
|
829
|
+
'Contract start'?: string;
|
|
830
|
+
|
|
797
831
|
'Creatives cancelled'?: number;
|
|
798
832
|
|
|
799
833
|
'Creatives queued'?: number;
|
|
@@ -822,6 +856,8 @@ export namespace AuditLogListResponse {
|
|
|
822
856
|
|
|
823
857
|
'Files moved'?: number;
|
|
824
858
|
|
|
859
|
+
'From workspace'?: string;
|
|
860
|
+
|
|
825
861
|
'From workspace ID'?: number;
|
|
826
862
|
|
|
827
863
|
'Group name'?: string;
|
|
@@ -850,6 +886,8 @@ export namespace AuditLogListResponse {
|
|
|
850
886
|
|
|
851
887
|
Model?: string;
|
|
852
888
|
|
|
889
|
+
'Models changed'?: Array<string>;
|
|
890
|
+
|
|
853
891
|
'New email'?: string;
|
|
854
892
|
|
|
855
893
|
'New role'?: string;
|
|
@@ -880,6 +918,8 @@ export namespace AuditLogListResponse {
|
|
|
880
918
|
|
|
881
919
|
'Previous role'?: string | null;
|
|
882
920
|
|
|
921
|
+
'Previous spend cap'?: number;
|
|
922
|
+
|
|
883
923
|
'Previous text'?: string;
|
|
884
924
|
|
|
885
925
|
'Previous value'?: string | number | boolean | { [key: string]: boolean } | null;
|
|
@@ -942,6 +982,8 @@ export namespace AuditLogListResponse {
|
|
|
942
982
|
|
|
943
983
|
'Spend cap change'?: number;
|
|
944
984
|
|
|
985
|
+
'Spend cap used'?: number;
|
|
986
|
+
|
|
945
987
|
'Status after'?: string;
|
|
946
988
|
|
|
947
989
|
'Status before'?: string;
|
|
@@ -956,6 +998,8 @@ export namespace AuditLogListResponse {
|
|
|
956
998
|
|
|
957
999
|
'Task ID'?: string;
|
|
958
1000
|
|
|
1001
|
+
'To workspace'?: string;
|
|
1002
|
+
|
|
959
1003
|
'To workspace ID'?: number;
|
|
960
1004
|
|
|
961
1005
|
Tool?: string;
|
|
@@ -992,10 +1036,11 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
992
1036
|
/**
|
|
993
1037
|
* Restrict results to these audit log actions, as a comma-separated list of up to
|
|
994
1038
|
* 50 actions. Allowed values: `AgentArtifactCommentCreated`,
|
|
995
|
-
* `
|
|
996
|
-
* `
|
|
997
|
-
* `
|
|
998
|
-
* `
|
|
1039
|
+
* `AgentArtifactCommentDeleted`, `AgentArtifactCreated`,
|
|
1040
|
+
* `AgentArtifactVersionSaved`, `AgentArtifactSessionAttached`,
|
|
1041
|
+
* `AgentArtifactSessionDetached`, `UserLogin`, `PasswordChanged`,
|
|
1042
|
+
* `EmailChangeRequested`, `EmailChanged`, `UserRegistered`, `UserAccountDeleted`,
|
|
1043
|
+
* `WorkspaceCreated`, `WorkspaceDeleted`, `MemberInvited`,
|
|
999
1044
|
* `MemberInviteReminderSent`, `MemberRemoved`, `MemberRoleChanged`,
|
|
1000
1045
|
* `InviteAccepted`, `MemberJoinedViaDomain`, `TeamSettingsUpdated`,
|
|
1001
1046
|
* `InviteLinkToggled`, `UserGroupCreated`, `UserGroupUpdated`, `UserGroupDeleted`,
|
|
@@ -1030,20 +1075,21 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
1030
1075
|
* `AdConnectionDisconnected`, `AdWorkspaceOnboardingUpdated`,
|
|
1031
1076
|
* `AdCreativeReviewSubmitted`, `AdCreativeReviewCancelled`,
|
|
1032
1077
|
* `AdCreativeReviewDecided`, `AdCreativeApprovalRevoked`, `AdCreativeArchived`,
|
|
1033
|
-
* `AdCreativeUnarchived`, `
|
|
1034
|
-
* `
|
|
1035
|
-
* `
|
|
1036
|
-
* `
|
|
1037
|
-
* `
|
|
1038
|
-
* `
|
|
1039
|
-
* `OrganizationApiAccountMemberInvited`,
|
|
1078
|
+
* `AdCreativeUnarchived`, `AdCreativeCopyUpdated`, `AdPublishBatchQueued`,
|
|
1079
|
+
* `AdPublishBatchCancelled`, `AdPublishBatchRetried`, `AdStatusChanged`,
|
|
1080
|
+
* `AdCampaignSetupDrafted`, `AdCampaignSetupDiscarded`,
|
|
1081
|
+
* `AdCampaignSetupConfirmed`, `AdCampaignSetupCancelled`,
|
|
1082
|
+
* `AdCampaignSetupRetried`, `OrganizationSettingsUpdated`,
|
|
1083
|
+
* `OrganizationDisabledModelsUpdated`, `OrganizationAgentSandboxUpdated`,
|
|
1084
|
+
* `OrganizationApiAccountReleased`, `OrganizationApiAccountMemberInvited`,
|
|
1040
1085
|
* `OrganizationApiAccountMemberRoleChanged`,
|
|
1041
1086
|
* `OrganizationApiAccountMemberRemoved`, `WorkspaceCountryLockUpdated`,
|
|
1042
1087
|
* `WorkspaceTagCreated`, `WorkspaceTagUpdated`, `WorkspaceTagDeleted`,
|
|
1043
1088
|
* `WorkspaceTagAssigned`, `WorkspaceTagUnassigned`, `MeteredBillingConfigUpdated`,
|
|
1044
1089
|
* `MeteredBillingRefillTriggered`, `MeteredBillingRetryTriggered`,
|
|
1045
1090
|
* `EnterpriseSpendCapEnforcementUpdated`, `OnboardingBonusGranted`,
|
|
1046
|
-
* `PromotionCreditsGranted`, `
|
|
1091
|
+
* `PromotionCreditsGranted`, `CreditsGranted`, `SpendCapAmountChanged`,
|
|
1092
|
+
* `AwsMarketplaceEnterpriseSubscriptionLinked`.
|
|
1047
1093
|
*/
|
|
1048
1094
|
actions?: string;
|
|
1049
1095
|
|
|
@@ -10,7 +10,10 @@ export {
|
|
|
10
10
|
} from './audit-logs';
|
|
11
11
|
export {
|
|
12
12
|
Webapp,
|
|
13
|
+
type WebappListMembersResponse,
|
|
13
14
|
type WebappListUsageResponse,
|
|
15
|
+
type WebappListMembersParams,
|
|
14
16
|
type WebappListUsageParams,
|
|
17
|
+
type WebappListMembersResponsesCursorPage,
|
|
15
18
|
type WebappListUsageResponsesCursorPage,
|
|
16
19
|
} from './webapp';
|
|
@@ -16,6 +16,22 @@ import { RequestOptions } from '../../../internal/request-options';
|
|
|
16
16
|
export class Webapp extends APIResource {
|
|
17
17
|
auditLogs: AuditLogsAPI.AuditLogs = new AuditLogsAPI.AuditLogs(this._client);
|
|
18
18
|
|
|
19
|
+
/**
|
|
20
|
+
* List the members of the linked Runway workspaces you administer, one row per
|
|
21
|
+
* member per workspace, including pending invites and members who were removed.
|
|
22
|
+
* Ordered by `membershipId`. Authorized via the account link between this API
|
|
23
|
+
* project and the workspace.
|
|
24
|
+
*/
|
|
25
|
+
listMembers(
|
|
26
|
+
query: WebappListMembersParams | null | undefined = {},
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): PagePromise<WebappListMembersResponsesCursorPage, WebappListMembersResponse> {
|
|
29
|
+
return this._client.getAPIList('/v1/organization/webapp/members', CursorPage<WebappListMembersResponse>, {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
|
|
19
35
|
/**
|
|
20
36
|
* List per-generation credit-usage rows for the linked Runway workspaces you
|
|
21
37
|
* administer, newest first. Unlike `/v1/organization/usage` (this API project's
|
|
@@ -33,8 +49,77 @@ export class Webapp extends APIResource {
|
|
|
33
49
|
}
|
|
34
50
|
}
|
|
35
51
|
|
|
52
|
+
export type WebappListMembersResponsesCursorPage = CursorPage<WebappListMembersResponse>;
|
|
53
|
+
|
|
36
54
|
export type WebappListUsageResponsesCursorPage = CursorPage<WebappListUsageResponse>;
|
|
37
55
|
|
|
56
|
+
export interface WebappListMembersResponse {
|
|
57
|
+
/**
|
|
58
|
+
* Why the membership is `deactivated`. `removed`: the member was removed from the
|
|
59
|
+
* workspace. `invite_ended`: the invite was declined or revoked, which are
|
|
60
|
+
* recorded the same way. `suspended`: the user is suspended. `null` unless
|
|
61
|
+
* `status` is `deactivated`.
|
|
62
|
+
*/
|
|
63
|
+
deactivationReason: 'removed' | 'invite_ended' | 'suspended' | null;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Approximately when the member was removed, or the invite was declined or
|
|
67
|
+
* revoked: the membership's last change. `null` when the membership was not ended,
|
|
68
|
+
* including for a suspended user.
|
|
69
|
+
*/
|
|
70
|
+
deprovisionedAt: string | null;
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Email of the member, or the email the invite was sent to.
|
|
74
|
+
*/
|
|
75
|
+
email: string;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Last UTC date the member used Runway, on the web or mobile app and in any
|
|
79
|
+
* workspace. `null` when they never accepted the invite or have no recorded
|
|
80
|
+
* activity.
|
|
81
|
+
*/
|
|
82
|
+
lastActiveDate: string | null;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Unique ID of the membership. Stable across requests, so use it to update a
|
|
86
|
+
* member's row between pulls.
|
|
87
|
+
*/
|
|
88
|
+
membershipId: number;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* When the member was added, or when the invite was sent.
|
|
92
|
+
*/
|
|
93
|
+
provisionedAt: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Role in the workspace. `non-generating-admin` is a Billing Admin.
|
|
97
|
+
*/
|
|
98
|
+
role: 'viewer' | 'editor' | 'admin' | 'non-generating-admin';
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* `active`: a member of the workspace. `invited`: invited, and the invite is not
|
|
102
|
+
* accepted yet. `deactivated`: no longer a member; `deactivationReason` says why.
|
|
103
|
+
*/
|
|
104
|
+
status: 'active' | 'invited' | 'deactivated';
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* ID of the member's Runway user. It doesn't change when their email does. `null`
|
|
108
|
+
* for an invite to an email with no Runway account yet.
|
|
109
|
+
*/
|
|
110
|
+
userId: number | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* ID of the workspace.
|
|
114
|
+
*/
|
|
115
|
+
workspaceId: number;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Name of the workspace.
|
|
119
|
+
*/
|
|
120
|
+
workspaceName: string;
|
|
121
|
+
}
|
|
122
|
+
|
|
38
123
|
export interface WebappListUsageResponse {
|
|
39
124
|
/**
|
|
40
125
|
* Credits charged for this generation.
|
|
@@ -145,6 +230,22 @@ export interface WebappListUsageResponse {
|
|
|
145
230
|
workspaceName: string;
|
|
146
231
|
}
|
|
147
232
|
|
|
233
|
+
export interface WebappListMembersParams extends CursorPageParams {
|
|
234
|
+
/**
|
|
235
|
+
* Organization to report on. Optional when this API project is linked to a single
|
|
236
|
+
* organization; required when it is linked to more than one. If it is missing
|
|
237
|
+
* then, the 400 response lists the IDs and names of the linked organizations in
|
|
238
|
+
* `details.organizations`.
|
|
239
|
+
*/
|
|
240
|
+
organizationId?: string;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Restrict results to these workspace IDs, as a comma-separated list of up to 50
|
|
244
|
+
* IDs. Defaults to every workspace you administer in the organization.
|
|
245
|
+
*/
|
|
246
|
+
workspaceIds?: string;
|
|
247
|
+
}
|
|
248
|
+
|
|
148
249
|
export interface WebappListUsageParams extends CursorPageParams {
|
|
149
250
|
/**
|
|
150
251
|
* Start of the time window (inclusive), ISO-8601 datetime or date. A date means
|
|
@@ -178,8 +279,11 @@ Webapp.AuditLogs = AuditLogs;
|
|
|
178
279
|
|
|
179
280
|
export declare namespace Webapp {
|
|
180
281
|
export {
|
|
282
|
+
type WebappListMembersResponse as WebappListMembersResponse,
|
|
181
283
|
type WebappListUsageResponse as WebappListUsageResponse,
|
|
284
|
+
type WebappListMembersResponsesCursorPage as WebappListMembersResponsesCursorPage,
|
|
182
285
|
type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage,
|
|
286
|
+
type WebappListMembersParams as WebappListMembersParams,
|
|
183
287
|
type WebappListUsageParams as WebappListUsageParams,
|
|
184
288
|
};
|
|
185
289
|
|
package/src/resources/tasks.ts
CHANGED
|
@@ -275,8 +275,14 @@ export namespace TaskRetrieveResponse {
|
|
|
275
275
|
status: 'SUCCEEDED';
|
|
276
276
|
|
|
277
277
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
278
|
+
* The ads an ad generation task made. Each URI matches the output URL at the same
|
|
279
|
+
* index.
|
|
280
|
+
*/
|
|
281
|
+
ads?: Array<Succeeded.Ad>;
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* Layer details for successful layer decomposition tasks. Each URI matches the
|
|
285
|
+
* output URL at the same index.
|
|
280
286
|
*/
|
|
281
287
|
layers?: Array<Succeeded.Layer>;
|
|
282
288
|
}
|
|
@@ -293,6 +299,31 @@ export namespace TaskRetrieveResponse {
|
|
|
293
299
|
credits: number;
|
|
294
300
|
}
|
|
295
301
|
|
|
302
|
+
export interface Ad {
|
|
303
|
+
/**
|
|
304
|
+
* Which version this is, such as "9:16, Spanish".
|
|
305
|
+
*/
|
|
306
|
+
label: string;
|
|
307
|
+
|
|
308
|
+
mediaType: 'image' | 'video';
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* An ephemeral URL for this ad, matching output at the same index.
|
|
312
|
+
*/
|
|
313
|
+
uri: string;
|
|
314
|
+
|
|
315
|
+
durationSeconds?: number;
|
|
316
|
+
|
|
317
|
+
height?: number;
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* The post copy to run with the ad, when there is any.
|
|
321
|
+
*/
|
|
322
|
+
postText?: string;
|
|
323
|
+
|
|
324
|
+
width?: number;
|
|
325
|
+
}
|
|
326
|
+
|
|
296
327
|
export interface Layer {
|
|
297
328
|
/**
|
|
298
329
|
* An ephemeral URL for this layer, matching output at the same index.
|