@norskvideo/norsk-api 0.0.327 → 0.0.329

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.d.ts CHANGED
@@ -1037,6 +1037,31 @@ export declare enum VideoIOSupport {
1037
1037
  */
1038
1038
  PLAYBACK = 1
1039
1039
  }
1040
+ /**
1041
+ * @generated from enum norsk.api.media.ContextType
1042
+ */
1043
+ export declare enum ContextType {
1044
+ /**
1045
+ * @generated from enum value: CONTEXT_TYPE_FULL = 0;
1046
+ */
1047
+ FULL = 0,
1048
+ /**
1049
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_SOURCE = 1;
1050
+ */
1051
+ SINGLE_SOURCE = 1,
1052
+ /**
1053
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_PROGRAM = 2;
1054
+ */
1055
+ SINGLE_PROGRAM = 2,
1056
+ /**
1057
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_STREAM = 3;
1058
+ */
1059
+ SINGLE_STREAM = 3,
1060
+ /**
1061
+ * @generated from enum value: CONTEXT_TYPE_SINGLE_RENDITION = 4;
1062
+ */
1063
+ SINGLE_RENDITION = 4
1064
+ }
1040
1065
  /**
1041
1066
  * The canonical error codes for gRPC APIs.
1042
1067
  *
@@ -4220,13 +4245,14 @@ export declare class ComposePart extends Message<ComposePart> {
4220
4245
  destRect?: OffsetRectangle;
4221
4246
  /**
4222
4247
  * Z-index to determine ordering by which the sources are overlaid
4248
+ * (higher layers appear on top)
4223
4249
  *
4224
4250
  * @generated from field: uint32 z_index = 4;
4225
4251
  */
4226
4252
  zIndex: number;
4227
4253
  /**
4228
- * Opacity of this overlay (where 0.0 is fully transparent and 1.0 is fully
4229
- * opaque)
4254
+ * Opacity multiplier of this overlay (where 0.0 is fully transparent and 1.0
4255
+ * is fully opaque)
4230
4256
  *
4231
4257
  * @generated from field: float opacity = 5;
4232
4258
  */
@@ -4408,7 +4434,7 @@ export declare class ComposeVideoMessage extends Message<ComposeVideoMessage> {
4408
4434
  }
4409
4435
  /**
4410
4436
  * *
4411
- * Configure an Compose Media Node.
4437
+ * Configure a Compose Media Node.
4412
4438
  *
4413
4439
  * @generated from message norsk.api.media.ComposeVideoConfiguration
4414
4440
  */
@@ -4552,7 +4578,7 @@ export declare enum ComposeVideoConfiguration_MissingStreamBehaviour {
4552
4578
  */
4553
4579
  export declare class ComposeVideoUpdateConfiguration extends Message<ComposeVideoUpdateConfiguration> {
4554
4580
  /**
4555
- * The parts (images/overlays) to include in the composition
4581
+ * Update the parts (images/overlays) to include in the composition
4556
4582
  *
4557
4583
  * @generated from field: repeated norsk.api.media.ComposePart parts = 1;
4558
4584
  */
@@ -10482,17 +10508,17 @@ export declare class SubscribeSource extends Message<SubscribeSource> {
10482
10508
  */
10483
10509
  export declare class Subscription extends Message<Subscription> {
10484
10510
  /**
10485
- * The individual subscription components
10511
+ * An arbitrary id of the subscription, to enable correlating of the corresponding subscription response
10486
10512
  *
10487
- * @generated from field: repeated norsk.api.media.SubscribeSource sources = 2;
10513
+ * @generated from field: string id = 1;
10488
10514
  */
10489
- sources: SubscribeSource[];
10515
+ id: string;
10490
10516
  /**
10491
- * An arbitrary id of the subscription, to enable correlating of the corresponding subscription response
10517
+ * The individual subscription components
10492
10518
  *
10493
- * @generated from field: string id = 3;
10519
+ * @generated from field: repeated norsk.api.media.SubscribeSource sources = 2;
10494
10520
  */
10495
- id: string;
10521
+ sources: SubscribeSource[];
10496
10522
  constructor(data?: PartialMessage<Subscription>);
10497
10523
  static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10498
10524
  static readonly typeName = "norsk.api.media.Subscription";
@@ -10509,17 +10535,17 @@ export declare class Subscription extends Message<Subscription> {
10509
10535
  */
10510
10536
  export declare class SubscriptionResponse extends Message<SubscriptionResponse> {
10511
10537
  /**
10512
- * The subscription status
10538
+ * The id of the subscription which this message is a response to
10513
10539
  *
10514
- * @generated from field: norsk.api.media.Status status = 2;
10540
+ * @generated from field: string id = 1;
10515
10541
  */
10516
- status?: Status;
10542
+ id: string;
10517
10543
  /**
10518
- * The id of the subscription which this message is a response to
10544
+ * The error that prevented the subscription, if any
10519
10545
  *
10520
- * @generated from field: string id = 3;
10546
+ * @generated from field: norsk.api.media.SubscriptionError error = 2;
10521
10547
  */
10522
- id: string;
10548
+ error?: SubscriptionError;
10523
10549
  constructor(data?: PartialMessage<SubscriptionResponse>);
10524
10550
  static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10525
10551
  static readonly typeName = "norsk.api.media.SubscriptionResponse";
@@ -10529,6 +10555,227 @@ export declare class SubscriptionResponse extends Message<SubscriptionResponse>
10529
10555
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionResponse;
10530
10556
  static equals(a: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined, b: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined): boolean;
10531
10557
  }
10558
+ /**
10559
+ * @generated from message norsk.api.media.SubscriptionError
10560
+ */
10561
+ export declare class SubscriptionError extends Message<SubscriptionError> {
10562
+ /**
10563
+ * @generated from oneof norsk.api.media.SubscriptionError.error
10564
+ */
10565
+ error: {
10566
+ /**
10567
+ * An opaque internal error
10568
+ *
10569
+ * @generated from field: string internal = 1;
10570
+ */
10571
+ value: string;
10572
+ case: "internal";
10573
+ } | {
10574
+ /**
10575
+ * The media node requesting the subscription does not exist
10576
+ *
10577
+ * @generated from field: norsk.api.media.MediaNodeId unknown_subscriber = 2;
10578
+ */
10579
+ value: MediaNodeId;
10580
+ case: "unknownSubscriber";
10581
+ } | {
10582
+ /**
10583
+ * Multiple stream keys found for the context type
10584
+ *
10585
+ * @generated from field: norsk.api.media.SubscriptionError.MultipleStreams multiple_streams = 3;
10586
+ */
10587
+ value: SubscriptionError_MultipleStreams;
10588
+ case: "multipleStreams";
10589
+ } | {
10590
+ /**
10591
+ * Per-source errors
10592
+ *
10593
+ * @generated from field: norsk.api.media.SubscriptionError.SourceSubscriptionErrors source_subscription_error = 4;
10594
+ */
10595
+ value: SubscriptionError_SourceSubscriptionErrors;
10596
+ case: "sourceSubscriptionError";
10597
+ } | {
10598
+ case: undefined;
10599
+ value?: undefined;
10600
+ };
10601
+ constructor(data?: PartialMessage<SubscriptionError>);
10602
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10603
+ static readonly typeName = "norsk.api.media.SubscriptionError";
10604
+ static readonly fields: FieldList;
10605
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionError;
10606
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionError;
10607
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionError;
10608
+ static equals(a: SubscriptionError | PlainMessage<SubscriptionError> | undefined, b: SubscriptionError | PlainMessage<SubscriptionError> | undefined): boolean;
10609
+ }
10610
+ /**
10611
+ * @generated from message norsk.api.media.SubscriptionError.MultipleStreams
10612
+ */
10613
+ export declare class SubscriptionError_MultipleStreams extends Message<SubscriptionError_MultipleStreams> {
10614
+ /**
10615
+ * @generated from field: norsk.api.media.ContextType context_type = 1;
10616
+ */
10617
+ contextType: ContextType;
10618
+ /**
10619
+ * @generated from field: repeated norsk.api.media.StreamKey stream_keys = 2;
10620
+ */
10621
+ streamKeys: StreamKey[];
10622
+ constructor(data?: PartialMessage<SubscriptionError_MultipleStreams>);
10623
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10624
+ static readonly typeName = "norsk.api.media.SubscriptionError.MultipleStreams";
10625
+ static readonly fields: FieldList;
10626
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionError_MultipleStreams;
10627
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionError_MultipleStreams;
10628
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionError_MultipleStreams;
10629
+ static equals(a: SubscriptionError_MultipleStreams | PlainMessage<SubscriptionError_MultipleStreams> | undefined, b: SubscriptionError_MultipleStreams | PlainMessage<SubscriptionError_MultipleStreams> | undefined): boolean;
10630
+ }
10631
+ /**
10632
+ * @generated from message norsk.api.media.SubscriptionError.SourceSubscriptionErrors
10633
+ */
10634
+ export declare class SubscriptionError_SourceSubscriptionErrors extends Message<SubscriptionError_SourceSubscriptionErrors> {
10635
+ /**
10636
+ * @generated from field: repeated norsk.api.media.SourceSubscriptionError errors = 1;
10637
+ */
10638
+ errors: SourceSubscriptionError[];
10639
+ constructor(data?: PartialMessage<SubscriptionError_SourceSubscriptionErrors>);
10640
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10641
+ static readonly typeName = "norsk.api.media.SubscriptionError.SourceSubscriptionErrors";
10642
+ static readonly fields: FieldList;
10643
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionError_SourceSubscriptionErrors;
10644
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionError_SourceSubscriptionErrors;
10645
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionError_SourceSubscriptionErrors;
10646
+ static equals(a: SubscriptionError_SourceSubscriptionErrors | PlainMessage<SubscriptionError_SourceSubscriptionErrors> | undefined, b: SubscriptionError_SourceSubscriptionErrors | PlainMessage<SubscriptionError_SourceSubscriptionErrors> | undefined): boolean;
10647
+ }
10648
+ /**
10649
+ * @generated from message norsk.api.media.SourceSubscriptionError
10650
+ */
10651
+ export declare class SourceSubscriptionError extends Message<SourceSubscriptionError> {
10652
+ /**
10653
+ * @generated from oneof norsk.api.media.SourceSubscriptionError.error
10654
+ */
10655
+ error: {
10656
+ /**
10657
+ * An opaque internal error
10658
+ *
10659
+ * @generated from field: string internal = 1;
10660
+ */
10661
+ value: string;
10662
+ case: "internal";
10663
+ } | {
10664
+ /**
10665
+ * The media node does not exist (maybe it crashed)
10666
+ *
10667
+ * @generated from field: norsk.api.media.MediaNodeId unknown_source_id = 2;
10668
+ */
10669
+ value: MediaNodeId;
10670
+ case: "unknownSourceId";
10671
+ } | {
10672
+ /**
10673
+ * The media node exists, but does not have the stream key
10674
+ *
10675
+ * @generated from field: norsk.api.media.SourceSubscriptionError.SourceStream unknown_source_stream = 3;
10676
+ */
10677
+ value: SourceSubscriptionError_SourceStream;
10678
+ case: "unknownSourceStream";
10679
+ } | {
10680
+ /**
10681
+ * The media node is not set up to receive data on this pin (which may be auto-detected)
10682
+ *
10683
+ * @generated from field: norsk.api.media.SourceSubscriptionError.NoSubscriberPin no_subscriber_pin = 4;
10684
+ */
10685
+ value: SourceSubscriptionError_NoSubscriberPin;
10686
+ case: "noSubscriberPin";
10687
+ } | {
10688
+ /**
10689
+ * Norsk does not support conversion from the media types of the source to the media types accepted by the subscriber
10690
+ *
10691
+ * @generated from field: norsk.api.media.SourceSubscriptionError.UnsupportedConversion unsupported_conversion = 5;
10692
+ */
10693
+ value: SourceSubscriptionError_UnsupportedConversion;
10694
+ case: "unsupportedConversion";
10695
+ } | {
10696
+ case: undefined;
10697
+ value?: undefined;
10698
+ };
10699
+ constructor(data?: PartialMessage<SourceSubscriptionError>);
10700
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10701
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError";
10702
+ static readonly fields: FieldList;
10703
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError;
10704
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError;
10705
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError;
10706
+ static equals(a: SourceSubscriptionError | PlainMessage<SourceSubscriptionError> | undefined, b: SourceSubscriptionError | PlainMessage<SourceSubscriptionError> | undefined): boolean;
10707
+ }
10708
+ /**
10709
+ * @generated from message norsk.api.media.SourceSubscriptionError.SourceStream
10710
+ */
10711
+ export declare class SourceSubscriptionError_SourceStream extends Message<SourceSubscriptionError_SourceStream> {
10712
+ /**
10713
+ * @generated from field: norsk.api.media.MediaNodeId media_node_id = 1;
10714
+ */
10715
+ mediaNodeId?: MediaNodeId;
10716
+ /**
10717
+ * @generated from field: norsk.api.media.StreamKey stream_key = 2;
10718
+ */
10719
+ streamKey?: StreamKey;
10720
+ constructor(data?: PartialMessage<SourceSubscriptionError_SourceStream>);
10721
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10722
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError.SourceStream";
10723
+ static readonly fields: FieldList;
10724
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError_SourceStream;
10725
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError_SourceStream;
10726
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError_SourceStream;
10727
+ static equals(a: SourceSubscriptionError_SourceStream | PlainMessage<SourceSubscriptionError_SourceStream> | undefined, b: SourceSubscriptionError_SourceStream | PlainMessage<SourceSubscriptionError_SourceStream> | undefined): boolean;
10728
+ }
10729
+ /**
10730
+ * @generated from message norsk.api.media.SourceSubscriptionError.NoSubscriberPin
10731
+ */
10732
+ export declare class SourceSubscriptionError_NoSubscriberPin extends Message<SourceSubscriptionError_NoSubscriberPin> {
10733
+ /**
10734
+ * @generated from field: norsk.api.media.SourceSubscriptionError.SourceStream source_stream = 1;
10735
+ */
10736
+ sourceStream?: SourceSubscriptionError_SourceStream;
10737
+ /**
10738
+ * @generated from field: string pin = 2;
10739
+ */
10740
+ pin: string;
10741
+ /**
10742
+ * @generated from field: repeated string subscriber_pins = 3;
10743
+ */
10744
+ subscriberPins: string[];
10745
+ constructor(data?: PartialMessage<SourceSubscriptionError_NoSubscriberPin>);
10746
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10747
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError.NoSubscriberPin";
10748
+ static readonly fields: FieldList;
10749
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError_NoSubscriberPin;
10750
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError_NoSubscriberPin;
10751
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError_NoSubscriberPin;
10752
+ static equals(a: SourceSubscriptionError_NoSubscriberPin | PlainMessage<SourceSubscriptionError_NoSubscriberPin> | undefined, b: SourceSubscriptionError_NoSubscriberPin | PlainMessage<SourceSubscriptionError_NoSubscriberPin> | undefined): boolean;
10753
+ }
10754
+ /**
10755
+ * @generated from message norsk.api.media.SourceSubscriptionError.UnsupportedConversion
10756
+ */
10757
+ export declare class SourceSubscriptionError_UnsupportedConversion extends Message<SourceSubscriptionError_UnsupportedConversion> {
10758
+ /**
10759
+ * @generated from field: norsk.api.media.SourceSubscriptionError.SourceStream source_stream = 1;
10760
+ */
10761
+ sourceStream?: SourceSubscriptionError_SourceStream;
10762
+ /**
10763
+ * @generated from field: repeated string source_types = 2;
10764
+ */
10765
+ sourceTypes: string[];
10766
+ /**
10767
+ * @generated from field: repeated string subscriber_types = 3;
10768
+ */
10769
+ subscriberTypes: string[];
10770
+ constructor(data?: PartialMessage<SourceSubscriptionError_UnsupportedConversion>);
10771
+ static readonly runtime: import("@bufbuild/protobuf/dist/types/private/proto-runtime.js").ProtoRuntime;
10772
+ static readonly typeName = "norsk.api.media.SourceSubscriptionError.UnsupportedConversion";
10773
+ static readonly fields: FieldList;
10774
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceSubscriptionError_UnsupportedConversion;
10775
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceSubscriptionError_UnsupportedConversion;
10776
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceSubscriptionError_UnsupportedConversion;
10777
+ static equals(a: SourceSubscriptionError_UnsupportedConversion | PlainMessage<SourceSubscriptionError_UnsupportedConversion> | undefined, b: SourceSubscriptionError_UnsupportedConversion | PlainMessage<SourceSubscriptionError_UnsupportedConversion> | undefined): boolean;
10778
+ }
10532
10779
  /**
10533
10780
  * `Struct` represents a structured data value, consisting of fields
10534
10781
  * which map to dynamically typed values. In some languages, `Struct`