@runwayml/sdk 3.24.0 → 4.1.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 +21 -0
- package/client.d.mts +7 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +7 -4
- package/client.d.ts.map +1 -1
- package/client.js +3 -0
- package/client.js.map +1 -1
- package/client.mjs +3 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/avatar-conversations.d.mts +648 -0
- package/resources/avatar-conversations.d.mts.map +1 -0
- package/resources/avatar-conversations.d.ts +648 -0
- package/resources/avatar-conversations.d.ts.map +1 -0
- package/resources/avatar-conversations.js +41 -0
- package/resources/avatar-conversations.js.map +1 -0
- package/resources/avatar-conversations.mjs +37 -0
- package/resources/avatar-conversations.mjs.map +1 -0
- package/resources/avatars.d.mts +63 -1
- package/resources/avatars.d.mts.map +1 -1
- package/resources/avatars.d.ts +63 -1
- package/resources/avatars.d.ts.map +1 -1
- package/resources/avatars.js +16 -0
- package/resources/avatars.js.map +1 -1
- package/resources/avatars.mjs +16 -0
- package/resources/avatars.mjs.map +1 -1
- package/resources/image-to-video.d.mts +1 -64
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +1 -64
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +0 -9
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +0 -9
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts +3 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- 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/video-to-video.d.mts +11 -94
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +11 -94
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +1 -1
- package/resources/video-to-video.mjs +1 -1
- package/resources/voices.d.mts +97 -1
- package/resources/voices.d.mts.map +1 -1
- package/resources/voices.d.ts +97 -1
- package/resources/voices.d.ts.map +1 -1
- package/resources/voices.js +6 -0
- package/resources/voices.js.map +1 -1
- package/resources/voices.mjs +6 -0
- package/resources/voices.mjs.map +1 -1
- package/src/client.ts +25 -0
- package/src/resources/avatar-conversations.ts +787 -0
- package/src/resources/avatars.ts +76 -0
- package/src/resources/image-to-video.ts +0 -74
- package/src/resources/index.ts +11 -0
- package/src/resources/organization.ts +3 -1
- package/src/resources/video-to-video.ts +12 -120
- package/src/resources/voices.ts +128 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.mts.map +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
package/src/resources/avatars.ts
CHANGED
|
@@ -94,6 +94,23 @@ export class Avatars extends APIResource {
|
|
|
94
94
|
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Get aggregate usage statistics for avatar conversations, including total
|
|
100
|
+
* duration, session counts, average duration, and a per-day breakdown. Per-day
|
|
101
|
+
* buckets are keyed by UTC calendar date. The date range must not exceed 90 days.
|
|
102
|
+
*
|
|
103
|
+
* @example
|
|
104
|
+
* ```ts
|
|
105
|
+
* const response = await client.avatars.getUsage({
|
|
106
|
+
* endDate: '2019-12-27T18:11:19.117Z',
|
|
107
|
+
* startDate: '2019-12-27T18:11:19.117Z',
|
|
108
|
+
* });
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
getUsage(query: AvatarGetUsageParams, options?: RequestOptions): APIPromise<AvatarGetUsageResponse> {
|
|
112
|
+
return this._client.get('/v1/avatar_usage', { query, ...options });
|
|
113
|
+
}
|
|
97
114
|
}
|
|
98
115
|
|
|
99
116
|
export type AvatarListResponsesCursorPage = CursorPage<AvatarListResponse>;
|
|
@@ -1830,6 +1847,51 @@ export namespace AvatarListResponse {
|
|
|
1830
1847
|
}
|
|
1831
1848
|
}
|
|
1832
1849
|
|
|
1850
|
+
export interface AvatarGetUsageResponse {
|
|
1851
|
+
/**
|
|
1852
|
+
* Average duration in seconds across conversations with a measured duration, or 0
|
|
1853
|
+
* if none completed. May not equal `totalSeconds / totalSessions` because
|
|
1854
|
+
* unfinished conversations contribute to the session count but not the duration.
|
|
1855
|
+
*/
|
|
1856
|
+
avgDurationSeconds: number;
|
|
1857
|
+
|
|
1858
|
+
/**
|
|
1859
|
+
* Per-day usage across the date range. Days with no sessions are included with
|
|
1860
|
+
* zeroes.
|
|
1861
|
+
*/
|
|
1862
|
+
byDay: Array<AvatarGetUsageResponse.ByDay>;
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* Total seconds across conversations with a measured duration in the date range.
|
|
1866
|
+
*/
|
|
1867
|
+
totalSeconds: number;
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Number of conversations started in the date range. Includes unfinished and
|
|
1871
|
+
* failed conversations.
|
|
1872
|
+
*/
|
|
1873
|
+
totalSessions: number;
|
|
1874
|
+
}
|
|
1875
|
+
|
|
1876
|
+
export namespace AvatarGetUsageResponse {
|
|
1877
|
+
export interface ByDay {
|
|
1878
|
+
/**
|
|
1879
|
+
* The UTC calendar date (YYYY-MM-DD).
|
|
1880
|
+
*/
|
|
1881
|
+
date: string;
|
|
1882
|
+
|
|
1883
|
+
/**
|
|
1884
|
+
* Total seconds of measured conversation duration on this date.
|
|
1885
|
+
*/
|
|
1886
|
+
seconds: number;
|
|
1887
|
+
|
|
1888
|
+
/**
|
|
1889
|
+
* Number of conversations started on this date.
|
|
1890
|
+
*/
|
|
1891
|
+
sessions: number;
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1833
1895
|
export interface AvatarCreateParams {
|
|
1834
1896
|
/**
|
|
1835
1897
|
* The character name for the avatar.
|
|
@@ -2035,15 +2097,29 @@ export namespace AvatarUpdateParams {
|
|
|
2035
2097
|
|
|
2036
2098
|
export interface AvatarListParams extends CursorPageParams {}
|
|
2037
2099
|
|
|
2100
|
+
export interface AvatarGetUsageParams {
|
|
2101
|
+
/**
|
|
2102
|
+
* End of the date range in UTC (exclusive). Required.
|
|
2103
|
+
*/
|
|
2104
|
+
endDate: string;
|
|
2105
|
+
|
|
2106
|
+
/**
|
|
2107
|
+
* Start of the date range in UTC (inclusive). Required.
|
|
2108
|
+
*/
|
|
2109
|
+
startDate: string;
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2038
2112
|
export declare namespace Avatars {
|
|
2039
2113
|
export {
|
|
2040
2114
|
type AvatarCreateResponse as AvatarCreateResponse,
|
|
2041
2115
|
type AvatarRetrieveResponse as AvatarRetrieveResponse,
|
|
2042
2116
|
type AvatarUpdateResponse as AvatarUpdateResponse,
|
|
2043
2117
|
type AvatarListResponse as AvatarListResponse,
|
|
2118
|
+
type AvatarGetUsageResponse as AvatarGetUsageResponse,
|
|
2044
2119
|
type AvatarListResponsesCursorPage as AvatarListResponsesCursorPage,
|
|
2045
2120
|
type AvatarCreateParams as AvatarCreateParams,
|
|
2046
2121
|
type AvatarUpdateParams as AvatarUpdateParams,
|
|
2047
2122
|
type AvatarListParams as AvatarListParams,
|
|
2123
|
+
type AvatarGetUsageParams as AvatarGetUsageParams,
|
|
2048
2124
|
};
|
|
2049
2125
|
}
|
|
@@ -10,15 +10,6 @@ import { APIPromiseWithAwaitableTask, wrapAsWaitableResource } from '../lib/poll
|
|
|
10
10
|
export class ImageToVideo extends APIResource {
|
|
11
11
|
/**
|
|
12
12
|
* This endpoint will start a new task to generate a video from an image.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```ts
|
|
16
|
-
* const imageToVideo = await client.imageToVideo.create({
|
|
17
|
-
* model: 'gen3a_turbo',
|
|
18
|
-
* promptImage: 'https://example.com/file',
|
|
19
|
-
* promptText: 'A beautiful sunset over a calm ocean.',
|
|
20
|
-
* });
|
|
21
|
-
* ```
|
|
22
13
|
*/
|
|
23
14
|
create(
|
|
24
15
|
body: ImageToVideoCreateParams,
|
|
@@ -41,7 +32,6 @@ export type ImageToVideoCreateParams =
|
|
|
41
32
|
| ImageToVideoCreateParams.Gen4_5
|
|
42
33
|
| ImageToVideoCreateParams.Gen4Turbo
|
|
43
34
|
| ImageToVideoCreateParams.Veo3_1
|
|
44
|
-
| ImageToVideoCreateParams.Gen3aTurbo
|
|
45
35
|
| ImageToVideoCreateParams.Veo3_1Fast
|
|
46
36
|
| ImageToVideoCreateParams.Happyhorse1_0
|
|
47
37
|
| ImageToVideoCreateParams.Seedance2
|
|
@@ -224,70 +214,6 @@ export declare namespace ImageToVideoCreateParams {
|
|
|
224
214
|
}
|
|
225
215
|
}
|
|
226
216
|
|
|
227
|
-
export interface Gen3aTurbo {
|
|
228
|
-
model: 'gen3a_turbo';
|
|
229
|
-
|
|
230
|
-
/**
|
|
231
|
-
* A HTTPS URL.
|
|
232
|
-
*/
|
|
233
|
-
promptImage: string | Array<Gen3aTurbo.PromptImage>;
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
237
|
-
* should describe in detail what should appear in the output.
|
|
238
|
-
*/
|
|
239
|
-
promptText: string;
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Settings that affect the behavior of the content moderation system.
|
|
243
|
-
*/
|
|
244
|
-
contentModeration?: Gen3aTurbo.ContentModeration;
|
|
245
|
-
|
|
246
|
-
/**
|
|
247
|
-
* The duration of the output video in seconds.
|
|
248
|
-
*/
|
|
249
|
-
duration?: 5 | 10;
|
|
250
|
-
|
|
251
|
-
/**
|
|
252
|
-
* The resolution of the output video.
|
|
253
|
-
*/
|
|
254
|
-
ratio?: '768:1280' | '1280:768';
|
|
255
|
-
|
|
256
|
-
/**
|
|
257
|
-
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
258
|
-
* get different results for the same other request parameters. Using the same seed
|
|
259
|
-
* integer for an identical request will produce similar results.
|
|
260
|
-
*/
|
|
261
|
-
seed?: number;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
export namespace Gen3aTurbo {
|
|
265
|
-
export interface PromptImage {
|
|
266
|
-
/**
|
|
267
|
-
* The position of the image in the output video. "first" will use the image as the
|
|
268
|
-
* first frame of the video, "last" will use the image as the last frame of the
|
|
269
|
-
* video.
|
|
270
|
-
*/
|
|
271
|
-
position: 'first' | 'last';
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* A HTTPS URL.
|
|
275
|
-
*/
|
|
276
|
-
uri: string;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
/**
|
|
280
|
-
* Settings that affect the behavior of the content moderation system.
|
|
281
|
-
*/
|
|
282
|
-
export interface ContentModeration {
|
|
283
|
-
/**
|
|
284
|
-
* When set to `low`, the content moderation system will be less strict about
|
|
285
|
-
* preventing generations that include recognizable public figures.
|
|
286
|
-
*/
|
|
287
|
-
publicFigureThreshold?: 'auto' | 'low';
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
217
|
export interface Veo3_1Fast {
|
|
292
218
|
model: 'veo3.1_fast';
|
|
293
219
|
|
package/src/resources/index.ts
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
+
export {
|
|
4
|
+
AvatarConversations,
|
|
5
|
+
type AvatarConversationRetrieveResponse,
|
|
6
|
+
type AvatarConversationListResponse,
|
|
7
|
+
type AvatarConversationListParams,
|
|
8
|
+
type AvatarConversationListResponsesCursorPage,
|
|
9
|
+
} from './avatar-conversations';
|
|
3
10
|
export { AvatarVideos, type AvatarVideoCreateResponse, type AvatarVideoCreateParams } from './avatar-videos';
|
|
4
11
|
export {
|
|
5
12
|
Avatars,
|
|
@@ -7,9 +14,11 @@ export {
|
|
|
7
14
|
type AvatarRetrieveResponse,
|
|
8
15
|
type AvatarUpdateResponse,
|
|
9
16
|
type AvatarListResponse,
|
|
17
|
+
type AvatarGetUsageResponse,
|
|
10
18
|
type AvatarCreateParams,
|
|
11
19
|
type AvatarUpdateParams,
|
|
12
20
|
type AvatarListParams,
|
|
21
|
+
type AvatarGetUsageParams,
|
|
13
22
|
type AvatarListResponsesCursorPage,
|
|
14
23
|
} from './avatars';
|
|
15
24
|
export {
|
|
@@ -82,9 +91,11 @@ export {
|
|
|
82
91
|
Voices,
|
|
83
92
|
type VoiceCreateResponse,
|
|
84
93
|
type VoiceRetrieveResponse,
|
|
94
|
+
type VoiceUpdateResponse,
|
|
85
95
|
type VoiceListResponse,
|
|
86
96
|
type VoicePreviewResponse,
|
|
87
97
|
type VoiceCreateParams,
|
|
98
|
+
type VoiceUpdateParams,
|
|
88
99
|
type VoiceListParams,
|
|
89
100
|
type VoicePreviewParams,
|
|
90
101
|
type VoiceListResponsesCursorPage,
|
|
@@ -138,6 +138,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
138
138
|
| 'klingO3_4k'
|
|
139
139
|
| 'happyhorse_1_0'
|
|
140
140
|
| 'aleph2'
|
|
141
|
+
| 'product_swap'
|
|
141
142
|
>;
|
|
142
143
|
|
|
143
144
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
@@ -205,7 +206,8 @@ export namespace OrganizationRetrieveUsageResponse {
|
|
|
205
206
|
| 'klingO3_standard'
|
|
206
207
|
| 'klingO3_4k'
|
|
207
208
|
| 'happyhorse_1_0'
|
|
208
|
-
| 'aleph2'
|
|
209
|
+
| 'aleph2'
|
|
210
|
+
| 'product_swap';
|
|
209
211
|
}
|
|
210
212
|
}
|
|
211
213
|
}
|
|
@@ -14,7 +14,7 @@ export class VideoToVideo extends APIResource {
|
|
|
14
14
|
* @example
|
|
15
15
|
* ```ts
|
|
16
16
|
* const videoToVideo = await client.videoToVideo.create({
|
|
17
|
-
* model: '
|
|
17
|
+
* model: 'aleph2',
|
|
18
18
|
* promptText: 'x',
|
|
19
19
|
* videoUri: 'https://example.com/video.mp4',
|
|
20
20
|
* });
|
|
@@ -38,86 +38,12 @@ export interface VideoToVideoCreateResponse {
|
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export type VideoToVideoCreateParams =
|
|
41
|
-
| VideoToVideoCreateParams.
|
|
42
|
-
| VideoToVideoCreateParams.Aleph2
|
|
41
|
+
| VideoToVideoCreateParams.Variant0
|
|
43
42
|
| VideoToVideoCreateParams.Seedance2
|
|
44
43
|
| VideoToVideoCreateParams.Seedance2Fast;
|
|
45
44
|
|
|
46
45
|
export declare namespace VideoToVideoCreateParams {
|
|
47
|
-
export interface
|
|
48
|
-
model: 'gen4_aleph';
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* A non-empty string up to 1000 characters (measured in UTF-16 code units). This
|
|
52
|
-
* should describe in detail what should appear in the output.
|
|
53
|
-
*/
|
|
54
|
-
promptText: string;
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* A HTTPS URL.
|
|
58
|
-
*/
|
|
59
|
-
videoUri: string;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Settings that affect the behavior of the content moderation system.
|
|
63
|
-
*/
|
|
64
|
-
contentModeration?: Gen4Aleph.ContentModeration;
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @deprecated Deprecated. This field is ignored. The resolution of the output
|
|
68
|
-
* video is determined by the input video.
|
|
69
|
-
*/
|
|
70
|
-
ratio?:
|
|
71
|
-
| '1280:720'
|
|
72
|
-
| '720:1280'
|
|
73
|
-
| '1104:832'
|
|
74
|
-
| '960:960'
|
|
75
|
-
| '832:1104'
|
|
76
|
-
| '1584:672'
|
|
77
|
-
| '848:480'
|
|
78
|
-
| '640:480';
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* An array of references. Currently up to one reference is supported. See
|
|
82
|
-
* [our docs](/assets/inputs#images) on image inputs for more information.
|
|
83
|
-
*/
|
|
84
|
-
references?: Array<Gen4Aleph.Reference>;
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
88
|
-
* get different results for the same other request parameters. Using the same seed
|
|
89
|
-
* integer for an identical request will produce similar results.
|
|
90
|
-
*/
|
|
91
|
-
seed?: number;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
export namespace Gen4Aleph {
|
|
95
|
-
/**
|
|
96
|
-
* Settings that affect the behavior of the content moderation system.
|
|
97
|
-
*/
|
|
98
|
-
export interface ContentModeration {
|
|
99
|
-
/**
|
|
100
|
-
* When set to `low`, the content moderation system will be less strict about
|
|
101
|
-
* preventing generations that include recognizable public figures.
|
|
102
|
-
*/
|
|
103
|
-
publicFigureThreshold?: 'auto' | 'low';
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Passing an image reference allows the model to emulate the style or content of
|
|
108
|
-
* the reference in the output.
|
|
109
|
-
*/
|
|
110
|
-
export interface Reference {
|
|
111
|
-
type: 'image';
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* A HTTPS URL.
|
|
115
|
-
*/
|
|
116
|
-
uri: string;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface Aleph2 {
|
|
46
|
+
export interface Variant0 {
|
|
121
47
|
model: 'aleph2';
|
|
122
48
|
|
|
123
49
|
/**
|
|
@@ -134,19 +60,13 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
134
60
|
/**
|
|
135
61
|
* Settings that affect the behavior of the content moderation system.
|
|
136
62
|
*/
|
|
137
|
-
contentModeration?:
|
|
63
|
+
contentModeration?: Variant0.ContentModeration;
|
|
138
64
|
|
|
139
65
|
/**
|
|
140
66
|
* Timed guidance images placed at specific points in the input video. Up to 5
|
|
141
67
|
* keyframes.
|
|
142
68
|
*/
|
|
143
|
-
keyframes?: Array<
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* A list of up to 5 image keyframes for guiding the edit at specific points in the
|
|
147
|
-
* video.
|
|
148
|
-
*/
|
|
149
|
-
promptImage?: Array<Aleph2.PromptImage>;
|
|
69
|
+
keyframes?: Array<Variant0.UnionMember0 | Variant0.UnionMember1>;
|
|
150
70
|
|
|
151
71
|
/**
|
|
152
72
|
* If unspecified, a random number is chosen. Varying the seed integer is a way to
|
|
@@ -154,9 +74,15 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
154
74
|
* integer for an identical request will produce similar results.
|
|
155
75
|
*/
|
|
156
76
|
seed?: number;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Target aspect ratio for expand/outpaint. Letterboxes the input video and
|
|
80
|
+
* keyframes before generation.
|
|
81
|
+
*/
|
|
82
|
+
targetAspectRatio?: '16:9' | '4:3' | '3:2' | '1:1' | '2:3' | '3:4' | '9:16' | '21:9';
|
|
157
83
|
}
|
|
158
84
|
|
|
159
|
-
export namespace
|
|
85
|
+
export namespace Variant0 {
|
|
160
86
|
/**
|
|
161
87
|
* Settings that affect the behavior of the content moderation system.
|
|
162
88
|
*/
|
|
@@ -193,40 +119,6 @@ export declare namespace VideoToVideoCreateParams {
|
|
|
193
119
|
*/
|
|
194
120
|
uri: string;
|
|
195
121
|
}
|
|
196
|
-
|
|
197
|
-
export interface PromptImage {
|
|
198
|
-
/**
|
|
199
|
-
* - `first` - Places the image at the start of the output video (timestamp 0).
|
|
200
|
-
* - `last` - Places the image at the end of the output video (timestamp =
|
|
201
|
-
* duration).
|
|
202
|
-
*/
|
|
203
|
-
position: 'first' | 'last' | PromptImage.TimestampPosition | PromptImage.RelativePosition;
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* A HTTPS URL.
|
|
207
|
-
*/
|
|
208
|
-
uri: string;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export namespace PromptImage {
|
|
212
|
-
export interface TimestampPosition {
|
|
213
|
-
/**
|
|
214
|
-
* Absolute timestamp in seconds from the start of the output video.
|
|
215
|
-
*/
|
|
216
|
-
timestampSeconds: number;
|
|
217
|
-
|
|
218
|
-
type: 'timestamp';
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
export interface RelativePosition {
|
|
222
|
-
/**
|
|
223
|
-
* Position as a fraction [0.0, 1.0] of the total video duration.
|
|
224
|
-
*/
|
|
225
|
-
positionPercentage: number;
|
|
226
|
-
|
|
227
|
-
type: 'position';
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
122
|
}
|
|
231
123
|
|
|
232
124
|
export interface Seedance2 {
|
package/src/resources/voices.ts
CHANGED
|
@@ -23,6 +23,17 @@ export class Voices extends APIResource {
|
|
|
23
23
|
return this._client.get(path`/v1/voices/${id}`, options);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
+
/**
|
|
27
|
+
* Update the name and/or description of a custom voice.
|
|
28
|
+
*/
|
|
29
|
+
update(
|
|
30
|
+
id: string,
|
|
31
|
+
body: VoiceUpdateParams | null | undefined = {},
|
|
32
|
+
options?: RequestOptions,
|
|
33
|
+
): APIPromise<VoiceUpdateResponse> {
|
|
34
|
+
return this._client.patch(path`/v1/voices/${id}`, { body, ...options });
|
|
35
|
+
}
|
|
36
|
+
|
|
26
37
|
/**
|
|
27
38
|
* List custom voices for the authenticated organization with cursor-based
|
|
28
39
|
* pagination.
|
|
@@ -165,6 +176,109 @@ export namespace VoiceRetrieveResponse {
|
|
|
165
176
|
}
|
|
166
177
|
}
|
|
167
178
|
|
|
179
|
+
/**
|
|
180
|
+
* A voice that is still being processed.
|
|
181
|
+
*/
|
|
182
|
+
export type VoiceUpdateResponse =
|
|
183
|
+
| VoiceUpdateResponse.Processing
|
|
184
|
+
| VoiceUpdateResponse.Ready
|
|
185
|
+
| VoiceUpdateResponse.Failed;
|
|
186
|
+
|
|
187
|
+
export namespace VoiceUpdateResponse {
|
|
188
|
+
/**
|
|
189
|
+
* A voice that is still being processed.
|
|
190
|
+
*/
|
|
191
|
+
export interface Processing {
|
|
192
|
+
/**
|
|
193
|
+
* The unique identifier of the voice.
|
|
194
|
+
*/
|
|
195
|
+
id: string;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* When the voice was created.
|
|
199
|
+
*/
|
|
200
|
+
createdAt: string;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* A description of the voice, or null if not set.
|
|
204
|
+
*/
|
|
205
|
+
description: string | null;
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* The name of the voice.
|
|
209
|
+
*/
|
|
210
|
+
name: string;
|
|
211
|
+
|
|
212
|
+
status: 'PROCESSING';
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* A voice that is ready for use.
|
|
217
|
+
*/
|
|
218
|
+
export interface Ready {
|
|
219
|
+
/**
|
|
220
|
+
* The unique identifier of the voice.
|
|
221
|
+
*/
|
|
222
|
+
id: string;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* When the voice was created.
|
|
226
|
+
*/
|
|
227
|
+
createdAt: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* A description of the voice, or null if not set.
|
|
231
|
+
*/
|
|
232
|
+
description: string | null;
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
* The name of the voice.
|
|
236
|
+
*/
|
|
237
|
+
name: string;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* A signed URL to an MP3 audio sample of the voice, or null if no sample is
|
|
241
|
+
* available.
|
|
242
|
+
*/
|
|
243
|
+
previewUrl: string | null;
|
|
244
|
+
|
|
245
|
+
status: 'READY';
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* A voice that failed to finish processing.
|
|
250
|
+
*/
|
|
251
|
+
export interface Failed {
|
|
252
|
+
/**
|
|
253
|
+
* The unique identifier of the voice.
|
|
254
|
+
*/
|
|
255
|
+
id: string;
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* When the voice was created.
|
|
259
|
+
*/
|
|
260
|
+
createdAt: string;
|
|
261
|
+
|
|
262
|
+
/**
|
|
263
|
+
* A description of the voice, or null if not set.
|
|
264
|
+
*/
|
|
265
|
+
description: string | null;
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* A human-readable error message. This value is not stable and should not be
|
|
269
|
+
* matched against programmatically.
|
|
270
|
+
*/
|
|
271
|
+
failureReason: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The name of the voice.
|
|
275
|
+
*/
|
|
276
|
+
name: string;
|
|
277
|
+
|
|
278
|
+
status: 'FAILED';
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
|
|
168
282
|
/**
|
|
169
283
|
* A voice that is still being processed.
|
|
170
284
|
*/
|
|
@@ -321,6 +435,18 @@ export namespace VoiceCreateParams {
|
|
|
321
435
|
}
|
|
322
436
|
}
|
|
323
437
|
|
|
438
|
+
export interface VoiceUpdateParams {
|
|
439
|
+
/**
|
|
440
|
+
* An optional description of the voice.
|
|
441
|
+
*/
|
|
442
|
+
description?: string | null;
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* A name for the voice.
|
|
446
|
+
*/
|
|
447
|
+
name?: string;
|
|
448
|
+
}
|
|
449
|
+
|
|
324
450
|
export interface VoiceListParams extends CursorPageParams {}
|
|
325
451
|
|
|
326
452
|
export interface VoicePreviewParams {
|
|
@@ -341,10 +467,12 @@ export declare namespace Voices {
|
|
|
341
467
|
export {
|
|
342
468
|
type VoiceCreateResponse as VoiceCreateResponse,
|
|
343
469
|
type VoiceRetrieveResponse as VoiceRetrieveResponse,
|
|
470
|
+
type VoiceUpdateResponse as VoiceUpdateResponse,
|
|
344
471
|
type VoiceListResponse as VoiceListResponse,
|
|
345
472
|
type VoicePreviewResponse as VoicePreviewResponse,
|
|
346
473
|
type VoiceListResponsesCursorPage as VoiceListResponsesCursorPage,
|
|
347
474
|
type VoiceCreateParams as VoiceCreateParams,
|
|
475
|
+
type VoiceUpdateParams as VoiceUpdateParams,
|
|
348
476
|
type VoiceListParams as VoiceListParams,
|
|
349
477
|
type VoicePreviewParams as VoicePreviewParams,
|
|
350
478
|
};
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '4.1.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "4.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.mts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "
|
|
1
|
+
export declare const VERSION = "4.1.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '
|
|
1
|
+
export const VERSION = '4.1.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,CAAC,2BAA2B"}
|