@superdurable/dex 1.15.0 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -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 +159 -17
- package/dist/src/gen/dex.js +175 -9
- 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 +28 -2
- package/dist/src/options.js.map +1 -1
- package/dist/src/pull-worker.d.ts +1 -0
- package/dist/src/pull-worker.js +13 -3
- 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/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.d.ts
CHANGED
|
@@ -4,6 +4,24 @@ import { Duration } from "./google/protobuf/duration.js";
|
|
|
4
4
|
import { Empty } from "./google/protobuf/empty.js";
|
|
5
5
|
import { NullValue } from "./google/protobuf/struct.js";
|
|
6
6
|
export declare const protobufPackage = "dex";
|
|
7
|
+
/**
|
|
8
|
+
* Identifies the engine behind a Dex Server. Clients use it only to adapt behavior that differs
|
|
9
|
+
* between engines.
|
|
10
|
+
*/
|
|
11
|
+
export declare enum ServerEngine {
|
|
12
|
+
/**
|
|
13
|
+
* SERVER_ENGINE_UNSPECIFIED - The Server does not report its engine. Servers released before this field existed are the
|
|
14
|
+
* Go Server on Temporal or Cadence.
|
|
15
|
+
*/
|
|
16
|
+
SERVER_ENGINE_UNSPECIFIED = 0,
|
|
17
|
+
/** SERVER_ENGINE_TEMPORAL - The Go Server running on Temporal. */
|
|
18
|
+
SERVER_ENGINE_TEMPORAL = 1,
|
|
19
|
+
/** SERVER_ENGINE_CADENCE - The Go Server running on Cadence. */
|
|
20
|
+
SERVER_ENGINE_CADENCE = 2,
|
|
21
|
+
/** SERVER_ENGINE_ZD - server-zd: the zero-dependency Server that keeps all state in object storage. */
|
|
22
|
+
SERVER_ENGINE_ZD = 3,
|
|
23
|
+
UNRECOGNIZED = -1
|
|
24
|
+
}
|
|
7
25
|
/** Explains why a Worker declined a task. */
|
|
8
26
|
export declare enum PollWorkerTaskRejectReason {
|
|
9
27
|
/** POLL_WORKER_TASK_REJECT_REASON_UNSPECIFIED - No rejection reason was supplied. */
|
|
@@ -16,7 +34,10 @@ export declare enum PollWorkerTaskRejectReason {
|
|
|
16
34
|
POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_RPC = 3,
|
|
17
35
|
UNRECOGNIZED = -1
|
|
18
36
|
}
|
|
19
|
-
/**
|
|
37
|
+
/**
|
|
38
|
+
* Distinguishes no available Worker, a disconnected Worker, and a missing Step or RPC registration.
|
|
39
|
+
* Go Server internals; server-zd does not serve or persist them.
|
|
40
|
+
*/
|
|
20
41
|
export declare enum DispatchTaskErrorReason {
|
|
21
42
|
DISPATCH_TASK_ERROR_REASON_UNSPECIFIED = 0,
|
|
22
43
|
DISPATCH_TASK_ERROR_REASON_NO_WORKER_AVAILABLE = 1,
|
|
@@ -41,12 +62,20 @@ export declare enum IndexType {
|
|
|
41
62
|
export declare enum WaitForMethodFailurePolicy {
|
|
42
63
|
WAIT_FOR_METHOD_FAILURE_POLICY_UNSPECIFIED = 0,
|
|
43
64
|
WAIT_FOR_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_FAILURE = 1,
|
|
65
|
+
/**
|
|
66
|
+
* WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE - server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
|
|
67
|
+
* A Step decision that uses it fails the attempt without retry.
|
|
68
|
+
*/
|
|
44
69
|
WAIT_FOR_METHOD_FAILURE_POLICY_PROCEED_ON_FAILURE = 2,
|
|
45
70
|
UNRECOGNIZED = -1
|
|
46
71
|
}
|
|
47
72
|
export declare enum ExecuteMethodFailurePolicy {
|
|
48
73
|
EXECUTE_METHOD_FAILURE_POLICY_UNSPECIFIED = 0,
|
|
49
74
|
EXECUTE_METHOD_FAILURE_POLICY_FAIL_FLOW_ON_EXECUTE_METHOD_FAILURE = 1,
|
|
75
|
+
/**
|
|
76
|
+
* EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP - server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
|
|
77
|
+
* A Step decision that uses it fails the attempt without retry.
|
|
78
|
+
*/
|
|
50
79
|
EXECUTE_METHOD_FAILURE_POLICY_PROCEED_TO_CONFIGURED_STEP = 2,
|
|
51
80
|
UNRECOGNIZED = -1
|
|
52
81
|
}
|
|
@@ -65,7 +94,10 @@ export declare enum ActiveStepSearchMode {
|
|
|
65
94
|
ACTIVE_STEP_SEARCH_MODE_DISABLED = 3,
|
|
66
95
|
UNRECOGNIZED = -1
|
|
67
96
|
}
|
|
68
|
-
/**
|
|
97
|
+
/**
|
|
98
|
+
* Was optimize_activity: false=SYNC, true=ASYNC. Timer is always optimized by the server.
|
|
99
|
+
* On server-zd both durabilities record the same events. ASYNC advances without waiting for the commit; there is no local phase.
|
|
100
|
+
*/
|
|
69
101
|
export declare enum StepDurability {
|
|
70
102
|
STEP_DURABILITY_UNSPECIFIED = 0,
|
|
71
103
|
STEP_DURABILITY_SYNC = 1,
|
|
@@ -91,10 +123,14 @@ export declare enum FlowStatus {
|
|
|
91
123
|
FLOW_STATUS_RUNNING = 1,
|
|
92
124
|
FLOW_STATUS_COMPLETED = 2,
|
|
93
125
|
FLOW_STATUS_FAILED = 3,
|
|
94
|
-
/**
|
|
126
|
+
/**
|
|
127
|
+
* FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY - Reserved for reporting a backend hard timeout; applications must not depend on this status.
|
|
128
|
+
* server-zd never returns this status.
|
|
129
|
+
*/
|
|
95
130
|
FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY = 4,
|
|
96
131
|
FLOW_STATUS_TERMINATED = 5,
|
|
97
132
|
FLOW_STATUS_CANCELED = 6,
|
|
133
|
+
/** FLOW_STATUS_CONTINUED_AS_NEW - server-zd never returns this status. */
|
|
98
134
|
FLOW_STATUS_CONTINUED_AS_NEW = 7,
|
|
99
135
|
UNRECOGNIZED = -1
|
|
100
136
|
}
|
|
@@ -110,7 +146,10 @@ export declare enum FlowErrorType {
|
|
|
110
146
|
FLOW_ERROR_TYPE_INTERNAL = 6,
|
|
111
147
|
UNRECOGNIZED = -1
|
|
112
148
|
}
|
|
113
|
-
/**
|
|
149
|
+
/**
|
|
150
|
+
* PendingStepMethodPhase reports the latest persisted backend lifecycle event.
|
|
151
|
+
* On server-zd, SCHEDULED waits for locks or dispatch. STARTED means an attempt is running.
|
|
152
|
+
*/
|
|
114
153
|
export declare enum PendingStepMethodPhase {
|
|
115
154
|
PENDING_STEP_METHOD_PHASE_UNSPECIFIED = 0,
|
|
116
155
|
PENDING_STEP_METHOD_PHASE_SCHEDULED = 1,
|
|
@@ -225,6 +264,8 @@ export interface ServerInfo {
|
|
|
225
264
|
minimumSupportedProtocolVersion: number;
|
|
226
265
|
/** Newest protocol version implemented by this Server. */
|
|
227
266
|
currentProtocolVersion: number;
|
|
267
|
+
/** The engine behind this Server. */
|
|
268
|
+
serverEngine: ServerEngine;
|
|
228
269
|
}
|
|
229
270
|
/** Carries one Worker frame on a pull stream. Register must be the first frame. */
|
|
230
271
|
export interface PollWorkerTaskRequest {
|
|
@@ -369,7 +410,10 @@ export interface PollWorkerTaskReconnect {
|
|
|
369
410
|
/** Checks that an idle pull stream remains responsive. */
|
|
370
411
|
export interface PollWorkerTaskPing {
|
|
371
412
|
}
|
|
372
|
-
/**
|
|
413
|
+
/**
|
|
414
|
+
* Describes one task dispatched to a Dex task queue.
|
|
415
|
+
* Go Server internals; server-zd does not serve or persist them.
|
|
416
|
+
*/
|
|
373
417
|
export interface DispatchTaskRequest {
|
|
374
418
|
/** Selects the initial queue: a sticky Worker ID or a Flow type. */
|
|
375
419
|
queue: string;
|
|
@@ -406,7 +450,10 @@ export interface DispatchTaskRequest {
|
|
|
406
450
|
/** Allows matching to return UNKNOWN_NAME after a Worker rejects an unknown Step type or RPC name. */
|
|
407
451
|
supportsUnknownNameError: boolean;
|
|
408
452
|
}
|
|
409
|
-
/**
|
|
453
|
+
/**
|
|
454
|
+
* Reports assignment changes, relays Worker output, then ends with a result, Worker error, or dispatch error.
|
|
455
|
+
* Go Server internals; server-zd does not serve or persist them.
|
|
456
|
+
*/
|
|
410
457
|
export interface DispatchTaskResponse {
|
|
411
458
|
output: {
|
|
412
459
|
$case: "waitFor";
|
|
@@ -439,19 +486,28 @@ export interface DispatchTaskResponse {
|
|
|
439
486
|
/** Identifies a Worker that rejected the task's Step type or RPC name. */
|
|
440
487
|
rejectedByAppWorkerId: string;
|
|
441
488
|
}
|
|
442
|
-
/**
|
|
489
|
+
/**
|
|
490
|
+
* Reports a failure before Dex receives a Worker result.
|
|
491
|
+
* Go Server internals; server-zd does not serve or persist them.
|
|
492
|
+
*/
|
|
443
493
|
export interface DispatchTaskError {
|
|
444
494
|
reason: DispatchTaskErrorReason;
|
|
445
495
|
detail: string;
|
|
446
496
|
}
|
|
447
497
|
export interface Value {
|
|
448
498
|
kind: //
|
|
449
|
-
/**
|
|
499
|
+
/**
|
|
500
|
+
* Hydrate from blob storage, then replace with string_value.
|
|
501
|
+
* The Server chooses this reference text; clients must treat it as opaque.
|
|
502
|
+
*/
|
|
450
503
|
{
|
|
451
504
|
$case: "internalBlobIdForStringValue";
|
|
452
505
|
value: string;
|
|
453
506
|
} | //
|
|
454
|
-
/**
|
|
507
|
+
/**
|
|
508
|
+
* Hydrate from blob storage, then replace with obj_value.
|
|
509
|
+
* The Server chooses this reference text; clients must treat it as opaque.
|
|
510
|
+
*/
|
|
455
511
|
{
|
|
456
512
|
$case: "internalBlobIdForObjValue";
|
|
457
513
|
value: string;
|
|
@@ -532,7 +588,14 @@ export interface Context {
|
|
|
532
588
|
/** Previous Step method failure supplied only to its configured recovery method. */
|
|
533
589
|
recoveryError: RecoveryErrorInfo | undefined;
|
|
534
590
|
lastHeartbeatValue: Value | undefined;
|
|
591
|
+
/**
|
|
592
|
+
* server-zd only: the run attempt that dispatched this invocation. It starts at 1 and
|
|
593
|
+
* increases on each time travel. On server-zd, run_id stays the same across run attempts,
|
|
594
|
+
* so combine both when an idempotency key must change after time travel.
|
|
595
|
+
*/
|
|
596
|
+
runAttempt: number;
|
|
535
597
|
}
|
|
598
|
+
/** server-zd never sets this. */
|
|
536
599
|
export interface LocalActivityMetadata {
|
|
537
600
|
currentStepExecutionId: string;
|
|
538
601
|
fromStepExecutionId: string;
|
|
@@ -544,6 +607,7 @@ export interface RetryPolicy {
|
|
|
544
607
|
maximumAttempts: number;
|
|
545
608
|
totalDurationSeconds: number;
|
|
546
609
|
}
|
|
610
|
+
/** server-zd does not support Flow retry and rejects a set policy with INVALID_ARGUMENT. */
|
|
547
611
|
export interface FlowRetryPolicy {
|
|
548
612
|
initialIntervalSeconds: number;
|
|
549
613
|
backoffCoefficient: number;
|
|
@@ -557,7 +621,15 @@ export interface StepOptions {
|
|
|
557
621
|
executeRetryPolicy: RetryPolicy | undefined;
|
|
558
622
|
waitForFailurePolicy: WaitForMethodFailurePolicy;
|
|
559
623
|
executeFailurePolicy: ExecuteMethodFailurePolicy;
|
|
624
|
+
/**
|
|
625
|
+
* server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
|
|
626
|
+
* A Step decision that uses it fails the attempt without retry.
|
|
627
|
+
*/
|
|
560
628
|
executeFailureProceedStepType: string;
|
|
629
|
+
/**
|
|
630
|
+
* server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
|
|
631
|
+
* A Step decision that uses it fails the attempt without retry.
|
|
632
|
+
*/
|
|
561
633
|
executeFailureProceedStepOptions: StepOptions | undefined;
|
|
562
634
|
skipWaitFor: boolean;
|
|
563
635
|
waitForDurabilityOverride: StepDurability;
|
|
@@ -577,7 +649,15 @@ export interface FlowTimeoutHandlerOptions {
|
|
|
577
649
|
heartbeatTimeoutSeconds: number;
|
|
578
650
|
retryPolicy: RetryPolicy | undefined;
|
|
579
651
|
failurePolicy: ExecuteMethodFailurePolicy;
|
|
652
|
+
/**
|
|
653
|
+
* server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
|
|
654
|
+
* A Step decision that uses it fails the attempt without retry.
|
|
655
|
+
*/
|
|
580
656
|
failureProceedStepType: string;
|
|
657
|
+
/**
|
|
658
|
+
* server-zd does not support this yet. StartFlow and SubFlow reject it with INVALID_ARGUMENT.
|
|
659
|
+
* A Step decision that uses it fails the attempt without retry.
|
|
660
|
+
*/
|
|
581
661
|
failureProceedStepOptions: StepOptions | undefined;
|
|
582
662
|
durabilityOverride: StepDurability;
|
|
583
663
|
lockAttributeKeys: string[];
|
|
@@ -590,7 +670,9 @@ export interface FlowAlreadyStartedOptions {
|
|
|
590
670
|
}
|
|
591
671
|
export interface FlowStartOptions {
|
|
592
672
|
idReusePolicy: IdReusePolicy;
|
|
673
|
+
/** server-zd rejects a positive start delay with INVALID_ARGUMENT. */
|
|
593
674
|
flowStartDelaySeconds: number;
|
|
675
|
+
/** server-zd rejects a set policy with INVALID_ARGUMENT. */
|
|
594
676
|
retryPolicy: FlowRetryPolicy | undefined;
|
|
595
677
|
attributes: AttributeWrite[];
|
|
596
678
|
flowConfigOverride: FlowConfig | undefined;
|
|
@@ -599,7 +681,9 @@ export interface FlowStartOptions {
|
|
|
599
681
|
}
|
|
600
682
|
export interface FlowConfig {
|
|
601
683
|
activeStepSearchMode?: ActiveStepSearchMode | undefined;
|
|
684
|
+
/** server-zd ignores this field. */
|
|
602
685
|
continueAsNewThreshold?: number | undefined;
|
|
686
|
+
/** server-zd ignores this field. */
|
|
603
687
|
continueAsNewPageSizeInBytes?: number | undefined;
|
|
604
688
|
stepDurability?: StepDurability | undefined;
|
|
605
689
|
workerTarget: WorkerTarget | undefined;
|
|
@@ -610,8 +694,12 @@ export interface AttributeStoreNames {
|
|
|
610
694
|
names: string[];
|
|
611
695
|
}
|
|
612
696
|
export interface WorkerTarget {
|
|
613
|
-
/**
|
|
697
|
+
/**
|
|
698
|
+
* Plaintext gRPC dial target, not an HTTP URL.
|
|
699
|
+
* server-zd accepts only is_pull_mode and rejects address targets with INVALID_ARGUMENT.
|
|
700
|
+
*/
|
|
614
701
|
address: string;
|
|
702
|
+
/** server-zd accepts only is_pull_mode and rejects address targets with INVALID_ARGUMENT. */
|
|
615
703
|
isHeadlessAddress: boolean;
|
|
616
704
|
/** Routes work through a connected pull Worker; mutually exclusive with address. */
|
|
617
705
|
isPullMode: boolean;
|
|
@@ -758,6 +846,7 @@ export interface SearchFlowsRequest {
|
|
|
758
846
|
query: string;
|
|
759
847
|
pageSize: number;
|
|
760
848
|
nextPageToken: string;
|
|
849
|
+
/** server-zd ignores this field. */
|
|
761
850
|
includeContinuedAsNew: boolean;
|
|
762
851
|
}
|
|
763
852
|
export interface SearchFlowsResponse {
|
|
@@ -794,12 +883,15 @@ export interface GetFlowSummaryRequest {
|
|
|
794
883
|
}
|
|
795
884
|
export interface GetFlowSummaryResponse {
|
|
796
885
|
flowExecutionId: FlowExecutionID | undefined;
|
|
886
|
+
/** On server-zd this always equals run_id. */
|
|
797
887
|
firstRunId: string;
|
|
798
888
|
requestId: string;
|
|
799
889
|
flowType: string;
|
|
800
890
|
flowStatus: FlowStatus;
|
|
801
891
|
startTime: Date | undefined;
|
|
802
892
|
closeTime: Date | undefined;
|
|
893
|
+
/** server-zd only: the current run attempt of this run. */
|
|
894
|
+
runAttempt: number;
|
|
803
895
|
}
|
|
804
896
|
export interface InternalAsyncStepInputSnapshot {
|
|
805
897
|
methodOptions: StepMethodOptions | undefined;
|
|
@@ -821,6 +913,11 @@ export interface GetHistoryEventsRequest {
|
|
|
821
913
|
startInternalEventId: bigint;
|
|
822
914
|
estimatePageSize: number;
|
|
823
915
|
nextPageToken: Uint8Array;
|
|
916
|
+
/**
|
|
917
|
+
* server-zd only: selects the run attempt whose lineage is returned. Zero selects the current
|
|
918
|
+
* run attempt.
|
|
919
|
+
*/
|
|
920
|
+
runAttempt: number;
|
|
824
921
|
}
|
|
825
922
|
export interface GetHistoryEventsResponse {
|
|
826
923
|
events: FlowHistoryEvent[];
|
|
@@ -830,6 +927,8 @@ export interface GetHistoryEventsResponse {
|
|
|
830
927
|
export interface FlowHistoryEvent {
|
|
831
928
|
eventId: bigint;
|
|
832
929
|
eventTime: Date | undefined;
|
|
930
|
+
/** server-zd only: the run attempt that recorded this event. */
|
|
931
|
+
runAttempt: number;
|
|
833
932
|
payload: {
|
|
834
933
|
$case: "flowStartedOrContinued";
|
|
835
934
|
value: FlowStartedOrContinuedHistoryEvent;
|
|
@@ -872,6 +971,12 @@ export interface FlowHistoryEvent {
|
|
|
872
971
|
export interface TimeTravelForkHistoryEvent {
|
|
873
972
|
/** Previous run containing the original history branch. */
|
|
874
973
|
previousRunId: string;
|
|
974
|
+
/** server-zd only: the run attempt that was current before this time travel. */
|
|
975
|
+
previousRunAttempt: number;
|
|
976
|
+
/** server-zd only: the run attempt of the point this time travel returned to. */
|
|
977
|
+
targetRunAttempt: number;
|
|
978
|
+
/** server-zd only: the event ID of the point this time travel returned to. */
|
|
979
|
+
targetEventId: bigint;
|
|
875
980
|
}
|
|
876
981
|
export interface FlowStartedOrContinuedHistoryEvent {
|
|
877
982
|
flowExecutionId: FlowExecutionID | undefined;
|
|
@@ -883,7 +988,9 @@ export interface FlowStartedOrContinuedHistoryEvent {
|
|
|
883
988
|
startOrContinue: {
|
|
884
989
|
$case: "initialStart";
|
|
885
990
|
value: FlowInitialStart;
|
|
886
|
-
} |
|
|
991
|
+
} | //
|
|
992
|
+
/** server-zd never sets this. */
|
|
993
|
+
{
|
|
887
994
|
$case: "continuedStart";
|
|
888
995
|
value: FlowContinuedStart;
|
|
889
996
|
} | undefined;
|
|
@@ -894,6 +1001,7 @@ export interface FlowInitialStart {
|
|
|
894
1001
|
stepOptions: StepOptions | undefined;
|
|
895
1002
|
initialAttributes: KV[];
|
|
896
1003
|
}
|
|
1004
|
+
/** server-zd never sets this. */
|
|
897
1005
|
export interface FlowContinuedStart {
|
|
898
1006
|
previousRunId: string;
|
|
899
1007
|
stepsToStart: StepMovement[];
|
|
@@ -914,6 +1022,7 @@ export interface FlowClosedHistoryEvent {
|
|
|
914
1022
|
results: StepCompletionOutput[];
|
|
915
1023
|
errorType: FlowErrorType;
|
|
916
1024
|
errorMessage: string;
|
|
1025
|
+
/** server-zd never sets this. */
|
|
917
1026
|
continuedToRunId: string;
|
|
918
1027
|
stickyAppWorkerId: string;
|
|
919
1028
|
}
|
|
@@ -1073,9 +1182,16 @@ export interface ResetFlowRequest {
|
|
|
1073
1182
|
/** Skips reapplying RPCs, Channel publications, and Attribute writes after the reset point. */
|
|
1074
1183
|
skipWritesReapply: boolean;
|
|
1075
1184
|
stepMethod: FlowResetStepMethod;
|
|
1185
|
+
/**
|
|
1186
|
+
* server-zd only: selects the run attempt whose history is searched for the reset point.
|
|
1187
|
+
* Zero selects the current run attempt.
|
|
1188
|
+
*/
|
|
1189
|
+
runAttempt: number;
|
|
1076
1190
|
}
|
|
1077
1191
|
export interface ResetFlowResponse {
|
|
1078
1192
|
runId: string;
|
|
1193
|
+
/** server-zd only: the run attempt created by this time travel. run_id does not change there. */
|
|
1194
|
+
runAttempt: number;
|
|
1079
1195
|
}
|
|
1080
1196
|
export interface InvokeRPCRequest {
|
|
1081
1197
|
flowId: string;
|
|
@@ -1089,7 +1205,10 @@ export interface InvokeRPCRequest {
|
|
|
1089
1205
|
* read-modify-write. Empty means no locking and uses the configured RPC path.
|
|
1090
1206
|
*/
|
|
1091
1207
|
lockAttributeKeys: string[];
|
|
1092
|
-
/**
|
|
1208
|
+
/**
|
|
1209
|
+
* Per-call UUID, SDK-generated and future-overridable; identical retries reuse it. Temporal Update paths use it as the run-scoped Update ID; Continue-as-New resets scope.
|
|
1210
|
+
* server-zd deduplicates it for the whole run.
|
|
1211
|
+
*/
|
|
1093
1212
|
requestId: string;
|
|
1094
1213
|
/**
|
|
1095
1214
|
* Requests transactional reads and writes. Attribute locking enables it
|
|
@@ -1139,6 +1258,7 @@ export interface WaitForStepCompletionRequest {
|
|
|
1139
1258
|
* Use a positive value only to reclaim accepted waits left in flight after callers exit.
|
|
1140
1259
|
* Temporal permits 10 in-flight Updates per Workflow Execution. Active callers transparently
|
|
1141
1260
|
* start a new generation. Zero disables rollover; each rollover adds Update history.
|
|
1261
|
+
* server-zd ignores this field.
|
|
1142
1262
|
*/
|
|
1143
1263
|
internalHandlerTimeoutSeconds: number;
|
|
1144
1264
|
/** Optional logical idempotency key. Empty derives wait-for-step-completion:{Step execution ID}. */
|
|
@@ -1159,6 +1279,7 @@ export interface WaitForAttributeRequest {
|
|
|
1159
1279
|
* Use a positive value only to reclaim accepted waits left in flight after callers exit.
|
|
1160
1280
|
* Temporal permits 10 in-flight Updates per Workflow Execution. Active callers transparently
|
|
1161
1281
|
* start a new generation. Zero disables rollover; each rollover adds Update history.
|
|
1282
|
+
* server-zd ignores this field.
|
|
1162
1283
|
*/
|
|
1163
1284
|
internalHandlerTimeoutSeconds: number;
|
|
1164
1285
|
/** Optional logical idempotency key. Empty derives wait-for-attribute:{encoded condition}. */
|
|
@@ -1245,7 +1366,10 @@ export interface InvokeWaitForMethodRequest_LoadedChannelMessagesEntry {
|
|
|
1245
1366
|
value: ChannelValues | undefined;
|
|
1246
1367
|
}
|
|
1247
1368
|
export interface InvokeWaitForMethodResponse {
|
|
1248
|
-
/**
|
|
1369
|
+
/**
|
|
1370
|
+
* Server-populated lineage input for local activity history.
|
|
1371
|
+
* server-zd never sets this.
|
|
1372
|
+
*/
|
|
1249
1373
|
localActivityMetadata: LocalActivityMetadata | undefined;
|
|
1250
1374
|
upsertAttributes: AttributeWrite[];
|
|
1251
1375
|
waitingCondition: WaitingCondition | undefined;
|
|
@@ -1302,7 +1426,10 @@ export interface InvokeExecuteMethodRequest_LoadedChannelMessagesEntry {
|
|
|
1302
1426
|
value: ChannelValues | undefined;
|
|
1303
1427
|
}
|
|
1304
1428
|
export interface InvokeExecuteMethodResponse {
|
|
1305
|
-
/**
|
|
1429
|
+
/**
|
|
1430
|
+
* Server-populated lineage input for local activity history.
|
|
1431
|
+
* server-zd never sets this.
|
|
1432
|
+
*/
|
|
1306
1433
|
localActivityMetadata: LocalActivityMetadata | undefined;
|
|
1307
1434
|
stepDecision: StepDecision | undefined;
|
|
1308
1435
|
upsertAttributes: AttributeWrite[];
|
|
@@ -1397,7 +1524,9 @@ export interface WaitingConditionState {
|
|
|
1397
1524
|
export interface SubFlowOptions {
|
|
1398
1525
|
reusePolicy: SubFlowReusePolicy;
|
|
1399
1526
|
flowTimeoutSeconds: number;
|
|
1527
|
+
/** server-zd rejects a positive start delay with INVALID_ARGUMENT. */
|
|
1400
1528
|
flowStartDelaySeconds: number;
|
|
1529
|
+
/** server-zd rejects a set policy with INVALID_ARGUMENT. */
|
|
1401
1530
|
retryPolicy: FlowRetryPolicy | undefined;
|
|
1402
1531
|
attributes: AttributeWrite[];
|
|
1403
1532
|
flowConfigOverride: FlowConfig | undefined;
|
|
@@ -1595,6 +1724,7 @@ export interface RecoveryErrorInfo {
|
|
|
1595
1724
|
errorType: string;
|
|
1596
1725
|
}
|
|
1597
1726
|
export interface InternalLocalStepActivityFailure {
|
|
1727
|
+
/** server-zd never sets this. */
|
|
1598
1728
|
localActivityMetadata: LocalActivityMetadata | undefined;
|
|
1599
1729
|
firstAttemptTimestamp: bigint;
|
|
1600
1730
|
methodOptions: StepMethodOptions | undefined;
|
|
@@ -2190,6 +2320,7 @@ export declare const FlowServiceService: {
|
|
|
2190
2320
|
readonly responseSerialize: (value: WaitForAttributeResponse) => Buffer;
|
|
2191
2321
|
readonly responseDeserialize: (value: Buffer) => WaitForAttributeResponse;
|
|
2192
2322
|
};
|
|
2323
|
+
/** server-zd returns UNIMPLEMENTED. */
|
|
2193
2324
|
readonly triggerContinueAsNew: {
|
|
2194
2325
|
readonly path: "/dex.FlowService/TriggerContinueAsNew";
|
|
2195
2326
|
readonly requestStream: false;
|
|
@@ -2236,6 +2367,7 @@ export interface FlowServiceServer extends UntypedServiceImplementation {
|
|
|
2236
2367
|
updateFlowConfig: handleUnaryCall<UpdateFlowConfigRequest, Empty>;
|
|
2237
2368
|
waitForStepCompletion: handleUnaryCall<WaitForStepCompletionRequest, WaitForStepCompletionResponse>;
|
|
2238
2369
|
waitForAttribute: handleUnaryCall<WaitForAttributeRequest, WaitForAttributeResponse>;
|
|
2370
|
+
/** server-zd returns UNIMPLEMENTED. */
|
|
2239
2371
|
triggerContinueAsNew: handleUnaryCall<TriggerContinueAsNewRequest, Empty>;
|
|
2240
2372
|
healthCheck: handleUnaryCall<Empty, HealthInfo>;
|
|
2241
2373
|
}
|
|
@@ -2316,6 +2448,7 @@ export interface FlowServiceClient extends Client {
|
|
|
2316
2448
|
waitForAttribute(request: WaitForAttributeRequest, callback: (error: ServiceError | null, response: WaitForAttributeResponse) => void): ClientUnaryCall;
|
|
2317
2449
|
waitForAttribute(request: WaitForAttributeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: WaitForAttributeResponse) => void): ClientUnaryCall;
|
|
2318
2450
|
waitForAttribute(request: WaitForAttributeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: WaitForAttributeResponse) => void): ClientUnaryCall;
|
|
2451
|
+
/** server-zd returns UNIMPLEMENTED. */
|
|
2319
2452
|
triggerContinueAsNew(request: TriggerContinueAsNewRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
2320
2453
|
triggerContinueAsNew(request: TriggerContinueAsNewRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
2321
2454
|
triggerContinueAsNew(request: TriggerContinueAsNewRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
@@ -2328,7 +2461,10 @@ export declare const FlowServiceClient: {
|
|
|
2328
2461
|
service: typeof FlowServiceService;
|
|
2329
2462
|
serviceName: string;
|
|
2330
2463
|
};
|
|
2331
|
-
/**
|
|
2464
|
+
/**
|
|
2465
|
+
* Hosted by Dex worker; server calls these RPCs.
|
|
2466
|
+
* server-zd supports only pull Workers and never calls WorkerService.
|
|
2467
|
+
*/
|
|
2332
2468
|
export type WorkerServiceService = typeof WorkerServiceService;
|
|
2333
2469
|
export declare const WorkerServiceService: {
|
|
2334
2470
|
readonly invokeWaitForMethod: {
|
|
@@ -2407,7 +2543,10 @@ export declare const WorkerTaskServiceClient: {
|
|
|
2407
2543
|
service: typeof WorkerTaskServiceService;
|
|
2408
2544
|
serviceName: string;
|
|
2409
2545
|
};
|
|
2410
|
-
/**
|
|
2546
|
+
/**
|
|
2547
|
+
* Hosted on the internal listener; server instances route tasks and Worker streams to queue owners.
|
|
2548
|
+
* Go Server internals; server-zd does not serve or persist them.
|
|
2549
|
+
*/
|
|
2411
2550
|
export type MatchingServiceService = typeof MatchingServiceService;
|
|
2412
2551
|
export declare const MatchingServiceService: {
|
|
2413
2552
|
/** Streams Worker output frames and a final result or dispatch error. */
|
|
@@ -2451,7 +2590,10 @@ export declare const MatchingServiceClient: {
|
|
|
2451
2590
|
service: typeof MatchingServiceService;
|
|
2452
2591
|
serviceName: string;
|
|
2453
2592
|
};
|
|
2454
|
-
/**
|
|
2593
|
+
/**
|
|
2594
|
+
* Server-internal only (interpreter CAN activity → API). Not SDK-facing.
|
|
2595
|
+
* Go Server internals; server-zd does not serve or persist them.
|
|
2596
|
+
*/
|
|
2455
2597
|
export type InternalServiceService = typeof InternalServiceService;
|
|
2456
2598
|
export declare const InternalServiceService: {
|
|
2457
2599
|
readonly dumpFlowForContinueAsNew: {
|