@livekit/protocol 1.43.1 → 1.43.2

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 CHANGED
@@ -2,6 +2,190 @@
2
2
 
3
3
  const protobuf = require('@bufbuild/protobuf');
4
4
 
5
+ const ChatRole = /* @__PURE__ */ protobuf.proto3.makeEnum(
6
+ "livekit.agent.ChatRole",
7
+ [
8
+ { no: 0, name: "DEVELOPER" },
9
+ { no: 1, name: "SYSTEM" },
10
+ { no: 2, name: "USER" },
11
+ { no: 3, name: "ASSISTANT" }
12
+ ]
13
+ );
14
+ const MetricsReport = /* @__PURE__ */ protobuf.proto3.makeMessageType(
15
+ "livekit.agent.MetricsReport",
16
+ () => [
17
+ { no: 1, name: "started_speaking_at", kind: "message", T: protobuf.Timestamp },
18
+ { no: 2, name: "stopped_speaking_at", kind: "message", T: protobuf.Timestamp },
19
+ { no: 3, name: "transcription_delay", kind: "scalar", T: 1, opt: true },
20
+ { no: 4, name: "end_of_turn_delay", kind: "scalar", T: 1, opt: true },
21
+ { no: 5, name: "on_user_turn_completed_delay", kind: "scalar", T: 1, opt: true },
22
+ { no: 6, name: "llm_node_ttft", kind: "scalar", T: 1, opt: true },
23
+ { no: 7, name: "tts_node_ttfb", kind: "scalar", T: 1, opt: true },
24
+ { no: 8, name: "e2e_latency", kind: "scalar", T: 1, opt: true }
25
+ ]
26
+ );
27
+ const ChatMessage$1 = /* @__PURE__ */ protobuf.proto3.makeMessageType(
28
+ "livekit.agent.ChatMessage",
29
+ () => [
30
+ {
31
+ no: 1,
32
+ name: "id",
33
+ kind: "scalar",
34
+ T: 9
35
+ /* ScalarType.STRING */
36
+ },
37
+ { no: 2, name: "role", kind: "enum", T: protobuf.proto3.getEnumType(ChatRole) },
38
+ { no: 3, name: "content", kind: "message", T: ChatMessage_ChatContent, repeated: true },
39
+ {
40
+ no: 4,
41
+ name: "interrupted",
42
+ kind: "scalar",
43
+ T: 8
44
+ /* ScalarType.BOOL */
45
+ },
46
+ { no: 5, name: "transcript_confidence", kind: "scalar", T: 1, opt: true },
47
+ { no: 6, name: "extra", kind: "map", K: 9, V: {
48
+ kind: "scalar",
49
+ T: 9
50
+ /* ScalarType.STRING */
51
+ } },
52
+ { no: 7, name: "metrics", kind: "message", T: MetricsReport },
53
+ { no: 8, name: "created_at", kind: "message", T: protobuf.Timestamp }
54
+ ]
55
+ );
56
+ const ChatMessage_ChatContent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
57
+ "livekit.agent.ChatMessage.ChatContent",
58
+ () => [
59
+ { no: 1, name: "text", kind: "scalar", T: 9, oneof: "payload" }
60
+ ],
61
+ { localName: "ChatMessage_ChatContent" }
62
+ );
63
+ const FunctionCall = /* @__PURE__ */ protobuf.proto3.makeMessageType(
64
+ "livekit.agent.FunctionCall",
65
+ () => [
66
+ {
67
+ no: 1,
68
+ name: "id",
69
+ kind: "scalar",
70
+ T: 9
71
+ /* ScalarType.STRING */
72
+ },
73
+ {
74
+ no: 2,
75
+ name: "call_id",
76
+ kind: "scalar",
77
+ T: 9
78
+ /* ScalarType.STRING */
79
+ },
80
+ {
81
+ no: 3,
82
+ name: "arguments",
83
+ kind: "scalar",
84
+ T: 9
85
+ /* ScalarType.STRING */
86
+ },
87
+ {
88
+ no: 4,
89
+ name: "name",
90
+ kind: "scalar",
91
+ T: 9
92
+ /* ScalarType.STRING */
93
+ },
94
+ { no: 5, name: "created_at", kind: "message", T: protobuf.Timestamp }
95
+ ]
96
+ );
97
+ const FunctionCallOutput = /* @__PURE__ */ protobuf.proto3.makeMessageType(
98
+ "livekit.agent.FunctionCallOutput",
99
+ () => [
100
+ {
101
+ no: 1,
102
+ name: "id",
103
+ kind: "scalar",
104
+ T: 9
105
+ /* ScalarType.STRING */
106
+ },
107
+ {
108
+ no: 2,
109
+ name: "name",
110
+ kind: "scalar",
111
+ T: 9
112
+ /* ScalarType.STRING */
113
+ },
114
+ {
115
+ no: 3,
116
+ name: "call_id",
117
+ kind: "scalar",
118
+ T: 9
119
+ /* ScalarType.STRING */
120
+ },
121
+ {
122
+ no: 4,
123
+ name: "output",
124
+ kind: "scalar",
125
+ T: 9
126
+ /* ScalarType.STRING */
127
+ },
128
+ {
129
+ no: 5,
130
+ name: "is_error",
131
+ kind: "scalar",
132
+ T: 8
133
+ /* ScalarType.BOOL */
134
+ },
135
+ { no: 6, name: "created_at", kind: "message", T: protobuf.Timestamp }
136
+ ]
137
+ );
138
+ const AgentHandoff = /* @__PURE__ */ protobuf.proto3.makeMessageType(
139
+ "livekit.agent.AgentHandoff",
140
+ () => [
141
+ {
142
+ no: 1,
143
+ name: "id",
144
+ kind: "scalar",
145
+ T: 9
146
+ /* ScalarType.STRING */
147
+ },
148
+ { no: 2, name: "old_agent_id", kind: "scalar", T: 9, opt: true },
149
+ {
150
+ no: 3,
151
+ name: "new_agent_id",
152
+ kind: "scalar",
153
+ T: 9
154
+ /* ScalarType.STRING */
155
+ },
156
+ { no: 4, name: "created_at", kind: "message", T: protobuf.Timestamp }
157
+ ]
158
+ );
159
+ const ChatContext = /* @__PURE__ */ protobuf.proto3.makeMessageType(
160
+ "livekit.agent.ChatContext",
161
+ () => [
162
+ { no: 1, name: "items", kind: "message", T: ChatContext_ChatItem, repeated: true }
163
+ ]
164
+ );
165
+ const ChatContext_ChatItem = /* @__PURE__ */ protobuf.proto3.makeMessageType(
166
+ "livekit.agent.ChatContext.ChatItem",
167
+ () => [
168
+ { no: 1, name: "message", kind: "message", T: ChatMessage$1, oneof: "item" },
169
+ { no: 2, name: "function_call", kind: "message", T: FunctionCall, oneof: "item" },
170
+ { no: 3, name: "function_call_output", kind: "message", T: FunctionCallOutput, oneof: "item" },
171
+ { no: 4, name: "agent_handoff", kind: "message", T: AgentHandoff, oneof: "item" }
172
+ ],
173
+ { localName: "ChatContext_ChatItem" }
174
+ );
175
+
176
+ const livekit_agent_session_pb = {
177
+ __proto__: null,
178
+ AgentHandoff: AgentHandoff,
179
+ ChatContext: ChatContext,
180
+ ChatContext_ChatItem: ChatContext_ChatItem,
181
+ ChatMessage: ChatMessage$1,
182
+ ChatMessage_ChatContent: ChatMessage_ChatContent,
183
+ ChatRole: ChatRole,
184
+ FunctionCall: FunctionCall,
185
+ FunctionCallOutput: FunctionCallOutput,
186
+ MetricsReport: MetricsReport
187
+ };
188
+
5
189
  const MetricLabel = /* @__PURE__ */ protobuf.proto3.makeEnum(
6
190
  "livekit.MetricLabel",
7
191
  [
@@ -7536,7 +7720,7 @@ const WebhookEvent = /* @__PURE__ */ protobuf.proto3.makeMessageType(
7536
7720
  ]
7537
7721
  );
7538
7722
 
7539
- const version = "1.43.1";
7723
+ const version = "1.43.2";
7540
7724
 
7541
7725
  exports.protoInt64 = protobuf.protoInt64;
7542
7726
  exports.AcceptWhatsAppCallRequest = AcceptWhatsAppCallRequest;
@@ -7545,6 +7729,7 @@ exports.ActiveSpeakerUpdate = ActiveSpeakerUpdate;
7545
7729
  exports.AddTrackRequest = AddTrackRequest;
7546
7730
  exports.AgentDispatch = AgentDispatch;
7547
7731
  exports.AgentDispatchState = AgentDispatchState;
7732
+ exports.AgentSession = livekit_agent_session_pb;
7548
7733
  exports.AliOSSUpload = AliOSSUpload;
7549
7734
  exports.AudioCodec = AudioCodec;
7550
7735
  exports.AudioMixing = AudioMixing;