@livekit/protocol 1.45.6 → 1.45.7
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 +78 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +116 -2
- package/dist/index.d.mts +116 -2
- package/dist/index.d.ts +116 -2
- package/dist/index.mjs +79 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_session_pb.d.ts +86 -1
- package/src/gen/agent/livekit_agent_session_pb.js +32 -1
- package/src/gen/livekit_agent_dispatch_pb.d.ts +15 -0
- package/src/gen/livekit_agent_dispatch_pb.js +3 -0
- package/src/gen/livekit_agent_pb.d.ts +10 -0
- package/src/gen/livekit_agent_pb.js +2 -0
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
import type { BinaryReadOptions, Duration, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
8
|
|
|
9
9
|
/**
|
|
@@ -81,6 +81,41 @@ export declare enum UserState {
|
|
|
81
81
|
US_AWAY = 2,
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
/**
|
|
85
|
+
* @generated from enum livekit.agent.AmdCategory
|
|
86
|
+
*/
|
|
87
|
+
export declare enum AmdCategory {
|
|
88
|
+
/**
|
|
89
|
+
* @generated from enum value: AMD_UNKNOWN = 0;
|
|
90
|
+
*/
|
|
91
|
+
AMD_UNKNOWN = 0,
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @generated from enum value: AMD_HUMAN = 1;
|
|
95
|
+
*/
|
|
96
|
+
AMD_HUMAN = 1,
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* @generated from enum value: AMD_MACHINE_IVR = 2;
|
|
100
|
+
*/
|
|
101
|
+
AMD_MACHINE_IVR = 2,
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: AMD_MACHINE_VM = 3;
|
|
105
|
+
*/
|
|
106
|
+
AMD_MACHINE_VM = 3,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: AMD_MACHINE_UNAVAILABLE = 4;
|
|
110
|
+
*/
|
|
111
|
+
AMD_MACHINE_UNAVAILABLE = 4,
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* @generated from enum value: AMD_UNCERTAIN = 5;
|
|
115
|
+
*/
|
|
116
|
+
AMD_UNCERTAIN = 5,
|
|
117
|
+
}
|
|
118
|
+
|
|
84
119
|
/**
|
|
85
120
|
* @generated from message livekit.agent.MetricsReport
|
|
86
121
|
*/
|
|
@@ -880,6 +915,12 @@ export declare class AgentSessionEvent extends Message<AgentSessionEvent> {
|
|
|
880
915
|
*/
|
|
881
916
|
value: AgentSessionEvent_SessionUsageUpdated;
|
|
882
917
|
case: "sessionUsageUpdated";
|
|
918
|
+
} | {
|
|
919
|
+
/**
|
|
920
|
+
* @generated from field: livekit.agent.AgentSessionEvent.AmdPrediction amd_prediction = 18;
|
|
921
|
+
*/
|
|
922
|
+
value: AgentSessionEvent_AmdPrediction;
|
|
923
|
+
case: "amdPrediction";
|
|
883
924
|
} | { case: undefined; value?: undefined };
|
|
884
925
|
|
|
885
926
|
constructor(data?: PartialMessage<AgentSessionEvent>);
|
|
@@ -1105,6 +1146,50 @@ export declare class AgentSessionEvent_OverlappingSpeech extends Message<AgentSe
|
|
|
1105
1146
|
static equals(a: AgentSessionEvent_OverlappingSpeech | PlainMessage<AgentSessionEvent_OverlappingSpeech> | undefined, b: AgentSessionEvent_OverlappingSpeech | PlainMessage<AgentSessionEvent_OverlappingSpeech> | undefined): boolean;
|
|
1106
1147
|
}
|
|
1107
1148
|
|
|
1149
|
+
/**
|
|
1150
|
+
* @generated from message livekit.agent.AgentSessionEvent.AmdPrediction
|
|
1151
|
+
*/
|
|
1152
|
+
export declare class AgentSessionEvent_AmdPrediction extends Message<AgentSessionEvent_AmdPrediction> {
|
|
1153
|
+
/**
|
|
1154
|
+
* @generated from field: google.protobuf.Duration speech_duration = 1;
|
|
1155
|
+
*/
|
|
1156
|
+
speechDuration?: Duration;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* @generated from field: livekit.agent.AmdCategory category = 2;
|
|
1160
|
+
*/
|
|
1161
|
+
category: AmdCategory;
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* @generated from field: string reason = 3;
|
|
1165
|
+
*/
|
|
1166
|
+
reason: string;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* @generated from field: string transcript = 4;
|
|
1170
|
+
*/
|
|
1171
|
+
transcript: string;
|
|
1172
|
+
|
|
1173
|
+
/**
|
|
1174
|
+
* @generated from field: google.protobuf.Duration delay = 5;
|
|
1175
|
+
*/
|
|
1176
|
+
delay?: Duration;
|
|
1177
|
+
|
|
1178
|
+
constructor(data?: PartialMessage<AgentSessionEvent_AmdPrediction>);
|
|
1179
|
+
|
|
1180
|
+
static readonly runtime: typeof proto3;
|
|
1181
|
+
static readonly typeName = "livekit.agent.AgentSessionEvent.AmdPrediction";
|
|
1182
|
+
static readonly fields: FieldList;
|
|
1183
|
+
|
|
1184
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentSessionEvent_AmdPrediction;
|
|
1185
|
+
|
|
1186
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentSessionEvent_AmdPrediction;
|
|
1187
|
+
|
|
1188
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentSessionEvent_AmdPrediction;
|
|
1189
|
+
|
|
1190
|
+
static equals(a: AgentSessionEvent_AmdPrediction | PlainMessage<AgentSessionEvent_AmdPrediction> | undefined, b: AgentSessionEvent_AmdPrediction | PlainMessage<AgentSessionEvent_AmdPrediction> | undefined): boolean;
|
|
1191
|
+
}
|
|
1192
|
+
|
|
1108
1193
|
/**
|
|
1109
1194
|
* @generated from message livekit.agent.AgentSessionEvent.SessionUsageUpdated
|
|
1110
1195
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
|
-
import { proto3, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
6
|
+
import { Duration, proto3, Struct, Timestamp } from "@bufbuild/protobuf";
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @generated from enum livekit.agent.ChatRole
|
|
@@ -44,6 +44,21 @@ export const UserState = /*@__PURE__*/ proto3.makeEnum(
|
|
|
44
44
|
],
|
|
45
45
|
);
|
|
46
46
|
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum livekit.agent.AmdCategory
|
|
49
|
+
*/
|
|
50
|
+
export const AmdCategory = /*@__PURE__*/ proto3.makeEnum(
|
|
51
|
+
"livekit.agent.AmdCategory",
|
|
52
|
+
[
|
|
53
|
+
{no: 0, name: "AMD_UNKNOWN"},
|
|
54
|
+
{no: 1, name: "AMD_HUMAN"},
|
|
55
|
+
{no: 2, name: "AMD_MACHINE_IVR"},
|
|
56
|
+
{no: 3, name: "AMD_MACHINE_VM"},
|
|
57
|
+
{no: 4, name: "AMD_MACHINE_UNAVAILABLE"},
|
|
58
|
+
{no: 5, name: "AMD_UNCERTAIN"},
|
|
59
|
+
],
|
|
60
|
+
);
|
|
61
|
+
|
|
47
62
|
/**
|
|
48
63
|
* @generated from message livekit.agent.MetricsReport
|
|
49
64
|
*/
|
|
@@ -287,6 +302,7 @@ export const AgentSessionEvent = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
287
302
|
{ no: 15, name: "error", kind: "message", T: AgentSessionEvent_Error, oneof: "event" },
|
|
288
303
|
{ no: 16, name: "overlapping_speech", kind: "message", T: AgentSessionEvent_OverlappingSpeech, oneof: "event" },
|
|
289
304
|
{ no: 17, name: "session_usage_updated", kind: "message", T: AgentSessionEvent_SessionUsageUpdated, oneof: "event" },
|
|
305
|
+
{ no: 18, name: "amd_prediction", kind: "message", T: AgentSessionEvent_AmdPrediction, oneof: "event" },
|
|
290
306
|
],
|
|
291
307
|
);
|
|
292
308
|
|
|
@@ -375,6 +391,21 @@ export const AgentSessionEvent_OverlappingSpeech = /*@__PURE__*/ proto3.makeMess
|
|
|
375
391
|
{localName: "AgentSessionEvent_OverlappingSpeech"},
|
|
376
392
|
);
|
|
377
393
|
|
|
394
|
+
/**
|
|
395
|
+
* @generated from message livekit.agent.AgentSessionEvent.AmdPrediction
|
|
396
|
+
*/
|
|
397
|
+
export const AgentSessionEvent_AmdPrediction = /*@__PURE__*/ proto3.makeMessageType(
|
|
398
|
+
"livekit.agent.AgentSessionEvent.AmdPrediction",
|
|
399
|
+
() => [
|
|
400
|
+
{ no: 1, name: "speech_duration", kind: "message", T: Duration },
|
|
401
|
+
{ no: 2, name: "category", kind: "enum", T: proto3.getEnumType(AmdCategory) },
|
|
402
|
+
{ no: 3, name: "reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
403
|
+
{ no: 4, name: "transcript", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
404
|
+
{ no: 5, name: "delay", kind: "message", T: Duration },
|
|
405
|
+
],
|
|
406
|
+
{localName: "AgentSessionEvent_AmdPrediction"},
|
|
407
|
+
);
|
|
408
|
+
|
|
378
409
|
/**
|
|
379
410
|
* @generated from message livekit.agent.AgentSessionEvent.SessionUsageUpdated
|
|
380
411
|
*/
|
|
@@ -66,6 +66,11 @@ export declare class CreateAgentDispatchRequest extends Message<CreateAgentDispa
|
|
|
66
66
|
*/
|
|
67
67
|
restartPolicy: JobRestartPolicy;
|
|
68
68
|
|
|
69
|
+
/**
|
|
70
|
+
* @generated from field: string environment = 5;
|
|
71
|
+
*/
|
|
72
|
+
environment: string;
|
|
73
|
+
|
|
69
74
|
constructor(data?: PartialMessage<CreateAgentDispatchRequest>);
|
|
70
75
|
|
|
71
76
|
static readonly runtime: typeof proto3;
|
|
@@ -102,6 +107,11 @@ export declare class RoomAgentDispatch extends Message<RoomAgentDispatch> {
|
|
|
102
107
|
*/
|
|
103
108
|
restartPolicy: JobRestartPolicy;
|
|
104
109
|
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string environment = 4;
|
|
112
|
+
*/
|
|
113
|
+
environment: string;
|
|
114
|
+
|
|
105
115
|
constructor(data?: PartialMessage<RoomAgentDispatch>);
|
|
106
116
|
|
|
107
117
|
static readonly runtime: typeof proto3;
|
|
@@ -239,6 +249,11 @@ export declare class AgentDispatch extends Message<AgentDispatch> {
|
|
|
239
249
|
*/
|
|
240
250
|
restartPolicy: JobRestartPolicy;
|
|
241
251
|
|
|
252
|
+
/**
|
|
253
|
+
* @generated from field: string environment = 7;
|
|
254
|
+
*/
|
|
255
|
+
environment: string;
|
|
256
|
+
|
|
242
257
|
constructor(data?: PartialMessage<AgentDispatch>);
|
|
243
258
|
|
|
244
259
|
static readonly runtime: typeof proto3;
|
|
@@ -41,6 +41,7 @@ export const CreateAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
41
41
|
{ no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
42
42
|
{ no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
43
43
|
{ no: 4, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
|
|
44
|
+
{ no: 5, name: "environment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
44
45
|
],
|
|
45
46
|
);
|
|
46
47
|
|
|
@@ -53,6 +54,7 @@ export const RoomAgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
53
54
|
{ no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
54
55
|
{ no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
55
56
|
{ no: 3, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
|
|
57
|
+
{ no: 4, name: "environment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
56
58
|
],
|
|
57
59
|
);
|
|
58
60
|
|
|
@@ -100,6 +102,7 @@ export const AgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
100
102
|
{ no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
101
103
|
{ no: 5, name: "state", kind: "message", T: AgentDispatchState },
|
|
102
104
|
{ no: 6, name: "restart_policy", kind: "enum", T: proto3.getEnumType(JobRestartPolicy) },
|
|
105
|
+
{ no: 7, name: "environment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
103
106
|
],
|
|
104
107
|
);
|
|
105
108
|
|
|
@@ -136,6 +136,11 @@ export declare class Job extends Message<Job> {
|
|
|
136
136
|
*/
|
|
137
137
|
enableRecording: boolean;
|
|
138
138
|
|
|
139
|
+
/**
|
|
140
|
+
* @generated from field: string environment = 11;
|
|
141
|
+
*/
|
|
142
|
+
environment: string;
|
|
143
|
+
|
|
139
144
|
constructor(data?: PartialMessage<Job>);
|
|
140
145
|
|
|
141
146
|
static readonly runtime: typeof proto3;
|
|
@@ -471,6 +476,11 @@ export declare class RegisterWorkerRequest extends Message<RegisterWorkerRequest
|
|
|
471
476
|
*/
|
|
472
477
|
allowedPermissions?: ParticipantPermission;
|
|
473
478
|
|
|
479
|
+
/**
|
|
480
|
+
* @generated from field: string environment = 9;
|
|
481
|
+
*/
|
|
482
|
+
environment: string;
|
|
483
|
+
|
|
474
484
|
constructor(data?: PartialMessage<RegisterWorkerRequest>);
|
|
475
485
|
|
|
476
486
|
static readonly runtime: typeof proto3;
|
|
@@ -72,6 +72,7 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
72
72
|
{ no: 7, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
73
|
{ no: 8, name: "state", kind: "message", T: JobState },
|
|
74
74
|
{ no: 10, name: "enable_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
75
|
+
{ no: 11, name: "environment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
76
|
],
|
|
76
77
|
);
|
|
77
78
|
|
|
@@ -171,6 +172,7 @@ export const RegisterWorkerRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
171
172
|
{ no: 5, name: "ping_interval", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
172
173
|
{ no: 6, name: "namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
173
174
|
{ no: 7, name: "allowed_permissions", kind: "message", T: ParticipantPermission },
|
|
175
|
+
{ no: 9, name: "environment", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
174
176
|
],
|
|
175
177
|
);
|
|
176
178
|
|
package/src/gen/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.45.
|
|
2
|
+
export const version = '1.45.7';
|