@runwayml/sdk 3.14.3 → 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 +20 -0
- package/README.md +31 -0
- package/client.d.mts +52 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +52 -1
- package/client.d.ts.map +1 -1
- package/client.js +60 -15
- package/client.js.map +1 -1
- package/client.mjs +60 -15
- 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/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 +3 -0
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +3 -0
- 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 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -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/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 +3 -0
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +3 -0
- 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 +3 -0
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +3 -0
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +3 -0
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +3 -0
- 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 +156 -20
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -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 +3 -0
- package/src/resources/index.ts +37 -0
- package/src/resources/organization.ts +5 -1
- 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 +3 -0
- package/src/resources/video-to-video.ts +3 -0
- 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
|
@@ -83,7 +83,7 @@ export interface OrganizationRetrieveUsageResponse {
|
|
|
83
83
|
/**
|
|
84
84
|
* The list of models with usage during the queried time range.
|
|
85
85
|
*/
|
|
86
|
-
models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2'>;
|
|
86
|
+
models: Array<'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'gwm1_avatars' | 'voice_processing'>;
|
|
87
87
|
results: Array<OrganizationRetrieveUsageResponse.Result>;
|
|
88
88
|
}
|
|
89
89
|
export declare namespace OrganizationRetrieveUsageResponse {
|
|
@@ -107,7 +107,7 @@ export declare namespace OrganizationRetrieveUsageResponse {
|
|
|
107
107
|
/**
|
|
108
108
|
* The model that credits were spent on.
|
|
109
109
|
*/
|
|
110
|
-
model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2';
|
|
110
|
+
model: 'gen4.5' | 'gen3a_turbo' | 'gen4_turbo' | 'gen4_image' | 'gen4_image_turbo' | 'act_two' | 'gen4_aleph' | 'veo3' | 'veo3.1' | 'veo3.1_fast' | 'gemini_2.5_flash' | 'eleven_multilingual_v2' | 'eleven_text_to_sound_v2' | 'eleven_voice_isolation' | 'eleven_voice_dubbing' | 'eleven_multilingual_sts_v2' | 'gwm1_avatars' | 'voice_processing';
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,IAAI,EAAE,4BAA4B,CAAC,IAAI,CAAC;IAExC;;OAEG;IACH,KAAK,EAAE,4BAA4B,CAAC,KAAK,CAAC;CAC3C;AAED,yBAAiB,4BAA4B,CAAC;IAC5C;;OAEG;IACH,UAAiB,IAAI;QACnB;;WAEG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAE9B;;WAEG;QACH,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC,MAAM,CAAA;SAAE,CAAC;KACxC;IAED,UAAiB,IAAI,CAAC;QACpB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,wBAAwB,EAAE,MAAM,CAAC;YAEjC;;eAEG;YACH,mBAAmB,EAAE,MAAM,CAAC;SAC7B;KACF;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,MAAM,CAAA;SAAE,CAAC;KACzC;IAED,UAAiB,KAAK,CAAC;QACrB;;WAEG;QACH,UAAiB,MAAM;YACrB;;eAEG;YACH,gBAAgB,EAAE,MAAM,CAAC;SAC1B;KACF;CACF;AAED,MAAM,WAAW,iCAAiC;IAChD;;OAEG;IACH,MAAM,EAAE,KAAK,CACT,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../src/resources/organization.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,4BAA4B,CAAC;IAI5E;;;;OAIG;IACH,aAAa,CACX,IAAI,GAAE,+BAA+B,GAAG,IAAI,GAAG,SAAc,EAC7D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,iCAAiC,CAAC;CAGjD;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;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,MAAM,CAAC,UAAU,CAAC,CAAC;KACvC;IAED,UAAiB,MAAM,CAAC;QACtB,UAAiB,UAAU;YACzB;;eAEG;YACH,MAAM,EAAE,MAAM,CAAC;YAEf;;eAEG;YACH,KAAK,EACD,QAAQ,GACR,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,SAAS,GACT,YAAY,GACZ,MAAM,GACN,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,wBAAwB,GACxB,yBAAyB,GACzB,wBAAwB,GACxB,sBAAsB,GACtB,4BAA4B,GAC5B,cAAc,GACd,kBAAkB,CAAC;SACxB;KACF;CACF;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
export declare class RealtimeSessions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new realtime session with the specified model configuration.
|
|
7
|
+
*/
|
|
8
|
+
create(body: RealtimeSessionCreateParams, options?: RequestOptions): APIPromise<RealtimeSessionCreateResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Get the status of a realtime session.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<RealtimeSessionRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Cancel an active realtime session.
|
|
15
|
+
*/
|
|
16
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
}
|
|
18
|
+
export interface RealtimeSessionCreateResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the created realtime session.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A session that is being provisioned.
|
|
26
|
+
*/
|
|
27
|
+
export type RealtimeSessionRetrieveResponse = RealtimeSessionRetrieveResponse.NotReady | RealtimeSessionRetrieveResponse.Ready | RealtimeSessionRetrieveResponse.Running | RealtimeSessionRetrieveResponse.Completed | RealtimeSessionRetrieveResponse.Failed | RealtimeSessionRetrieveResponse.Cancelled;
|
|
28
|
+
export declare namespace RealtimeSessionRetrieveResponse {
|
|
29
|
+
/**
|
|
30
|
+
* A session that is being provisioned.
|
|
31
|
+
*/
|
|
32
|
+
interface NotReady {
|
|
33
|
+
/**
|
|
34
|
+
* The realtime session ID.
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* When the session was created.
|
|
39
|
+
*/
|
|
40
|
+
createdAt: string;
|
|
41
|
+
status: 'NOT_READY';
|
|
42
|
+
/**
|
|
43
|
+
* When true, the session is waiting in a queue for available capacity. When false
|
|
44
|
+
* or absent, the session is actively being provisioned.
|
|
45
|
+
*/
|
|
46
|
+
queued?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A session that is ready to connect.
|
|
50
|
+
*/
|
|
51
|
+
interface Ready {
|
|
52
|
+
/**
|
|
53
|
+
* The realtime session ID.
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
/**
|
|
57
|
+
* When the session was created.
|
|
58
|
+
*/
|
|
59
|
+
createdAt: string;
|
|
60
|
+
/**
|
|
61
|
+
* When the session credentials expire.
|
|
62
|
+
*/
|
|
63
|
+
expiresAt: string;
|
|
64
|
+
/**
|
|
65
|
+
* Session key for authenticating the /consume endpoint. Use as Bearer token.
|
|
66
|
+
*/
|
|
67
|
+
sessionKey: string;
|
|
68
|
+
status: 'READY';
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A session with an active WebRTC connection.
|
|
72
|
+
*/
|
|
73
|
+
interface Running {
|
|
74
|
+
/**
|
|
75
|
+
* The realtime session ID.
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
/**
|
|
79
|
+
* When the session was created.
|
|
80
|
+
*/
|
|
81
|
+
createdAt: string;
|
|
82
|
+
status: 'RUNNING';
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A session that ended normally.
|
|
86
|
+
*/
|
|
87
|
+
interface Completed {
|
|
88
|
+
/**
|
|
89
|
+
* The realtime session ID.
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* When the session was created.
|
|
94
|
+
*/
|
|
95
|
+
createdAt: string;
|
|
96
|
+
/**
|
|
97
|
+
* The session duration in seconds.
|
|
98
|
+
*/
|
|
99
|
+
duration: number;
|
|
100
|
+
status: 'COMPLETED';
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* A session that encountered an error.
|
|
104
|
+
*/
|
|
105
|
+
interface Failed {
|
|
106
|
+
/**
|
|
107
|
+
* The realtime session ID.
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
/**
|
|
111
|
+
* When the session was created.
|
|
112
|
+
*/
|
|
113
|
+
createdAt: string;
|
|
114
|
+
/**
|
|
115
|
+
* A human-readable error message. This value is not stable and should not be
|
|
116
|
+
* matched against programmatically.
|
|
117
|
+
*/
|
|
118
|
+
failure: string;
|
|
119
|
+
/**
|
|
120
|
+
* A stable, machine-readable error code. See
|
|
121
|
+
* https://docs.dev.runwayml.com/errors/task-failures/ for more information.
|
|
122
|
+
*/
|
|
123
|
+
failureCode: string;
|
|
124
|
+
status: 'FAILED';
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* A session that was explicitly cancelled.
|
|
128
|
+
*/
|
|
129
|
+
interface Cancelled {
|
|
130
|
+
/**
|
|
131
|
+
* The realtime session ID.
|
|
132
|
+
*/
|
|
133
|
+
id: string;
|
|
134
|
+
/**
|
|
135
|
+
* When the session was created.
|
|
136
|
+
*/
|
|
137
|
+
createdAt: string;
|
|
138
|
+
status: 'CANCELLED';
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export interface RealtimeSessionCreateParams {
|
|
142
|
+
/**
|
|
143
|
+
* The avatar configuration for the session.
|
|
144
|
+
*/
|
|
145
|
+
avatar: RealtimeSessionCreateParams.RunwayPreset | RealtimeSessionCreateParams.Custom;
|
|
146
|
+
/**
|
|
147
|
+
* The realtime session model type.
|
|
148
|
+
*/
|
|
149
|
+
model: 'gwm1_avatars';
|
|
150
|
+
/**
|
|
151
|
+
* Maximum session duration in seconds.
|
|
152
|
+
*/
|
|
153
|
+
maxDuration?: number;
|
|
154
|
+
}
|
|
155
|
+
export declare namespace RealtimeSessionCreateParams {
|
|
156
|
+
/**
|
|
157
|
+
* A preset avatar from Runway.
|
|
158
|
+
*/
|
|
159
|
+
interface RunwayPreset {
|
|
160
|
+
/**
|
|
161
|
+
* ID of a preset avatar.
|
|
162
|
+
*/
|
|
163
|
+
presetId: 'game-character' | 'music-superstar' | 'game-character-man' | 'cat-character' | 'influencer' | 'tennis-coach' | 'human-resource' | 'fashion-designer' | 'cooking-teacher';
|
|
164
|
+
type: 'runway-preset';
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* A user-created avatar.
|
|
168
|
+
*/
|
|
169
|
+
interface Custom {
|
|
170
|
+
/**
|
|
171
|
+
* ID of a user-created avatar.
|
|
172
|
+
*/
|
|
173
|
+
avatarId: string;
|
|
174
|
+
type: 'custom';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export declare namespace RealtimeSessions {
|
|
178
|
+
export { type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams as RealtimeSessionCreateParams, };
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=realtime-sessions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-sessions.d.mts","sourceRoot":"","sources":["../src/resources/realtime-sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;IAI3F;;OAEG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED,MAAM,WAAW,6BAA6B;IAC5C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED;;GAEG;AACH,MAAM,MAAM,+BAA+B,GACvC,+BAA+B,CAAC,QAAQ,GACxC,+BAA+B,CAAC,KAAK,GACrC,+BAA+B,CAAC,OAAO,GACvC,+BAA+B,CAAC,SAAS,GACzC,+BAA+B,CAAC,MAAM,GACtC,+BAA+B,CAAC,SAAS,CAAC;AAE9C,yBAAiB,+BAA+B,CAAC;IAC/C;;OAEG;IACH,UAAiB,QAAQ;QACvB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;QAEpB;;;WAGG;QACH,MAAM,CAAC,EAAE,OAAO,CAAC;KAClB;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE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,iBAAiB,GACjB,oBAAoB,GACpB,eAAe,GACf,YAAY,GACZ,cAAc,GACd,gBAAgB,GAChB,kBAAkB,GAClB,iBAAiB,CAAC;QAEtB,IAAI,EAAE,eAAe,CAAC;KACvB;IAED;;OAEG;IACH,UAAiB,MAAM;QACrB;;WAEG;QACH,QAAQ,EAAE,MAAM,CAAC;QAEjB,IAAI,EAAE,QAAQ,CAAC;KAChB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
export declare class RealtimeSessions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a new realtime session with the specified model configuration.
|
|
7
|
+
*/
|
|
8
|
+
create(body: RealtimeSessionCreateParams, options?: RequestOptions): APIPromise<RealtimeSessionCreateResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Get the status of a realtime session.
|
|
11
|
+
*/
|
|
12
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<RealtimeSessionRetrieveResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Cancel an active realtime session.
|
|
15
|
+
*/
|
|
16
|
+
delete(id: string, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
}
|
|
18
|
+
export interface RealtimeSessionCreateResponse {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the created realtime session.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* A session that is being provisioned.
|
|
26
|
+
*/
|
|
27
|
+
export type RealtimeSessionRetrieveResponse = RealtimeSessionRetrieveResponse.NotReady | RealtimeSessionRetrieveResponse.Ready | RealtimeSessionRetrieveResponse.Running | RealtimeSessionRetrieveResponse.Completed | RealtimeSessionRetrieveResponse.Failed | RealtimeSessionRetrieveResponse.Cancelled;
|
|
28
|
+
export declare namespace RealtimeSessionRetrieveResponse {
|
|
29
|
+
/**
|
|
30
|
+
* A session that is being provisioned.
|
|
31
|
+
*/
|
|
32
|
+
interface NotReady {
|
|
33
|
+
/**
|
|
34
|
+
* The realtime session ID.
|
|
35
|
+
*/
|
|
36
|
+
id: string;
|
|
37
|
+
/**
|
|
38
|
+
* When the session was created.
|
|
39
|
+
*/
|
|
40
|
+
createdAt: string;
|
|
41
|
+
status: 'NOT_READY';
|
|
42
|
+
/**
|
|
43
|
+
* When true, the session is waiting in a queue for available capacity. When false
|
|
44
|
+
* or absent, the session is actively being provisioned.
|
|
45
|
+
*/
|
|
46
|
+
queued?: boolean;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* A session that is ready to connect.
|
|
50
|
+
*/
|
|
51
|
+
interface Ready {
|
|
52
|
+
/**
|
|
53
|
+
* The realtime session ID.
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
/**
|
|
57
|
+
* When the session was created.
|
|
58
|
+
*/
|
|
59
|
+
createdAt: string;
|
|
60
|
+
/**
|
|
61
|
+
* When the session credentials expire.
|
|
62
|
+
*/
|
|
63
|
+
expiresAt: string;
|
|
64
|
+
/**
|
|
65
|
+
* Session key for authenticating the /consume endpoint. Use as Bearer token.
|
|
66
|
+
*/
|
|
67
|
+
sessionKey: string;
|
|
68
|
+
status: 'READY';
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A session with an active WebRTC connection.
|
|
72
|
+
*/
|
|
73
|
+
interface Running {
|
|
74
|
+
/**
|
|
75
|
+
* The realtime session ID.
|
|
76
|
+
*/
|
|
77
|
+
id: string;
|
|
78
|
+
/**
|
|
79
|
+
* When the session was created.
|
|
80
|
+
*/
|
|
81
|
+
createdAt: string;
|
|
82
|
+
status: 'RUNNING';
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A session that ended normally.
|
|
86
|
+
*/
|
|
87
|
+
interface Completed {
|
|
88
|
+
/**
|
|
89
|
+
* The realtime session ID.
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* When the session was created.
|
|
94
|
+
*/
|
|
95
|
+
createdAt: string;
|
|
96
|
+
/**
|
|
97
|
+
* The session duration in seconds.
|
|
98
|
+
*/
|
|
99
|
+
duration: number;
|
|
100
|
+
status: 'COMPLETED';
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* A session that encountered an error.
|
|
104
|
+
*/
|
|
105
|
+
interface Failed {
|
|
106
|
+
/**
|
|
107
|
+
* The realtime session ID.
|
|
108
|
+
*/
|
|
109
|
+
id: string;
|
|
110
|
+
/**
|
|
111
|
+
* When the session was created.
|
|
112
|
+
*/
|
|
113
|
+
createdAt: string;
|
|
114
|
+
/**
|
|
115
|
+
* A human-readable error message. This value is not stable and should not be
|
|
116
|
+
* matched against programmatically.
|
|
117
|
+
*/
|
|
118
|
+
failure: string;
|
|
119
|
+
/**
|
|
120
|
+
* A stable, machine-readable error code. See
|
|
121
|
+
* https://docs.dev.runwayml.com/errors/task-failures/ for more information.
|
|
122
|
+
*/
|
|
123
|
+
failureCode: string;
|
|
124
|
+
status: 'FAILED';
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* A session that was explicitly cancelled.
|
|
128
|
+
*/
|
|
129
|
+
interface Cancelled {
|
|
130
|
+
/**
|
|
131
|
+
* The realtime session ID.
|
|
132
|
+
*/
|
|
133
|
+
id: string;
|
|
134
|
+
/**
|
|
135
|
+
* When the session was created.
|
|
136
|
+
*/
|
|
137
|
+
createdAt: string;
|
|
138
|
+
status: 'CANCELLED';
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
export interface RealtimeSessionCreateParams {
|
|
142
|
+
/**
|
|
143
|
+
* The avatar configuration for the session.
|
|
144
|
+
*/
|
|
145
|
+
avatar: RealtimeSessionCreateParams.RunwayPreset | RealtimeSessionCreateParams.Custom;
|
|
146
|
+
/**
|
|
147
|
+
* The realtime session model type.
|
|
148
|
+
*/
|
|
149
|
+
model: 'gwm1_avatars';
|
|
150
|
+
/**
|
|
151
|
+
* Maximum session duration in seconds.
|
|
152
|
+
*/
|
|
153
|
+
maxDuration?: number;
|
|
154
|
+
}
|
|
155
|
+
export declare namespace RealtimeSessionCreateParams {
|
|
156
|
+
/**
|
|
157
|
+
* A preset avatar from Runway.
|
|
158
|
+
*/
|
|
159
|
+
interface RunwayPreset {
|
|
160
|
+
/**
|
|
161
|
+
* ID of a preset avatar.
|
|
162
|
+
*/
|
|
163
|
+
presetId: 'game-character' | 'music-superstar' | 'game-character-man' | 'cat-character' | 'influencer' | 'tennis-coach' | 'human-resource' | 'fashion-designer' | 'cooking-teacher';
|
|
164
|
+
type: 'runway-preset';
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* A user-created avatar.
|
|
168
|
+
*/
|
|
169
|
+
interface Custom {
|
|
170
|
+
/**
|
|
171
|
+
* ID of a user-created avatar.
|
|
172
|
+
*/
|
|
173
|
+
avatarId: string;
|
|
174
|
+
type: 'custom';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
export declare namespace RealtimeSessions {
|
|
178
|
+
export { type RealtimeSessionCreateResponse as RealtimeSessionCreateResponse, type RealtimeSessionRetrieveResponse as RealtimeSessionRetrieveResponse, type RealtimeSessionCreateParams as RealtimeSessionCreateParams, };
|
|
179
|
+
}
|
|
180
|
+
//# sourceMappingURL=realtime-sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-sessions.d.ts","sourceRoot":"","sources":["../src/resources/realtime-sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAA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OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,+BAA+B,IAAI,+BAA+B,EACvE,KAAK,2BAA2B,IAAI,2BAA2B,GAChE,CAAC;CACH"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.RealtimeSessions = void 0;
|
|
5
|
+
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const headers_1 = require("../internal/headers.js");
|
|
7
|
+
const path_1 = require("../internal/utils/path.js");
|
|
8
|
+
class RealtimeSessions extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new realtime session with the specified model configuration.
|
|
11
|
+
*/
|
|
12
|
+
create(body, options) {
|
|
13
|
+
return this._client.post('/v1/realtime_sessions', { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Get the status of a realtime session.
|
|
17
|
+
*/
|
|
18
|
+
retrieve(id, options) {
|
|
19
|
+
return this._client.get((0, path_1.path) `/v1/realtime_sessions/${id}`, options);
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Cancel an active realtime session.
|
|
23
|
+
*/
|
|
24
|
+
delete(id, options) {
|
|
25
|
+
return this._client.delete((0, path_1.path) `/v1/realtime_sessions/${id}`, {
|
|
26
|
+
...options,
|
|
27
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.RealtimeSessions = RealtimeSessions;
|
|
32
|
+
//# sourceMappingURL=realtime-sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-sessions.js","sourceRoot":"","sources":["../src/resources/realtime-sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,oDAAmD;AAEnD,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,yBAAyB,EAAE,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AA3BD,4CA2BC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../internal/headers.mjs";
|
|
4
|
+
import { path } from "../internal/utils/path.mjs";
|
|
5
|
+
export class RealtimeSessions extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new realtime session with the specified model configuration.
|
|
8
|
+
*/
|
|
9
|
+
create(body, options) {
|
|
10
|
+
return this._client.post('/v1/realtime_sessions', { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Get the status of a realtime session.
|
|
14
|
+
*/
|
|
15
|
+
retrieve(id, options) {
|
|
16
|
+
return this._client.get(path `/v1/realtime_sessions/${id}`, options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Cancel an active realtime session.
|
|
20
|
+
*/
|
|
21
|
+
delete(id, options) {
|
|
22
|
+
return this._client.delete(path `/v1/realtime_sessions/${id}`, {
|
|
23
|
+
...options,
|
|
24
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=realtime-sessions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"realtime-sessions.mjs","sourceRoot":"","sources":["../src/resources/realtime-sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,YAAY,EAAE;OAEhB,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,uBAAuB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,yBAAyB,EAAE,EAAE,EAAE;YAC5D,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SoundEffect extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to generate sound effects from a text
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound-effect.d.mts","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,yBAAyB,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"sound-effect.d.mts","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,yBAAyB,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import { RequestOptions } from "../internal/request-options.js";
|
|
3
3
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SoundEffect extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to generate sound effects from a text
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound-effect.d.ts","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,yBAAyB,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"sound-effect.d.ts","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;OAClB,EAAE,2BAA2B,EAA0B;AAE9D;;GAEG;AACH,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,yBAAyB,CAAC;CAK1D;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,yBAAyB,CAAC;IAEjC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -4,6 +4,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.SoundEffect = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const polling_1 = require("../lib/polling.js");
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
7
10
|
class SoundEffect extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* This endpoint will start a new task to generate sound effects from a text
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound-effect.js","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA4B,IAAI,CAAC,OAAO,CAAC,CACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF;AAbD,kCAaC"}
|
|
1
|
+
{"version":3,"file":"sound-effect.js","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,+CAAqF;AAErF;;GAEG;AACH,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA4B,IAAI,CAAC,OAAO,CAAC,CACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF;AAbD,kCAaC"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export class SoundEffect extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to generate sound effects from a text
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sound-effect.mjs","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,sBAAsB,CAA4B,IAAI,CAAC,OAAO,CAAC,CACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"sound-effect.mjs","sourceRoot":"","sources":["../src/resources/sound-effect.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAA+B,sBAAsB,EAAE;AAE9D;;GAEG;AACH,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;;OAGG;IACH,MAAM,CACJ,IAA6B,EAC7B,OAAwB;QAExB,OAAO,sBAAsB,CAA4B,IAAI,CAAC,OAAO,CAAC,CACpE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kBAAkB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAC5D,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SpeechToSpeech extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to convert speech from one voice to another
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,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;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"speech-to-speech.d.mts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,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;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.js";
|
|
2
2
|
import { APIResource } from "../core/resource.js";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
|
+
/**
|
|
5
|
+
* These endpoints all kick off tasks to create generations.
|
|
6
|
+
*/
|
|
4
7
|
export declare class SpeechToSpeech extends APIResource {
|
|
5
8
|
/**
|
|
6
9
|
* This endpoint will start a new task to convert speech from one voice to another
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,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;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
1
|
+
{"version":3,"file":"speech-to-speech.d.ts","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAAE,2BAA2B,EAA0B;OACvD,EAAE,WAAW,EAAE;OACf,EAAE,cAAc,EAAE;AAEzB;;GAEG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAI,EAAE,0BAA0B,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,2BAA2B,CAAC,4BAA4B,CAAC;CAK7D;AAED,MAAM,WAAW,4BAA4B;IAC3C;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,GAAG,0BAA0B,CAAC,KAAK,CAAC;IAE3E,KAAK,EAAE,4BAA4B,CAAC;IAEpC;;OAEG;IACH,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC;IAExC;;OAEG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;CACjC;AAED,yBAAiB,0BAA0B,CAAC;IAC1C;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB,IAAI,EAAE,OAAO,CAAC;QAEd;;WAEG;QACH,GAAG,EAAE,MAAM,CAAC;KACb;IAED;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,QAAQ,EACJ,MAAM,GACN,OAAO,GACP,QAAQ,GACR,SAAS,GACT,OAAO,GACP,MAAM,GACN,OAAO,GACP,OAAO,GACP,MAAM,GACN,QAAQ,GACR,SAAS,GACT,OAAO,GACP,QAAQ,GACR,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;QAEb,IAAI,EAAE,eAAe,CAAC;KACvB;CACF;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
|
|
@@ -4,6 +4,9 @@ exports.SpeechToSpeech = void 0;
|
|
|
4
4
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
5
5
|
const polling_1 = require("../lib/polling.js");
|
|
6
6
|
const resource_1 = require("../core/resource.js");
|
|
7
|
+
/**
|
|
8
|
+
* These endpoints all kick off tasks to create generations.
|
|
9
|
+
*/
|
|
7
10
|
class SpeechToSpeech extends resource_1.APIResource {
|
|
8
11
|
/**
|
|
9
12
|
* This endpoint will start a new task to convert speech from one voice to another
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-speech.js","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":";;;AAAA,sFAAsF;AACtF,+CAAqF;AACrF,kDAA+C;AAG/C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAbD,wCAaC"}
|
|
1
|
+
{"version":3,"file":"speech-to-speech.js","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":";;;AAAA,sFAAsF;AACtF,+CAAqF;AACrF,kDAA+C;AAG/C;;GAEG;AACH,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAA,gCAAsB,EAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;CACF;AAbD,wCAaC"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { wrapAsWaitableResource } from "../lib/polling.mjs";
|
|
2
2
|
import { APIResource } from "../core/resource.mjs";
|
|
3
|
+
/**
|
|
4
|
+
* These endpoints all kick off tasks to create generations.
|
|
5
|
+
*/
|
|
3
6
|
export class SpeechToSpeech extends APIResource {
|
|
4
7
|
/**
|
|
5
8
|
* This endpoint will start a new task to convert speech from one voice to another
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"speech-to-speech.mjs","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAA+B,sBAAsB,EAAE;OACvD,EAAE,WAAW,EAAE;AAGtB,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"speech-to-speech.mjs","sourceRoot":"","sources":["../src/resources/speech-to-speech.ts"],"names":[],"mappings":"OACO,EAA+B,sBAAsB,EAAE;OACvD,EAAE,WAAW,EAAE;AAGtB;;GAEG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;OAGG;IACH,MAAM,CACJ,IAAgC,EAChC,OAAwB;QAExB,OAAO,sBAAsB,CAA+B,IAAI,CAAC,OAAO,CAAC,CACvE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAChE,CAAC;IACJ,CAAC;CACF"}
|
package/resources/tasks.d.mts
CHANGED
|
@@ -2,6 +2,9 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
import { APIPromiseWithAwaitableTask } from "../lib/polling.mjs";
|
|
5
|
+
/**
|
|
6
|
+
* Endpoints for managing tasks that have been submitted.
|
|
7
|
+
*/
|
|
5
8
|
export declare class Tasks extends APIResource {
|
|
6
9
|
/**
|
|
7
10
|
* Return details about a task. Consumers of this API should not expect updates
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tasks.d.mts","sourceRoot":"","sources":["../src/resources/tasks.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OAEd,EAAE,cAAc,EAAE;OAElB,EAAE,2BAA2B,EAA0B;AAE9D,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,2BAA2B,CAAC,oBAAoB,CAAC;IAOjG;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAM/D;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAC5B,oBAAoB,CAAC,OAAO,GAC5B,oBAAoB,CAAC,SAAS,GAC9B,oBAAoB,CAAC,SAAS,GAC9B,oBAAoB,CAAC,OAAO,GAC5B,oBAAoB,CAAC,MAAM,GAC3B,oBAAoB,CAAC,SAAS,CAAC;AAEnC,yBAAiB,oBAAoB,CAAC;IACpC;;OAEG;IACH,UAAiB,OAAO;QACtB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,SAAS,CAAC;KACnB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB,MAAM,EAAE,WAAW,CAAC;KACrB;IAED;;OAEG;IACH,UAAiB,SAAS;QACxB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,SAAS,EAA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