@hatchet-dev/typescript-sdk 0.1.31 → 0.2.0

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.
@@ -26,7 +26,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.DispatcherDefinition = exports.OverridesDataResponse = exports.OverridesData = exports.WorkflowEvent = exports.SubscribeToWorkflowEventsRequest = exports.ActionEventResponse = exports.StepActionEvent = exports.GroupKeyActionEvent = exports.WorkerUnsubscribeResponse = exports.WorkerUnsubscribeRequest = exports.WorkerListenRequest = exports.AssignedAction = exports.WorkerRegisterResponse = exports.WorkerRegisterRequest = exports.resourceEventTypeToJSON = exports.resourceEventTypeFromJSON = exports.ResourceEventType = exports.resourceTypeToJSON = exports.resourceTypeFromJSON = exports.ResourceType = exports.stepActionEventTypeToJSON = exports.stepActionEventTypeFromJSON = exports.StepActionEventType = exports.groupKeyActionEventTypeToJSON = exports.groupKeyActionEventTypeFromJSON = exports.GroupKeyActionEventType = exports.actionTypeToJSON = exports.actionTypeFromJSON = exports.ActionType = exports.protobufPackage = void 0;
27
27
  const _m0 = __importStar(require("protobufjs/minimal"));
28
28
  const timestamp_1 = require("../google/protobuf/timestamp");
29
- exports.protobufPackage = "";
29
+ exports.protobufPackage = '';
30
30
  var ActionType;
31
31
  (function (ActionType) {
32
32
  ActionType[ActionType["START_STEP_RUN"] = 0] = "START_STEP_RUN";
@@ -37,16 +37,16 @@ var ActionType;
37
37
  function actionTypeFromJSON(object) {
38
38
  switch (object) {
39
39
  case 0:
40
- case "START_STEP_RUN":
40
+ case 'START_STEP_RUN':
41
41
  return ActionType.START_STEP_RUN;
42
42
  case 1:
43
- case "CANCEL_STEP_RUN":
43
+ case 'CANCEL_STEP_RUN':
44
44
  return ActionType.CANCEL_STEP_RUN;
45
45
  case 2:
46
- case "START_GET_GROUP_KEY":
46
+ case 'START_GET_GROUP_KEY':
47
47
  return ActionType.START_GET_GROUP_KEY;
48
48
  case -1:
49
- case "UNRECOGNIZED":
49
+ case 'UNRECOGNIZED':
50
50
  default:
51
51
  return ActionType.UNRECOGNIZED;
52
52
  }
@@ -55,14 +55,14 @@ exports.actionTypeFromJSON = actionTypeFromJSON;
55
55
  function actionTypeToJSON(object) {
56
56
  switch (object) {
57
57
  case ActionType.START_STEP_RUN:
58
- return "START_STEP_RUN";
58
+ return 'START_STEP_RUN';
59
59
  case ActionType.CANCEL_STEP_RUN:
60
- return "CANCEL_STEP_RUN";
60
+ return 'CANCEL_STEP_RUN';
61
61
  case ActionType.START_GET_GROUP_KEY:
62
- return "START_GET_GROUP_KEY";
62
+ return 'START_GET_GROUP_KEY';
63
63
  case ActionType.UNRECOGNIZED:
64
64
  default:
65
- return "UNRECOGNIZED";
65
+ return 'UNRECOGNIZED';
66
66
  }
67
67
  }
68
68
  exports.actionTypeToJSON = actionTypeToJSON;
@@ -77,19 +77,19 @@ var GroupKeyActionEventType;
77
77
  function groupKeyActionEventTypeFromJSON(object) {
78
78
  switch (object) {
79
79
  case 0:
80
- case "GROUP_KEY_EVENT_TYPE_UNKNOWN":
80
+ case 'GROUP_KEY_EVENT_TYPE_UNKNOWN':
81
81
  return GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_UNKNOWN;
82
82
  case 1:
83
- case "GROUP_KEY_EVENT_TYPE_STARTED":
83
+ case 'GROUP_KEY_EVENT_TYPE_STARTED':
84
84
  return GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_STARTED;
85
85
  case 2:
86
- case "GROUP_KEY_EVENT_TYPE_COMPLETED":
86
+ case 'GROUP_KEY_EVENT_TYPE_COMPLETED':
87
87
  return GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_COMPLETED;
88
88
  case 3:
89
- case "GROUP_KEY_EVENT_TYPE_FAILED":
89
+ case 'GROUP_KEY_EVENT_TYPE_FAILED':
90
90
  return GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_FAILED;
91
91
  case -1:
92
- case "UNRECOGNIZED":
92
+ case 'UNRECOGNIZED':
93
93
  default:
94
94
  return GroupKeyActionEventType.UNRECOGNIZED;
95
95
  }
@@ -98,16 +98,16 @@ exports.groupKeyActionEventTypeFromJSON = groupKeyActionEventTypeFromJSON;
98
98
  function groupKeyActionEventTypeToJSON(object) {
99
99
  switch (object) {
100
100
  case GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_UNKNOWN:
101
- return "GROUP_KEY_EVENT_TYPE_UNKNOWN";
101
+ return 'GROUP_KEY_EVENT_TYPE_UNKNOWN';
102
102
  case GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_STARTED:
103
- return "GROUP_KEY_EVENT_TYPE_STARTED";
103
+ return 'GROUP_KEY_EVENT_TYPE_STARTED';
104
104
  case GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_COMPLETED:
105
- return "GROUP_KEY_EVENT_TYPE_COMPLETED";
105
+ return 'GROUP_KEY_EVENT_TYPE_COMPLETED';
106
106
  case GroupKeyActionEventType.GROUP_KEY_EVENT_TYPE_FAILED:
107
- return "GROUP_KEY_EVENT_TYPE_FAILED";
107
+ return 'GROUP_KEY_EVENT_TYPE_FAILED';
108
108
  case GroupKeyActionEventType.UNRECOGNIZED:
109
109
  default:
110
- return "UNRECOGNIZED";
110
+ return 'UNRECOGNIZED';
111
111
  }
112
112
  }
113
113
  exports.groupKeyActionEventTypeToJSON = groupKeyActionEventTypeToJSON;
@@ -122,19 +122,19 @@ var StepActionEventType;
122
122
  function stepActionEventTypeFromJSON(object) {
123
123
  switch (object) {
124
124
  case 0:
125
- case "STEP_EVENT_TYPE_UNKNOWN":
125
+ case 'STEP_EVENT_TYPE_UNKNOWN':
126
126
  return StepActionEventType.STEP_EVENT_TYPE_UNKNOWN;
127
127
  case 1:
128
- case "STEP_EVENT_TYPE_STARTED":
128
+ case 'STEP_EVENT_TYPE_STARTED':
129
129
  return StepActionEventType.STEP_EVENT_TYPE_STARTED;
130
130
  case 2:
131
- case "STEP_EVENT_TYPE_COMPLETED":
131
+ case 'STEP_EVENT_TYPE_COMPLETED':
132
132
  return StepActionEventType.STEP_EVENT_TYPE_COMPLETED;
133
133
  case 3:
134
- case "STEP_EVENT_TYPE_FAILED":
134
+ case 'STEP_EVENT_TYPE_FAILED':
135
135
  return StepActionEventType.STEP_EVENT_TYPE_FAILED;
136
136
  case -1:
137
- case "UNRECOGNIZED":
137
+ case 'UNRECOGNIZED':
138
138
  default:
139
139
  return StepActionEventType.UNRECOGNIZED;
140
140
  }
@@ -143,16 +143,16 @@ exports.stepActionEventTypeFromJSON = stepActionEventTypeFromJSON;
143
143
  function stepActionEventTypeToJSON(object) {
144
144
  switch (object) {
145
145
  case StepActionEventType.STEP_EVENT_TYPE_UNKNOWN:
146
- return "STEP_EVENT_TYPE_UNKNOWN";
146
+ return 'STEP_EVENT_TYPE_UNKNOWN';
147
147
  case StepActionEventType.STEP_EVENT_TYPE_STARTED:
148
- return "STEP_EVENT_TYPE_STARTED";
148
+ return 'STEP_EVENT_TYPE_STARTED';
149
149
  case StepActionEventType.STEP_EVENT_TYPE_COMPLETED:
150
- return "STEP_EVENT_TYPE_COMPLETED";
150
+ return 'STEP_EVENT_TYPE_COMPLETED';
151
151
  case StepActionEventType.STEP_EVENT_TYPE_FAILED:
152
- return "STEP_EVENT_TYPE_FAILED";
152
+ return 'STEP_EVENT_TYPE_FAILED';
153
153
  case StepActionEventType.UNRECOGNIZED:
154
154
  default:
155
- return "UNRECOGNIZED";
155
+ return 'UNRECOGNIZED';
156
156
  }
157
157
  }
158
158
  exports.stepActionEventTypeToJSON = stepActionEventTypeToJSON;
@@ -166,16 +166,16 @@ var ResourceType;
166
166
  function resourceTypeFromJSON(object) {
167
167
  switch (object) {
168
168
  case 0:
169
- case "RESOURCE_TYPE_UNKNOWN":
169
+ case 'RESOURCE_TYPE_UNKNOWN':
170
170
  return ResourceType.RESOURCE_TYPE_UNKNOWN;
171
171
  case 1:
172
- case "RESOURCE_TYPE_STEP_RUN":
172
+ case 'RESOURCE_TYPE_STEP_RUN':
173
173
  return ResourceType.RESOURCE_TYPE_STEP_RUN;
174
174
  case 2:
175
- case "RESOURCE_TYPE_WORKFLOW_RUN":
175
+ case 'RESOURCE_TYPE_WORKFLOW_RUN':
176
176
  return ResourceType.RESOURCE_TYPE_WORKFLOW_RUN;
177
177
  case -1:
178
- case "UNRECOGNIZED":
178
+ case 'UNRECOGNIZED':
179
179
  default:
180
180
  return ResourceType.UNRECOGNIZED;
181
181
  }
@@ -184,14 +184,14 @@ exports.resourceTypeFromJSON = resourceTypeFromJSON;
184
184
  function resourceTypeToJSON(object) {
185
185
  switch (object) {
186
186
  case ResourceType.RESOURCE_TYPE_UNKNOWN:
187
- return "RESOURCE_TYPE_UNKNOWN";
187
+ return 'RESOURCE_TYPE_UNKNOWN';
188
188
  case ResourceType.RESOURCE_TYPE_STEP_RUN:
189
- return "RESOURCE_TYPE_STEP_RUN";
189
+ return 'RESOURCE_TYPE_STEP_RUN';
190
190
  case ResourceType.RESOURCE_TYPE_WORKFLOW_RUN:
191
- return "RESOURCE_TYPE_WORKFLOW_RUN";
191
+ return 'RESOURCE_TYPE_WORKFLOW_RUN';
192
192
  case ResourceType.UNRECOGNIZED:
193
193
  default:
194
- return "UNRECOGNIZED";
194
+ return 'UNRECOGNIZED';
195
195
  }
196
196
  }
197
197
  exports.resourceTypeToJSON = resourceTypeToJSON;
@@ -208,25 +208,25 @@ var ResourceEventType;
208
208
  function resourceEventTypeFromJSON(object) {
209
209
  switch (object) {
210
210
  case 0:
211
- case "RESOURCE_EVENT_TYPE_UNKNOWN":
211
+ case 'RESOURCE_EVENT_TYPE_UNKNOWN':
212
212
  return ResourceEventType.RESOURCE_EVENT_TYPE_UNKNOWN;
213
213
  case 1:
214
- case "RESOURCE_EVENT_TYPE_STARTED":
214
+ case 'RESOURCE_EVENT_TYPE_STARTED':
215
215
  return ResourceEventType.RESOURCE_EVENT_TYPE_STARTED;
216
216
  case 2:
217
- case "RESOURCE_EVENT_TYPE_COMPLETED":
217
+ case 'RESOURCE_EVENT_TYPE_COMPLETED':
218
218
  return ResourceEventType.RESOURCE_EVENT_TYPE_COMPLETED;
219
219
  case 3:
220
- case "RESOURCE_EVENT_TYPE_FAILED":
220
+ case 'RESOURCE_EVENT_TYPE_FAILED':
221
221
  return ResourceEventType.RESOURCE_EVENT_TYPE_FAILED;
222
222
  case 4:
223
- case "RESOURCE_EVENT_TYPE_CANCELLED":
223
+ case 'RESOURCE_EVENT_TYPE_CANCELLED':
224
224
  return ResourceEventType.RESOURCE_EVENT_TYPE_CANCELLED;
225
225
  case 5:
226
- case "RESOURCE_EVENT_TYPE_TIMED_OUT":
226
+ case 'RESOURCE_EVENT_TYPE_TIMED_OUT':
227
227
  return ResourceEventType.RESOURCE_EVENT_TYPE_TIMED_OUT;
228
228
  case -1:
229
- case "UNRECOGNIZED":
229
+ case 'UNRECOGNIZED':
230
230
  default:
231
231
  return ResourceEventType.UNRECOGNIZED;
232
232
  }
@@ -235,29 +235,29 @@ exports.resourceEventTypeFromJSON = resourceEventTypeFromJSON;
235
235
  function resourceEventTypeToJSON(object) {
236
236
  switch (object) {
237
237
  case ResourceEventType.RESOURCE_EVENT_TYPE_UNKNOWN:
238
- return "RESOURCE_EVENT_TYPE_UNKNOWN";
238
+ return 'RESOURCE_EVENT_TYPE_UNKNOWN';
239
239
  case ResourceEventType.RESOURCE_EVENT_TYPE_STARTED:
240
- return "RESOURCE_EVENT_TYPE_STARTED";
240
+ return 'RESOURCE_EVENT_TYPE_STARTED';
241
241
  case ResourceEventType.RESOURCE_EVENT_TYPE_COMPLETED:
242
- return "RESOURCE_EVENT_TYPE_COMPLETED";
242
+ return 'RESOURCE_EVENT_TYPE_COMPLETED';
243
243
  case ResourceEventType.RESOURCE_EVENT_TYPE_FAILED:
244
- return "RESOURCE_EVENT_TYPE_FAILED";
244
+ return 'RESOURCE_EVENT_TYPE_FAILED';
245
245
  case ResourceEventType.RESOURCE_EVENT_TYPE_CANCELLED:
246
- return "RESOURCE_EVENT_TYPE_CANCELLED";
246
+ return 'RESOURCE_EVENT_TYPE_CANCELLED';
247
247
  case ResourceEventType.RESOURCE_EVENT_TYPE_TIMED_OUT:
248
- return "RESOURCE_EVENT_TYPE_TIMED_OUT";
248
+ return 'RESOURCE_EVENT_TYPE_TIMED_OUT';
249
249
  case ResourceEventType.UNRECOGNIZED:
250
250
  default:
251
- return "UNRECOGNIZED";
251
+ return 'UNRECOGNIZED';
252
252
  }
253
253
  }
254
254
  exports.resourceEventTypeToJSON = resourceEventTypeToJSON;
255
255
  function createBaseWorkerRegisterRequest() {
256
- return { workerName: "", actions: [], services: [], maxRuns: undefined };
256
+ return { workerName: '', actions: [], services: [], maxRuns: undefined };
257
257
  }
258
258
  exports.WorkerRegisterRequest = {
259
259
  encode(message, writer = _m0.Writer.create()) {
260
- if (message.workerName !== "") {
260
+ if (message.workerName !== '') {
261
261
  writer.uint32(10).string(message.workerName);
262
262
  }
263
263
  for (const v of message.actions) {
@@ -312,16 +312,20 @@ exports.WorkerRegisterRequest = {
312
312
  },
313
313
  fromJSON(object) {
314
314
  return {
315
- workerName: isSet(object.workerName) ? globalThis.String(object.workerName) : "",
316
- actions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.actions) ? object.actions.map((e) => globalThis.String(e)) : [],
317
- services: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.services) ? object.services.map((e) => globalThis.String(e)) : [],
315
+ workerName: isSet(object.workerName) ? globalThis.String(object.workerName) : '',
316
+ actions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.actions)
317
+ ? object.actions.map((e) => globalThis.String(e))
318
+ : [],
319
+ services: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.services)
320
+ ? object.services.map((e) => globalThis.String(e))
321
+ : [],
318
322
  maxRuns: isSet(object.maxRuns) ? globalThis.Number(object.maxRuns) : undefined,
319
323
  };
320
324
  },
321
325
  toJSON(message) {
322
326
  var _a, _b;
323
327
  const obj = {};
324
- if (message.workerName !== "") {
328
+ if (message.workerName !== '') {
325
329
  obj.workerName = message.workerName;
326
330
  }
327
331
  if ((_a = message.actions) === null || _a === void 0 ? void 0 : _a.length) {
@@ -341,7 +345,7 @@ exports.WorkerRegisterRequest = {
341
345
  fromPartial(object) {
342
346
  var _a, _b, _c, _d;
343
347
  const message = createBaseWorkerRegisterRequest();
344
- message.workerName = (_a = object.workerName) !== null && _a !== void 0 ? _a : "";
348
+ message.workerName = (_a = object.workerName) !== null && _a !== void 0 ? _a : '';
345
349
  message.actions = ((_b = object.actions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
346
350
  message.services = ((_c = object.services) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
347
351
  message.maxRuns = (_d = object.maxRuns) !== null && _d !== void 0 ? _d : undefined;
@@ -349,17 +353,17 @@ exports.WorkerRegisterRequest = {
349
353
  },
350
354
  };
351
355
  function createBaseWorkerRegisterResponse() {
352
- return { tenantId: "", workerId: "", workerName: "" };
356
+ return { tenantId: '', workerId: '', workerName: '' };
353
357
  }
354
358
  exports.WorkerRegisterResponse = {
355
359
  encode(message, writer = _m0.Writer.create()) {
356
- if (message.tenantId !== "") {
360
+ if (message.tenantId !== '') {
357
361
  writer.uint32(10).string(message.tenantId);
358
362
  }
359
- if (message.workerId !== "") {
363
+ if (message.workerId !== '') {
360
364
  writer.uint32(18).string(message.workerId);
361
365
  }
362
- if (message.workerName !== "") {
366
+ if (message.workerName !== '') {
363
367
  writer.uint32(26).string(message.workerName);
364
368
  }
365
369
  return writer;
@@ -399,20 +403,20 @@ exports.WorkerRegisterResponse = {
399
403
  },
400
404
  fromJSON(object) {
401
405
  return {
402
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
403
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : "",
404
- workerName: isSet(object.workerName) ? globalThis.String(object.workerName) : "",
406
+ tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
407
+ workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
408
+ workerName: isSet(object.workerName) ? globalThis.String(object.workerName) : '',
405
409
  };
406
410
  },
407
411
  toJSON(message) {
408
412
  const obj = {};
409
- if (message.tenantId !== "") {
413
+ if (message.tenantId !== '') {
410
414
  obj.tenantId = message.tenantId;
411
415
  }
412
- if (message.workerId !== "") {
416
+ if (message.workerId !== '') {
413
417
  obj.workerId = message.workerId;
414
418
  }
415
- if (message.workerName !== "") {
419
+ if (message.workerName !== '') {
416
420
  obj.workerName = message.workerName;
417
421
  }
418
422
  return obj;
@@ -423,64 +427,64 @@ exports.WorkerRegisterResponse = {
423
427
  fromPartial(object) {
424
428
  var _a, _b, _c;
425
429
  const message = createBaseWorkerRegisterResponse();
426
- message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
427
- message.workerId = (_b = object.workerId) !== null && _b !== void 0 ? _b : "";
428
- message.workerName = (_c = object.workerName) !== null && _c !== void 0 ? _c : "";
430
+ message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : '';
431
+ message.workerId = (_b = object.workerId) !== null && _b !== void 0 ? _b : '';
432
+ message.workerName = (_c = object.workerName) !== null && _c !== void 0 ? _c : '';
429
433
  return message;
430
434
  },
431
435
  };
432
436
  function createBaseAssignedAction() {
433
437
  return {
434
- tenantId: "",
435
- workflowRunId: "",
436
- getGroupKeyRunId: "",
437
- jobId: "",
438
- jobName: "",
439
- jobRunId: "",
440
- stepId: "",
441
- stepRunId: "",
442
- actionId: "",
438
+ tenantId: '',
439
+ workflowRunId: '',
440
+ getGroupKeyRunId: '',
441
+ jobId: '',
442
+ jobName: '',
443
+ jobRunId: '',
444
+ stepId: '',
445
+ stepRunId: '',
446
+ actionId: '',
443
447
  actionType: 0,
444
- actionPayload: "",
445
- stepName: "",
448
+ actionPayload: '',
449
+ stepName: '',
446
450
  };
447
451
  }
448
452
  exports.AssignedAction = {
449
453
  encode(message, writer = _m0.Writer.create()) {
450
- if (message.tenantId !== "") {
454
+ if (message.tenantId !== '') {
451
455
  writer.uint32(10).string(message.tenantId);
452
456
  }
453
- if (message.workflowRunId !== "") {
457
+ if (message.workflowRunId !== '') {
454
458
  writer.uint32(18).string(message.workflowRunId);
455
459
  }
456
- if (message.getGroupKeyRunId !== "") {
460
+ if (message.getGroupKeyRunId !== '') {
457
461
  writer.uint32(26).string(message.getGroupKeyRunId);
458
462
  }
459
- if (message.jobId !== "") {
463
+ if (message.jobId !== '') {
460
464
  writer.uint32(34).string(message.jobId);
461
465
  }
462
- if (message.jobName !== "") {
466
+ if (message.jobName !== '') {
463
467
  writer.uint32(42).string(message.jobName);
464
468
  }
465
- if (message.jobRunId !== "") {
469
+ if (message.jobRunId !== '') {
466
470
  writer.uint32(50).string(message.jobRunId);
467
471
  }
468
- if (message.stepId !== "") {
472
+ if (message.stepId !== '') {
469
473
  writer.uint32(58).string(message.stepId);
470
474
  }
471
- if (message.stepRunId !== "") {
475
+ if (message.stepRunId !== '') {
472
476
  writer.uint32(66).string(message.stepRunId);
473
477
  }
474
- if (message.actionId !== "") {
478
+ if (message.actionId !== '') {
475
479
  writer.uint32(74).string(message.actionId);
476
480
  }
477
481
  if (message.actionType !== 0) {
478
482
  writer.uint32(80).int32(message.actionType);
479
483
  }
480
- if (message.actionPayload !== "") {
484
+ if (message.actionPayload !== '') {
481
485
  writer.uint32(90).string(message.actionPayload);
482
486
  }
483
- if (message.stepName !== "") {
487
+ if (message.stepName !== '') {
484
488
  writer.uint32(98).string(message.stepName);
485
489
  }
486
490
  return writer;
@@ -574,56 +578,58 @@ exports.AssignedAction = {
574
578
  },
575
579
  fromJSON(object) {
576
580
  return {
577
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
578
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : "",
579
- getGroupKeyRunId: isSet(object.getGroupKeyRunId) ? globalThis.String(object.getGroupKeyRunId) : "",
580
- jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : "",
581
- jobName: isSet(object.jobName) ? globalThis.String(object.jobName) : "",
582
- jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : "",
583
- stepId: isSet(object.stepId) ? globalThis.String(object.stepId) : "",
584
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : "",
585
- actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : "",
581
+ tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
582
+ workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
583
+ getGroupKeyRunId: isSet(object.getGroupKeyRunId)
584
+ ? globalThis.String(object.getGroupKeyRunId)
585
+ : '',
586
+ jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
587
+ jobName: isSet(object.jobName) ? globalThis.String(object.jobName) : '',
588
+ jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
589
+ stepId: isSet(object.stepId) ? globalThis.String(object.stepId) : '',
590
+ stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
591
+ actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
586
592
  actionType: isSet(object.actionType) ? actionTypeFromJSON(object.actionType) : 0,
587
- actionPayload: isSet(object.actionPayload) ? globalThis.String(object.actionPayload) : "",
588
- stepName: isSet(object.stepName) ? globalThis.String(object.stepName) : "",
593
+ actionPayload: isSet(object.actionPayload) ? globalThis.String(object.actionPayload) : '',
594
+ stepName: isSet(object.stepName) ? globalThis.String(object.stepName) : '',
589
595
  };
590
596
  },
591
597
  toJSON(message) {
592
598
  const obj = {};
593
- if (message.tenantId !== "") {
599
+ if (message.tenantId !== '') {
594
600
  obj.tenantId = message.tenantId;
595
601
  }
596
- if (message.workflowRunId !== "") {
602
+ if (message.workflowRunId !== '') {
597
603
  obj.workflowRunId = message.workflowRunId;
598
604
  }
599
- if (message.getGroupKeyRunId !== "") {
605
+ if (message.getGroupKeyRunId !== '') {
600
606
  obj.getGroupKeyRunId = message.getGroupKeyRunId;
601
607
  }
602
- if (message.jobId !== "") {
608
+ if (message.jobId !== '') {
603
609
  obj.jobId = message.jobId;
604
610
  }
605
- if (message.jobName !== "") {
611
+ if (message.jobName !== '') {
606
612
  obj.jobName = message.jobName;
607
613
  }
608
- if (message.jobRunId !== "") {
614
+ if (message.jobRunId !== '') {
609
615
  obj.jobRunId = message.jobRunId;
610
616
  }
611
- if (message.stepId !== "") {
617
+ if (message.stepId !== '') {
612
618
  obj.stepId = message.stepId;
613
619
  }
614
- if (message.stepRunId !== "") {
620
+ if (message.stepRunId !== '') {
615
621
  obj.stepRunId = message.stepRunId;
616
622
  }
617
- if (message.actionId !== "") {
623
+ if (message.actionId !== '') {
618
624
  obj.actionId = message.actionId;
619
625
  }
620
626
  if (message.actionType !== 0) {
621
627
  obj.actionType = actionTypeToJSON(message.actionType);
622
628
  }
623
- if (message.actionPayload !== "") {
629
+ if (message.actionPayload !== '') {
624
630
  obj.actionPayload = message.actionPayload;
625
631
  }
626
- if (message.stepName !== "") {
632
+ if (message.stepName !== '') {
627
633
  obj.stepName = message.stepName;
628
634
  }
629
635
  return obj;
@@ -634,27 +640,27 @@ exports.AssignedAction = {
634
640
  fromPartial(object) {
635
641
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
636
642
  const message = createBaseAssignedAction();
637
- message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
638
- message.workflowRunId = (_b = object.workflowRunId) !== null && _b !== void 0 ? _b : "";
639
- message.getGroupKeyRunId = (_c = object.getGroupKeyRunId) !== null && _c !== void 0 ? _c : "";
640
- message.jobId = (_d = object.jobId) !== null && _d !== void 0 ? _d : "";
641
- message.jobName = (_e = object.jobName) !== null && _e !== void 0 ? _e : "";
642
- message.jobRunId = (_f = object.jobRunId) !== null && _f !== void 0 ? _f : "";
643
- message.stepId = (_g = object.stepId) !== null && _g !== void 0 ? _g : "";
644
- message.stepRunId = (_h = object.stepRunId) !== null && _h !== void 0 ? _h : "";
645
- message.actionId = (_j = object.actionId) !== null && _j !== void 0 ? _j : "";
643
+ message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : '';
644
+ message.workflowRunId = (_b = object.workflowRunId) !== null && _b !== void 0 ? _b : '';
645
+ message.getGroupKeyRunId = (_c = object.getGroupKeyRunId) !== null && _c !== void 0 ? _c : '';
646
+ message.jobId = (_d = object.jobId) !== null && _d !== void 0 ? _d : '';
647
+ message.jobName = (_e = object.jobName) !== null && _e !== void 0 ? _e : '';
648
+ message.jobRunId = (_f = object.jobRunId) !== null && _f !== void 0 ? _f : '';
649
+ message.stepId = (_g = object.stepId) !== null && _g !== void 0 ? _g : '';
650
+ message.stepRunId = (_h = object.stepRunId) !== null && _h !== void 0 ? _h : '';
651
+ message.actionId = (_j = object.actionId) !== null && _j !== void 0 ? _j : '';
646
652
  message.actionType = (_k = object.actionType) !== null && _k !== void 0 ? _k : 0;
647
- message.actionPayload = (_l = object.actionPayload) !== null && _l !== void 0 ? _l : "";
648
- message.stepName = (_m = object.stepName) !== null && _m !== void 0 ? _m : "";
653
+ message.actionPayload = (_l = object.actionPayload) !== null && _l !== void 0 ? _l : '';
654
+ message.stepName = (_m = object.stepName) !== null && _m !== void 0 ? _m : '';
649
655
  return message;
650
656
  },
651
657
  };
652
658
  function createBaseWorkerListenRequest() {
653
- return { workerId: "" };
659
+ return { workerId: '' };
654
660
  }
655
661
  exports.WorkerListenRequest = {
656
662
  encode(message, writer = _m0.Writer.create()) {
657
- if (message.workerId !== "") {
663
+ if (message.workerId !== '') {
658
664
  writer.uint32(10).string(message.workerId);
659
665
  }
660
666
  return writer;
@@ -681,11 +687,11 @@ exports.WorkerListenRequest = {
681
687
  return message;
682
688
  },
683
689
  fromJSON(object) {
684
- return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : "" };
690
+ return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '' };
685
691
  },
686
692
  toJSON(message) {
687
693
  const obj = {};
688
- if (message.workerId !== "") {
694
+ if (message.workerId !== '') {
689
695
  obj.workerId = message.workerId;
690
696
  }
691
697
  return obj;
@@ -696,16 +702,16 @@ exports.WorkerListenRequest = {
696
702
  fromPartial(object) {
697
703
  var _a;
698
704
  const message = createBaseWorkerListenRequest();
699
- message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : "";
705
+ message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
700
706
  return message;
701
707
  },
702
708
  };
703
709
  function createBaseWorkerUnsubscribeRequest() {
704
- return { workerId: "" };
710
+ return { workerId: '' };
705
711
  }
706
712
  exports.WorkerUnsubscribeRequest = {
707
713
  encode(message, writer = _m0.Writer.create()) {
708
- if (message.workerId !== "") {
714
+ if (message.workerId !== '') {
709
715
  writer.uint32(10).string(message.workerId);
710
716
  }
711
717
  return writer;
@@ -732,11 +738,11 @@ exports.WorkerUnsubscribeRequest = {
732
738
  return message;
733
739
  },
734
740
  fromJSON(object) {
735
- return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : "" };
741
+ return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '' };
736
742
  },
737
743
  toJSON(message) {
738
744
  const obj = {};
739
- if (message.workerId !== "") {
745
+ if (message.workerId !== '') {
740
746
  obj.workerId = message.workerId;
741
747
  }
742
748
  return obj;
@@ -747,19 +753,19 @@ exports.WorkerUnsubscribeRequest = {
747
753
  fromPartial(object) {
748
754
  var _a;
749
755
  const message = createBaseWorkerUnsubscribeRequest();
750
- message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : "";
756
+ message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
751
757
  return message;
752
758
  },
753
759
  };
754
760
  function createBaseWorkerUnsubscribeResponse() {
755
- return { tenantId: "", workerId: "" };
761
+ return { tenantId: '', workerId: '' };
756
762
  }
757
763
  exports.WorkerUnsubscribeResponse = {
758
764
  encode(message, writer = _m0.Writer.create()) {
759
- if (message.tenantId !== "") {
765
+ if (message.tenantId !== '') {
760
766
  writer.uint32(10).string(message.tenantId);
761
767
  }
762
- if (message.workerId !== "") {
768
+ if (message.workerId !== '') {
763
769
  writer.uint32(18).string(message.workerId);
764
770
  }
765
771
  return writer;
@@ -793,16 +799,16 @@ exports.WorkerUnsubscribeResponse = {
793
799
  },
794
800
  fromJSON(object) {
795
801
  return {
796
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
797
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : "",
802
+ tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
803
+ workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
798
804
  };
799
805
  },
800
806
  toJSON(message) {
801
807
  const obj = {};
802
- if (message.tenantId !== "") {
808
+ if (message.tenantId !== '') {
803
809
  obj.tenantId = message.tenantId;
804
810
  }
805
- if (message.workerId !== "") {
811
+ if (message.workerId !== '') {
806
812
  obj.workerId = message.workerId;
807
813
  }
808
814
  return obj;
@@ -813,34 +819,34 @@ exports.WorkerUnsubscribeResponse = {
813
819
  fromPartial(object) {
814
820
  var _a, _b;
815
821
  const message = createBaseWorkerUnsubscribeResponse();
816
- message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
817
- message.workerId = (_b = object.workerId) !== null && _b !== void 0 ? _b : "";
822
+ message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : '';
823
+ message.workerId = (_b = object.workerId) !== null && _b !== void 0 ? _b : '';
818
824
  return message;
819
825
  },
820
826
  };
821
827
  function createBaseGroupKeyActionEvent() {
822
828
  return {
823
- workerId: "",
824
- workflowRunId: "",
825
- getGroupKeyRunId: "",
826
- actionId: "",
829
+ workerId: '',
830
+ workflowRunId: '',
831
+ getGroupKeyRunId: '',
832
+ actionId: '',
827
833
  eventTimestamp: undefined,
828
834
  eventType: 0,
829
- eventPayload: "",
835
+ eventPayload: '',
830
836
  };
831
837
  }
832
838
  exports.GroupKeyActionEvent = {
833
839
  encode(message, writer = _m0.Writer.create()) {
834
- if (message.workerId !== "") {
840
+ if (message.workerId !== '') {
835
841
  writer.uint32(10).string(message.workerId);
836
842
  }
837
- if (message.workflowRunId !== "") {
843
+ if (message.workflowRunId !== '') {
838
844
  writer.uint32(18).string(message.workflowRunId);
839
845
  }
840
- if (message.getGroupKeyRunId !== "") {
846
+ if (message.getGroupKeyRunId !== '') {
841
847
  writer.uint32(26).string(message.getGroupKeyRunId);
842
848
  }
843
- if (message.actionId !== "") {
849
+ if (message.actionId !== '') {
844
850
  writer.uint32(34).string(message.actionId);
845
851
  }
846
852
  if (message.eventTimestamp !== undefined) {
@@ -849,7 +855,7 @@ exports.GroupKeyActionEvent = {
849
855
  if (message.eventType !== 0) {
850
856
  writer.uint32(48).int32(message.eventType);
851
857
  }
852
- if (message.eventPayload !== "") {
858
+ if (message.eventPayload !== '') {
853
859
  writer.uint32(58).string(message.eventPayload);
854
860
  }
855
861
  return writer;
@@ -913,27 +919,31 @@ exports.GroupKeyActionEvent = {
913
919
  },
914
920
  fromJSON(object) {
915
921
  return {
916
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : "",
917
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : "",
918
- getGroupKeyRunId: isSet(object.getGroupKeyRunId) ? globalThis.String(object.getGroupKeyRunId) : "",
919
- actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : "",
920
- eventTimestamp: isSet(object.eventTimestamp) ? fromJsonTimestamp(object.eventTimestamp) : undefined,
922
+ workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
923
+ workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
924
+ getGroupKeyRunId: isSet(object.getGroupKeyRunId)
925
+ ? globalThis.String(object.getGroupKeyRunId)
926
+ : '',
927
+ actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
928
+ eventTimestamp: isSet(object.eventTimestamp)
929
+ ? fromJsonTimestamp(object.eventTimestamp)
930
+ : undefined,
921
931
  eventType: isSet(object.eventType) ? groupKeyActionEventTypeFromJSON(object.eventType) : 0,
922
- eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : "",
932
+ eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
923
933
  };
924
934
  },
925
935
  toJSON(message) {
926
936
  const obj = {};
927
- if (message.workerId !== "") {
937
+ if (message.workerId !== '') {
928
938
  obj.workerId = message.workerId;
929
939
  }
930
- if (message.workflowRunId !== "") {
940
+ if (message.workflowRunId !== '') {
931
941
  obj.workflowRunId = message.workflowRunId;
932
942
  }
933
- if (message.getGroupKeyRunId !== "") {
943
+ if (message.getGroupKeyRunId !== '') {
934
944
  obj.getGroupKeyRunId = message.getGroupKeyRunId;
935
945
  }
936
- if (message.actionId !== "") {
946
+ if (message.actionId !== '') {
937
947
  obj.actionId = message.actionId;
938
948
  }
939
949
  if (message.eventTimestamp !== undefined) {
@@ -942,7 +952,7 @@ exports.GroupKeyActionEvent = {
942
952
  if (message.eventType !== 0) {
943
953
  obj.eventType = groupKeyActionEventTypeToJSON(message.eventType);
944
954
  }
945
- if (message.eventPayload !== "") {
955
+ if (message.eventPayload !== '') {
946
956
  obj.eventPayload = message.eventPayload;
947
957
  }
948
958
  return obj;
@@ -953,47 +963,47 @@ exports.GroupKeyActionEvent = {
953
963
  fromPartial(object) {
954
964
  var _a, _b, _c, _d, _e, _f, _g;
955
965
  const message = createBaseGroupKeyActionEvent();
956
- message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : "";
957
- message.workflowRunId = (_b = object.workflowRunId) !== null && _b !== void 0 ? _b : "";
958
- message.getGroupKeyRunId = (_c = object.getGroupKeyRunId) !== null && _c !== void 0 ? _c : "";
959
- message.actionId = (_d = object.actionId) !== null && _d !== void 0 ? _d : "";
966
+ message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
967
+ message.workflowRunId = (_b = object.workflowRunId) !== null && _b !== void 0 ? _b : '';
968
+ message.getGroupKeyRunId = (_c = object.getGroupKeyRunId) !== null && _c !== void 0 ? _c : '';
969
+ message.actionId = (_d = object.actionId) !== null && _d !== void 0 ? _d : '';
960
970
  message.eventTimestamp = (_e = object.eventTimestamp) !== null && _e !== void 0 ? _e : undefined;
961
971
  message.eventType = (_f = object.eventType) !== null && _f !== void 0 ? _f : 0;
962
- message.eventPayload = (_g = object.eventPayload) !== null && _g !== void 0 ? _g : "";
972
+ message.eventPayload = (_g = object.eventPayload) !== null && _g !== void 0 ? _g : '';
963
973
  return message;
964
974
  },
965
975
  };
966
976
  function createBaseStepActionEvent() {
967
977
  return {
968
- workerId: "",
969
- jobId: "",
970
- jobRunId: "",
971
- stepId: "",
972
- stepRunId: "",
973
- actionId: "",
978
+ workerId: '',
979
+ jobId: '',
980
+ jobRunId: '',
981
+ stepId: '',
982
+ stepRunId: '',
983
+ actionId: '',
974
984
  eventTimestamp: undefined,
975
985
  eventType: 0,
976
- eventPayload: "",
986
+ eventPayload: '',
977
987
  };
978
988
  }
979
989
  exports.StepActionEvent = {
980
990
  encode(message, writer = _m0.Writer.create()) {
981
- if (message.workerId !== "") {
991
+ if (message.workerId !== '') {
982
992
  writer.uint32(10).string(message.workerId);
983
993
  }
984
- if (message.jobId !== "") {
994
+ if (message.jobId !== '') {
985
995
  writer.uint32(18).string(message.jobId);
986
996
  }
987
- if (message.jobRunId !== "") {
997
+ if (message.jobRunId !== '') {
988
998
  writer.uint32(26).string(message.jobRunId);
989
999
  }
990
- if (message.stepId !== "") {
1000
+ if (message.stepId !== '') {
991
1001
  writer.uint32(34).string(message.stepId);
992
1002
  }
993
- if (message.stepRunId !== "") {
1003
+ if (message.stepRunId !== '') {
994
1004
  writer.uint32(42).string(message.stepRunId);
995
1005
  }
996
- if (message.actionId !== "") {
1006
+ if (message.actionId !== '') {
997
1007
  writer.uint32(50).string(message.actionId);
998
1008
  }
999
1009
  if (message.eventTimestamp !== undefined) {
@@ -1002,7 +1012,7 @@ exports.StepActionEvent = {
1002
1012
  if (message.eventType !== 0) {
1003
1013
  writer.uint32(64).int32(message.eventType);
1004
1014
  }
1005
- if (message.eventPayload !== "") {
1015
+ if (message.eventPayload !== '') {
1006
1016
  writer.uint32(74).string(message.eventPayload);
1007
1017
  }
1008
1018
  return writer;
@@ -1078,35 +1088,37 @@ exports.StepActionEvent = {
1078
1088
  },
1079
1089
  fromJSON(object) {
1080
1090
  return {
1081
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : "",
1082
- jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : "",
1083
- jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : "",
1084
- stepId: isSet(object.stepId) ? globalThis.String(object.stepId) : "",
1085
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : "",
1086
- actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : "",
1087
- eventTimestamp: isSet(object.eventTimestamp) ? fromJsonTimestamp(object.eventTimestamp) : undefined,
1091
+ workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1092
+ jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
1093
+ jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
1094
+ stepId: isSet(object.stepId) ? globalThis.String(object.stepId) : '',
1095
+ stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
1096
+ actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
1097
+ eventTimestamp: isSet(object.eventTimestamp)
1098
+ ? fromJsonTimestamp(object.eventTimestamp)
1099
+ : undefined,
1088
1100
  eventType: isSet(object.eventType) ? stepActionEventTypeFromJSON(object.eventType) : 0,
1089
- eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : "",
1101
+ eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
1090
1102
  };
1091
1103
  },
1092
1104
  toJSON(message) {
1093
1105
  const obj = {};
1094
- if (message.workerId !== "") {
1106
+ if (message.workerId !== '') {
1095
1107
  obj.workerId = message.workerId;
1096
1108
  }
1097
- if (message.jobId !== "") {
1109
+ if (message.jobId !== '') {
1098
1110
  obj.jobId = message.jobId;
1099
1111
  }
1100
- if (message.jobRunId !== "") {
1112
+ if (message.jobRunId !== '') {
1101
1113
  obj.jobRunId = message.jobRunId;
1102
1114
  }
1103
- if (message.stepId !== "") {
1115
+ if (message.stepId !== '') {
1104
1116
  obj.stepId = message.stepId;
1105
1117
  }
1106
- if (message.stepRunId !== "") {
1118
+ if (message.stepRunId !== '') {
1107
1119
  obj.stepRunId = message.stepRunId;
1108
1120
  }
1109
- if (message.actionId !== "") {
1121
+ if (message.actionId !== '') {
1110
1122
  obj.actionId = message.actionId;
1111
1123
  }
1112
1124
  if (message.eventTimestamp !== undefined) {
@@ -1115,7 +1127,7 @@ exports.StepActionEvent = {
1115
1127
  if (message.eventType !== 0) {
1116
1128
  obj.eventType = stepActionEventTypeToJSON(message.eventType);
1117
1129
  }
1118
- if (message.eventPayload !== "") {
1130
+ if (message.eventPayload !== '') {
1119
1131
  obj.eventPayload = message.eventPayload;
1120
1132
  }
1121
1133
  return obj;
@@ -1126,27 +1138,27 @@ exports.StepActionEvent = {
1126
1138
  fromPartial(object) {
1127
1139
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1128
1140
  const message = createBaseStepActionEvent();
1129
- message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : "";
1130
- message.jobId = (_b = object.jobId) !== null && _b !== void 0 ? _b : "";
1131
- message.jobRunId = (_c = object.jobRunId) !== null && _c !== void 0 ? _c : "";
1132
- message.stepId = (_d = object.stepId) !== null && _d !== void 0 ? _d : "";
1133
- message.stepRunId = (_e = object.stepRunId) !== null && _e !== void 0 ? _e : "";
1134
- message.actionId = (_f = object.actionId) !== null && _f !== void 0 ? _f : "";
1141
+ message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
1142
+ message.jobId = (_b = object.jobId) !== null && _b !== void 0 ? _b : '';
1143
+ message.jobRunId = (_c = object.jobRunId) !== null && _c !== void 0 ? _c : '';
1144
+ message.stepId = (_d = object.stepId) !== null && _d !== void 0 ? _d : '';
1145
+ message.stepRunId = (_e = object.stepRunId) !== null && _e !== void 0 ? _e : '';
1146
+ message.actionId = (_f = object.actionId) !== null && _f !== void 0 ? _f : '';
1135
1147
  message.eventTimestamp = (_g = object.eventTimestamp) !== null && _g !== void 0 ? _g : undefined;
1136
1148
  message.eventType = (_h = object.eventType) !== null && _h !== void 0 ? _h : 0;
1137
- message.eventPayload = (_j = object.eventPayload) !== null && _j !== void 0 ? _j : "";
1149
+ message.eventPayload = (_j = object.eventPayload) !== null && _j !== void 0 ? _j : '';
1138
1150
  return message;
1139
1151
  },
1140
1152
  };
1141
1153
  function createBaseActionEventResponse() {
1142
- return { tenantId: "", workerId: "" };
1154
+ return { tenantId: '', workerId: '' };
1143
1155
  }
1144
1156
  exports.ActionEventResponse = {
1145
1157
  encode(message, writer = _m0.Writer.create()) {
1146
- if (message.tenantId !== "") {
1158
+ if (message.tenantId !== '') {
1147
1159
  writer.uint32(10).string(message.tenantId);
1148
1160
  }
1149
- if (message.workerId !== "") {
1161
+ if (message.workerId !== '') {
1150
1162
  writer.uint32(18).string(message.workerId);
1151
1163
  }
1152
1164
  return writer;
@@ -1180,16 +1192,16 @@ exports.ActionEventResponse = {
1180
1192
  },
1181
1193
  fromJSON(object) {
1182
1194
  return {
1183
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
1184
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : "",
1195
+ tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
1196
+ workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1185
1197
  };
1186
1198
  },
1187
1199
  toJSON(message) {
1188
1200
  const obj = {};
1189
- if (message.tenantId !== "") {
1201
+ if (message.tenantId !== '') {
1190
1202
  obj.tenantId = message.tenantId;
1191
1203
  }
1192
- if (message.workerId !== "") {
1204
+ if (message.workerId !== '') {
1193
1205
  obj.workerId = message.workerId;
1194
1206
  }
1195
1207
  return obj;
@@ -1200,17 +1212,17 @@ exports.ActionEventResponse = {
1200
1212
  fromPartial(object) {
1201
1213
  var _a, _b;
1202
1214
  const message = createBaseActionEventResponse();
1203
- message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
1204
- message.workerId = (_b = object.workerId) !== null && _b !== void 0 ? _b : "";
1215
+ message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : '';
1216
+ message.workerId = (_b = object.workerId) !== null && _b !== void 0 ? _b : '';
1205
1217
  return message;
1206
1218
  },
1207
1219
  };
1208
1220
  function createBaseSubscribeToWorkflowEventsRequest() {
1209
- return { workflowRunId: "" };
1221
+ return { workflowRunId: '' };
1210
1222
  }
1211
1223
  exports.SubscribeToWorkflowEventsRequest = {
1212
1224
  encode(message, writer = _m0.Writer.create()) {
1213
- if (message.workflowRunId !== "") {
1225
+ if (message.workflowRunId !== '') {
1214
1226
  writer.uint32(10).string(message.workflowRunId);
1215
1227
  }
1216
1228
  return writer;
@@ -1237,11 +1249,13 @@ exports.SubscribeToWorkflowEventsRequest = {
1237
1249
  return message;
1238
1250
  },
1239
1251
  fromJSON(object) {
1240
- return { workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : "" };
1252
+ return {
1253
+ workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
1254
+ };
1241
1255
  },
1242
1256
  toJSON(message) {
1243
1257
  const obj = {};
1244
- if (message.workflowRunId !== "") {
1258
+ if (message.workflowRunId !== '') {
1245
1259
  obj.workflowRunId = message.workflowRunId;
1246
1260
  }
1247
1261
  return obj;
@@ -1252,24 +1266,26 @@ exports.SubscribeToWorkflowEventsRequest = {
1252
1266
  fromPartial(object) {
1253
1267
  var _a;
1254
1268
  const message = createBaseSubscribeToWorkflowEventsRequest();
1255
- message.workflowRunId = (_a = object.workflowRunId) !== null && _a !== void 0 ? _a : "";
1269
+ message.workflowRunId = (_a = object.workflowRunId) !== null && _a !== void 0 ? _a : '';
1256
1270
  return message;
1257
1271
  },
1258
1272
  };
1259
1273
  function createBaseWorkflowEvent() {
1260
1274
  return {
1261
- workflowRunId: "",
1275
+ workflowRunId: '',
1262
1276
  resourceType: 0,
1263
1277
  eventType: 0,
1264
- resourceId: "",
1278
+ resourceId: '',
1265
1279
  eventTimestamp: undefined,
1266
- eventPayload: "",
1280
+ eventPayload: '',
1267
1281
  hangup: false,
1282
+ stepRetries: undefined,
1283
+ retryCount: undefined,
1268
1284
  };
1269
1285
  }
1270
1286
  exports.WorkflowEvent = {
1271
1287
  encode(message, writer = _m0.Writer.create()) {
1272
- if (message.workflowRunId !== "") {
1288
+ if (message.workflowRunId !== '') {
1273
1289
  writer.uint32(10).string(message.workflowRunId);
1274
1290
  }
1275
1291
  if (message.resourceType !== 0) {
@@ -1278,18 +1294,24 @@ exports.WorkflowEvent = {
1278
1294
  if (message.eventType !== 0) {
1279
1295
  writer.uint32(24).int32(message.eventType);
1280
1296
  }
1281
- if (message.resourceId !== "") {
1297
+ if (message.resourceId !== '') {
1282
1298
  writer.uint32(34).string(message.resourceId);
1283
1299
  }
1284
1300
  if (message.eventTimestamp !== undefined) {
1285
1301
  timestamp_1.Timestamp.encode(toTimestamp(message.eventTimestamp), writer.uint32(42).fork()).ldelim();
1286
1302
  }
1287
- if (message.eventPayload !== "") {
1303
+ if (message.eventPayload !== '') {
1288
1304
  writer.uint32(50).string(message.eventPayload);
1289
1305
  }
1290
1306
  if (message.hangup === true) {
1291
1307
  writer.uint32(56).bool(message.hangup);
1292
1308
  }
1309
+ if (message.stepRetries !== undefined) {
1310
+ writer.uint32(64).int32(message.stepRetries);
1311
+ }
1312
+ if (message.retryCount !== undefined) {
1313
+ writer.uint32(72).int32(message.retryCount);
1314
+ }
1293
1315
  return writer;
1294
1316
  },
1295
1317
  decode(input, length) {
@@ -1341,6 +1363,18 @@ exports.WorkflowEvent = {
1341
1363
  }
1342
1364
  message.hangup = reader.bool();
1343
1365
  continue;
1366
+ case 8:
1367
+ if (tag !== 64) {
1368
+ break;
1369
+ }
1370
+ message.stepRetries = reader.int32();
1371
+ continue;
1372
+ case 9:
1373
+ if (tag !== 72) {
1374
+ break;
1375
+ }
1376
+ message.retryCount = reader.int32();
1377
+ continue;
1344
1378
  }
1345
1379
  if ((tag & 7) === 4 || tag === 0) {
1346
1380
  break;
@@ -1351,18 +1385,22 @@ exports.WorkflowEvent = {
1351
1385
  },
1352
1386
  fromJSON(object) {
1353
1387
  return {
1354
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : "",
1388
+ workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
1355
1389
  resourceType: isSet(object.resourceType) ? resourceTypeFromJSON(object.resourceType) : 0,
1356
1390
  eventType: isSet(object.eventType) ? resourceEventTypeFromJSON(object.eventType) : 0,
1357
- resourceId: isSet(object.resourceId) ? globalThis.String(object.resourceId) : "",
1358
- eventTimestamp: isSet(object.eventTimestamp) ? fromJsonTimestamp(object.eventTimestamp) : undefined,
1359
- eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : "",
1391
+ resourceId: isSet(object.resourceId) ? globalThis.String(object.resourceId) : '',
1392
+ eventTimestamp: isSet(object.eventTimestamp)
1393
+ ? fromJsonTimestamp(object.eventTimestamp)
1394
+ : undefined,
1395
+ eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
1360
1396
  hangup: isSet(object.hangup) ? globalThis.Boolean(object.hangup) : false,
1397
+ stepRetries: isSet(object.stepRetries) ? globalThis.Number(object.stepRetries) : undefined,
1398
+ retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : undefined,
1361
1399
  };
1362
1400
  },
1363
1401
  toJSON(message) {
1364
1402
  const obj = {};
1365
- if (message.workflowRunId !== "") {
1403
+ if (message.workflowRunId !== '') {
1366
1404
  obj.workflowRunId = message.workflowRunId;
1367
1405
  }
1368
1406
  if (message.resourceType !== 0) {
@@ -1371,51 +1409,59 @@ exports.WorkflowEvent = {
1371
1409
  if (message.eventType !== 0) {
1372
1410
  obj.eventType = resourceEventTypeToJSON(message.eventType);
1373
1411
  }
1374
- if (message.resourceId !== "") {
1412
+ if (message.resourceId !== '') {
1375
1413
  obj.resourceId = message.resourceId;
1376
1414
  }
1377
1415
  if (message.eventTimestamp !== undefined) {
1378
1416
  obj.eventTimestamp = message.eventTimestamp.toISOString();
1379
1417
  }
1380
- if (message.eventPayload !== "") {
1418
+ if (message.eventPayload !== '') {
1381
1419
  obj.eventPayload = message.eventPayload;
1382
1420
  }
1383
1421
  if (message.hangup === true) {
1384
1422
  obj.hangup = message.hangup;
1385
1423
  }
1424
+ if (message.stepRetries !== undefined) {
1425
+ obj.stepRetries = Math.round(message.stepRetries);
1426
+ }
1427
+ if (message.retryCount !== undefined) {
1428
+ obj.retryCount = Math.round(message.retryCount);
1429
+ }
1386
1430
  return obj;
1387
1431
  },
1388
1432
  create(base) {
1389
1433
  return exports.WorkflowEvent.fromPartial(base !== null && base !== void 0 ? base : {});
1390
1434
  },
1391
1435
  fromPartial(object) {
1392
- var _a, _b, _c, _d, _e, _f, _g;
1436
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j;
1393
1437
  const message = createBaseWorkflowEvent();
1394
- message.workflowRunId = (_a = object.workflowRunId) !== null && _a !== void 0 ? _a : "";
1438
+ message.workflowRunId = (_a = object.workflowRunId) !== null && _a !== void 0 ? _a : '';
1395
1439
  message.resourceType = (_b = object.resourceType) !== null && _b !== void 0 ? _b : 0;
1396
1440
  message.eventType = (_c = object.eventType) !== null && _c !== void 0 ? _c : 0;
1397
- message.resourceId = (_d = object.resourceId) !== null && _d !== void 0 ? _d : "";
1441
+ message.resourceId = (_d = object.resourceId) !== null && _d !== void 0 ? _d : '';
1398
1442
  message.eventTimestamp = (_e = object.eventTimestamp) !== null && _e !== void 0 ? _e : undefined;
1399
- message.eventPayload = (_f = object.eventPayload) !== null && _f !== void 0 ? _f : "";
1443
+ message.eventPayload = (_f = object.eventPayload) !== null && _f !== void 0 ? _f : '';
1400
1444
  message.hangup = (_g = object.hangup) !== null && _g !== void 0 ? _g : false;
1445
+ message.stepRetries = (_h = object.stepRetries) !== null && _h !== void 0 ? _h : undefined;
1446
+ message.retryCount = (_j = object.retryCount) !== null && _j !== void 0 ? _j : undefined;
1401
1447
  return message;
1402
1448
  },
1403
1449
  };
1404
1450
  function createBaseOverridesData() {
1405
- return { stepRunId: "", path: "", value: "", callerFilename: "" };
1451
+ return { stepRunId: '', path: '', value: '', callerFilename: '' };
1406
1452
  }
1407
1453
  exports.OverridesData = {
1408
1454
  encode(message, writer = _m0.Writer.create()) {
1409
- if (message.stepRunId !== "") {
1455
+ if (message.stepRunId !== '') {
1410
1456
  writer.uint32(10).string(message.stepRunId);
1411
1457
  }
1412
- if (message.path !== "") {
1458
+ if (message.path !== '') {
1413
1459
  writer.uint32(18).string(message.path);
1414
1460
  }
1415
- if (message.value !== "") {
1461
+ if (message.value !== '') {
1416
1462
  writer.uint32(26).string(message.value);
1417
1463
  }
1418
- if (message.callerFilename !== "") {
1464
+ if (message.callerFilename !== '') {
1419
1465
  writer.uint32(34).string(message.callerFilename);
1420
1466
  }
1421
1467
  return writer;
@@ -1461,24 +1507,24 @@ exports.OverridesData = {
1461
1507
  },
1462
1508
  fromJSON(object) {
1463
1509
  return {
1464
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : "",
1465
- path: isSet(object.path) ? globalThis.String(object.path) : "",
1466
- value: isSet(object.value) ? globalThis.String(object.value) : "",
1467
- callerFilename: isSet(object.callerFilename) ? globalThis.String(object.callerFilename) : "",
1510
+ stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
1511
+ path: isSet(object.path) ? globalThis.String(object.path) : '',
1512
+ value: isSet(object.value) ? globalThis.String(object.value) : '',
1513
+ callerFilename: isSet(object.callerFilename) ? globalThis.String(object.callerFilename) : '',
1468
1514
  };
1469
1515
  },
1470
1516
  toJSON(message) {
1471
1517
  const obj = {};
1472
- if (message.stepRunId !== "") {
1518
+ if (message.stepRunId !== '') {
1473
1519
  obj.stepRunId = message.stepRunId;
1474
1520
  }
1475
- if (message.path !== "") {
1521
+ if (message.path !== '') {
1476
1522
  obj.path = message.path;
1477
1523
  }
1478
- if (message.value !== "") {
1524
+ if (message.value !== '') {
1479
1525
  obj.value = message.value;
1480
1526
  }
1481
- if (message.callerFilename !== "") {
1527
+ if (message.callerFilename !== '') {
1482
1528
  obj.callerFilename = message.callerFilename;
1483
1529
  }
1484
1530
  return obj;
@@ -1489,10 +1535,10 @@ exports.OverridesData = {
1489
1535
  fromPartial(object) {
1490
1536
  var _a, _b, _c, _d;
1491
1537
  const message = createBaseOverridesData();
1492
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : "";
1493
- message.path = (_b = object.path) !== null && _b !== void 0 ? _b : "";
1494
- message.value = (_c = object.value) !== null && _c !== void 0 ? _c : "";
1495
- message.callerFilename = (_d = object.callerFilename) !== null && _d !== void 0 ? _d : "";
1538
+ message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
1539
+ message.path = (_b = object.path) !== null && _b !== void 0 ? _b : '';
1540
+ message.value = (_c = object.value) !== null && _c !== void 0 ? _c : '';
1541
+ message.callerFilename = (_d = object.callerFilename) !== null && _d !== void 0 ? _d : '';
1496
1542
  return message;
1497
1543
  },
1498
1544
  };
@@ -1534,11 +1580,11 @@ exports.OverridesDataResponse = {
1534
1580
  },
1535
1581
  };
1536
1582
  exports.DispatcherDefinition = {
1537
- name: "Dispatcher",
1538
- fullName: "Dispatcher",
1583
+ name: 'Dispatcher',
1584
+ fullName: 'Dispatcher',
1539
1585
  methods: {
1540
1586
  register: {
1541
- name: "Register",
1587
+ name: 'Register',
1542
1588
  requestType: exports.WorkerRegisterRequest,
1543
1589
  requestStream: false,
1544
1590
  responseType: exports.WorkerRegisterResponse,
@@ -1546,7 +1592,7 @@ exports.DispatcherDefinition = {
1546
1592
  options: {},
1547
1593
  },
1548
1594
  listen: {
1549
- name: "Listen",
1595
+ name: 'Listen',
1550
1596
  requestType: exports.WorkerListenRequest,
1551
1597
  requestStream: false,
1552
1598
  responseType: exports.AssignedAction,
@@ -1554,7 +1600,7 @@ exports.DispatcherDefinition = {
1554
1600
  options: {},
1555
1601
  },
1556
1602
  subscribeToWorkflowEvents: {
1557
- name: "SubscribeToWorkflowEvents",
1603
+ name: 'SubscribeToWorkflowEvents',
1558
1604
  requestType: exports.SubscribeToWorkflowEventsRequest,
1559
1605
  requestStream: false,
1560
1606
  responseType: exports.WorkflowEvent,
@@ -1562,7 +1608,7 @@ exports.DispatcherDefinition = {
1562
1608
  options: {},
1563
1609
  },
1564
1610
  sendStepActionEvent: {
1565
- name: "SendStepActionEvent",
1611
+ name: 'SendStepActionEvent',
1566
1612
  requestType: exports.StepActionEvent,
1567
1613
  requestStream: false,
1568
1614
  responseType: exports.ActionEventResponse,
@@ -1570,7 +1616,7 @@ exports.DispatcherDefinition = {
1570
1616
  options: {},
1571
1617
  },
1572
1618
  sendGroupKeyActionEvent: {
1573
- name: "SendGroupKeyActionEvent",
1619
+ name: 'SendGroupKeyActionEvent',
1574
1620
  requestType: exports.GroupKeyActionEvent,
1575
1621
  requestStream: false,
1576
1622
  responseType: exports.ActionEventResponse,
@@ -1578,7 +1624,7 @@ exports.DispatcherDefinition = {
1578
1624
  options: {},
1579
1625
  },
1580
1626
  putOverridesData: {
1581
- name: "PutOverridesData",
1627
+ name: 'PutOverridesData',
1582
1628
  requestType: exports.OverridesData,
1583
1629
  requestStream: false,
1584
1630
  responseType: exports.OverridesDataResponse,
@@ -1586,7 +1632,7 @@ exports.DispatcherDefinition = {
1586
1632
  options: {},
1587
1633
  },
1588
1634
  unsubscribe: {
1589
- name: "Unsubscribe",
1635
+ name: 'Unsubscribe',
1590
1636
  requestType: exports.WorkerUnsubscribeRequest,
1591
1637
  requestStream: false,
1592
1638
  responseType: exports.WorkerUnsubscribeResponse,
@@ -1609,7 +1655,7 @@ function fromJsonTimestamp(o) {
1609
1655
  if (o instanceof globalThis.Date) {
1610
1656
  return o;
1611
1657
  }
1612
- else if (typeof o === "string") {
1658
+ else if (typeof o === 'string') {
1613
1659
  return new globalThis.Date(o);
1614
1660
  }
1615
1661
  else {