@superdurable/dex 1.15.0 → 1.17.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,7 @@ 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
+ /** WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE - Execute runs after the final WaitFor failure. */
54
77
  WaitForMethodFailurePolicy[WaitForMethodFailurePolicy["WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE"] = 2] = "WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE";
55
78
  WaitForMethodFailurePolicy[WaitForMethodFailurePolicy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
56
79
  })(WaitForMethodFailurePolicy || (WaitForMethodFailurePolicy = {}));
@@ -58,6 +81,7 @@ export var ExecuteMethodFailurePolicy;
58
81
  (function (ExecuteMethodFailurePolicy) {
59
82
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["EXECUTE_METHOD_FAILURE_POLICY_UNSPECIFIED"] = 0] = "EXECUTE_METHOD_FAILURE_POLICY_UNSPECIFIED";
60
83
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["EXECUTE_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_EXECUTE_METHOD_FAILURE"] = 1] = "EXECUTE_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_EXECUTE_METHOD_FAILURE";
84
+ /** EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP - The configured recovery Step starts after the final Execute failure. */
61
85
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP"] = 2] = "EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP";
62
86
  ExecuteMethodFailurePolicy[ExecuteMethodFailurePolicy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
63
87
  })(ExecuteMethodFailurePolicy || (ExecuteMethodFailurePolicy = {}));
@@ -78,7 +102,10 @@ export var ActiveStepSearchMode;
78
102
  ActiveStepSearchMode[ActiveStepSearchMode["ACTIVE_STEP_SEARCH_MODE_DISABLED"] = 3] = "ACTIVE_STEP_SEARCH_MODE_DISABLED";
79
103
  ActiveStepSearchMode[ActiveStepSearchMode["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
80
104
  })(ActiveStepSearchMode || (ActiveStepSearchMode = {}));
81
- /** Was optimize_activity: false=SYNC, true=ASYNC. Timer is always optimized by the server. */
105
+ /**
106
+ * Was optimize_activity: false=SYNC, true=ASYNC. Timer is always optimized by the server.
107
+ * On server-zd both durabilities record the same events. ASYNC advances without waiting for the commit; there is no local phase.
108
+ */
82
109
  export var StepDurability;
83
110
  (function (StepDurability) {
84
111
  StepDurability[StepDurability["STEP_DURABILITY_UNSPECIFIED"] = 0] = "STEP_DURABILITY_UNSPECIFIED";
@@ -108,10 +135,14 @@ export var FlowStatus;
108
135
  FlowStatus[FlowStatus["FLOW_STATUS_RUNNING"] = 1] = "FLOW_STATUS_RUNNING";
109
136
  FlowStatus[FlowStatus["FLOW_STATUS_COMPLETED"] = 2] = "FLOW_STATUS_COMPLETED";
110
137
  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. */
138
+ /**
139
+ * FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY - Reserved for reporting a backend hard timeout; applications must not depend on this status.
140
+ * server-zd never returns this status.
141
+ */
112
142
  FlowStatus[FlowStatus["FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY"] = 4] = "FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY";
113
143
  FlowStatus[FlowStatus["FLOW_STATUS_TERMINATED"] = 5] = "FLOW_STATUS_TERMINATED";
114
144
  FlowStatus[FlowStatus["FLOW_STATUS_CANCELED"] = 6] = "FLOW_STATUS_CANCELED";
145
+ /** FLOW_STATUS_CONTINUED_AS_NEW - server-zd never returns this status. */
115
146
  FlowStatus[FlowStatus["FLOW_STATUS_CONTINUED_AS_NEW"] = 7] = "FLOW_STATUS_CONTINUED_AS_NEW";
116
147
  FlowStatus[FlowStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
117
148
  })(FlowStatus || (FlowStatus = {}));
@@ -128,7 +159,10 @@ export var FlowErrorType;
128
159
  FlowErrorType[FlowErrorType["FLOW_ERROR_TYPE_INTERNAL"] = 6] = "FLOW_ERROR_TYPE_INTERNAL";
129
160
  FlowErrorType[FlowErrorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
130
161
  })(FlowErrorType || (FlowErrorType = {}));
131
- /** PendingStepMethodPhase reports the latest persisted backend lifecycle event. */
162
+ /**
163
+ * PendingStepMethodPhase reports the latest persisted backend lifecycle event.
164
+ * On server-zd, SCHEDULED waits for locks or dispatch. STARTED means an attempt is running.
165
+ */
132
166
  export var PendingStepMethodPhase;
133
167
  (function (PendingStepMethodPhase) {
134
168
  PendingStepMethodPhase[PendingStepMethodPhase["PENDING_STEP_METHOD_PHASE_UNSPECIFIED"] = 0] = "PENDING_STEP_METHOD_PHASE_UNSPECIFIED";
@@ -250,7 +284,7 @@ export var SubFlowCompletionDeliveryStatus;
250
284
  SubFlowCompletionDeliveryStatus[SubFlowCompletionDeliveryStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
251
285
  })(SubFlowCompletionDeliveryStatus || (SubFlowCompletionDeliveryStatus = {}));
252
286
  function createBaseServerInfo() {
253
- return { serverVersion: "", minimumSupportedProtocolVersion: 0, currentProtocolVersion: 0 };
287
+ return { serverVersion: "", minimumSupportedProtocolVersion: 0, currentProtocolVersion: 0, serverEngine: 0 };
254
288
  }
255
289
  export const ServerInfo = {
256
290
  encode(message, writer = new BinaryWriter()) {
@@ -263,6 +297,9 @@ export const ServerInfo = {
263
297
  if (message.currentProtocolVersion !== 0) {
264
298
  writer.uint32(24).uint32(message.currentProtocolVersion);
265
299
  }
300
+ if (message.serverEngine !== 0) {
301
+ writer.uint32(32).int32(message.serverEngine);
302
+ }
266
303
  return writer;
267
304
  },
268
305
  decode(input, length) {
@@ -293,6 +330,13 @@ export const ServerInfo = {
293
330
  message.currentProtocolVersion = reader.uint32();
294
331
  continue;
295
332
  }
333
+ case 4: {
334
+ if (tag !== 32) {
335
+ break;
336
+ }
337
+ message.serverEngine = reader.int32();
338
+ continue;
339
+ }
296
340
  }
297
341
  if ((tag & 7) === 4 || tag === 0) {
298
342
  break;
@@ -309,6 +353,7 @@ export const ServerInfo = {
309
353
  message.serverVersion = object.serverVersion ?? "";
310
354
  message.minimumSupportedProtocolVersion = object.minimumSupportedProtocolVersion ?? 0;
311
355
  message.currentProtocolVersion = object.currentProtocolVersion ?? 0;
356
+ message.serverEngine = object.serverEngine ?? 0;
312
357
  return message;
313
358
  },
314
359
  };
@@ -2086,6 +2131,7 @@ function createBaseContext() {
2086
2131
  fromStepExecutionId: "",
2087
2132
  recoveryError: undefined,
2088
2133
  lastHeartbeatValue: undefined,
2134
+ runAttempt: 0,
2089
2135
  };
2090
2136
  }
2091
2137
  export const Context = {
@@ -2123,6 +2169,9 @@ export const Context = {
2123
2169
  if (message.lastHeartbeatValue !== undefined) {
2124
2170
  Value.encode(message.lastHeartbeatValue, writer.uint32(74).fork()).join();
2125
2171
  }
2172
+ if (message.runAttempt !== 0) {
2173
+ writer.uint32(80).int32(message.runAttempt);
2174
+ }
2126
2175
  return writer;
2127
2176
  },
2128
2177
  decode(input, length) {
@@ -2195,6 +2244,13 @@ export const Context = {
2195
2244
  message.lastHeartbeatValue = Value.decode(reader, reader.uint32());
2196
2245
  continue;
2197
2246
  }
2247
+ case 10: {
2248
+ if (tag !== 80) {
2249
+ break;
2250
+ }
2251
+ message.runAttempt = reader.int32();
2252
+ continue;
2253
+ }
2198
2254
  }
2199
2255
  if ((tag & 7) === 4 || tag === 0) {
2200
2256
  break;
@@ -2226,6 +2282,7 @@ export const Context = {
2226
2282
  message.lastHeartbeatValue = (object.lastHeartbeatValue !== undefined && object.lastHeartbeatValue !== null)
2227
2283
  ? Value.fromPartial(object.lastHeartbeatValue)
2228
2284
  : undefined;
2285
+ message.runAttempt = object.runAttempt ?? 0;
2229
2286
  return message;
2230
2287
  },
2231
2288
  };
@@ -5435,6 +5492,7 @@ function createBaseGetFlowSummaryResponse() {
5435
5492
  flowStatus: 0,
5436
5493
  startTime: undefined,
5437
5494
  closeTime: undefined,
5495
+ runAttempt: 0,
5438
5496
  };
5439
5497
  }
5440
5498
  export const GetFlowSummaryResponse = {
@@ -5460,6 +5518,9 @@ export const GetFlowSummaryResponse = {
5460
5518
  if (message.closeTime !== undefined) {
5461
5519
  Timestamp.encode(toTimestamp(message.closeTime), writer.uint32(58).fork()).join();
5462
5520
  }
5521
+ if (message.runAttempt !== 0) {
5522
+ writer.uint32(64).int32(message.runAttempt);
5523
+ }
5463
5524
  return writer;
5464
5525
  },
5465
5526
  decode(input, length) {
@@ -5518,6 +5579,13 @@ export const GetFlowSummaryResponse = {
5518
5579
  message.closeTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5519
5580
  continue;
5520
5581
  }
5582
+ case 8: {
5583
+ if (tag !== 64) {
5584
+ break;
5585
+ }
5586
+ message.runAttempt = reader.int32();
5587
+ continue;
5588
+ }
5521
5589
  }
5522
5590
  if ((tag & 7) === 4 || tag === 0) {
5523
5591
  break;
@@ -5540,6 +5608,7 @@ export const GetFlowSummaryResponse = {
5540
5608
  message.flowStatus = object.flowStatus ?? 0;
5541
5609
  message.startTime = object.startTime ?? undefined;
5542
5610
  message.closeTime = object.closeTime ?? undefined;
5611
+ message.runAttempt = object.runAttempt ?? 0;
5543
5612
  return message;
5544
5613
  },
5545
5614
  };
@@ -5695,7 +5764,14 @@ export const InternalLocalActivityInput = {
5695
5764
  },
5696
5765
  };
5697
5766
  function createBaseGetHistoryEventsRequest() {
5698
- return { flowId: "", runId: "", startInternalEventId: 0n, estimatePageSize: 0, nextPageToken: new Uint8Array(0) };
5767
+ return {
5768
+ flowId: "",
5769
+ runId: "",
5770
+ startInternalEventId: 0n,
5771
+ estimatePageSize: 0,
5772
+ nextPageToken: new Uint8Array(0),
5773
+ runAttempt: 0,
5774
+ };
5699
5775
  }
5700
5776
  export const GetHistoryEventsRequest = {
5701
5777
  encode(message, writer = new BinaryWriter()) {
@@ -5717,6 +5793,9 @@ export const GetHistoryEventsRequest = {
5717
5793
  if (message.nextPageToken.length !== 0) {
5718
5794
  writer.uint32(42).bytes(message.nextPageToken);
5719
5795
  }
5796
+ if (message.runAttempt !== 0) {
5797
+ writer.uint32(48).int32(message.runAttempt);
5798
+ }
5720
5799
  return writer;
5721
5800
  },
5722
5801
  decode(input, length) {
@@ -5761,6 +5840,13 @@ export const GetHistoryEventsRequest = {
5761
5840
  message.nextPageToken = reader.bytes();
5762
5841
  continue;
5763
5842
  }
5843
+ case 6: {
5844
+ if (tag !== 48) {
5845
+ break;
5846
+ }
5847
+ message.runAttempt = reader.int32();
5848
+ continue;
5849
+ }
5764
5850
  }
5765
5851
  if ((tag & 7) === 4 || tag === 0) {
5766
5852
  break;
@@ -5781,6 +5867,7 @@ export const GetHistoryEventsRequest = {
5781
5867
  : 0n;
5782
5868
  message.estimatePageSize = object.estimatePageSize ?? 0;
5783
5869
  message.nextPageToken = object.nextPageToken ?? new Uint8Array(0);
5870
+ message.runAttempt = object.runAttempt ?? 0;
5784
5871
  return message;
5785
5872
  },
5786
5873
  };
@@ -5853,7 +5940,7 @@ export const GetHistoryEventsResponse = {
5853
5940
  },
5854
5941
  };
5855
5942
  function createBaseFlowHistoryEvent() {
5856
- return { eventId: 0n, eventTime: undefined, payload: undefined };
5943
+ return { eventId: 0n, eventTime: undefined, runAttempt: 0, payload: undefined };
5857
5944
  }
5858
5945
  export const FlowHistoryEvent = {
5859
5946
  encode(message, writer = new BinaryWriter()) {
@@ -5866,6 +5953,9 @@ export const FlowHistoryEvent = {
5866
5953
  if (message.eventTime !== undefined) {
5867
5954
  Timestamp.encode(toTimestamp(message.eventTime), writer.uint32(18).fork()).join();
5868
5955
  }
5956
+ if (message.runAttempt !== 0) {
5957
+ writer.uint32(24).int32(message.runAttempt);
5958
+ }
5869
5959
  switch (message.payload?.$case) {
5870
5960
  case "flowStartedOrContinued":
5871
5961
  FlowStartedOrContinuedHistoryEvent.encode(message.payload.value, writer.uint32(162).fork()).join();
@@ -5927,6 +6017,13 @@ export const FlowHistoryEvent = {
5927
6017
  message.eventTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
5928
6018
  continue;
5929
6019
  }
6020
+ case 3: {
6021
+ if (tag !== 24) {
6022
+ break;
6023
+ }
6024
+ message.runAttempt = reader.int32();
6025
+ continue;
6026
+ }
5930
6027
  case 20: {
5931
6028
  if (tag !== 162) {
5932
6029
  break;
@@ -6059,6 +6156,7 @@ export const FlowHistoryEvent = {
6059
6156
  const message = createBaseFlowHistoryEvent();
6060
6157
  message.eventId = (object.eventId !== undefined && object.eventId !== null) ? BigInt(object.eventId) : 0n;
6061
6158
  message.eventTime = object.eventTime ?? undefined;
6159
+ message.runAttempt = object.runAttempt ?? 0;
6062
6160
  switch (object.payload?.$case) {
6063
6161
  case "flowStartedOrContinued": {
6064
6162
  if (object.payload?.value !== undefined && object.payload?.value !== null) {
@@ -6170,13 +6268,25 @@ export const FlowHistoryEvent = {
6170
6268
  },
6171
6269
  };
6172
6270
  function createBaseTimeTravelForkHistoryEvent() {
6173
- return { previousRunId: "" };
6271
+ return { previousRunId: "", previousRunAttempt: 0, targetRunAttempt: 0, targetEventId: 0n };
6174
6272
  }
6175
6273
  export const TimeTravelForkHistoryEvent = {
6176
6274
  encode(message, writer = new BinaryWriter()) {
6177
6275
  if (message.previousRunId !== "") {
6178
6276
  writer.uint32(10).string(message.previousRunId);
6179
6277
  }
6278
+ if (message.previousRunAttempt !== 0) {
6279
+ writer.uint32(16).int32(message.previousRunAttempt);
6280
+ }
6281
+ if (message.targetRunAttempt !== 0) {
6282
+ writer.uint32(24).int32(message.targetRunAttempt);
6283
+ }
6284
+ if (message.targetEventId !== 0n) {
6285
+ if (BigInt.asIntN(64, message.targetEventId) !== message.targetEventId) {
6286
+ throw new globalThis.Error("value provided for field message.targetEventId of type int64 too large");
6287
+ }
6288
+ writer.uint32(32).int64(message.targetEventId);
6289
+ }
6180
6290
  return writer;
6181
6291
  },
6182
6292
  decode(input, length) {
@@ -6193,6 +6303,27 @@ export const TimeTravelForkHistoryEvent = {
6193
6303
  message.previousRunId = reader.string();
6194
6304
  continue;
6195
6305
  }
6306
+ case 2: {
6307
+ if (tag !== 16) {
6308
+ break;
6309
+ }
6310
+ message.previousRunAttempt = reader.int32();
6311
+ continue;
6312
+ }
6313
+ case 3: {
6314
+ if (tag !== 24) {
6315
+ break;
6316
+ }
6317
+ message.targetRunAttempt = reader.int32();
6318
+ continue;
6319
+ }
6320
+ case 4: {
6321
+ if (tag !== 32) {
6322
+ break;
6323
+ }
6324
+ message.targetEventId = reader.int64();
6325
+ continue;
6326
+ }
6196
6327
  }
6197
6328
  if ((tag & 7) === 4 || tag === 0) {
6198
6329
  break;
@@ -6207,6 +6338,11 @@ export const TimeTravelForkHistoryEvent = {
6207
6338
  fromPartial(object) {
6208
6339
  const message = createBaseTimeTravelForkHistoryEvent();
6209
6340
  message.previousRunId = object.previousRunId ?? "";
6341
+ message.previousRunAttempt = object.previousRunAttempt ?? 0;
6342
+ message.targetRunAttempt = object.targetRunAttempt ?? 0;
6343
+ message.targetEventId = (object.targetEventId !== undefined && object.targetEventId !== null)
6344
+ ? BigInt(object.targetEventId)
6345
+ : 0n;
6210
6346
  return message;
6211
6347
  },
6212
6348
  };
@@ -8583,6 +8719,7 @@ function createBaseResetFlowRequest() {
8583
8719
  stepExecutionId: "",
8584
8720
  skipWritesReapply: false,
8585
8721
  stepMethod: 0,
8722
+ runAttempt: 0,
8586
8723
  };
8587
8724
  }
8588
8725
  export const ResetFlowRequest = {
@@ -8614,6 +8751,9 @@ export const ResetFlowRequest = {
8614
8751
  if (message.stepMethod !== 0) {
8615
8752
  writer.uint32(72).int32(message.stepMethod);
8616
8753
  }
8754
+ if (message.runAttempt !== 0) {
8755
+ writer.uint32(80).int32(message.runAttempt);
8756
+ }
8617
8757
  return writer;
8618
8758
  },
8619
8759
  decode(input, length) {
@@ -8686,6 +8826,13 @@ export const ResetFlowRequest = {
8686
8826
  message.stepMethod = reader.int32();
8687
8827
  continue;
8688
8828
  }
8829
+ case 10: {
8830
+ if (tag !== 80) {
8831
+ break;
8832
+ }
8833
+ message.runAttempt = reader.int32();
8834
+ continue;
8835
+ }
8689
8836
  }
8690
8837
  if ((tag & 7) === 4 || tag === 0) {
8691
8838
  break;
@@ -8708,17 +8855,21 @@ export const ResetFlowRequest = {
8708
8855
  message.stepExecutionId = object.stepExecutionId ?? "";
8709
8856
  message.skipWritesReapply = object.skipWritesReapply ?? false;
8710
8857
  message.stepMethod = object.stepMethod ?? 0;
8858
+ message.runAttempt = object.runAttempt ?? 0;
8711
8859
  return message;
8712
8860
  },
8713
8861
  };
8714
8862
  function createBaseResetFlowResponse() {
8715
- return { runId: "" };
8863
+ return { runId: "", runAttempt: 0 };
8716
8864
  }
8717
8865
  export const ResetFlowResponse = {
8718
8866
  encode(message, writer = new BinaryWriter()) {
8719
8867
  if (message.runId !== "") {
8720
8868
  writer.uint32(10).string(message.runId);
8721
8869
  }
8870
+ if (message.runAttempt !== 0) {
8871
+ writer.uint32(16).int32(message.runAttempt);
8872
+ }
8722
8873
  return writer;
8723
8874
  },
8724
8875
  decode(input, length) {
@@ -8735,6 +8886,13 @@ export const ResetFlowResponse = {
8735
8886
  message.runId = reader.string();
8736
8887
  continue;
8737
8888
  }
8889
+ case 2: {
8890
+ if (tag !== 16) {
8891
+ break;
8892
+ }
8893
+ message.runAttempt = reader.int32();
8894
+ continue;
8895
+ }
8738
8896
  }
8739
8897
  if ((tag & 7) === 4 || tag === 0) {
8740
8898
  break;
@@ -8749,6 +8907,7 @@ export const ResetFlowResponse = {
8749
8907
  fromPartial(object) {
8750
8908
  const message = createBaseResetFlowResponse();
8751
8909
  message.runId = object.runId ?? "";
8910
+ message.runAttempt = object.runAttempt ?? 0;
8752
8911
  return message;
8753
8912
  },
8754
8913
  };
@@ -16537,6 +16696,7 @@ export const FlowServiceService = {
16537
16696
  responseSerialize: (value) => Buffer.from(WaitForAttributeResponse.encode(value).finish()),
16538
16697
  responseDeserialize: (value) => WaitForAttributeResponse.decode(value),
16539
16698
  },
16699
+ /** server-zd returns UNIMPLEMENTED. */
16540
16700
  triggerContinueAsNew: {
16541
16701
  path: "/dex.FlowService/TriggerContinueAsNew",
16542
16702
  requestStream: false,