@hatchet-dev/typescript-sdk 1.10.8 → 1.12.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.
Files changed (44) 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 +8 -2
  6. package/clients/dispatcher/dispatcher-client.js +18 -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/data-contracts.d.ts +13 -1
  11. package/clients/worker/worker.js +11 -11
  12. package/examples/webhooks.d.ts +1 -0
  13. package/examples/webhooks.js +45 -0
  14. package/package.json +1 -1
  15. package/protoc/dispatcher/dispatcher.d.ts +25 -25
  16. package/protoc/dispatcher/dispatcher.js +109 -95
  17. package/protoc/events/events.d.ts +4 -4
  18. package/protoc/events/events.js +20 -16
  19. package/protoc/v1/workflows.d.ts +7 -7
  20. package/protoc/workflows/workflows.d.ts +22 -22
  21. package/protoc/workflows/workflows.js +18 -18
  22. package/step.d.ts +1 -1
  23. package/step.js +19 -19
  24. package/util/workflow-run-ref.js +1 -1
  25. package/v1/client/admin.d.ts +30 -0
  26. package/v1/client/admin.js +21 -6
  27. package/v1/client/client.d.ts +8 -1
  28. package/v1/client/client.js +12 -1
  29. package/v1/client/features/metrics.d.ts +16 -5
  30. package/v1/client/features/metrics.js +13 -14
  31. package/v1/client/features/runs.d.ts +9 -1
  32. package/v1/client/features/runs.js +4 -2
  33. package/v1/client/features/webhooks.d.ts +28 -0
  34. package/v1/client/features/webhooks.js +97 -0
  35. package/v1/client/worker/context.d.ts +1 -1
  36. package/v1/client/worker/context.js +23 -23
  37. package/v1/client/worker/worker-internal.d.ts +2 -2
  38. package/v1/client/worker/worker-internal.js +25 -25
  39. package/v1/declaration.d.ts +2 -2
  40. package/v1/declaration.js +24 -10
  41. package/v1/parent-run-context-vars.d.ts +4 -1
  42. package/v1/parent-run-context-vars.js +1 -0
  43. package/version.d.ts +1 -1
  44. package/version.js +1 -1
@@ -515,7 +515,7 @@ function createBaseWorkerRegisterRequest() {
515
515
  workerName: '',
516
516
  actions: [],
517
517
  services: [],
518
- maxRuns: undefined,
518
+ slots: undefined,
519
519
  labels: {},
520
520
  webhookId: undefined,
521
521
  runtimeInfo: undefined,
@@ -532,8 +532,8 @@ exports.WorkerRegisterRequest = {
532
532
  for (const v of message.services) {
533
533
  writer.uint32(26).string(v);
534
534
  }
535
- if (message.maxRuns !== undefined) {
536
- writer.uint32(32).int32(message.maxRuns);
535
+ if (message.slots !== undefined) {
536
+ writer.uint32(32).int32(message.slots);
537
537
  }
538
538
  Object.entries(message.labels).forEach(([key, value]) => {
539
539
  exports.WorkerRegisterRequest_LabelsEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
@@ -578,7 +578,7 @@ exports.WorkerRegisterRequest = {
578
578
  if (tag !== 32) {
579
579
  break;
580
580
  }
581
- message.maxRuns = reader.int32();
581
+ message.slots = reader.int32();
582
582
  continue;
583
583
  }
584
584
  case 5: {
@@ -622,7 +622,7 @@ exports.WorkerRegisterRequest = {
622
622
  services: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.services)
623
623
  ? object.services.map((e) => globalThis.String(e))
624
624
  : [],
625
- maxRuns: isSet(object.maxRuns) ? globalThis.Number(object.maxRuns) : undefined,
625
+ slots: isSet(object.slots) ? globalThis.Number(object.slots) : undefined,
626
626
  labels: isObject(object.labels)
627
627
  ? Object.entries(object.labels).reduce((acc, [key, value]) => {
628
628
  acc[key] = exports.WorkerLabels.fromJSON(value);
@@ -645,8 +645,8 @@ exports.WorkerRegisterRequest = {
645
645
  if ((_b = message.services) === null || _b === void 0 ? void 0 : _b.length) {
646
646
  obj.services = message.services;
647
647
  }
648
- if (message.maxRuns !== undefined) {
649
- obj.maxRuns = Math.round(message.maxRuns);
648
+ if (message.slots !== undefined) {
649
+ obj.slots = Math.round(message.slots);
650
650
  }
651
651
  if (message.labels) {
652
652
  const entries = Object.entries(message.labels);
@@ -674,7 +674,7 @@ exports.WorkerRegisterRequest = {
674
674
  message.workerName = (_a = object.workerName) !== null && _a !== void 0 ? _a : '';
675
675
  message.actions = ((_b = object.actions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
676
676
  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;
677
+ message.slots = (_d = object.slots) !== null && _d !== void 0 ? _d : undefined;
678
678
  message.labels = Object.entries((_e = object.labels) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
679
679
  if (value !== undefined) {
680
680
  acc[key] = exports.WorkerLabels.fromPartial(value);
@@ -1082,12 +1082,12 @@ function createBaseAssignedAction() {
1082
1082
  jobId: '',
1083
1083
  jobName: '',
1084
1084
  jobRunId: '',
1085
- stepId: '',
1086
- stepRunId: '',
1085
+ taskId: '',
1086
+ taskRunExternalId: '',
1087
1087
  actionId: '',
1088
1088
  actionType: 0,
1089
1089
  actionPayload: '',
1090
- stepName: '',
1090
+ taskName: '',
1091
1091
  retryCount: 0,
1092
1092
  additionalMetadata: undefined,
1093
1093
  childWorkflowIndex: undefined,
@@ -1118,11 +1118,11 @@ exports.AssignedAction = {
1118
1118
  if (message.jobRunId !== '') {
1119
1119
  writer.uint32(50).string(message.jobRunId);
1120
1120
  }
1121
- if (message.stepId !== '') {
1122
- writer.uint32(58).string(message.stepId);
1121
+ if (message.taskId !== '') {
1122
+ writer.uint32(58).string(message.taskId);
1123
1123
  }
1124
- if (message.stepRunId !== '') {
1125
- writer.uint32(66).string(message.stepRunId);
1124
+ if (message.taskRunExternalId !== '') {
1125
+ writer.uint32(66).string(message.taskRunExternalId);
1126
1126
  }
1127
1127
  if (message.actionId !== '') {
1128
1128
  writer.uint32(74).string(message.actionId);
@@ -1133,8 +1133,8 @@ exports.AssignedAction = {
1133
1133
  if (message.actionPayload !== '') {
1134
1134
  writer.uint32(90).string(message.actionPayload);
1135
1135
  }
1136
- if (message.stepName !== '') {
1137
- writer.uint32(98).string(message.stepName);
1136
+ if (message.taskName !== '') {
1137
+ writer.uint32(98).string(message.taskName);
1138
1138
  }
1139
1139
  if (message.retryCount !== 0) {
1140
1140
  writer.uint32(104).int32(message.retryCount);
@@ -1215,14 +1215,14 @@ exports.AssignedAction = {
1215
1215
  if (tag !== 58) {
1216
1216
  break;
1217
1217
  }
1218
- message.stepId = reader.string();
1218
+ message.taskId = reader.string();
1219
1219
  continue;
1220
1220
  }
1221
1221
  case 8: {
1222
1222
  if (tag !== 66) {
1223
1223
  break;
1224
1224
  }
1225
- message.stepRunId = reader.string();
1225
+ message.taskRunExternalId = reader.string();
1226
1226
  continue;
1227
1227
  }
1228
1228
  case 9: {
@@ -1250,7 +1250,7 @@ exports.AssignedAction = {
1250
1250
  if (tag !== 98) {
1251
1251
  break;
1252
1252
  }
1253
- message.stepName = reader.string();
1253
+ message.taskName = reader.string();
1254
1254
  continue;
1255
1255
  }
1256
1256
  case 13: {
@@ -1327,12 +1327,14 @@ exports.AssignedAction = {
1327
1327
  jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
1328
1328
  jobName: isSet(object.jobName) ? globalThis.String(object.jobName) : '',
1329
1329
  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) : '',
1330
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
1331
+ taskRunExternalId: isSet(object.taskRunExternalId)
1332
+ ? globalThis.String(object.taskRunExternalId)
1333
+ : '',
1332
1334
  actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
1333
1335
  actionType: isSet(object.actionType) ? actionTypeFromJSON(object.actionType) : 0,
1334
1336
  actionPayload: isSet(object.actionPayload) ? globalThis.String(object.actionPayload) : '',
1335
- stepName: isSet(object.stepName) ? globalThis.String(object.stepName) : '',
1337
+ taskName: isSet(object.taskName) ? globalThis.String(object.taskName) : '',
1336
1338
  retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : 0,
1337
1339
  additionalMetadata: isSet(object.additionalMetadata)
1338
1340
  ? globalThis.String(object.additionalMetadata)
@@ -1373,11 +1375,11 @@ exports.AssignedAction = {
1373
1375
  if (message.jobRunId !== '') {
1374
1376
  obj.jobRunId = message.jobRunId;
1375
1377
  }
1376
- if (message.stepId !== '') {
1377
- obj.stepId = message.stepId;
1378
+ if (message.taskId !== '') {
1379
+ obj.taskId = message.taskId;
1378
1380
  }
1379
- if (message.stepRunId !== '') {
1380
- obj.stepRunId = message.stepRunId;
1381
+ if (message.taskRunExternalId !== '') {
1382
+ obj.taskRunExternalId = message.taskRunExternalId;
1381
1383
  }
1382
1384
  if (message.actionId !== '') {
1383
1385
  obj.actionId = message.actionId;
@@ -1388,8 +1390,8 @@ exports.AssignedAction = {
1388
1390
  if (message.actionPayload !== '') {
1389
1391
  obj.actionPayload = message.actionPayload;
1390
1392
  }
1391
- if (message.stepName !== '') {
1392
- obj.stepName = message.stepName;
1393
+ if (message.taskName !== '') {
1394
+ obj.taskName = message.taskName;
1393
1395
  }
1394
1396
  if (message.retryCount !== 0) {
1395
1397
  obj.retryCount = Math.round(message.retryCount);
@@ -1429,12 +1431,12 @@ exports.AssignedAction = {
1429
1431
  message.jobId = (_d = object.jobId) !== null && _d !== void 0 ? _d : '';
1430
1432
  message.jobName = (_e = object.jobName) !== null && _e !== void 0 ? _e : '';
1431
1433
  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 : '';
1434
+ message.taskId = (_g = object.taskId) !== null && _g !== void 0 ? _g : '';
1435
+ message.taskRunExternalId = (_h = object.taskRunExternalId) !== null && _h !== void 0 ? _h : '';
1434
1436
  message.actionId = (_j = object.actionId) !== null && _j !== void 0 ? _j : '';
1435
1437
  message.actionType = (_k = object.actionType) !== null && _k !== void 0 ? _k : 0;
1436
1438
  message.actionPayload = (_l = object.actionPayload) !== null && _l !== void 0 ? _l : '';
1437
- message.stepName = (_m = object.stepName) !== null && _m !== void 0 ? _m : '';
1439
+ message.taskName = (_m = object.taskName) !== null && _m !== void 0 ? _m : '';
1438
1440
  message.retryCount = (_o = object.retryCount) !== null && _o !== void 0 ? _o : 0;
1439
1441
  message.additionalMetadata = (_p = object.additionalMetadata) !== null && _p !== void 0 ? _p : undefined;
1440
1442
  message.childWorkflowIndex = (_q = object.childWorkflowIndex) !== null && _q !== void 0 ? _q : undefined;
@@ -1780,8 +1782,8 @@ function createBaseStepActionEvent() {
1780
1782
  workerId: '',
1781
1783
  jobId: '',
1782
1784
  jobRunId: '',
1783
- stepId: '',
1784
- stepRunId: '',
1785
+ taskId: '',
1786
+ taskRunExternalId: '',
1785
1787
  actionId: '',
1786
1788
  eventTimestamp: undefined,
1787
1789
  eventType: 0,
@@ -1801,11 +1803,11 @@ exports.StepActionEvent = {
1801
1803
  if (message.jobRunId !== '') {
1802
1804
  writer.uint32(26).string(message.jobRunId);
1803
1805
  }
1804
- if (message.stepId !== '') {
1805
- writer.uint32(34).string(message.stepId);
1806
+ if (message.taskId !== '') {
1807
+ writer.uint32(34).string(message.taskId);
1806
1808
  }
1807
- if (message.stepRunId !== '') {
1808
- writer.uint32(42).string(message.stepRunId);
1809
+ if (message.taskRunExternalId !== '') {
1810
+ writer.uint32(42).string(message.taskRunExternalId);
1809
1811
  }
1810
1812
  if (message.actionId !== '') {
1811
1813
  writer.uint32(50).string(message.actionId);
@@ -1859,14 +1861,14 @@ exports.StepActionEvent = {
1859
1861
  if (tag !== 34) {
1860
1862
  break;
1861
1863
  }
1862
- message.stepId = reader.string();
1864
+ message.taskId = reader.string();
1863
1865
  continue;
1864
1866
  }
1865
1867
  case 5: {
1866
1868
  if (tag !== 42) {
1867
1869
  break;
1868
1870
  }
1869
- message.stepRunId = reader.string();
1871
+ message.taskRunExternalId = reader.string();
1870
1872
  continue;
1871
1873
  }
1872
1874
  case 6: {
@@ -1924,8 +1926,10 @@ exports.StepActionEvent = {
1924
1926
  workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1925
1927
  jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
1926
1928
  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) : '',
1929
+ taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
1930
+ taskRunExternalId: isSet(object.taskRunExternalId)
1931
+ ? globalThis.String(object.taskRunExternalId)
1932
+ : '',
1929
1933
  actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
1930
1934
  eventTimestamp: isSet(object.eventTimestamp)
1931
1935
  ? fromJsonTimestamp(object.eventTimestamp)
@@ -1949,11 +1953,11 @@ exports.StepActionEvent = {
1949
1953
  if (message.jobRunId !== '') {
1950
1954
  obj.jobRunId = message.jobRunId;
1951
1955
  }
1952
- if (message.stepId !== '') {
1953
- obj.stepId = message.stepId;
1956
+ if (message.taskId !== '') {
1957
+ obj.taskId = message.taskId;
1954
1958
  }
1955
- if (message.stepRunId !== '') {
1956
- obj.stepRunId = message.stepRunId;
1959
+ if (message.taskRunExternalId !== '') {
1960
+ obj.taskRunExternalId = message.taskRunExternalId;
1957
1961
  }
1958
1962
  if (message.actionId !== '') {
1959
1963
  obj.actionId = message.actionId;
@@ -1984,8 +1988,8 @@ exports.StepActionEvent = {
1984
1988
  message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
1985
1989
  message.jobId = (_b = object.jobId) !== null && _b !== void 0 ? _b : '';
1986
1990
  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 : '';
1991
+ message.taskId = (_d = object.taskId) !== null && _d !== void 0 ? _d : '';
1992
+ message.taskRunExternalId = (_e = object.taskRunExternalId) !== null && _e !== void 0 ? _e : '';
1989
1993
  message.actionId = (_f = object.actionId) !== null && _f !== void 0 ? _f : '';
1990
1994
  message.eventTimestamp = (_g = object.eventTimestamp) !== null && _g !== void 0 ? _g : undefined;
1991
1995
  message.eventType = (_h = object.eventType) !== null && _h !== void 0 ? _h : 0;
@@ -2217,7 +2221,7 @@ function createBaseWorkflowEvent() {
2217
2221
  eventTimestamp: undefined,
2218
2222
  eventPayload: '',
2219
2223
  hangup: false,
2220
- stepRetries: undefined,
2224
+ taskRetries: undefined,
2221
2225
  retryCount: undefined,
2222
2226
  eventIndex: undefined,
2223
2227
  };
@@ -2245,8 +2249,8 @@ exports.WorkflowEvent = {
2245
2249
  if (message.hangup !== false) {
2246
2250
  writer.uint32(56).bool(message.hangup);
2247
2251
  }
2248
- if (message.stepRetries !== undefined) {
2249
- writer.uint32(64).int32(message.stepRetries);
2252
+ if (message.taskRetries !== undefined) {
2253
+ writer.uint32(64).int32(message.taskRetries);
2250
2254
  }
2251
2255
  if (message.retryCount !== undefined) {
2252
2256
  writer.uint32(72).int32(message.retryCount);
@@ -2316,7 +2320,7 @@ exports.WorkflowEvent = {
2316
2320
  if (tag !== 64) {
2317
2321
  break;
2318
2322
  }
2319
- message.stepRetries = reader.int32();
2323
+ message.taskRetries = reader.int32();
2320
2324
  continue;
2321
2325
  }
2322
2326
  case 9: {
@@ -2352,7 +2356,7 @@ exports.WorkflowEvent = {
2352
2356
  : undefined,
2353
2357
  eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
2354
2358
  hangup: isSet(object.hangup) ? globalThis.Boolean(object.hangup) : false,
2355
- stepRetries: isSet(object.stepRetries) ? globalThis.Number(object.stepRetries) : undefined,
2359
+ taskRetries: isSet(object.taskRetries) ? globalThis.Number(object.taskRetries) : undefined,
2356
2360
  retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : undefined,
2357
2361
  eventIndex: isSet(object.eventIndex) ? globalThis.Number(object.eventIndex) : undefined,
2358
2362
  };
@@ -2380,8 +2384,8 @@ exports.WorkflowEvent = {
2380
2384
  if (message.hangup !== false) {
2381
2385
  obj.hangup = message.hangup;
2382
2386
  }
2383
- if (message.stepRetries !== undefined) {
2384
- obj.stepRetries = Math.round(message.stepRetries);
2387
+ if (message.taskRetries !== undefined) {
2388
+ obj.taskRetries = Math.round(message.taskRetries);
2385
2389
  }
2386
2390
  if (message.retryCount !== undefined) {
2387
2391
  obj.retryCount = Math.round(message.retryCount);
@@ -2404,7 +2408,7 @@ exports.WorkflowEvent = {
2404
2408
  message.eventTimestamp = (_e = object.eventTimestamp) !== null && _e !== void 0 ? _e : undefined;
2405
2409
  message.eventPayload = (_f = object.eventPayload) !== null && _f !== void 0 ? _f : '';
2406
2410
  message.hangup = (_g = object.hangup) !== null && _g !== void 0 ? _g : false;
2407
- message.stepRetries = (_h = object.stepRetries) !== null && _h !== void 0 ? _h : undefined;
2411
+ message.taskRetries = (_h = object.taskRetries) !== null && _h !== void 0 ? _h : undefined;
2408
2412
  message.retryCount = (_j = object.retryCount) !== null && _j !== void 0 ? _j : undefined;
2409
2413
  message.eventIndex = (_k = object.eventIndex) !== null && _k !== void 0 ? _k : undefined;
2410
2414
  return message;
@@ -2515,15 +2519,15 @@ exports.WorkflowRunEvent = {
2515
2519
  },
2516
2520
  };
2517
2521
  function createBaseStepRunResult() {
2518
- return { stepRunId: '', stepReadableId: '', jobRunId: '', error: undefined, output: undefined };
2522
+ return { taskRunExternalId: '', taskName: '', jobRunId: '', error: undefined, output: undefined };
2519
2523
  }
2520
2524
  exports.StepRunResult = {
2521
2525
  encode(message, writer = new wire_1.BinaryWriter()) {
2522
- if (message.stepRunId !== '') {
2523
- writer.uint32(10).string(message.stepRunId);
2526
+ if (message.taskRunExternalId !== '') {
2527
+ writer.uint32(10).string(message.taskRunExternalId);
2524
2528
  }
2525
- if (message.stepReadableId !== '') {
2526
- writer.uint32(18).string(message.stepReadableId);
2529
+ if (message.taskName !== '') {
2530
+ writer.uint32(18).string(message.taskName);
2527
2531
  }
2528
2532
  if (message.jobRunId !== '') {
2529
2533
  writer.uint32(26).string(message.jobRunId);
@@ -2547,14 +2551,14 @@ exports.StepRunResult = {
2547
2551
  if (tag !== 10) {
2548
2552
  break;
2549
2553
  }
2550
- message.stepRunId = reader.string();
2554
+ message.taskRunExternalId = reader.string();
2551
2555
  continue;
2552
2556
  }
2553
2557
  case 2: {
2554
2558
  if (tag !== 18) {
2555
2559
  break;
2556
2560
  }
2557
- message.stepReadableId = reader.string();
2561
+ message.taskName = reader.string();
2558
2562
  continue;
2559
2563
  }
2560
2564
  case 3: {
@@ -2588,8 +2592,10 @@ exports.StepRunResult = {
2588
2592
  },
2589
2593
  fromJSON(object) {
2590
2594
  return {
2591
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
2592
- stepReadableId: isSet(object.stepReadableId) ? globalThis.String(object.stepReadableId) : '',
2595
+ taskRunExternalId: isSet(object.taskRunExternalId)
2596
+ ? globalThis.String(object.taskRunExternalId)
2597
+ : '',
2598
+ taskName: isSet(object.taskName) ? globalThis.String(object.taskName) : '',
2593
2599
  jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
2594
2600
  error: isSet(object.error) ? globalThis.String(object.error) : undefined,
2595
2601
  output: isSet(object.output) ? globalThis.String(object.output) : undefined,
@@ -2597,11 +2603,11 @@ exports.StepRunResult = {
2597
2603
  },
2598
2604
  toJSON(message) {
2599
2605
  const obj = {};
2600
- if (message.stepRunId !== '') {
2601
- obj.stepRunId = message.stepRunId;
2606
+ if (message.taskRunExternalId !== '') {
2607
+ obj.taskRunExternalId = message.taskRunExternalId;
2602
2608
  }
2603
- if (message.stepReadableId !== '') {
2604
- obj.stepReadableId = message.stepReadableId;
2609
+ if (message.taskName !== '') {
2610
+ obj.taskName = message.taskName;
2605
2611
  }
2606
2612
  if (message.jobRunId !== '') {
2607
2613
  obj.jobRunId = message.jobRunId;
@@ -2620,8 +2626,8 @@ exports.StepRunResult = {
2620
2626
  fromPartial(object) {
2621
2627
  var _a, _b, _c, _d, _e;
2622
2628
  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 : '';
2629
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
2630
+ message.taskName = (_b = object.taskName) !== null && _b !== void 0 ? _b : '';
2625
2631
  message.jobRunId = (_c = object.jobRunId) !== null && _c !== void 0 ? _c : '';
2626
2632
  message.error = (_d = object.error) !== null && _d !== void 0 ? _d : undefined;
2627
2633
  message.output = (_e = object.output) !== null && _e !== void 0 ? _e : undefined;
@@ -2629,12 +2635,12 @@ exports.StepRunResult = {
2629
2635
  },
2630
2636
  };
2631
2637
  function createBaseOverridesData() {
2632
- return { stepRunId: '', path: '', value: '', callerFilename: '' };
2638
+ return { taskRunExternalId: '', path: '', value: '', callerFilename: '' };
2633
2639
  }
2634
2640
  exports.OverridesData = {
2635
2641
  encode(message, writer = new wire_1.BinaryWriter()) {
2636
- if (message.stepRunId !== '') {
2637
- writer.uint32(10).string(message.stepRunId);
2642
+ if (message.taskRunExternalId !== '') {
2643
+ writer.uint32(10).string(message.taskRunExternalId);
2638
2644
  }
2639
2645
  if (message.path !== '') {
2640
2646
  writer.uint32(18).string(message.path);
@@ -2658,7 +2664,7 @@ exports.OverridesData = {
2658
2664
  if (tag !== 10) {
2659
2665
  break;
2660
2666
  }
2661
- message.stepRunId = reader.string();
2667
+ message.taskRunExternalId = reader.string();
2662
2668
  continue;
2663
2669
  }
2664
2670
  case 2: {
@@ -2692,7 +2698,9 @@ exports.OverridesData = {
2692
2698
  },
2693
2699
  fromJSON(object) {
2694
2700
  return {
2695
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
2701
+ taskRunExternalId: isSet(object.taskRunExternalId)
2702
+ ? globalThis.String(object.taskRunExternalId)
2703
+ : '',
2696
2704
  path: isSet(object.path) ? globalThis.String(object.path) : '',
2697
2705
  value: isSet(object.value) ? globalThis.String(object.value) : '',
2698
2706
  callerFilename: isSet(object.callerFilename) ? globalThis.String(object.callerFilename) : '',
@@ -2700,8 +2708,8 @@ exports.OverridesData = {
2700
2708
  },
2701
2709
  toJSON(message) {
2702
2710
  const obj = {};
2703
- if (message.stepRunId !== '') {
2704
- obj.stepRunId = message.stepRunId;
2711
+ if (message.taskRunExternalId !== '') {
2712
+ obj.taskRunExternalId = message.taskRunExternalId;
2705
2713
  }
2706
2714
  if (message.path !== '') {
2707
2715
  obj.path = message.path;
@@ -2720,7 +2728,7 @@ exports.OverridesData = {
2720
2728
  fromPartial(object) {
2721
2729
  var _a, _b, _c, _d;
2722
2730
  const message = createBaseOverridesData();
2723
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
2731
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
2724
2732
  message.path = (_b = object.path) !== null && _b !== void 0 ? _b : '';
2725
2733
  message.value = (_c = object.value) !== null && _c !== void 0 ? _c : '';
2726
2734
  message.callerFilename = (_d = object.callerFilename) !== null && _d !== void 0 ? _d : '';
@@ -2871,12 +2879,12 @@ exports.HeartbeatResponse = {
2871
2879
  },
2872
2880
  };
2873
2881
  function createBaseRefreshTimeoutRequest() {
2874
- return { stepRunId: '', incrementTimeoutBy: '' };
2882
+ return { taskRunExternalId: '', incrementTimeoutBy: '' };
2875
2883
  }
2876
2884
  exports.RefreshTimeoutRequest = {
2877
2885
  encode(message, writer = new wire_1.BinaryWriter()) {
2878
- if (message.stepRunId !== '') {
2879
- writer.uint32(10).string(message.stepRunId);
2886
+ if (message.taskRunExternalId !== '') {
2887
+ writer.uint32(10).string(message.taskRunExternalId);
2880
2888
  }
2881
2889
  if (message.incrementTimeoutBy !== '') {
2882
2890
  writer.uint32(18).string(message.incrementTimeoutBy);
@@ -2894,7 +2902,7 @@ exports.RefreshTimeoutRequest = {
2894
2902
  if (tag !== 10) {
2895
2903
  break;
2896
2904
  }
2897
- message.stepRunId = reader.string();
2905
+ message.taskRunExternalId = reader.string();
2898
2906
  continue;
2899
2907
  }
2900
2908
  case 2: {
@@ -2914,7 +2922,9 @@ exports.RefreshTimeoutRequest = {
2914
2922
  },
2915
2923
  fromJSON(object) {
2916
2924
  return {
2917
- stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '',
2925
+ taskRunExternalId: isSet(object.taskRunExternalId)
2926
+ ? globalThis.String(object.taskRunExternalId)
2927
+ : '',
2918
2928
  incrementTimeoutBy: isSet(object.incrementTimeoutBy)
2919
2929
  ? globalThis.String(object.incrementTimeoutBy)
2920
2930
  : '',
@@ -2922,8 +2932,8 @@ exports.RefreshTimeoutRequest = {
2922
2932
  },
2923
2933
  toJSON(message) {
2924
2934
  const obj = {};
2925
- if (message.stepRunId !== '') {
2926
- obj.stepRunId = message.stepRunId;
2935
+ if (message.taskRunExternalId !== '') {
2936
+ obj.taskRunExternalId = message.taskRunExternalId;
2927
2937
  }
2928
2938
  if (message.incrementTimeoutBy !== '') {
2929
2939
  obj.incrementTimeoutBy = message.incrementTimeoutBy;
@@ -2936,7 +2946,7 @@ exports.RefreshTimeoutRequest = {
2936
2946
  fromPartial(object) {
2937
2947
  var _a, _b;
2938
2948
  const message = createBaseRefreshTimeoutRequest();
2939
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
2949
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
2940
2950
  message.incrementTimeoutBy = (_b = object.incrementTimeoutBy) !== null && _b !== void 0 ? _b : '';
2941
2951
  return message;
2942
2952
  },
@@ -2994,12 +3004,12 @@ exports.RefreshTimeoutResponse = {
2994
3004
  },
2995
3005
  };
2996
3006
  function createBaseReleaseSlotRequest() {
2997
- return { stepRunId: '' };
3007
+ return { taskRunExternalId: '' };
2998
3008
  }
2999
3009
  exports.ReleaseSlotRequest = {
3000
3010
  encode(message, writer = new wire_1.BinaryWriter()) {
3001
- if (message.stepRunId !== '') {
3002
- writer.uint32(10).string(message.stepRunId);
3011
+ if (message.taskRunExternalId !== '') {
3012
+ writer.uint32(10).string(message.taskRunExternalId);
3003
3013
  }
3004
3014
  return writer;
3005
3015
  },
@@ -3014,7 +3024,7 @@ exports.ReleaseSlotRequest = {
3014
3024
  if (tag !== 10) {
3015
3025
  break;
3016
3026
  }
3017
- message.stepRunId = reader.string();
3027
+ message.taskRunExternalId = reader.string();
3018
3028
  continue;
3019
3029
  }
3020
3030
  }
@@ -3026,12 +3036,16 @@ exports.ReleaseSlotRequest = {
3026
3036
  return message;
3027
3037
  },
3028
3038
  fromJSON(object) {
3029
- return { stepRunId: isSet(object.stepRunId) ? globalThis.String(object.stepRunId) : '' };
3039
+ return {
3040
+ taskRunExternalId: isSet(object.taskRunExternalId)
3041
+ ? globalThis.String(object.taskRunExternalId)
3042
+ : '',
3043
+ };
3030
3044
  },
3031
3045
  toJSON(message) {
3032
3046
  const obj = {};
3033
- if (message.stepRunId !== '') {
3034
- obj.stepRunId = message.stepRunId;
3047
+ if (message.taskRunExternalId !== '') {
3048
+ obj.taskRunExternalId = message.taskRunExternalId;
3035
3049
  }
3036
3050
  return obj;
3037
3051
  },
@@ -3041,7 +3055,7 @@ exports.ReleaseSlotRequest = {
3041
3055
  fromPartial(object) {
3042
3056
  var _a;
3043
3057
  const message = createBaseReleaseSlotRequest();
3044
- message.stepRunId = (_a = object.stepRunId) !== null && _a !== void 0 ? _a : '';
3058
+ message.taskRunExternalId = (_a = object.taskRunExternalId) !== null && _a !== void 0 ? _a : '';
3045
3059
  return message;
3046
3060
  },
3047
3061
  };
@@ -21,8 +21,8 @@ export interface Events {
21
21
  events: Event[];
22
22
  }
23
23
  export interface PutLogRequest {
24
- /** the step run id for the request */
25
- stepRunId: string;
24
+ /** the task external run id for the request */
25
+ taskRunExternalId: string;
26
26
  /** when the log line was created */
27
27
  createdAt: Date | undefined;
28
28
  /** the log line message */
@@ -37,8 +37,8 @@ export interface PutLogRequest {
37
37
  export interface PutLogResponse {
38
38
  }
39
39
  export interface PutStreamEventRequest {
40
- /** the step run id for the request */
41
- stepRunId: string;
40
+ /** the task external run id for the request */
41
+ taskRunExternalId: string;
42
42
  /** when the stream event was created */
43
43
  createdAt: Date | undefined;
44
44
  /** the stream event message */