@runwayml/sdk 4.13.2 → 4.14.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 +13 -0
- package/client.d.mts +3 -3
- package/client.d.mts.map +1 -1
- package/client.d.ts +3 -3
- package/client.d.ts.map +1 -1
- package/client.js +1 -1
- package/client.js.map +1 -1
- package/client.mjs +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/character-performance.d.mts +17 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +17 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/generate/audio.d.mts +46 -24
- package/resources/generate/audio.d.mts.map +1 -1
- package/resources/generate/audio.d.ts +46 -24
- package/resources/generate/audio.d.ts.map +1 -1
- package/resources/generate/audio.js.map +1 -1
- package/resources/generate/audio.mjs.map +1 -1
- package/resources/generate/generate.d.mts +2 -2
- package/resources/generate/generate.d.mts.map +1 -1
- package/resources/generate/generate.d.ts +2 -2
- package/resources/generate/generate.d.ts.map +1 -1
- package/resources/generate/generate.js.map +1 -1
- package/resources/generate/generate.mjs.map +1 -1
- package/resources/generate/image.d.mts +21 -0
- package/resources/generate/image.d.mts.map +1 -1
- package/resources/generate/image.d.ts +21 -0
- package/resources/generate/image.d.ts.map +1 -1
- package/resources/generate/index.d.mts +1 -1
- package/resources/generate/index.d.mts.map +1 -1
- package/resources/generate/index.d.ts +1 -1
- package/resources/generate/index.d.ts.map +1 -1
- package/resources/generate/index.js.map +1 -1
- package/resources/generate/index.mjs +1 -1
- package/resources/generate/index.mjs.map +1 -1
- package/resources/generate/video.d.mts +21 -0
- package/resources/generate/video.d.mts.map +1 -1
- package/resources/generate/video.d.ts +21 -0
- package/resources/generate/video.d.ts.map +1 -1
- package/resources/image-to-video.d.mts +118 -27
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +118 -27
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-upscale.d.mts +17 -0
- package/resources/image-upscale.d.mts.map +1 -1
- package/resources/image-upscale.d.ts +17 -0
- package/resources/image-upscale.d.ts.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization/index.d.mts +3 -0
- package/resources/organization/index.d.mts.map +1 -0
- package/resources/organization/index.d.ts +3 -0
- package/resources/organization/index.d.ts.map +1 -0
- package/resources/organization/index.js +9 -0
- package/resources/organization/index.js.map +1 -0
- package/resources/organization/index.mjs +4 -0
- package/resources/organization/index.mjs.map +1 -0
- package/resources/organization/organization.d.mts +154 -0
- package/resources/organization/organization.d.mts.map +1 -0
- package/resources/organization/organization.d.ts +154 -0
- package/resources/organization/organization.d.ts.map +1 -0
- package/resources/organization/organization.js +32 -0
- package/resources/organization/organization.js.map +1 -0
- package/resources/organization/organization.mjs +27 -0
- package/resources/organization/organization.mjs.map +1 -0
- package/resources/organization/webapp/audit-logs.d.mts +216 -0
- package/resources/organization/webapp/audit-logs.d.mts.map +1 -0
- package/resources/organization/webapp/audit-logs.d.ts +216 -0
- package/resources/organization/webapp/audit-logs.d.ts.map +1 -0
- package/resources/organization/webapp/audit-logs.js +30 -0
- package/resources/organization/webapp/audit-logs.js.map +1 -0
- package/resources/organization/webapp/audit-logs.mjs +26 -0
- package/resources/organization/webapp/audit-logs.mjs.map +1 -0
- package/resources/organization/webapp/index.d.mts +3 -0
- package/resources/organization/webapp/index.d.mts.map +1 -0
- package/resources/organization/webapp/index.d.ts +3 -0
- package/resources/organization/webapp/index.d.ts.map +1 -0
- package/resources/organization/webapp/index.js +9 -0
- package/resources/organization/webapp/index.js.map +1 -0
- package/resources/organization/webapp/index.mjs +4 -0
- package/resources/organization/webapp/index.mjs.map +1 -0
- package/resources/organization/webapp/webapp.d.mts +73 -0
- package/resources/organization/webapp/webapp.d.mts.map +1 -0
- package/resources/organization/webapp/webapp.d.ts +73 -0
- package/resources/organization/webapp/webapp.d.ts.map +1 -0
- package/resources/organization/webapp/webapp.js +30 -0
- package/resources/organization/webapp/webapp.js.map +1 -0
- package/resources/organization/webapp/webapp.mjs +25 -0
- package/resources/organization/webapp/webapp.mjs.map +1 -0
- package/resources/organization/webapp.d.mts +2 -0
- package/resources/organization/webapp.d.mts.map +1 -0
- package/resources/organization/webapp.d.ts +2 -0
- package/resources/organization/webapp.d.ts.map +1 -0
- package/resources/organization/webapp.js +6 -0
- package/resources/organization/webapp.js.map +1 -0
- package/resources/organization/webapp.mjs +3 -0
- package/resources/organization/webapp.mjs.map +1 -0
- package/resources/organization.d.mts +1 -149
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +1 -149
- package/resources/organization.d.ts.map +1 -1
- package/resources/organization.js +2 -20
- package/resources/organization.js.map +1 -1
- package/resources/organization.mjs +1 -18
- package/resources/organization.mjs.map +1 -1
- package/resources/recipes.d.mts +119 -0
- package/resources/recipes.d.mts.map +1 -1
- package/resources/recipes.d.ts +119 -0
- package/resources/recipes.d.ts.map +1 -1
- package/resources/routers.d.mts +194 -1
- package/resources/routers.d.mts.map +1 -1
- package/resources/routers.d.ts +194 -1
- package/resources/routers.d.ts.map +1 -1
- package/resources/routers.js +10 -0
- package/resources/routers.js.map +1 -1
- package/resources/routers.mjs +10 -0
- package/resources/routers.mjs.map +1 -1
- package/resources/sound-effect.d.mts +17 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +17 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/speech-to-speech.d.mts +17 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +17 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/tasks.d.mts +90 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +90 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/text-to-image.d.mts +22 -0
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +22 -0
- 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 +170 -17
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +170 -17
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/video-to-video.d.mts +199 -7
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +199 -7
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-upscale.d.mts +17 -0
- package/resources/video-upscale.d.mts.map +1 -1
- package/resources/video-upscale.d.ts +17 -0
- package/resources/video-upscale.d.ts.map +1 -1
- package/resources/voice-dubbing.d.mts +17 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +17 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-isolation.d.mts +17 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +17 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/src/client.ts +12 -6
- package/src/resources/character-performance.ts +19 -0
- package/src/resources/generate/audio.ts +57 -27
- package/src/resources/generate/generate.ts +3 -1
- package/src/resources/generate/image.ts +24 -0
- package/src/resources/generate/index.ts +7 -1
- package/src/resources/generate/video.ts +24 -0
- package/src/resources/image-to-video.ts +147 -27
- package/src/resources/image-upscale.ts +19 -0
- package/src/resources/index.ts +4 -1
- package/src/resources/organization/index.ts +14 -0
- package/src/resources/organization/organization.ts +307 -0
- package/src/resources/organization/webapp/audit-logs.ts +440 -0
- package/src/resources/organization/webapp/index.ts +16 -0
- package/src/resources/organization/webapp/webapp.ts +118 -0
- package/src/resources/organization/webapp.ts +3 -0
- package/src/resources/organization.ts +1 -283
- package/src/resources/recipes.ts +133 -0
- package/src/resources/routers.ts +247 -0
- package/src/resources/sound-effect.ts +19 -0
- package/src/resources/speech-to-speech.ts +19 -0
- package/src/resources/tasks.ts +102 -0
- package/src/resources/text-to-image.ts +25 -0
- package/src/resources/text-to-speech.ts +142 -1
- package/src/resources/text-to-video.ts +208 -17
- package/src/resources/video-to-video.ts +246 -7
- package/src/resources/video-upscale.ts +19 -0
- package/src/resources/voice-dubbing.ts +19 -0
- package/src/resources/voice-isolation.ts +19 -0
- 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,440 @@
|
|
|
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 { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
7
|
+
import { path } from '../../../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class AuditLogs extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Get a single audit log entry, including its metadata and forensic details, for a
|
|
12
|
+
* linked Runway workspace you administer. Authorized via the account link between
|
|
13
|
+
* this API project and the workspace.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(
|
|
16
|
+
eventID: string,
|
|
17
|
+
query: AuditLogRetrieveParams | null | undefined = {},
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): APIPromise<AuditLogRetrieveResponse> {
|
|
20
|
+
return this._client.get(path`/v1/organization/webapp/audit_logs/${eventID}`, { query, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* List audit log entries for the linked Runway workspaces you administer, newest
|
|
25
|
+
* first. Authorized via the account link between this API project and the
|
|
26
|
+
* workspace.
|
|
27
|
+
*/
|
|
28
|
+
list(
|
|
29
|
+
query: AuditLogListParams,
|
|
30
|
+
options?: RequestOptions,
|
|
31
|
+
): PagePromise<AuditLogListResponsesCursorPage, AuditLogListResponse> {
|
|
32
|
+
return this._client.getAPIList('/v1/organization/webapp/audit_logs', CursorPage<AuditLogListResponse>, {
|
|
33
|
+
query,
|
|
34
|
+
...options,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type AuditLogListResponsesCursorPage = CursorPage<AuditLogListResponse>;
|
|
40
|
+
|
|
41
|
+
export interface AuditLogRetrieveResponse {
|
|
42
|
+
/**
|
|
43
|
+
* The action performed.
|
|
44
|
+
*/
|
|
45
|
+
action:
|
|
46
|
+
| 'UserLogin'
|
|
47
|
+
| 'PasswordChanged'
|
|
48
|
+
| 'EmailChangeRequested'
|
|
49
|
+
| 'EmailChanged'
|
|
50
|
+
| 'UserRegistered'
|
|
51
|
+
| 'UserAccountDeleted'
|
|
52
|
+
| 'WorkspaceCreated'
|
|
53
|
+
| 'WorkspaceDeleted'
|
|
54
|
+
| 'MemberInvited'
|
|
55
|
+
| 'MemberRemoved'
|
|
56
|
+
| 'MemberRoleChanged'
|
|
57
|
+
| 'InviteAccepted'
|
|
58
|
+
| 'TeamSettingsUpdated'
|
|
59
|
+
| 'InviteLinkToggled'
|
|
60
|
+
| 'UserGroupCreated'
|
|
61
|
+
| 'UserGroupDeleted'
|
|
62
|
+
| 'UserGroupMemberAdded'
|
|
63
|
+
| 'UserGroupMemberRemoved'
|
|
64
|
+
| 'SSOLogin'
|
|
65
|
+
| 'SSOUserProvisioned'
|
|
66
|
+
| 'SSOConfigCreated'
|
|
67
|
+
| 'SSOUserAutoAddedToTeam'
|
|
68
|
+
| 'SSODomainRegistrationCloned'
|
|
69
|
+
| 'AssetCreated'
|
|
70
|
+
| 'AssetUpdated'
|
|
71
|
+
| 'AssetDeleted'
|
|
72
|
+
| 'AssetDownloaded'
|
|
73
|
+
| 'AssetShared'
|
|
74
|
+
| 'AssetUnshared'
|
|
75
|
+
| 'PermissionGranted'
|
|
76
|
+
| 'PermissionUpdated'
|
|
77
|
+
| 'PermissionRevoked'
|
|
78
|
+
| 'PermissionAccepted'
|
|
79
|
+
| 'SubscriptionCancelled'
|
|
80
|
+
| 'SubscriptionPlanSwitched'
|
|
81
|
+
| 'CreditsTransferred'
|
|
82
|
+
| 'SeatsTransferred'
|
|
83
|
+
| 'SessionShared'
|
|
84
|
+
| 'SessionUnshared'
|
|
85
|
+
| 'VideoProjectShared'
|
|
86
|
+
| 'VideoProjectUnshared'
|
|
87
|
+
| 'BrandKitShared'
|
|
88
|
+
| 'BrandKitUnshared'
|
|
89
|
+
| 'AgentCustomSkillCreated'
|
|
90
|
+
| 'AgentCustomSkillDeleted'
|
|
91
|
+
| 'AgentCustomSkillShared'
|
|
92
|
+
| 'AgentCustomSkillUnshared'
|
|
93
|
+
| 'AgentSessionShared'
|
|
94
|
+
| 'AgentSessionUnshared'
|
|
95
|
+
| 'AgentConnectorLinkTokenCreated'
|
|
96
|
+
| 'AgentConnectorConnected'
|
|
97
|
+
| 'AgentConnectorDisconnected'
|
|
98
|
+
| 'AgentConnectorAssetExported'
|
|
99
|
+
| 'AgentConnectorSessionEnabled'
|
|
100
|
+
| 'AgentConnectorSessionDisabled'
|
|
101
|
+
| 'GenerationCreated'
|
|
102
|
+
| 'AccountLinkCreated'
|
|
103
|
+
| 'AccountLinkDeleted'
|
|
104
|
+
| 'OrganizationSettingsUpdated'
|
|
105
|
+
| 'OrganizationDisabledModelsUpdated'
|
|
106
|
+
| 'WorkspaceCountryLockUpdated'
|
|
107
|
+
| 'WorkspaceTagCreated'
|
|
108
|
+
| 'WorkspaceTagUpdated'
|
|
109
|
+
| 'WorkspaceTagDeleted'
|
|
110
|
+
| 'WorkspaceTagAssigned'
|
|
111
|
+
| 'WorkspaceTagUnassigned'
|
|
112
|
+
| 'MeteredBillingConfigUpdated'
|
|
113
|
+
| 'MeteredBillingRefillTriggered'
|
|
114
|
+
| 'MeteredBillingRetryTriggered'
|
|
115
|
+
| 'EnterpriseSpendCapEnforcementUpdated';
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Whether the acting user has since been deleted.
|
|
119
|
+
*/
|
|
120
|
+
actorDeleted: boolean;
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Email of the user who performed the action.
|
|
124
|
+
*/
|
|
125
|
+
actorEmail: string | null;
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* Username of the user who performed the action.
|
|
129
|
+
*/
|
|
130
|
+
actorUsername: string | null;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* IP address of the client that performed the action.
|
|
134
|
+
*/
|
|
135
|
+
clientIpAddress: string;
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Unique identifier of the entry.
|
|
139
|
+
*/
|
|
140
|
+
eventId: string;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Action-specific details.
|
|
144
|
+
*/
|
|
145
|
+
metadata: AuditLogRetrieveResponse.Metadata;
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* Request ID for correlation with other logs.
|
|
149
|
+
*/
|
|
150
|
+
requestId: string | null;
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* ID of the affected resource, if any.
|
|
154
|
+
*/
|
|
155
|
+
resourceId: string | null;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Type of the affected resource, if any. Currently one of `account_link`,
|
|
159
|
+
* `agent_custom_skill`, `asset`, `brand_kit`, `generation`, `invite_link`,
|
|
160
|
+
* `membership`, `organization`, `permission`, `promotion`, `session`,
|
|
161
|
+
* `shared_asset`, `sso_config`, `sso_domain_registration`, `subscription`,
|
|
162
|
+
* `team_settings`, `user`, `user_group`, `video_project`, `workspace`, or
|
|
163
|
+
* `workspace_tag`. New types may be added over time, so treat this as an open set.
|
|
164
|
+
*/
|
|
165
|
+
resourceType: string | null;
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* When the action occurred.
|
|
169
|
+
*/
|
|
170
|
+
timestamp: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* User-Agent header of the client request.
|
|
174
|
+
*/
|
|
175
|
+
userAgent: string | null;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* ID of the owning workspace.
|
|
179
|
+
*/
|
|
180
|
+
workspaceId: number;
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Name of the owning workspace.
|
|
184
|
+
*/
|
|
185
|
+
workspaceName: string;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export namespace AuditLogRetrieveResponse {
|
|
189
|
+
/**
|
|
190
|
+
* Action-specific details.
|
|
191
|
+
*/
|
|
192
|
+
export interface Metadata {
|
|
193
|
+
Amount?: unknown;
|
|
194
|
+
|
|
195
|
+
Application?: unknown;
|
|
196
|
+
|
|
197
|
+
'Asset name'?: unknown;
|
|
198
|
+
|
|
199
|
+
'Default task name template'?: unknown;
|
|
200
|
+
|
|
201
|
+
'Group name'?: unknown;
|
|
202
|
+
|
|
203
|
+
'Hard spend cap'?: unknown;
|
|
204
|
+
|
|
205
|
+
'Invited member'?: unknown;
|
|
206
|
+
|
|
207
|
+
'Login method'?: unknown;
|
|
208
|
+
|
|
209
|
+
'Member email'?: unknown;
|
|
210
|
+
|
|
211
|
+
Model?: unknown;
|
|
212
|
+
|
|
213
|
+
'New role'?: unknown;
|
|
214
|
+
|
|
215
|
+
'New User'?: unknown;
|
|
216
|
+
|
|
217
|
+
Operation?: unknown;
|
|
218
|
+
|
|
219
|
+
Plan?: unknown;
|
|
220
|
+
|
|
221
|
+
Platform?: unknown;
|
|
222
|
+
|
|
223
|
+
'Previous role'?: unknown;
|
|
224
|
+
|
|
225
|
+
'Removed member'?: unknown;
|
|
226
|
+
|
|
227
|
+
Role?: unknown;
|
|
228
|
+
|
|
229
|
+
'Shared with projects'?: unknown;
|
|
230
|
+
|
|
231
|
+
'Shared with workspace'?: unknown;
|
|
232
|
+
|
|
233
|
+
'Spend cap'?: unknown;
|
|
234
|
+
|
|
235
|
+
'Tag color'?: unknown;
|
|
236
|
+
|
|
237
|
+
'Tag name'?: unknown;
|
|
238
|
+
|
|
239
|
+
'Target member'?: unknown;
|
|
240
|
+
|
|
241
|
+
Workspace?: unknown;
|
|
242
|
+
|
|
243
|
+
'Workspace description'?: unknown;
|
|
244
|
+
|
|
245
|
+
'Workspace ID'?: unknown;
|
|
246
|
+
|
|
247
|
+
'Workspace name'?: unknown;
|
|
248
|
+
|
|
249
|
+
'Workspace picture'?: unknown;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface AuditLogListResponse {
|
|
254
|
+
/**
|
|
255
|
+
* The action performed.
|
|
256
|
+
*/
|
|
257
|
+
action:
|
|
258
|
+
| 'UserLogin'
|
|
259
|
+
| 'PasswordChanged'
|
|
260
|
+
| 'EmailChangeRequested'
|
|
261
|
+
| 'EmailChanged'
|
|
262
|
+
| 'UserRegistered'
|
|
263
|
+
| 'UserAccountDeleted'
|
|
264
|
+
| 'WorkspaceCreated'
|
|
265
|
+
| 'WorkspaceDeleted'
|
|
266
|
+
| 'MemberInvited'
|
|
267
|
+
| 'MemberRemoved'
|
|
268
|
+
| 'MemberRoleChanged'
|
|
269
|
+
| 'InviteAccepted'
|
|
270
|
+
| 'TeamSettingsUpdated'
|
|
271
|
+
| 'InviteLinkToggled'
|
|
272
|
+
| 'UserGroupCreated'
|
|
273
|
+
| 'UserGroupDeleted'
|
|
274
|
+
| 'UserGroupMemberAdded'
|
|
275
|
+
| 'UserGroupMemberRemoved'
|
|
276
|
+
| 'SSOLogin'
|
|
277
|
+
| 'SSOUserProvisioned'
|
|
278
|
+
| 'SSOConfigCreated'
|
|
279
|
+
| 'SSOUserAutoAddedToTeam'
|
|
280
|
+
| 'SSODomainRegistrationCloned'
|
|
281
|
+
| 'AssetCreated'
|
|
282
|
+
| 'AssetUpdated'
|
|
283
|
+
| 'AssetDeleted'
|
|
284
|
+
| 'AssetDownloaded'
|
|
285
|
+
| 'AssetShared'
|
|
286
|
+
| 'AssetUnshared'
|
|
287
|
+
| 'PermissionGranted'
|
|
288
|
+
| 'PermissionUpdated'
|
|
289
|
+
| 'PermissionRevoked'
|
|
290
|
+
| 'PermissionAccepted'
|
|
291
|
+
| 'SubscriptionCancelled'
|
|
292
|
+
| 'SubscriptionPlanSwitched'
|
|
293
|
+
| 'CreditsTransferred'
|
|
294
|
+
| 'SeatsTransferred'
|
|
295
|
+
| 'SessionShared'
|
|
296
|
+
| 'SessionUnshared'
|
|
297
|
+
| 'VideoProjectShared'
|
|
298
|
+
| 'VideoProjectUnshared'
|
|
299
|
+
| 'BrandKitShared'
|
|
300
|
+
| 'BrandKitUnshared'
|
|
301
|
+
| 'AgentCustomSkillCreated'
|
|
302
|
+
| 'AgentCustomSkillDeleted'
|
|
303
|
+
| 'AgentCustomSkillShared'
|
|
304
|
+
| 'AgentCustomSkillUnshared'
|
|
305
|
+
| 'AgentSessionShared'
|
|
306
|
+
| 'AgentSessionUnshared'
|
|
307
|
+
| 'AgentConnectorLinkTokenCreated'
|
|
308
|
+
| 'AgentConnectorConnected'
|
|
309
|
+
| 'AgentConnectorDisconnected'
|
|
310
|
+
| 'AgentConnectorAssetExported'
|
|
311
|
+
| 'AgentConnectorSessionEnabled'
|
|
312
|
+
| 'AgentConnectorSessionDisabled'
|
|
313
|
+
| 'GenerationCreated'
|
|
314
|
+
| 'AccountLinkCreated'
|
|
315
|
+
| 'AccountLinkDeleted'
|
|
316
|
+
| 'OrganizationSettingsUpdated'
|
|
317
|
+
| 'OrganizationDisabledModelsUpdated'
|
|
318
|
+
| 'WorkspaceCountryLockUpdated'
|
|
319
|
+
| 'WorkspaceTagCreated'
|
|
320
|
+
| 'WorkspaceTagUpdated'
|
|
321
|
+
| 'WorkspaceTagDeleted'
|
|
322
|
+
| 'WorkspaceTagAssigned'
|
|
323
|
+
| 'WorkspaceTagUnassigned'
|
|
324
|
+
| 'MeteredBillingConfigUpdated'
|
|
325
|
+
| 'MeteredBillingRefillTriggered'
|
|
326
|
+
| 'MeteredBillingRetryTriggered'
|
|
327
|
+
| 'EnterpriseSpendCapEnforcementUpdated';
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Whether the acting user has since been deleted.
|
|
331
|
+
*/
|
|
332
|
+
actorDeleted: boolean;
|
|
333
|
+
|
|
334
|
+
/**
|
|
335
|
+
* Email of the user who performed the action.
|
|
336
|
+
*/
|
|
337
|
+
actorEmail: string | null;
|
|
338
|
+
|
|
339
|
+
/**
|
|
340
|
+
* Username of the user who performed the action.
|
|
341
|
+
*/
|
|
342
|
+
actorUsername: string | null;
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Unique identifier of the entry.
|
|
346
|
+
*/
|
|
347
|
+
eventId: string;
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* When the action occurred.
|
|
351
|
+
*/
|
|
352
|
+
timestamp: string;
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* ID of the owning workspace.
|
|
356
|
+
*/
|
|
357
|
+
workspaceId: number;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Name of the owning workspace.
|
|
361
|
+
*/
|
|
362
|
+
workspaceName: string;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
export interface AuditLogRetrieveParams {
|
|
366
|
+
/**
|
|
367
|
+
* Organization to report on. Optional when this API project is linked to a single
|
|
368
|
+
* organization; required when it is linked to more than one.
|
|
369
|
+
*/
|
|
370
|
+
organizationId?: string;
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
export interface AuditLogListParams extends CursorPageParams {
|
|
374
|
+
/**
|
|
375
|
+
* Restrict results to these audit log actions, as a comma-separated list of up to
|
|
376
|
+
* 50 actions. Allowed values: `UserLogin`, `PasswordChanged`,
|
|
377
|
+
* `EmailChangeRequested`, `EmailChanged`, `UserRegistered`, `UserAccountDeleted`,
|
|
378
|
+
* `WorkspaceCreated`, `WorkspaceDeleted`, `MemberInvited`, `MemberRemoved`,
|
|
379
|
+
* `MemberRoleChanged`, `InviteAccepted`, `TeamSettingsUpdated`,
|
|
380
|
+
* `InviteLinkToggled`, `UserGroupCreated`, `UserGroupDeleted`,
|
|
381
|
+
* `UserGroupMemberAdded`, `UserGroupMemberRemoved`, `SSOLogin`,
|
|
382
|
+
* `SSOUserProvisioned`, `SSOConfigCreated`, `SSOUserAutoAddedToTeam`,
|
|
383
|
+
* `SSODomainRegistrationCloned`, `AssetCreated`, `AssetUpdated`, `AssetDeleted`,
|
|
384
|
+
* `AssetDownloaded`, `AssetShared`, `AssetUnshared`, `PermissionGranted`,
|
|
385
|
+
* `PermissionUpdated`, `PermissionRevoked`, `PermissionAccepted`,
|
|
386
|
+
* `SubscriptionCancelled`, `SubscriptionPlanSwitched`, `CreditsTransferred`,
|
|
387
|
+
* `SeatsTransferred`, `SessionShared`, `SessionUnshared`, `VideoProjectShared`,
|
|
388
|
+
* `VideoProjectUnshared`, `BrandKitShared`, `BrandKitUnshared`,
|
|
389
|
+
* `AgentCustomSkillCreated`, `AgentCustomSkillDeleted`, `AgentCustomSkillShared`,
|
|
390
|
+
* `AgentCustomSkillUnshared`, `AgentSessionShared`, `AgentSessionUnshared`,
|
|
391
|
+
* `AgentConnectorLinkTokenCreated`, `AgentConnectorConnected`,
|
|
392
|
+
* `AgentConnectorDisconnected`, `AgentConnectorAssetExported`,
|
|
393
|
+
* `AgentConnectorSessionEnabled`, `AgentConnectorSessionDisabled`,
|
|
394
|
+
* `GenerationCreated`, `AccountLinkCreated`, `AccountLinkDeleted`,
|
|
395
|
+
* `OrganizationSettingsUpdated`, `OrganizationDisabledModelsUpdated`,
|
|
396
|
+
* `WorkspaceCountryLockUpdated`, `WorkspaceTagCreated`, `WorkspaceTagUpdated`,
|
|
397
|
+
* `WorkspaceTagDeleted`, `WorkspaceTagAssigned`, `WorkspaceTagUnassigned`,
|
|
398
|
+
* `MeteredBillingConfigUpdated`, `MeteredBillingRefillTriggered`,
|
|
399
|
+
* `MeteredBillingRetryTriggered`, `EnterpriseSpendCapEnforcementUpdated`.
|
|
400
|
+
*/
|
|
401
|
+
actions?: string;
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Restrict results to entries performed by the users with these emails, as a
|
|
405
|
+
* comma-separated list of up to 50 emails.
|
|
406
|
+
*/
|
|
407
|
+
actorEmails?: string;
|
|
408
|
+
|
|
409
|
+
/**
|
|
410
|
+
* Start of the time window (inclusive), ISO-8601 datetime.
|
|
411
|
+
*/
|
|
412
|
+
from?: string;
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Organization to report on. Optional when this API project is linked to a single
|
|
416
|
+
* organization; required when it is linked to more than one.
|
|
417
|
+
*/
|
|
418
|
+
organizationId?: string;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* End of the time window (exclusive), ISO-8601 datetime.
|
|
422
|
+
*/
|
|
423
|
+
to?: string;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Restrict results to these workspace IDs, as a comma-separated list of up to 50
|
|
427
|
+
* IDs. Defaults to every workspace you administer in the organization.
|
|
428
|
+
*/
|
|
429
|
+
workspaceIds?: string;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
export declare namespace AuditLogs {
|
|
433
|
+
export {
|
|
434
|
+
type AuditLogRetrieveResponse as AuditLogRetrieveResponse,
|
|
435
|
+
type AuditLogListResponse as AuditLogListResponse,
|
|
436
|
+
type AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage,
|
|
437
|
+
type AuditLogRetrieveParams as AuditLogRetrieveParams,
|
|
438
|
+
type AuditLogListParams as AuditLogListParams,
|
|
439
|
+
};
|
|
440
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
AuditLogs,
|
|
5
|
+
type AuditLogRetrieveResponse,
|
|
6
|
+
type AuditLogListResponse,
|
|
7
|
+
type AuditLogRetrieveParams,
|
|
8
|
+
type AuditLogListParams,
|
|
9
|
+
type AuditLogListResponsesCursorPage,
|
|
10
|
+
} from './audit-logs';
|
|
11
|
+
export {
|
|
12
|
+
Webapp,
|
|
13
|
+
type WebappListUsageResponse,
|
|
14
|
+
type WebappListUsageParams,
|
|
15
|
+
type WebappListUsageResponsesCursorPage,
|
|
16
|
+
} from './webapp';
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as AuditLogsAPI from './audit-logs';
|
|
5
|
+
import {
|
|
6
|
+
AuditLogListParams,
|
|
7
|
+
AuditLogListResponse,
|
|
8
|
+
AuditLogListResponsesCursorPage,
|
|
9
|
+
AuditLogRetrieveParams,
|
|
10
|
+
AuditLogRetrieveResponse,
|
|
11
|
+
AuditLogs,
|
|
12
|
+
} from './audit-logs';
|
|
13
|
+
import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pagination';
|
|
14
|
+
import { RequestOptions } from '../../../internal/request-options';
|
|
15
|
+
|
|
16
|
+
export class Webapp extends APIResource {
|
|
17
|
+
auditLogs: AuditLogsAPI.AuditLogs = new AuditLogsAPI.AuditLogs(this._client);
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* List per-generation credit-usage rows for the linked Runway workspaces you
|
|
21
|
+
* administer, newest first. Unlike `/v1/organization/usage` (this API project's
|
|
22
|
+
* own usage), this reports usage from the workspace linked to this API project.
|
|
23
|
+
* Authorized via that account link.
|
|
24
|
+
*/
|
|
25
|
+
listUsage(
|
|
26
|
+
query: WebappListUsageParams,
|
|
27
|
+
options?: RequestOptions,
|
|
28
|
+
): PagePromise<WebappListUsageResponsesCursorPage, WebappListUsageResponse> {
|
|
29
|
+
return this._client.getAPIList('/v1/organization/webapp/usage', CursorPage<WebappListUsageResponse>, {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type WebappListUsageResponsesCursorPage = CursorPage<WebappListUsageResponse>;
|
|
37
|
+
|
|
38
|
+
export interface WebappListUsageResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Credits charged for this generation.
|
|
41
|
+
*/
|
|
42
|
+
credits: number;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Email of the user who generated.
|
|
46
|
+
*/
|
|
47
|
+
email: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* When the generation was charged.
|
|
51
|
+
*/
|
|
52
|
+
timestamp: string;
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Model/task display name for the generation.
|
|
56
|
+
*/
|
|
57
|
+
tool: string;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Whether the row is a credit charge for a generation or a task refund (negative
|
|
61
|
+
* credits).
|
|
62
|
+
*/
|
|
63
|
+
type: 'charge' | 'refund';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* ID of the owning workspace.
|
|
67
|
+
*/
|
|
68
|
+
workspaceId: number;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Name of the owning workspace.
|
|
72
|
+
*/
|
|
73
|
+
workspaceName: string;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface WebappListUsageParams extends CursorPageParams {
|
|
77
|
+
/**
|
|
78
|
+
* Start of the time window (inclusive), ISO-8601 datetime.
|
|
79
|
+
*/
|
|
80
|
+
from: string;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* End of the time window (exclusive), ISO-8601 datetime. A `cursor` can only
|
|
84
|
+
* narrow this window, never extend it past `to`.
|
|
85
|
+
*/
|
|
86
|
+
to: string;
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Organization to report on. Optional when this API project is linked to a single
|
|
90
|
+
* organization; required when it is linked to more than one.
|
|
91
|
+
*/
|
|
92
|
+
organizationId?: string;
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Restrict results to these workspace IDs, as a comma-separated list. Defaults to
|
|
96
|
+
* every workspace you administer in the organization.
|
|
97
|
+
*/
|
|
98
|
+
workspaceIds?: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
Webapp.AuditLogs = AuditLogs;
|
|
102
|
+
|
|
103
|
+
export declare namespace Webapp {
|
|
104
|
+
export {
|
|
105
|
+
type WebappListUsageResponse as WebappListUsageResponse,
|
|
106
|
+
type WebappListUsageResponsesCursorPage as WebappListUsageResponsesCursorPage,
|
|
107
|
+
type WebappListUsageParams as WebappListUsageParams,
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
export {
|
|
111
|
+
AuditLogs as AuditLogs,
|
|
112
|
+
type AuditLogRetrieveResponse as AuditLogRetrieveResponse,
|
|
113
|
+
type AuditLogListResponse as AuditLogListResponse,
|
|
114
|
+
type AuditLogListResponsesCursorPage as AuditLogListResponsesCursorPage,
|
|
115
|
+
type AuditLogRetrieveParams as AuditLogRetrieveParams,
|
|
116
|
+
type AuditLogListParams as AuditLogListParams,
|
|
117
|
+
};
|
|
118
|
+
}
|