@voicelayer/sdk 0.3.0 → 0.3.1
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/dist/brain/index.d.ts +2 -2
- package/dist/brain/index.js +6 -1
- package/dist/index.d.ts +249 -249
- package/dist/index.js +7 -1
- package/dist/runtime/text-session.d.ts +1 -1
- package/dist/runtime/text-session.js +6 -1
- package/dist/{text-session-B7oyrhwQ.d.ts → text-session-oMqJh6SF.d.ts} +98 -98
- package/package.json +3 -3
package/dist/brain/index.d.ts
CHANGED
|
@@ -79,14 +79,14 @@ declare const ConnectorUpFrame: z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
|
|
|
79
79
|
code: z.ZodEnum<["upstream_timeout", "upstream_error", "bad_response", "normalize_failed", "unreachable"]>;
|
|
80
80
|
message: z.ZodString;
|
|
81
81
|
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
kind: "brain.error";
|
|
82
83
|
code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
|
|
83
84
|
message: string;
|
|
84
|
-
kind: "brain.error";
|
|
85
85
|
streamId: string;
|
|
86
86
|
}, {
|
|
87
|
+
kind: "brain.error";
|
|
87
88
|
code: "upstream_timeout" | "upstream_error" | "bad_response" | "normalize_failed" | "unreachable";
|
|
88
89
|
message: string;
|
|
89
|
-
kind: "brain.error";
|
|
90
90
|
streamId: string;
|
|
91
91
|
}>]>;
|
|
92
92
|
type ConnectorUpFrame = z.infer<typeof ConnectorUpFrame>;
|
package/dist/brain/index.js
CHANGED
|
@@ -735,7 +735,12 @@ z.object({
|
|
|
735
735
|
z.object({
|
|
736
736
|
status: z.enum(["online", "degraded"]).optional(),
|
|
737
737
|
statusDetail: z.string().max(512).optional(),
|
|
738
|
-
metadata: AgentMetadata.optional()
|
|
738
|
+
metadata: AgentMetadata.optional(),
|
|
739
|
+
// The text-turn protocol the worker speaks (G-4), repeated on every heartbeat: a registration answered by an older API
|
|
740
|
+
// during a rollout drops the field, and the next heartbeat restores it. SDK ≥ 0.3.1 always sends it — `null` when the
|
|
741
|
+
// worker takes no text turns, so a leftover beat can't keep a stale "text-capable" alive either. Absent (an older SDK)
|
|
742
|
+
// leaves the stored value as is.
|
|
743
|
+
textTurns: z.number().int().min(1).max(1e3).nullable().optional()
|
|
739
744
|
});
|
|
740
745
|
z.object({
|
|
741
746
|
agent: AgentDTO,
|