@superdurable/dex 1.15.0 → 1.16.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.
@@ -10,6 +10,25 @@ import { Duration } from "./google/protobuf/duration.js";
10
10
  import { Empty } from "./google/protobuf/empty.js";
11
11
  import { Timestamp } from "./google/protobuf/timestamp.js";
12
12
  export const protobufPackage = "dex";
13
+ /**
14
+ * Identifies the engine behind a Dex Server. Clients use it only to adapt behavior that differs
15
+ * between engines.
16
+ */
17
+ export var ServerEngine;
18
+ (function (ServerEngine) {
19
+ /**
20
+ * SERVER_ENGINE_UNSPECIFIED - The Server does not report its engine. Servers released before this field existed are the
21
+ * Go Server on Temporal or Cadence.
22
+ */
23
+ ServerEngine[ServerEngine["SERVER_ENGINE_UNSPECIFIED"] = 0] = "SERVER_ENGINE_UNSPECIFIED";
24
+ /** SERVER_ENGINE_TEMPORAL - The Go Server running on Temporal. */
25
+ ServerEngine[ServerEngine["SERVER_ENGINE_TEMPORAL"] = 1] = "SERVER_ENGINE_TEMPORAL";
26
+ /** SERVER_ENGINE_CADENCE - The Go Server running on Cadence. */
27
+ ServerEngine[ServerEngine["SERVER_ENGINE_CADENCE"] = 2] = "SERVER_ENGINE_CADENCE";
28
+ /** SERVER_ENGINE_ZD - server-zd: the zero-dependency Server that keeps all state in object storage. */
29
+ ServerEngine[ServerEngine["SERVER_ENGINE_ZD"] = 3] = "SERVER_ENGINE_ZD";
30
+ ServerEngine[ServerEngine["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
31
+ })(ServerEngine || (ServerEngine = {}));
13
32
  /** Explains why a Worker declined a task. */
14
33
  export var PollWorkerTaskRejectReason;
15
34
  (function (PollWorkerTaskRejectReason) {
@@ -23,7 +42,10 @@ export var PollWorkerTaskRejectReason;
23
42
  PollWorkerTaskRejectReason[PollWorkerTaskRejectReason["POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_RPC"] = 3] = "POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_RPC";
24
43
  PollWorkerTaskRejectReason[PollWorkerTaskRejectReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
25
44
  })(PollWorkerTaskRejectReason || (PollWorkerTaskRejectReason = {}));
26
- /** Distinguishes no available Worker, a disconnected Worker, and a missing Step or RPC registration. */
45
+ /**
46
+ * Distinguishes no available Worker, a disconnected Worker, and a missing Step or RPC registration.
47
+ * Go Server internals; server-zd does not serve or persist them.
48
+ */
27
49
  export var DispatchTaskErrorReason;
28
50
  (function (DispatchTaskErrorReason) {
29
51
  DispatchTaskErrorReason[DispatchTaskErrorReason["DISPATCH_TASK_ERROR_REASON_UNSPECIFIED"] = 0] = "DISPATCH_TASK_ERROR_REASON_UNSPECIFIED";
@@ -51,6 +73,10 @@ export var WaitForMethodFailurePolicy;
51
73
  (function (WaitForMethodFailurePolicy) {
52
74
  WaitForMethodFailurePolicy[WaitForMethodFailurePolicy["WAIT_FOR_METHOD_FAILURE_POLICY_UNSPECIFIED"] = 0] = "WAIT_FOR_METHOD_FAILURE_POLICY_UNSPECIFIED";
53
75
  WaitForMethodFailurePolicy[WaitForMethodFailurePolicy["WAIT_FOR_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_FAILURE"] = 1] = "WAIT_FOR_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_FAILURE";
76
+ /**
77
+ * WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE - server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
78
+ * A Step decision that uses it fails the attempt without retry.
79
+ */
54
80
  WaitForMethodFailurePolicy[WaitForMethodFailurePolicy["WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE"] = 2] = "WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE";
55
81
  WaitForMethodFailurePolicy[WaitForMethodFailurePolicy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
56
82
  })(WaitForMethodFailurePolicy || (WaitForMethodFailurePolicy = {}));
@@ -58,6 +84,10 @@ export var ExecuteMethodFailurePolicy;
58
84
  (function (ExecuteMethodFailurePolicy) {
59
85
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["EXECUTE_METHOD_FAILURE_POLICY_UNSPECIFIED"] = 0] = "EXECUTE_METHOD_FAILURE_POLICY_UNSPECIFIED";
60
86
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["EXECUTE_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_EXECUTE_METHOD_FAILURE"] = 1] = "EXECUTE_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_EXECUTE_METHOD_FAILURE";
87
+ /**
88
+ * EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP - server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
89
+ * A Step decision that uses it fails the attempt without retry.
90
+ */
61
91
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP"] = 2] = "EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP";
62
92
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
63
93
  })(ExecuteMethodFailurePolicy || (ExecuteMethodFailurePolicy = {}));
@@ -78,7 +108,10 @@ export var ActiveStepSearchMode;
78
108
  ActiveStepSearchMode[ActiveStepSearchMode["ACTIVE_STEP_SEARCH_MODE_DISABLED"] = 3] = "ACTIVE_STEP_SEARCH_MODE_DISABLED";
79
109
  ActiveStepSearchMode[ActiveStepSearchMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
80
110
  })(ActiveStepSearchMode || (ActiveStepSearchMode = {}));
81
- /** Was optimize_activity: false=SYNC, true=ASYNC. Timer is always optimized by the server. */
111
+ /**
112
+ * Was optimize_activity: false=SYNC, true=ASYNC. Timer is always optimized by the server.
113
+ * On server-zd both durabilities record the same events. ASYNC advances without waiting for the commit; there is no local phase.
114
+ */
82
115
  export var StepDurability;
83
116
  (function (StepDurability) {
84
117
  StepDurability[StepDurability["STEP_DURABILITY_UNSPECIFIED"] = 0] = "STEP_DURABILITY_UNSPECIFIED";
@@ -108,10 +141,14 @@ export var FlowStatus;
108
141
  FlowStatus[FlowStatus["FLOW_STATUS_RUNNING"] = 1] = "FLOW_STATUS_RUNNING";
109
142
  FlowStatus[FlowStatus["FLOW_STATUS_COMPLETED"] = 2] = "FLOW_STATUS_COMPLETED";
110
143
  FlowStatus[FlowStatus["FLOW_STATUS_FAILED"] = 3] = "FLOW_STATUS_FAILED";
111
- /** FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY - Reserved for reporting a backend hard timeout; applications must not depend on this status. */
144
+ /**
145
+ * FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY - Reserved for reporting a backend hard timeout; applications must not depend on this status.
146
+ * server-zd never returns this status.
147
+ */
112
148
  FlowStatus[FlowStatus["FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY"] = 4] = "FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY";
113
149
  FlowStatus[FlowStatus["FLOW_STATUS_TERMINATED"] = 5] = "FLOW_STATUS_TERMINATED";
114
150
  FlowStatus[FlowStatus["FLOW_STATUS_CANCELED"] = 6] = "FLOW_STATUS_CANCELED";
151
+ /** FLOW_STATUS_CONTINUED_AS_NEW - server-zd never returns this status. */
115
152
  FlowStatus[FlowStatus["FLOW_STATUS_CONTINUED_AS_NEW"] = 7] = "FLOW_STATUS_CONTINUED_AS_NEW";
116
153
  FlowStatus[FlowStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
117
154
  })(FlowStatus || (FlowStatus = {}));
@@ -128,7 +165,10 @@ export var FlowErrorType;
128
165
  FlowErrorType[FlowErrorType["FLOW_ERROR_TYPE_INTERNAL"] = 6] = "FLOW_ERROR_TYPE_INTERNAL";
129
166
  FlowErrorType[FlowErrorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
130
167
  })(FlowErrorType || (FlowErrorType = {}));
131
- /** PendingStepMethodPhase reports the latest persisted backend lifecycle event. */
168
+ /**
169
+ * PendingStepMethodPhase reports the latest persisted backend lifecycle event.
170
+ * On server-zd, SCHEDULED waits for locks or dispatch. STARTED means an attempt is running.
171
+ */
132
172
  export var PendingStepMethodPhase;
133
173
  (function (PendingStepMethodPhase) {
134
174
  PendingStepMethodPhase[PendingStepMethodPhase["PENDING_STEP_METHOD_PHASE_UNSPECIFIED"] = 0] = "PENDING_STEP_METHOD_PHASE_UNSPECIFIED";
@@ -250,7 +290,7 @@ export var SubFlowCompletionDeliveryStatus;
250
290
  SubFlowCompletionDeliveryStatus[SubFlowCompletionDeliveryStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
251
291
  })(SubFlowCompletionDeliveryStatus || (SubFlowCompletionDeliveryStatus = {}));
252
292
  function createBaseServerInfo() {
253
- return { serverVersion: "", minimumSupportedProtocolVersion: 0, currentProtocolVersion: 0 };
293
+ return { serverVersion: "", minimumSupportedProtocolVersion: 0, currentProtocolVersion: 0, serverEngine: 0 };
254
294
  }
255
295
  export const ServerInfo = {
256
296
  encode(message, writer = new BinaryWriter()) {
@@ -263,6 +303,9 @@ export const ServerInfo = {
263
303
  if (message.currentProtocolVersion !== 0) {
264
304
  writer.uint32(24).uint32(message.currentProtocolVersion);
265
305
  }
306
+ if (message.serverEngine !== 0) {
307
+ writer.uint32(32).int32(message.serverEngine);
308
+ }
266
309
  return writer;
267
310
  },
268
311
  decode(input, length) {
@@ -293,6 +336,13 @@ export const ServerInfo = {
293
336
  message.currentProtocolVersion = reader.uint32();
294
337
  continue;
295
338
  }
339
+ case 4: {
340
+ if (tag !== 32) {
341
+ break;
342
+ }
343
+ message.serverEngine = reader.int32();
344
+ continue;
345
+ }
296
346
  }
297
347
  if ((tag & 7) === 4 || tag === 0) {
298
348
  break;
@@ -309,6 +359,7 @@ export const ServerInfo = {
309
359
  message.serverVersion = object.serverVersion ?? "";
310
360
  message.minimumSupportedProtocolVersion = object.minimumSupportedProtocolVersion ?? 0;
311
361
  message.currentProtocolVersion = object.currentProtocolVersion ?? 0;
362
+ message.serverEngine = object.serverEngine ?? 0;
312
363
  return message;
313
364
  },
314
365
  };
@@ -2086,6 +2137,7 @@ function createBaseContext() {
2086
2137
  fromStepExecutionId: "",
2087
2138
  recoveryError: undefined,
2088
2139
  lastHeartbeatValue: undefined,
2140
+ runAttempt: 0,
2089
2141
  };
2090
2142
  }
2091
2143
  export const Context = {
@@ -2123,6 +2175,9 @@ export const Context = {
2123
2175
  if (message.lastHeartbeatValue !== undefined) {
2124
2176
  Value.encode(message.lastHeartbeatValue, writer.uint32(74).fork()).join();
2125
2177
  }
2178
+ if (message.runAttempt !== 0) {
2179
+ writer.uint32(80).int32(message.runAttempt);
2180
+ }
2126
2181
  return writer;
2127
2182
  },
2128
2183
  decode(input, length) {
@@ -2195,6 +2250,13 @@ export const Context = {
2195
2250
  message.lastHeartbeatValue = Value.decode(reader, reader.uint32());
2196
2251
  continue;
2197
2252
  }
2253
+ case 10: {
2254
+ if (tag !== 80) {
2255
+ break;
2256
+ }
2257
+ message.runAttempt = reader.int32();
2258
+ continue;
2259
+ }
2198
2260
  }
2199
2261
  if ((tag & 7) === 4 || tag === 0) {
2200
2262
  break;
@@ -2226,6 +2288,7 @@ export const Context = {
2226
2288
  message.lastHeartbeatValue = (object.lastHeartbeatValue !== undefined && object.lastHeartbeatValue !== null)
2227
2289
  ? Value.fromPartial(object.lastHeartbeatValue)
2228
2290
  : undefined;
2291
+ message.runAttempt = object.runAttempt ?? 0;
2229
2292
  return message;
2230
2293
  },
2231
2294
  };
@@ -5435,6 +5498,7 @@ function createBaseGetFlowSummaryResponse() {
5435
5498
  flowStatus: 0,
5436
5499
  startTime: undefined,
5437
5500
  closeTime: undefined,
5501
+ runAttempt: 0,
5438
5502
  };
5439
5503
  }
5440
5504
  export const GetFlowSummaryResponse = {
@@ -5460,6 +5524,9 @@ export const GetFlowSummaryResponse = {
5460
5524
  if (message.closeTime !== undefined) {
5461
5525
  Timestamp.encode(toTimestamp(message.closeTime), writer.uint32(58).fork()).join();
5462
5526
  }
5527
+ if (message.runAttempt !== 0) {
5528
+ writer.uint32(64).int32(message.runAttempt);
5529
+ }
5463
5530
  return writer;
5464
5531
  },
5465
5532
  decode(input, length) {
@@ -5518,6 +5585,13 @@ export const GetFlowSummaryResponse = {
5518
5585
  message.closeTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5519
5586
  continue;
5520
5587
  }
5588
+ case 8: {
5589
+ if (tag !== 64) {
5590
+ break;
5591
+ }
5592
+ message.runAttempt = reader.int32();
5593
+ continue;
5594
+ }
5521
5595
  }
5522
5596
  if ((tag & 7) === 4 || tag === 0) {
5523
5597
  break;
@@ -5540,6 +5614,7 @@ export const GetFlowSummaryResponse = {
5540
5614
  message.flowStatus = object.flowStatus ?? 0;
5541
5615
  message.startTime = object.startTime ?? undefined;
5542
5616
  message.closeTime = object.closeTime ?? undefined;
5617
+ message.runAttempt = object.runAttempt ?? 0;
5543
5618
  return message;
5544
5619
  },
5545
5620
  };
@@ -5695,7 +5770,14 @@ export const InternalLocalActivityInput = {
5695
5770
  },
5696
5771
  };
5697
5772
  function createBaseGetHistoryEventsRequest() {
5698
- return { flowId: "", runId: "", startInternalEventId: 0n, estimatePageSize: 0, nextPageToken: new Uint8Array(0) };
5773
+ return {
5774
+ flowId: "",
5775
+ runId: "",
5776
+ startInternalEventId: 0n,
5777
+ estimatePageSize: 0,
5778
+ nextPageToken: new Uint8Array(0),
5779
+ runAttempt: 0,
5780
+ };
5699
5781
  }
5700
5782
  export const GetHistoryEventsRequest = {
5701
5783
  encode(message, writer = new BinaryWriter()) {
@@ -5717,6 +5799,9 @@ export const GetHistoryEventsRequest = {
5717
5799
  if (message.nextPageToken.length !== 0) {
5718
5800
  writer.uint32(42).bytes(message.nextPageToken);
5719
5801
  }
5802
+ if (message.runAttempt !== 0) {
5803
+ writer.uint32(48).int32(message.runAttempt);
5804
+ }
5720
5805
  return writer;
5721
5806
  },
5722
5807
  decode(input, length) {
@@ -5761,6 +5846,13 @@ export const GetHistoryEventsRequest = {
5761
5846
  message.nextPageToken = reader.bytes();
5762
5847
  continue;
5763
5848
  }
5849
+ case 6: {
5850
+ if (tag !== 48) {
5851
+ break;
5852
+ }
5853
+ message.runAttempt = reader.int32();
5854
+ continue;
5855
+ }
5764
5856
  }
5765
5857
  if ((tag & 7) === 4 || tag === 0) {
5766
5858
  break;
@@ -5781,6 +5873,7 @@ export const GetHistoryEventsRequest = {
5781
5873
  : 0n;
5782
5874
  message.estimatePageSize = object.estimatePageSize ?? 0;
5783
5875
  message.nextPageToken = object.nextPageToken ?? new Uint8Array(0);
5876
+ message.runAttempt = object.runAttempt ?? 0;
5784
5877
  return message;
5785
5878
  },
5786
5879
  };
@@ -5853,7 +5946,7 @@ export const GetHistoryEventsResponse = {
5853
5946
  },
5854
5947
  };
5855
5948
  function createBaseFlowHistoryEvent() {
5856
- return { eventId: 0n, eventTime: undefined, payload: undefined };
5949
+ return { eventId: 0n, eventTime: undefined, runAttempt: 0, payload: undefined };
5857
5950
  }
5858
5951
  export const FlowHistoryEvent = {
5859
5952
  encode(message, writer = new BinaryWriter()) {
@@ -5866,6 +5959,9 @@ export const FlowHistoryEvent = {
5866
5959
  if (message.eventTime !== undefined) {
5867
5960
  Timestamp.encode(toTimestamp(message.eventTime), writer.uint32(18).fork()).join();
5868
5961
  }
5962
+ if (message.runAttempt !== 0) {
5963
+ writer.uint32(24).int32(message.runAttempt);
5964
+ }
5869
5965
  switch (message.payload?.$case) {
5870
5966
  case "flowStartedOrContinued":
5871
5967
  FlowStartedOrContinuedHistoryEvent.encode(message.payload.value, writer.uint32(162).fork()).join();
@@ -5927,6 +6023,13 @@ export const FlowHistoryEvent = {
5927
6023
  message.eventTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5928
6024
  continue;
5929
6025
  }
6026
+ case 3: {
6027
+ if (tag !== 24) {
6028
+ break;
6029
+ }
6030
+ message.runAttempt = reader.int32();
6031
+ continue;
6032
+ }
5930
6033
  case 20: {
5931
6034
  if (tag !== 162) {
5932
6035
  break;
@@ -6059,6 +6162,7 @@ export const FlowHistoryEvent = {
6059
6162
  const message = createBaseFlowHistoryEvent();
6060
6163
  message.eventId = (object.eventId !== undefined && object.eventId !== null) ? BigInt(object.eventId) : 0n;
6061
6164
  message.eventTime = object.eventTime ?? undefined;
6165
+ message.runAttempt = object.runAttempt ?? 0;
6062
6166
  switch (object.payload?.$case) {
6063
6167
  case "flowStartedOrContinued": {
6064
6168
  if (object.payload?.value !== undefined && object.payload?.value !== null) {
@@ -6170,13 +6274,25 @@ export const FlowHistoryEvent = {
6170
6274
  },
6171
6275
  };
6172
6276
  function createBaseTimeTravelForkHistoryEvent() {
6173
- return { previousRunId: "" };
6277
+ return { previousRunId: "", previousRunAttempt: 0, targetRunAttempt: 0, targetEventId: 0n };
6174
6278
  }
6175
6279
  export const TimeTravelForkHistoryEvent = {
6176
6280
  encode(message, writer = new BinaryWriter()) {
6177
6281
  if (message.previousRunId !== "") {
6178
6282
  writer.uint32(10).string(message.previousRunId);
6179
6283
  }
6284
+ if (message.previousRunAttempt !== 0) {
6285
+ writer.uint32(16).int32(message.previousRunAttempt);
6286
+ }
6287
+ if (message.targetRunAttempt !== 0) {
6288
+ writer.uint32(24).int32(message.targetRunAttempt);
6289
+ }
6290
+ if (message.targetEventId !== 0n) {
6291
+ if (BigInt.asIntN(64, message.targetEventId) !== message.targetEventId) {
6292
+ throw new globalThis.Error("value provided for field message.targetEventId of type int64 too large");
6293
+ }
6294
+ writer.uint32(32).int64(message.targetEventId);
6295
+ }
6180
6296
  return writer;
6181
6297
  },
6182
6298
  decode(input, length) {
@@ -6193,6 +6309,27 @@ export const TimeTravelForkHistoryEvent = {
6193
6309
  message.previousRunId = reader.string();
6194
6310
  continue;
6195
6311
  }
6312
+ case 2: {
6313
+ if (tag !== 16) {
6314
+ break;
6315
+ }
6316
+ message.previousRunAttempt = reader.int32();
6317
+ continue;
6318
+ }
6319
+ case 3: {
6320
+ if (tag !== 24) {
6321
+ break;
6322
+ }
6323
+ message.targetRunAttempt = reader.int32();
6324
+ continue;
6325
+ }
6326
+ case 4: {
6327
+ if (tag !== 32) {
6328
+ break;
6329
+ }
6330
+ message.targetEventId = reader.int64();
6331
+ continue;
6332
+ }
6196
6333
  }
6197
6334
  if ((tag & 7) === 4 || tag === 0) {
6198
6335
  break;
@@ -6207,6 +6344,11 @@ export const TimeTravelForkHistoryEvent = {
6207
6344
  fromPartial(object) {
6208
6345
  const message = createBaseTimeTravelForkHistoryEvent();
6209
6346
  message.previousRunId = object.previousRunId ?? "";
6347
+ message.previousRunAttempt = object.previousRunAttempt ?? 0;
6348
+ message.targetRunAttempt = object.targetRunAttempt ?? 0;
6349
+ message.targetEventId = (object.targetEventId !== undefined && object.targetEventId !== null)
6350
+ ? BigInt(object.targetEventId)
6351
+ : 0n;
6210
6352
  return message;
6211
6353
  },
6212
6354
  };
@@ -8583,6 +8725,7 @@ function createBaseResetFlowRequest() {
8583
8725
  stepExecutionId: "",
8584
8726
  skipWritesReapply: false,
8585
8727
  stepMethod: 0,
8728
+ runAttempt: 0,
8586
8729
  };
8587
8730
  }
8588
8731
  export const ResetFlowRequest = {
@@ -8614,6 +8757,9 @@ export const ResetFlowRequest = {
8614
8757
  if (message.stepMethod !== 0) {
8615
8758
  writer.uint32(72).int32(message.stepMethod);
8616
8759
  }
8760
+ if (message.runAttempt !== 0) {
8761
+ writer.uint32(80).int32(message.runAttempt);
8762
+ }
8617
8763
  return writer;
8618
8764
  },
8619
8765
  decode(input, length) {
@@ -8686,6 +8832,13 @@ export const ResetFlowRequest = {
8686
8832
  message.stepMethod = reader.int32();
8687
8833
  continue;
8688
8834
  }
8835
+ case 10: {
8836
+ if (tag !== 80) {
8837
+ break;
8838
+ }
8839
+ message.runAttempt = reader.int32();
8840
+ continue;
8841
+ }
8689
8842
  }
8690
8843
  if ((tag & 7) === 4 || tag === 0) {
8691
8844
  break;
@@ -8708,17 +8861,21 @@ export const ResetFlowRequest = {
8708
8861
  message.stepExecutionId = object.stepExecutionId ?? "";
8709
8862
  message.skipWritesReapply = object.skipWritesReapply ?? false;
8710
8863
  message.stepMethod = object.stepMethod ?? 0;
8864
+ message.runAttempt = object.runAttempt ?? 0;
8711
8865
  return message;
8712
8866
  },
8713
8867
  };
8714
8868
  function createBaseResetFlowResponse() {
8715
- return { runId: "" };
8869
+ return { runId: "", runAttempt: 0 };
8716
8870
  }
8717
8871
  export const ResetFlowResponse = {
8718
8872
  encode(message, writer = new BinaryWriter()) {
8719
8873
  if (message.runId !== "") {
8720
8874
  writer.uint32(10).string(message.runId);
8721
8875
  }
8876
+ if (message.runAttempt !== 0) {
8877
+ writer.uint32(16).int32(message.runAttempt);
8878
+ }
8722
8879
  return writer;
8723
8880
  },
8724
8881
  decode(input, length) {
@@ -8735,6 +8892,13 @@ export const ResetFlowResponse = {
8735
8892
  message.runId = reader.string();
8736
8893
  continue;
8737
8894
  }
8895
+ case 2: {
8896
+ if (tag !== 16) {
8897
+ break;
8898
+ }
8899
+ message.runAttempt = reader.int32();
8900
+ continue;
8901
+ }
8738
8902
  }
8739
8903
  if ((tag & 7) === 4 || tag === 0) {
8740
8904
  break;
@@ -8749,6 +8913,7 @@ export const ResetFlowResponse = {
8749
8913
  fromPartial(object) {
8750
8914
  const message = createBaseResetFlowResponse();
8751
8915
  message.runId = object.runId ?? "";
8916
+ message.runAttempt = object.runAttempt ?? 0;
8752
8917
  return message;
8753
8918
  },
8754
8919
  };
@@ -16537,6 +16702,7 @@ export const FlowServiceService = {
16537
16702
  responseSerialize: (value) => Buffer.from(WaitForAttributeResponse.encode(value).finish()),
16538
16703
  responseDeserialize: (value) => WaitForAttributeResponse.decode(value),
16539
16704
  },
16705
+ /** server-zd returns UNIMPLEMENTED. */
16540
16706
  triggerContinueAsNew: {
16541
16707
  path: "/dex.FlowService/TriggerContinueAsNew",
16542
16708
  requestStream: false,