@livekit/protocol 1.19.1 → 1.19.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livekit/protocol",
3
- "version": "1.19.1",
3
+ "version": "1.19.3",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "scripts": {
32
32
  "generate:version": "genversion --esm --semi src/gen/version.js",
33
- "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../protobufs ../../protobufs/livekit_room.proto ../../protobufs/livekit_rtc.proto ../../protobufs/livekit_models.proto ../../protobufs/livekit_agent.proto ../../protobufs/livekit_webhook.proto ../../protobufs/livekit_egress.proto ../../protobufs/livekit_ingress.proto ../../protobufs/livekit_sip.proto",
33
+ "generate:proto": "protoc --es_out src/gen --es_opt target=js+dts -I=../../protobufs ../../protobufs/livekit_*.proto",
34
34
  "build": "pnpm generate:version && pnpm generate:proto"
35
35
  }
36
36
  }
@@ -0,0 +1,248 @@
1
+ // Copyright 2023 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
+ // @generated from file livekit_agent_dispatch.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
+ import { Message, proto3 } from "@bufbuild/protobuf";
22
+ import type { Job } from "./livekit_agent_pb.js";
23
+
24
+ /**
25
+ * @generated from message livekit.CreateAgentDispatchRequest
26
+ */
27
+ export declare class CreateAgentDispatchRequest extends Message<CreateAgentDispatchRequest> {
28
+ /**
29
+ * @generated from field: string agent_name = 1;
30
+ */
31
+ agentName: string;
32
+
33
+ /**
34
+ * @generated from field: string room = 2;
35
+ */
36
+ room: string;
37
+
38
+ /**
39
+ * @generated from field: string metadata = 3;
40
+ */
41
+ metadata: string;
42
+
43
+ constructor(data?: PartialMessage<CreateAgentDispatchRequest>);
44
+
45
+ static readonly runtime: typeof proto3;
46
+ static readonly typeName = "livekit.CreateAgentDispatchRequest";
47
+ static readonly fields: FieldList;
48
+
49
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAgentDispatchRequest;
50
+
51
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAgentDispatchRequest;
52
+
53
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAgentDispatchRequest;
54
+
55
+ static equals(a: CreateAgentDispatchRequest | PlainMessage<CreateAgentDispatchRequest> | undefined, b: CreateAgentDispatchRequest | PlainMessage<CreateAgentDispatchRequest> | undefined): boolean;
56
+ }
57
+
58
+ /**
59
+ * @generated from message livekit.RoomAgentDispatch
60
+ */
61
+ export declare class RoomAgentDispatch extends Message<RoomAgentDispatch> {
62
+ /**
63
+ * @generated from field: string agent_name = 1;
64
+ */
65
+ agentName: string;
66
+
67
+ /**
68
+ * @generated from field: string metadata = 2;
69
+ */
70
+ metadata: string;
71
+
72
+ constructor(data?: PartialMessage<RoomAgentDispatch>);
73
+
74
+ static readonly runtime: typeof proto3;
75
+ static readonly typeName = "livekit.RoomAgentDispatch";
76
+ static readonly fields: FieldList;
77
+
78
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomAgentDispatch;
79
+
80
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomAgentDispatch;
81
+
82
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomAgentDispatch;
83
+
84
+ static equals(a: RoomAgentDispatch | PlainMessage<RoomAgentDispatch> | undefined, b: RoomAgentDispatch | PlainMessage<RoomAgentDispatch> | undefined): boolean;
85
+ }
86
+
87
+ /**
88
+ * @generated from message livekit.DeleteAgentDispatchRequest
89
+ */
90
+ export declare class DeleteAgentDispatchRequest extends Message<DeleteAgentDispatchRequest> {
91
+ /**
92
+ * @generated from field: string dispatch_id = 1;
93
+ */
94
+ dispatchId: string;
95
+
96
+ constructor(data?: PartialMessage<DeleteAgentDispatchRequest>);
97
+
98
+ static readonly runtime: typeof proto3;
99
+ static readonly typeName = "livekit.DeleteAgentDispatchRequest";
100
+ static readonly fields: FieldList;
101
+
102
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAgentDispatchRequest;
103
+
104
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
105
+
106
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAgentDispatchRequest;
107
+
108
+ static equals(a: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined, b: DeleteAgentDispatchRequest | PlainMessage<DeleteAgentDispatchRequest> | undefined): boolean;
109
+ }
110
+
111
+ /**
112
+ * @generated from message livekit.ListAgentDispatchRequesst
113
+ */
114
+ export declare class ListAgentDispatchRequesst extends Message<ListAgentDispatchRequesst> {
115
+ /**
116
+ * if set, only the dispatch whose id is given will be returned
117
+ *
118
+ * @generated from field: string dispatch_id = 1;
119
+ */
120
+ dispatchId: string;
121
+
122
+ /**
123
+ * name of the room to list agents for. Must be set.
124
+ *
125
+ * @generated from field: string room = 2;
126
+ */
127
+ room: string;
128
+
129
+ constructor(data?: PartialMessage<ListAgentDispatchRequesst>);
130
+
131
+ static readonly runtime: typeof proto3;
132
+ static readonly typeName = "livekit.ListAgentDispatchRequesst";
133
+ static readonly fields: FieldList;
134
+
135
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchRequesst;
136
+
137
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchRequesst;
138
+
139
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchRequesst;
140
+
141
+ static equals(a: ListAgentDispatchRequesst | PlainMessage<ListAgentDispatchRequesst> | undefined, b: ListAgentDispatchRequesst | PlainMessage<ListAgentDispatchRequesst> | undefined): boolean;
142
+ }
143
+
144
+ /**
145
+ * @generated from message livekit.ListAgentDispatchResponse
146
+ */
147
+ export declare class ListAgentDispatchResponse extends Message<ListAgentDispatchResponse> {
148
+ /**
149
+ * @generated from field: repeated livekit.AgentDispatch agent_dispatches = 1;
150
+ */
151
+ agentDispatches: AgentDispatch[];
152
+
153
+ constructor(data?: PartialMessage<ListAgentDispatchResponse>);
154
+
155
+ static readonly runtime: typeof proto3;
156
+ static readonly typeName = "livekit.ListAgentDispatchResponse";
157
+ static readonly fields: FieldList;
158
+
159
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchResponse;
160
+
161
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
162
+
163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchResponse;
164
+
165
+ static equals(a: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined, b: ListAgentDispatchResponse | PlainMessage<ListAgentDispatchResponse> | undefined): boolean;
166
+ }
167
+
168
+ /**
169
+ * @generated from message livekit.AgentDispatch
170
+ */
171
+ export declare class AgentDispatch extends Message<AgentDispatch> {
172
+ /**
173
+ * @generated from field: string id = 1;
174
+ */
175
+ id: string;
176
+
177
+ /**
178
+ * @generated from field: string agent_name = 2;
179
+ */
180
+ agentName: string;
181
+
182
+ /**
183
+ * @generated from field: string room = 3;
184
+ */
185
+ room: string;
186
+
187
+ /**
188
+ * @generated from field: string metadata = 4;
189
+ */
190
+ metadata: string;
191
+
192
+ /**
193
+ * @generated from field: livekit.AgentDispatchState state = 5;
194
+ */
195
+ state?: AgentDispatchState;
196
+
197
+ constructor(data?: PartialMessage<AgentDispatch>);
198
+
199
+ static readonly runtime: typeof proto3;
200
+ static readonly typeName = "livekit.AgentDispatch";
201
+ static readonly fields: FieldList;
202
+
203
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatch;
204
+
205
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatch;
206
+
207
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatch;
208
+
209
+ static equals(a: AgentDispatch | PlainMessage<AgentDispatch> | undefined, b: AgentDispatch | PlainMessage<AgentDispatch> | undefined): boolean;
210
+ }
211
+
212
+ /**
213
+ * @generated from message livekit.AgentDispatchState
214
+ */
215
+ export declare class AgentDispatchState extends Message<AgentDispatchState> {
216
+ /**
217
+ * For dispatches of tyoe JT_ROOM, there will be at most 1 job.
218
+ * For dispatches of type JT_PUBLISHER, there will be 1 per publisher.
219
+ *
220
+ * @generated from field: repeated livekit.Job jobs = 1;
221
+ */
222
+ jobs: Job[];
223
+
224
+ /**
225
+ * @generated from field: int64 created_at = 2;
226
+ */
227
+ createdAt: bigint;
228
+
229
+ /**
230
+ * @generated from field: int64 deleted_at = 3;
231
+ */
232
+ deletedAt: bigint;
233
+
234
+ constructor(data?: PartialMessage<AgentDispatchState>);
235
+
236
+ static readonly runtime: typeof proto3;
237
+ static readonly typeName = "livekit.AgentDispatchState";
238
+ static readonly fields: FieldList;
239
+
240
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AgentDispatchState;
241
+
242
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AgentDispatchState;
243
+
244
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AgentDispatchState;
245
+
246
+ static equals(a: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined, b: AgentDispatchState | PlainMessage<AgentDispatchState> | undefined): boolean;
247
+ }
248
+
@@ -0,0 +1,102 @@
1
+ // Copyright 2023 LiveKit, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=js+dts"
16
+ // @generated from file livekit_agent_dispatch.proto (package livekit, syntax proto3)
17
+ /* eslint-disable */
18
+ // @ts-nocheck
19
+
20
+ import { proto3 } from "@bufbuild/protobuf";
21
+ import { Job } from "./livekit_agent_pb.js";
22
+
23
+ /**
24
+ * @generated from message livekit.CreateAgentDispatchRequest
25
+ */
26
+ export const CreateAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
27
+ "livekit.CreateAgentDispatchRequest",
28
+ () => [
29
+ { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
30
+ { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
31
+ { no: 3, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
32
+ ],
33
+ );
34
+
35
+ /**
36
+ * @generated from message livekit.RoomAgentDispatch
37
+ */
38
+ export const RoomAgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
39
+ "livekit.RoomAgentDispatch",
40
+ () => [
41
+ { no: 1, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
42
+ { no: 2, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
43
+ ],
44
+ );
45
+
46
+ /**
47
+ * @generated from message livekit.DeleteAgentDispatchRequest
48
+ */
49
+ export const DeleteAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
50
+ "livekit.DeleteAgentDispatchRequest",
51
+ () => [
52
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
53
+ ],
54
+ );
55
+
56
+ /**
57
+ * @generated from message livekit.ListAgentDispatchRequesst
58
+ */
59
+ export const ListAgentDispatchRequesst = /*@__PURE__*/ proto3.makeMessageType(
60
+ "livekit.ListAgentDispatchRequesst",
61
+ () => [
62
+ { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
63
+ { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
64
+ ],
65
+ );
66
+
67
+ /**
68
+ * @generated from message livekit.ListAgentDispatchResponse
69
+ */
70
+ export const ListAgentDispatchResponse = /*@__PURE__*/ proto3.makeMessageType(
71
+ "livekit.ListAgentDispatchResponse",
72
+ () => [
73
+ { no: 1, name: "agent_dispatches", kind: "message", T: AgentDispatch, repeated: true },
74
+ ],
75
+ );
76
+
77
+ /**
78
+ * @generated from message livekit.AgentDispatch
79
+ */
80
+ export const AgentDispatch = /*@__PURE__*/ proto3.makeMessageType(
81
+ "livekit.AgentDispatch",
82
+ () => [
83
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
84
+ { no: 2, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
85
+ { no: 3, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
86
+ { no: 4, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
+ { no: 5, name: "state", kind: "message", T: AgentDispatchState },
88
+ ],
89
+ );
90
+
91
+ /**
92
+ * @generated from message livekit.AgentDispatchState
93
+ */
94
+ export const AgentDispatchState = /*@__PURE__*/ proto3.makeMessageType(
95
+ "livekit.AgentDispatchState",
96
+ () => [
97
+ { no: 1, name: "jobs", kind: "message", T: Job, repeated: true },
98
+ { no: 2, name: "created_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
99
+ { no: 3, name: "deleted_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
100
+ ],
101
+ );
102
+
@@ -77,229 +77,18 @@ export declare enum JobStatus {
77
77
  }
78
78
 
79
79
  /**
80
- * @generated from message livekit.CreateAgentJobDefinitionRequest
81
- */
82
- export declare class CreateAgentJobDefinitionRequest extends Message<CreateAgentJobDefinitionRequest> {
83
- /**
84
- * @generated from field: livekit.JobType type = 1;
85
- */
86
- type: JobType;
87
-
88
- /**
89
- * @generated from field: string room = 2;
90
- */
91
- room: string;
92
-
93
- /**
94
- * @generated from field: repeated string participant_identity = 3;
95
- */
96
- participantIdentity: string[];
97
-
98
- /**
99
- * @generated from field: string namespace = 4;
100
- */
101
- namespace: string;
102
-
103
- /**
104
- * @generated from field: string metadata = 5;
105
- */
106
- metadata: string;
107
-
108
- constructor(data?: PartialMessage<CreateAgentJobDefinitionRequest>);
109
-
110
- static readonly runtime: typeof proto3;
111
- static readonly typeName = "livekit.CreateAgentJobDefinitionRequest";
112
- static readonly fields: FieldList;
113
-
114
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAgentJobDefinitionRequest;
115
-
116
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAgentJobDefinitionRequest;
117
-
118
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAgentJobDefinitionRequest;
119
-
120
- static equals(a: CreateAgentJobDefinitionRequest | PlainMessage<CreateAgentJobDefinitionRequest> | undefined, b: CreateAgentJobDefinitionRequest | PlainMessage<CreateAgentJobDefinitionRequest> | undefined): boolean;
121
- }
122
-
123
- /**
124
- * @generated from message livekit.DeleteAgentJobDefinitionRequest
125
- */
126
- export declare class DeleteAgentJobDefinitionRequest extends Message<DeleteAgentJobDefinitionRequest> {
127
- /**
128
- * @generated from field: string job_definition_id = 1;
129
- */
130
- jobDefinitionId: string;
131
-
132
- constructor(data?: PartialMessage<DeleteAgentJobDefinitionRequest>);
133
-
134
- static readonly runtime: typeof proto3;
135
- static readonly typeName = "livekit.DeleteAgentJobDefinitionRequest";
136
- static readonly fields: FieldList;
137
-
138
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeleteAgentJobDefinitionRequest;
139
-
140
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DeleteAgentJobDefinitionRequest;
141
-
142
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DeleteAgentJobDefinitionRequest;
143
-
144
- static equals(a: DeleteAgentJobDefinitionRequest | PlainMessage<DeleteAgentJobDefinitionRequest> | undefined, b: DeleteAgentJobDefinitionRequest | PlainMessage<DeleteAgentJobDefinitionRequest> | undefined): boolean;
145
- }
146
-
147
- /**
148
- * @generated from message livekit.ListAgentJobDefinitionsRequesst
149
- */
150
- export declare class ListAgentJobDefinitionsRequesst extends Message<ListAgentJobDefinitionsRequesst> {
151
- /**
152
- * if set, only the job definition whose id is given will be returned
153
- *
154
- * @generated from field: string job_definition_id = 1;
155
- */
156
- jobDefinitionId: string;
157
-
158
- /**
159
- * name of the room to list agents for. Must be set.
160
- *
161
- * @generated from field: string room = 2;
162
- */
163
- room: string;
164
-
165
- constructor(data?: PartialMessage<ListAgentJobDefinitionsRequesst>);
166
-
167
- static readonly runtime: typeof proto3;
168
- static readonly typeName = "livekit.ListAgentJobDefinitionsRequesst";
169
- static readonly fields: FieldList;
170
-
171
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentJobDefinitionsRequesst;
172
-
173
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
174
-
175
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsRequesst;
176
-
177
- static equals(a: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined, b: ListAgentJobDefinitionsRequesst | PlainMessage<ListAgentJobDefinitionsRequesst> | undefined): boolean;
178
- }
179
-
180
- /**
181
- * @generated from message livekit.ListAgentJobDefinitionsResponse
182
- */
183
- export declare class ListAgentJobDefinitionsResponse extends Message<ListAgentJobDefinitionsResponse> {
184
- /**
185
- * @generated from field: repeated livekit.JobDefinition job_definitions = 1;
186
- */
187
- jobDefinitions: JobDefinition[];
188
-
189
- constructor(data?: PartialMessage<ListAgentJobDefinitionsResponse>);
190
-
191
- static readonly runtime: typeof proto3;
192
- static readonly typeName = "livekit.ListAgentJobDefinitionsResponse";
193
- static readonly fields: FieldList;
194
-
195
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentJobDefinitionsResponse;
196
-
197
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsResponse;
198
-
199
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentJobDefinitionsResponse;
200
-
201
- static equals(a: ListAgentJobDefinitionsResponse | PlainMessage<ListAgentJobDefinitionsResponse> | undefined, b: ListAgentJobDefinitionsResponse | PlainMessage<ListAgentJobDefinitionsResponse> | undefined): boolean;
202
- }
203
-
204
- /**
205
- * @generated from message livekit.JobDefinition
80
+ * @generated from message livekit.Job
206
81
  */
207
- export declare class JobDefinition extends Message<JobDefinition> {
82
+ export declare class Job extends Message<Job> {
208
83
  /**
209
84
  * @generated from field: string id = 1;
210
85
  */
211
86
  id: string;
212
87
 
213
88
  /**
214
- * @generated from field: livekit.JobType type = 2;
215
- */
216
- type: JobType;
217
-
218
- /**
219
- * @generated from field: string room = 3;
220
- */
221
- room: string;
222
-
223
- /**
224
- * @generated from field: repeated string participant_identity = 4;
225
- */
226
- participantIdentity: string[];
227
-
228
- /**
229
- * @generated from field: string namespace = 5;
230
- */
231
- namespace: string;
232
-
233
- /**
234
- * @generated from field: string metadata = 6;
235
- */
236
- metadata: string;
237
-
238
- /**
239
- * @generated from field: livekit.JobDefinitionState state = 7;
240
- */
241
- state?: JobDefinitionState;
242
-
243
- constructor(data?: PartialMessage<JobDefinition>);
244
-
245
- static readonly runtime: typeof proto3;
246
- static readonly typeName = "livekit.JobDefinition";
247
- static readonly fields: FieldList;
248
-
249
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDefinition;
250
-
251
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDefinition;
252
-
253
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDefinition;
254
-
255
- static equals(a: JobDefinition | PlainMessage<JobDefinition> | undefined, b: JobDefinition | PlainMessage<JobDefinition> | undefined): boolean;
256
- }
257
-
258
- /**
259
- * @generated from message livekit.JobDefinitionState
260
- */
261
- export declare class JobDefinitionState extends Message<JobDefinitionState> {
262
- /**
263
- * For job definitions of tyoe JT_ROOM, there will be at most 1 job.
264
- * For job definitions of type JT_PUBLISHER, there will be 1 job per provided participant identity, or per publisher in the room if left empty.
265
- *
266
- * @generated from field: repeated livekit.Job jobs = 1;
89
+ * @generated from field: string dispatch_id = 9;
267
90
  */
268
- jobs: Job[];
269
-
270
- /**
271
- * @generated from field: int64 created_at = 2;
272
- */
273
- createdAt: bigint;
274
-
275
- /**
276
- * @generated from field: int64 deleted_at = 3;
277
- */
278
- deletedAt: bigint;
279
-
280
- constructor(data?: PartialMessage<JobDefinitionState>);
281
-
282
- static readonly runtime: typeof proto3;
283
- static readonly typeName = "livekit.JobDefinitionState";
284
- static readonly fields: FieldList;
285
-
286
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JobDefinitionState;
287
-
288
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JobDefinitionState;
289
-
290
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JobDefinitionState;
291
-
292
- static equals(a: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined, b: JobDefinitionState | PlainMessage<JobDefinitionState> | undefined): boolean;
293
- }
294
-
295
- /**
296
- * @generated from message livekit.Job
297
- */
298
- export declare class Job extends Message<Job> {
299
- /**
300
- * @generated from field: string id = 1;
301
- */
302
- id: string;
91
+ dispatchId: string;
303
92
 
304
93
  /**
305
94
  * @generated from field: livekit.JobType type = 2;
@@ -317,7 +106,8 @@ export declare class Job extends Message<Job> {
317
106
  participant?: ParticipantInfo;
318
107
 
319
108
  /**
320
- * @generated from field: string namespace = 5;
109
+ * @generated from field: string namespace = 5 [deprecated = true];
110
+ * @deprecated
321
111
  */
322
112
  namespace: string;
323
113
 
@@ -327,7 +117,12 @@ export declare class Job extends Message<Job> {
327
117
  metadata: string;
328
118
 
329
119
  /**
330
- * @generated from field: livekit.JobState state = 7;
120
+ * @generated from field: string agent_name = 7;
121
+ */
122
+ agentName: string;
123
+
124
+ /**
125
+ * @generated from field: livekit.JobState state = 8;
331
126
  */
332
127
  state?: JobState;
333
128
 
@@ -622,6 +417,11 @@ export declare class RegisterWorkerRequest extends Message<RegisterWorkerRequest
622
417
  */
623
418
  type: JobType;
624
419
 
420
+ /**
421
+ * @generated from field: string agent_name = 8;
422
+ */
423
+ agentName: string;
424
+
625
425
  /**
626
426
  * string worker_id = 2;
627
427
  *
@@ -630,11 +430,8 @@ export declare class RegisterWorkerRequest extends Message<RegisterWorkerRequest
630
430
  version: string;
631
431
 
632
432
  /**
633
- * @generated from field: string name = 4;
634
- */
635
- name: string;
636
-
637
- /**
433
+ * string name = 4 [deprecated = true];
434
+ *
638
435
  * @generated from field: uint32 ping_interval = 5;
639
436
  */
640
437
  pingInterval: number;
@@ -729,7 +526,7 @@ export declare class AvailabilityRequest extends Message<AvailabilityRequest> {
729
526
  job?: Job;
730
527
 
731
528
  /**
732
- * True when the job was previously assigned to another worker but has been
529
+ * True when the job was previously assigned to another worker but has been
733
530
  * migrated due to different reasons (e.g. worker failure, job migration)
734
531
  *
735
532
  * @generated from field: bool resuming = 2;
@@ -785,6 +582,11 @@ export declare class AvailabilityResponse extends Message<AvailabilityResponse>
785
582
  */
786
583
  participantMetadata: string;
787
584
 
585
+ /**
586
+ * @generated from field: map<string, string> participant_attributes = 7;
587
+ */
588
+ participantAttributes: { [key: string]: string };
589
+
788
590
  constructor(data?: PartialMessage<AvailabilityResponse>);
789
591
 
790
592
  static readonly runtime: typeof proto3;