@superdurable/dex 1.23.0 → 1.26.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.
@@ -14,9 +14,9 @@ export declare enum ServerEngine {
14
14
  * Go Server on Temporal or Cadence.
15
15
  */
16
16
  SERVER_ENGINE_UNSPECIFIED = 0,
17
- /** SERVER_ENGINE_TEMPORAL - The Go Server running on Temporal. */
17
+ /** SERVER_ENGINE_TEMPORAL - Deprecated: The Go Server running on Temporal. Dex no longer reports this engine. */
18
18
  SERVER_ENGINE_TEMPORAL = 1,
19
- /** SERVER_ENGINE_CADENCE - The Go Server running on Cadence. */
19
+ /** SERVER_ENGINE_CADENCE - Deprecated: The Go Server running on Cadence. Dex no longer reports this engine. */
20
20
  SERVER_ENGINE_CADENCE = 2,
21
21
  /** SERVER_ENGINE_ZD - server-zd: the zero-dependency Server that keeps all state in object storage. */
22
22
  SERVER_ENGINE_ZD = 3,
@@ -36,7 +36,7 @@ export declare enum PollWorkerTaskRejectReason {
36
36
  }
37
37
  /**
38
38
  * Distinguishes no available Worker, a disconnected Worker, and a missing Step or RPC registration.
39
- * Go persists; server-zd does not.
39
+ * Dex persists it in Step method failure events.
40
40
  */
41
41
  export declare enum DispatchTaskErrorReason {
42
42
  DISPATCH_TASK_ERROR_REASON_UNSPECIFIED = 0,
@@ -90,7 +90,7 @@ export declare enum ActiveStepSearchMode {
90
90
  }
91
91
  /**
92
92
  * Was optimize_activity: false=SYNC, true=ASYNC. Timer is always optimized by the server.
93
- * On server-zd both durabilities record the same events. ASYNC advances without waiting for the commit; there is no local phase.
93
+ * Both durabilities record the same events. ASYNC advances without waiting for the commit; there is no local phase.
94
94
  */
95
95
  export declare enum StepDurability {
96
96
  STEP_DURABILITY_UNSPECIFIED = 0,
@@ -118,13 +118,13 @@ export declare enum FlowStatus {
118
118
  FLOW_STATUS_COMPLETED = 2,
119
119
  FLOW_STATUS_FAILED = 3,
120
120
  /**
121
- * FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY - Reserved for reporting a backend hard timeout; applications must not depend on this status.
122
- * server-zd never returns this status.
121
+ * FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY - Deprecated: Reserved for reporting a backend hard timeout; applications must not depend on
122
+ * this status. Dex never returns this status.
123
123
  */
124
124
  FLOW_STATUS_SERVER_SIDE_TIMEOUT_INTERNAL_ONLY = 4,
125
125
  FLOW_STATUS_TERMINATED = 5,
126
126
  FLOW_STATUS_CANCELED = 6,
127
- /** FLOW_STATUS_CONTINUED_AS_NEW - server-zd never returns this status. */
127
+ /** FLOW_STATUS_CONTINUED_AS_NEW - Deprecated: Dex does not continue Flows as new and never returns this status. */
128
128
  FLOW_STATUS_CONTINUED_AS_NEW = 7,
129
129
  UNRECOGNIZED = -1
130
130
  }
@@ -142,7 +142,7 @@ export declare enum FlowErrorType {
142
142
  }
143
143
  /**
144
144
  * PendingStepMethodPhase reports the latest persisted backend lifecycle event.
145
- * On server-zd, SCHEDULED waits for locks or dispatch. STARTED means an attempt is running.
145
+ * SCHEDULED waits for locks or dispatch. STARTED means an attempt is running.
146
146
  */
147
147
  export declare enum PendingStepMethodPhase {
148
148
  PENDING_STEP_METHOD_PHASE_UNSPECIFIED = 0,
@@ -235,23 +235,6 @@ export declare enum InternalTimerStatus {
235
235
  INTERNAL_TIMER_STATUS_SKIPPED = 3,
236
236
  UNRECOGNIZED = -1
237
237
  }
238
- export declare enum UpdateErrorType {
239
- UPDATE_ERROR_TYPE_UNSPECIFIED = 0,
240
- UPDATE_ERROR_TYPE_CONTINUE_AS_NEW_PREEMPTED = 1,
241
- UPDATE_ERROR_TYPE_INVALID_ARGUMENT = 2,
242
- UPDATE_ERROR_TYPE_FAILED_PRECONDITION = 3,
243
- UPDATE_ERROR_TYPE_DEADLINE_EXCEEDED = 4,
244
- UPDATE_ERROR_TYPE_RPC_ACQUIRE_LOCK_FAILURE = 5,
245
- UPDATE_ERROR_TYPE_SERVER_INTERNAL = 6,
246
- UPDATE_ERROR_TYPE_CHANNEL_MESSAGE_NOT_FOUND = 7,
247
- UNRECOGNIZED = -1
248
- }
249
- export declare enum SubFlowCompletionDeliveryStatus {
250
- SUB_FLOW_COMPLETION_DELIVERY_STATUS_UNSPECIFIED = 0,
251
- SUB_FLOW_COMPLETION_DELIVERY_STATUS_DELIVERED = 1,
252
- SUB_FLOW_COMPLETION_DELIVERY_STATUS_PARENT_CLOSED_OR_NOT_FOUND = 2,
253
- UNRECOGNIZED = -1
254
- }
255
238
  /** Describes the Dex Server release and the inclusive protocol range it supports. */
256
239
  export interface ServerInfo {
257
240
  /** Identifies the Server artifact for diagnostics. Compatibility uses only the protocol range. */
@@ -406,92 +389,6 @@ export interface PollWorkerTaskReconnect {
406
389
  /** Checks that an idle pull stream remains responsive. */
407
390
  export interface PollWorkerTaskPing {
408
391
  }
409
- /**
410
- * Describes one task dispatched to a Dex task queue.
411
- * Go Server internals; server-zd does not serve or persist them.
412
- */
413
- export interface DispatchTaskRequest {
414
- /** Selects the initial queue: a sticky Worker ID or a Flow type. */
415
- queue: string;
416
- /** Names the Flow type queue after a sticky wait expires. */
417
- fallbackQueue: string;
418
- /** Identifies the Flow for Worker affinity within a Flow type queue. */
419
- flowId: string;
420
- /** Limits waiting on a sticky queue before trying fallback_queue. */
421
- stickyWait: Duration | undefined;
422
- /** Limits total waiting for a Worker to accept the task. */
423
- dispatchWait: Duration | undefined;
424
- /** Bounds task execution, including Worker processing time. */
425
- deadline: Date | undefined;
426
- /** Identifies this dispatch across Worker and server streams. */
427
- taskId: string;
428
- request: {
429
- $case: "waitFor";
430
- value: InvokeWaitForMethodRequest;
431
- } | {
432
- $case: "execute";
433
- value: InvokeExecuteMethodRequest;
434
- } | {
435
- $case: "rpc";
436
- value: InvokeWorkerRPCRequest;
437
- } | undefined;
438
- /** Allows matching to send assignment state frames to capable callers. */
439
- supportsAssignmentState: boolean;
440
- /** Worker processes already found unable to serve this task. */
441
- excludedAppWorkerIds: string[];
442
- /** Ends an internal sticky queue search immediately after an unknown-name rejection. */
443
- stopAfterUnknownName: boolean;
444
- /** Ends an internal sticky queue search when no Worker streams remain connected. */
445
- stopWhenQueueHasNoStreams: boolean;
446
- /** Allows matching to return UNKNOWN_NAME after a Worker rejects an unknown Step type or RPC name. */
447
- supportsUnknownNameError: boolean;
448
- }
449
- /**
450
- * Reports assignment changes, relays Worker output, then ends with a result, Worker error, or dispatch error.
451
- * Go Server internals; server-zd does not serve or persist them.
452
- */
453
- export interface DispatchTaskResponse {
454
- output: {
455
- $case: "waitFor";
456
- value: InvokeWaitForMethodOutput;
457
- } | {
458
- $case: "execute";
459
- value: InvokeExecuteMethodOutput;
460
- } | {
461
- $case: "rpc";
462
- value: InvokeWorkerRPCResponse;
463
- } | {
464
- $case: "workerError";
465
- value: WorkerErrorResponse;
466
- } | {
467
- $case: "dispatchError";
468
- value: DispatchTaskError;
469
- } | //
470
- /** Stops matching-wait heartbeats after Worker assignment. */
471
- {
472
- $case: "assigned";
473
- value: Empty;
474
- } | //
475
- /** Resumes matching-wait heartbeats after a pre-output retry. */
476
- {
477
- $case: "unassigned";
478
- value: Empty;
479
- } | undefined;
480
- /** Identifies the Worker that produced the final result or Worker error. */
481
- servedByAppWorkerId: string;
482
- /** Identifies a Worker that rejected the task's Step type or RPC name. */
483
- rejectedByAppWorkerId: string;
484
- /** Actual queue served; absent on older matching nodes, so consumers may infer it from Worker IDs. */
485
- queueSource: PullRoutingSource;
486
- }
487
- /**
488
- * Reports a failure before Dex receives a Worker result.
489
- * Go Server internals; server-zd does not serve or persist them.
490
- */
491
- export interface DispatchTaskError {
492
- reason: DispatchTaskErrorReason;
493
- detail: string;
494
- }
495
392
  export interface Value {
496
393
  kind: //
497
394
  /**
@@ -587,17 +484,12 @@ export interface Context {
587
484
  recoveryError: RecoveryErrorInfo | undefined;
588
485
  lastHeartbeatValue: Value | undefined;
589
486
  /**
590
- * server-zd only: the run attempt that dispatched this invocation. It starts at 1 and
591
- * increases on each time travel. On server-zd, run_id stays the same across run attempts,
487
+ * The run attempt that dispatched this invocation. It starts at 1 and
488
+ * increases on each time travel. run_id stays the same across run attempts,
592
489
  * so combine both when an idempotency key must change after time travel.
593
490
  */
594
491
  runAttempt: number;
595
492
  }
596
- /** server-zd never sets this. */
597
- export interface LocalActivityMetadata {
598
- currentStepExecutionId: string;
599
- fromStepExecutionId: string;
600
- }
601
493
  export interface RetryPolicy {
602
494
  initialIntervalSeconds: number;
603
495
  backoffCoefficient: number;
@@ -605,7 +497,7 @@ export interface RetryPolicy {
605
497
  maximumAttempts: number;
606
498
  totalDurationSeconds: number;
607
499
  }
608
- /** server-zd does not support Flow retry and rejects a set policy with INVALID_ARGUMENT. */
500
+ /** Dex does not support Flow retry and rejects a set policy with INVALID_ARGUMENT. */
609
501
  export interface FlowRetryPolicy {
610
502
  initialIntervalSeconds: number;
611
503
  backoffCoefficient: number;
@@ -656,9 +548,9 @@ export interface FlowAlreadyStartedOptions {
656
548
  }
657
549
  export interface FlowStartOptions {
658
550
  idReusePolicy: IdReusePolicy;
659
- /** server-zd rejects a positive start delay with INVALID_ARGUMENT. */
551
+ /** Dex rejects a positive start delay with INVALID_ARGUMENT. */
660
552
  flowStartDelaySeconds: number;
661
- /** server-zd rejects a set policy with INVALID_ARGUMENT. */
553
+ /** Dex rejects a set policy with INVALID_ARGUMENT. */
662
554
  retryPolicy: FlowRetryPolicy | undefined;
663
555
  attributes: AttributeWrite[];
664
556
  flowConfigOverride: FlowConfig | undefined;
@@ -667,9 +559,15 @@ export interface FlowStartOptions {
667
559
  }
668
560
  export interface FlowConfig {
669
561
  activeStepSearchMode?: ActiveStepSearchMode | undefined;
670
- /** server-zd ignores this field. */
562
+ /**
563
+ * Deprecated: Dex does not continue Flows as new. Dex rejects a negative value, stores the
564
+ * value in the Flow configuration, and otherwise ignores it.
565
+ */
671
566
  continueAsNewThreshold?: number | undefined;
672
- /** server-zd ignores this field. */
567
+ /**
568
+ * Deprecated: Dex does not continue Flows as new. Dex rejects a negative value, stores the
569
+ * value in the Flow configuration, and otherwise ignores it.
570
+ */
673
571
  continueAsNewPageSizeInBytes?: number | undefined;
674
572
  stepDurability?: StepDurability | undefined;
675
573
  workerTarget: WorkerTarget | undefined;
@@ -680,14 +578,7 @@ export interface AttributeStoreNames {
680
578
  names: string[];
681
579
  }
682
580
  export interface WorkerTarget {
683
- /**
684
- * Plaintext gRPC dial target, not an HTTP URL.
685
- * server-zd accepts only is_pull_mode and rejects address targets with INVALID_ARGUMENT.
686
- */
687
- address: string;
688
- /** server-zd accepts only is_pull_mode and rejects address targets with INVALID_ARGUMENT. */
689
- isHeadlessAddress: boolean;
690
- /** Routes work through a connected pull Worker; mutually exclusive with address. */
581
+ /** Routes work through a connected pull Worker. Dex requires true whenever a target is set. */
691
582
  isPullMode: boolean;
692
583
  }
693
584
  export interface StartFlowRequest {
@@ -832,7 +723,7 @@ export interface SearchFlowsRequest {
832
723
  query: string;
833
724
  pageSize: number;
834
725
  nextPageToken: string;
835
- /** server-zd ignores this field. */
726
+ /** Deprecated: Dex does not continue Flows as new and ignores this field. */
836
727
  includeContinuedAsNew: boolean;
837
728
  }
838
729
  export interface SearchFlowsResponse {
@@ -869,30 +760,16 @@ export interface GetFlowSummaryRequest {
869
760
  }
870
761
  export interface GetFlowSummaryResponse {
871
762
  flowExecutionId: FlowExecutionID | undefined;
872
- /** On server-zd this always equals run_id. */
763
+ /** Always equals run_id. */
873
764
  firstRunId: string;
874
765
  requestId: string;
875
766
  flowType: string;
876
767
  flowStatus: FlowStatus;
877
768
  startTime: Date | undefined;
878
769
  closeTime: Date | undefined;
879
- /** server-zd only: the current run attempt of this run. */
770
+ /** The current run attempt of this run. */
880
771
  runAttempt: number;
881
772
  }
882
- export interface InternalAsyncStepInputSnapshot {
883
- methodOptions: StepMethodOptions | undefined;
884
- request: {
885
- $case: "waitForRequest";
886
- value: InvokeWaitForMethodRequest;
887
- } | {
888
- $case: "executeRequest";
889
- value: InvokeExecuteMethodRequest;
890
- } | undefined;
891
- }
892
- export interface InternalLocalActivityInput {
893
- currentRunStartedTimestamp: bigint;
894
- methodOptions: StepMethodOptions | undefined;
895
- }
896
773
  export interface GetHistoryEventsRequest {
897
774
  flowId: string;
898
775
  runId: string;
@@ -900,7 +777,7 @@ export interface GetHistoryEventsRequest {
900
777
  estimatePageSize: number;
901
778
  nextPageToken: Uint8Array;
902
779
  /**
903
- * server-zd only: selects the run attempt whose lineage is returned. Zero selects the current
780
+ * Selects the run attempt whose lineage is returned. Zero selects the current
904
781
  * run attempt.
905
782
  */
906
783
  runAttempt: number;
@@ -913,7 +790,7 @@ export interface GetHistoryEventsResponse {
913
790
  export interface FlowHistoryEvent {
914
791
  eventId: bigint;
915
792
  eventTime: Date | undefined;
916
- /** server-zd only: the run attempt that recorded this event. */
793
+ /** The run attempt that recorded this event. */
917
794
  runAttempt: number;
918
795
  payload: {
919
796
  $case: "flowStartedOrContinued";
@@ -957,11 +834,11 @@ export interface FlowHistoryEvent {
957
834
  export interface TimeTravelForkHistoryEvent {
958
835
  /** Previous run containing the original history branch. */
959
836
  previousRunId: string;
960
- /** server-zd only: the run attempt that was current before this time travel. */
837
+ /** The run attempt that was current before this time travel. */
961
838
  previousRunAttempt: number;
962
- /** server-zd only: the run attempt of the point this time travel returned to. */
839
+ /** The run attempt of the point this time travel returned to. */
963
840
  targetRunAttempt: number;
964
- /** server-zd only: the event ID of the point this time travel returned to. */
841
+ /** The event ID of the point this time travel returned to. */
965
842
  targetEventId: bigint;
966
843
  }
967
844
  export interface FlowStartedOrContinuedHistoryEvent {
@@ -975,7 +852,7 @@ export interface FlowStartedOrContinuedHistoryEvent {
975
852
  $case: "initialStart";
976
853
  value: FlowInitialStart;
977
854
  } | //
978
- /** server-zd never sets this. */
855
+ /** Deprecated: Dex does not continue Flows as new and never sets this. */
979
856
  {
980
857
  $case: "continuedStart";
981
858
  value: FlowContinuedStart;
@@ -987,7 +864,7 @@ export interface FlowInitialStart {
987
864
  stepOptions: StepOptions | undefined;
988
865
  initialAttributes: KV[];
989
866
  }
990
- /** server-zd never sets this. */
867
+ /** Deprecated: Dex does not continue Flows as new and never records this start. */
991
868
  export interface FlowContinuedStart {
992
869
  previousRunId: string;
993
870
  stepsToStart: StepMovement[];
@@ -1008,11 +885,11 @@ export interface FlowClosedHistoryEvent {
1008
885
  results: StepCompletionOutput[];
1009
886
  errorType: FlowErrorType;
1010
887
  errorMessage: string;
1011
- /** server-zd never sets this. */
888
+ /** Deprecated: Dex does not continue Flows as new and never sets this. */
1012
889
  continuedToRunId: string;
1013
890
  stickyAppWorkerId: string;
1014
891
  }
1015
- /** StepMethodPendingEvent describes a regular Step activity unresolved at flow closure. */
892
+ /** StepMethodPendingEvent describes a regular Step method unresolved at flow closure. */
1016
893
  export interface StepMethodPendingEvent {
1017
894
  input: StepMethodEventInput | undefined;
1018
895
  context: StepMethodEventContext | undefined;
@@ -1093,8 +970,8 @@ export interface StepExecuteFailedEvent {
1093
970
  context: StepMethodEventContext | undefined;
1094
971
  }
1095
972
  /**
1096
- * Successful RPC history projection. Updates include input/output; signals include
1097
- * them only when configured.
973
+ * Successful RPC history projection. Transactional RPCs include input/output; other RPCs
974
+ * omit them.
1098
975
  */
1099
976
  export interface RpcExecutionCompletedEvent {
1100
977
  rpcName: string;
@@ -1169,14 +1046,14 @@ export interface ResetFlowRequest {
1169
1046
  skipWritesReapply: boolean;
1170
1047
  stepMethod: FlowResetStepMethod;
1171
1048
  /**
1172
- * server-zd only: selects the run attempt whose history is searched for the reset point.
1049
+ * Selects the run attempt whose history is searched for the reset point.
1173
1050
  * Zero selects the current run attempt.
1174
1051
  */
1175
1052
  runAttempt: number;
1176
1053
  }
1177
1054
  export interface ResetFlowResponse {
1178
1055
  runId: string;
1179
- /** server-zd only: the run attempt created by this time travel. run_id does not change there. */
1056
+ /** The run attempt created by this time travel. run_id does not change. */
1180
1057
  runAttempt: number;
1181
1058
  }
1182
1059
  export interface InvokeRPCRequest {
@@ -1192,8 +1069,8 @@ export interface InvokeRPCRequest {
1192
1069
  */
1193
1070
  lockAttributeKeys: string[];
1194
1071
  /**
1195
- * 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.
1196
- * server-zd deduplicates it for the whole run.
1072
+ * Per-call UUID, SDK-generated and future-overridable; identical retries reuse it.
1073
+ * Dex deduplicates it for the whole run.
1197
1074
  */
1198
1075
  requestId: string;
1199
1076
  /**
@@ -1239,13 +1116,7 @@ export interface WaitForStepCompletionRequest {
1239
1116
  * Zero waits indefinitely.
1240
1117
  */
1241
1118
  requestTimeoutSeconds: number;
1242
- /**
1243
- * Bounds one internal Temporal Update handler generation.
1244
- * Use a positive value only to reclaim accepted waits left in flight after callers exit.
1245
- * Temporal permits 10 in-flight Updates per Workflow Execution. Active callers transparently
1246
- * start a new generation. Zero disables rollover; each rollover adds Update history.
1247
- * server-zd ignores this field.
1248
- */
1119
+ /** Deprecated: Dex rejects a negative value and otherwise ignores this field. */
1249
1120
  internalHandlerTimeoutSeconds: number;
1250
1121
  /** Optional logical idempotency key. Empty derives wait-for-step-completion:{Step execution ID}. */
1251
1122
  requestId: string;
@@ -1260,13 +1131,7 @@ export interface WaitForAttributeRequest {
1260
1131
  * Zero waits indefinitely.
1261
1132
  */
1262
1133
  requestTimeoutSeconds: number;
1263
- /**
1264
- * Bounds one internal Temporal Update handler generation.
1265
- * Use a positive value only to reclaim accepted waits left in flight after callers exit.
1266
- * Temporal permits 10 in-flight Updates per Workflow Execution. Active callers transparently
1267
- * start a new generation. Zero disables rollover; each rollover adds Update history.
1268
- * server-zd ignores this field.
1269
- */
1134
+ /** Deprecated: Dex rejects a negative value and otherwise ignores this field. */
1270
1135
  internalHandlerTimeoutSeconds: number;
1271
1136
  /** Optional logical idempotency key. Empty derives wait-for-attribute:{encoded condition}. */
1272
1137
  requestId: string;
@@ -1279,6 +1144,7 @@ export interface AttributeMatch {
1279
1144
  operator: AttributeMatchOperator;
1280
1145
  operand: Value | undefined;
1281
1146
  }
1147
+ /** Deprecated: TriggerContinueAsNew always returns UNIMPLEMENTED. */
1282
1148
  export interface TriggerContinueAsNewRequest {
1283
1149
  flowId: string;
1284
1150
  runId: string;
@@ -1302,30 +1168,9 @@ export interface WorkerErrorResponse {
1302
1168
  errorType: string;
1303
1169
  stackTrace: string;
1304
1170
  retryAfterSeconds: number;
1305
- /** Pull Workers set the gRPC code push mode would return; push mode uses its transport status. */
1171
+ /** gRPC status code that the Worker derives from the handler error. */
1306
1172
  grpcStatus: number;
1307
1173
  }
1308
- export interface InternalActivityError {
1309
- serverDetail: string;
1310
- workerGrpcStatus: number;
1311
- workerError: InternalWorkerError | undefined;
1312
- pullRouting: PullRouting | undefined;
1313
- dispatchTaskErrorReason: DispatchTaskErrorReason;
1314
- }
1315
- export interface InternalWorkerError {
1316
- detail: string;
1317
- errorType: string;
1318
- stackTrace: string;
1319
- }
1320
- export interface InternalFlowError {
1321
- failure: {
1322
- $case: "serverDetail";
1323
- value: string;
1324
- } | {
1325
- $case: "activityError";
1326
- value: InternalActivityError;
1327
- } | undefined;
1328
- }
1329
1174
  export interface ChannelInfo {
1330
1175
  size: number;
1331
1176
  }
@@ -1354,11 +1199,6 @@ export interface InvokeWaitForMethodRequest_LoadedChannelMessagesEntry {
1354
1199
  value: ChannelValues | undefined;
1355
1200
  }
1356
1201
  export interface InvokeWaitForMethodResponse {
1357
- /**
1358
- * Server-populated lineage input for local activity history.
1359
- * server-zd never sets this.
1360
- */
1361
- localActivityMetadata: LocalActivityMetadata | undefined;
1362
1202
  upsertAttributes: AttributeWrite[];
1363
1203
  waitingCondition: WaitingCondition | undefined;
1364
1204
  upsertStepExeLocals: KV[];
@@ -1414,11 +1254,6 @@ export interface InvokeExecuteMethodRequest_LoadedChannelMessagesEntry {
1414
1254
  value: ChannelValues | undefined;
1415
1255
  }
1416
1256
  export interface InvokeExecuteMethodResponse {
1417
- /**
1418
- * Server-populated lineage input for local activity history.
1419
- * server-zd never sets this.
1420
- */
1421
- localActivityMetadata: LocalActivityMetadata | undefined;
1422
1257
  stepDecision: StepDecision | undefined;
1423
1258
  upsertAttributes: AttributeWrite[];
1424
1259
  recordEvents: KV[];
@@ -1512,9 +1347,9 @@ export interface WaitingConditionState {
1512
1347
  export interface SubFlowOptions {
1513
1348
  reusePolicy: SubFlowReusePolicy;
1514
1349
  flowTimeoutSeconds: number;
1515
- /** server-zd rejects a positive start delay with INVALID_ARGUMENT. */
1350
+ /** Dex rejects a positive start delay with INVALID_ARGUMENT. */
1516
1351
  flowStartDelaySeconds: number;
1517
- /** server-zd rejects a set policy with INVALID_ARGUMENT. */
1352
+ /** Dex rejects a set policy with INVALID_ARGUMENT. */
1518
1353
  retryPolicy: FlowRetryPolicy | undefined;
1519
1354
  attributes: AttributeWrite[];
1520
1355
  flowConfigOverride: FlowConfig | undefined;
@@ -1537,9 +1372,9 @@ export interface SubFlowConditionState {
1537
1372
  export interface TimerCondition {
1538
1373
  /** Optional unless waiting_condition_type is ANY_COMBINATION_COMPLETED. */
1539
1374
  conditionId: string;
1540
- /** Worker-relative delay; interpreter clears this after converted to firing_unix_timestamp_seconds. */
1375
+ /** Worker-relative delay; Dex converts it to firing_unix_timestamp_seconds. */
1541
1376
  durationSeconds: bigint;
1542
- /** Interpreter-normalized deadline; workers leave this zero. */
1377
+ /** Deadline that Dex computes from duration_seconds; workers leave this zero. */
1543
1378
  firingUnixTimestampSeconds: bigint;
1544
1379
  }
1545
1380
  export interface ChannelCondition {
@@ -1566,20 +1401,6 @@ export interface ChannelResult {
1566
1401
  channelName: string;
1567
1402
  values: Value[];
1568
1403
  }
1569
- export interface ContinueAsNewDumpRequest {
1570
- flowId: string;
1571
- runId: string;
1572
- pageNum: number;
1573
- pageSizeInBytes: number;
1574
- }
1575
- export interface ContinueAsNewDumpResponse {
1576
- /** Slice of the deterministic proto-marshaled ContinueAsNewDump. */
1577
- pageContent: Uint8Array;
1578
- pageNum: number;
1579
- totalPages: number;
1580
- /** Hash of the full marshaled dump; guards snapshot drift across pages. */
1581
- checksum: string;
1582
- }
1583
1404
  export interface ChannelValues {
1584
1405
  messages: ChannelMessage[];
1585
1406
  }
@@ -1607,273 +1428,21 @@ export interface StepExecutionResumeInfo {
1607
1428
  stepExeLocals: KV[];
1608
1429
  waitForPullRouting: PullRouting | undefined;
1609
1430
  }
1610
- export interface StepExecutionCounterInfo {
1611
- stepTypeStartedCount: {
1612
- [key: string]: number;
1613
- };
1614
- stepTypeCurrentlyExecutingCount: {
1615
- [key: string]: number;
1616
- };
1617
- totalCurrentlyExecutingCount: number;
1618
- stepActiveExecutionNums: {
1619
- [key: string]: StepExecutionNumbers;
1620
- };
1621
- }
1622
- export interface StepExecutionCounterInfo_StepTypeStartedCountEntry {
1623
- key: string;
1624
- value: number;
1625
- }
1626
- export interface StepExecutionCounterInfo_StepTypeCurrentlyExecutingCountEntry {
1627
- key: string;
1628
- value: number;
1629
- }
1630
- export interface StepExecutionCounterInfo_StepActiveExecutionNumsEntry {
1631
- key: string;
1632
- value: StepExecutionNumbers | undefined;
1633
- }
1634
- export interface StaleSkipTimer {
1635
- stepExecutionId: string;
1636
- timerConditionId: string;
1637
- timerConditionIndex: number;
1638
- }
1639
- export interface ContinueAsNewDump {
1640
- stepsToStartFromBeginning: StepMovement[];
1641
- stepExecutionsToResume: StepExecutionResumeInfo[];
1642
- channelReceived: {
1643
- [key: string]: ChannelValues;
1644
- };
1645
- counterInfo: StepExecutionCounterInfo | undefined;
1646
- stepOutputs: StepCompletionOutput[];
1647
- staleSkipTimers: StaleSkipTimer[];
1648
- /** Stored values only; index metadata remains in backend search attributes. */
1649
- attributes: KV[];
1650
- pendingAttributeSyncItems: AttributeSyncItem[];
1651
- /** Retains the last serving Worker's sticky queue across a Flow continuation. */
1652
- dexTaskQueue: string;
1653
- }
1654
- export interface ContinueAsNewDump_ChannelReceivedEntry {
1655
- key: string;
1656
- value: ChannelValues | undefined;
1657
- }
1658
- export interface ContinueAsNewInput {
1659
- previousInternalRunId: string;
1660
- }
1661
- export interface InterpreterWorkflowInput {
1662
- flowType: string;
1663
- configuredFlowTimeoutSeconds: number;
1664
- flowTimeoutPolicy: FlowTimeoutPolicy;
1665
- startStepType: string;
1666
- stepInput: Value | undefined;
1667
- stepOptions: StepOptions | undefined;
1668
- initAttributes: AttributeWrite[];
1669
- config: FlowConfig | undefined;
1670
- /** When true, ignore start_step_type / step_input / step_options / init_attributes. */
1671
- isResumeFromContinueAsNew: boolean;
1672
- continueAsNewInput: ContinueAsNewInput | undefined;
1673
- timeoutHandlerOptions: FlowTimeoutHandlerOptions | undefined;
1674
- }
1675
- export interface InterpreterWorkflowOutput {
1676
- stepCompletionOutputs: StepCompletionOutput[];
1677
- }
1678
- export interface BlobStoreCleanupWorkflowInput {
1679
- storeId: string;
1680
- }
1681
- export interface BlobStoreCleanupWorkflowOutput {
1682
- totalDeleted: number;
1683
- }
1684
- export interface InvokeWaitForMethodActivityInput {
1685
- workerTarget: WorkerTarget | undefined;
1686
- request: InvokeWaitForMethodRequest | undefined;
1687
- /** Selects the sticky Worker queue; empty selects the request's Flow type queue. */
1688
- dexTaskQueue: string;
1689
- /** Limits total waiting for a pull Worker to accept this attempt. */
1690
- dispatchWait: Duration | undefined;
1691
- /** Limits waiting on the sticky queue before the Flow type queue. */
1692
- stickyWait: Duration | undefined;
1693
- }
1694
- export interface InvokeWaitForMethodActivityOutput {
1695
- response: InvokeWaitForMethodResponse | undefined;
1696
- /** Identifies the Worker that completed this pull task for sticky routing. */
1697
- servedByAppWorkerId: string;
1698
- pullRouting: PullRouting | undefined;
1699
- }
1700
- export interface InvokeExecuteMethodActivityInput {
1701
- workerTarget: WorkerTarget | undefined;
1702
- request: InvokeExecuteMethodRequest | undefined;
1703
- /** Selects the sticky Worker queue; empty selects the request's Flow type queue. */
1704
- dexTaskQueue: string;
1705
- /** Limits total waiting for a pull Worker to accept this attempt. */
1706
- dispatchWait: Duration | undefined;
1707
- /** Limits waiting on the sticky queue before the Flow type queue. */
1708
- stickyWait: Duration | undefined;
1709
- }
1710
1431
  export interface RecoveryErrorInfo {
1711
1432
  detail: string;
1712
1433
  errorType: string;
1713
1434
  }
1714
- export interface InternalLocalStepActivityFailure {
1715
- /** server-zd never sets this. */
1716
- localActivityMetadata: LocalActivityMetadata | undefined;
1717
- firstAttemptTimestamp: bigint;
1718
- methodOptions: StepMethodOptions | undefined;
1719
- attempt: number;
1720
- activityError: InternalActivityError | undefined;
1721
- pullRouting: PullRouting | undefined;
1722
- }
1723
- export interface InvokeExecuteMethodActivityOutput {
1724
- response: InvokeExecuteMethodResponse | undefined;
1725
- /** Identifies the Worker that completed this pull task for sticky routing. */
1726
- servedByAppWorkerId: string;
1727
- pullRouting: PullRouting | undefined;
1728
- }
1729
- export interface DumpFlowForContinueAsNewActivityInput {
1730
- request: ContinueAsNewDumpRequest | undefined;
1731
- }
1732
- export interface DumpFlowForContinueAsNewActivityOutput {
1733
- response: ContinueAsNewDumpResponse | undefined;
1734
- }
1735
- export interface InvokeWorkerRPCActivityInput {
1736
- rpcPrep: PrepareRpcQueryResponse | undefined;
1737
- request: InvokeRPCRequest | undefined;
1738
- }
1739
- export interface InvokeWorkerRPCActivityOutput {
1740
- response: InvokeWorkerRPCResponse | undefined;
1741
- /** Correlates this local Activity result with its InvokeRpc Update. */
1742
- requestId: string;
1743
- /** Identifies the Worker that completed this pull task for sticky routing. */
1744
- servedByAppWorkerId: string;
1745
- }
1746
- export interface CleanupBlobStoreActivityInput {
1747
- storeId: string;
1748
- }
1749
- export interface CleanupBlobStoreActivityOutput {
1750
- totalDeleted: number;
1751
- }
1752
1435
  export interface AttributeSyncItem {
1753
1436
  configName: string;
1754
1437
  key: string;
1755
1438
  value: Value | undefined;
1756
1439
  }
1757
- export interface SyncAttributeBatchActivityInput {
1758
- flowId: string;
1759
- configName: string;
1760
- items: AttributeSyncItem[];
1761
- }
1762
- export interface StartSubFlowActivityInput {
1763
- condition: SubFlowCondition | undefined;
1764
- parentFlowConfig: FlowConfig | undefined;
1765
- /** Source Step; activity context supplies parent Flow and run IDs. */
1766
- parentStepExecutionId: string;
1767
- /** Preserve legacy activity errors when older interpreter versions schedule this activity. */
1768
- typedRejectionEnabled: boolean;
1769
- }
1770
- export interface StartSubFlowActivityOutput {
1771
- immediateFlowResult: FlowResult | undefined;
1772
- }
1773
- export interface SubFlowCompletionSignalRequest {
1774
- subFlowId: string;
1775
- flowResult: FlowResult | undefined;
1776
- }
1777
- export interface ReportSubFlowCompletionActivityInput {
1778
- parentFlowId: string;
1779
- request: SubFlowCompletionSignalRequest | undefined;
1780
- }
1781
- export interface ReportSubFlowCompletionActivityOutput {
1782
- status: SubFlowCompletionDeliveryStatus;
1783
- }
1784
- export interface ExecuteRpcSignalRequest {
1785
- upsertAttributes: AttributeWrite[];
1786
- stepDecision: StepDecision | undefined;
1787
- recordEvents: KV[];
1788
- publishToChannel: ChannelMessage[];
1789
- isSetAttributeApi: boolean;
1790
- deleteFromChannel: ChannelMessageDeletion[];
1791
- isDeleteChannelMessageApi: boolean;
1792
- actionPermissionMappings: ActionPermissionMappings | undefined;
1793
- servedByAppWorkerId: string;
1794
- }
1795
- export interface SkipTimerSignalRequest {
1796
- stepExecutionId: string;
1797
- timerConditionId: string;
1798
- timerConditionIndex: number;
1799
- }
1800
- export interface StopFlowSignalRequest {
1801
- stopType: StopType;
1802
- reason: string;
1803
- }
1804
- export interface GetAttributesQueryRequest {
1805
- keys: string[];
1806
- allKeys: boolean;
1807
- }
1808
- export interface GetAttributesQueryResponse {
1809
- attributes: KV[];
1810
- }
1811
- export interface PrepareRpcQueryRequest {
1812
- loadAttributeMapInstances: string[];
1813
- loadChannelNames: string[];
1814
- loadChannelMapInstances: string[];
1815
- }
1816
- export interface PrepareRpcQueryResponse {
1817
- attributes: KV[];
1818
- runId: string;
1819
- flowStartedTimestamp: bigint;
1820
- flowType: string;
1821
- workerTarget: WorkerTarget | undefined;
1822
- channelInfos: {
1823
- [key: string]: ChannelInfo;
1824
- };
1825
- loadedChannelMessages: {
1826
- [key: string]: ChannelValues;
1827
- };
1828
- loadedAttributeMapInstances: string[];
1829
- loadedChannelNames: string[];
1830
- loadedChannelMapInstances: string[];
1831
- /** Selects the last Worker queue for RPC dispatch. */
1832
- dexTaskQueue: string;
1833
- }
1834
- export interface PrepareRpcQueryResponse_ChannelInfosEntry {
1835
- key: string;
1836
- value: ChannelInfo | undefined;
1837
- }
1838
- export interface PrepareRpcQueryResponse_LoadedChannelMessagesEntry {
1839
- key: string;
1840
- value: ChannelValues | undefined;
1841
- }
1842
1440
  export interface TimerInfo {
1843
1441
  /** Empty when the timer has no condition id. */
1844
1442
  conditionId: string;
1845
1443
  firingUnixTimestampSeconds: bigint;
1846
1444
  status: InternalTimerStatus;
1847
1445
  }
1848
- export interface TimerInfoList {
1849
- timers: TimerInfo[];
1850
- }
1851
- export interface GetCurrentTimerInfosQueryResponse {
1852
- /** Key is step_execution_id. */
1853
- stepExecutionCurrentTimerInfos: {
1854
- [key: string]: TimerInfoList;
1855
- };
1856
- }
1857
- export interface GetCurrentTimerInfosQueryResponse_StepExecutionCurrentTimerInfosEntry {
1858
- key: string;
1859
- value: TimerInfoList | undefined;
1860
- }
1861
- export interface GetScheduledGreedyTimerTimesQueryResponse {
1862
- pendingScheduled: TimerInfo[];
1863
- }
1864
- export interface DebugDumpResponse {
1865
- config: FlowConfig | undefined;
1866
- snapshot: ContinueAsNewDump | undefined;
1867
- firingTimersUnixTimestamps: bigint[];
1868
- activeStepExecutions: ActiveStepExecutionState[];
1869
- }
1870
- /** Sync-update InvokeRPC handler result when response and error are multiplexed. */
1871
- export interface InvokeRpcUpdateResult {
1872
- response: InvokeRPCResponse | undefined;
1873
- }
1874
- export interface StepExecutionNumbers {
1875
- numbers: number[];
1876
- }
1877
1446
  export declare const ServerInfo: MessageFns<ServerInfo>;
1878
1447
  export declare const PollWorkerTaskRequest: MessageFns<PollWorkerTaskRequest>;
1879
1448
  export declare const PollWorkerTaskRegister: MessageFns<PollWorkerTaskRegister>;
@@ -1886,9 +1455,6 @@ export declare const PollWorkerTask: MessageFns<PollWorkerTask>;
1886
1455
  export declare const PollWorkerTaskCancelTask: MessageFns<PollWorkerTaskCancelTask>;
1887
1456
  export declare const PollWorkerTaskReconnect: MessageFns<PollWorkerTaskReconnect>;
1888
1457
  export declare const PollWorkerTaskPing: MessageFns<PollWorkerTaskPing>;
1889
- export declare const DispatchTaskRequest: MessageFns<DispatchTaskRequest>;
1890
- export declare const DispatchTaskResponse: MessageFns<DispatchTaskResponse>;
1891
- export declare const DispatchTaskError: MessageFns<DispatchTaskError>;
1892
1458
  export declare const Value: MessageFns<Value>;
1893
1459
  export declare const EncodedObject: MessageFns<EncodedObject>;
1894
1460
  export declare const AttributeWrite: MessageFns<AttributeWrite>;
@@ -1898,7 +1464,6 @@ export declare const AttributeSyncConfig: MessageFns<AttributeSyncConfig>;
1898
1464
  export declare const KV: MessageFns<KV>;
1899
1465
  export declare const IndexConfig: MessageFns<IndexConfig>;
1900
1466
  export declare const Context: MessageFns<Context>;
1901
- export declare const LocalActivityMetadata: MessageFns<LocalActivityMetadata>;
1902
1467
  export declare const RetryPolicy: MessageFns<RetryPolicy>;
1903
1468
  export declare const FlowRetryPolicy: MessageFns<FlowRetryPolicy>;
1904
1469
  export declare const StepOptions: MessageFns<StepOptions>;
@@ -1942,8 +1507,6 @@ export declare const SyncAttributeIndexResponse: MessageFns<SyncAttributeIndexRe
1942
1507
  export declare const FlowExecutionID: MessageFns<FlowExecutionID>;
1943
1508
  export declare const GetFlowSummaryRequest: MessageFns<GetFlowSummaryRequest>;
1944
1509
  export declare const GetFlowSummaryResponse: MessageFns<GetFlowSummaryResponse>;
1945
- export declare const InternalAsyncStepInputSnapshot: MessageFns<InternalAsyncStepInputSnapshot>;
1946
- export declare const InternalLocalActivityInput: MessageFns<InternalLocalActivityInput>;
1947
1510
  export declare const GetHistoryEventsRequest: MessageFns<GetHistoryEventsRequest>;
1948
1511
  export declare const GetHistoryEventsResponse: MessageFns<GetHistoryEventsResponse>;
1949
1512
  export declare const FlowHistoryEvent: MessageFns<FlowHistoryEvent>;
@@ -1990,9 +1553,6 @@ export declare const TriggerContinueAsNewRequest: MessageFns<TriggerContinueAsNe
1990
1553
  export declare const HealthInfo: MessageFns<HealthInfo>;
1991
1554
  export declare const ServiceErrorResponse: MessageFns<ServiceErrorResponse>;
1992
1555
  export declare const WorkerErrorResponse: MessageFns<WorkerErrorResponse>;
1993
- export declare const InternalActivityError: MessageFns<InternalActivityError>;
1994
- export declare const InternalWorkerError: MessageFns<InternalWorkerError>;
1995
- export declare const InternalFlowError: MessageFns<InternalFlowError>;
1996
1556
  export declare const ChannelInfo: MessageFns<ChannelInfo>;
1997
1557
  export declare const InvokeWaitForMethodRequest: MessageFns<InvokeWaitForMethodRequest>;
1998
1558
  export declare const InvokeWaitForMethodRequest_ChannelInfosEntry: MessageFns<InvokeWaitForMethodRequest_ChannelInfosEntry>;
@@ -2024,61 +1584,14 @@ export declare const ChannelCondition: MessageFns<ChannelCondition>;
2024
1584
  export declare const ConditionResults: MessageFns<ConditionResults>;
2025
1585
  export declare const TimerResult: MessageFns<TimerResult>;
2026
1586
  export declare const ChannelResult: MessageFns<ChannelResult>;
2027
- export declare const ContinueAsNewDumpRequest: MessageFns<ContinueAsNewDumpRequest>;
2028
- export declare const ContinueAsNewDumpResponse: MessageFns<ContinueAsNewDumpResponse>;
2029
1587
  export declare const ChannelValues: MessageFns<ChannelValues>;
2030
1588
  export declare const StepExecutionCompletedConditions: MessageFns<StepExecutionCompletedConditions>;
2031
1589
  export declare const StepExecutionCompletedConditions_CompletedTimerConditionsEntry: MessageFns<StepExecutionCompletedConditions_CompletedTimerConditionsEntry>;
2032
1590
  export declare const StepExecutionCompletedConditions_CompletedSubFlowResultsEntry: MessageFns<StepExecutionCompletedConditions_CompletedSubFlowResultsEntry>;
2033
1591
  export declare const StepExecutionResumeInfo: MessageFns<StepExecutionResumeInfo>;
2034
- export declare const StepExecutionCounterInfo: MessageFns<StepExecutionCounterInfo>;
2035
- export declare const StepExecutionCounterInfo_StepTypeStartedCountEntry: MessageFns<StepExecutionCounterInfo_StepTypeStartedCountEntry>;
2036
- export declare const StepExecutionCounterInfo_StepTypeCurrentlyExecutingCountEntry: MessageFns<StepExecutionCounterInfo_StepTypeCurrentlyExecutingCountEntry>;
2037
- export declare const StepExecutionCounterInfo_StepActiveExecutionNumsEntry: MessageFns<StepExecutionCounterInfo_StepActiveExecutionNumsEntry>;
2038
- export declare const StaleSkipTimer: MessageFns<StaleSkipTimer>;
2039
- export declare const ContinueAsNewDump: MessageFns<ContinueAsNewDump>;
2040
- export declare const ContinueAsNewDump_ChannelReceivedEntry: MessageFns<ContinueAsNewDump_ChannelReceivedEntry>;
2041
- export declare const ContinueAsNewInput: MessageFns<ContinueAsNewInput>;
2042
- export declare const InterpreterWorkflowInput: MessageFns<InterpreterWorkflowInput>;
2043
- export declare const InterpreterWorkflowOutput: MessageFns<InterpreterWorkflowOutput>;
2044
- export declare const BlobStoreCleanupWorkflowInput: MessageFns<BlobStoreCleanupWorkflowInput>;
2045
- export declare const BlobStoreCleanupWorkflowOutput: MessageFns<BlobStoreCleanupWorkflowOutput>;
2046
- export declare const InvokeWaitForMethodActivityInput: MessageFns<InvokeWaitForMethodActivityInput>;
2047
- export declare const InvokeWaitForMethodActivityOutput: MessageFns<InvokeWaitForMethodActivityOutput>;
2048
- export declare const InvokeExecuteMethodActivityInput: MessageFns<InvokeExecuteMethodActivityInput>;
2049
1592
  export declare const RecoveryErrorInfo: MessageFns<RecoveryErrorInfo>;
2050
- export declare const InternalLocalStepActivityFailure: MessageFns<InternalLocalStepActivityFailure>;
2051
- export declare const InvokeExecuteMethodActivityOutput: MessageFns<InvokeExecuteMethodActivityOutput>;
2052
- export declare const DumpFlowForContinueAsNewActivityInput: MessageFns<DumpFlowForContinueAsNewActivityInput>;
2053
- export declare const DumpFlowForContinueAsNewActivityOutput: MessageFns<DumpFlowForContinueAsNewActivityOutput>;
2054
- export declare const InvokeWorkerRPCActivityInput: MessageFns<InvokeWorkerRPCActivityInput>;
2055
- export declare const InvokeWorkerRPCActivityOutput: MessageFns<InvokeWorkerRPCActivityOutput>;
2056
- export declare const CleanupBlobStoreActivityInput: MessageFns<CleanupBlobStoreActivityInput>;
2057
- export declare const CleanupBlobStoreActivityOutput: MessageFns<CleanupBlobStoreActivityOutput>;
2058
1593
  export declare const AttributeSyncItem: MessageFns<AttributeSyncItem>;
2059
- export declare const SyncAttributeBatchActivityInput: MessageFns<SyncAttributeBatchActivityInput>;
2060
- export declare const StartSubFlowActivityInput: MessageFns<StartSubFlowActivityInput>;
2061
- export declare const StartSubFlowActivityOutput: MessageFns<StartSubFlowActivityOutput>;
2062
- export declare const SubFlowCompletionSignalRequest: MessageFns<SubFlowCompletionSignalRequest>;
2063
- export declare const ReportSubFlowCompletionActivityInput: MessageFns<ReportSubFlowCompletionActivityInput>;
2064
- export declare const ReportSubFlowCompletionActivityOutput: MessageFns<ReportSubFlowCompletionActivityOutput>;
2065
- export declare const ExecuteRpcSignalRequest: MessageFns<ExecuteRpcSignalRequest>;
2066
- export declare const SkipTimerSignalRequest: MessageFns<SkipTimerSignalRequest>;
2067
- export declare const StopFlowSignalRequest: MessageFns<StopFlowSignalRequest>;
2068
- export declare const GetAttributesQueryRequest: MessageFns<GetAttributesQueryRequest>;
2069
- export declare const GetAttributesQueryResponse: MessageFns<GetAttributesQueryResponse>;
2070
- export declare const PrepareRpcQueryRequest: MessageFns<PrepareRpcQueryRequest>;
2071
- export declare const PrepareRpcQueryResponse: MessageFns<PrepareRpcQueryResponse>;
2072
- export declare const PrepareRpcQueryResponse_ChannelInfosEntry: MessageFns<PrepareRpcQueryResponse_ChannelInfosEntry>;
2073
- export declare const PrepareRpcQueryResponse_LoadedChannelMessagesEntry: MessageFns<PrepareRpcQueryResponse_LoadedChannelMessagesEntry>;
2074
1594
  export declare const TimerInfo: MessageFns<TimerInfo>;
2075
- export declare const TimerInfoList: MessageFns<TimerInfoList>;
2076
- export declare const GetCurrentTimerInfosQueryResponse: MessageFns<GetCurrentTimerInfosQueryResponse>;
2077
- export declare const GetCurrentTimerInfosQueryResponse_StepExecutionCurrentTimerInfosEntry: MessageFns<GetCurrentTimerInfosQueryResponse_StepExecutionCurrentTimerInfosEntry>;
2078
- export declare const GetScheduledGreedyTimerTimesQueryResponse: MessageFns<GetScheduledGreedyTimerTimesQueryResponse>;
2079
- export declare const DebugDumpResponse: MessageFns<DebugDumpResponse>;
2080
- export declare const InvokeRpcUpdateResult: MessageFns<InvokeRpcUpdateResult>;
2081
- export declare const StepExecutionNumbers: MessageFns<StepExecutionNumbers>;
2082
1595
  /** Hosted by Dex server; SDKs call these RPCs. */
2083
1596
  export type FlowServiceService = typeof FlowServiceService;
2084
1597
  export declare const FlowServiceService: {
@@ -2308,7 +1821,7 @@ export declare const FlowServiceService: {
2308
1821
  readonly responseSerialize: (value: WaitForAttributeResponse) => Buffer;
2309
1822
  readonly responseDeserialize: (value: Buffer) => WaitForAttributeResponse;
2310
1823
  };
2311
- /** server-zd returns UNIMPLEMENTED. */
1824
+ /** Deprecated: Dex does not continue Flows as new. This RPC always returns UNIMPLEMENTED. */
2312
1825
  readonly triggerContinueAsNew: {
2313
1826
  readonly path: "/dex.FlowService/TriggerContinueAsNew";
2314
1827
  readonly requestStream: false;
@@ -2355,7 +1868,7 @@ export interface FlowServiceServer extends UntypedServiceImplementation {
2355
1868
  updateFlowConfig: handleUnaryCall<UpdateFlowConfigRequest, Empty>;
2356
1869
  waitForStepCompletion: handleUnaryCall<WaitForStepCompletionRequest, WaitForStepCompletionResponse>;
2357
1870
  waitForAttribute: handleUnaryCall<WaitForAttributeRequest, WaitForAttributeResponse>;
2358
- /** server-zd returns UNIMPLEMENTED. */
1871
+ /** Deprecated: Dex does not continue Flows as new. This RPC always returns UNIMPLEMENTED. */
2359
1872
  triggerContinueAsNew: handleUnaryCall<TriggerContinueAsNewRequest, Empty>;
2360
1873
  healthCheck: handleUnaryCall<Empty, HealthInfo>;
2361
1874
  }
@@ -2436,7 +1949,7 @@ export interface FlowServiceClient extends Client {
2436
1949
  waitForAttribute(request: WaitForAttributeRequest, callback: (error: ServiceError | null, response: WaitForAttributeResponse) => void): ClientUnaryCall;
2437
1950
  waitForAttribute(request: WaitForAttributeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: WaitForAttributeResponse) => void): ClientUnaryCall;
2438
1951
  waitForAttribute(request: WaitForAttributeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: WaitForAttributeResponse) => void): ClientUnaryCall;
2439
- /** server-zd returns UNIMPLEMENTED. */
1952
+ /** Deprecated: Dex does not continue Flows as new. This RPC always returns UNIMPLEMENTED. */
2440
1953
  triggerContinueAsNew(request: TriggerContinueAsNewRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
2441
1954
  triggerContinueAsNew(request: TriggerContinueAsNewRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
2442
1955
  triggerContinueAsNew(request: TriggerContinueAsNewRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
@@ -2450,8 +1963,8 @@ export declare const FlowServiceClient: {
2450
1963
  serviceName: string;
2451
1964
  };
2452
1965
  /**
2453
- * Hosted by Dex worker; server calls these RPCs.
2454
- * server-zd supports only pull Workers and never calls WorkerService.
1966
+ * Describes the Step and RPC calls a Worker serves.
1967
+ * Dex delivers them over WorkerTaskService and never dials Workers.
2455
1968
  */
2456
1969
  export type WorkerServiceService = typeof WorkerServiceService;
2457
1970
  export declare const WorkerServiceService: {
@@ -2531,82 +2044,6 @@ export declare const WorkerTaskServiceClient: {
2531
2044
  service: typeof WorkerTaskServiceService;
2532
2045
  serviceName: string;
2533
2046
  };
2534
- /**
2535
- * Hosted on the internal listener; server instances route tasks and Worker streams to queue owners.
2536
- * Go Server internals; server-zd does not serve or persist them.
2537
- */
2538
- export type MatchingServiceService = typeof MatchingServiceService;
2539
- export declare const MatchingServiceService: {
2540
- /** Streams Worker output frames and a final result or dispatch error. */
2541
- readonly dispatchTask: {
2542
- readonly path: "/dex.MatchingService/DispatchTask";
2543
- readonly requestStream: false;
2544
- readonly responseStream: true;
2545
- readonly requestSerialize: (value: DispatchTaskRequest) => Buffer;
2546
- readonly requestDeserialize: (value: Buffer) => DispatchTaskRequest;
2547
- readonly responseSerialize: (value: DispatchTaskResponse) => Buffer;
2548
- readonly responseDeserialize: (value: Buffer) => DispatchTaskResponse;
2549
- };
2550
- /** Proxies a Worker's queue stream from its receiving instance to the queue owner. */
2551
- readonly forwardPollWorkerTask: {
2552
- readonly path: "/dex.MatchingService/ForwardPollWorkerTask";
2553
- readonly requestStream: true;
2554
- readonly responseStream: true;
2555
- readonly requestSerialize: (value: PollWorkerTaskRequest) => Buffer;
2556
- readonly requestDeserialize: (value: Buffer) => PollWorkerTaskRequest;
2557
- readonly responseSerialize: (value: PollWorkerTaskResponse) => Buffer;
2558
- readonly responseDeserialize: (value: Buffer) => PollWorkerTaskResponse;
2559
- };
2560
- };
2561
- export interface MatchingServiceServer extends UntypedServiceImplementation {
2562
- /** Streams Worker output frames and a final result or dispatch error. */
2563
- dispatchTask: handleServerStreamingCall<DispatchTaskRequest, DispatchTaskResponse>;
2564
- /** Proxies a Worker's queue stream from its receiving instance to the queue owner. */
2565
- forwardPollWorkerTask: handleBidiStreamingCall<PollWorkerTaskRequest, PollWorkerTaskResponse>;
2566
- }
2567
- export interface MatchingServiceClient extends Client {
2568
- /** Streams Worker output frames and a final result or dispatch error. */
2569
- dispatchTask(request: DispatchTaskRequest, options?: Partial<CallOptions>): ClientReadableStream<DispatchTaskResponse>;
2570
- dispatchTask(request: DispatchTaskRequest, metadata?: Metadata, options?: Partial<CallOptions>): ClientReadableStream<DispatchTaskResponse>;
2571
- /** Proxies a Worker's queue stream from its receiving instance to the queue owner. */
2572
- forwardPollWorkerTask(): ClientDuplexStream<PollWorkerTaskRequest, PollWorkerTaskResponse>;
2573
- forwardPollWorkerTask(options: Partial<CallOptions>): ClientDuplexStream<PollWorkerTaskRequest, PollWorkerTaskResponse>;
2574
- forwardPollWorkerTask(metadata: Metadata, options?: Partial<CallOptions>): ClientDuplexStream<PollWorkerTaskRequest, PollWorkerTaskResponse>;
2575
- }
2576
- export declare const MatchingServiceClient: {
2577
- new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): MatchingServiceClient;
2578
- service: typeof MatchingServiceService;
2579
- serviceName: string;
2580
- };
2581
- /**
2582
- * Server-internal only (interpreter CAN activity → API). Not SDK-facing.
2583
- * Go Server internals; server-zd does not serve or persist them.
2584
- */
2585
- export type InternalServiceService = typeof InternalServiceService;
2586
- export declare const InternalServiceService: {
2587
- readonly dumpFlowForContinueAsNew: {
2588
- readonly path: "/dex.InternalService/DumpFlowForContinueAsNew";
2589
- readonly requestStream: false;
2590
- readonly responseStream: false;
2591
- readonly requestSerialize: (value: ContinueAsNewDumpRequest) => Buffer;
2592
- readonly requestDeserialize: (value: Buffer) => ContinueAsNewDumpRequest;
2593
- readonly responseSerialize: (value: ContinueAsNewDumpResponse) => Buffer;
2594
- readonly responseDeserialize: (value: Buffer) => ContinueAsNewDumpResponse;
2595
- };
2596
- };
2597
- export interface InternalServiceServer extends UntypedServiceImplementation {
2598
- dumpFlowForContinueAsNew: handleUnaryCall<ContinueAsNewDumpRequest, ContinueAsNewDumpResponse>;
2599
- }
2600
- export interface InternalServiceClient extends Client {
2601
- dumpFlowForContinueAsNew(request: ContinueAsNewDumpRequest, callback: (error: ServiceError | null, response: ContinueAsNewDumpResponse) => void): ClientUnaryCall;
2602
- dumpFlowForContinueAsNew(request: ContinueAsNewDumpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ContinueAsNewDumpResponse) => void): ClientUnaryCall;
2603
- dumpFlowForContinueAsNew(request: ContinueAsNewDumpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ContinueAsNewDumpResponse) => void): ClientUnaryCall;
2604
- }
2605
- export declare const InternalServiceClient: {
2606
- new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): InternalServiceClient;
2607
- service: typeof InternalServiceService;
2608
- serviceName: string;
2609
- };
2610
2047
  type Builtin = Date | Function | Uint8Array | string | number | boolean | bigint | undefined;
2611
2048
  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 {
2612
2049
  $case: string;