@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.
package/dist/index.mjs CHANGED
@@ -4063,8 +4063,7 @@ var sesame = $root.sesame = (() => {
4063
4063
  values[valuesById[1] = "EVENT_TOPIC_ERROR"] = 1;
4064
4064
  values[valuesById[2] = "EVENT_TOPIC_TRANSPORT"] = 2;
4065
4065
  values[valuesById[3] = "EVENT_TOPIC_CALLBACK"] = 3;
4066
- values[valuesById[4] = "EVENT_TOPIC_PLAYLIST_EXPORT"] = 4;
4067
- values[valuesById[5] = "EVENT_TOPIC_CLIP_IMPORT"] = 5;
4066
+ values[valuesById[4] = "EVENT_TOPIC_JOB"] = 4;
4068
4067
  values[valuesById[6] = "EVENT_TOPIC_RECORDER"] = 6;
4069
4068
  return values;
4070
4069
  }();
@@ -13855,12 +13854,11 @@ var sesame = $root.sesame = (() => {
13855
13854
  Event2.prototype.errorEvent = null;
13856
13855
  Event2.prototype.transportEvent = null;
13857
13856
  Event2.prototype.callbackEvent = null;
13858
- Event2.prototype.playlistExportEvent = null;
13859
- Event2.prototype.clipImportEvent = null;
13857
+ Event2.prototype.jobEvent = null;
13860
13858
  Event2.prototype.recorderEvent = null;
13861
13859
  let $oneOfFields;
13862
13860
  Object.defineProperty(Event2.prototype, "event", {
13863
- get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "playlistExportEvent", "clipImportEvent", "recorderEvent"]),
13861
+ get: $util.oneOfGetter($oneOfFields = ["errorEvent", "transportEvent", "callbackEvent", "jobEvent", "recorderEvent"]),
13864
13862
  set: $util.oneOfSetter($oneOfFields)
13865
13863
  });
13866
13864
  Event2.create = function create(properties) {
@@ -13884,16 +13882,11 @@ var sesame = $root.sesame = (() => {
13884
13882
  /* id 3, wireType 2 =*/
13885
13883
  26
13886
13884
  ).fork()).ldelim();
13887
- if (message.playlistExportEvent != null && Object.hasOwnProperty.call(message, "playlistExportEvent"))
13888
- $root.sesame.v1.jobs.JobEvent.encode(message.playlistExportEvent, writer.uint32(
13885
+ if (message.jobEvent != null && Object.hasOwnProperty.call(message, "jobEvent"))
13886
+ $root.sesame.v1.jobs.JobList.encode(message.jobEvent, writer.uint32(
13889
13887
  /* id 4, wireType 2 =*/
13890
13888
  34
13891
13889
  ).fork()).ldelim();
13892
- if (message.clipImportEvent != null && Object.hasOwnProperty.call(message, "clipImportEvent"))
13893
- $root.sesame.v1.jobs.JobEvent.encode(message.clipImportEvent, writer.uint32(
13894
- /* id 5, wireType 2 =*/
13895
- 42
13896
- ).fork()).ldelim();
13897
13890
  if (message.recorderEvent != null && Object.hasOwnProperty.call(message, "recorderEvent"))
13898
13891
  $root.sesame.v1.recorder.RecorderEvent.encode(message.recorderEvent, writer.uint32(
13899
13892
  /* id 6, wireType 2 =*/
@@ -13926,11 +13919,7 @@ var sesame = $root.sesame = (() => {
13926
13919
  break;
13927
13920
  }
13928
13921
  case 4: {
13929
- message.playlistExportEvent = $root.sesame.v1.jobs.JobEvent.decode(reader, reader.uint32());
13930
- break;
13931
- }
13932
- case 5: {
13933
- message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.decode(reader, reader.uint32());
13922
+ message.jobEvent = $root.sesame.v1.jobs.JobList.decode(reader, reader.uint32());
13934
13923
  break;
13935
13924
  }
13936
13925
  case 6: {
@@ -13981,24 +13970,14 @@ var sesame = $root.sesame = (() => {
13981
13970
  return "callbackEvent." + error;
13982
13971
  }
13983
13972
  }
13984
- if (message.playlistExportEvent != null && message.hasOwnProperty("playlistExportEvent")) {
13985
- if (properties.event === 1)
13986
- return "event: multiple values";
13987
- properties.event = 1;
13988
- {
13989
- let error = $root.sesame.v1.jobs.JobEvent.verify(message.playlistExportEvent);
13990
- if (error)
13991
- return "playlistExportEvent." + error;
13992
- }
13993
- }
13994
- if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
13973
+ if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
13995
13974
  if (properties.event === 1)
13996
13975
  return "event: multiple values";
13997
13976
  properties.event = 1;
13998
13977
  {
13999
- let error = $root.sesame.v1.jobs.JobEvent.verify(message.clipImportEvent);
13978
+ let error = $root.sesame.v1.jobs.JobList.verify(message.jobEvent);
14000
13979
  if (error)
14001
- return "clipImportEvent." + error;
13980
+ return "jobEvent." + error;
14002
13981
  }
14003
13982
  }
14004
13983
  if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
@@ -14032,15 +14011,10 @@ var sesame = $root.sesame = (() => {
14032
14011
  throw TypeError(".sesame.v1.status.Event.callbackEvent: object expected");
14033
14012
  message.callbackEvent = $root.sesame.v1.common.Callback.fromObject(object.callbackEvent);
14034
14013
  }
14035
- if (object.playlistExportEvent != null) {
14036
- if (typeof object.playlistExportEvent !== "object")
14037
- throw TypeError(".sesame.v1.status.Event.playlistExportEvent: object expected");
14038
- message.playlistExportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(object.playlistExportEvent);
14039
- }
14040
- if (object.clipImportEvent != null) {
14041
- if (typeof object.clipImportEvent !== "object")
14042
- throw TypeError(".sesame.v1.status.Event.clipImportEvent: object expected");
14043
- message.clipImportEvent = $root.sesame.v1.jobs.JobEvent.fromObject(object.clipImportEvent);
14014
+ if (object.jobEvent != null) {
14015
+ if (typeof object.jobEvent !== "object")
14016
+ throw TypeError(".sesame.v1.status.Event.jobEvent: object expected");
14017
+ message.jobEvent = $root.sesame.v1.jobs.JobList.fromObject(object.jobEvent);
14044
14018
  }
14045
14019
  if (object.recorderEvent != null) {
14046
14020
  if (typeof object.recorderEvent !== "object")
@@ -14068,15 +14042,10 @@ var sesame = $root.sesame = (() => {
14068
14042
  if (options.oneofs)
14069
14043
  object.event = "callbackEvent";
14070
14044
  }
14071
- if (message.playlistExportEvent != null && message.hasOwnProperty("playlistExportEvent")) {
14072
- object.playlistExportEvent = $root.sesame.v1.jobs.JobEvent.toObject(message.playlistExportEvent, options);
14073
- if (options.oneofs)
14074
- object.event = "playlistExportEvent";
14075
- }
14076
- if (message.clipImportEvent != null && message.hasOwnProperty("clipImportEvent")) {
14077
- object.clipImportEvent = $root.sesame.v1.jobs.JobEvent.toObject(message.clipImportEvent, options);
14045
+ if (message.jobEvent != null && message.hasOwnProperty("jobEvent")) {
14046
+ object.jobEvent = $root.sesame.v1.jobs.JobList.toObject(message.jobEvent, options);
14078
14047
  if (options.oneofs)
14079
- object.event = "clipImportEvent";
14048
+ object.event = "jobEvent";
14080
14049
  }
14081
14050
  if (message.recorderEvent != null && message.hasOwnProperty("recorderEvent")) {
14082
14051
  object.recorderEvent = $root.sesame.v1.recorder.RecorderEvent.toObject(message.recorderEvent, options);
@@ -14187,7 +14156,6 @@ var sesame = $root.sesame = (() => {
14187
14156
  case 2:
14188
14157
  case 3:
14189
14158
  case 4:
14190
- case 5:
14191
14159
  case 6:
14192
14160
  break;
14193
14161
  }
@@ -14232,14 +14200,10 @@ var sesame = $root.sesame = (() => {
14232
14200
  case 3:
14233
14201
  message.eventTopics[i] = 3;
14234
14202
  break;
14235
- case "EVENT_TOPIC_PLAYLIST_EXPORT":
14203
+ case "EVENT_TOPIC_JOB":
14236
14204
  case 4:
14237
14205
  message.eventTopics[i] = 4;
14238
14206
  break;
14239
- case "EVENT_TOPIC_CLIP_IMPORT":
14240
- case 5:
14241
- message.eventTopics[i] = 5;
14242
- break;
14243
14207
  case "EVENT_TOPIC_RECORDER":
14244
14208
  case 6:
14245
14209
  message.eventTopics[i] = 6;
@@ -18147,6 +18111,13 @@ var sesame = $root.sesame = (() => {
18147
18111
  }();
18148
18112
  v1.jobs = function() {
18149
18113
  const jobs = {};
18114
+ jobs.JobType = function() {
18115
+ const valuesById = {}, values = Object.create(valuesById);
18116
+ values[valuesById[0] = "JOB_TYPE_UNSPECIFIED"] = 0;
18117
+ values[valuesById[1] = "JOB_TYPE_EXPORT"] = 1;
18118
+ values[valuesById[2] = "JOB_TYPE_IMPORT"] = 2;
18119
+ return values;
18120
+ }();
18150
18121
  jobs.JobStatus = function() {
18151
18122
  const valuesById = {}, values = Object.create(valuesById);
18152
18123
  values[valuesById[0] = "JOB_STATUS_UNSPECIFIED"] = 0;
@@ -18321,107 +18292,131 @@ var sesame = $root.sesame = (() => {
18321
18292
  };
18322
18293
  return TimingInfo;
18323
18294
  }();
18324
- jobs.JobStatusResponse = function() {
18325
- function JobStatusResponse(properties) {
18295
+ jobs.Job = function() {
18296
+ function Job(properties) {
18326
18297
  if (properties) {
18327
18298
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18328
18299
  if (properties[keys[i]] != null)
18329
18300
  this[keys[i]] = properties[keys[i]];
18330
18301
  }
18331
18302
  }
18332
- JobStatusResponse.prototype.jobId = 0;
18333
- JobStatusResponse.prototype.name = "";
18334
- JobStatusResponse.prototype.description = "";
18335
- JobStatusResponse.prototype.status = 0;
18336
- JobStatusResponse.prototype.error = null;
18337
- JobStatusResponse.prototype.progress = 0;
18338
- JobStatusResponse.prototype.total = 0;
18303
+ Job.prototype.id = 0;
18304
+ Job.prototype.type = 0;
18305
+ Job.prototype.status = 0;
18306
+ Job.prototype.name = "";
18307
+ Job.prototype.description = "";
18308
+ Job.prototype.error = null;
18309
+ Job.prototype.progress = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
18310
+ Job.prototype.total = $util.Long ? $util.Long.fromBits(0, 0, false) : 0;
18311
+ Job.prototype.timingInfo = null;
18339
18312
  let $oneOfFields;
18340
- Object.defineProperty(JobStatusResponse.prototype, "_error", {
18313
+ Object.defineProperty(Job.prototype, "_error", {
18341
18314
  get: $util.oneOfGetter($oneOfFields = ["error"]),
18342
18315
  set: $util.oneOfSetter($oneOfFields)
18343
18316
  });
18344
- JobStatusResponse.create = function create(properties) {
18345
- return new JobStatusResponse(properties);
18317
+ Object.defineProperty(Job.prototype, "_timingInfo", {
18318
+ get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
18319
+ set: $util.oneOfSetter($oneOfFields)
18320
+ });
18321
+ Job.create = function create(properties) {
18322
+ return new Job(properties);
18346
18323
  };
18347
- JobStatusResponse.encode = function encode(message, writer) {
18324
+ Job.encode = function encode(message, writer) {
18348
18325
  if (!writer)
18349
18326
  writer = $Writer.create();
18350
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
18327
+ if (message.id != null && Object.hasOwnProperty.call(message, "id"))
18351
18328
  writer.uint32(
18352
18329
  /* id 1, wireType 0 =*/
18353
18330
  8
18354
- ).uint32(message.jobId);
18331
+ ).uint32(message.id);
18332
+ if (message.type != null && Object.hasOwnProperty.call(message, "type"))
18333
+ writer.uint32(
18334
+ /* id 2, wireType 0 =*/
18335
+ 16
18336
+ ).int32(message.type);
18337
+ if (message.status != null && Object.hasOwnProperty.call(message, "status"))
18338
+ writer.uint32(
18339
+ /* id 3, wireType 0 =*/
18340
+ 24
18341
+ ).int32(message.status);
18355
18342
  if (message.name != null && Object.hasOwnProperty.call(message, "name"))
18356
18343
  writer.uint32(
18357
- /* id 2, wireType 2 =*/
18358
- 18
18344
+ /* id 4, wireType 2 =*/
18345
+ 34
18359
18346
  ).string(message.name);
18360
18347
  if (message.description != null && Object.hasOwnProperty.call(message, "description"))
18361
18348
  writer.uint32(
18362
- /* id 3, wireType 2 =*/
18363
- 26
18349
+ /* id 5, wireType 2 =*/
18350
+ 42
18364
18351
  ).string(message.description);
18365
- if (message.status != null && Object.hasOwnProperty.call(message, "status"))
18366
- writer.uint32(
18367
- /* id 4, wireType 0 =*/
18368
- 32
18369
- ).int32(message.status);
18370
18352
  if (message.error != null && Object.hasOwnProperty.call(message, "error"))
18371
18353
  writer.uint32(
18372
- /* id 5, wireType 2 =*/
18373
- 42
18354
+ /* id 6, wireType 2 =*/
18355
+ 50
18374
18356
  ).string(message.error);
18375
18357
  if (message.progress != null && Object.hasOwnProperty.call(message, "progress"))
18376
- writer.uint32(
18377
- /* id 6, wireType 0 =*/
18378
- 48
18379
- ).uint32(message.progress);
18380
- if (message.total != null && Object.hasOwnProperty.call(message, "total"))
18381
18358
  writer.uint32(
18382
18359
  /* id 7, wireType 0 =*/
18383
18360
  56
18384
- ).uint32(message.total);
18361
+ ).int64(message.progress);
18362
+ if (message.total != null && Object.hasOwnProperty.call(message, "total"))
18363
+ writer.uint32(
18364
+ /* id 8, wireType 0 =*/
18365
+ 64
18366
+ ).int64(message.total);
18367
+ if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
18368
+ $root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
18369
+ /* id 9, wireType 2 =*/
18370
+ 74
18371
+ ).fork()).ldelim();
18385
18372
  return writer;
18386
18373
  };
18387
- JobStatusResponse.encodeDelimited = function encodeDelimited(message, writer) {
18374
+ Job.encodeDelimited = function encodeDelimited(message, writer) {
18388
18375
  return this.encode(message, writer).ldelim();
18389
18376
  };
18390
- JobStatusResponse.decode = function decode(reader, length, error) {
18377
+ Job.decode = function decode(reader, length, error) {
18391
18378
  if (!(reader instanceof $Reader))
18392
18379
  reader = $Reader.create(reader);
18393
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStatusResponse();
18380
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.Job();
18394
18381
  while (reader.pos < end) {
18395
18382
  let tag = reader.uint32();
18396
18383
  if (tag === error)
18397
18384
  break;
18398
18385
  switch (tag >>> 3) {
18399
18386
  case 1: {
18400
- message.jobId = reader.uint32();
18387
+ message.id = reader.uint32();
18401
18388
  break;
18402
18389
  }
18403
18390
  case 2: {
18404
- message.name = reader.string();
18391
+ message.type = reader.int32();
18405
18392
  break;
18406
18393
  }
18407
18394
  case 3: {
18408
- message.description = reader.string();
18395
+ message.status = reader.int32();
18409
18396
  break;
18410
18397
  }
18411
18398
  case 4: {
18412
- message.status = reader.int32();
18399
+ message.name = reader.string();
18413
18400
  break;
18414
18401
  }
18415
18402
  case 5: {
18416
- message.error = reader.string();
18403
+ message.description = reader.string();
18417
18404
  break;
18418
18405
  }
18419
18406
  case 6: {
18420
- message.progress = reader.uint32();
18407
+ message.error = reader.string();
18421
18408
  break;
18422
18409
  }
18423
18410
  case 7: {
18424
- message.total = reader.uint32();
18411
+ message.progress = reader.int64();
18412
+ break;
18413
+ }
18414
+ case 8: {
18415
+ message.total = reader.int64();
18416
+ break;
18417
+ }
18418
+ case 9: {
18419
+ message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
18425
18420
  break;
18426
18421
  }
18427
18422
  default:
@@ -18431,27 +18426,28 @@ var sesame = $root.sesame = (() => {
18431
18426
  }
18432
18427
  return message;
18433
18428
  };
18434
- JobStatusResponse.decodeDelimited = function decodeDelimited(reader) {
18429
+ Job.decodeDelimited = function decodeDelimited(reader) {
18435
18430
  if (!(reader instanceof $Reader))
18436
18431
  reader = new $Reader(reader);
18437
18432
  return this.decode(reader, reader.uint32());
18438
18433
  };
18439
- JobStatusResponse.verify = function verify(message) {
18434
+ Job.verify = function verify(message) {
18440
18435
  if (typeof message !== "object" || message === null)
18441
18436
  return "object expected";
18442
18437
  let properties = {};
18443
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
18444
- if (!$util.isInteger(message.jobId))
18445
- return "jobId: integer expected";
18446
- }
18447
- if (message.name != null && message.hasOwnProperty("name")) {
18448
- if (!$util.isString(message.name))
18449
- return "name: string expected";
18450
- }
18451
- if (message.description != null && message.hasOwnProperty("description")) {
18452
- if (!$util.isString(message.description))
18453
- return "description: string expected";
18438
+ if (message.id != null && message.hasOwnProperty("id")) {
18439
+ if (!$util.isInteger(message.id))
18440
+ return "id: integer expected";
18454
18441
  }
18442
+ if (message.type != null && message.hasOwnProperty("type"))
18443
+ switch (message.type) {
18444
+ default:
18445
+ return "type: enum value expected";
18446
+ case 0:
18447
+ case 1:
18448
+ case 2:
18449
+ break;
18450
+ }
18455
18451
  if (message.status != null && message.hasOwnProperty("status"))
18456
18452
  switch (message.status) {
18457
18453
  default:
@@ -18464,31 +18460,63 @@ var sesame = $root.sesame = (() => {
18464
18460
  case 5:
18465
18461
  break;
18466
18462
  }
18463
+ if (message.name != null && message.hasOwnProperty("name")) {
18464
+ if (!$util.isString(message.name))
18465
+ return "name: string expected";
18466
+ }
18467
+ if (message.description != null && message.hasOwnProperty("description")) {
18468
+ if (!$util.isString(message.description))
18469
+ return "description: string expected";
18470
+ }
18467
18471
  if (message.error != null && message.hasOwnProperty("error")) {
18468
18472
  properties._error = 1;
18469
18473
  if (!$util.isString(message.error))
18470
18474
  return "error: string expected";
18471
18475
  }
18472
18476
  if (message.progress != null && message.hasOwnProperty("progress")) {
18473
- if (!$util.isInteger(message.progress))
18474
- return "progress: integer expected";
18477
+ if (!$util.isInteger(message.progress) && !(message.progress && $util.isInteger(message.progress.low) && $util.isInteger(message.progress.high)))
18478
+ return "progress: integer|Long expected";
18475
18479
  }
18476
18480
  if (message.total != null && message.hasOwnProperty("total")) {
18477
- if (!$util.isInteger(message.total))
18478
- return "total: integer expected";
18481
+ if (!$util.isInteger(message.total) && !(message.total && $util.isInteger(message.total.low) && $util.isInteger(message.total.high)))
18482
+ return "total: integer|Long expected";
18483
+ }
18484
+ if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
18485
+ properties._timingInfo = 1;
18486
+ {
18487
+ let error = $root.sesame.v1.jobs.TimingInfo.verify(message.timingInfo);
18488
+ if (error)
18489
+ return "timingInfo." + error;
18490
+ }
18479
18491
  }
18480
18492
  return null;
18481
18493
  };
18482
- JobStatusResponse.fromObject = function fromObject(object) {
18483
- if (object instanceof $root.sesame.v1.jobs.JobStatusResponse)
18494
+ Job.fromObject = function fromObject(object) {
18495
+ if (object instanceof $root.sesame.v1.jobs.Job)
18484
18496
  return object;
18485
- let message = new $root.sesame.v1.jobs.JobStatusResponse();
18486
- if (object.jobId != null)
18487
- message.jobId = object.jobId >>> 0;
18488
- if (object.name != null)
18489
- message.name = String(object.name);
18490
- if (object.description != null)
18491
- message.description = String(object.description);
18497
+ let message = new $root.sesame.v1.jobs.Job();
18498
+ if (object.id != null)
18499
+ message.id = object.id >>> 0;
18500
+ switch (object.type) {
18501
+ default:
18502
+ if (typeof object.type === "number") {
18503
+ message.type = object.type;
18504
+ break;
18505
+ }
18506
+ break;
18507
+ case "JOB_TYPE_UNSPECIFIED":
18508
+ case 0:
18509
+ message.type = 0;
18510
+ break;
18511
+ case "JOB_TYPE_EXPORT":
18512
+ case 1:
18513
+ message.type = 1;
18514
+ break;
18515
+ case "JOB_TYPE_IMPORT":
18516
+ case 2:
18517
+ message.type = 2;
18518
+ break;
18519
+ }
18492
18520
  switch (object.status) {
18493
18521
  default:
18494
18522
  if (typeof object.status === "number") {
@@ -18521,58 +18549,105 @@ var sesame = $root.sesame = (() => {
18521
18549
  message.status = 5;
18522
18550
  break;
18523
18551
  }
18552
+ if (object.name != null)
18553
+ message.name = String(object.name);
18554
+ if (object.description != null)
18555
+ message.description = String(object.description);
18524
18556
  if (object.error != null)
18525
18557
  message.error = String(object.error);
18526
- if (object.progress != null)
18527
- message.progress = object.progress >>> 0;
18528
- if (object.total != null)
18529
- message.total = object.total >>> 0;
18558
+ if (object.progress != null) {
18559
+ if ($util.Long)
18560
+ (message.progress = $util.Long.fromValue(object.progress)).unsigned = false;
18561
+ else if (typeof object.progress === "string")
18562
+ message.progress = parseInt(object.progress, 10);
18563
+ else if (typeof object.progress === "number")
18564
+ message.progress = object.progress;
18565
+ else if (typeof object.progress === "object")
18566
+ message.progress = new $util.LongBits(object.progress.low >>> 0, object.progress.high >>> 0).toNumber();
18567
+ }
18568
+ if (object.total != null) {
18569
+ if ($util.Long)
18570
+ (message.total = $util.Long.fromValue(object.total)).unsigned = false;
18571
+ else if (typeof object.total === "string")
18572
+ message.total = parseInt(object.total, 10);
18573
+ else if (typeof object.total === "number")
18574
+ message.total = object.total;
18575
+ else if (typeof object.total === "object")
18576
+ message.total = new $util.LongBits(object.total.low >>> 0, object.total.high >>> 0).toNumber();
18577
+ }
18578
+ if (object.timingInfo != null) {
18579
+ if (typeof object.timingInfo !== "object")
18580
+ throw TypeError(".sesame.v1.jobs.Job.timingInfo: object expected");
18581
+ message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
18582
+ }
18530
18583
  return message;
18531
18584
  };
18532
- JobStatusResponse.toObject = function toObject(message, options) {
18585
+ Job.toObject = function toObject(message, options) {
18533
18586
  if (!options)
18534
18587
  options = {};
18535
18588
  let object = {};
18536
18589
  if (options.defaults) {
18537
- object.jobId = 0;
18590
+ object.id = 0;
18591
+ object.type = options.enums === String ? "JOB_TYPE_UNSPECIFIED" : 0;
18592
+ object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
18538
18593
  object.name = "";
18539
18594
  object.description = "";
18540
- object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
18541
- object.progress = 0;
18542
- object.total = 0;
18595
+ if ($util.Long) {
18596
+ let long = new $util.Long(0, 0, false);
18597
+ object.progress = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18598
+ } else
18599
+ object.progress = options.longs === String ? "0" : 0;
18600
+ if ($util.Long) {
18601
+ let long = new $util.Long(0, 0, false);
18602
+ object.total = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
18603
+ } else
18604
+ object.total = options.longs === String ? "0" : 0;
18543
18605
  }
18544
- if (message.jobId != null && message.hasOwnProperty("jobId"))
18545
- object.jobId = message.jobId;
18606
+ if (message.id != null && message.hasOwnProperty("id"))
18607
+ object.id = message.id;
18608
+ if (message.type != null && message.hasOwnProperty("type"))
18609
+ 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;
18610
+ if (message.status != null && message.hasOwnProperty("status"))
18611
+ 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;
18546
18612
  if (message.name != null && message.hasOwnProperty("name"))
18547
18613
  object.name = message.name;
18548
18614
  if (message.description != null && message.hasOwnProperty("description"))
18549
18615
  object.description = message.description;
18550
- if (message.status != null && message.hasOwnProperty("status"))
18551
- 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;
18552
18616
  if (message.error != null && message.hasOwnProperty("error")) {
18553
18617
  object.error = message.error;
18554
18618
  if (options.oneofs)
18555
18619
  object._error = "error";
18556
18620
  }
18557
18621
  if (message.progress != null && message.hasOwnProperty("progress"))
18558
- object.progress = message.progress;
18622
+ if (typeof message.progress === "number")
18623
+ object.progress = options.longs === String ? String(message.progress) : message.progress;
18624
+ else
18625
+ 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;
18559
18626
  if (message.total != null && message.hasOwnProperty("total"))
18560
- object.total = message.total;
18627
+ if (typeof message.total === "number")
18628
+ object.total = options.longs === String ? String(message.total) : message.total;
18629
+ else
18630
+ 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;
18631
+ if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
18632
+ object.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(message.timingInfo, options);
18633
+ if (options.oneofs)
18634
+ object._timingInfo = "timingInfo";
18635
+ }
18561
18636
  return object;
18562
18637
  };
18563
- JobStatusResponse.prototype.toJSON = function toJSON() {
18638
+ Job.prototype.toJSON = function toJSON() {
18564
18639
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18565
18640
  };
18566
- JobStatusResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18641
+ Job.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18567
18642
  if (typeUrlPrefix === void 0) {
18568
18643
  typeUrlPrefix = "type.googleapis.com";
18569
18644
  }
18570
- return typeUrlPrefix + "/sesame.v1.jobs.JobStatusResponse";
18645
+ return typeUrlPrefix + "/sesame.v1.jobs.Job";
18571
18646
  };
18572
- return JobStatusResponse;
18647
+ return Job;
18573
18648
  }();
18574
- jobs.JobListResponse = function() {
18575
- function JobListResponse(properties) {
18649
+ jobs.JobList = function() {
18650
+ function JobList(properties) {
18576
18651
  this.jobs = [];
18577
18652
  if (properties) {
18578
18653
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -18580,28 +18655,28 @@ var sesame = $root.sesame = (() => {
18580
18655
  this[keys[i]] = properties[keys[i]];
18581
18656
  }
18582
18657
  }
18583
- JobListResponse.prototype.jobs = $util.emptyArray;
18584
- JobListResponse.create = function create(properties) {
18585
- return new JobListResponse(properties);
18658
+ JobList.prototype.jobs = $util.emptyArray;
18659
+ JobList.create = function create(properties) {
18660
+ return new JobList(properties);
18586
18661
  };
18587
- JobListResponse.encode = function encode(message, writer) {
18662
+ JobList.encode = function encode(message, writer) {
18588
18663
  if (!writer)
18589
18664
  writer = $Writer.create();
18590
18665
  if (message.jobs != null && message.jobs.length)
18591
18666
  for (let i = 0; i < message.jobs.length; ++i)
18592
- $root.sesame.v1.jobs.JobStatusResponse.encode(message.jobs[i], writer.uint32(
18667
+ $root.sesame.v1.jobs.Job.encode(message.jobs[i], writer.uint32(
18593
18668
  /* id 1, wireType 2 =*/
18594
18669
  10
18595
18670
  ).fork()).ldelim();
18596
18671
  return writer;
18597
18672
  };
18598
- JobListResponse.encodeDelimited = function encodeDelimited(message, writer) {
18673
+ JobList.encodeDelimited = function encodeDelimited(message, writer) {
18599
18674
  return this.encode(message, writer).ldelim();
18600
18675
  };
18601
- JobListResponse.decode = function decode(reader, length, error) {
18676
+ JobList.decode = function decode(reader, length, error) {
18602
18677
  if (!(reader instanceof $Reader))
18603
18678
  reader = $Reader.create(reader);
18604
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobListResponse();
18679
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobList();
18605
18680
  while (reader.pos < end) {
18606
18681
  let tag = reader.uint32();
18607
18682
  if (tag === error)
@@ -18610,7 +18685,7 @@ var sesame = $root.sesame = (() => {
18610
18685
  case 1: {
18611
18686
  if (!(message.jobs && message.jobs.length))
18612
18687
  message.jobs = [];
18613
- message.jobs.push($root.sesame.v1.jobs.JobStatusResponse.decode(reader, reader.uint32()));
18688
+ message.jobs.push($root.sesame.v1.jobs.Job.decode(reader, reader.uint32()));
18614
18689
  break;
18615
18690
  }
18616
18691
  default:
@@ -18620,42 +18695,42 @@ var sesame = $root.sesame = (() => {
18620
18695
  }
18621
18696
  return message;
18622
18697
  };
18623
- JobListResponse.decodeDelimited = function decodeDelimited(reader) {
18698
+ JobList.decodeDelimited = function decodeDelimited(reader) {
18624
18699
  if (!(reader instanceof $Reader))
18625
18700
  reader = new $Reader(reader);
18626
18701
  return this.decode(reader, reader.uint32());
18627
18702
  };
18628
- JobListResponse.verify = function verify(message) {
18703
+ JobList.verify = function verify(message) {
18629
18704
  if (typeof message !== "object" || message === null)
18630
18705
  return "object expected";
18631
18706
  if (message.jobs != null && message.hasOwnProperty("jobs")) {
18632
18707
  if (!Array.isArray(message.jobs))
18633
18708
  return "jobs: array expected";
18634
18709
  for (let i = 0; i < message.jobs.length; ++i) {
18635
- let error = $root.sesame.v1.jobs.JobStatusResponse.verify(message.jobs[i]);
18710
+ let error = $root.sesame.v1.jobs.Job.verify(message.jobs[i]);
18636
18711
  if (error)
18637
18712
  return "jobs." + error;
18638
18713
  }
18639
18714
  }
18640
18715
  return null;
18641
18716
  };
18642
- JobListResponse.fromObject = function fromObject(object) {
18643
- if (object instanceof $root.sesame.v1.jobs.JobListResponse)
18717
+ JobList.fromObject = function fromObject(object) {
18718
+ if (object instanceof $root.sesame.v1.jobs.JobList)
18644
18719
  return object;
18645
- let message = new $root.sesame.v1.jobs.JobListResponse();
18720
+ let message = new $root.sesame.v1.jobs.JobList();
18646
18721
  if (object.jobs) {
18647
18722
  if (!Array.isArray(object.jobs))
18648
- throw TypeError(".sesame.v1.jobs.JobListResponse.jobs: array expected");
18723
+ throw TypeError(".sesame.v1.jobs.JobList.jobs: array expected");
18649
18724
  message.jobs = [];
18650
18725
  for (let i = 0; i < object.jobs.length; ++i) {
18651
18726
  if (typeof object.jobs[i] !== "object")
18652
- throw TypeError(".sesame.v1.jobs.JobListResponse.jobs: object expected");
18653
- message.jobs[i] = $root.sesame.v1.jobs.JobStatusResponse.fromObject(object.jobs[i]);
18727
+ throw TypeError(".sesame.v1.jobs.JobList.jobs: object expected");
18728
+ message.jobs[i] = $root.sesame.v1.jobs.Job.fromObject(object.jobs[i]);
18654
18729
  }
18655
18730
  }
18656
18731
  return message;
18657
18732
  };
18658
- JobListResponse.toObject = function toObject(message, options) {
18733
+ JobList.toObject = function toObject(message, options) {
18659
18734
  if (!options)
18660
18735
  options = {};
18661
18736
  let object = {};
@@ -18664,116 +18739,72 @@ var sesame = $root.sesame = (() => {
18664
18739
  if (message.jobs && message.jobs.length) {
18665
18740
  object.jobs = [];
18666
18741
  for (let j = 0; j < message.jobs.length; ++j)
18667
- object.jobs[j] = $root.sesame.v1.jobs.JobStatusResponse.toObject(message.jobs[j], options);
18742
+ object.jobs[j] = $root.sesame.v1.jobs.Job.toObject(message.jobs[j], options);
18668
18743
  }
18669
18744
  return object;
18670
18745
  };
18671
- JobListResponse.prototype.toJSON = function toJSON() {
18746
+ JobList.prototype.toJSON = function toJSON() {
18672
18747
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18673
18748
  };
18674
- JobListResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18749
+ JobList.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18675
18750
  if (typeUrlPrefix === void 0) {
18676
18751
  typeUrlPrefix = "type.googleapis.com";
18677
18752
  }
18678
- return typeUrlPrefix + "/sesame.v1.jobs.JobListResponse";
18753
+ return typeUrlPrefix + "/sesame.v1.jobs.JobList";
18679
18754
  };
18680
- return JobListResponse;
18755
+ return JobList;
18681
18756
  }();
18682
- jobs.JobEvent = function() {
18683
- function JobEvent(properties) {
18757
+ jobs.JobStartRequest = function() {
18758
+ function JobStartRequest(properties) {
18684
18759
  if (properties) {
18685
18760
  for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18686
18761
  if (properties[keys[i]] != null)
18687
18762
  this[keys[i]] = properties[keys[i]];
18688
18763
  }
18689
18764
  }
18690
- JobEvent.prototype.jobId = 0;
18691
- JobEvent.prototype.source = "";
18692
- JobEvent.prototype.status = 0;
18693
- JobEvent.prototype.statusText = "";
18694
- JobEvent.prototype.error = null;
18695
- JobEvent.prototype.timingInfo = null;
18765
+ JobStartRequest.prototype.exportRequest = null;
18766
+ JobStartRequest.prototype.importRequest = null;
18696
18767
  let $oneOfFields;
18697
- Object.defineProperty(JobEvent.prototype, "_error", {
18698
- get: $util.oneOfGetter($oneOfFields = ["error"]),
18699
- set: $util.oneOfSetter($oneOfFields)
18700
- });
18701
- Object.defineProperty(JobEvent.prototype, "_timingInfo", {
18702
- get: $util.oneOfGetter($oneOfFields = ["timingInfo"]),
18768
+ Object.defineProperty(JobStartRequest.prototype, "config", {
18769
+ get: $util.oneOfGetter($oneOfFields = ["exportRequest", "importRequest"]),
18703
18770
  set: $util.oneOfSetter($oneOfFields)
18704
18771
  });
18705
- JobEvent.create = function create(properties) {
18706
- return new JobEvent(properties);
18772
+ JobStartRequest.create = function create(properties) {
18773
+ return new JobStartRequest(properties);
18707
18774
  };
18708
- JobEvent.encode = function encode(message, writer) {
18775
+ JobStartRequest.encode = function encode(message, writer) {
18709
18776
  if (!writer)
18710
18777
  writer = $Writer.create();
18711
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
18712
- writer.uint32(
18713
- /* id 1, wireType 0 =*/
18714
- 8
18715
- ).uint32(message.jobId);
18716
- if (message.source != null && Object.hasOwnProperty.call(message, "source"))
18717
- writer.uint32(
18778
+ if (message.exportRequest != null && Object.hasOwnProperty.call(message, "exportRequest"))
18779
+ $root.sesame.v1.jobs.ExportStartRequest.encode(message.exportRequest, writer.uint32(
18780
+ /* id 1, wireType 2 =*/
18781
+ 10
18782
+ ).fork()).ldelim();
18783
+ if (message.importRequest != null && Object.hasOwnProperty.call(message, "importRequest"))
18784
+ $root.sesame.v1.jobs.ImportStartRequest.encode(message.importRequest, writer.uint32(
18718
18785
  /* id 2, wireType 2 =*/
18719
18786
  18
18720
- ).string(message.source);
18721
- if (message.status != null && Object.hasOwnProperty.call(message, "status"))
18722
- writer.uint32(
18723
- /* id 3, wireType 0 =*/
18724
- 24
18725
- ).int32(message.status);
18726
- if (message.statusText != null && Object.hasOwnProperty.call(message, "statusText"))
18727
- writer.uint32(
18728
- /* id 4, wireType 2 =*/
18729
- 34
18730
- ).string(message.statusText);
18731
- if (message.error != null && Object.hasOwnProperty.call(message, "error"))
18732
- writer.uint32(
18733
- /* id 5, wireType 2 =*/
18734
- 42
18735
- ).string(message.error);
18736
- if (message.timingInfo != null && Object.hasOwnProperty.call(message, "timingInfo"))
18737
- $root.sesame.v1.jobs.TimingInfo.encode(message.timingInfo, writer.uint32(
18738
- /* id 6, wireType 2 =*/
18739
- 50
18740
18787
  ).fork()).ldelim();
18741
18788
  return writer;
18742
18789
  };
18743
- JobEvent.encodeDelimited = function encodeDelimited(message, writer) {
18790
+ JobStartRequest.encodeDelimited = function encodeDelimited(message, writer) {
18744
18791
  return this.encode(message, writer).ldelim();
18745
18792
  };
18746
- JobEvent.decode = function decode(reader, length, error) {
18793
+ JobStartRequest.decode = function decode(reader, length, error) {
18747
18794
  if (!(reader instanceof $Reader))
18748
18795
  reader = $Reader.create(reader);
18749
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobEvent();
18796
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStartRequest();
18750
18797
  while (reader.pos < end) {
18751
18798
  let tag = reader.uint32();
18752
18799
  if (tag === error)
18753
18800
  break;
18754
18801
  switch (tag >>> 3) {
18755
18802
  case 1: {
18756
- message.jobId = reader.uint32();
18803
+ message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.decode(reader, reader.uint32());
18757
18804
  break;
18758
18805
  }
18759
18806
  case 2: {
18760
- message.source = reader.string();
18761
- break;
18762
- }
18763
- case 3: {
18764
- message.status = reader.int32();
18765
- break;
18766
- }
18767
- case 4: {
18768
- message.statusText = reader.string();
18769
- break;
18770
- }
18771
- case 5: {
18772
- message.error = reader.string();
18773
- break;
18774
- }
18775
- case 6: {
18776
- message.timingInfo = $root.sesame.v1.jobs.TimingInfo.decode(reader, reader.uint32());
18807
+ message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.decode(reader, reader.uint32());
18777
18808
  break;
18778
18809
  }
18779
18810
  default:
@@ -18783,145 +18814,317 @@ var sesame = $root.sesame = (() => {
18783
18814
  }
18784
18815
  return message;
18785
18816
  };
18786
- JobEvent.decodeDelimited = function decodeDelimited(reader) {
18817
+ JobStartRequest.decodeDelimited = function decodeDelimited(reader) {
18787
18818
  if (!(reader instanceof $Reader))
18788
18819
  reader = new $Reader(reader);
18789
18820
  return this.decode(reader, reader.uint32());
18790
18821
  };
18791
- JobEvent.verify = function verify(message) {
18822
+ JobStartRequest.verify = function verify(message) {
18792
18823
  if (typeof message !== "object" || message === null)
18793
18824
  return "object expected";
18794
18825
  let properties = {};
18795
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
18796
- if (!$util.isInteger(message.jobId))
18797
- return "jobId: integer expected";
18798
- }
18799
- if (message.source != null && message.hasOwnProperty("source")) {
18800
- if (!$util.isString(message.source))
18801
- return "source: string expected";
18826
+ if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
18827
+ properties.config = 1;
18828
+ {
18829
+ let error = $root.sesame.v1.jobs.ExportStartRequest.verify(message.exportRequest);
18830
+ if (error)
18831
+ return "exportRequest." + error;
18832
+ }
18802
18833
  }
18803
- if (message.status != null && message.hasOwnProperty("status"))
18804
- switch (message.status) {
18805
- default:
18806
- return "status: enum value expected";
18807
- case 0:
18808
- case 1:
18809
- case 2:
18810
- case 3:
18811
- case 4:
18812
- case 5:
18813
- break;
18834
+ if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
18835
+ if (properties.config === 1)
18836
+ return "config: multiple values";
18837
+ properties.config = 1;
18838
+ {
18839
+ let error = $root.sesame.v1.jobs.ImportStartRequest.verify(message.importRequest);
18840
+ if (error)
18841
+ return "importRequest." + error;
18814
18842
  }
18815
- if (message.statusText != null && message.hasOwnProperty("statusText")) {
18816
- if (!$util.isString(message.statusText))
18817
- return "statusText: string expected";
18818
18843
  }
18819
- if (message.error != null && message.hasOwnProperty("error")) {
18820
- properties._error = 1;
18821
- if (!$util.isString(message.error))
18822
- return "error: string expected";
18844
+ return null;
18845
+ };
18846
+ JobStartRequest.fromObject = function fromObject(object) {
18847
+ if (object instanceof $root.sesame.v1.jobs.JobStartRequest)
18848
+ return object;
18849
+ let message = new $root.sesame.v1.jobs.JobStartRequest();
18850
+ if (object.exportRequest != null) {
18851
+ if (typeof object.exportRequest !== "object")
18852
+ throw TypeError(".sesame.v1.jobs.JobStartRequest.exportRequest: object expected");
18853
+ message.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.fromObject(object.exportRequest);
18823
18854
  }
18824
- if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
18825
- properties._timingInfo = 1;
18826
- {
18827
- let error = $root.sesame.v1.jobs.TimingInfo.verify(message.timingInfo);
18828
- if (error)
18829
- return "timingInfo." + error;
18855
+ if (object.importRequest != null) {
18856
+ if (typeof object.importRequest !== "object")
18857
+ throw TypeError(".sesame.v1.jobs.JobStartRequest.importRequest: object expected");
18858
+ message.importRequest = $root.sesame.v1.jobs.ImportStartRequest.fromObject(object.importRequest);
18859
+ }
18860
+ return message;
18861
+ };
18862
+ JobStartRequest.toObject = function toObject(message, options) {
18863
+ if (!options)
18864
+ options = {};
18865
+ let object = {};
18866
+ if (message.exportRequest != null && message.hasOwnProperty("exportRequest")) {
18867
+ object.exportRequest = $root.sesame.v1.jobs.ExportStartRequest.toObject(message.exportRequest, options);
18868
+ if (options.oneofs)
18869
+ object.config = "exportRequest";
18870
+ }
18871
+ if (message.importRequest != null && message.hasOwnProperty("importRequest")) {
18872
+ object.importRequest = $root.sesame.v1.jobs.ImportStartRequest.toObject(message.importRequest, options);
18873
+ if (options.oneofs)
18874
+ object.config = "importRequest";
18875
+ }
18876
+ return object;
18877
+ };
18878
+ JobStartRequest.prototype.toJSON = function toJSON() {
18879
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18880
+ };
18881
+ JobStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18882
+ if (typeUrlPrefix === void 0) {
18883
+ typeUrlPrefix = "type.googleapis.com";
18884
+ }
18885
+ return typeUrlPrefix + "/sesame.v1.jobs.JobStartRequest";
18886
+ };
18887
+ return JobStartRequest;
18888
+ }();
18889
+ jobs.JobAbortRequest = function() {
18890
+ function JobAbortRequest(properties) {
18891
+ if (properties) {
18892
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18893
+ if (properties[keys[i]] != null)
18894
+ this[keys[i]] = properties[keys[i]];
18895
+ }
18896
+ }
18897
+ JobAbortRequest.prototype.jobId = 0;
18898
+ JobAbortRequest.create = function create(properties) {
18899
+ return new JobAbortRequest(properties);
18900
+ };
18901
+ JobAbortRequest.encode = function encode(message, writer) {
18902
+ if (!writer)
18903
+ writer = $Writer.create();
18904
+ if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
18905
+ writer.uint32(
18906
+ /* id 1, wireType 0 =*/
18907
+ 8
18908
+ ).uint32(message.jobId);
18909
+ return writer;
18910
+ };
18911
+ JobAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
18912
+ return this.encode(message, writer).ldelim();
18913
+ };
18914
+ JobAbortRequest.decode = function decode(reader, length, error) {
18915
+ if (!(reader instanceof $Reader))
18916
+ reader = $Reader.create(reader);
18917
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobAbortRequest();
18918
+ while (reader.pos < end) {
18919
+ let tag = reader.uint32();
18920
+ if (tag === error)
18921
+ break;
18922
+ switch (tag >>> 3) {
18923
+ case 1: {
18924
+ message.jobId = reader.uint32();
18925
+ break;
18926
+ }
18927
+ default:
18928
+ reader.skipType(tag & 7);
18929
+ break;
18830
18930
  }
18831
18931
  }
18932
+ return message;
18933
+ };
18934
+ JobAbortRequest.decodeDelimited = function decodeDelimited(reader) {
18935
+ if (!(reader instanceof $Reader))
18936
+ reader = new $Reader(reader);
18937
+ return this.decode(reader, reader.uint32());
18938
+ };
18939
+ JobAbortRequest.verify = function verify(message) {
18940
+ if (typeof message !== "object" || message === null)
18941
+ return "object expected";
18942
+ if (message.jobId != null && message.hasOwnProperty("jobId")) {
18943
+ if (!$util.isInteger(message.jobId))
18944
+ return "jobId: integer expected";
18945
+ }
18832
18946
  return null;
18833
18947
  };
18834
- JobEvent.fromObject = function fromObject(object) {
18835
- if (object instanceof $root.sesame.v1.jobs.JobEvent)
18948
+ JobAbortRequest.fromObject = function fromObject(object) {
18949
+ if (object instanceof $root.sesame.v1.jobs.JobAbortRequest)
18836
18950
  return object;
18837
- let message = new $root.sesame.v1.jobs.JobEvent();
18951
+ let message = new $root.sesame.v1.jobs.JobAbortRequest();
18838
18952
  if (object.jobId != null)
18839
18953
  message.jobId = object.jobId >>> 0;
18840
- if (object.source != null)
18841
- message.source = String(object.source);
18842
- switch (object.status) {
18843
- default:
18844
- if (typeof object.status === "number") {
18845
- message.status = object.status;
18954
+ return message;
18955
+ };
18956
+ JobAbortRequest.toObject = function toObject(message, options) {
18957
+ if (!options)
18958
+ options = {};
18959
+ let object = {};
18960
+ if (options.defaults)
18961
+ object.jobId = 0;
18962
+ if (message.jobId != null && message.hasOwnProperty("jobId"))
18963
+ object.jobId = message.jobId;
18964
+ return object;
18965
+ };
18966
+ JobAbortRequest.prototype.toJSON = function toJSON() {
18967
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18968
+ };
18969
+ JobAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18970
+ if (typeUrlPrefix === void 0) {
18971
+ typeUrlPrefix = "type.googleapis.com";
18972
+ }
18973
+ return typeUrlPrefix + "/sesame.v1.jobs.JobAbortRequest";
18974
+ };
18975
+ return JobAbortRequest;
18976
+ }();
18977
+ jobs.JobStatusRequest = function() {
18978
+ function JobStatusRequest(properties) {
18979
+ if (properties) {
18980
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
18981
+ if (properties[keys[i]] != null)
18982
+ this[keys[i]] = properties[keys[i]];
18983
+ }
18984
+ }
18985
+ JobStatusRequest.prototype.jobId = 0;
18986
+ JobStatusRequest.create = function create(properties) {
18987
+ return new JobStatusRequest(properties);
18988
+ };
18989
+ JobStatusRequest.encode = function encode(message, writer) {
18990
+ if (!writer)
18991
+ writer = $Writer.create();
18992
+ if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
18993
+ writer.uint32(
18994
+ /* id 1, wireType 0 =*/
18995
+ 8
18996
+ ).uint32(message.jobId);
18997
+ return writer;
18998
+ };
18999
+ JobStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
19000
+ return this.encode(message, writer).ldelim();
19001
+ };
19002
+ JobStatusRequest.decode = function decode(reader, length, error) {
19003
+ if (!(reader instanceof $Reader))
19004
+ reader = $Reader.create(reader);
19005
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobStatusRequest();
19006
+ while (reader.pos < end) {
19007
+ let tag = reader.uint32();
19008
+ if (tag === error)
19009
+ break;
19010
+ switch (tag >>> 3) {
19011
+ case 1: {
19012
+ message.jobId = reader.uint32();
18846
19013
  break;
18847
19014
  }
18848
- break;
18849
- case "JOB_STATUS_UNSPECIFIED":
18850
- case 0:
18851
- message.status = 0;
18852
- break;
18853
- case "JOB_STATUS_PENDING":
18854
- case 1:
18855
- message.status = 1;
18856
- break;
18857
- case "JOB_STATUS_IN_PROGRESS":
18858
- case 2:
18859
- message.status = 2;
18860
- break;
18861
- case "JOB_STATUS_COMPLETE":
18862
- case 3:
18863
- message.status = 3;
18864
- break;
18865
- case "JOB_STATUS_ABORTED":
18866
- case 4:
18867
- message.status = 4;
18868
- break;
18869
- case "JOB_STATUS_ERROR":
18870
- case 5:
18871
- message.status = 5;
18872
- break;
19015
+ default:
19016
+ reader.skipType(tag & 7);
19017
+ break;
19018
+ }
18873
19019
  }
18874
- if (object.statusText != null)
18875
- message.statusText = String(object.statusText);
18876
- if (object.error != null)
18877
- message.error = String(object.error);
18878
- if (object.timingInfo != null) {
18879
- if (typeof object.timingInfo !== "object")
18880
- throw TypeError(".sesame.v1.jobs.JobEvent.timingInfo: object expected");
18881
- message.timingInfo = $root.sesame.v1.jobs.TimingInfo.fromObject(object.timingInfo);
19020
+ return message;
19021
+ };
19022
+ JobStatusRequest.decodeDelimited = function decodeDelimited(reader) {
19023
+ if (!(reader instanceof $Reader))
19024
+ reader = new $Reader(reader);
19025
+ return this.decode(reader, reader.uint32());
19026
+ };
19027
+ JobStatusRequest.verify = function verify(message) {
19028
+ if (typeof message !== "object" || message === null)
19029
+ return "object expected";
19030
+ if (message.jobId != null && message.hasOwnProperty("jobId")) {
19031
+ if (!$util.isInteger(message.jobId))
19032
+ return "jobId: integer expected";
18882
19033
  }
19034
+ return null;
19035
+ };
19036
+ JobStatusRequest.fromObject = function fromObject(object) {
19037
+ if (object instanceof $root.sesame.v1.jobs.JobStatusRequest)
19038
+ return object;
19039
+ let message = new $root.sesame.v1.jobs.JobStatusRequest();
19040
+ if (object.jobId != null)
19041
+ message.jobId = object.jobId >>> 0;
18883
19042
  return message;
18884
19043
  };
18885
- JobEvent.toObject = function toObject(message, options) {
19044
+ JobStatusRequest.toObject = function toObject(message, options) {
18886
19045
  if (!options)
18887
19046
  options = {};
18888
19047
  let object = {};
18889
- if (options.defaults) {
19048
+ if (options.defaults)
18890
19049
  object.jobId = 0;
18891
- object.source = "";
18892
- object.status = options.enums === String ? "JOB_STATUS_UNSPECIFIED" : 0;
18893
- object.statusText = "";
18894
- }
18895
19050
  if (message.jobId != null && message.hasOwnProperty("jobId"))
18896
19051
  object.jobId = message.jobId;
18897
- if (message.source != null && message.hasOwnProperty("source"))
18898
- object.source = message.source;
18899
- if (message.status != null && message.hasOwnProperty("status"))
18900
- 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;
18901
- if (message.statusText != null && message.hasOwnProperty("statusText"))
18902
- object.statusText = message.statusText;
18903
- if (message.error != null && message.hasOwnProperty("error")) {
18904
- object.error = message.error;
18905
- if (options.oneofs)
18906
- object._error = "error";
19052
+ return object;
19053
+ };
19054
+ JobStatusRequest.prototype.toJSON = function toJSON() {
19055
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19056
+ };
19057
+ JobStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19058
+ if (typeUrlPrefix === void 0) {
19059
+ typeUrlPrefix = "type.googleapis.com";
18907
19060
  }
18908
- if (message.timingInfo != null && message.hasOwnProperty("timingInfo")) {
18909
- object.timingInfo = $root.sesame.v1.jobs.TimingInfo.toObject(message.timingInfo, options);
18910
- if (options.oneofs)
18911
- object._timingInfo = "timingInfo";
19061
+ return typeUrlPrefix + "/sesame.v1.jobs.JobStatusRequest";
19062
+ };
19063
+ return JobStatusRequest;
19064
+ }();
19065
+ jobs.JobListRequest = function() {
19066
+ function JobListRequest(properties) {
19067
+ if (properties) {
19068
+ for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19069
+ if (properties[keys[i]] != null)
19070
+ this[keys[i]] = properties[keys[i]];
18912
19071
  }
18913
- return object;
19072
+ }
19073
+ JobListRequest.create = function create(properties) {
19074
+ return new JobListRequest(properties);
19075
+ };
19076
+ JobListRequest.encode = function encode(message, writer) {
19077
+ if (!writer)
19078
+ writer = $Writer.create();
19079
+ return writer;
18914
19080
  };
18915
- JobEvent.prototype.toJSON = function toJSON() {
19081
+ JobListRequest.encodeDelimited = function encodeDelimited(message, writer) {
19082
+ return this.encode(message, writer).ldelim();
19083
+ };
19084
+ JobListRequest.decode = function decode(reader, length, error) {
19085
+ if (!(reader instanceof $Reader))
19086
+ reader = $Reader.create(reader);
19087
+ let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.JobListRequest();
19088
+ while (reader.pos < end) {
19089
+ let tag = reader.uint32();
19090
+ if (tag === error)
19091
+ break;
19092
+ switch (tag >>> 3) {
19093
+ default:
19094
+ reader.skipType(tag & 7);
19095
+ break;
19096
+ }
19097
+ }
19098
+ return message;
19099
+ };
19100
+ JobListRequest.decodeDelimited = function decodeDelimited(reader) {
19101
+ if (!(reader instanceof $Reader))
19102
+ reader = new $Reader(reader);
19103
+ return this.decode(reader, reader.uint32());
19104
+ };
19105
+ JobListRequest.verify = function verify(message) {
19106
+ if (typeof message !== "object" || message === null)
19107
+ return "object expected";
19108
+ return null;
19109
+ };
19110
+ JobListRequest.fromObject = function fromObject(object) {
19111
+ if (object instanceof $root.sesame.v1.jobs.JobListRequest)
19112
+ return object;
19113
+ return new $root.sesame.v1.jobs.JobListRequest();
19114
+ };
19115
+ JobListRequest.toObject = function toObject() {
19116
+ return {};
19117
+ };
19118
+ JobListRequest.prototype.toJSON = function toJSON() {
18916
19119
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
18917
19120
  };
18918
- JobEvent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19121
+ JobListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
18919
19122
  if (typeUrlPrefix === void 0) {
18920
19123
  typeUrlPrefix = "type.googleapis.com";
18921
19124
  }
18922
- return typeUrlPrefix + "/sesame.v1.jobs.JobEvent";
19125
+ return typeUrlPrefix + "/sesame.v1.jobs.JobListRequest";
18923
19126
  };
18924
- return JobEvent;
19127
+ return JobListRequest;
18925
19128
  }();
18926
19129
  jobs.ExportConfiguration = function() {
18927
19130
  function ExportConfiguration(properties) {
@@ -19654,298 +19857,14 @@ var sesame = $root.sesame = (() => {
19654
19857
  switch (tag >>> 3) {
19655
19858
  case 1: {
19656
19859
  message.config = $root.sesame.v1.jobs.ExportConfiguration.decode(reader, reader.uint32());
19657
- break;
19658
- }
19659
- case 2: {
19660
- if (!(message.items && message.items.length))
19661
- message.items = [];
19662
- message.items.push($root.sesame.v1.recorder.PlaylistItem.decode(reader, reader.uint32()));
19663
- break;
19664
- }
19665
- default:
19666
- reader.skipType(tag & 7);
19667
- break;
19668
- }
19669
- }
19670
- return message;
19671
- };
19672
- ExportStartRequest.decodeDelimited = function decodeDelimited(reader) {
19673
- if (!(reader instanceof $Reader))
19674
- reader = new $Reader(reader);
19675
- return this.decode(reader, reader.uint32());
19676
- };
19677
- ExportStartRequest.verify = function verify(message) {
19678
- if (typeof message !== "object" || message === null)
19679
- return "object expected";
19680
- if (message.config != null && message.hasOwnProperty("config")) {
19681
- let error = $root.sesame.v1.jobs.ExportConfiguration.verify(message.config);
19682
- if (error)
19683
- return "config." + error;
19684
- }
19685
- if (message.items != null && message.hasOwnProperty("items")) {
19686
- if (!Array.isArray(message.items))
19687
- return "items: array expected";
19688
- for (let i = 0; i < message.items.length; ++i) {
19689
- let error = $root.sesame.v1.recorder.PlaylistItem.verify(message.items[i]);
19690
- if (error)
19691
- return "items." + error;
19692
- }
19693
- }
19694
- return null;
19695
- };
19696
- ExportStartRequest.fromObject = function fromObject(object) {
19697
- if (object instanceof $root.sesame.v1.jobs.ExportStartRequest)
19698
- return object;
19699
- let message = new $root.sesame.v1.jobs.ExportStartRequest();
19700
- if (object.config != null) {
19701
- if (typeof object.config !== "object")
19702
- throw TypeError(".sesame.v1.jobs.ExportStartRequest.config: object expected");
19703
- message.config = $root.sesame.v1.jobs.ExportConfiguration.fromObject(object.config);
19704
- }
19705
- if (object.items) {
19706
- if (!Array.isArray(object.items))
19707
- throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: array expected");
19708
- message.items = [];
19709
- for (let i = 0; i < object.items.length; ++i) {
19710
- if (typeof object.items[i] !== "object")
19711
- throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: object expected");
19712
- message.items[i] = $root.sesame.v1.recorder.PlaylistItem.fromObject(object.items[i]);
19713
- }
19714
- }
19715
- return message;
19716
- };
19717
- ExportStartRequest.toObject = function toObject(message, options) {
19718
- if (!options)
19719
- options = {};
19720
- let object = {};
19721
- if (options.arrays || options.defaults)
19722
- object.items = [];
19723
- if (options.defaults)
19724
- object.config = null;
19725
- if (message.config != null && message.hasOwnProperty("config"))
19726
- object.config = $root.sesame.v1.jobs.ExportConfiguration.toObject(message.config, options);
19727
- if (message.items && message.items.length) {
19728
- object.items = [];
19729
- for (let j = 0; j < message.items.length; ++j)
19730
- object.items[j] = $root.sesame.v1.recorder.PlaylistItem.toObject(message.items[j], options);
19731
- }
19732
- return object;
19733
- };
19734
- ExportStartRequest.prototype.toJSON = function toJSON() {
19735
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19736
- };
19737
- ExportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19738
- if (typeUrlPrefix === void 0) {
19739
- typeUrlPrefix = "type.googleapis.com";
19740
- }
19741
- return typeUrlPrefix + "/sesame.v1.jobs.ExportStartRequest";
19742
- };
19743
- return ExportStartRequest;
19744
- }();
19745
- jobs.ExportAbortRequest = function() {
19746
- function ExportAbortRequest(properties) {
19747
- if (properties) {
19748
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19749
- if (properties[keys[i]] != null)
19750
- this[keys[i]] = properties[keys[i]];
19751
- }
19752
- }
19753
- ExportAbortRequest.prototype.jobId = 0;
19754
- ExportAbortRequest.create = function create(properties) {
19755
- return new ExportAbortRequest(properties);
19756
- };
19757
- ExportAbortRequest.encode = function encode(message, writer) {
19758
- if (!writer)
19759
- writer = $Writer.create();
19760
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
19761
- writer.uint32(
19762
- /* id 1, wireType 0 =*/
19763
- 8
19764
- ).uint32(message.jobId);
19765
- return writer;
19766
- };
19767
- ExportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
19768
- return this.encode(message, writer).ldelim();
19769
- };
19770
- ExportAbortRequest.decode = function decode(reader, length, error) {
19771
- if (!(reader instanceof $Reader))
19772
- reader = $Reader.create(reader);
19773
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportAbortRequest();
19774
- while (reader.pos < end) {
19775
- let tag = reader.uint32();
19776
- if (tag === error)
19777
- break;
19778
- switch (tag >>> 3) {
19779
- case 1: {
19780
- message.jobId = reader.uint32();
19781
- break;
19782
- }
19783
- default:
19784
- reader.skipType(tag & 7);
19785
- break;
19786
- }
19787
- }
19788
- return message;
19789
- };
19790
- ExportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
19791
- if (!(reader instanceof $Reader))
19792
- reader = new $Reader(reader);
19793
- return this.decode(reader, reader.uint32());
19794
- };
19795
- ExportAbortRequest.verify = function verify(message) {
19796
- if (typeof message !== "object" || message === null)
19797
- return "object expected";
19798
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
19799
- if (!$util.isInteger(message.jobId))
19800
- return "jobId: integer expected";
19801
- }
19802
- return null;
19803
- };
19804
- ExportAbortRequest.fromObject = function fromObject(object) {
19805
- if (object instanceof $root.sesame.v1.jobs.ExportAbortRequest)
19806
- return object;
19807
- let message = new $root.sesame.v1.jobs.ExportAbortRequest();
19808
- if (object.jobId != null)
19809
- message.jobId = object.jobId >>> 0;
19810
- return message;
19811
- };
19812
- ExportAbortRequest.toObject = function toObject(message, options) {
19813
- if (!options)
19814
- options = {};
19815
- let object = {};
19816
- if (options.defaults)
19817
- object.jobId = 0;
19818
- if (message.jobId != null && message.hasOwnProperty("jobId"))
19819
- object.jobId = message.jobId;
19820
- return object;
19821
- };
19822
- ExportAbortRequest.prototype.toJSON = function toJSON() {
19823
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19824
- };
19825
- ExportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19826
- if (typeUrlPrefix === void 0) {
19827
- typeUrlPrefix = "type.googleapis.com";
19828
- }
19829
- return typeUrlPrefix + "/sesame.v1.jobs.ExportAbortRequest";
19830
- };
19831
- return ExportAbortRequest;
19832
- }();
19833
- jobs.ExportStatusRequest = function() {
19834
- function ExportStatusRequest(properties) {
19835
- if (properties) {
19836
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19837
- if (properties[keys[i]] != null)
19838
- this[keys[i]] = properties[keys[i]];
19839
- }
19840
- }
19841
- ExportStatusRequest.prototype.jobId = 0;
19842
- ExportStatusRequest.create = function create(properties) {
19843
- return new ExportStatusRequest(properties);
19844
- };
19845
- ExportStatusRequest.encode = function encode(message, writer) {
19846
- if (!writer)
19847
- writer = $Writer.create();
19848
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
19849
- writer.uint32(
19850
- /* id 1, wireType 0 =*/
19851
- 8
19852
- ).uint32(message.jobId);
19853
- return writer;
19854
- };
19855
- ExportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
19856
- return this.encode(message, writer).ldelim();
19857
- };
19858
- ExportStatusRequest.decode = function decode(reader, length, error) {
19859
- if (!(reader instanceof $Reader))
19860
- reader = $Reader.create(reader);
19861
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportStatusRequest();
19862
- while (reader.pos < end) {
19863
- let tag = reader.uint32();
19864
- if (tag === error)
19865
- break;
19866
- switch (tag >>> 3) {
19867
- case 1: {
19868
- message.jobId = reader.uint32();
19869
- break;
19870
- }
19871
- default:
19872
- reader.skipType(tag & 7);
19873
- break;
19874
- }
19875
- }
19876
- return message;
19877
- };
19878
- ExportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
19879
- if (!(reader instanceof $Reader))
19880
- reader = new $Reader(reader);
19881
- return this.decode(reader, reader.uint32());
19882
- };
19883
- ExportStatusRequest.verify = function verify(message) {
19884
- if (typeof message !== "object" || message === null)
19885
- return "object expected";
19886
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
19887
- if (!$util.isInteger(message.jobId))
19888
- return "jobId: integer expected";
19889
- }
19890
- return null;
19891
- };
19892
- ExportStatusRequest.fromObject = function fromObject(object) {
19893
- if (object instanceof $root.sesame.v1.jobs.ExportStatusRequest)
19894
- return object;
19895
- let message = new $root.sesame.v1.jobs.ExportStatusRequest();
19896
- if (object.jobId != null)
19897
- message.jobId = object.jobId >>> 0;
19898
- return message;
19899
- };
19900
- ExportStatusRequest.toObject = function toObject(message, options) {
19901
- if (!options)
19902
- options = {};
19903
- let object = {};
19904
- if (options.defaults)
19905
- object.jobId = 0;
19906
- if (message.jobId != null && message.hasOwnProperty("jobId"))
19907
- object.jobId = message.jobId;
19908
- return object;
19909
- };
19910
- ExportStatusRequest.prototype.toJSON = function toJSON() {
19911
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19912
- };
19913
- ExportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19914
- if (typeUrlPrefix === void 0) {
19915
- typeUrlPrefix = "type.googleapis.com";
19916
- }
19917
- return typeUrlPrefix + "/sesame.v1.jobs.ExportStatusRequest";
19918
- };
19919
- return ExportStatusRequest;
19920
- }();
19921
- jobs.ExportListRequest = function() {
19922
- function ExportListRequest(properties) {
19923
- if (properties) {
19924
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
19925
- if (properties[keys[i]] != null)
19926
- this[keys[i]] = properties[keys[i]];
19927
- }
19928
- }
19929
- ExportListRequest.create = function create(properties) {
19930
- return new ExportListRequest(properties);
19931
- };
19932
- ExportListRequest.encode = function encode(message, writer) {
19933
- if (!writer)
19934
- writer = $Writer.create();
19935
- return writer;
19936
- };
19937
- ExportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
19938
- return this.encode(message, writer).ldelim();
19939
- };
19940
- ExportListRequest.decode = function decode(reader, length, error) {
19941
- if (!(reader instanceof $Reader))
19942
- reader = $Reader.create(reader);
19943
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ExportListRequest();
19944
- while (reader.pos < end) {
19945
- let tag = reader.uint32();
19946
- if (tag === error)
19947
- break;
19948
- switch (tag >>> 3) {
19860
+ break;
19861
+ }
19862
+ case 2: {
19863
+ if (!(message.items && message.items.length))
19864
+ message.items = [];
19865
+ message.items.push($root.sesame.v1.recorder.PlaylistItem.decode(reader, reader.uint32()));
19866
+ break;
19867
+ }
19949
19868
  default:
19950
19869
  reader.skipType(tag & 7);
19951
19870
  break;
@@ -19953,34 +19872,78 @@ var sesame = $root.sesame = (() => {
19953
19872
  }
19954
19873
  return message;
19955
19874
  };
19956
- ExportListRequest.decodeDelimited = function decodeDelimited(reader) {
19875
+ ExportStartRequest.decodeDelimited = function decodeDelimited(reader) {
19957
19876
  if (!(reader instanceof $Reader))
19958
19877
  reader = new $Reader(reader);
19959
19878
  return this.decode(reader, reader.uint32());
19960
19879
  };
19961
- ExportListRequest.verify = function verify(message) {
19880
+ ExportStartRequest.verify = function verify(message) {
19962
19881
  if (typeof message !== "object" || message === null)
19963
19882
  return "object expected";
19883
+ if (message.config != null && message.hasOwnProperty("config")) {
19884
+ let error = $root.sesame.v1.jobs.ExportConfiguration.verify(message.config);
19885
+ if (error)
19886
+ return "config." + error;
19887
+ }
19888
+ if (message.items != null && message.hasOwnProperty("items")) {
19889
+ if (!Array.isArray(message.items))
19890
+ return "items: array expected";
19891
+ for (let i = 0; i < message.items.length; ++i) {
19892
+ let error = $root.sesame.v1.recorder.PlaylistItem.verify(message.items[i]);
19893
+ if (error)
19894
+ return "items." + error;
19895
+ }
19896
+ }
19964
19897
  return null;
19965
19898
  };
19966
- ExportListRequest.fromObject = function fromObject(object) {
19967
- if (object instanceof $root.sesame.v1.jobs.ExportListRequest)
19899
+ ExportStartRequest.fromObject = function fromObject(object) {
19900
+ if (object instanceof $root.sesame.v1.jobs.ExportStartRequest)
19968
19901
  return object;
19969
- return new $root.sesame.v1.jobs.ExportListRequest();
19902
+ let message = new $root.sesame.v1.jobs.ExportStartRequest();
19903
+ if (object.config != null) {
19904
+ if (typeof object.config !== "object")
19905
+ throw TypeError(".sesame.v1.jobs.ExportStartRequest.config: object expected");
19906
+ message.config = $root.sesame.v1.jobs.ExportConfiguration.fromObject(object.config);
19907
+ }
19908
+ if (object.items) {
19909
+ if (!Array.isArray(object.items))
19910
+ throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: array expected");
19911
+ message.items = [];
19912
+ for (let i = 0; i < object.items.length; ++i) {
19913
+ if (typeof object.items[i] !== "object")
19914
+ throw TypeError(".sesame.v1.jobs.ExportStartRequest.items: object expected");
19915
+ message.items[i] = $root.sesame.v1.recorder.PlaylistItem.fromObject(object.items[i]);
19916
+ }
19917
+ }
19918
+ return message;
19970
19919
  };
19971
- ExportListRequest.toObject = function toObject() {
19972
- return {};
19920
+ ExportStartRequest.toObject = function toObject(message, options) {
19921
+ if (!options)
19922
+ options = {};
19923
+ let object = {};
19924
+ if (options.arrays || options.defaults)
19925
+ object.items = [];
19926
+ if (options.defaults)
19927
+ object.config = null;
19928
+ if (message.config != null && message.hasOwnProperty("config"))
19929
+ object.config = $root.sesame.v1.jobs.ExportConfiguration.toObject(message.config, options);
19930
+ if (message.items && message.items.length) {
19931
+ object.items = [];
19932
+ for (let j = 0; j < message.items.length; ++j)
19933
+ object.items[j] = $root.sesame.v1.recorder.PlaylistItem.toObject(message.items[j], options);
19934
+ }
19935
+ return object;
19973
19936
  };
19974
- ExportListRequest.prototype.toJSON = function toJSON() {
19937
+ ExportStartRequest.prototype.toJSON = function toJSON() {
19975
19938
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
19976
19939
  };
19977
- ExportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19940
+ ExportStartRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
19978
19941
  if (typeUrlPrefix === void 0) {
19979
19942
  typeUrlPrefix = "type.googleapis.com";
19980
19943
  }
19981
- return typeUrlPrefix + "/sesame.v1.jobs.ExportListRequest";
19944
+ return typeUrlPrefix + "/sesame.v1.jobs.ExportStartRequest";
19982
19945
  };
19983
- return ExportListRequest;
19946
+ return ExportStartRequest;
19984
19947
  }();
19985
19948
  jobs.ImportConfiguration = function() {
19986
19949
  function ImportConfiguration(properties) {
@@ -20297,246 +20260,6 @@ var sesame = $root.sesame = (() => {
20297
20260
  };
20298
20261
  return ImportStartRequest;
20299
20262
  }();
20300
- jobs.ImportAbortRequest = function() {
20301
- function ImportAbortRequest(properties) {
20302
- if (properties) {
20303
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20304
- if (properties[keys[i]] != null)
20305
- this[keys[i]] = properties[keys[i]];
20306
- }
20307
- }
20308
- ImportAbortRequest.prototype.jobId = 0;
20309
- ImportAbortRequest.create = function create(properties) {
20310
- return new ImportAbortRequest(properties);
20311
- };
20312
- ImportAbortRequest.encode = function encode(message, writer) {
20313
- if (!writer)
20314
- writer = $Writer.create();
20315
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
20316
- writer.uint32(
20317
- /* id 1, wireType 0 =*/
20318
- 8
20319
- ).uint32(message.jobId);
20320
- return writer;
20321
- };
20322
- ImportAbortRequest.encodeDelimited = function encodeDelimited(message, writer) {
20323
- return this.encode(message, writer).ldelim();
20324
- };
20325
- ImportAbortRequest.decode = function decode(reader, length, error) {
20326
- if (!(reader instanceof $Reader))
20327
- reader = $Reader.create(reader);
20328
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportAbortRequest();
20329
- while (reader.pos < end) {
20330
- let tag = reader.uint32();
20331
- if (tag === error)
20332
- break;
20333
- switch (tag >>> 3) {
20334
- case 1: {
20335
- message.jobId = reader.uint32();
20336
- break;
20337
- }
20338
- default:
20339
- reader.skipType(tag & 7);
20340
- break;
20341
- }
20342
- }
20343
- return message;
20344
- };
20345
- ImportAbortRequest.decodeDelimited = function decodeDelimited(reader) {
20346
- if (!(reader instanceof $Reader))
20347
- reader = new $Reader(reader);
20348
- return this.decode(reader, reader.uint32());
20349
- };
20350
- ImportAbortRequest.verify = function verify(message) {
20351
- if (typeof message !== "object" || message === null)
20352
- return "object expected";
20353
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
20354
- if (!$util.isInteger(message.jobId))
20355
- return "jobId: integer expected";
20356
- }
20357
- return null;
20358
- };
20359
- ImportAbortRequest.fromObject = function fromObject(object) {
20360
- if (object instanceof $root.sesame.v1.jobs.ImportAbortRequest)
20361
- return object;
20362
- let message = new $root.sesame.v1.jobs.ImportAbortRequest();
20363
- if (object.jobId != null)
20364
- message.jobId = object.jobId >>> 0;
20365
- return message;
20366
- };
20367
- ImportAbortRequest.toObject = function toObject(message, options) {
20368
- if (!options)
20369
- options = {};
20370
- let object = {};
20371
- if (options.defaults)
20372
- object.jobId = 0;
20373
- if (message.jobId != null && message.hasOwnProperty("jobId"))
20374
- object.jobId = message.jobId;
20375
- return object;
20376
- };
20377
- ImportAbortRequest.prototype.toJSON = function toJSON() {
20378
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20379
- };
20380
- ImportAbortRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20381
- if (typeUrlPrefix === void 0) {
20382
- typeUrlPrefix = "type.googleapis.com";
20383
- }
20384
- return typeUrlPrefix + "/sesame.v1.jobs.ImportAbortRequest";
20385
- };
20386
- return ImportAbortRequest;
20387
- }();
20388
- jobs.ImportStatusRequest = function() {
20389
- function ImportStatusRequest(properties) {
20390
- if (properties) {
20391
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20392
- if (properties[keys[i]] != null)
20393
- this[keys[i]] = properties[keys[i]];
20394
- }
20395
- }
20396
- ImportStatusRequest.prototype.jobId = 0;
20397
- ImportStatusRequest.create = function create(properties) {
20398
- return new ImportStatusRequest(properties);
20399
- };
20400
- ImportStatusRequest.encode = function encode(message, writer) {
20401
- if (!writer)
20402
- writer = $Writer.create();
20403
- if (message.jobId != null && Object.hasOwnProperty.call(message, "jobId"))
20404
- writer.uint32(
20405
- /* id 1, wireType 0 =*/
20406
- 8
20407
- ).uint32(message.jobId);
20408
- return writer;
20409
- };
20410
- ImportStatusRequest.encodeDelimited = function encodeDelimited(message, writer) {
20411
- return this.encode(message, writer).ldelim();
20412
- };
20413
- ImportStatusRequest.decode = function decode(reader, length, error) {
20414
- if (!(reader instanceof $Reader))
20415
- reader = $Reader.create(reader);
20416
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportStatusRequest();
20417
- while (reader.pos < end) {
20418
- let tag = reader.uint32();
20419
- if (tag === error)
20420
- break;
20421
- switch (tag >>> 3) {
20422
- case 1: {
20423
- message.jobId = reader.uint32();
20424
- break;
20425
- }
20426
- default:
20427
- reader.skipType(tag & 7);
20428
- break;
20429
- }
20430
- }
20431
- return message;
20432
- };
20433
- ImportStatusRequest.decodeDelimited = function decodeDelimited(reader) {
20434
- if (!(reader instanceof $Reader))
20435
- reader = new $Reader(reader);
20436
- return this.decode(reader, reader.uint32());
20437
- };
20438
- ImportStatusRequest.verify = function verify(message) {
20439
- if (typeof message !== "object" || message === null)
20440
- return "object expected";
20441
- if (message.jobId != null && message.hasOwnProperty("jobId")) {
20442
- if (!$util.isInteger(message.jobId))
20443
- return "jobId: integer expected";
20444
- }
20445
- return null;
20446
- };
20447
- ImportStatusRequest.fromObject = function fromObject(object) {
20448
- if (object instanceof $root.sesame.v1.jobs.ImportStatusRequest)
20449
- return object;
20450
- let message = new $root.sesame.v1.jobs.ImportStatusRequest();
20451
- if (object.jobId != null)
20452
- message.jobId = object.jobId >>> 0;
20453
- return message;
20454
- };
20455
- ImportStatusRequest.toObject = function toObject(message, options) {
20456
- if (!options)
20457
- options = {};
20458
- let object = {};
20459
- if (options.defaults)
20460
- object.jobId = 0;
20461
- if (message.jobId != null && message.hasOwnProperty("jobId"))
20462
- object.jobId = message.jobId;
20463
- return object;
20464
- };
20465
- ImportStatusRequest.prototype.toJSON = function toJSON() {
20466
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20467
- };
20468
- ImportStatusRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20469
- if (typeUrlPrefix === void 0) {
20470
- typeUrlPrefix = "type.googleapis.com";
20471
- }
20472
- return typeUrlPrefix + "/sesame.v1.jobs.ImportStatusRequest";
20473
- };
20474
- return ImportStatusRequest;
20475
- }();
20476
- jobs.ImportListRequest = function() {
20477
- function ImportListRequest(properties) {
20478
- if (properties) {
20479
- for (let keys = Object.keys(properties), i = 0; i < keys.length; ++i)
20480
- if (properties[keys[i]] != null)
20481
- this[keys[i]] = properties[keys[i]];
20482
- }
20483
- }
20484
- ImportListRequest.create = function create(properties) {
20485
- return new ImportListRequest(properties);
20486
- };
20487
- ImportListRequest.encode = function encode(message, writer) {
20488
- if (!writer)
20489
- writer = $Writer.create();
20490
- return writer;
20491
- };
20492
- ImportListRequest.encodeDelimited = function encodeDelimited(message, writer) {
20493
- return this.encode(message, writer).ldelim();
20494
- };
20495
- ImportListRequest.decode = function decode(reader, length, error) {
20496
- if (!(reader instanceof $Reader))
20497
- reader = $Reader.create(reader);
20498
- let end = length === void 0 ? reader.len : reader.pos + length, message = new $root.sesame.v1.jobs.ImportListRequest();
20499
- while (reader.pos < end) {
20500
- let tag = reader.uint32();
20501
- if (tag === error)
20502
- break;
20503
- switch (tag >>> 3) {
20504
- default:
20505
- reader.skipType(tag & 7);
20506
- break;
20507
- }
20508
- }
20509
- return message;
20510
- };
20511
- ImportListRequest.decodeDelimited = function decodeDelimited(reader) {
20512
- if (!(reader instanceof $Reader))
20513
- reader = new $Reader(reader);
20514
- return this.decode(reader, reader.uint32());
20515
- };
20516
- ImportListRequest.verify = function verify(message) {
20517
- if (typeof message !== "object" || message === null)
20518
- return "object expected";
20519
- return null;
20520
- };
20521
- ImportListRequest.fromObject = function fromObject(object) {
20522
- if (object instanceof $root.sesame.v1.jobs.ImportListRequest)
20523
- return object;
20524
- return new $root.sesame.v1.jobs.ImportListRequest();
20525
- };
20526
- ImportListRequest.toObject = function toObject() {
20527
- return {};
20528
- };
20529
- ImportListRequest.prototype.toJSON = function toJSON() {
20530
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
20531
- };
20532
- ImportListRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
20533
- if (typeUrlPrefix === void 0) {
20534
- typeUrlPrefix = "type.googleapis.com";
20535
- }
20536
- return typeUrlPrefix + "/sesame.v1.jobs.ImportListRequest";
20537
- };
20538
- return ImportListRequest;
20539
- }();
20540
20263
  return jobs;
20541
20264
  }();
20542
20265
  v1.rpc = function() {
@@ -21068,7 +20791,6 @@ var sesame = $root.sesame = (() => {
21068
20791
  case 2:
21069
20792
  case 3:
21070
20793
  case 4:
21071
- case 5:
21072
20794
  case 6:
21073
20795
  break;
21074
20796
  }
@@ -21105,14 +20827,10 @@ var sesame = $root.sesame = (() => {
21105
20827
  case 3:
21106
20828
  message.topic = 3;
21107
20829
  break;
21108
- case "EVENT_TOPIC_PLAYLIST_EXPORT":
20830
+ case "EVENT_TOPIC_JOB":
21109
20831
  case 4:
21110
20832
  message.topic = 4;
21111
20833
  break;
21112
- case "EVENT_TOPIC_CLIP_IMPORT":
21113
- case 5:
21114
- message.topic = 5;
21115
- break;
21116
20834
  case "EVENT_TOPIC_RECORDER":
21117
20835
  case 6:
21118
20836
  message.topic = 6;
@@ -21183,30 +20901,18 @@ var sesame = $root.sesame = (() => {
21183
20901
  Object.defineProperty(SesameAPIService.prototype.requestRecorderOperation = function requestRecorderOperation(request, callback) {
21184
20902
  return this.rpcCall(requestRecorderOperation, $root.sesame.v1.recorder.RecorderRequest, $root.sesame.v1.recorder.RecorderResponse, request, callback);
21185
20903
  }, "name", { value: "RequestRecorderOperation" });
21186
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportStart = function requestPlaylistExportStart(request, callback) {
21187
- return this.rpcCall(requestPlaylistExportStart, $root.sesame.v1.jobs.ExportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21188
- }, "name", { value: "RequestPlaylistExportStart" });
21189
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportAbort = function requestPlaylistExportAbort(request, callback) {
21190
- return this.rpcCall(requestPlaylistExportAbort, $root.sesame.v1.jobs.ExportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21191
- }, "name", { value: "RequestPlaylistExportAbort" });
21192
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportStatus = function requestPlaylistExportStatus(request, callback) {
21193
- return this.rpcCall(requestPlaylistExportStatus, $root.sesame.v1.jobs.ExportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21194
- }, "name", { value: "RequestPlaylistExportStatus" });
21195
- Object.defineProperty(SesameAPIService.prototype.requestPlaylistExportList = function requestPlaylistExportList(request, callback) {
21196
- return this.rpcCall(requestPlaylistExportList, $root.sesame.v1.jobs.ExportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
21197
- }, "name", { value: "RequestPlaylistExportList" });
21198
- Object.defineProperty(SesameAPIService.prototype.requestClipImportStart = function requestClipImportStart(request, callback) {
21199
- return this.rpcCall(requestClipImportStart, $root.sesame.v1.jobs.ImportStartRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21200
- }, "name", { value: "RequestClipImportStart" });
21201
- Object.defineProperty(SesameAPIService.prototype.requestClipImportAbort = function requestClipImportAbort(request, callback) {
21202
- return this.rpcCall(requestClipImportAbort, $root.sesame.v1.jobs.ImportAbortRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21203
- }, "name", { value: "RequestClipImportAbort" });
21204
- Object.defineProperty(SesameAPIService.prototype.requestClipImportStatus = function requestClipImportStatus(request, callback) {
21205
- return this.rpcCall(requestClipImportStatus, $root.sesame.v1.jobs.ImportStatusRequest, $root.sesame.v1.jobs.JobStatusResponse, request, callback);
21206
- }, "name", { value: "RequestClipImportStatus" });
21207
- Object.defineProperty(SesameAPIService.prototype.requestClipImportList = function requestClipImportList(request, callback) {
21208
- return this.rpcCall(requestClipImportList, $root.sesame.v1.jobs.ImportListRequest, $root.sesame.v1.jobs.JobListResponse, request, callback);
21209
- }, "name", { value: "RequestClipImportList" });
20904
+ Object.defineProperty(SesameAPIService.prototype.startJob = function startJob(request, callback) {
20905
+ return this.rpcCall(startJob, $root.sesame.v1.jobs.JobStartRequest, $root.sesame.v1.jobs.Job, request, callback);
20906
+ }, "name", { value: "StartJob" });
20907
+ Object.defineProperty(SesameAPIService.prototype.abortJob = function abortJob(request, callback) {
20908
+ return this.rpcCall(abortJob, $root.sesame.v1.jobs.JobAbortRequest, $root.sesame.v1.jobs.Job, request, callback);
20909
+ }, "name", { value: "AbortJob" });
20910
+ Object.defineProperty(SesameAPIService.prototype.getJobStatus = function getJobStatus(request, callback) {
20911
+ return this.rpcCall(getJobStatus, $root.sesame.v1.jobs.JobStatusRequest, $root.sesame.v1.jobs.Job, request, callback);
20912
+ }, "name", { value: "GetJobStatus" });
20913
+ Object.defineProperty(SesameAPIService.prototype.listJobs = function listJobs(request, callback) {
20914
+ return this.rpcCall(listJobs, $root.sesame.v1.jobs.JobListRequest, $root.sesame.v1.jobs.JobList, request, callback);
20915
+ }, "name", { value: "ListJobs" });
21210
20916
  Object.defineProperty(SesameAPIService.prototype.requestKeyframe = function requestKeyframe(request, callback) {
21211
20917
  return this.rpcCall(requestKeyframe, $root.sesame.v1.outputs.KeyframeRequest, $root.sesame.v1.common.Empty, request, callback);
21212
20918
  }, "name", { value: "RequestKeyframe" });
@@ -22585,26 +22291,19 @@ var JobsApi = class {
22585
22291
  this.rpc = rpc;
22586
22292
  }
22587
22293
  async importClip(config) {
22588
- const msg = sesame.v1.jobs.ImportStartRequest.create();
22589
- msg.config = config;
22590
- const res = await this.rpc.service.requestClipImportStart(msg);
22294
+ const importReq = sesame.v1.jobs.ImportStartRequest.create();
22295
+ importReq.config = config;
22296
+ const msg = sesame.v1.jobs.JobStartRequest.create({ importRequest: importReq });
22297
+ const res = await this.rpc.service.startJob(msg);
22591
22298
  if (res.error) {
22592
22299
  throw new Error(res.error);
22593
22300
  }
22594
22301
  return res;
22595
22302
  }
22596
- async getImportStatus() {
22597
- const msg = sesame.v1.jobs.ImportListRequest.create();
22598
- return this.rpc.service.requestClipImportList(msg);
22599
- }
22600
- async abortImport(jobId) {
22601
- const msg = { jobId };
22602
- return this.rpc.service.requestClipImportAbort(msg);
22603
- }
22604
22303
  async exportPlaylist(playlist, config) {
22605
- const msg = sesame.v1.jobs.ExportStartRequest.create();
22304
+ const exportReq = sesame.v1.jobs.ExportStartRequest.create();
22606
22305
  if (!config.filename) throw new Error("Filename is required");
22607
- msg.config = {
22306
+ exportReq.config = {
22608
22307
  ...config,
22609
22308
  filename: config.filename,
22610
22309
  videoCodec: config.videoCodec ?? sesame.v1.common.CodecId.CODEC_ID_H264,
@@ -22614,7 +22313,7 @@ var JobsApi = class {
22614
22313
  audioChannels: config.audioChannels ?? 4,
22615
22314
  audioRouting: config.audioRouting ?? [0, 1, 2, 3]
22616
22315
  };
22617
- msg.items = playlist.clips.map((clip) => ({
22316
+ exportReq.items = playlist.clips.map((clip) => ({
22618
22317
  id: clip.id,
22619
22318
  recorderId: clip.recorderId,
22620
22319
  transitionTimeUs: clip.transitionTimeUs ?? 0,
@@ -22625,15 +22324,20 @@ var JobsApi = class {
22625
22324
  startTimeUs: clip.startTimeUs,
22626
22325
  endTimeUs: clip.endTimeUs
22627
22326
  }));
22628
- await this.rpc.service.requestPlaylistExportStart(msg);
22327
+ const msg = sesame.v1.jobs.JobStartRequest.create({ exportRequest: exportReq });
22328
+ await this.rpc.service.startJob(msg);
22629
22329
  }
22630
- async getExportStatus() {
22631
- const msg = sesame.v1.jobs.ExportListRequest.create();
22632
- return this.rpc.service.requestPlaylistExportList(msg);
22330
+ async abortJob(jobId) {
22331
+ const msg = { jobId };
22332
+ return this.rpc.service.abortJob(msg);
22633
22333
  }
22634
- async abortExport(jobId) {
22334
+ async getJobStatus(jobId) {
22635
22335
  const msg = { jobId };
22636
- return this.rpc.service.requestPlaylistExportAbort(msg);
22336
+ return this.rpc.service.getJobStatus(msg);
22337
+ }
22338
+ async listJobs() {
22339
+ const msg = {};
22340
+ return this.rpc.service.listJobs(msg);
22637
22341
  }
22638
22342
  };
22639
22343
 
@@ -22693,8 +22397,7 @@ var SesameClient = class extends EventEmitter3 {
22693
22397
  [sesame.v1.common.EventTopic.EVENT_TOPIC_ERROR]: sesame.v1.status.Event,
22694
22398
  [sesame.v1.common.EventTopic.EVENT_TOPIC_TRANSPORT]: sesame.v1.status.Event,
22695
22399
  [sesame.v1.common.EventTopic.EVENT_TOPIC_CALLBACK]: sesame.v1.status.Event,
22696
- [sesame.v1.common.EventTopic.EVENT_TOPIC_PLAYLIST_EXPORT]: sesame.v1.status.Event,
22697
- [sesame.v1.common.EventTopic.EVENT_TOPIC_CLIP_IMPORT]: sesame.v1.status.Event,
22400
+ [sesame.v1.common.EventTopic.EVENT_TOPIC_JOB]: sesame.v1.status.Event,
22698
22401
  [sesame.v1.common.EventTopic.EVENT_TOPIC_RECORDER]: sesame.v1.status.Event
22699
22402
  };
22700
22403
  let options = {