@superdurable/dex 0.1.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/LICENSE +7 -0
- package/README.md +145 -0
- package/dist/src/blob-cache.d.ts +14 -0
- package/dist/src/blob-cache.js +22 -0
- package/dist/src/blob-cache.js.map +1 -0
- package/dist/src/client.d.ts +36 -0
- package/dist/src/client.js +441 -0
- package/dist/src/client.js.map +1 -0
- package/dist/src/codec.d.ts +38 -0
- package/dist/src/codec.js +86 -0
- package/dist/src/codec.js.map +1 -0
- package/dist/src/context.d.ts +23 -0
- package/dist/src/context.js +9 -0
- package/dist/src/context.js.map +1 -0
- package/dist/src/errors.d.ts +44 -0
- package/dist/src/errors.js +73 -0
- package/dist/src/errors.js.map +1 -0
- package/dist/src/flow.d.ts +31 -0
- package/dist/src/flow.js +155 -0
- package/dist/src/flow.js.map +1 -0
- package/dist/src/gen/dex.d.ts +1529 -0
- package/dist/src/gen/dex.js +10661 -0
- package/dist/src/gen/dex.js.map +1 -0
- package/dist/src/gen/google/protobuf/duration.d.ts +103 -0
- package/dist/src/gen/google/protobuf/duration.js +64 -0
- package/dist/src/gen/google/protobuf/duration.js.map +1 -0
- package/dist/src/gen/google/protobuf/empty.d.ts +37 -0
- package/dist/src/gen/google/protobuf/empty.js +39 -0
- package/dist/src/gen/google/protobuf/empty.js.map +1 -0
- package/dist/src/gen/google/protobuf/struct.d.ts +140 -0
- package/dist/src/gen/google/protobuf/struct.js +359 -0
- package/dist/src/gen/google/protobuf/struct.js.map +1 -0
- package/dist/src/gen/google/protobuf/timestamp.d.ts +133 -0
- package/dist/src/gen/google/protobuf/timestamp.js +64 -0
- package/dist/src/gen/google/protobuf/timestamp.js.map +1 -0
- package/dist/src/grpc-status.d.ts +4 -0
- package/dist/src/grpc-status.js +105 -0
- package/dist/src/grpc-status.js.map +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.js +20 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/invocation-context.d.ts +44 -0
- package/dist/src/invocation-context.js +203 -0
- package/dist/src/invocation-context.js.map +1 -0
- package/dist/src/options.d.ts +106 -0
- package/dist/src/options.js +55 -0
- package/dist/src/options.js.map +1 -0
- package/dist/src/persistence.d.ts +45 -0
- package/dist/src/persistence.js +65 -0
- package/dist/src/persistence.js.map +1 -0
- package/dist/src/rpc.d.ts +39 -0
- package/dist/src/rpc.js +50 -0
- package/dist/src/rpc.js.map +1 -0
- package/dist/src/step.d.ts +92 -0
- package/dist/src/step.js +62 -0
- package/dist/src/step.js.map +1 -0
- package/dist/src/validation.d.ts +3 -0
- package/dist/src/validation.js +33 -0
- package/dist/src/validation.js.map +1 -0
- package/dist/src/value-mapper.d.ts +14 -0
- package/dist/src/value-mapper.js +199 -0
- package/dist/src/value-mapper.js.map +1 -0
- package/dist/src/wait.d.ts +57 -0
- package/dist/src/wait.js +124 -0
- package/dist/src/wait.js.map +1 -0
- package/dist/src/worker-dispatcher.d.ts +14 -0
- package/dist/src/worker-dispatcher.js +374 -0
- package/dist/src/worker-dispatcher.js.map +1 -0
- package/dist/src/worker.d.ts +18 -0
- package/dist/src/worker.js +139 -0
- package/dist/src/worker.js.map +1 -0
- package/package.json +53 -0
|
@@ -0,0 +1,1529 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
import { type CallOptions, type ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, type Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
|
+
import { Duration } from "./google/protobuf/duration.js";
|
|
4
|
+
import { Empty } from "./google/protobuf/empty.js";
|
|
5
|
+
import { NullValue } from "./google/protobuf/struct.js";
|
|
6
|
+
export declare const protobufPackage = "dex";
|
|
7
|
+
export declare enum IndexType {
|
|
8
|
+
INDEX_TYPE_UNSPECIFIED = 0,
|
|
9
|
+
/** INDEX_TYPE_KEYWORD - Default for string/object when type is omitted. */
|
|
10
|
+
INDEX_TYPE_KEYWORD = 1,
|
|
11
|
+
INDEX_TYPE_TEXT = 2,
|
|
12
|
+
INDEX_TYPE_KEYWORD_ARRAY = 3,
|
|
13
|
+
/** INDEX_TYPE_INT - Usually inferred from Value; optional to set explicitly. */
|
|
14
|
+
INDEX_TYPE_INT = 4,
|
|
15
|
+
INDEX_TYPE_DOUBLE = 5,
|
|
16
|
+
INDEX_TYPE_BOOL = 6,
|
|
17
|
+
INDEX_TYPE_DATETIME = 7,
|
|
18
|
+
UNRECOGNIZED = -1
|
|
19
|
+
}
|
|
20
|
+
export declare enum WaitForMethodFailurePolicy {
|
|
21
|
+
WAIT_FOR_METHOD_FAILURE_POLICY_UNSPECIFIED = 0,
|
|
22
|
+
WAIT_FOR_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_FAILURE = 1,
|
|
23
|
+
WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE = 2,
|
|
24
|
+
UNRECOGNIZED = -1
|
|
25
|
+
}
|
|
26
|
+
export declare enum ExecuteMethodFailurePolicy {
|
|
27
|
+
EXECUTE_METHOD_FAILURE_POLICY_UNSPECIFIED = 0,
|
|
28
|
+
EXECUTE_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_EXECUTE_METHOD_FAILURE = 1,
|
|
29
|
+
EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP = 2,
|
|
30
|
+
UNRECOGNIZED = -1
|
|
31
|
+
}
|
|
32
|
+
export declare enum IdReusePolicy {
|
|
33
|
+
ID_REUSE_POLICY_UNSPECIFIED = 0,
|
|
34
|
+
ID_REUSE_POLICY_ALLOW_IF_PREVIOUS_EXISTS_ABNORMALLY = 1,
|
|
35
|
+
ID_REUSE_POLICY_ALLOW_IF_NO_RUNNING = 2,
|
|
36
|
+
ID_REUSE_POLICY_DISALLOW_REUSE = 3,
|
|
37
|
+
ID_REUSE_POLICY_ALLOW_TERMINATE_IF_RUNNING = 4,
|
|
38
|
+
UNRECOGNIZED = -1
|
|
39
|
+
}
|
|
40
|
+
export declare enum ActiveStepSearchMode {
|
|
41
|
+
ACTIVE_STEP_SEARCH_MODE_UNSPECIFIED = 0,
|
|
42
|
+
ACTIVE_STEP_SEARCH_MODE_ENABLED_FOR_ALL = 1,
|
|
43
|
+
ACTIVE_STEP_SEARCH_MODE_ENABLED_FOR_STEPS_WITH_WAIT_FOR = 2,
|
|
44
|
+
ACTIVE_STEP_SEARCH_MODE_DISABLED = 3,
|
|
45
|
+
UNRECOGNIZED = -1
|
|
46
|
+
}
|
|
47
|
+
/** Was optimize_activity: false=SYNC, true=ASYNC. Timer is always optimized by the server. */
|
|
48
|
+
export declare enum StepDurability {
|
|
49
|
+
STEP_DURABILITY_UNSPECIFIED = 0,
|
|
50
|
+
STEP_DURABILITY_SYNC = 1,
|
|
51
|
+
STEP_DURABILITY_ASYNC = 2,
|
|
52
|
+
UNRECOGNIZED = -1
|
|
53
|
+
}
|
|
54
|
+
export declare enum StopType {
|
|
55
|
+
STOP_TYPE_UNSPECIFIED = 0,
|
|
56
|
+
STOP_TYPE_CANCEL = 1,
|
|
57
|
+
STOP_TYPE_TERMINATE = 2,
|
|
58
|
+
STOP_TYPE_FAIL = 3,
|
|
59
|
+
UNRECOGNIZED = -1
|
|
60
|
+
}
|
|
61
|
+
export declare enum FlowStatus {
|
|
62
|
+
FLOW_STATUS_UNSPECIFIED = 0,
|
|
63
|
+
FLOW_STATUS_RUNNING = 1,
|
|
64
|
+
FLOW_STATUS_COMPLETED = 2,
|
|
65
|
+
FLOW_STATUS_FAILED = 3,
|
|
66
|
+
FLOW_STATUS_TIMEOUT = 4,
|
|
67
|
+
FLOW_STATUS_TERMINATED = 5,
|
|
68
|
+
FLOW_STATUS_CANCELED = 6,
|
|
69
|
+
FLOW_STATUS_CONTINUED_AS_NEW = 7,
|
|
70
|
+
UNRECOGNIZED = -1
|
|
71
|
+
}
|
|
72
|
+
export declare enum FlowErrorType {
|
|
73
|
+
FLOW_ERROR_TYPE_UNSPECIFIED = 0,
|
|
74
|
+
FLOW_ERROR_TYPE_STEP_DECISION_FAILING_FLOW = 1,
|
|
75
|
+
FLOW_ERROR_TYPE_CLIENT_API_FAILING_FLOW = 2,
|
|
76
|
+
/** FLOW_ERROR_TYPE_WORKER_API_FAIL - includes waitFor/execute/rpc methods */
|
|
77
|
+
FLOW_ERROR_TYPE_WORKER_API_FAIL = 3,
|
|
78
|
+
FLOW_ERROR_TYPE_INVALID_USER_FLOW_CODE = 4,
|
|
79
|
+
/** FLOW_ERROR_TYPE_INTERNAL - either bug in sdk or server */
|
|
80
|
+
FLOW_ERROR_TYPE_INTERNAL = 6,
|
|
81
|
+
UNRECOGNIZED = -1
|
|
82
|
+
}
|
|
83
|
+
export declare enum ActiveStepPhase {
|
|
84
|
+
ACTIVE_STEP_PHASE_UNSPECIFIED = 0,
|
|
85
|
+
ACTIVE_STEP_PHASE_ACTIVE = 1,
|
|
86
|
+
ACTIVE_STEP_PHASE_WAITING = 2,
|
|
87
|
+
UNRECOGNIZED = -1
|
|
88
|
+
}
|
|
89
|
+
export declare enum FlowResetType {
|
|
90
|
+
FLOW_RESET_TYPE_UNSPECIFIED = 0,
|
|
91
|
+
FLOW_RESET_TYPE_HISTORY_EVENT_ID = 1,
|
|
92
|
+
FLOW_RESET_TYPE_BEGINNING = 2,
|
|
93
|
+
FLOW_RESET_TYPE_HISTORY_EVENT_TIME = 3,
|
|
94
|
+
FLOW_RESET_TYPE_STEP_TYPE = 4,
|
|
95
|
+
FLOW_RESET_TYPE_STEP_EXECUTION_ID = 5,
|
|
96
|
+
UNRECOGNIZED = -1
|
|
97
|
+
}
|
|
98
|
+
export declare enum ErrorSubStatus {
|
|
99
|
+
ERROR_SUB_STATUS_UNSPECIFIED = 0,
|
|
100
|
+
ERROR_SUB_STATUS_UNCATEGORIZED = 1,
|
|
101
|
+
ERROR_SUB_STATUS_FLOW_ALREADY_STARTED = 2,
|
|
102
|
+
ERROR_SUB_STATUS_FLOW_NOT_EXISTS = 3,
|
|
103
|
+
ERROR_SUB_STATUS_WORKER_API_ERROR = 4,
|
|
104
|
+
ERROR_SUB_STATUS_LONG_POLL_TIME_OUT = 5,
|
|
105
|
+
UNRECOGNIZED = -1
|
|
106
|
+
}
|
|
107
|
+
export declare enum CloseDecisionType {
|
|
108
|
+
CLOSE_DECISION_TYPE_UNSPECIFIED = 0,
|
|
109
|
+
CLOSE_DECISION_TYPE_FORCE_COMPLETE_ON_CHANNELS_EMPTY = 1,
|
|
110
|
+
CLOSE_DECISION_TYPE_GRACEFUL_COMPLETE = 2,
|
|
111
|
+
CLOSE_DECISION_TYPE_FORCE_COMPLETE = 3,
|
|
112
|
+
CLOSE_DECISION_TYPE_FORCE_FAIL = 4,
|
|
113
|
+
CLOSE_DECISION_TYPE_DEAD_END = 5,
|
|
114
|
+
UNRECOGNIZED = -1
|
|
115
|
+
}
|
|
116
|
+
export declare enum WaitingConditionType {
|
|
117
|
+
WAITING_CONDITION_TYPE_UNSPECIFIED = 0,
|
|
118
|
+
WAITING_CONDITION_TYPE_ALL_COMPLETED = 1,
|
|
119
|
+
WAITING_CONDITION_TYPE_ANY_COMPLETED = 2,
|
|
120
|
+
WAITING_CONDITION_TYPE_ANY_COMBINATION_COMPLETED = 3,
|
|
121
|
+
UNRECOGNIZED = -1
|
|
122
|
+
}
|
|
123
|
+
export declare enum ConditionStatus {
|
|
124
|
+
CONDITION_STATUS_UNSPECIFIED = 0,
|
|
125
|
+
CONDITION_STATUS_WAITING = 1,
|
|
126
|
+
CONDITION_STATUS_COMPLETED = 2,
|
|
127
|
+
UNRECOGNIZED = -1
|
|
128
|
+
}
|
|
129
|
+
export declare enum InternalTimerStatus {
|
|
130
|
+
INTERNAL_TIMER_STATUS_UNSPECIFIED = 0,
|
|
131
|
+
INTERNAL_TIMER_STATUS_PENDING = 1,
|
|
132
|
+
INTERNAL_TIMER_STATUS_FIRED = 2,
|
|
133
|
+
INTERNAL_TIMER_STATUS_SKIPPED = 3,
|
|
134
|
+
UNRECOGNIZED = -1
|
|
135
|
+
}
|
|
136
|
+
export declare enum UpdateErrorType {
|
|
137
|
+
UPDATE_ERROR_TYPE_UNSPECIFIED = 0,
|
|
138
|
+
UPDATE_ERROR_TYPE_CONTINUE_AS_NEW_PREEMPTED = 1,
|
|
139
|
+
UPDATE_ERROR_TYPE_INVALID_ARGUMENT = 2,
|
|
140
|
+
UPDATE_ERROR_TYPE_FAILED_PRECONDITION = 3,
|
|
141
|
+
UPDATE_ERROR_TYPE_DEADLINE_EXCEEDED = 4,
|
|
142
|
+
UPDATE_ERROR_TYPE_RPC_ACQUIRE_LOCK_FAILURE = 5,
|
|
143
|
+
UPDATE_ERROR_TYPE_SERVER_INTERNAL = 6,
|
|
144
|
+
UNRECOGNIZED = -1
|
|
145
|
+
}
|
|
146
|
+
export interface Value {
|
|
147
|
+
kind: //
|
|
148
|
+
/** Hydrate from blob storage, then replace with string_value. */
|
|
149
|
+
{
|
|
150
|
+
$case: "internalBlobIdForStringValue";
|
|
151
|
+
value: string;
|
|
152
|
+
} | //
|
|
153
|
+
/** Hydrate from blob storage, then replace with obj_value. */
|
|
154
|
+
{
|
|
155
|
+
$case: "internalBlobIdForObjValue";
|
|
156
|
+
value: string;
|
|
157
|
+
} | {
|
|
158
|
+
$case: "stringValue";
|
|
159
|
+
value: string;
|
|
160
|
+
} | {
|
|
161
|
+
$case: "objValue";
|
|
162
|
+
value: EncodedObject;
|
|
163
|
+
} | {
|
|
164
|
+
$case: "intValue";
|
|
165
|
+
value: bigint;
|
|
166
|
+
} | {
|
|
167
|
+
$case: "doubleValue";
|
|
168
|
+
value: number;
|
|
169
|
+
} | {
|
|
170
|
+
$case: "boolValue";
|
|
171
|
+
value: boolean;
|
|
172
|
+
} | //
|
|
173
|
+
/** Null deletes an attribute in storage. */
|
|
174
|
+
{
|
|
175
|
+
$case: "nullValue";
|
|
176
|
+
value: NullValue;
|
|
177
|
+
} | undefined;
|
|
178
|
+
}
|
|
179
|
+
export interface EncodedObject {
|
|
180
|
+
encoding: string;
|
|
181
|
+
payload: Uint8Array;
|
|
182
|
+
}
|
|
183
|
+
export interface AttributeWrite {
|
|
184
|
+
key: string;
|
|
185
|
+
value: Value | undefined;
|
|
186
|
+
/** Omit when indexing is inferred or attribute is not indexed. */
|
|
187
|
+
indexConfig: IndexConfig | undefined;
|
|
188
|
+
}
|
|
189
|
+
export interface KV {
|
|
190
|
+
key: string;
|
|
191
|
+
value: Value | undefined;
|
|
192
|
+
}
|
|
193
|
+
export interface IndexConfig {
|
|
194
|
+
enable: boolean;
|
|
195
|
+
type: IndexType;
|
|
196
|
+
/** Omit to use the attribute key; set for dynamic attrs. */
|
|
197
|
+
indexKey: string;
|
|
198
|
+
}
|
|
199
|
+
export interface Context {
|
|
200
|
+
flowId: string;
|
|
201
|
+
runId: string;
|
|
202
|
+
flowStartedTimestamp: bigint;
|
|
203
|
+
stepExecutionId: string;
|
|
204
|
+
firstAttemptTimestamp: bigint;
|
|
205
|
+
attempt: number;
|
|
206
|
+
/** Step execution that scheduled this execution, or a reserved source. */
|
|
207
|
+
fromStepExecutionId: string;
|
|
208
|
+
}
|
|
209
|
+
export interface LocalActivityInput {
|
|
210
|
+
currentStepExecutionId: string;
|
|
211
|
+
fromStepExecutionId: string;
|
|
212
|
+
}
|
|
213
|
+
export interface RetryPolicy {
|
|
214
|
+
initialIntervalSeconds: number;
|
|
215
|
+
backoffCoefficient: number;
|
|
216
|
+
maximumIntervalSeconds: number;
|
|
217
|
+
maximumAttempts: number;
|
|
218
|
+
totalDurationSeconds: number;
|
|
219
|
+
}
|
|
220
|
+
export interface FlowRetryPolicy {
|
|
221
|
+
initialIntervalSeconds: number;
|
|
222
|
+
backoffCoefficient: number;
|
|
223
|
+
maximumIntervalSeconds: number;
|
|
224
|
+
maximumAttempts: number;
|
|
225
|
+
}
|
|
226
|
+
export interface StepOptions {
|
|
227
|
+
waitForTimeoutSeconds: number;
|
|
228
|
+
executeTimeoutSeconds: number;
|
|
229
|
+
waitForRetryPolicy: RetryPolicy | undefined;
|
|
230
|
+
executeRetryPolicy: RetryPolicy | undefined;
|
|
231
|
+
waitForFailurePolicy: WaitForMethodFailurePolicy;
|
|
232
|
+
executeFailurePolicy: ExecuteMethodFailurePolicy;
|
|
233
|
+
executeFailureProceedStepType: string;
|
|
234
|
+
executeFailureProceedStepOptions: StepOptions | undefined;
|
|
235
|
+
skipWaitFor: boolean;
|
|
236
|
+
waitForDurabilityOverride: StepDurability;
|
|
237
|
+
executeDurabilityOverride: StepDurability;
|
|
238
|
+
waitForLockAttributeKeys: string[];
|
|
239
|
+
executeLockAttributeKeys: string[];
|
|
240
|
+
}
|
|
241
|
+
export interface FlowAlreadyStartedOptions {
|
|
242
|
+
ignoreAlreadyStartedError: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface FlowStartOptions {
|
|
245
|
+
idReusePolicy: IdReusePolicy;
|
|
246
|
+
cronSchedule: string;
|
|
247
|
+
flowStartDelaySeconds: number;
|
|
248
|
+
retryPolicy: FlowRetryPolicy | undefined;
|
|
249
|
+
attributes: AttributeWrite[];
|
|
250
|
+
flowConfigOverride: FlowConfig | undefined;
|
|
251
|
+
flowAlreadyStartedOptions: FlowAlreadyStartedOptions | undefined;
|
|
252
|
+
}
|
|
253
|
+
export interface FlowConfig {
|
|
254
|
+
activeStepSearchMode?: ActiveStepSearchMode | undefined;
|
|
255
|
+
continueAsNewThreshold?: number | undefined;
|
|
256
|
+
continueAsNewPageSizeInBytes?: number | undefined;
|
|
257
|
+
stepDurability?: StepDurability | undefined;
|
|
258
|
+
workerTarget: WorkerTarget | undefined;
|
|
259
|
+
}
|
|
260
|
+
export interface WorkerTarget {
|
|
261
|
+
/** Plaintext gRPC dial target, not an HTTP URL. */
|
|
262
|
+
address: string;
|
|
263
|
+
isHeadlessAddress: boolean;
|
|
264
|
+
}
|
|
265
|
+
export interface StartFlowRequest {
|
|
266
|
+
flowId: string;
|
|
267
|
+
flowType: string;
|
|
268
|
+
flowTimeoutSeconds: number;
|
|
269
|
+
startStepType: string;
|
|
270
|
+
stepInput: Value | undefined;
|
|
271
|
+
stepOptions: StepOptions | undefined;
|
|
272
|
+
flowStartOptions: FlowStartOptions | undefined;
|
|
273
|
+
requestId: string;
|
|
274
|
+
}
|
|
275
|
+
export interface StartFlowResponse {
|
|
276
|
+
runId: string;
|
|
277
|
+
}
|
|
278
|
+
export interface PublishToChannelRequest {
|
|
279
|
+
flowId: string;
|
|
280
|
+
runId: string;
|
|
281
|
+
messages: ChannelMessage[];
|
|
282
|
+
}
|
|
283
|
+
export interface ChannelMessage {
|
|
284
|
+
channelName: string;
|
|
285
|
+
value: Value | undefined;
|
|
286
|
+
}
|
|
287
|
+
export interface StopFlowRequest {
|
|
288
|
+
flowId: string;
|
|
289
|
+
runId: string;
|
|
290
|
+
reason: string;
|
|
291
|
+
stopType: StopType;
|
|
292
|
+
}
|
|
293
|
+
export interface GetAttributesRequest {
|
|
294
|
+
flowId: string;
|
|
295
|
+
runId: string;
|
|
296
|
+
keys: string[];
|
|
297
|
+
/** When true, return all attributes (keys is ignored). */
|
|
298
|
+
allKeys: boolean;
|
|
299
|
+
}
|
|
300
|
+
export interface GetAttributesResponse {
|
|
301
|
+
attributes: KV[];
|
|
302
|
+
}
|
|
303
|
+
export interface SetAttributesRequest {
|
|
304
|
+
flowId: string;
|
|
305
|
+
runId: string;
|
|
306
|
+
attributes: AttributeWrite[];
|
|
307
|
+
requestId: string;
|
|
308
|
+
}
|
|
309
|
+
export interface LoadBlobsRequest {
|
|
310
|
+
/**
|
|
311
|
+
* Each value must be a blob-id only
|
|
312
|
+
* (internal_blob_id_for_string_value or internal_blob_id_for_obj_value).
|
|
313
|
+
* Concrete payload arms (string_value / obj_value) are rejected.
|
|
314
|
+
*/
|
|
315
|
+
values: Value[];
|
|
316
|
+
}
|
|
317
|
+
export interface LoadBlobsResponse {
|
|
318
|
+
/** Hydrated concrete values keyed by blob id. */
|
|
319
|
+
values: {
|
|
320
|
+
[key: string]: Value;
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
export interface LoadBlobsResponse_ValuesEntry {
|
|
324
|
+
key: string;
|
|
325
|
+
value: Value | undefined;
|
|
326
|
+
}
|
|
327
|
+
export interface WaitForFlowRequest {
|
|
328
|
+
flowId: string;
|
|
329
|
+
runId: string;
|
|
330
|
+
needsResults: boolean;
|
|
331
|
+
/** Zero/omit uses the configured API maximum wait. */
|
|
332
|
+
waitTimeSeconds: number;
|
|
333
|
+
}
|
|
334
|
+
export interface StepCompletionOutput {
|
|
335
|
+
completedStepType: string;
|
|
336
|
+
completedStepExecutionId: string;
|
|
337
|
+
completedStepOutput: Value | undefined;
|
|
338
|
+
}
|
|
339
|
+
export interface WaitForFlowResponse {
|
|
340
|
+
flowStatus: FlowStatus;
|
|
341
|
+
results: StepCompletionOutput[];
|
|
342
|
+
errorType: FlowErrorType;
|
|
343
|
+
errorMessage: string;
|
|
344
|
+
}
|
|
345
|
+
export interface SearchFlowsRequest {
|
|
346
|
+
query: string;
|
|
347
|
+
pageSize: number;
|
|
348
|
+
nextPageToken: string;
|
|
349
|
+
}
|
|
350
|
+
export interface SearchFlowsResponse {
|
|
351
|
+
flowRuns: SearchFlowsResponseEntry[];
|
|
352
|
+
nextPageToken: string;
|
|
353
|
+
}
|
|
354
|
+
export interface SearchFlowsResponseEntry {
|
|
355
|
+
flowId: string;
|
|
356
|
+
runId: string;
|
|
357
|
+
searchAttributes: KV[];
|
|
358
|
+
flowType: string;
|
|
359
|
+
flowStatus: FlowStatus;
|
|
360
|
+
startTime: Date | undefined;
|
|
361
|
+
closeTime: Date | undefined;
|
|
362
|
+
}
|
|
363
|
+
export interface FlowExecutionID {
|
|
364
|
+
flowId: string;
|
|
365
|
+
runId: string;
|
|
366
|
+
}
|
|
367
|
+
export interface GetFlowSummaryRequest {
|
|
368
|
+
flowId: string;
|
|
369
|
+
runId: string;
|
|
370
|
+
}
|
|
371
|
+
export interface GetFlowSummaryResponse {
|
|
372
|
+
flowExecutionId: FlowExecutionID | undefined;
|
|
373
|
+
firstRunId: string;
|
|
374
|
+
requestId: string;
|
|
375
|
+
flowType: string;
|
|
376
|
+
flowStatus: FlowStatus;
|
|
377
|
+
startTime: Date | undefined;
|
|
378
|
+
closeTime: Date | undefined;
|
|
379
|
+
}
|
|
380
|
+
export interface InternalAsyncStepInputSnapshot {
|
|
381
|
+
methodOptions: StepMethodOptions | undefined;
|
|
382
|
+
request: {
|
|
383
|
+
$case: "waitForRequest";
|
|
384
|
+
value: InvokeWaitForMethodRequest;
|
|
385
|
+
} | {
|
|
386
|
+
$case: "executeRequest";
|
|
387
|
+
value: InvokeExecuteMethodRequest;
|
|
388
|
+
} | undefined;
|
|
389
|
+
}
|
|
390
|
+
export interface InternalLocalActivityInput {
|
|
391
|
+
currentRunStartedTimestamp: bigint;
|
|
392
|
+
methodOptions: StepMethodOptions | undefined;
|
|
393
|
+
}
|
|
394
|
+
export interface GetHistoryEventsRequest {
|
|
395
|
+
flowId: string;
|
|
396
|
+
runId: string;
|
|
397
|
+
startInternalEventId: bigint;
|
|
398
|
+
estimatePageSize: number;
|
|
399
|
+
nextPageToken: Uint8Array;
|
|
400
|
+
}
|
|
401
|
+
export interface GetHistoryEventsResponse {
|
|
402
|
+
events: FlowHistoryEvent[];
|
|
403
|
+
nextPageToken: Uint8Array;
|
|
404
|
+
nextInternalEventId: bigint;
|
|
405
|
+
}
|
|
406
|
+
export interface FlowHistoryEvent {
|
|
407
|
+
eventId: bigint;
|
|
408
|
+
eventTime: Date | undefined;
|
|
409
|
+
payload: {
|
|
410
|
+
$case: "flowStartedOrContinued";
|
|
411
|
+
value: FlowStartedOrContinuedHistoryEvent;
|
|
412
|
+
} | {
|
|
413
|
+
$case: "flowClosed";
|
|
414
|
+
value: FlowClosedHistoryEvent;
|
|
415
|
+
} | {
|
|
416
|
+
$case: "stepWaitForCompleted";
|
|
417
|
+
value: StepWaitForCompletedEvent;
|
|
418
|
+
} | {
|
|
419
|
+
$case: "stepWaitForFailed";
|
|
420
|
+
value: StepWaitForFailedEvent;
|
|
421
|
+
} | {
|
|
422
|
+
$case: "stepExecuteCompleted";
|
|
423
|
+
value: StepExecuteCompletedEvent;
|
|
424
|
+
} | {
|
|
425
|
+
$case: "stepExecuteFailed";
|
|
426
|
+
value: StepExecuteFailedEvent;
|
|
427
|
+
} | {
|
|
428
|
+
$case: "rpcExecutionCompleted";
|
|
429
|
+
value: RpcExecutionCompletedEvent;
|
|
430
|
+
} | {
|
|
431
|
+
$case: "channelExternalPublish";
|
|
432
|
+
value: ChannelExternalPublishEvent;
|
|
433
|
+
} | undefined;
|
|
434
|
+
}
|
|
435
|
+
export interface FlowStartedOrContinuedHistoryEvent {
|
|
436
|
+
flowExecutionId: FlowExecutionID | undefined;
|
|
437
|
+
flowType: string;
|
|
438
|
+
flowConfig: FlowConfig | undefined;
|
|
439
|
+
flowTimeout: Duration | undefined;
|
|
440
|
+
startOrContinue: {
|
|
441
|
+
$case: "initialStart";
|
|
442
|
+
value: FlowInitialStart;
|
|
443
|
+
} | {
|
|
444
|
+
$case: "continuedStart";
|
|
445
|
+
value: FlowContinuedStart;
|
|
446
|
+
} | undefined;
|
|
447
|
+
}
|
|
448
|
+
export interface FlowInitialStart {
|
|
449
|
+
startStepType: string;
|
|
450
|
+
stepInput: Value | undefined;
|
|
451
|
+
stepOptions: StepOptions | undefined;
|
|
452
|
+
initialAttributes: KV[];
|
|
453
|
+
}
|
|
454
|
+
export interface FlowContinuedStart {
|
|
455
|
+
previousRunId: string;
|
|
456
|
+
stepsToStart: StepMovement[];
|
|
457
|
+
stepsToResume: StepExecutionResumeInfo[];
|
|
458
|
+
pendingChannelMessages: {
|
|
459
|
+
[key: string]: ChannelValues;
|
|
460
|
+
};
|
|
461
|
+
attributes: KV[];
|
|
462
|
+
completedSteps: StepCompletionOutput[];
|
|
463
|
+
}
|
|
464
|
+
export interface FlowContinuedStart_PendingChannelMessagesEntry {
|
|
465
|
+
key: string;
|
|
466
|
+
value: ChannelValues | undefined;
|
|
467
|
+
}
|
|
468
|
+
export interface FlowClosedHistoryEvent {
|
|
469
|
+
flowStatus: FlowStatus;
|
|
470
|
+
results: StepCompletionOutput[];
|
|
471
|
+
errorType: FlowErrorType;
|
|
472
|
+
errorMessage: string;
|
|
473
|
+
continuedToRunId: string;
|
|
474
|
+
}
|
|
475
|
+
export interface StepMethodFailure {
|
|
476
|
+
message: string;
|
|
477
|
+
errorType: string;
|
|
478
|
+
stackTrace: string;
|
|
479
|
+
retryState: string;
|
|
480
|
+
details: ErrorResponse | undefined;
|
|
481
|
+
attempt: number;
|
|
482
|
+
}
|
|
483
|
+
export interface StepMethodOptions {
|
|
484
|
+
timeoutSeconds: number;
|
|
485
|
+
retryPolicy: RetryPolicy | undefined;
|
|
486
|
+
}
|
|
487
|
+
export interface StepMethodEventInput {
|
|
488
|
+
unavailable: boolean;
|
|
489
|
+
stepInput: Value | undefined;
|
|
490
|
+
conditionResults: ConditionResults | undefined;
|
|
491
|
+
attributes: KV[];
|
|
492
|
+
stepExecutionLocals: KV[];
|
|
493
|
+
}
|
|
494
|
+
export interface StepMethodEventContext {
|
|
495
|
+
stepExecutionId: string;
|
|
496
|
+
fromStepExecutionId: string;
|
|
497
|
+
stepType: string;
|
|
498
|
+
durability: StepDurability;
|
|
499
|
+
finalAttempt: number;
|
|
500
|
+
startedTime: Date | undefined;
|
|
501
|
+
duration: Duration | undefined;
|
|
502
|
+
methodOptions: StepMethodOptions | undefined;
|
|
503
|
+
isTransientStep?: boolean | undefined;
|
|
504
|
+
lastFailureInfo: StepMethodFailure | undefined;
|
|
505
|
+
}
|
|
506
|
+
export interface StepWaitForCompletedOutput {
|
|
507
|
+
waitForCondition: WaitingCondition | undefined;
|
|
508
|
+
upsertAttributes: AttributeWrite[];
|
|
509
|
+
publishToChannel: ChannelMessage[];
|
|
510
|
+
recordEvents: KV[];
|
|
511
|
+
upsertStepExecutionLocals: KV[];
|
|
512
|
+
transientStepMovement: StepMovement | undefined;
|
|
513
|
+
}
|
|
514
|
+
export interface StepExecuteCompletedOutput {
|
|
515
|
+
stepDecision: StepDecision | undefined;
|
|
516
|
+
upsertAttributes: AttributeWrite[];
|
|
517
|
+
publishToChannel: ChannelMessage[];
|
|
518
|
+
recordEvents: KV[];
|
|
519
|
+
upsertStepExecutionLocals: KV[];
|
|
520
|
+
}
|
|
521
|
+
export interface StepMethodFailedOutput {
|
|
522
|
+
failure: StepMethodFailure | undefined;
|
|
523
|
+
}
|
|
524
|
+
export interface StepWaitForCompletedEvent {
|
|
525
|
+
input: StepMethodEventInput | undefined;
|
|
526
|
+
output: StepWaitForCompletedOutput | undefined;
|
|
527
|
+
context: StepMethodEventContext | undefined;
|
|
528
|
+
}
|
|
529
|
+
export interface StepWaitForFailedEvent {
|
|
530
|
+
input: StepMethodEventInput | undefined;
|
|
531
|
+
output: StepMethodFailedOutput | undefined;
|
|
532
|
+
context: StepMethodEventContext | undefined;
|
|
533
|
+
}
|
|
534
|
+
export interface StepExecuteCompletedEvent {
|
|
535
|
+
input: StepMethodEventInput | undefined;
|
|
536
|
+
output: StepExecuteCompletedOutput | undefined;
|
|
537
|
+
context: StepMethodEventContext | undefined;
|
|
538
|
+
}
|
|
539
|
+
export interface StepExecuteFailedEvent {
|
|
540
|
+
input: StepMethodEventInput | undefined;
|
|
541
|
+
output: StepMethodFailedOutput | undefined;
|
|
542
|
+
context: StepMethodEventContext | undefined;
|
|
543
|
+
}
|
|
544
|
+
export interface RpcExecutionCompletedEvent {
|
|
545
|
+
rpcName: string;
|
|
546
|
+
input: Value | undefined;
|
|
547
|
+
output: Value | undefined;
|
|
548
|
+
stepDecision: StepDecision | undefined;
|
|
549
|
+
upsertAttributes: AttributeWrite[];
|
|
550
|
+
recordEvents: KV[];
|
|
551
|
+
publishToChannel: ChannelMessage[];
|
|
552
|
+
}
|
|
553
|
+
export interface ChannelExternalPublishEvent {
|
|
554
|
+
messages: ChannelMessage[];
|
|
555
|
+
}
|
|
556
|
+
export interface WaitForHistoryEventRequest {
|
|
557
|
+
flowId: string;
|
|
558
|
+
runId: string;
|
|
559
|
+
nextInternalEventId: bigint;
|
|
560
|
+
}
|
|
561
|
+
export interface WaitForHistoryEventResponse {
|
|
562
|
+
eventAvailable: boolean;
|
|
563
|
+
availableInternalEventId: bigint;
|
|
564
|
+
flowStatus: FlowStatus;
|
|
565
|
+
}
|
|
566
|
+
export interface ActiveStepExecutionState {
|
|
567
|
+
stepExecutionId: string;
|
|
568
|
+
fromStepExecutionId: string;
|
|
569
|
+
stepType: string;
|
|
570
|
+
phase: ActiveStepPhase;
|
|
571
|
+
movement: StepMovement | undefined;
|
|
572
|
+
waitingCondition: WaitingCondition | undefined;
|
|
573
|
+
completedConditions: StepExecutionCompletedConditions | undefined;
|
|
574
|
+
stepExecutionLocals: KV[];
|
|
575
|
+
timers: TimerInfo[];
|
|
576
|
+
}
|
|
577
|
+
export interface GetFlowStateRequest {
|
|
578
|
+
flowId: string;
|
|
579
|
+
runId: string;
|
|
580
|
+
}
|
|
581
|
+
export interface GetFlowStateResponse {
|
|
582
|
+
flowConfig: FlowConfig | undefined;
|
|
583
|
+
attributes: KV[];
|
|
584
|
+
activeStepExecutions: ActiveStepExecutionState[];
|
|
585
|
+
queuedSteps: StepMovement[];
|
|
586
|
+
pendingChannelMessages: {
|
|
587
|
+
[key: string]: ChannelValues;
|
|
588
|
+
};
|
|
589
|
+
completedSteps: StepCompletionOutput[];
|
|
590
|
+
}
|
|
591
|
+
export interface GetFlowStateResponse_PendingChannelMessagesEntry {
|
|
592
|
+
key: string;
|
|
593
|
+
value: ChannelValues | undefined;
|
|
594
|
+
}
|
|
595
|
+
export interface ResetFlowRequest {
|
|
596
|
+
flowId: string;
|
|
597
|
+
runId: string;
|
|
598
|
+
resetType: FlowResetType;
|
|
599
|
+
historyEventId: number;
|
|
600
|
+
reason: string;
|
|
601
|
+
historyEventTime: string;
|
|
602
|
+
stepType: string;
|
|
603
|
+
stepExecutionId: string;
|
|
604
|
+
skipChannelMessagesReapply: boolean;
|
|
605
|
+
skipLockingRpcReapply: boolean;
|
|
606
|
+
}
|
|
607
|
+
export interface ResetFlowResponse {
|
|
608
|
+
runId: string;
|
|
609
|
+
}
|
|
610
|
+
export interface InvokeRPCRequest {
|
|
611
|
+
flowId: string;
|
|
612
|
+
runId: string;
|
|
613
|
+
rpcName: string;
|
|
614
|
+
input: Value | undefined;
|
|
615
|
+
timeoutSeconds: number;
|
|
616
|
+
/**
|
|
617
|
+
* Acquire exclusive lock on these attribute keys for the RPC's
|
|
618
|
+
* read-modify-write. Empty = non-locking RPC.
|
|
619
|
+
*/
|
|
620
|
+
lockAttributeKeys: string[];
|
|
621
|
+
/** Locking RPCs require per-call UUID, SDK-generated and future-overridable; identical retries reuse it. Server forwards run-scoped UpdateID; Continue-as-New resets scope. */
|
|
622
|
+
requestId: string;
|
|
623
|
+
}
|
|
624
|
+
export interface InvokeRPCResponse {
|
|
625
|
+
output: Value | undefined;
|
|
626
|
+
}
|
|
627
|
+
export interface SkipTimerRequest {
|
|
628
|
+
flowId: string;
|
|
629
|
+
runId: string;
|
|
630
|
+
stepExecutionId: string;
|
|
631
|
+
timerConditionId: string;
|
|
632
|
+
timerConditionIndex?: number | undefined;
|
|
633
|
+
}
|
|
634
|
+
export interface UpdateFlowConfigRequest {
|
|
635
|
+
flowId: string;
|
|
636
|
+
runId: string;
|
|
637
|
+
flowConfig: FlowConfig | undefined;
|
|
638
|
+
}
|
|
639
|
+
export interface WaitForStepCompletionRequest {
|
|
640
|
+
flowId: string;
|
|
641
|
+
/** Identifies a step execution by type and its per-type execution number. */
|
|
642
|
+
stepType: string;
|
|
643
|
+
stepExecutionNumber: string;
|
|
644
|
+
waitTimeSeconds: number;
|
|
645
|
+
/** Required per-call UUID is SDK-generated and future-overridable; identical retries reuse it. Server forwards run-scoped UpdateID; Continue-as-New resets scope. */
|
|
646
|
+
requestId: string;
|
|
647
|
+
}
|
|
648
|
+
export interface WaitForStepCompletionResponse {
|
|
649
|
+
}
|
|
650
|
+
export interface WaitForAttributeRequest {
|
|
651
|
+
flowId: string;
|
|
652
|
+
runId: string;
|
|
653
|
+
condition: WaitForAttributeCondition | undefined;
|
|
654
|
+
/** Zero/omit checks once; positive waits until match or timeout. */
|
|
655
|
+
waitTimeSeconds: number;
|
|
656
|
+
/** Required per-call UUID is SDK-generated and future-overridable; identical retries reuse it. Server forwards run-scoped UpdateID; Continue-as-New resets scope. */
|
|
657
|
+
requestId: string;
|
|
658
|
+
}
|
|
659
|
+
export interface WaitForAttributeCondition {
|
|
660
|
+
kind: {
|
|
661
|
+
$case: "equal";
|
|
662
|
+
value: WaitForAttributeEqual;
|
|
663
|
+
} | undefined;
|
|
664
|
+
}
|
|
665
|
+
export interface WaitForAttributeEqual {
|
|
666
|
+
key: string;
|
|
667
|
+
value: Value | undefined;
|
|
668
|
+
}
|
|
669
|
+
export interface TriggerContinueAsNewRequest {
|
|
670
|
+
flowId: string;
|
|
671
|
+
runId: string;
|
|
672
|
+
}
|
|
673
|
+
export interface HealthInfo {
|
|
674
|
+
condition: string;
|
|
675
|
+
hostname: string;
|
|
676
|
+
duration: number;
|
|
677
|
+
}
|
|
678
|
+
export interface ErrorResponse {
|
|
679
|
+
detail: string;
|
|
680
|
+
subStatus: ErrorSubStatus;
|
|
681
|
+
originalWorkerErrorDetail: string;
|
|
682
|
+
originalWorkerErrorType: string;
|
|
683
|
+
originalWorkerErrorStatus: number;
|
|
684
|
+
}
|
|
685
|
+
export interface WorkerErrorResponse {
|
|
686
|
+
detail: string;
|
|
687
|
+
errorType: string;
|
|
688
|
+
}
|
|
689
|
+
export interface ChannelInfo {
|
|
690
|
+
size: number;
|
|
691
|
+
}
|
|
692
|
+
export interface InvokeWaitForMethodRequest {
|
|
693
|
+
context: Context | undefined;
|
|
694
|
+
flowType: string;
|
|
695
|
+
stepType: string;
|
|
696
|
+
stepInput: Value | undefined;
|
|
697
|
+
attributes: KV[];
|
|
698
|
+
}
|
|
699
|
+
export interface InvokeWaitForMethodResponse {
|
|
700
|
+
/** Server-populated lineage input for local activity history. */
|
|
701
|
+
localActivityInput: LocalActivityInput | undefined;
|
|
702
|
+
upsertAttributes: AttributeWrite[];
|
|
703
|
+
waitingCondition: WaitingCondition | undefined;
|
|
704
|
+
upsertStepExeLocals: KV[];
|
|
705
|
+
recordEvents: KV[];
|
|
706
|
+
publishToChannel: ChannelMessage[];
|
|
707
|
+
transientStepMovement: StepMovement | undefined;
|
|
708
|
+
}
|
|
709
|
+
export interface InvokeExecuteMethodRequest {
|
|
710
|
+
context: Context | undefined;
|
|
711
|
+
flowType: string;
|
|
712
|
+
stepType: string;
|
|
713
|
+
stepInput: Value | undefined;
|
|
714
|
+
attributes: KV[];
|
|
715
|
+
stepExeLocals: KV[];
|
|
716
|
+
conditionResults: ConditionResults | undefined;
|
|
717
|
+
}
|
|
718
|
+
export interface InvokeExecuteMethodResponse {
|
|
719
|
+
/** Server-populated lineage input for local activity history. */
|
|
720
|
+
localActivityInput: LocalActivityInput | undefined;
|
|
721
|
+
stepDecision: StepDecision | undefined;
|
|
722
|
+
upsertAttributes: AttributeWrite[];
|
|
723
|
+
recordEvents: KV[];
|
|
724
|
+
upsertStepExeLocals: KV[];
|
|
725
|
+
publishToChannel: ChannelMessage[];
|
|
726
|
+
}
|
|
727
|
+
export interface InvokeWorkerRPCRequest {
|
|
728
|
+
context: Context | undefined;
|
|
729
|
+
flowType: string;
|
|
730
|
+
rpcName: string;
|
|
731
|
+
input: Value | undefined;
|
|
732
|
+
attributes: KV[];
|
|
733
|
+
channelInfos: {
|
|
734
|
+
[key: string]: ChannelInfo;
|
|
735
|
+
};
|
|
736
|
+
}
|
|
737
|
+
export interface InvokeWorkerRPCRequest_ChannelInfosEntry {
|
|
738
|
+
key: string;
|
|
739
|
+
value: ChannelInfo | undefined;
|
|
740
|
+
}
|
|
741
|
+
export interface InvokeWorkerRPCResponse {
|
|
742
|
+
output: Value | undefined;
|
|
743
|
+
stepDecision: StepDecision | undefined;
|
|
744
|
+
upsertAttributes: AttributeWrite[];
|
|
745
|
+
recordEvents: KV[];
|
|
746
|
+
publishToChannel: ChannelMessage[];
|
|
747
|
+
}
|
|
748
|
+
export interface StepDecision {
|
|
749
|
+
nextSteps: StepMovement[];
|
|
750
|
+
closeDecision: CloseDecision | undefined;
|
|
751
|
+
}
|
|
752
|
+
export interface CloseDecision {
|
|
753
|
+
closeDecisionType: CloseDecisionType;
|
|
754
|
+
conditionalChannelNames: string[];
|
|
755
|
+
closeInput: Value | undefined;
|
|
756
|
+
}
|
|
757
|
+
export interface StepMovement {
|
|
758
|
+
stepType: string;
|
|
759
|
+
stepInput: Value | undefined;
|
|
760
|
+
stepOptions: StepOptions | undefined;
|
|
761
|
+
/** Server-owned scheduling source; workers must leave this empty. */
|
|
762
|
+
fromStepExecutionIdInternalOnly: string;
|
|
763
|
+
}
|
|
764
|
+
export interface ConditionCombination {
|
|
765
|
+
conditionIds: string[];
|
|
766
|
+
}
|
|
767
|
+
export interface WaitingCondition {
|
|
768
|
+
waitingConditionType: WaitingConditionType;
|
|
769
|
+
timerConditions: TimerCondition[];
|
|
770
|
+
channelConditions: ChannelCondition[];
|
|
771
|
+
conditionCombinations: ConditionCombination[];
|
|
772
|
+
}
|
|
773
|
+
export interface TimerCondition {
|
|
774
|
+
/** Optional unless waiting_condition_type is ANY_COMBINATION_COMPLETED. */
|
|
775
|
+
conditionId: string;
|
|
776
|
+
/** Worker-relative delay; interpreter clears this after converted to firing_unix_timestamp_seconds. */
|
|
777
|
+
durationSeconds: bigint;
|
|
778
|
+
/** Interpreter-normalized deadline; workers leave this zero. */
|
|
779
|
+
firingUnixTimestampSeconds: bigint;
|
|
780
|
+
}
|
|
781
|
+
export interface ChannelCondition {
|
|
782
|
+
/** Optional unless waiting_condition_type is ANY_COMBINATION_COMPLETED. */
|
|
783
|
+
conditionId: string;
|
|
784
|
+
channelName: string;
|
|
785
|
+
/** Both omitted means exact one. Omitted at_least means zero; omitted at_most means unbounded. */
|
|
786
|
+
atLeast?: number | undefined;
|
|
787
|
+
atMost?: number | undefined;
|
|
788
|
+
}
|
|
789
|
+
export interface ConditionResults {
|
|
790
|
+
channelResults: ChannelResult[];
|
|
791
|
+
timerResults: TimerResult[];
|
|
792
|
+
waitForFailed: boolean;
|
|
793
|
+
}
|
|
794
|
+
export interface TimerResult {
|
|
795
|
+
conditionId: string;
|
|
796
|
+
conditionStatus: ConditionStatus;
|
|
797
|
+
}
|
|
798
|
+
export interface ChannelResult {
|
|
799
|
+
conditionId: string;
|
|
800
|
+
conditionStatus: ConditionStatus;
|
|
801
|
+
channelName: string;
|
|
802
|
+
values: Value[];
|
|
803
|
+
}
|
|
804
|
+
export interface ContinueAsNewDumpRequest {
|
|
805
|
+
flowId: string;
|
|
806
|
+
runId: string;
|
|
807
|
+
pageNum: number;
|
|
808
|
+
pageSizeInBytes: number;
|
|
809
|
+
}
|
|
810
|
+
export interface ContinueAsNewDumpResponse {
|
|
811
|
+
/** Slice of the deterministic proto-marshaled ContinueAsNewDump. */
|
|
812
|
+
pageContent: Uint8Array;
|
|
813
|
+
pageNum: number;
|
|
814
|
+
totalPages: number;
|
|
815
|
+
/** Hash of the full marshaled dump; guards snapshot drift across pages. */
|
|
816
|
+
checksum: string;
|
|
817
|
+
}
|
|
818
|
+
export interface ChannelValues {
|
|
819
|
+
values: Value[];
|
|
820
|
+
}
|
|
821
|
+
export interface StepExecutionCompletedConditions {
|
|
822
|
+
completedTimerConditions: {
|
|
823
|
+
[key: number]: InternalTimerStatus;
|
|
824
|
+
};
|
|
825
|
+
}
|
|
826
|
+
export interface StepExecutionCompletedConditions_CompletedTimerConditionsEntry {
|
|
827
|
+
key: number;
|
|
828
|
+
value: InternalTimerStatus;
|
|
829
|
+
}
|
|
830
|
+
export interface StepExecutionResumeInfo {
|
|
831
|
+
stepExecutionId: string;
|
|
832
|
+
step: StepMovement | undefined;
|
|
833
|
+
completedConditions: StepExecutionCompletedConditions | undefined;
|
|
834
|
+
waitingCondition: WaitingCondition | undefined;
|
|
835
|
+
stepExeLocals: KV[];
|
|
836
|
+
}
|
|
837
|
+
export interface StepExecutionCounterInfo {
|
|
838
|
+
stepTypeStartedCount: {
|
|
839
|
+
[key: string]: number;
|
|
840
|
+
};
|
|
841
|
+
stepTypeCurrentlyExecutingCount: {
|
|
842
|
+
[key: string]: number;
|
|
843
|
+
};
|
|
844
|
+
totalCurrentlyExecutingCount: number;
|
|
845
|
+
stepActiveExecutionNums: {
|
|
846
|
+
[key: string]: StepExecutionNumbers;
|
|
847
|
+
};
|
|
848
|
+
}
|
|
849
|
+
export interface StepExecutionCounterInfo_StepTypeStartedCountEntry {
|
|
850
|
+
key: string;
|
|
851
|
+
value: number;
|
|
852
|
+
}
|
|
853
|
+
export interface StepExecutionCounterInfo_StepTypeCurrentlyExecutingCountEntry {
|
|
854
|
+
key: string;
|
|
855
|
+
value: number;
|
|
856
|
+
}
|
|
857
|
+
export interface StepExecutionCounterInfo_StepActiveExecutionNumsEntry {
|
|
858
|
+
key: string;
|
|
859
|
+
value: StepExecutionNumbers | undefined;
|
|
860
|
+
}
|
|
861
|
+
export interface StaleSkipTimer {
|
|
862
|
+
stepExecutionId: string;
|
|
863
|
+
timerConditionId: string;
|
|
864
|
+
timerConditionIndex: number;
|
|
865
|
+
}
|
|
866
|
+
export interface ContinueAsNewDump {
|
|
867
|
+
stepsToStartFromBeginning: StepMovement[];
|
|
868
|
+
stepExecutionsToResume: StepExecutionResumeInfo[];
|
|
869
|
+
channelReceived: {
|
|
870
|
+
[key: string]: ChannelValues;
|
|
871
|
+
};
|
|
872
|
+
counterInfo: StepExecutionCounterInfo | undefined;
|
|
873
|
+
stepOutputs: StepCompletionOutput[];
|
|
874
|
+
staleSkipTimers: StaleSkipTimer[];
|
|
875
|
+
/** Stored values only; index metadata remains in backend search attributes. */
|
|
876
|
+
attributes: KV[];
|
|
877
|
+
}
|
|
878
|
+
export interface ContinueAsNewDump_ChannelReceivedEntry {
|
|
879
|
+
key: string;
|
|
880
|
+
value: ChannelValues | undefined;
|
|
881
|
+
}
|
|
882
|
+
export interface ContinueAsNewInput {
|
|
883
|
+
previousInternalRunId: string;
|
|
884
|
+
}
|
|
885
|
+
export interface InterpreterWorkflowInput {
|
|
886
|
+
flowType: string;
|
|
887
|
+
startStepType: string;
|
|
888
|
+
stepInput: Value | undefined;
|
|
889
|
+
stepOptions: StepOptions | undefined;
|
|
890
|
+
/** IndexConfig is processed before workflow start. */
|
|
891
|
+
initAttributes: KV[];
|
|
892
|
+
config: FlowConfig | undefined;
|
|
893
|
+
/** When true, ignore start_step_type / step_input / step_options / init_attributes. */
|
|
894
|
+
isResumeFromContinueAsNew: boolean;
|
|
895
|
+
continueAsNewInput: ContinueAsNewInput | undefined;
|
|
896
|
+
}
|
|
897
|
+
export interface InterpreterWorkflowOutput {
|
|
898
|
+
stepCompletionOutputs: StepCompletionOutput[];
|
|
899
|
+
}
|
|
900
|
+
export interface BlobStoreCleanupWorkflowInput {
|
|
901
|
+
storeId: string;
|
|
902
|
+
}
|
|
903
|
+
export interface BlobStoreCleanupWorkflowOutput {
|
|
904
|
+
totalDeleted: number;
|
|
905
|
+
}
|
|
906
|
+
export interface InvokeWaitForMethodActivityInput {
|
|
907
|
+
workerTarget: WorkerTarget | undefined;
|
|
908
|
+
request: InvokeWaitForMethodRequest | undefined;
|
|
909
|
+
}
|
|
910
|
+
export interface InvokeWaitForMethodActivityOutput {
|
|
911
|
+
response: InvokeWaitForMethodResponse | undefined;
|
|
912
|
+
}
|
|
913
|
+
export interface InvokeExecuteMethodActivityInput {
|
|
914
|
+
workerTarget: WorkerTarget | undefined;
|
|
915
|
+
request: InvokeExecuteMethodRequest | undefined;
|
|
916
|
+
/** Requires a DeadEnd close decision without next steps. */
|
|
917
|
+
isTransientStep: boolean;
|
|
918
|
+
}
|
|
919
|
+
export interface InvokeExecuteMethodActivityOutput {
|
|
920
|
+
response: InvokeExecuteMethodResponse | undefined;
|
|
921
|
+
}
|
|
922
|
+
export interface DumpFlowForContinueAsNewActivityInput {
|
|
923
|
+
request: ContinueAsNewDumpRequest | undefined;
|
|
924
|
+
}
|
|
925
|
+
export interface DumpFlowForContinueAsNewActivityOutput {
|
|
926
|
+
response: ContinueAsNewDumpResponse | undefined;
|
|
927
|
+
}
|
|
928
|
+
export interface InvokeWorkerRPCActivityInput {
|
|
929
|
+
rpcPrep: PrepareRpcQueryResponse | undefined;
|
|
930
|
+
request: InvokeRPCRequest | undefined;
|
|
931
|
+
}
|
|
932
|
+
export interface InvokeWorkerRPCActivityOutput {
|
|
933
|
+
response: InvokeWorkerRPCResponse | undefined;
|
|
934
|
+
}
|
|
935
|
+
export interface CleanupBlobStoreActivityInput {
|
|
936
|
+
storeId: string;
|
|
937
|
+
}
|
|
938
|
+
export interface CleanupBlobStoreActivityOutput {
|
|
939
|
+
totalDeleted: number;
|
|
940
|
+
}
|
|
941
|
+
export interface ExecuteRpcSignalRequest {
|
|
942
|
+
rpcInput: Value | undefined;
|
|
943
|
+
rpcOutput: Value | undefined;
|
|
944
|
+
upsertAttributes: AttributeWrite[];
|
|
945
|
+
stepDecision: StepDecision | undefined;
|
|
946
|
+
recordEvents: KV[];
|
|
947
|
+
publishToChannel: ChannelMessage[];
|
|
948
|
+
}
|
|
949
|
+
export interface SkipTimerSignalRequest {
|
|
950
|
+
stepExecutionId: string;
|
|
951
|
+
timerConditionId: string;
|
|
952
|
+
timerConditionIndex: number;
|
|
953
|
+
}
|
|
954
|
+
export interface FailFlowSignalRequest {
|
|
955
|
+
reason: string;
|
|
956
|
+
}
|
|
957
|
+
export interface GetAttributesQueryRequest {
|
|
958
|
+
keys: string[];
|
|
959
|
+
allKeys: boolean;
|
|
960
|
+
}
|
|
961
|
+
export interface GetAttributesQueryResponse {
|
|
962
|
+
attributes: KV[];
|
|
963
|
+
}
|
|
964
|
+
export interface PrepareRpcQueryRequest {
|
|
965
|
+
lockAttributeKeys: string[];
|
|
966
|
+
}
|
|
967
|
+
export interface PrepareRpcQueryResponse {
|
|
968
|
+
attributes: KV[];
|
|
969
|
+
runId: string;
|
|
970
|
+
flowStartedTimestamp: bigint;
|
|
971
|
+
flowType: string;
|
|
972
|
+
workerTarget: WorkerTarget | undefined;
|
|
973
|
+
channelInfos: {
|
|
974
|
+
[key: string]: ChannelInfo;
|
|
975
|
+
};
|
|
976
|
+
}
|
|
977
|
+
export interface PrepareRpcQueryResponse_ChannelInfosEntry {
|
|
978
|
+
key: string;
|
|
979
|
+
value: ChannelInfo | undefined;
|
|
980
|
+
}
|
|
981
|
+
export interface TimerInfo {
|
|
982
|
+
/** Empty when the timer has no condition id. */
|
|
983
|
+
conditionId: string;
|
|
984
|
+
firingUnixTimestampSeconds: bigint;
|
|
985
|
+
status: InternalTimerStatus;
|
|
986
|
+
}
|
|
987
|
+
export interface TimerInfoList {
|
|
988
|
+
timers: TimerInfo[];
|
|
989
|
+
}
|
|
990
|
+
export interface GetCurrentTimerInfosQueryResponse {
|
|
991
|
+
/** Key is step_execution_id. */
|
|
992
|
+
stepExecutionCurrentTimerInfos: {
|
|
993
|
+
[key: string]: TimerInfoList;
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
export interface GetCurrentTimerInfosQueryResponse_StepExecutionCurrentTimerInfosEntry {
|
|
997
|
+
key: string;
|
|
998
|
+
value: TimerInfoList | undefined;
|
|
999
|
+
}
|
|
1000
|
+
export interface GetScheduledGreedyTimerTimesQueryResponse {
|
|
1001
|
+
pendingScheduled: TimerInfo[];
|
|
1002
|
+
}
|
|
1003
|
+
export interface DebugDumpResponse {
|
|
1004
|
+
config: FlowConfig | undefined;
|
|
1005
|
+
snapshot: ContinueAsNewDump | undefined;
|
|
1006
|
+
firingTimersUnixTimestamps: bigint[];
|
|
1007
|
+
activeStepExecutions: ActiveStepExecutionState[];
|
|
1008
|
+
}
|
|
1009
|
+
/** Sync-update InvokeRPC handler result when response and error are multiplexed. */
|
|
1010
|
+
export interface InvokeRpcUpdateResult {
|
|
1011
|
+
response: InvokeRPCResponse | undefined;
|
|
1012
|
+
}
|
|
1013
|
+
export interface StepExecutionNumbers {
|
|
1014
|
+
numbers: number[];
|
|
1015
|
+
}
|
|
1016
|
+
export declare const Value: MessageFns<Value>;
|
|
1017
|
+
export declare const EncodedObject: MessageFns<EncodedObject>;
|
|
1018
|
+
export declare const AttributeWrite: MessageFns<AttributeWrite>;
|
|
1019
|
+
export declare const KV: MessageFns<KV>;
|
|
1020
|
+
export declare const IndexConfig: MessageFns<IndexConfig>;
|
|
1021
|
+
export declare const Context: MessageFns<Context>;
|
|
1022
|
+
export declare const LocalActivityInput: MessageFns<LocalActivityInput>;
|
|
1023
|
+
export declare const RetryPolicy: MessageFns<RetryPolicy>;
|
|
1024
|
+
export declare const FlowRetryPolicy: MessageFns<FlowRetryPolicy>;
|
|
1025
|
+
export declare const StepOptions: MessageFns<StepOptions>;
|
|
1026
|
+
export declare const FlowAlreadyStartedOptions: MessageFns<FlowAlreadyStartedOptions>;
|
|
1027
|
+
export declare const FlowStartOptions: MessageFns<FlowStartOptions>;
|
|
1028
|
+
export declare const FlowConfig: MessageFns<FlowConfig>;
|
|
1029
|
+
export declare const WorkerTarget: MessageFns<WorkerTarget>;
|
|
1030
|
+
export declare const StartFlowRequest: MessageFns<StartFlowRequest>;
|
|
1031
|
+
export declare const StartFlowResponse: MessageFns<StartFlowResponse>;
|
|
1032
|
+
export declare const PublishToChannelRequest: MessageFns<PublishToChannelRequest>;
|
|
1033
|
+
export declare const ChannelMessage: MessageFns<ChannelMessage>;
|
|
1034
|
+
export declare const StopFlowRequest: MessageFns<StopFlowRequest>;
|
|
1035
|
+
export declare const GetAttributesRequest: MessageFns<GetAttributesRequest>;
|
|
1036
|
+
export declare const GetAttributesResponse: MessageFns<GetAttributesResponse>;
|
|
1037
|
+
export declare const SetAttributesRequest: MessageFns<SetAttributesRequest>;
|
|
1038
|
+
export declare const LoadBlobsRequest: MessageFns<LoadBlobsRequest>;
|
|
1039
|
+
export declare const LoadBlobsResponse: MessageFns<LoadBlobsResponse>;
|
|
1040
|
+
export declare const LoadBlobsResponse_ValuesEntry: MessageFns<LoadBlobsResponse_ValuesEntry>;
|
|
1041
|
+
export declare const WaitForFlowRequest: MessageFns<WaitForFlowRequest>;
|
|
1042
|
+
export declare const StepCompletionOutput: MessageFns<StepCompletionOutput>;
|
|
1043
|
+
export declare const WaitForFlowResponse: MessageFns<WaitForFlowResponse>;
|
|
1044
|
+
export declare const SearchFlowsRequest: MessageFns<SearchFlowsRequest>;
|
|
1045
|
+
export declare const SearchFlowsResponse: MessageFns<SearchFlowsResponse>;
|
|
1046
|
+
export declare const SearchFlowsResponseEntry: MessageFns<SearchFlowsResponseEntry>;
|
|
1047
|
+
export declare const FlowExecutionID: MessageFns<FlowExecutionID>;
|
|
1048
|
+
export declare const GetFlowSummaryRequest: MessageFns<GetFlowSummaryRequest>;
|
|
1049
|
+
export declare const GetFlowSummaryResponse: MessageFns<GetFlowSummaryResponse>;
|
|
1050
|
+
export declare const InternalAsyncStepInputSnapshot: MessageFns<InternalAsyncStepInputSnapshot>;
|
|
1051
|
+
export declare const InternalLocalActivityInput: MessageFns<InternalLocalActivityInput>;
|
|
1052
|
+
export declare const GetHistoryEventsRequest: MessageFns<GetHistoryEventsRequest>;
|
|
1053
|
+
export declare const GetHistoryEventsResponse: MessageFns<GetHistoryEventsResponse>;
|
|
1054
|
+
export declare const FlowHistoryEvent: MessageFns<FlowHistoryEvent>;
|
|
1055
|
+
export declare const FlowStartedOrContinuedHistoryEvent: MessageFns<FlowStartedOrContinuedHistoryEvent>;
|
|
1056
|
+
export declare const FlowInitialStart: MessageFns<FlowInitialStart>;
|
|
1057
|
+
export declare const FlowContinuedStart: MessageFns<FlowContinuedStart>;
|
|
1058
|
+
export declare const FlowContinuedStart_PendingChannelMessagesEntry: MessageFns<FlowContinuedStart_PendingChannelMessagesEntry>;
|
|
1059
|
+
export declare const FlowClosedHistoryEvent: MessageFns<FlowClosedHistoryEvent>;
|
|
1060
|
+
export declare const StepMethodFailure: MessageFns<StepMethodFailure>;
|
|
1061
|
+
export declare const StepMethodOptions: MessageFns<StepMethodOptions>;
|
|
1062
|
+
export declare const StepMethodEventInput: MessageFns<StepMethodEventInput>;
|
|
1063
|
+
export declare const StepMethodEventContext: MessageFns<StepMethodEventContext>;
|
|
1064
|
+
export declare const StepWaitForCompletedOutput: MessageFns<StepWaitForCompletedOutput>;
|
|
1065
|
+
export declare const StepExecuteCompletedOutput: MessageFns<StepExecuteCompletedOutput>;
|
|
1066
|
+
export declare const StepMethodFailedOutput: MessageFns<StepMethodFailedOutput>;
|
|
1067
|
+
export declare const StepWaitForCompletedEvent: MessageFns<StepWaitForCompletedEvent>;
|
|
1068
|
+
export declare const StepWaitForFailedEvent: MessageFns<StepWaitForFailedEvent>;
|
|
1069
|
+
export declare const StepExecuteCompletedEvent: MessageFns<StepExecuteCompletedEvent>;
|
|
1070
|
+
export declare const StepExecuteFailedEvent: MessageFns<StepExecuteFailedEvent>;
|
|
1071
|
+
export declare const RpcExecutionCompletedEvent: MessageFns<RpcExecutionCompletedEvent>;
|
|
1072
|
+
export declare const ChannelExternalPublishEvent: MessageFns<ChannelExternalPublishEvent>;
|
|
1073
|
+
export declare const WaitForHistoryEventRequest: MessageFns<WaitForHistoryEventRequest>;
|
|
1074
|
+
export declare const WaitForHistoryEventResponse: MessageFns<WaitForHistoryEventResponse>;
|
|
1075
|
+
export declare const ActiveStepExecutionState: MessageFns<ActiveStepExecutionState>;
|
|
1076
|
+
export declare const GetFlowStateRequest: MessageFns<GetFlowStateRequest>;
|
|
1077
|
+
export declare const GetFlowStateResponse: MessageFns<GetFlowStateResponse>;
|
|
1078
|
+
export declare const GetFlowStateResponse_PendingChannelMessagesEntry: MessageFns<GetFlowStateResponse_PendingChannelMessagesEntry>;
|
|
1079
|
+
export declare const ResetFlowRequest: MessageFns<ResetFlowRequest>;
|
|
1080
|
+
export declare const ResetFlowResponse: MessageFns<ResetFlowResponse>;
|
|
1081
|
+
export declare const InvokeRPCRequest: MessageFns<InvokeRPCRequest>;
|
|
1082
|
+
export declare const InvokeRPCResponse: MessageFns<InvokeRPCResponse>;
|
|
1083
|
+
export declare const SkipTimerRequest: MessageFns<SkipTimerRequest>;
|
|
1084
|
+
export declare const UpdateFlowConfigRequest: MessageFns<UpdateFlowConfigRequest>;
|
|
1085
|
+
export declare const WaitForStepCompletionRequest: MessageFns<WaitForStepCompletionRequest>;
|
|
1086
|
+
export declare const WaitForStepCompletionResponse: MessageFns<WaitForStepCompletionResponse>;
|
|
1087
|
+
export declare const WaitForAttributeRequest: MessageFns<WaitForAttributeRequest>;
|
|
1088
|
+
export declare const WaitForAttributeCondition: MessageFns<WaitForAttributeCondition>;
|
|
1089
|
+
export declare const WaitForAttributeEqual: MessageFns<WaitForAttributeEqual>;
|
|
1090
|
+
export declare const TriggerContinueAsNewRequest: MessageFns<TriggerContinueAsNewRequest>;
|
|
1091
|
+
export declare const HealthInfo: MessageFns<HealthInfo>;
|
|
1092
|
+
export declare const ErrorResponse: MessageFns<ErrorResponse>;
|
|
1093
|
+
export declare const WorkerErrorResponse: MessageFns<WorkerErrorResponse>;
|
|
1094
|
+
export declare const ChannelInfo: MessageFns<ChannelInfo>;
|
|
1095
|
+
export declare const InvokeWaitForMethodRequest: MessageFns<InvokeWaitForMethodRequest>;
|
|
1096
|
+
export declare const InvokeWaitForMethodResponse: MessageFns<InvokeWaitForMethodResponse>;
|
|
1097
|
+
export declare const InvokeExecuteMethodRequest: MessageFns<InvokeExecuteMethodRequest>;
|
|
1098
|
+
export declare const InvokeExecuteMethodResponse: MessageFns<InvokeExecuteMethodResponse>;
|
|
1099
|
+
export declare const InvokeWorkerRPCRequest: MessageFns<InvokeWorkerRPCRequest>;
|
|
1100
|
+
export declare const InvokeWorkerRPCRequest_ChannelInfosEntry: MessageFns<InvokeWorkerRPCRequest_ChannelInfosEntry>;
|
|
1101
|
+
export declare const InvokeWorkerRPCResponse: MessageFns<InvokeWorkerRPCResponse>;
|
|
1102
|
+
export declare const StepDecision: MessageFns<StepDecision>;
|
|
1103
|
+
export declare const CloseDecision: MessageFns<CloseDecision>;
|
|
1104
|
+
export declare const StepMovement: MessageFns<StepMovement>;
|
|
1105
|
+
export declare const ConditionCombination: MessageFns<ConditionCombination>;
|
|
1106
|
+
export declare const WaitingCondition: MessageFns<WaitingCondition>;
|
|
1107
|
+
export declare const TimerCondition: MessageFns<TimerCondition>;
|
|
1108
|
+
export declare const ChannelCondition: MessageFns<ChannelCondition>;
|
|
1109
|
+
export declare const ConditionResults: MessageFns<ConditionResults>;
|
|
1110
|
+
export declare const TimerResult: MessageFns<TimerResult>;
|
|
1111
|
+
export declare const ChannelResult: MessageFns<ChannelResult>;
|
|
1112
|
+
export declare const ContinueAsNewDumpRequest: MessageFns<ContinueAsNewDumpRequest>;
|
|
1113
|
+
export declare const ContinueAsNewDumpResponse: MessageFns<ContinueAsNewDumpResponse>;
|
|
1114
|
+
export declare const ChannelValues: MessageFns<ChannelValues>;
|
|
1115
|
+
export declare const StepExecutionCompletedConditions: MessageFns<StepExecutionCompletedConditions>;
|
|
1116
|
+
export declare const StepExecutionCompletedConditions_CompletedTimerConditionsEntry: MessageFns<StepExecutionCompletedConditions_CompletedTimerConditionsEntry>;
|
|
1117
|
+
export declare const StepExecutionResumeInfo: MessageFns<StepExecutionResumeInfo>;
|
|
1118
|
+
export declare const StepExecutionCounterInfo: MessageFns<StepExecutionCounterInfo>;
|
|
1119
|
+
export declare const StepExecutionCounterInfo_StepTypeStartedCountEntry: MessageFns<StepExecutionCounterInfo_StepTypeStartedCountEntry>;
|
|
1120
|
+
export declare const StepExecutionCounterInfo_StepTypeCurrentlyExecutingCountEntry: MessageFns<StepExecutionCounterInfo_StepTypeCurrentlyExecutingCountEntry>;
|
|
1121
|
+
export declare const StepExecutionCounterInfo_StepActiveExecutionNumsEntry: MessageFns<StepExecutionCounterInfo_StepActiveExecutionNumsEntry>;
|
|
1122
|
+
export declare const StaleSkipTimer: MessageFns<StaleSkipTimer>;
|
|
1123
|
+
export declare const ContinueAsNewDump: MessageFns<ContinueAsNewDump>;
|
|
1124
|
+
export declare const ContinueAsNewDump_ChannelReceivedEntry: MessageFns<ContinueAsNewDump_ChannelReceivedEntry>;
|
|
1125
|
+
export declare const ContinueAsNewInput: MessageFns<ContinueAsNewInput>;
|
|
1126
|
+
export declare const InterpreterWorkflowInput: MessageFns<InterpreterWorkflowInput>;
|
|
1127
|
+
export declare const InterpreterWorkflowOutput: MessageFns<InterpreterWorkflowOutput>;
|
|
1128
|
+
export declare const BlobStoreCleanupWorkflowInput: MessageFns<BlobStoreCleanupWorkflowInput>;
|
|
1129
|
+
export declare const BlobStoreCleanupWorkflowOutput: MessageFns<BlobStoreCleanupWorkflowOutput>;
|
|
1130
|
+
export declare const InvokeWaitForMethodActivityInput: MessageFns<InvokeWaitForMethodActivityInput>;
|
|
1131
|
+
export declare const InvokeWaitForMethodActivityOutput: MessageFns<InvokeWaitForMethodActivityOutput>;
|
|
1132
|
+
export declare const InvokeExecuteMethodActivityInput: MessageFns<InvokeExecuteMethodActivityInput>;
|
|
1133
|
+
export declare const InvokeExecuteMethodActivityOutput: MessageFns<InvokeExecuteMethodActivityOutput>;
|
|
1134
|
+
export declare const DumpFlowForContinueAsNewActivityInput: MessageFns<DumpFlowForContinueAsNewActivityInput>;
|
|
1135
|
+
export declare const DumpFlowForContinueAsNewActivityOutput: MessageFns<DumpFlowForContinueAsNewActivityOutput>;
|
|
1136
|
+
export declare const InvokeWorkerRPCActivityInput: MessageFns<InvokeWorkerRPCActivityInput>;
|
|
1137
|
+
export declare const InvokeWorkerRPCActivityOutput: MessageFns<InvokeWorkerRPCActivityOutput>;
|
|
1138
|
+
export declare const CleanupBlobStoreActivityInput: MessageFns<CleanupBlobStoreActivityInput>;
|
|
1139
|
+
export declare const CleanupBlobStoreActivityOutput: MessageFns<CleanupBlobStoreActivityOutput>;
|
|
1140
|
+
export declare const ExecuteRpcSignalRequest: MessageFns<ExecuteRpcSignalRequest>;
|
|
1141
|
+
export declare const SkipTimerSignalRequest: MessageFns<SkipTimerSignalRequest>;
|
|
1142
|
+
export declare const FailFlowSignalRequest: MessageFns<FailFlowSignalRequest>;
|
|
1143
|
+
export declare const GetAttributesQueryRequest: MessageFns<GetAttributesQueryRequest>;
|
|
1144
|
+
export declare const GetAttributesQueryResponse: MessageFns<GetAttributesQueryResponse>;
|
|
1145
|
+
export declare const PrepareRpcQueryRequest: MessageFns<PrepareRpcQueryRequest>;
|
|
1146
|
+
export declare const PrepareRpcQueryResponse: MessageFns<PrepareRpcQueryResponse>;
|
|
1147
|
+
export declare const PrepareRpcQueryResponse_ChannelInfosEntry: MessageFns<PrepareRpcQueryResponse_ChannelInfosEntry>;
|
|
1148
|
+
export declare const TimerInfo: MessageFns<TimerInfo>;
|
|
1149
|
+
export declare const TimerInfoList: MessageFns<TimerInfoList>;
|
|
1150
|
+
export declare const GetCurrentTimerInfosQueryResponse: MessageFns<GetCurrentTimerInfosQueryResponse>;
|
|
1151
|
+
export declare const GetCurrentTimerInfosQueryResponse_StepExecutionCurrentTimerInfosEntry: MessageFns<GetCurrentTimerInfosQueryResponse_StepExecutionCurrentTimerInfosEntry>;
|
|
1152
|
+
export declare const GetScheduledGreedyTimerTimesQueryResponse: MessageFns<GetScheduledGreedyTimerTimesQueryResponse>;
|
|
1153
|
+
export declare const DebugDumpResponse: MessageFns<DebugDumpResponse>;
|
|
1154
|
+
export declare const InvokeRpcUpdateResult: MessageFns<InvokeRpcUpdateResult>;
|
|
1155
|
+
export declare const StepExecutionNumbers: MessageFns<StepExecutionNumbers>;
|
|
1156
|
+
/** Hosted by Dex server; SDKs call these RPCs. */
|
|
1157
|
+
export type FlowServiceService = typeof FlowServiceService;
|
|
1158
|
+
export declare const FlowServiceService: {
|
|
1159
|
+
readonly startFlow: {
|
|
1160
|
+
readonly path: "/dex.FlowService/StartFlow";
|
|
1161
|
+
readonly requestStream: false;
|
|
1162
|
+
readonly responseStream: false;
|
|
1163
|
+
readonly requestSerialize: (value: StartFlowRequest) => Buffer;
|
|
1164
|
+
readonly requestDeserialize: (value: Buffer) => StartFlowRequest;
|
|
1165
|
+
readonly responseSerialize: (value: StartFlowResponse) => Buffer;
|
|
1166
|
+
readonly responseDeserialize: (value: Buffer) => StartFlowResponse;
|
|
1167
|
+
};
|
|
1168
|
+
readonly publishToChannel: {
|
|
1169
|
+
readonly path: "/dex.FlowService/PublishToChannel";
|
|
1170
|
+
readonly requestStream: false;
|
|
1171
|
+
readonly responseStream: false;
|
|
1172
|
+
readonly requestSerialize: (value: PublishToChannelRequest) => Buffer;
|
|
1173
|
+
readonly requestDeserialize: (value: Buffer) => PublishToChannelRequest;
|
|
1174
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1175
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1176
|
+
};
|
|
1177
|
+
readonly stopFlow: {
|
|
1178
|
+
readonly path: "/dex.FlowService/StopFlow";
|
|
1179
|
+
readonly requestStream: false;
|
|
1180
|
+
readonly responseStream: false;
|
|
1181
|
+
readonly requestSerialize: (value: StopFlowRequest) => Buffer;
|
|
1182
|
+
readonly requestDeserialize: (value: Buffer) => StopFlowRequest;
|
|
1183
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1184
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1185
|
+
};
|
|
1186
|
+
readonly getAttributes: {
|
|
1187
|
+
readonly path: "/dex.FlowService/GetAttributes";
|
|
1188
|
+
readonly requestStream: false;
|
|
1189
|
+
readonly responseStream: false;
|
|
1190
|
+
readonly requestSerialize: (value: GetAttributesRequest) => Buffer;
|
|
1191
|
+
readonly requestDeserialize: (value: Buffer) => GetAttributesRequest;
|
|
1192
|
+
readonly responseSerialize: (value: GetAttributesResponse) => Buffer;
|
|
1193
|
+
readonly responseDeserialize: (value: Buffer) => GetAttributesResponse;
|
|
1194
|
+
};
|
|
1195
|
+
readonly setAttributes: {
|
|
1196
|
+
readonly path: "/dex.FlowService/SetAttributes";
|
|
1197
|
+
readonly requestStream: false;
|
|
1198
|
+
readonly responseStream: false;
|
|
1199
|
+
readonly requestSerialize: (value: SetAttributesRequest) => Buffer;
|
|
1200
|
+
readonly requestDeserialize: (value: Buffer) => SetAttributesRequest;
|
|
1201
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1202
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1203
|
+
};
|
|
1204
|
+
readonly loadBlobs: {
|
|
1205
|
+
readonly path: "/dex.FlowService/LoadBlobs";
|
|
1206
|
+
readonly requestStream: false;
|
|
1207
|
+
readonly responseStream: false;
|
|
1208
|
+
readonly requestSerialize: (value: LoadBlobsRequest) => Buffer;
|
|
1209
|
+
readonly requestDeserialize: (value: Buffer) => LoadBlobsRequest;
|
|
1210
|
+
readonly responseSerialize: (value: LoadBlobsResponse) => Buffer;
|
|
1211
|
+
readonly responseDeserialize: (value: Buffer) => LoadBlobsResponse;
|
|
1212
|
+
};
|
|
1213
|
+
readonly waitForFlow: {
|
|
1214
|
+
readonly path: "/dex.FlowService/WaitForFlow";
|
|
1215
|
+
readonly requestStream: false;
|
|
1216
|
+
readonly responseStream: false;
|
|
1217
|
+
readonly requestSerialize: (value: WaitForFlowRequest) => Buffer;
|
|
1218
|
+
readonly requestDeserialize: (value: Buffer) => WaitForFlowRequest;
|
|
1219
|
+
readonly responseSerialize: (value: WaitForFlowResponse) => Buffer;
|
|
1220
|
+
readonly responseDeserialize: (value: Buffer) => WaitForFlowResponse;
|
|
1221
|
+
};
|
|
1222
|
+
readonly searchFlows: {
|
|
1223
|
+
readonly path: "/dex.FlowService/SearchFlows";
|
|
1224
|
+
readonly requestStream: false;
|
|
1225
|
+
readonly responseStream: false;
|
|
1226
|
+
readonly requestSerialize: (value: SearchFlowsRequest) => Buffer;
|
|
1227
|
+
readonly requestDeserialize: (value: Buffer) => SearchFlowsRequest;
|
|
1228
|
+
readonly responseSerialize: (value: SearchFlowsResponse) => Buffer;
|
|
1229
|
+
readonly responseDeserialize: (value: Buffer) => SearchFlowsResponse;
|
|
1230
|
+
};
|
|
1231
|
+
readonly getFlowSummary: {
|
|
1232
|
+
readonly path: "/dex.FlowService/GetFlowSummary";
|
|
1233
|
+
readonly requestStream: false;
|
|
1234
|
+
readonly responseStream: false;
|
|
1235
|
+
readonly requestSerialize: (value: GetFlowSummaryRequest) => Buffer;
|
|
1236
|
+
readonly requestDeserialize: (value: Buffer) => GetFlowSummaryRequest;
|
|
1237
|
+
readonly responseSerialize: (value: GetFlowSummaryResponse) => Buffer;
|
|
1238
|
+
readonly responseDeserialize: (value: Buffer) => GetFlowSummaryResponse;
|
|
1239
|
+
};
|
|
1240
|
+
readonly getHistoryEvents: {
|
|
1241
|
+
readonly path: "/dex.FlowService/GetHistoryEvents";
|
|
1242
|
+
readonly requestStream: false;
|
|
1243
|
+
readonly responseStream: false;
|
|
1244
|
+
readonly requestSerialize: (value: GetHistoryEventsRequest) => Buffer;
|
|
1245
|
+
readonly requestDeserialize: (value: Buffer) => GetHistoryEventsRequest;
|
|
1246
|
+
readonly responseSerialize: (value: GetHistoryEventsResponse) => Buffer;
|
|
1247
|
+
readonly responseDeserialize: (value: Buffer) => GetHistoryEventsResponse;
|
|
1248
|
+
};
|
|
1249
|
+
readonly waitForHistoryEvent: {
|
|
1250
|
+
readonly path: "/dex.FlowService/WaitForHistoryEvent";
|
|
1251
|
+
readonly requestStream: false;
|
|
1252
|
+
readonly responseStream: false;
|
|
1253
|
+
readonly requestSerialize: (value: WaitForHistoryEventRequest) => Buffer;
|
|
1254
|
+
readonly requestDeserialize: (value: Buffer) => WaitForHistoryEventRequest;
|
|
1255
|
+
readonly responseSerialize: (value: WaitForHistoryEventResponse) => Buffer;
|
|
1256
|
+
readonly responseDeserialize: (value: Buffer) => WaitForHistoryEventResponse;
|
|
1257
|
+
};
|
|
1258
|
+
readonly getFlowState: {
|
|
1259
|
+
readonly path: "/dex.FlowService/GetFlowState";
|
|
1260
|
+
readonly requestStream: false;
|
|
1261
|
+
readonly responseStream: false;
|
|
1262
|
+
readonly requestSerialize: (value: GetFlowStateRequest) => Buffer;
|
|
1263
|
+
readonly requestDeserialize: (value: Buffer) => GetFlowStateRequest;
|
|
1264
|
+
readonly responseSerialize: (value: GetFlowStateResponse) => Buffer;
|
|
1265
|
+
readonly responseDeserialize: (value: Buffer) => GetFlowStateResponse;
|
|
1266
|
+
};
|
|
1267
|
+
readonly resetFlow: {
|
|
1268
|
+
readonly path: "/dex.FlowService/ResetFlow";
|
|
1269
|
+
readonly requestStream: false;
|
|
1270
|
+
readonly responseStream: false;
|
|
1271
|
+
readonly requestSerialize: (value: ResetFlowRequest) => Buffer;
|
|
1272
|
+
readonly requestDeserialize: (value: Buffer) => ResetFlowRequest;
|
|
1273
|
+
readonly responseSerialize: (value: ResetFlowResponse) => Buffer;
|
|
1274
|
+
readonly responseDeserialize: (value: Buffer) => ResetFlowResponse;
|
|
1275
|
+
};
|
|
1276
|
+
readonly invokeRpc: {
|
|
1277
|
+
readonly path: "/dex.FlowService/InvokeRPC";
|
|
1278
|
+
readonly requestStream: false;
|
|
1279
|
+
readonly responseStream: false;
|
|
1280
|
+
readonly requestSerialize: (value: InvokeRPCRequest) => Buffer;
|
|
1281
|
+
readonly requestDeserialize: (value: Buffer) => InvokeRPCRequest;
|
|
1282
|
+
readonly responseSerialize: (value: InvokeRPCResponse) => Buffer;
|
|
1283
|
+
readonly responseDeserialize: (value: Buffer) => InvokeRPCResponse;
|
|
1284
|
+
};
|
|
1285
|
+
readonly skipTimer: {
|
|
1286
|
+
readonly path: "/dex.FlowService/SkipTimer";
|
|
1287
|
+
readonly requestStream: false;
|
|
1288
|
+
readonly responseStream: false;
|
|
1289
|
+
readonly requestSerialize: (value: SkipTimerRequest) => Buffer;
|
|
1290
|
+
readonly requestDeserialize: (value: Buffer) => SkipTimerRequest;
|
|
1291
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1292
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1293
|
+
};
|
|
1294
|
+
readonly updateFlowConfig: {
|
|
1295
|
+
readonly path: "/dex.FlowService/UpdateFlowConfig";
|
|
1296
|
+
readonly requestStream: false;
|
|
1297
|
+
readonly responseStream: false;
|
|
1298
|
+
readonly requestSerialize: (value: UpdateFlowConfigRequest) => Buffer;
|
|
1299
|
+
readonly requestDeserialize: (value: Buffer) => UpdateFlowConfigRequest;
|
|
1300
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1301
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1302
|
+
};
|
|
1303
|
+
readonly waitForStepCompletion: {
|
|
1304
|
+
readonly path: "/dex.FlowService/WaitForStepCompletion";
|
|
1305
|
+
readonly requestStream: false;
|
|
1306
|
+
readonly responseStream: false;
|
|
1307
|
+
readonly requestSerialize: (value: WaitForStepCompletionRequest) => Buffer;
|
|
1308
|
+
readonly requestDeserialize: (value: Buffer) => WaitForStepCompletionRequest;
|
|
1309
|
+
readonly responseSerialize: (value: WaitForStepCompletionResponse) => Buffer;
|
|
1310
|
+
readonly responseDeserialize: (value: Buffer) => WaitForStepCompletionResponse;
|
|
1311
|
+
};
|
|
1312
|
+
readonly waitForAttribute: {
|
|
1313
|
+
readonly path: "/dex.FlowService/WaitForAttribute";
|
|
1314
|
+
readonly requestStream: false;
|
|
1315
|
+
readonly responseStream: false;
|
|
1316
|
+
readonly requestSerialize: (value: WaitForAttributeRequest) => Buffer;
|
|
1317
|
+
readonly requestDeserialize: (value: Buffer) => WaitForAttributeRequest;
|
|
1318
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1319
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1320
|
+
};
|
|
1321
|
+
readonly triggerContinueAsNew: {
|
|
1322
|
+
readonly path: "/dex.FlowService/TriggerContinueAsNew";
|
|
1323
|
+
readonly requestStream: false;
|
|
1324
|
+
readonly responseStream: false;
|
|
1325
|
+
readonly requestSerialize: (value: TriggerContinueAsNewRequest) => Buffer;
|
|
1326
|
+
readonly requestDeserialize: (value: Buffer) => TriggerContinueAsNewRequest;
|
|
1327
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1328
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1329
|
+
};
|
|
1330
|
+
readonly healthCheck: {
|
|
1331
|
+
readonly path: "/dex.FlowService/HealthCheck";
|
|
1332
|
+
readonly requestStream: false;
|
|
1333
|
+
readonly responseStream: false;
|
|
1334
|
+
readonly requestSerialize: (value: Empty) => Buffer;
|
|
1335
|
+
readonly requestDeserialize: (value: Buffer) => Empty;
|
|
1336
|
+
readonly responseSerialize: (value: HealthInfo) => Buffer;
|
|
1337
|
+
readonly responseDeserialize: (value: Buffer) => HealthInfo;
|
|
1338
|
+
};
|
|
1339
|
+
};
|
|
1340
|
+
export interface FlowServiceServer extends UntypedServiceImplementation {
|
|
1341
|
+
startFlow: handleUnaryCall<StartFlowRequest, StartFlowResponse>;
|
|
1342
|
+
publishToChannel: handleUnaryCall<PublishToChannelRequest, Empty>;
|
|
1343
|
+
stopFlow: handleUnaryCall<StopFlowRequest, Empty>;
|
|
1344
|
+
getAttributes: handleUnaryCall<GetAttributesRequest, GetAttributesResponse>;
|
|
1345
|
+
setAttributes: handleUnaryCall<SetAttributesRequest, Empty>;
|
|
1346
|
+
loadBlobs: handleUnaryCall<LoadBlobsRequest, LoadBlobsResponse>;
|
|
1347
|
+
waitForFlow: handleUnaryCall<WaitForFlowRequest, WaitForFlowResponse>;
|
|
1348
|
+
searchFlows: handleUnaryCall<SearchFlowsRequest, SearchFlowsResponse>;
|
|
1349
|
+
getFlowSummary: handleUnaryCall<GetFlowSummaryRequest, GetFlowSummaryResponse>;
|
|
1350
|
+
getHistoryEvents: handleUnaryCall<GetHistoryEventsRequest, GetHistoryEventsResponse>;
|
|
1351
|
+
waitForHistoryEvent: handleUnaryCall<WaitForHistoryEventRequest, WaitForHistoryEventResponse>;
|
|
1352
|
+
getFlowState: handleUnaryCall<GetFlowStateRequest, GetFlowStateResponse>;
|
|
1353
|
+
resetFlow: handleUnaryCall<ResetFlowRequest, ResetFlowResponse>;
|
|
1354
|
+
invokeRpc: handleUnaryCall<InvokeRPCRequest, InvokeRPCResponse>;
|
|
1355
|
+
skipTimer: handleUnaryCall<SkipTimerRequest, Empty>;
|
|
1356
|
+
updateFlowConfig: handleUnaryCall<UpdateFlowConfigRequest, Empty>;
|
|
1357
|
+
waitForStepCompletion: handleUnaryCall<WaitForStepCompletionRequest, WaitForStepCompletionResponse>;
|
|
1358
|
+
waitForAttribute: handleUnaryCall<WaitForAttributeRequest, Empty>;
|
|
1359
|
+
triggerContinueAsNew: handleUnaryCall<TriggerContinueAsNewRequest, Empty>;
|
|
1360
|
+
healthCheck: handleUnaryCall<Empty, HealthInfo>;
|
|
1361
|
+
}
|
|
1362
|
+
export interface FlowServiceClient extends Client {
|
|
1363
|
+
startFlow(request: StartFlowRequest, callback: (error: ServiceError | null, response: StartFlowResponse) => void): ClientUnaryCall;
|
|
1364
|
+
startFlow(request: StartFlowRequest, metadata: Metadata, callback: (error: ServiceError | null, response: StartFlowResponse) => void): ClientUnaryCall;
|
|
1365
|
+
startFlow(request: StartFlowRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: StartFlowResponse) => void): ClientUnaryCall;
|
|
1366
|
+
publishToChannel(request: PublishToChannelRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1367
|
+
publishToChannel(request: PublishToChannelRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1368
|
+
publishToChannel(request: PublishToChannelRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1369
|
+
stopFlow(request: StopFlowRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1370
|
+
stopFlow(request: StopFlowRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1371
|
+
stopFlow(request: StopFlowRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1372
|
+
getAttributes(request: GetAttributesRequest, callback: (error: ServiceError | null, response: GetAttributesResponse) => void): ClientUnaryCall;
|
|
1373
|
+
getAttributes(request: GetAttributesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetAttributesResponse) => void): ClientUnaryCall;
|
|
1374
|
+
getAttributes(request: GetAttributesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetAttributesResponse) => void): ClientUnaryCall;
|
|
1375
|
+
setAttributes(request: SetAttributesRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1376
|
+
setAttributes(request: SetAttributesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1377
|
+
setAttributes(request: SetAttributesRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1378
|
+
loadBlobs(request: LoadBlobsRequest, callback: (error: ServiceError | null, response: LoadBlobsResponse) => void): ClientUnaryCall;
|
|
1379
|
+
loadBlobs(request: LoadBlobsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: LoadBlobsResponse) => void): ClientUnaryCall;
|
|
1380
|
+
loadBlobs(request: LoadBlobsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: LoadBlobsResponse) => void): ClientUnaryCall;
|
|
1381
|
+
waitForFlow(request: WaitForFlowRequest, callback: (error: ServiceError | null, response: WaitForFlowResponse) => void): ClientUnaryCall;
|
|
1382
|
+
waitForFlow(request: WaitForFlowRequest, metadata: Metadata, callback: (error: ServiceError | null, response: WaitForFlowResponse) => void): ClientUnaryCall;
|
|
1383
|
+
waitForFlow(request: WaitForFlowRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: WaitForFlowResponse) => void): ClientUnaryCall;
|
|
1384
|
+
searchFlows(request: SearchFlowsRequest, callback: (error: ServiceError | null, response: SearchFlowsResponse) => void): ClientUnaryCall;
|
|
1385
|
+
searchFlows(request: SearchFlowsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: SearchFlowsResponse) => void): ClientUnaryCall;
|
|
1386
|
+
searchFlows(request: SearchFlowsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: SearchFlowsResponse) => void): ClientUnaryCall;
|
|
1387
|
+
getFlowSummary(request: GetFlowSummaryRequest, callback: (error: ServiceError | null, response: GetFlowSummaryResponse) => void): ClientUnaryCall;
|
|
1388
|
+
getFlowSummary(request: GetFlowSummaryRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetFlowSummaryResponse) => void): ClientUnaryCall;
|
|
1389
|
+
getFlowSummary(request: GetFlowSummaryRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetFlowSummaryResponse) => void): ClientUnaryCall;
|
|
1390
|
+
getHistoryEvents(request: GetHistoryEventsRequest, callback: (error: ServiceError | null, response: GetHistoryEventsResponse) => void): ClientUnaryCall;
|
|
1391
|
+
getHistoryEvents(request: GetHistoryEventsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetHistoryEventsResponse) => void): ClientUnaryCall;
|
|
1392
|
+
getHistoryEvents(request: GetHistoryEventsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetHistoryEventsResponse) => void): ClientUnaryCall;
|
|
1393
|
+
waitForHistoryEvent(request: WaitForHistoryEventRequest, callback: (error: ServiceError | null, response: WaitForHistoryEventResponse) => void): ClientUnaryCall;
|
|
1394
|
+
waitForHistoryEvent(request: WaitForHistoryEventRequest, metadata: Metadata, callback: (error: ServiceError | null, response: WaitForHistoryEventResponse) => void): ClientUnaryCall;
|
|
1395
|
+
waitForHistoryEvent(request: WaitForHistoryEventRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: WaitForHistoryEventResponse) => void): ClientUnaryCall;
|
|
1396
|
+
getFlowState(request: GetFlowStateRequest, callback: (error: ServiceError | null, response: GetFlowStateResponse) => void): ClientUnaryCall;
|
|
1397
|
+
getFlowState(request: GetFlowStateRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetFlowStateResponse) => void): ClientUnaryCall;
|
|
1398
|
+
getFlowState(request: GetFlowStateRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: GetFlowStateResponse) => void): ClientUnaryCall;
|
|
1399
|
+
resetFlow(request: ResetFlowRequest, callback: (error: ServiceError | null, response: ResetFlowResponse) => void): ClientUnaryCall;
|
|
1400
|
+
resetFlow(request: ResetFlowRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ResetFlowResponse) => void): ClientUnaryCall;
|
|
1401
|
+
resetFlow(request: ResetFlowRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ResetFlowResponse) => void): ClientUnaryCall;
|
|
1402
|
+
invokeRpc(request: InvokeRPCRequest, callback: (error: ServiceError | null, response: InvokeRPCResponse) => void): ClientUnaryCall;
|
|
1403
|
+
invokeRpc(request: InvokeRPCRequest, metadata: Metadata, callback: (error: ServiceError | null, response: InvokeRPCResponse) => void): ClientUnaryCall;
|
|
1404
|
+
invokeRpc(request: InvokeRPCRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: InvokeRPCResponse) => void): ClientUnaryCall;
|
|
1405
|
+
skipTimer(request: SkipTimerRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1406
|
+
skipTimer(request: SkipTimerRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1407
|
+
skipTimer(request: SkipTimerRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1408
|
+
updateFlowConfig(request: UpdateFlowConfigRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1409
|
+
updateFlowConfig(request: UpdateFlowConfigRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1410
|
+
updateFlowConfig(request: UpdateFlowConfigRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1411
|
+
waitForStepCompletion(request: WaitForStepCompletionRequest, callback: (error: ServiceError | null, response: WaitForStepCompletionResponse) => void): ClientUnaryCall;
|
|
1412
|
+
waitForStepCompletion(request: WaitForStepCompletionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: WaitForStepCompletionResponse) => void): ClientUnaryCall;
|
|
1413
|
+
waitForStepCompletion(request: WaitForStepCompletionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: WaitForStepCompletionResponse) => void): ClientUnaryCall;
|
|
1414
|
+
waitForAttribute(request: WaitForAttributeRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1415
|
+
waitForAttribute(request: WaitForAttributeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1416
|
+
waitForAttribute(request: WaitForAttributeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1417
|
+
triggerContinueAsNew(request: TriggerContinueAsNewRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1418
|
+
triggerContinueAsNew(request: TriggerContinueAsNewRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1419
|
+
triggerContinueAsNew(request: TriggerContinueAsNewRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1420
|
+
healthCheck(request: Empty, callback: (error: ServiceError | null, response: HealthInfo) => void): ClientUnaryCall;
|
|
1421
|
+
healthCheck(request: Empty, metadata: Metadata, callback: (error: ServiceError | null, response: HealthInfo) => void): ClientUnaryCall;
|
|
1422
|
+
healthCheck(request: Empty, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: HealthInfo) => void): ClientUnaryCall;
|
|
1423
|
+
}
|
|
1424
|
+
export declare const FlowServiceClient: {
|
|
1425
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): FlowServiceClient;
|
|
1426
|
+
service: typeof FlowServiceService;
|
|
1427
|
+
serviceName: string;
|
|
1428
|
+
};
|
|
1429
|
+
/** Hosted by Dex worker; server calls these RPCs. */
|
|
1430
|
+
export type WorkerServiceService = typeof WorkerServiceService;
|
|
1431
|
+
export declare const WorkerServiceService: {
|
|
1432
|
+
readonly invokeWaitForMethod: {
|
|
1433
|
+
readonly path: "/dex.WorkerService/InvokeWaitForMethod";
|
|
1434
|
+
readonly requestStream: false;
|
|
1435
|
+
readonly responseStream: false;
|
|
1436
|
+
readonly requestSerialize: (value: InvokeWaitForMethodRequest) => Buffer;
|
|
1437
|
+
readonly requestDeserialize: (value: Buffer) => InvokeWaitForMethodRequest;
|
|
1438
|
+
readonly responseSerialize: (value: InvokeWaitForMethodResponse) => Buffer;
|
|
1439
|
+
readonly responseDeserialize: (value: Buffer) => InvokeWaitForMethodResponse;
|
|
1440
|
+
};
|
|
1441
|
+
readonly invokeExecuteMethod: {
|
|
1442
|
+
readonly path: "/dex.WorkerService/InvokeExecuteMethod";
|
|
1443
|
+
readonly requestStream: false;
|
|
1444
|
+
readonly responseStream: false;
|
|
1445
|
+
readonly requestSerialize: (value: InvokeExecuteMethodRequest) => Buffer;
|
|
1446
|
+
readonly requestDeserialize: (value: Buffer) => InvokeExecuteMethodRequest;
|
|
1447
|
+
readonly responseSerialize: (value: InvokeExecuteMethodResponse) => Buffer;
|
|
1448
|
+
readonly responseDeserialize: (value: Buffer) => InvokeExecuteMethodResponse;
|
|
1449
|
+
};
|
|
1450
|
+
readonly invokeWorkerRpc: {
|
|
1451
|
+
readonly path: "/dex.WorkerService/InvokeWorkerRPC";
|
|
1452
|
+
readonly requestStream: false;
|
|
1453
|
+
readonly responseStream: false;
|
|
1454
|
+
readonly requestSerialize: (value: InvokeWorkerRPCRequest) => Buffer;
|
|
1455
|
+
readonly requestDeserialize: (value: Buffer) => InvokeWorkerRPCRequest;
|
|
1456
|
+
readonly responseSerialize: (value: InvokeWorkerRPCResponse) => Buffer;
|
|
1457
|
+
readonly responseDeserialize: (value: Buffer) => InvokeWorkerRPCResponse;
|
|
1458
|
+
};
|
|
1459
|
+
};
|
|
1460
|
+
export interface WorkerServiceServer extends UntypedServiceImplementation {
|
|
1461
|
+
invokeWaitForMethod: handleUnaryCall<InvokeWaitForMethodRequest, InvokeWaitForMethodResponse>;
|
|
1462
|
+
invokeExecuteMethod: handleUnaryCall<InvokeExecuteMethodRequest, InvokeExecuteMethodResponse>;
|
|
1463
|
+
invokeWorkerRpc: handleUnaryCall<InvokeWorkerRPCRequest, InvokeWorkerRPCResponse>;
|
|
1464
|
+
}
|
|
1465
|
+
export interface WorkerServiceClient extends Client {
|
|
1466
|
+
invokeWaitForMethod(request: InvokeWaitForMethodRequest, callback: (error: ServiceError | null, response: InvokeWaitForMethodResponse) => void): ClientUnaryCall;
|
|
1467
|
+
invokeWaitForMethod(request: InvokeWaitForMethodRequest, metadata: Metadata, callback: (error: ServiceError | null, response: InvokeWaitForMethodResponse) => void): ClientUnaryCall;
|
|
1468
|
+
invokeWaitForMethod(request: InvokeWaitForMethodRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: InvokeWaitForMethodResponse) => void): ClientUnaryCall;
|
|
1469
|
+
invokeExecuteMethod(request: InvokeExecuteMethodRequest, callback: (error: ServiceError | null, response: InvokeExecuteMethodResponse) => void): ClientUnaryCall;
|
|
1470
|
+
invokeExecuteMethod(request: InvokeExecuteMethodRequest, metadata: Metadata, callback: (error: ServiceError | null, response: InvokeExecuteMethodResponse) => void): ClientUnaryCall;
|
|
1471
|
+
invokeExecuteMethod(request: InvokeExecuteMethodRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: InvokeExecuteMethodResponse) => void): ClientUnaryCall;
|
|
1472
|
+
invokeWorkerRpc(request: InvokeWorkerRPCRequest, callback: (error: ServiceError | null, response: InvokeWorkerRPCResponse) => void): ClientUnaryCall;
|
|
1473
|
+
invokeWorkerRpc(request: InvokeWorkerRPCRequest, metadata: Metadata, callback: (error: ServiceError | null, response: InvokeWorkerRPCResponse) => void): ClientUnaryCall;
|
|
1474
|
+
invokeWorkerRpc(request: InvokeWorkerRPCRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: InvokeWorkerRPCResponse) => void): ClientUnaryCall;
|
|
1475
|
+
}
|
|
1476
|
+
export declare const WorkerServiceClient: {
|
|
1477
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): WorkerServiceClient;
|
|
1478
|
+
service: typeof WorkerServiceService;
|
|
1479
|
+
serviceName: string;
|
|
1480
|
+
};
|
|
1481
|
+
/** Server-internal only (interpreter CAN activity → API). Not SDK-facing. */
|
|
1482
|
+
export type InternalServiceService = typeof InternalServiceService;
|
|
1483
|
+
export declare const InternalServiceService: {
|
|
1484
|
+
readonly dumpFlowForContinueAsNew: {
|
|
1485
|
+
readonly path: "/dex.InternalService/DumpFlowForContinueAsNew";
|
|
1486
|
+
readonly requestStream: false;
|
|
1487
|
+
readonly responseStream: false;
|
|
1488
|
+
readonly requestSerialize: (value: ContinueAsNewDumpRequest) => Buffer;
|
|
1489
|
+
readonly requestDeserialize: (value: Buffer) => ContinueAsNewDumpRequest;
|
|
1490
|
+
readonly responseSerialize: (value: ContinueAsNewDumpResponse) => Buffer;
|
|
1491
|
+
readonly responseDeserialize: (value: Buffer) => ContinueAsNewDumpResponse;
|
|
1492
|
+
};
|
|
1493
|
+
};
|
|
1494
|
+
export interface InternalServiceServer extends UntypedServiceImplementation {
|
|
1495
|
+
dumpFlowForContinueAsNew: handleUnaryCall<ContinueAsNewDumpRequest, ContinueAsNewDumpResponse>;
|
|
1496
|
+
}
|
|
1497
|
+
export interface InternalServiceClient extends Client {
|
|
1498
|
+
dumpFlowForContinueAsNew(request: ContinueAsNewDumpRequest, callback: (error: ServiceError | null, response: ContinueAsNewDumpResponse) => void): ClientUnaryCall;
|
|
1499
|
+
dumpFlowForContinueAsNew(request: ContinueAsNewDumpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ContinueAsNewDumpResponse) => void): ClientUnaryCall;
|
|
1500
|
+
dumpFlowForContinueAsNew(request: ContinueAsNewDumpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ContinueAsNewDumpResponse) => void): ClientUnaryCall;
|
|
1501
|
+
}
|
|
1502
|
+
export declare const InternalServiceClient: {
|
|
1503
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): InternalServiceClient;
|
|
1504
|
+
service: typeof InternalServiceService;
|
|
1505
|
+
serviceName: string;
|
|
1506
|
+
};
|
|
1507
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
|
|
1508
|
+
export type DeepPartial<T> = T extends bigint ? string | number | bigint : T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
1509
|
+
$case: string;
|
|
1510
|
+
value: unknown;
|
|
1511
|
+
} ? {
|
|
1512
|
+
$case: T["$case"];
|
|
1513
|
+
value?: DeepPartial<T["value"]>;
|
|
1514
|
+
} : T extends {} ? {
|
|
1515
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
1516
|
+
} : Partial<T>;
|
|
1517
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
1518
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
1519
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
1520
|
+
} & {
|
|
1521
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
1522
|
+
};
|
|
1523
|
+
export interface MessageFns<T> {
|
|
1524
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
1525
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
1526
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
1527
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
1528
|
+
}
|
|
1529
|
+
export {};
|