@dcl/protocol 1.0.0-5729613832.commit-9d3834a → 1.0.0-5752058730.commit-921fc5d

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.
@@ -0,0 +1,67 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "decentraland.kernel.apis";
3
+ export interface VideoTracksActiveStreamsRequest {
4
+ }
5
+ export interface VideoTracksActiveStreamsResponse {
6
+ streams: VideoTracksActiveStreamsData[];
7
+ }
8
+ export interface VideoTracksActiveStreamsData {
9
+ identity: string;
10
+ trackSid: string;
11
+ }
12
+ export declare namespace VideoTracksActiveStreamsRequest {
13
+ function encode(_: VideoTracksActiveStreamsRequest, writer?: _m0.Writer): _m0.Writer;
14
+ function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTracksActiveStreamsRequest;
15
+ function fromJSON(_: any): VideoTracksActiveStreamsRequest;
16
+ function toJSON(_: VideoTracksActiveStreamsRequest): unknown;
17
+ function create<I extends Exact<DeepPartial<VideoTracksActiveStreamsRequest>, I>>(base?: I): VideoTracksActiveStreamsRequest;
18
+ function fromPartial<I extends Exact<DeepPartial<VideoTracksActiveStreamsRequest>, I>>(_: I): VideoTracksActiveStreamsRequest;
19
+ }
20
+ export declare namespace VideoTracksActiveStreamsResponse {
21
+ function encode(message: VideoTracksActiveStreamsResponse, writer?: _m0.Writer): _m0.Writer;
22
+ function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTracksActiveStreamsResponse;
23
+ function fromJSON(object: any): VideoTracksActiveStreamsResponse;
24
+ function toJSON(message: VideoTracksActiveStreamsResponse): unknown;
25
+ function create<I extends Exact<DeepPartial<VideoTracksActiveStreamsResponse>, I>>(base?: I): VideoTracksActiveStreamsResponse;
26
+ function fromPartial<I extends Exact<DeepPartial<VideoTracksActiveStreamsResponse>, I>>(object: I): VideoTracksActiveStreamsResponse;
27
+ }
28
+ export declare namespace VideoTracksActiveStreamsData {
29
+ function encode(message: VideoTracksActiveStreamsData, writer?: _m0.Writer): _m0.Writer;
30
+ function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTracksActiveStreamsData;
31
+ function fromJSON(object: any): VideoTracksActiveStreamsData;
32
+ function toJSON(message: VideoTracksActiveStreamsData): unknown;
33
+ function create<I extends Exact<DeepPartial<VideoTracksActiveStreamsData>, I>>(base?: I): VideoTracksActiveStreamsData;
34
+ function fromPartial<I extends Exact<DeepPartial<VideoTracksActiveStreamsData>, I>>(object: I): VideoTracksActiveStreamsData;
35
+ }
36
+ export type CommsApiServiceDefinition = typeof CommsApiServiceDefinition;
37
+ export declare const CommsApiServiceDefinition: {
38
+ readonly name: "CommsApiService";
39
+ readonly fullName: "decentraland.kernel.apis.CommsApiService";
40
+ readonly methods: {
41
+ readonly getActiveVideoStreams: {
42
+ readonly name: "GetActiveVideoStreams";
43
+ readonly requestType: typeof VideoTracksActiveStreamsRequest;
44
+ readonly requestStream: false;
45
+ readonly responseType: typeof VideoTracksActiveStreamsResponse;
46
+ readonly responseStream: false;
47
+ readonly options: {};
48
+ };
49
+ };
50
+ };
51
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
52
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
53
+ $case: string;
54
+ } ? {
55
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
56
+ } & {
57
+ $case: T["$case"];
58
+ } : T extends {} ? {
59
+ [K in keyof T]?: DeepPartial<T[K]>;
60
+ } : Partial<T>;
61
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
62
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
63
+ [K in keyof P]: Exact<P[K], I[K]>;
64
+ } & {
65
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
66
+ };
67
+ export {};
@@ -0,0 +1,206 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.CommsApiServiceDefinition = exports.VideoTracksActiveStreamsData = exports.VideoTracksActiveStreamsResponse = exports.VideoTracksActiveStreamsRequest = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
9
+ exports.protobufPackage = "decentraland.kernel.apis";
10
+ function createBaseVideoTracksActiveStreamsRequest() {
11
+ return {};
12
+ }
13
+ var VideoTracksActiveStreamsRequest;
14
+ (function (VideoTracksActiveStreamsRequest) {
15
+ function encode(_, writer = minimal_1.default.Writer.create()) {
16
+ return writer;
17
+ }
18
+ VideoTracksActiveStreamsRequest.encode = encode;
19
+ function decode(input, length) {
20
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
21
+ let end = length === undefined ? reader.len : reader.pos + length;
22
+ const message = createBaseVideoTracksActiveStreamsRequest();
23
+ while (reader.pos < end) {
24
+ const tag = reader.uint32();
25
+ switch (tag >>> 3) {
26
+ }
27
+ if ((tag & 7) === 4 || tag === 0) {
28
+ break;
29
+ }
30
+ reader.skipType(tag & 7);
31
+ }
32
+ return message;
33
+ }
34
+ VideoTracksActiveStreamsRequest.decode = decode;
35
+ function fromJSON(_) {
36
+ return {};
37
+ }
38
+ VideoTracksActiveStreamsRequest.fromJSON = fromJSON;
39
+ function toJSON(_) {
40
+ const obj = {};
41
+ return obj;
42
+ }
43
+ VideoTracksActiveStreamsRequest.toJSON = toJSON;
44
+ function create(base) {
45
+ return VideoTracksActiveStreamsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
46
+ }
47
+ VideoTracksActiveStreamsRequest.create = create;
48
+ function fromPartial(_) {
49
+ const message = createBaseVideoTracksActiveStreamsRequest();
50
+ return message;
51
+ }
52
+ VideoTracksActiveStreamsRequest.fromPartial = fromPartial;
53
+ })(VideoTracksActiveStreamsRequest || (exports.VideoTracksActiveStreamsRequest = VideoTracksActiveStreamsRequest = {}));
54
+ function createBaseVideoTracksActiveStreamsResponse() {
55
+ return { streams: [] };
56
+ }
57
+ var VideoTracksActiveStreamsResponse;
58
+ (function (VideoTracksActiveStreamsResponse) {
59
+ function encode(message, writer = minimal_1.default.Writer.create()) {
60
+ for (const v of message.streams) {
61
+ VideoTracksActiveStreamsData.encode(v, writer.uint32(10).fork()).ldelim();
62
+ }
63
+ return writer;
64
+ }
65
+ VideoTracksActiveStreamsResponse.encode = encode;
66
+ function decode(input, length) {
67
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
68
+ let end = length === undefined ? reader.len : reader.pos + length;
69
+ const message = createBaseVideoTracksActiveStreamsResponse();
70
+ while (reader.pos < end) {
71
+ const tag = reader.uint32();
72
+ switch (tag >>> 3) {
73
+ case 1:
74
+ if (tag !== 10) {
75
+ break;
76
+ }
77
+ message.streams.push(VideoTracksActiveStreamsData.decode(reader, reader.uint32()));
78
+ continue;
79
+ }
80
+ if ((tag & 7) === 4 || tag === 0) {
81
+ break;
82
+ }
83
+ reader.skipType(tag & 7);
84
+ }
85
+ return message;
86
+ }
87
+ VideoTracksActiveStreamsResponse.decode = decode;
88
+ function fromJSON(object) {
89
+ return {
90
+ streams: Array.isArray(object === null || object === void 0 ? void 0 : object.streams)
91
+ ? object.streams.map((e) => VideoTracksActiveStreamsData.fromJSON(e))
92
+ : [],
93
+ };
94
+ }
95
+ VideoTracksActiveStreamsResponse.fromJSON = fromJSON;
96
+ function toJSON(message) {
97
+ const obj = {};
98
+ if (message.streams) {
99
+ obj.streams = message.streams.map((e) => e ? VideoTracksActiveStreamsData.toJSON(e) : undefined);
100
+ }
101
+ else {
102
+ obj.streams = [];
103
+ }
104
+ return obj;
105
+ }
106
+ VideoTracksActiveStreamsResponse.toJSON = toJSON;
107
+ function create(base) {
108
+ return VideoTracksActiveStreamsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
109
+ }
110
+ VideoTracksActiveStreamsResponse.create = create;
111
+ function fromPartial(object) {
112
+ var _a;
113
+ const message = createBaseVideoTracksActiveStreamsResponse();
114
+ message.streams = ((_a = object.streams) === null || _a === void 0 ? void 0 : _a.map((e) => VideoTracksActiveStreamsData.fromPartial(e))) || [];
115
+ return message;
116
+ }
117
+ VideoTracksActiveStreamsResponse.fromPartial = fromPartial;
118
+ })(VideoTracksActiveStreamsResponse || (exports.VideoTracksActiveStreamsResponse = VideoTracksActiveStreamsResponse = {}));
119
+ function createBaseVideoTracksActiveStreamsData() {
120
+ return { identity: "", trackSid: "" };
121
+ }
122
+ var VideoTracksActiveStreamsData;
123
+ (function (VideoTracksActiveStreamsData) {
124
+ function encode(message, writer = minimal_1.default.Writer.create()) {
125
+ if (message.identity !== "") {
126
+ writer.uint32(10).string(message.identity);
127
+ }
128
+ if (message.trackSid !== "") {
129
+ writer.uint32(18).string(message.trackSid);
130
+ }
131
+ return writer;
132
+ }
133
+ VideoTracksActiveStreamsData.encode = encode;
134
+ function decode(input, length) {
135
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
136
+ let end = length === undefined ? reader.len : reader.pos + length;
137
+ const message = createBaseVideoTracksActiveStreamsData();
138
+ while (reader.pos < end) {
139
+ const tag = reader.uint32();
140
+ switch (tag >>> 3) {
141
+ case 1:
142
+ if (tag !== 10) {
143
+ break;
144
+ }
145
+ message.identity = reader.string();
146
+ continue;
147
+ case 2:
148
+ if (tag !== 18) {
149
+ break;
150
+ }
151
+ message.trackSid = reader.string();
152
+ continue;
153
+ }
154
+ if ((tag & 7) === 4 || tag === 0) {
155
+ break;
156
+ }
157
+ reader.skipType(tag & 7);
158
+ }
159
+ return message;
160
+ }
161
+ VideoTracksActiveStreamsData.decode = decode;
162
+ function fromJSON(object) {
163
+ return {
164
+ identity: isSet(object.identity) ? String(object.identity) : "",
165
+ trackSid: isSet(object.trackSid) ? String(object.trackSid) : "",
166
+ };
167
+ }
168
+ VideoTracksActiveStreamsData.fromJSON = fromJSON;
169
+ function toJSON(message) {
170
+ const obj = {};
171
+ message.identity !== undefined && (obj.identity = message.identity);
172
+ message.trackSid !== undefined && (obj.trackSid = message.trackSid);
173
+ return obj;
174
+ }
175
+ VideoTracksActiveStreamsData.toJSON = toJSON;
176
+ function create(base) {
177
+ return VideoTracksActiveStreamsData.fromPartial(base !== null && base !== void 0 ? base : {});
178
+ }
179
+ VideoTracksActiveStreamsData.create = create;
180
+ function fromPartial(object) {
181
+ var _a, _b;
182
+ const message = createBaseVideoTracksActiveStreamsData();
183
+ message.identity = (_a = object.identity) !== null && _a !== void 0 ? _a : "";
184
+ message.trackSid = (_b = object.trackSid) !== null && _b !== void 0 ? _b : "";
185
+ return message;
186
+ }
187
+ VideoTracksActiveStreamsData.fromPartial = fromPartial;
188
+ })(VideoTracksActiveStreamsData || (exports.VideoTracksActiveStreamsData = VideoTracksActiveStreamsData = {}));
189
+ exports.CommsApiServiceDefinition = {
190
+ name: "CommsApiService",
191
+ fullName: "decentraland.kernel.apis.CommsApiService",
192
+ methods: {
193
+ getActiveVideoStreams: {
194
+ name: "GetActiveVideoStreams",
195
+ requestType: VideoTracksActiveStreamsRequest,
196
+ requestStream: false,
197
+ responseType: VideoTracksActiveStreamsResponse,
198
+ responseStream: false,
199
+ options: {},
200
+ },
201
+ },
202
+ };
203
+ function isSet(value) {
204
+ return value !== null && value !== undefined;
205
+ }
206
+ //# sourceMappingURL=comms_api.gen.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"comms_api.gen.js","sourceRoot":"","sources":["../../../../out-ts/decentraland/kernel/apis/comms_api.gen.ts"],"names":[],"mappings":";;;;;;AAAA,oBAAoB;AACpB,iEAAqC;AAExB,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAc1D,SAAS,yCAAyC;IAChD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,IAAiB,+BAA+B,CA0C/C;AA1CD,WAAiB,+BAA+B;IAC9C,SAAgB,MAAM,CAAC,C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KAAK,SAAS,CAAC;AAC/C,CAAC"}
@@ -0,0 +1,242 @@
1
+ /* eslint-disable */
2
+ import _m0 from "protobufjs/minimal";
3
+
4
+ export const protobufPackage = "decentraland.kernel.apis";
5
+
6
+ export interface VideoTracksActiveStreamsRequest {
7
+ }
8
+
9
+ export interface VideoTracksActiveStreamsResponse {
10
+ streams: VideoTracksActiveStreamsData[];
11
+ }
12
+
13
+ export interface VideoTracksActiveStreamsData {
14
+ identity: string;
15
+ trackSid: string;
16
+ }
17
+
18
+ function createBaseVideoTracksActiveStreamsRequest(): VideoTracksActiveStreamsRequest {
19
+ return {};
20
+ }
21
+
22
+ export namespace VideoTracksActiveStreamsRequest {
23
+ export function encode(_: VideoTracksActiveStreamsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
24
+ return writer;
25
+ }
26
+
27
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTracksActiveStreamsRequest {
28
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
29
+ let end = length === undefined ? reader.len : reader.pos + length;
30
+ const message = createBaseVideoTracksActiveStreamsRequest();
31
+ while (reader.pos < end) {
32
+ const tag = reader.uint32();
33
+ switch (tag >>> 3) {
34
+ }
35
+ if ((tag & 7) === 4 || tag === 0) {
36
+ break;
37
+ }
38
+ reader.skipType(tag & 7);
39
+ }
40
+ return message;
41
+ }
42
+
43
+ export function fromJSON(_: any): VideoTracksActiveStreamsRequest {
44
+ return {};
45
+ }
46
+
47
+ export function toJSON(_: VideoTracksActiveStreamsRequest): unknown {
48
+ const obj: any = {};
49
+ return obj;
50
+ }
51
+
52
+ export function create<I extends Exact<DeepPartial<VideoTracksActiveStreamsRequest>, I>>(
53
+ base?: I,
54
+ ): VideoTracksActiveStreamsRequest {
55
+ return VideoTracksActiveStreamsRequest.fromPartial(base ?? {});
56
+ }
57
+
58
+ export function fromPartial<I extends Exact<DeepPartial<VideoTracksActiveStreamsRequest>, I>>(
59
+ _: I,
60
+ ): VideoTracksActiveStreamsRequest {
61
+ const message = createBaseVideoTracksActiveStreamsRequest();
62
+ return message;
63
+ }
64
+ }
65
+
66
+ function createBaseVideoTracksActiveStreamsResponse(): VideoTracksActiveStreamsResponse {
67
+ return { streams: [] };
68
+ }
69
+
70
+ export namespace VideoTracksActiveStreamsResponse {
71
+ export function encode(
72
+ message: VideoTracksActiveStreamsResponse,
73
+ writer: _m0.Writer = _m0.Writer.create(),
74
+ ): _m0.Writer {
75
+ for (const v of message.streams) {
76
+ VideoTracksActiveStreamsData.encode(v!, writer.uint32(10).fork()).ldelim();
77
+ }
78
+ return writer;
79
+ }
80
+
81
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTracksActiveStreamsResponse {
82
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
83
+ let end = length === undefined ? reader.len : reader.pos + length;
84
+ const message = createBaseVideoTracksActiveStreamsResponse();
85
+ while (reader.pos < end) {
86
+ const tag = reader.uint32();
87
+ switch (tag >>> 3) {
88
+ case 1:
89
+ if (tag !== 10) {
90
+ break;
91
+ }
92
+
93
+ message.streams.push(VideoTracksActiveStreamsData.decode(reader, reader.uint32()));
94
+ continue;
95
+ }
96
+ if ((tag & 7) === 4 || tag === 0) {
97
+ break;
98
+ }
99
+ reader.skipType(tag & 7);
100
+ }
101
+ return message;
102
+ }
103
+
104
+ export function fromJSON(object: any): VideoTracksActiveStreamsResponse {
105
+ return {
106
+ streams: Array.isArray(object?.streams)
107
+ ? object.streams.map((e: any) => VideoTracksActiveStreamsData.fromJSON(e))
108
+ : [],
109
+ };
110
+ }
111
+
112
+ export function toJSON(message: VideoTracksActiveStreamsResponse): unknown {
113
+ const obj: any = {};
114
+ if (message.streams) {
115
+ obj.streams = message.streams.map((e) => e ? VideoTracksActiveStreamsData.toJSON(e) : undefined);
116
+ } else {
117
+ obj.streams = [];
118
+ }
119
+ return obj;
120
+ }
121
+
122
+ export function create<I extends Exact<DeepPartial<VideoTracksActiveStreamsResponse>, I>>(
123
+ base?: I,
124
+ ): VideoTracksActiveStreamsResponse {
125
+ return VideoTracksActiveStreamsResponse.fromPartial(base ?? {});
126
+ }
127
+
128
+ export function fromPartial<I extends Exact<DeepPartial<VideoTracksActiveStreamsResponse>, I>>(
129
+ object: I,
130
+ ): VideoTracksActiveStreamsResponse {
131
+ const message = createBaseVideoTracksActiveStreamsResponse();
132
+ message.streams = object.streams?.map((e) => VideoTracksActiveStreamsData.fromPartial(e)) || [];
133
+ return message;
134
+ }
135
+ }
136
+
137
+ function createBaseVideoTracksActiveStreamsData(): VideoTracksActiveStreamsData {
138
+ return { identity: "", trackSid: "" };
139
+ }
140
+
141
+ export namespace VideoTracksActiveStreamsData {
142
+ export function encode(message: VideoTracksActiveStreamsData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
143
+ if (message.identity !== "") {
144
+ writer.uint32(10).string(message.identity);
145
+ }
146
+ if (message.trackSid !== "") {
147
+ writer.uint32(18).string(message.trackSid);
148
+ }
149
+ return writer;
150
+ }
151
+
152
+ export function decode(input: _m0.Reader | Uint8Array, length?: number): VideoTracksActiveStreamsData {
153
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
154
+ let end = length === undefined ? reader.len : reader.pos + length;
155
+ const message = createBaseVideoTracksActiveStreamsData();
156
+ while (reader.pos < end) {
157
+ const tag = reader.uint32();
158
+ switch (tag >>> 3) {
159
+ case 1:
160
+ if (tag !== 10) {
161
+ break;
162
+ }
163
+
164
+ message.identity = reader.string();
165
+ continue;
166
+ case 2:
167
+ if (tag !== 18) {
168
+ break;
169
+ }
170
+
171
+ message.trackSid = reader.string();
172
+ continue;
173
+ }
174
+ if ((tag & 7) === 4 || tag === 0) {
175
+ break;
176
+ }
177
+ reader.skipType(tag & 7);
178
+ }
179
+ return message;
180
+ }
181
+
182
+ export function fromJSON(object: any): VideoTracksActiveStreamsData {
183
+ return {
184
+ identity: isSet(object.identity) ? String(object.identity) : "",
185
+ trackSid: isSet(object.trackSid) ? String(object.trackSid) : "",
186
+ };
187
+ }
188
+
189
+ export function toJSON(message: VideoTracksActiveStreamsData): unknown {
190
+ const obj: any = {};
191
+ message.identity !== undefined && (obj.identity = message.identity);
192
+ message.trackSid !== undefined && (obj.trackSid = message.trackSid);
193
+ return obj;
194
+ }
195
+
196
+ export function create<I extends Exact<DeepPartial<VideoTracksActiveStreamsData>, I>>(
197
+ base?: I,
198
+ ): VideoTracksActiveStreamsData {
199
+ return VideoTracksActiveStreamsData.fromPartial(base ?? {});
200
+ }
201
+
202
+ export function fromPartial<I extends Exact<DeepPartial<VideoTracksActiveStreamsData>, I>>(
203
+ object: I,
204
+ ): VideoTracksActiveStreamsData {
205
+ const message = createBaseVideoTracksActiveStreamsData();
206
+ message.identity = object.identity ?? "";
207
+ message.trackSid = object.trackSid ?? "";
208
+ return message;
209
+ }
210
+ }
211
+
212
+ export type CommsApiServiceDefinition = typeof CommsApiServiceDefinition;
213
+ export const CommsApiServiceDefinition = {
214
+ name: "CommsApiService",
215
+ fullName: "decentraland.kernel.apis.CommsApiService",
216
+ methods: {
217
+ getActiveVideoStreams: {
218
+ name: "GetActiveVideoStreams",
219
+ requestType: VideoTracksActiveStreamsRequest,
220
+ requestStream: false,
221
+ responseType: VideoTracksActiveStreamsResponse,
222
+ responseStream: false,
223
+ options: {},
224
+ },
225
+ },
226
+ } as const;
227
+
228
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
229
+
230
+ export type DeepPartial<T> = T extends Builtin ? T
231
+ : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
232
+ : T extends { $case: string } ? { [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]> } & { $case: T["$case"] }
233
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
234
+ : Partial<T>;
235
+
236
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
237
+ export type Exact<P, I extends P> = P extends Builtin ? P
238
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
239
+
240
+ function isSet(value: any): boolean {
241
+ return value !== null && value !== undefined;
242
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcl/protocol",
3
- "version": "1.0.0-5729613832.commit-9d3834a",
3
+ "version": "1.0.0-5752058730.commit-921fc5d",
4
4
  "description": "",
5
5
  "repository": "decentraland/protocol.git",
6
6
  "homepage": "https://github.com/decentraland/protocol#readme",
@@ -29,5 +29,5 @@
29
29
  "out-js",
30
30
  "public"
31
31
  ],
32
- "commit": "9d3834afb77be47710801448bed0014de6f389c2"
32
+ "commit": "921fc5dbaa605e91df2c856f7485a99a508f2396"
33
33
  }
@@ -0,0 +1,18 @@
1
+ syntax = "proto3";
2
+ package decentraland.kernel.apis;
3
+
4
+ message VideoTracksActiveStreamsRequest {
5
+ }
6
+
7
+ message VideoTracksActiveStreamsResponse {
8
+ repeated VideoTracksActiveStreamsData streams = 1;
9
+ }
10
+
11
+ message VideoTracksActiveStreamsData {
12
+ string identity = 1;
13
+ string track_sid = 2;
14
+ }
15
+
16
+ service CommsApiService {
17
+ rpc GetActiveVideoStreams(VideoTracksActiveStreamsRequest) returns (VideoTracksActiveStreamsResponse) {}
18
+ }
@@ -22,3 +22,4 @@ import public "decentraland/kernel/apis/social_controller.proto";
22
22
  import public "decentraland/kernel/apis/user_action_module.proto";
23
23
  import public "decentraland/kernel/apis/user_identity.proto";
24
24
  import public "decentraland/kernel/apis/scene.proto";
25
+ import public "decentraland/kernel/apis/comms_api.proto";