@runwayml/sdk 4.10.0 → 4.12.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 +28 -0
- package/README.md +8 -8
- package/client.d.mts +6 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -0
- package/client.d.ts.map +1 -1
- package/client.js +6 -0
- package/client.js.map +1 -1
- package/client.mjs +6 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/generate/audio.d.mts +180 -0
- package/resources/generate/audio.d.mts.map +1 -0
- package/resources/generate/audio.d.ts +180 -0
- package/resources/generate/audio.d.ts.map +1 -0
- package/resources/generate/audio.js +18 -0
- package/resources/generate/audio.js.map +1 -0
- package/resources/generate/audio.mjs +14 -0
- package/resources/generate/audio.mjs.map +1 -0
- package/resources/generate/generate.d.mts +18 -0
- package/resources/generate/generate.d.mts.map +1 -0
- package/resources/generate/generate.d.ts +18 -0
- package/resources/generate/generate.d.ts.map +1 -0
- package/resources/generate/generate.js +25 -0
- package/resources/generate/generate.js.map +1 -0
- package/resources/generate/generate.mjs +20 -0
- package/resources/generate/generate.mjs.map +1 -0
- package/resources/generate/image.d.mts +171 -0
- package/resources/generate/image.d.mts.map +1 -0
- package/resources/generate/image.d.ts +171 -0
- package/resources/generate/image.d.ts.map +1 -0
- package/resources/generate/image.js +17 -0
- package/resources/generate/image.js.map +1 -0
- package/resources/generate/image.mjs +13 -0
- package/resources/generate/image.mjs.map +1 -0
- package/resources/generate/index.d.mts +5 -0
- package/resources/generate/index.d.mts.map +1 -0
- package/resources/generate/index.d.ts +5 -0
- package/resources/generate/index.d.ts.map +1 -0
- package/resources/generate/index.js +13 -0
- package/resources/generate/index.js.map +1 -0
- package/resources/generate/index.mjs +6 -0
- package/resources/generate/index.mjs.map +1 -0
- package/resources/generate/video.d.mts +246 -0
- package/resources/generate/video.d.mts.map +1 -0
- package/resources/generate/video.d.ts +246 -0
- package/resources/generate/video.d.ts.map +1 -0
- package/resources/generate/video.js +17 -0
- package/resources/generate/video.js.map +1 -0
- package/resources/generate/video.mjs +13 -0
- package/resources/generate/video.mjs.map +1 -0
- package/resources/generate.d.mts +2 -0
- package/resources/generate.d.mts.map +1 -0
- package/resources/generate.d.ts +2 -0
- package/resources/generate.d.ts.map +1 -0
- package/resources/generate.js +6 -0
- package/resources/generate.js.map +1 -0
- package/resources/generate.mjs +3 -0
- package/resources/generate.mjs.map +1 -0
- package/resources/index.d.mts +2 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +20 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +20 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/routers.d.mts +490 -0
- package/resources/routers.d.mts.map +1 -0
- package/resources/routers.d.ts +490 -0
- package/resources/routers.d.ts.map +1 -0
- package/resources/routers.js +49 -0
- package/resources/routers.js.map +1 -0
- package/resources/routers.mjs +45 -0
- package/resources/routers.mjs.map +1 -0
- package/resources/text-to-image.d.mts +5 -0
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +5 -0
- package/resources/text-to-image.d.ts.map +1 -1
- package/src/client.ts +30 -0
- package/src/resources/generate/audio.ts +265 -0
- package/src/resources/generate/generate.ts +39 -0
- package/src/resources/generate/image.ts +206 -0
- package/src/resources/generate/index.ts +6 -0
- package/src/resources/generate/video.ts +300 -0
- package/src/resources/generate.ts +3 -0
- package/src/resources/index.ts +12 -0
- package/src/resources/organization.ts +26 -0
- package/src/resources/routers.ts +622 -0
- package/src/resources/text-to-image.ts +6 -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,180 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../../lib/polling.mjs";
|
|
4
|
+
export declare class Audio extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Start an audio generation task using a saved Model Router config instead of
|
|
7
|
+
* naming a model. Set input.type to speech to speak promptText verbatim, or audio
|
|
8
|
+
* to generate audio described by promptText.
|
|
9
|
+
*/
|
|
10
|
+
create(body: AudioCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<AudioCreateResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface AudioCreateResponse {
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the created task. Poll GET /v1/tasks/:id for the result.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Metadata describing which model the router selected and why.
|
|
19
|
+
*/
|
|
20
|
+
routing: AudioCreateResponse.Routing;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace AudioCreateResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Metadata describing which model the router selected and why.
|
|
25
|
+
*/
|
|
26
|
+
interface Routing {
|
|
27
|
+
/**
|
|
28
|
+
* The slug of the router config that was applied to this request.
|
|
29
|
+
*/
|
|
30
|
+
configId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Estimated cost, computed against current pricing.
|
|
33
|
+
*/
|
|
34
|
+
estimatedCost: Routing.EstimatedCost;
|
|
35
|
+
/**
|
|
36
|
+
* The public name of the model the router selected.
|
|
37
|
+
*/
|
|
38
|
+
model: string;
|
|
39
|
+
/**
|
|
40
|
+
* The provider of the selected model.
|
|
41
|
+
*/
|
|
42
|
+
provider: string;
|
|
43
|
+
/**
|
|
44
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
45
|
+
* identical to prepared model options.
|
|
46
|
+
*/
|
|
47
|
+
resolvedInput: Routing.ResolvedInput;
|
|
48
|
+
/**
|
|
49
|
+
* The resolved config settings the router used for this request.
|
|
50
|
+
*/
|
|
51
|
+
resolvedSettings: Routing.ResolvedSettings;
|
|
52
|
+
}
|
|
53
|
+
namespace Routing {
|
|
54
|
+
/**
|
|
55
|
+
* Estimated cost, computed against current pricing.
|
|
56
|
+
*/
|
|
57
|
+
interface EstimatedCost {
|
|
58
|
+
/**
|
|
59
|
+
* Estimated cost of the generation in credits.
|
|
60
|
+
*/
|
|
61
|
+
credits: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
65
|
+
* identical to prepared model options.
|
|
66
|
+
*/
|
|
67
|
+
interface ResolvedInput {
|
|
68
|
+
/**
|
|
69
|
+
* The prompt mode the router routed for.
|
|
70
|
+
*/
|
|
71
|
+
type: 'speech' | 'audio';
|
|
72
|
+
/**
|
|
73
|
+
* How the selected model resolves the voice: the requested preset or
|
|
74
|
+
* reference-audio clone, the model default for voiceless speech, or none for
|
|
75
|
+
* general audio.
|
|
76
|
+
*/
|
|
77
|
+
voice: 'preset' | 'reference-audio' | 'default' | 'none';
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The resolved config settings the router used for this request.
|
|
81
|
+
*/
|
|
82
|
+
interface ResolvedSettings {
|
|
83
|
+
/**
|
|
84
|
+
* The single optimization preference the config selected, used as the soft
|
|
85
|
+
* weighting when scoring eligible models.
|
|
86
|
+
*/
|
|
87
|
+
optimizeFor: 'cost' | 'latency' | 'quality';
|
|
88
|
+
/**
|
|
89
|
+
* The applied maximum credits per generation for this request’s modality, or null
|
|
90
|
+
* if the config sets no ceiling.
|
|
91
|
+
*/
|
|
92
|
+
priceCeiling: number | null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface AudioCreateParams {
|
|
97
|
+
/**
|
|
98
|
+
* The slug of a saved Model Router config to route this request with.
|
|
99
|
+
*/
|
|
100
|
+
configId: string;
|
|
101
|
+
/**
|
|
102
|
+
* Model-agnostic audio generation input. The router selects a model and maps these
|
|
103
|
+
* options to it.
|
|
104
|
+
*/
|
|
105
|
+
input: AudioCreateParams.Input;
|
|
106
|
+
}
|
|
107
|
+
export declare namespace AudioCreateParams {
|
|
108
|
+
/**
|
|
109
|
+
* Model-agnostic audio generation input. The router selects a model and maps these
|
|
110
|
+
* options to it.
|
|
111
|
+
*/
|
|
112
|
+
interface Input {
|
|
113
|
+
/**
|
|
114
|
+
* For `speech`, the words to speak. For `audio`, a description of the desired
|
|
115
|
+
* output.
|
|
116
|
+
*/
|
|
117
|
+
promptText: string;
|
|
118
|
+
/**
|
|
119
|
+
* How promptText is interpreted: `speech` speaks it verbatim as a script; `audio`
|
|
120
|
+
* treats it as a description of the desired audio, which may combine speech,
|
|
121
|
+
* music, ambience, and sound effects.
|
|
122
|
+
*/
|
|
123
|
+
type: 'speech' | 'audio';
|
|
124
|
+
/**
|
|
125
|
+
* Desired output duration in seconds for `audio` generation. Models that cannot
|
|
126
|
+
* honor an explicit duration are excluded.
|
|
127
|
+
*/
|
|
128
|
+
duration?: number;
|
|
129
|
+
/**
|
|
130
|
+
* When true, the `audio` output is designed to loop seamlessly. Models without
|
|
131
|
+
* loop support are excluded.
|
|
132
|
+
*/
|
|
133
|
+
loop?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Optional reference audio clips guiding `audio` generation, for models that
|
|
136
|
+
* support them. Reference each clip in promptText as @Audio1, @Audio2, and @Audio3
|
|
137
|
+
* in order.
|
|
138
|
+
*/
|
|
139
|
+
referenceAudios?: Array<Input.ReferenceAudio>;
|
|
140
|
+
/**
|
|
141
|
+
* The voice to speak with. When omitted, models that support a default voice
|
|
142
|
+
* remain eligible.
|
|
143
|
+
*/
|
|
144
|
+
voice?: Input.Preset | Input.ReferenceAudio;
|
|
145
|
+
}
|
|
146
|
+
namespace Input {
|
|
147
|
+
interface ReferenceAudio {
|
|
148
|
+
/**
|
|
149
|
+
* A HTTPS URL.
|
|
150
|
+
*/
|
|
151
|
+
uri: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* A preset voice.
|
|
155
|
+
*/
|
|
156
|
+
interface Preset {
|
|
157
|
+
/**
|
|
158
|
+
* A Runway preset voice id. Choosing a preset routes only to models that support
|
|
159
|
+
* preset voices.
|
|
160
|
+
*/
|
|
161
|
+
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
162
|
+
type: 'preset';
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Clone a voice from a reference audio clip, then speak promptText in that voice.
|
|
166
|
+
* Routes only to models that support voice cloning.
|
|
167
|
+
*/
|
|
168
|
+
interface ReferenceAudio {
|
|
169
|
+
/**
|
|
170
|
+
* A HTTPS URL.
|
|
171
|
+
*/
|
|
172
|
+
audioUri: string;
|
|
173
|
+
type: 'reference-audio';
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export declare namespace Audio {
|
|
178
|
+
export { type AudioCreateResponse as AudioCreateResponse, type AudioCreateParams as AudioCreateParams };
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=audio.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.d.mts","sourceRoot":"","sources":["../../src/resources/generate/audio.ts"],"names":[],"mappings":"AAE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UAAU,GACV,OAAO,GACP,QAAQ,CAAC;YAEb,IAAI,EAAE,QAAQ,CAAC;SAChB;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YAEjB,IAAI,EAAE,iBAAiB,CAAC;SACzB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
3
|
+
import { APIPromiseWithAwaitableTask } from "../../lib/polling.js";
|
|
4
|
+
export declare class Audio extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Start an audio generation task using a saved Model Router config instead of
|
|
7
|
+
* naming a model. Set input.type to speech to speak promptText verbatim, or audio
|
|
8
|
+
* to generate audio described by promptText.
|
|
9
|
+
*/
|
|
10
|
+
create(body: AudioCreateParams, options?: RequestOptions): APIPromiseWithAwaitableTask<AudioCreateResponse>;
|
|
11
|
+
}
|
|
12
|
+
export interface AudioCreateResponse {
|
|
13
|
+
/**
|
|
14
|
+
* The ID of the created task. Poll GET /v1/tasks/:id for the result.
|
|
15
|
+
*/
|
|
16
|
+
id: string;
|
|
17
|
+
/**
|
|
18
|
+
* Metadata describing which model the router selected and why.
|
|
19
|
+
*/
|
|
20
|
+
routing: AudioCreateResponse.Routing;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace AudioCreateResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Metadata describing which model the router selected and why.
|
|
25
|
+
*/
|
|
26
|
+
interface Routing {
|
|
27
|
+
/**
|
|
28
|
+
* The slug of the router config that was applied to this request.
|
|
29
|
+
*/
|
|
30
|
+
configId: string;
|
|
31
|
+
/**
|
|
32
|
+
* Estimated cost, computed against current pricing.
|
|
33
|
+
*/
|
|
34
|
+
estimatedCost: Routing.EstimatedCost;
|
|
35
|
+
/**
|
|
36
|
+
* The public name of the model the router selected.
|
|
37
|
+
*/
|
|
38
|
+
model: string;
|
|
39
|
+
/**
|
|
40
|
+
* The provider of the selected model.
|
|
41
|
+
*/
|
|
42
|
+
provider: string;
|
|
43
|
+
/**
|
|
44
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
45
|
+
* identical to prepared model options.
|
|
46
|
+
*/
|
|
47
|
+
resolvedInput: Routing.ResolvedInput;
|
|
48
|
+
/**
|
|
49
|
+
* The resolved config settings the router used for this request.
|
|
50
|
+
*/
|
|
51
|
+
resolvedSettings: Routing.ResolvedSettings;
|
|
52
|
+
}
|
|
53
|
+
namespace Routing {
|
|
54
|
+
/**
|
|
55
|
+
* Estimated cost, computed against current pricing.
|
|
56
|
+
*/
|
|
57
|
+
interface EstimatedCost {
|
|
58
|
+
/**
|
|
59
|
+
* Estimated cost of the generation in credits.
|
|
60
|
+
*/
|
|
61
|
+
credits: number;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Request-side defaults resolved for the routing response. Not necessarily
|
|
65
|
+
* identical to prepared model options.
|
|
66
|
+
*/
|
|
67
|
+
interface ResolvedInput {
|
|
68
|
+
/**
|
|
69
|
+
* The prompt mode the router routed for.
|
|
70
|
+
*/
|
|
71
|
+
type: 'speech' | 'audio';
|
|
72
|
+
/**
|
|
73
|
+
* How the selected model resolves the voice: the requested preset or
|
|
74
|
+
* reference-audio clone, the model default for voiceless speech, or none for
|
|
75
|
+
* general audio.
|
|
76
|
+
*/
|
|
77
|
+
voice: 'preset' | 'reference-audio' | 'default' | 'none';
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* The resolved config settings the router used for this request.
|
|
81
|
+
*/
|
|
82
|
+
interface ResolvedSettings {
|
|
83
|
+
/**
|
|
84
|
+
* The single optimization preference the config selected, used as the soft
|
|
85
|
+
* weighting when scoring eligible models.
|
|
86
|
+
*/
|
|
87
|
+
optimizeFor: 'cost' | 'latency' | 'quality';
|
|
88
|
+
/**
|
|
89
|
+
* The applied maximum credits per generation for this request’s modality, or null
|
|
90
|
+
* if the config sets no ceiling.
|
|
91
|
+
*/
|
|
92
|
+
priceCeiling: number | null;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export interface AudioCreateParams {
|
|
97
|
+
/**
|
|
98
|
+
* The slug of a saved Model Router config to route this request with.
|
|
99
|
+
*/
|
|
100
|
+
configId: string;
|
|
101
|
+
/**
|
|
102
|
+
* Model-agnostic audio generation input. The router selects a model and maps these
|
|
103
|
+
* options to it.
|
|
104
|
+
*/
|
|
105
|
+
input: AudioCreateParams.Input;
|
|
106
|
+
}
|
|
107
|
+
export declare namespace AudioCreateParams {
|
|
108
|
+
/**
|
|
109
|
+
* Model-agnostic audio generation input. The router selects a model and maps these
|
|
110
|
+
* options to it.
|
|
111
|
+
*/
|
|
112
|
+
interface Input {
|
|
113
|
+
/**
|
|
114
|
+
* For `speech`, the words to speak. For `audio`, a description of the desired
|
|
115
|
+
* output.
|
|
116
|
+
*/
|
|
117
|
+
promptText: string;
|
|
118
|
+
/**
|
|
119
|
+
* How promptText is interpreted: `speech` speaks it verbatim as a script; `audio`
|
|
120
|
+
* treats it as a description of the desired audio, which may combine speech,
|
|
121
|
+
* music, ambience, and sound effects.
|
|
122
|
+
*/
|
|
123
|
+
type: 'speech' | 'audio';
|
|
124
|
+
/**
|
|
125
|
+
* Desired output duration in seconds for `audio` generation. Models that cannot
|
|
126
|
+
* honor an explicit duration are excluded.
|
|
127
|
+
*/
|
|
128
|
+
duration?: number;
|
|
129
|
+
/**
|
|
130
|
+
* When true, the `audio` output is designed to loop seamlessly. Models without
|
|
131
|
+
* loop support are excluded.
|
|
132
|
+
*/
|
|
133
|
+
loop?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* Optional reference audio clips guiding `audio` generation, for models that
|
|
136
|
+
* support them. Reference each clip in promptText as @Audio1, @Audio2, and @Audio3
|
|
137
|
+
* in order.
|
|
138
|
+
*/
|
|
139
|
+
referenceAudios?: Array<Input.ReferenceAudio>;
|
|
140
|
+
/**
|
|
141
|
+
* The voice to speak with. When omitted, models that support a default voice
|
|
142
|
+
* remain eligible.
|
|
143
|
+
*/
|
|
144
|
+
voice?: Input.Preset | Input.ReferenceAudio;
|
|
145
|
+
}
|
|
146
|
+
namespace Input {
|
|
147
|
+
interface ReferenceAudio {
|
|
148
|
+
/**
|
|
149
|
+
* A HTTPS URL.
|
|
150
|
+
*/
|
|
151
|
+
uri: string;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* A preset voice.
|
|
155
|
+
*/
|
|
156
|
+
interface Preset {
|
|
157
|
+
/**
|
|
158
|
+
* A Runway preset voice id. Choosing a preset routes only to models that support
|
|
159
|
+
* preset voices.
|
|
160
|
+
*/
|
|
161
|
+
presetId: 'Maya' | 'Arjun' | 'Serene' | 'Bernard' | 'Billy' | 'Mark' | 'Clint' | 'Mabel' | 'Chad' | 'Leslie' | 'Eleanor' | 'Elias' | 'Elliot' | 'Grungle' | 'Brodie' | 'Sandra' | 'Kirk' | 'Kylie' | 'Lara' | 'Lisa' | 'Malachi' | 'Marlene' | 'Martin' | 'Miriam' | 'Monster' | 'Paula' | 'Pip' | 'Rusty' | 'Ragnar' | 'Xylar' | 'Maggie' | 'Jack' | 'Katie' | 'Noah' | 'James' | 'Rina' | 'Ella' | 'Mariah' | 'Frank' | 'Claudia' | 'Niki' | 'Vincent' | 'Kendrick' | 'Myrna' | 'Tom' | 'Wanda' | 'Benjamin' | 'Kiana' | 'Rachel';
|
|
162
|
+
type: 'preset';
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Clone a voice from a reference audio clip, then speak promptText in that voice.
|
|
166
|
+
* Routes only to models that support voice cloning.
|
|
167
|
+
*/
|
|
168
|
+
interface ReferenceAudio {
|
|
169
|
+
/**
|
|
170
|
+
* A HTTPS URL.
|
|
171
|
+
*/
|
|
172
|
+
audioUri: string;
|
|
173
|
+
type: 'reference-audio';
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export declare namespace Audio {
|
|
178
|
+
export { type AudioCreateResponse as AudioCreateResponse, type AudioCreateParams as AudioCreateParams };
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=audio.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.d.ts","sourceRoot":"","sources":["../../src/resources/generate/audio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAChE,OAAO,EAAE,2BAA2B,EAA0B,6BAA0B;AAExF,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,MAAM,CACJ,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,mBAAmB,CAAC;CAKpD;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,OAAO,EAAE,mBAAmB,CAAC,OAAO,CAAC;CACtC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC;QAErC;;WAEG;QACH,KAAK,EAAE,MAAM,CAAC;QAEd;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB;;;WAGG;QACH,aAAa,EAAE,OAAO,CAAC,aAAa,CAAC;QAErC;;WAEG;QACH,gBAAgB,EAAE,OAAO,CAAC,gBAAgB,CAAC;KAC5C;IAED,UAAiB,OAAO,CAAC;QACvB;;WAEG;QACH,UAAiB,aAAa;YAC5B;;eAEG;YACH,OAAO,EAAE,MAAM,C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ACR,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,SAAS,GACT,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,OAAO,GACP,KAAK,GACL,OAAO,GACP,QAAQ,GACR,OAAO,GACP,QAAQ,GACR,MAAM,GACN,OAAO,GACP,MAAM,GACN,OAAO,GACP,MAAM,GACN,MAAM,GACN,QAAQ,GACR,OAAO,GACP,SAAS,GACT,MAAM,GACN,SAAS,GACT,UAAU,GACV,OAAO,GACP,KAAK,GACL,OAAO,GACP,UAAU,GACV,OAAO,GACP,QAAQ,CAAC;YAEb,IAAI,EAAE,QAAQ,CAAC;SAChB;QAED;;;WAGG;QACH,UAAiB,cAAc;YAC7B;;eAEG;YACH,QAAQ,EAAE,MAAM,CAAC;YAEjB,IAAI,EAAE,iBAAiB,CAAC;SACzB;KACF;CACF;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,mBAAmB,IAAI,mBAAmB,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CACzG"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Audio = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const polling_1 = require("../../lib/polling.js");
|
|
7
|
+
class Audio extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Start an audio generation task using a saved Model Router config instead of
|
|
10
|
+
* naming a model. Set input.type to speech to speak promptText verbatim, or audio
|
|
11
|
+
* to generate audio described by promptText.
|
|
12
|
+
*/
|
|
13
|
+
create(body, options) {
|
|
14
|
+
return (0, polling_1.wrapAsWaitableResource)(this._client)(this._client.post('/v1/generate/audio', { body, ...options }));
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.Audio = Audio;
|
|
18
|
+
//# sourceMappingURL=audio.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.js","sourceRoot":"","sources":["../../src/resources/generate/audio.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAElD,kDAAwF;AAExF,MAAa,KAAM,SAAQ,sBAAW;IACpC;;;;OAIG;IACH,MAAM,CACJ,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAAsB,IAAI,CAAC,OAAO,CAAC,CAC9D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF;AAdD,sBAcC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { wrapAsWaitableResource } from "../../lib/polling.mjs";
|
|
4
|
+
export class Audio extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Start an audio generation task using a saved Model Router config instead of
|
|
7
|
+
* naming a model. Set input.type to speech to speak promptText verbatim, or audio
|
|
8
|
+
* to generate audio described by promptText.
|
|
9
|
+
*/
|
|
10
|
+
create(body, options) {
|
|
11
|
+
return wrapAsWaitableResource(this._client)(this._client.post('/v1/generate/audio', { body, ...options }));
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=audio.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audio.mjs","sourceRoot":"","sources":["../../src/resources/generate/audio.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAElD,OAAO,EAA+B,sBAAsB,EAAE,8BAA0B;AAExF,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;;;OAIG;IACH,MAAM,CACJ,IAAuB,EACvB,OAAwB;QAExB,OAAO,sBAAsB,CAAsB,IAAI,CAAC,OAAO,CAAC,CAC9D,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC9D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as AudioAPI from "./audio.mjs";
|
|
3
|
+
import { Audio, AudioCreateParams, AudioCreateResponse } from "./audio.mjs";
|
|
4
|
+
import * as ImageAPI from "./image.mjs";
|
|
5
|
+
import { Image, ImageCreateParams, ImageCreateResponse } from "./image.mjs";
|
|
6
|
+
import * as VideoAPI from "./video.mjs";
|
|
7
|
+
import { Video, VideoCreateParams, VideoCreateResponse } from "./video.mjs";
|
|
8
|
+
export declare class Generate extends APIResource {
|
|
9
|
+
video: VideoAPI.Video;
|
|
10
|
+
image: ImageAPI.Image;
|
|
11
|
+
audio: AudioAPI.Audio;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Generate {
|
|
14
|
+
export { Video as Video, type VideoCreateResponse as VideoCreateResponse, type VideoCreateParams as VideoCreateParams, };
|
|
15
|
+
export { Image as Image, type ImageCreateResponse as ImageCreateResponse, type ImageCreateParams as ImageCreateParams, };
|
|
16
|
+
export { Audio as Audio, type AudioCreateResponse as AudioCreateResponse, type AudioCreateParams as AudioCreateParams, };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=generate.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.mts","sourceRoot":"","sources":["../../src/resources/generate/generate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAgB;AACxE,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAgB;AACxE,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,oBAAgB;AAExE,qBAAa,QAAS,SAAQ,WAAW;IACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAMD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as AudioAPI from "./audio.js";
|
|
3
|
+
import { Audio, AudioCreateParams, AudioCreateResponse } from "./audio.js";
|
|
4
|
+
import * as ImageAPI from "./image.js";
|
|
5
|
+
import { Image, ImageCreateParams, ImageCreateResponse } from "./image.js";
|
|
6
|
+
import * as VideoAPI from "./video.js";
|
|
7
|
+
import { Video, VideoCreateParams, VideoCreateResponse } from "./video.js";
|
|
8
|
+
export declare class Generate extends APIResource {
|
|
9
|
+
video: VideoAPI.Video;
|
|
10
|
+
image: ImageAPI.Image;
|
|
11
|
+
audio: AudioAPI.Audio;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace Generate {
|
|
14
|
+
export { Video as Video, type VideoCreateResponse as VideoCreateResponse, type VideoCreateParams as VideoCreateParams, };
|
|
15
|
+
export { Image as Image, type ImageCreateResponse as ImageCreateResponse, type ImageCreateParams as ImageCreateParams, };
|
|
16
|
+
export { Audio as Audio, type AudioCreateResponse as AudioCreateResponse, type AudioCreateParams as AudioCreateParams, };
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=generate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/resources/generate/generate.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAgB;AACxE,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAgB;AACxE,OAAO,KAAK,QAAQ,mBAAgB;AACpC,OAAO,EAAE,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,mBAAgB;AAExE,qBAAa,QAAS,SAAQ,WAAW;IACvC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;CAC1D;AAMD,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Generate = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const AudioAPI = tslib_1.__importStar(require("./audio.js"));
|
|
8
|
+
const audio_1 = require("./audio.js");
|
|
9
|
+
const ImageAPI = tslib_1.__importStar(require("./image.js"));
|
|
10
|
+
const image_1 = require("./image.js");
|
|
11
|
+
const VideoAPI = tslib_1.__importStar(require("./video.js"));
|
|
12
|
+
const video_1 = require("./video.js");
|
|
13
|
+
class Generate extends resource_1.APIResource {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
this.video = new VideoAPI.Video(this._client);
|
|
17
|
+
this.image = new ImageAPI.Image(this._client);
|
|
18
|
+
this.audio = new AudioAPI.Audio(this._client);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.Generate = Generate;
|
|
22
|
+
Generate.Video = video_1.Video;
|
|
23
|
+
Generate.Image = image_1.Image;
|
|
24
|
+
Generate.Audio = audio_1.Audio;
|
|
25
|
+
//# sourceMappingURL=generate.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.js","sourceRoot":"","sources":["../../src/resources/generate/generate.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,6DAAoC;AACpC,sCAAwE;AACxE,6DAAoC;AACpC,sCAAwE;AACxE,6DAAoC;AACpC,sCAAwE;AAExE,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAJD,4BAIC;AAED,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC;AACvB,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC;AACvB,QAAQ,CAAC,KAAK,GAAG,aAAK,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as AudioAPI from "./audio.mjs";
|
|
4
|
+
import { Audio } from "./audio.mjs";
|
|
5
|
+
import * as ImageAPI from "./image.mjs";
|
|
6
|
+
import { Image } from "./image.mjs";
|
|
7
|
+
import * as VideoAPI from "./video.mjs";
|
|
8
|
+
import { Video } from "./video.mjs";
|
|
9
|
+
export class Generate extends APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.video = new VideoAPI.Video(this._client);
|
|
13
|
+
this.image = new ImageAPI.Image(this._client);
|
|
14
|
+
this.audio = new AudioAPI.Audio(this._client);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
Generate.Video = Video;
|
|
18
|
+
Generate.Image = Image;
|
|
19
|
+
Generate.Audio = Audio;
|
|
20
|
+
//# sourceMappingURL=generate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.mjs","sourceRoot":"","sources":["../../src/resources/generate/generate.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAA0C,oBAAgB;AACxE,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAA0C,oBAAgB;AACxE,OAAO,KAAK,QAAQ,oBAAgB;AACpC,OAAO,EAAE,KAAK,EAA0C,oBAAgB;AAExE,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC3D,CAAC;CAAA;AAED,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC;AACvB,QAAQ,CAAC,KAAK,GAAG,KAAK,CAAC"}
|