@runwayml/sdk 3.11.0 → 3.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +115 -0
- package/LICENSE +1 -1
- package/README.md +43 -2
- package/client.d.mts +53 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +53 -4
- package/client.d.ts.map +1 -1
- package/client.js +75 -20
- package/client.js.map +1 -1
- package/client.mjs +75 -20
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +54 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +54 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/internal/tslib.js +17 -17
- package/internal/utils/query.d.mts +5 -0
- package/internal/utils/query.d.mts.map +1 -0
- package/internal/utils/query.d.ts +5 -0
- package/internal/utils/query.d.ts.map +1 -0
- package/internal/utils/query.js +23 -0
- package/internal/utils/query.js.map +1 -0
- package/internal/utils/query.mjs +20 -0
- package/internal/utils/query.mjs.map +1 -0
- package/internal/utils.d.mts +1 -0
- package/internal/utils.d.ts +1 -0
- package/internal/utils.js +1 -0
- package/internal/utils.js.map +1 -1
- package/internal/utils.mjs +1 -0
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/avatars.d.mts +1308 -0
- package/resources/avatars.d.mts.map +1 -0
- package/resources/avatars.d.ts +1308 -0
- package/resources/avatars.d.ts.map +1 -0
- package/resources/avatars.js +87 -0
- package/resources/avatars.js.map +1 -0
- package/resources/avatars.mjs +83 -0
- package/resources/avatars.mjs.map +1 -0
- package/resources/character-performance.d.mts +3 -0
- package/resources/character-performance.d.mts.map +1 -1
- package/resources/character-performance.d.ts +3 -0
- package/resources/character-performance.d.ts.map +1 -1
- package/resources/character-performance.js +3 -0
- package/resources/character-performance.js.map +1 -1
- package/resources/character-performance.mjs +3 -0
- package/resources/character-performance.mjs.map +1 -1
- package/resources/documents.d.mts +209 -0
- package/resources/documents.d.mts.map +1 -0
- package/resources/documents.d.ts +209 -0
- package/resources/documents.d.ts.map +1 -0
- package/resources/documents.js +75 -0
- package/resources/documents.js.map +1 -0
- package/resources/documents.mjs +71 -0
- package/resources/documents.mjs.map +1 -0
- package/resources/image-to-video.d.mts +58 -1
- package/resources/image-to-video.d.mts.map +1 -1
- package/resources/image-to-video.d.ts +58 -1
- package/resources/image-to-video.d.ts.map +1 -1
- package/resources/image-to-video.js +3 -0
- package/resources/image-to-video.js.map +1 -1
- package/resources/image-to-video.mjs +3 -0
- package/resources/image-to-video.mjs.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -3
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -1
- package/resources/index.mjs.map +1 -1
- package/resources/organization.d.mts +2 -2
- package/resources/organization.d.mts.map +1 -1
- package/resources/organization.d.ts +2 -2
- package/resources/organization.d.ts.map +1 -1
- package/resources/realtime-sessions.d.mts +180 -0
- package/resources/realtime-sessions.d.mts.map +1 -0
- package/resources/realtime-sessions.d.ts +180 -0
- package/resources/realtime-sessions.d.ts.map +1 -0
- package/resources/realtime-sessions.js +32 -0
- package/resources/realtime-sessions.js.map +1 -0
- package/resources/realtime-sessions.mjs +28 -0
- package/resources/realtime-sessions.mjs.map +1 -0
- package/resources/sound-effect.d.mts +3 -0
- package/resources/sound-effect.d.mts.map +1 -1
- package/resources/sound-effect.d.ts +3 -0
- package/resources/sound-effect.d.ts.map +1 -1
- package/resources/sound-effect.js +3 -0
- package/resources/sound-effect.js.map +1 -1
- package/resources/sound-effect.mjs +3 -0
- package/resources/sound-effect.mjs.map +1 -1
- package/resources/speech-to-speech.d.mts +3 -0
- package/resources/speech-to-speech.d.mts.map +1 -1
- package/resources/speech-to-speech.d.ts +3 -0
- package/resources/speech-to-speech.d.ts.map +1 -1
- package/resources/speech-to-speech.js +3 -0
- package/resources/speech-to-speech.js.map +1 -1
- package/resources/speech-to-speech.mjs +3 -0
- package/resources/speech-to-speech.mjs.map +1 -1
- package/resources/tasks.d.mts +3 -0
- package/resources/tasks.d.mts.map +1 -1
- package/resources/tasks.d.ts +3 -0
- package/resources/tasks.d.ts.map +1 -1
- package/resources/tasks.js +3 -0
- package/resources/tasks.js.map +1 -1
- package/resources/tasks.mjs +3 -0
- package/resources/tasks.mjs.map +1 -1
- package/resources/text-to-image.d.mts +3 -0
- package/resources/text-to-image.d.mts.map +1 -1
- package/resources/text-to-image.d.ts +3 -0
- package/resources/text-to-image.d.ts.map +1 -1
- package/resources/text-to-image.js +3 -0
- package/resources/text-to-image.js.map +1 -1
- package/resources/text-to-image.mjs +3 -0
- package/resources/text-to-image.mjs.map +1 -1
- package/resources/text-to-speech.d.mts +3 -0
- package/resources/text-to-speech.d.mts.map +1 -1
- package/resources/text-to-speech.d.ts +3 -0
- package/resources/text-to-speech.d.ts.map +1 -1
- package/resources/text-to-speech.js +3 -0
- package/resources/text-to-speech.js.map +1 -1
- package/resources/text-to-speech.mjs +3 -0
- package/resources/text-to-speech.mjs.map +1 -1
- package/resources/text-to-video.d.mts +43 -1
- package/resources/text-to-video.d.mts.map +1 -1
- package/resources/text-to-video.d.ts +43 -1
- package/resources/text-to-video.d.ts.map +1 -1
- package/resources/text-to-video.js +3 -0
- package/resources/text-to-video.js.map +1 -1
- package/resources/text-to-video.mjs +3 -0
- package/resources/text-to-video.mjs.map +1 -1
- package/resources/video-to-video.d.mts +8 -5
- package/resources/video-to-video.d.mts.map +1 -1
- package/resources/video-to-video.d.ts +8 -5
- package/resources/video-to-video.d.ts.map +1 -1
- package/resources/video-to-video.js +3 -1
- package/resources/video-to-video.js.map +1 -1
- package/resources/video-to-video.mjs +3 -1
- package/resources/video-to-video.mjs.map +1 -1
- package/resources/voice-dubbing.d.mts +3 -0
- package/resources/voice-dubbing.d.mts.map +1 -1
- package/resources/voice-dubbing.d.ts +3 -0
- package/resources/voice-dubbing.d.ts.map +1 -1
- package/resources/voice-dubbing.js +3 -0
- package/resources/voice-dubbing.js.map +1 -1
- package/resources/voice-dubbing.mjs +3 -0
- package/resources/voice-dubbing.mjs.map +1 -1
- package/resources/voice-isolation.d.mts +3 -0
- package/resources/voice-isolation.d.mts.map +1 -1
- package/resources/voice-isolation.d.ts +3 -0
- package/resources/voice-isolation.d.ts.map +1 -1
- package/resources/voice-isolation.js +3 -0
- package/resources/voice-isolation.js.map +1 -1
- package/resources/voice-isolation.mjs +3 -0
- package/resources/voice-isolation.mjs.map +1 -1
- package/resources/voices.d.mts +257 -0
- package/resources/voices.d.mts.map +1 -0
- package/resources/voices.d.ts +257 -0
- package/resources/voices.d.ts.map +1 -0
- package/resources/voices.js +47 -0
- package/resources/voices.js.map +1 -0
- package/resources/voices.mjs +43 -0
- package/resources/voices.mjs.map +1 -0
- package/src/client.ts +173 -35
- package/src/core/pagination.ts +157 -0
- package/src/index.ts +1 -0
- package/src/internal/parse.ts +6 -0
- package/src/internal/utils/query.ts +23 -0
- package/src/internal/utils.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/avatars.ts +2049 -0
- package/src/resources/character-performance.ts +3 -0
- package/src/resources/documents.ts +270 -0
- package/src/resources/image-to-video.ts +68 -0
- package/src/resources/index.ts +37 -5
- package/src/resources/organization.ts +7 -3
- package/src/resources/realtime-sessions.ts +251 -0
- package/src/resources/sound-effect.ts +3 -0
- package/src/resources/speech-to-speech.ts +3 -0
- package/src/resources/tasks.ts +3 -0
- package/src/resources/text-to-image.ts +3 -0
- package/src/resources/text-to-speech.ts +3 -0
- package/src/resources/text-to-video.ts +50 -0
- package/src/resources/video-to-video.ts +9 -6
- package/src/resources/voice-dubbing.ts +3 -0
- package/src/resources/voice-isolation.ts +3 -0
- package/src/resources/voices.ts +345 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/video-upscale.d.mts +0 -35
- package/resources/video-upscale.d.mts.map +0 -1
- package/resources/video-upscale.d.ts +0 -35
- package/resources/video-upscale.d.ts.map +0 -1
- package/resources/video-upscale.js +0 -25
- package/resources/video-upscale.js.map +0 -1
- package/resources/video-upscale.mjs +0 -21
- package/resources/video-upscale.mjs.map +0 -1
- package/src/resources/video-upscale.ts +0 -51
package/resources/index.js
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.Uploads = exports.
|
|
4
|
+
exports.Uploads = exports.Voices = exports.VoiceIsolation = exports.VoiceDubbing = exports.VideoToVideo = exports.TextToVideo = exports.TextToSpeech = exports.TextToImage = exports.Tasks = exports.SpeechToSpeech = exports.SoundEffect = exports.RealtimeSessions = exports.Organization = exports.ImageToVideo = exports.Documents = exports.CharacterPerformance = exports.Avatars = void 0;
|
|
5
|
+
var avatars_1 = require("./avatars.js");
|
|
6
|
+
Object.defineProperty(exports, "Avatars", { enumerable: true, get: function () { return avatars_1.Avatars; } });
|
|
5
7
|
var character_performance_1 = require("./character-performance.js");
|
|
6
8
|
Object.defineProperty(exports, "CharacterPerformance", { enumerable: true, get: function () { return character_performance_1.CharacterPerformance; } });
|
|
9
|
+
var documents_1 = require("./documents.js");
|
|
10
|
+
Object.defineProperty(exports, "Documents", { enumerable: true, get: function () { return documents_1.Documents; } });
|
|
7
11
|
var image_to_video_1 = require("./image-to-video.js");
|
|
8
12
|
Object.defineProperty(exports, "ImageToVideo", { enumerable: true, get: function () { return image_to_video_1.ImageToVideo; } });
|
|
9
13
|
var organization_1 = require("./organization.js");
|
|
10
14
|
Object.defineProperty(exports, "Organization", { enumerable: true, get: function () { return organization_1.Organization; } });
|
|
15
|
+
var realtime_sessions_1 = require("./realtime-sessions.js");
|
|
16
|
+
Object.defineProperty(exports, "RealtimeSessions", { enumerable: true, get: function () { return realtime_sessions_1.RealtimeSessions; } });
|
|
11
17
|
var sound_effect_1 = require("./sound-effect.js");
|
|
12
18
|
Object.defineProperty(exports, "SoundEffect", { enumerable: true, get: function () { return sound_effect_1.SoundEffect; } });
|
|
13
19
|
var speech_to_speech_1 = require("./speech-to-speech.js");
|
|
@@ -22,12 +28,12 @@ var text_to_video_1 = require("./text-to-video.js");
|
|
|
22
28
|
Object.defineProperty(exports, "TextToVideo", { enumerable: true, get: function () { return text_to_video_1.TextToVideo; } });
|
|
23
29
|
var video_to_video_1 = require("./video-to-video.js");
|
|
24
30
|
Object.defineProperty(exports, "VideoToVideo", { enumerable: true, get: function () { return video_to_video_1.VideoToVideo; } });
|
|
25
|
-
var video_upscale_1 = require("./video-upscale.js");
|
|
26
|
-
Object.defineProperty(exports, "VideoUpscale", { enumerable: true, get: function () { return video_upscale_1.VideoUpscale; } });
|
|
27
31
|
var voice_dubbing_1 = require("./voice-dubbing.js");
|
|
28
32
|
Object.defineProperty(exports, "VoiceDubbing", { enumerable: true, get: function () { return voice_dubbing_1.VoiceDubbing; } });
|
|
29
33
|
var voice_isolation_1 = require("./voice-isolation.js");
|
|
30
34
|
Object.defineProperty(exports, "VoiceIsolation", { enumerable: true, get: function () { return voice_isolation_1.VoiceIsolation; } });
|
|
35
|
+
var voices_1 = require("./voices.js");
|
|
36
|
+
Object.defineProperty(exports, "Voices", { enumerable: true, get: function () { return voices_1.Voices; } });
|
|
31
37
|
var uploads_1 = require("./uploads.js");
|
|
32
38
|
Object.defineProperty(exports, "Uploads", { enumerable: true, get: function () { return uploads_1.Uploads; } });
|
|
33
39
|
//# sourceMappingURL=index.js.map
|
package/resources/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,kHAAA,cAAc,OAAA;AAIhB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,oEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AAItB,4CAQqB;AAPnB,sGAAA,SAAS,OAAA;AAQX,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,4DAK6B;AAJ3B,qHAAA,gBAAgB,OAAA;AAKlB,kDAA2G;AAAlG,2GAAA,WAAW,OAAA;AACpB,0DAI4B;AAH1B,kHAAA,cAAc,OAAA;AAIhB,oCAA2D;AAAlD,8FAAA,KAAK,OAAA;AACd,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAA4G;AAAnG,4GAAA,WAAW,OAAA;AACpB,sDAI0B;AAHxB,8GAAA,YAAY,OAAA;AAId,oDAIyB;AAHvB,6GAAA,YAAY,OAAA;AAId,wDAI2B;AAHzB,iHAAA,cAAc,OAAA;AAIhB,sCAUkB;AAThB,gGAAA,MAAM,OAAA;AAUR,wCAA2G;AAAlG,kGAAA,OAAO,OAAA"}
|
package/resources/index.mjs
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Avatars, } from "./avatars.mjs";
|
|
2
3
|
export { CharacterPerformance, } from "./character-performance.mjs";
|
|
4
|
+
export { Documents, } from "./documents.mjs";
|
|
3
5
|
export { ImageToVideo, } from "./image-to-video.mjs";
|
|
4
6
|
export { Organization, } from "./organization.mjs";
|
|
7
|
+
export { RealtimeSessions, } from "./realtime-sessions.mjs";
|
|
5
8
|
export { SoundEffect } from "./sound-effect.mjs";
|
|
6
9
|
export { SpeechToSpeech, } from "./speech-to-speech.mjs";
|
|
7
10
|
export { Tasks } from "./tasks.mjs";
|
|
@@ -9,8 +12,8 @@ export { TextToImage } from "./text-to-image.mjs";
|
|
|
9
12
|
export { TextToSpeech, } from "./text-to-speech.mjs";
|
|
10
13
|
export { TextToVideo } from "./text-to-video.mjs";
|
|
11
14
|
export { VideoToVideo, } from "./video-to-video.mjs";
|
|
12
|
-
export { VideoUpscale, } from "./video-upscale.mjs";
|
|
13
15
|
export { VoiceDubbing, } from "./voice-dubbing.mjs";
|
|
14
16
|
export { VoiceIsolation, } from "./voice-isolation.mjs";
|
|
17
|
+
export { Voices, } from "./voices.mjs";
|
|
15
18
|
export { Uploads } from "./uploads.mjs";
|
|
16
19
|
//# sourceMappingURL=index.mjs.map
|
package/resources/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,oBAAoB,GAGrB;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,cAAc,GAGf;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,OAAO,GASR;OACM,EACL,oBAAoB,GAGrB;OACM,EACL,SAAS,GAOV;OACM,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAIb;OACM,EACL,gBAAgB,GAIjB;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,cAAc,GAGf;OACM,EAAE,KAAK,EAA6B;OACpC,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EAAE,WAAW,EAAgE;OAC7E,EACL,YAAY,GAGb;OACM,EACL,YAAY,GAGb;OACM,EACL,cAAc,GAGf;OACM,EACL,MAAM,GASP;OACM,EAAE,OAAO,EAAyE"}
|
|
@@ -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<'
|
|
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: '
|
|
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.mts","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,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,
|
|
1
|
+
{"version":3,"file":"organization.d.mts","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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I,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,WAAW,EAAE,KAAK,CAAC,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"}
|
|
@@ -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<'
|
|
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: '
|
|
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,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,kBAAkB,GAClB,
|
|
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;CA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E,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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AEtB,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,EAAE;AAGzB,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;OAEG;IACH,MAAM,CACJ,IAAI,EAAE,2BAA2B,EACjC,OAAO,CAAC,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ACvE,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
|