@norskvideo/norsk-api 1.0.367 → 1.0.370

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_pb.ts CHANGED
@@ -7,6 +7,32 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
7
7
  import { Empty, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
8
8
  import { CurrentLoad, Log, OptionalBool, OptionalInt, OptionalInt64, OptionalString, UInt32OrInfinity, Version } from "./shared/common_pb.js";
9
9
 
10
+ /**
11
+ * @generated from enum norsk.api.media.NodeMetricsMode
12
+ */
13
+ export enum NodeMetricsMode {
14
+ /**
15
+ * @generated from enum value: NODE_METRICS_ENABLE = 0;
16
+ */
17
+ NODE_METRICS_ENABLE = 0,
18
+
19
+ /**
20
+ * @generated from enum value: NODE_METRICS_MINIMAL = 1;
21
+ */
22
+ NODE_METRICS_MINIMAL = 1,
23
+
24
+ /**
25
+ * @generated from enum value: NODE_METRICS_NONE = 2;
26
+ */
27
+ NODE_METRICS_NONE = 2,
28
+ }
29
+ // Retrieve enum metadata with: proto3.getEnumType(NodeMetricsMode)
30
+ proto3.util.setEnumType(NodeMetricsMode, "norsk.api.media.NodeMetricsMode", [
31
+ { no: 0, name: "NODE_METRICS_ENABLE" },
32
+ { no: 1, name: "NODE_METRICS_MINIMAL" },
33
+ { no: 2, name: "NODE_METRICS_NONE" },
34
+ ]);
35
+
10
36
  /**
11
37
  * Enumeration of possible channel positions.
12
38
  *
@@ -10546,6 +10572,16 @@ export class AudioBuildMultichannelConfiguration extends Message<AudioBuildMulti
10546
10572
  */
10547
10573
  sampleRate = SampleRate.RATE_8000;
10548
10574
 
10575
+ /**
10576
+ * @generated from field: norsk.api.media.NodeMetricsMode metrics = 9;
10577
+ */
10578
+ metrics = NodeMetricsMode.NODE_METRICS_ENABLE;
10579
+
10580
+ /**
10581
+ * @generated from field: norsk.api.media.SampleFormat sampleFormat = 10;
10582
+ */
10583
+ sampleFormat = SampleFormat.S16;
10584
+
10549
10585
  constructor(data?: PartialMessage<AudioBuildMultichannelConfiguration>) {
10550
10586
  super();
10551
10587
  proto3.util.initPartial(data, this);
@@ -10562,6 +10598,8 @@ export class AudioBuildMultichannelConfiguration extends Message<AudioBuildMulti
10562
10598
  { no: 6, name: "channel_layout", kind: "message", T: ChannelLayout },
10563
10599
  { no: 7, name: "channel_list", kind: "message", T: StreamKey, repeated: true },
10564
10600
  { no: 8, name: "sample_rate", kind: "enum", T: proto3.getEnumType(SampleRate) },
10601
+ { no: 9, name: "metrics", kind: "enum", T: proto3.getEnumType(NodeMetricsMode) },
10602
+ { no: 10, name: "sampleFormat", kind: "enum", T: proto3.getEnumType(SampleFormat) },
10565
10603
  ]);
10566
10604
 
10567
10605
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioBuildMultichannelConfiguration {
@@ -10766,6 +10804,11 @@ export class AudioSplitMultichannelConfiguration extends Message<AudioSplitMulti
10766
10804
  */
10767
10805
  outputRenditionName?: RenditionName;
10768
10806
 
10807
+ /**
10808
+ * @generated from field: norsk.api.media.NodeMetricsMode metrics = 6;
10809
+ */
10810
+ metrics = NodeMetricsMode.NODE_METRICS_ENABLE;
10811
+
10769
10812
  constructor(data?: PartialMessage<AudioSplitMultichannelConfiguration>) {
10770
10813
  super();
10771
10814
  proto3.util.initPartial(data, this);
@@ -10779,6 +10822,7 @@ export class AudioSplitMultichannelConfiguration extends Message<AudioSplitMulti
10779
10822
  { no: 3, name: "output_source_name", kind: "message", T: SourceName },
10780
10823
  { no: 4, name: "output_program_number", kind: "message", T: ProgramNumber },
10781
10824
  { no: 5, name: "output_rendition_name", kind: "message", T: RenditionName },
10825
+ { no: 6, name: "metrics", kind: "enum", T: proto3.getEnumType(NodeMetricsMode) },
10782
10826
  ]);
10783
10827
 
10784
10828
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioSplitMultichannelConfiguration {
@@ -11233,6 +11277,11 @@ export class CmafVideoConfiguration extends Message<CmafVideoConfiguration> {
11233
11277
  */
11234
11278
  name?: OptionalString;
11235
11279
 
11280
+ /**
11281
+ * @generated from field: bool pdt_every_segment = 12;
11282
+ */
11283
+ pdtEverySegment = false;
11284
+
11236
11285
  constructor(data?: PartialMessage<CmafVideoConfiguration>) {
11237
11286
  super();
11238
11287
  proto3.util.initPartial(data, this);
@@ -11251,6 +11300,7 @@ export class CmafVideoConfiguration extends Message<CmafVideoConfiguration> {
11251
11300
  { no: 9, name: "mpd_additions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11252
11301
  { no: 10, name: "bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
11253
11302
  { no: 11, name: "name", kind: "message", T: OptionalString },
11303
+ { no: 12, name: "pdt_every_segment", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
11254
11304
  ]);
11255
11305
 
11256
11306
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafVideoConfiguration {
@@ -11382,6 +11432,11 @@ export class HlsTsVideoConfiguration extends Message<HlsTsVideoConfiguration> {
11382
11432
  */
11383
11433
  name?: OptionalString;
11384
11434
 
11435
+ /**
11436
+ * @generated from field: bool pdt_every_segment = 10;
11437
+ */
11438
+ pdtEverySegment = false;
11439
+
11385
11440
  constructor(data?: PartialMessage<HlsTsVideoConfiguration>) {
11386
11441
  super();
11387
11442
  proto3.util.initPartial(data, this);
@@ -11398,6 +11453,7 @@ export class HlsTsVideoConfiguration extends Message<HlsTsVideoConfiguration> {
11398
11453
  { no: 7, name: "mpd_additions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11399
11454
  { no: 8, name: "bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
11400
11455
  { no: 9, name: "name", kind: "message", T: OptionalString },
11456
+ { no: 10, name: "pdt_every_segment", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
11401
11457
  ]);
11402
11458
 
11403
11459
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsTsVideoConfiguration {
@@ -11539,6 +11595,11 @@ export class CmafAudioConfiguration extends Message<CmafAudioConfiguration> {
11539
11595
  */
11540
11596
  name?: OptionalString;
11541
11597
 
11598
+ /**
11599
+ * @generated from field: bool pdt_every_segment = 13;
11600
+ */
11601
+ pdtEverySegment = false;
11602
+
11542
11603
  constructor(data?: PartialMessage<CmafAudioConfiguration>) {
11543
11604
  super();
11544
11605
  proto3.util.initPartial(data, this);
@@ -11557,6 +11618,7 @@ export class CmafAudioConfiguration extends Message<CmafAudioConfiguration> {
11557
11618
  { no: 10, name: "mpd_additions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11558
11619
  { no: 11, name: "bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
11559
11620
  { no: 12, name: "name", kind: "message", T: OptionalString },
11621
+ { no: 13, name: "pdt_every_segment", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
11560
11622
  ]);
11561
11623
 
11562
11624
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafAudioConfiguration {
@@ -11688,6 +11750,11 @@ export class HlsTsAudioConfiguration extends Message<HlsTsAudioConfiguration> {
11688
11750
  */
11689
11751
  name?: OptionalString;
11690
11752
 
11753
+ /**
11754
+ * @generated from field: bool pdt_every_segment = 10;
11755
+ */
11756
+ pdtEverySegment = false;
11757
+
11691
11758
  constructor(data?: PartialMessage<HlsTsAudioConfiguration>) {
11692
11759
  super();
11693
11760
  proto3.util.initPartial(data, this);
@@ -11704,6 +11771,7 @@ export class HlsTsAudioConfiguration extends Message<HlsTsAudioConfiguration> {
11704
11771
  { no: 7, name: "mpd_additions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
11705
11772
  { no: 8, name: "bitrate", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
11706
11773
  { no: 9, name: "name", kind: "message", T: OptionalString },
11774
+ { no: 10, name: "pdt_every_segment", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
11707
11775
  ]);
11708
11776
 
11709
11777
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsTsAudioConfiguration {
@@ -11811,6 +11879,11 @@ export class CmafWebVttConfiguration extends Message<CmafWebVttConfiguration> {
11811
11879
  */
11812
11880
  name?: OptionalString;
11813
11881
 
11882
+ /**
11883
+ * @generated from field: bool pdt_every_segment = 10;
11884
+ */
11885
+ pdtEverySegment = false;
11886
+
11814
11887
  constructor(data?: PartialMessage<CmafWebVttConfiguration>) {
11815
11888
  super();
11816
11889
  proto3.util.initPartial(data, this);
@@ -11823,6 +11896,7 @@ export class CmafWebVttConfiguration extends Message<CmafWebVttConfiguration> {
11823
11896
  { no: 2, name: "segment_duration_seconds", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
11824
11897
  { no: 5, name: "destinations", kind: "message", T: CMAFDestination, repeated: true },
11825
11898
  { no: 9, name: "name", kind: "message", T: OptionalString },
11899
+ { no: 10, name: "pdt_every_segment", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
11826
11900
  ]);
11827
11901
 
11828
11902
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafWebVttConfiguration {
@@ -12860,6 +12934,11 @@ export class HlsTsCombinedPushConfiguration extends Message<HlsTsCombinedPushCon
12860
12934
  */
12861
12935
  name?: OptionalString;
12862
12936
 
12937
+ /**
12938
+ * @generated from field: bool pdt_every_segment = 10;
12939
+ */
12940
+ pdtEverySegment = false;
12941
+
12863
12942
  constructor(data?: PartialMessage<HlsTsCombinedPushConfiguration>) {
12864
12943
  super();
12865
12944
  proto3.util.initPartial(data, this);
@@ -12875,6 +12954,7 @@ export class HlsTsCombinedPushConfiguration extends Message<HlsTsCombinedPushCon
12875
12954
  { no: 6, name: "stats_sampling", kind: "message", T: StreamStatisticsSampling },
12876
12955
  { no: 7, name: "m3u_additions", kind: "scalar", T: 9 /* ScalarType.STRING */ },
12877
12956
  { no: 9, name: "name", kind: "message", T: OptionalString },
12957
+ { no: 10, name: "pdt_every_segment", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
12878
12958
  ]);
12879
12959
 
12880
12960
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsTsCombinedPushConfiguration {
@@ -14103,6 +14183,535 @@ proto3.util.setEnumType(WhepOutputEvent_State, "norsk.api.media.WhepOutputEvent.
14103
14183
  { no: 1, name: "WHEP_OUTPUT_STATUS_READY" },
14104
14184
  ]);
14105
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
+
14106
14715
  /**
14107
14716
  * @generated from message norsk.api.media.RtmpOutputConfiguration
14108
14717
  */
@@ -26658,9 +27267,9 @@ export class MediaStoreAssetFileWithHash extends Message<MediaStoreAssetFileWith
26658
27267
  hash = "";
26659
27268
 
26660
27269
  /**
26661
- * @generated from field: bool error_on_hash_mismatch = 3;
27270
+ * @generated from field: bool import_if_needed = 3;
26662
27271
  */
26663
- errorOnHashMismatch = false;
27272
+ importIfNeeded = false;
26664
27273
 
26665
27274
  constructor(data?: PartialMessage<MediaStoreAssetFileWithHash>) {
26666
27275
  super();
@@ -26672,7 +27281,7 @@ export class MediaStoreAssetFileWithHash extends Message<MediaStoreAssetFileWith
26672
27281
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
26673
27282
  { no: 1, name: "file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26674
27283
  { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26675
- { no: 3, name: "error_on_hash_mismatch", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
27284
+ { no: 3, name: "import_if_needed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
26676
27285
  ]);
26677
27286
 
26678
27287
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreAssetFileWithHash {
@@ -26704,9 +27313,9 @@ export class MediaStoreAssetFile extends Message<MediaStoreAssetFile> {
26704
27313
  file = "";
26705
27314
 
26706
27315
  /**
26707
- * @generated from field: bool error_on_hash_mismatch = 2;
27316
+ * @generated from field: bool import_if_needed = 2;
26708
27317
  */
26709
- errorOnHashMismatch = false;
27318
+ importIfNeeded = false;
26710
27319
 
26711
27320
  constructor(data?: PartialMessage<MediaStoreAssetFile>) {
26712
27321
  super();
@@ -26717,7 +27326,7 @@ export class MediaStoreAssetFile extends Message<MediaStoreAssetFile> {
26717
27326
  static readonly typeName = "norsk.api.media.MediaStoreAssetFile";
26718
27327
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
26719
27328
  { no: 1, name: "file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26720
- { no: 2, name: "error_on_hash_mismatch", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
27329
+ { no: 2, name: "import_if_needed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
26721
27330
  ]);
26722
27331
 
26723
27332
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreAssetFile {