@hatchet-dev/typescript-sdk 1.17.0 → 1.17.2

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: events/events.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -112,16 +112,28 @@ exports.Event = {
112
112
  },
113
113
  fromJSON(object) {
114
114
  return {
115
- tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : '',
116
- eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : '',
115
+ tenantId: isSet(object.tenantId)
116
+ ? globalThis.String(object.tenantId)
117
+ : isSet(object.tenant_id)
118
+ ? globalThis.String(object.tenant_id)
119
+ : '',
120
+ eventId: isSet(object.eventId)
121
+ ? globalThis.String(object.eventId)
122
+ : isSet(object.event_id)
123
+ ? globalThis.String(object.event_id)
124
+ : '',
117
125
  key: isSet(object.key) ? globalThis.String(object.key) : '',
118
126
  payload: isSet(object.payload) ? globalThis.String(object.payload) : '',
119
127
  eventTimestamp: isSet(object.eventTimestamp)
120
128
  ? fromJsonTimestamp(object.eventTimestamp)
121
- : undefined,
129
+ : isSet(object.event_timestamp)
130
+ ? fromJsonTimestamp(object.event_timestamp)
131
+ : undefined,
122
132
  additionalMetadata: isSet(object.additionalMetadata)
123
133
  ? globalThis.String(object.additionalMetadata)
124
- : undefined,
134
+ : isSet(object.additional_metadata)
135
+ ? globalThis.String(object.additional_metadata)
136
+ : undefined,
125
137
  scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
126
138
  };
127
139
  },
@@ -316,14 +328,22 @@ exports.PutLogRequest = {
316
328
  return {
317
329
  taskRunExternalId: isSet(object.taskRunExternalId)
318
330
  ? globalThis.String(object.taskRunExternalId)
319
- : '',
320
- createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
331
+ : isSet(object.task_run_external_id)
332
+ ? globalThis.String(object.task_run_external_id)
333
+ : '',
334
+ createdAt: isSet(object.createdAt)
335
+ ? fromJsonTimestamp(object.createdAt)
336
+ : isSet(object.created_at)
337
+ ? fromJsonTimestamp(object.created_at)
338
+ : undefined,
321
339
  message: isSet(object.message) ? globalThis.String(object.message) : '',
322
340
  level: isSet(object.level) ? globalThis.String(object.level) : undefined,
323
341
  metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : '',
324
342
  taskRetryCount: isSet(object.taskRetryCount)
325
343
  ? globalThis.Number(object.taskRetryCount)
326
- : undefined,
344
+ : isSet(object.task_retry_count)
345
+ ? globalThis.Number(object.task_retry_count)
346
+ : undefined,
327
347
  };
328
348
  },
329
349
  toJSON(message) {
@@ -482,11 +502,21 @@ exports.PutStreamEventRequest = {
482
502
  return {
483
503
  taskRunExternalId: isSet(object.taskRunExternalId)
484
504
  ? globalThis.String(object.taskRunExternalId)
485
- : '',
486
- createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
505
+ : isSet(object.task_run_external_id)
506
+ ? globalThis.String(object.task_run_external_id)
507
+ : '',
508
+ createdAt: isSet(object.createdAt)
509
+ ? fromJsonTimestamp(object.createdAt)
510
+ : isSet(object.created_at)
511
+ ? fromJsonTimestamp(object.created_at)
512
+ : undefined,
487
513
  message: isSet(object.message) ? bytesFromBase64(object.message) : new Uint8Array(0),
488
514
  metadata: isSet(object.metadata) ? globalThis.String(object.metadata) : '',
489
- eventIndex: isSet(object.eventIndex) ? globalThis.Number(object.eventIndex) : undefined,
515
+ eventIndex: isSet(object.eventIndex)
516
+ ? globalThis.Number(object.eventIndex)
517
+ : isSet(object.event_index)
518
+ ? globalThis.Number(object.event_index)
519
+ : undefined,
490
520
  };
491
521
  },
492
522
  toJSON(message) {
@@ -711,10 +741,14 @@ exports.PushEventRequest = {
711
741
  payload: isSet(object.payload) ? globalThis.String(object.payload) : '',
712
742
  eventTimestamp: isSet(object.eventTimestamp)
713
743
  ? fromJsonTimestamp(object.eventTimestamp)
714
- : undefined,
744
+ : isSet(object.event_timestamp)
745
+ ? fromJsonTimestamp(object.event_timestamp)
746
+ : undefined,
715
747
  additionalMetadata: isSet(object.additionalMetadata)
716
748
  ? globalThis.String(object.additionalMetadata)
717
- : undefined,
749
+ : isSet(object.additional_metadata)
750
+ ? globalThis.String(object.additional_metadata)
751
+ : undefined,
718
752
  priority: isSet(object.priority) ? globalThis.Number(object.priority) : undefined,
719
753
  scope: isSet(object.scope) ? globalThis.String(object.scope) : undefined,
720
754
  };
@@ -789,7 +823,13 @@ exports.ReplayEventRequest = {
789
823
  return message;
790
824
  },
791
825
  fromJSON(object) {
792
- return { eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : '' };
826
+ return {
827
+ eventId: isSet(object.eventId)
828
+ ? globalThis.String(object.eventId)
829
+ : isSet(object.event_id)
830
+ ? globalThis.String(object.event_id)
831
+ : '',
832
+ };
793
833
  },
794
834
  toJSON(message) {
795
835
  const obj = {};
@@ -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: google/protobuf/timestamp.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,6 +25,7 @@ export interface DurableEventLogEntryRef {
25
25
  export interface DurableTaskRunAckEntry {
26
26
  nodeId: number;
27
27
  branchId: number;
28
+ workflowRunExternalId: string;
28
29
  }
29
30
  export interface DurableTaskEventMemoAckResponse {
30
31
  ref: DurableEventLogEntryRef | undefined;
@@ -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: v1/dispatcher.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -77,7 +77,13 @@ exports.DurableTaskRequestRegisterWorker = {
77
77
  return message;
78
78
  },
79
79
  fromJSON(object) {
80
- return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '' };
80
+ return {
81
+ workerId: isSet(object.workerId)
82
+ ? globalThis.String(object.workerId)
83
+ : isSet(object.worker_id)
84
+ ? globalThis.String(object.worker_id)
85
+ : '',
86
+ };
81
87
  },
82
88
  toJSON(message) {
83
89
  const obj = {};
@@ -129,7 +135,13 @@ exports.DurableTaskResponseRegisterWorker = {
129
135
  return message;
130
136
  },
131
137
  fromJSON(object) {
132
- return { workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '' };
138
+ return {
139
+ workerId: isSet(object.workerId)
140
+ ? globalThis.String(object.workerId)
141
+ : isSet(object.worker_id)
142
+ ? globalThis.String(object.worker_id)
143
+ : '',
144
+ };
133
145
  },
134
146
  toJSON(message) {
135
147
  const obj = {};
@@ -214,12 +226,24 @@ exports.DurableEventLogEntryRef = {
214
226
  return {
215
227
  durableTaskExternalId: isSet(object.durableTaskExternalId)
216
228
  ? globalThis.String(object.durableTaskExternalId)
217
- : '',
229
+ : isSet(object.durable_task_external_id)
230
+ ? globalThis.String(object.durable_task_external_id)
231
+ : '',
218
232
  invocationCount: isSet(object.invocationCount)
219
233
  ? globalThis.Number(object.invocationCount)
220
- : 0,
221
- branchId: isSet(object.branchId) ? globalThis.Number(object.branchId) : 0,
222
- nodeId: isSet(object.nodeId) ? globalThis.Number(object.nodeId) : 0,
234
+ : isSet(object.invocation_count)
235
+ ? globalThis.Number(object.invocation_count)
236
+ : 0,
237
+ branchId: isSet(object.branchId)
238
+ ? globalThis.Number(object.branchId)
239
+ : isSet(object.branch_id)
240
+ ? globalThis.Number(object.branch_id)
241
+ : 0,
242
+ nodeId: isSet(object.nodeId)
243
+ ? globalThis.Number(object.nodeId)
244
+ : isSet(object.node_id)
245
+ ? globalThis.Number(object.node_id)
246
+ : 0,
223
247
  };
224
248
  },
225
249
  toJSON(message) {
@@ -252,7 +276,7 @@ exports.DurableEventLogEntryRef = {
252
276
  },
253
277
  };
254
278
  function createBaseDurableTaskRunAckEntry() {
255
- return { nodeId: 0, branchId: 0 };
279
+ return { nodeId: 0, branchId: 0, workflowRunExternalId: '' };
256
280
  }
257
281
  exports.DurableTaskRunAckEntry = {
258
282
  encode(message, writer = new wire_1.BinaryWriter()) {
@@ -262,6 +286,9 @@ exports.DurableTaskRunAckEntry = {
262
286
  if (message.branchId !== 0) {
263
287
  writer.uint32(16).int64(message.branchId);
264
288
  }
289
+ if (message.workflowRunExternalId !== '') {
290
+ writer.uint32(26).string(message.workflowRunExternalId);
291
+ }
265
292
  return writer;
266
293
  },
267
294
  decode(input, length) {
@@ -285,6 +312,13 @@ exports.DurableTaskRunAckEntry = {
285
312
  message.branchId = longToNumber(reader.int64());
286
313
  continue;
287
314
  }
315
+ case 3: {
316
+ if (tag !== 26) {
317
+ break;
318
+ }
319
+ message.workflowRunExternalId = reader.string();
320
+ continue;
321
+ }
288
322
  }
289
323
  if ((tag & 7) === 4 || tag === 0) {
290
324
  break;
@@ -295,8 +329,21 @@ exports.DurableTaskRunAckEntry = {
295
329
  },
296
330
  fromJSON(object) {
297
331
  return {
298
- nodeId: isSet(object.nodeId) ? globalThis.Number(object.nodeId) : 0,
299
- branchId: isSet(object.branchId) ? globalThis.Number(object.branchId) : 0,
332
+ nodeId: isSet(object.nodeId)
333
+ ? globalThis.Number(object.nodeId)
334
+ : isSet(object.node_id)
335
+ ? globalThis.Number(object.node_id)
336
+ : 0,
337
+ branchId: isSet(object.branchId)
338
+ ? globalThis.Number(object.branchId)
339
+ : isSet(object.branch_id)
340
+ ? globalThis.Number(object.branch_id)
341
+ : 0,
342
+ workflowRunExternalId: isSet(object.workflowRunExternalId)
343
+ ? globalThis.String(object.workflowRunExternalId)
344
+ : isSet(object.workflow_run_external_id)
345
+ ? globalThis.String(object.workflow_run_external_id)
346
+ : '',
300
347
  };
301
348
  },
302
349
  toJSON(message) {
@@ -307,16 +354,20 @@ exports.DurableTaskRunAckEntry = {
307
354
  if (message.branchId !== 0) {
308
355
  obj.branchId = Math.round(message.branchId);
309
356
  }
357
+ if (message.workflowRunExternalId !== '') {
358
+ obj.workflowRunExternalId = message.workflowRunExternalId;
359
+ }
310
360
  return obj;
311
361
  },
312
362
  create(base) {
313
363
  return exports.DurableTaskRunAckEntry.fromPartial(base !== null && base !== void 0 ? base : {});
314
364
  },
315
365
  fromPartial(object) {
316
- var _a, _b;
366
+ var _a, _b, _c;
317
367
  const message = createBaseDurableTaskRunAckEntry();
318
368
  message.nodeId = (_a = object.nodeId) !== null && _a !== void 0 ? _a : 0;
319
369
  message.branchId = (_b = object.branchId) !== null && _b !== void 0 ? _b : 0;
370
+ message.workflowRunExternalId = (_c = object.workflowRunExternalId) !== null && _c !== void 0 ? _c : '';
320
371
  return message;
321
372
  },
322
373
  };
@@ -377,10 +428,14 @@ exports.DurableTaskEventMemoAckResponse = {
377
428
  ref: isSet(object.ref) ? exports.DurableEventLogEntryRef.fromJSON(object.ref) : undefined,
378
429
  memoAlreadyExisted: isSet(object.memoAlreadyExisted)
379
430
  ? globalThis.Boolean(object.memoAlreadyExisted)
380
- : false,
431
+ : isSet(object.memo_already_existed)
432
+ ? globalThis.Boolean(object.memo_already_existed)
433
+ : false,
381
434
  memoResultPayload: isSet(object.memoResultPayload)
382
435
  ? bytesFromBase64(object.memoResultPayload)
383
- : undefined,
436
+ : isSet(object.memo_result_payload)
437
+ ? bytesFromBase64(object.memo_result_payload)
438
+ : undefined,
384
439
  };
385
440
  },
386
441
  toJSON(message) {
@@ -467,13 +522,19 @@ exports.DurableTaskEventTriggerRunsAckResponse = {
467
522
  return {
468
523
  durableTaskExternalId: isSet(object.durableTaskExternalId)
469
524
  ? globalThis.String(object.durableTaskExternalId)
470
- : '',
525
+ : isSet(object.durable_task_external_id)
526
+ ? globalThis.String(object.durable_task_external_id)
527
+ : '',
471
528
  invocationCount: isSet(object.invocationCount)
472
529
  ? globalThis.Number(object.invocationCount)
473
- : 0,
530
+ : isSet(object.invocation_count)
531
+ ? globalThis.Number(object.invocation_count)
532
+ : 0,
474
533
  runEntries: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.runEntries)
475
534
  ? object.runEntries.map((e) => exports.DurableTaskRunAckEntry.fromJSON(e))
476
- : [],
535
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.run_entries)
536
+ ? object.run_entries.map((e) => exports.DurableTaskRunAckEntry.fromJSON(e))
537
+ : [],
477
538
  };
478
539
  },
479
540
  toJSON(message) {
@@ -685,10 +746,14 @@ exports.DurableTaskEvictInvocationRequest = {
685
746
  return {
686
747
  invocationCount: isSet(object.invocationCount)
687
748
  ? globalThis.Number(object.invocationCount)
688
- : 0,
749
+ : isSet(object.invocation_count)
750
+ ? globalThis.Number(object.invocation_count)
751
+ : 0,
689
752
  durableTaskExternalId: isSet(object.durableTaskExternalId)
690
753
  ? globalThis.String(object.durableTaskExternalId)
691
- : '',
754
+ : isSet(object.durable_task_external_id)
755
+ ? globalThis.String(object.durable_task_external_id)
756
+ : '',
692
757
  reason: isSet(object.reason) ? globalThis.String(object.reason) : undefined,
693
758
  };
694
759
  },
@@ -763,10 +828,14 @@ exports.DurableTaskEvictionAckResponse = {
763
828
  return {
764
829
  invocationCount: isSet(object.invocationCount)
765
830
  ? globalThis.Number(object.invocationCount)
766
- : 0,
831
+ : isSet(object.invocation_count)
832
+ ? globalThis.Number(object.invocation_count)
833
+ : 0,
767
834
  durableTaskExternalId: isSet(object.durableTaskExternalId)
768
835
  ? globalThis.String(object.durableTaskExternalId)
769
- : '',
836
+ : isSet(object.durable_task_external_id)
837
+ ? globalThis.String(object.durable_task_external_id)
838
+ : '',
770
839
  };
771
840
  },
772
841
  toJSON(message) {
@@ -856,12 +925,24 @@ exports.DurableTaskAwaitedCompletedEntry = {
856
925
  return {
857
926
  durableTaskExternalId: isSet(object.durableTaskExternalId)
858
927
  ? globalThis.String(object.durableTaskExternalId)
859
- : '',
860
- branchId: isSet(object.branchId) ? globalThis.Number(object.branchId) : 0,
861
- nodeId: isSet(object.nodeId) ? globalThis.Number(object.nodeId) : 0,
928
+ : isSet(object.durable_task_external_id)
929
+ ? globalThis.String(object.durable_task_external_id)
930
+ : '',
931
+ branchId: isSet(object.branchId)
932
+ ? globalThis.Number(object.branchId)
933
+ : isSet(object.branch_id)
934
+ ? globalThis.Number(object.branch_id)
935
+ : 0,
936
+ nodeId: isSet(object.nodeId)
937
+ ? globalThis.Number(object.nodeId)
938
+ : isSet(object.node_id)
939
+ ? globalThis.Number(object.node_id)
940
+ : 0,
862
941
  invocationCount: isSet(object.invocationCount)
863
942
  ? globalThis.Number(object.invocationCount)
864
- : 0,
943
+ : isSet(object.invocation_count)
944
+ ? globalThis.Number(object.invocation_count)
945
+ : 0,
865
946
  };
866
947
  },
867
948
  toJSON(message) {
@@ -949,10 +1030,14 @@ exports.DurableTaskServerEvictNotice = {
949
1030
  return {
950
1031
  durableTaskExternalId: isSet(object.durableTaskExternalId)
951
1032
  ? globalThis.String(object.durableTaskExternalId)
952
- : '',
1033
+ : isSet(object.durable_task_external_id)
1034
+ ? globalThis.String(object.durable_task_external_id)
1035
+ : '',
953
1036
  invocationCount: isSet(object.invocationCount)
954
1037
  ? globalThis.Number(object.invocationCount)
955
- : 0,
1038
+ : isSet(object.invocation_count)
1039
+ ? globalThis.Number(object.invocation_count)
1040
+ : 0,
956
1041
  reason: isSet(object.reason) ? globalThis.String(object.reason) : '',
957
1042
  };
958
1043
  },
@@ -1025,10 +1110,16 @@ exports.DurableTaskWorkerStatusRequest = {
1025
1110
  },
1026
1111
  fromJSON(object) {
1027
1112
  return {
1028
- workerId: isSet(object.workerId) ? globalThis.String(object.workerId) : '',
1113
+ workerId: isSet(object.workerId)
1114
+ ? globalThis.String(object.workerId)
1115
+ : isSet(object.worker_id)
1116
+ ? globalThis.String(object.worker_id)
1117
+ : '',
1029
1118
  waitingEntries: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.waitingEntries)
1030
1119
  ? object.waitingEntries.map((e) => exports.DurableTaskAwaitedCompletedEntry.fromJSON(e))
1031
- : [],
1120
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.waiting_entries)
1121
+ ? object.waiting_entries.map((e) => exports.DurableTaskAwaitedCompletedEntry.fromJSON(e))
1122
+ : [],
1032
1123
  };
1033
1124
  },
1034
1125
  toJSON(message) {
@@ -1110,7 +1201,11 @@ exports.DurableTaskCompleteMemoRequest = {
1110
1201
  return {
1111
1202
  ref: isSet(object.ref) ? exports.DurableEventLogEntryRef.fromJSON(object.ref) : undefined,
1112
1203
  payload: isSet(object.payload) ? bytesFromBase64(object.payload) : new Uint8Array(0),
1113
- memoKey: isSet(object.memoKey) ? bytesFromBase64(object.memoKey) : new Uint8Array(0),
1204
+ memoKey: isSet(object.memoKey)
1205
+ ? bytesFromBase64(object.memoKey)
1206
+ : isSet(object.memo_key)
1207
+ ? bytesFromBase64(object.memo_key)
1208
+ : new Uint8Array(0),
1114
1209
  };
1115
1210
  },
1116
1211
  toJSON(message) {
@@ -1212,10 +1307,14 @@ exports.DurableTaskMemoRequest = {
1212
1307
  return {
1213
1308
  invocationCount: isSet(object.invocationCount)
1214
1309
  ? globalThis.Number(object.invocationCount)
1215
- : 0,
1310
+ : isSet(object.invocation_count)
1311
+ ? globalThis.Number(object.invocation_count)
1312
+ : 0,
1216
1313
  durableTaskExternalId: isSet(object.durableTaskExternalId)
1217
1314
  ? globalThis.String(object.durableTaskExternalId)
1218
- : '',
1315
+ : isSet(object.durable_task_external_id)
1316
+ ? globalThis.String(object.durable_task_external_id)
1317
+ : '',
1219
1318
  key: isSet(object.key) ? bytesFromBase64(object.key) : new Uint8Array(0),
1220
1319
  payload: isSet(object.payload) ? bytesFromBase64(object.payload) : undefined,
1221
1320
  };
@@ -1305,13 +1404,19 @@ exports.DurableTaskTriggerRunsRequest = {
1305
1404
  return {
1306
1405
  invocationCount: isSet(object.invocationCount)
1307
1406
  ? globalThis.Number(object.invocationCount)
1308
- : 0,
1407
+ : isSet(object.invocation_count)
1408
+ ? globalThis.Number(object.invocation_count)
1409
+ : 0,
1309
1410
  durableTaskExternalId: isSet(object.durableTaskExternalId)
1310
1411
  ? globalThis.String(object.durableTaskExternalId)
1311
- : '',
1412
+ : isSet(object.durable_task_external_id)
1413
+ ? globalThis.String(object.durable_task_external_id)
1414
+ : '',
1312
1415
  triggerOpts: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.triggerOpts)
1313
1416
  ? object.triggerOpts.map((e) => trigger_1.TriggerWorkflowRequest.fromJSON(e))
1314
- : [],
1417
+ : globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.trigger_opts)
1418
+ ? object.trigger_opts.map((e) => trigger_1.TriggerWorkflowRequest.fromJSON(e))
1419
+ : [],
1315
1420
  };
1316
1421
  },
1317
1422
  toJSON(message) {
@@ -1397,13 +1502,19 @@ exports.DurableTaskWaitForRequest = {
1397
1502
  return {
1398
1503
  invocationCount: isSet(object.invocationCount)
1399
1504
  ? globalThis.Number(object.invocationCount)
1400
- : 0,
1505
+ : isSet(object.invocation_count)
1506
+ ? globalThis.Number(object.invocation_count)
1507
+ : 0,
1401
1508
  durableTaskExternalId: isSet(object.durableTaskExternalId)
1402
1509
  ? globalThis.String(object.durableTaskExternalId)
1403
- : '',
1510
+ : isSet(object.durable_task_external_id)
1511
+ ? globalThis.String(object.durable_task_external_id)
1512
+ : '',
1404
1513
  waitForConditions: isSet(object.waitForConditions)
1405
1514
  ? condition_1.DurableEventListenerConditions.fromJSON(object.waitForConditions)
1406
- : undefined,
1515
+ : isSet(object.wait_for_conditions)
1516
+ ? condition_1.DurableEventListenerConditions.fromJSON(object.wait_for_conditions)
1517
+ : undefined,
1407
1518
  };
1408
1519
  },
1409
1520
  toJSON(message) {
@@ -1538,23 +1649,35 @@ exports.DurableTaskRequest = {
1538
1649
  return {
1539
1650
  registerWorker: isSet(object.registerWorker)
1540
1651
  ? exports.DurableTaskRequestRegisterWorker.fromJSON(object.registerWorker)
1541
- : undefined,
1652
+ : isSet(object.register_worker)
1653
+ ? exports.DurableTaskRequestRegisterWorker.fromJSON(object.register_worker)
1654
+ : undefined,
1542
1655
  memo: isSet(object.memo) ? exports.DurableTaskMemoRequest.fromJSON(object.memo) : undefined,
1543
1656
  triggerRuns: isSet(object.triggerRuns)
1544
1657
  ? exports.DurableTaskTriggerRunsRequest.fromJSON(object.triggerRuns)
1545
- : undefined,
1658
+ : isSet(object.trigger_runs)
1659
+ ? exports.DurableTaskTriggerRunsRequest.fromJSON(object.trigger_runs)
1660
+ : undefined,
1546
1661
  waitFor: isSet(object.waitFor)
1547
1662
  ? exports.DurableTaskWaitForRequest.fromJSON(object.waitFor)
1548
- : undefined,
1663
+ : isSet(object.wait_for)
1664
+ ? exports.DurableTaskWaitForRequest.fromJSON(object.wait_for)
1665
+ : undefined,
1549
1666
  evictInvocation: isSet(object.evictInvocation)
1550
1667
  ? exports.DurableTaskEvictInvocationRequest.fromJSON(object.evictInvocation)
1551
- : undefined,
1668
+ : isSet(object.evict_invocation)
1669
+ ? exports.DurableTaskEvictInvocationRequest.fromJSON(object.evict_invocation)
1670
+ : undefined,
1552
1671
  workerStatus: isSet(object.workerStatus)
1553
1672
  ? exports.DurableTaskWorkerStatusRequest.fromJSON(object.workerStatus)
1554
- : undefined,
1673
+ : isSet(object.worker_status)
1674
+ ? exports.DurableTaskWorkerStatusRequest.fromJSON(object.worker_status)
1675
+ : undefined,
1555
1676
  completeMemo: isSet(object.completeMemo)
1556
1677
  ? exports.DurableTaskCompleteMemoRequest.fromJSON(object.completeMemo)
1557
- : undefined,
1678
+ : isSet(object.complete_memo)
1679
+ ? exports.DurableTaskCompleteMemoRequest.fromJSON(object.complete_memo)
1680
+ : undefined,
1558
1681
  };
1559
1682
  },
1560
1683
  toJSON(message) {
@@ -1673,8 +1796,16 @@ exports.DurableTaskErrorResponse = {
1673
1796
  fromJSON(object) {
1674
1797
  return {
1675
1798
  ref: isSet(object.ref) ? exports.DurableEventLogEntryRef.fromJSON(object.ref) : undefined,
1676
- errorType: isSet(object.errorType) ? durableTaskErrorTypeFromJSON(object.errorType) : 0,
1677
- errorMessage: isSet(object.errorMessage) ? globalThis.String(object.errorMessage) : '',
1799
+ errorType: isSet(object.errorType)
1800
+ ? durableTaskErrorTypeFromJSON(object.errorType)
1801
+ : isSet(object.error_type)
1802
+ ? durableTaskErrorTypeFromJSON(object.error_type)
1803
+ : 0,
1804
+ errorMessage: isSet(object.errorMessage)
1805
+ ? globalThis.String(object.errorMessage)
1806
+ : isSet(object.error_message)
1807
+ ? globalThis.String(object.error_message)
1808
+ : '',
1678
1809
  };
1679
1810
  },
1680
1811
  toJSON(message) {
@@ -1820,26 +1951,40 @@ exports.DurableTaskResponse = {
1820
1951
  return {
1821
1952
  registerWorker: isSet(object.registerWorker)
1822
1953
  ? exports.DurableTaskResponseRegisterWorker.fromJSON(object.registerWorker)
1823
- : undefined,
1954
+ : isSet(object.register_worker)
1955
+ ? exports.DurableTaskResponseRegisterWorker.fromJSON(object.register_worker)
1956
+ : undefined,
1824
1957
  memoAck: isSet(object.memoAck)
1825
1958
  ? exports.DurableTaskEventMemoAckResponse.fromJSON(object.memoAck)
1826
- : undefined,
1959
+ : isSet(object.memo_ack)
1960
+ ? exports.DurableTaskEventMemoAckResponse.fromJSON(object.memo_ack)
1961
+ : undefined,
1827
1962
  triggerRunsAck: isSet(object.triggerRunsAck)
1828
1963
  ? exports.DurableTaskEventTriggerRunsAckResponse.fromJSON(object.triggerRunsAck)
1829
- : undefined,
1964
+ : isSet(object.trigger_runs_ack)
1965
+ ? exports.DurableTaskEventTriggerRunsAckResponse.fromJSON(object.trigger_runs_ack)
1966
+ : undefined,
1830
1967
  waitForAck: isSet(object.waitForAck)
1831
1968
  ? exports.DurableTaskEventWaitForAckResponse.fromJSON(object.waitForAck)
1832
- : undefined,
1969
+ : isSet(object.wait_for_ack)
1970
+ ? exports.DurableTaskEventWaitForAckResponse.fromJSON(object.wait_for_ack)
1971
+ : undefined,
1833
1972
  entryCompleted: isSet(object.entryCompleted)
1834
1973
  ? exports.DurableTaskEventLogEntryCompletedResponse.fromJSON(object.entryCompleted)
1835
- : undefined,
1974
+ : isSet(object.entry_completed)
1975
+ ? exports.DurableTaskEventLogEntryCompletedResponse.fromJSON(object.entry_completed)
1976
+ : undefined,
1836
1977
  error: isSet(object.error) ? exports.DurableTaskErrorResponse.fromJSON(object.error) : undefined,
1837
1978
  evictionAck: isSet(object.evictionAck)
1838
1979
  ? exports.DurableTaskEvictionAckResponse.fromJSON(object.evictionAck)
1839
- : undefined,
1980
+ : isSet(object.eviction_ack)
1981
+ ? exports.DurableTaskEvictionAckResponse.fromJSON(object.eviction_ack)
1982
+ : undefined,
1840
1983
  serverEvict: isSet(object.serverEvict)
1841
1984
  ? exports.DurableTaskServerEvictNotice.fromJSON(object.serverEvict)
1842
- : undefined,
1985
+ : isSet(object.server_evict)
1986
+ ? exports.DurableTaskServerEvictNotice.fromJSON(object.server_evict)
1987
+ : undefined,
1843
1988
  };
1844
1989
  },
1845
1990
  toJSON(message) {
@@ -1964,8 +2109,16 @@ exports.RegisterDurableEventRequest = {
1964
2109
  },
1965
2110
  fromJSON(object) {
1966
2111
  return {
1967
- taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
1968
- signalKey: isSet(object.signalKey) ? globalThis.String(object.signalKey) : '',
2112
+ taskId: isSet(object.taskId)
2113
+ ? globalThis.String(object.taskId)
2114
+ : isSet(object.task_id)
2115
+ ? globalThis.String(object.task_id)
2116
+ : '',
2117
+ signalKey: isSet(object.signalKey)
2118
+ ? globalThis.String(object.signalKey)
2119
+ : isSet(object.signal_key)
2120
+ ? globalThis.String(object.signal_key)
2121
+ : '',
1969
2122
  conditions: isSet(object.conditions)
1970
2123
  ? condition_1.DurableEventListenerConditions.fromJSON(object.conditions)
1971
2124
  : undefined,
@@ -2080,8 +2233,16 @@ exports.ListenForDurableEventRequest = {
2080
2233
  },
2081
2234
  fromJSON(object) {
2082
2235
  return {
2083
- taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
2084
- signalKey: isSet(object.signalKey) ? globalThis.String(object.signalKey) : '',
2236
+ taskId: isSet(object.taskId)
2237
+ ? globalThis.String(object.taskId)
2238
+ : isSet(object.task_id)
2239
+ ? globalThis.String(object.task_id)
2240
+ : '',
2241
+ signalKey: isSet(object.signalKey)
2242
+ ? globalThis.String(object.signalKey)
2243
+ : isSet(object.signal_key)
2244
+ ? globalThis.String(object.signal_key)
2245
+ : '',
2085
2246
  };
2086
2247
  },
2087
2248
  toJSON(message) {
@@ -2159,8 +2320,16 @@ exports.DurableEvent = {
2159
2320
  },
2160
2321
  fromJSON(object) {
2161
2322
  return {
2162
- taskId: isSet(object.taskId) ? globalThis.String(object.taskId) : '',
2163
- signalKey: isSet(object.signalKey) ? globalThis.String(object.signalKey) : '',
2323
+ taskId: isSet(object.taskId)
2324
+ ? globalThis.String(object.taskId)
2325
+ : isSet(object.task_id)
2326
+ ? globalThis.String(object.task_id)
2327
+ : '',
2328
+ signalKey: isSet(object.signalKey)
2329
+ ? globalThis.String(object.signalKey)
2330
+ : isSet(object.signal_key)
2331
+ ? globalThis.String(object.signal_key)
2332
+ : '',
2164
2333
  data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(0),
2165
2334
  };
2166
2335
  },