@norskvideo/norsk-api 1.0.368 → 1.0.372
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/lib/media_grpc_pb.d.ts +16 -0
- package/lib/media_grpc_pb.js +33 -0
- package/lib/media_pb.d.ts +309 -0
- package/lib/media_pb.js +362 -7
- package/lib/media_pb.js.map +1 -1
- package/lib/media_pb.ts +529 -0
- package/package.json +1 -1
package/lib/media_pb.ts
CHANGED
|
@@ -14183,6 +14183,535 @@ proto3.util.setEnumType(WhepOutputEvent_State, "norsk.api.media.WhepOutputEvent.
|
|
|
14183
14183
|
{ no: 1, name: "WHEP_OUTPUT_STATUS_READY" },
|
|
14184
14184
|
]);
|
|
14185
14185
|
|
|
14186
|
+
/**
|
|
14187
|
+
* @generated from message norsk.api.media.SipConfiguration
|
|
14188
|
+
*/
|
|
14189
|
+
export class SipConfiguration extends Message<SipConfiguration> {
|
|
14190
|
+
/**
|
|
14191
|
+
* @generated from field: norsk.api.media.MediaNodeId id = 1;
|
|
14192
|
+
*/
|
|
14193
|
+
id?: MediaNodeId;
|
|
14194
|
+
|
|
14195
|
+
/**
|
|
14196
|
+
* @generated from field: norsk.api.media.StreamStatisticsSampling stats_sampling = 2;
|
|
14197
|
+
*/
|
|
14198
|
+
statsSampling?: StreamStatisticsSampling;
|
|
14199
|
+
|
|
14200
|
+
/**
|
|
14201
|
+
* @generated from field: norsk.api.media.SipAccount account = 3;
|
|
14202
|
+
*/
|
|
14203
|
+
account?: SipAccount;
|
|
14204
|
+
|
|
14205
|
+
/**
|
|
14206
|
+
* @generated from field: norsk.api.common.OptionalInt buffer_delay_ms = 4;
|
|
14207
|
+
*/
|
|
14208
|
+
bufferDelayMs?: OptionalInt;
|
|
14209
|
+
|
|
14210
|
+
/**
|
|
14211
|
+
* @generated from field: norsk.api.media.SipCall call = 5;
|
|
14212
|
+
*/
|
|
14213
|
+
call?: SipCall;
|
|
14214
|
+
|
|
14215
|
+
/**
|
|
14216
|
+
* @generated from field: string source_name = 6;
|
|
14217
|
+
*/
|
|
14218
|
+
sourceName = "";
|
|
14219
|
+
|
|
14220
|
+
constructor(data?: PartialMessage<SipConfiguration>) {
|
|
14221
|
+
super();
|
|
14222
|
+
proto3.util.initPartial(data, this);
|
|
14223
|
+
}
|
|
14224
|
+
|
|
14225
|
+
static readonly runtime = proto3;
|
|
14226
|
+
static readonly typeName = "norsk.api.media.SipConfiguration";
|
|
14227
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14228
|
+
{ no: 1, name: "id", kind: "message", T: MediaNodeId },
|
|
14229
|
+
{ no: 2, name: "stats_sampling", kind: "message", T: StreamStatisticsSampling },
|
|
14230
|
+
{ no: 3, name: "account", kind: "message", T: SipAccount },
|
|
14231
|
+
{ no: 4, name: "buffer_delay_ms", kind: "message", T: OptionalInt },
|
|
14232
|
+
{ no: 5, name: "call", kind: "message", T: SipCall },
|
|
14233
|
+
{ no: 6, name: "source_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
14234
|
+
]);
|
|
14235
|
+
|
|
14236
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipConfiguration {
|
|
14237
|
+
return new SipConfiguration().fromBinary(bytes, options);
|
|
14238
|
+
}
|
|
14239
|
+
|
|
14240
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipConfiguration {
|
|
14241
|
+
return new SipConfiguration().fromJson(jsonValue, options);
|
|
14242
|
+
}
|
|
14243
|
+
|
|
14244
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipConfiguration {
|
|
14245
|
+
return new SipConfiguration().fromJsonString(jsonString, options);
|
|
14246
|
+
}
|
|
14247
|
+
|
|
14248
|
+
static equals(a: SipConfiguration | PlainMessage<SipConfiguration> | undefined, b: SipConfiguration | PlainMessage<SipConfiguration> | undefined): boolean {
|
|
14249
|
+
return proto3.util.equals(SipConfiguration, a, b);
|
|
14250
|
+
}
|
|
14251
|
+
}
|
|
14252
|
+
|
|
14253
|
+
/**
|
|
14254
|
+
* @generated from message norsk.api.media.SipAccount
|
|
14255
|
+
*/
|
|
14256
|
+
export class SipAccount extends Message<SipAccount> {
|
|
14257
|
+
/**
|
|
14258
|
+
* @generated from field: string id = 1;
|
|
14259
|
+
*/
|
|
14260
|
+
id = "";
|
|
14261
|
+
|
|
14262
|
+
/**
|
|
14263
|
+
* @generated from field: norsk.api.media.SipCredentials credentials = 2;
|
|
14264
|
+
*/
|
|
14265
|
+
credentials?: SipCredentials;
|
|
14266
|
+
|
|
14267
|
+
/**
|
|
14268
|
+
* @generated from field: string reg_uri = 3;
|
|
14269
|
+
*/
|
|
14270
|
+
regUri = "";
|
|
14271
|
+
|
|
14272
|
+
constructor(data?: PartialMessage<SipAccount>) {
|
|
14273
|
+
super();
|
|
14274
|
+
proto3.util.initPartial(data, this);
|
|
14275
|
+
}
|
|
14276
|
+
|
|
14277
|
+
static readonly runtime = proto3;
|
|
14278
|
+
static readonly typeName = "norsk.api.media.SipAccount";
|
|
14279
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14280
|
+
{ no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
14281
|
+
{ no: 2, name: "credentials", kind: "message", T: SipCredentials },
|
|
14282
|
+
{ no: 3, name: "reg_uri", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
14283
|
+
]);
|
|
14284
|
+
|
|
14285
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipAccount {
|
|
14286
|
+
return new SipAccount().fromBinary(bytes, options);
|
|
14287
|
+
}
|
|
14288
|
+
|
|
14289
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipAccount {
|
|
14290
|
+
return new SipAccount().fromJson(jsonValue, options);
|
|
14291
|
+
}
|
|
14292
|
+
|
|
14293
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipAccount {
|
|
14294
|
+
return new SipAccount().fromJsonString(jsonString, options);
|
|
14295
|
+
}
|
|
14296
|
+
|
|
14297
|
+
static equals(a: SipAccount | PlainMessage<SipAccount> | undefined, b: SipAccount | PlainMessage<SipAccount> | undefined): boolean {
|
|
14298
|
+
return proto3.util.equals(SipAccount, a, b);
|
|
14299
|
+
}
|
|
14300
|
+
}
|
|
14301
|
+
|
|
14302
|
+
/**
|
|
14303
|
+
* @generated from message norsk.api.media.SipCredentials
|
|
14304
|
+
*/
|
|
14305
|
+
export class SipCredentials extends Message<SipCredentials> {
|
|
14306
|
+
/**
|
|
14307
|
+
* @generated from field: string realm = 1;
|
|
14308
|
+
*/
|
|
14309
|
+
realm = "";
|
|
14310
|
+
|
|
14311
|
+
/**
|
|
14312
|
+
* @generated from field: string username = 2;
|
|
14313
|
+
*/
|
|
14314
|
+
username = "";
|
|
14315
|
+
|
|
14316
|
+
/**
|
|
14317
|
+
* @generated from field: norsk.api.media.SipCredentialData credential = 3;
|
|
14318
|
+
*/
|
|
14319
|
+
credential?: SipCredentialData;
|
|
14320
|
+
|
|
14321
|
+
constructor(data?: PartialMessage<SipCredentials>) {
|
|
14322
|
+
super();
|
|
14323
|
+
proto3.util.initPartial(data, this);
|
|
14324
|
+
}
|
|
14325
|
+
|
|
14326
|
+
static readonly runtime = proto3;
|
|
14327
|
+
static readonly typeName = "norsk.api.media.SipCredentials";
|
|
14328
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14329
|
+
{ no: 1, name: "realm", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
14330
|
+
{ no: 2, name: "username", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
14331
|
+
{ no: 3, name: "credential", kind: "message", T: SipCredentialData },
|
|
14332
|
+
]);
|
|
14333
|
+
|
|
14334
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipCredentials {
|
|
14335
|
+
return new SipCredentials().fromBinary(bytes, options);
|
|
14336
|
+
}
|
|
14337
|
+
|
|
14338
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipCredentials {
|
|
14339
|
+
return new SipCredentials().fromJson(jsonValue, options);
|
|
14340
|
+
}
|
|
14341
|
+
|
|
14342
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipCredentials {
|
|
14343
|
+
return new SipCredentials().fromJsonString(jsonString, options);
|
|
14344
|
+
}
|
|
14345
|
+
|
|
14346
|
+
static equals(a: SipCredentials | PlainMessage<SipCredentials> | undefined, b: SipCredentials | PlainMessage<SipCredentials> | undefined): boolean {
|
|
14347
|
+
return proto3.util.equals(SipCredentials, a, b);
|
|
14348
|
+
}
|
|
14349
|
+
}
|
|
14350
|
+
|
|
14351
|
+
/**
|
|
14352
|
+
* @generated from message norsk.api.media.SipCredentialData
|
|
14353
|
+
*/
|
|
14354
|
+
export class SipCredentialData extends Message<SipCredentialData> {
|
|
14355
|
+
/**
|
|
14356
|
+
* @generated from oneof norsk.api.media.SipCredentialData.message
|
|
14357
|
+
*/
|
|
14358
|
+
message: {
|
|
14359
|
+
/**
|
|
14360
|
+
* @generated from field: string plain = 1;
|
|
14361
|
+
*/
|
|
14362
|
+
value: string;
|
|
14363
|
+
case: "plain";
|
|
14364
|
+
} | {
|
|
14365
|
+
/**
|
|
14366
|
+
* @generated from field: string digest = 2;
|
|
14367
|
+
*/
|
|
14368
|
+
value: string;
|
|
14369
|
+
case: "digest";
|
|
14370
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
14371
|
+
|
|
14372
|
+
constructor(data?: PartialMessage<SipCredentialData>) {
|
|
14373
|
+
super();
|
|
14374
|
+
proto3.util.initPartial(data, this);
|
|
14375
|
+
}
|
|
14376
|
+
|
|
14377
|
+
static readonly runtime = proto3;
|
|
14378
|
+
static readonly typeName = "norsk.api.media.SipCredentialData";
|
|
14379
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14380
|
+
{ no: 1, name: "plain", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" },
|
|
14381
|
+
{ no: 2, name: "digest", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "message" },
|
|
14382
|
+
]);
|
|
14383
|
+
|
|
14384
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipCredentialData {
|
|
14385
|
+
return new SipCredentialData().fromBinary(bytes, options);
|
|
14386
|
+
}
|
|
14387
|
+
|
|
14388
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipCredentialData {
|
|
14389
|
+
return new SipCredentialData().fromJson(jsonValue, options);
|
|
14390
|
+
}
|
|
14391
|
+
|
|
14392
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipCredentialData {
|
|
14393
|
+
return new SipCredentialData().fromJsonString(jsonString, options);
|
|
14394
|
+
}
|
|
14395
|
+
|
|
14396
|
+
static equals(a: SipCredentialData | PlainMessage<SipCredentialData> | undefined, b: SipCredentialData | PlainMessage<SipCredentialData> | undefined): boolean {
|
|
14397
|
+
return proto3.util.equals(SipCredentialData, a, b);
|
|
14398
|
+
}
|
|
14399
|
+
}
|
|
14400
|
+
|
|
14401
|
+
/**
|
|
14402
|
+
* @generated from message norsk.api.media.SipCall
|
|
14403
|
+
*/
|
|
14404
|
+
export class SipCall extends Message<SipCall> {
|
|
14405
|
+
/**
|
|
14406
|
+
* @generated from field: string address = 1;
|
|
14407
|
+
*/
|
|
14408
|
+
address = "";
|
|
14409
|
+
|
|
14410
|
+
constructor(data?: PartialMessage<SipCall>) {
|
|
14411
|
+
super();
|
|
14412
|
+
proto3.util.initPartial(data, this);
|
|
14413
|
+
}
|
|
14414
|
+
|
|
14415
|
+
static readonly runtime = proto3;
|
|
14416
|
+
static readonly typeName = "norsk.api.media.SipCall";
|
|
14417
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14418
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
14419
|
+
]);
|
|
14420
|
+
|
|
14421
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipCall {
|
|
14422
|
+
return new SipCall().fromBinary(bytes, options);
|
|
14423
|
+
}
|
|
14424
|
+
|
|
14425
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipCall {
|
|
14426
|
+
return new SipCall().fromJson(jsonValue, options);
|
|
14427
|
+
}
|
|
14428
|
+
|
|
14429
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipCall {
|
|
14430
|
+
return new SipCall().fromJsonString(jsonString, options);
|
|
14431
|
+
}
|
|
14432
|
+
|
|
14433
|
+
static equals(a: SipCall | PlainMessage<SipCall> | undefined, b: SipCall | PlainMessage<SipCall> | undefined): boolean {
|
|
14434
|
+
return proto3.util.equals(SipCall, a, b);
|
|
14435
|
+
}
|
|
14436
|
+
}
|
|
14437
|
+
|
|
14438
|
+
/**
|
|
14439
|
+
* @generated from message norsk.api.media.SipMessage
|
|
14440
|
+
*/
|
|
14441
|
+
export class SipMessage extends Message<SipMessage> {
|
|
14442
|
+
/**
|
|
14443
|
+
* @generated from oneof norsk.api.media.SipMessage.message
|
|
14444
|
+
*/
|
|
14445
|
+
message: {
|
|
14446
|
+
/**
|
|
14447
|
+
* @generated from field: norsk.api.media.Subscription subscription = 1;
|
|
14448
|
+
*/
|
|
14449
|
+
value: Subscription;
|
|
14450
|
+
case: "subscription";
|
|
14451
|
+
} | {
|
|
14452
|
+
/**
|
|
14453
|
+
* @generated from field: norsk.api.media.SipConfiguration configuration = 2;
|
|
14454
|
+
*/
|
|
14455
|
+
value: SipConfiguration;
|
|
14456
|
+
case: "configuration";
|
|
14457
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
14458
|
+
|
|
14459
|
+
constructor(data?: PartialMessage<SipMessage>) {
|
|
14460
|
+
super();
|
|
14461
|
+
proto3.util.initPartial(data, this);
|
|
14462
|
+
}
|
|
14463
|
+
|
|
14464
|
+
static readonly runtime = proto3;
|
|
14465
|
+
static readonly typeName = "norsk.api.media.SipMessage";
|
|
14466
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14467
|
+
{ no: 1, name: "subscription", kind: "message", T: Subscription, oneof: "message" },
|
|
14468
|
+
{ no: 2, name: "configuration", kind: "message", T: SipConfiguration, oneof: "message" },
|
|
14469
|
+
]);
|
|
14470
|
+
|
|
14471
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipMessage {
|
|
14472
|
+
return new SipMessage().fromBinary(bytes, options);
|
|
14473
|
+
}
|
|
14474
|
+
|
|
14475
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipMessage {
|
|
14476
|
+
return new SipMessage().fromJson(jsonValue, options);
|
|
14477
|
+
}
|
|
14478
|
+
|
|
14479
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipMessage {
|
|
14480
|
+
return new SipMessage().fromJsonString(jsonString, options);
|
|
14481
|
+
}
|
|
14482
|
+
|
|
14483
|
+
static equals(a: SipMessage | PlainMessage<SipMessage> | undefined, b: SipMessage | PlainMessage<SipMessage> | undefined): boolean {
|
|
14484
|
+
return proto3.util.equals(SipMessage, a, b);
|
|
14485
|
+
}
|
|
14486
|
+
}
|
|
14487
|
+
|
|
14488
|
+
/**
|
|
14489
|
+
* @generated from message norsk.api.media.SipStreamStatistics
|
|
14490
|
+
*/
|
|
14491
|
+
export class SipStreamStatistics extends Message<SipStreamStatistics> {
|
|
14492
|
+
/**
|
|
14493
|
+
* @generated from field: uint32 num_bytes = 1;
|
|
14494
|
+
*/
|
|
14495
|
+
numBytes = 0;
|
|
14496
|
+
|
|
14497
|
+
/**
|
|
14498
|
+
* @generated from field: uint32 num_packets = 2;
|
|
14499
|
+
*/
|
|
14500
|
+
numPackets = 0;
|
|
14501
|
+
|
|
14502
|
+
constructor(data?: PartialMessage<SipStreamStatistics>) {
|
|
14503
|
+
super();
|
|
14504
|
+
proto3.util.initPartial(data, this);
|
|
14505
|
+
}
|
|
14506
|
+
|
|
14507
|
+
static readonly runtime = proto3;
|
|
14508
|
+
static readonly typeName = "norsk.api.media.SipStreamStatistics";
|
|
14509
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14510
|
+
{ no: 1, name: "num_bytes", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
14511
|
+
{ no: 2, name: "num_packets", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
14512
|
+
]);
|
|
14513
|
+
|
|
14514
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipStreamStatistics {
|
|
14515
|
+
return new SipStreamStatistics().fromBinary(bytes, options);
|
|
14516
|
+
}
|
|
14517
|
+
|
|
14518
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipStreamStatistics {
|
|
14519
|
+
return new SipStreamStatistics().fromJson(jsonValue, options);
|
|
14520
|
+
}
|
|
14521
|
+
|
|
14522
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipStreamStatistics {
|
|
14523
|
+
return new SipStreamStatistics().fromJsonString(jsonString, options);
|
|
14524
|
+
}
|
|
14525
|
+
|
|
14526
|
+
static equals(a: SipStreamStatistics | PlainMessage<SipStreamStatistics> | undefined, b: SipStreamStatistics | PlainMessage<SipStreamStatistics> | undefined): boolean {
|
|
14527
|
+
return proto3.util.equals(SipStreamStatistics, a, b);
|
|
14528
|
+
}
|
|
14529
|
+
}
|
|
14530
|
+
|
|
14531
|
+
/**
|
|
14532
|
+
* @generated from message norsk.api.media.SipConnectionStatistics
|
|
14533
|
+
*/
|
|
14534
|
+
export class SipConnectionStatistics extends Message<SipConnectionStatistics> {
|
|
14535
|
+
/**
|
|
14536
|
+
* @generated from field: norsk.api.media.SipStreamStatistics send = 1;
|
|
14537
|
+
*/
|
|
14538
|
+
send?: SipStreamStatistics;
|
|
14539
|
+
|
|
14540
|
+
/**
|
|
14541
|
+
* @generated from field: norsk.api.media.SipStreamStatistics recv = 2;
|
|
14542
|
+
*/
|
|
14543
|
+
recv?: SipStreamStatistics;
|
|
14544
|
+
|
|
14545
|
+
constructor(data?: PartialMessage<SipConnectionStatistics>) {
|
|
14546
|
+
super();
|
|
14547
|
+
proto3.util.initPartial(data, this);
|
|
14548
|
+
}
|
|
14549
|
+
|
|
14550
|
+
static readonly runtime = proto3;
|
|
14551
|
+
static readonly typeName = "norsk.api.media.SipConnectionStatistics";
|
|
14552
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14553
|
+
{ no: 1, name: "send", kind: "message", T: SipStreamStatistics },
|
|
14554
|
+
{ no: 2, name: "recv", kind: "message", T: SipStreamStatistics },
|
|
14555
|
+
]);
|
|
14556
|
+
|
|
14557
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipConnectionStatistics {
|
|
14558
|
+
return new SipConnectionStatistics().fromBinary(bytes, options);
|
|
14559
|
+
}
|
|
14560
|
+
|
|
14561
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipConnectionStatistics {
|
|
14562
|
+
return new SipConnectionStatistics().fromJson(jsonValue, options);
|
|
14563
|
+
}
|
|
14564
|
+
|
|
14565
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipConnectionStatistics {
|
|
14566
|
+
return new SipConnectionStatistics().fromJsonString(jsonString, options);
|
|
14567
|
+
}
|
|
14568
|
+
|
|
14569
|
+
static equals(a: SipConnectionStatistics | PlainMessage<SipConnectionStatistics> | undefined, b: SipConnectionStatistics | PlainMessage<SipConnectionStatistics> | undefined): boolean {
|
|
14570
|
+
return proto3.util.equals(SipConnectionStatistics, a, b);
|
|
14571
|
+
}
|
|
14572
|
+
}
|
|
14573
|
+
|
|
14574
|
+
/**
|
|
14575
|
+
* @generated from message norsk.api.media.SipEvent
|
|
14576
|
+
*/
|
|
14577
|
+
export class SipEvent extends Message<SipEvent> {
|
|
14578
|
+
/**
|
|
14579
|
+
* @generated from oneof norsk.api.media.SipEvent.message
|
|
14580
|
+
*/
|
|
14581
|
+
message: {
|
|
14582
|
+
/**
|
|
14583
|
+
* @generated from field: norsk.api.media.MediaNodeId node_id = 1;
|
|
14584
|
+
*/
|
|
14585
|
+
value: MediaNodeId;
|
|
14586
|
+
case: "nodeId";
|
|
14587
|
+
} | {
|
|
14588
|
+
/**
|
|
14589
|
+
* @generated from field: norsk.api.media.SubscriptionResponse subscription_response = 2;
|
|
14590
|
+
*/
|
|
14591
|
+
value: SubscriptionResponse;
|
|
14592
|
+
case: "subscriptionResponse";
|
|
14593
|
+
} | {
|
|
14594
|
+
/**
|
|
14595
|
+
* @generated from field: norsk.api.media.Context inbound_context = 3;
|
|
14596
|
+
*/
|
|
14597
|
+
value: Context;
|
|
14598
|
+
case: "inboundContext";
|
|
14599
|
+
} | {
|
|
14600
|
+
/**
|
|
14601
|
+
* @generated from field: norsk.api.media.Context outbound_context = 4;
|
|
14602
|
+
*/
|
|
14603
|
+
value: Context;
|
|
14604
|
+
case: "outboundContext";
|
|
14605
|
+
} | {
|
|
14606
|
+
/**
|
|
14607
|
+
* @generated from field: norsk.api.media.MultiStreamStatistics stream_statistics = 5;
|
|
14608
|
+
*/
|
|
14609
|
+
value: MultiStreamStatistics;
|
|
14610
|
+
case: "streamStatistics";
|
|
14611
|
+
} | {
|
|
14612
|
+
/**
|
|
14613
|
+
* @generated from field: norsk.api.media.SipEvent.Status status = 6;
|
|
14614
|
+
*/
|
|
14615
|
+
value: SipEvent_Status;
|
|
14616
|
+
case: "status";
|
|
14617
|
+
} | {
|
|
14618
|
+
/**
|
|
14619
|
+
* @generated from field: norsk.api.media.SipConnectionStatistics connection_statistics = 7;
|
|
14620
|
+
*/
|
|
14621
|
+
value: SipConnectionStatistics;
|
|
14622
|
+
case: "connectionStatistics";
|
|
14623
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
14624
|
+
|
|
14625
|
+
constructor(data?: PartialMessage<SipEvent>) {
|
|
14626
|
+
super();
|
|
14627
|
+
proto3.util.initPartial(data, this);
|
|
14628
|
+
}
|
|
14629
|
+
|
|
14630
|
+
static readonly runtime = proto3;
|
|
14631
|
+
static readonly typeName = "norsk.api.media.SipEvent";
|
|
14632
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
14633
|
+
{ no: 1, name: "node_id", kind: "message", T: MediaNodeId, oneof: "message" },
|
|
14634
|
+
{ no: 2, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
|
|
14635
|
+
{ no: 3, name: "inbound_context", kind: "message", T: Context, oneof: "message" },
|
|
14636
|
+
{ no: 4, name: "outbound_context", kind: "message", T: Context, oneof: "message" },
|
|
14637
|
+
{ no: 5, name: "stream_statistics", kind: "message", T: MultiStreamStatistics, oneof: "message" },
|
|
14638
|
+
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(SipEvent_Status), oneof: "message" },
|
|
14639
|
+
{ no: 7, name: "connection_statistics", kind: "message", T: SipConnectionStatistics, oneof: "message" },
|
|
14640
|
+
]);
|
|
14641
|
+
|
|
14642
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipEvent {
|
|
14643
|
+
return new SipEvent().fromBinary(bytes, options);
|
|
14644
|
+
}
|
|
14645
|
+
|
|
14646
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipEvent {
|
|
14647
|
+
return new SipEvent().fromJson(jsonValue, options);
|
|
14648
|
+
}
|
|
14649
|
+
|
|
14650
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipEvent {
|
|
14651
|
+
return new SipEvent().fromJsonString(jsonString, options);
|
|
14652
|
+
}
|
|
14653
|
+
|
|
14654
|
+
static equals(a: SipEvent | PlainMessage<SipEvent> | undefined, b: SipEvent | PlainMessage<SipEvent> | undefined): boolean {
|
|
14655
|
+
return proto3.util.equals(SipEvent, a, b);
|
|
14656
|
+
}
|
|
14657
|
+
}
|
|
14658
|
+
|
|
14659
|
+
/**
|
|
14660
|
+
* @generated from enum norsk.api.media.SipEvent.Status
|
|
14661
|
+
*/
|
|
14662
|
+
export enum SipEvent_Status {
|
|
14663
|
+
/**
|
|
14664
|
+
* @generated from enum value: SIP_STATE_UNKNOWN = 0;
|
|
14665
|
+
*/
|
|
14666
|
+
SIP_STATE_UNKNOWN = 0,
|
|
14667
|
+
|
|
14668
|
+
/**
|
|
14669
|
+
* @generated from enum value: SIP_STATE_INITIAL = 1;
|
|
14670
|
+
*/
|
|
14671
|
+
SIP_STATE_INITIAL = 1,
|
|
14672
|
+
|
|
14673
|
+
/**
|
|
14674
|
+
* @generated from enum value: SIP_STATE_CALLING = 2;
|
|
14675
|
+
*/
|
|
14676
|
+
SIP_STATE_CALLING = 2,
|
|
14677
|
+
|
|
14678
|
+
/**
|
|
14679
|
+
* @generated from enum value: SIP_STATE_INCOMING = 3;
|
|
14680
|
+
*/
|
|
14681
|
+
SIP_STATE_INCOMING = 3,
|
|
14682
|
+
|
|
14683
|
+
/**
|
|
14684
|
+
* @generated from enum value: SIP_STATE_EARLY = 4;
|
|
14685
|
+
*/
|
|
14686
|
+
SIP_STATE_EARLY = 4,
|
|
14687
|
+
|
|
14688
|
+
/**
|
|
14689
|
+
* @generated from enum value: SIP_STATE_CONNECTING = 5;
|
|
14690
|
+
*/
|
|
14691
|
+
SIP_STATE_CONNECTING = 5,
|
|
14692
|
+
|
|
14693
|
+
/**
|
|
14694
|
+
* @generated from enum value: SIP_STATE_CONFIRMED = 6;
|
|
14695
|
+
*/
|
|
14696
|
+
SIP_STATE_CONFIRMED = 6,
|
|
14697
|
+
|
|
14698
|
+
/**
|
|
14699
|
+
* @generated from enum value: SIP_STATE_DISCONNECTED = 7;
|
|
14700
|
+
*/
|
|
14701
|
+
SIP_STATE_DISCONNECTED = 7,
|
|
14702
|
+
}
|
|
14703
|
+
// Retrieve enum metadata with: proto3.getEnumType(SipEvent_Status)
|
|
14704
|
+
proto3.util.setEnumType(SipEvent_Status, "norsk.api.media.SipEvent.Status", [
|
|
14705
|
+
{ no: 0, name: "SIP_STATE_UNKNOWN" },
|
|
14706
|
+
{ no: 1, name: "SIP_STATE_INITIAL" },
|
|
14707
|
+
{ no: 2, name: "SIP_STATE_CALLING" },
|
|
14708
|
+
{ no: 3, name: "SIP_STATE_INCOMING" },
|
|
14709
|
+
{ no: 4, name: "SIP_STATE_EARLY" },
|
|
14710
|
+
{ no: 5, name: "SIP_STATE_CONNECTING" },
|
|
14711
|
+
{ no: 6, name: "SIP_STATE_CONFIRMED" },
|
|
14712
|
+
{ no: 7, name: "SIP_STATE_DISCONNECTED" },
|
|
14713
|
+
]);
|
|
14714
|
+
|
|
14186
14715
|
/**
|
|
14187
14716
|
* @generated from message norsk.api.media.RtmpOutputConfiguration
|
|
14188
14717
|
*/
|