@norskvideo/norsk-api 0.0.328 → 0.0.330

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
@@ -510,21 +510,29 @@ proto3.util.setEnumType(SampleRate, "norsk.api.media.SampleRate", [
510
510
  */
511
511
  export enum SampleFormat {
512
512
  /**
513
+ * Signed 16 bits, non-planar
514
+ *
513
515
  * @generated from enum value: S16 = 0;
514
516
  */
515
517
  S16 = 0,
516
518
 
517
519
  /**
520
+ * Signed 16 bits, planar
521
+ *
518
522
  * @generated from enum value: S16P = 1;
519
523
  */
520
524
  S16P = 1,
521
525
 
522
526
  /**
527
+ * 32bit floating point, non-planar
528
+ *
523
529
  * @generated from enum value: FLT = 2;
524
530
  */
525
531
  FLT = 2,
526
532
 
527
533
  /**
534
+ * 32bit floating point, planar
535
+ *
528
536
  * @generated from enum value: FLTP = 3;
529
537
  */
530
538
  FLTP = 3,
@@ -1504,6 +1512,44 @@ proto3.util.setEnumType(VideoIOSupport, "norsk.api.media.VideoIOSupport", [
1504
1512
  { no: 1, name: "PLAYBACK" },
1505
1513
  ]);
1506
1514
 
1515
+ /**
1516
+ * @generated from enum norsk.api.media.ContextType
1517
+ */
1518
+ export enum ContextType {
1519
+ /**
1520
+ * @generated from enum value: CONTEXT_TYPE_FULL = 0;
1521
+ */
1522
+ FULL = 0,
1523
+
1524
+ /**
1525
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_SOURCE = 1;
1526
+ */
1527
+ SINGLE_SOURCE = 1,
1528
+
1529
+ /**
1530
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_PROGRAM = 2;
1531
+ */
1532
+ SINGLE_PROGRAM = 2,
1533
+
1534
+ /**
1535
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_STREAM = 3;
1536
+ */
1537
+ SINGLE_STREAM = 3,
1538
+
1539
+ /**
1540
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_RENDITION = 4;
1541
+ */
1542
+ SINGLE_RENDITION = 4,
1543
+ }
1544
+ // Retrieve enum metadata with: proto3.getEnumType(ContextType)
1545
+ proto3.util.setEnumType(ContextType, "norsk.api.media.ContextType", [
1546
+ { no: 0, name: "CONTEXT_TYPE_FULL" },
1547
+ { no: 1, name: "CONTEXT_TYPE_SINGLE_SOURCE" },
1548
+ { no: 2, name: "CONTEXT_TYPE_SINGLE_PROGRAM" },
1549
+ { no: 3, name: "CONTEXT_TYPE_SINGLE_STREAM" },
1550
+ { no: 4, name: "CONTEXT_TYPE_SINGLE_RENDITION" },
1551
+ ]);
1552
+
1507
1553
  /**
1508
1554
  * The canonical error codes for gRPC APIs.
1509
1555
  *
@@ -2557,11 +2603,11 @@ export class StreamMetadata_SubtitleMetadata extends Message<StreamMetadata_Subt
2557
2603
 
2558
2604
  /**
2559
2605
  * *
2560
- * The Context message is sent from Norsk in response to a
2606
+ * The Context message is sent from Norsk in response to a
2561
2607
  * change to either the Media Node's inbound or output set of streams.
2562
- * Once received, your code <b>must</b> acknowledge the context change
2563
- * with a call to <ref>Media.UnblockCall</ref>,
2564
- * passing in the <code>blockingCallRef</code>; note that if using the
2608
+ * Once received, your code **must** acknowledge the context change
2609
+ * with a call to `Media.UnblockCall`,
2610
+ * passing in the `blockingCallRef`; note that if using the
2565
2611
  * JavaScript SDK then this is automatically handled.
2566
2612
  *
2567
2613
  * @generated from message norsk.api.media.Context
@@ -2862,8 +2908,8 @@ export class TimestampSourceProgramNudge extends Message<TimestampSourceProgramN
2862
2908
  * and number of keyframes, measured over configurable sampling windows and
2863
2909
  * sent to the client.
2864
2910
  *
2865
- * These are reported on every input media node and also for the dedicated
2866
- * StreamStats node.
2911
+ * These are reported on most input and output media nodes and also for the
2912
+ * dedicated StreamStats node.
2867
2913
  *
2868
2914
  * @generated from message norsk.api.media.MultiStreamStats
2869
2915
  */
@@ -3380,8 +3426,8 @@ export class RtmpInputMessage extends Message<RtmpInputMessage> {
3380
3426
  /**
3381
3427
  * *
3382
3428
  * Sent to your code when an inbound remote connection is received. Your code
3383
- * must reply with either an <ref>RtmpConnectionAccept</ref> or an
3384
- * <ref>RtmpConnectionReject</ref>.
3429
+ * must reply with either an `RtmpConnectionAccept` or an
3430
+ * `RtmpConnectionReject`.
3385
3431
  *
3386
3432
  * @generated from message norsk.api.media.RtmpConnection
3387
3433
  */
@@ -3501,8 +3547,8 @@ proto3.util.setEnumType(RtmpInputStatus_State, "norsk.api.media.RtmpInputStatus.
3501
3547
  /**
3502
3548
  * *
3503
3549
  * Sent to your code when an inbound remote stream is received on an
3504
- * active connection. You must reply with either an <ref>RtmpStreamAccept</ref>
3505
- * or an <ref>RtmpStreamReject</ref>.
3550
+ * active connection. You must reply with either an `RtmpStreamAccept`
3551
+ * or an `RtmpStreamReject`.
3506
3552
  *
3507
3553
  * @generated from message norsk.api.media.RtmpOnStream
3508
3554
  */
@@ -4426,7 +4472,7 @@ export class SrtTsContext extends Message<SrtTsContext> {
4426
4472
  */
4427
4473
  export class SrtConnectMessage extends Message<SrtConnectMessage> {
4428
4474
  /**
4429
- * The SRT stream id, as set by the sender as a socket option
4475
+ * The stream_id sent on the SRT socket (or empty if none was set)
4430
4476
  *
4431
4477
  * @generated from field: string srt_stream_id = 1;
4432
4478
  */
@@ -4929,8 +4975,6 @@ export class M3u8MediaInputConfiguration extends Message<M3u8MediaInputConfigura
4929
4975
  url = "";
4930
4976
 
4931
4977
  /**
4932
- * Stuff here about modes/etc
4933
- *
4934
4978
  * @generated from field: norsk.api.media.StreamStatsSampling stats_sampling = 4;
4935
4979
  */
4936
4980
  statsSampling?: StreamStatsSampling;
@@ -5972,7 +6016,7 @@ export class Mp4FileInputEvent extends Message<Mp4FileInputEvent> {
5972
6016
  */
5973
6017
  export class SineWave extends Message<SineWave> {
5974
6018
  /**
5975
- * @generated from field: uint32 freq = 1;
6019
+ * @generated from field: float freq = 1;
5976
6020
  */
5977
6021
  freq = 0;
5978
6022
 
@@ -5984,7 +6028,7 @@ export class SineWave extends Message<SineWave> {
5984
6028
  static readonly runtime = proto3;
5985
6029
  static readonly typeName = "norsk.api.media.SineWave";
5986
6030
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
5987
- { no: 1, name: "freq", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
6031
+ { no: 1, name: "freq", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
5988
6032
  ]);
5989
6033
 
5990
6034
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SineWave {
@@ -6879,14 +6923,15 @@ export class ComposePart extends Message<ComposePart> {
6879
6923
 
6880
6924
  /**
6881
6925
  * Z-index to determine ordering by which the sources are overlaid
6926
+ * (higher layers appear on top)
6882
6927
  *
6883
6928
  * @generated from field: uint32 z_index = 4;
6884
6929
  */
6885
6930
  zIndex = 0;
6886
6931
 
6887
6932
  /**
6888
- * Opacity of this overlay (where 0.0 is fully transparent and 1.0 is fully
6889
- * opaque)
6933
+ * Opacity multiplier of this overlay (where 0.0 is fully transparent and 1.0
6934
+ * is fully opaque)
6890
6935
  *
6891
6936
  * @generated from field: float opacity = 5;
6892
6937
  */
@@ -7187,7 +7232,7 @@ export class ComposeVideoMessage extends Message<ComposeVideoMessage> {
7187
7232
 
7188
7233
  /**
7189
7234
  * *
7190
- * Configure an Compose Media Node.
7235
+ * Configure a Compose Media Node.
7191
7236
  *
7192
7237
  * @generated from message norsk.api.media.ComposeVideoConfiguration
7193
7238
  */
@@ -7224,7 +7269,7 @@ export class ComposeVideoConfiguration extends Message<ComposeVideoConfiguration
7224
7269
  * in percentage terms, or a notional resolution can be used that is
7225
7270
  * independant of the source resolutions that may be provided.
7226
7271
  *
7227
- * if set here, this reference resolution will be applied to
7272
+ * if set here, this reference resolution will be applied to
7228
7273
  * any parts that do not have their own reference resolution specified
7229
7274
  *
7230
7275
  * If not provided the source and destination rectangles are in terms of the
@@ -7393,7 +7438,7 @@ proto3.util.setEnumType(ComposeVideoConfiguration_MissingStreamBehaviour, "norsk
7393
7438
  */
7394
7439
  export class ComposeVideoUpdateConfiguration extends Message<ComposeVideoUpdateConfiguration> {
7395
7440
  /**
7396
- * The parts (images/overlays) to include in the composition
7441
+ * Update the parts (images/overlays) to include in the composition
7397
7442
  *
7398
7443
  * @generated from field: repeated norsk.api.media.ComposePart parts = 1;
7399
7444
  */
@@ -8139,7 +8184,7 @@ export class AudioGainConfiguration extends Message<AudioGainConfiguration> {
8139
8184
  id?: MediaNodeId;
8140
8185
 
8141
8186
  /**
8142
- * The gains, per subchannel, in order
8187
+ * The gains for this source, one for each channel
8143
8188
  *
8144
8189
  * @generated from field: repeated norsk.api.media.Db channel_gains = 2;
8145
8190
  */
@@ -8179,7 +8224,7 @@ export class AudioGainConfiguration extends Message<AudioGainConfiguration> {
8179
8224
  */
8180
8225
  export class AudioGainUpdateConfiguration extends Message<AudioGainUpdateConfiguration> {
8181
8226
  /**
8182
- * The channels to include in the mix
8227
+ * The gains for this source, one for each channel
8183
8228
  *
8184
8229
  * @generated from field: repeated norsk.api.media.Db channel_gains = 1;
8185
8230
  */
@@ -8395,6 +8440,11 @@ export class AudioBuildMultichannelConfiguration extends Message<AudioBuildMulti
8395
8440
  channelLayout?: ChannelLayout;
8396
8441
 
8397
8442
  /**
8443
+ * *
8444
+ * Stream keys specifying the source for each channel, where the order is
8445
+ * significant. The streams must all have the same sample format and sample
8446
+ * rate.
8447
+ *
8398
8448
  * @generated from field: repeated norsk.api.media.StreamKey channel_list = 7;
8399
8449
  */
8400
8450
  channelList: StreamKey[] = [];
@@ -8925,9 +8975,9 @@ export class CMAFDestination extends Message<CMAFDestination> {
8925
8975
  }
8926
8976
 
8927
8977
  /**
8928
- * @generated from message norsk.api.media.HlsVideoConfiguration
8978
+ * @generated from message norsk.api.media.CmafVideoConfiguration
8929
8979
  */
8930
- export class HlsVideoConfiguration extends Message<HlsVideoConfiguration> {
8980
+ export class CmafVideoConfiguration extends Message<CmafVideoConfiguration> {
8931
8981
  /**
8932
8982
  * @generated from field: norsk.api.media.MediaNodeId id = 1;
8933
8983
  */
@@ -8963,13 +9013,13 @@ export class HlsVideoConfiguration extends Message<HlsVideoConfiguration> {
8963
9013
  */
8964
9014
  destinations: CMAFDestination[] = [];
8965
9015
 
8966
- constructor(data?: PartialMessage<HlsVideoConfiguration>) {
9016
+ constructor(data?: PartialMessage<CmafVideoConfiguration>) {
8967
9017
  super();
8968
9018
  proto3.util.initPartial(data, this);
8969
9019
  }
8970
9020
 
8971
9021
  static readonly runtime = proto3;
8972
- static readonly typeName = "norsk.api.media.HlsVideoConfiguration";
9022
+ static readonly typeName = "norsk.api.media.CmafVideoConfiguration";
8973
9023
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
8974
9024
  { no: 1, name: "id", kind: "message", T: MediaNodeId },
8975
9025
  { no: 2, name: "segment_duration_seconds", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
@@ -8980,29 +9030,29 @@ export class HlsVideoConfiguration extends Message<HlsVideoConfiguration> {
8980
9030
  { no: 7, name: "destinations", kind: "message", T: CMAFDestination, repeated: true },
8981
9031
  ]);
8982
9032
 
8983
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsVideoConfiguration {
8984
- return new HlsVideoConfiguration().fromBinary(bytes, options);
9033
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafVideoConfiguration {
9034
+ return new CmafVideoConfiguration().fromBinary(bytes, options);
8985
9035
  }
8986
9036
 
8987
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsVideoConfiguration {
8988
- return new HlsVideoConfiguration().fromJson(jsonValue, options);
9037
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafVideoConfiguration {
9038
+ return new CmafVideoConfiguration().fromJson(jsonValue, options);
8989
9039
  }
8990
9040
 
8991
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsVideoConfiguration {
8992
- return new HlsVideoConfiguration().fromJsonString(jsonString, options);
9041
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafVideoConfiguration {
9042
+ return new CmafVideoConfiguration().fromJsonString(jsonString, options);
8993
9043
  }
8994
9044
 
8995
- static equals(a: HlsVideoConfiguration | PlainMessage<HlsVideoConfiguration> | undefined, b: HlsVideoConfiguration | PlainMessage<HlsVideoConfiguration> | undefined): boolean {
8996
- return proto3.util.equals(HlsVideoConfiguration, a, b);
9045
+ static equals(a: CmafVideoConfiguration | PlainMessage<CmafVideoConfiguration> | undefined, b: CmafVideoConfiguration | PlainMessage<CmafVideoConfiguration> | undefined): boolean {
9046
+ return proto3.util.equals(CmafVideoConfiguration, a, b);
8997
9047
  }
8998
9048
  }
8999
9049
 
9000
9050
  /**
9001
- * @generated from message norsk.api.media.HlsVideoMessage
9051
+ * @generated from message norsk.api.media.CmafVideoMessage
9002
9052
  */
9003
- export class HlsVideoMessage extends Message<HlsVideoMessage> {
9053
+ export class CmafVideoMessage extends Message<CmafVideoMessage> {
9004
9054
  /**
9005
- * @generated from oneof norsk.api.media.HlsVideoMessage.message
9055
+ * @generated from oneof norsk.api.media.CmafVideoMessage.message
9006
9056
  */
9007
9057
  message: {
9008
9058
  /**
@@ -9012,9 +9062,9 @@ export class HlsVideoMessage extends Message<HlsVideoMessage> {
9012
9062
  case: "subscription";
9013
9063
  } | {
9014
9064
  /**
9015
- * @generated from field: norsk.api.media.HlsVideoConfiguration configuration = 2;
9065
+ * @generated from field: norsk.api.media.CmafVideoConfiguration configuration = 2;
9016
9066
  */
9017
- value: HlsVideoConfiguration;
9067
+ value: CmafVideoConfiguration;
9018
9068
  case: "configuration";
9019
9069
  } | {
9020
9070
  /**
@@ -9024,33 +9074,33 @@ export class HlsVideoMessage extends Message<HlsVideoMessage> {
9024
9074
  case: "updateCredentials";
9025
9075
  } | { case: undefined; value?: undefined } = { case: undefined };
9026
9076
 
9027
- constructor(data?: PartialMessage<HlsVideoMessage>) {
9077
+ constructor(data?: PartialMessage<CmafVideoMessage>) {
9028
9078
  super();
9029
9079
  proto3.util.initPartial(data, this);
9030
9080
  }
9031
9081
 
9032
9082
  static readonly runtime = proto3;
9033
- static readonly typeName = "norsk.api.media.HlsVideoMessage";
9083
+ static readonly typeName = "norsk.api.media.CmafVideoMessage";
9034
9084
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
9035
9085
  { no: 1, name: "subscription", kind: "message", T: Subscription, oneof: "message" },
9036
- { no: 2, name: "configuration", kind: "message", T: HlsVideoConfiguration, oneof: "message" },
9086
+ { no: 2, name: "configuration", kind: "message", T: CmafVideoConfiguration, oneof: "message" },
9037
9087
  { no: 3, name: "update_credentials", kind: "message", T: UpdateCredentials, oneof: "message" },
9038
9088
  ]);
9039
9089
 
9040
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsVideoMessage {
9041
- return new HlsVideoMessage().fromBinary(bytes, options);
9090
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafVideoMessage {
9091
+ return new CmafVideoMessage().fromBinary(bytes, options);
9042
9092
  }
9043
9093
 
9044
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsVideoMessage {
9045
- return new HlsVideoMessage().fromJson(jsonValue, options);
9094
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafVideoMessage {
9095
+ return new CmafVideoMessage().fromJson(jsonValue, options);
9046
9096
  }
9047
9097
 
9048
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsVideoMessage {
9049
- return new HlsVideoMessage().fromJsonString(jsonString, options);
9098
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafVideoMessage {
9099
+ return new CmafVideoMessage().fromJsonString(jsonString, options);
9050
9100
  }
9051
9101
 
9052
- static equals(a: HlsVideoMessage | PlainMessage<HlsVideoMessage> | undefined, b: HlsVideoMessage | PlainMessage<HlsVideoMessage> | undefined): boolean {
9053
- return proto3.util.equals(HlsVideoMessage, a, b);
9102
+ static equals(a: CmafVideoMessage | PlainMessage<CmafVideoMessage> | undefined, b: CmafVideoMessage | PlainMessage<CmafVideoMessage> | undefined): boolean {
9103
+ return proto3.util.equals(CmafVideoMessage, a, b);
9054
9104
  }
9055
9105
  }
9056
9106
 
@@ -9160,9 +9210,9 @@ export class HlsTsVideoMessage extends Message<HlsTsVideoMessage> {
9160
9210
  }
9161
9211
 
9162
9212
  /**
9163
- * @generated from message norsk.api.media.HlsAudioConfiguration
9213
+ * @generated from message norsk.api.media.CmafAudioConfiguration
9164
9214
  */
9165
- export class HlsAudioConfiguration extends Message<HlsAudioConfiguration> {
9215
+ export class CmafAudioConfiguration extends Message<CmafAudioConfiguration> {
9166
9216
  /**
9167
9217
  * @generated from field: norsk.api.media.MediaNodeId id = 1;
9168
9218
  */
@@ -9198,13 +9248,13 @@ export class HlsAudioConfiguration extends Message<HlsAudioConfiguration> {
9198
9248
  */
9199
9249
  destinations: CMAFDestination[] = [];
9200
9250
 
9201
- constructor(data?: PartialMessage<HlsAudioConfiguration>) {
9251
+ constructor(data?: PartialMessage<CmafAudioConfiguration>) {
9202
9252
  super();
9203
9253
  proto3.util.initPartial(data, this);
9204
9254
  }
9205
9255
 
9206
9256
  static readonly runtime = proto3;
9207
- static readonly typeName = "norsk.api.media.HlsAudioConfiguration";
9257
+ static readonly typeName = "norsk.api.media.CmafAudioConfiguration";
9208
9258
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
9209
9259
  { no: 1, name: "id", kind: "message", T: MediaNodeId },
9210
9260
  { no: 2, name: "segment_duration_seconds", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
@@ -9215,29 +9265,29 @@ export class HlsAudioConfiguration extends Message<HlsAudioConfiguration> {
9215
9265
  { no: 8, name: "destinations", kind: "message", T: CMAFDestination, repeated: true },
9216
9266
  ]);
9217
9267
 
9218
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsAudioConfiguration {
9219
- return new HlsAudioConfiguration().fromBinary(bytes, options);
9268
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafAudioConfiguration {
9269
+ return new CmafAudioConfiguration().fromBinary(bytes, options);
9220
9270
  }
9221
9271
 
9222
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsAudioConfiguration {
9223
- return new HlsAudioConfiguration().fromJson(jsonValue, options);
9272
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafAudioConfiguration {
9273
+ return new CmafAudioConfiguration().fromJson(jsonValue, options);
9224
9274
  }
9225
9275
 
9226
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsAudioConfiguration {
9227
- return new HlsAudioConfiguration().fromJsonString(jsonString, options);
9276
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafAudioConfiguration {
9277
+ return new CmafAudioConfiguration().fromJsonString(jsonString, options);
9228
9278
  }
9229
9279
 
9230
- static equals(a: HlsAudioConfiguration | PlainMessage<HlsAudioConfiguration> | undefined, b: HlsAudioConfiguration | PlainMessage<HlsAudioConfiguration> | undefined): boolean {
9231
- return proto3.util.equals(HlsAudioConfiguration, a, b);
9280
+ static equals(a: CmafAudioConfiguration | PlainMessage<CmafAudioConfiguration> | undefined, b: CmafAudioConfiguration | PlainMessage<CmafAudioConfiguration> | undefined): boolean {
9281
+ return proto3.util.equals(CmafAudioConfiguration, a, b);
9232
9282
  }
9233
9283
  }
9234
9284
 
9235
9285
  /**
9236
- * @generated from message norsk.api.media.HlsAudioMessage
9286
+ * @generated from message norsk.api.media.CmafAudioMessage
9237
9287
  */
9238
- export class HlsAudioMessage extends Message<HlsAudioMessage> {
9288
+ export class CmafAudioMessage extends Message<CmafAudioMessage> {
9239
9289
  /**
9240
- * @generated from oneof norsk.api.media.HlsAudioMessage.message
9290
+ * @generated from oneof norsk.api.media.CmafAudioMessage.message
9241
9291
  */
9242
9292
  message: {
9243
9293
  /**
@@ -9247,9 +9297,9 @@ export class HlsAudioMessage extends Message<HlsAudioMessage> {
9247
9297
  case: "subscription";
9248
9298
  } | {
9249
9299
  /**
9250
- * @generated from field: norsk.api.media.HlsAudioConfiguration configuration = 2;
9300
+ * @generated from field: norsk.api.media.CmafAudioConfiguration configuration = 2;
9251
9301
  */
9252
- value: HlsAudioConfiguration;
9302
+ value: CmafAudioConfiguration;
9253
9303
  case: "configuration";
9254
9304
  } | {
9255
9305
  /**
@@ -9259,33 +9309,33 @@ export class HlsAudioMessage extends Message<HlsAudioMessage> {
9259
9309
  case: "updateCredentials";
9260
9310
  } | { case: undefined; value?: undefined } = { case: undefined };
9261
9311
 
9262
- constructor(data?: PartialMessage<HlsAudioMessage>) {
9312
+ constructor(data?: PartialMessage<CmafAudioMessage>) {
9263
9313
  super();
9264
9314
  proto3.util.initPartial(data, this);
9265
9315
  }
9266
9316
 
9267
9317
  static readonly runtime = proto3;
9268
- static readonly typeName = "norsk.api.media.HlsAudioMessage";
9318
+ static readonly typeName = "norsk.api.media.CmafAudioMessage";
9269
9319
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
9270
9320
  { no: 1, name: "subscription", kind: "message", T: Subscription, oneof: "message" },
9271
- { no: 2, name: "configuration", kind: "message", T: HlsAudioConfiguration, oneof: "message" },
9321
+ { no: 2, name: "configuration", kind: "message", T: CmafAudioConfiguration, oneof: "message" },
9272
9322
  { no: 3, name: "update_credentials", kind: "message", T: UpdateCredentials, oneof: "message" },
9273
9323
  ]);
9274
9324
 
9275
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsAudioMessage {
9276
- return new HlsAudioMessage().fromBinary(bytes, options);
9325
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafAudioMessage {
9326
+ return new CmafAudioMessage().fromBinary(bytes, options);
9277
9327
  }
9278
9328
 
9279
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsAudioMessage {
9280
- return new HlsAudioMessage().fromJson(jsonValue, options);
9329
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafAudioMessage {
9330
+ return new CmafAudioMessage().fromJson(jsonValue, options);
9281
9331
  }
9282
9332
 
9283
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsAudioMessage {
9284
- return new HlsAudioMessage().fromJsonString(jsonString, options);
9333
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafAudioMessage {
9334
+ return new CmafAudioMessage().fromJsonString(jsonString, options);
9285
9335
  }
9286
9336
 
9287
- static equals(a: HlsAudioMessage | PlainMessage<HlsAudioMessage> | undefined, b: HlsAudioMessage | PlainMessage<HlsAudioMessage> | undefined): boolean {
9288
- return proto3.util.equals(HlsAudioMessage, a, b);
9337
+ static equals(a: CmafAudioMessage | PlainMessage<CmafAudioMessage> | undefined, b: CmafAudioMessage | PlainMessage<CmafAudioMessage> | undefined): boolean {
9338
+ return proto3.util.equals(CmafAudioMessage, a, b);
9289
9339
  }
9290
9340
  }
9291
9341
 
@@ -9395,9 +9445,9 @@ export class HlsTsAudioMessage extends Message<HlsTsAudioMessage> {
9395
9445
  }
9396
9446
 
9397
9447
  /**
9398
- * @generated from message norsk.api.media.HlsWebVttConfiguration
9448
+ * @generated from message norsk.api.media.CmafWebVttConfiguration
9399
9449
  */
9400
- export class HlsWebVttConfiguration extends Message<HlsWebVttConfiguration> {
9450
+ export class CmafWebVttConfiguration extends Message<CmafWebVttConfiguration> {
9401
9451
  /**
9402
9452
  * @generated from field: norsk.api.media.MediaNodeId id = 1;
9403
9453
  */
@@ -9418,13 +9468,13 @@ export class HlsWebVttConfiguration extends Message<HlsWebVttConfiguration> {
9418
9468
  */
9419
9469
  sessionId = "";
9420
9470
 
9421
- constructor(data?: PartialMessage<HlsWebVttConfiguration>) {
9471
+ constructor(data?: PartialMessage<CmafWebVttConfiguration>) {
9422
9472
  super();
9423
9473
  proto3.util.initPartial(data, this);
9424
9474
  }
9425
9475
 
9426
9476
  static readonly runtime = proto3;
9427
- static readonly typeName = "norsk.api.media.HlsWebVttConfiguration";
9477
+ static readonly typeName = "norsk.api.media.CmafWebVttConfiguration";
9428
9478
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
9429
9479
  { no: 1, name: "id", kind: "message", T: MediaNodeId },
9430
9480
  { no: 2, name: "segment_duration_seconds", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
@@ -9432,20 +9482,20 @@ export class HlsWebVttConfiguration extends Message<HlsWebVttConfiguration> {
9432
9482
  { no: 4, name: "sessionId", kind: "scalar", T: 9 /* ScalarType.STRING */ },
9433
9483
  ]);
9434
9484
 
9435
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsWebVttConfiguration {
9436
- return new HlsWebVttConfiguration().fromBinary(bytes, options);
9485
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafWebVttConfiguration {
9486
+ return new CmafWebVttConfiguration().fromBinary(bytes, options);
9437
9487
  }
9438
9488
 
9439
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsWebVttConfiguration {
9440
- return new HlsWebVttConfiguration().fromJson(jsonValue, options);
9489
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafWebVttConfiguration {
9490
+ return new CmafWebVttConfiguration().fromJson(jsonValue, options);
9441
9491
  }
9442
9492
 
9443
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsWebVttConfiguration {
9444
- return new HlsWebVttConfiguration().fromJsonString(jsonString, options);
9493
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafWebVttConfiguration {
9494
+ return new CmafWebVttConfiguration().fromJsonString(jsonString, options);
9445
9495
  }
9446
9496
 
9447
- static equals(a: HlsWebVttConfiguration | PlainMessage<HlsWebVttConfiguration> | undefined, b: HlsWebVttConfiguration | PlainMessage<HlsWebVttConfiguration> | undefined): boolean {
9448
- return proto3.util.equals(HlsWebVttConfiguration, a, b);
9497
+ static equals(a: CmafWebVttConfiguration | PlainMessage<CmafWebVttConfiguration> | undefined, b: CmafWebVttConfiguration | PlainMessage<CmafWebVttConfiguration> | undefined): boolean {
9498
+ return proto3.util.equals(CmafWebVttConfiguration, a, b);
9449
9499
  }
9450
9500
  }
9451
9501
 
@@ -9676,11 +9726,11 @@ export class HlsWebVttPushUpdateConfiguration extends Message<HlsWebVttPushUpdat
9676
9726
  }
9677
9727
 
9678
9728
  /**
9679
- * @generated from message norsk.api.media.HlsWebVttMessage
9729
+ * @generated from message norsk.api.media.CmafWebVttMessage
9680
9730
  */
9681
- export class HlsWebVttMessage extends Message<HlsWebVttMessage> {
9731
+ export class CmafWebVttMessage extends Message<CmafWebVttMessage> {
9682
9732
  /**
9683
- * @generated from oneof norsk.api.media.HlsWebVttMessage.message
9733
+ * @generated from oneof norsk.api.media.CmafWebVttMessage.message
9684
9734
  */
9685
9735
  message: {
9686
9736
  /**
@@ -9690,38 +9740,38 @@ export class HlsWebVttMessage extends Message<HlsWebVttMessage> {
9690
9740
  case: "subscription";
9691
9741
  } | {
9692
9742
  /**
9693
- * @generated from field: norsk.api.media.HlsWebVttConfiguration configuration = 2;
9743
+ * @generated from field: norsk.api.media.CmafWebVttConfiguration configuration = 2;
9694
9744
  */
9695
- value: HlsWebVttConfiguration;
9745
+ value: CmafWebVttConfiguration;
9696
9746
  case: "configuration";
9697
9747
  } | { case: undefined; value?: undefined } = { case: undefined };
9698
9748
 
9699
- constructor(data?: PartialMessage<HlsWebVttMessage>) {
9749
+ constructor(data?: PartialMessage<CmafWebVttMessage>) {
9700
9750
  super();
9701
9751
  proto3.util.initPartial(data, this);
9702
9752
  }
9703
9753
 
9704
9754
  static readonly runtime = proto3;
9705
- static readonly typeName = "norsk.api.media.HlsWebVttMessage";
9755
+ static readonly typeName = "norsk.api.media.CmafWebVttMessage";
9706
9756
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
9707
9757
  { no: 1, name: "subscription", kind: "message", T: Subscription, oneof: "message" },
9708
- { no: 2, name: "configuration", kind: "message", T: HlsWebVttConfiguration, oneof: "message" },
9758
+ { no: 2, name: "configuration", kind: "message", T: CmafWebVttConfiguration, oneof: "message" },
9709
9759
  ]);
9710
9760
 
9711
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsWebVttMessage {
9712
- return new HlsWebVttMessage().fromBinary(bytes, options);
9761
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafWebVttMessage {
9762
+ return new CmafWebVttMessage().fromBinary(bytes, options);
9713
9763
  }
9714
9764
 
9715
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsWebVttMessage {
9716
- return new HlsWebVttMessage().fromJson(jsonValue, options);
9765
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafWebVttMessage {
9766
+ return new CmafWebVttMessage().fromJson(jsonValue, options);
9717
9767
  }
9718
9768
 
9719
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsWebVttMessage {
9720
- return new HlsWebVttMessage().fromJsonString(jsonString, options);
9769
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafWebVttMessage {
9770
+ return new CmafWebVttMessage().fromJsonString(jsonString, options);
9721
9771
  }
9722
9772
 
9723
- static equals(a: HlsWebVttMessage | PlainMessage<HlsWebVttMessage> | undefined, b: HlsWebVttMessage | PlainMessage<HlsWebVttMessage> | undefined): boolean {
9724
- return proto3.util.equals(HlsWebVttMessage, a, b);
9773
+ static equals(a: CmafWebVttMessage | PlainMessage<CmafWebVttMessage> | undefined, b: CmafWebVttMessage | PlainMessage<CmafWebVttMessage> | undefined): boolean {
9774
+ return proto3.util.equals(CmafWebVttMessage, a, b);
9725
9775
  }
9726
9776
  }
9727
9777
 
@@ -9783,9 +9833,9 @@ export class HlsWebVttPushMessage extends Message<HlsWebVttPushMessage> {
9783
9833
  }
9784
9834
 
9785
9835
  /**
9786
- * @generated from message norsk.api.media.HlsMasterConfiguration
9836
+ * @generated from message norsk.api.media.CmafMasterConfiguration
9787
9837
  */
9788
- export class HlsMasterConfiguration extends Message<HlsMasterConfiguration> {
9838
+ export class CmafMasterConfiguration extends Message<CmafMasterConfiguration> {
9789
9839
  /**
9790
9840
  * @generated from field: norsk.api.media.MediaNodeId id = 1;
9791
9841
  */
@@ -9806,13 +9856,13 @@ export class HlsMasterConfiguration extends Message<HlsMasterConfiguration> {
9806
9856
  */
9807
9857
  destinations: CMAFDestination[] = [];
9808
9858
 
9809
- constructor(data?: PartialMessage<HlsMasterConfiguration>) {
9859
+ constructor(data?: PartialMessage<CmafMasterConfiguration>) {
9810
9860
  super();
9811
9861
  proto3.util.initPartial(data, this);
9812
9862
  }
9813
9863
 
9814
9864
  static readonly runtime = proto3;
9815
- static readonly typeName = "norsk.api.media.HlsMasterConfiguration";
9865
+ static readonly typeName = "norsk.api.media.CmafMasterConfiguration";
9816
9866
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
9817
9867
  { no: 1, name: "id", kind: "message", T: MediaNodeId },
9818
9868
  { no: 2, name: "playlist_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -9820,29 +9870,29 @@ export class HlsMasterConfiguration extends Message<HlsMasterConfiguration> {
9820
9870
  { no: 4, name: "destinations", kind: "message", T: CMAFDestination, repeated: true },
9821
9871
  ]);
9822
9872
 
9823
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsMasterConfiguration {
9824
- return new HlsMasterConfiguration().fromBinary(bytes, options);
9873
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafMasterConfiguration {
9874
+ return new CmafMasterConfiguration().fromBinary(bytes, options);
9825
9875
  }
9826
9876
 
9827
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsMasterConfiguration {
9828
- return new HlsMasterConfiguration().fromJson(jsonValue, options);
9877
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafMasterConfiguration {
9878
+ return new CmafMasterConfiguration().fromJson(jsonValue, options);
9829
9879
  }
9830
9880
 
9831
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsMasterConfiguration {
9832
- return new HlsMasterConfiguration().fromJsonString(jsonString, options);
9881
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafMasterConfiguration {
9882
+ return new CmafMasterConfiguration().fromJsonString(jsonString, options);
9833
9883
  }
9834
9884
 
9835
- static equals(a: HlsMasterConfiguration | PlainMessage<HlsMasterConfiguration> | undefined, b: HlsMasterConfiguration | PlainMessage<HlsMasterConfiguration> | undefined): boolean {
9836
- return proto3.util.equals(HlsMasterConfiguration, a, b);
9885
+ static equals(a: CmafMasterConfiguration | PlainMessage<CmafMasterConfiguration> | undefined, b: CmafMasterConfiguration | PlainMessage<CmafMasterConfiguration> | undefined): boolean {
9886
+ return proto3.util.equals(CmafMasterConfiguration, a, b);
9837
9887
  }
9838
9888
  }
9839
9889
 
9840
9890
  /**
9841
- * @generated from message norsk.api.media.HlsMasterMessage
9891
+ * @generated from message norsk.api.media.CmafMasterMessage
9842
9892
  */
9843
- export class HlsMasterMessage extends Message<HlsMasterMessage> {
9893
+ export class CmafMasterMessage extends Message<CmafMasterMessage> {
9844
9894
  /**
9845
- * @generated from oneof norsk.api.media.HlsMasterMessage.message
9895
+ * @generated from oneof norsk.api.media.CmafMasterMessage.message
9846
9896
  */
9847
9897
  message: {
9848
9898
  /**
@@ -9852,9 +9902,9 @@ export class HlsMasterMessage extends Message<HlsMasterMessage> {
9852
9902
  case: "subscription";
9853
9903
  } | {
9854
9904
  /**
9855
- * @generated from field: norsk.api.media.HlsMasterConfiguration configuration = 2;
9905
+ * @generated from field: norsk.api.media.CmafMasterConfiguration configuration = 2;
9856
9906
  */
9857
- value: HlsMasterConfiguration;
9907
+ value: CmafMasterConfiguration;
9858
9908
  case: "configuration";
9859
9909
  } | {
9860
9910
  /**
@@ -9864,33 +9914,33 @@ export class HlsMasterMessage extends Message<HlsMasterMessage> {
9864
9914
  case: "updateCredentials";
9865
9915
  } | { case: undefined; value?: undefined } = { case: undefined };
9866
9916
 
9867
- constructor(data?: PartialMessage<HlsMasterMessage>) {
9917
+ constructor(data?: PartialMessage<CmafMasterMessage>) {
9868
9918
  super();
9869
9919
  proto3.util.initPartial(data, this);
9870
9920
  }
9871
9921
 
9872
9922
  static readonly runtime = proto3;
9873
- static readonly typeName = "norsk.api.media.HlsMasterMessage";
9923
+ static readonly typeName = "norsk.api.media.CmafMasterMessage";
9874
9924
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
9875
9925
  { no: 1, name: "subscription", kind: "message", T: Subscription, oneof: "message" },
9876
- { no: 2, name: "configuration", kind: "message", T: HlsMasterConfiguration, oneof: "message" },
9926
+ { no: 2, name: "configuration", kind: "message", T: CmafMasterConfiguration, oneof: "message" },
9877
9927
  { no: 3, name: "update_credentials", kind: "message", T: UpdateCredentials, oneof: "message" },
9878
9928
  ]);
9879
9929
 
9880
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsMasterMessage {
9881
- return new HlsMasterMessage().fromBinary(bytes, options);
9930
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CmafMasterMessage {
9931
+ return new CmafMasterMessage().fromBinary(bytes, options);
9882
9932
  }
9883
9933
 
9884
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): HlsMasterMessage {
9885
- return new HlsMasterMessage().fromJson(jsonValue, options);
9934
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CmafMasterMessage {
9935
+ return new CmafMasterMessage().fromJson(jsonValue, options);
9886
9936
  }
9887
9937
 
9888
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): HlsMasterMessage {
9889
- return new HlsMasterMessage().fromJsonString(jsonString, options);
9938
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CmafMasterMessage {
9939
+ return new CmafMasterMessage().fromJsonString(jsonString, options);
9890
9940
  }
9891
9941
 
9892
- static equals(a: HlsMasterMessage | PlainMessage<HlsMasterMessage> | undefined, b: HlsMasterMessage | PlainMessage<HlsMasterMessage> | undefined): boolean {
9893
- return proto3.util.equals(HlsMasterMessage, a, b);
9942
+ static equals(a: CmafMasterMessage | PlainMessage<CmafMasterMessage> | undefined, b: CmafMasterMessage | PlainMessage<CmafMasterMessage> | undefined): boolean {
9943
+ return proto3.util.equals(CmafMasterMessage, a, b);
9894
9944
  }
9895
9945
  }
9896
9946
 
@@ -11622,7 +11672,7 @@ export class Mp4FileOutputMessage extends Message<Mp4FileOutputMessage> {
11622
11672
  case: "configuration";
11623
11673
  } | {
11624
11674
  /**
11625
- * @generated from field: norsk.api.media.Mp4FileOutputWriteMessage writeFile = 3;
11675
+ * @generated from field: norsk.api.media.Mp4FileOutputWriteMessage write_file = 3;
11626
11676
  */
11627
11677
  value: Mp4FileOutputWriteMessage;
11628
11678
  case: "writeFile";
@@ -11638,7 +11688,7 @@ export class Mp4FileOutputMessage extends Message<Mp4FileOutputMessage> {
11638
11688
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
11639
11689
  { no: 1, name: "subscription", kind: "message", T: Subscription, oneof: "message" },
11640
11690
  { no: 2, name: "configuration", kind: "message", T: Mp4FileOutputConfiguration, oneof: "message" },
11641
- { no: 3, name: "writeFile", kind: "message", T: Mp4FileOutputWriteMessage, oneof: "message" },
11691
+ { no: 3, name: "write_file", kind: "message", T: Mp4FileOutputWriteMessage, oneof: "message" },
11642
11692
  ]);
11643
11693
 
11644
11694
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Mp4FileOutputMessage {
@@ -11975,8 +12025,8 @@ export class X264Codec extends Message<X264Codec> {
11975
12025
 
11976
12026
  /**
11977
12027
  * Sets the level flag in the output. Permissible levels are
11978
- * <code>1, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1, 4.2,
11979
- * 5, 5.1</code> - since this field is an integer, you pass in 10 times the
12028
+ * 1, 1.1, 1.2, 1.3, 2, 2.1, 2.2, 3, 3.1, 3.2, 4, 4.1, 4.2,
12029
+ * 5, 5.1 - since this field is an integer, you pass in 10 times the
11980
12030
  * required value (e.g., 11, 12 etc)
11981
12031
  *
11982
12032
  * @generated from field: norsk.api.media.OptionalInt level = 3;
@@ -12406,7 +12456,7 @@ export class X265Codec extends Message<X265Codec> {
12406
12456
 
12407
12457
  /**
12408
12458
  * Sets the level flag in the output. Permissible levels are
12409
- * <code>1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2</code> -
12459
+ * `1, 2, 2.1, 3, 3.1, 4, 4.1, 5, 5.1, 5.2, 6, 6.1, 6.2` -
12410
12460
  * since this field is an integer, you pass in 10 times the
12411
12461
  * required value (e.g., 11, 12 etc)
12412
12462
  *
@@ -16550,6 +16600,8 @@ export class AwsTranscribeConfiguration extends Message<AwsTranscribeConfigurati
16550
16600
  language = "";
16551
16601
 
16552
16602
  /**
16603
+ * Region for the transcribe endpoint
16604
+ *
16553
16605
  * @generated from field: string aws_region = 4;
16554
16606
  */
16555
16607
  awsRegion = "";
@@ -17170,18 +17222,18 @@ export class SubscribeSource extends Message<SubscribeSource> {
17170
17222
  */
17171
17223
  export class Subscription extends Message<Subscription> {
17172
17224
  /**
17173
- * The individual subscription components
17225
+ * An arbitrary id of the subscription, to enable correlating of the corresponding subscription response
17174
17226
  *
17175
- * @generated from field: repeated norsk.api.media.SubscribeSource sources = 2;
17227
+ * @generated from field: string id = 1;
17176
17228
  */
17177
- sources: SubscribeSource[] = [];
17229
+ id = "";
17178
17230
 
17179
17231
  /**
17180
- * An arbitrary id of the subscription, to enable correlating of the corresponding subscription response
17232
+ * The individual subscription components
17181
17233
  *
17182
- * @generated from field: string id = 3;
17234
+ * @generated from field: repeated norsk.api.media.SubscribeSource sources = 2;
17183
17235
  */
17184
- id = "";
17236
+ sources: SubscribeSource[] = [];
17185
17237
 
17186
17238
  constructor(data?: PartialMessage<Subscription>) {
17187
17239
  super();
@@ -17191,8 +17243,8 @@ export class Subscription extends Message<Subscription> {
17191
17243
  static readonly runtime = proto3;
17192
17244
  static readonly typeName = "norsk.api.media.Subscription";
17193
17245
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
17246
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17194
17247
  { no: 2, name: "sources", kind: "message", T: SubscribeSource, repeated: true },
17195
- { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17196
17248
  ]);
17197
17249
 
17198
17250
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Subscription {
@@ -17219,18 +17271,18 @@ export class Subscription extends Message<Subscription> {
17219
17271
  */
17220
17272
  export class SubscriptionResponse extends Message<SubscriptionResponse> {
17221
17273
  /**
17222
- * The subscription status
17274
+ * The id of the subscription which this message is a response to
17223
17275
  *
17224
- * @generated from field: norsk.api.media.Status status = 2;
17276
+ * @generated from field: string id = 1;
17225
17277
  */
17226
- status?: Status;
17278
+ id = "";
17227
17279
 
17228
17280
  /**
17229
- * The id of the subscription which this message is a response to
17281
+ * The error that prevented the subscription, if any
17230
17282
  *
17231
- * @generated from field: string id = 3;
17283
+ * @generated from field: norsk.api.media.SubscriptionError error = 2;
17232
17284
  */
17233
- id = "";
17285
+ error?: SubscriptionError;
17234
17286
 
17235
17287
  constructor(data?: PartialMessage<SubscriptionResponse>) {
17236
17288
  super();
@@ -17240,8 +17292,8 @@ export class SubscriptionResponse extends Message<SubscriptionResponse> {
17240
17292
  static readonly runtime = proto3;
17241
17293
  static readonly typeName = "norsk.api.media.SubscriptionResponse";
17242
17294
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
17243
- { no: 2, name: "status", kind: "message", T: Status },
17244
- { no: 3, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17295
+ { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17296
+ { no: 2, name: "error", kind: "message", T: SubscriptionError },
17245
17297
  ]);
17246
17298
 
17247
17299
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionResponse {
@@ -17261,6 +17313,380 @@ export class SubscriptionResponse extends Message<SubscriptionResponse> {
17261
17313
  }
17262
17314
  }
17263
17315
 
17316
+ /**
17317
+ * @generated from message norsk.api.media.SubscriptionError
17318
+ */
17319
+ export class SubscriptionError extends Message<SubscriptionError> {
17320
+ /**
17321
+ * @generated from oneof norsk.api.media.SubscriptionError.error
17322
+ */
17323
+ error: {
17324
+ /**
17325
+ * An opaque internal error
17326
+ *
17327
+ * @generated from field: string internal = 1;
17328
+ */
17329
+ value: string;
17330
+ case: "internal";
17331
+ } | {
17332
+ /**
17333
+ * The media node requesting the subscription does not exist
17334
+ *
17335
+ * @generated from field: norsk.api.media.MediaNodeId unknown_subscriber = 2;
17336
+ */
17337
+ value: MediaNodeId;
17338
+ case: "unknownSubscriber";
17339
+ } | {
17340
+ /**
17341
+ * Multiple stream keys found for the context type
17342
+ *
17343
+ * @generated from field: norsk.api.media.SubscriptionError.MultipleStreams multiple_streams = 3;
17344
+ */
17345
+ value: SubscriptionError_MultipleStreams;
17346
+ case: "multipleStreams";
17347
+ } | {
17348
+ /**
17349
+ * Per-source errors
17350
+ *
17351
+ * @generated from field: norsk.api.media.SubscriptionError.SourceSubscriptionErrors source_subscription_error = 4;
17352
+ */
17353
+ value: SubscriptionError_SourceSubscriptionErrors;
17354
+ case: "sourceSubscriptionError";
17355
+ } | { case: undefined; value?: undefined } = { case: undefined };
17356
+
17357
+ constructor(data?: PartialMessage<SubscriptionError>) {
17358
+ super();
17359
+ proto3.util.initPartial(data, this);
17360
+ }
17361
+
17362
+ static readonly runtime = proto3;
17363
+ static readonly typeName = "norsk.api.media.SubscriptionError";
17364
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
17365
+ { no: 1, name: "internal", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "error" },
17366
+ { no: 2, name: "unknown_subscriber", kind: "message", T: MediaNodeId, oneof: "error" },
17367
+ { no: 3, name: "multiple_streams", kind: "message", T: SubscriptionError_MultipleStreams, oneof: "error" },
17368
+ { no: 4, name: "source_subscription_error", kind: "message", T: SubscriptionError_SourceSubscriptionErrors, oneof: "error" },
17369
+ ]);
17370
+
17371
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionError {
17372
+ return new SubscriptionError().fromBinary(bytes, options);
17373
+ }
17374
+
17375
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionError {
17376
+ return new SubscriptionError().fromJson(jsonValue, options);
17377
+ }
17378
+
17379
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionError {
17380
+ return new SubscriptionError().fromJsonString(jsonString, options);
17381
+ }
17382
+
17383
+ static equals(a: SubscriptionError | PlainMessage<SubscriptionError> | undefined, b: SubscriptionError | PlainMessage<SubscriptionError> | undefined): boolean {
17384
+ return proto3.util.equals(SubscriptionError, a, b);
17385
+ }
17386
+ }
17387
+
17388
+ /**
17389
+ * @generated from message norsk.api.media.SubscriptionError.MultipleStreams
17390
+ */
17391
+ export class SubscriptionError_MultipleStreams extends Message<SubscriptionError_MultipleStreams> {
17392
+ /**
17393
+ * @generated from field: norsk.api.media.ContextType context_type = 1;
17394
+ */
17395
+ contextType = ContextType.FULL;
17396
+
17397
+ /**
17398
+ * @generated from field: repeated norsk.api.media.StreamKey stream_keys = 2;
17399
+ */
17400
+ streamKeys: StreamKey[] = [];
17401
+
17402
+ constructor(data?: PartialMessage<SubscriptionError_MultipleStreams>) {
17403
+ super();
17404
+ proto3.util.initPartial(data, this);
17405
+ }
17406
+
17407
+ static readonly runtime = proto3;
17408
+ static readonly typeName = "norsk.api.media.SubscriptionError.MultipleStreams";
17409
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
17410
+ { no: 1, name: "context_type", kind: "enum", T: proto3.getEnumType(ContextType) },
17411
+ { no: 2, name: "stream_keys", kind: "message", T: StreamKey, repeated: true },
17412
+ ]);
17413
+
17414
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionError_MultipleStreams {
17415
+ return new SubscriptionError_MultipleStreams().fromBinary(bytes, options);
17416
+ }
17417
+
17418
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionError_MultipleStreams {
17419
+ return new SubscriptionError_MultipleStreams().fromJson(jsonValue, options);
17420
+ }
17421
+
17422
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionError_MultipleStreams {
17423
+ return new SubscriptionError_MultipleStreams().fromJsonString(jsonString, options);
17424
+ }
17425
+
17426
+ static equals(a: SubscriptionError_MultipleStreams | PlainMessage<SubscriptionError_MultipleStreams> | undefined, b: SubscriptionError_MultipleStreams | PlainMessage<SubscriptionError_MultipleStreams> | undefined): boolean {
17427
+ return proto3.util.equals(SubscriptionError_MultipleStreams, a, b);
17428
+ }
17429
+ }
17430
+
17431
+ /**
17432
+ * @generated from message norsk.api.media.SubscriptionError.SourceSubscriptionErrors
17433
+ */
17434
+ export class SubscriptionError_SourceSubscriptionErrors extends Message<SubscriptionError_SourceSubscriptionErrors> {
17435
+ /**
17436
+ * @generated from field: repeated norsk.api.media.SourceSubscriptionError errors = 1;
17437
+ */
17438
+ errors: SourceSubscriptionError[] = [];
17439
+
17440
+ constructor(data?: PartialMessage<SubscriptionError_SourceSubscriptionErrors>) {
17441
+ super();
17442
+ proto3.util.initPartial(data, this);
17443
+ }
17444
+
17445
+ static readonly runtime = proto3;
17446
+ static readonly typeName = "norsk.api.media.SubscriptionError.SourceSubscriptionErrors";
17447
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
17448
+ { no: 1, name: "errors", kind: "message", T: SourceSubscriptionError, repeated: true },
17449
+ ]);
17450
+
17451
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionError_SourceSubscriptionErrors {
17452
+ return new SubscriptionError_SourceSubscriptionErrors().fromBinary(bytes, options);
17453
+ }
17454
+
17455
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionError_SourceSubscriptionErrors {
17456
+ return new SubscriptionError_SourceSubscriptionErrors().fromJson(jsonValue, options);
17457
+ }
17458
+
17459
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionError_SourceSubscriptionErrors {
17460
+ return new SubscriptionError_SourceSubscriptionErrors().fromJsonString(jsonString, options);
17461
+ }
17462
+
17463
+ static equals(a: SubscriptionError_SourceSubscriptionErrors | PlainMessage<SubscriptionError_SourceSubscriptionErrors> | undefined, b: SubscriptionError_SourceSubscriptionErrors | PlainMessage<SubscriptionError_SourceSubscriptionErrors> | undefined): boolean {
17464
+ return proto3.util.equals(SubscriptionError_SourceSubscriptionErrors, a, b);
17465
+ }
17466
+ }
17467
+
17468
+ /**
17469
+ * @generated from message norsk.api.media.SourceSubscriptionError
17470
+ */
17471
+ export class SourceSubscriptionError extends Message<SourceSubscriptionError> {
17472
+ /**
17473
+ * @generated from oneof norsk.api.media.SourceSubscriptionError.error
17474
+ */
17475
+ error: {
17476
+ /**
17477
+ * An opaque internal error
17478
+ *
17479
+ * @generated from field: string internal = 1;
17480
+ */
17481
+ value: string;
17482
+ case: "internal";
17483
+ } | {
17484
+ /**
17485
+ * The media node does not exist (maybe it crashed)
17486
+ *
17487
+ * @generated from field: norsk.api.media.MediaNodeId unknown_source_id = 2;
17488
+ */
17489
+ value: MediaNodeId;
17490
+ case: "unknownSourceId";
17491
+ } | {
17492
+ /**
17493
+ * The media node exists, but does not have the stream key
17494
+ *
17495
+ * @generated from field: norsk.api.media.SourceSubscriptionError.SourceStream unknown_source_stream = 3;
17496
+ */
17497
+ value: SourceSubscriptionError_SourceStream;
17498
+ case: "unknownSourceStream";
17499
+ } | {
17500
+ /**
17501
+ * The media node is not set up to receive data on this pin (which may be auto-detected)
17502
+ *
17503
+ * @generated from field: norsk.api.media.SourceSubscriptionError.NoSubscriberPin no_subscriber_pin = 4;
17504
+ */
17505
+ value: SourceSubscriptionError_NoSubscriberPin;
17506
+ case: "noSubscriberPin";
17507
+ } | {
17508
+ /**
17509
+ * Norsk does not support conversion from the media types of the source to the media types accepted by the subscriber
17510
+ *
17511
+ * @generated from field: norsk.api.media.SourceSubscriptionError.UnsupportedConversion unsupported_conversion = 5;
17512
+ */
17513
+ value: SourceSubscriptionError_UnsupportedConversion;
17514
+ case: "unsupportedConversion";
17515
+ } | { case: undefined; value?: undefined } = { case: undefined };
17516
+
17517
+ constructor(data?: PartialMessage<SourceSubscriptionError>) {
17518
+ super();
17519
+ proto3.util.initPartial(data, this);
17520
+ }
17521
+
17522
+ static readonly runtime = proto3;
17523
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError";
17524
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
17525
+ { no: 1, name: "internal", kind: "scalar", T: 9 /* ScalarType.STRING */, oneof: "error" },
17526
+ { no: 2, name: "unknown_source_id", kind: "message", T: MediaNodeId, oneof: "error" },
17527
+ { no: 3, name: "unknown_source_stream", kind: "message", T: SourceSubscriptionError_SourceStream, oneof: "error" },
17528
+ { no: 4, name: "no_subscriber_pin", kind: "message", T: SourceSubscriptionError_NoSubscriberPin, oneof: "error" },
17529
+ { no: 5, name: "unsupported_conversion", kind: "message", T: SourceSubscriptionError_UnsupportedConversion, oneof: "error" },
17530
+ ]);
17531
+
17532
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError {
17533
+ return new SourceSubscriptionError().fromBinary(bytes, options);
17534
+ }
17535
+
17536
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError {
17537
+ return new SourceSubscriptionError().fromJson(jsonValue, options);
17538
+ }
17539
+
17540
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError {
17541
+ return new SourceSubscriptionError().fromJsonString(jsonString, options);
17542
+ }
17543
+
17544
+ static equals(a: SourceSubscriptionError | PlainMessage<SourceSubscriptionError> | undefined, b: SourceSubscriptionError | PlainMessage<SourceSubscriptionError> | undefined): boolean {
17545
+ return proto3.util.equals(SourceSubscriptionError, a, b);
17546
+ }
17547
+ }
17548
+
17549
+ /**
17550
+ * @generated from message norsk.api.media.SourceSubscriptionError.SourceStream
17551
+ */
17552
+ export class SourceSubscriptionError_SourceStream extends Message<SourceSubscriptionError_SourceStream> {
17553
+ /**
17554
+ * @generated from field: norsk.api.media.MediaNodeId media_node_id = 1;
17555
+ */
17556
+ mediaNodeId?: MediaNodeId;
17557
+
17558
+ /**
17559
+ * @generated from field: norsk.api.media.StreamKey stream_key = 2;
17560
+ */
17561
+ streamKey?: StreamKey;
17562
+
17563
+ constructor(data?: PartialMessage<SourceSubscriptionError_SourceStream>) {
17564
+ super();
17565
+ proto3.util.initPartial(data, this);
17566
+ }
17567
+
17568
+ static readonly runtime = proto3;
17569
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError.SourceStream";
17570
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
17571
+ { no: 1, name: "media_node_id", kind: "message", T: MediaNodeId },
17572
+ { no: 2, name: "stream_key", kind: "message", T: StreamKey },
17573
+ ]);
17574
+
17575
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError_SourceStream {
17576
+ return new SourceSubscriptionError_SourceStream().fromBinary(bytes, options);
17577
+ }
17578
+
17579
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError_SourceStream {
17580
+ return new SourceSubscriptionError_SourceStream().fromJson(jsonValue, options);
17581
+ }
17582
+
17583
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError_SourceStream {
17584
+ return new SourceSubscriptionError_SourceStream().fromJsonString(jsonString, options);
17585
+ }
17586
+
17587
+ static equals(a: SourceSubscriptionError_SourceStream | PlainMessage<SourceSubscriptionError_SourceStream> | undefined, b: SourceSubscriptionError_SourceStream | PlainMessage<SourceSubscriptionError_SourceStream> | undefined): boolean {
17588
+ return proto3.util.equals(SourceSubscriptionError_SourceStream, a, b);
17589
+ }
17590
+ }
17591
+
17592
+ /**
17593
+ * @generated from message norsk.api.media.SourceSubscriptionError.NoSubscriberPin
17594
+ */
17595
+ export class SourceSubscriptionError_NoSubscriberPin extends Message<SourceSubscriptionError_NoSubscriberPin> {
17596
+ /**
17597
+ * @generated from field: norsk.api.media.SourceSubscriptionError.SourceStream source_stream = 1;
17598
+ */
17599
+ sourceStream?: SourceSubscriptionError_SourceStream;
17600
+
17601
+ /**
17602
+ * @generated from field: string pin = 2;
17603
+ */
17604
+ pin = "";
17605
+
17606
+ /**
17607
+ * @generated from field: repeated string subscriber_pins = 3;
17608
+ */
17609
+ subscriberPins: string[] = [];
17610
+
17611
+ constructor(data?: PartialMessage<SourceSubscriptionError_NoSubscriberPin>) {
17612
+ super();
17613
+ proto3.util.initPartial(data, this);
17614
+ }
17615
+
17616
+ static readonly runtime = proto3;
17617
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError.NoSubscriberPin";
17618
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
17619
+ { no: 1, name: "source_stream", kind: "message", T: SourceSubscriptionError_SourceStream },
17620
+ { no: 2, name: "pin", kind: "scalar", T: 9 /* ScalarType.STRING */ },
17621
+ { no: 3, name: "subscriber_pins", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
17622
+ ]);
17623
+
17624
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError_NoSubscriberPin {
17625
+ return new SourceSubscriptionError_NoSubscriberPin().fromBinary(bytes, options);
17626
+ }
17627
+
17628
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError_NoSubscriberPin {
17629
+ return new SourceSubscriptionError_NoSubscriberPin().fromJson(jsonValue, options);
17630
+ }
17631
+
17632
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError_NoSubscriberPin {
17633
+ return new SourceSubscriptionError_NoSubscriberPin().fromJsonString(jsonString, options);
17634
+ }
17635
+
17636
+ static equals(a: SourceSubscriptionError_NoSubscriberPin | PlainMessage<SourceSubscriptionError_NoSubscriberPin> | undefined, b: SourceSubscriptionError_NoSubscriberPin | PlainMessage<SourceSubscriptionError_NoSubscriberPin> | undefined): boolean {
17637
+ return proto3.util.equals(SourceSubscriptionError_NoSubscriberPin, a, b);
17638
+ }
17639
+ }
17640
+
17641
+ /**
17642
+ * @generated from message norsk.api.media.SourceSubscriptionError.UnsupportedConversion
17643
+ */
17644
+ export class SourceSubscriptionError_UnsupportedConversion extends Message<SourceSubscriptionError_UnsupportedConversion> {
17645
+ /**
17646
+ * @generated from field: norsk.api.media.SourceSubscriptionError.SourceStream source_stream = 1;
17647
+ */
17648
+ sourceStream?: SourceSubscriptionError_SourceStream;
17649
+
17650
+ /**
17651
+ * @generated from field: repeated string source_types = 2;
17652
+ */
17653
+ sourceTypes: string[] = [];
17654
+
17655
+ /**
17656
+ * @generated from field: repeated string subscriber_types = 3;
17657
+ */
17658
+ subscriberTypes: string[] = [];
17659
+
17660
+ constructor(data?: PartialMessage<SourceSubscriptionError_UnsupportedConversion>) {
17661
+ super();
17662
+ proto3.util.initPartial(data, this);
17663
+ }
17664
+
17665
+ static readonly runtime = proto3;
17666
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError.UnsupportedConversion";
17667
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
17668
+ { no: 1, name: "source_stream", kind: "message", T: SourceSubscriptionError_SourceStream },
17669
+ { no: 2, name: "source_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
17670
+ { no: 3, name: "subscriber_types", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
17671
+ ]);
17672
+
17673
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError_UnsupportedConversion {
17674
+ return new SourceSubscriptionError_UnsupportedConversion().fromBinary(bytes, options);
17675
+ }
17676
+
17677
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError_UnsupportedConversion {
17678
+ return new SourceSubscriptionError_UnsupportedConversion().fromJson(jsonValue, options);
17679
+ }
17680
+
17681
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError_UnsupportedConversion {
17682
+ return new SourceSubscriptionError_UnsupportedConversion().fromJsonString(jsonString, options);
17683
+ }
17684
+
17685
+ static equals(a: SourceSubscriptionError_UnsupportedConversion | PlainMessage<SourceSubscriptionError_UnsupportedConversion> | undefined, b: SourceSubscriptionError_UnsupportedConversion | PlainMessage<SourceSubscriptionError_UnsupportedConversion> | undefined): boolean {
17686
+ return proto3.util.equals(SourceSubscriptionError_UnsupportedConversion, a, b);
17687
+ }
17688
+ }
17689
+
17264
17690
  /**
17265
17691
  * `Struct` represents a structured data value, consisting of fields
17266
17692
  * which map to dynamically typed values. In some languages, `Struct`