@superdurable/dex 1.14.1 → 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.
- package/README.md +82 -0
- package/dist/src/client.js +1 -0
- package/dist/src/client.js.map +1 -1
- package/dist/src/credential.d.ts +86 -0
- package/dist/src/credential.js +373 -7
- package/dist/src/credential.js.map +1 -1
- package/dist/src/gen/dex.d.ts +185 -17
- package/dist/src/gen/dex.js +431 -14
- package/dist/src/gen/dex.js.map +1 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.js +1 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/options.d.ts +50 -2
- package/dist/src/options.js.map +1 -1
- package/dist/src/pull-worker.d.ts +5 -0
- package/dist/src/pull-worker.js +38 -5
- package/dist/src/pull-worker.js.map +1 -1
- package/dist/src/sdk-version.generated.d.ts +1 -1
- package/dist/src/sdk-version.generated.js +1 -1
- package/dist/src/worker.d.ts +12 -0
- package/dist/src/worker.js +14 -0
- package/dist/src/worker.js.map +1 -1
- package/native/linux-aarch64/dex_blob_cache_node.node +0 -0
- package/native/linux-x86_64/dex_blob_cache_node.node +0 -0
- package/native/macos-aarch64/dex_blob_cache_node.node +0 -0
- package/native/macos-x86_64/dex_blob_cache_node.node +0 -0
- package/native/windows-x86_64/dex_blob_cache_node.node +0 -0
- package/package.json +1 -1
package/dist/src/gen/dex.js
CHANGED
|
@@ -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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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
|
-
/**
|
|
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";
|
|
@@ -136,6 +176,13 @@ export var PendingStepMethodPhase;
|
|
|
136
176
|
PendingStepMethodPhase[PendingStepMethodPhase["PENDING_STEP_METHOD_PHASE_STARTED"] = 2] = "PENDING_STEP_METHOD_PHASE_STARTED";
|
|
137
177
|
PendingStepMethodPhase[PendingStepMethodPhase["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
138
178
|
})(PendingStepMethodPhase || (PendingStepMethodPhase = {}));
|
|
179
|
+
export var PullRoutingSource;
|
|
180
|
+
(function (PullRoutingSource) {
|
|
181
|
+
PullRoutingSource[PullRoutingSource["PULL_ROUTING_SOURCE_UNSPECIFIED"] = 0] = "PULL_ROUTING_SOURCE_UNSPECIFIED";
|
|
182
|
+
PullRoutingSource[PullRoutingSource["PULL_ROUTING_SOURCE_STICKY_QUEUE"] = 1] = "PULL_ROUTING_SOURCE_STICKY_QUEUE";
|
|
183
|
+
PullRoutingSource[PullRoutingSource["PULL_ROUTING_SOURCE_FLOW_TYPE_QUEUE"] = 2] = "PULL_ROUTING_SOURCE_FLOW_TYPE_QUEUE";
|
|
184
|
+
PullRoutingSource[PullRoutingSource["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
185
|
+
})(PullRoutingSource || (PullRoutingSource = {}));
|
|
139
186
|
export var ActiveStepPhase;
|
|
140
187
|
(function (ActiveStepPhase) {
|
|
141
188
|
ActiveStepPhase[ActiveStepPhase["ACTIVE_STEP_PHASE_UNSPECIFIED"] = 0] = "ACTIVE_STEP_PHASE_UNSPECIFIED";
|
|
@@ -243,7 +290,7 @@ export var SubFlowCompletionDeliveryStatus;
|
|
|
243
290
|
SubFlowCompletionDeliveryStatus[SubFlowCompletionDeliveryStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
244
291
|
})(SubFlowCompletionDeliveryStatus || (SubFlowCompletionDeliveryStatus = {}));
|
|
245
292
|
function createBaseServerInfo() {
|
|
246
|
-
return { serverVersion: "", minimumSupportedProtocolVersion: 0, currentProtocolVersion: 0 };
|
|
293
|
+
return { serverVersion: "", minimumSupportedProtocolVersion: 0, currentProtocolVersion: 0, serverEngine: 0 };
|
|
247
294
|
}
|
|
248
295
|
export const ServerInfo = {
|
|
249
296
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -256,6 +303,9 @@ export const ServerInfo = {
|
|
|
256
303
|
if (message.currentProtocolVersion !== 0) {
|
|
257
304
|
writer.uint32(24).uint32(message.currentProtocolVersion);
|
|
258
305
|
}
|
|
306
|
+
if (message.serverEngine !== 0) {
|
|
307
|
+
writer.uint32(32).int32(message.serverEngine);
|
|
308
|
+
}
|
|
259
309
|
return writer;
|
|
260
310
|
},
|
|
261
311
|
decode(input, length) {
|
|
@@ -286,6 +336,13 @@ export const ServerInfo = {
|
|
|
286
336
|
message.currentProtocolVersion = reader.uint32();
|
|
287
337
|
continue;
|
|
288
338
|
}
|
|
339
|
+
case 4: {
|
|
340
|
+
if (tag !== 32) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
message.serverEngine = reader.int32();
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
289
346
|
}
|
|
290
347
|
if ((tag & 7) === 4 || tag === 0) {
|
|
291
348
|
break;
|
|
@@ -302,6 +359,7 @@ export const ServerInfo = {
|
|
|
302
359
|
message.serverVersion = object.serverVersion ?? "";
|
|
303
360
|
message.minimumSupportedProtocolVersion = object.minimumSupportedProtocolVersion ?? 0;
|
|
304
361
|
message.currentProtocolVersion = object.currentProtocolVersion ?? 0;
|
|
362
|
+
message.serverEngine = object.serverEngine ?? 0;
|
|
305
363
|
return message;
|
|
306
364
|
},
|
|
307
365
|
};
|
|
@@ -2079,6 +2137,7 @@ function createBaseContext() {
|
|
|
2079
2137
|
fromStepExecutionId: "",
|
|
2080
2138
|
recoveryError: undefined,
|
|
2081
2139
|
lastHeartbeatValue: undefined,
|
|
2140
|
+
runAttempt: 0,
|
|
2082
2141
|
};
|
|
2083
2142
|
}
|
|
2084
2143
|
export const Context = {
|
|
@@ -2116,6 +2175,9 @@ export const Context = {
|
|
|
2116
2175
|
if (message.lastHeartbeatValue !== undefined) {
|
|
2117
2176
|
Value.encode(message.lastHeartbeatValue, writer.uint32(74).fork()).join();
|
|
2118
2177
|
}
|
|
2178
|
+
if (message.runAttempt !== 0) {
|
|
2179
|
+
writer.uint32(80).int32(message.runAttempt);
|
|
2180
|
+
}
|
|
2119
2181
|
return writer;
|
|
2120
2182
|
},
|
|
2121
2183
|
decode(input, length) {
|
|
@@ -2188,6 +2250,13 @@ export const Context = {
|
|
|
2188
2250
|
message.lastHeartbeatValue = Value.decode(reader, reader.uint32());
|
|
2189
2251
|
continue;
|
|
2190
2252
|
}
|
|
2253
|
+
case 10: {
|
|
2254
|
+
if (tag !== 80) {
|
|
2255
|
+
break;
|
|
2256
|
+
}
|
|
2257
|
+
message.runAttempt = reader.int32();
|
|
2258
|
+
continue;
|
|
2259
|
+
}
|
|
2191
2260
|
}
|
|
2192
2261
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2193
2262
|
break;
|
|
@@ -2219,6 +2288,7 @@ export const Context = {
|
|
|
2219
2288
|
message.lastHeartbeatValue = (object.lastHeartbeatValue !== undefined && object.lastHeartbeatValue !== null)
|
|
2220
2289
|
? Value.fromPartial(object.lastHeartbeatValue)
|
|
2221
2290
|
: undefined;
|
|
2291
|
+
message.runAttempt = object.runAttempt ?? 0;
|
|
2222
2292
|
return message;
|
|
2223
2293
|
},
|
|
2224
2294
|
};
|
|
@@ -5428,6 +5498,7 @@ function createBaseGetFlowSummaryResponse() {
|
|
|
5428
5498
|
flowStatus: 0,
|
|
5429
5499
|
startTime: undefined,
|
|
5430
5500
|
closeTime: undefined,
|
|
5501
|
+
runAttempt: 0,
|
|
5431
5502
|
};
|
|
5432
5503
|
}
|
|
5433
5504
|
export const GetFlowSummaryResponse = {
|
|
@@ -5453,6 +5524,9 @@ export const GetFlowSummaryResponse = {
|
|
|
5453
5524
|
if (message.closeTime !== undefined) {
|
|
5454
5525
|
Timestamp.encode(toTimestamp(message.closeTime), writer.uint32(58).fork()).join();
|
|
5455
5526
|
}
|
|
5527
|
+
if (message.runAttempt !== 0) {
|
|
5528
|
+
writer.uint32(64).int32(message.runAttempt);
|
|
5529
|
+
}
|
|
5456
5530
|
return writer;
|
|
5457
5531
|
},
|
|
5458
5532
|
decode(input, length) {
|
|
@@ -5511,6 +5585,13 @@ export const GetFlowSummaryResponse = {
|
|
|
5511
5585
|
message.closeTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
5512
5586
|
continue;
|
|
5513
5587
|
}
|
|
5588
|
+
case 8: {
|
|
5589
|
+
if (tag !== 64) {
|
|
5590
|
+
break;
|
|
5591
|
+
}
|
|
5592
|
+
message.runAttempt = reader.int32();
|
|
5593
|
+
continue;
|
|
5594
|
+
}
|
|
5514
5595
|
}
|
|
5515
5596
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5516
5597
|
break;
|
|
@@ -5533,6 +5614,7 @@ export const GetFlowSummaryResponse = {
|
|
|
5533
5614
|
message.flowStatus = object.flowStatus ?? 0;
|
|
5534
5615
|
message.startTime = object.startTime ?? undefined;
|
|
5535
5616
|
message.closeTime = object.closeTime ?? undefined;
|
|
5617
|
+
message.runAttempt = object.runAttempt ?? 0;
|
|
5536
5618
|
return message;
|
|
5537
5619
|
},
|
|
5538
5620
|
};
|
|
@@ -5688,7 +5770,14 @@ export const InternalLocalActivityInput = {
|
|
|
5688
5770
|
},
|
|
5689
5771
|
};
|
|
5690
5772
|
function createBaseGetHistoryEventsRequest() {
|
|
5691
|
-
return {
|
|
5773
|
+
return {
|
|
5774
|
+
flowId: "",
|
|
5775
|
+
runId: "",
|
|
5776
|
+
startInternalEventId: 0n,
|
|
5777
|
+
estimatePageSize: 0,
|
|
5778
|
+
nextPageToken: new Uint8Array(0),
|
|
5779
|
+
runAttempt: 0,
|
|
5780
|
+
};
|
|
5692
5781
|
}
|
|
5693
5782
|
export const GetHistoryEventsRequest = {
|
|
5694
5783
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -5710,6 +5799,9 @@ export const GetHistoryEventsRequest = {
|
|
|
5710
5799
|
if (message.nextPageToken.length !== 0) {
|
|
5711
5800
|
writer.uint32(42).bytes(message.nextPageToken);
|
|
5712
5801
|
}
|
|
5802
|
+
if (message.runAttempt !== 0) {
|
|
5803
|
+
writer.uint32(48).int32(message.runAttempt);
|
|
5804
|
+
}
|
|
5713
5805
|
return writer;
|
|
5714
5806
|
},
|
|
5715
5807
|
decode(input, length) {
|
|
@@ -5754,6 +5846,13 @@ export const GetHistoryEventsRequest = {
|
|
|
5754
5846
|
message.nextPageToken = reader.bytes();
|
|
5755
5847
|
continue;
|
|
5756
5848
|
}
|
|
5849
|
+
case 6: {
|
|
5850
|
+
if (tag !== 48) {
|
|
5851
|
+
break;
|
|
5852
|
+
}
|
|
5853
|
+
message.runAttempt = reader.int32();
|
|
5854
|
+
continue;
|
|
5855
|
+
}
|
|
5757
5856
|
}
|
|
5758
5857
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5759
5858
|
break;
|
|
@@ -5774,6 +5873,7 @@ export const GetHistoryEventsRequest = {
|
|
|
5774
5873
|
: 0n;
|
|
5775
5874
|
message.estimatePageSize = object.estimatePageSize ?? 0;
|
|
5776
5875
|
message.nextPageToken = object.nextPageToken ?? new Uint8Array(0);
|
|
5876
|
+
message.runAttempt = object.runAttempt ?? 0;
|
|
5777
5877
|
return message;
|
|
5778
5878
|
},
|
|
5779
5879
|
};
|
|
@@ -5846,7 +5946,7 @@ export const GetHistoryEventsResponse = {
|
|
|
5846
5946
|
},
|
|
5847
5947
|
};
|
|
5848
5948
|
function createBaseFlowHistoryEvent() {
|
|
5849
|
-
return { eventId: 0n, eventTime: undefined, payload: undefined };
|
|
5949
|
+
return { eventId: 0n, eventTime: undefined, runAttempt: 0, payload: undefined };
|
|
5850
5950
|
}
|
|
5851
5951
|
export const FlowHistoryEvent = {
|
|
5852
5952
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -5859,6 +5959,9 @@ export const FlowHistoryEvent = {
|
|
|
5859
5959
|
if (message.eventTime !== undefined) {
|
|
5860
5960
|
Timestamp.encode(toTimestamp(message.eventTime), writer.uint32(18).fork()).join();
|
|
5861
5961
|
}
|
|
5962
|
+
if (message.runAttempt !== 0) {
|
|
5963
|
+
writer.uint32(24).int32(message.runAttempt);
|
|
5964
|
+
}
|
|
5862
5965
|
switch (message.payload?.$case) {
|
|
5863
5966
|
case "flowStartedOrContinued":
|
|
5864
5967
|
FlowStartedOrContinuedHistoryEvent.encode(message.payload.value, writer.uint32(162).fork()).join();
|
|
@@ -5920,6 +6023,13 @@ export const FlowHistoryEvent = {
|
|
|
5920
6023
|
message.eventTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
5921
6024
|
continue;
|
|
5922
6025
|
}
|
|
6026
|
+
case 3: {
|
|
6027
|
+
if (tag !== 24) {
|
|
6028
|
+
break;
|
|
6029
|
+
}
|
|
6030
|
+
message.runAttempt = reader.int32();
|
|
6031
|
+
continue;
|
|
6032
|
+
}
|
|
5923
6033
|
case 20: {
|
|
5924
6034
|
if (tag !== 162) {
|
|
5925
6035
|
break;
|
|
@@ -6052,6 +6162,7 @@ export const FlowHistoryEvent = {
|
|
|
6052
6162
|
const message = createBaseFlowHistoryEvent();
|
|
6053
6163
|
message.eventId = (object.eventId !== undefined && object.eventId !== null) ? BigInt(object.eventId) : 0n;
|
|
6054
6164
|
message.eventTime = object.eventTime ?? undefined;
|
|
6165
|
+
message.runAttempt = object.runAttempt ?? 0;
|
|
6055
6166
|
switch (object.payload?.$case) {
|
|
6056
6167
|
case "flowStartedOrContinued": {
|
|
6057
6168
|
if (object.payload?.value !== undefined && object.payload?.value !== null) {
|
|
@@ -6163,13 +6274,25 @@ export const FlowHistoryEvent = {
|
|
|
6163
6274
|
},
|
|
6164
6275
|
};
|
|
6165
6276
|
function createBaseTimeTravelForkHistoryEvent() {
|
|
6166
|
-
return { previousRunId: "" };
|
|
6277
|
+
return { previousRunId: "", previousRunAttempt: 0, targetRunAttempt: 0, targetEventId: 0n };
|
|
6167
6278
|
}
|
|
6168
6279
|
export const TimeTravelForkHistoryEvent = {
|
|
6169
6280
|
encode(message, writer = new BinaryWriter()) {
|
|
6170
6281
|
if (message.previousRunId !== "") {
|
|
6171
6282
|
writer.uint32(10).string(message.previousRunId);
|
|
6172
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
|
+
}
|
|
6173
6296
|
return writer;
|
|
6174
6297
|
},
|
|
6175
6298
|
decode(input, length) {
|
|
@@ -6186,6 +6309,27 @@ export const TimeTravelForkHistoryEvent = {
|
|
|
6186
6309
|
message.previousRunId = reader.string();
|
|
6187
6310
|
continue;
|
|
6188
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
|
+
}
|
|
6189
6333
|
}
|
|
6190
6334
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6191
6335
|
break;
|
|
@@ -6200,6 +6344,11 @@ export const TimeTravelForkHistoryEvent = {
|
|
|
6200
6344
|
fromPartial(object) {
|
|
6201
6345
|
const message = createBaseTimeTravelForkHistoryEvent();
|
|
6202
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;
|
|
6203
6352
|
return message;
|
|
6204
6353
|
},
|
|
6205
6354
|
};
|
|
@@ -6447,6 +6596,7 @@ function createBaseFlowContinuedStart() {
|
|
|
6447
6596
|
pendingChannelMessages: {},
|
|
6448
6597
|
attributes: [],
|
|
6449
6598
|
completedSteps: [],
|
|
6599
|
+
stickyAppWorkerId: "",
|
|
6450
6600
|
};
|
|
6451
6601
|
}
|
|
6452
6602
|
export const FlowContinuedStart = {
|
|
@@ -6470,6 +6620,9 @@ export const FlowContinuedStart = {
|
|
|
6470
6620
|
for (const v of message.completedSteps) {
|
|
6471
6621
|
StepCompletionOutput.encode(v, writer.uint32(50).fork()).join();
|
|
6472
6622
|
}
|
|
6623
|
+
if (message.stickyAppWorkerId !== "") {
|
|
6624
|
+
writer.uint32(58).string(message.stickyAppWorkerId);
|
|
6625
|
+
}
|
|
6473
6626
|
return writer;
|
|
6474
6627
|
},
|
|
6475
6628
|
decode(input, length) {
|
|
@@ -6524,6 +6677,13 @@ export const FlowContinuedStart = {
|
|
|
6524
6677
|
message.completedSteps.push(StepCompletionOutput.decode(reader, reader.uint32()));
|
|
6525
6678
|
continue;
|
|
6526
6679
|
}
|
|
6680
|
+
case 7: {
|
|
6681
|
+
if (tag !== 58) {
|
|
6682
|
+
break;
|
|
6683
|
+
}
|
|
6684
|
+
message.stickyAppWorkerId = reader.string();
|
|
6685
|
+
continue;
|
|
6686
|
+
}
|
|
6527
6687
|
}
|
|
6528
6688
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6529
6689
|
break;
|
|
@@ -6549,6 +6709,7 @@ export const FlowContinuedStart = {
|
|
|
6549
6709
|
}, {});
|
|
6550
6710
|
message.attributes = object.attributes?.map((e) => KV.fromPartial(e)) || [];
|
|
6551
6711
|
message.completedSteps = object.completedSteps?.map((e) => StepCompletionOutput.fromPartial(e)) || [];
|
|
6712
|
+
message.stickyAppWorkerId = object.stickyAppWorkerId ?? "";
|
|
6552
6713
|
return message;
|
|
6553
6714
|
},
|
|
6554
6715
|
};
|
|
@@ -6607,7 +6768,7 @@ export const FlowContinuedStart_PendingChannelMessagesEntry = {
|
|
|
6607
6768
|
},
|
|
6608
6769
|
};
|
|
6609
6770
|
function createBaseFlowClosedHistoryEvent() {
|
|
6610
|
-
return { flowStatus: 0, results: [], errorType: 0, errorMessage: "", continuedToRunId: "" };
|
|
6771
|
+
return { flowStatus: 0, results: [], errorType: 0, errorMessage: "", continuedToRunId: "", stickyAppWorkerId: "" };
|
|
6611
6772
|
}
|
|
6612
6773
|
export const FlowClosedHistoryEvent = {
|
|
6613
6774
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -6626,6 +6787,9 @@ export const FlowClosedHistoryEvent = {
|
|
|
6626
6787
|
if (message.continuedToRunId !== "") {
|
|
6627
6788
|
writer.uint32(42).string(message.continuedToRunId);
|
|
6628
6789
|
}
|
|
6790
|
+
if (message.stickyAppWorkerId !== "") {
|
|
6791
|
+
writer.uint32(50).string(message.stickyAppWorkerId);
|
|
6792
|
+
}
|
|
6629
6793
|
return writer;
|
|
6630
6794
|
},
|
|
6631
6795
|
decode(input, length) {
|
|
@@ -6670,6 +6834,13 @@ export const FlowClosedHistoryEvent = {
|
|
|
6670
6834
|
message.continuedToRunId = reader.string();
|
|
6671
6835
|
continue;
|
|
6672
6836
|
}
|
|
6837
|
+
case 6: {
|
|
6838
|
+
if (tag !== 50) {
|
|
6839
|
+
break;
|
|
6840
|
+
}
|
|
6841
|
+
message.stickyAppWorkerId = reader.string();
|
|
6842
|
+
continue;
|
|
6843
|
+
}
|
|
6673
6844
|
}
|
|
6674
6845
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6675
6846
|
break;
|
|
@@ -6688,6 +6859,7 @@ export const FlowClosedHistoryEvent = {
|
|
|
6688
6859
|
message.errorType = object.errorType ?? 0;
|
|
6689
6860
|
message.errorMessage = object.errorMessage ?? "";
|
|
6690
6861
|
message.continuedToRunId = object.continuedToRunId ?? "";
|
|
6862
|
+
message.stickyAppWorkerId = object.stickyAppWorkerId ?? "";
|
|
6691
6863
|
return message;
|
|
6692
6864
|
},
|
|
6693
6865
|
};
|
|
@@ -6759,7 +6931,7 @@ export const StepMethodPendingEvent = {
|
|
|
6759
6931
|
},
|
|
6760
6932
|
};
|
|
6761
6933
|
function createBaseStepMethodFailure() {
|
|
6762
|
-
return { backendError: "", details: undefined, attempt: 0 };
|
|
6934
|
+
return { backendError: "", details: undefined, attempt: 0, pullRouting: undefined };
|
|
6763
6935
|
}
|
|
6764
6936
|
export const StepMethodFailure = {
|
|
6765
6937
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -6772,6 +6944,9 @@ export const StepMethodFailure = {
|
|
|
6772
6944
|
if (message.attempt !== 0) {
|
|
6773
6945
|
writer.uint32(24).int32(message.attempt);
|
|
6774
6946
|
}
|
|
6947
|
+
if (message.pullRouting !== undefined) {
|
|
6948
|
+
PullRouting.encode(message.pullRouting, writer.uint32(34).fork()).join();
|
|
6949
|
+
}
|
|
6775
6950
|
return writer;
|
|
6776
6951
|
},
|
|
6777
6952
|
decode(input, length) {
|
|
@@ -6802,6 +6977,13 @@ export const StepMethodFailure = {
|
|
|
6802
6977
|
message.attempt = reader.int32();
|
|
6803
6978
|
continue;
|
|
6804
6979
|
}
|
|
6980
|
+
case 4: {
|
|
6981
|
+
if (tag !== 34) {
|
|
6982
|
+
break;
|
|
6983
|
+
}
|
|
6984
|
+
message.pullRouting = PullRouting.decode(reader, reader.uint32());
|
|
6985
|
+
continue;
|
|
6986
|
+
}
|
|
6805
6987
|
}
|
|
6806
6988
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6807
6989
|
break;
|
|
@@ -6820,6 +7002,9 @@ export const StepMethodFailure = {
|
|
|
6820
7002
|
? ServiceErrorResponse.fromPartial(object.details)
|
|
6821
7003
|
: undefined;
|
|
6822
7004
|
message.attempt = object.attempt ?? 0;
|
|
7005
|
+
message.pullRouting = (object.pullRouting !== undefined && object.pullRouting !== null)
|
|
7006
|
+
? PullRouting.fromPartial(object.pullRouting)
|
|
7007
|
+
: undefined;
|
|
6823
7008
|
return message;
|
|
6824
7009
|
},
|
|
6825
7010
|
};
|
|
@@ -6983,6 +7168,69 @@ export const StepMethodEventInput = {
|
|
|
6983
7168
|
return message;
|
|
6984
7169
|
},
|
|
6985
7170
|
};
|
|
7171
|
+
function createBasePullRouting() {
|
|
7172
|
+
return { stickyAppWorkerId: "", servedByAppWorkerId: "", source: 0 };
|
|
7173
|
+
}
|
|
7174
|
+
export const PullRouting = {
|
|
7175
|
+
encode(message, writer = new BinaryWriter()) {
|
|
7176
|
+
if (message.stickyAppWorkerId !== "") {
|
|
7177
|
+
writer.uint32(10).string(message.stickyAppWorkerId);
|
|
7178
|
+
}
|
|
7179
|
+
if (message.servedByAppWorkerId !== "") {
|
|
7180
|
+
writer.uint32(18).string(message.servedByAppWorkerId);
|
|
7181
|
+
}
|
|
7182
|
+
if (message.source !== 0) {
|
|
7183
|
+
writer.uint32(24).int32(message.source);
|
|
7184
|
+
}
|
|
7185
|
+
return writer;
|
|
7186
|
+
},
|
|
7187
|
+
decode(input, length) {
|
|
7188
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
7189
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
7190
|
+
const message = createBasePullRouting();
|
|
7191
|
+
while (reader.pos < end) {
|
|
7192
|
+
const tag = reader.uint32();
|
|
7193
|
+
switch (tag >>> 3) {
|
|
7194
|
+
case 1: {
|
|
7195
|
+
if (tag !== 10) {
|
|
7196
|
+
break;
|
|
7197
|
+
}
|
|
7198
|
+
message.stickyAppWorkerId = reader.string();
|
|
7199
|
+
continue;
|
|
7200
|
+
}
|
|
7201
|
+
case 2: {
|
|
7202
|
+
if (tag !== 18) {
|
|
7203
|
+
break;
|
|
7204
|
+
}
|
|
7205
|
+
message.servedByAppWorkerId = reader.string();
|
|
7206
|
+
continue;
|
|
7207
|
+
}
|
|
7208
|
+
case 3: {
|
|
7209
|
+
if (tag !== 24) {
|
|
7210
|
+
break;
|
|
7211
|
+
}
|
|
7212
|
+
message.source = reader.int32();
|
|
7213
|
+
continue;
|
|
7214
|
+
}
|
|
7215
|
+
}
|
|
7216
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
7217
|
+
break;
|
|
7218
|
+
}
|
|
7219
|
+
reader.skip(tag & 7);
|
|
7220
|
+
}
|
|
7221
|
+
return message;
|
|
7222
|
+
},
|
|
7223
|
+
create(base) {
|
|
7224
|
+
return PullRouting.fromPartial(base ?? {});
|
|
7225
|
+
},
|
|
7226
|
+
fromPartial(object) {
|
|
7227
|
+
const message = createBasePullRouting();
|
|
7228
|
+
message.stickyAppWorkerId = object.stickyAppWorkerId ?? "";
|
|
7229
|
+
message.servedByAppWorkerId = object.servedByAppWorkerId ?? "";
|
|
7230
|
+
message.source = object.source ?? 0;
|
|
7231
|
+
return message;
|
|
7232
|
+
},
|
|
7233
|
+
};
|
|
6986
7234
|
function createBaseStepMethodEventContext() {
|
|
6987
7235
|
return {
|
|
6988
7236
|
stepExecutionId: "",
|
|
@@ -6994,6 +7242,7 @@ function createBaseStepMethodEventContext() {
|
|
|
6994
7242
|
duration: undefined,
|
|
6995
7243
|
methodOptions: undefined,
|
|
6996
7244
|
lastFailureInfo: undefined,
|
|
7245
|
+
pullRouting: undefined,
|
|
6997
7246
|
};
|
|
6998
7247
|
}
|
|
6999
7248
|
export const StepMethodEventContext = {
|
|
@@ -7025,6 +7274,9 @@ export const StepMethodEventContext = {
|
|
|
7025
7274
|
if (message.lastFailureInfo !== undefined) {
|
|
7026
7275
|
StepMethodFailure.encode(message.lastFailureInfo, writer.uint32(74).fork()).join();
|
|
7027
7276
|
}
|
|
7277
|
+
if (message.pullRouting !== undefined) {
|
|
7278
|
+
PullRouting.encode(message.pullRouting, writer.uint32(82).fork()).join();
|
|
7279
|
+
}
|
|
7028
7280
|
return writer;
|
|
7029
7281
|
},
|
|
7030
7282
|
decode(input, length) {
|
|
@@ -7097,6 +7349,13 @@ export const StepMethodEventContext = {
|
|
|
7097
7349
|
message.lastFailureInfo = StepMethodFailure.decode(reader, reader.uint32());
|
|
7098
7350
|
continue;
|
|
7099
7351
|
}
|
|
7352
|
+
case 10: {
|
|
7353
|
+
if (tag !== 82) {
|
|
7354
|
+
break;
|
|
7355
|
+
}
|
|
7356
|
+
message.pullRouting = PullRouting.decode(reader, reader.uint32());
|
|
7357
|
+
continue;
|
|
7358
|
+
}
|
|
7100
7359
|
}
|
|
7101
7360
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7102
7361
|
break;
|
|
@@ -7125,6 +7384,9 @@ export const StepMethodEventContext = {
|
|
|
7125
7384
|
message.lastFailureInfo = (object.lastFailureInfo !== undefined && object.lastFailureInfo !== null)
|
|
7126
7385
|
? StepMethodFailure.fromPartial(object.lastFailureInfo)
|
|
7127
7386
|
: undefined;
|
|
7387
|
+
message.pullRouting = (object.pullRouting !== undefined && object.pullRouting !== null)
|
|
7388
|
+
? PullRouting.fromPartial(object.pullRouting)
|
|
7389
|
+
: undefined;
|
|
7128
7390
|
return message;
|
|
7129
7391
|
},
|
|
7130
7392
|
};
|
|
@@ -7668,6 +7930,7 @@ function createBaseRpcExecutionCompletedEvent() {
|
|
|
7668
7930
|
publishToChannel: [],
|
|
7669
7931
|
isSetAttributeApi: false,
|
|
7670
7932
|
deleteFromChannel: [],
|
|
7933
|
+
servedByAppWorkerId: "",
|
|
7671
7934
|
};
|
|
7672
7935
|
}
|
|
7673
7936
|
export const RpcExecutionCompletedEvent = {
|
|
@@ -7699,6 +7962,9 @@ export const RpcExecutionCompletedEvent = {
|
|
|
7699
7962
|
for (const v of message.deleteFromChannel) {
|
|
7700
7963
|
ChannelMessageDeletion.encode(v, writer.uint32(74).fork()).join();
|
|
7701
7964
|
}
|
|
7965
|
+
if (message.servedByAppWorkerId !== "") {
|
|
7966
|
+
writer.uint32(82).string(message.servedByAppWorkerId);
|
|
7967
|
+
}
|
|
7702
7968
|
return writer;
|
|
7703
7969
|
},
|
|
7704
7970
|
decode(input, length) {
|
|
@@ -7771,6 +8037,13 @@ export const RpcExecutionCompletedEvent = {
|
|
|
7771
8037
|
message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
|
|
7772
8038
|
continue;
|
|
7773
8039
|
}
|
|
8040
|
+
case 10: {
|
|
8041
|
+
if (tag !== 82) {
|
|
8042
|
+
break;
|
|
8043
|
+
}
|
|
8044
|
+
message.servedByAppWorkerId = reader.string();
|
|
8045
|
+
continue;
|
|
8046
|
+
}
|
|
7774
8047
|
}
|
|
7775
8048
|
if ((tag & 7) === 4 || tag === 0) {
|
|
7776
8049
|
break;
|
|
@@ -7797,6 +8070,7 @@ export const RpcExecutionCompletedEvent = {
|
|
|
7797
8070
|
message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
|
|
7798
8071
|
message.isSetAttributeApi = object.isSetAttributeApi ?? false;
|
|
7799
8072
|
message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
|
|
8073
|
+
message.servedByAppWorkerId = object.servedByAppWorkerId ?? "";
|
|
7800
8074
|
return message;
|
|
7801
8075
|
},
|
|
7802
8076
|
};
|
|
@@ -8031,6 +8305,8 @@ function createBaseActiveStepExecutionState() {
|
|
|
8031
8305
|
stepExecutionLocals: [],
|
|
8032
8306
|
timers: [],
|
|
8033
8307
|
lastFailureInfo: undefined,
|
|
8308
|
+
waitForPullRouting: undefined,
|
|
8309
|
+
executePullRouting: undefined,
|
|
8034
8310
|
};
|
|
8035
8311
|
}
|
|
8036
8312
|
export const ActiveStepExecutionState = {
|
|
@@ -8065,6 +8341,12 @@ export const ActiveStepExecutionState = {
|
|
|
8065
8341
|
if (message.lastFailureInfo !== undefined) {
|
|
8066
8342
|
StepMethodFailure.encode(message.lastFailureInfo, writer.uint32(82).fork()).join();
|
|
8067
8343
|
}
|
|
8344
|
+
if (message.waitForPullRouting !== undefined) {
|
|
8345
|
+
PullRouting.encode(message.waitForPullRouting, writer.uint32(90).fork()).join();
|
|
8346
|
+
}
|
|
8347
|
+
if (message.executePullRouting !== undefined) {
|
|
8348
|
+
PullRouting.encode(message.executePullRouting, writer.uint32(98).fork()).join();
|
|
8349
|
+
}
|
|
8068
8350
|
return writer;
|
|
8069
8351
|
},
|
|
8070
8352
|
decode(input, length) {
|
|
@@ -8144,6 +8426,20 @@ export const ActiveStepExecutionState = {
|
|
|
8144
8426
|
message.lastFailureInfo = StepMethodFailure.decode(reader, reader.uint32());
|
|
8145
8427
|
continue;
|
|
8146
8428
|
}
|
|
8429
|
+
case 11: {
|
|
8430
|
+
if (tag !== 90) {
|
|
8431
|
+
break;
|
|
8432
|
+
}
|
|
8433
|
+
message.waitForPullRouting = PullRouting.decode(reader, reader.uint32());
|
|
8434
|
+
continue;
|
|
8435
|
+
}
|
|
8436
|
+
case 12: {
|
|
8437
|
+
if (tag !== 98) {
|
|
8438
|
+
break;
|
|
8439
|
+
}
|
|
8440
|
+
message.executePullRouting = PullRouting.decode(reader, reader.uint32());
|
|
8441
|
+
continue;
|
|
8442
|
+
}
|
|
8147
8443
|
}
|
|
8148
8444
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8149
8445
|
break;
|
|
@@ -8175,6 +8471,12 @@ export const ActiveStepExecutionState = {
|
|
|
8175
8471
|
message.lastFailureInfo = (object.lastFailureInfo !== undefined && object.lastFailureInfo !== null)
|
|
8176
8472
|
? StepMethodFailure.fromPartial(object.lastFailureInfo)
|
|
8177
8473
|
: undefined;
|
|
8474
|
+
message.waitForPullRouting = (object.waitForPullRouting !== undefined && object.waitForPullRouting !== null)
|
|
8475
|
+
? PullRouting.fromPartial(object.waitForPullRouting)
|
|
8476
|
+
: undefined;
|
|
8477
|
+
message.executePullRouting = (object.executePullRouting !== undefined && object.executePullRouting !== null)
|
|
8478
|
+
? PullRouting.fromPartial(object.executePullRouting)
|
|
8479
|
+
: undefined;
|
|
8178
8480
|
return message;
|
|
8179
8481
|
},
|
|
8180
8482
|
};
|
|
@@ -8238,6 +8540,7 @@ function createBaseGetFlowStateResponse() {
|
|
|
8238
8540
|
queuedSteps: [],
|
|
8239
8541
|
pendingChannelMessages: {},
|
|
8240
8542
|
completedSteps: [],
|
|
8543
|
+
stickyAppWorkerId: "",
|
|
8241
8544
|
};
|
|
8242
8545
|
}
|
|
8243
8546
|
export const GetFlowStateResponse = {
|
|
@@ -8261,6 +8564,9 @@ export const GetFlowStateResponse = {
|
|
|
8261
8564
|
for (const v of message.completedSteps) {
|
|
8262
8565
|
StepCompletionOutput.encode(v, writer.uint32(50).fork()).join();
|
|
8263
8566
|
}
|
|
8567
|
+
if (message.stickyAppWorkerId !== "") {
|
|
8568
|
+
writer.uint32(58).string(message.stickyAppWorkerId);
|
|
8569
|
+
}
|
|
8264
8570
|
return writer;
|
|
8265
8571
|
},
|
|
8266
8572
|
decode(input, length) {
|
|
@@ -8315,6 +8621,13 @@ export const GetFlowStateResponse = {
|
|
|
8315
8621
|
message.completedSteps.push(StepCompletionOutput.decode(reader, reader.uint32()));
|
|
8316
8622
|
continue;
|
|
8317
8623
|
}
|
|
8624
|
+
case 7: {
|
|
8625
|
+
if (tag !== 58) {
|
|
8626
|
+
break;
|
|
8627
|
+
}
|
|
8628
|
+
message.stickyAppWorkerId = reader.string();
|
|
8629
|
+
continue;
|
|
8630
|
+
}
|
|
8318
8631
|
}
|
|
8319
8632
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8320
8633
|
break;
|
|
@@ -8343,6 +8656,7 @@ export const GetFlowStateResponse = {
|
|
|
8343
8656
|
return acc;
|
|
8344
8657
|
}, {});
|
|
8345
8658
|
message.completedSteps = object.completedSteps?.map((e) => StepCompletionOutput.fromPartial(e)) || [];
|
|
8659
|
+
message.stickyAppWorkerId = object.stickyAppWorkerId ?? "";
|
|
8346
8660
|
return message;
|
|
8347
8661
|
},
|
|
8348
8662
|
};
|
|
@@ -8411,6 +8725,7 @@ function createBaseResetFlowRequest() {
|
|
|
8411
8725
|
stepExecutionId: "",
|
|
8412
8726
|
skipWritesReapply: false,
|
|
8413
8727
|
stepMethod: 0,
|
|
8728
|
+
runAttempt: 0,
|
|
8414
8729
|
};
|
|
8415
8730
|
}
|
|
8416
8731
|
export const ResetFlowRequest = {
|
|
@@ -8442,6 +8757,9 @@ export const ResetFlowRequest = {
|
|
|
8442
8757
|
if (message.stepMethod !== 0) {
|
|
8443
8758
|
writer.uint32(72).int32(message.stepMethod);
|
|
8444
8759
|
}
|
|
8760
|
+
if (message.runAttempt !== 0) {
|
|
8761
|
+
writer.uint32(80).int32(message.runAttempt);
|
|
8762
|
+
}
|
|
8445
8763
|
return writer;
|
|
8446
8764
|
},
|
|
8447
8765
|
decode(input, length) {
|
|
@@ -8514,6 +8832,13 @@ export const ResetFlowRequest = {
|
|
|
8514
8832
|
message.stepMethod = reader.int32();
|
|
8515
8833
|
continue;
|
|
8516
8834
|
}
|
|
8835
|
+
case 10: {
|
|
8836
|
+
if (tag !== 80) {
|
|
8837
|
+
break;
|
|
8838
|
+
}
|
|
8839
|
+
message.runAttempt = reader.int32();
|
|
8840
|
+
continue;
|
|
8841
|
+
}
|
|
8517
8842
|
}
|
|
8518
8843
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8519
8844
|
break;
|
|
@@ -8536,17 +8861,21 @@ export const ResetFlowRequest = {
|
|
|
8536
8861
|
message.stepExecutionId = object.stepExecutionId ?? "";
|
|
8537
8862
|
message.skipWritesReapply = object.skipWritesReapply ?? false;
|
|
8538
8863
|
message.stepMethod = object.stepMethod ?? 0;
|
|
8864
|
+
message.runAttempt = object.runAttempt ?? 0;
|
|
8539
8865
|
return message;
|
|
8540
8866
|
},
|
|
8541
8867
|
};
|
|
8542
8868
|
function createBaseResetFlowResponse() {
|
|
8543
|
-
return { runId: "" };
|
|
8869
|
+
return { runId: "", runAttempt: 0 };
|
|
8544
8870
|
}
|
|
8545
8871
|
export const ResetFlowResponse = {
|
|
8546
8872
|
encode(message, writer = new BinaryWriter()) {
|
|
8547
8873
|
if (message.runId !== "") {
|
|
8548
8874
|
writer.uint32(10).string(message.runId);
|
|
8549
8875
|
}
|
|
8876
|
+
if (message.runAttempt !== 0) {
|
|
8877
|
+
writer.uint32(16).int32(message.runAttempt);
|
|
8878
|
+
}
|
|
8550
8879
|
return writer;
|
|
8551
8880
|
},
|
|
8552
8881
|
decode(input, length) {
|
|
@@ -8563,6 +8892,13 @@ export const ResetFlowResponse = {
|
|
|
8563
8892
|
message.runId = reader.string();
|
|
8564
8893
|
continue;
|
|
8565
8894
|
}
|
|
8895
|
+
case 2: {
|
|
8896
|
+
if (tag !== 16) {
|
|
8897
|
+
break;
|
|
8898
|
+
}
|
|
8899
|
+
message.runAttempt = reader.int32();
|
|
8900
|
+
continue;
|
|
8901
|
+
}
|
|
8566
8902
|
}
|
|
8567
8903
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8568
8904
|
break;
|
|
@@ -8577,6 +8913,7 @@ export const ResetFlowResponse = {
|
|
|
8577
8913
|
fromPartial(object) {
|
|
8578
8914
|
const message = createBaseResetFlowResponse();
|
|
8579
8915
|
message.runId = object.runId ?? "";
|
|
8916
|
+
message.runAttempt = object.runAttempt ?? 0;
|
|
8580
8917
|
return message;
|
|
8581
8918
|
},
|
|
8582
8919
|
};
|
|
@@ -9568,7 +9905,7 @@ export const WorkerErrorResponse = {
|
|
|
9568
9905
|
},
|
|
9569
9906
|
};
|
|
9570
9907
|
function createBaseInternalActivityError() {
|
|
9571
|
-
return { serverDetail: "", workerGrpcStatus: 0, workerError: undefined };
|
|
9908
|
+
return { serverDetail: "", workerGrpcStatus: 0, workerError: undefined, pullRouting: undefined };
|
|
9572
9909
|
}
|
|
9573
9910
|
export const InternalActivityError = {
|
|
9574
9911
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -9581,6 +9918,9 @@ export const InternalActivityError = {
|
|
|
9581
9918
|
if (message.workerError !== undefined) {
|
|
9582
9919
|
InternalWorkerError.encode(message.workerError, writer.uint32(26).fork()).join();
|
|
9583
9920
|
}
|
|
9921
|
+
if (message.pullRouting !== undefined) {
|
|
9922
|
+
PullRouting.encode(message.pullRouting, writer.uint32(34).fork()).join();
|
|
9923
|
+
}
|
|
9584
9924
|
return writer;
|
|
9585
9925
|
},
|
|
9586
9926
|
decode(input, length) {
|
|
@@ -9611,6 +9951,13 @@ export const InternalActivityError = {
|
|
|
9611
9951
|
message.workerError = InternalWorkerError.decode(reader, reader.uint32());
|
|
9612
9952
|
continue;
|
|
9613
9953
|
}
|
|
9954
|
+
case 4: {
|
|
9955
|
+
if (tag !== 34) {
|
|
9956
|
+
break;
|
|
9957
|
+
}
|
|
9958
|
+
message.pullRouting = PullRouting.decode(reader, reader.uint32());
|
|
9959
|
+
continue;
|
|
9960
|
+
}
|
|
9614
9961
|
}
|
|
9615
9962
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9616
9963
|
break;
|
|
@@ -9629,6 +9976,9 @@ export const InternalActivityError = {
|
|
|
9629
9976
|
message.workerError = (object.workerError !== undefined && object.workerError !== null)
|
|
9630
9977
|
? InternalWorkerError.fromPartial(object.workerError)
|
|
9631
9978
|
: undefined;
|
|
9979
|
+
message.pullRouting = (object.pullRouting !== undefined && object.pullRouting !== null)
|
|
9980
|
+
? PullRouting.fromPartial(object.pullRouting)
|
|
9981
|
+
: undefined;
|
|
9632
9982
|
return message;
|
|
9633
9983
|
},
|
|
9634
9984
|
};
|
|
@@ -12812,6 +13162,7 @@ function createBaseStepExecutionResumeInfo() {
|
|
|
12812
13162
|
completedConditions: undefined,
|
|
12813
13163
|
waitingCondition: undefined,
|
|
12814
13164
|
stepExeLocals: [],
|
|
13165
|
+
waitForPullRouting: undefined,
|
|
12815
13166
|
};
|
|
12816
13167
|
}
|
|
12817
13168
|
export const StepExecutionResumeInfo = {
|
|
@@ -12831,6 +13182,9 @@ export const StepExecutionResumeInfo = {
|
|
|
12831
13182
|
for (const v of message.stepExeLocals) {
|
|
12832
13183
|
KV.encode(v, writer.uint32(42).fork()).join();
|
|
12833
13184
|
}
|
|
13185
|
+
if (message.waitForPullRouting !== undefined) {
|
|
13186
|
+
PullRouting.encode(message.waitForPullRouting, writer.uint32(50).fork()).join();
|
|
13187
|
+
}
|
|
12834
13188
|
return writer;
|
|
12835
13189
|
},
|
|
12836
13190
|
decode(input, length) {
|
|
@@ -12875,6 +13229,13 @@ export const StepExecutionResumeInfo = {
|
|
|
12875
13229
|
message.stepExeLocals.push(KV.decode(reader, reader.uint32()));
|
|
12876
13230
|
continue;
|
|
12877
13231
|
}
|
|
13232
|
+
case 6: {
|
|
13233
|
+
if (tag !== 50) {
|
|
13234
|
+
break;
|
|
13235
|
+
}
|
|
13236
|
+
message.waitForPullRouting = PullRouting.decode(reader, reader.uint32());
|
|
13237
|
+
continue;
|
|
13238
|
+
}
|
|
12878
13239
|
}
|
|
12879
13240
|
if ((tag & 7) === 4 || tag === 0) {
|
|
12880
13241
|
break;
|
|
@@ -12899,6 +13260,9 @@ export const StepExecutionResumeInfo = {
|
|
|
12899
13260
|
? WaitingConditionState.fromPartial(object.waitingCondition)
|
|
12900
13261
|
: undefined;
|
|
12901
13262
|
message.stepExeLocals = object.stepExeLocals?.map((e) => KV.fromPartial(e)) || [];
|
|
13263
|
+
message.waitForPullRouting = (object.waitForPullRouting !== undefined && object.waitForPullRouting !== null)
|
|
13264
|
+
? PullRouting.fromPartial(object.waitForPullRouting)
|
|
13265
|
+
: undefined;
|
|
12902
13266
|
return message;
|
|
12903
13267
|
},
|
|
12904
13268
|
};
|
|
@@ -13874,7 +14238,7 @@ export const InvokeWaitForMethodActivityInput = {
|
|
|
13874
14238
|
},
|
|
13875
14239
|
};
|
|
13876
14240
|
function createBaseInvokeWaitForMethodActivityOutput() {
|
|
13877
|
-
return { response: undefined, servedByAppWorkerId: "" };
|
|
14241
|
+
return { response: undefined, servedByAppWorkerId: "", pullRouting: undefined };
|
|
13878
14242
|
}
|
|
13879
14243
|
export const InvokeWaitForMethodActivityOutput = {
|
|
13880
14244
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -13884,6 +14248,9 @@ export const InvokeWaitForMethodActivityOutput = {
|
|
|
13884
14248
|
if (message.servedByAppWorkerId !== "") {
|
|
13885
14249
|
writer.uint32(18).string(message.servedByAppWorkerId);
|
|
13886
14250
|
}
|
|
14251
|
+
if (message.pullRouting !== undefined) {
|
|
14252
|
+
PullRouting.encode(message.pullRouting, writer.uint32(26).fork()).join();
|
|
14253
|
+
}
|
|
13887
14254
|
return writer;
|
|
13888
14255
|
},
|
|
13889
14256
|
decode(input, length) {
|
|
@@ -13907,6 +14274,13 @@ export const InvokeWaitForMethodActivityOutput = {
|
|
|
13907
14274
|
message.servedByAppWorkerId = reader.string();
|
|
13908
14275
|
continue;
|
|
13909
14276
|
}
|
|
14277
|
+
case 3: {
|
|
14278
|
+
if (tag !== 26) {
|
|
14279
|
+
break;
|
|
14280
|
+
}
|
|
14281
|
+
message.pullRouting = PullRouting.decode(reader, reader.uint32());
|
|
14282
|
+
continue;
|
|
14283
|
+
}
|
|
13910
14284
|
}
|
|
13911
14285
|
if ((tag & 7) === 4 || tag === 0) {
|
|
13912
14286
|
break;
|
|
@@ -13924,6 +14298,9 @@ export const InvokeWaitForMethodActivityOutput = {
|
|
|
13924
14298
|
? InvokeWaitForMethodResponse.fromPartial(object.response)
|
|
13925
14299
|
: undefined;
|
|
13926
14300
|
message.servedByAppWorkerId = object.servedByAppWorkerId ?? "";
|
|
14301
|
+
message.pullRouting = (object.pullRouting !== undefined && object.pullRouting !== null)
|
|
14302
|
+
? PullRouting.fromPartial(object.pullRouting)
|
|
14303
|
+
: undefined;
|
|
13927
14304
|
return message;
|
|
13928
14305
|
},
|
|
13929
14306
|
};
|
|
@@ -14085,6 +14462,7 @@ function createBaseInternalLocalStepActivityFailure() {
|
|
|
14085
14462
|
methodOptions: undefined,
|
|
14086
14463
|
attempt: 0,
|
|
14087
14464
|
activityError: undefined,
|
|
14465
|
+
pullRouting: undefined,
|
|
14088
14466
|
};
|
|
14089
14467
|
}
|
|
14090
14468
|
export const InternalLocalStepActivityFailure = {
|
|
@@ -14107,6 +14485,9 @@ export const InternalLocalStepActivityFailure = {
|
|
|
14107
14485
|
if (message.activityError !== undefined) {
|
|
14108
14486
|
InternalActivityError.encode(message.activityError, writer.uint32(42).fork()).join();
|
|
14109
14487
|
}
|
|
14488
|
+
if (message.pullRouting !== undefined) {
|
|
14489
|
+
PullRouting.encode(message.pullRouting, writer.uint32(50).fork()).join();
|
|
14490
|
+
}
|
|
14110
14491
|
return writer;
|
|
14111
14492
|
},
|
|
14112
14493
|
decode(input, length) {
|
|
@@ -14151,6 +14532,13 @@ export const InternalLocalStepActivityFailure = {
|
|
|
14151
14532
|
message.activityError = InternalActivityError.decode(reader, reader.uint32());
|
|
14152
14533
|
continue;
|
|
14153
14534
|
}
|
|
14535
|
+
case 6: {
|
|
14536
|
+
if (tag !== 50) {
|
|
14537
|
+
break;
|
|
14538
|
+
}
|
|
14539
|
+
message.pullRouting = PullRouting.decode(reader, reader.uint32());
|
|
14540
|
+
continue;
|
|
14541
|
+
}
|
|
14154
14542
|
}
|
|
14155
14543
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14156
14544
|
break;
|
|
@@ -14179,11 +14567,14 @@ export const InternalLocalStepActivityFailure = {
|
|
|
14179
14567
|
message.activityError = (object.activityError !== undefined && object.activityError !== null)
|
|
14180
14568
|
? InternalActivityError.fromPartial(object.activityError)
|
|
14181
14569
|
: undefined;
|
|
14570
|
+
message.pullRouting = (object.pullRouting !== undefined && object.pullRouting !== null)
|
|
14571
|
+
? PullRouting.fromPartial(object.pullRouting)
|
|
14572
|
+
: undefined;
|
|
14182
14573
|
return message;
|
|
14183
14574
|
},
|
|
14184
14575
|
};
|
|
14185
14576
|
function createBaseInvokeExecuteMethodActivityOutput() {
|
|
14186
|
-
return { response: undefined, servedByAppWorkerId: "" };
|
|
14577
|
+
return { response: undefined, servedByAppWorkerId: "", pullRouting: undefined };
|
|
14187
14578
|
}
|
|
14188
14579
|
export const InvokeExecuteMethodActivityOutput = {
|
|
14189
14580
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -14193,6 +14584,9 @@ export const InvokeExecuteMethodActivityOutput = {
|
|
|
14193
14584
|
if (message.servedByAppWorkerId !== "") {
|
|
14194
14585
|
writer.uint32(18).string(message.servedByAppWorkerId);
|
|
14195
14586
|
}
|
|
14587
|
+
if (message.pullRouting !== undefined) {
|
|
14588
|
+
PullRouting.encode(message.pullRouting, writer.uint32(26).fork()).join();
|
|
14589
|
+
}
|
|
14196
14590
|
return writer;
|
|
14197
14591
|
},
|
|
14198
14592
|
decode(input, length) {
|
|
@@ -14216,6 +14610,13 @@ export const InvokeExecuteMethodActivityOutput = {
|
|
|
14216
14610
|
message.servedByAppWorkerId = reader.string();
|
|
14217
14611
|
continue;
|
|
14218
14612
|
}
|
|
14613
|
+
case 3: {
|
|
14614
|
+
if (tag !== 26) {
|
|
14615
|
+
break;
|
|
14616
|
+
}
|
|
14617
|
+
message.pullRouting = PullRouting.decode(reader, reader.uint32());
|
|
14618
|
+
continue;
|
|
14619
|
+
}
|
|
14219
14620
|
}
|
|
14220
14621
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14221
14622
|
break;
|
|
@@ -14233,6 +14634,9 @@ export const InvokeExecuteMethodActivityOutput = {
|
|
|
14233
14634
|
? InvokeExecuteMethodResponse.fromPartial(object.response)
|
|
14234
14635
|
: undefined;
|
|
14235
14636
|
message.servedByAppWorkerId = object.servedByAppWorkerId ?? "";
|
|
14637
|
+
message.pullRouting = (object.pullRouting !== undefined && object.pullRouting !== null)
|
|
14638
|
+
? PullRouting.fromPartial(object.pullRouting)
|
|
14639
|
+
: undefined;
|
|
14236
14640
|
return message;
|
|
14237
14641
|
},
|
|
14238
14642
|
};
|
|
@@ -14931,6 +15335,7 @@ function createBaseExecuteRpcSignalRequest() {
|
|
|
14931
15335
|
deleteFromChannel: [],
|
|
14932
15336
|
isDeleteChannelMessageApi: false,
|
|
14933
15337
|
actionPermissionMappings: undefined,
|
|
15338
|
+
servedByAppWorkerId: "",
|
|
14934
15339
|
};
|
|
14935
15340
|
}
|
|
14936
15341
|
export const ExecuteRpcSignalRequest = {
|
|
@@ -14959,6 +15364,9 @@ export const ExecuteRpcSignalRequest = {
|
|
|
14959
15364
|
if (message.actionPermissionMappings !== undefined) {
|
|
14960
15365
|
ActionPermissionMappings.encode(message.actionPermissionMappings, writer.uint32(82).fork()).join();
|
|
14961
15366
|
}
|
|
15367
|
+
if (message.servedByAppWorkerId !== "") {
|
|
15368
|
+
writer.uint32(90).string(message.servedByAppWorkerId);
|
|
15369
|
+
}
|
|
14962
15370
|
return writer;
|
|
14963
15371
|
},
|
|
14964
15372
|
decode(input, length) {
|
|
@@ -15024,6 +15432,13 @@ export const ExecuteRpcSignalRequest = {
|
|
|
15024
15432
|
message.actionPermissionMappings = ActionPermissionMappings.decode(reader, reader.uint32());
|
|
15025
15433
|
continue;
|
|
15026
15434
|
}
|
|
15435
|
+
case 11: {
|
|
15436
|
+
if (tag !== 90) {
|
|
15437
|
+
break;
|
|
15438
|
+
}
|
|
15439
|
+
message.servedByAppWorkerId = reader.string();
|
|
15440
|
+
continue;
|
|
15441
|
+
}
|
|
15027
15442
|
}
|
|
15028
15443
|
if ((tag & 7) === 4 || tag === 0) {
|
|
15029
15444
|
break;
|
|
@@ -15050,6 +15465,7 @@ export const ExecuteRpcSignalRequest = {
|
|
|
15050
15465
|
(object.actionPermissionMappings !== undefined && object.actionPermissionMappings !== null)
|
|
15051
15466
|
? ActionPermissionMappings.fromPartial(object.actionPermissionMappings)
|
|
15052
15467
|
: undefined;
|
|
15468
|
+
message.servedByAppWorkerId = object.servedByAppWorkerId ?? "";
|
|
15053
15469
|
return message;
|
|
15054
15470
|
},
|
|
15055
15471
|
};
|
|
@@ -16286,6 +16702,7 @@ export const FlowServiceService = {
|
|
|
16286
16702
|
responseSerialize: (value) => Buffer.from(WaitForAttributeResponse.encode(value).finish()),
|
|
16287
16703
|
responseDeserialize: (value) => WaitForAttributeResponse.decode(value),
|
|
16288
16704
|
},
|
|
16705
|
+
/** server-zd returns UNIMPLEMENTED. */
|
|
16289
16706
|
triggerContinueAsNew: {
|
|
16290
16707
|
path: "/dex.FlowService/TriggerContinueAsNew",
|
|
16291
16708
|
requestStream: false,
|