@cc-livekit/protocol 1.39.4 → 1.42.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 +457 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +975 -41
- package/dist/index.d.mts +975 -41
- package/dist/index.d.ts +975 -41
- package/dist/index.mjs +440 -17
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/gen/livekit_agent_pb.d.ts +10 -0
- package/src/gen/livekit_agent_pb.js +2 -0
- package/src/gen/livekit_analytics_pb.d.ts +10 -0
- package/src/gen/livekit_analytics_pb.js +2 -0
- package/src/gen/livekit_cloud_agent_pb.d.ts +152 -0
- package/src/gen/livekit_cloud_agent_pb.js +54 -0
- package/src/gen/livekit_connector_twilio_pb.d.ts +139 -0
- package/src/gen/livekit_connector_twilio_pb.js +60 -0
- package/src/gen/livekit_connector_whatsapp_pb.d.ts +434 -0
- package/src/gen/livekit_connector_whatsapp_pb.js +144 -0
- package/src/gen/livekit_egress_pb.d.ts +19 -0
- package/src/gen/livekit_egress_pb.js +3 -0
- package/src/gen/livekit_internal_pb.d.ts +30 -2
- package/src/gen/livekit_internal_pb.js +6 -0
- package/src/gen/livekit_metrics_pb.d.ts +30 -1
- package/src/gen/livekit_metrics_pb.js +11 -0
- package/src/gen/livekit_models_pb.d.ts +305 -9
- package/src/gen/livekit_models_pb.js +85 -0
- package/src/gen/livekit_phone_number_pb.d.ts +634 -0
- package/src/gen/livekit_phone_number_pb.js +222 -0
- package/src/gen/livekit_room_pb.d.ts +75 -0
- package/src/gen/livekit_room_pb.js +25 -0
- package/src/gen/livekit_rtc_pb.d.ts +314 -7
- package/src/gen/livekit_rtc_pb.js +91 -1
- package/src/gen/livekit_sip_pb.d.ts +88 -3
- package/src/gen/livekit_sip_pb.js +29 -1
- package/src/gen/livekit_temptalk_pb.d.ts +5 -0
- package/src/gen/livekit_temptalk_pb.js +1 -0
- package/src/gen/livekit_token_source_pb.d.ts +115 -0
- package/src/gen/livekit_token_source_pb.js +48 -0
- package/src/gen/livekit_webhook_pb.d.ts +1 -1
- package/src/gen/version.js +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cc-livekit/protocol",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"require": "dist/index.cjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@bufbuild/protoc-gen-es": "^1.10.0",
|
|
35
35
|
"genversion": "^3.2.0",
|
|
36
|
-
"typescript": "5.
|
|
36
|
+
"typescript": "5.9.2",
|
|
37
37
|
"unbuild": "^2.0.0"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
@@ -131,6 +131,11 @@ export declare class Job extends Message<Job> {
|
|
|
131
131
|
*/
|
|
132
132
|
state?: JobState;
|
|
133
133
|
|
|
134
|
+
/**
|
|
135
|
+
* @generated from field: bool enable_recording = 10;
|
|
136
|
+
*/
|
|
137
|
+
enableRecording: boolean;
|
|
138
|
+
|
|
134
139
|
constructor(data?: PartialMessage<Job>);
|
|
135
140
|
|
|
136
141
|
static readonly runtime: typeof proto3;
|
|
@@ -185,6 +190,11 @@ export declare class JobState extends Message<JobState> {
|
|
|
185
190
|
*/
|
|
186
191
|
workerId: string;
|
|
187
192
|
|
|
193
|
+
/**
|
|
194
|
+
* @generated from field: string agent_id = 8;
|
|
195
|
+
*/
|
|
196
|
+
agentId: string;
|
|
197
|
+
|
|
188
198
|
constructor(data?: PartialMessage<JobState>);
|
|
189
199
|
|
|
190
200
|
static readonly runtime: typeof proto3;
|
|
@@ -71,6 +71,7 @@ export const Job = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
71
71
|
{ no: 6, name: "metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
72
72
|
{ no: 7, name: "agent_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
73
73
|
{ no: 8, name: "state", kind: "message", T: JobState },
|
|
74
|
+
{ no: 10, name: "enable_recording", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
74
75
|
],
|
|
75
76
|
);
|
|
76
77
|
|
|
@@ -87,6 +88,7 @@ export const JobState = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
87
88
|
{ no: 5, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
88
89
|
{ no: 6, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
89
90
|
{ no: 7, name: "worker_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
91
|
+
{ no: 8, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
90
92
|
],
|
|
91
93
|
);
|
|
92
94
|
|
|
@@ -64,6 +64,11 @@ export declare enum AnalyticsEventType {
|
|
|
64
64
|
*/
|
|
65
65
|
PARTICIPANT_LEFT = 3,
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: PARTICIPANT_CONNECTION_ABORTED = 45;
|
|
69
|
+
*/
|
|
70
|
+
PARTICIPANT_CONNECTION_ABORTED = 45,
|
|
71
|
+
|
|
67
72
|
/**
|
|
68
73
|
* @generated from enum value: TRACK_PUBLISHED = 4;
|
|
69
74
|
*/
|
|
@@ -244,6 +249,11 @@ export declare enum AnalyticsEventType {
|
|
|
244
249
|
*/
|
|
245
250
|
SIP_TRANSFER_COMPLETE = 44,
|
|
246
251
|
|
|
252
|
+
/**
|
|
253
|
+
* @generated from enum value: SIP_CALL_UPDATE = 46;
|
|
254
|
+
*/
|
|
255
|
+
SIP_CALL_UPDATE = 46,
|
|
256
|
+
|
|
247
257
|
/**
|
|
248
258
|
* @generated from enum value: REPORT = 40;
|
|
249
259
|
*/
|
|
@@ -45,6 +45,7 @@ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
|
|
|
45
45
|
{no: 1, name: "ROOM_ENDED"},
|
|
46
46
|
{no: 2, name: "PARTICIPANT_JOINED"},
|
|
47
47
|
{no: 3, name: "PARTICIPANT_LEFT"},
|
|
48
|
+
{no: 45, name: "PARTICIPANT_CONNECTION_ABORTED"},
|
|
48
49
|
{no: 4, name: "TRACK_PUBLISHED"},
|
|
49
50
|
{no: 20, name: "TRACK_PUBLISH_REQUESTED"},
|
|
50
51
|
{no: 5, name: "TRACK_UNPUBLISHED"},
|
|
@@ -81,6 +82,7 @@ export const AnalyticsEventType = /*@__PURE__*/ proto3.makeEnum(
|
|
|
81
82
|
{no: 39, name: "SIP_CALL_ENDED"},
|
|
82
83
|
{no: 43, name: "SIP_TRANSFER_REQUESTED"},
|
|
83
84
|
{no: 44, name: "SIP_TRANSFER_COMPLETE"},
|
|
85
|
+
{no: 46, name: "SIP_CALL_UPDATE"},
|
|
84
86
|
{no: 40, name: "REPORT"},
|
|
85
87
|
{no: 41, name: "API_CALL"},
|
|
86
88
|
{no: 42, name: "WEBHOOK"},
|
|
@@ -20,6 +20,26 @@
|
|
|
20
20
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage, Timestamp } from "@bufbuild/protobuf";
|
|
21
21
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum livekit.AgentSecretKind
|
|
25
|
+
*/
|
|
26
|
+
export declare enum AgentSecretKind {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: AGENT_SECRET_KIND_UNKNOWN = 0;
|
|
29
|
+
*/
|
|
30
|
+
UNKNOWN = 0,
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: AGENT_SECRET_KIND_ENVIRONMENT = 1;
|
|
34
|
+
*/
|
|
35
|
+
ENVIRONMENT = 1,
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: AGENT_SECRET_KIND_FILE = 2;
|
|
39
|
+
*/
|
|
40
|
+
FILE = 2,
|
|
41
|
+
}
|
|
42
|
+
|
|
23
43
|
/**
|
|
24
44
|
* @generated from message livekit.AgentSecret
|
|
25
45
|
*/
|
|
@@ -44,6 +64,11 @@ export declare class AgentSecret extends Message<AgentSecret> {
|
|
|
44
64
|
*/
|
|
45
65
|
updatedAt?: Timestamp;
|
|
46
66
|
|
|
67
|
+
/**
|
|
68
|
+
* @generated from field: livekit.AgentSecretKind kind = 5;
|
|
69
|
+
*/
|
|
70
|
+
kind: AgentSecretKind;
|
|
71
|
+
|
|
47
72
|
constructor(data?: PartialMessage<AgentSecret>);
|
|
48
73
|
|
|
49
74
|
static readonly runtime: typeof proto3;
|
|
@@ -141,6 +166,21 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
|
|
|
141
166
|
*/
|
|
142
167
|
presignedUrl: string;
|
|
143
168
|
|
|
169
|
+
/**
|
|
170
|
+
* @generated from field: string tag = 6;
|
|
171
|
+
*/
|
|
172
|
+
tag: string;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* @generated from field: repeated string server_regions = 7;
|
|
176
|
+
*/
|
|
177
|
+
serverRegions: string[];
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: livekit.PresignedPostRequest presigned_post_request = 8;
|
|
181
|
+
*/
|
|
182
|
+
presignedPostRequest?: PresignedPostRequest;
|
|
183
|
+
|
|
144
184
|
constructor(data?: PartialMessage<CreateAgentResponse>);
|
|
145
185
|
|
|
146
186
|
static readonly runtime: typeof proto3;
|
|
@@ -156,6 +196,35 @@ export declare class CreateAgentResponse extends Message<CreateAgentResponse> {
|
|
|
156
196
|
static equals(a: CreateAgentResponse | PlainMessage<CreateAgentResponse> | undefined, b: CreateAgentResponse | PlainMessage<CreateAgentResponse> | undefined): boolean;
|
|
157
197
|
}
|
|
158
198
|
|
|
199
|
+
/**
|
|
200
|
+
* @generated from message livekit.PresignedPostRequest
|
|
201
|
+
*/
|
|
202
|
+
export declare class PresignedPostRequest extends Message<PresignedPostRequest> {
|
|
203
|
+
/**
|
|
204
|
+
* @generated from field: string url = 1;
|
|
205
|
+
*/
|
|
206
|
+
url: string;
|
|
207
|
+
|
|
208
|
+
/**
|
|
209
|
+
* @generated from field: map<string, string> values = 2;
|
|
210
|
+
*/
|
|
211
|
+
values: { [key: string]: string };
|
|
212
|
+
|
|
213
|
+
constructor(data?: PartialMessage<PresignedPostRequest>);
|
|
214
|
+
|
|
215
|
+
static readonly runtime: typeof proto3;
|
|
216
|
+
static readonly typeName = "livekit.PresignedPostRequest";
|
|
217
|
+
static readonly fields: FieldList;
|
|
218
|
+
|
|
219
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PresignedPostRequest;
|
|
220
|
+
|
|
221
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PresignedPostRequest;
|
|
222
|
+
|
|
223
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PresignedPostRequest;
|
|
224
|
+
|
|
225
|
+
static equals(a: PresignedPostRequest | PlainMessage<PresignedPostRequest> | undefined, b: PresignedPostRequest | PlainMessage<PresignedPostRequest> | undefined): boolean;
|
|
226
|
+
}
|
|
227
|
+
|
|
159
228
|
/**
|
|
160
229
|
* @generated from message livekit.AgentDeployment
|
|
161
230
|
*/
|
|
@@ -220,6 +289,11 @@ export declare class AgentDeployment extends Message<AgentDeployment> {
|
|
|
220
289
|
*/
|
|
221
290
|
cpuLimit: string;
|
|
222
291
|
|
|
292
|
+
/**
|
|
293
|
+
* @generated from field: string server_region = 13;
|
|
294
|
+
*/
|
|
295
|
+
serverRegion: string;
|
|
296
|
+
|
|
223
297
|
constructor(data?: PartialMessage<AgentDeployment>);
|
|
224
298
|
|
|
225
299
|
static readonly runtime: typeof proto3;
|
|
@@ -356,6 +430,21 @@ export declare class AgentVersion extends Message<AgentVersion> {
|
|
|
356
430
|
*/
|
|
357
431
|
createdAt?: Timestamp;
|
|
358
432
|
|
|
433
|
+
/**
|
|
434
|
+
* @generated from field: google.protobuf.Timestamp deployed_at = 4;
|
|
435
|
+
*/
|
|
436
|
+
deployedAt?: Timestamp;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* @generated from field: map<string, string> attributes = 5;
|
|
440
|
+
*/
|
|
441
|
+
attributes: { [key: string]: string };
|
|
442
|
+
|
|
443
|
+
/**
|
|
444
|
+
* @generated from field: string status = 6;
|
|
445
|
+
*/
|
|
446
|
+
status: string;
|
|
447
|
+
|
|
359
448
|
constructor(data?: PartialMessage<AgentVersion>);
|
|
360
449
|
|
|
361
450
|
static readonly runtime: typeof proto3;
|
|
@@ -511,6 +600,59 @@ export declare class UpdateAgentResponse extends Message<UpdateAgentResponse> {
|
|
|
511
600
|
static equals(a: UpdateAgentResponse | PlainMessage<UpdateAgentResponse> | undefined, b: UpdateAgentResponse | PlainMessage<UpdateAgentResponse> | undefined): boolean;
|
|
512
601
|
}
|
|
513
602
|
|
|
603
|
+
/**
|
|
604
|
+
* @generated from message livekit.RestartAgentRequest
|
|
605
|
+
*/
|
|
606
|
+
export declare class RestartAgentRequest extends Message<RestartAgentRequest> {
|
|
607
|
+
/**
|
|
608
|
+
* @generated from field: string agent_id = 1;
|
|
609
|
+
*/
|
|
610
|
+
agentId: string;
|
|
611
|
+
|
|
612
|
+
constructor(data?: PartialMessage<RestartAgentRequest>);
|
|
613
|
+
|
|
614
|
+
static readonly runtime: typeof proto3;
|
|
615
|
+
static readonly typeName = "livekit.RestartAgentRequest";
|
|
616
|
+
static readonly fields: FieldList;
|
|
617
|
+
|
|
618
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RestartAgentRequest;
|
|
619
|
+
|
|
620
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RestartAgentRequest;
|
|
621
|
+
|
|
622
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RestartAgentRequest;
|
|
623
|
+
|
|
624
|
+
static equals(a: RestartAgentRequest | PlainMessage<RestartAgentRequest> | undefined, b: RestartAgentRequest | PlainMessage<RestartAgentRequest> | undefined): boolean;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* @generated from message livekit.RestartAgentResponse
|
|
629
|
+
*/
|
|
630
|
+
export declare class RestartAgentResponse extends Message<RestartAgentResponse> {
|
|
631
|
+
/**
|
|
632
|
+
* @generated from field: bool success = 1;
|
|
633
|
+
*/
|
|
634
|
+
success: boolean;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* @generated from field: string message = 2;
|
|
638
|
+
*/
|
|
639
|
+
message: string;
|
|
640
|
+
|
|
641
|
+
constructor(data?: PartialMessage<RestartAgentResponse>);
|
|
642
|
+
|
|
643
|
+
static readonly runtime: typeof proto3;
|
|
644
|
+
static readonly typeName = "livekit.RestartAgentResponse";
|
|
645
|
+
static readonly fields: FieldList;
|
|
646
|
+
|
|
647
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RestartAgentResponse;
|
|
648
|
+
|
|
649
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RestartAgentResponse;
|
|
650
|
+
|
|
651
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RestartAgentResponse;
|
|
652
|
+
|
|
653
|
+
static equals(a: RestartAgentResponse | PlainMessage<RestartAgentResponse> | undefined, b: RestartAgentResponse | PlainMessage<RestartAgentResponse> | undefined): boolean;
|
|
654
|
+
}
|
|
655
|
+
|
|
514
656
|
/**
|
|
515
657
|
* @generated from message livekit.DeployAgentRequest
|
|
516
658
|
*/
|
|
@@ -588,6 +730,16 @@ export declare class DeployAgentResponse extends Message<DeployAgentResponse> {
|
|
|
588
730
|
*/
|
|
589
731
|
presignedUrl: string;
|
|
590
732
|
|
|
733
|
+
/**
|
|
734
|
+
* @generated from field: string tag = 5;
|
|
735
|
+
*/
|
|
736
|
+
tag: string;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* @generated from field: livekit.PresignedPostRequest presigned_post_request = 6;
|
|
740
|
+
*/
|
|
741
|
+
presignedPostRequest?: PresignedPostRequest;
|
|
742
|
+
|
|
591
743
|
constructor(data?: PartialMessage<DeployAgentResponse>);
|
|
592
744
|
|
|
593
745
|
static readonly runtime: typeof proto3;
|
|
@@ -19,6 +19,18 @@
|
|
|
19
19
|
|
|
20
20
|
import { proto3, Timestamp } from "@bufbuild/protobuf";
|
|
21
21
|
|
|
22
|
+
/**
|
|
23
|
+
* @generated from enum livekit.AgentSecretKind
|
|
24
|
+
*/
|
|
25
|
+
export const AgentSecretKind = /*@__PURE__*/ proto3.makeEnum(
|
|
26
|
+
"livekit.AgentSecretKind",
|
|
27
|
+
[
|
|
28
|
+
{no: 0, name: "AGENT_SECRET_KIND_UNKNOWN", localName: "UNKNOWN"},
|
|
29
|
+
{no: 1, name: "AGENT_SECRET_KIND_ENVIRONMENT", localName: "ENVIRONMENT"},
|
|
30
|
+
{no: 2, name: "AGENT_SECRET_KIND_FILE", localName: "FILE"},
|
|
31
|
+
],
|
|
32
|
+
);
|
|
33
|
+
|
|
22
34
|
/**
|
|
23
35
|
* @generated from message livekit.AgentSecret
|
|
24
36
|
*/
|
|
@@ -29,6 +41,7 @@ export const AgentSecret = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
29
41
|
{ no: 2, name: "value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
30
42
|
{ no: 3, name: "created_at", kind: "message", T: Timestamp },
|
|
31
43
|
{ no: 4, name: "updated_at", kind: "message", T: Timestamp },
|
|
44
|
+
{ no: 5, name: "kind", kind: "enum", T: proto3.getEnumType(AgentSecretKind) },
|
|
32
45
|
],
|
|
33
46
|
);
|
|
34
47
|
|
|
@@ -58,6 +71,20 @@ export const CreateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
58
71
|
{ no: 3, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
59
72
|
{ no: 4, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
73
|
{ no: 5, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
74
|
+
{ no: 6, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
75
|
+
{ no: 7, name: "server_regions", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
76
|
+
{ no: 8, name: "presigned_post_request", kind: "message", T: PresignedPostRequest },
|
|
77
|
+
],
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @generated from message livekit.PresignedPostRequest
|
|
82
|
+
*/
|
|
83
|
+
export const PresignedPostRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
84
|
+
"livekit.PresignedPostRequest",
|
|
85
|
+
() => [
|
|
86
|
+
{ no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
87
|
+
{ no: 2, name: "values", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
61
88
|
],
|
|
62
89
|
);
|
|
63
90
|
|
|
@@ -79,6 +106,7 @@ export const AgentDeployment = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
79
106
|
{ no: 10, name: "mem_req", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
80
107
|
{ no: 11, name: "mem_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
81
108
|
{ no: 12, name: "cpu_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
109
|
+
{ no: 13, name: "server_region", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
82
110
|
],
|
|
83
111
|
);
|
|
84
112
|
|
|
@@ -127,6 +155,9 @@ export const AgentVersion = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
127
155
|
{ no: 1, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
156
|
{ no: 2, name: "current", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
129
157
|
{ no: 3, name: "created_at", kind: "message", T: Timestamp },
|
|
158
|
+
{ no: 4, name: "deployed_at", kind: "message", T: Timestamp },
|
|
159
|
+
{ no: 5, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
160
|
+
{ no: 6, name: "status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
130
161
|
],
|
|
131
162
|
);
|
|
132
163
|
|
|
@@ -178,6 +209,27 @@ export const UpdateAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
178
209
|
],
|
|
179
210
|
);
|
|
180
211
|
|
|
212
|
+
/**
|
|
213
|
+
* @generated from message livekit.RestartAgentRequest
|
|
214
|
+
*/
|
|
215
|
+
export const RestartAgentRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
216
|
+
"livekit.RestartAgentRequest",
|
|
217
|
+
() => [
|
|
218
|
+
{ no: 1, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
219
|
+
],
|
|
220
|
+
);
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* @generated from message livekit.RestartAgentResponse
|
|
224
|
+
*/
|
|
225
|
+
export const RestartAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
226
|
+
"livekit.RestartAgentResponse",
|
|
227
|
+
() => [
|
|
228
|
+
{ no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
229
|
+
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
230
|
+
],
|
|
231
|
+
);
|
|
232
|
+
|
|
181
233
|
/**
|
|
182
234
|
* @generated from message livekit.DeployAgentRequest
|
|
183
235
|
*/
|
|
@@ -203,6 +255,8 @@ export const DeployAgentResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
|
203
255
|
{ no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
204
256
|
{ no: 3, name: "agent_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
205
257
|
{ no: 4, name: "presigned_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
258
|
+
{ no: 5, name: "tag", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
259
|
+
{ no: 6, name: "presigned_post_request", kind: "message", T: PresignedPostRequest },
|
|
206
260
|
],
|
|
207
261
|
);
|
|
208
262
|
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
// Copyright 2025 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.1 with parameter "target=dts+js"
|
|
16
|
+
// @generated from file livekit_connector_twilio.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 { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* @generated from message livekit.ConnectTwilioCallRequest
|
|
26
|
+
*/
|
|
27
|
+
export declare class ConnectTwilioCallRequest extends Message<ConnectTwilioCallRequest> {
|
|
28
|
+
/**
|
|
29
|
+
* The Direction of the call
|
|
30
|
+
*
|
|
31
|
+
* @generated from field: livekit.ConnectTwilioCallRequest.TwilioCallDirection twilio_call_direction = 1;
|
|
32
|
+
*/
|
|
33
|
+
twilioCallDirection: ConnectTwilioCallRequest_TwilioCallDirection;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* What LiveKit room should this call be connected to
|
|
37
|
+
*
|
|
38
|
+
* @generated from field: string room_name = 2;
|
|
39
|
+
*/
|
|
40
|
+
roomName: string;
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Optional agents to dispatch the call to
|
|
44
|
+
*
|
|
45
|
+
* @generated from field: repeated livekit.RoomAgentDispatch agents = 3;
|
|
46
|
+
*/
|
|
47
|
+
agents: RoomAgentDispatch[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Optional identity of the participant in LiveKit room
|
|
51
|
+
*
|
|
52
|
+
* @generated from field: string participant_identity = 4;
|
|
53
|
+
*/
|
|
54
|
+
participantIdentity: string;
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Optional name of the participant in LiveKit room
|
|
58
|
+
*
|
|
59
|
+
* @generated from field: string participant_name = 5;
|
|
60
|
+
*/
|
|
61
|
+
participantName: string;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Optional user-defined metadata. Will be attached to a created Participant in the room.
|
|
65
|
+
*
|
|
66
|
+
* @generated from field: string participant_metadata = 6;
|
|
67
|
+
*/
|
|
68
|
+
participantMetadata: string;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Optional user-defined attributes. Will be attached to a created Participant in the room.
|
|
72
|
+
*
|
|
73
|
+
* @generated from field: map<string, string> participant_attributes = 7;
|
|
74
|
+
*/
|
|
75
|
+
participantAttributes: { [key: string]: string };
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Country where the call terminates as ISO 3166-1 alpha-2 (https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). This will be used by the livekit infrastructure to route calls.
|
|
79
|
+
*
|
|
80
|
+
* @generated from field: string destination_country = 8;
|
|
81
|
+
*/
|
|
82
|
+
destinationCountry: string;
|
|
83
|
+
|
|
84
|
+
constructor(data?: PartialMessage<ConnectTwilioCallRequest>);
|
|
85
|
+
|
|
86
|
+
static readonly runtime: typeof proto3;
|
|
87
|
+
static readonly typeName = "livekit.ConnectTwilioCallRequest";
|
|
88
|
+
static readonly fields: FieldList;
|
|
89
|
+
|
|
90
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectTwilioCallRequest;
|
|
91
|
+
|
|
92
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectTwilioCallRequest;
|
|
93
|
+
|
|
94
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectTwilioCallRequest;
|
|
95
|
+
|
|
96
|
+
static equals(a: ConnectTwilioCallRequest | PlainMessage<ConnectTwilioCallRequest> | undefined, b: ConnectTwilioCallRequest | PlainMessage<ConnectTwilioCallRequest> | undefined): boolean;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @generated from enum livekit.ConnectTwilioCallRequest.TwilioCallDirection
|
|
101
|
+
*/
|
|
102
|
+
export declare enum ConnectTwilioCallRequest_TwilioCallDirection {
|
|
103
|
+
/**
|
|
104
|
+
* @generated from enum value: TWILIO_CALL_DIRECTION_INBOUND = 0;
|
|
105
|
+
*/
|
|
106
|
+
INBOUND = 0,
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* @generated from enum value: TWILIO_CALL_DIRECTION_OUTBOUND = 1;
|
|
110
|
+
*/
|
|
111
|
+
OUTBOUND = 1,
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* @generated from message livekit.ConnectTwilioCallResponse
|
|
116
|
+
*/
|
|
117
|
+
export declare class ConnectTwilioCallResponse extends Message<ConnectTwilioCallResponse> {
|
|
118
|
+
/**
|
|
119
|
+
* The websocket URL which twilio media stream will connect to
|
|
120
|
+
*
|
|
121
|
+
* @generated from field: string connect_url = 1;
|
|
122
|
+
*/
|
|
123
|
+
connectUrl: string;
|
|
124
|
+
|
|
125
|
+
constructor(data?: PartialMessage<ConnectTwilioCallResponse>);
|
|
126
|
+
|
|
127
|
+
static readonly runtime: typeof proto3;
|
|
128
|
+
static readonly typeName = "livekit.ConnectTwilioCallResponse";
|
|
129
|
+
static readonly fields: FieldList;
|
|
130
|
+
|
|
131
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectTwilioCallResponse;
|
|
132
|
+
|
|
133
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectTwilioCallResponse;
|
|
134
|
+
|
|
135
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectTwilioCallResponse;
|
|
136
|
+
|
|
137
|
+
static equals(a: ConnectTwilioCallResponse | PlainMessage<ConnectTwilioCallResponse> | undefined, b: ConnectTwilioCallResponse | PlainMessage<ConnectTwilioCallResponse> | undefined): boolean;
|
|
138
|
+
}
|
|
139
|
+
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// Copyright 2025 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.1 with parameter "target=dts+js"
|
|
16
|
+
// @generated from file livekit_connector_twilio.proto (package livekit, syntax proto3)
|
|
17
|
+
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
19
|
+
|
|
20
|
+
import { proto3 } from "@bufbuild/protobuf";
|
|
21
|
+
import { RoomAgentDispatch } from "./livekit_agent_dispatch_pb.js";
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @generated from message livekit.ConnectTwilioCallRequest
|
|
25
|
+
*/
|
|
26
|
+
export const ConnectTwilioCallRequest = /*@__PURE__*/ proto3.makeMessageType(
|
|
27
|
+
"livekit.ConnectTwilioCallRequest",
|
|
28
|
+
() => [
|
|
29
|
+
{ no: 1, name: "twilio_call_direction", kind: "enum", T: proto3.getEnumType(ConnectTwilioCallRequest_TwilioCallDirection) },
|
|
30
|
+
{ no: 2, name: "room_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
31
|
+
{ no: 3, name: "agents", kind: "message", T: RoomAgentDispatch, repeated: true },
|
|
32
|
+
{ no: 4, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
33
|
+
{ no: 5, name: "participant_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
34
|
+
{ no: 6, name: "participant_metadata", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
35
|
+
{ no: 7, name: "participant_attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
36
|
+
{ no: 8, name: "destination_country", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
37
|
+
],
|
|
38
|
+
);
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum livekit.ConnectTwilioCallRequest.TwilioCallDirection
|
|
42
|
+
*/
|
|
43
|
+
export const ConnectTwilioCallRequest_TwilioCallDirection = /*@__PURE__*/ proto3.makeEnum(
|
|
44
|
+
"livekit.ConnectTwilioCallRequest.TwilioCallDirection",
|
|
45
|
+
[
|
|
46
|
+
{no: 0, name: "TWILIO_CALL_DIRECTION_INBOUND", localName: "INBOUND"},
|
|
47
|
+
{no: 1, name: "TWILIO_CALL_DIRECTION_OUTBOUND", localName: "OUTBOUND"},
|
|
48
|
+
],
|
|
49
|
+
);
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* @generated from message livekit.ConnectTwilioCallResponse
|
|
53
|
+
*/
|
|
54
|
+
export const ConnectTwilioCallResponse = /*@__PURE__*/ proto3.makeMessageType(
|
|
55
|
+
"livekit.ConnectTwilioCallResponse",
|
|
56
|
+
() => [
|
|
57
|
+
{ no: 1, name: "connect_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
58
|
+
],
|
|
59
|
+
);
|
|
60
|
+
|