@livekit/protocol 1.45.0 → 1.45.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 +1501 -551
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8511 -6326
- package/dist/index.d.mts +8511 -6326
- package/dist/index.d.ts +8511 -6326
- package/dist/index.mjs +1487 -553
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/gen/agent/livekit_agent_dev_pb.d.ts +149 -0
- package/src/gen/agent/livekit_agent_dev_pb.js +56 -0
- package/src/gen/agent/livekit_agent_session_pb.d.ts +1378 -1
- package/src/gen/agent/livekit_agent_session_pb.js +494 -1
- package/src/gen/livekit_agent_dispatch_pb.d.ts +40 -0
- package/src/gen/livekit_agent_dispatch_pb.js +14 -0
- package/src/gen/livekit_agent_simulation_pb.d.ts +1505 -0
- package/src/gen/livekit_agent_simulation_pb.js +612 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +46 -10
- package/src/gen/livekit_cloud_agent_pb.js +9 -3
- package/src/gen/livekit_egress_pb.d.ts +1443 -826
- package/src/gen/livekit_egress_pb.js +417 -212
- package/src/gen/livekit_metrics_pb.d.ts +10 -0
- package/src/gen/livekit_metrics_pb.js +2 -0
- package/src/gen/livekit_models_pb.d.ts +5 -0
- package/src/gen/livekit_models_pb.js +1 -0
- package/src/gen/livekit_room_pb.d.ts +7 -0
- package/src/gen/livekit_room_pb.js +1 -0
- package/src/gen/livekit_sip_pb.d.ts +52 -3
- package/src/gen/livekit_sip_pb.js +10 -1
- package/src/gen/version.js +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
|
|
2
|
+
// @generated from file agent/livekit_agent_dev.proto (package livekit.agent, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* AgentDevMessage is used for IPC between the CLI and agent processes
|
|
11
|
+
* during dev-mode hot reload.
|
|
12
|
+
*
|
|
13
|
+
* @generated from message livekit.agent.AgentDevMessage
|
|
14
|
+
*/
|
|
15
|
+
export declare class AgentDevMessage extends Message<AgentDevMessage> {
|
|
16
|
+
/**
|
|
17
|
+
* @generated from oneof livekit.agent.AgentDevMessage.message
|
|
18
|
+
*/
|
|
19
|
+
message: {
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: livekit.agent.GetRunningAgentJobsRequest get_running_jobs_request = 1;
|
|
22
|
+
*/
|
|
23
|
+
value: GetRunningAgentJobsRequest;
|
|
24
|
+
case: "getRunningJobsRequest";
|
|
25
|
+
} | {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from field: livekit.agent.GetRunningAgentJobsResponse get_running_jobs_response = 2;
|
|
28
|
+
*/
|
|
29
|
+
value: GetRunningAgentJobsResponse;
|
|
30
|
+
case: "getRunningJobsResponse";
|
|
31
|
+
} | { case: undefined; value?: undefined };
|
|
32
|
+
|
|
33
|
+
constructor(data?: PartialMessage<AgentDevMessage>);
|
|
34
|
+
|
|
35
|
+
static readonly runtime: typeof proto3;
|
|
36
|
+
static readonly typeName = "livekit.agent.AgentDevMessage";
|
|
37
|
+
static readonly fields: FieldList;
|
|
38
|
+
|
|
39
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDevMessage;
|
|
40
|
+
|
|
41
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDevMessage;
|
|
42
|
+
|
|
43
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDevMessage;
|
|
44
|
+
|
|
45
|
+
static equals(a: AgentDevMessage | PlainMessage<AgentDevMessage> | undefined, b: AgentDevMessage | PlainMessage<AgentDevMessage> | undefined): boolean;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* @generated from message livekit.agent.GetRunningAgentJobsRequest
|
|
50
|
+
*/
|
|
51
|
+
export declare class GetRunningAgentJobsRequest extends Message<GetRunningAgentJobsRequest> {
|
|
52
|
+
constructor(data?: PartialMessage<GetRunningAgentJobsRequest>);
|
|
53
|
+
|
|
54
|
+
static readonly runtime: typeof proto3;
|
|
55
|
+
static readonly typeName = "livekit.agent.GetRunningAgentJobsRequest";
|
|
56
|
+
static readonly fields: FieldList;
|
|
57
|
+
|
|
58
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRunningAgentJobsRequest;
|
|
59
|
+
|
|
60
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRunningAgentJobsRequest;
|
|
61
|
+
|
|
62
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRunningAgentJobsRequest;
|
|
63
|
+
|
|
64
|
+
static equals(a: GetRunningAgentJobsRequest | PlainMessage<GetRunningAgentJobsRequest> | undefined, b: GetRunningAgentJobsRequest | PlainMessage<GetRunningAgentJobsRequest> | undefined): boolean;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @generated from message livekit.agent.GetRunningAgentJobsResponse
|
|
69
|
+
*/
|
|
70
|
+
export declare class GetRunningAgentJobsResponse extends Message<GetRunningAgentJobsResponse> {
|
|
71
|
+
/**
|
|
72
|
+
* @generated from field: repeated livekit.agent.RunningAgentJobInfo jobs = 1;
|
|
73
|
+
*/
|
|
74
|
+
jobs: RunningAgentJobInfo[];
|
|
75
|
+
|
|
76
|
+
constructor(data?: PartialMessage<GetRunningAgentJobsResponse>);
|
|
77
|
+
|
|
78
|
+
static readonly runtime: typeof proto3;
|
|
79
|
+
static readonly typeName = "livekit.agent.GetRunningAgentJobsResponse";
|
|
80
|
+
static readonly fields: FieldList;
|
|
81
|
+
|
|
82
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetRunningAgentJobsResponse;
|
|
83
|
+
|
|
84
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetRunningAgentJobsResponse;
|
|
85
|
+
|
|
86
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetRunningAgentJobsResponse;
|
|
87
|
+
|
|
88
|
+
static equals(a: GetRunningAgentJobsResponse | PlainMessage<GetRunningAgentJobsResponse> | undefined, b: GetRunningAgentJobsResponse | PlainMessage<GetRunningAgentJobsResponse> | undefined): boolean;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* @generated from message livekit.agent.RunningAgentJobInfo
|
|
93
|
+
*/
|
|
94
|
+
export declare class RunningAgentJobInfo extends Message<RunningAgentJobInfo> {
|
|
95
|
+
/**
|
|
96
|
+
* @generated from field: bytes job = 1;
|
|
97
|
+
*/
|
|
98
|
+
job: Uint8Array;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: string accept_name = 2;
|
|
102
|
+
*/
|
|
103
|
+
acceptName: string;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* @generated from field: string accept_identity = 3;
|
|
107
|
+
*/
|
|
108
|
+
acceptIdentity: string;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: string accept_metadata = 4;
|
|
112
|
+
*/
|
|
113
|
+
acceptMetadata: string;
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* @generated from field: string url = 5;
|
|
117
|
+
*/
|
|
118
|
+
url: string;
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* @generated from field: string token = 6;
|
|
122
|
+
*/
|
|
123
|
+
token: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @generated from field: string worker_id = 7;
|
|
127
|
+
*/
|
|
128
|
+
workerId: string;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: bool mock_job = 8;
|
|
132
|
+
*/
|
|
133
|
+
mockJob: boolean;
|
|
134
|
+
|
|
135
|
+
constructor(data?: PartialMessage<RunningAgentJobInfo>);
|
|
136
|
+
|
|
137
|
+
static readonly runtime: typeof proto3;
|
|
138
|
+
static readonly typeName = "livekit.agent.RunningAgentJobInfo";
|
|
139
|
+
static readonly fields: FieldList;
|
|
140
|
+
|
|
141
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RunningAgentJobInfo;
|
|
142
|
+
|
|
143
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RunningAgentJobInfo;
|
|
144
|
+
|
|
145
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RunningAgentJobInfo;
|
|
146
|
+
|
|
147
|
+
static equals(a: RunningAgentJobInfo | PlainMessage<RunningAgentJobInfo> | undefined, b: RunningAgentJobInfo | PlainMessage<RunningAgentJobInfo> | undefined): boolean;
|
|
148
|
+
}
|
|
149
|
+
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=dts+js"
|
|
2
|
+
// @generated from file agent/livekit_agent_dev.proto (package livekit.agent, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* AgentDevMessage is used for IPC between the CLI and agent processes
|
|
10
|
+
* during dev-mode hot reload.
|
|
11
|
+
*
|
|
12
|
+
* @generated from message livekit.agent.AgentDevMessage
|
|
13
|
+
*/
|
|
14
|
+
export const AgentDevMessage = /*@__PURE__*/ proto3.makeMessageType(
|
|
15
|
+
"livekit.agent.AgentDevMessage",
|
|
16
|
+
() => [
|
|
17
|
+
{ no: 1, name: "get_running_jobs_request", kind: "message", T: GetRunningAgentJobsRequest, oneof: "message" },
|
|
18
|
+
{ no: 2, name: "get_running_jobs_response", kind: "message", T: GetRunningAgentJobsResponse, oneof: "message" },
|
|
19
|
+
],
|
|
20
|
+
);
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* @generated from message livekit.agent.GetRunningAgentJobsRequest
|
|
24
|
+
*/
|
|
25
|
+
export const GetRunningAgentJobsRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
26
|
+
"livekit.agent.GetRunningAgentJobsRequest",
|
|
27
|
+
[],
|
|
28
|
+
);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @generated from message livekit.agent.GetRunningAgentJobsResponse
|
|
32
|
+
*/
|
|
33
|
+
export const GetRunningAgentJobsResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
34
|
+
"livekit.agent.GetRunningAgentJobsResponse",
|
|
35
|
+
() => [
|
|
36
|
+
{ no: 1, name: "jobs", kind: "message", T: RunningAgentJobInfo, repeated: true },
|
|
37
|
+
],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from message livekit.agent.RunningAgentJobInfo
|
|
42
|
+
*/
|
|
43
|
+
export const RunningAgentJobInfo = /*@__PURE__*/ proto3.makeMessageType(
|
|
44
|
+
"livekit.agent.RunningAgentJobInfo",
|
|
45
|
+
() => [
|
|
46
|
+
{ no: 1, name: "job", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
47
|
+
{ no: 2, name: "accept_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
48
|
+
{ no: 3, name: "accept_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
49
|
+
{ no: 4, name: "accept_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
50
|
+
{ no: 5, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
51
|
+
{ no: 6, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
52
|
+
{ no: 7, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
53
|
+
{ no: 8, name: "mock_job", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
54
|
+
],
|
|
55
|
+
);
|
|
56
|
+
|