@hatchet-dev/typescript-sdk 1.17.0 → 1.17.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
3
  // versions:
4
- // protoc-gen-ts_proto v2.7.7
4
+ // protoc-gen-ts_proto v2.11.4
5
5
  // protoc v3.19.1
6
6
  // source: dispatcher/dispatcher.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -369,8 +369,16 @@ exports.WorkerLabels = {
369
369
  },
370
370
  fromJSON(object) {
371
371
  return {
372
- strValue: isSet(object.strValue) ? globalThis.String(object.strValue) : undefined,
373
- intValue: isSet(object.intValue) ? globalThis.Number(object.intValue) : undefined,
372
+ strValue: isSet(object.strValue)
373
+ ? globalThis.String(object.strValue)
374
+ : isSet(object.str_value)
375
+ ? globalThis.String(object.str_value)
376
+ : undefined,
377
+ intValue: isSet(object.intValue)
378
+ ? globalThis.Number(object.intValue)
379
+ : isSet(object.int_value)
380
+ ? globalThis.Number(object.int_value)
381
+ : undefined,
374
382
  };
375
383
  },
376
384
  toJSON(message) {
@@ -474,11 +482,17 @@ exports.RuntimeInfo = {
474
482
  },
475
483
  fromJSON(object) {
476
484
  return {
477
- sdkVersion: isSet(object.sdkVersion) ? globalThis.String(object.sdkVersion) : undefined,
485
+ sdkVersion: isSet(object.sdkVersion)
486
+ ? globalThis.String(object.sdkVersion)
487
+ : isSet(object.sdk_version)
488
+ ? globalThis.String(object.sdk_version)
489
+ : undefined,
478
490
  language: isSet(object.language) ? sDKSFromJSON(object.language) : undefined,
479
491
  languageVersion: isSet(object.languageVersion)
480
492
  ? globalThis.String(object.languageVersion)
481
- : undefined,
493
+ : isSet(object.language_version)
494
+ ? globalThis.String(object.language_version)
495
+ : undefined,
482
496
  os: isSet(object.os) ? globalThis.String(object.os) : undefined,
483
497
  extra: isSet(object.extra) ? globalThis.String(object.extra) : undefined,
484
498
  };
@@ -542,7 +556,7 @@ exports.WorkerRegisterRequest = {
542
556
  if (message.slots !== undefined) {
543
557
  writer.uint32(32).int32(message.slots);
544
558
  }
545
- Object.entries(message.labels).forEach(([key, value]) => {
559
+ globalThis.Object.entries(message.labels).forEach(([key, value]) => {
546
560
  exports.WorkerRegisterRequest_LabelsEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
547
561
  });
548
562
  if (message.webhookId !== undefined) {
@@ -551,7 +565,7 @@ exports.WorkerRegisterRequest = {
551
565
  if (message.runtimeInfo !== undefined) {
552
566
  exports.RuntimeInfo.encode(message.runtimeInfo, writer.uint32(58).fork()).join();
553
567
  }
554
- Object.entries(message.slotConfig).forEach(([key, value]) => {
568
+ globalThis.Object.entries(message.slotConfig).forEach(([key, value]) => {
555
569
  exports.WorkerRegisterRequest_SlotConfigEntry.encode({ key: key, value }, writer.uint32(74).fork()).join();
556
570
  });
557
571
  return writer;
@@ -635,7 +649,11 @@ exports.WorkerRegisterRequest = {
635
649
  },
636
650
  fromJSON(object) {
637
651
  return {
638
- workerName: isSet(object.workerName) ? globalThis.String(object.workerName) : '',
652
+ workerName: isSet(object.workerName)
653
+ ? globalThis.String(object.workerName)
654
+ : isSet(object.worker_name)
655
+ ? globalThis.String(object.worker_name)
656
+ : '',
639
657
  actions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.actions)
640
658
  ? object.actions.map((e) => globalThis.String(e))
641
659
  : [],
@@ -644,19 +662,32 @@ exports.WorkerRegisterRequest = {
644
662
  : [],
645
663
  slots: isSet(object.slots) ? globalThis.Number(object.slots) : undefined,
646
664
  labels: isObject(object.labels)
647
- ? Object.entries(object.labels).reduce((acc, [key, value]) => {
665
+ ? globalThis.Object.entries(object.labels).reduce((acc, [key, value]) => {
648
666
  acc[key] = exports.WorkerLabels.fromJSON(value);
649
667
  return acc;
650
668
  }, {})
651
669
  : {},
652
- webhookId: isSet(object.webhookId) ? globalThis.String(object.webhookId) : undefined,
653
- runtimeInfo: isSet(object.runtimeInfo) ? exports.RuntimeInfo.fromJSON(object.runtimeInfo) : undefined,
670
+ webhookId: isSet(object.webhookId)
671
+ ? globalThis.String(object.webhookId)
672
+ : isSet(object.webhook_id)
673
+ ? globalThis.String(object.webhook_id)
674
+ : undefined,
675
+ runtimeInfo: isSet(object.runtimeInfo)
676
+ ? exports.RuntimeInfo.fromJSON(object.runtimeInfo)
677
+ : isSet(object.runtime_info)
678
+ ? exports.RuntimeInfo.fromJSON(object.runtime_info)
679
+ : undefined,
654
680
  slotConfig: isObject(object.slotConfig)
655
- ? Object.entries(object.slotConfig).reduce((acc, [key, value]) => {
656
- acc[key] = Number(value);
681
+ ? globalThis.Object.entries(object.slotConfig).reduce((acc, [key, value]) => {
682
+ acc[key] = globalThis.Number(value);
657
683
  return acc;
658
684
  }, {})
659
- : {},
685
+ : isObject(object.slot_config)
686
+ ? globalThis.Object.entries(object.slot_config).reduce((acc, [key, value]) => {
687
+ acc[key] = globalThis.Number(value);
688
+ return acc;
689
+ }, {})
690
+ : {},
660
691
  };
661
692
  },
662
693
  toJSON(message) {
@@ -675,7 +706,7 @@ exports.WorkerRegisterRequest = {
675
706
  obj.slots = Math.round(message.slots);
676
707
  }
677
708
  if (message.labels) {
678
- const entries = Object.entries(message.labels);
709
+ const entries = globalThis.Object.entries(message.labels);
679
710
  if (entries.length > 0) {
680
711
  obj.labels = {};
681
712
  entries.forEach(([k, v]) => {
@@ -690,7 +721,7 @@ exports.WorkerRegisterRequest = {
690
721
  obj.runtimeInfo = exports.RuntimeInfo.toJSON(message.runtimeInfo);
691
722
  }
692
723
  if (message.slotConfig) {
693
- const entries = Object.entries(message.slotConfig);
724
+ const entries = globalThis.Object.entries(message.slotConfig);
694
725
  if (entries.length > 0) {
695
726
  obj.slotConfig = {};
696
727
  entries.forEach(([k, v]) => {
@@ -710,7 +741,7 @@ exports.WorkerRegisterRequest = {
710
741
  message.actions = ((_b = object.actions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
711
742
  message.services = ((_c = object.services) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
712
743
  message.slots = (_d = object.slots) !== null && _d !== void 0 ? _d : undefined;
713
- message.labels = Object.entries((_e = object.labels) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
744
+ message.labels = globalThis.Object.entries((_e = object.labels) !== null && _e !== void 0 ? _e : {}).reduce((acc, [key, value]) => {
714
745
  if (value !== undefined) {
715
746
  acc[key] = exports.WorkerLabels.fromPartial(value);
716
747
  }
@@ -721,7 +752,7 @@ exports.WorkerRegisterRequest = {
721
752
  object.runtimeInfo !== undefined && object.runtimeInfo !== null
722
753
  ? exports.RuntimeInfo.fromPartial(object.runtimeInfo)
723
754
  : undefined;
724
- message.slotConfig = Object.entries((_g = object.slotConfig) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
755
+ message.slotConfig = globalThis.Object.entries((_g = object.slotConfig) !== null && _g !== void 0 ? _g : {}).reduce((acc, [key, value]) => {
725
756
  if (value !== undefined) {
726
757
  acc[key] = globalThis.Number(value);
727
758
  }
@@ -925,9 +956,21 @@ exports.WorkerRegisterResponse = {
925
956
  },
926
957
  fromJSON(object) {
927
958
  return {
928
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
929
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
930
- workerName: isSet(object.workerName) ? globalThis.String(object.workerName) : '',
959
+ tenantId: isSet(object.tenantId)
960
+ ? globalThis.String(object.tenantId)
961
+ : isSet(object.tenant_id)
962
+ ? globalThis.String(object.tenant_id)
963
+ : '',
964
+ workerId: isSet(object.workerId)
965
+ ? globalThis.String(object.workerId)
966
+ : isSet(object.worker_id)
967
+ ? globalThis.String(object.worker_id)
968
+ : '',
969
+ workerName: isSet(object.workerName)
970
+ ? globalThis.String(object.workerName)
971
+ : isSet(object.worker_name)
972
+ ? globalThis.String(object.worker_name)
973
+ : '',
931
974
  };
932
975
  },
933
976
  toJSON(message) {
@@ -963,7 +1006,7 @@ exports.UpsertWorkerLabelsRequest = {
963
1006
  if (message.workerId !== '') {
964
1007
  writer.uint32(10).string(message.workerId);
965
1008
  }
966
- Object.entries(message.labels).forEach(([key, value]) => {
1009
+ globalThis.Object.entries(message.labels).forEach(([key, value]) => {
967
1010
  exports.UpsertWorkerLabelsRequest_LabelsEntry.encode({ key: key, value }, writer.uint32(18).fork()).join();
968
1011
  });
969
1012
  return writer;
@@ -1002,9 +1045,13 @@ exports.UpsertWorkerLabelsRequest = {
1002
1045
  },
1003
1046
  fromJSON(object) {
1004
1047
  return {
1005
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1048
+ workerId: isSet(object.workerId)
1049
+ ? globalThis.String(object.workerId)
1050
+ : isSet(object.worker_id)
1051
+ ? globalThis.String(object.worker_id)
1052
+ : '',
1006
1053
  labels: isObject(object.labels)
1007
- ? Object.entries(object.labels).reduce((acc, [key, value]) => {
1054
+ ? globalThis.Object.entries(object.labels).reduce((acc, [key, value]) => {
1008
1055
  acc[key] = exports.WorkerLabels.fromJSON(value);
1009
1056
  return acc;
1010
1057
  }, {})
@@ -1017,7 +1064,7 @@ exports.UpsertWorkerLabelsRequest = {
1017
1064
  obj.workerId = message.workerId;
1018
1065
  }
1019
1066
  if (message.labels) {
1020
- const entries = Object.entries(message.labels);
1067
+ const entries = globalThis.Object.entries(message.labels);
1021
1068
  if (entries.length > 0) {
1022
1069
  obj.labels = {};
1023
1070
  entries.forEach(([k, v]) => {
@@ -1034,7 +1081,7 @@ exports.UpsertWorkerLabelsRequest = {
1034
1081
  var _a, _b;
1035
1082
  const message = createBaseUpsertWorkerLabelsRequest();
1036
1083
  message.workerId = (_a = object.workerId) !== null && _a !== void 0 ? _a : '';
1037
- message.labels = Object.entries((_b = object.labels) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => {
1084
+ message.labels = globalThis.Object.entries((_b = object.labels) !== null && _b !== void 0 ? _b : {}).reduce((acc, [key, value]) => {
1038
1085
  if (value !== undefined) {
1039
1086
  acc[key] = exports.WorkerLabels.fromPartial(value);
1040
1087
  }
@@ -1159,8 +1206,16 @@ exports.UpsertWorkerLabelsResponse = {
1159
1206
  },
1160
1207
  fromJSON(object) {
1161
1208
  return {
1162
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
1163
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1209
+ tenantId: isSet(object.tenantId)
1210
+ ? globalThis.String(object.tenantId)
1211
+ : isSet(object.tenant_id)
1212
+ ? globalThis.String(object.tenant_id)
1213
+ : '',
1214
+ workerId: isSet(object.workerId)
1215
+ ? globalThis.String(object.workerId)
1216
+ : isSet(object.worker_id)
1217
+ ? globalThis.String(object.worker_id)
1218
+ : '',
1164
1219
  };
1165
1220
  },
1166
1221
  toJSON(message) {
@@ -1440,43 +1495,107 @@ exports.AssignedAction = {
1440
1495
  },
1441
1496
  fromJSON(object) {
1442
1497
  return {
1443
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
1444
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
1498
+ tenantId: isSet(object.tenantId)
1499
+ ? globalThis.String(object.tenantId)
1500
+ : isSet(object.tenant_id)
1501
+ ? globalThis.String(object.tenant_id)
1502
+ : '',
1503
+ workflowRunId: isSet(object.workflowRunId)
1504
+ ? globalThis.String(object.workflowRunId)
1505
+ : isSet(object.workflow_run_id)
1506
+ ? globalThis.String(object.workflow_run_id)
1507
+ : '',
1445
1508
  getGroupKeyRunId: isSet(object.getGroupKeyRunId)
1446
1509
  ? globalThis.String(object.getGroupKeyRunId)
1447
- : '',
1448
- jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
1449
- jobName: isSet(object.jobName) ? globalThis.String(object.jobName) : '',
1450
- jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
1451
- taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
1510
+ : isSet(object.get_group_key_run_id)
1511
+ ? globalThis.String(object.get_group_key_run_id)
1512
+ : '',
1513
+ jobId: isSet(object.jobId)
1514
+ ? globalThis.String(object.jobId)
1515
+ : isSet(object.job_id)
1516
+ ? globalThis.String(object.job_id)
1517
+ : '',
1518
+ jobName: isSet(object.jobName)
1519
+ ? globalThis.String(object.jobName)
1520
+ : isSet(object.job_name)
1521
+ ? globalThis.String(object.job_name)
1522
+ : '',
1523
+ jobRunId: isSet(object.jobRunId)
1524
+ ? globalThis.String(object.jobRunId)
1525
+ : isSet(object.job_run_id)
1526
+ ? globalThis.String(object.job_run_id)
1527
+ : '',
1528
+ taskId: isSet(object.taskId)
1529
+ ? globalThis.String(object.taskId)
1530
+ : isSet(object.task_id)
1531
+ ? globalThis.String(object.task_id)
1532
+ : '',
1452
1533
  taskRunExternalId: isSet(object.taskRunExternalId)
1453
1534
  ? globalThis.String(object.taskRunExternalId)
1454
- : '',
1455
- actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
1456
- actionType: isSet(object.actionType) ? actionTypeFromJSON(object.actionType) : 0,
1457
- actionPayload: isSet(object.actionPayload) ? globalThis.String(object.actionPayload) : '',
1458
- taskName: isSet(object.taskName) ? globalThis.String(object.taskName) : '',
1459
- retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : 0,
1535
+ : isSet(object.task_run_external_id)
1536
+ ? globalThis.String(object.task_run_external_id)
1537
+ : '',
1538
+ actionId: isSet(object.actionId)
1539
+ ? globalThis.String(object.actionId)
1540
+ : isSet(object.action_id)
1541
+ ? globalThis.String(object.action_id)
1542
+ : '',
1543
+ actionType: isSet(object.actionType)
1544
+ ? actionTypeFromJSON(object.actionType)
1545
+ : isSet(object.action_type)
1546
+ ? actionTypeFromJSON(object.action_type)
1547
+ : 0,
1548
+ actionPayload: isSet(object.actionPayload)
1549
+ ? globalThis.String(object.actionPayload)
1550
+ : isSet(object.action_payload)
1551
+ ? globalThis.String(object.action_payload)
1552
+ : '',
1553
+ taskName: isSet(object.taskName)
1554
+ ? globalThis.String(object.taskName)
1555
+ : isSet(object.task_name)
1556
+ ? globalThis.String(object.task_name)
1557
+ : '',
1558
+ retryCount: isSet(object.retryCount)
1559
+ ? globalThis.Number(object.retryCount)
1560
+ : isSet(object.retry_count)
1561
+ ? globalThis.Number(object.retry_count)
1562
+ : 0,
1460
1563
  additionalMetadata: isSet(object.additionalMetadata)
1461
1564
  ? globalThis.String(object.additionalMetadata)
1462
- : undefined,
1565
+ : isSet(object.additional_metadata)
1566
+ ? globalThis.String(object.additional_metadata)
1567
+ : undefined,
1463
1568
  childWorkflowIndex: isSet(object.childWorkflowIndex)
1464
1569
  ? globalThis.Number(object.childWorkflowIndex)
1465
- : undefined,
1570
+ : isSet(object.child_workflow_index)
1571
+ ? globalThis.Number(object.child_workflow_index)
1572
+ : undefined,
1466
1573
  childWorkflowKey: isSet(object.childWorkflowKey)
1467
1574
  ? globalThis.String(object.childWorkflowKey)
1468
- : undefined,
1575
+ : isSet(object.child_workflow_key)
1576
+ ? globalThis.String(object.child_workflow_key)
1577
+ : undefined,
1469
1578
  parentWorkflowRunId: isSet(object.parentWorkflowRunId)
1470
1579
  ? globalThis.String(object.parentWorkflowRunId)
1471
- : undefined,
1580
+ : isSet(object.parent_workflow_run_id)
1581
+ ? globalThis.String(object.parent_workflow_run_id)
1582
+ : undefined,
1472
1583
  priority: isSet(object.priority) ? globalThis.Number(object.priority) : 0,
1473
- workflowId: isSet(object.workflowId) ? globalThis.String(object.workflowId) : undefined,
1584
+ workflowId: isSet(object.workflowId)
1585
+ ? globalThis.String(object.workflowId)
1586
+ : isSet(object.workflow_id)
1587
+ ? globalThis.String(object.workflow_id)
1588
+ : undefined,
1474
1589
  workflowVersionId: isSet(object.workflowVersionId)
1475
1590
  ? globalThis.String(object.workflowVersionId)
1476
- : undefined,
1591
+ : isSet(object.workflow_version_id)
1592
+ ? globalThis.String(object.workflow_version_id)
1593
+ : undefined,
1477
1594
  durableTaskInvocationCount: isSet(object.durableTaskInvocationCount)
1478
1595
  ? globalThis.Number(object.durableTaskInvocationCount)
1479
- : undefined,
1596
+ : isSet(object.durable_task_invocation_count)
1597
+ ? globalThis.Number(object.durable_task_invocation_count)
1598
+ : undefined,
1480
1599
  };
1481
1600
  },
1482
1601
  toJSON(message) {
@@ -1609,7 +1728,13 @@ exports.WorkerListenRequest = {
1609
1728
  return message;
1610
1729
  },
1611
1730
  fromJSON(object) {
1612
- return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '' };
1731
+ return {
1732
+ workerId: isSet(object.workerId)
1733
+ ? globalThis.String(object.workerId)
1734
+ : isSet(object.worker_id)
1735
+ ? globalThis.String(object.worker_id)
1736
+ : '',
1737
+ };
1613
1738
  },
1614
1739
  toJSON(message) {
1615
1740
  const obj = {};
@@ -1661,7 +1786,13 @@ exports.WorkerUnsubscribeRequest = {
1661
1786
  return message;
1662
1787
  },
1663
1788
  fromJSON(object) {
1664
- return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '' };
1789
+ return {
1790
+ workerId: isSet(object.workerId)
1791
+ ? globalThis.String(object.workerId)
1792
+ : isSet(object.worker_id)
1793
+ ? globalThis.String(object.worker_id)
1794
+ : '',
1795
+ };
1665
1796
  },
1666
1797
  toJSON(message) {
1667
1798
  const obj = {};
@@ -1724,8 +1855,16 @@ exports.WorkerUnsubscribeResponse = {
1724
1855
  },
1725
1856
  fromJSON(object) {
1726
1857
  return {
1727
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
1728
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1858
+ tenantId: isSet(object.tenantId)
1859
+ ? globalThis.String(object.tenantId)
1860
+ : isSet(object.tenant_id)
1861
+ ? globalThis.String(object.tenant_id)
1862
+ : '',
1863
+ workerId: isSet(object.workerId)
1864
+ ? globalThis.String(object.workerId)
1865
+ : isSet(object.worker_id)
1866
+ ? globalThis.String(object.worker_id)
1867
+ : '',
1729
1868
  };
1730
1869
  },
1731
1870
  toJSON(message) {
@@ -1851,17 +1990,41 @@ exports.GroupKeyActionEvent = {
1851
1990
  },
1852
1991
  fromJSON(object) {
1853
1992
  return {
1854
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1855
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
1993
+ workerId: isSet(object.workerId)
1994
+ ? globalThis.String(object.workerId)
1995
+ : isSet(object.worker_id)
1996
+ ? globalThis.String(object.worker_id)
1997
+ : '',
1998
+ workflowRunId: isSet(object.workflowRunId)
1999
+ ? globalThis.String(object.workflowRunId)
2000
+ : isSet(object.workflow_run_id)
2001
+ ? globalThis.String(object.workflow_run_id)
2002
+ : '',
1856
2003
  getGroupKeyRunId: isSet(object.getGroupKeyRunId)
1857
2004
  ? globalThis.String(object.getGroupKeyRunId)
1858
- : '',
1859
- actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
2005
+ : isSet(object.get_group_key_run_id)
2006
+ ? globalThis.String(object.get_group_key_run_id)
2007
+ : '',
2008
+ actionId: isSet(object.actionId)
2009
+ ? globalThis.String(object.actionId)
2010
+ : isSet(object.action_id)
2011
+ ? globalThis.String(object.action_id)
2012
+ : '',
1860
2013
  eventTimestamp: isSet(object.eventTimestamp)
1861
2014
  ? fromJsonTimestamp(object.eventTimestamp)
1862
- : undefined,
1863
- eventType: isSet(object.eventType) ? groupKeyActionEventTypeFromJSON(object.eventType) : 0,
1864
- eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
2015
+ : isSet(object.event_timestamp)
2016
+ ? fromJsonTimestamp(object.event_timestamp)
2017
+ : undefined,
2018
+ eventType: isSet(object.eventType)
2019
+ ? groupKeyActionEventTypeFromJSON(object.eventType)
2020
+ : isSet(object.event_type)
2021
+ ? groupKeyActionEventTypeFromJSON(object.event_type)
2022
+ : 0,
2023
+ eventPayload: isSet(object.eventPayload)
2024
+ ? globalThis.String(object.eventPayload)
2025
+ : isSet(object.event_payload)
2026
+ ? globalThis.String(object.event_payload)
2027
+ : '',
1865
2028
  };
1866
2029
  },
1867
2030
  toJSON(message) {
@@ -2051,23 +2214,61 @@ exports.StepActionEvent = {
2051
2214
  },
2052
2215
  fromJSON(object) {
2053
2216
  return {
2054
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
2055
- jobId: isSet(object.jobId) ? globalThis.String(object.jobId) : '',
2056
- jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
2057
- taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
2217
+ workerId: isSet(object.workerId)
2218
+ ? globalThis.String(object.workerId)
2219
+ : isSet(object.worker_id)
2220
+ ? globalThis.String(object.worker_id)
2221
+ : '',
2222
+ jobId: isSet(object.jobId)
2223
+ ? globalThis.String(object.jobId)
2224
+ : isSet(object.job_id)
2225
+ ? globalThis.String(object.job_id)
2226
+ : '',
2227
+ jobRunId: isSet(object.jobRunId)
2228
+ ? globalThis.String(object.jobRunId)
2229
+ : isSet(object.job_run_id)
2230
+ ? globalThis.String(object.job_run_id)
2231
+ : '',
2232
+ taskId: isSet(object.taskId)
2233
+ ? globalThis.String(object.taskId)
2234
+ : isSet(object.task_id)
2235
+ ? globalThis.String(object.task_id)
2236
+ : '',
2058
2237
  taskRunExternalId: isSet(object.taskRunExternalId)
2059
2238
  ? globalThis.String(object.taskRunExternalId)
2060
- : '',
2061
- actionId: isSet(object.actionId) ? globalThis.String(object.actionId) : '',
2239
+ : isSet(object.task_run_external_id)
2240
+ ? globalThis.String(object.task_run_external_id)
2241
+ : '',
2242
+ actionId: isSet(object.actionId)
2243
+ ? globalThis.String(object.actionId)
2244
+ : isSet(object.action_id)
2245
+ ? globalThis.String(object.action_id)
2246
+ : '',
2062
2247
  eventTimestamp: isSet(object.eventTimestamp)
2063
2248
  ? fromJsonTimestamp(object.eventTimestamp)
2064
- : undefined,
2065
- eventType: isSet(object.eventType) ? stepActionEventTypeFromJSON(object.eventType) : 0,
2066
- eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
2067
- retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : undefined,
2249
+ : isSet(object.event_timestamp)
2250
+ ? fromJsonTimestamp(object.event_timestamp)
2251
+ : undefined,
2252
+ eventType: isSet(object.eventType)
2253
+ ? stepActionEventTypeFromJSON(object.eventType)
2254
+ : isSet(object.event_type)
2255
+ ? stepActionEventTypeFromJSON(object.event_type)
2256
+ : 0,
2257
+ eventPayload: isSet(object.eventPayload)
2258
+ ? globalThis.String(object.eventPayload)
2259
+ : isSet(object.event_payload)
2260
+ ? globalThis.String(object.event_payload)
2261
+ : '',
2262
+ retryCount: isSet(object.retryCount)
2263
+ ? globalThis.Number(object.retryCount)
2264
+ : isSet(object.retry_count)
2265
+ ? globalThis.Number(object.retry_count)
2266
+ : undefined,
2068
2267
  shouldNotRetry: isSet(object.shouldNotRetry)
2069
2268
  ? globalThis.Boolean(object.shouldNotRetry)
2070
- : undefined,
2269
+ : isSet(object.should_not_retry)
2270
+ ? globalThis.Boolean(object.should_not_retry)
2271
+ : undefined,
2071
2272
  };
2072
2273
  },
2073
2274
  toJSON(message) {
@@ -2171,8 +2372,16 @@ exports.ActionEventResponse = {
2171
2372
  },
2172
2373
  fromJSON(object) {
2173
2374
  return {
2174
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
2175
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
2375
+ tenantId: isSet(object.tenantId)
2376
+ ? globalThis.String(object.tenantId)
2377
+ : isSet(object.tenant_id)
2378
+ ? globalThis.String(object.tenant_id)
2379
+ : '',
2380
+ workerId: isSet(object.workerId)
2381
+ ? globalThis.String(object.workerId)
2382
+ : isSet(object.worker_id)
2383
+ ? globalThis.String(object.worker_id)
2384
+ : '',
2176
2385
  };
2177
2386
  },
2178
2387
  toJSON(message) {
@@ -2252,13 +2461,19 @@ exports.SubscribeToWorkflowEventsRequest = {
2252
2461
  return {
2253
2462
  workflowRunId: isSet(object.workflowRunId)
2254
2463
  ? globalThis.String(object.workflowRunId)
2255
- : undefined,
2464
+ : isSet(object.workflow_run_id)
2465
+ ? globalThis.String(object.workflow_run_id)
2466
+ : undefined,
2256
2467
  additionalMetaKey: isSet(object.additionalMetaKey)
2257
2468
  ? globalThis.String(object.additionalMetaKey)
2258
- : undefined,
2469
+ : isSet(object.additional_meta_key)
2470
+ ? globalThis.String(object.additional_meta_key)
2471
+ : undefined,
2259
2472
  additionalMetaValue: isSet(object.additionalMetaValue)
2260
2473
  ? globalThis.String(object.additionalMetaValue)
2261
- : undefined,
2474
+ : isSet(object.additional_meta_value)
2475
+ ? globalThis.String(object.additional_meta_value)
2476
+ : undefined,
2262
2477
  };
2263
2478
  },
2264
2479
  toJSON(message) {
@@ -2320,7 +2535,11 @@ exports.SubscribeToWorkflowRunsRequest = {
2320
2535
  },
2321
2536
  fromJSON(object) {
2322
2537
  return {
2323
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
2538
+ workflowRunId: isSet(object.workflowRunId)
2539
+ ? globalThis.String(object.workflowRunId)
2540
+ : isSet(object.workflow_run_id)
2541
+ ? globalThis.String(object.workflow_run_id)
2542
+ : '',
2324
2543
  };
2325
2544
  },
2326
2545
  toJSON(message) {
@@ -2475,18 +2694,52 @@ exports.WorkflowEvent = {
2475
2694
  },
2476
2695
  fromJSON(object) {
2477
2696
  return {
2478
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
2479
- resourceType: isSet(object.resourceType) ? resourceTypeFromJSON(object.resourceType) : 0,
2480
- eventType: isSet(object.eventType) ? resourceEventTypeFromJSON(object.eventType) : 0,
2481
- resourceId: isSet(object.resourceId) ? globalThis.String(object.resourceId) : '',
2697
+ workflowRunId: isSet(object.workflowRunId)
2698
+ ? globalThis.String(object.workflowRunId)
2699
+ : isSet(object.workflow_run_id)
2700
+ ? globalThis.String(object.workflow_run_id)
2701
+ : '',
2702
+ resourceType: isSet(object.resourceType)
2703
+ ? resourceTypeFromJSON(object.resourceType)
2704
+ : isSet(object.resource_type)
2705
+ ? resourceTypeFromJSON(object.resource_type)
2706
+ : 0,
2707
+ eventType: isSet(object.eventType)
2708
+ ? resourceEventTypeFromJSON(object.eventType)
2709
+ : isSet(object.event_type)
2710
+ ? resourceEventTypeFromJSON(object.event_type)
2711
+ : 0,
2712
+ resourceId: isSet(object.resourceId)
2713
+ ? globalThis.String(object.resourceId)
2714
+ : isSet(object.resource_id)
2715
+ ? globalThis.String(object.resource_id)
2716
+ : '',
2482
2717
  eventTimestamp: isSet(object.eventTimestamp)
2483
2718
  ? fromJsonTimestamp(object.eventTimestamp)
2484
- : undefined,
2485
- eventPayload: isSet(object.eventPayload) ? globalThis.String(object.eventPayload) : '',
2719
+ : isSet(object.event_timestamp)
2720
+ ? fromJsonTimestamp(object.event_timestamp)
2721
+ : undefined,
2722
+ eventPayload: isSet(object.eventPayload)
2723
+ ? globalThis.String(object.eventPayload)
2724
+ : isSet(object.event_payload)
2725
+ ? globalThis.String(object.event_payload)
2726
+ : '',
2486
2727
  hangup: isSet(object.hangup) ? globalThis.Boolean(object.hangup) : false,
2487
- taskRetries: isSet(object.taskRetries) ? globalThis.Number(object.taskRetries) : undefined,
2488
- retryCount: isSet(object.retryCount) ? globalThis.Number(object.retryCount) : undefined,
2489
- eventIndex: isSet(object.eventIndex) ? globalThis.Number(object.eventIndex) : undefined,
2728
+ taskRetries: isSet(object.taskRetries)
2729
+ ? globalThis.Number(object.taskRetries)
2730
+ : isSet(object.task_retries)
2731
+ ? globalThis.Number(object.task_retries)
2732
+ : undefined,
2733
+ retryCount: isSet(object.retryCount)
2734
+ ? globalThis.Number(object.retryCount)
2735
+ : isSet(object.retry_count)
2736
+ ? globalThis.Number(object.retry_count)
2737
+ : undefined,
2738
+ eventIndex: isSet(object.eventIndex)
2739
+ ? globalThis.Number(object.eventIndex)
2740
+ : isSet(object.event_index)
2741
+ ? globalThis.Number(object.event_index)
2742
+ : undefined,
2490
2743
  };
2491
2744
  },
2492
2745
  toJSON(message) {
@@ -2606,11 +2859,21 @@ exports.WorkflowRunEvent = {
2606
2859
  },
2607
2860
  fromJSON(object) {
2608
2861
  return {
2609
- workflowRunId: isSet(object.workflowRunId) ? globalThis.String(object.workflowRunId) : '',
2610
- eventType: isSet(object.eventType) ? workflowRunEventTypeFromJSON(object.eventType) : 0,
2862
+ workflowRunId: isSet(object.workflowRunId)
2863
+ ? globalThis.String(object.workflowRunId)
2864
+ : isSet(object.workflow_run_id)
2865
+ ? globalThis.String(object.workflow_run_id)
2866
+ : '',
2867
+ eventType: isSet(object.eventType)
2868
+ ? workflowRunEventTypeFromJSON(object.eventType)
2869
+ : isSet(object.event_type)
2870
+ ? workflowRunEventTypeFromJSON(object.event_type)
2871
+ : 0,
2611
2872
  eventTimestamp: isSet(object.eventTimestamp)
2612
2873
  ? fromJsonTimestamp(object.eventTimestamp)
2613
- : undefined,
2874
+ : isSet(object.event_timestamp)
2875
+ ? fromJsonTimestamp(object.event_timestamp)
2876
+ : undefined,
2614
2877
  results: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.results)
2615
2878
  ? object.results.map((e) => exports.StepRunResult.fromJSON(e))
2616
2879
  : [],
@@ -2722,9 +2985,19 @@ exports.StepRunResult = {
2722
2985
  return {
2723
2986
  taskRunExternalId: isSet(object.taskRunExternalId)
2724
2987
  ? globalThis.String(object.taskRunExternalId)
2725
- : '',
2726
- taskName: isSet(object.taskName) ? globalThis.String(object.taskName) : '',
2727
- jobRunId: isSet(object.jobRunId) ? globalThis.String(object.jobRunId) : '',
2988
+ : isSet(object.task_run_external_id)
2989
+ ? globalThis.String(object.task_run_external_id)
2990
+ : '',
2991
+ taskName: isSet(object.taskName)
2992
+ ? globalThis.String(object.taskName)
2993
+ : isSet(object.task_name)
2994
+ ? globalThis.String(object.task_name)
2995
+ : '',
2996
+ jobRunId: isSet(object.jobRunId)
2997
+ ? globalThis.String(object.jobRunId)
2998
+ : isSet(object.job_run_id)
2999
+ ? globalThis.String(object.job_run_id)
3000
+ : '',
2728
3001
  error: isSet(object.error) ? globalThis.String(object.error) : undefined,
2729
3002
  output: isSet(object.output) ? globalThis.String(object.output) : undefined,
2730
3003
  };
@@ -2828,10 +3101,16 @@ exports.OverridesData = {
2828
3101
  return {
2829
3102
  taskRunExternalId: isSet(object.taskRunExternalId)
2830
3103
  ? globalThis.String(object.taskRunExternalId)
2831
- : '',
3104
+ : isSet(object.task_run_external_id)
3105
+ ? globalThis.String(object.task_run_external_id)
3106
+ : '',
2832
3107
  path: isSet(object.path) ? globalThis.String(object.path) : '',
2833
3108
  value: isSet(object.value) ? globalThis.String(object.value) : '',
2834
- callerFilename: isSet(object.callerFilename) ? globalThis.String(object.callerFilename) : '',
3109
+ callerFilename: isSet(object.callerFilename)
3110
+ ? globalThis.String(object.callerFilename)
3111
+ : isSet(object.caller_filename)
3112
+ ? globalThis.String(object.caller_filename)
3113
+ : '',
2835
3114
  };
2836
3115
  },
2837
3116
  toJSON(message) {
@@ -2944,8 +3223,16 @@ exports.HeartbeatRequest = {
2944
3223
  },
2945
3224
  fromJSON(object) {
2946
3225
  return {
2947
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
2948
- heartbeatAt: isSet(object.heartbeatAt) ? fromJsonTimestamp(object.heartbeatAt) : undefined,
3226
+ workerId: isSet(object.workerId)
3227
+ ? globalThis.String(object.workerId)
3228
+ : isSet(object.worker_id)
3229
+ ? globalThis.String(object.worker_id)
3230
+ : '',
3231
+ heartbeatAt: isSet(object.heartbeatAt)
3232
+ ? fromJsonTimestamp(object.heartbeatAt)
3233
+ : isSet(object.heartbeat_at)
3234
+ ? fromJsonTimestamp(object.heartbeat_at)
3235
+ : undefined,
2949
3236
  };
2950
3237
  },
2951
3238
  toJSON(message) {
@@ -3052,10 +3339,14 @@ exports.RefreshTimeoutRequest = {
3052
3339
  return {
3053
3340
  taskRunExternalId: isSet(object.taskRunExternalId)
3054
3341
  ? globalThis.String(object.taskRunExternalId)
3055
- : '',
3342
+ : isSet(object.task_run_external_id)
3343
+ ? globalThis.String(object.task_run_external_id)
3344
+ : '',
3056
3345
  incrementTimeoutBy: isSet(object.incrementTimeoutBy)
3057
3346
  ? globalThis.String(object.incrementTimeoutBy)
3058
- : '',
3347
+ : isSet(object.increment_timeout_by)
3348
+ ? globalThis.String(object.increment_timeout_by)
3349
+ : '',
3059
3350
  };
3060
3351
  },
3061
3352
  toJSON(message) {
@@ -3112,7 +3403,13 @@ exports.RefreshTimeoutResponse = {
3112
3403
  return message;
3113
3404
  },
3114
3405
  fromJSON(object) {
3115
- return { timeoutAt: isSet(object.timeoutAt) ? fromJsonTimestamp(object.timeoutAt) : undefined };
3406
+ return {
3407
+ timeoutAt: isSet(object.timeoutAt)
3408
+ ? fromJsonTimestamp(object.timeoutAt)
3409
+ : isSet(object.timeout_at)
3410
+ ? fromJsonTimestamp(object.timeout_at)
3411
+ : undefined,
3412
+ };
3116
3413
  },
3117
3414
  toJSON(message) {
3118
3415
  const obj = {};
@@ -3167,7 +3464,9 @@ exports.ReleaseSlotRequest = {
3167
3464
  return {
3168
3465
  taskRunExternalId: isSet(object.taskRunExternalId)
3169
3466
  ? globalThis.String(object.taskRunExternalId)
3170
- : '',
3467
+ : isSet(object.task_run_external_id)
3468
+ ? globalThis.String(object.task_run_external_id)
3469
+ : '',
3171
3470
  };
3172
3471
  },
3173
3472
  toJSON(message) {
@@ -3260,7 +3559,9 @@ exports.RestoreEvictedTaskRequest = {
3260
3559
  return {
3261
3560
  taskRunExternalId: isSet(object.taskRunExternalId)
3262
3561
  ? globalThis.String(object.taskRunExternalId)
3263
- : '',
3562
+ : isSet(object.task_run_external_id)
3563
+ ? globalThis.String(object.task_run_external_id)
3564
+ : '',
3264
3565
  };
3265
3566
  },
3266
3567
  toJSON(message) {