@runwayml/sdk 4.28.0 → 4.30.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 +26 -0
- package/README.md +2 -2
- package/package.json +1 -1
- package/resources/avatar-conversations.d.mts +1 -1
- package/resources/avatar-conversations.d.mts.map +1 -1
- package/resources/avatar-conversations.d.ts +1 -1
- package/resources/avatar-conversations.d.ts.map +1 -1
- package/resources/avatar-conversations.js +1 -1
- package/resources/avatar-conversations.js.map +1 -1
- package/resources/avatar-conversations.mjs +1 -1
- package/resources/avatar-conversations.mjs.map +1 -1
- package/resources/avatars.d.mts +2 -4
- package/resources/avatars.d.mts.map +1 -1
- package/resources/avatars.d.ts +2 -4
- package/resources/avatars.d.ts.map +1 -1
- package/resources/avatars.js +2 -4
- package/resources/avatars.js.map +1 -1
- package/resources/avatars.mjs +2 -4
- package/resources/avatars.mjs.map +1 -1
- package/resources/documents.d.mts +4 -10
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +4 -10
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +2 -8
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +2 -8
- package/resources/documents.mjs.map +1 -1
- package/resources/generate/image.d.mts +2 -2
- package/resources/generate/image.d.ts +2 -2
- 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-video.d.mts +78 -2
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +78 -2
- package/resources/image-to-video.d.ts.map +1 -1
- 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 +54 -5
- package/resources/organization/organization.d.mts.map +1 -1
- package/resources/organization/organization.d.ts +54 -5
- package/resources/organization/organization.d.ts.map +1 -1
- package/resources/organization/organization.js +1 -1
- package/resources/organization/organization.js.map +1 -1
- package/resources/organization/organization.mjs +1 -1
- package/resources/organization/organization.mjs.map +1 -1
- package/resources/organization/webapp/audit-logs.d.mts +64 -12
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -1
- package/resources/organization/webapp/audit-logs.d.ts +64 -12
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -1
- package/resources/organization/webapp/audit-logs.js +1 -1
- package/resources/organization/webapp/audit-logs.js.map +1 -1
- package/resources/organization/webapp/audit-logs.mjs +1 -1
- package/resources/organization/webapp/audit-logs.mjs.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 +95 -2
- package/resources/organization/webapp/webapp.d.mts.map +1 -1
- package/resources/organization/webapp/webapp.d.ts +95 -2
- 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/routers.d.mts +32 -26
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +32 -26
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +2 -2
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +2 -2
- package/resources/routers.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 +204 -1
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +204 -1
- package/resources/text-to-image.d.ts.map +1 -1
- 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 +94 -3
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +94 -3
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +107 -3
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +107 -3
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/voices.d.mts +1 -1
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +1 -1
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.js +1 -1
- package/resources/voices.js.map +1 -1
- package/resources/voices.mjs +1 -1
- package/resources/voices.mjs.map +1 -1
- package/src/resources/avatar-conversations.ts +1 -1
- package/src/resources/avatars.ts +2 -4
- package/src/resources/documents.ts +4 -10
- package/src/resources/generate/image.ts +2 -2
- package/src/resources/generate/video.ts +6 -0
- package/src/resources/image-to-video.ts +105 -2
- package/src/resources/organization/index.ts +3 -0
- package/src/resources/organization/organization.ts +82 -3
- package/src/resources/organization/webapp/audit-logs.ts +144 -10
- package/src/resources/organization/webapp/index.ts +3 -0
- package/src/resources/organization/webapp/webapp.ts +122 -1
- package/src/resources/routers.ts +38 -26
- package/src/resources/tasks.ts +33 -2
- package/src/resources/text-to-image.ts +350 -1
- package/src/resources/text-to-speech.ts +143 -1
- package/src/resources/text-to-video.ts +128 -3
- package/src/resources/video-to-video.ts +143 -3
- package/src/resources/voices.ts +1 -1
- 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
|
@@ -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,
|
|
@@ -25,7 +28,7 @@ export class Organization extends APIResource {
|
|
|
25
28
|
/**
|
|
26
29
|
* Fetch credit usage data broken down by model and day for the organization
|
|
27
30
|
* associated with the API key used to make the request. Up to 90 days of data can
|
|
28
|
-
* be queried at a time.
|
|
31
|
+
* be queried at a time. Usage updates hourly; recent activity may not appear yet.
|
|
29
32
|
*/
|
|
30
33
|
retrieveUsage(
|
|
31
34
|
body: OrganizationRetrieveUsageParams | null | undefined = {},
|
|
@@ -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'
|
|
@@ -138,6 +144,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
138
144
|
| 'seedream5_pro_layers'
|
|
139
145
|
| 'seedream5_pro'
|
|
140
146
|
| 'seedream5_flash'
|
|
147
|
+
| 'seedream5.5'
|
|
148
|
+
| 'seedream5.5_layers'
|
|
141
149
|
| 'seedream5_lite'
|
|
142
150
|
| 'gemini_omni_flash'
|
|
143
151
|
| 'gemini_omni_flash_1.2'
|
|
@@ -146,6 +154,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
146
154
|
| 'seed_audio'
|
|
147
155
|
| 'eleven_v3'
|
|
148
156
|
| 'eleven_v4'
|
|
157
|
+
| 'eleven_v4_turbo'
|
|
149
158
|
| 'gemini_3.8_flash_tts'
|
|
150
159
|
| 'gemini_3.8_flash_lite_tts'
|
|
151
160
|
| 'eleven_text_to_sound_v2'
|
|
@@ -154,13 +163,13 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
154
163
|
| 'eleven_voice_isolation'
|
|
155
164
|
| 'eleven_voice_dubbing'
|
|
156
165
|
| 'eleven_multilingual_sts_v2'
|
|
157
|
-
| 'eleven_scribe_v2'
|
|
158
166
|
| 'gwm1_avatars'
|
|
159
167
|
| 'gwm1_avatar_async_audio_to_video'
|
|
160
168
|
| 'gwm1_avatar_async_text_to_video'
|
|
161
169
|
| 'voice_processing'
|
|
162
170
|
| 'seedance2'
|
|
163
171
|
| 'seedance2_5'
|
|
172
|
+
| 'seedance2_5_flash'
|
|
164
173
|
| 'seedance2_fast'
|
|
165
174
|
| 'seedance2_mini'
|
|
166
175
|
| 'hailuo3'
|
|
@@ -173,10 +182,12 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
173
182
|
| 'grok_imagine_1_5_lite'
|
|
174
183
|
| 'grok_imagine_image_2'
|
|
175
184
|
| 'muse_image'
|
|
185
|
+
| 'minimax_h3_image'
|
|
176
186
|
| 'bria_fibo_1_5'
|
|
177
187
|
| 'bria_fibo_edit_1_5'
|
|
178
188
|
| 'ideogram_4_0'
|
|
179
189
|
| 'ideogram_4_5'
|
|
190
|
+
| 'ideogram_4_6'
|
|
180
191
|
| 'magnific_precision_upscaler_v2'
|
|
181
192
|
| 'magnific_video_upscaler_creative'
|
|
182
193
|
| 'ruby'
|
|
@@ -212,6 +223,20 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
212
223
|
* Reserved for future use.
|
|
213
224
|
*/
|
|
214
225
|
resultsByApiKey?: Array<OrganizationRetrieveUsageResponse.ResultsByAPIKey>;
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Credit usage broken down by tag, present when `groupBy` is set. With
|
|
229
|
+
* `groupBy: "tag"`, a generation with several tags counts toward each of them, so
|
|
230
|
+
* the buckets can add up to more than the total. With `groupBy: "tag:<key>"`, each
|
|
231
|
+
* generation counts once, under its `<key>:<value>` tag.
|
|
232
|
+
*/
|
|
233
|
+
resultsByTag?: Array<OrganizationRetrieveUsageResponse.ResultsByTag>;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The tags on usage in the queried time range, sorted alphabetically, present when
|
|
237
|
+
* `tags` or `groupBy` is set. Lists at most the 1,000 tags with the most credits.
|
|
238
|
+
*/
|
|
239
|
+
tags?: Array<string>;
|
|
215
240
|
}
|
|
216
241
|
|
|
217
242
|
export namespace OrganizationRetrieveUsageResponse {
|
|
@@ -240,6 +265,9 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
240
265
|
* The model that credits were spent on.
|
|
241
266
|
*/
|
|
242
267
|
model:
|
|
268
|
+
| 'trellis_2'
|
|
269
|
+
| 'hunyuan_3d_3_1_pro'
|
|
270
|
+
| 'tripo3d_h3_1'
|
|
243
271
|
| 'gen4.5'
|
|
244
272
|
| 'gen3a_turbo'
|
|
245
273
|
| 'gen4_turbo'
|
|
@@ -266,6 +294,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
266
294
|
| 'seedream5_pro_layers'
|
|
267
295
|
| 'seedream5_pro'
|
|
268
296
|
| 'seedream5_flash'
|
|
297
|
+
| 'seedream5.5'
|
|
298
|
+
| 'seedream5.5_layers'
|
|
269
299
|
| 'seedream5_lite'
|
|
270
300
|
| 'gemini_omni_flash'
|
|
271
301
|
| 'gemini_omni_flash_1.2'
|
|
@@ -274,6 +304,7 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
274
304
|
| 'seed_audio'
|
|
275
305
|
| 'eleven_v3'
|
|
276
306
|
| 'eleven_v4'
|
|
307
|
+
| 'eleven_v4_turbo'
|
|
277
308
|
| 'gemini_3.8_flash_tts'
|
|
278
309
|
| 'gemini_3.8_flash_lite_tts'
|
|
279
310
|
| 'eleven_text_to_sound_v2'
|
|
@@ -282,13 +313,13 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
282
313
|
| 'eleven_voice_isolation'
|
|
283
314
|
| 'eleven_voice_dubbing'
|
|
284
315
|
| 'eleven_multilingual_sts_v2'
|
|
285
|
-
| 'eleven_scribe_v2'
|
|
286
316
|
| 'gwm1_avatars'
|
|
287
317
|
| 'gwm1_avatar_async_audio_to_video'
|
|
288
318
|
| 'gwm1_avatar_async_text_to_video'
|
|
289
319
|
| 'voice_processing'
|
|
290
320
|
| 'seedance2'
|
|
291
321
|
| 'seedance2_5'
|
|
322
|
+
| 'seedance2_5_flash'
|
|
292
323
|
| 'seedance2_fast'
|
|
293
324
|
| 'seedance2_mini'
|
|
294
325
|
| 'hailuo3'
|
|
@@ -301,10 +332,12 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
301
332
|
| 'grok_imagine_1_5_lite'
|
|
302
333
|
| 'grok_imagine_image_2'
|
|
303
334
|
| 'muse_image'
|
|
335
|
+
| 'minimax_h3_image'
|
|
304
336
|
| 'bria_fibo_1_5'
|
|
305
337
|
| 'bria_fibo_edit_1_5'
|
|
306
338
|
| 'ideogram_4_0'
|
|
307
339
|
| 'ideogram_4_5'
|
|
340
|
+
| 'ideogram_4_6'
|
|
308
341
|
| 'magnific_precision_upscaler_v2'
|
|
309
342
|
| 'magnific_video_upscaler_creative'
|
|
310
343
|
| 'ruby'
|
|
@@ -343,6 +376,34 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
343
376
|
apiKeyId: string;
|
|
344
377
|
}
|
|
345
378
|
}
|
|
379
|
+
|
|
380
|
+
export interface ResultsByTag {
|
|
381
|
+
/**
|
|
382
|
+
* The date of the usage data in ISO-8601 format (YYYY-MM-DD). All dates are in
|
|
383
|
+
* UTC.
|
|
384
|
+
*/
|
|
385
|
+
date: string;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* The credits used per tag for the date.
|
|
389
|
+
*/
|
|
390
|
+
usedCredits: Array<ResultsByTag.UsedCredit>;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export namespace ResultsByTag {
|
|
394
|
+
export interface UsedCredit {
|
|
395
|
+
/**
|
|
396
|
+
* The net number of credits spent under the tag. May be negative if refunds
|
|
397
|
+
* exceeded charges on this day.
|
|
398
|
+
*/
|
|
399
|
+
amount: number;
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* The tag that credits were spent under, or null for usage without a matching tag.
|
|
403
|
+
*/
|
|
404
|
+
tag: string | null;
|
|
405
|
+
}
|
|
406
|
+
}
|
|
346
407
|
}
|
|
347
408
|
|
|
348
409
|
export interface OrganizationRetrieveUsageParams {
|
|
@@ -353,12 +414,27 @@ export interface OrganizationRetrieveUsageParams {
|
|
|
353
414
|
*/
|
|
354
415
|
beforeDate?: string;
|
|
355
416
|
|
|
417
|
+
/**
|
|
418
|
+
* Also break usage down by tag in `resultsByTag`. `"tag"` gives one bucket per
|
|
419
|
+
* tag; a generation with several tags counts toward each of them. `"tag:<key>"`
|
|
420
|
+
* (for example `"tag:team"`) gives one bucket per value of that key, so each
|
|
421
|
+
* generation counts once. Generations without a matching tag fall under a `null`
|
|
422
|
+
* tag.
|
|
423
|
+
*/
|
|
424
|
+
groupBy?: string;
|
|
425
|
+
|
|
356
426
|
/**
|
|
357
427
|
* The start date of the usage data in ISO-8601 format (YYYY-MM-DD). If
|
|
358
428
|
* unspecified, it will default to 30 days before the current date. All dates are
|
|
359
429
|
* in UTC.
|
|
360
430
|
*/
|
|
361
431
|
startDate?: string;
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Only count generations that were created with every one of these tags in the
|
|
435
|
+
* `X-Runway-Tags` header. Tags are case-insensitive. Up to 10 tags.
|
|
436
|
+
*/
|
|
437
|
+
tags?: Array<string>;
|
|
362
438
|
}
|
|
363
439
|
|
|
364
440
|
Organization.Webapp = Webapp;
|
|
@@ -372,8 +448,11 @@ export declare namespace Organization {
|
|
|
372
448
|
|
|
373
449
|
export {
|
|
374
450
|
Webapp as Webapp,
|
|
451
|
+
type WebappListMembersResponse as WebappListMembersResponse,
|
|
375
452
|
type WebappListUsageResponse as WebappListUsageResponse,
|
|
453
|
+
type WebappListMembersResponsesCursorPage as WebappListMembersResponsesCursorPage,
|
|
376
454
|
type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage,
|
|
455
|
+
type WebappListMembersParams as WebappListMembersParams,
|
|
377
456
|
type WebappListUsageParams as WebappListUsageParams,
|
|
378
457
|
};
|
|
379
458
|
}
|
|
@@ -26,7 +26,7 @@ export class AuditLogs extends APIResource {
|
|
|
26
26
|
* workspace.
|
|
27
27
|
*/
|
|
28
28
|
list(
|
|
29
|
-
query: AuditLogListParams,
|
|
29
|
+
query: AuditLogListParams | null | undefined = {},
|
|
30
30
|
options?: RequestOptions,
|
|
31
31
|
): PagePromise<AuditLogListResponsesCursorPage, AuditLogListResponse> {
|
|
32
32
|
return this._client.getAPIList('/v1/organization/webapp/audit_logs', CursorPage<AuditLogListResponse>, {
|
|
@@ -43,6 +43,12 @@ export interface AuditLogRetrieveResponse {
|
|
|
43
43
|
* The action performed.
|
|
44
44
|
*/
|
|
45
45
|
action:
|
|
46
|
+
| 'AgentArtifactCommentCreated'
|
|
47
|
+
| 'AgentArtifactCommentDeleted'
|
|
48
|
+
| 'AgentArtifactCreated'
|
|
49
|
+
| 'AgentArtifactVersionSaved'
|
|
50
|
+
| 'AgentArtifactSessionAttached'
|
|
51
|
+
| 'AgentArtifactSessionDetached'
|
|
46
52
|
| 'UserLogin'
|
|
47
53
|
| 'PasswordChanged'
|
|
48
54
|
| 'EmailChangeRequested'
|
|
@@ -97,6 +103,7 @@ export interface AuditLogRetrieveResponse {
|
|
|
97
103
|
| 'SeatsTransferred'
|
|
98
104
|
| 'SessionShared'
|
|
99
105
|
| 'SessionUnshared'
|
|
106
|
+
| 'SessionMadePrivateByAdmin'
|
|
100
107
|
| 'VideoProjectShared'
|
|
101
108
|
| 'VideoProjectUnshared'
|
|
102
109
|
| 'BrandKitShared'
|
|
@@ -125,6 +132,12 @@ export interface AuditLogRetrieveResponse {
|
|
|
125
132
|
| 'AppStudioAppSecretChanged'
|
|
126
133
|
| 'AppStudioAppRunwayAccessGranted'
|
|
127
134
|
| 'AppStudioAppRunwayAccessRevoked'
|
|
135
|
+
| 'AppStudioConnectorConnected'
|
|
136
|
+
| 'AppStudioConnectorDisconnected'
|
|
137
|
+
| 'AppStudioConnectorAppGranted'
|
|
138
|
+
| 'AppStudioConnectorAppRevoked'
|
|
139
|
+
| 'AppStudioConnectorPolicyChanged'
|
|
140
|
+
| 'AppStudioConnectorToolCalled'
|
|
128
141
|
| 'AccountLinkCreated'
|
|
129
142
|
| 'AccountLinkDeleted'
|
|
130
143
|
| 'AdConnectionAuthorizationStarted'
|
|
@@ -139,10 +152,16 @@ export interface AuditLogRetrieveResponse {
|
|
|
139
152
|
| 'AdCreativeApprovalRevoked'
|
|
140
153
|
| 'AdCreativeArchived'
|
|
141
154
|
| 'AdCreativeUnarchived'
|
|
155
|
+
| 'AdCreativeCopyUpdated'
|
|
142
156
|
| 'AdPublishBatchQueued'
|
|
143
157
|
| 'AdPublishBatchCancelled'
|
|
144
158
|
| 'AdPublishBatchRetried'
|
|
145
159
|
| 'AdStatusChanged'
|
|
160
|
+
| 'AdCampaignSetupDrafted'
|
|
161
|
+
| 'AdCampaignSetupDiscarded'
|
|
162
|
+
| 'AdCampaignSetupConfirmed'
|
|
163
|
+
| 'AdCampaignSetupCancelled'
|
|
164
|
+
| 'AdCampaignSetupRetried'
|
|
146
165
|
| 'OrganizationSettingsUpdated'
|
|
147
166
|
| 'OrganizationDisabledModelsUpdated'
|
|
148
167
|
| 'OrganizationAgentSandboxUpdated'
|
|
@@ -161,6 +180,9 @@ export interface AuditLogRetrieveResponse {
|
|
|
161
180
|
| 'MeteredBillingRetryTriggered'
|
|
162
181
|
| 'EnterpriseSpendCapEnforcementUpdated'
|
|
163
182
|
| 'OnboardingBonusGranted'
|
|
183
|
+
| 'PromotionCreditsGranted'
|
|
184
|
+
| 'CreditsGranted'
|
|
185
|
+
| 'SpendCapAmountChanged'
|
|
164
186
|
| 'AwsMarketplaceEnterpriseSubscriptionLinked';
|
|
165
187
|
|
|
166
188
|
/**
|
|
@@ -253,6 +275,10 @@ export namespace AuditLogRetrieveResponse {
|
|
|
253
275
|
|
|
254
276
|
'Ad review request ID'?: string;
|
|
255
277
|
|
|
278
|
+
'Ad revision ID'?: string;
|
|
279
|
+
|
|
280
|
+
'Ad revision number'?: string;
|
|
281
|
+
|
|
256
282
|
'Ad sync end date'?: string;
|
|
257
283
|
|
|
258
284
|
'Ad sync run ID'?: string;
|
|
@@ -291,6 +317,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
291
317
|
|
|
292
318
|
Application?: string;
|
|
293
319
|
|
|
320
|
+
'Asset ID'?: string;
|
|
321
|
+
|
|
294
322
|
'Asset name'?: string;
|
|
295
323
|
|
|
296
324
|
'Asset type'?: string;
|
|
@@ -301,6 +329,12 @@ export namespace AuditLogRetrieveResponse {
|
|
|
301
329
|
|
|
302
330
|
'Brand kit ID'?: string;
|
|
303
331
|
|
|
332
|
+
'Campaign setup ID'?: string;
|
|
333
|
+
|
|
334
|
+
'Campaign setup type'?: string;
|
|
335
|
+
|
|
336
|
+
'Campaign setup version'?: number;
|
|
337
|
+
|
|
304
338
|
'Cancels at period end'?: boolean;
|
|
305
339
|
|
|
306
340
|
'Comment ID'?: string;
|
|
@@ -313,6 +347,10 @@ export namespace AuditLogRetrieveResponse {
|
|
|
313
347
|
|
|
314
348
|
Connector?: string;
|
|
315
349
|
|
|
350
|
+
'Contract end'?: string;
|
|
351
|
+
|
|
352
|
+
'Contract start'?: string;
|
|
353
|
+
|
|
316
354
|
'Creatives cancelled'?: number;
|
|
317
355
|
|
|
318
356
|
'Creatives queued'?: number;
|
|
@@ -339,6 +377,10 @@ export namespace AuditLogRetrieveResponse {
|
|
|
339
377
|
|
|
340
378
|
Filename?: string;
|
|
341
379
|
|
|
380
|
+
'Files moved'?: number;
|
|
381
|
+
|
|
382
|
+
'From workspace'?: string;
|
|
383
|
+
|
|
342
384
|
'From workspace ID'?: number;
|
|
343
385
|
|
|
344
386
|
'Group name'?: string;
|
|
@@ -367,6 +409,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
367
409
|
|
|
368
410
|
Model?: string;
|
|
369
411
|
|
|
412
|
+
'Models changed'?: Array<string>;
|
|
413
|
+
|
|
370
414
|
'New email'?: string;
|
|
371
415
|
|
|
372
416
|
'New role'?: string;
|
|
@@ -397,16 +441,24 @@ export namespace AuditLogRetrieveResponse {
|
|
|
397
441
|
|
|
398
442
|
'Previous role'?: string | null;
|
|
399
443
|
|
|
444
|
+
'Previous spend cap'?: number;
|
|
445
|
+
|
|
400
446
|
'Previous text'?: string;
|
|
401
447
|
|
|
402
448
|
'Previous value'?: string | number | boolean | { [key: string]: boolean } | null;
|
|
403
449
|
|
|
450
|
+
'Previously shared in project'?: string | null;
|
|
451
|
+
|
|
404
452
|
'Project credit cap'?: number | null;
|
|
405
453
|
|
|
406
454
|
'Project ID'?: string;
|
|
407
455
|
|
|
456
|
+
Promotion?: string;
|
|
457
|
+
|
|
408
458
|
Provider?: string;
|
|
409
459
|
|
|
460
|
+
'Read or write'?: string;
|
|
461
|
+
|
|
410
462
|
Reason?: string | null;
|
|
411
463
|
|
|
412
464
|
'Recharge amount (USD cents)'?: number;
|
|
@@ -417,6 +469,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
417
469
|
|
|
418
470
|
'Requested via'?: Array<string>;
|
|
419
471
|
|
|
472
|
+
Result?: string;
|
|
473
|
+
|
|
420
474
|
'Result metric ID'?: string | null;
|
|
421
475
|
|
|
422
476
|
'Review decision'?: string;
|
|
@@ -443,12 +497,16 @@ export namespace AuditLogRetrieveResponse {
|
|
|
443
497
|
|
|
444
498
|
'Source category ID'?: string;
|
|
445
499
|
|
|
500
|
+
'Source version asset ID'?: string;
|
|
501
|
+
|
|
446
502
|
'Spend cap'?: number;
|
|
447
503
|
|
|
448
504
|
'Spend cap (USD cents)'?: number;
|
|
449
505
|
|
|
450
506
|
'Spend cap change'?: number;
|
|
451
507
|
|
|
508
|
+
'Spend cap used'?: number;
|
|
509
|
+
|
|
452
510
|
'Status after'?: string;
|
|
453
511
|
|
|
454
512
|
'Status before'?: string;
|
|
@@ -463,6 +521,8 @@ export namespace AuditLogRetrieveResponse {
|
|
|
463
521
|
|
|
464
522
|
'Task ID'?: string;
|
|
465
523
|
|
|
524
|
+
'To workspace'?: string;
|
|
525
|
+
|
|
466
526
|
'To workspace ID'?: number;
|
|
467
527
|
|
|
468
528
|
Tool?: string;
|
|
@@ -490,6 +550,12 @@ export interface AuditLogListResponse {
|
|
|
490
550
|
* The action performed.
|
|
491
551
|
*/
|
|
492
552
|
action:
|
|
553
|
+
| 'AgentArtifactCommentCreated'
|
|
554
|
+
| 'AgentArtifactCommentDeleted'
|
|
555
|
+
| 'AgentArtifactCreated'
|
|
556
|
+
| 'AgentArtifactVersionSaved'
|
|
557
|
+
| 'AgentArtifactSessionAttached'
|
|
558
|
+
| 'AgentArtifactSessionDetached'
|
|
493
559
|
| 'UserLogin'
|
|
494
560
|
| 'PasswordChanged'
|
|
495
561
|
| 'EmailChangeRequested'
|
|
@@ -544,6 +610,7 @@ export interface AuditLogListResponse {
|
|
|
544
610
|
| 'SeatsTransferred'
|
|
545
611
|
| 'SessionShared'
|
|
546
612
|
| 'SessionUnshared'
|
|
613
|
+
| 'SessionMadePrivateByAdmin'
|
|
547
614
|
| 'VideoProjectShared'
|
|
548
615
|
| 'VideoProjectUnshared'
|
|
549
616
|
| 'BrandKitShared'
|
|
@@ -572,6 +639,12 @@ export interface AuditLogListResponse {
|
|
|
572
639
|
| 'AppStudioAppSecretChanged'
|
|
573
640
|
| 'AppStudioAppRunwayAccessGranted'
|
|
574
641
|
| 'AppStudioAppRunwayAccessRevoked'
|
|
642
|
+
| 'AppStudioConnectorConnected'
|
|
643
|
+
| 'AppStudioConnectorDisconnected'
|
|
644
|
+
| 'AppStudioConnectorAppGranted'
|
|
645
|
+
| 'AppStudioConnectorAppRevoked'
|
|
646
|
+
| 'AppStudioConnectorPolicyChanged'
|
|
647
|
+
| 'AppStudioConnectorToolCalled'
|
|
575
648
|
| 'AccountLinkCreated'
|
|
576
649
|
| 'AccountLinkDeleted'
|
|
577
650
|
| 'AdConnectionAuthorizationStarted'
|
|
@@ -586,10 +659,16 @@ export interface AuditLogListResponse {
|
|
|
586
659
|
| 'AdCreativeApprovalRevoked'
|
|
587
660
|
| 'AdCreativeArchived'
|
|
588
661
|
| 'AdCreativeUnarchived'
|
|
662
|
+
| 'AdCreativeCopyUpdated'
|
|
589
663
|
| 'AdPublishBatchQueued'
|
|
590
664
|
| 'AdPublishBatchCancelled'
|
|
591
665
|
| 'AdPublishBatchRetried'
|
|
592
666
|
| 'AdStatusChanged'
|
|
667
|
+
| 'AdCampaignSetupDrafted'
|
|
668
|
+
| 'AdCampaignSetupDiscarded'
|
|
669
|
+
| 'AdCampaignSetupConfirmed'
|
|
670
|
+
| 'AdCampaignSetupCancelled'
|
|
671
|
+
| 'AdCampaignSetupRetried'
|
|
593
672
|
| 'OrganizationSettingsUpdated'
|
|
594
673
|
| 'OrganizationDisabledModelsUpdated'
|
|
595
674
|
| 'OrganizationAgentSandboxUpdated'
|
|
@@ -608,6 +687,9 @@ export interface AuditLogListResponse {
|
|
|
608
687
|
| 'MeteredBillingRetryTriggered'
|
|
609
688
|
| 'EnterpriseSpendCapEnforcementUpdated'
|
|
610
689
|
| 'OnboardingBonusGranted'
|
|
690
|
+
| 'PromotionCreditsGranted'
|
|
691
|
+
| 'CreditsGranted'
|
|
692
|
+
| 'SpendCapAmountChanged'
|
|
611
693
|
| 'AwsMarketplaceEnterpriseSubscriptionLinked';
|
|
612
694
|
|
|
613
695
|
/**
|
|
@@ -670,6 +752,10 @@ export namespace AuditLogListResponse {
|
|
|
670
752
|
|
|
671
753
|
'Ad review request ID'?: string;
|
|
672
754
|
|
|
755
|
+
'Ad revision ID'?: string;
|
|
756
|
+
|
|
757
|
+
'Ad revision number'?: string;
|
|
758
|
+
|
|
673
759
|
'Ad sync end date'?: string;
|
|
674
760
|
|
|
675
761
|
'Ad sync run ID'?: string;
|
|
@@ -708,6 +794,8 @@ export namespace AuditLogListResponse {
|
|
|
708
794
|
|
|
709
795
|
Application?: string;
|
|
710
796
|
|
|
797
|
+
'Asset ID'?: string;
|
|
798
|
+
|
|
711
799
|
'Asset name'?: string;
|
|
712
800
|
|
|
713
801
|
'Asset type'?: string;
|
|
@@ -718,6 +806,12 @@ export namespace AuditLogListResponse {
|
|
|
718
806
|
|
|
719
807
|
'Brand kit ID'?: string;
|
|
720
808
|
|
|
809
|
+
'Campaign setup ID'?: string;
|
|
810
|
+
|
|
811
|
+
'Campaign setup type'?: string;
|
|
812
|
+
|
|
813
|
+
'Campaign setup version'?: number;
|
|
814
|
+
|
|
721
815
|
'Cancels at period end'?: boolean;
|
|
722
816
|
|
|
723
817
|
'Comment ID'?: string;
|
|
@@ -730,6 +824,10 @@ export namespace AuditLogListResponse {
|
|
|
730
824
|
|
|
731
825
|
Connector?: string;
|
|
732
826
|
|
|
827
|
+
'Contract end'?: string;
|
|
828
|
+
|
|
829
|
+
'Contract start'?: string;
|
|
830
|
+
|
|
733
831
|
'Creatives cancelled'?: number;
|
|
734
832
|
|
|
735
833
|
'Creatives queued'?: number;
|
|
@@ -756,6 +854,10 @@ export namespace AuditLogListResponse {
|
|
|
756
854
|
|
|
757
855
|
Filename?: string;
|
|
758
856
|
|
|
857
|
+
'Files moved'?: number;
|
|
858
|
+
|
|
859
|
+
'From workspace'?: string;
|
|
860
|
+
|
|
759
861
|
'From workspace ID'?: number;
|
|
760
862
|
|
|
761
863
|
'Group name'?: string;
|
|
@@ -784,6 +886,8 @@ export namespace AuditLogListResponse {
|
|
|
784
886
|
|
|
785
887
|
Model?: string;
|
|
786
888
|
|
|
889
|
+
'Models changed'?: Array<string>;
|
|
890
|
+
|
|
787
891
|
'New email'?: string;
|
|
788
892
|
|
|
789
893
|
'New role'?: string;
|
|
@@ -814,16 +918,24 @@ export namespace AuditLogListResponse {
|
|
|
814
918
|
|
|
815
919
|
'Previous role'?: string | null;
|
|
816
920
|
|
|
921
|
+
'Previous spend cap'?: number;
|
|
922
|
+
|
|
817
923
|
'Previous text'?: string;
|
|
818
924
|
|
|
819
925
|
'Previous value'?: string | number | boolean | { [key: string]: boolean } | null;
|
|
820
926
|
|
|
927
|
+
'Previously shared in project'?: string | null;
|
|
928
|
+
|
|
821
929
|
'Project credit cap'?: number | null;
|
|
822
930
|
|
|
823
931
|
'Project ID'?: string;
|
|
824
932
|
|
|
933
|
+
Promotion?: string;
|
|
934
|
+
|
|
825
935
|
Provider?: string;
|
|
826
936
|
|
|
937
|
+
'Read or write'?: string;
|
|
938
|
+
|
|
827
939
|
Reason?: string | null;
|
|
828
940
|
|
|
829
941
|
'Recharge amount (USD cents)'?: number;
|
|
@@ -834,6 +946,8 @@ export namespace AuditLogListResponse {
|
|
|
834
946
|
|
|
835
947
|
'Requested via'?: Array<string>;
|
|
836
948
|
|
|
949
|
+
Result?: string;
|
|
950
|
+
|
|
837
951
|
'Result metric ID'?: string | null;
|
|
838
952
|
|
|
839
953
|
'Review decision'?: string;
|
|
@@ -860,12 +974,16 @@ export namespace AuditLogListResponse {
|
|
|
860
974
|
|
|
861
975
|
'Source category ID'?: string;
|
|
862
976
|
|
|
977
|
+
'Source version asset ID'?: string;
|
|
978
|
+
|
|
863
979
|
'Spend cap'?: number;
|
|
864
980
|
|
|
865
981
|
'Spend cap (USD cents)'?: number;
|
|
866
982
|
|
|
867
983
|
'Spend cap change'?: number;
|
|
868
984
|
|
|
985
|
+
'Spend cap used'?: number;
|
|
986
|
+
|
|
869
987
|
'Status after'?: string;
|
|
870
988
|
|
|
871
989
|
'Status before'?: string;
|
|
@@ -880,6 +998,8 @@ export namespace AuditLogListResponse {
|
|
|
880
998
|
|
|
881
999
|
'Task ID'?: string;
|
|
882
1000
|
|
|
1001
|
+
'To workspace'?: string;
|
|
1002
|
+
|
|
883
1003
|
'To workspace ID'?: number;
|
|
884
1004
|
|
|
885
1005
|
Tool?: string;
|
|
@@ -905,7 +1025,9 @@ export namespace AuditLogListResponse {
|
|
|
905
1025
|
export interface AuditLogRetrieveParams {
|
|
906
1026
|
/**
|
|
907
1027
|
* Organization to report on. Optional when this API project is linked to a single
|
|
908
|
-
* organization; required when it is linked to more than one.
|
|
1028
|
+
* organization; required when it is linked to more than one. If it is missing
|
|
1029
|
+
* then, the 400 response lists the IDs and names of the linked organizations in
|
|
1030
|
+
* `details.organizations`.
|
|
909
1031
|
*/
|
|
910
1032
|
organizationId?: string;
|
|
911
1033
|
}
|
|
@@ -913,7 +1035,10 @@ export interface AuditLogRetrieveParams {
|
|
|
913
1035
|
export interface AuditLogListParams extends CursorPageParams {
|
|
914
1036
|
/**
|
|
915
1037
|
* Restrict results to these audit log actions, as a comma-separated list of up to
|
|
916
|
-
* 50 actions. Allowed values: `
|
|
1038
|
+
* 50 actions. Allowed values: `AgentArtifactCommentCreated`,
|
|
1039
|
+
* `AgentArtifactCommentDeleted`, `AgentArtifactCreated`,
|
|
1040
|
+
* `AgentArtifactVersionSaved`, `AgentArtifactSessionAttached`,
|
|
1041
|
+
* `AgentArtifactSessionDetached`, `UserLogin`, `PasswordChanged`,
|
|
917
1042
|
* `EmailChangeRequested`, `EmailChanged`, `UserRegistered`, `UserAccountDeleted`,
|
|
918
1043
|
* `WorkspaceCreated`, `WorkspaceDeleted`, `MemberInvited`,
|
|
919
1044
|
* `MemberInviteReminderSent`, `MemberRemoved`, `MemberRoleChanged`,
|
|
@@ -931,10 +1056,10 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
931
1056
|
* `PermissionAccepted`, `SubscriptionCancelled`,
|
|
932
1057
|
* `SubscriptionReactivatedWithOffer`, `SubscriptionPlanSwitched`,
|
|
933
1058
|
* `CreditsTransferred`, `SeatsTransferred`, `SessionShared`, `SessionUnshared`,
|
|
934
|
-
* `
|
|
935
|
-
* `
|
|
936
|
-
* `
|
|
937
|
-
* `AgentSessionUnshared`, `AgentConnectorLinkTokenCreated`,
|
|
1059
|
+
* `SessionMadePrivateByAdmin`, `VideoProjectShared`, `VideoProjectUnshared`,
|
|
1060
|
+
* `BrandKitShared`, `BrandKitUnshared`, `AgentCustomSkillCreated`,
|
|
1061
|
+
* `AgentCustomSkillDeleted`, `AgentCustomSkillShared`, `AgentCustomSkillUnshared`,
|
|
1062
|
+
* `AgentSessionShared`, `AgentSessionUnshared`, `AgentConnectorLinkTokenCreated`,
|
|
938
1063
|
* `AgentConnectorConnected`, `AgentConnectorDisconnected`,
|
|
939
1064
|
* `AgentConnectorAssetExported`, `AgentConnectorSessionEnabled`,
|
|
940
1065
|
* `AgentConnectorSessionDisabled`, `GenerationCreated`, `StudioSessionOpened`,
|
|
@@ -942,13 +1067,19 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
942
1067
|
* `AppStudioAppVisibilityChanged`, `AppStudioAppRenamed`, `AppStudioAppDeleted`,
|
|
943
1068
|
* `AppStudioAppCoOwnerChanged`, `AppStudioAppSecretChanged`,
|
|
944
1069
|
* `AppStudioAppRunwayAccessGranted`, `AppStudioAppRunwayAccessRevoked`,
|
|
1070
|
+
* `AppStudioConnectorConnected`, `AppStudioConnectorDisconnected`,
|
|
1071
|
+
* `AppStudioConnectorAppGranted`, `AppStudioConnectorAppRevoked`,
|
|
1072
|
+
* `AppStudioConnectorPolicyChanged`, `AppStudioConnectorToolCalled`,
|
|
945
1073
|
* `AccountLinkCreated`, `AccountLinkDeleted`, `AdConnectionAuthorizationStarted`,
|
|
946
1074
|
* `AdConnectionConnected`, `AdAccountSelectionUpdated`, `AdAccountSyncRequested`,
|
|
947
1075
|
* `AdConnectionDisconnected`, `AdWorkspaceOnboardingUpdated`,
|
|
948
1076
|
* `AdCreativeReviewSubmitted`, `AdCreativeReviewCancelled`,
|
|
949
1077
|
* `AdCreativeReviewDecided`, `AdCreativeApprovalRevoked`, `AdCreativeArchived`,
|
|
950
|
-
* `AdCreativeUnarchived`, `
|
|
951
|
-
* `
|
|
1078
|
+
* `AdCreativeUnarchived`, `AdCreativeCopyUpdated`, `AdPublishBatchQueued`,
|
|
1079
|
+
* `AdPublishBatchCancelled`, `AdPublishBatchRetried`, `AdStatusChanged`,
|
|
1080
|
+
* `AdCampaignSetupDrafted`, `AdCampaignSetupDiscarded`,
|
|
1081
|
+
* `AdCampaignSetupConfirmed`, `AdCampaignSetupCancelled`,
|
|
1082
|
+
* `AdCampaignSetupRetried`, `OrganizationSettingsUpdated`,
|
|
952
1083
|
* `OrganizationDisabledModelsUpdated`, `OrganizationAgentSandboxUpdated`,
|
|
953
1084
|
* `OrganizationApiAccountReleased`, `OrganizationApiAccountMemberInvited`,
|
|
954
1085
|
* `OrganizationApiAccountMemberRoleChanged`,
|
|
@@ -957,6 +1088,7 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
957
1088
|
* `WorkspaceTagAssigned`, `WorkspaceTagUnassigned`, `MeteredBillingConfigUpdated`,
|
|
958
1089
|
* `MeteredBillingRefillTriggered`, `MeteredBillingRetryTriggered`,
|
|
959
1090
|
* `EnterpriseSpendCapEnforcementUpdated`, `OnboardingBonusGranted`,
|
|
1091
|
+
* `PromotionCreditsGranted`, `CreditsGranted`, `SpendCapAmountChanged`,
|
|
960
1092
|
* `AwsMarketplaceEnterpriseSubscriptionLinked`.
|
|
961
1093
|
*/
|
|
962
1094
|
actions?: string;
|
|
@@ -974,7 +1106,9 @@ export interface AuditLogListParams extends CursorPageParams {
|
|
|
974
1106
|
|
|
975
1107
|
/**
|
|
976
1108
|
* Organization to report on. Optional when this API project is linked to a single
|
|
977
|
-
* organization; required when it is linked to more than one.
|
|
1109
|
+
* organization; required when it is linked to more than one. If it is missing
|
|
1110
|
+
* then, the 400 response lists the IDs and names of the linked organizations in
|
|
1111
|
+
* `details.organizations`.
|
|
978
1112
|
*/
|
|
979
1113
|
organizationId?: string;
|
|
980
1114
|
|
|
@@ -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';
|