@superdurable/dex 0.2.9 → 0.3.1

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.
@@ -283,6 +283,25 @@ export interface StepOptions {
283
283
  waitForLockAttributeKeys: string[];
284
284
  executeLockAttributeKeys: string[];
285
285
  heartbeatTimeoutSeconds: number;
286
+ waitForLoadAttributeMapInstances: string[];
287
+ waitForLoadChannelNames: string[];
288
+ waitForLoadChannelMapInstances: string[];
289
+ executeLoadAttributeMapInstances: string[];
290
+ executeLoadChannelNames: string[];
291
+ executeLoadChannelMapInstances: string[];
292
+ }
293
+ export interface FlowTimeoutHandlerOptions {
294
+ methodTimeoutSeconds: number;
295
+ heartbeatTimeoutSeconds: number;
296
+ retryPolicy: RetryPolicy | undefined;
297
+ failurePolicy: ExecuteMethodFailurePolicy;
298
+ failureProceedStepType: string;
299
+ failureProceedStepOptions: StepOptions | undefined;
300
+ durabilityOverride: StepDurability;
301
+ lockAttributeKeys: string[];
302
+ loadAttributeMapInstances: string[];
303
+ loadChannelNames: string[];
304
+ loadChannelMapInstances: string[];
286
305
  }
287
306
  export interface FlowAlreadyStartedOptions {
288
307
  ignoreAlreadyStartedError: boolean;
@@ -294,6 +313,7 @@ export interface FlowStartOptions {
294
313
  attributes: AttributeWrite[];
295
314
  flowConfigOverride: FlowConfig | undefined;
296
315
  flowAlreadyStartedOptions: FlowAlreadyStartedOptions | undefined;
316
+ timeoutHandlerOptions: FlowTimeoutHandlerOptions | undefined;
297
317
  }
298
318
  export interface FlowConfig {
299
319
  activeStepSearchMode?: ActiveStepSearchMode | undefined;
@@ -561,6 +581,7 @@ export interface FlowStartedOrContinuedHistoryEvent {
561
581
  flowConfig: FlowConfig | undefined;
562
582
  flowTimeout: Duration | undefined;
563
583
  flowTimeoutPolicy: FlowTimeoutPolicy;
584
+ timeoutHandlerOptions: FlowTimeoutHandlerOptions | undefined;
564
585
  startOrContinue: {
565
586
  $case: "initialStart";
566
587
  value: FlowInitialStart;
@@ -636,6 +657,7 @@ export interface StepWaitForCompletedOutput {
636
657
  publishToChannel: ChannelMessage[];
637
658
  recordEvents: KV[];
638
659
  upsertStepExecutionLocals: KV[];
660
+ deleteFromChannel: ChannelMessageDeletion[];
639
661
  }
640
662
  export interface StepExecuteCompletedOutput {
641
663
  stepDecision: StepDecision | undefined;
@@ -643,6 +665,7 @@ export interface StepExecuteCompletedOutput {
643
665
  publishToChannel: ChannelMessage[];
644
666
  recordEvents: KV[];
645
667
  upsertStepExecutionLocals: KV[];
668
+ deleteFromChannel: ChannelMessageDeletion[];
646
669
  }
647
670
  export interface StepMethodFailedOutput {
648
671
  failure: StepMethodFailure | undefined;
@@ -871,6 +894,23 @@ export interface InvokeWaitForMethodRequest {
871
894
  stepType: string;
872
895
  stepInput: Value | undefined;
873
896
  attributes: KV[];
897
+ channelInfos: {
898
+ [key: string]: ChannelInfo;
899
+ };
900
+ loadedChannelMessages: {
901
+ [key: string]: ChannelValues;
902
+ };
903
+ loadedAttributeMapInstances: string[];
904
+ loadedChannelNames: string[];
905
+ loadedChannelMapInstances: string[];
906
+ }
907
+ export interface InvokeWaitForMethodRequest_ChannelInfosEntry {
908
+ key: string;
909
+ value: ChannelInfo | undefined;
910
+ }
911
+ export interface InvokeWaitForMethodRequest_LoadedChannelMessagesEntry {
912
+ key: string;
913
+ value: ChannelValues | undefined;
874
914
  }
875
915
  export interface InvokeWaitForMethodResponse {
876
916
  /** Server-populated lineage input for local activity history. */
@@ -880,6 +920,7 @@ export interface InvokeWaitForMethodResponse {
880
920
  upsertStepExeLocals: KV[];
881
921
  recordEvents: KV[];
882
922
  publishToChannel: ChannelMessage[];
923
+ deleteFromChannel: ChannelMessageDeletion[];
883
924
  }
884
925
  export interface StepMethodHeartbeat {
885
926
  value: Value | undefined;
@@ -909,6 +950,23 @@ export interface InvokeExecuteMethodRequest {
909
950
  attributes: KV[];
910
951
  stepExeLocals: KV[];
911
952
  conditionResults: ConditionResults | undefined;
953
+ channelInfos: {
954
+ [key: string]: ChannelInfo;
955
+ };
956
+ loadedChannelMessages: {
957
+ [key: string]: ChannelValues;
958
+ };
959
+ loadedAttributeMapInstances: string[];
960
+ loadedChannelNames: string[];
961
+ loadedChannelMapInstances: string[];
962
+ }
963
+ export interface InvokeExecuteMethodRequest_ChannelInfosEntry {
964
+ key: string;
965
+ value: ChannelInfo | undefined;
966
+ }
967
+ export interface InvokeExecuteMethodRequest_LoadedChannelMessagesEntry {
968
+ key: string;
969
+ value: ChannelValues | undefined;
912
970
  }
913
971
  export interface InvokeExecuteMethodResponse {
914
972
  /** Server-populated lineage input for local activity history. */
@@ -918,6 +976,7 @@ export interface InvokeExecuteMethodResponse {
918
976
  recordEvents: KV[];
919
977
  upsertStepExeLocals: KV[];
920
978
  publishToChannel: ChannelMessage[];
979
+ deleteFromChannel: ChannelMessageDeletion[];
921
980
  }
922
981
  export interface InvokeExecuteMethodOutput {
923
982
  output: {
@@ -1008,6 +1067,7 @@ export interface SubFlowOptions {
1008
1067
  attributes: AttributeWrite[];
1009
1068
  flowConfigOverride: FlowConfig | undefined;
1010
1069
  flowTimeoutPolicy: FlowTimeoutPolicy;
1070
+ timeoutHandlerOptions: FlowTimeoutHandlerOptions | undefined;
1011
1071
  }
1012
1072
  export interface SubFlowCondition {
1013
1073
  /** Optional unless waiting_condition_type is ANY_COMBINATION_COMPLETED. */
@@ -1155,6 +1215,7 @@ export interface InterpreterWorkflowInput {
1155
1215
  /** When true, ignore start_step_type / step_input / step_options / init_attributes. */
1156
1216
  isResumeFromContinueAsNew: boolean;
1157
1217
  continueAsNewInput: ContinueAsNewInput | undefined;
1218
+ timeoutHandlerOptions: FlowTimeoutHandlerOptions | undefined;
1158
1219
  }
1159
1220
  export interface InterpreterWorkflowOutput {
1160
1221
  stepCompletionOutputs: StepCompletionOutput[];
@@ -1343,6 +1404,7 @@ export declare const LocalActivityMetadata: MessageFns<LocalActivityMetadata>;
1343
1404
  export declare const RetryPolicy: MessageFns<RetryPolicy>;
1344
1405
  export declare const FlowRetryPolicy: MessageFns<FlowRetryPolicy>;
1345
1406
  export declare const StepOptions: MessageFns<StepOptions>;
1407
+ export declare const FlowTimeoutHandlerOptions: MessageFns<FlowTimeoutHandlerOptions>;
1346
1408
  export declare const FlowAlreadyStartedOptions: MessageFns<FlowAlreadyStartedOptions>;
1347
1409
  export declare const FlowStartOptions: MessageFns<FlowStartOptions>;
1348
1410
  export declare const FlowConfig: MessageFns<FlowConfig>;
@@ -1431,11 +1493,15 @@ export declare const InternalWorkerError: MessageFns<InternalWorkerError>;
1431
1493
  export declare const InternalFlowError: MessageFns<InternalFlowError>;
1432
1494
  export declare const ChannelInfo: MessageFns<ChannelInfo>;
1433
1495
  export declare const InvokeWaitForMethodRequest: MessageFns<InvokeWaitForMethodRequest>;
1496
+ export declare const InvokeWaitForMethodRequest_ChannelInfosEntry: MessageFns<InvokeWaitForMethodRequest_ChannelInfosEntry>;
1497
+ export declare const InvokeWaitForMethodRequest_LoadedChannelMessagesEntry: MessageFns<InvokeWaitForMethodRequest_LoadedChannelMessagesEntry>;
1434
1498
  export declare const InvokeWaitForMethodResponse: MessageFns<InvokeWaitForMethodResponse>;
1435
1499
  export declare const StepMethodHeartbeat: MessageFns<StepMethodHeartbeat>;
1436
1500
  export declare const StepStreamWrite: MessageFns<StepStreamWrite>;
1437
1501
  export declare const InvokeWaitForMethodOutput: MessageFns<InvokeWaitForMethodOutput>;
1438
1502
  export declare const InvokeExecuteMethodRequest: MessageFns<InvokeExecuteMethodRequest>;
1503
+ export declare const InvokeExecuteMethodRequest_ChannelInfosEntry: MessageFns<InvokeExecuteMethodRequest_ChannelInfosEntry>;
1504
+ export declare const InvokeExecuteMethodRequest_LoadedChannelMessagesEntry: MessageFns<InvokeExecuteMethodRequest_LoadedChannelMessagesEntry>;
1439
1505
  export declare const InvokeExecuteMethodResponse: MessageFns<InvokeExecuteMethodResponse>;
1440
1506
  export declare const InvokeExecuteMethodOutput: MessageFns<InvokeExecuteMethodOutput>;
1441
1507
  export declare const InvokeWorkerRPCRequest: MessageFns<InvokeWorkerRPCRequest>;