@norskvideo/norsk-api 1.0.365 → 1.0.367

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
@@ -5,7 +5,7 @@
5
5
 
6
6
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
7
7
  import { Empty, Message, proto3, protoInt64, Timestamp } from "@bufbuild/protobuf";
8
- import { CurrentLoad, Log, OptionalBool, OptionalInt, OptionalInt64, OptionalString, Version } from "./shared/common_pb.js";
8
+ import { CurrentLoad, Log, OptionalBool, OptionalInt, OptionalInt64, OptionalString, UInt32OrInfinity, Version } from "./shared/common_pb.js";
9
9
 
10
10
  /**
11
11
  * Enumeration of possible channel positions.
@@ -6421,9 +6421,9 @@ export class TestCardVideoConfiguration extends Message<TestCardVideoConfigurati
6421
6421
  sourceName = "";
6422
6422
 
6423
6423
  /**
6424
- * @generated from field: int32 number_of_frames = 4;
6424
+ * @generated from field: norsk.api.common.UInt32OrInfinity number_of_frames = 4;
6425
6425
  */
6426
- numberOfFrames = 0;
6426
+ numberOfFrames?: UInt32OrInfinity;
6427
6427
 
6428
6428
  /**
6429
6429
  * @generated from field: bool realtime = 5;
@@ -6446,7 +6446,7 @@ export class TestCardVideoConfiguration extends Message<TestCardVideoConfigurati
6446
6446
  { no: 1, name: "resolution", kind: "message", T: Resolution },
6447
6447
  { no: 2, name: "frame_rate", kind: "message", T: FrameRate },
6448
6448
  { no: 3, name: "source_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6449
- { no: 4, name: "number_of_frames", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
6449
+ { no: 4, name: "number_of_frames", kind: "message", T: UInt32OrInfinity },
6450
6450
  { no: 5, name: "realtime", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
6451
6451
  { no: 6, name: "pattern", kind: "enum", T: proto3.getEnumType(TestCardPattern) },
6452
6452
  ]);
@@ -6811,17 +6811,22 @@ export class DeltacastInputConfiguration extends Message<DeltacastInputConfigura
6811
6811
  deviceId = 0;
6812
6812
 
6813
6813
  /**
6814
- * @generated from field: uint32 channel_index = 4;
6814
+ * @generated from field: bool capture_video = 4;
6815
+ */
6816
+ captureVideo = false;
6817
+
6818
+ /**
6819
+ * @generated from field: uint32 channel_index = 5;
6815
6820
  */
6816
6821
  channelIndex = 0;
6817
6822
 
6818
6823
  /**
6819
- * @generated from field: uint32 audio_channel_mask = 5;
6824
+ * @generated from field: uint32 audio_channel_mask = 6;
6820
6825
  */
6821
6826
  audioChannelMask = 0;
6822
6827
 
6823
6828
  /**
6824
- * @generated from field: norsk.api.media.StreamStatisticsSampling stats_sampling = 6;
6829
+ * @generated from field: norsk.api.media.StreamStatisticsSampling stats_sampling = 7;
6825
6830
  */
6826
6831
  statsSampling?: StreamStatisticsSampling;
6827
6832
 
@@ -6836,9 +6841,10 @@ export class DeltacastInputConfiguration extends Message<DeltacastInputConfigura
6836
6841
  { no: 1, name: "id", kind: "message", T: MediaNodeId },
6837
6842
  { no: 2, name: "source_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
6838
6843
  { no: 3, name: "device_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
6839
- { no: 4, name: "channel_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
6840
- { no: 5, name: "audio_channel_mask", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
6841
- { no: 6, name: "stats_sampling", kind: "message", T: StreamStatisticsSampling },
6844
+ { no: 4, name: "capture_video", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
6845
+ { no: 5, name: "channel_index", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
6846
+ { no: 6, name: "audio_channel_mask", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
6847
+ { no: 7, name: "stats_sampling", kind: "message", T: StreamStatisticsSampling },
6842
6848
  ]);
6843
6849
 
6844
6850
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DeltacastInputConfiguration {
@@ -7370,6 +7376,18 @@ export class FileMp4InputMessage extends Message<FileMp4InputMessage> {
7370
7376
  */
7371
7377
  value: Empty;
7372
7378
  case: "pause";
7379
+ } | {
7380
+ /**
7381
+ * @generated from field: norsk.api.media.FileMp4InputSeek seek = 6;
7382
+ */
7383
+ value: FileMp4InputSeek;
7384
+ case: "seek";
7385
+ } | {
7386
+ /**
7387
+ * @generated from field: norsk.api.media.FileMp4InputPlayUntil playUntil = 7;
7388
+ */
7389
+ value: FileMp4InputPlayUntil;
7390
+ case: "playUntil";
7373
7391
  } | { case: undefined; value?: undefined } = { case: undefined };
7374
7392
 
7375
7393
  constructor(data?: PartialMessage<FileMp4InputMessage>) {
@@ -7385,6 +7403,8 @@ export class FileMp4InputMessage extends Message<FileMp4InputMessage> {
7385
7403
  { no: 3, name: "update_config", kind: "message", T: FileMp4InputConfigurationUpdate, oneof: "message" },
7386
7404
  { no: 4, name: "play", kind: "message", T: Empty, oneof: "message" },
7387
7405
  { no: 5, name: "pause", kind: "message", T: Empty, oneof: "message" },
7406
+ { no: 6, name: "seek", kind: "message", T: FileMp4InputSeek, oneof: "message" },
7407
+ { no: 7, name: "playUntil", kind: "message", T: FileMp4InputPlayUntil, oneof: "message" },
7388
7408
  ]);
7389
7409
 
7390
7410
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileMp4InputMessage {
@@ -7404,6 +7424,80 @@ export class FileMp4InputMessage extends Message<FileMp4InputMessage> {
7404
7424
  }
7405
7425
  }
7406
7426
 
7427
+ /**
7428
+ * @generated from message norsk.api.media.FileMp4InputSeek
7429
+ */
7430
+ export class FileMp4InputSeek extends Message<FileMp4InputSeek> {
7431
+ /**
7432
+ * @generated from field: uint32 offset_ms = 1;
7433
+ */
7434
+ offsetMs = 0;
7435
+
7436
+ constructor(data?: PartialMessage<FileMp4InputSeek>) {
7437
+ super();
7438
+ proto3.util.initPartial(data, this);
7439
+ }
7440
+
7441
+ static readonly runtime = proto3;
7442
+ static readonly typeName = "norsk.api.media.FileMp4InputSeek";
7443
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
7444
+ { no: 1, name: "offset_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
7445
+ ]);
7446
+
7447
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileMp4InputSeek {
7448
+ return new FileMp4InputSeek().fromBinary(bytes, options);
7449
+ }
7450
+
7451
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileMp4InputSeek {
7452
+ return new FileMp4InputSeek().fromJson(jsonValue, options);
7453
+ }
7454
+
7455
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileMp4InputSeek {
7456
+ return new FileMp4InputSeek().fromJsonString(jsonString, options);
7457
+ }
7458
+
7459
+ static equals(a: FileMp4InputSeek | PlainMessage<FileMp4InputSeek> | undefined, b: FileMp4InputSeek | PlainMessage<FileMp4InputSeek> | undefined): boolean {
7460
+ return proto3.util.equals(FileMp4InputSeek, a, b);
7461
+ }
7462
+ }
7463
+
7464
+ /**
7465
+ * @generated from message norsk.api.media.FileMp4InputPlayUntil
7466
+ */
7467
+ export class FileMp4InputPlayUntil extends Message<FileMp4InputPlayUntil> {
7468
+ /**
7469
+ * @generated from field: uint32 offset_ms = 1;
7470
+ */
7471
+ offsetMs = 0;
7472
+
7473
+ constructor(data?: PartialMessage<FileMp4InputPlayUntil>) {
7474
+ super();
7475
+ proto3.util.initPartial(data, this);
7476
+ }
7477
+
7478
+ static readonly runtime = proto3;
7479
+ static readonly typeName = "norsk.api.media.FileMp4InputPlayUntil";
7480
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
7481
+ { no: 1, name: "offset_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
7482
+ ]);
7483
+
7484
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileMp4InputPlayUntil {
7485
+ return new FileMp4InputPlayUntil().fromBinary(bytes, options);
7486
+ }
7487
+
7488
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileMp4InputPlayUntil {
7489
+ return new FileMp4InputPlayUntil().fromJson(jsonValue, options);
7490
+ }
7491
+
7492
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileMp4InputPlayUntil {
7493
+ return new FileMp4InputPlayUntil().fromJsonString(jsonString, options);
7494
+ }
7495
+
7496
+ static equals(a: FileMp4InputPlayUntil | PlainMessage<FileMp4InputPlayUntil> | undefined, b: FileMp4InputPlayUntil | PlainMessage<FileMp4InputPlayUntil> | undefined): boolean {
7497
+ return proto3.util.equals(FileMp4InputPlayUntil, a, b);
7498
+ }
7499
+ }
7500
+
7407
7501
  /**
7408
7502
  * @generated from message norsk.api.media.FileMp4InputStatus
7409
7503
  */
@@ -7454,11 +7548,23 @@ export enum FileMp4InputStatus_State {
7454
7548
  * @generated from enum value: INPUT_STATUS_EOF = 1;
7455
7549
  */
7456
7550
  INPUT_STATUS_EOF = 1,
7551
+
7552
+ /**
7553
+ * @generated from enum value: INPUT_STATUS_EOF_LOOPING = 2;
7554
+ */
7555
+ INPUT_STATUS_EOF_LOOPING = 2,
7556
+
7557
+ /**
7558
+ * @generated from enum value: INPUT_STATUS_STOP_POSITION = 3;
7559
+ */
7560
+ INPUT_STATUS_STOP_POSITION = 3,
7457
7561
  }
7458
7562
  // Retrieve enum metadata with: proto3.getEnumType(FileMp4InputStatus_State)
7459
7563
  proto3.util.setEnumType(FileMp4InputStatus_State, "norsk.api.media.FileMp4InputStatus.State", [
7460
7564
  { no: 0, name: "INPUT_STATUS_UNKNOWN" },
7461
7565
  { no: 1, name: "INPUT_STATUS_EOF" },
7566
+ { no: 2, name: "INPUT_STATUS_EOF_LOOPING" },
7567
+ { no: 3, name: "INPUT_STATUS_STOP_POSITION" },
7462
7568
  ]);
7463
7569
 
7464
7570
  /**
@@ -12837,6 +12943,20 @@ export class HlsPushDestination extends Message<HlsPushDestination> {
12837
12943
  */
12838
12944
  partHoldBackSeconds = 0;
12839
12945
 
12946
+ /**
12947
+ * whether the server supports gzip compression on PUT/POST requests
12948
+ *
12949
+ * @generated from field: bool supports_gzip = 10;
12950
+ */
12951
+ supportsGzip = false;
12952
+
12953
+ /**
12954
+ * Whether to use TLS or plain TCP transport, by default TLS used if port is 443
12955
+ *
12956
+ * @generated from field: norsk.api.common.OptionalBool tls_transport = 11;
12957
+ */
12958
+ tlsTransport?: OptionalBool;
12959
+
12840
12960
  constructor(data?: PartialMessage<HlsPushDestination>) {
12841
12961
  super();
12842
12962
  proto3.util.initPartial(data, this);
@@ -12854,6 +12974,8 @@ export class HlsPushDestination extends Message<HlsPushDestination> {
12854
12974
  { no: 7, name: "default_segment_count", kind: "message", T: OptionalInt },
12855
12975
  { no: 8, name: "hold_back_seconds", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
12856
12976
  { no: 9, name: "part_hold_back_seconds", kind: "scalar", T: 2 /* ScalarType.FLOAT */ },
12977
+ { no: 10, name: "supports_gzip", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
12978
+ { no: 11, name: "tls_transport", kind: "message", T: OptionalBool },
12857
12979
  ]);
12858
12980
 
12859
12981
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): HlsPushDestination {
@@ -25921,6 +26043,49 @@ export class MediaStoreRecorderConfiguration extends Message<MediaStoreRecorderC
25921
26043
  }
25922
26044
  }
25923
26045
 
26046
+ /**
26047
+ * @generated from message norsk.api.media.MediaStoreSnapshotConfiguration
26048
+ */
26049
+ export class MediaStoreSnapshotConfiguration extends Message<MediaStoreSnapshotConfiguration> {
26050
+ /**
26051
+ * @generated from field: string name = 1;
26052
+ */
26053
+ name = "";
26054
+
26055
+ /**
26056
+ * @generated from field: string path = 2;
26057
+ */
26058
+ path = "";
26059
+
26060
+ constructor(data?: PartialMessage<MediaStoreSnapshotConfiguration>) {
26061
+ super();
26062
+ proto3.util.initPartial(data, this);
26063
+ }
26064
+
26065
+ static readonly runtime = proto3;
26066
+ static readonly typeName = "norsk.api.media.MediaStoreSnapshotConfiguration";
26067
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26068
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26069
+ { no: 2, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26070
+ ]);
26071
+
26072
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreSnapshotConfiguration {
26073
+ return new MediaStoreSnapshotConfiguration().fromBinary(bytes, options);
26074
+ }
26075
+
26076
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreSnapshotConfiguration {
26077
+ return new MediaStoreSnapshotConfiguration().fromJson(jsonValue, options);
26078
+ }
26079
+
26080
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreSnapshotConfiguration {
26081
+ return new MediaStoreSnapshotConfiguration().fromJsonString(jsonString, options);
26082
+ }
26083
+
26084
+ static equals(a: MediaStoreSnapshotConfiguration | PlainMessage<MediaStoreSnapshotConfiguration> | undefined, b: MediaStoreSnapshotConfiguration | PlainMessage<MediaStoreSnapshotConfiguration> | undefined): boolean {
26085
+ return proto3.util.equals(MediaStoreSnapshotConfiguration, a, b);
26086
+ }
26087
+ }
26088
+
25924
26089
  /**
25925
26090
  * @generated from message norsk.api.media.StreamSelection
25926
26091
  */
@@ -25998,6 +26163,11 @@ export class SingleCut extends Message<SingleCut> {
25998
26163
  */
25999
26164
  sessionNum?: OptionalInt;
26000
26165
 
26166
+ /**
26167
+ * @generated from field: norsk.api.common.UInt32OrInfinity repeat_count = 7;
26168
+ */
26169
+ repeatCount?: UInt32OrInfinity;
26170
+
26001
26171
  constructor(data?: PartialMessage<SingleCut>) {
26002
26172
  super();
26003
26173
  proto3.util.initPartial(data, this);
@@ -26012,6 +26182,7 @@ export class SingleCut extends Message<SingleCut> {
26012
26182
  { no: 4, name: "duration_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
26013
26183
  { no: 5, name: "trim_partial_gops", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
26014
26184
  { no: 6, name: "session_num", kind: "message", T: OptionalInt },
26185
+ { no: 7, name: "repeat_count", kind: "message", T: UInt32OrInfinity },
26015
26186
  ]);
26016
26187
 
26017
26188
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SingleCut {
@@ -26032,9 +26203,9 @@ export class SingleCut extends Message<SingleCut> {
26032
26203
  }
26033
26204
 
26034
26205
  /**
26035
- * @generated from message norsk.api.media.MediaStoreCutRequest
26206
+ * @generated from message norsk.api.media.StartMediaStoreCut
26036
26207
  */
26037
- export class MediaStoreCutRequest extends Message<MediaStoreCutRequest> {
26208
+ export class StartMediaStoreCut extends Message<StartMediaStoreCut> {
26038
26209
  /**
26039
26210
  * @generated from field: string id = 1;
26040
26211
  */
@@ -26051,55 +26222,136 @@ export class MediaStoreCutRequest extends Message<MediaStoreCutRequest> {
26051
26222
  fileName = "";
26052
26223
 
26053
26224
  /**
26054
- * @generated from field: norsk.api.media.MediaStoreCutRequest.FileFormat file_format = 4;
26225
+ * @generated from field: norsk.api.media.StartMediaStoreCut.FileFormat file_format = 4;
26055
26226
  */
26056
- fileFormat = MediaStoreCutRequest_FileFormat.CUT_MP4;
26227
+ fileFormat = StartMediaStoreCut_FileFormat.CUT_MP4;
26057
26228
 
26058
- constructor(data?: PartialMessage<MediaStoreCutRequest>) {
26229
+ constructor(data?: PartialMessage<StartMediaStoreCut>) {
26059
26230
  super();
26060
26231
  proto3.util.initPartial(data, this);
26061
26232
  }
26062
26233
 
26063
26234
  static readonly runtime = proto3;
26064
- static readonly typeName = "norsk.api.media.MediaStoreCutRequest";
26235
+ static readonly typeName = "norsk.api.media.StartMediaStoreCut";
26065
26236
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
26066
26237
  { no: 1, name: "id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26067
26238
  { no: 2, name: "cuts", kind: "message", T: SingleCut, repeated: true },
26068
26239
  { no: 3, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26069
- { no: 4, name: "file_format", kind: "enum", T: proto3.getEnumType(MediaStoreCutRequest_FileFormat) },
26240
+ { no: 4, name: "file_format", kind: "enum", T: proto3.getEnumType(StartMediaStoreCut_FileFormat) },
26070
26241
  ]);
26071
26242
 
26072
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreCutRequest {
26073
- return new MediaStoreCutRequest().fromBinary(bytes, options);
26243
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StartMediaStoreCut {
26244
+ return new StartMediaStoreCut().fromBinary(bytes, options);
26074
26245
  }
26075
26246
 
26076
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreCutRequest {
26077
- return new MediaStoreCutRequest().fromJson(jsonValue, options);
26247
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StartMediaStoreCut {
26248
+ return new StartMediaStoreCut().fromJson(jsonValue, options);
26078
26249
  }
26079
26250
 
26080
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreCutRequest {
26081
- return new MediaStoreCutRequest().fromJsonString(jsonString, options);
26251
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StartMediaStoreCut {
26252
+ return new StartMediaStoreCut().fromJsonString(jsonString, options);
26082
26253
  }
26083
26254
 
26084
- static equals(a: MediaStoreCutRequest | PlainMessage<MediaStoreCutRequest> | undefined, b: MediaStoreCutRequest | PlainMessage<MediaStoreCutRequest> | undefined): boolean {
26085
- return proto3.util.equals(MediaStoreCutRequest, a, b);
26255
+ static equals(a: StartMediaStoreCut | PlainMessage<StartMediaStoreCut> | undefined, b: StartMediaStoreCut | PlainMessage<StartMediaStoreCut> | undefined): boolean {
26256
+ return proto3.util.equals(StartMediaStoreCut, a, b);
26086
26257
  }
26087
26258
  }
26088
26259
 
26089
26260
  /**
26090
- * @generated from enum norsk.api.media.MediaStoreCutRequest.FileFormat
26261
+ * @generated from enum norsk.api.media.StartMediaStoreCut.FileFormat
26091
26262
  */
26092
- export enum MediaStoreCutRequest_FileFormat {
26263
+ export enum StartMediaStoreCut_FileFormat {
26093
26264
  /**
26094
26265
  * @generated from enum value: CUT_MP4 = 0;
26095
26266
  */
26096
26267
  CUT_MP4 = 0,
26097
26268
  }
26098
- // Retrieve enum metadata with: proto3.getEnumType(MediaStoreCutRequest_FileFormat)
26099
- proto3.util.setEnumType(MediaStoreCutRequest_FileFormat, "norsk.api.media.MediaStoreCutRequest.FileFormat", [
26269
+ // Retrieve enum metadata with: proto3.getEnumType(StartMediaStoreCut_FileFormat)
26270
+ proto3.util.setEnumType(StartMediaStoreCut_FileFormat, "norsk.api.media.StartMediaStoreCut.FileFormat", [
26100
26271
  { no: 0, name: "CUT_MP4" },
26101
26272
  ]);
26102
26273
 
26274
+ /**
26275
+ * @generated from message norsk.api.media.CancelMediaStoreCut
26276
+ */
26277
+ export class CancelMediaStoreCut extends Message<CancelMediaStoreCut> {
26278
+ constructor(data?: PartialMessage<CancelMediaStoreCut>) {
26279
+ super();
26280
+ proto3.util.initPartial(data, this);
26281
+ }
26282
+
26283
+ static readonly runtime = proto3;
26284
+ static readonly typeName = "norsk.api.media.CancelMediaStoreCut";
26285
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26286
+ ]);
26287
+
26288
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CancelMediaStoreCut {
26289
+ return new CancelMediaStoreCut().fromBinary(bytes, options);
26290
+ }
26291
+
26292
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CancelMediaStoreCut {
26293
+ return new CancelMediaStoreCut().fromJson(jsonValue, options);
26294
+ }
26295
+
26296
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CancelMediaStoreCut {
26297
+ return new CancelMediaStoreCut().fromJsonString(jsonString, options);
26298
+ }
26299
+
26300
+ static equals(a: CancelMediaStoreCut | PlainMessage<CancelMediaStoreCut> | undefined, b: CancelMediaStoreCut | PlainMessage<CancelMediaStoreCut> | undefined): boolean {
26301
+ return proto3.util.equals(CancelMediaStoreCut, a, b);
26302
+ }
26303
+ }
26304
+
26305
+ /**
26306
+ * @generated from message norsk.api.media.MediaStoreCutRequest
26307
+ */
26308
+ export class MediaStoreCutRequest extends Message<MediaStoreCutRequest> {
26309
+ /**
26310
+ * @generated from oneof norsk.api.media.MediaStoreCutRequest.message
26311
+ */
26312
+ message: {
26313
+ /**
26314
+ * @generated from field: norsk.api.media.StartMediaStoreCut start_cut = 1;
26315
+ */
26316
+ value: StartMediaStoreCut;
26317
+ case: "startCut";
26318
+ } | {
26319
+ /**
26320
+ * @generated from field: norsk.api.media.CancelMediaStoreCut cancel_cut = 2;
26321
+ */
26322
+ value: CancelMediaStoreCut;
26323
+ case: "cancelCut";
26324
+ } | { case: undefined; value?: undefined } = { case: undefined };
26325
+
26326
+ constructor(data?: PartialMessage<MediaStoreCutRequest>) {
26327
+ super();
26328
+ proto3.util.initPartial(data, this);
26329
+ }
26330
+
26331
+ static readonly runtime = proto3;
26332
+ static readonly typeName = "norsk.api.media.MediaStoreCutRequest";
26333
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26334
+ { no: 1, name: "start_cut", kind: "message", T: StartMediaStoreCut, oneof: "message" },
26335
+ { no: 2, name: "cancel_cut", kind: "message", T: CancelMediaStoreCut, oneof: "message" },
26336
+ ]);
26337
+
26338
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreCutRequest {
26339
+ return new MediaStoreCutRequest().fromBinary(bytes, options);
26340
+ }
26341
+
26342
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreCutRequest {
26343
+ return new MediaStoreCutRequest().fromJson(jsonValue, options);
26344
+ }
26345
+
26346
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreCutRequest {
26347
+ return new MediaStoreCutRequest().fromJsonString(jsonString, options);
26348
+ }
26349
+
26350
+ static equals(a: MediaStoreCutRequest | PlainMessage<MediaStoreCutRequest> | undefined, b: MediaStoreCutRequest | PlainMessage<MediaStoreCutRequest> | undefined): boolean {
26351
+ return proto3.util.equals(MediaStoreCutRequest, a, b);
26352
+ }
26353
+ }
26354
+
26103
26355
  /**
26104
26356
  * @generated from message norsk.api.media.Progress
26105
26357
  */
@@ -26281,6 +26533,269 @@ export class MediaStoreRecorderEvent extends Message<MediaStoreRecorderEvent> {
26281
26533
  }
26282
26534
  }
26283
26535
 
26536
+ /**
26537
+ * @generated from message norsk.api.media.MediaStoreSnapshotMessage
26538
+ */
26539
+ export class MediaStoreSnapshotMessage extends Message<MediaStoreSnapshotMessage> {
26540
+ /**
26541
+ * @generated from oneof norsk.api.media.MediaStoreSnapshotMessage.message
26542
+ */
26543
+ message: {
26544
+ /**
26545
+ * @generated from field: norsk.api.media.MediaStoreSnapshotConfiguration configuration = 1;
26546
+ */
26547
+ value: MediaStoreSnapshotConfiguration;
26548
+ case: "configuration";
26549
+ } | {
26550
+ /**
26551
+ * @generated from field: google.protobuf.Empty update = 2;
26552
+ */
26553
+ value: Empty;
26554
+ case: "update";
26555
+ } | { case: undefined; value?: undefined } = { case: undefined };
26556
+
26557
+ constructor(data?: PartialMessage<MediaStoreSnapshotMessage>) {
26558
+ super();
26559
+ proto3.util.initPartial(data, this);
26560
+ }
26561
+
26562
+ static readonly runtime = proto3;
26563
+ static readonly typeName = "norsk.api.media.MediaStoreSnapshotMessage";
26564
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26565
+ { no: 1, name: "configuration", kind: "message", T: MediaStoreSnapshotConfiguration, oneof: "message" },
26566
+ { no: 2, name: "update", kind: "message", T: Empty, oneof: "message" },
26567
+ ]);
26568
+
26569
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreSnapshotMessage {
26570
+ return new MediaStoreSnapshotMessage().fromBinary(bytes, options);
26571
+ }
26572
+
26573
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreSnapshotMessage {
26574
+ return new MediaStoreSnapshotMessage().fromJson(jsonValue, options);
26575
+ }
26576
+
26577
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreSnapshotMessage {
26578
+ return new MediaStoreSnapshotMessage().fromJsonString(jsonString, options);
26579
+ }
26580
+
26581
+ static equals(a: MediaStoreSnapshotMessage | PlainMessage<MediaStoreSnapshotMessage> | undefined, b: MediaStoreSnapshotMessage | PlainMessage<MediaStoreSnapshotMessage> | undefined): boolean {
26582
+ return proto3.util.equals(MediaStoreSnapshotMessage, a, b);
26583
+ }
26584
+ }
26585
+
26586
+ /**
26587
+ * @generated from message norsk.api.media.MediaStoreSnapshotEvent
26588
+ */
26589
+ export class MediaStoreSnapshotEvent extends Message<MediaStoreSnapshotEvent> {
26590
+ /**
26591
+ * @generated from oneof norsk.api.media.MediaStoreSnapshotEvent.message
26592
+ */
26593
+ message: {
26594
+ /**
26595
+ * @generated from field: google.protobuf.Empty snapshot_loaded = 1;
26596
+ */
26597
+ value: Empty;
26598
+ case: "snapshotLoaded";
26599
+ } | {
26600
+ /**
26601
+ * @generated from field: google.protobuf.Empty snapshot_updated = 2;
26602
+ */
26603
+ value: Empty;
26604
+ case: "snapshotUpdated";
26605
+ } | {
26606
+ /**
26607
+ * @generated from field: google.protobuf.Empty snapshot_update_failed = 3;
26608
+ */
26609
+ value: Empty;
26610
+ case: "snapshotUpdateFailed";
26611
+ } | { case: undefined; value?: undefined } = { case: undefined };
26612
+
26613
+ constructor(data?: PartialMessage<MediaStoreSnapshotEvent>) {
26614
+ super();
26615
+ proto3.util.initPartial(data, this);
26616
+ }
26617
+
26618
+ static readonly runtime = proto3;
26619
+ static readonly typeName = "norsk.api.media.MediaStoreSnapshotEvent";
26620
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26621
+ { no: 1, name: "snapshot_loaded", kind: "message", T: Empty, oneof: "message" },
26622
+ { no: 2, name: "snapshot_updated", kind: "message", T: Empty, oneof: "message" },
26623
+ { no: 3, name: "snapshot_update_failed", kind: "message", T: Empty, oneof: "message" },
26624
+ ]);
26625
+
26626
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreSnapshotEvent {
26627
+ return new MediaStoreSnapshotEvent().fromBinary(bytes, options);
26628
+ }
26629
+
26630
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreSnapshotEvent {
26631
+ return new MediaStoreSnapshotEvent().fromJson(jsonValue, options);
26632
+ }
26633
+
26634
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreSnapshotEvent {
26635
+ return new MediaStoreSnapshotEvent().fromJsonString(jsonString, options);
26636
+ }
26637
+
26638
+ static equals(a: MediaStoreSnapshotEvent | PlainMessage<MediaStoreSnapshotEvent> | undefined, b: MediaStoreSnapshotEvent | PlainMessage<MediaStoreSnapshotEvent> | undefined): boolean {
26639
+ return proto3.util.equals(MediaStoreSnapshotEvent, a, b);
26640
+ }
26641
+ }
26642
+
26643
+ /**
26644
+ * If the store pre-exists and the hash matches, use it
26645
+ * If the hash doesn't match, then either import or error
26646
+ *
26647
+ * @generated from message norsk.api.media.MediaStoreAssetFileWithHash
26648
+ */
26649
+ export class MediaStoreAssetFileWithHash extends Message<MediaStoreAssetFileWithHash> {
26650
+ /**
26651
+ * @generated from field: string file = 1;
26652
+ */
26653
+ file = "";
26654
+
26655
+ /**
26656
+ * @generated from field: string hash = 2;
26657
+ */
26658
+ hash = "";
26659
+
26660
+ /**
26661
+ * @generated from field: bool error_on_hash_mismatch = 3;
26662
+ */
26663
+ errorOnHashMismatch = false;
26664
+
26665
+ constructor(data?: PartialMessage<MediaStoreAssetFileWithHash>) {
26666
+ super();
26667
+ proto3.util.initPartial(data, this);
26668
+ }
26669
+
26670
+ static readonly runtime = proto3;
26671
+ static readonly typeName = "norsk.api.media.MediaStoreAssetFileWithHash";
26672
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26673
+ { no: 1, name: "file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26674
+ { no: 2, name: "hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26675
+ { no: 3, name: "error_on_hash_mismatch", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
26676
+ ]);
26677
+
26678
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreAssetFileWithHash {
26679
+ return new MediaStoreAssetFileWithHash().fromBinary(bytes, options);
26680
+ }
26681
+
26682
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreAssetFileWithHash {
26683
+ return new MediaStoreAssetFileWithHash().fromJson(jsonValue, options);
26684
+ }
26685
+
26686
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreAssetFileWithHash {
26687
+ return new MediaStoreAssetFileWithHash().fromJsonString(jsonString, options);
26688
+ }
26689
+
26690
+ static equals(a: MediaStoreAssetFileWithHash | PlainMessage<MediaStoreAssetFileWithHash> | undefined, b: MediaStoreAssetFileWithHash | PlainMessage<MediaStoreAssetFileWithHash> | undefined): boolean {
26691
+ return proto3.util.equals(MediaStoreAssetFileWithHash, a, b);
26692
+ }
26693
+ }
26694
+
26695
+ /**
26696
+ * As above, but calculate the hash (sha256sum)
26697
+ *
26698
+ * @generated from message norsk.api.media.MediaStoreAssetFile
26699
+ */
26700
+ export class MediaStoreAssetFile extends Message<MediaStoreAssetFile> {
26701
+ /**
26702
+ * @generated from field: string file = 1;
26703
+ */
26704
+ file = "";
26705
+
26706
+ /**
26707
+ * @generated from field: bool error_on_hash_mismatch = 2;
26708
+ */
26709
+ errorOnHashMismatch = false;
26710
+
26711
+ constructor(data?: PartialMessage<MediaStoreAssetFile>) {
26712
+ super();
26713
+ proto3.util.initPartial(data, this);
26714
+ }
26715
+
26716
+ static readonly runtime = proto3;
26717
+ static readonly typeName = "norsk.api.media.MediaStoreAssetFile";
26718
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26719
+ { no: 1, name: "file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26720
+ { no: 2, name: "error_on_hash_mismatch", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
26721
+ ]);
26722
+
26723
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreAssetFile {
26724
+ return new MediaStoreAssetFile().fromBinary(bytes, options);
26725
+ }
26726
+
26727
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreAssetFile {
26728
+ return new MediaStoreAssetFile().fromJson(jsonValue, options);
26729
+ }
26730
+
26731
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreAssetFile {
26732
+ return new MediaStoreAssetFile().fromJsonString(jsonString, options);
26733
+ }
26734
+
26735
+ static equals(a: MediaStoreAssetFile | PlainMessage<MediaStoreAssetFile> | undefined, b: MediaStoreAssetFile | PlainMessage<MediaStoreAssetFile> | undefined): boolean {
26736
+ return proto3.util.equals(MediaStoreAssetFile, a, b);
26737
+ }
26738
+ }
26739
+
26740
+ /**
26741
+ * @generated from message norsk.api.media.MediaStoreAssetSource
26742
+ */
26743
+ export class MediaStoreAssetSource extends Message<MediaStoreAssetSource> {
26744
+ /**
26745
+ * @generated from oneof norsk.api.media.MediaStoreAssetSource.message
26746
+ */
26747
+ message: {
26748
+ /**
26749
+ * Load a pre-existing asset - check there's a hash but that's all
26750
+ *
26751
+ * @generated from field: google.protobuf.Empty no_load = 1;
26752
+ */
26753
+ value: Empty;
26754
+ case: "noLoad";
26755
+ } | {
26756
+ /**
26757
+ * @generated from field: norsk.api.media.MediaStoreAssetFileWithHash file_with_hash = 2;
26758
+ */
26759
+ value: MediaStoreAssetFileWithHash;
26760
+ case: "fileWithHash";
26761
+ } | {
26762
+ /**
26763
+ * @generated from field: norsk.api.media.MediaStoreAssetFile file = 3;
26764
+ */
26765
+ value: MediaStoreAssetFile;
26766
+ case: "file";
26767
+ } | { case: undefined; value?: undefined } = { case: undefined };
26768
+
26769
+ constructor(data?: PartialMessage<MediaStoreAssetSource>) {
26770
+ super();
26771
+ proto3.util.initPartial(data, this);
26772
+ }
26773
+
26774
+ static readonly runtime = proto3;
26775
+ static readonly typeName = "norsk.api.media.MediaStoreAssetSource";
26776
+ static readonly fields: FieldList = proto3.util.newFieldList(() => [
26777
+ { no: 1, name: "no_load", kind: "message", T: Empty, oneof: "message" },
26778
+ { no: 2, name: "file_with_hash", kind: "message", T: MediaStoreAssetFileWithHash, oneof: "message" },
26779
+ { no: 3, name: "file", kind: "message", T: MediaStoreAssetFile, oneof: "message" },
26780
+ ]);
26781
+
26782
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreAssetSource {
26783
+ return new MediaStoreAssetSource().fromBinary(bytes, options);
26784
+ }
26785
+
26786
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MediaStoreAssetSource {
26787
+ return new MediaStoreAssetSource().fromJson(jsonValue, options);
26788
+ }
26789
+
26790
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MediaStoreAssetSource {
26791
+ return new MediaStoreAssetSource().fromJsonString(jsonString, options);
26792
+ }
26793
+
26794
+ static equals(a: MediaStoreAssetSource | PlainMessage<MediaStoreAssetSource> | undefined, b: MediaStoreAssetSource | PlainMessage<MediaStoreAssetSource> | undefined): boolean {
26795
+ return proto3.util.equals(MediaStoreAssetSource, a, b);
26796
+ }
26797
+ }
26798
+
26284
26799
  /**
26285
26800
  * @generated from message norsk.api.media.MediaStoreAssetSettings
26286
26801
  */
@@ -26291,9 +26806,9 @@ export class MediaStoreAssetSettings extends Message<MediaStoreAssetSettings> {
26291
26806
  mediaStoreName = "";
26292
26807
 
26293
26808
  /**
26294
- * @generated from field: string file_name = 2;
26809
+ * @generated from field: norsk.api.media.MediaStoreAssetSource asset_source = 2;
26295
26810
  */
26296
- fileName = "";
26811
+ assetSource?: MediaStoreAssetSource;
26297
26812
 
26298
26813
  /**
26299
26814
  * @generated from field: string path = 3;
@@ -26309,7 +26824,7 @@ export class MediaStoreAssetSettings extends Message<MediaStoreAssetSettings> {
26309
26824
  static readonly typeName = "norsk.api.media.MediaStoreAssetSettings";
26310
26825
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
26311
26826
  { no: 1, name: "media_store_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26312
- { no: 2, name: "file_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26827
+ { no: 2, name: "asset_source", kind: "message", T: MediaStoreAssetSource },
26313
26828
  { no: 3, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
26314
26829
  ]);
26315
26830
 
@@ -26442,6 +26957,12 @@ export class MediaStoreCutEvent extends Message<MediaStoreCutEvent> {
26442
26957
  */
26443
26958
  value: MediaStoreCutComplete;
26444
26959
  case: "cutComplete";
26960
+ } | {
26961
+ /**
26962
+ * @generated from field: google.protobuf.Empty cut_cancelled = 3;
26963
+ */
26964
+ value: Empty;
26965
+ case: "cutCancelled";
26445
26966
  } | { case: undefined; value?: undefined } = { case: undefined };
26446
26967
 
26447
26968
  constructor(data?: PartialMessage<MediaStoreCutEvent>) {
@@ -26454,6 +26975,7 @@ export class MediaStoreCutEvent extends Message<MediaStoreCutEvent> {
26454
26975
  static readonly fields: FieldList = proto3.util.newFieldList(() => [
26455
26976
  { no: 1, name: "cut_progress", kind: "message", T: Progress, oneof: "message" },
26456
26977
  { no: 2, name: "cut_complete", kind: "message", T: MediaStoreCutComplete, oneof: "message" },
26978
+ { no: 3, name: "cut_cancelled", kind: "message", T: Empty, oneof: "message" },
26457
26979
  ]);
26458
26980
 
26459
26981
  static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MediaStoreCutEvent {