@decartai/sdk 0.0.40 → 0.0.41
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.
|
@@ -17,7 +17,7 @@ declare const avatarOptionsSchema: z.ZodObject<{
|
|
|
17
17
|
type AvatarOptions = z.infer<typeof avatarOptionsSchema>;
|
|
18
18
|
declare const realTimeClientConnectOptionsSchema: z.ZodObject<{
|
|
19
19
|
model: z.ZodObject<{
|
|
20
|
-
name: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">, z.ZodLiteral<"
|
|
20
|
+
name: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">, z.ZodLiteral<"lucy_2_rt">, z.ZodLiteral<"live_avatar">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">, z.ZodLiteral<"lucy-restyle-v2v">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
|
|
21
21
|
urlPath: z.ZodString;
|
|
22
22
|
queueUrlPath: z.ZodOptional<z.ZodString>;
|
|
23
23
|
fps: z.ZodNumber;
|
|
@@ -57,6 +57,7 @@ type RealTimeClient = {
|
|
|
57
57
|
setImage: (image: Blob | File | string | null, options?: {
|
|
58
58
|
prompt?: string;
|
|
59
59
|
enhance?: boolean;
|
|
60
|
+
timeout?: number;
|
|
60
61
|
}) => Promise<void>;
|
|
61
62
|
playAudio?: (audio: Blob | File | ArrayBuffer) => Promise<void>;
|
|
62
63
|
};
|
|
@@ -140,7 +140,7 @@ var WebRTCConnection = class {
|
|
|
140
140
|
const timeoutId = setTimeout(() => {
|
|
141
141
|
this.websocketMessagesEmitter.off("setImageAck", listener);
|
|
142
142
|
reject(/* @__PURE__ */ new Error("Image send timed out"));
|
|
143
|
-
}, AVATAR_SETUP_TIMEOUT_MS);
|
|
143
|
+
}, options?.timeout ?? AVATAR_SETUP_TIMEOUT_MS);
|
|
144
144
|
const listener = (msg) => {
|
|
145
145
|
clearTimeout(timeoutId);
|
|
146
146
|
this.websocketMessagesEmitter.off("setImageAck", listener);
|
package/dist/shared/model.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
|
|
3
3
|
//#region src/shared/model.d.ts
|
|
4
|
-
declare const realtimeModels: z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">, z.ZodLiteral<"
|
|
4
|
+
declare const realtimeModels: z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">, z.ZodLiteral<"lucy_2_rt">, z.ZodLiteral<"live_avatar">]>;
|
|
5
5
|
declare const videoModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">, z.ZodLiteral<"lucy-restyle-v2v">]>;
|
|
6
6
|
declare const imageModels: z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>;
|
|
7
|
-
declare const modelSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">, z.ZodLiteral<"
|
|
7
|
+
declare const modelSchema: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodLiteral<"mirage">, z.ZodLiteral<"mirage_v2">, z.ZodLiteral<"lucy_v2v_720p_rt">, z.ZodLiteral<"lucy_2_rt">, z.ZodLiteral<"live_avatar">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-dev-i2v">, z.ZodLiteral<"lucy-fast-v2v">, z.ZodLiteral<"lucy-pro-t2v">, z.ZodLiteral<"lucy-pro-i2v">, z.ZodLiteral<"lucy-pro-v2v">, z.ZodLiteral<"lucy-pro-flf2v">, z.ZodLiteral<"lucy-motion">, z.ZodLiteral<"lucy-restyle-v2v">]>, z.ZodUnion<readonly [z.ZodLiteral<"lucy-pro-t2i">, z.ZodLiteral<"lucy-pro-i2i">]>]>;
|
|
8
8
|
type Model = z.infer<typeof modelSchema>;
|
|
9
9
|
type RealTimeModels = z.infer<typeof realtimeModels>;
|
|
10
10
|
type VideoModels = z.infer<typeof videoModels>;
|
package/dist/shared/model.js
CHANGED
|
@@ -6,7 +6,7 @@ const realtimeModels = z.union([
|
|
|
6
6
|
z.literal("mirage"),
|
|
7
7
|
z.literal("mirage_v2"),
|
|
8
8
|
z.literal("lucy_v2v_720p_rt"),
|
|
9
|
-
z.literal("
|
|
9
|
+
z.literal("lucy_2_rt"),
|
|
10
10
|
z.literal("live_avatar")
|
|
11
11
|
]);
|
|
12
12
|
const videoModels = z.union([
|
|
@@ -174,9 +174,9 @@ const _models = {
|
|
|
174
174
|
height: 704,
|
|
175
175
|
inputSchema: z.object({})
|
|
176
176
|
},
|
|
177
|
-
|
|
177
|
+
lucy_2_rt: {
|
|
178
178
|
urlPath: "/v1/stream",
|
|
179
|
-
name: "
|
|
179
|
+
name: "lucy_2_rt",
|
|
180
180
|
fps: 20,
|
|
181
181
|
width: 1280,
|
|
182
182
|
height: 720,
|