@hatchet-dev/typescript-sdk 1.11.0 → 1.12.1

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.
Files changed (64) hide show
  1. package/clients/admin/admin-client.d.ts +38 -0
  2. package/clients/admin/admin-client.js +19 -6
  3. package/clients/dispatcher/action-listener.d.ts +6 -2
  4. package/clients/dispatcher/action-listener.js +2 -2
  5. package/clients/dispatcher/dispatcher-client.d.ts +22 -3
  6. package/clients/dispatcher/dispatcher-client.js +41 -4
  7. package/clients/event/event-client.d.ts +2 -2
  8. package/clients/event/event-client.js +4 -4
  9. package/clients/hatchet-client/hatchet-logger.js +2 -2
  10. package/clients/rest/generated/Api.d.ts +9 -1
  11. package/clients/rest/generated/data-contracts.d.ts +44 -8
  12. package/clients/rest/generated/data-contracts.js +13 -2
  13. package/clients/worker/worker.js +11 -11
  14. package/examples/webhooks.d.ts +1 -0
  15. package/examples/webhooks.js +45 -0
  16. package/package.json +1 -1
  17. package/protoc/dispatcher/dispatcher.d.ts +70 -25
  18. package/protoc/dispatcher/dispatcher.js +323 -97
  19. package/protoc/events/events.d.ts +4 -4
  20. package/protoc/events/events.js +20 -16
  21. package/protoc/v1/workflows.d.ts +18 -7
  22. package/protoc/v1/workflows.js +122 -2
  23. package/protoc/workflows/workflows.d.ts +22 -22
  24. package/protoc/workflows/workflows.js +18 -18
  25. package/step.d.ts +6 -0
  26. package/step.js +27 -19
  27. package/util/workflow-run-ref.js +1 -1
  28. package/v1/client/admin.d.ts +30 -0
  29. package/v1/client/admin.js +21 -6
  30. package/v1/client/client.d.ts +8 -1
  31. package/v1/client/client.js +13 -2
  32. package/v1/client/features/runs.d.ts +9 -1
  33. package/v1/client/features/runs.js +4 -2
  34. package/v1/client/features/webhooks.d.ts +28 -0
  35. package/v1/client/features/webhooks.js +97 -0
  36. package/v1/client/worker/context.d.ts +6 -0
  37. package/v1/client/worker/context.js +30 -22
  38. package/v1/client/worker/deprecated/deprecation.d.ts +44 -0
  39. package/v1/client/worker/deprecated/deprecation.js +95 -0
  40. package/v1/client/worker/deprecated/index.d.ts +4 -0
  41. package/v1/client/worker/deprecated/index.js +15 -0
  42. package/v1/client/worker/deprecated/legacy-registration.d.ts +18 -0
  43. package/v1/client/worker/deprecated/legacy-registration.js +35 -0
  44. package/v1/client/worker/deprecated/legacy-v1-worker.d.ts +15 -0
  45. package/v1/client/worker/deprecated/legacy-v1-worker.js +39 -0
  46. package/v1/client/worker/deprecated/legacy-worker.d.ts +41 -0
  47. package/v1/client/worker/deprecated/legacy-worker.js +148 -0
  48. package/v1/client/worker/slot-utils.d.ts +21 -0
  49. package/v1/client/worker/slot-utils.js +73 -0
  50. package/v1/client/worker/worker-internal.d.ts +16 -5
  51. package/v1/client/worker/worker-internal.js +54 -37
  52. package/v1/client/worker/worker.d.ts +12 -15
  53. package/v1/client/worker/worker.js +45 -49
  54. package/v1/declaration.js +1 -1
  55. package/v1/index.d.ts +1 -0
  56. package/v1/index.js +1 -0
  57. package/v1/parent-run-context-vars.d.ts +4 -1
  58. package/v1/parent-run-context-vars.js +1 -0
  59. package/v1/slot-types.d.ts +5 -0
  60. package/v1/slot-types.js +9 -0
  61. package/v1/task.d.ts +2 -0
  62. package/version.d.ts +1 -1
  63. package/version.js +1 -1
  64. package/workflow.d.ts +2 -2
@@ -5,7 +5,7 @@
5
5
  // protoc v3.19.1
6
6
  // source: dispatcher/dispatcher.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.DispatcherDefinition = exports.ReleaseSlotResponse = exports.ReleaseSlotRequest = exports.RefreshTimeoutResponse = exports.RefreshTimeoutRequest = exports.HeartbeatResponse = exports.HeartbeatRequest = exports.OverridesDataResponse = exports.OverridesData = exports.StepRunResult = exports.WorkflowRunEvent = exports.WorkflowEvent = exports.SubscribeToWorkflowRunsRequest = exports.SubscribeToWorkflowEventsRequest = exports.ActionEventResponse = exports.StepActionEvent = exports.GroupKeyActionEvent = exports.WorkerUnsubscribeResponse = exports.WorkerUnsubscribeRequest = exports.WorkerListenRequest = exports.AssignedAction = exports.UpsertWorkerLabelsResponse = exports.UpsertWorkerLabelsRequest_LabelsEntry = exports.UpsertWorkerLabelsRequest = exports.WorkerRegisterResponse = exports.WorkerRegisterRequest_LabelsEntry = exports.WorkerRegisterRequest = exports.RuntimeInfo = exports.WorkerLabels = exports.WorkflowRunEventType = exports.ResourceEventType = exports.ResourceType = exports.StepActionEventType = exports.GroupKeyActionEventType = exports.ActionType = exports.SDKS = exports.protobufPackage = void 0;
8
+ exports.DispatcherDefinition = exports.GetVersionResponse = exports.GetVersionRequest = exports.ReleaseSlotResponse = exports.ReleaseSlotRequest = exports.RefreshTimeoutResponse = exports.RefreshTimeoutRequest = exports.HeartbeatResponse = exports.HeartbeatRequest = exports.OverridesDataResponse = exports.OverridesData = exports.StepRunResult = exports.WorkflowRunEvent = exports.WorkflowEvent = exports.SubscribeToWorkflowRunsRequest = exports.SubscribeToWorkflowEventsRequest = exports.ActionEventResponse = exports.StepActionEvent = exports.GroupKeyActionEvent = exports.WorkerUnsubscribeResponse = exports.WorkerUnsubscribeRequest = exports.WorkerListenRequest = exports.AssignedAction = exports.UpsertWorkerLabelsResponse = exports.UpsertWorkerLabelsRequest_LabelsEntry = exports.UpsertWorkerLabelsRequest = exports.WorkerRegisterResponse = exports.WorkerRegisterRequest_SlotConfigEntry = exports.WorkerRegisterRequest_LabelsEntry = exports.WorkerRegisterRequest = exports.RuntimeInfo = exports.WorkerLabels = exports.WorkflowRunEventType = exports.ResourceEventType = exports.ResourceType = exports.StepActionEventType = exports.GroupKeyActionEventType = exports.ActionType = exports.SDKS = exports.protobufPackage = void 0;
9
9
  exports.sDKSFromJSON = sDKSFromJSON;
10
10
  exports.sDKSToJSON = sDKSToJSON;
11
11
  exports.actionTypeFromJSON = actionTypeFromJSON;
@@ -30,6 +30,7 @@ var SDKS;
30
30
  SDKS[SDKS["GO"] = 1] = "GO";
31
31
  SDKS[SDKS["PYTHON"] = 2] = "PYTHON";
32
32
  SDKS[SDKS["TYPESCRIPT"] = 3] = "TYPESCRIPT";
33
+ SDKS[SDKS["RUBY"] = 4] = "RUBY";
33
34
  SDKS[SDKS["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
34
35
  })(SDKS || (exports.SDKS = SDKS = {}));
35
36
  function sDKSFromJSON(object) {
@@ -46,6 +47,9 @@ function sDKSFromJSON(object) {
46
47
  case 3:
47
48
  case 'TYPESCRIPT':
48
49
  return SDKS.TYPESCRIPT;
50
+ case 4:
51
+ case 'RUBY':
52
+ return SDKS.RUBY;
49
53
  case -1:
50
54
  case 'UNRECOGNIZED':
51
55
  default:
@@ -62,6 +66,8 @@ function sDKSToJSON(object) {
62
66
  return 'PYTHON';
63
67
  case SDKS.TYPESCRIPT:
64
68
  return 'TYPESCRIPT';
69
+ case SDKS.RUBY:
70
+ return 'RUBY';
65
71
  case SDKS.UNRECOGNIZED:
66
72
  default:
67
73
  return 'UNRECOGNIZED';
@@ -515,10 +521,11 @@ function createBaseWorkerRegisterRequest() {
515
521
  workerName: '',
516
522
  actions: [],
517
523
  services: [],
518
- maxRuns: undefined,
524
+ slots: undefined,
519
525
  labels: {},
520
526
  webhookId: undefined,
521
527
  runtimeInfo: undefined,
528
+ slotConfig: {},
522
529
  };
523
530
  }
524
531
  exports.WorkerRegisterRequest = {
@@ -532,8 +539,8 @@ exports.WorkerRegisterRequest = {
532
539
  for (const v of message.services) {
533
540
  writer.uint32(26).string(v);
534
541
  }
535
- if (message.maxRuns !== undefined) {
536
- writer.uint32(32).int32(message.maxRuns);
542
+ if (message.slots !== undefined) {
543
+ writer.uint32(32).int32(message.slots);
537
544
  }
538
545
  Object.entries(message.labels).forEach(([key, value]) => {
539
546
  exports.WorkerRegisterRequest_LabelsEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
@@ -544,6 +551,9 @@ exports.WorkerRegisterRequest = {
544
551
  if (message.runtimeInfo !== undefined) {
545
552
  exports.RuntimeInfo.encode(message.runtimeInfo, writer.uint32(58).fork()).join();
546
553
  }
554
+ Object.entries(message.slotConfig).forEach(([key, value]) => {
555
+ exports.WorkerRegisterRequest_SlotConfigEntry.encode({ key: key, value }, writer.uint32(74).fork()).join();
556
+ });
547
557
  return writer;
548
558
  },
549
559
  decode(input, length) {
@@ -578,7 +588,7 @@ exports.WorkerRegisterRequest = {
578
588
  if (tag !== 32) {
579
589
  break;
580
590
  }
581
- message.maxRuns = reader.int32();
591
+ message.slots = reader.int32();
582
592
  continue;
583
593
  }
584
594
  case 5: {
@@ -605,6 +615,16 @@ exports.WorkerRegisterRequest = {
605
615
  message.runtimeInfo = exports.RuntimeInfo.decode(reader, reader.uint32());
606
616
  continue;
607
617
  }
618
+ case 9: {
619
+ if (tag !== 74) {
620
+ break;
621
+ }
622
+ const entry9 = exports.WorkerRegisterRequest_SlotConfigEntry.decode(reader, reader.uint32());
623
+ if (entry9.value !== undefined) {
624
+ message.slotConfig[entry9.key] = entry9.value;
625
+ }
626
+ continue;
627
+ }
608
628
  }
609
629
  if ((tag & 7) === 4 || tag === 0) {
610
630
  break;
@@ -622,7 +642,7 @@ exports.WorkerRegisterRequest = {
622
642
  services: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.services)
623
643
  ? object.services.map((e) => globalThis.String(e))
624
644
  : [],
625
- maxRuns: isSet(object.maxRuns) ? globalThis.Number(object.maxRuns) : undefined,
645
+ slots: isSet(object.slots) ? globalThis.Number(object.slots) : undefined,
626
646
  labels: isObject(object.labels)
627
647
  ? Object.entries(object.labels).reduce((acc, [key, value]) => {
628
648
  acc[key] = exports.WorkerLabels.fromJSON(value);
@@ -631,6 +651,12 @@ exports.WorkerRegisterRequest = {
631
651
  : {},
632
652
  webhookId: isSet(object.webhookId) ? globalThis.String(object.webhookId) : undefined,
633
653
  runtimeInfo: isSet(object.runtimeInfo) ? exports.RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
654
+ slotConfig: isObject(object.slotConfig)
655
+ ? Object.entries(object.slotConfig).reduce((acc, [key, value]) => {
656
+ acc[key] = Number(value);
657
+ return acc;
658
+ }, {})
659
+ : {},
634
660
  };
635
661
  },
636
662
  toJSON(message) {
@@ -645,8 +671,8 @@ exports.WorkerRegisterRequest = {
645
671
  if ((_b = message.services) === null || _b === void 0 ? void 0 : _b.length) {
646
672
  obj.services = message.services;
647
673
  }
648
- if (message.maxRuns !== undefined) {
649
- obj.maxRuns = Math.round(message.maxRuns);
674
+ if (message.slots !== undefined) {
675
+ obj.slots = Math.round(message.slots);
650
676
  }
651
677
  if (message.labels) {
652
678
  const entries = Object.entries(message.labels);
@@ -663,18 +689,27 @@ exports.WorkerRegisterRequest = {
663
689
  if (message.runtimeInfo !== undefined) {
664
690
  obj.runtimeInfo = exports.RuntimeInfo.toJSON(message.runtimeInfo);
665
691
  }
692
+ if (message.slotConfig) {
693
+ const entries = Object.entries(message.slotConfig);
694
+ if (entries.length > 0) {
695
+ obj.slotConfig = {};
696
+ entries.forEach(([k, v]) => {
697
+ obj.slotConfig[k] = Math.round(v);
698
+ });
699
+ }
700
+ }
666
701
  return obj;
667
702
  },
668
703
  create(base) {
669
704
  return exports.WorkerRegisterRequest.fromPartial(base !== null && base !== void 0 ? base : {});
670
705
  },
671
706
  fromPartial(object) {
672
- var _a, _b, _c, _d, _e, _f;
707
+ var _a, _b, _c, _d, _e, _f, _g;
673
708
  const message = createBaseWorkerRegisterRequest();
674
709
  message.workerName = (_a = object.workerName) !== null && _a !== void 0 ? _a : '';
675
710
  message.actions = ((_b = object.actions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
676
711
  message.services = ((_c = object.services) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
677
- message.maxRuns = (_d = object.maxRuns) !== null && _d !== void 0 ? _d : undefined;
712
+ message.slots = (_d = object.slots) !== null && _d !== void 0 ? _d : undefined;
678
713
  message.labels = Object.entries((_e = object.labels) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
679
714
  if (value !== undefined) {
680
715
  acc[key] = exports.WorkerLabels.fromPartial(value);
@@ -686,6 +721,12 @@ exports.WorkerRegisterRequest = {
686
721
  object.runtimeInfo !== undefined && object.runtimeInfo !== null
687
722
  ? exports.RuntimeInfo.fromPartial(object.runtimeInfo)
688
723
  : undefined;
724
+ message.slotConfig = Object.entries((_g = object.slotConfig) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
725
+ if (value !== undefined) {
726
+ acc[key] = globalThis.Number(value);
727
+ }
728
+ return acc;
729
+ }, {});
689
730
  return message;
690
731
  },
691
732
  };
@@ -761,6 +802,75 @@ exports.WorkerRegisterRequest_LabelsEntry = {
761
802
  return message;
762
803
  },
763
804
  };
805
+ function createBaseWorkerRegisterRequest_SlotConfigEntry() {
806
+ return { key: '', value: 0 };
807
+ }
808
+ exports.WorkerRegisterRequest_SlotConfigEntry = {
809
+ encode(message, writer = new wire_1.BinaryWriter()) {
810
+ if (message.key !== '') {
811
+ writer.uint32(10).string(message.key);
812
+ }
813
+ if (message.value !== 0) {
814
+ writer.uint32(16).int32(message.value);
815
+ }
816
+ return writer;
817
+ },
818
+ decode(input, length) {
819
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
820
+ const end = length === undefined ? reader.len : reader.pos + length;
821
+ const message = createBaseWorkerRegisterRequest_SlotConfigEntry();
822
+ while (reader.pos < end) {
823
+ const tag = reader.uint32();
824
+ switch (tag >>> 3) {
825
+ case 1: {
826
+ if (tag !== 10) {
827
+ break;
828
+ }
829
+ message.key = reader.string();
830
+ continue;
831
+ }
832
+ case 2: {
833
+ if (tag !== 16) {
834
+ break;
835
+ }
836
+ message.value = reader.int32();
837
+ continue;
838
+ }
839
+ }
840
+ if ((tag & 7) === 4 || tag === 0) {
841
+ break;
842
+ }
843
+ reader.skip(tag & 7);
844
+ }
845
+ return message;
846
+ },
847
+ fromJSON(object) {
848
+ return {
849
+ key: isSet(object.key) ? globalThis.String(object.key) : '',
850
+ value: isSet(object.value) ? globalThis.Number(object.value) : 0,
851
+ };
852
+ },
853
+ toJSON(message) {
854
+ const obj = {};
855
+ if (message.key !== '') {
856
+ obj.key = message.key;
857
+ }
858
+ if (message.value !== 0) {
859
+ obj.value = Math.round(message.value);
860
+ }
861
+ return obj;
862
+ },
863
+ create(base) {
864
+ return exports.WorkerRegisterRequest_SlotConfigEntry.fromPartial(base !== null && base !== void 0 ? base : {});
865
+ },
866
+ fromPartial(object) {
867
+ var _a, _b;
868
+ const message = createBaseWorkerRegisterRequest_SlotConfigEntry();
869
+ message.key = (_a = object.key) !== null && _a !== void 0 ? _a : '';
870
+ message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0;
871
+ return message;
872
+ },
873
+ };
764
874
  function createBaseWorkerRegisterResponse() {
765
875
  return { tenantId: '', workerId: '', workerName: '' };
766
876
  }
@@ -1082,12 +1192,12 @@ function createBaseAssignedAction() {
1082
1192
  jobId: '',
1083
1193
  jobName: '',
1084
1194
  jobRunId: '',
1085
- stepId: '',
1086
- stepRunId: '',
1195
+ taskId: '',
1196
+ taskRunExternalId: '',
1087
1197
  actionId: '',
1088
1198
  actionType: 0,
1089
1199
  actionPayload: '',
1090
- stepName: '',
1200
+ taskName: '',
1091
1201
  retryCount: 0,
1092
1202
  additionalMetadata: undefined,
1093
1203
  childWorkflowIndex: undefined,
@@ -1118,11 +1228,11 @@ exports.AssignedAction = {
1118
1228
  if (message.jobRunId !== '') {
1119
1229
  writer.uint32(50).string(message.jobRunId);
1120
1230
  }
1121
- if (message.stepId !== '') {
1122
- writer.uint32(58).string(message.stepId);
1231
+ if (message.taskId !== '') {
1232
+ writer.uint32(58).string(message.taskId);
1123
1233
  }
1124
- if (message.stepRunId !== '') {
1125
- writer.uint32(66).string(message.stepRunId);
1234
+ if (message.taskRunExternalId !== '') {
1235
+ writer.uint32(66).string(message.taskRunExternalId);
1126
1236
  }
1127
1237
  if (message.actionId !== '') {
1128
1238
  writer.uint32(74).string(message.actionId);
@@ -1133,8 +1243,8 @@ exports.AssignedAction = {
1133
1243
  if (message.actionPayload !== '') {
1134
1244
  writer.uint32(90).string(message.actionPayload);
1135
1245
  }
1136
- if (message.stepName !== '') {
1137
- writer.uint32(98).string(message.stepName);
1246
+ if (message.taskName !== '') {
1247
+ writer.uint32(98).string(message.taskName);
1138
1248
  }
1139
1249
  if (message.retryCount !== 0) {
1140
1250
  writer.uint32(104).int32(message.retryCount);
@@ -1215,14 +1325,14 @@ exports.AssignedAction = {
1215
1325
  if (tag !== 58) {
1216
1326
  break;
1217
1327
  }
1218
- message.stepId = reader.string();
1328
+ message.taskId = reader.string();
1219
1329
  continue;
1220
1330
  }
1221
1331
  case 8: {
1222
1332
  if (tag !== 66) {
1223
1333
  break;
1224
1334
  }
1225
- message.stepRunId = reader.string();
1335
+ message.taskRunExternalId = reader.string();
1226
1336
  continue;
1227
1337
  }
1228
1338
  case 9: {
@@ -1250,7 +1360,7 @@ exports.AssignedAction = {
1250
1360
  if (tag !== 98) {
1251
1361
  break;
1252
1362
  }
1253
- message.stepName = reader.string();
1363
+ message.taskName = reader.string();
1254
1364
  continue;
1255
1365
  }
1256
1366
  case 13: {
@@ -1327,12 +1437,14 @@ exports.AssignedAction = {
1327
1437
  jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
1328
1438
  jobName: isSet(object.jobName) ? globalThis.String(object.jobName) : '',
1329
1439
  jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
1330
- stepId: isSet(object.stepId) ? globalThis.String(object.stepId) : '',
1331
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
1440
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
1441
+ taskRunExternalId: isSet(object.taskRunExternalId)
1442
+ ? globalThis.String(object.taskRunExternalId)
1443
+ : '',
1332
1444
  actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
1333
1445
  actionType: isSet(object.actionType) ? actionTypeFromJSON(object.actionType) : 0,
1334
1446
  actionPayload: isSet(object.actionPayload) ? globalThis.String(object.actionPayload) : '',
1335
- stepName: isSet(object.stepName) ? globalThis.String(object.stepName) : '',
1447
+ taskName: isSet(object.taskName) ? globalThis.String(object.taskName) : '',
1336
1448
  retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : 0,
1337
1449
  additionalMetadata: isSet(object.additionalMetadata)
1338
1450
  ? globalThis.String(object.additionalMetadata)
@@ -1373,11 +1485,11 @@ exports.AssignedAction = {
1373
1485
  if (message.jobRunId !== '') {
1374
1486
  obj.jobRunId = message.jobRunId;
1375
1487
  }
1376
- if (message.stepId !== '') {
1377
- obj.stepId = message.stepId;
1488
+ if (message.taskId !== '') {
1489
+ obj.taskId = message.taskId;
1378
1490
  }
1379
- if (message.stepRunId !== '') {
1380
- obj.stepRunId = message.stepRunId;
1491
+ if (message.taskRunExternalId !== '') {
1492
+ obj.taskRunExternalId = message.taskRunExternalId;
1381
1493
  }
1382
1494
  if (message.actionId !== '') {
1383
1495
  obj.actionId = message.actionId;
@@ -1388,8 +1500,8 @@ exports.AssignedAction = {
1388
1500
  if (message.actionPayload !== '') {
1389
1501
  obj.actionPayload = message.actionPayload;
1390
1502
  }
1391
- if (message.stepName !== '') {
1392
- obj.stepName = message.stepName;
1503
+ if (message.taskName !== '') {
1504
+ obj.taskName = message.taskName;
1393
1505
  }
1394
1506
  if (message.retryCount !== 0) {
1395
1507
  obj.retryCount = Math.round(message.retryCount);
@@ -1429,12 +1541,12 @@ exports.AssignedAction = {
1429
1541
  message.jobId = (_d = object.jobId) !== null && _d !== void 0 ? _d : '';
1430
1542
  message.jobName = (_e = object.jobName) !== null && _e !== void 0 ? _e : '';
1431
1543
  message.jobRunId = (_f = object.jobRunId) !== null && _f !== void 0 ? _f : '';
1432
- message.stepId = (_g = object.stepId) !== null && _g !== void 0 ? _g : '';
1433
- message.stepRunId = (_h = object.stepRunId) !== null && _h !== void 0 ? _h : '';
1544
+ message.taskId = (_g = object.taskId) !== null && _g !== void 0 ? _g : '';
1545
+ message.taskRunExternalId = (_h = object.taskRunExternalId) !== null && _h !== void 0 ? _h : '';
1434
1546
  message.actionId = (_j = object.actionId) !== null && _j !== void 0 ? _j : '';
1435
1547
  message.actionType = (_k = object.actionType) !== null && _k !== void 0 ? _k : 0;
1436
1548
  message.actionPayload = (_l = object.actionPayload) !== null && _l !== void 0 ? _l : '';
1437
- message.stepName = (_m = object.stepName) !== null && _m !== void 0 ? _m : '';
1549
+ message.taskName = (_m = object.taskName) !== null && _m !== void 0 ? _m : '';
1438
1550
  message.retryCount = (_o = object.retryCount) !== null && _o !== void 0 ? _o : 0;
1439
1551
  message.additionalMetadata = (_p = object.additionalMetadata) !== null && _p !== void 0 ? _p : undefined;
1440
1552
  message.childWorkflowIndex = (_q = object.childWorkflowIndex) !== null && _q !== void 0 ? _q : undefined;
@@ -1780,8 +1892,8 @@ function createBaseStepActionEvent() {
1780
1892
  workerId: '',
1781
1893
  jobId: '',
1782
1894
  jobRunId: '',
1783
- stepId: '',
1784
- stepRunId: '',
1895
+ taskId: '',
1896
+ taskRunExternalId: '',
1785
1897
  actionId: '',
1786
1898
  eventTimestamp: undefined,
1787
1899
  eventType: 0,
@@ -1801,11 +1913,11 @@ exports.StepActionEvent = {
1801
1913
  if (message.jobRunId !== '') {
1802
1914
  writer.uint32(26).string(message.jobRunId);
1803
1915
  }
1804
- if (message.stepId !== '') {
1805
- writer.uint32(34).string(message.stepId);
1916
+ if (message.taskId !== '') {
1917
+ writer.uint32(34).string(message.taskId);
1806
1918
  }
1807
- if (message.stepRunId !== '') {
1808
- writer.uint32(42).string(message.stepRunId);
1919
+ if (message.taskRunExternalId !== '') {
1920
+ writer.uint32(42).string(message.taskRunExternalId);
1809
1921
  }
1810
1922
  if (message.actionId !== '') {
1811
1923
  writer.uint32(50).string(message.actionId);
@@ -1859,14 +1971,14 @@ exports.StepActionEvent = {
1859
1971
  if (tag !== 34) {
1860
1972
  break;
1861
1973
  }
1862
- message.stepId = reader.string();
1974
+ message.taskId = reader.string();
1863
1975
  continue;
1864
1976
  }
1865
1977
  case 5: {
1866
1978
  if (tag !== 42) {
1867
1979
  break;
1868
1980
  }
1869
- message.stepRunId = reader.string();
1981
+ message.taskRunExternalId = reader.string();
1870
1982
  continue;
1871
1983
  }
1872
1984
  case 6: {
@@ -1924,8 +2036,10 @@ exports.StepActionEvent = {
1924
2036
  workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1925
2037
  jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
1926
2038
  jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
1927
- stepId: isSet(object.stepId) ? globalThis.String(object.stepId) : '',
1928
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
2039
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
2040
+ taskRunExternalId: isSet(object.taskRunExternalId)
2041
+ ? globalThis.String(object.taskRunExternalId)
2042
+ : '',
1929
2043
  actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
1930
2044
  eventTimestamp: isSet(object.eventTimestamp)
1931
2045
  ? fromJsonTimestamp(object.eventTimestamp)
@@ -1949,11 +2063,11 @@ exports.StepActionEvent = {
1949
2063
  if (message.jobRunId !== '') {
1950
2064
  obj.jobRunId = message.jobRunId;
1951
2065
  }
1952
- if (message.stepId !== '') {
1953
- obj.stepId = message.stepId;
2066
+ if (message.taskId !== '') {
2067
+ obj.taskId = message.taskId;
1954
2068
  }
1955
- if (message.stepRunId !== '') {
1956
- obj.stepRunId = message.stepRunId;
2069
+ if (message.taskRunExternalId !== '') {
2070
+ obj.taskRunExternalId = message.taskRunExternalId;
1957
2071
  }
1958
2072
  if (message.actionId !== '') {
1959
2073
  obj.actionId = message.actionId;
@@ -1984,8 +2098,8 @@ exports.StepActionEvent = {
1984
2098
  message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
1985
2099
  message.jobId = (_b = object.jobId) !== null && _b !== void 0 ? _b : '';
1986
2100
  message.jobRunId = (_c = object.jobRunId) !== null && _c !== void 0 ? _c : '';
1987
- message.stepId = (_d = object.stepId) !== null && _d !== void 0 ? _d : '';
1988
- message.stepRunId = (_e = object.stepRunId) !== null && _e !== void 0 ? _e : '';
2101
+ message.taskId = (_d = object.taskId) !== null && _d !== void 0 ? _d : '';
2102
+ message.taskRunExternalId = (_e = object.taskRunExternalId) !== null && _e !== void 0 ? _e : '';
1989
2103
  message.actionId = (_f = object.actionId) !== null && _f !== void 0 ? _f : '';
1990
2104
  message.eventTimestamp = (_g = object.eventTimestamp) !== null && _g !== void 0 ? _g : undefined;
1991
2105
  message.eventType = (_h = object.eventType) !== null && _h !== void 0 ? _h : 0;
@@ -2217,7 +2331,7 @@ function createBaseWorkflowEvent() {
2217
2331
  eventTimestamp: undefined,
2218
2332
  eventPayload: '',
2219
2333
  hangup: false,
2220
- stepRetries: undefined,
2334
+ taskRetries: undefined,
2221
2335
  retryCount: undefined,
2222
2336
  eventIndex: undefined,
2223
2337
  };
@@ -2245,8 +2359,8 @@ exports.WorkflowEvent = {
2245
2359
  if (message.hangup !== false) {
2246
2360
  writer.uint32(56).bool(message.hangup);
2247
2361
  }
2248
- if (message.stepRetries !== undefined) {
2249
- writer.uint32(64).int32(message.stepRetries);
2362
+ if (message.taskRetries !== undefined) {
2363
+ writer.uint32(64).int32(message.taskRetries);
2250
2364
  }
2251
2365
  if (message.retryCount !== undefined) {
2252
2366
  writer.uint32(72).int32(message.retryCount);
@@ -2316,7 +2430,7 @@ exports.WorkflowEvent = {
2316
2430
  if (tag !== 64) {
2317
2431
  break;
2318
2432
  }
2319
- message.stepRetries = reader.int32();
2433
+ message.taskRetries = reader.int32();
2320
2434
  continue;
2321
2435
  }
2322
2436
  case 9: {
@@ -2352,7 +2466,7 @@ exports.WorkflowEvent = {
2352
2466
  : undefined,
2353
2467
  eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
2354
2468
  hangup: isSet(object.hangup) ? globalThis.Boolean(object.hangup) : false,
2355
- stepRetries: isSet(object.stepRetries) ? globalThis.Number(object.stepRetries) : undefined,
2469
+ taskRetries: isSet(object.taskRetries) ? globalThis.Number(object.taskRetries) : undefined,
2356
2470
  retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : undefined,
2357
2471
  eventIndex: isSet(object.eventIndex) ? globalThis.Number(object.eventIndex) : undefined,
2358
2472
  };
@@ -2380,8 +2494,8 @@ exports.WorkflowEvent = {
2380
2494
  if (message.hangup !== false) {
2381
2495
  obj.hangup = message.hangup;
2382
2496
  }
2383
- if (message.stepRetries !== undefined) {
2384
- obj.stepRetries = Math.round(message.stepRetries);
2497
+ if (message.taskRetries !== undefined) {
2498
+ obj.taskRetries = Math.round(message.taskRetries);
2385
2499
  }
2386
2500
  if (message.retryCount !== undefined) {
2387
2501
  obj.retryCount = Math.round(message.retryCount);
@@ -2404,7 +2518,7 @@ exports.WorkflowEvent = {
2404
2518
  message.eventTimestamp = (_e = object.eventTimestamp) !== null && _e !== void 0 ? _e : undefined;
2405
2519
  message.eventPayload = (_f = object.eventPayload) !== null && _f !== void 0 ? _f : '';
2406
2520
  message.hangup = (_g = object.hangup) !== null && _g !== void 0 ? _g : false;
2407
- message.stepRetries = (_h = object.stepRetries) !== null && _h !== void 0 ? _h : undefined;
2521
+ message.taskRetries = (_h = object.taskRetries) !== null && _h !== void 0 ? _h : undefined;
2408
2522
  message.retryCount = (_j = object.retryCount) !== null && _j !== void 0 ? _j : undefined;
2409
2523
  message.eventIndex = (_k = object.eventIndex) !== null && _k !== void 0 ? _k : undefined;
2410
2524
  return message;
@@ -2515,15 +2629,15 @@ exports.WorkflowRunEvent = {
2515
2629
  },
2516
2630
  };
2517
2631
  function createBaseStepRunResult() {
2518
- return { stepRunId: '', stepReadableId: '', jobRunId: '', error: undefined, output: undefined };
2632
+ return { taskRunExternalId: '', taskName: '', jobRunId: '', error: undefined, output: undefined };
2519
2633
  }
2520
2634
  exports.StepRunResult = {
2521
2635
  encode(message, writer = new wire_1.BinaryWriter()) {
2522
- if (message.stepRunId !== '') {
2523
- writer.uint32(10).string(message.stepRunId);
2636
+ if (message.taskRunExternalId !== '') {
2637
+ writer.uint32(10).string(message.taskRunExternalId);
2524
2638
  }
2525
- if (message.stepReadableId !== '') {
2526
- writer.uint32(18).string(message.stepReadableId);
2639
+ if (message.taskName !== '') {
2640
+ writer.uint32(18).string(message.taskName);
2527
2641
  }
2528
2642
  if (message.jobRunId !== '') {
2529
2643
  writer.uint32(26).string(message.jobRunId);
@@ -2547,14 +2661,14 @@ exports.StepRunResult = {
2547
2661
  if (tag !== 10) {
2548
2662
  break;
2549
2663
  }
2550
- message.stepRunId = reader.string();
2664
+ message.taskRunExternalId = reader.string();
2551
2665
  continue;
2552
2666
  }
2553
2667
  case 2: {
2554
2668
  if (tag !== 18) {
2555
2669
  break;
2556
2670
  }
2557
- message.stepReadableId = reader.string();
2671
+ message.taskName = reader.string();
2558
2672
  continue;
2559
2673
  }
2560
2674
  case 3: {
@@ -2588,8 +2702,10 @@ exports.StepRunResult = {
2588
2702
  },
2589
2703
  fromJSON(object) {
2590
2704
  return {
2591
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
2592
- stepReadableId: isSet(object.stepReadableId) ? globalThis.String(object.stepReadableId) : '',
2705
+ taskRunExternalId: isSet(object.taskRunExternalId)
2706
+ ? globalThis.String(object.taskRunExternalId)
2707
+ : '',
2708
+ taskName: isSet(object.taskName) ? globalThis.String(object.taskName) : '',
2593
2709
  jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
2594
2710
  error: isSet(object.error) ? globalThis.String(object.error) : undefined,
2595
2711
  output: isSet(object.output) ? globalThis.String(object.output) : undefined,
@@ -2597,11 +2713,11 @@ exports.StepRunResult = {
2597
2713
  },
2598
2714
  toJSON(message) {
2599
2715
  const obj = {};
2600
- if (message.stepRunId !== '') {
2601
- obj.stepRunId = message.stepRunId;
2716
+ if (message.taskRunExternalId !== '') {
2717
+ obj.taskRunExternalId = message.taskRunExternalId;
2602
2718
  }
2603
- if (message.stepReadableId !== '') {
2604
- obj.stepReadableId = message.stepReadableId;
2719
+ if (message.taskName !== '') {
2720
+ obj.taskName = message.taskName;
2605
2721
  }
2606
2722
  if (message.jobRunId !== '') {
2607
2723
  obj.jobRunId = message.jobRunId;
@@ -2620,8 +2736,8 @@ exports.StepRunResult = {
2620
2736
  fromPartial(object) {
2621
2737
  var _a, _b, _c, _d, _e;
2622
2738
  const message = createBaseStepRunResult();
2623
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
2624
- message.stepReadableId = (_b = object.stepReadableId) !== null && _b !== void 0 ? _b : '';
2739
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
2740
+ message.taskName = (_b = object.taskName) !== null && _b !== void 0 ? _b : '';
2625
2741
  message.jobRunId = (_c = object.jobRunId) !== null && _c !== void 0 ? _c : '';
2626
2742
  message.error = (_d = object.error) !== null && _d !== void 0 ? _d : undefined;
2627
2743
  message.output = (_e = object.output) !== null && _e !== void 0 ? _e : undefined;
@@ -2629,12 +2745,12 @@ exports.StepRunResult = {
2629
2745
  },
2630
2746
  };
2631
2747
  function createBaseOverridesData() {
2632
- return { stepRunId: '', path: '', value: '', callerFilename: '' };
2748
+ return { taskRunExternalId: '', path: '', value: '', callerFilename: '' };
2633
2749
  }
2634
2750
  exports.OverridesData = {
2635
2751
  encode(message, writer = new wire_1.BinaryWriter()) {
2636
- if (message.stepRunId !== '') {
2637
- writer.uint32(10).string(message.stepRunId);
2752
+ if (message.taskRunExternalId !== '') {
2753
+ writer.uint32(10).string(message.taskRunExternalId);
2638
2754
  }
2639
2755
  if (message.path !== '') {
2640
2756
  writer.uint32(18).string(message.path);
@@ -2658,7 +2774,7 @@ exports.OverridesData = {
2658
2774
  if (tag !== 10) {
2659
2775
  break;
2660
2776
  }
2661
- message.stepRunId = reader.string();
2777
+ message.taskRunExternalId = reader.string();
2662
2778
  continue;
2663
2779
  }
2664
2780
  case 2: {
@@ -2692,7 +2808,9 @@ exports.OverridesData = {
2692
2808
  },
2693
2809
  fromJSON(object) {
2694
2810
  return {
2695
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
2811
+ taskRunExternalId: isSet(object.taskRunExternalId)
2812
+ ? globalThis.String(object.taskRunExternalId)
2813
+ : '',
2696
2814
  path: isSet(object.path) ? globalThis.String(object.path) : '',
2697
2815
  value: isSet(object.value) ? globalThis.String(object.value) : '',
2698
2816
  callerFilename: isSet(object.callerFilename) ? globalThis.String(object.callerFilename) : '',
@@ -2700,8 +2818,8 @@ exports.OverridesData = {
2700
2818
  },
2701
2819
  toJSON(message) {
2702
2820
  const obj = {};
2703
- if (message.stepRunId !== '') {
2704
- obj.stepRunId = message.stepRunId;
2821
+ if (message.taskRunExternalId !== '') {
2822
+ obj.taskRunExternalId = message.taskRunExternalId;
2705
2823
  }
2706
2824
  if (message.path !== '') {
2707
2825
  obj.path = message.path;
@@ -2720,7 +2838,7 @@ exports.OverridesData = {
2720
2838
  fromPartial(object) {
2721
2839
  var _a, _b, _c, _d;
2722
2840
  const message = createBaseOverridesData();
2723
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
2841
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
2724
2842
  message.path = (_b = object.path) !== null && _b !== void 0 ? _b : '';
2725
2843
  message.value = (_c = object.value) !== null && _c !== void 0 ? _c : '';
2726
2844
  message.callerFilename = (_d = object.callerFilename) !== null && _d !== void 0 ? _d : '';
@@ -2871,12 +2989,12 @@ exports.HeartbeatResponse = {
2871
2989
  },
2872
2990
  };
2873
2991
  function createBaseRefreshTimeoutRequest() {
2874
- return { stepRunId: '', incrementTimeoutBy: '' };
2992
+ return { taskRunExternalId: '', incrementTimeoutBy: '' };
2875
2993
  }
2876
2994
  exports.RefreshTimeoutRequest = {
2877
2995
  encode(message, writer = new wire_1.BinaryWriter()) {
2878
- if (message.stepRunId !== '') {
2879
- writer.uint32(10).string(message.stepRunId);
2996
+ if (message.taskRunExternalId !== '') {
2997
+ writer.uint32(10).string(message.taskRunExternalId);
2880
2998
  }
2881
2999
  if (message.incrementTimeoutBy !== '') {
2882
3000
  writer.uint32(18).string(message.incrementTimeoutBy);
@@ -2894,7 +3012,7 @@ exports.RefreshTimeoutRequest = {
2894
3012
  if (tag !== 10) {
2895
3013
  break;
2896
3014
  }
2897
- message.stepRunId = reader.string();
3015
+ message.taskRunExternalId = reader.string();
2898
3016
  continue;
2899
3017
  }
2900
3018
  case 2: {
@@ -2914,7 +3032,9 @@ exports.RefreshTimeoutRequest = {
2914
3032
  },
2915
3033
  fromJSON(object) {
2916
3034
  return {
2917
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
3035
+ taskRunExternalId: isSet(object.taskRunExternalId)
3036
+ ? globalThis.String(object.taskRunExternalId)
3037
+ : '',
2918
3038
  incrementTimeoutBy: isSet(object.incrementTimeoutBy)
2919
3039
  ? globalThis.String(object.incrementTimeoutBy)
2920
3040
  : '',
@@ -2922,8 +3042,8 @@ exports.RefreshTimeoutRequest = {
2922
3042
  },
2923
3043
  toJSON(message) {
2924
3044
  const obj = {};
2925
- if (message.stepRunId !== '') {
2926
- obj.stepRunId = message.stepRunId;
3045
+ if (message.taskRunExternalId !== '') {
3046
+ obj.taskRunExternalId = message.taskRunExternalId;
2927
3047
  }
2928
3048
  if (message.incrementTimeoutBy !== '') {
2929
3049
  obj.incrementTimeoutBy = message.incrementTimeoutBy;
@@ -2936,7 +3056,7 @@ exports.RefreshTimeoutRequest = {
2936
3056
  fromPartial(object) {
2937
3057
  var _a, _b;
2938
3058
  const message = createBaseRefreshTimeoutRequest();
2939
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
3059
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
2940
3060
  message.incrementTimeoutBy = (_b = object.incrementTimeoutBy) !== null && _b !== void 0 ? _b : '';
2941
3061
  return message;
2942
3062
  },
@@ -2994,12 +3114,12 @@ exports.RefreshTimeoutResponse = {
2994
3114
  },
2995
3115
  };
2996
3116
  function createBaseReleaseSlotRequest() {
2997
- return { stepRunId: '' };
3117
+ return { taskRunExternalId: '' };
2998
3118
  }
2999
3119
  exports.ReleaseSlotRequest = {
3000
3120
  encode(message, writer = new wire_1.BinaryWriter()) {
3001
- if (message.stepRunId !== '') {
3002
- writer.uint32(10).string(message.stepRunId);
3121
+ if (message.taskRunExternalId !== '') {
3122
+ writer.uint32(10).string(message.taskRunExternalId);
3003
3123
  }
3004
3124
  return writer;
3005
3125
  },
@@ -3014,7 +3134,7 @@ exports.ReleaseSlotRequest = {
3014
3134
  if (tag !== 10) {
3015
3135
  break;
3016
3136
  }
3017
- message.stepRunId = reader.string();
3137
+ message.taskRunExternalId = reader.string();
3018
3138
  continue;
3019
3139
  }
3020
3140
  }
@@ -3026,12 +3146,16 @@ exports.ReleaseSlotRequest = {
3026
3146
  return message;
3027
3147
  },
3028
3148
  fromJSON(object) {
3029
- return { stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '' };
3149
+ return {
3150
+ taskRunExternalId: isSet(object.taskRunExternalId)
3151
+ ? globalThis.String(object.taskRunExternalId)
3152
+ : '',
3153
+ };
3030
3154
  },
3031
3155
  toJSON(message) {
3032
3156
  const obj = {};
3033
- if (message.stepRunId !== '') {
3034
- obj.stepRunId = message.stepRunId;
3157
+ if (message.taskRunExternalId !== '') {
3158
+ obj.taskRunExternalId = message.taskRunExternalId;
3035
3159
  }
3036
3160
  return obj;
3037
3161
  },
@@ -3041,7 +3165,7 @@ exports.ReleaseSlotRequest = {
3041
3165
  fromPartial(object) {
3042
3166
  var _a;
3043
3167
  const message = createBaseReleaseSlotRequest();
3044
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
3168
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
3045
3169
  return message;
3046
3170
  },
3047
3171
  };
@@ -3082,6 +3206,95 @@ exports.ReleaseSlotResponse = {
3082
3206
  return message;
3083
3207
  },
3084
3208
  };
3209
+ function createBaseGetVersionRequest() {
3210
+ return {};
3211
+ }
3212
+ exports.GetVersionRequest = {
3213
+ encode(_, writer = new wire_1.BinaryWriter()) {
3214
+ return writer;
3215
+ },
3216
+ decode(input, length) {
3217
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3218
+ const end = length === undefined ? reader.len : reader.pos + length;
3219
+ const message = createBaseGetVersionRequest();
3220
+ while (reader.pos < end) {
3221
+ const tag = reader.uint32();
3222
+ switch (tag >>> 3) {
3223
+ }
3224
+ if ((tag & 7) === 4 || tag === 0) {
3225
+ break;
3226
+ }
3227
+ reader.skip(tag & 7);
3228
+ }
3229
+ return message;
3230
+ },
3231
+ fromJSON(_) {
3232
+ return {};
3233
+ },
3234
+ toJSON(_) {
3235
+ const obj = {};
3236
+ return obj;
3237
+ },
3238
+ create(base) {
3239
+ return exports.GetVersionRequest.fromPartial(base !== null && base !== void 0 ? base : {});
3240
+ },
3241
+ fromPartial(_) {
3242
+ const message = createBaseGetVersionRequest();
3243
+ return message;
3244
+ },
3245
+ };
3246
+ function createBaseGetVersionResponse() {
3247
+ return { version: '' };
3248
+ }
3249
+ exports.GetVersionResponse = {
3250
+ encode(message, writer = new wire_1.BinaryWriter()) {
3251
+ if (message.version !== '') {
3252
+ writer.uint32(10).string(message.version);
3253
+ }
3254
+ return writer;
3255
+ },
3256
+ decode(input, length) {
3257
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
3258
+ const end = length === undefined ? reader.len : reader.pos + length;
3259
+ const message = createBaseGetVersionResponse();
3260
+ while (reader.pos < end) {
3261
+ const tag = reader.uint32();
3262
+ switch (tag >>> 3) {
3263
+ case 1: {
3264
+ if (tag !== 10) {
3265
+ break;
3266
+ }
3267
+ message.version = reader.string();
3268
+ continue;
3269
+ }
3270
+ }
3271
+ if ((tag & 7) === 4 || tag === 0) {
3272
+ break;
3273
+ }
3274
+ reader.skip(tag & 7);
3275
+ }
3276
+ return message;
3277
+ },
3278
+ fromJSON(object) {
3279
+ return { version: isSet(object.version) ? globalThis.String(object.version) : '' };
3280
+ },
3281
+ toJSON(message) {
3282
+ const obj = {};
3283
+ if (message.version !== '') {
3284
+ obj.version = message.version;
3285
+ }
3286
+ return obj;
3287
+ },
3288
+ create(base) {
3289
+ return exports.GetVersionResponse.fromPartial(base !== null && base !== void 0 ? base : {});
3290
+ },
3291
+ fromPartial(object) {
3292
+ var _a;
3293
+ const message = createBaseGetVersionResponse();
3294
+ message.version = (_a = object.version) !== null && _a !== void 0 ? _a : '';
3295
+ return message;
3296
+ },
3297
+ };
3085
3298
  exports.DispatcherDefinition = {
3086
3299
  name: 'Dispatcher',
3087
3300
  fullName: 'Dispatcher',
@@ -3195,6 +3408,19 @@ exports.DispatcherDefinition = {
3195
3408
  responseStream: false,
3196
3409
  options: {},
3197
3410
  },
3411
+ /**
3412
+ * GetVersion returns the dispatcher protocol version as a simple integer.
3413
+ * SDKs use this to determine feature support (e.g. slot_config registration).
3414
+ * Old engines that do not implement this RPC will return UNIMPLEMENTED.
3415
+ */
3416
+ getVersion: {
3417
+ name: 'GetVersion',
3418
+ requestType: exports.GetVersionRequest,
3419
+ requestStream: false,
3420
+ responseType: exports.GetVersionResponse,
3421
+ responseStream: false,
3422
+ options: {},
3423
+ },
3198
3424
  },
3199
3425
  };
3200
3426
  function toTimestamp(date) {