@livekit/protocol 1.46.2 → 1.46.3
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/index.cjs +17 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +41 -2
- package/dist/index.d.mts +41 -2
- package/dist/index.d.ts +41 -2
- package/dist/index.mjs +18 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_session_pb.d.ts +37 -0
- package/src/gen/agent/livekit_agent_session_pb.js +14 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -895,6 +895,37 @@ export declare class AgentSessionUsage extends Message<AgentSessionUsage> {
|
|
|
895
895
|
static equals(a: AgentSessionUsage | PlainMessage<AgentSessionUsage> | undefined, b: AgentSessionUsage | PlainMessage<AgentSessionUsage> | undefined): boolean;
|
|
896
896
|
}
|
|
897
897
|
|
|
898
|
+
/**
|
|
899
|
+
* Application-defined event carried over the remote session wire.
|
|
900
|
+
*
|
|
901
|
+
* @generated from message livekit.agent.CustomEvent
|
|
902
|
+
*/
|
|
903
|
+
export declare class CustomEvent extends Message<CustomEvent> {
|
|
904
|
+
/**
|
|
905
|
+
* @generated from field: string type = 1;
|
|
906
|
+
*/
|
|
907
|
+
type: string;
|
|
908
|
+
|
|
909
|
+
/**
|
|
910
|
+
* @generated from field: google.protobuf.Struct payload = 2;
|
|
911
|
+
*/
|
|
912
|
+
payload?: Struct;
|
|
913
|
+
|
|
914
|
+
constructor(data?: PartialMessage<CustomEvent>);
|
|
915
|
+
|
|
916
|
+
static readonly runtime: typeof proto3;
|
|
917
|
+
static readonly typeName = "livekit.agent.CustomEvent";
|
|
918
|
+
static readonly fields: FieldList;
|
|
919
|
+
|
|
920
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CustomEvent;
|
|
921
|
+
|
|
922
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CustomEvent;
|
|
923
|
+
|
|
924
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CustomEvent;
|
|
925
|
+
|
|
926
|
+
static equals(a: CustomEvent | PlainMessage<CustomEvent> | undefined, b: CustomEvent | PlainMessage<CustomEvent> | undefined): boolean;
|
|
927
|
+
}
|
|
928
|
+
|
|
898
929
|
/**
|
|
899
930
|
* @generated from message livekit.agent.AgentSessionEvent
|
|
900
931
|
*/
|
|
@@ -973,6 +1004,12 @@ export declare class AgentSessionEvent extends Message<AgentSessionEvent> {
|
|
|
973
1004
|
*/
|
|
974
1005
|
value: AgentSessionEvent_FunctionToolsStarted;
|
|
975
1006
|
case: "functionToolsStarted";
|
|
1007
|
+
} | {
|
|
1008
|
+
/**
|
|
1009
|
+
* @generated from field: livekit.agent.CustomEvent custom_event = 21;
|
|
1010
|
+
*/
|
|
1011
|
+
value: CustomEvent;
|
|
1012
|
+
case: "customEvent";
|
|
976
1013
|
} | { case: undefined; value?: undefined };
|
|
977
1014
|
|
|
978
1015
|
constructor(data?: PartialMessage<AgentSessionEvent>);
|
|
@@ -300,6 +300,19 @@ export const AgentSessionUsage = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
300
300
|
],
|
|
301
301
|
);
|
|
302
302
|
|
|
303
|
+
/**
|
|
304
|
+
* Application-defined event carried over the remote session wire.
|
|
305
|
+
*
|
|
306
|
+
* @generated from message livekit.agent.CustomEvent
|
|
307
|
+
*/
|
|
308
|
+
export const CustomEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
309
|
+
"livekit.agent.CustomEvent",
|
|
310
|
+
() => [
|
|
311
|
+
{ no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
312
|
+
{ no: 2, name: "payload", kind: "message", T: Struct },
|
|
313
|
+
],
|
|
314
|
+
);
|
|
315
|
+
|
|
303
316
|
/**
|
|
304
317
|
* @generated from message livekit.agent.AgentSessionEvent
|
|
305
318
|
*/
|
|
@@ -318,6 +331,7 @@ export const AgentSessionEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
318
331
|
{ no: 18, name: "amd_prediction", kind: "message", T: AgentSessionEvent_AmdPrediction, oneof: "event" },
|
|
319
332
|
{ no: 19, name: "eot_prediction", kind: "message", T: AgentSessionEvent_EotPrediction, oneof: "event" },
|
|
320
333
|
{ no: 20, name: "function_tools_started", kind: "message", T: AgentSessionEvent_FunctionToolsStarted, oneof: "event" },
|
|
334
|
+
{ no: 21, name: "custom_event", kind: "message", T: CustomEvent, oneof: "event" },
|
|
321
335
|
],
|
|
322
336
|
);
|
|
323
337
|
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.46.
|
|
2
|
+
export const version = '1.46.3';
|