@livekit/protocol 1.19.3 → 1.20.0

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.3",
3
+ "version": "1.20.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -93,6 +93,11 @@ export declare class DeleteAgentDispatchRequest extends Message<DeleteAgentDispa
93
93
  */
94
94
  dispatchId: string;
95
95
 
96
+ /**
97
+ * @generated from field: string room = 2;
98
+ */
99
+ room: string;
100
+
96
101
  constructor(data?: PartialMessage<DeleteAgentDispatchRequest>);
97
102
 
98
103
  static readonly runtime: typeof proto3;
@@ -109,9 +114,9 @@ export declare class DeleteAgentDispatchRequest extends Message<DeleteAgentDispa
109
114
  }
110
115
 
111
116
  /**
112
- * @generated from message livekit.ListAgentDispatchRequesst
117
+ * @generated from message livekit.ListAgentDispatchRequest
113
118
  */
114
- export declare class ListAgentDispatchRequesst extends Message<ListAgentDispatchRequesst> {
119
+ export declare class ListAgentDispatchRequest extends Message<ListAgentDispatchRequest> {
115
120
  /**
116
121
  * if set, only the dispatch whose id is given will be returned
117
122
  *
@@ -126,19 +131,19 @@ export declare class ListAgentDispatchRequesst extends Message<ListAgentDispatch
126
131
  */
127
132
  room: string;
128
133
 
129
- constructor(data?: PartialMessage<ListAgentDispatchRequesst>);
134
+ constructor(data?: PartialMessage<ListAgentDispatchRequest>);
130
135
 
131
136
  static readonly runtime: typeof proto3;
132
- static readonly typeName = "livekit.ListAgentDispatchRequesst";
137
+ static readonly typeName = "livekit.ListAgentDispatchRequest";
133
138
  static readonly fields: FieldList;
134
139
 
135
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchRequesst;
140
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListAgentDispatchRequest;
136
141
 
137
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchRequesst;
142
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListAgentDispatchRequest;
138
143
 
139
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchRequesst;
144
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListAgentDispatchRequest;
140
145
 
141
- static equals(a: ListAgentDispatchRequesst | PlainMessage<ListAgentDispatchRequesst> | undefined, b: ListAgentDispatchRequesst | PlainMessage<ListAgentDispatchRequesst> | undefined): boolean;
146
+ static equals(a: ListAgentDispatchRequest | PlainMessage<ListAgentDispatchRequest> | undefined, b: ListAgentDispatchRequest | PlainMessage<ListAgentDispatchRequest> | undefined): boolean;
142
147
  }
143
148
 
144
149
  /**
@@ -50,14 +50,15 @@ export const DeleteAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
50
50
  "livekit.DeleteAgentDispatchRequest",
51
51
  () => [
52
52
  { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
53
+ { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
53
54
  ],
54
55
  );
55
56
 
56
57
  /**
57
- * @generated from message livekit.ListAgentDispatchRequesst
58
+ * @generated from message livekit.ListAgentDispatchRequest
58
59
  */
59
- export const ListAgentDispatchRequesst = /*@__PURE__*/ proto3.makeMessageType(
60
- "livekit.ListAgentDispatchRequesst",
60
+ export const ListAgentDispatchRequest = /*@__PURE__*/ proto3.makeMessageType(
61
+ "livekit.ListAgentDispatchRequest",
61
62
  () => [
62
63
  { no: 1, name: "dispatch_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
63
64
  { no: 2, name: "room", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -170,6 +170,11 @@ export declare class JobState extends Message<JobState> {
170
170
  */
171
171
  updatedAt: bigint;
172
172
 
173
+ /**
174
+ * @generated from field: string participant_identity = 6;
175
+ */
176
+ participantIdentity: string;
177
+
173
178
  constructor(data?: PartialMessage<JobState>);
174
179
 
175
180
  static readonly runtime: typeof proto3;
@@ -84,6 +84,7 @@ export const JobState = /*@__PURE__*/ proto3.makeMessageType(
84
84
  { no: 3, name: "started_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
85
85
  { no: 4, name: "ended_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
86
86
  { no: 5, name: "updated_at", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
87
+ { no: 6, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
87
88
  ],
88
89
  );
89
90
 
@@ -670,6 +670,11 @@ export declare class ParticipantInfo extends Message<ParticipantInfo> {
670
670
  */
671
671
  attributes: { [key: string]: string };
672
672
 
673
+ /**
674
+ * @generated from field: livekit.DisconnectReason disconnect_reason = 16;
675
+ */
676
+ disconnectReason: DisconnectReason;
677
+
673
678
  constructor(data?: PartialMessage<ParticipantInfo>);
674
679
 
675
680
  static readonly runtime: typeof proto3;
@@ -2004,6 +2009,169 @@ export declare class RTPStats extends Message<RTPStats> {
2004
2009
  static equals(a: RTPStats | PlainMessage<RTPStats> | undefined, b: RTPStats | PlainMessage<RTPStats> | undefined): boolean;
2005
2010
  }
2006
2011
 
2012
+ /**
2013
+ * @generated from message livekit.RTPForwarderState
2014
+ */
2015
+ export declare class RTPForwarderState extends Message<RTPForwarderState> {
2016
+ /**
2017
+ * @generated from field: bool started = 1;
2018
+ */
2019
+ started: boolean;
2020
+
2021
+ /**
2022
+ * @generated from field: int32 reference_layer_spatial = 2;
2023
+ */
2024
+ referenceLayerSpatial: number;
2025
+
2026
+ /**
2027
+ * @generated from field: int64 pre_start_time = 3;
2028
+ */
2029
+ preStartTime: bigint;
2030
+
2031
+ /**
2032
+ * @generated from field: uint64 ext_first_timestamp = 4;
2033
+ */
2034
+ extFirstTimestamp: bigint;
2035
+
2036
+ /**
2037
+ * @generated from field: uint64 dummy_start_timestamp_offset = 5;
2038
+ */
2039
+ dummyStartTimestampOffset: bigint;
2040
+
2041
+ /**
2042
+ * @generated from field: livekit.RTPMungerState rtp_munger = 6;
2043
+ */
2044
+ rtpMunger?: RTPMungerState;
2045
+
2046
+ /**
2047
+ * @generated from oneof livekit.RTPForwarderState.codec_munger
2048
+ */
2049
+ codecMunger: {
2050
+ /**
2051
+ * @generated from field: livekit.VP8MungerState vp8_munger = 7;
2052
+ */
2053
+ value: VP8MungerState;
2054
+ case: "vp8Munger";
2055
+ } | { case: undefined; value?: undefined };
2056
+
2057
+ constructor(data?: PartialMessage<RTPForwarderState>);
2058
+
2059
+ static readonly runtime: typeof proto3;
2060
+ static readonly typeName = "livekit.RTPForwarderState";
2061
+ static readonly fields: FieldList;
2062
+
2063
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPForwarderState;
2064
+
2065
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPForwarderState;
2066
+
2067
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPForwarderState;
2068
+
2069
+ static equals(a: RTPForwarderState | PlainMessage<RTPForwarderState> | undefined, b: RTPForwarderState | PlainMessage<RTPForwarderState> | undefined): boolean;
2070
+ }
2071
+
2072
+ /**
2073
+ * @generated from message livekit.RTPMungerState
2074
+ */
2075
+ export declare class RTPMungerState extends Message<RTPMungerState> {
2076
+ /**
2077
+ * @generated from field: uint64 ext_last_sequence_number = 1;
2078
+ */
2079
+ extLastSequenceNumber: bigint;
2080
+
2081
+ /**
2082
+ * @generated from field: uint64 ext_second_last_sequence_number = 2;
2083
+ */
2084
+ extSecondLastSequenceNumber: bigint;
2085
+
2086
+ /**
2087
+ * @generated from field: uint64 ext_last_timestamp = 3;
2088
+ */
2089
+ extLastTimestamp: bigint;
2090
+
2091
+ /**
2092
+ * @generated from field: uint64 ext_second_last_timestamp = 4;
2093
+ */
2094
+ extSecondLastTimestamp: bigint;
2095
+
2096
+ /**
2097
+ * @generated from field: bool last_marker = 5;
2098
+ */
2099
+ lastMarker: boolean;
2100
+
2101
+ /**
2102
+ * @generated from field: bool second_last_marker = 6;
2103
+ */
2104
+ secondLastMarker: boolean;
2105
+
2106
+ constructor(data?: PartialMessage<RTPMungerState>);
2107
+
2108
+ static readonly runtime: typeof proto3;
2109
+ static readonly typeName = "livekit.RTPMungerState";
2110
+ static readonly fields: FieldList;
2111
+
2112
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RTPMungerState;
2113
+
2114
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RTPMungerState;
2115
+
2116
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RTPMungerState;
2117
+
2118
+ static equals(a: RTPMungerState | PlainMessage<RTPMungerState> | undefined, b: RTPMungerState | PlainMessage<RTPMungerState> | undefined): boolean;
2119
+ }
2120
+
2121
+ /**
2122
+ * @generated from message livekit.VP8MungerState
2123
+ */
2124
+ export declare class VP8MungerState extends Message<VP8MungerState> {
2125
+ /**
2126
+ * @generated from field: int32 ext_last_picture_id = 1;
2127
+ */
2128
+ extLastPictureId: number;
2129
+
2130
+ /**
2131
+ * @generated from field: bool picture_id_used = 2;
2132
+ */
2133
+ pictureIdUsed: boolean;
2134
+
2135
+ /**
2136
+ * @generated from field: uint32 last_tl0_pic_idx = 3;
2137
+ */
2138
+ lastTl0PicIdx: number;
2139
+
2140
+ /**
2141
+ * @generated from field: bool tl0_pic_idx_used = 4;
2142
+ */
2143
+ tl0PicIdxUsed: boolean;
2144
+
2145
+ /**
2146
+ * @generated from field: bool tid_used = 5;
2147
+ */
2148
+ tidUsed: boolean;
2149
+
2150
+ /**
2151
+ * @generated from field: uint32 last_key_idx = 6;
2152
+ */
2153
+ lastKeyIdx: number;
2154
+
2155
+ /**
2156
+ * @generated from field: bool key_idx_used = 7;
2157
+ */
2158
+ keyIdxUsed: boolean;
2159
+
2160
+ constructor(data?: PartialMessage<VP8MungerState>);
2161
+
2162
+ static readonly runtime: typeof proto3;
2163
+ static readonly typeName = "livekit.VP8MungerState";
2164
+ static readonly fields: FieldList;
2165
+
2166
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VP8MungerState;
2167
+
2168
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VP8MungerState;
2169
+
2170
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VP8MungerState;
2171
+
2172
+ static equals(a: VP8MungerState | PlainMessage<VP8MungerState> | undefined, b: VP8MungerState | PlainMessage<VP8MungerState> | undefined): boolean;
2173
+ }
2174
+
2007
2175
  /**
2008
2176
  * @generated from message livekit.TimedVersion
2009
2177
  */
@@ -262,6 +262,7 @@ export const ParticipantInfo = /*@__PURE__*/ proto3.makeMessageType(
262
262
  { no: 13, name: "is_publisher", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
263
263
  { no: 14, name: "kind", kind: "enum", T: proto3.getEnumType(ParticipantInfo_Kind) },
264
264
  { no: 15, name: "attributes", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
265
+ { no: 16, name: "disconnect_reason", kind: "enum", T: proto3.getEnumType(DisconnectReason) },
265
266
  ],
266
267
  );
267
268
 
@@ -665,6 +666,53 @@ export const RTPStats = /*@__PURE__*/ proto3.makeMessageType(
665
666
  ],
666
667
  );
667
668
 
669
+ /**
670
+ * @generated from message livekit.RTPForwarderState
671
+ */
672
+ export const RTPForwarderState = /*@__PURE__*/ proto3.makeMessageType(
673
+ "livekit.RTPForwarderState",
674
+ () => [
675
+ { no: 1, name: "started", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
676
+ { no: 2, name: "reference_layer_spatial", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
677
+ { no: 3, name: "pre_start_time", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
678
+ { no: 4, name: "ext_first_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
679
+ { no: 5, name: "dummy_start_timestamp_offset", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
680
+ { no: 6, name: "rtp_munger", kind: "message", T: RTPMungerState },
681
+ { no: 7, name: "vp8_munger", kind: "message", T: VP8MungerState, oneof: "codec_munger" },
682
+ ],
683
+ );
684
+
685
+ /**
686
+ * @generated from message livekit.RTPMungerState
687
+ */
688
+ export const RTPMungerState = /*@__PURE__*/ proto3.makeMessageType(
689
+ "livekit.RTPMungerState",
690
+ () => [
691
+ { no: 1, name: "ext_last_sequence_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
692
+ { no: 2, name: "ext_second_last_sequence_number", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
693
+ { no: 3, name: "ext_last_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
694
+ { no: 4, name: "ext_second_last_timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
695
+ { no: 5, name: "last_marker", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
696
+ { no: 6, name: "second_last_marker", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
697
+ ],
698
+ );
699
+
700
+ /**
701
+ * @generated from message livekit.VP8MungerState
702
+ */
703
+ export const VP8MungerState = /*@__PURE__*/ proto3.makeMessageType(
704
+ "livekit.VP8MungerState",
705
+ () => [
706
+ { no: 1, name: "ext_last_picture_id", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
707
+ { no: 2, name: "picture_id_used", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
708
+ { no: 3, name: "last_tl0_pic_idx", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
709
+ { no: 4, name: "tl0_pic_idx_used", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
710
+ { no: 5, name: "tid_used", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
711
+ { no: 6, name: "last_key_idx", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
712
+ { no: 7, name: "key_idx_used", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
713
+ ],
714
+ );
715
+
668
716
  /**
669
717
  * @generated from message livekit.TimedVersion
670
718
  */
@@ -401,12 +401,12 @@ export declare class SignalResponse extends Message<SignalResponse> {
401
401
  case: "subscriptionResponse";
402
402
  } | {
403
403
  /**
404
- * Errors relating to user inititated requests that carry a `request_id`
404
+ * Response relating to user inititated requests that carry a `request_id`
405
405
  *
406
- * @generated from field: livekit.ErrorResponse error_response = 22;
406
+ * @generated from field: livekit.RequestResponse request_response = 22;
407
407
  */
408
- value: ErrorResponse;
409
- case: "errorResponse";
408
+ value: RequestResponse;
409
+ case: "requestResponse";
410
410
  } | {
411
411
  /**
412
412
  * notify to the publisher when a published track has been subscribed for the first time
@@ -1905,47 +1905,47 @@ export declare class SubscriptionResponse extends Message<SubscriptionResponse>
1905
1905
  }
1906
1906
 
1907
1907
  /**
1908
- * @generated from message livekit.ErrorResponse
1908
+ * @generated from message livekit.RequestResponse
1909
1909
  */
1910
- export declare class ErrorResponse extends Message<ErrorResponse> {
1910
+ export declare class RequestResponse extends Message<RequestResponse> {
1911
1911
  /**
1912
1912
  * @generated from field: uint32 request_id = 1;
1913
1913
  */
1914
1914
  requestId: number;
1915
1915
 
1916
1916
  /**
1917
- * @generated from field: livekit.ErrorResponse.Reason reason = 2;
1917
+ * @generated from field: livekit.RequestResponse.Reason reason = 2;
1918
1918
  */
1919
- reason: ErrorResponse_Reason;
1919
+ reason: RequestResponse_Reason;
1920
1920
 
1921
1921
  /**
1922
1922
  * @generated from field: string message = 3;
1923
1923
  */
1924
1924
  message: string;
1925
1925
 
1926
- constructor(data?: PartialMessage<ErrorResponse>);
1926
+ constructor(data?: PartialMessage<RequestResponse>);
1927
1927
 
1928
1928
  static readonly runtime: typeof proto3;
1929
- static readonly typeName = "livekit.ErrorResponse";
1929
+ static readonly typeName = "livekit.RequestResponse";
1930
1930
  static readonly fields: FieldList;
1931
1931
 
1932
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ErrorResponse;
1932
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestResponse;
1933
1933
 
1934
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ErrorResponse;
1934
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestResponse;
1935
1935
 
1936
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ErrorResponse;
1936
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestResponse;
1937
1937
 
1938
- static equals(a: ErrorResponse | PlainMessage<ErrorResponse> | undefined, b: ErrorResponse | PlainMessage<ErrorResponse> | undefined): boolean;
1938
+ static equals(a: RequestResponse | PlainMessage<RequestResponse> | undefined, b: RequestResponse | PlainMessage<RequestResponse> | undefined): boolean;
1939
1939
  }
1940
1940
 
1941
1941
  /**
1942
- * @generated from enum livekit.ErrorResponse.Reason
1942
+ * @generated from enum livekit.RequestResponse.Reason
1943
1943
  */
1944
- export declare enum ErrorResponse_Reason {
1944
+ export declare enum RequestResponse_Reason {
1945
1945
  /**
1946
- * @generated from enum value: UNKNOWN = 0;
1946
+ * @generated from enum value: OK = 0;
1947
1947
  */
1948
- UNKNOWN = 0,
1948
+ OK = 0,
1949
1949
 
1950
1950
  /**
1951
1951
  * @generated from enum value: NOT_FOUND = 1;
@@ -106,7 +106,7 @@ export const SignalResponse = /*@__PURE__*/ proto3.makeMessageType(
106
106
  { no: 19, name: "reconnect", kind: "message", T: ReconnectResponse, oneof: "message" },
107
107
  { no: 20, name: "pong_resp", kind: "message", T: Pong, oneof: "message" },
108
108
  { no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
109
- { no: 22, name: "error_response", kind: "message", T: ErrorResponse, oneof: "message" },
109
+ { no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
110
110
  { no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
111
111
  ],
112
112
  );
@@ -596,24 +596,24 @@ export const SubscriptionResponse = /*@__PURE__*/ proto3.makeMessageType(
596
596
  );
597
597
 
598
598
  /**
599
- * @generated from message livekit.ErrorResponse
599
+ * @generated from message livekit.RequestResponse
600
600
  */
601
- export const ErrorResponse = /*@__PURE__*/ proto3.makeMessageType(
602
- "livekit.ErrorResponse",
601
+ export const RequestResponse = /*@__PURE__*/ proto3.makeMessageType(
602
+ "livekit.RequestResponse",
603
603
  () => [
604
604
  { no: 1, name: "request_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
605
- { no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(ErrorResponse_Reason) },
605
+ { no: 2, name: "reason", kind: "enum", T: proto3.getEnumType(RequestResponse_Reason) },
606
606
  { no: 3, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */ },
607
607
  ],
608
608
  );
609
609
 
610
610
  /**
611
- * @generated from enum livekit.ErrorResponse.Reason
611
+ * @generated from enum livekit.RequestResponse.Reason
612
612
  */
613
- export const ErrorResponse_Reason = /*@__PURE__*/ proto3.makeEnum(
614
- "livekit.ErrorResponse.Reason",
613
+ export const RequestResponse_Reason = /*@__PURE__*/ proto3.makeEnum(
614
+ "livekit.RequestResponse.Reason",
615
615
  [
616
- {no: 0, name: "UNKNOWN"},
616
+ {no: 0, name: "OK"},
617
617
  {no: 1, name: "NOT_FOUND"},
618
618
  {no: 2, name: "NOT_ALLOWED"},
619
619
  {no: 3, name: "LIMIT_EXCEEDED"},
@@ -1,2 +1,2 @@
1
1
  // Generated by genversion.
2
- export const version = '1.19.3';
2
+ export const version = '1.20.0';