@ferricstore/ferricstore 0.5.2 → 0.11.4

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.
Files changed (111) hide show
  1. package/README.md +44 -5
  2. package/dist/index.cjs +825 -298
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +90 -26
  5. package/dist/index.d.ts +90 -26
  6. package/dist/index.js +825 -298
  7. package/dist/index.js.map +1 -1
  8. package/docs/api/assets/hierarchy.js +1 -1
  9. package/docs/api/assets/navigation.js +1 -1
  10. package/docs/api/assets/search.js +1 -1
  11. package/docs/api/classes/ConnectionClosedError.html +1 -1
  12. package/docs/api/classes/FerricStoreClient.html +3 -3
  13. package/docs/api/classes/FerricStoreError.html +1 -1
  14. package/docs/api/classes/FlowAlreadyExistsError.html +1 -1
  15. package/docs/api/classes/FlowBatchError.html +1 -1
  16. package/docs/api/classes/FlowNotFoundError.html +1 -1
  17. package/docs/api/classes/FlowQueryError.html +1 -1
  18. package/docs/api/classes/FlowWrongStateError.html +1 -1
  19. package/docs/api/classes/InvalidCommandError.html +1 -1
  20. package/docs/api/classes/LeaseRenewalError.html +1 -1
  21. package/docs/api/classes/LockHeldError.html +1 -1
  22. package/docs/api/classes/LockNotOwnedError.html +1 -1
  23. package/docs/api/classes/OverloadedError.html +1 -1
  24. package/docs/api/classes/QueueCompletionError.html +1 -1
  25. package/docs/api/classes/RequestTimeoutError.html +1 -1
  26. package/docs/api/classes/RerouteError.html +1 -1
  27. package/docs/api/classes/StaleLeaseError.html +1 -1
  28. package/docs/api/classes/StalePolicyGenerationError.html +1 -1
  29. package/docs/api/hierarchy.html +1 -1
  30. package/docs/api/index.html +34 -5
  31. package/docs/api/interfaces/AdminListOptions.html +2 -2
  32. package/docs/api/interfaces/ApprovalListOptions.html +2 -2
  33. package/docs/api/interfaces/ApprovalRequestOptions.html +2 -2
  34. package/docs/api/interfaces/AttributeQueryOptions.html +2 -2
  35. package/docs/api/interfaces/AutoBatchOptions.html +2 -2
  36. package/docs/api/interfaces/BudgetCommitOptions.html +2 -2
  37. package/docs/api/interfaces/BudgetReserveOptions.html +2 -2
  38. package/docs/api/interfaces/CancelOptions.html +2 -2
  39. package/docs/api/interfaces/CircuitOpenOptions.html +2 -2
  40. package/docs/api/interfaces/ClaimDueOptions.html +3 -3
  41. package/docs/api/interfaces/ClaimHydrationItem.html +2 -2
  42. package/docs/api/interfaces/CompleteJobsAndClaimJobsResult.html +6 -6
  43. package/docs/api/interfaces/CompleteManyOptions.html +2 -2
  44. package/docs/api/interfaces/CompleteOptions.html +2 -2
  45. package/docs/api/interfaces/CompleteOutcome.html +1 -1
  46. package/docs/api/interfaces/CreateManyOptions.html +5 -5
  47. package/docs/api/interfaces/CreateOptions.html +3 -3
  48. package/docs/api/interfaces/EffectCompensateOptions.html +2 -2
  49. package/docs/api/interfaces/EffectConfirmOptions.html +2 -2
  50. package/docs/api/interfaces/EffectFailOptions.html +2 -2
  51. package/docs/api/interfaces/EffectReserveOptions.html +2 -2
  52. package/docs/api/interfaces/EffectStatusOptions.html +2 -2
  53. package/docs/api/interfaces/ExtendLeaseOptions.html +2 -2
  54. package/docs/api/interfaces/FailOptions.html +2 -2
  55. package/docs/api/interfaces/FailOutcome.html +1 -1
  56. package/docs/api/interfaces/FerricStoreClientFromUrlOptions.html +4 -4
  57. package/docs/api/interfaces/FerricStoreClientOptions.html +4 -4
  58. package/docs/api/interfaces/FlowBatchCompletedItem.html +2 -2
  59. package/docs/api/interfaces/FlowPolicyOptions.html +5 -5
  60. package/docs/api/interfaces/FlowQueryCountResult.html +1 -1
  61. package/docs/api/interfaces/FlowQueryIndexBuild.html +1 -1
  62. package/docs/api/interfaces/FlowQueryIndexProgress.html +1 -1
  63. package/docs/api/interfaces/FlowQueryIndexValidation.html +1 -1
  64. package/docs/api/interfaces/FlowQueryRecordsResult.html +1 -1
  65. package/docs/api/interfaces/FlowStatePolicy.html +2 -2
  66. package/docs/api/interfaces/FlowStatsOptions.html +2 -2
  67. package/docs/api/interfaces/GovernanceLedgerOptions.html +2 -2
  68. package/docs/api/interfaces/HistoryOptions.html +2 -2
  69. package/docs/api/interfaces/InvocationCreateOptions.html +2 -2
  70. package/docs/api/interfaces/LeaseMutationOptions.html +2 -2
  71. package/docs/api/interfaces/LimitAmountOptions.html +2 -2
  72. package/docs/api/interfaces/LimitLeaseOptions.html +2 -2
  73. package/docs/api/interfaces/LimitListOptions.html +2 -2
  74. package/docs/api/interfaces/LimitReleaseOptions.html +2 -2
  75. package/docs/api/interfaces/MutateOptions.html +2 -2
  76. package/docs/api/interfaces/NamedValueMutation.html +1 -1
  77. package/docs/api/interfaces/ReadOptions.html +3 -3
  78. package/docs/api/interfaces/ReclaimOptions.html +2 -2
  79. package/docs/api/interfaces/RequestContext.html +2 -2
  80. package/docs/api/interfaces/RequestContextOptions.html +2 -2
  81. package/docs/api/interfaces/RetryOptions.html +2 -2
  82. package/docs/api/interfaces/RetryOutcome.html +1 -1
  83. package/docs/api/interfaces/RunStepsItem.html +2 -2
  84. package/docs/api/interfaces/RunStepsManyOptions.html +2 -2
  85. package/docs/api/interfaces/ScheduleFireDueOptions.html +3 -2
  86. package/docs/api/interfaces/ScheduleFireOptions.html +3 -0
  87. package/docs/api/interfaces/ScheduleListOptions.html +2 -2
  88. package/docs/api/interfaces/ScheduleOptions.html +4 -2
  89. package/docs/api/interfaces/SearchOptions.html +3 -3
  90. package/docs/api/interfaces/StartAndClaimOptions.html +3 -3
  91. package/docs/api/interfaces/StepContinueOptions.html +3 -3
  92. package/docs/api/interfaces/TDigestCreateOptions.html +1 -1
  93. package/docs/api/interfaces/TDigestMergeOptions.html +1 -1
  94. package/docs/api/interfaces/TransitionOptions.html +2 -2
  95. package/docs/api/interfaces/TransitionOutcome.html +1 -1
  96. package/docs/api/modules.html +1 -1
  97. package/docs/api/types/ConnectionRequestDisposition.html +1 -1
  98. package/docs/api/types/FlowStateMode.html +1 -1
  99. package/docs/api/types/FlowStatePolicyLike.html +1 -1
  100. package/docs/api/types/ManagementPairs.html +1 -1
  101. package/docs/api/types/ScheduleCatchupPolicy.html +2 -0
  102. package/docs/api/types/ScheduleFireDueResult.html +3 -0
  103. package/docs/api/types/ScheduleFireResult.html +2 -0
  104. package/docs/api/types/ScheduleKind.html +1 -0
  105. package/docs/api/types/ScheduleOverlapPolicy.html +1 -0
  106. package/docs/api/types/ScheduleRecord.html +12 -0
  107. package/docs/api/types/ScheduleState.html +1 -0
  108. package/docs/api/types/SearchStateMeta.html +1 -1
  109. package/docs/api/variables/FERRICSTORE_MINIMUM_SERVER_VERSION.html +1 -1
  110. package/docs/api/variables/FERRICSTORE_SDK_VERSION.html +1 -1
  111. package/package.json +2 -2
package/dist/index.d.cts CHANGED
@@ -681,6 +681,63 @@ interface FlowRecord<TPayload = unknown> {
681
681
  }
682
682
 
683
683
  type FlowAdminRecord = Record<string, unknown>;
684
+ /** Bounded interval recovery; missed occurrences are coalesced into one fire. */
685
+ type ScheduleCatchupPolicy = "fire_once";
686
+ type ScheduleKind = "one_shot" | "delay" | "interval" | "cron";
687
+ type ScheduleState = "active" | "paused" | "running" | "completed" | "failed" | "cancelled";
688
+ type ScheduleOverlapPolicy = "allow" | "skip" | "queue_after_previous" | "fail_schedule";
689
+ /** Canonical durable schedule returned by create, get, pause, resume, and list. */
690
+ type ScheduleRecord = FlowAdminRecord & {
691
+ id: string;
692
+ kind: ScheduleKind;
693
+ state: ScheduleState;
694
+ target: Record<string, unknown>;
695
+ created_at_ms: number;
696
+ /** Interval period, or `null` for non-interval schedules. */
697
+ every_ms: number | null;
698
+ /** Cron expression, or `null` for non-cron schedules. */
699
+ cron: string | null;
700
+ /** IANA timezone, or `null` for non-cron schedules. */
701
+ timezone: string | null;
702
+ /** `fire_once` for interval schedules and `null` for other kinds. */
703
+ catchup_policy: ScheduleCatchupPolicy | null;
704
+ /** Cumulative elapsed interval occurrences intentionally not replayed. */
705
+ coalesced_count: number;
706
+ /** Wall-clock recovery time of the latest bounded catch-up. */
707
+ last_catchup_at_ms?: number | null;
708
+ /** Occurrences coalesced by the latest recovery fire. */
709
+ last_coalesced_count: number;
710
+ /** Actionable recurrence error when `end_reason` is `planning_failed`. */
711
+ last_planning_error?: string | null;
712
+ overlap_policy: ScheduleOverlapPolicy;
713
+ /** Optional retry override for `queue_after_previous`. */
714
+ overlap_retry_ms: number | null;
715
+ next_run_at_ms?: number | null;
716
+ /** Targets actually created; coalesced occurrences are excluded. */
717
+ fire_count: number;
718
+ attempts: number;
719
+ skipped_count: number;
720
+ };
721
+ /** Aggregate outcome from one bounded due-schedule claim batch. */
722
+ type ScheduleFireDueResult = FlowAdminRecord & {
723
+ claimed: number;
724
+ fired: number;
725
+ skipped: number;
726
+ coalesced: number;
727
+ errors: [string, string][];
728
+ /** Batch-level failure encountered while requesting a later claim wave. */
729
+ claim_error?: string | null;
730
+ last_target_id?: string;
731
+ last_skip_reason?: string;
732
+ };
733
+ /** Outcome from one explicit schedule fire and its canonical schedule state. */
734
+ type ScheduleFireResult = FlowAdminRecord & {
735
+ fired: 0 | 1;
736
+ skipped: 0 | 1;
737
+ target_id?: string;
738
+ reason?: string;
739
+ schedule: ScheduleRecord;
740
+ };
684
741
  interface FlowStatsOptions {
685
742
  state?: string;
686
743
  partitionKey?: string;
@@ -696,14 +753,16 @@ interface AttributeQueryOptions {
696
753
  }
697
754
  interface ScheduleOptions {
698
755
  target: Record<string, unknown>;
699
- kind?: string;
756
+ kind?: ScheduleKind;
700
757
  atMs?: number;
701
758
  delayMs?: number;
702
759
  startAtMs?: number;
703
760
  everyMs?: number;
704
761
  cron?: string;
705
762
  timezone?: string;
706
- overlapPolicy?: string;
763
+ /** Interval-only recovery policy. Defaults to `fire_once`. */
764
+ catchupPolicy?: ScheduleCatchupPolicy;
765
+ overlapPolicy?: ScheduleOverlapPolicy;
707
766
  overlapRetryMs?: number;
708
767
  maxFires?: number;
709
768
  endAtMs?: number;
@@ -712,8 +771,8 @@ interface ScheduleOptions {
712
771
  extraOptions?: Record<string, CommandArgument>;
713
772
  }
714
773
  interface ScheduleListOptions {
715
- kind?: string;
716
- state?: string;
774
+ kind?: ScheduleKind;
775
+ state?: ScheduleState | "all";
717
776
  timezone?: string;
718
777
  targetType?: string;
719
778
  fromMs?: number;
@@ -724,9 +783,14 @@ interface ScheduleListOptions {
724
783
  interface ScheduleFireDueOptions {
725
784
  nowMs?: number;
726
785
  worker?: string;
786
+ leaseMs?: number;
727
787
  blockMs?: number;
728
788
  limit?: number;
729
789
  }
790
+ interface ScheduleFireOptions {
791
+ fireAtMs?: number;
792
+ nowMs?: number;
793
+ }
730
794
  interface EffectReserveOptions {
731
795
  partitionKey?: string;
732
796
  leaseToken?: Buffer;
@@ -1954,31 +2018,31 @@ declare class FerricStoreClientCore extends FerricStoreAdministrationClient {
1954
2018
  }): Promise<boolean>;
1955
2019
  }
1956
2020
 
1957
- /** @internal Administrative and governance commands kept off the primary Flow client surface. */
1958
- declare class FerricStoreManagementClient extends FerricStoreClientCore {
1959
- stats(type: string, options?: FlowStatsOptions): Promise<FlowAdminRecord>;
1960
- countByState(type: string, state: string, options?: Omit<FlowStatsOptions, "state" | "count">): Promise<number>;
1961
- attributes(type: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
1962
- attributeValues(type: string, attribute: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
1963
- scheduleCreate(id: string, options: ScheduleOptions): Promise<FlowAdminRecord>;
1964
- scheduleGet(id: string, options?: {
1965
- nowMs?: number;
1966
- }): Promise<FlowAdminRecord | null>;
1967
- scheduleFire(id: string, options?: {
1968
- nowMs?: number;
1969
- }): Promise<FlowAdminRecord>;
2021
+ /** @internal Schedule management surface shared by the complete Flow client. */
2022
+ declare class FerricStoreScheduleClient extends FerricStoreClientCore {
2023
+ scheduleCreate(id: string, options: ScheduleOptions): Promise<ScheduleRecord>;
2024
+ scheduleGet(id: string): Promise<ScheduleRecord | null>;
2025
+ scheduleFire(id: string, options?: ScheduleFireOptions): Promise<ScheduleFireResult>;
1970
2026
  schedulePause(id: string, options?: {
1971
2027
  nowMs?: number;
1972
- }): Promise<FlowAdminRecord>;
2028
+ }): Promise<ScheduleRecord>;
1973
2029
  scheduleResume(id: string, options?: {
1974
2030
  nowMs?: number;
1975
- }): Promise<FlowAdminRecord>;
2031
+ }): Promise<ScheduleRecord>;
1976
2032
  scheduleDelete(id: string, options?: {
1977
2033
  nowMs?: number;
1978
- }): Promise<FlowAdminRecord>;
1979
- scheduleFireDue(options?: ScheduleFireDueOptions): Promise<FlowAdminRecord>;
1980
- scheduleList(options?: ScheduleListOptions): Promise<FlowAdminRecord[]>;
1981
- private scheduleStatus;
2034
+ }): Promise<void>;
2035
+ scheduleFireDue(options?: ScheduleFireDueOptions): Promise<ScheduleFireDueResult>;
2036
+ scheduleList(options?: ScheduleListOptions): Promise<ScheduleRecord[]>;
2037
+ private scheduleStatusResponse;
2038
+ }
2039
+
2040
+ /** @internal Administrative and governance commands kept off the primary Flow client surface. */
2041
+ declare class FerricStoreManagementClient extends FerricStoreScheduleClient {
2042
+ stats(type: string, options?: FlowStatsOptions): Promise<FlowAdminRecord>;
2043
+ countByState(type: string, state: string, options?: Omit<FlowStatsOptions, "state" | "count">): Promise<number>;
2044
+ attributes(type: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
2045
+ attributeValues(type: string, attribute: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
1982
2046
  effectReserve(id: string, effectKey: string, effectType: string, options: EffectReserveOptions): Promise<FlowAdminRecord>;
1983
2047
  effectConfirm(id: string, effectKey: string, options?: EffectConfirmOptions): Promise<FlowAdminRecord>;
1984
2048
  effectFail(id: string, effectKey: string, options?: EffectFailOptions): Promise<FlowAdminRecord>;
@@ -2652,13 +2716,13 @@ declare class WorkflowWorker {
2652
2716
  }
2653
2717
 
2654
2718
  /** TypeScript SDK package version. */
2655
- declare const FERRICSTORE_SDK_VERSION = "0.5.2";
2719
+ declare const FERRICSTORE_SDK_VERSION = "0.11.4";
2656
2720
  /** Oldest FerricStore server supported by this breaking beta contract. */
2657
- declare const FERRICSTORE_MINIMUM_SERVER_VERSION = "0.11.0";
2721
+ declare const FERRICSTORE_MINIMUM_SERVER_VERSION = "0.11.4";
2658
2722
  /** Native framing and opcode ABI version; unchanged by FerricStore 0.11. */
2659
2723
  declare const FERRICSTORE_NATIVE_PROTOCOL_VERSION = 1;
2660
2724
 
2661
2725
  /** @deprecated Use RequestDisposition; retained for source compatibility. */
2662
2726
  type ConnectionRequestDisposition = RequestDisposition;
2663
2727
 
2664
- export { type AdminListOptions, type ApprovalListOptions, type ApprovalRequestOptions, type AttributeQueryOptions, type AutoBatchOptions, type BackoffKind, type BackpressurePolicy, BitmapStore, BloomFilterStore, type BudgetCommitOptions, type BudgetReserveOptions, COMMAND_OPCODES, type CancelOptions, type ChildSpec, type CircuitOpenOptions, type ClaimDueOptions, ClaimHydrationError, type ClaimHydrationItem, type ClaimedItem, type Codec, type CollectionScanOptions, type Command, type CommandArgument, type CommandExecutor, type CompleteJobsAndClaimJobsResult, type CompleteManyOptions, type CompleteOptions, type CompleteOutcome, ConnectionClosedError, type ConnectionRequestDisposition, type CountMinMergeOptions, CountMinSketchStore, type CreateItem, type CreateManyOptions, type CreateOptions, CuckooFilterStore, type EffectCompensateOptions, type EffectConfirmOptions, type EffectFailOptions, type EffectReserveOptions, type EffectStatusOptions, type EndpointPolicy, type ExceptionPolicy, type ExecutePipelineOptions, type ExpiryCondition, type ExtendLeaseOptions, FERRICSTORE_MINIMUM_SERVER_VERSION, FERRICSTORE_NATIVE_PROTOCOL_VERSION, FERRICSTORE_SDK_VERSION, type FailOptions, type FailOutcome, type FencedItem, type FencingToken, FerricStoreClient, type FerricStoreClientFromUrlOptions, type FerricStoreClientOptions, FerricStoreError, type FetchOrComputeComputeResult, type FetchOrComputeFencedResult, type FetchOrComputeHitResult, type FetchOrComputeResult, type FlowAdminRecord, FlowAlreadyExistsError, type FlowBatchCompletedItem, FlowBatchError, type FlowEventProjectionField, type FlowExplainCapabilities, type FlowExplainResult, type FlowMaxActiveFailure, FlowNotFoundError, type FlowPolicyBackoffKind, type FlowPolicyBackoffSnapshot, type FlowPolicyOptions, type FlowPolicyRetentionSnapshot, type FlowPolicyRetrySnapshot, type FlowPolicySnapshot, type FlowPolicyStateSnapshot, FlowProjection, type FlowProjectionField, type FlowProjectionShape, type FlowQueryCountResult, FlowQueryError, type FlowQueryErrorPosition, type FlowQueryIndex, type FlowQueryIndexBuild, type FlowQueryIndexCoverage, type FlowQueryIndexField, type FlowQueryIndexFormat, type FlowQueryIndexProgress, type FlowQueryIndexRegistry, type FlowQueryIndexRetirement, type FlowQueryIndexServiceState, type FlowQueryIndexServices, type FlowQueryIndexStatistics, type FlowQueryIndexStatus, type FlowQueryIndexValidation, type FlowQueryInteger, type FlowQueryPage, type FlowQueryParameter, type FlowQueryParameters, type FlowQueryQuality, type FlowQueryRecord, type FlowQueryRecordsResult, type FlowQueryResult, type FlowQueryUsage, type FlowRecord, type FlowRunProjectionField, type FlowStateMode, type FlowStatePolicy, type FlowStatePolicyLike, type FlowStatsOptions, FlowWrongStateError, type GeoAddOptions, type GeoMember, GeoStore, type GetExOptions, type GovernanceLedgerOptions, type HashScanResult, HashStore, type HistoryOptions, HyperLogLogStore, type IntegerReply, InvalidCommandError, type InvocationCreateOptions, JsonCodec, type KeyInfo, KeyValueStore, type LeaseMutationOptions, LeaseRenewalError, type LimitAmountOptions, type LimitLeaseOptions, type LimitListOptions, type LimitReleaseOptions, ListStore, LockHeldError, LockNotOwnedError, MAX_FLOW_POLICY_GENERATION, type ManagementPairs, type MaxActiveMs, type MutateOptions, type NamedValueMutation, NativeAdapter, type NativeAdapterOptions, type NativeClientOptions, type NativeProtocolEvent, type Outcome, OverloadedError, type ProtocolCommand, Queue, type QueueBatchHandler, QueueClient, QueueCompletionError, type QueueHandler, type QueueJob, type QueueOptions, QueueWorker, type QueueWorkerResult, type RangeLimit, type RateLimitResult, RawCodec, type ReadOptions, type ReclaimOptions, type ReconnectOptions, ReconnectingExecutor, type RequestContext, type RequestContextOptions, type RequestDisposition, RequestTimeoutError, RerouteError, type RetryOptions, type RetryOutcome, type RetryPolicy, type RoutingEndpoint, type RoutingRoute, RoutingTopology, type RunStepsItem, type RunStepsManyOptions, type ScanOptions, type ScheduleFireDueOptions, type ScheduleListOptions, type ScheduleOptions, type SearchOptions, type SearchStateMeta, type SetOptions, type SetScanResult, SetStore, type SortedSetScanResult, SortedSetStore, StaleLeaseError, StalePolicyGenerationError, type StartAndClaimOptions, type StateMeta, type StateMetaValue, type StateOptions, type StateRegistration, type StepContinueOptions, type StoreCommandClient, StreamStore, type TDigestCreateOptions, type TDigestMergeOptions, TDigestStore, type TopKReserveOptions, TopKStore, type TopologyNativeAdapterOptions, TopologyNativeAdapterPool, type TransitionOptions, type TransitionOutcome, type ValueConfig, type WorkerConfig, type WorkerProfile, type WorkerRefillStrategy, Workflow, WorkflowClient, WorkflowContext, WorkflowFlowCommands, type WorkflowHandler, type WorkflowOptions, WorkflowWorker, type WorkflowWorkerResult, type XReadStream, type ZAddMember, type ZAddOptions, classifyServerError, complete, fail, isOutcome, isReconnectableClosedConnectionError, mapException, projectFlowQuery, retry, transition };
2728
+ export { type AdminListOptions, type ApprovalListOptions, type ApprovalRequestOptions, type AttributeQueryOptions, type AutoBatchOptions, type BackoffKind, type BackpressurePolicy, BitmapStore, BloomFilterStore, type BudgetCommitOptions, type BudgetReserveOptions, COMMAND_OPCODES, type CancelOptions, type ChildSpec, type CircuitOpenOptions, type ClaimDueOptions, ClaimHydrationError, type ClaimHydrationItem, type ClaimedItem, type Codec, type CollectionScanOptions, type Command, type CommandArgument, type CommandExecutor, type CompleteJobsAndClaimJobsResult, type CompleteManyOptions, type CompleteOptions, type CompleteOutcome, ConnectionClosedError, type ConnectionRequestDisposition, type CountMinMergeOptions, CountMinSketchStore, type CreateItem, type CreateManyOptions, type CreateOptions, CuckooFilterStore, type EffectCompensateOptions, type EffectConfirmOptions, type EffectFailOptions, type EffectReserveOptions, type EffectStatusOptions, type EndpointPolicy, type ExceptionPolicy, type ExecutePipelineOptions, type ExpiryCondition, type ExtendLeaseOptions, FERRICSTORE_MINIMUM_SERVER_VERSION, FERRICSTORE_NATIVE_PROTOCOL_VERSION, FERRICSTORE_SDK_VERSION, type FailOptions, type FailOutcome, type FencedItem, type FencingToken, FerricStoreClient, type FerricStoreClientFromUrlOptions, type FerricStoreClientOptions, FerricStoreError, type FetchOrComputeComputeResult, type FetchOrComputeFencedResult, type FetchOrComputeHitResult, type FetchOrComputeResult, type FlowAdminRecord, FlowAlreadyExistsError, type FlowBatchCompletedItem, FlowBatchError, type FlowEventProjectionField, type FlowExplainCapabilities, type FlowExplainResult, type FlowMaxActiveFailure, FlowNotFoundError, type FlowPolicyBackoffKind, type FlowPolicyBackoffSnapshot, type FlowPolicyOptions, type FlowPolicyRetentionSnapshot, type FlowPolicyRetrySnapshot, type FlowPolicySnapshot, type FlowPolicyStateSnapshot, FlowProjection, type FlowProjectionField, type FlowProjectionShape, type FlowQueryCountResult, FlowQueryError, type FlowQueryErrorPosition, type FlowQueryIndex, type FlowQueryIndexBuild, type FlowQueryIndexCoverage, type FlowQueryIndexField, type FlowQueryIndexFormat, type FlowQueryIndexProgress, type FlowQueryIndexRegistry, type FlowQueryIndexRetirement, type FlowQueryIndexServiceState, type FlowQueryIndexServices, type FlowQueryIndexStatistics, type FlowQueryIndexStatus, type FlowQueryIndexValidation, type FlowQueryInteger, type FlowQueryPage, type FlowQueryParameter, type FlowQueryParameters, type FlowQueryQuality, type FlowQueryRecord, type FlowQueryRecordsResult, type FlowQueryResult, type FlowQueryUsage, type FlowRecord, type FlowRunProjectionField, type FlowStateMode, type FlowStatePolicy, type FlowStatePolicyLike, type FlowStatsOptions, FlowWrongStateError, type GeoAddOptions, type GeoMember, GeoStore, type GetExOptions, type GovernanceLedgerOptions, type HashScanResult, HashStore, type HistoryOptions, HyperLogLogStore, type IntegerReply, InvalidCommandError, type InvocationCreateOptions, JsonCodec, type KeyInfo, KeyValueStore, type LeaseMutationOptions, LeaseRenewalError, type LimitAmountOptions, type LimitLeaseOptions, type LimitListOptions, type LimitReleaseOptions, ListStore, LockHeldError, LockNotOwnedError, MAX_FLOW_POLICY_GENERATION, type ManagementPairs, type MaxActiveMs, type MutateOptions, type NamedValueMutation, NativeAdapter, type NativeAdapterOptions, type NativeClientOptions, type NativeProtocolEvent, type Outcome, OverloadedError, type ProtocolCommand, Queue, type QueueBatchHandler, QueueClient, QueueCompletionError, type QueueHandler, type QueueJob, type QueueOptions, QueueWorker, type QueueWorkerResult, type RangeLimit, type RateLimitResult, RawCodec, type ReadOptions, type ReclaimOptions, type ReconnectOptions, ReconnectingExecutor, type RequestContext, type RequestContextOptions, type RequestDisposition, RequestTimeoutError, RerouteError, type RetryOptions, type RetryOutcome, type RetryPolicy, type RoutingEndpoint, type RoutingRoute, RoutingTopology, type RunStepsItem, type RunStepsManyOptions, type ScanOptions, type ScheduleCatchupPolicy, type ScheduleFireDueOptions, type ScheduleFireDueResult, type ScheduleFireOptions, type ScheduleFireResult, type ScheduleKind, type ScheduleListOptions, type ScheduleOptions, type ScheduleOverlapPolicy, type ScheduleRecord, type ScheduleState, type SearchOptions, type SearchStateMeta, type SetOptions, type SetScanResult, SetStore, type SortedSetScanResult, SortedSetStore, StaleLeaseError, StalePolicyGenerationError, type StartAndClaimOptions, type StateMeta, type StateMetaValue, type StateOptions, type StateRegistration, type StepContinueOptions, type StoreCommandClient, StreamStore, type TDigestCreateOptions, type TDigestMergeOptions, TDigestStore, type TopKReserveOptions, TopKStore, type TopologyNativeAdapterOptions, TopologyNativeAdapterPool, type TransitionOptions, type TransitionOutcome, type ValueConfig, type WorkerConfig, type WorkerProfile, type WorkerRefillStrategy, Workflow, WorkflowClient, WorkflowContext, WorkflowFlowCommands, type WorkflowHandler, type WorkflowOptions, WorkflowWorker, type WorkflowWorkerResult, type XReadStream, type ZAddMember, type ZAddOptions, classifyServerError, complete, fail, isOutcome, isReconnectableClosedConnectionError, mapException, projectFlowQuery, retry, transition };
package/dist/index.d.ts CHANGED
@@ -681,6 +681,63 @@ interface FlowRecord<TPayload = unknown> {
681
681
  }
682
682
 
683
683
  type FlowAdminRecord = Record<string, unknown>;
684
+ /** Bounded interval recovery; missed occurrences are coalesced into one fire. */
685
+ type ScheduleCatchupPolicy = "fire_once";
686
+ type ScheduleKind = "one_shot" | "delay" | "interval" | "cron";
687
+ type ScheduleState = "active" | "paused" | "running" | "completed" | "failed" | "cancelled";
688
+ type ScheduleOverlapPolicy = "allow" | "skip" | "queue_after_previous" | "fail_schedule";
689
+ /** Canonical durable schedule returned by create, get, pause, resume, and list. */
690
+ type ScheduleRecord = FlowAdminRecord & {
691
+ id: string;
692
+ kind: ScheduleKind;
693
+ state: ScheduleState;
694
+ target: Record<string, unknown>;
695
+ created_at_ms: number;
696
+ /** Interval period, or `null` for non-interval schedules. */
697
+ every_ms: number | null;
698
+ /** Cron expression, or `null` for non-cron schedules. */
699
+ cron: string | null;
700
+ /** IANA timezone, or `null` for non-cron schedules. */
701
+ timezone: string | null;
702
+ /** `fire_once` for interval schedules and `null` for other kinds. */
703
+ catchup_policy: ScheduleCatchupPolicy | null;
704
+ /** Cumulative elapsed interval occurrences intentionally not replayed. */
705
+ coalesced_count: number;
706
+ /** Wall-clock recovery time of the latest bounded catch-up. */
707
+ last_catchup_at_ms?: number | null;
708
+ /** Occurrences coalesced by the latest recovery fire. */
709
+ last_coalesced_count: number;
710
+ /** Actionable recurrence error when `end_reason` is `planning_failed`. */
711
+ last_planning_error?: string | null;
712
+ overlap_policy: ScheduleOverlapPolicy;
713
+ /** Optional retry override for `queue_after_previous`. */
714
+ overlap_retry_ms: number | null;
715
+ next_run_at_ms?: number | null;
716
+ /** Targets actually created; coalesced occurrences are excluded. */
717
+ fire_count: number;
718
+ attempts: number;
719
+ skipped_count: number;
720
+ };
721
+ /** Aggregate outcome from one bounded due-schedule claim batch. */
722
+ type ScheduleFireDueResult = FlowAdminRecord & {
723
+ claimed: number;
724
+ fired: number;
725
+ skipped: number;
726
+ coalesced: number;
727
+ errors: [string, string][];
728
+ /** Batch-level failure encountered while requesting a later claim wave. */
729
+ claim_error?: string | null;
730
+ last_target_id?: string;
731
+ last_skip_reason?: string;
732
+ };
733
+ /** Outcome from one explicit schedule fire and its canonical schedule state. */
734
+ type ScheduleFireResult = FlowAdminRecord & {
735
+ fired: 0 | 1;
736
+ skipped: 0 | 1;
737
+ target_id?: string;
738
+ reason?: string;
739
+ schedule: ScheduleRecord;
740
+ };
684
741
  interface FlowStatsOptions {
685
742
  state?: string;
686
743
  partitionKey?: string;
@@ -696,14 +753,16 @@ interface AttributeQueryOptions {
696
753
  }
697
754
  interface ScheduleOptions {
698
755
  target: Record<string, unknown>;
699
- kind?: string;
756
+ kind?: ScheduleKind;
700
757
  atMs?: number;
701
758
  delayMs?: number;
702
759
  startAtMs?: number;
703
760
  everyMs?: number;
704
761
  cron?: string;
705
762
  timezone?: string;
706
- overlapPolicy?: string;
763
+ /** Interval-only recovery policy. Defaults to `fire_once`. */
764
+ catchupPolicy?: ScheduleCatchupPolicy;
765
+ overlapPolicy?: ScheduleOverlapPolicy;
707
766
  overlapRetryMs?: number;
708
767
  maxFires?: number;
709
768
  endAtMs?: number;
@@ -712,8 +771,8 @@ interface ScheduleOptions {
712
771
  extraOptions?: Record<string, CommandArgument>;
713
772
  }
714
773
  interface ScheduleListOptions {
715
- kind?: string;
716
- state?: string;
774
+ kind?: ScheduleKind;
775
+ state?: ScheduleState | "all";
717
776
  timezone?: string;
718
777
  targetType?: string;
719
778
  fromMs?: number;
@@ -724,9 +783,14 @@ interface ScheduleListOptions {
724
783
  interface ScheduleFireDueOptions {
725
784
  nowMs?: number;
726
785
  worker?: string;
786
+ leaseMs?: number;
727
787
  blockMs?: number;
728
788
  limit?: number;
729
789
  }
790
+ interface ScheduleFireOptions {
791
+ fireAtMs?: number;
792
+ nowMs?: number;
793
+ }
730
794
  interface EffectReserveOptions {
731
795
  partitionKey?: string;
732
796
  leaseToken?: Buffer;
@@ -1954,31 +2018,31 @@ declare class FerricStoreClientCore extends FerricStoreAdministrationClient {
1954
2018
  }): Promise<boolean>;
1955
2019
  }
1956
2020
 
1957
- /** @internal Administrative and governance commands kept off the primary Flow client surface. */
1958
- declare class FerricStoreManagementClient extends FerricStoreClientCore {
1959
- stats(type: string, options?: FlowStatsOptions): Promise<FlowAdminRecord>;
1960
- countByState(type: string, state: string, options?: Omit<FlowStatsOptions, "state" | "count">): Promise<number>;
1961
- attributes(type: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
1962
- attributeValues(type: string, attribute: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
1963
- scheduleCreate(id: string, options: ScheduleOptions): Promise<FlowAdminRecord>;
1964
- scheduleGet(id: string, options?: {
1965
- nowMs?: number;
1966
- }): Promise<FlowAdminRecord | null>;
1967
- scheduleFire(id: string, options?: {
1968
- nowMs?: number;
1969
- }): Promise<FlowAdminRecord>;
2021
+ /** @internal Schedule management surface shared by the complete Flow client. */
2022
+ declare class FerricStoreScheduleClient extends FerricStoreClientCore {
2023
+ scheduleCreate(id: string, options: ScheduleOptions): Promise<ScheduleRecord>;
2024
+ scheduleGet(id: string): Promise<ScheduleRecord | null>;
2025
+ scheduleFire(id: string, options?: ScheduleFireOptions): Promise<ScheduleFireResult>;
1970
2026
  schedulePause(id: string, options?: {
1971
2027
  nowMs?: number;
1972
- }): Promise<FlowAdminRecord>;
2028
+ }): Promise<ScheduleRecord>;
1973
2029
  scheduleResume(id: string, options?: {
1974
2030
  nowMs?: number;
1975
- }): Promise<FlowAdminRecord>;
2031
+ }): Promise<ScheduleRecord>;
1976
2032
  scheduleDelete(id: string, options?: {
1977
2033
  nowMs?: number;
1978
- }): Promise<FlowAdminRecord>;
1979
- scheduleFireDue(options?: ScheduleFireDueOptions): Promise<FlowAdminRecord>;
1980
- scheduleList(options?: ScheduleListOptions): Promise<FlowAdminRecord[]>;
1981
- private scheduleStatus;
2034
+ }): Promise<void>;
2035
+ scheduleFireDue(options?: ScheduleFireDueOptions): Promise<ScheduleFireDueResult>;
2036
+ scheduleList(options?: ScheduleListOptions): Promise<ScheduleRecord[]>;
2037
+ private scheduleStatusResponse;
2038
+ }
2039
+
2040
+ /** @internal Administrative and governance commands kept off the primary Flow client surface. */
2041
+ declare class FerricStoreManagementClient extends FerricStoreScheduleClient {
2042
+ stats(type: string, options?: FlowStatsOptions): Promise<FlowAdminRecord>;
2043
+ countByState(type: string, state: string, options?: Omit<FlowStatsOptions, "state" | "count">): Promise<number>;
2044
+ attributes(type: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
2045
+ attributeValues(type: string, attribute: string, options?: AttributeQueryOptions): Promise<FlowAdminRecord[]>;
1982
2046
  effectReserve(id: string, effectKey: string, effectType: string, options: EffectReserveOptions): Promise<FlowAdminRecord>;
1983
2047
  effectConfirm(id: string, effectKey: string, options?: EffectConfirmOptions): Promise<FlowAdminRecord>;
1984
2048
  effectFail(id: string, effectKey: string, options?: EffectFailOptions): Promise<FlowAdminRecord>;
@@ -2652,13 +2716,13 @@ declare class WorkflowWorker {
2652
2716
  }
2653
2717
 
2654
2718
  /** TypeScript SDK package version. */
2655
- declare const FERRICSTORE_SDK_VERSION = "0.5.2";
2719
+ declare const FERRICSTORE_SDK_VERSION = "0.11.4";
2656
2720
  /** Oldest FerricStore server supported by this breaking beta contract. */
2657
- declare const FERRICSTORE_MINIMUM_SERVER_VERSION = "0.11.0";
2721
+ declare const FERRICSTORE_MINIMUM_SERVER_VERSION = "0.11.4";
2658
2722
  /** Native framing and opcode ABI version; unchanged by FerricStore 0.11. */
2659
2723
  declare const FERRICSTORE_NATIVE_PROTOCOL_VERSION = 1;
2660
2724
 
2661
2725
  /** @deprecated Use RequestDisposition; retained for source compatibility. */
2662
2726
  type ConnectionRequestDisposition = RequestDisposition;
2663
2727
 
2664
- export { type AdminListOptions, type ApprovalListOptions, type ApprovalRequestOptions, type AttributeQueryOptions, type AutoBatchOptions, type BackoffKind, type BackpressurePolicy, BitmapStore, BloomFilterStore, type BudgetCommitOptions, type BudgetReserveOptions, COMMAND_OPCODES, type CancelOptions, type ChildSpec, type CircuitOpenOptions, type ClaimDueOptions, ClaimHydrationError, type ClaimHydrationItem, type ClaimedItem, type Codec, type CollectionScanOptions, type Command, type CommandArgument, type CommandExecutor, type CompleteJobsAndClaimJobsResult, type CompleteManyOptions, type CompleteOptions, type CompleteOutcome, ConnectionClosedError, type ConnectionRequestDisposition, type CountMinMergeOptions, CountMinSketchStore, type CreateItem, type CreateManyOptions, type CreateOptions, CuckooFilterStore, type EffectCompensateOptions, type EffectConfirmOptions, type EffectFailOptions, type EffectReserveOptions, type EffectStatusOptions, type EndpointPolicy, type ExceptionPolicy, type ExecutePipelineOptions, type ExpiryCondition, type ExtendLeaseOptions, FERRICSTORE_MINIMUM_SERVER_VERSION, FERRICSTORE_NATIVE_PROTOCOL_VERSION, FERRICSTORE_SDK_VERSION, type FailOptions, type FailOutcome, type FencedItem, type FencingToken, FerricStoreClient, type FerricStoreClientFromUrlOptions, type FerricStoreClientOptions, FerricStoreError, type FetchOrComputeComputeResult, type FetchOrComputeFencedResult, type FetchOrComputeHitResult, type FetchOrComputeResult, type FlowAdminRecord, FlowAlreadyExistsError, type FlowBatchCompletedItem, FlowBatchError, type FlowEventProjectionField, type FlowExplainCapabilities, type FlowExplainResult, type FlowMaxActiveFailure, FlowNotFoundError, type FlowPolicyBackoffKind, type FlowPolicyBackoffSnapshot, type FlowPolicyOptions, type FlowPolicyRetentionSnapshot, type FlowPolicyRetrySnapshot, type FlowPolicySnapshot, type FlowPolicyStateSnapshot, FlowProjection, type FlowProjectionField, type FlowProjectionShape, type FlowQueryCountResult, FlowQueryError, type FlowQueryErrorPosition, type FlowQueryIndex, type FlowQueryIndexBuild, type FlowQueryIndexCoverage, type FlowQueryIndexField, type FlowQueryIndexFormat, type FlowQueryIndexProgress, type FlowQueryIndexRegistry, type FlowQueryIndexRetirement, type FlowQueryIndexServiceState, type FlowQueryIndexServices, type FlowQueryIndexStatistics, type FlowQueryIndexStatus, type FlowQueryIndexValidation, type FlowQueryInteger, type FlowQueryPage, type FlowQueryParameter, type FlowQueryParameters, type FlowQueryQuality, type FlowQueryRecord, type FlowQueryRecordsResult, type FlowQueryResult, type FlowQueryUsage, type FlowRecord, type FlowRunProjectionField, type FlowStateMode, type FlowStatePolicy, type FlowStatePolicyLike, type FlowStatsOptions, FlowWrongStateError, type GeoAddOptions, type GeoMember, GeoStore, type GetExOptions, type GovernanceLedgerOptions, type HashScanResult, HashStore, type HistoryOptions, HyperLogLogStore, type IntegerReply, InvalidCommandError, type InvocationCreateOptions, JsonCodec, type KeyInfo, KeyValueStore, type LeaseMutationOptions, LeaseRenewalError, type LimitAmountOptions, type LimitLeaseOptions, type LimitListOptions, type LimitReleaseOptions, ListStore, LockHeldError, LockNotOwnedError, MAX_FLOW_POLICY_GENERATION, type ManagementPairs, type MaxActiveMs, type MutateOptions, type NamedValueMutation, NativeAdapter, type NativeAdapterOptions, type NativeClientOptions, type NativeProtocolEvent, type Outcome, OverloadedError, type ProtocolCommand, Queue, type QueueBatchHandler, QueueClient, QueueCompletionError, type QueueHandler, type QueueJob, type QueueOptions, QueueWorker, type QueueWorkerResult, type RangeLimit, type RateLimitResult, RawCodec, type ReadOptions, type ReclaimOptions, type ReconnectOptions, ReconnectingExecutor, type RequestContext, type RequestContextOptions, type RequestDisposition, RequestTimeoutError, RerouteError, type RetryOptions, type RetryOutcome, type RetryPolicy, type RoutingEndpoint, type RoutingRoute, RoutingTopology, type RunStepsItem, type RunStepsManyOptions, type ScanOptions, type ScheduleFireDueOptions, type ScheduleListOptions, type ScheduleOptions, type SearchOptions, type SearchStateMeta, type SetOptions, type SetScanResult, SetStore, type SortedSetScanResult, SortedSetStore, StaleLeaseError, StalePolicyGenerationError, type StartAndClaimOptions, type StateMeta, type StateMetaValue, type StateOptions, type StateRegistration, type StepContinueOptions, type StoreCommandClient, StreamStore, type TDigestCreateOptions, type TDigestMergeOptions, TDigestStore, type TopKReserveOptions, TopKStore, type TopologyNativeAdapterOptions, TopologyNativeAdapterPool, type TransitionOptions, type TransitionOutcome, type ValueConfig, type WorkerConfig, type WorkerProfile, type WorkerRefillStrategy, Workflow, WorkflowClient, WorkflowContext, WorkflowFlowCommands, type WorkflowHandler, type WorkflowOptions, WorkflowWorker, type WorkflowWorkerResult, type XReadStream, type ZAddMember, type ZAddOptions, classifyServerError, complete, fail, isOutcome, isReconnectableClosedConnectionError, mapException, projectFlowQuery, retry, transition };
2728
+ export { type AdminListOptions, type ApprovalListOptions, type ApprovalRequestOptions, type AttributeQueryOptions, type AutoBatchOptions, type BackoffKind, type BackpressurePolicy, BitmapStore, BloomFilterStore, type BudgetCommitOptions, type BudgetReserveOptions, COMMAND_OPCODES, type CancelOptions, type ChildSpec, type CircuitOpenOptions, type ClaimDueOptions, ClaimHydrationError, type ClaimHydrationItem, type ClaimedItem, type Codec, type CollectionScanOptions, type Command, type CommandArgument, type CommandExecutor, type CompleteJobsAndClaimJobsResult, type CompleteManyOptions, type CompleteOptions, type CompleteOutcome, ConnectionClosedError, type ConnectionRequestDisposition, type CountMinMergeOptions, CountMinSketchStore, type CreateItem, type CreateManyOptions, type CreateOptions, CuckooFilterStore, type EffectCompensateOptions, type EffectConfirmOptions, type EffectFailOptions, type EffectReserveOptions, type EffectStatusOptions, type EndpointPolicy, type ExceptionPolicy, type ExecutePipelineOptions, type ExpiryCondition, type ExtendLeaseOptions, FERRICSTORE_MINIMUM_SERVER_VERSION, FERRICSTORE_NATIVE_PROTOCOL_VERSION, FERRICSTORE_SDK_VERSION, type FailOptions, type FailOutcome, type FencedItem, type FencingToken, FerricStoreClient, type FerricStoreClientFromUrlOptions, type FerricStoreClientOptions, FerricStoreError, type FetchOrComputeComputeResult, type FetchOrComputeFencedResult, type FetchOrComputeHitResult, type FetchOrComputeResult, type FlowAdminRecord, FlowAlreadyExistsError, type FlowBatchCompletedItem, FlowBatchError, type FlowEventProjectionField, type FlowExplainCapabilities, type FlowExplainResult, type FlowMaxActiveFailure, FlowNotFoundError, type FlowPolicyBackoffKind, type FlowPolicyBackoffSnapshot, type FlowPolicyOptions, type FlowPolicyRetentionSnapshot, type FlowPolicyRetrySnapshot, type FlowPolicySnapshot, type FlowPolicyStateSnapshot, FlowProjection, type FlowProjectionField, type FlowProjectionShape, type FlowQueryCountResult, FlowQueryError, type FlowQueryErrorPosition, type FlowQueryIndex, type FlowQueryIndexBuild, type FlowQueryIndexCoverage, type FlowQueryIndexField, type FlowQueryIndexFormat, type FlowQueryIndexProgress, type FlowQueryIndexRegistry, type FlowQueryIndexRetirement, type FlowQueryIndexServiceState, type FlowQueryIndexServices, type FlowQueryIndexStatistics, type FlowQueryIndexStatus, type FlowQueryIndexValidation, type FlowQueryInteger, type FlowQueryPage, type FlowQueryParameter, type FlowQueryParameters, type FlowQueryQuality, type FlowQueryRecord, type FlowQueryRecordsResult, type FlowQueryResult, type FlowQueryUsage, type FlowRecord, type FlowRunProjectionField, type FlowStateMode, type FlowStatePolicy, type FlowStatePolicyLike, type FlowStatsOptions, FlowWrongStateError, type GeoAddOptions, type GeoMember, GeoStore, type GetExOptions, type GovernanceLedgerOptions, type HashScanResult, HashStore, type HistoryOptions, HyperLogLogStore, type IntegerReply, InvalidCommandError, type InvocationCreateOptions, JsonCodec, type KeyInfo, KeyValueStore, type LeaseMutationOptions, LeaseRenewalError, type LimitAmountOptions, type LimitLeaseOptions, type LimitListOptions, type LimitReleaseOptions, ListStore, LockHeldError, LockNotOwnedError, MAX_FLOW_POLICY_GENERATION, type ManagementPairs, type MaxActiveMs, type MutateOptions, type NamedValueMutation, NativeAdapter, type NativeAdapterOptions, type NativeClientOptions, type NativeProtocolEvent, type Outcome, OverloadedError, type ProtocolCommand, Queue, type QueueBatchHandler, QueueClient, QueueCompletionError, type QueueHandler, type QueueJob, type QueueOptions, QueueWorker, type QueueWorkerResult, type RangeLimit, type RateLimitResult, RawCodec, type ReadOptions, type ReclaimOptions, type ReconnectOptions, ReconnectingExecutor, type RequestContext, type RequestContextOptions, type RequestDisposition, RequestTimeoutError, RerouteError, type RetryOptions, type RetryOutcome, type RetryPolicy, type RoutingEndpoint, type RoutingRoute, RoutingTopology, type RunStepsItem, type RunStepsManyOptions, type ScanOptions, type ScheduleCatchupPolicy, type ScheduleFireDueOptions, type ScheduleFireDueResult, type ScheduleFireOptions, type ScheduleFireResult, type ScheduleKind, type ScheduleListOptions, type ScheduleOptions, type ScheduleOverlapPolicy, type ScheduleRecord, type ScheduleState, type SearchOptions, type SearchStateMeta, type SetOptions, type SetScanResult, SetStore, type SortedSetScanResult, SortedSetStore, StaleLeaseError, StalePolicyGenerationError, type StartAndClaimOptions, type StateMeta, type StateMetaValue, type StateOptions, type StateRegistration, type StepContinueOptions, type StoreCommandClient, StreamStore, type TDigestCreateOptions, type TDigestMergeOptions, TDigestStore, type TopKReserveOptions, TopKStore, type TopologyNativeAdapterOptions, TopologyNativeAdapterPool, type TransitionOptions, type TransitionOutcome, type ValueConfig, type WorkerConfig, type WorkerProfile, type WorkerRefillStrategy, Workflow, WorkflowClient, WorkflowContext, WorkflowFlowCommands, type WorkflowHandler, type WorkflowOptions, WorkflowWorker, type WorkflowWorkerResult, type XReadStream, type ZAddMember, type ZAddOptions, classifyServerError, complete, fail, isOutcome, isReconnectableClosedConnectionError, mapException, projectFlowQuery, retry, transition };