@stinkycomputing/sesame-api-client 1.4.1-beta.3 → 1.4.1-beta.4

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.
@@ -4458,8 +4458,7 @@ var sesame = $root.sesame = (() => {
4458
4458
  values[valuesById[1] = "EVENT_TOPIC_ERROR"] = 1;
4459
4459
  values[valuesById[2] = "EVENT_TOPIC_TRANSPORT"] = 2;
4460
4460
  values[valuesById[3] = "EVENT_TOPIC_CALLBACK"] = 3;
4461
- values[valuesById[4] = "EVENT_TOPIC_PLAYLIST_EXPORT"] = 4;
4462
- values[valuesById[5] = "EVENT_TOPIC_CLIP_IMPORT"] = 5;
4461
+ values[valuesById[4] = "EVENT_TOPIC_JOB"] = 4;
4463
4462
  values[valuesById[6] = "EVENT_TOPIC_RECORDER"] = 6;
4464
4463
  return values;
4465
4464
  }();
@@ -14250,12 +14249,11 @@ var sesame = $root.sesame = (() => {
14250
14249
  Event2.prototype.errorEvent = null;
14251
14250
  Event2.prototype.transportEvent = null;
14252
14251
  Event2.prototype.callbackEvent = null;
14253
- Event2.prototype.playlistExportEvent = null;
14254
- Event2.prototype.clipImportEvent = null;
14252
+ Event2.prototype.jobEvent = null;
14255
14253
  Event2.prototype.recorderEvent = null;
14256
14254
  let $oneOfFields;
14257
14255
  Object.defineProperty(Event2.prototype, "event", {
14258
- get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "playlistExportEvent", "clipImportEvent", "recorderEvent"]),
14256
+ get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "jobEvent", "recorderEvent"]),
14259
14257
  set: $util.oneOfSetter($oneOfFields)
14260
14258
  });
14261
14259
  Event2.create = function create(properties) {
@@ -14279,16 +14277,11 @@ var sesame = $root.sesame = (() => {
14279
14277
  /* id 3, wireType 2 =*/
14280
14278
  26
14281
14279
  ).fork()).ldelim();
14282
- if (message.playlistExportEvent != null && Object.hasOwnProperty.call(message, "playlistExportEvent"))
14283
- $root.sesame.v1.jobs.JobEvent.encode(message.playlistExportEvent, writer.uint32(
14280
+ if (message.jobEvent != null && Object.hasOwnProperty.call(message, "jobEvent"))
14281
+ $root.sesame.v1.jobs.JobList.encode(message.jobEvent, writer.uint32(
14284
14282
  /* id 4, wireType 2 =*/
14285
14283
  34
14286
14284
  ).fork()).ldelim();
14287
- if (message.clipImportEvent != null && Object.hasOwnProperty.call(message, "clipImportEvent"))
14288
- $root.sesame.v1.jobs.JobEvent.encode(message.clipImportEvent, writer.uint32(
14289
- /* id 5, wireType 2 =*/
14290
- 42
14291
- ).fork()).ldelim();
14292
14285
  if (message.recorderEvent != null && Object.hasOwnProperty.call(message, "recorderEvent"))
14293
14286
  $root.sesame.v1.recorder.RecorderEvent.encode(message.recorderEvent, writer.uint32(
14294
14287
  /* id 6, wireType 2 =*/
@@ -14321,11 +14314,7 @@ var sesame = $root.sesame = (() => {
14321
14314
  break;
14322
14315
  }
14323
14316
  case 4: {
14324
- message.playlistExportEvent = $root.sesame.v1.jobs.JobEvent.decode(reader, reader.uint32());
14325
- break;
14326
- }
14327
- case 5: {
14328
- message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.decode(reader, reader.uint32());
14317
+ message.jobEvent = $root.sesame.v1.jobs.JobList.decode(reader, reader.uint32());
14329
14318
  break;
14330
14319
  }
14331
14320
  case 6: {
@@ -14376,24 +14365,14 @@ var sesame = $root.sesame = (() => {
14376
14365
  return "callbackEvent." + error;
14377
14366
  }
14378
14367
  }
14379
- if (message.playlistExportEvent != null && message.hasOwnProperty("playlistExportEvent")) {
14380
- if (properties.event === 1)
14381
- return "event: multiple values";
14382
- properties.event = 1;
14383
- {
14384
- let error = $root.sesame.v1.jobs.JobEvent.verify(message.playlistExportEvent);
14385
- if (error)
14386
- return "playlistExportEvent." + error;
14387
- }
14388
- }
14389
- if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
14368
+ if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
14390
14369
  if (properties.event === 1)
14391
14370
  return "event: multiple values";
14392
14371
  properties.event = 1;
14393
14372
  {
14394
- let error = $root.sesame.v1.jobs.JobEvent.verify(message.clipImportEvent);
14373
+ let error = $root.sesame.v1.jobs.JobList.verify(message.jobEvent);
14395
14374
  if (error)
14396
- return "clipImportEvent." + error;
14375
+ return "jobEvent." + error;
14397
14376
  }
14398
14377
  }
14399
14378
  if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
@@ -14427,15 +14406,10 @@ var sesame = $root.sesame = (() => {
14427
14406
  throw TypeError(".sesame.v1.status.Event.callbackEvent: object expected");
14428
14407
  message.callbackEvent = $root.sesame.v1.common.Callback.fromObject(object.callbackEvent);
14429
14408
  }
14430
- if (object.playlistExportEvent != null) {
14431
- if (typeof object.playlistExportEvent !== "object")
14432
- throw TypeError(".sesame.v1.status.Event.playlistExportEvent: object expected");
14433
- message.playlistExportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(object.playlistExportEvent);
14434
- }
14435
- if (object.clipImportEvent != null) {
14436
- if (typeof object.clipImportEvent !== "object")
14437
- throw TypeError(".sesame.v1.status.Event.clipImportEvent: object expected");
14438
- message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(object.clipImportEvent);
14409
+ if (object.jobEvent != null) {
14410
+ if (typeof object.jobEvent !== "object")
14411
+ throw TypeError(".sesame.v1.status.Event.jobEvent: object expected");
14412
+ message.jobEvent = $root.sesame.v1.jobs.JobList.fromObject(object.jobEvent);
14439
14413
  }
14440
14414
  if (object.recorderEvent != null) {
14441
14415
  if (typeof object.recorderEvent !== "object")
@@ -14463,15 +14437,10 @@ var sesame = $root.sesame = (() => {
14463
14437
  if (options.oneofs)
14464
14438
  object.event = "callbackEvent";
14465
14439
  }
14466
- if (message.playlistExportEvent != null && message.hasOwnProperty("playlistExportEvent")) {
14467
- object.playlistExportEvent = $root.sesame.v1.jobs.JobEvent.toObject(message.playlistExportEvent, options);
14468
- if (options.oneofs)
14469
- object.event = "playlistExportEvent";
14470
- }
14471
- if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
14472
- object.clipImportEvent = $root.sesame.v1.jobs.JobEvent.toObject(message.clipImportEvent, options);
14440
+ if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
14441
+ object.jobEvent = $root.sesame.v1.jobs.JobList.toObject(message.jobEvent, options);
14473
14442
  if (options.oneofs)
14474
- object.event = "clipImportEvent";
14443
+ object.event = "jobEvent";
14475
14444
  }
14476
14445
  if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
14477
14446
  object.recorderEvent = $root.sesame.v1.recorder.RecorderEvent.toObject(message.recorderEvent, options);
@@ -14582,7 +14551,6 @@ var sesame = $root.sesame = (() => {
14582
14551
  case 2:
14583
14552
  case 3:
14584
14553
  case 4:
14585
- case 5:
14586
14554
  case 6:
14587
14555
  break;
14588
14556
  }
@@ -14627,14 +14595,10 @@ var sesame = $root.sesame = (() => {
14627
14595
  case 3:
14628
14596
  message.eventTopics[i] = 3;
14629
14597
  break;
14630
- case "EVENT_TOPIC_PLAYLIST_EXPORT":
14598
+ case "EVENT_TOPIC_JOB":
14631
14599
  case 4:
14632
14600
  message.eventTopics[i] = 4;
14633
14601
  break;
14634
- case "EVENT_TOPIC_CLIP_IMPORT":
14635
- case 5:
14636
- message.eventTopics[i] = 5;
14637
- break;
14638
14602
  case "EVENT_TOPIC_RECORDER":
14639
14603
  case 6:
14640
14604
  message.eventTopics[i] = 6;
@@ -18542,6 +18506,13 @@ var sesame = $root.sesame = (() => {
18542
18506
  }();
18543
18507
  v1.jobs = function() {
18544
18508
  const jobs = {};
18509
+ jobs.JobType = function() {
18510
+ const valuesById = {}, values = Object.create(valuesById);
18511
+ values[valuesById[0] = "JOB_TYPE_UNSPECIFIED"] = 0;
18512
+ values[valuesById[1] = "JOB_TYPE_EXPORT"] = 1;
18513
+ values[valuesById[2] = "JOB_TYPE_IMPORT"] = 2;
18514
+ return values;
18515
+ }();
18545
18516
  jobs.JobStatus = function() {
18546
18517
  const valuesById = {}, values = Object.create(valuesById);
18547
18518
  values[valuesById[0] = "JOB_STATUS_UNSPECIFIED"] = 0;
@@ -18716,107 +18687,131 @@ var sesame = $root.sesame = (() => {
18716
18687
  };
18717
18688
  return TimingInfo;
18718
18689
  }();
18719
- jobs.JobStatusResponse = function() {
18720
- function JobStatusResponse(properties) {
18690
+ jobs.Job = function() {
18691
+ function Job(properties) {
18721
18692
  if (properties) {
18722
18693
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18723
18694
  if (properties[keys[i]] != null)
18724
18695
  this[keys[i]] = properties[keys[i]];
18725
18696
  }
18726
18697
  }
18727
- JobStatusResponse.prototype.jobId = 0;
18728
- JobStatusResponse.prototype.name = "";
18729
- JobStatusResponse.prototype.description = "";
18730
- JobStatusResponse.prototype.status = 0;
18731
- JobStatusResponse.prototype.error = null;
18732
- JobStatusResponse.prototype.progress = 0;
18733
- JobStatusResponse.prototype.total = 0;
18698
+ Job.prototype.id = 0;
18699
+ Job.prototype.type = 0;
18700
+ Job.prototype.status = 0;
18701
+ Job.prototype.name = "";
18702
+ Job.prototype.description = "";
18703
+ Job.prototype.error = null;
18704
+ Job.prototype.progress = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
18705
+ Job.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
18706
+ Job.prototype.timingInfo = null;
18734
18707
  let $oneOfFields;
18735
- Object.defineProperty(JobStatusResponse.prototype, "_error", {
18708
+ Object.defineProperty(Job.prototype, "_error", {
18736
18709
  get: $util.oneOfGetter($oneOfFields = ["error"]),
18737
18710
  set: $util.oneOfSetter($oneOfFields)
18738
18711
  });
18739
- JobStatusResponse.create = function create(properties) {
18740
- return new JobStatusResponse(properties);
18712
+ Object.defineProperty(Job.prototype, "_timingInfo", {
18713
+ get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
18714
+ set: $util.oneOfSetter($oneOfFields)
18715
+ });
18716
+ Job.create = function create(properties) {
18717
+ return new Job(properties);
18741
18718
  };
18742
- JobStatusResponse.encode = function encode(message, writer) {
18719
+ Job.encode = function encode(message, writer) {
18743
18720
  if (!writer)
18744
18721
  writer = $Writer.create();
18745
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
18722
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
18746
18723
  writer.uint32(
18747
18724
  /* id 1, wireType 0 =*/
18748
18725
  8
18749
- ).uint32(message.jobId);
18726
+ ).uint32(message.id);
18727
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
18728
+ writer.uint32(
18729
+ /* id 2, wireType 0 =*/
18730
+ 16
18731
+ ).int32(message.type);
18732
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
18733
+ writer.uint32(
18734
+ /* id 3, wireType 0 =*/
18735
+ 24
18736
+ ).int32(message.status);
18750
18737
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
18751
18738
  writer.uint32(
18752
- /* id 2, wireType 2 =*/
18753
- 18
18739
+ /* id 4, wireType 2 =*/
18740
+ 34
18754
18741
  ).string(message.name);
18755
18742
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
18756
18743
  writer.uint32(
18757
- /* id 3, wireType 2 =*/
18758
- 26
18744
+ /* id 5, wireType 2 =*/
18745
+ 42
18759
18746
  ).string(message.description);
18760
- if (message.status != null && Object.hasOwnProperty.call(message, "status"))
18761
- writer.uint32(
18762
- /* id 4, wireType 0 =*/
18763
- 32
18764
- ).int32(message.status);
18765
18747
  if (message.error != null && Object.hasOwnProperty.call(message, "error"))
18766
18748
  writer.uint32(
18767
- /* id 5, wireType 2 =*/
18768
- 42
18749
+ /* id 6, wireType 2 =*/
18750
+ 50
18769
18751
  ).string(message.error);
18770
18752
  if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
18771
- writer.uint32(
18772
- /* id 6, wireType 0 =*/
18773
- 48
18774
- ).uint32(message.progress);
18775
- if (message.total != null && Object.hasOwnProperty.call(message, "total"))
18776
18753
  writer.uint32(
18777
18754
  /* id 7, wireType 0 =*/
18778
18755
  56
18779
- ).uint32(message.total);
18756
+ ).int64(message.progress);
18757
+ if (message.total != null && Object.hasOwnProperty.call(message, "total"))
18758
+ writer.uint32(
18759
+ /* id 8, wireType 0 =*/
18760
+ 64
18761
+ ).int64(message.total);
18762
+ if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
18763
+ $root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
18764
+ /* id 9, wireType 2 =*/
18765
+ 74
18766
+ ).fork()).ldelim();
18780
18767
  return writer;
18781
18768
  };
18782
- JobStatusResponse.encodeDelimited = function encodeDelimited(message, writer) {
18769
+ Job.encodeDelimited = function encodeDelimited(message, writer) {
18783
18770
  return this.encode(message, writer).ldelim();
18784
18771
  };
18785
- JobStatusResponse.decode = function decode(reader, length, error) {
18772
+ Job.decode = function decode(reader, length, error) {
18786
18773
  if (!(reader instanceof $Reader))
18787
18774
  reader = $Reader.create(reader);
18788
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStatusResponse();
18775
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.Job();
18789
18776
  while (reader.pos < end) {
18790
18777
  let tag = reader.uint32();
18791
18778
  if (tag === error)
18792
18779
  break;
18793
18780
  switch (tag >>> 3) {
18794
18781
  case 1: {
18795
- message.jobId = reader.uint32();
18782
+ message.id = reader.uint32();
18796
18783
  break;
18797
18784
  }
18798
18785
  case 2: {
18799
- message.name = reader.string();
18786
+ message.type = reader.int32();
18800
18787
  break;
18801
18788
  }
18802
18789
  case 3: {
18803
- message.description = reader.string();
18790
+ message.status = reader.int32();
18804
18791
  break;
18805
18792
  }
18806
18793
  case 4: {
18807
- message.status = reader.int32();
18794
+ message.name = reader.string();
18808
18795
  break;
18809
18796
  }
18810
18797
  case 5: {
18811
- message.error = reader.string();
18798
+ message.description = reader.string();
18812
18799
  break;
18813
18800
  }
18814
18801
  case 6: {
18815
- message.progress = reader.uint32();
18802
+ message.error = reader.string();
18816
18803
  break;
18817
18804
  }
18818
18805
  case 7: {
18819
- message.total = reader.uint32();
18806
+ message.progress = reader.int64();
18807
+ break;
18808
+ }
18809
+ case 8: {
18810
+ message.total = reader.int64();
18811
+ break;
18812
+ }
18813
+ case 9: {
18814
+ message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
18820
18815
  break;
18821
18816
  }
18822
18817
  default:
@@ -18826,27 +18821,28 @@ var sesame = $root.sesame = (() => {
18826
18821
  }
18827
18822
  return message;
18828
18823
  };
18829
- JobStatusResponse.decodeDelimited = function decodeDelimited(reader) {
18824
+ Job.decodeDelimited = function decodeDelimited(reader) {
18830
18825
  if (!(reader instanceof $Reader))
18831
18826
  reader = new $Reader(reader);
18832
18827
  return this.decode(reader, reader.uint32());
18833
18828
  };
18834
- JobStatusResponse.verify = function verify(message) {
18829
+ Job.verify = function verify(message) {
18835
18830
  if (typeof message !== "object" || message === null)
18836
18831
  return "object expected";
18837
18832
  let properties = {};
18838
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
18839
- if (!$util.isInteger(message.jobId))
18840
- return "jobId: integer expected";
18841
- }
18842
- if (message.name != null && message.hasOwnProperty("name")) {
18843
- if (!$util.isString(message.name))
18844
- return "name: string expected";
18845
- }
18846
- if (message.description != null && message.hasOwnProperty("description")) {
18847
- if (!$util.isString(message.description))
18848
- return "description: string expected";
18833
+ if (message.id != null && message.hasOwnProperty("id")) {
18834
+ if (!$util.isInteger(message.id))
18835
+ return "id: integer expected";
18849
18836
  }
18837
+ if (message.type != null && message.hasOwnProperty("type"))
18838
+ switch (message.type) {
18839
+ default:
18840
+ return "type: enum value expected";
18841
+ case 0:
18842
+ case 1:
18843
+ case 2:
18844
+ break;
18845
+ }
18850
18846
  if (message.status != null && message.hasOwnProperty("status"))
18851
18847
  switch (message.status) {
18852
18848
  default:
@@ -18859,31 +18855,63 @@ var sesame = $root.sesame = (() => {
18859
18855
  case 5:
18860
18856
  break;
18861
18857
  }
18858
+ if (message.name != null && message.hasOwnProperty("name")) {
18859
+ if (!$util.isString(message.name))
18860
+ return "name: string expected";
18861
+ }
18862
+ if (message.description != null && message.hasOwnProperty("description")) {
18863
+ if (!$util.isString(message.description))
18864
+ return "description: string expected";
18865
+ }
18862
18866
  if (message.error != null && message.hasOwnProperty("error")) {
18863
18867
  properties._error = 1;
18864
18868
  if (!$util.isString(message.error))
18865
18869
  return "error: string expected";
18866
18870
  }
18867
18871
  if (message.progress != null && message.hasOwnProperty("progress")) {
18868
- if (!$util.isInteger(message.progress))
18869
- return "progress: integer expected";
18872
+ if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
18873
+ return "progress: integer|Long expected";
18870
18874
  }
18871
18875
  if (message.total != null && message.hasOwnProperty("total")) {
18872
- if (!$util.isInteger(message.total))
18873
- return "total: integer expected";
18876
+ if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high)))
18877
+ return "total: integer|Long expected";
18878
+ }
18879
+ if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
18880
+ properties._timingInfo = 1;
18881
+ {
18882
+ let error = $root.sesame.v1.jobs.TimingInfo.verify(message.timingInfo);
18883
+ if (error)
18884
+ return "timingInfo." + error;
18885
+ }
18874
18886
  }
18875
18887
  return null;
18876
18888
  };
18877
- JobStatusResponse.fromObject = function fromObject(object) {
18878
- if (object instanceof $root.sesame.v1.jobs.JobStatusResponse)
18889
+ Job.fromObject = function fromObject(object) {
18890
+ if (object instanceof $root.sesame.v1.jobs.Job)
18879
18891
  return object;
18880
- let message = new $root.sesame.v1.jobs.JobStatusResponse();
18881
- if (object.jobId != null)
18882
- message.jobId = object.jobId >>> 0;
18883
- if (object.name != null)
18884
- message.name = String(object.name);
18885
- if (object.description != null)
18886
- message.description = String(object.description);
18892
+ let message = new $root.sesame.v1.jobs.Job();
18893
+ if (object.id != null)
18894
+ message.id = object.id >>> 0;
18895
+ switch (object.type) {
18896
+ default:
18897
+ if (typeof object.type === "number") {
18898
+ message.type = object.type;
18899
+ break;
18900
+ }
18901
+ break;
18902
+ case "JOB_TYPE_UNSPECIFIED":
18903
+ case 0:
18904
+ message.type = 0;
18905
+ break;
18906
+ case "JOB_TYPE_EXPORT":
18907
+ case 1:
18908
+ message.type = 1;
18909
+ break;
18910
+ case "JOB_TYPE_IMPORT":
18911
+ case 2:
18912
+ message.type = 2;
18913
+ break;
18914
+ }
18887
18915
  switch (object.status) {
18888
18916
  default:
18889
18917
  if (typeof object.status === "number") {
@@ -18916,58 +18944,105 @@ var sesame = $root.sesame = (() => {
18916
18944
  message.status = 5;
18917
18945
  break;
18918
18946
  }
18947
+ if (object.name != null)
18948
+ message.name = String(object.name);
18949
+ if (object.description != null)
18950
+ message.description = String(object.description);
18919
18951
  if (object.error != null)
18920
18952
  message.error = String(object.error);
18921
- if (object.progress != null)
18922
- message.progress = object.progress >>> 0;
18923
- if (object.total != null)
18924
- message.total = object.total >>> 0;
18953
+ if (object.progress != null) {
18954
+ if ($util.Long)
18955
+ (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
18956
+ else if (typeof object.progress === "string")
18957
+ message.progress = parseInt(object.progress, 10);
18958
+ else if (typeof object.progress === "number")
18959
+ message.progress = object.progress;
18960
+ else if (typeof object.progress === "object")
18961
+ message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
18962
+ }
18963
+ if (object.total != null) {
18964
+ if ($util.Long)
18965
+ (message.total = $util.Long.fromValue(object.total)).unsigned = false;
18966
+ else if (typeof object.total === "string")
18967
+ message.total = parseInt(object.total, 10);
18968
+ else if (typeof object.total === "number")
18969
+ message.total = object.total;
18970
+ else if (typeof object.total === "object")
18971
+ message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber();
18972
+ }
18973
+ if (object.timingInfo != null) {
18974
+ if (typeof object.timingInfo !== "object")
18975
+ throw TypeError(".sesame.v1.jobs.Job.timingInfo: object expected");
18976
+ message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
18977
+ }
18925
18978
  return message;
18926
18979
  };
18927
- JobStatusResponse.toObject = function toObject(message, options) {
18980
+ Job.toObject = function toObject(message, options) {
18928
18981
  if (!options)
18929
18982
  options = {};
18930
18983
  let object = {};
18931
18984
  if (options.defaults) {
18932
- object.jobId = 0;
18985
+ object.id = 0;
18986
+ object.type = options.enums === String ? "JOB_TYPE_UNSPECIFIED" : 0;
18987
+ object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
18933
18988
  object.name = "";
18934
18989
  object.description = "";
18935
- object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
18936
- object.progress = 0;
18937
- object.total = 0;
18990
+ if ($util.Long) {
18991
+ let long = new $util.Long(0, 0, false);
18992
+ object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18993
+ } else
18994
+ object.progress = options.longs === String ? "0" : 0;
18995
+ if ($util.Long) {
18996
+ let long = new $util.Long(0, 0, false);
18997
+ object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18998
+ } else
18999
+ object.total = options.longs === String ? "0" : 0;
18938
19000
  }
18939
- if (message.jobId != null && message.hasOwnProperty("jobId"))
18940
- object.jobId = message.jobId;
19001
+ if (message.id != null && message.hasOwnProperty("id"))
19002
+ object.id = message.id;
19003
+ if (message.type != null && message.hasOwnProperty("type"))
19004
+ object.type = options.enums === String ? $root.sesame.v1.jobs.JobType[message.type] === void 0 ? message.type : $root.sesame.v1.jobs.JobType[message.type] : message.type;
19005
+ if (message.status != null && message.hasOwnProperty("status"))
19006
+ object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
18941
19007
  if (message.name != null && message.hasOwnProperty("name"))
18942
19008
  object.name = message.name;
18943
19009
  if (message.description != null && message.hasOwnProperty("description"))
18944
19010
  object.description = message.description;
18945
- if (message.status != null && message.hasOwnProperty("status"))
18946
- object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
18947
19011
  if (message.error != null && message.hasOwnProperty("error")) {
18948
19012
  object.error = message.error;
18949
19013
  if (options.oneofs)
18950
19014
  object._error = "error";
18951
19015
  }
18952
19016
  if (message.progress != null && message.hasOwnProperty("progress"))
18953
- object.progress = message.progress;
19017
+ if (typeof message.progress === "number")
19018
+ object.progress = options.longs === String ? String(message.progress) : message.progress;
19019
+ else
19020
+ object.progress = options.longs === String ? $util.Long.prototype.toString.call(message.progress) : options.longs === Number ? new $util.LongBits(message.progress.low >>> 0, message.progress.high >>> 0).toNumber() : message.progress;
18954
19021
  if (message.total != null && message.hasOwnProperty("total"))
18955
- object.total = message.total;
19022
+ if (typeof message.total === "number")
19023
+ object.total = options.longs === String ? String(message.total) : message.total;
19024
+ else
19025
+ object.total = options.longs === String ? $util.Long.prototype.toString.call(message.total) : options.longs === Number ? new $util.LongBits(message.total.low >>> 0, message.total.high >>> 0).toNumber() : message.total;
19026
+ if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
19027
+ object.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(message.timingInfo, options);
19028
+ if (options.oneofs)
19029
+ object._timingInfo = "timingInfo";
19030
+ }
18956
19031
  return object;
18957
19032
  };
18958
- JobStatusResponse.prototype.toJSON = function toJSON() {
19033
+ Job.prototype.toJSON = function toJSON() {
18959
19034
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18960
19035
  };
18961
- JobStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19036
+ Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18962
19037
  if (typeUrlPrefix === void 0) {
18963
19038
  typeUrlPrefix = "type.googleapis.com";
18964
19039
  }
18965
- return typeUrlPrefix + "/sesame.v1.jobs.JobStatusResponse";
19040
+ return typeUrlPrefix + "/sesame.v1.jobs.Job";
18966
19041
  };
18967
- return JobStatusResponse;
19042
+ return Job;
18968
19043
  }();
18969
- jobs.JobListResponse = function() {
18970
- function JobListResponse(properties) {
19044
+ jobs.JobList = function() {
19045
+ function JobList(properties) {
18971
19046
  this.jobs = [];
18972
19047
  if (properties) {
18973
19048
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -18975,28 +19050,28 @@ var sesame = $root.sesame = (() => {
18975
19050
  this[keys[i]] = properties[keys[i]];
18976
19051
  }
18977
19052
  }
18978
- JobListResponse.prototype.jobs = $util.emptyArray;
18979
- JobListResponse.create = function create(properties) {
18980
- return new JobListResponse(properties);
19053
+ JobList.prototype.jobs = $util.emptyArray;
19054
+ JobList.create = function create(properties) {
19055
+ return new JobList(properties);
18981
19056
  };
18982
- JobListResponse.encode = function encode(message, writer) {
19057
+ JobList.encode = function encode(message, writer) {
18983
19058
  if (!writer)
18984
19059
  writer = $Writer.create();
18985
19060
  if (message.jobs != null && message.jobs.length)
18986
19061
  for (let i = 0; i < message.jobs.length; ++i)
18987
- $root.sesame.v1.jobs.JobStatusResponse.encode(message.jobs[i], writer.uint32(
19062
+ $root.sesame.v1.jobs.Job.encode(message.jobs[i], writer.uint32(
18988
19063
  /* id 1, wireType 2 =*/
18989
19064
  10
18990
19065
  ).fork()).ldelim();
18991
19066
  return writer;
18992
19067
  };
18993
- JobListResponse.encodeDelimited = function encodeDelimited(message, writer) {
19068
+ JobList.encodeDelimited = function encodeDelimited(message, writer) {
18994
19069
  return this.encode(message, writer).ldelim();
18995
19070
  };
18996
- JobListResponse.decode = function decode(reader, length, error) {
19071
+ JobList.decode = function decode(reader, length, error) {
18997
19072
  if (!(reader instanceof $Reader))
18998
19073
  reader = $Reader.create(reader);
18999
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobListResponse();
19074
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobList();
19000
19075
  while (reader.pos < end) {
19001
19076
  let tag = reader.uint32();
19002
19077
  if (tag === error)
@@ -19005,7 +19080,7 @@ var sesame = $root.sesame = (() => {
19005
19080
  case 1: {
19006
19081
  if (!(message.jobs && message.jobs.length))
19007
19082
  message.jobs = [];
19008
- message.jobs.push($root.sesame.v1.jobs.JobStatusResponse.decode(reader, reader.uint32()));
19083
+ message.jobs.push($root.sesame.v1.jobs.Job.decode(reader, reader.uint32()));
19009
19084
  break;
19010
19085
  }
19011
19086
  default:
@@ -19015,42 +19090,42 @@ var sesame = $root.sesame = (() => {
19015
19090
  }
19016
19091
  return message;
19017
19092
  };
19018
- JobListResponse.decodeDelimited = function decodeDelimited(reader) {
19093
+ JobList.decodeDelimited = function decodeDelimited(reader) {
19019
19094
  if (!(reader instanceof $Reader))
19020
19095
  reader = new $Reader(reader);
19021
19096
  return this.decode(reader, reader.uint32());
19022
19097
  };
19023
- JobListResponse.verify = function verify(message) {
19098
+ JobList.verify = function verify(message) {
19024
19099
  if (typeof message !== "object" || message === null)
19025
19100
  return "object expected";
19026
19101
  if (message.jobs != null && message.hasOwnProperty("jobs")) {
19027
19102
  if (!Array.isArray(message.jobs))
19028
19103
  return "jobs: array expected";
19029
19104
  for (let i = 0; i < message.jobs.length; ++i) {
19030
- let error = $root.sesame.v1.jobs.JobStatusResponse.verify(message.jobs[i]);
19105
+ let error = $root.sesame.v1.jobs.Job.verify(message.jobs[i]);
19031
19106
  if (error)
19032
19107
  return "jobs." + error;
19033
19108
  }
19034
19109
  }
19035
19110
  return null;
19036
19111
  };
19037
- JobListResponse.fromObject = function fromObject(object) {
19038
- if (object instanceof $root.sesame.v1.jobs.JobListResponse)
19112
+ JobList.fromObject = function fromObject(object) {
19113
+ if (object instanceof $root.sesame.v1.jobs.JobList)
19039
19114
  return object;
19040
- let message = new $root.sesame.v1.jobs.JobListResponse();
19115
+ let message = new $root.sesame.v1.jobs.JobList();
19041
19116
  if (object.jobs) {
19042
19117
  if (!Array.isArray(object.jobs))
19043
- throw TypeError(".sesame.v1.jobs.JobListResponse.jobs: array expected");
19118
+ throw TypeError(".sesame.v1.jobs.JobList.jobs: array expected");
19044
19119
  message.jobs = [];
19045
19120
  for (let i = 0; i < object.jobs.length; ++i) {
19046
19121
  if (typeof object.jobs[i] !== "object")
19047
- throw TypeError(".sesame.v1.jobs.JobListResponse.jobs: object expected");
19048
- message.jobs[i] = $root.sesame.v1.jobs.JobStatusResponse.fromObject(object.jobs[i]);
19122
+ throw TypeError(".sesame.v1.jobs.JobList.jobs: object expected");
19123
+ message.jobs[i] = $root.sesame.v1.jobs.Job.fromObject(object.jobs[i]);
19049
19124
  }
19050
19125
  }
19051
19126
  return message;
19052
19127
  };
19053
- JobListResponse.toObject = function toObject(message, options) {
19128
+ JobList.toObject = function toObject(message, options) {
19054
19129
  if (!options)
19055
19130
  options = {};
19056
19131
  let object = {};
@@ -19059,116 +19134,72 @@ var sesame = $root.sesame = (() => {
19059
19134
  if (message.jobs && message.jobs.length) {
19060
19135
  object.jobs = [];
19061
19136
  for (let j = 0; j < message.jobs.length; ++j)
19062
- object.jobs[j] = $root.sesame.v1.jobs.JobStatusResponse.toObject(message.jobs[j], options);
19137
+ object.jobs[j] = $root.sesame.v1.jobs.Job.toObject(message.jobs[j], options);
19063
19138
  }
19064
19139
  return object;
19065
19140
  };
19066
- JobListResponse.prototype.toJSON = function toJSON() {
19141
+ JobList.prototype.toJSON = function toJSON() {
19067
19142
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19068
19143
  };
19069
- JobListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19144
+ JobList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19070
19145
  if (typeUrlPrefix === void 0) {
19071
19146
  typeUrlPrefix = "type.googleapis.com";
19072
19147
  }
19073
- return typeUrlPrefix + "/sesame.v1.jobs.JobListResponse";
19148
+ return typeUrlPrefix + "/sesame.v1.jobs.JobList";
19074
19149
  };
19075
- return JobListResponse;
19150
+ return JobList;
19076
19151
  }();
19077
- jobs.JobEvent = function() {
19078
- function JobEvent(properties) {
19152
+ jobs.JobStartRequest = function() {
19153
+ function JobStartRequest(properties) {
19079
19154
  if (properties) {
19080
19155
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19081
19156
  if (properties[keys[i]] != null)
19082
19157
  this[keys[i]] = properties[keys[i]];
19083
19158
  }
19084
19159
  }
19085
- JobEvent.prototype.jobId = 0;
19086
- JobEvent.prototype.source = "";
19087
- JobEvent.prototype.status = 0;
19088
- JobEvent.prototype.statusText = "";
19089
- JobEvent.prototype.error = null;
19090
- JobEvent.prototype.timingInfo = null;
19160
+ JobStartRequest.prototype.exportRequest = null;
19161
+ JobStartRequest.prototype.importRequest = null;
19091
19162
  let $oneOfFields;
19092
- Object.defineProperty(JobEvent.prototype, "_error", {
19093
- get: $util.oneOfGetter($oneOfFields = ["error"]),
19094
- set: $util.oneOfSetter($oneOfFields)
19095
- });
19096
- Object.defineProperty(JobEvent.prototype, "_timingInfo", {
19097
- get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
19163
+ Object.defineProperty(JobStartRequest.prototype, "config", {
19164
+ get: $util.oneOfGetter($oneOfFields = ["exportRequest", "importRequest"]),
19098
19165
  set: $util.oneOfSetter($oneOfFields)
19099
19166
  });
19100
- JobEvent.create = function create(properties) {
19101
- return new JobEvent(properties);
19167
+ JobStartRequest.create = function create(properties) {
19168
+ return new JobStartRequest(properties);
19102
19169
  };
19103
- JobEvent.encode = function encode(message, writer) {
19170
+ JobStartRequest.encode = function encode(message, writer) {
19104
19171
  if (!writer)
19105
19172
  writer = $Writer.create();
19106
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
19107
- writer.uint32(
19108
- /* id 1, wireType 0 =*/
19109
- 8
19110
- ).uint32(message.jobId);
19111
- if (message.source != null && Object.hasOwnProperty.call(message, "source"))
19112
- writer.uint32(
19173
+ if (message.exportRequest != null && Object.hasOwnProperty.call(message, "exportRequest"))
19174
+ $root.sesame.v1.jobs.ExportStartRequest.encode(message.exportRequest, writer.uint32(
19175
+ /* id 1, wireType 2 =*/
19176
+ 10
19177
+ ).fork()).ldelim();
19178
+ if (message.importRequest != null && Object.hasOwnProperty.call(message, "importRequest"))
19179
+ $root.sesame.v1.jobs.ImportStartRequest.encode(message.importRequest, writer.uint32(
19113
19180
  /* id 2, wireType 2 =*/
19114
19181
  18
19115
- ).string(message.source);
19116
- if (message.status != null && Object.hasOwnProperty.call(message, "status"))
19117
- writer.uint32(
19118
- /* id 3, wireType 0 =*/
19119
- 24
19120
- ).int32(message.status);
19121
- if (message.statusText != null && Object.hasOwnProperty.call(message, "statusText"))
19122
- writer.uint32(
19123
- /* id 4, wireType 2 =*/
19124
- 34
19125
- ).string(message.statusText);
19126
- if (message.error != null && Object.hasOwnProperty.call(message, "error"))
19127
- writer.uint32(
19128
- /* id 5, wireType 2 =*/
19129
- 42
19130
- ).string(message.error);
19131
- if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
19132
- $root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
19133
- /* id 6, wireType 2 =*/
19134
- 50
19135
19182
  ).fork()).ldelim();
19136
19183
  return writer;
19137
19184
  };
19138
- JobEvent.encodeDelimited = function encodeDelimited(message, writer) {
19185
+ JobStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
19139
19186
  return this.encode(message, writer).ldelim();
19140
19187
  };
19141
- JobEvent.decode = function decode(reader, length, error) {
19188
+ JobStartRequest.decode = function decode(reader, length, error) {
19142
19189
  if (!(reader instanceof $Reader))
19143
19190
  reader = $Reader.create(reader);
19144
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobEvent();
19191
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStartRequest();
19145
19192
  while (reader.pos < end) {
19146
19193
  let tag = reader.uint32();
19147
19194
  if (tag === error)
19148
19195
  break;
19149
19196
  switch (tag >>> 3) {
19150
19197
  case 1: {
19151
- message.jobId = reader.uint32();
19198
+ message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.decode(reader, reader.uint32());
19152
19199
  break;
19153
19200
  }
19154
19201
  case 2: {
19155
- message.source = reader.string();
19156
- break;
19157
- }
19158
- case 3: {
19159
- message.status = reader.int32();
19160
- break;
19161
- }
19162
- case 4: {
19163
- message.statusText = reader.string();
19164
- break;
19165
- }
19166
- case 5: {
19167
- message.error = reader.string();
19168
- break;
19169
- }
19170
- case 6: {
19171
- message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
19202
+ message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.decode(reader, reader.uint32());
19172
19203
  break;
19173
19204
  }
19174
19205
  default:
@@ -19178,145 +19209,317 @@ var sesame = $root.sesame = (() => {
19178
19209
  }
19179
19210
  return message;
19180
19211
  };
19181
- JobEvent.decodeDelimited = function decodeDelimited(reader) {
19212
+ JobStartRequest.decodeDelimited = function decodeDelimited(reader) {
19182
19213
  if (!(reader instanceof $Reader))
19183
19214
  reader = new $Reader(reader);
19184
19215
  return this.decode(reader, reader.uint32());
19185
19216
  };
19186
- JobEvent.verify = function verify(message) {
19217
+ JobStartRequest.verify = function verify(message) {
19187
19218
  if (typeof message !== "object" || message === null)
19188
19219
  return "object expected";
19189
19220
  let properties = {};
19190
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
19191
- if (!$util.isInteger(message.jobId))
19192
- return "jobId: integer expected";
19193
- }
19194
- if (message.source != null && message.hasOwnProperty("source")) {
19195
- if (!$util.isString(message.source))
19196
- return "source: string expected";
19221
+ if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
19222
+ properties.config = 1;
19223
+ {
19224
+ let error = $root.sesame.v1.jobs.ExportStartRequest.verify(message.exportRequest);
19225
+ if (error)
19226
+ return "exportRequest." + error;
19227
+ }
19197
19228
  }
19198
- if (message.status != null && message.hasOwnProperty("status"))
19199
- switch (message.status) {
19200
- default:
19201
- return "status: enum value expected";
19202
- case 0:
19203
- case 1:
19204
- case 2:
19205
- case 3:
19206
- case 4:
19207
- case 5:
19208
- break;
19229
+ if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
19230
+ if (properties.config === 1)
19231
+ return "config: multiple values";
19232
+ properties.config = 1;
19233
+ {
19234
+ let error = $root.sesame.v1.jobs.ImportStartRequest.verify(message.importRequest);
19235
+ if (error)
19236
+ return "importRequest." + error;
19209
19237
  }
19210
- if (message.statusText != null && message.hasOwnProperty("statusText")) {
19211
- if (!$util.isString(message.statusText))
19212
- return "statusText: string expected";
19213
19238
  }
19214
- if (message.error != null && message.hasOwnProperty("error")) {
19215
- properties._error = 1;
19216
- if (!$util.isString(message.error))
19217
- return "error: string expected";
19239
+ return null;
19240
+ };
19241
+ JobStartRequest.fromObject = function fromObject(object) {
19242
+ if (object instanceof $root.sesame.v1.jobs.JobStartRequest)
19243
+ return object;
19244
+ let message = new $root.sesame.v1.jobs.JobStartRequest();
19245
+ if (object.exportRequest != null) {
19246
+ if (typeof object.exportRequest !== "object")
19247
+ throw TypeError(".sesame.v1.jobs.JobStartRequest.exportRequest: object expected");
19248
+ message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.fromObject(object.exportRequest);
19218
19249
  }
19219
- if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
19220
- properties._timingInfo = 1;
19221
- {
19222
- let error = $root.sesame.v1.jobs.TimingInfo.verify(message.timingInfo);
19223
- if (error)
19224
- return "timingInfo." + error;
19250
+ if (object.importRequest != null) {
19251
+ if (typeof object.importRequest !== "object")
19252
+ throw TypeError(".sesame.v1.jobs.JobStartRequest.importRequest: object expected");
19253
+ message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.fromObject(object.importRequest);
19254
+ }
19255
+ return message;
19256
+ };
19257
+ JobStartRequest.toObject = function toObject(message, options) {
19258
+ if (!options)
19259
+ options = {};
19260
+ let object = {};
19261
+ if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
19262
+ object.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.toObject(message.exportRequest, options);
19263
+ if (options.oneofs)
19264
+ object.config = "exportRequest";
19265
+ }
19266
+ if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
19267
+ object.importRequest = $root.sesame.v1.jobs.ImportStartRequest.toObject(message.importRequest, options);
19268
+ if (options.oneofs)
19269
+ object.config = "importRequest";
19270
+ }
19271
+ return object;
19272
+ };
19273
+ JobStartRequest.prototype.toJSON = function toJSON() {
19274
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19275
+ };
19276
+ JobStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19277
+ if (typeUrlPrefix === void 0) {
19278
+ typeUrlPrefix = "type.googleapis.com";
19279
+ }
19280
+ return typeUrlPrefix + "/sesame.v1.jobs.JobStartRequest";
19281
+ };
19282
+ return JobStartRequest;
19283
+ }();
19284
+ jobs.JobAbortRequest = function() {
19285
+ function JobAbortRequest(properties) {
19286
+ if (properties) {
19287
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19288
+ if (properties[keys[i]] != null)
19289
+ this[keys[i]] = properties[keys[i]];
19290
+ }
19291
+ }
19292
+ JobAbortRequest.prototype.jobId = 0;
19293
+ JobAbortRequest.create = function create(properties) {
19294
+ return new JobAbortRequest(properties);
19295
+ };
19296
+ JobAbortRequest.encode = function encode(message, writer) {
19297
+ if (!writer)
19298
+ writer = $Writer.create();
19299
+ if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
19300
+ writer.uint32(
19301
+ /* id 1, wireType 0 =*/
19302
+ 8
19303
+ ).uint32(message.jobId);
19304
+ return writer;
19305
+ };
19306
+ JobAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
19307
+ return this.encode(message, writer).ldelim();
19308
+ };
19309
+ JobAbortRequest.decode = function decode(reader, length, error) {
19310
+ if (!(reader instanceof $Reader))
19311
+ reader = $Reader.create(reader);
19312
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobAbortRequest();
19313
+ while (reader.pos < end) {
19314
+ let tag = reader.uint32();
19315
+ if (tag === error)
19316
+ break;
19317
+ switch (tag >>> 3) {
19318
+ case 1: {
19319
+ message.jobId = reader.uint32();
19320
+ break;
19321
+ }
19322
+ default:
19323
+ reader.skipType(tag & 7);
19324
+ break;
19225
19325
  }
19226
19326
  }
19327
+ return message;
19328
+ };
19329
+ JobAbortRequest.decodeDelimited = function decodeDelimited(reader) {
19330
+ if (!(reader instanceof $Reader))
19331
+ reader = new $Reader(reader);
19332
+ return this.decode(reader, reader.uint32());
19333
+ };
19334
+ JobAbortRequest.verify = function verify(message) {
19335
+ if (typeof message !== "object" || message === null)
19336
+ return "object expected";
19337
+ if (message.jobId != null && message.hasOwnProperty("jobId")) {
19338
+ if (!$util.isInteger(message.jobId))
19339
+ return "jobId: integer expected";
19340
+ }
19227
19341
  return null;
19228
19342
  };
19229
- JobEvent.fromObject = function fromObject(object) {
19230
- if (object instanceof $root.sesame.v1.jobs.JobEvent)
19343
+ JobAbortRequest.fromObject = function fromObject(object) {
19344
+ if (object instanceof $root.sesame.v1.jobs.JobAbortRequest)
19231
19345
  return object;
19232
- let message = new $root.sesame.v1.jobs.JobEvent();
19346
+ let message = new $root.sesame.v1.jobs.JobAbortRequest();
19233
19347
  if (object.jobId != null)
19234
19348
  message.jobId = object.jobId >>> 0;
19235
- if (object.source != null)
19236
- message.source = String(object.source);
19237
- switch (object.status) {
19238
- default:
19239
- if (typeof object.status === "number") {
19240
- message.status = object.status;
19349
+ return message;
19350
+ };
19351
+ JobAbortRequest.toObject = function toObject(message, options) {
19352
+ if (!options)
19353
+ options = {};
19354
+ let object = {};
19355
+ if (options.defaults)
19356
+ object.jobId = 0;
19357
+ if (message.jobId != null && message.hasOwnProperty("jobId"))
19358
+ object.jobId = message.jobId;
19359
+ return object;
19360
+ };
19361
+ JobAbortRequest.prototype.toJSON = function toJSON() {
19362
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19363
+ };
19364
+ JobAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19365
+ if (typeUrlPrefix === void 0) {
19366
+ typeUrlPrefix = "type.googleapis.com";
19367
+ }
19368
+ return typeUrlPrefix + "/sesame.v1.jobs.JobAbortRequest";
19369
+ };
19370
+ return JobAbortRequest;
19371
+ }();
19372
+ jobs.JobStatusRequest = function() {
19373
+ function JobStatusRequest(properties) {
19374
+ if (properties) {
19375
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19376
+ if (properties[keys[i]] != null)
19377
+ this[keys[i]] = properties[keys[i]];
19378
+ }
19379
+ }
19380
+ JobStatusRequest.prototype.jobId = 0;
19381
+ JobStatusRequest.create = function create(properties) {
19382
+ return new JobStatusRequest(properties);
19383
+ };
19384
+ JobStatusRequest.encode = function encode(message, writer) {
19385
+ if (!writer)
19386
+ writer = $Writer.create();
19387
+ if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
19388
+ writer.uint32(
19389
+ /* id 1, wireType 0 =*/
19390
+ 8
19391
+ ).uint32(message.jobId);
19392
+ return writer;
19393
+ };
19394
+ JobStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
19395
+ return this.encode(message, writer).ldelim();
19396
+ };
19397
+ JobStatusRequest.decode = function decode(reader, length, error) {
19398
+ if (!(reader instanceof $Reader))
19399
+ reader = $Reader.create(reader);
19400
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStatusRequest();
19401
+ while (reader.pos < end) {
19402
+ let tag = reader.uint32();
19403
+ if (tag === error)
19404
+ break;
19405
+ switch (tag >>> 3) {
19406
+ case 1: {
19407
+ message.jobId = reader.uint32();
19241
19408
  break;
19242
19409
  }
19243
- break;
19244
- case "JOB_STATUS_UNSPECIFIED":
19245
- case 0:
19246
- message.status = 0;
19247
- break;
19248
- case "JOB_STATUS_PENDING":
19249
- case 1:
19250
- message.status = 1;
19251
- break;
19252
- case "JOB_STATUS_IN_PROGRESS":
19253
- case 2:
19254
- message.status = 2;
19255
- break;
19256
- case "JOB_STATUS_COMPLETE":
19257
- case 3:
19258
- message.status = 3;
19259
- break;
19260
- case "JOB_STATUS_ABORTED":
19261
- case 4:
19262
- message.status = 4;
19263
- break;
19264
- case "JOB_STATUS_ERROR":
19265
- case 5:
19266
- message.status = 5;
19267
- break;
19410
+ default:
19411
+ reader.skipType(tag & 7);
19412
+ break;
19413
+ }
19268
19414
  }
19269
- if (object.statusText != null)
19270
- message.statusText = String(object.statusText);
19271
- if (object.error != null)
19272
- message.error = String(object.error);
19273
- if (object.timingInfo != null) {
19274
- if (typeof object.timingInfo !== "object")
19275
- throw TypeError(".sesame.v1.jobs.JobEvent.timingInfo: object expected");
19276
- message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
19415
+ return message;
19416
+ };
19417
+ JobStatusRequest.decodeDelimited = function decodeDelimited(reader) {
19418
+ if (!(reader instanceof $Reader))
19419
+ reader = new $Reader(reader);
19420
+ return this.decode(reader, reader.uint32());
19421
+ };
19422
+ JobStatusRequest.verify = function verify(message) {
19423
+ if (typeof message !== "object" || message === null)
19424
+ return "object expected";
19425
+ if (message.jobId != null && message.hasOwnProperty("jobId")) {
19426
+ if (!$util.isInteger(message.jobId))
19427
+ return "jobId: integer expected";
19277
19428
  }
19429
+ return null;
19430
+ };
19431
+ JobStatusRequest.fromObject = function fromObject(object) {
19432
+ if (object instanceof $root.sesame.v1.jobs.JobStatusRequest)
19433
+ return object;
19434
+ let message = new $root.sesame.v1.jobs.JobStatusRequest();
19435
+ if (object.jobId != null)
19436
+ message.jobId = object.jobId >>> 0;
19278
19437
  return message;
19279
19438
  };
19280
- JobEvent.toObject = function toObject(message, options) {
19439
+ JobStatusRequest.toObject = function toObject(message, options) {
19281
19440
  if (!options)
19282
19441
  options = {};
19283
19442
  let object = {};
19284
- if (options.defaults) {
19443
+ if (options.defaults)
19285
19444
  object.jobId = 0;
19286
- object.source = "";
19287
- object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
19288
- object.statusText = "";
19289
- }
19290
19445
  if (message.jobId != null && message.hasOwnProperty("jobId"))
19291
19446
  object.jobId = message.jobId;
19292
- if (message.source != null && message.hasOwnProperty("source"))
19293
- object.source = message.source;
19294
- if (message.status != null && message.hasOwnProperty("status"))
19295
- object.status = options.enums === String ? $root.sesame.v1.jobs.JobStatus[message.status] === void 0 ? message.status : $root.sesame.v1.jobs.JobStatus[message.status] : message.status;
19296
- if (message.statusText != null && message.hasOwnProperty("statusText"))
19297
- object.statusText = message.statusText;
19298
- if (message.error != null && message.hasOwnProperty("error")) {
19299
- object.error = message.error;
19300
- if (options.oneofs)
19301
- object._error = "error";
19447
+ return object;
19448
+ };
19449
+ JobStatusRequest.prototype.toJSON = function toJSON() {
19450
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19451
+ };
19452
+ JobStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19453
+ if (typeUrlPrefix === void 0) {
19454
+ typeUrlPrefix = "type.googleapis.com";
19302
19455
  }
19303
- if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
19304
- object.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(message.timingInfo, options);
19305
- if (options.oneofs)
19306
- object._timingInfo = "timingInfo";
19456
+ return typeUrlPrefix + "/sesame.v1.jobs.JobStatusRequest";
19457
+ };
19458
+ return JobStatusRequest;
19459
+ }();
19460
+ jobs.JobListRequest = function() {
19461
+ function JobListRequest(properties) {
19462
+ if (properties) {
19463
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19464
+ if (properties[keys[i]] != null)
19465
+ this[keys[i]] = properties[keys[i]];
19307
19466
  }
19308
- return object;
19467
+ }
19468
+ JobListRequest.create = function create(properties) {
19469
+ return new JobListRequest(properties);
19470
+ };
19471
+ JobListRequest.encode = function encode(message, writer) {
19472
+ if (!writer)
19473
+ writer = $Writer.create();
19474
+ return writer;
19309
19475
  };
19310
- JobEvent.prototype.toJSON = function toJSON() {
19476
+ JobListRequest.encodeDelimited = function encodeDelimited(message, writer) {
19477
+ return this.encode(message, writer).ldelim();
19478
+ };
19479
+ JobListRequest.decode = function decode(reader, length, error) {
19480
+ if (!(reader instanceof $Reader))
19481
+ reader = $Reader.create(reader);
19482
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobListRequest();
19483
+ while (reader.pos < end) {
19484
+ let tag = reader.uint32();
19485
+ if (tag === error)
19486
+ break;
19487
+ switch (tag >>> 3) {
19488
+ default:
19489
+ reader.skipType(tag & 7);
19490
+ break;
19491
+ }
19492
+ }
19493
+ return message;
19494
+ };
19495
+ JobListRequest.decodeDelimited = function decodeDelimited(reader) {
19496
+ if (!(reader instanceof $Reader))
19497
+ reader = new $Reader(reader);
19498
+ return this.decode(reader, reader.uint32());
19499
+ };
19500
+ JobListRequest.verify = function verify(message) {
19501
+ if (typeof message !== "object" || message === null)
19502
+ return "object expected";
19503
+ return null;
19504
+ };
19505
+ JobListRequest.fromObject = function fromObject(object) {
19506
+ if (object instanceof $root.sesame.v1.jobs.JobListRequest)
19507
+ return object;
19508
+ return new $root.sesame.v1.jobs.JobListRequest();
19509
+ };
19510
+ JobListRequest.toObject = function toObject() {
19511
+ return {};
19512
+ };
19513
+ JobListRequest.prototype.toJSON = function toJSON() {
19311
19514
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19312
19515
  };
19313
- JobEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19516
+ JobListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19314
19517
  if (typeUrlPrefix === void 0) {
19315
19518
  typeUrlPrefix = "type.googleapis.com";
19316
19519
  }
19317
- return typeUrlPrefix + "/sesame.v1.jobs.JobEvent";
19520
+ return typeUrlPrefix + "/sesame.v1.jobs.JobListRequest";
19318
19521
  };
19319
- return JobEvent;
19522
+ return JobListRequest;
19320
19523
  }();
19321
19524
  jobs.ExportConfiguration = function() {
19322
19525
  function ExportConfiguration(properties) {
@@ -20049,298 +20252,14 @@ var sesame = $root.sesame = (() => {
20049
20252
  switch (tag >>> 3) {
20050
20253
  case 1: {
20051
20254
  message.config = $root.sesame.v1.jobs.ExportConfiguration.decode(reader, reader.uint32());
20052
- break;
20053
- }
20054
- case 2: {
20055
- if (!(message.items && message.items.length))
20056
- message.items = [];
20057
- message.items.push($root.sesame.v1.recorder.PlaylistItem.decode(reader, reader.uint32()));
20058
- break;
20059
- }
20060
- default:
20061
- reader.skipType(tag & 7);
20062
- break;
20063
- }
20064
- }
20065
- return message;
20066
- };
20067
- ExportStartRequest.decodeDelimited = function decodeDelimited(reader) {
20068
- if (!(reader instanceof $Reader))
20069
- reader = new $Reader(reader);
20070
- return this.decode(reader, reader.uint32());
20071
- };
20072
- ExportStartRequest.verify = function verify(message) {
20073
- if (typeof message !== "object" || message === null)
20074
- return "object expected";
20075
- if (message.config != null && message.hasOwnProperty("config")) {
20076
- let error = $root.sesame.v1.jobs.ExportConfiguration.verify(message.config);
20077
- if (error)
20078
- return "config." + error;
20079
- }
20080
- if (message.items != null && message.hasOwnProperty("items")) {
20081
- if (!Array.isArray(message.items))
20082
- return "items: array expected";
20083
- for (let i = 0; i < message.items.length; ++i) {
20084
- let error = $root.sesame.v1.recorder.PlaylistItem.verify(message.items[i]);
20085
- if (error)
20086
- return "items." + error;
20087
- }
20088
- }
20089
- return null;
20090
- };
20091
- ExportStartRequest.fromObject = function fromObject(object) {
20092
- if (object instanceof $root.sesame.v1.jobs.ExportStartRequest)
20093
- return object;
20094
- let message = new $root.sesame.v1.jobs.ExportStartRequest();
20095
- if (object.config != null) {
20096
- if (typeof object.config !== "object")
20097
- throw TypeError(".sesame.v1.jobs.ExportStartRequest.config: object expected");
20098
- message.config = $root.sesame.v1.jobs.ExportConfiguration.fromObject(object.config);
20099
- }
20100
- if (object.items) {
20101
- if (!Array.isArray(object.items))
20102
- throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: array expected");
20103
- message.items = [];
20104
- for (let i = 0; i < object.items.length; ++i) {
20105
- if (typeof object.items[i] !== "object")
20106
- throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: object expected");
20107
- message.items[i] = $root.sesame.v1.recorder.PlaylistItem.fromObject(object.items[i]);
20108
- }
20109
- }
20110
- return message;
20111
- };
20112
- ExportStartRequest.toObject = function toObject(message, options) {
20113
- if (!options)
20114
- options = {};
20115
- let object = {};
20116
- if (options.arrays || options.defaults)
20117
- object.items = [];
20118
- if (options.defaults)
20119
- object.config = null;
20120
- if (message.config != null && message.hasOwnProperty("config"))
20121
- object.config = $root.sesame.v1.jobs.ExportConfiguration.toObject(message.config, options);
20122
- if (message.items && message.items.length) {
20123
- object.items = [];
20124
- for (let j = 0; j < message.items.length; ++j)
20125
- object.items[j] = $root.sesame.v1.recorder.PlaylistItem.toObject(message.items[j], options);
20126
- }
20127
- return object;
20128
- };
20129
- ExportStartRequest.prototype.toJSON = function toJSON() {
20130
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20131
- };
20132
- ExportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20133
- if (typeUrlPrefix === void 0) {
20134
- typeUrlPrefix = "type.googleapis.com";
20135
- }
20136
- return typeUrlPrefix + "/sesame.v1.jobs.ExportStartRequest";
20137
- };
20138
- return ExportStartRequest;
20139
- }();
20140
- jobs.ExportAbortRequest = function() {
20141
- function ExportAbortRequest(properties) {
20142
- if (properties) {
20143
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20144
- if (properties[keys[i]] != null)
20145
- this[keys[i]] = properties[keys[i]];
20146
- }
20147
- }
20148
- ExportAbortRequest.prototype.jobId = 0;
20149
- ExportAbortRequest.create = function create(properties) {
20150
- return new ExportAbortRequest(properties);
20151
- };
20152
- ExportAbortRequest.encode = function encode(message, writer) {
20153
- if (!writer)
20154
- writer = $Writer.create();
20155
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
20156
- writer.uint32(
20157
- /* id 1, wireType 0 =*/
20158
- 8
20159
- ).uint32(message.jobId);
20160
- return writer;
20161
- };
20162
- ExportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
20163
- return this.encode(message, writer).ldelim();
20164
- };
20165
- ExportAbortRequest.decode = function decode(reader, length, error) {
20166
- if (!(reader instanceof $Reader))
20167
- reader = $Reader.create(reader);
20168
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportAbortRequest();
20169
- while (reader.pos < end) {
20170
- let tag = reader.uint32();
20171
- if (tag === error)
20172
- break;
20173
- switch (tag >>> 3) {
20174
- case 1: {
20175
- message.jobId = reader.uint32();
20176
- break;
20177
- }
20178
- default:
20179
- reader.skipType(tag & 7);
20180
- break;
20181
- }
20182
- }
20183
- return message;
20184
- };
20185
- ExportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
20186
- if (!(reader instanceof $Reader))
20187
- reader = new $Reader(reader);
20188
- return this.decode(reader, reader.uint32());
20189
- };
20190
- ExportAbortRequest.verify = function verify(message) {
20191
- if (typeof message !== "object" || message === null)
20192
- return "object expected";
20193
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
20194
- if (!$util.isInteger(message.jobId))
20195
- return "jobId: integer expected";
20196
- }
20197
- return null;
20198
- };
20199
- ExportAbortRequest.fromObject = function fromObject(object) {
20200
- if (object instanceof $root.sesame.v1.jobs.ExportAbortRequest)
20201
- return object;
20202
- let message = new $root.sesame.v1.jobs.ExportAbortRequest();
20203
- if (object.jobId != null)
20204
- message.jobId = object.jobId >>> 0;
20205
- return message;
20206
- };
20207
- ExportAbortRequest.toObject = function toObject(message, options) {
20208
- if (!options)
20209
- options = {};
20210
- let object = {};
20211
- if (options.defaults)
20212
- object.jobId = 0;
20213
- if (message.jobId != null && message.hasOwnProperty("jobId"))
20214
- object.jobId = message.jobId;
20215
- return object;
20216
- };
20217
- ExportAbortRequest.prototype.toJSON = function toJSON() {
20218
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20219
- };
20220
- ExportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20221
- if (typeUrlPrefix === void 0) {
20222
- typeUrlPrefix = "type.googleapis.com";
20223
- }
20224
- return typeUrlPrefix + "/sesame.v1.jobs.ExportAbortRequest";
20225
- };
20226
- return ExportAbortRequest;
20227
- }();
20228
- jobs.ExportStatusRequest = function() {
20229
- function ExportStatusRequest(properties) {
20230
- if (properties) {
20231
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20232
- if (properties[keys[i]] != null)
20233
- this[keys[i]] = properties[keys[i]];
20234
- }
20235
- }
20236
- ExportStatusRequest.prototype.jobId = 0;
20237
- ExportStatusRequest.create = function create(properties) {
20238
- return new ExportStatusRequest(properties);
20239
- };
20240
- ExportStatusRequest.encode = function encode(message, writer) {
20241
- if (!writer)
20242
- writer = $Writer.create();
20243
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
20244
- writer.uint32(
20245
- /* id 1, wireType 0 =*/
20246
- 8
20247
- ).uint32(message.jobId);
20248
- return writer;
20249
- };
20250
- ExportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
20251
- return this.encode(message, writer).ldelim();
20252
- };
20253
- ExportStatusRequest.decode = function decode(reader, length, error) {
20254
- if (!(reader instanceof $Reader))
20255
- reader = $Reader.create(reader);
20256
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportStatusRequest();
20257
- while (reader.pos < end) {
20258
- let tag = reader.uint32();
20259
- if (tag === error)
20260
- break;
20261
- switch (tag >>> 3) {
20262
- case 1: {
20263
- message.jobId = reader.uint32();
20264
- break;
20265
- }
20266
- default:
20267
- reader.skipType(tag & 7);
20268
- break;
20269
- }
20270
- }
20271
- return message;
20272
- };
20273
- ExportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
20274
- if (!(reader instanceof $Reader))
20275
- reader = new $Reader(reader);
20276
- return this.decode(reader, reader.uint32());
20277
- };
20278
- ExportStatusRequest.verify = function verify(message) {
20279
- if (typeof message !== "object" || message === null)
20280
- return "object expected";
20281
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
20282
- if (!$util.isInteger(message.jobId))
20283
- return "jobId: integer expected";
20284
- }
20285
- return null;
20286
- };
20287
- ExportStatusRequest.fromObject = function fromObject(object) {
20288
- if (object instanceof $root.sesame.v1.jobs.ExportStatusRequest)
20289
- return object;
20290
- let message = new $root.sesame.v1.jobs.ExportStatusRequest();
20291
- if (object.jobId != null)
20292
- message.jobId = object.jobId >>> 0;
20293
- return message;
20294
- };
20295
- ExportStatusRequest.toObject = function toObject(message, options) {
20296
- if (!options)
20297
- options = {};
20298
- let object = {};
20299
- if (options.defaults)
20300
- object.jobId = 0;
20301
- if (message.jobId != null && message.hasOwnProperty("jobId"))
20302
- object.jobId = message.jobId;
20303
- return object;
20304
- };
20305
- ExportStatusRequest.prototype.toJSON = function toJSON() {
20306
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20307
- };
20308
- ExportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20309
- if (typeUrlPrefix === void 0) {
20310
- typeUrlPrefix = "type.googleapis.com";
20311
- }
20312
- return typeUrlPrefix + "/sesame.v1.jobs.ExportStatusRequest";
20313
- };
20314
- return ExportStatusRequest;
20315
- }();
20316
- jobs.ExportListRequest = function() {
20317
- function ExportListRequest(properties) {
20318
- if (properties) {
20319
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20320
- if (properties[keys[i]] != null)
20321
- this[keys[i]] = properties[keys[i]];
20322
- }
20323
- }
20324
- ExportListRequest.create = function create(properties) {
20325
- return new ExportListRequest(properties);
20326
- };
20327
- ExportListRequest.encode = function encode(message, writer) {
20328
- if (!writer)
20329
- writer = $Writer.create();
20330
- return writer;
20331
- };
20332
- ExportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
20333
- return this.encode(message, writer).ldelim();
20334
- };
20335
- ExportListRequest.decode = function decode(reader, length, error) {
20336
- if (!(reader instanceof $Reader))
20337
- reader = $Reader.create(reader);
20338
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportListRequest();
20339
- while (reader.pos < end) {
20340
- let tag = reader.uint32();
20341
- if (tag === error)
20342
- break;
20343
- switch (tag >>> 3) {
20255
+ break;
20256
+ }
20257
+ case 2: {
20258
+ if (!(message.items && message.items.length))
20259
+ message.items = [];
20260
+ message.items.push($root.sesame.v1.recorder.PlaylistItem.decode(reader, reader.uint32()));
20261
+ break;
20262
+ }
20344
20263
  default:
20345
20264
  reader.skipType(tag & 7);
20346
20265
  break;
@@ -20348,34 +20267,78 @@ var sesame = $root.sesame = (() => {
20348
20267
  }
20349
20268
  return message;
20350
20269
  };
20351
- ExportListRequest.decodeDelimited = function decodeDelimited(reader) {
20270
+ ExportStartRequest.decodeDelimited = function decodeDelimited(reader) {
20352
20271
  if (!(reader instanceof $Reader))
20353
20272
  reader = new $Reader(reader);
20354
20273
  return this.decode(reader, reader.uint32());
20355
20274
  };
20356
- ExportListRequest.verify = function verify(message) {
20275
+ ExportStartRequest.verify = function verify(message) {
20357
20276
  if (typeof message !== "object" || message === null)
20358
20277
  return "object expected";
20278
+ if (message.config != null && message.hasOwnProperty("config")) {
20279
+ let error = $root.sesame.v1.jobs.ExportConfiguration.verify(message.config);
20280
+ if (error)
20281
+ return "config." + error;
20282
+ }
20283
+ if (message.items != null && message.hasOwnProperty("items")) {
20284
+ if (!Array.isArray(message.items))
20285
+ return "items: array expected";
20286
+ for (let i = 0; i < message.items.length; ++i) {
20287
+ let error = $root.sesame.v1.recorder.PlaylistItem.verify(message.items[i]);
20288
+ if (error)
20289
+ return "items." + error;
20290
+ }
20291
+ }
20359
20292
  return null;
20360
20293
  };
20361
- ExportListRequest.fromObject = function fromObject(object) {
20362
- if (object instanceof $root.sesame.v1.jobs.ExportListRequest)
20294
+ ExportStartRequest.fromObject = function fromObject(object) {
20295
+ if (object instanceof $root.sesame.v1.jobs.ExportStartRequest)
20363
20296
  return object;
20364
- return new $root.sesame.v1.jobs.ExportListRequest();
20297
+ let message = new $root.sesame.v1.jobs.ExportStartRequest();
20298
+ if (object.config != null) {
20299
+ if (typeof object.config !== "object")
20300
+ throw TypeError(".sesame.v1.jobs.ExportStartRequest.config: object expected");
20301
+ message.config = $root.sesame.v1.jobs.ExportConfiguration.fromObject(object.config);
20302
+ }
20303
+ if (object.items) {
20304
+ if (!Array.isArray(object.items))
20305
+ throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: array expected");
20306
+ message.items = [];
20307
+ for (let i = 0; i < object.items.length; ++i) {
20308
+ if (typeof object.items[i] !== "object")
20309
+ throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: object expected");
20310
+ message.items[i] = $root.sesame.v1.recorder.PlaylistItem.fromObject(object.items[i]);
20311
+ }
20312
+ }
20313
+ return message;
20365
20314
  };
20366
- ExportListRequest.toObject = function toObject() {
20367
- return {};
20315
+ ExportStartRequest.toObject = function toObject(message, options) {
20316
+ if (!options)
20317
+ options = {};
20318
+ let object = {};
20319
+ if (options.arrays || options.defaults)
20320
+ object.items = [];
20321
+ if (options.defaults)
20322
+ object.config = null;
20323
+ if (message.config != null && message.hasOwnProperty("config"))
20324
+ object.config = $root.sesame.v1.jobs.ExportConfiguration.toObject(message.config, options);
20325
+ if (message.items && message.items.length) {
20326
+ object.items = [];
20327
+ for (let j = 0; j < message.items.length; ++j)
20328
+ object.items[j] = $root.sesame.v1.recorder.PlaylistItem.toObject(message.items[j], options);
20329
+ }
20330
+ return object;
20368
20331
  };
20369
- ExportListRequest.prototype.toJSON = function toJSON() {
20332
+ ExportStartRequest.prototype.toJSON = function toJSON() {
20370
20333
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20371
20334
  };
20372
- ExportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20335
+ ExportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20373
20336
  if (typeUrlPrefix === void 0) {
20374
20337
  typeUrlPrefix = "type.googleapis.com";
20375
20338
  }
20376
- return typeUrlPrefix + "/sesame.v1.jobs.ExportListRequest";
20339
+ return typeUrlPrefix + "/sesame.v1.jobs.ExportStartRequest";
20377
20340
  };
20378
- return ExportListRequest;
20341
+ return ExportStartRequest;
20379
20342
  }();
20380
20343
  jobs.ImportConfiguration = function() {
20381
20344
  function ImportConfiguration(properties) {
@@ -20692,246 +20655,6 @@ var sesame = $root.sesame = (() => {
20692
20655
  };
20693
20656
  return ImportStartRequest;
20694
20657
  }();
20695
- jobs.ImportAbortRequest = function() {
20696
- function ImportAbortRequest(properties) {
20697
- if (properties) {
20698
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20699
- if (properties[keys[i]] != null)
20700
- this[keys[i]] = properties[keys[i]];
20701
- }
20702
- }
20703
- ImportAbortRequest.prototype.jobId = 0;
20704
- ImportAbortRequest.create = function create(properties) {
20705
- return new ImportAbortRequest(properties);
20706
- };
20707
- ImportAbortRequest.encode = function encode(message, writer) {
20708
- if (!writer)
20709
- writer = $Writer.create();
20710
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
20711
- writer.uint32(
20712
- /* id 1, wireType 0 =*/
20713
- 8
20714
- ).uint32(message.jobId);
20715
- return writer;
20716
- };
20717
- ImportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
20718
- return this.encode(message, writer).ldelim();
20719
- };
20720
- ImportAbortRequest.decode = function decode(reader, length, error) {
20721
- if (!(reader instanceof $Reader))
20722
- reader = $Reader.create(reader);
20723
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportAbortRequest();
20724
- while (reader.pos < end) {
20725
- let tag = reader.uint32();
20726
- if (tag === error)
20727
- break;
20728
- switch (tag >>> 3) {
20729
- case 1: {
20730
- message.jobId = reader.uint32();
20731
- break;
20732
- }
20733
- default:
20734
- reader.skipType(tag & 7);
20735
- break;
20736
- }
20737
- }
20738
- return message;
20739
- };
20740
- ImportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
20741
- if (!(reader instanceof $Reader))
20742
- reader = new $Reader(reader);
20743
- return this.decode(reader, reader.uint32());
20744
- };
20745
- ImportAbortRequest.verify = function verify(message) {
20746
- if (typeof message !== "object" || message === null)
20747
- return "object expected";
20748
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
20749
- if (!$util.isInteger(message.jobId))
20750
- return "jobId: integer expected";
20751
- }
20752
- return null;
20753
- };
20754
- ImportAbortRequest.fromObject = function fromObject(object) {
20755
- if (object instanceof $root.sesame.v1.jobs.ImportAbortRequest)
20756
- return object;
20757
- let message = new $root.sesame.v1.jobs.ImportAbortRequest();
20758
- if (object.jobId != null)
20759
- message.jobId = object.jobId >>> 0;
20760
- return message;
20761
- };
20762
- ImportAbortRequest.toObject = function toObject(message, options) {
20763
- if (!options)
20764
- options = {};
20765
- let object = {};
20766
- if (options.defaults)
20767
- object.jobId = 0;
20768
- if (message.jobId != null && message.hasOwnProperty("jobId"))
20769
- object.jobId = message.jobId;
20770
- return object;
20771
- };
20772
- ImportAbortRequest.prototype.toJSON = function toJSON() {
20773
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20774
- };
20775
- ImportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20776
- if (typeUrlPrefix === void 0) {
20777
- typeUrlPrefix = "type.googleapis.com";
20778
- }
20779
- return typeUrlPrefix + "/sesame.v1.jobs.ImportAbortRequest";
20780
- };
20781
- return ImportAbortRequest;
20782
- }();
20783
- jobs.ImportStatusRequest = function() {
20784
- function ImportStatusRequest(properties) {
20785
- if (properties) {
20786
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20787
- if (properties[keys[i]] != null)
20788
- this[keys[i]] = properties[keys[i]];
20789
- }
20790
- }
20791
- ImportStatusRequest.prototype.jobId = 0;
20792
- ImportStatusRequest.create = function create(properties) {
20793
- return new ImportStatusRequest(properties);
20794
- };
20795
- ImportStatusRequest.encode = function encode(message, writer) {
20796
- if (!writer)
20797
- writer = $Writer.create();
20798
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
20799
- writer.uint32(
20800
- /* id 1, wireType 0 =*/
20801
- 8
20802
- ).uint32(message.jobId);
20803
- return writer;
20804
- };
20805
- ImportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
20806
- return this.encode(message, writer).ldelim();
20807
- };
20808
- ImportStatusRequest.decode = function decode(reader, length, error) {
20809
- if (!(reader instanceof $Reader))
20810
- reader = $Reader.create(reader);
20811
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportStatusRequest();
20812
- while (reader.pos < end) {
20813
- let tag = reader.uint32();
20814
- if (tag === error)
20815
- break;
20816
- switch (tag >>> 3) {
20817
- case 1: {
20818
- message.jobId = reader.uint32();
20819
- break;
20820
- }
20821
- default:
20822
- reader.skipType(tag & 7);
20823
- break;
20824
- }
20825
- }
20826
- return message;
20827
- };
20828
- ImportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
20829
- if (!(reader instanceof $Reader))
20830
- reader = new $Reader(reader);
20831
- return this.decode(reader, reader.uint32());
20832
- };
20833
- ImportStatusRequest.verify = function verify(message) {
20834
- if (typeof message !== "object" || message === null)
20835
- return "object expected";
20836
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
20837
- if (!$util.isInteger(message.jobId))
20838
- return "jobId: integer expected";
20839
- }
20840
- return null;
20841
- };
20842
- ImportStatusRequest.fromObject = function fromObject(object) {
20843
- if (object instanceof $root.sesame.v1.jobs.ImportStatusRequest)
20844
- return object;
20845
- let message = new $root.sesame.v1.jobs.ImportStatusRequest();
20846
- if (object.jobId != null)
20847
- message.jobId = object.jobId >>> 0;
20848
- return message;
20849
- };
20850
- ImportStatusRequest.toObject = function toObject(message, options) {
20851
- if (!options)
20852
- options = {};
20853
- let object = {};
20854
- if (options.defaults)
20855
- object.jobId = 0;
20856
- if (message.jobId != null && message.hasOwnProperty("jobId"))
20857
- object.jobId = message.jobId;
20858
- return object;
20859
- };
20860
- ImportStatusRequest.prototype.toJSON = function toJSON() {
20861
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20862
- };
20863
- ImportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20864
- if (typeUrlPrefix === void 0) {
20865
- typeUrlPrefix = "type.googleapis.com";
20866
- }
20867
- return typeUrlPrefix + "/sesame.v1.jobs.ImportStatusRequest";
20868
- };
20869
- return ImportStatusRequest;
20870
- }();
20871
- jobs.ImportListRequest = function() {
20872
- function ImportListRequest(properties) {
20873
- if (properties) {
20874
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20875
- if (properties[keys[i]] != null)
20876
- this[keys[i]] = properties[keys[i]];
20877
- }
20878
- }
20879
- ImportListRequest.create = function create(properties) {
20880
- return new ImportListRequest(properties);
20881
- };
20882
- ImportListRequest.encode = function encode(message, writer) {
20883
- if (!writer)
20884
- writer = $Writer.create();
20885
- return writer;
20886
- };
20887
- ImportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
20888
- return this.encode(message, writer).ldelim();
20889
- };
20890
- ImportListRequest.decode = function decode(reader, length, error) {
20891
- if (!(reader instanceof $Reader))
20892
- reader = $Reader.create(reader);
20893
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportListRequest();
20894
- while (reader.pos < end) {
20895
- let tag = reader.uint32();
20896
- if (tag === error)
20897
- break;
20898
- switch (tag >>> 3) {
20899
- default:
20900
- reader.skipType(tag & 7);
20901
- break;
20902
- }
20903
- }
20904
- return message;
20905
- };
20906
- ImportListRequest.decodeDelimited = function decodeDelimited(reader) {
20907
- if (!(reader instanceof $Reader))
20908
- reader = new $Reader(reader);
20909
- return this.decode(reader, reader.uint32());
20910
- };
20911
- ImportListRequest.verify = function verify(message) {
20912
- if (typeof message !== "object" || message === null)
20913
- return "object expected";
20914
- return null;
20915
- };
20916
- ImportListRequest.fromObject = function fromObject(object) {
20917
- if (object instanceof $root.sesame.v1.jobs.ImportListRequest)
20918
- return object;
20919
- return new $root.sesame.v1.jobs.ImportListRequest();
20920
- };
20921
- ImportListRequest.toObject = function toObject() {
20922
- return {};
20923
- };
20924
- ImportListRequest.prototype.toJSON = function toJSON() {
20925
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20926
- };
20927
- ImportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20928
- if (typeUrlPrefix === void 0) {
20929
- typeUrlPrefix = "type.googleapis.com";
20930
- }
20931
- return typeUrlPrefix + "/sesame.v1.jobs.ImportListRequest";
20932
- };
20933
- return ImportListRequest;
20934
- }();
20935
20658
  return jobs;
20936
20659
  }();
20937
20660
  v1.rpc = function() {
@@ -21463,7 +21186,6 @@ var sesame = $root.sesame = (() => {
21463
21186
  case 2:
21464
21187
  case 3:
21465
21188
  case 4:
21466
- case 5:
21467
21189
  case 6:
21468
21190
  break;
21469
21191
  }
@@ -21500,14 +21222,10 @@ var sesame = $root.sesame = (() => {
21500
21222
  case 3:
21501
21223
  message.topic = 3;
21502
21224
  break;
21503
- case "EVENT_TOPIC_PLAYLIST_EXPORT":
21225
+ case "EVENT_TOPIC_JOB":
21504
21226
  case 4:
21505
21227
  message.topic = 4;
21506
21228
  break;
21507
- case "EVENT_TOPIC_CLIP_IMPORT":
21508
- case 5:
21509
- message.topic = 5;
21510
- break;
21511
21229
  case "EVENT_TOPIC_RECORDER":
21512
21230
  case 6:
21513
21231
  message.topic = 6;
@@ -21578,30 +21296,18 @@ var sesame = $root.sesame = (() => {
21578
21296
  Object.defineProperty(SesameAPIService.prototype.requestRecorderOperation = function requestRecorderOperation(request, callback) {
21579
21297
  return this.rpcCall(requestRecorderOperation, $root.sesame.v1.recorder.RecorderRequest, $root.sesame.v1.recorder.RecorderResponse, request, callback);
21580
21298
  }, "name", { value: "RequestRecorderOperation" });
21581
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportStart = function requestPlaylistExportStart(request, callback) {
21582
- return this.rpcCall(requestPlaylistExportStart, $root.sesame.v1.jobs.ExportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21583
- }, "name", { value: "RequestPlaylistExportStart" });
21584
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportAbort = function requestPlaylistExportAbort(request, callback) {
21585
- return this.rpcCall(requestPlaylistExportAbort, $root.sesame.v1.jobs.ExportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21586
- }, "name", { value: "RequestPlaylistExportAbort" });
21587
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportStatus = function requestPlaylistExportStatus(request, callback) {
21588
- return this.rpcCall(requestPlaylistExportStatus, $root.sesame.v1.jobs.ExportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21589
- }, "name", { value: "RequestPlaylistExportStatus" });
21590
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportList = function requestPlaylistExportList(request, callback) {
21591
- return this.rpcCall(requestPlaylistExportList, $root.sesame.v1.jobs.ExportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
21592
- }, "name", { value: "RequestPlaylistExportList" });
21593
- Object.defineProperty(SesameAPIService.prototype.requestClipImportStart = function requestClipImportStart(request, callback) {
21594
- return this.rpcCall(requestClipImportStart, $root.sesame.v1.jobs.ImportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21595
- }, "name", { value: "RequestClipImportStart" });
21596
- Object.defineProperty(SesameAPIService.prototype.requestClipImportAbort = function requestClipImportAbort(request, callback) {
21597
- return this.rpcCall(requestClipImportAbort, $root.sesame.v1.jobs.ImportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21598
- }, "name", { value: "RequestClipImportAbort" });
21599
- Object.defineProperty(SesameAPIService.prototype.requestClipImportStatus = function requestClipImportStatus(request, callback) {
21600
- return this.rpcCall(requestClipImportStatus, $root.sesame.v1.jobs.ImportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21601
- }, "name", { value: "RequestClipImportStatus" });
21602
- Object.defineProperty(SesameAPIService.prototype.requestClipImportList = function requestClipImportList(request, callback) {
21603
- return this.rpcCall(requestClipImportList, $root.sesame.v1.jobs.ImportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
21604
- }, "name", { value: "RequestClipImportList" });
21299
+ Object.defineProperty(SesameAPIService.prototype.startJob = function startJob(request, callback) {
21300
+ return this.rpcCall(startJob, $root.sesame.v1.jobs.JobStartRequest, $root.sesame.v1.jobs.Job, request, callback);
21301
+ }, "name", { value: "StartJob" });
21302
+ Object.defineProperty(SesameAPIService.prototype.abortJob = function abortJob(request, callback) {
21303
+ return this.rpcCall(abortJob, $root.sesame.v1.jobs.JobAbortRequest, $root.sesame.v1.jobs.Job, request, callback);
21304
+ }, "name", { value: "AbortJob" });
21305
+ Object.defineProperty(SesameAPIService.prototype.getJobStatus = function getJobStatus(request, callback) {
21306
+ return this.rpcCall(getJobStatus, $root.sesame.v1.jobs.JobStatusRequest, $root.sesame.v1.jobs.Job, request, callback);
21307
+ }, "name", { value: "GetJobStatus" });
21308
+ Object.defineProperty(SesameAPIService.prototype.listJobs = function listJobs(request, callback) {
21309
+ return this.rpcCall(listJobs, $root.sesame.v1.jobs.JobListRequest, $root.sesame.v1.jobs.JobList, request, callback);
21310
+ }, "name", { value: "ListJobs" });
21605
21311
  Object.defineProperty(SesameAPIService.prototype.requestKeyframe = function requestKeyframe(request, callback) {
21606
21312
  return this.rpcCall(requestKeyframe, $root.sesame.v1.outputs.KeyframeRequest, $root.sesame.v1.common.Empty, request, callback);
21607
21313
  }, "name", { value: "RequestKeyframe" });
@@ -22980,26 +22686,19 @@ var JobsApi = class {
22980
22686
  this.rpc = rpc;
22981
22687
  }
22982
22688
  async importClip(config) {
22983
- const msg = sesame.v1.jobs.ImportStartRequest.create();
22984
- msg.config = config;
22985
- const res = await this.rpc.service.requestClipImportStart(msg);
22689
+ const importReq = sesame.v1.jobs.ImportStartRequest.create();
22690
+ importReq.config = config;
22691
+ const msg = sesame.v1.jobs.JobStartRequest.create({ importRequest: importReq });
22692
+ const res = await this.rpc.service.startJob(msg);
22986
22693
  if (res.error) {
22987
22694
  throw new Error(res.error);
22988
22695
  }
22989
22696
  return res;
22990
22697
  }
22991
- async getImportStatus() {
22992
- const msg = sesame.v1.jobs.ImportListRequest.create();
22993
- return this.rpc.service.requestClipImportList(msg);
22994
- }
22995
- async abortImport(jobId) {
22996
- const msg = { jobId };
22997
- return this.rpc.service.requestClipImportAbort(msg);
22998
- }
22999
22698
  async exportPlaylist(playlist, config) {
23000
- const msg = sesame.v1.jobs.ExportStartRequest.create();
22699
+ const exportReq = sesame.v1.jobs.ExportStartRequest.create();
23001
22700
  if (!config.filename) throw new Error("Filename is required");
23002
- msg.config = {
22701
+ exportReq.config = {
23003
22702
  ...config,
23004
22703
  filename: config.filename,
23005
22704
  videoCodec: config.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
@@ -23009,7 +22708,7 @@ var JobsApi = class {
23009
22708
  audioChannels: config.audioChannels ?? 4,
23010
22709
  audioRouting: config.audioRouting ?? [0, 1, 2, 3]
23011
22710
  };
23012
- msg.items = playlist.clips.map((clip) => ({
22711
+ exportReq.items = playlist.clips.map((clip) => ({
23013
22712
  id: clip.id,
23014
22713
  recorderId: clip.recorderId,
23015
22714
  transitionTimeUs: clip.transitionTimeUs ?? 0,
@@ -23020,15 +22719,20 @@ var JobsApi = class {
23020
22719
  startTimeUs: clip.startTimeUs,
23021
22720
  endTimeUs: clip.endTimeUs
23022
22721
  }));
23023
- await this.rpc.service.requestPlaylistExportStart(msg);
22722
+ const msg = sesame.v1.jobs.JobStartRequest.create({ exportRequest: exportReq });
22723
+ await this.rpc.service.startJob(msg);
23024
22724
  }
23025
- async getExportStatus() {
23026
- const msg = sesame.v1.jobs.ExportListRequest.create();
23027
- return this.rpc.service.requestPlaylistExportList(msg);
22725
+ async abortJob(jobId) {
22726
+ const msg = { jobId };
22727
+ return this.rpc.service.abortJob(msg);
23028
22728
  }
23029
- async abortExport(jobId) {
22729
+ async getJobStatus(jobId) {
23030
22730
  const msg = { jobId };
23031
- return this.rpc.service.requestPlaylistExportAbort(msg);
22731
+ return this.rpc.service.getJobStatus(msg);
22732
+ }
22733
+ async listJobs() {
22734
+ const msg = {};
22735
+ return this.rpc.service.listJobs(msg);
23032
22736
  }
23033
22737
  };
23034
22738
 
@@ -23088,8 +22792,7 @@ var SesameClient = class extends import_events3.EventEmitter {
23088
22792
  [sesame.v1.common.EventTopic.EVENT_TOPIC_ERROR]: sesame.v1.status.Event,
23089
22793
  [sesame.v1.common.EventTopic.EVENT_TOPIC_TRANSPORT]: sesame.v1.status.Event,
23090
22794
  [sesame.v1.common.EventTopic.EVENT_TOPIC_CALLBACK]: sesame.v1.status.Event,
23091
- [sesame.v1.common.EventTopic.EVENT_TOPIC_PLAYLIST_EXPORT]: sesame.v1.status.Event,
23092
- [sesame.v1.common.EventTopic.EVENT_TOPIC_CLIP_IMPORT]: sesame.v1.status.Event,
22795
+ [sesame.v1.common.EventTopic.EVENT_TOPIC_JOB]: sesame.v1.status.Event,
23093
22796
  [sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event
23094
22797
  };
23095
22798
  let options = {