@runwayml/sdk 3.11.0 → 3.15.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 +115 -0
- package/LICENSE +1 -1
- package/README.md +43 -2
- package/client.d.mts +53 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -4
- package/client.d.ts.map +1 -1
- package/client.js +75 -20
- package/client.js.map +1 -1
- package/client.mjs +75 -20
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/avatars.d.mts +1308 -0
- package/resources/avatars.d.mts.map +1 -0
- package/resources/avatars.d.ts +1308 -0
- package/resources/avatars.d.ts.map +1 -0
- package/resources/avatars.js +87 -0
- package/resources/avatars.js.map +1 -0
- package/resources/avatars.mjs +83 -0
- package/resources/avatars.mjs.map +1 -0
- package/resources/character-performance.d.mts +3 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +3 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +3 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +3 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/documents.d.mts +209 -0
- package/resources/documents.d.mts.map +1 -0
- package/resources/documents.d.ts +209 -0
- package/resources/documents.d.ts.map +1 -0
- package/resources/documents.js +75 -0
- package/resources/documents.js.map +1 -0
- package/resources/documents.mjs +71 -0
- package/resources/documents.mjs.map +1 -0
- package/resources/image-to-video.d.mts +58 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +58 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +3 -0
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +3 -0
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/realtime-sessions.d.mts +180 -0
- package/resources/realtime-sessions.d.mts.map +1 -0
- package/resources/realtime-sessions.d.ts +180 -0
- package/resources/realtime-sessions.d.ts.map +1 -0
- package/resources/realtime-sessions.js +32 -0
- package/resources/realtime-sessions.js.map +1 -0
- package/resources/realtime-sessions.mjs +28 -0
- package/resources/realtime-sessions.mjs.map +1 -0
- package/resources/sound-effect.d.mts +3 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +3 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/sound-effect.js +3 -0
- package/resources/sound-effect.js.map +1 -1
- package/resources/sound-effect.mjs +3 -0
- package/resources/sound-effect.mjs.map +1 -1
- package/resources/speech-to-speech.d.mts +3 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +3 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/speech-to-speech.js +3 -0
- package/resources/speech-to-speech.js.map +1 -1
- package/resources/speech-to-speech.mjs +3 -0
- package/resources/speech-to-speech.mjs.map +1 -1
- package/resources/tasks.d.mts +3 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +3 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +3 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +3 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +3 -0
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +3 -0
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.js +3 -0
- package/resources/text-to-image.js.map +1 -1
- package/resources/text-to-image.mjs +3 -0
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts +3 -0
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -0
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.js +3 -0
- package/resources/text-to-speech.js.map +1 -1
- package/resources/text-to-speech.mjs +3 -0
- package/resources/text-to-speech.mjs.map +1 -1
- package/resources/text-to-video.d.mts +43 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +43 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.js +3 -0
- package/resources/text-to-video.js.map +1 -1
- package/resources/text-to-video.mjs +3 -0
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/video-to-video.d.mts +8 -5
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +8 -5
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +3 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +3 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +3 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +3 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +3 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +3 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +3 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +3 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +3 -0
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +3 -0
- package/resources/voice-isolation.mjs.map +1 -1
- package/resources/voices.d.mts +257 -0
- package/resources/voices.d.mts.map +1 -0
- package/resources/voices.d.ts +257 -0
- package/resources/voices.d.ts.map +1 -0
- package/resources/voices.js +47 -0
- package/resources/voices.js.map +1 -0
- package/resources/voices.mjs +43 -0
- package/resources/voices.mjs.map +1 -0
- package/src/client.ts +173 -35
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -0
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/avatars.ts +2049 -0
- package/src/resources/character-performance.ts +3 -0
- package/src/resources/documents.ts +270 -0
- package/src/resources/image-to-video.ts +68 -0
- package/src/resources/index.ts +37 -5
- package/src/resources/organization.ts +7 -3
- package/src/resources/realtime-sessions.ts +251 -0
- package/src/resources/sound-effect.ts +3 -0
- package/src/resources/speech-to-speech.ts +3 -0
- package/src/resources/tasks.ts +3 -0
- package/src/resources/text-to-image.ts +3 -0
- package/src/resources/text-to-speech.ts +3 -0
- package/src/resources/text-to-video.ts +50 -0
- package/src/resources/video-to-video.ts +9 -6
- package/src/resources/voice-dubbing.ts +3 -0
- package/src/resources/voice-isolation.ts +3 -0
- package/src/resources/voices.ts +345 -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
- package/resources/video-upscale.d.mts +0 -35
- package/resources/video-upscale.d.mts.map +0 -1
- package/resources/video-upscale.d.ts +0 -35
- package/resources/video-upscale.d.ts.map +0 -1
- package/resources/video-upscale.js +0 -25
- package/resources/video-upscale.js.map +0 -1
- package/resources/video-upscale.mjs +0 -21
- package/resources/video-upscale.mjs.map +0 -1
- package/src/resources/video-upscale.ts +0 -51
|
@@ -4,6 +4,9 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import { RequestOptions } from '../internal/request-options';
|
|
5
5
|
import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
7
10
|
export class CharacterPerformance extends APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* This endpoint will start a new task to control a character's facial expressions
|
|
@@ -0,0 +1,270 @@
|
|
|
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 { buildHeaders } from '../internal/headers';
|
|
7
|
+
import { RequestOptions } from '../internal/request-options';
|
|
8
|
+
import { path } from '../internal/utils/path';
|
|
9
|
+
|
|
10
|
+
export class Documents extends APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* Create a new knowledge document. Documents can be attached to avatars to provide
|
|
13
|
+
* additional context during conversations.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```ts
|
|
17
|
+
* const document = await client.documents.create({
|
|
18
|
+
* content:
|
|
19
|
+
* '# Product FAQ\n\n## What is your return policy?\n\nWe offer a 30-day return policy...',
|
|
20
|
+
* name: 'Product FAQ',
|
|
21
|
+
* });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
create(body: DocumentCreateParams, options?: RequestOptions): APIPromise<DocumentCreateResponse> {
|
|
25
|
+
return this._client.post('/v1/documents', { body, ...options });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Get details of a specific knowledge document.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const document = await client.documents.retrieve(
|
|
34
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
35
|
+
* );
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<DocumentRetrieveResponse> {
|
|
39
|
+
return this._client.get(path`/v1/documents/${id}`, options);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* List knowledge documents for the authenticated user with cursor-based
|
|
44
|
+
* pagination.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* ```ts
|
|
48
|
+
* // Automatically fetches more pages as needed.
|
|
49
|
+
* for await (const documentListResponse of client.documents.list(
|
|
50
|
+
* { limit: 1 },
|
|
51
|
+
* )) {
|
|
52
|
+
* // ...
|
|
53
|
+
* }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
list(
|
|
57
|
+
query: DocumentListParams,
|
|
58
|
+
options?: RequestOptions,
|
|
59
|
+
): PagePromise<DocumentListResponsesCursorPage, DocumentListResponse> {
|
|
60
|
+
return this._client.getAPIList('/v1/documents', CursorPage<DocumentListResponse>, { query, ...options });
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Delete a knowledge document. This also removes it from all avatars it was
|
|
65
|
+
* attached to.
|
|
66
|
+
*
|
|
67
|
+
* @example
|
|
68
|
+
* ```ts
|
|
69
|
+
* await client.documents.delete(
|
|
70
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
71
|
+
* );
|
|
72
|
+
* ```
|
|
73
|
+
*/
|
|
74
|
+
delete(id: string, options?: RequestOptions): APIPromise<void> {
|
|
75
|
+
return this._client.delete(path`/v1/documents/${id}`, {
|
|
76
|
+
...options,
|
|
77
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type DocumentListResponsesCursorPage = CursorPage<DocumentListResponse>;
|
|
83
|
+
|
|
84
|
+
export interface DocumentCreateResponse {
|
|
85
|
+
/**
|
|
86
|
+
* The unique identifier of the document.
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* The full content of the document.
|
|
92
|
+
*/
|
|
93
|
+
content: string;
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* When the document was created.
|
|
97
|
+
*/
|
|
98
|
+
createdAt: string;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The name of the document.
|
|
102
|
+
*/
|
|
103
|
+
name: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* The type of document.
|
|
107
|
+
*/
|
|
108
|
+
type: 'text' | 'file';
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* When the document was last updated.
|
|
112
|
+
*/
|
|
113
|
+
updatedAt: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Avatars that use this document. Always empty for newly created documents.
|
|
117
|
+
*/
|
|
118
|
+
usedBy: Array<DocumentCreateResponse.UsedBy>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export namespace DocumentCreateResponse {
|
|
122
|
+
export interface UsedBy {
|
|
123
|
+
/**
|
|
124
|
+
* The avatar ID.
|
|
125
|
+
*/
|
|
126
|
+
id: string;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* URL to the avatar image, or null if not yet processed.
|
|
130
|
+
*/
|
|
131
|
+
imageUrl: string | null;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* The avatar name.
|
|
135
|
+
*/
|
|
136
|
+
name: string;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export interface DocumentRetrieveResponse {
|
|
141
|
+
/**
|
|
142
|
+
* The unique identifier of the document.
|
|
143
|
+
*/
|
|
144
|
+
id: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The full content of the document.
|
|
148
|
+
*/
|
|
149
|
+
content: string;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* When the document was created.
|
|
153
|
+
*/
|
|
154
|
+
createdAt: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* The name of the document.
|
|
158
|
+
*/
|
|
159
|
+
name: string;
|
|
160
|
+
|
|
161
|
+
/**
|
|
162
|
+
* The type of document.
|
|
163
|
+
*/
|
|
164
|
+
type: 'text' | 'file';
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* When the document was last updated.
|
|
168
|
+
*/
|
|
169
|
+
updatedAt: string;
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Avatars that use this document.
|
|
173
|
+
*/
|
|
174
|
+
usedBy: Array<DocumentRetrieveResponse.UsedBy>;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export namespace DocumentRetrieveResponse {
|
|
178
|
+
export interface UsedBy {
|
|
179
|
+
/**
|
|
180
|
+
* The avatar ID.
|
|
181
|
+
*/
|
|
182
|
+
id: string;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* URL to the avatar image, or null if not yet processed.
|
|
186
|
+
*/
|
|
187
|
+
imageUrl: string | null;
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* The avatar name.
|
|
191
|
+
*/
|
|
192
|
+
name: string;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface DocumentListResponse {
|
|
197
|
+
/**
|
|
198
|
+
* The unique identifier of the document.
|
|
199
|
+
*/
|
|
200
|
+
id: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* When the document was created.
|
|
204
|
+
*/
|
|
205
|
+
createdAt: string;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The name of the document.
|
|
209
|
+
*/
|
|
210
|
+
name: string;
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* The type of document.
|
|
214
|
+
*/
|
|
215
|
+
type: 'text' | 'file';
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* When the document was last updated.
|
|
219
|
+
*/
|
|
220
|
+
updatedAt: string;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Avatars that use this document.
|
|
224
|
+
*/
|
|
225
|
+
usedBy: Array<DocumentListResponse.UsedBy>;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
export namespace DocumentListResponse {
|
|
229
|
+
export interface UsedBy {
|
|
230
|
+
/**
|
|
231
|
+
* The avatar ID.
|
|
232
|
+
*/
|
|
233
|
+
id: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* URL to the avatar image, or null if not yet processed.
|
|
237
|
+
*/
|
|
238
|
+
imageUrl: string | null;
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The avatar name.
|
|
242
|
+
*/
|
|
243
|
+
name: string;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
export interface DocumentCreateParams {
|
|
248
|
+
/**
|
|
249
|
+
* The markdown or plain text content of the document.
|
|
250
|
+
*/
|
|
251
|
+
content: string;
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* A descriptive name for the document.
|
|
255
|
+
*/
|
|
256
|
+
name: string;
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
export interface DocumentListParams extends CursorPageParams {}
|
|
260
|
+
|
|
261
|
+
export declare namespace Documents {
|
|
262
|
+
export {
|
|
263
|
+
type DocumentCreateResponse as DocumentCreateResponse,
|
|
264
|
+
type DocumentRetrieveResponse as DocumentRetrieveResponse,
|
|
265
|
+
type DocumentListResponse as DocumentListResponse,
|
|
266
|
+
type DocumentListResponsesCursorPage as DocumentListResponsesCursorPage,
|
|
267
|
+
type DocumentCreateParams as DocumentCreateParams,
|
|
268
|
+
type DocumentListParams as DocumentListParams,
|
|
269
|
+
};
|
|
270
|
+
}
|
|
@@ -4,6 +4,9 @@ import { APIResource } from '../core/resource';
|
|
|
4
4
|
import { RequestOptions } from '../internal/request-options';
|
|
5
5
|
import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/polling';
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
7
10
|
export class ImageToVideo extends APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* This endpoint will start a new task to generate a video from an image.
|
|
@@ -35,6 +38,7 @@ export interface ImageToVideoCreateResponse {
|
|
|
35
38
|
}
|
|
36
39
|
|
|
37
40
|
export type ImageToVideoCreateParams =
|
|
41
|
+
| ImageToVideoCreateParams.Gen4_5
|
|
38
42
|
| ImageToVideoCreateParams.Gen4Turbo
|
|
39
43
|
| ImageToVideoCreateParams.Veo3_1
|
|
40
44
|
| ImageToVideoCreateParams.Gen3aTurbo
|
|
@@ -42,6 +46,70 @@ export type ImageToVideoCreateParams =
|
|
|
42
46
|
| ImageToVideoCreateParams.Veo3;
|
|
43
47
|
|
|
44
48
|
export declare namespace ImageToVideoCreateParams {
|
|
49
|
+
export interface Gen4_5 {
|
|
50
|
+
/**
|
|
51
|
+
* The number of seconds of duration for the output video. Must be an integer from
|
|
52
|
+
* 2 to 10.
|
|
53
|
+
*/
|
|
54
|
+
duration: number;
|
|
55
|
+
|
|
56
|
+
model: 'gen4.5';
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* A HTTPS URL.
|
|
60
|
+
*/
|
|
61
|
+
promptImage: string | Array<Gen4_5.PromptImage>;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
65
|
+
* should describe in detail what should appear in the output.
|
|
66
|
+
*/
|
|
67
|
+
promptText: string;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* The resolution of the output video.
|
|
71
|
+
*/
|
|
72
|
+
ratio: '1280:720' | '720:1280' | '1104:832' | '960:960' | '832:1104' | '1584:672';
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Settings that affect the behavior of the content moderation system.
|
|
76
|
+
*/
|
|
77
|
+
contentModeration?: Gen4_5.ContentModeration;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
81
|
+
* get different results for the same other request parameters. Using the same seed
|
|
82
|
+
* integer for an identical request will produce similar results.
|
|
83
|
+
*/
|
|
84
|
+
seed?: number;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export namespace Gen4_5 {
|
|
88
|
+
export interface PromptImage {
|
|
89
|
+
/**
|
|
90
|
+
* The position of the image in the output video. "first" will use the image as the
|
|
91
|
+
* first frame of the video.
|
|
92
|
+
*/
|
|
93
|
+
position: 'first';
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* A HTTPS URL.
|
|
97
|
+
*/
|
|
98
|
+
uri: string;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Settings that affect the behavior of the content moderation system.
|
|
103
|
+
*/
|
|
104
|
+
export interface ContentModeration {
|
|
105
|
+
/**
|
|
106
|
+
* When set to `low`, the content moderation system will be less strict about
|
|
107
|
+
* preventing generations that include recognizable public figures.
|
|
108
|
+
*/
|
|
109
|
+
publicFigureThreshold?: 'auto' | 'low';
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
45
113
|
export interface Gen4Turbo {
|
|
46
114
|
model: 'gen4_turbo';
|
|
47
115
|
|
package/src/resources/index.ts
CHANGED
|
@@ -1,10 +1,30 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
Avatars,
|
|
5
|
+
type AvatarCreateResponse,
|
|
6
|
+
type AvatarRetrieveResponse,
|
|
7
|
+
type AvatarUpdateResponse,
|
|
8
|
+
type AvatarListResponse,
|
|
9
|
+
type AvatarCreateParams,
|
|
10
|
+
type AvatarUpdateParams,
|
|
11
|
+
type AvatarListParams,
|
|
12
|
+
type AvatarListResponsesCursorPage,
|
|
13
|
+
} from './avatars';
|
|
3
14
|
export {
|
|
4
15
|
CharacterPerformance,
|
|
5
16
|
type CharacterPerformanceCreateResponse,
|
|
6
17
|
type CharacterPerformanceCreateParams,
|
|
7
18
|
} from './character-performance';
|
|
19
|
+
export {
|
|
20
|
+
Documents,
|
|
21
|
+
type DocumentCreateResponse,
|
|
22
|
+
type DocumentRetrieveResponse,
|
|
23
|
+
type DocumentListResponse,
|
|
24
|
+
type DocumentCreateParams,
|
|
25
|
+
type DocumentListParams,
|
|
26
|
+
type DocumentListResponsesCursorPage,
|
|
27
|
+
} from './documents';
|
|
8
28
|
export {
|
|
9
29
|
ImageToVideo,
|
|
10
30
|
type ImageToVideoCreateResponse,
|
|
@@ -16,6 +36,12 @@ export {
|
|
|
16
36
|
type OrganizationRetrieveUsageResponse,
|
|
17
37
|
type OrganizationRetrieveUsageParams,
|
|
18
38
|
} from './organization';
|
|
39
|
+
export {
|
|
40
|
+
RealtimeSessions,
|
|
41
|
+
type RealtimeSessionCreateResponse,
|
|
42
|
+
type RealtimeSessionRetrieveResponse,
|
|
43
|
+
type RealtimeSessionCreateParams,
|
|
44
|
+
} from './realtime-sessions';
|
|
19
45
|
export { SoundEffect, type SoundEffectCreateResponse, type SoundEffectCreateParams } from './sound-effect';
|
|
20
46
|
export {
|
|
21
47
|
SpeechToSpeech,
|
|
@@ -35,11 +61,6 @@ export {
|
|
|
35
61
|
type VideoToVideoCreateResponse,
|
|
36
62
|
type VideoToVideoCreateParams,
|
|
37
63
|
} from './video-to-video';
|
|
38
|
-
export {
|
|
39
|
-
VideoUpscale,
|
|
40
|
-
type VideoUpscaleCreateResponse,
|
|
41
|
-
type VideoUpscaleCreateParams,
|
|
42
|
-
} from './video-upscale';
|
|
43
64
|
export {
|
|
44
65
|
VoiceDubbing,
|
|
45
66
|
type VoiceDubbingCreateResponse,
|
|
@@ -50,4 +71,15 @@ export {
|
|
|
50
71
|
type VoiceIsolationCreateResponse,
|
|
51
72
|
type VoiceIsolationCreateParams,
|
|
52
73
|
} from './voice-isolation';
|
|
74
|
+
export {
|
|
75
|
+
Voices,
|
|
76
|
+
type VoiceCreateResponse,
|
|
77
|
+
type VoiceRetrieveResponse,
|
|
78
|
+
type VoiceListResponse,
|
|
79
|
+
type VoicePreviewResponse,
|
|
80
|
+
type VoiceCreateParams,
|
|
81
|
+
type VoiceListParams,
|
|
82
|
+
type VoicePreviewParams,
|
|
83
|
+
type VoiceListResponsesCursorPage,
|
|
84
|
+
} from './voices';
|
|
53
85
|
export { Uploads, type UploadCreateEphemeralResponse, type UploadsCreateEphemeralParams } from './uploads';
|
|
@@ -101,11 +101,11 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
101
101
|
* The list of models with usage during the queried time range.
|
|
102
102
|
*/
|
|
103
103
|
models: Array<
|
|
104
|
+
| 'gen4.5'
|
|
104
105
|
| 'gen3a_turbo'
|
|
105
106
|
| 'gen4_turbo'
|
|
106
107
|
| 'gen4_image'
|
|
107
108
|
| 'gen4_image_turbo'
|
|
108
|
-
| 'upscale_v1'
|
|
109
109
|
| 'act_two'
|
|
110
110
|
| 'gen4_aleph'
|
|
111
111
|
| 'veo3'
|
|
@@ -117,6 +117,8 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
117
117
|
| 'eleven_voice_isolation'
|
|
118
118
|
| 'eleven_voice_dubbing'
|
|
119
119
|
| 'eleven_multilingual_sts_v2'
|
|
120
|
+
| 'gwm1_avatars'
|
|
121
|
+
| 'voice_processing'
|
|
120
122
|
>;
|
|
121
123
|
|
|
122
124
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -147,11 +149,11 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
147
149
|
* The model that credits were spent on.
|
|
148
150
|
*/
|
|
149
151
|
model:
|
|
152
|
+
| 'gen4.5'
|
|
150
153
|
| 'gen3a_turbo'
|
|
151
154
|
| 'gen4_turbo'
|
|
152
155
|
| 'gen4_image'
|
|
153
156
|
| 'gen4_image_turbo'
|
|
154
|
-
| 'upscale_v1'
|
|
155
157
|
| 'act_two'
|
|
156
158
|
| 'gen4_aleph'
|
|
157
159
|
| 'veo3'
|
|
@@ -162,7 +164,9 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
162
164
|
| 'eleven_text_to_sound_v2'
|
|
163
165
|
| 'eleven_voice_isolation'
|
|
164
166
|
| 'eleven_voice_dubbing'
|
|
165
|
-
| 'eleven_multilingual_sts_v2'
|
|
167
|
+
| 'eleven_multilingual_sts_v2'
|
|
168
|
+
| 'gwm1_avatars'
|
|
169
|
+
| 'voice_processing';
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
172
|
}
|