mezon-js-protobuf 1.6.21 → 1.6.22
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/api/api.ts +34341 -34341
- package/dist/mezon-js-protobuf/rtapi/realtime.d.ts +151 -258
- package/dist/mezon-js-protobuf.cjs.js +37 -215
- package/dist/mezon-js-protobuf.esm.mjs +37 -215
- package/package.json +1 -1
- package/rtapi/realtime.ts +9922 -10140
|
@@ -5254,9 +5254,7 @@ function createBaseEnvelope() {
|
|
|
5254
5254
|
token_sent_event: void 0,
|
|
5255
5255
|
message_button_clicked: void 0,
|
|
5256
5256
|
unmute_event: void 0,
|
|
5257
|
-
|
|
5258
|
-
call_accept: void 0,
|
|
5259
|
-
ice_candidate_init: void 0
|
|
5257
|
+
webrtc_signaling_fwd: void 0
|
|
5260
5258
|
};
|
|
5261
5259
|
}
|
|
5262
5260
|
var Envelope = {
|
|
@@ -5444,14 +5442,8 @@ var Envelope = {
|
|
|
5444
5442
|
if (message.unmute_event !== void 0) {
|
|
5445
5443
|
UnmuteEvent.encode(message.unmute_event, writer.uint32(490).fork()).ldelim();
|
|
5446
5444
|
}
|
|
5447
|
-
if (message.
|
|
5448
|
-
|
|
5449
|
-
}
|
|
5450
|
-
if (message.call_accept !== void 0) {
|
|
5451
|
-
CallAccept.encode(message.call_accept, writer.uint32(506).fork()).ldelim();
|
|
5452
|
-
}
|
|
5453
|
-
if (message.ice_candidate_init !== void 0) {
|
|
5454
|
-
ICECandidateInit.encode(message.ice_candidate_init, writer.uint32(514).fork()).ldelim();
|
|
5445
|
+
if (message.webrtc_signaling_fwd !== void 0) {
|
|
5446
|
+
WebrtcSignalingFwd.encode(message.webrtc_signaling_fwd, writer.uint32(498).fork()).ldelim();
|
|
5455
5447
|
}
|
|
5456
5448
|
return writer;
|
|
5457
5449
|
},
|
|
@@ -5832,19 +5824,7 @@ var Envelope = {
|
|
|
5832
5824
|
if (tag !== 498) {
|
|
5833
5825
|
break;
|
|
5834
5826
|
}
|
|
5835
|
-
message.
|
|
5836
|
-
continue;
|
|
5837
|
-
case 63:
|
|
5838
|
-
if (tag !== 506) {
|
|
5839
|
-
break;
|
|
5840
|
-
}
|
|
5841
|
-
message.call_accept = CallAccept.decode(reader, reader.uint32());
|
|
5842
|
-
continue;
|
|
5843
|
-
case 64:
|
|
5844
|
-
if (tag !== 514) {
|
|
5845
|
-
break;
|
|
5846
|
-
}
|
|
5847
|
-
message.ice_candidate_init = ICECandidateInit.decode(reader, reader.uint32());
|
|
5827
|
+
message.webrtc_signaling_fwd = WebrtcSignalingFwd.decode(reader, reader.uint32());
|
|
5848
5828
|
continue;
|
|
5849
5829
|
}
|
|
5850
5830
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5917,9 +5897,7 @@ var Envelope = {
|
|
|
5917
5897
|
token_sent_event: isSet4(object.token_sent_event) ? TokenSentEvent.fromJSON(object.token_sent_event) : void 0,
|
|
5918
5898
|
message_button_clicked: isSet4(object.message_button_clicked) ? MessageButtonClicked.fromJSON(object.message_button_clicked) : void 0,
|
|
5919
5899
|
unmute_event: isSet4(object.unmute_event) ? UnmuteEvent.fromJSON(object.unmute_event) : void 0,
|
|
5920
|
-
|
|
5921
|
-
call_accept: isSet4(object.call_accept) ? CallAccept.fromJSON(object.call_accept) : void 0,
|
|
5922
|
-
ice_candidate_init: isSet4(object.ice_candidate_init) ? ICECandidateInit.fromJSON(object.ice_candidate_init) : void 0
|
|
5900
|
+
webrtc_signaling_fwd: isSet4(object.webrtc_signaling_fwd) ? WebrtcSignalingFwd.fromJSON(object.webrtc_signaling_fwd) : void 0
|
|
5923
5901
|
};
|
|
5924
5902
|
},
|
|
5925
5903
|
toJSON(message) {
|
|
@@ -6107,14 +6085,8 @@ var Envelope = {
|
|
|
6107
6085
|
if (message.unmute_event !== void 0) {
|
|
6108
6086
|
obj.unmute_event = UnmuteEvent.toJSON(message.unmute_event);
|
|
6109
6087
|
}
|
|
6110
|
-
if (message.
|
|
6111
|
-
obj.
|
|
6112
|
-
}
|
|
6113
|
-
if (message.call_accept !== void 0) {
|
|
6114
|
-
obj.call_accept = CallAccept.toJSON(message.call_accept);
|
|
6115
|
-
}
|
|
6116
|
-
if (message.ice_candidate_init !== void 0) {
|
|
6117
|
-
obj.ice_candidate_init = ICECandidateInit.toJSON(message.ice_candidate_init);
|
|
6088
|
+
if (message.webrtc_signaling_fwd !== void 0) {
|
|
6089
|
+
obj.webrtc_signaling_fwd = WebrtcSignalingFwd.toJSON(message.webrtc_signaling_fwd);
|
|
6118
6090
|
}
|
|
6119
6091
|
return obj;
|
|
6120
6092
|
},
|
|
@@ -6185,169 +6157,30 @@ var Envelope = {
|
|
|
6185
6157
|
message.token_sent_event = object.token_sent_event !== void 0 && object.token_sent_event !== null ? TokenSentEvent.fromPartial(object.token_sent_event) : void 0;
|
|
6186
6158
|
message.message_button_clicked = object.message_button_clicked !== void 0 && object.message_button_clicked !== null ? MessageButtonClicked.fromPartial(object.message_button_clicked) : void 0;
|
|
6187
6159
|
message.unmute_event = object.unmute_event !== void 0 && object.unmute_event !== null ? UnmuteEvent.fromPartial(object.unmute_event) : void 0;
|
|
6188
|
-
message.
|
|
6189
|
-
message.call_accept = object.call_accept !== void 0 && object.call_accept !== null ? CallAccept.fromPartial(object.call_accept) : void 0;
|
|
6190
|
-
message.ice_candidate_init = object.ice_candidate_init !== void 0 && object.ice_candidate_init !== null ? ICECandidateInit.fromPartial(object.ice_candidate_init) : void 0;
|
|
6191
|
-
return message;
|
|
6192
|
-
}
|
|
6193
|
-
};
|
|
6194
|
-
function createBaseCallRequest() {
|
|
6195
|
-
return { type: "", sdp: "" };
|
|
6196
|
-
}
|
|
6197
|
-
var CallRequest = {
|
|
6198
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
6199
|
-
if (message.type !== "") {
|
|
6200
|
-
writer.uint32(10).string(message.type);
|
|
6201
|
-
}
|
|
6202
|
-
if (message.sdp !== "") {
|
|
6203
|
-
writer.uint32(18).string(message.sdp);
|
|
6204
|
-
}
|
|
6205
|
-
return writer;
|
|
6206
|
-
},
|
|
6207
|
-
decode(input, length) {
|
|
6208
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
6209
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6210
|
-
const message = createBaseCallRequest();
|
|
6211
|
-
while (reader.pos < end) {
|
|
6212
|
-
const tag = reader.uint32();
|
|
6213
|
-
switch (tag >>> 3) {
|
|
6214
|
-
case 1:
|
|
6215
|
-
if (tag !== 10) {
|
|
6216
|
-
break;
|
|
6217
|
-
}
|
|
6218
|
-
message.type = reader.string();
|
|
6219
|
-
continue;
|
|
6220
|
-
case 2:
|
|
6221
|
-
if (tag !== 18) {
|
|
6222
|
-
break;
|
|
6223
|
-
}
|
|
6224
|
-
message.sdp = reader.string();
|
|
6225
|
-
continue;
|
|
6226
|
-
}
|
|
6227
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6228
|
-
break;
|
|
6229
|
-
}
|
|
6230
|
-
reader.skipType(tag & 7);
|
|
6231
|
-
}
|
|
6232
|
-
return message;
|
|
6233
|
-
},
|
|
6234
|
-
fromJSON(object) {
|
|
6235
|
-
return {
|
|
6236
|
-
type: isSet4(object.type) ? globalThis.String(object.type) : "",
|
|
6237
|
-
sdp: isSet4(object.sdp) ? globalThis.String(object.sdp) : ""
|
|
6238
|
-
};
|
|
6239
|
-
},
|
|
6240
|
-
toJSON(message) {
|
|
6241
|
-
const obj = {};
|
|
6242
|
-
if (message.type !== "") {
|
|
6243
|
-
obj.type = message.type;
|
|
6244
|
-
}
|
|
6245
|
-
if (message.sdp !== "") {
|
|
6246
|
-
obj.sdp = message.sdp;
|
|
6247
|
-
}
|
|
6248
|
-
return obj;
|
|
6249
|
-
},
|
|
6250
|
-
create(base) {
|
|
6251
|
-
return CallRequest.fromPartial(base != null ? base : {});
|
|
6252
|
-
},
|
|
6253
|
-
fromPartial(object) {
|
|
6254
|
-
var _a, _b;
|
|
6255
|
-
const message = createBaseCallRequest();
|
|
6256
|
-
message.type = (_a = object.type) != null ? _a : "";
|
|
6257
|
-
message.sdp = (_b = object.sdp) != null ? _b : "";
|
|
6160
|
+
message.webrtc_signaling_fwd = object.webrtc_signaling_fwd !== void 0 && object.webrtc_signaling_fwd !== null ? WebrtcSignalingFwd.fromPartial(object.webrtc_signaling_fwd) : void 0;
|
|
6258
6161
|
return message;
|
|
6259
6162
|
}
|
|
6260
6163
|
};
|
|
6261
|
-
function
|
|
6262
|
-
return {
|
|
6164
|
+
function createBaseWebrtcSignalingFwd() {
|
|
6165
|
+
return { receiver_id: "", data_type: 0, json_data: "" };
|
|
6263
6166
|
}
|
|
6264
|
-
var
|
|
6167
|
+
var WebrtcSignalingFwd = {
|
|
6265
6168
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
6266
|
-
if (message.
|
|
6267
|
-
writer.uint32(10).string(message.
|
|
6268
|
-
}
|
|
6269
|
-
if (message.sdp !== "") {
|
|
6270
|
-
writer.uint32(18).string(message.sdp);
|
|
6271
|
-
}
|
|
6272
|
-
return writer;
|
|
6273
|
-
},
|
|
6274
|
-
decode(input, length) {
|
|
6275
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
6276
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6277
|
-
const message = createBaseCallAccept();
|
|
6278
|
-
while (reader.pos < end) {
|
|
6279
|
-
const tag = reader.uint32();
|
|
6280
|
-
switch (tag >>> 3) {
|
|
6281
|
-
case 1:
|
|
6282
|
-
if (tag !== 10) {
|
|
6283
|
-
break;
|
|
6284
|
-
}
|
|
6285
|
-
message.type = reader.string();
|
|
6286
|
-
continue;
|
|
6287
|
-
case 2:
|
|
6288
|
-
if (tag !== 18) {
|
|
6289
|
-
break;
|
|
6290
|
-
}
|
|
6291
|
-
message.sdp = reader.string();
|
|
6292
|
-
continue;
|
|
6293
|
-
}
|
|
6294
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6295
|
-
break;
|
|
6296
|
-
}
|
|
6297
|
-
reader.skipType(tag & 7);
|
|
6298
|
-
}
|
|
6299
|
-
return message;
|
|
6300
|
-
},
|
|
6301
|
-
fromJSON(object) {
|
|
6302
|
-
return {
|
|
6303
|
-
type: isSet4(object.type) ? globalThis.String(object.type) : "",
|
|
6304
|
-
sdp: isSet4(object.sdp) ? globalThis.String(object.sdp) : ""
|
|
6305
|
-
};
|
|
6306
|
-
},
|
|
6307
|
-
toJSON(message) {
|
|
6308
|
-
const obj = {};
|
|
6309
|
-
if (message.type !== "") {
|
|
6310
|
-
obj.type = message.type;
|
|
6311
|
-
}
|
|
6312
|
-
if (message.sdp !== "") {
|
|
6313
|
-
obj.sdp = message.sdp;
|
|
6314
|
-
}
|
|
6315
|
-
return obj;
|
|
6316
|
-
},
|
|
6317
|
-
create(base) {
|
|
6318
|
-
return CallAccept.fromPartial(base != null ? base : {});
|
|
6319
|
-
},
|
|
6320
|
-
fromPartial(object) {
|
|
6321
|
-
var _a, _b;
|
|
6322
|
-
const message = createBaseCallAccept();
|
|
6323
|
-
message.type = (_a = object.type) != null ? _a : "";
|
|
6324
|
-
message.sdp = (_b = object.sdp) != null ? _b : "";
|
|
6325
|
-
return message;
|
|
6326
|
-
}
|
|
6327
|
-
};
|
|
6328
|
-
function createBaseICECandidateInit() {
|
|
6329
|
-
return { candidate: "", sdpMid: void 0, sdpMLineIndex: void 0, usernameFragment: void 0 };
|
|
6330
|
-
}
|
|
6331
|
-
var ICECandidateInit = {
|
|
6332
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
6333
|
-
if (message.candidate !== "") {
|
|
6334
|
-
writer.uint32(10).string(message.candidate);
|
|
6335
|
-
}
|
|
6336
|
-
if (message.sdpMid !== void 0) {
|
|
6337
|
-
StringValue.encode({ value: message.sdpMid }, writer.uint32(18).fork()).ldelim();
|
|
6169
|
+
if (message.receiver_id !== "") {
|
|
6170
|
+
writer.uint32(10).string(message.receiver_id);
|
|
6338
6171
|
}
|
|
6339
|
-
if (message.
|
|
6340
|
-
|
|
6172
|
+
if (message.data_type !== 0) {
|
|
6173
|
+
writer.uint32(16).int32(message.data_type);
|
|
6341
6174
|
}
|
|
6342
|
-
if (message.
|
|
6343
|
-
|
|
6175
|
+
if (message.json_data !== "") {
|
|
6176
|
+
writer.uint32(26).string(message.json_data);
|
|
6344
6177
|
}
|
|
6345
6178
|
return writer;
|
|
6346
6179
|
},
|
|
6347
6180
|
decode(input, length) {
|
|
6348
6181
|
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
6349
6182
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6350
|
-
const message =
|
|
6183
|
+
const message = createBaseWebrtcSignalingFwd();
|
|
6351
6184
|
while (reader.pos < end) {
|
|
6352
6185
|
const tag = reader.uint32();
|
|
6353
6186
|
switch (tag >>> 3) {
|
|
@@ -6355,25 +6188,19 @@ var ICECandidateInit = {
|
|
|
6355
6188
|
if (tag !== 10) {
|
|
6356
6189
|
break;
|
|
6357
6190
|
}
|
|
6358
|
-
message.
|
|
6191
|
+
message.receiver_id = reader.string();
|
|
6359
6192
|
continue;
|
|
6360
6193
|
case 2:
|
|
6361
|
-
if (tag !==
|
|
6194
|
+
if (tag !== 16) {
|
|
6362
6195
|
break;
|
|
6363
6196
|
}
|
|
6364
|
-
message.
|
|
6197
|
+
message.data_type = reader.int32();
|
|
6365
6198
|
continue;
|
|
6366
6199
|
case 3:
|
|
6367
6200
|
if (tag !== 26) {
|
|
6368
6201
|
break;
|
|
6369
6202
|
}
|
|
6370
|
-
message.
|
|
6371
|
-
continue;
|
|
6372
|
-
case 4:
|
|
6373
|
-
if (tag !== 34) {
|
|
6374
|
-
break;
|
|
6375
|
-
}
|
|
6376
|
-
message.usernameFragment = StringValue.decode(reader, reader.uint32()).value;
|
|
6203
|
+
message.json_data = reader.string();
|
|
6377
6204
|
continue;
|
|
6378
6205
|
}
|
|
6379
6206
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -6385,38 +6212,33 @@ var ICECandidateInit = {
|
|
|
6385
6212
|
},
|
|
6386
6213
|
fromJSON(object) {
|
|
6387
6214
|
return {
|
|
6388
|
-
|
|
6389
|
-
|
|
6390
|
-
|
|
6391
|
-
usernameFragment: isSet4(object.usernameFragment) ? String(object.usernameFragment) : void 0
|
|
6215
|
+
receiver_id: isSet4(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
6216
|
+
data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
6217
|
+
json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : ""
|
|
6392
6218
|
};
|
|
6393
6219
|
},
|
|
6394
6220
|
toJSON(message) {
|
|
6395
6221
|
const obj = {};
|
|
6396
|
-
if (message.
|
|
6397
|
-
obj.
|
|
6398
|
-
}
|
|
6399
|
-
if (message.sdpMid !== void 0) {
|
|
6400
|
-
obj.sdpMid = message.sdpMid;
|
|
6222
|
+
if (message.receiver_id !== "") {
|
|
6223
|
+
obj.receiver_id = message.receiver_id;
|
|
6401
6224
|
}
|
|
6402
|
-
if (message.
|
|
6403
|
-
obj.
|
|
6225
|
+
if (message.data_type !== 0) {
|
|
6226
|
+
obj.data_type = Math.round(message.data_type);
|
|
6404
6227
|
}
|
|
6405
|
-
if (message.
|
|
6406
|
-
obj.
|
|
6228
|
+
if (message.json_data !== "") {
|
|
6229
|
+
obj.json_data = message.json_data;
|
|
6407
6230
|
}
|
|
6408
6231
|
return obj;
|
|
6409
6232
|
},
|
|
6410
6233
|
create(base) {
|
|
6411
|
-
return
|
|
6234
|
+
return WebrtcSignalingFwd.fromPartial(base != null ? base : {});
|
|
6412
6235
|
},
|
|
6413
6236
|
fromPartial(object) {
|
|
6414
|
-
var _a, _b, _c
|
|
6415
|
-
const message =
|
|
6416
|
-
message.
|
|
6417
|
-
message.
|
|
6418
|
-
message.
|
|
6419
|
-
message.usernameFragment = (_d = object.usernameFragment) != null ? _d : void 0;
|
|
6237
|
+
var _a, _b, _c;
|
|
6238
|
+
const message = createBaseWebrtcSignalingFwd();
|
|
6239
|
+
message.receiver_id = (_a = object.receiver_id) != null ? _a : "";
|
|
6240
|
+
message.data_type = (_b = object.data_type) != null ? _b : 0;
|
|
6241
|
+
message.json_data = (_c = object.json_data) != null ? _c : "";
|
|
6420
6242
|
return message;
|
|
6421
6243
|
}
|
|
6422
6244
|
};
|
|
@@ -5241,9 +5241,7 @@ function createBaseEnvelope() {
|
|
|
5241
5241
|
token_sent_event: void 0,
|
|
5242
5242
|
message_button_clicked: void 0,
|
|
5243
5243
|
unmute_event: void 0,
|
|
5244
|
-
|
|
5245
|
-
call_accept: void 0,
|
|
5246
|
-
ice_candidate_init: void 0
|
|
5244
|
+
webrtc_signaling_fwd: void 0
|
|
5247
5245
|
};
|
|
5248
5246
|
}
|
|
5249
5247
|
var Envelope = {
|
|
@@ -5431,14 +5429,8 @@ var Envelope = {
|
|
|
5431
5429
|
if (message.unmute_event !== void 0) {
|
|
5432
5430
|
UnmuteEvent.encode(message.unmute_event, writer.uint32(490).fork()).ldelim();
|
|
5433
5431
|
}
|
|
5434
|
-
if (message.
|
|
5435
|
-
|
|
5436
|
-
}
|
|
5437
|
-
if (message.call_accept !== void 0) {
|
|
5438
|
-
CallAccept.encode(message.call_accept, writer.uint32(506).fork()).ldelim();
|
|
5439
|
-
}
|
|
5440
|
-
if (message.ice_candidate_init !== void 0) {
|
|
5441
|
-
ICECandidateInit.encode(message.ice_candidate_init, writer.uint32(514).fork()).ldelim();
|
|
5432
|
+
if (message.webrtc_signaling_fwd !== void 0) {
|
|
5433
|
+
WebrtcSignalingFwd.encode(message.webrtc_signaling_fwd, writer.uint32(498).fork()).ldelim();
|
|
5442
5434
|
}
|
|
5443
5435
|
return writer;
|
|
5444
5436
|
},
|
|
@@ -5819,19 +5811,7 @@ var Envelope = {
|
|
|
5819
5811
|
if (tag !== 498) {
|
|
5820
5812
|
break;
|
|
5821
5813
|
}
|
|
5822
|
-
message.
|
|
5823
|
-
continue;
|
|
5824
|
-
case 63:
|
|
5825
|
-
if (tag !== 506) {
|
|
5826
|
-
break;
|
|
5827
|
-
}
|
|
5828
|
-
message.call_accept = CallAccept.decode(reader, reader.uint32());
|
|
5829
|
-
continue;
|
|
5830
|
-
case 64:
|
|
5831
|
-
if (tag !== 514) {
|
|
5832
|
-
break;
|
|
5833
|
-
}
|
|
5834
|
-
message.ice_candidate_init = ICECandidateInit.decode(reader, reader.uint32());
|
|
5814
|
+
message.webrtc_signaling_fwd = WebrtcSignalingFwd.decode(reader, reader.uint32());
|
|
5835
5815
|
continue;
|
|
5836
5816
|
}
|
|
5837
5817
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -5904,9 +5884,7 @@ var Envelope = {
|
|
|
5904
5884
|
token_sent_event: isSet4(object.token_sent_event) ? TokenSentEvent.fromJSON(object.token_sent_event) : void 0,
|
|
5905
5885
|
message_button_clicked: isSet4(object.message_button_clicked) ? MessageButtonClicked.fromJSON(object.message_button_clicked) : void 0,
|
|
5906
5886
|
unmute_event: isSet4(object.unmute_event) ? UnmuteEvent.fromJSON(object.unmute_event) : void 0,
|
|
5907
|
-
|
|
5908
|
-
call_accept: isSet4(object.call_accept) ? CallAccept.fromJSON(object.call_accept) : void 0,
|
|
5909
|
-
ice_candidate_init: isSet4(object.ice_candidate_init) ? ICECandidateInit.fromJSON(object.ice_candidate_init) : void 0
|
|
5887
|
+
webrtc_signaling_fwd: isSet4(object.webrtc_signaling_fwd) ? WebrtcSignalingFwd.fromJSON(object.webrtc_signaling_fwd) : void 0
|
|
5910
5888
|
};
|
|
5911
5889
|
},
|
|
5912
5890
|
toJSON(message) {
|
|
@@ -6094,14 +6072,8 @@ var Envelope = {
|
|
|
6094
6072
|
if (message.unmute_event !== void 0) {
|
|
6095
6073
|
obj.unmute_event = UnmuteEvent.toJSON(message.unmute_event);
|
|
6096
6074
|
}
|
|
6097
|
-
if (message.
|
|
6098
|
-
obj.
|
|
6099
|
-
}
|
|
6100
|
-
if (message.call_accept !== void 0) {
|
|
6101
|
-
obj.call_accept = CallAccept.toJSON(message.call_accept);
|
|
6102
|
-
}
|
|
6103
|
-
if (message.ice_candidate_init !== void 0) {
|
|
6104
|
-
obj.ice_candidate_init = ICECandidateInit.toJSON(message.ice_candidate_init);
|
|
6075
|
+
if (message.webrtc_signaling_fwd !== void 0) {
|
|
6076
|
+
obj.webrtc_signaling_fwd = WebrtcSignalingFwd.toJSON(message.webrtc_signaling_fwd);
|
|
6105
6077
|
}
|
|
6106
6078
|
return obj;
|
|
6107
6079
|
},
|
|
@@ -6172,169 +6144,30 @@ var Envelope = {
|
|
|
6172
6144
|
message.token_sent_event = object.token_sent_event !== void 0 && object.token_sent_event !== null ? TokenSentEvent.fromPartial(object.token_sent_event) : void 0;
|
|
6173
6145
|
message.message_button_clicked = object.message_button_clicked !== void 0 && object.message_button_clicked !== null ? MessageButtonClicked.fromPartial(object.message_button_clicked) : void 0;
|
|
6174
6146
|
message.unmute_event = object.unmute_event !== void 0 && object.unmute_event !== null ? UnmuteEvent.fromPartial(object.unmute_event) : void 0;
|
|
6175
|
-
message.
|
|
6176
|
-
message.call_accept = object.call_accept !== void 0 && object.call_accept !== null ? CallAccept.fromPartial(object.call_accept) : void 0;
|
|
6177
|
-
message.ice_candidate_init = object.ice_candidate_init !== void 0 && object.ice_candidate_init !== null ? ICECandidateInit.fromPartial(object.ice_candidate_init) : void 0;
|
|
6178
|
-
return message;
|
|
6179
|
-
}
|
|
6180
|
-
};
|
|
6181
|
-
function createBaseCallRequest() {
|
|
6182
|
-
return { type: "", sdp: "" };
|
|
6183
|
-
}
|
|
6184
|
-
var CallRequest = {
|
|
6185
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
6186
|
-
if (message.type !== "") {
|
|
6187
|
-
writer.uint32(10).string(message.type);
|
|
6188
|
-
}
|
|
6189
|
-
if (message.sdp !== "") {
|
|
6190
|
-
writer.uint32(18).string(message.sdp);
|
|
6191
|
-
}
|
|
6192
|
-
return writer;
|
|
6193
|
-
},
|
|
6194
|
-
decode(input, length) {
|
|
6195
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
6196
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6197
|
-
const message = createBaseCallRequest();
|
|
6198
|
-
while (reader.pos < end) {
|
|
6199
|
-
const tag = reader.uint32();
|
|
6200
|
-
switch (tag >>> 3) {
|
|
6201
|
-
case 1:
|
|
6202
|
-
if (tag !== 10) {
|
|
6203
|
-
break;
|
|
6204
|
-
}
|
|
6205
|
-
message.type = reader.string();
|
|
6206
|
-
continue;
|
|
6207
|
-
case 2:
|
|
6208
|
-
if (tag !== 18) {
|
|
6209
|
-
break;
|
|
6210
|
-
}
|
|
6211
|
-
message.sdp = reader.string();
|
|
6212
|
-
continue;
|
|
6213
|
-
}
|
|
6214
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6215
|
-
break;
|
|
6216
|
-
}
|
|
6217
|
-
reader.skipType(tag & 7);
|
|
6218
|
-
}
|
|
6219
|
-
return message;
|
|
6220
|
-
},
|
|
6221
|
-
fromJSON(object) {
|
|
6222
|
-
return {
|
|
6223
|
-
type: isSet4(object.type) ? globalThis.String(object.type) : "",
|
|
6224
|
-
sdp: isSet4(object.sdp) ? globalThis.String(object.sdp) : ""
|
|
6225
|
-
};
|
|
6226
|
-
},
|
|
6227
|
-
toJSON(message) {
|
|
6228
|
-
const obj = {};
|
|
6229
|
-
if (message.type !== "") {
|
|
6230
|
-
obj.type = message.type;
|
|
6231
|
-
}
|
|
6232
|
-
if (message.sdp !== "") {
|
|
6233
|
-
obj.sdp = message.sdp;
|
|
6234
|
-
}
|
|
6235
|
-
return obj;
|
|
6236
|
-
},
|
|
6237
|
-
create(base) {
|
|
6238
|
-
return CallRequest.fromPartial(base != null ? base : {});
|
|
6239
|
-
},
|
|
6240
|
-
fromPartial(object) {
|
|
6241
|
-
var _a, _b;
|
|
6242
|
-
const message = createBaseCallRequest();
|
|
6243
|
-
message.type = (_a = object.type) != null ? _a : "";
|
|
6244
|
-
message.sdp = (_b = object.sdp) != null ? _b : "";
|
|
6147
|
+
message.webrtc_signaling_fwd = object.webrtc_signaling_fwd !== void 0 && object.webrtc_signaling_fwd !== null ? WebrtcSignalingFwd.fromPartial(object.webrtc_signaling_fwd) : void 0;
|
|
6245
6148
|
return message;
|
|
6246
6149
|
}
|
|
6247
6150
|
};
|
|
6248
|
-
function
|
|
6249
|
-
return {
|
|
6151
|
+
function createBaseWebrtcSignalingFwd() {
|
|
6152
|
+
return { receiver_id: "", data_type: 0, json_data: "" };
|
|
6250
6153
|
}
|
|
6251
|
-
var
|
|
6154
|
+
var WebrtcSignalingFwd = {
|
|
6252
6155
|
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
6253
|
-
if (message.
|
|
6254
|
-
writer.uint32(10).string(message.
|
|
6255
|
-
}
|
|
6256
|
-
if (message.sdp !== "") {
|
|
6257
|
-
writer.uint32(18).string(message.sdp);
|
|
6258
|
-
}
|
|
6259
|
-
return writer;
|
|
6260
|
-
},
|
|
6261
|
-
decode(input, length) {
|
|
6262
|
-
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
6263
|
-
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6264
|
-
const message = createBaseCallAccept();
|
|
6265
|
-
while (reader.pos < end) {
|
|
6266
|
-
const tag = reader.uint32();
|
|
6267
|
-
switch (tag >>> 3) {
|
|
6268
|
-
case 1:
|
|
6269
|
-
if (tag !== 10) {
|
|
6270
|
-
break;
|
|
6271
|
-
}
|
|
6272
|
-
message.type = reader.string();
|
|
6273
|
-
continue;
|
|
6274
|
-
case 2:
|
|
6275
|
-
if (tag !== 18) {
|
|
6276
|
-
break;
|
|
6277
|
-
}
|
|
6278
|
-
message.sdp = reader.string();
|
|
6279
|
-
continue;
|
|
6280
|
-
}
|
|
6281
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
6282
|
-
break;
|
|
6283
|
-
}
|
|
6284
|
-
reader.skipType(tag & 7);
|
|
6285
|
-
}
|
|
6286
|
-
return message;
|
|
6287
|
-
},
|
|
6288
|
-
fromJSON(object) {
|
|
6289
|
-
return {
|
|
6290
|
-
type: isSet4(object.type) ? globalThis.String(object.type) : "",
|
|
6291
|
-
sdp: isSet4(object.sdp) ? globalThis.String(object.sdp) : ""
|
|
6292
|
-
};
|
|
6293
|
-
},
|
|
6294
|
-
toJSON(message) {
|
|
6295
|
-
const obj = {};
|
|
6296
|
-
if (message.type !== "") {
|
|
6297
|
-
obj.type = message.type;
|
|
6298
|
-
}
|
|
6299
|
-
if (message.sdp !== "") {
|
|
6300
|
-
obj.sdp = message.sdp;
|
|
6301
|
-
}
|
|
6302
|
-
return obj;
|
|
6303
|
-
},
|
|
6304
|
-
create(base) {
|
|
6305
|
-
return CallAccept.fromPartial(base != null ? base : {});
|
|
6306
|
-
},
|
|
6307
|
-
fromPartial(object) {
|
|
6308
|
-
var _a, _b;
|
|
6309
|
-
const message = createBaseCallAccept();
|
|
6310
|
-
message.type = (_a = object.type) != null ? _a : "";
|
|
6311
|
-
message.sdp = (_b = object.sdp) != null ? _b : "";
|
|
6312
|
-
return message;
|
|
6313
|
-
}
|
|
6314
|
-
};
|
|
6315
|
-
function createBaseICECandidateInit() {
|
|
6316
|
-
return { candidate: "", sdpMid: void 0, sdpMLineIndex: void 0, usernameFragment: void 0 };
|
|
6317
|
-
}
|
|
6318
|
-
var ICECandidateInit = {
|
|
6319
|
-
encode(message, writer = import_minimal5.default.Writer.create()) {
|
|
6320
|
-
if (message.candidate !== "") {
|
|
6321
|
-
writer.uint32(10).string(message.candidate);
|
|
6322
|
-
}
|
|
6323
|
-
if (message.sdpMid !== void 0) {
|
|
6324
|
-
StringValue.encode({ value: message.sdpMid }, writer.uint32(18).fork()).ldelim();
|
|
6156
|
+
if (message.receiver_id !== "") {
|
|
6157
|
+
writer.uint32(10).string(message.receiver_id);
|
|
6325
6158
|
}
|
|
6326
|
-
if (message.
|
|
6327
|
-
|
|
6159
|
+
if (message.data_type !== 0) {
|
|
6160
|
+
writer.uint32(16).int32(message.data_type);
|
|
6328
6161
|
}
|
|
6329
|
-
if (message.
|
|
6330
|
-
|
|
6162
|
+
if (message.json_data !== "") {
|
|
6163
|
+
writer.uint32(26).string(message.json_data);
|
|
6331
6164
|
}
|
|
6332
6165
|
return writer;
|
|
6333
6166
|
},
|
|
6334
6167
|
decode(input, length) {
|
|
6335
6168
|
const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
|
|
6336
6169
|
let end = length === void 0 ? reader.len : reader.pos + length;
|
|
6337
|
-
const message =
|
|
6170
|
+
const message = createBaseWebrtcSignalingFwd();
|
|
6338
6171
|
while (reader.pos < end) {
|
|
6339
6172
|
const tag = reader.uint32();
|
|
6340
6173
|
switch (tag >>> 3) {
|
|
@@ -6342,25 +6175,19 @@ var ICECandidateInit = {
|
|
|
6342
6175
|
if (tag !== 10) {
|
|
6343
6176
|
break;
|
|
6344
6177
|
}
|
|
6345
|
-
message.
|
|
6178
|
+
message.receiver_id = reader.string();
|
|
6346
6179
|
continue;
|
|
6347
6180
|
case 2:
|
|
6348
|
-
if (tag !==
|
|
6181
|
+
if (tag !== 16) {
|
|
6349
6182
|
break;
|
|
6350
6183
|
}
|
|
6351
|
-
message.
|
|
6184
|
+
message.data_type = reader.int32();
|
|
6352
6185
|
continue;
|
|
6353
6186
|
case 3:
|
|
6354
6187
|
if (tag !== 26) {
|
|
6355
6188
|
break;
|
|
6356
6189
|
}
|
|
6357
|
-
message.
|
|
6358
|
-
continue;
|
|
6359
|
-
case 4:
|
|
6360
|
-
if (tag !== 34) {
|
|
6361
|
-
break;
|
|
6362
|
-
}
|
|
6363
|
-
message.usernameFragment = StringValue.decode(reader, reader.uint32()).value;
|
|
6190
|
+
message.json_data = reader.string();
|
|
6364
6191
|
continue;
|
|
6365
6192
|
}
|
|
6366
6193
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -6372,38 +6199,33 @@ var ICECandidateInit = {
|
|
|
6372
6199
|
},
|
|
6373
6200
|
fromJSON(object) {
|
|
6374
6201
|
return {
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
usernameFragment: isSet4(object.usernameFragment) ? String(object.usernameFragment) : void 0
|
|
6202
|
+
receiver_id: isSet4(object.receiver_id) ? globalThis.String(object.receiver_id) : "",
|
|
6203
|
+
data_type: isSet4(object.data_type) ? globalThis.Number(object.data_type) : 0,
|
|
6204
|
+
json_data: isSet4(object.json_data) ? globalThis.String(object.json_data) : ""
|
|
6379
6205
|
};
|
|
6380
6206
|
},
|
|
6381
6207
|
toJSON(message) {
|
|
6382
6208
|
const obj = {};
|
|
6383
|
-
if (message.
|
|
6384
|
-
obj.
|
|
6385
|
-
}
|
|
6386
|
-
if (message.sdpMid !== void 0) {
|
|
6387
|
-
obj.sdpMid = message.sdpMid;
|
|
6209
|
+
if (message.receiver_id !== "") {
|
|
6210
|
+
obj.receiver_id = message.receiver_id;
|
|
6388
6211
|
}
|
|
6389
|
-
if (message.
|
|
6390
|
-
obj.
|
|
6212
|
+
if (message.data_type !== 0) {
|
|
6213
|
+
obj.data_type = Math.round(message.data_type);
|
|
6391
6214
|
}
|
|
6392
|
-
if (message.
|
|
6393
|
-
obj.
|
|
6215
|
+
if (message.json_data !== "") {
|
|
6216
|
+
obj.json_data = message.json_data;
|
|
6394
6217
|
}
|
|
6395
6218
|
return obj;
|
|
6396
6219
|
},
|
|
6397
6220
|
create(base) {
|
|
6398
|
-
return
|
|
6221
|
+
return WebrtcSignalingFwd.fromPartial(base != null ? base : {});
|
|
6399
6222
|
},
|
|
6400
6223
|
fromPartial(object) {
|
|
6401
|
-
var _a, _b, _c
|
|
6402
|
-
const message =
|
|
6403
|
-
message.
|
|
6404
|
-
message.
|
|
6405
|
-
message.
|
|
6406
|
-
message.usernameFragment = (_d = object.usernameFragment) != null ? _d : void 0;
|
|
6224
|
+
var _a, _b, _c;
|
|
6225
|
+
const message = createBaseWebrtcSignalingFwd();
|
|
6226
|
+
message.receiver_id = (_a = object.receiver_id) != null ? _a : "";
|
|
6227
|
+
message.data_type = (_b = object.data_type) != null ? _b : 0;
|
|
6228
|
+
message.json_data = (_c = object.json_data) != null ? _c : "";
|
|
6407
6229
|
return message;
|
|
6408
6230
|
}
|
|
6409
6231
|
};
|