@superdurable/dex 0.2.10 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -0
- package/dist/src/client.d.ts +1 -1
- package/dist/src/client.js +106 -3
- package/dist/src/client.js.map +1 -1
- package/dist/src/context.d.ts +11 -2
- package/dist/src/flow.d.ts +5 -4
- package/dist/src/flow.js +41 -8
- package/dist/src/flow.js.map +1 -1
- package/dist/src/gen/dex.d.ts +66 -0
- package/dist/src/gen/dex.js +753 -27
- package/dist/src/gen/dex.js.map +1 -1
- package/dist/src/invocation-context.d.ts +2 -1
- package/dist/src/invocation-context.js +8 -18
- package/dist/src/invocation-context.js.map +1 -1
- package/dist/src/options.d.ts +49 -3
- package/dist/src/options.js +14 -1
- package/dist/src/options.js.map +1 -1
- package/dist/src/persistence.d.ts +3 -3
- package/dist/src/persistence.js +2 -2
- package/dist/src/step.d.ts +22 -2
- package/dist/src/step.js.map +1 -1
- package/dist/src/subflow.d.ts +3 -1
- package/dist/src/subflow.js.map +1 -1
- package/dist/src/wait.d.ts +18 -18
- package/dist/src/wait.js +17 -17
- package/dist/src/worker-dispatcher.js +173 -31
- package/dist/src/worker-dispatcher.js.map +1 -1
- package/native/windows-x86_64/dex_blob_cache_node.node +0 -0
- package/package.json +1 -1
package/dist/src/gen/dex.d.ts
CHANGED
|
@@ -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>;
|