@superdurable/dex 0.1.2 → 0.1.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.
- package/README.md +82 -3
- package/dist/src/attribute-store-sync.d.ts +5 -0
- package/dist/src/attribute-store-sync.js +19 -0
- package/dist/src/attribute-store-sync.js.map +1 -0
- package/dist/src/blob-cache.d.ts +36 -0
- package/dist/src/blob-cache.js +13 -0
- package/dist/src/blob-cache.js.map +1 -1
- package/dist/src/client.d.ts +186 -5
- package/dist/src/client.js +174 -33
- package/dist/src/client.js.map +1 -1
- package/dist/src/codec.d.ts +73 -0
- package/dist/src/codec.js +23 -0
- package/dist/src/codec.js.map +1 -1
- package/dist/src/context.d.ts +80 -0
- package/dist/src/errors.d.ts +122 -6
- package/dist/src/errors.js +139 -9
- package/dist/src/errors.js.map +1 -1
- package/dist/src/flow.d.ts +36 -1
- package/dist/src/flow.js +96 -28
- package/dist/src/flow.js.map +1 -1
- package/dist/src/gen/dex.d.ts +58 -9
- package/dist/src/gen/dex.js +417 -55
- package/dist/src/gen/dex.js.map +1 -1
- package/dist/src/grpc-status.d.ts +5 -4
- package/dist/src/grpc-status.js +52 -6
- package/dist/src/grpc-status.js.map +1 -1
- package/dist/src/invocation-context.js +3 -0
- package/dist/src/invocation-context.js.map +1 -1
- package/dist/src/options.d.ts +162 -0
- package/dist/src/options.js +53 -0
- package/dist/src/options.js.map +1 -1
- package/dist/src/persistence.d.ts +103 -0
- package/dist/src/persistence.js +98 -0
- package/dist/src/persistence.js.map +1 -1
- package/dist/src/rpc.d.ts +58 -5
- package/dist/src/rpc.js +17 -0
- package/dist/src/rpc.js.map +1 -1
- package/dist/src/step.d.ts +164 -2
- package/dist/src/step.js +85 -0
- package/dist/src/step.js.map +1 -1
- package/dist/src/value-mapper.d.ts +1 -0
- package/dist/src/value-mapper.js +75 -14
- package/dist/src/value-mapper.js.map +1 -1
- package/dist/src/wait.d.ts +180 -0
- package/dist/src/wait.js +157 -0
- package/dist/src/wait.js.map +1 -1
- package/dist/src/worker-dispatcher.js +55 -29
- package/dist/src/worker-dispatcher.js.map +1 -1
- package/dist/src/worker.d.ts +30 -1
- package/dist/src/worker.js +48 -2
- package/dist/src/worker.js.map +1 -1
- package/native/linux-aarch64/dex_blob_cache_node.node +0 -0
- package/native/linux-x86_64/dex_blob_cache_node.node +0 -0
- package/native/macos-aarch64/dex_blob_cache_node.node +0 -0
- package/native/macos-x86_64/dex_blob_cache_node.node +0 -0
- package/native/windows-x86_64/dex_blob_cache_node.node +0 -0
- package/package.json +2 -1
package/dist/src/gen/dex.js
CHANGED
|
@@ -384,7 +384,7 @@ export const EncodedObject = {
|
|
|
384
384
|
},
|
|
385
385
|
};
|
|
386
386
|
function createBaseAttributeWrite() {
|
|
387
|
-
return { key: "", value: undefined, indexConfig: undefined };
|
|
387
|
+
return { key: "", value: undefined, indexConfig: undefined, syncConfig: undefined };
|
|
388
388
|
}
|
|
389
389
|
export const AttributeWrite = {
|
|
390
390
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -397,6 +397,9 @@ export const AttributeWrite = {
|
|
|
397
397
|
if (message.indexConfig !== undefined) {
|
|
398
398
|
IndexConfig.encode(message.indexConfig, writer.uint32(26).fork()).join();
|
|
399
399
|
}
|
|
400
|
+
if (message.syncConfig !== undefined) {
|
|
401
|
+
AttributeSyncConfig.encode(message.syncConfig, writer.uint32(34).fork()).join();
|
|
402
|
+
}
|
|
400
403
|
return writer;
|
|
401
404
|
},
|
|
402
405
|
decode(input, length) {
|
|
@@ -427,6 +430,13 @@ export const AttributeWrite = {
|
|
|
427
430
|
message.indexConfig = IndexConfig.decode(reader, reader.uint32());
|
|
428
431
|
continue;
|
|
429
432
|
}
|
|
433
|
+
case 4: {
|
|
434
|
+
if (tag !== 34) {
|
|
435
|
+
break;
|
|
436
|
+
}
|
|
437
|
+
message.syncConfig = AttributeSyncConfig.decode(reader, reader.uint32());
|
|
438
|
+
continue;
|
|
439
|
+
}
|
|
430
440
|
}
|
|
431
441
|
if ((tag & 7) === 4 || tag === 0) {
|
|
432
442
|
break;
|
|
@@ -445,6 +455,50 @@ export const AttributeWrite = {
|
|
|
445
455
|
message.indexConfig = (object.indexConfig !== undefined && object.indexConfig !== null)
|
|
446
456
|
? IndexConfig.fromPartial(object.indexConfig)
|
|
447
457
|
: undefined;
|
|
458
|
+
message.syncConfig = (object.syncConfig !== undefined && object.syncConfig !== null)
|
|
459
|
+
? AttributeSyncConfig.fromPartial(object.syncConfig)
|
|
460
|
+
: undefined;
|
|
461
|
+
return message;
|
|
462
|
+
},
|
|
463
|
+
};
|
|
464
|
+
function createBaseAttributeSyncConfig() {
|
|
465
|
+
return { enabled: false };
|
|
466
|
+
}
|
|
467
|
+
export const AttributeSyncConfig = {
|
|
468
|
+
encode(message, writer = new BinaryWriter()) {
|
|
469
|
+
if (message.enabled !== false) {
|
|
470
|
+
writer.uint32(8).bool(message.enabled);
|
|
471
|
+
}
|
|
472
|
+
return writer;
|
|
473
|
+
},
|
|
474
|
+
decode(input, length) {
|
|
475
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
476
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
477
|
+
const message = createBaseAttributeSyncConfig();
|
|
478
|
+
while (reader.pos < end) {
|
|
479
|
+
const tag = reader.uint32();
|
|
480
|
+
switch (tag >>> 3) {
|
|
481
|
+
case 1: {
|
|
482
|
+
if (tag !== 8) {
|
|
483
|
+
break;
|
|
484
|
+
}
|
|
485
|
+
message.enabled = reader.bool();
|
|
486
|
+
continue;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
490
|
+
break;
|
|
491
|
+
}
|
|
492
|
+
reader.skip(tag & 7);
|
|
493
|
+
}
|
|
494
|
+
return message;
|
|
495
|
+
},
|
|
496
|
+
create(base) {
|
|
497
|
+
return AttributeSyncConfig.fromPartial(base ?? {});
|
|
498
|
+
},
|
|
499
|
+
fromPartial(object) {
|
|
500
|
+
const message = createBaseAttributeSyncConfig();
|
|
501
|
+
message.enabled = object.enabled ?? false;
|
|
448
502
|
return message;
|
|
449
503
|
},
|
|
450
504
|
};
|
|
@@ -1270,6 +1324,7 @@ function createBaseFlowConfig() {
|
|
|
1270
1324
|
continueAsNewPageSizeInBytes: undefined,
|
|
1271
1325
|
stepDurability: undefined,
|
|
1272
1326
|
workerTarget: undefined,
|
|
1327
|
+
attributeSyncConfigName: undefined,
|
|
1273
1328
|
};
|
|
1274
1329
|
}
|
|
1275
1330
|
export const FlowConfig = {
|
|
@@ -1289,6 +1344,9 @@ export const FlowConfig = {
|
|
|
1289
1344
|
if (message.workerTarget !== undefined) {
|
|
1290
1345
|
WorkerTarget.encode(message.workerTarget, writer.uint32(42).fork()).join();
|
|
1291
1346
|
}
|
|
1347
|
+
if (message.attributeSyncConfigName !== undefined) {
|
|
1348
|
+
writer.uint32(50).string(message.attributeSyncConfigName);
|
|
1349
|
+
}
|
|
1292
1350
|
return writer;
|
|
1293
1351
|
},
|
|
1294
1352
|
decode(input, length) {
|
|
@@ -1333,6 +1391,13 @@ export const FlowConfig = {
|
|
|
1333
1391
|
message.workerTarget = WorkerTarget.decode(reader, reader.uint32());
|
|
1334
1392
|
continue;
|
|
1335
1393
|
}
|
|
1394
|
+
case 6: {
|
|
1395
|
+
if (tag !== 50) {
|
|
1396
|
+
break;
|
|
1397
|
+
}
|
|
1398
|
+
message.attributeSyncConfigName = reader.string();
|
|
1399
|
+
continue;
|
|
1400
|
+
}
|
|
1336
1401
|
}
|
|
1337
1402
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1338
1403
|
break;
|
|
@@ -1353,6 +1418,7 @@ export const FlowConfig = {
|
|
|
1353
1418
|
message.workerTarget = (object.workerTarget !== undefined && object.workerTarget !== null)
|
|
1354
1419
|
? WorkerTarget.fromPartial(object.workerTarget)
|
|
1355
1420
|
: undefined;
|
|
1421
|
+
message.attributeSyncConfigName = object.attributeSyncConfigName ?? undefined;
|
|
1356
1422
|
return message;
|
|
1357
1423
|
},
|
|
1358
1424
|
};
|
|
@@ -2434,7 +2500,7 @@ function createBaseSearchFlowsResponseEntry() {
|
|
|
2434
2500
|
return {
|
|
2435
2501
|
flowId: "",
|
|
2436
2502
|
runId: "",
|
|
2437
|
-
|
|
2503
|
+
indexedAttributes: [],
|
|
2438
2504
|
flowType: "",
|
|
2439
2505
|
flowStatus: 0,
|
|
2440
2506
|
startTime: undefined,
|
|
@@ -2449,7 +2515,7 @@ export const SearchFlowsResponseEntry = {
|
|
|
2449
2515
|
if (message.runId !== "") {
|
|
2450
2516
|
writer.uint32(18).string(message.runId);
|
|
2451
2517
|
}
|
|
2452
|
-
for (const v of message.
|
|
2518
|
+
for (const v of message.indexedAttributes) {
|
|
2453
2519
|
KV.encode(v, writer.uint32(26).fork()).join();
|
|
2454
2520
|
}
|
|
2455
2521
|
if (message.flowType !== "") {
|
|
@@ -2491,7 +2557,7 @@ export const SearchFlowsResponseEntry = {
|
|
|
2491
2557
|
if (tag !== 26) {
|
|
2492
2558
|
break;
|
|
2493
2559
|
}
|
|
2494
|
-
message.
|
|
2560
|
+
message.indexedAttributes.push(KV.decode(reader, reader.uint32()));
|
|
2495
2561
|
continue;
|
|
2496
2562
|
}
|
|
2497
2563
|
case 4: {
|
|
@@ -2537,7 +2603,7 @@ export const SearchFlowsResponseEntry = {
|
|
|
2537
2603
|
const message = createBaseSearchFlowsResponseEntry();
|
|
2538
2604
|
message.flowId = object.flowId ?? "";
|
|
2539
2605
|
message.runId = object.runId ?? "";
|
|
2540
|
-
message.
|
|
2606
|
+
message.indexedAttributes = object.indexedAttributes?.map((e) => KV.fromPartial(e)) || [];
|
|
2541
2607
|
message.flowType = object.flowType ?? "";
|
|
2542
2608
|
message.flowStatus = object.flowStatus ?? 0;
|
|
2543
2609
|
message.startTime = object.startTime ?? undefined;
|
|
@@ -2545,6 +2611,139 @@ export const SearchFlowsResponseEntry = {
|
|
|
2545
2611
|
return message;
|
|
2546
2612
|
},
|
|
2547
2613
|
};
|
|
2614
|
+
function createBaseSyncAttributeIndexRequest() {
|
|
2615
|
+
return { attributeIndexes: {} };
|
|
2616
|
+
}
|
|
2617
|
+
export const SyncAttributeIndexRequest = {
|
|
2618
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2619
|
+
globalThis.Object.entries(message.attributeIndexes).forEach(([key, value]) => {
|
|
2620
|
+
SyncAttributeIndexRequest_AttributeIndexesEntry.encode({ key: key, value }, writer.uint32(10).fork())
|
|
2621
|
+
.join();
|
|
2622
|
+
});
|
|
2623
|
+
return writer;
|
|
2624
|
+
},
|
|
2625
|
+
decode(input, length) {
|
|
2626
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2627
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2628
|
+
const message = createBaseSyncAttributeIndexRequest();
|
|
2629
|
+
while (reader.pos < end) {
|
|
2630
|
+
const tag = reader.uint32();
|
|
2631
|
+
switch (tag >>> 3) {
|
|
2632
|
+
case 1: {
|
|
2633
|
+
if (tag !== 10) {
|
|
2634
|
+
break;
|
|
2635
|
+
}
|
|
2636
|
+
const entry1 = SyncAttributeIndexRequest_AttributeIndexesEntry.decode(reader, reader.uint32());
|
|
2637
|
+
if (entry1.value !== undefined) {
|
|
2638
|
+
message.attributeIndexes[entry1.key] = entry1.value;
|
|
2639
|
+
}
|
|
2640
|
+
continue;
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
reader.skip(tag & 7);
|
|
2647
|
+
}
|
|
2648
|
+
return message;
|
|
2649
|
+
},
|
|
2650
|
+
create(base) {
|
|
2651
|
+
return SyncAttributeIndexRequest.fromPartial(base ?? {});
|
|
2652
|
+
},
|
|
2653
|
+
fromPartial(object) {
|
|
2654
|
+
const message = createBaseSyncAttributeIndexRequest();
|
|
2655
|
+
message.attributeIndexes = globalThis.Object.entries(object.attributeIndexes ?? {})
|
|
2656
|
+
.reduce((acc, [key, value]) => {
|
|
2657
|
+
if (value !== undefined) {
|
|
2658
|
+
acc[key] = value;
|
|
2659
|
+
}
|
|
2660
|
+
return acc;
|
|
2661
|
+
}, {});
|
|
2662
|
+
return message;
|
|
2663
|
+
},
|
|
2664
|
+
};
|
|
2665
|
+
function createBaseSyncAttributeIndexRequest_AttributeIndexesEntry() {
|
|
2666
|
+
return { key: "", value: 0 };
|
|
2667
|
+
}
|
|
2668
|
+
export const SyncAttributeIndexRequest_AttributeIndexesEntry = {
|
|
2669
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2670
|
+
if (message.key !== "") {
|
|
2671
|
+
writer.uint32(10).string(message.key);
|
|
2672
|
+
}
|
|
2673
|
+
if (message.value !== 0) {
|
|
2674
|
+
writer.uint32(16).int32(message.value);
|
|
2675
|
+
}
|
|
2676
|
+
return writer;
|
|
2677
|
+
},
|
|
2678
|
+
decode(input, length) {
|
|
2679
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2680
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2681
|
+
const message = createBaseSyncAttributeIndexRequest_AttributeIndexesEntry();
|
|
2682
|
+
while (reader.pos < end) {
|
|
2683
|
+
const tag = reader.uint32();
|
|
2684
|
+
switch (tag >>> 3) {
|
|
2685
|
+
case 1: {
|
|
2686
|
+
if (tag !== 10) {
|
|
2687
|
+
break;
|
|
2688
|
+
}
|
|
2689
|
+
message.key = reader.string();
|
|
2690
|
+
continue;
|
|
2691
|
+
}
|
|
2692
|
+
case 2: {
|
|
2693
|
+
if (tag !== 16) {
|
|
2694
|
+
break;
|
|
2695
|
+
}
|
|
2696
|
+
message.value = reader.int32();
|
|
2697
|
+
continue;
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2701
|
+
break;
|
|
2702
|
+
}
|
|
2703
|
+
reader.skip(tag & 7);
|
|
2704
|
+
}
|
|
2705
|
+
return message;
|
|
2706
|
+
},
|
|
2707
|
+
create(base) {
|
|
2708
|
+
return SyncAttributeIndexRequest_AttributeIndexesEntry.fromPartial(base ?? {});
|
|
2709
|
+
},
|
|
2710
|
+
fromPartial(object) {
|
|
2711
|
+
const message = createBaseSyncAttributeIndexRequest_AttributeIndexesEntry();
|
|
2712
|
+
message.key = object.key ?? "";
|
|
2713
|
+
message.value = object.value ?? 0;
|
|
2714
|
+
return message;
|
|
2715
|
+
},
|
|
2716
|
+
};
|
|
2717
|
+
function createBaseSyncAttributeIndexResponse() {
|
|
2718
|
+
return {};
|
|
2719
|
+
}
|
|
2720
|
+
export const SyncAttributeIndexResponse = {
|
|
2721
|
+
encode(_, writer = new BinaryWriter()) {
|
|
2722
|
+
return writer;
|
|
2723
|
+
},
|
|
2724
|
+
decode(input, length) {
|
|
2725
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2726
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2727
|
+
const message = createBaseSyncAttributeIndexResponse();
|
|
2728
|
+
while (reader.pos < end) {
|
|
2729
|
+
const tag = reader.uint32();
|
|
2730
|
+
switch (tag >>> 3) {
|
|
2731
|
+
}
|
|
2732
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2733
|
+
break;
|
|
2734
|
+
}
|
|
2735
|
+
reader.skip(tag & 7);
|
|
2736
|
+
}
|
|
2737
|
+
return message;
|
|
2738
|
+
},
|
|
2739
|
+
create(base) {
|
|
2740
|
+
return SyncAttributeIndexResponse.fromPartial(base ?? {});
|
|
2741
|
+
},
|
|
2742
|
+
fromPartial(_) {
|
|
2743
|
+
const message = createBaseSyncAttributeIndexResponse();
|
|
2744
|
+
return message;
|
|
2745
|
+
},
|
|
2746
|
+
};
|
|
2548
2747
|
function createBaseFlowExecutionID() {
|
|
2549
2748
|
return { flowId: "", runId: "" };
|
|
2550
2749
|
}
|
|
@@ -3766,21 +3965,12 @@ export const FlowClosedHistoryEvent = {
|
|
|
3766
3965
|
},
|
|
3767
3966
|
};
|
|
3768
3967
|
function createBaseStepMethodFailure() {
|
|
3769
|
-
return {
|
|
3968
|
+
return { backendError: "", details: undefined, attempt: 0 };
|
|
3770
3969
|
}
|
|
3771
3970
|
export const StepMethodFailure = {
|
|
3772
3971
|
encode(message, writer = new BinaryWriter()) {
|
|
3773
|
-
if (message.
|
|
3774
|
-
writer.uint32(10).string(message.
|
|
3775
|
-
}
|
|
3776
|
-
if (message.errorType !== "") {
|
|
3777
|
-
writer.uint32(18).string(message.errorType);
|
|
3778
|
-
}
|
|
3779
|
-
if (message.stackTrace !== "") {
|
|
3780
|
-
writer.uint32(26).string(message.stackTrace);
|
|
3781
|
-
}
|
|
3782
|
-
if (message.retryState !== "") {
|
|
3783
|
-
writer.uint32(34).string(message.retryState);
|
|
3972
|
+
if (message.backendError !== "") {
|
|
3973
|
+
writer.uint32(10).string(message.backendError);
|
|
3784
3974
|
}
|
|
3785
3975
|
if (message.details !== undefined) {
|
|
3786
3976
|
ErrorResponse.encode(message.details, writer.uint32(42).fork()).join();
|
|
@@ -3801,28 +3991,7 @@ export const StepMethodFailure = {
|
|
|
3801
3991
|
if (tag !== 10) {
|
|
3802
3992
|
break;
|
|
3803
3993
|
}
|
|
3804
|
-
message.
|
|
3805
|
-
continue;
|
|
3806
|
-
}
|
|
3807
|
-
case 2: {
|
|
3808
|
-
if (tag !== 18) {
|
|
3809
|
-
break;
|
|
3810
|
-
}
|
|
3811
|
-
message.errorType = reader.string();
|
|
3812
|
-
continue;
|
|
3813
|
-
}
|
|
3814
|
-
case 3: {
|
|
3815
|
-
if (tag !== 26) {
|
|
3816
|
-
break;
|
|
3817
|
-
}
|
|
3818
|
-
message.stackTrace = reader.string();
|
|
3819
|
-
continue;
|
|
3820
|
-
}
|
|
3821
|
-
case 4: {
|
|
3822
|
-
if (tag !== 34) {
|
|
3823
|
-
break;
|
|
3824
|
-
}
|
|
3825
|
-
message.retryState = reader.string();
|
|
3994
|
+
message.backendError = reader.string();
|
|
3826
3995
|
continue;
|
|
3827
3996
|
}
|
|
3828
3997
|
case 5: {
|
|
@@ -3852,10 +4021,7 @@ export const StepMethodFailure = {
|
|
|
3852
4021
|
},
|
|
3853
4022
|
fromPartial(object) {
|
|
3854
4023
|
const message = createBaseStepMethodFailure();
|
|
3855
|
-
message.
|
|
3856
|
-
message.errorType = object.errorType ?? "";
|
|
3857
|
-
message.stackTrace = object.stackTrace ?? "";
|
|
3858
|
-
message.retryState = object.retryState ?? "";
|
|
4024
|
+
message.backendError = object.backendError ?? "";
|
|
3859
4025
|
message.details = (object.details !== undefined && object.details !== null)
|
|
3860
4026
|
? ErrorResponse.fromPartial(object.details)
|
|
3861
4027
|
: undefined;
|
|
@@ -4997,6 +5163,7 @@ function createBaseActiveStepExecutionState() {
|
|
|
4997
5163
|
completedConditions: undefined,
|
|
4998
5164
|
stepExecutionLocals: [],
|
|
4999
5165
|
timers: [],
|
|
5166
|
+
lastFailureInfo: undefined,
|
|
5000
5167
|
};
|
|
5001
5168
|
}
|
|
5002
5169
|
export const ActiveStepExecutionState = {
|
|
@@ -5028,6 +5195,9 @@ export const ActiveStepExecutionState = {
|
|
|
5028
5195
|
for (const v of message.timers) {
|
|
5029
5196
|
TimerInfo.encode(v, writer.uint32(74).fork()).join();
|
|
5030
5197
|
}
|
|
5198
|
+
if (message.lastFailureInfo !== undefined) {
|
|
5199
|
+
StepMethodFailure.encode(message.lastFailureInfo, writer.uint32(82).fork()).join();
|
|
5200
|
+
}
|
|
5031
5201
|
return writer;
|
|
5032
5202
|
},
|
|
5033
5203
|
decode(input, length) {
|
|
@@ -5100,6 +5270,13 @@ export const ActiveStepExecutionState = {
|
|
|
5100
5270
|
message.timers.push(TimerInfo.decode(reader, reader.uint32()));
|
|
5101
5271
|
continue;
|
|
5102
5272
|
}
|
|
5273
|
+
case 10: {
|
|
5274
|
+
if (tag !== 82) {
|
|
5275
|
+
break;
|
|
5276
|
+
}
|
|
5277
|
+
message.lastFailureInfo = StepMethodFailure.decode(reader, reader.uint32());
|
|
5278
|
+
continue;
|
|
5279
|
+
}
|
|
5103
5280
|
}
|
|
5104
5281
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5105
5282
|
break;
|
|
@@ -5128,6 +5305,9 @@ export const ActiveStepExecutionState = {
|
|
|
5128
5305
|
: undefined;
|
|
5129
5306
|
message.stepExecutionLocals = object.stepExecutionLocals?.map((e) => KV.fromPartial(e)) || [];
|
|
5130
5307
|
message.timers = object.timers?.map((e) => TimerInfo.fromPartial(e)) || [];
|
|
5308
|
+
message.lastFailureInfo = (object.lastFailureInfo !== undefined && object.lastFailureInfo !== null)
|
|
5309
|
+
? StepMethodFailure.fromPartial(object.lastFailureInfo)
|
|
5310
|
+
: undefined;
|
|
5131
5311
|
return message;
|
|
5132
5312
|
},
|
|
5133
5313
|
};
|
|
@@ -6279,6 +6459,7 @@ function createBaseErrorResponse() {
|
|
|
6279
6459
|
originalWorkerErrorDetail: "",
|
|
6280
6460
|
originalWorkerErrorType: "",
|
|
6281
6461
|
originalWorkerErrorStatus: 0,
|
|
6462
|
+
originalWorkerErrorStackTrace: "",
|
|
6282
6463
|
};
|
|
6283
6464
|
}
|
|
6284
6465
|
export const ErrorResponse = {
|
|
@@ -6298,6 +6479,9 @@ export const ErrorResponse = {
|
|
|
6298
6479
|
if (message.originalWorkerErrorStatus !== 0) {
|
|
6299
6480
|
writer.uint32(40).int32(message.originalWorkerErrorStatus);
|
|
6300
6481
|
}
|
|
6482
|
+
if (message.originalWorkerErrorStackTrace !== "") {
|
|
6483
|
+
writer.uint32(50).string(message.originalWorkerErrorStackTrace);
|
|
6484
|
+
}
|
|
6301
6485
|
return writer;
|
|
6302
6486
|
},
|
|
6303
6487
|
decode(input, length) {
|
|
@@ -6342,6 +6526,13 @@ export const ErrorResponse = {
|
|
|
6342
6526
|
message.originalWorkerErrorStatus = reader.int32();
|
|
6343
6527
|
continue;
|
|
6344
6528
|
}
|
|
6529
|
+
case 6: {
|
|
6530
|
+
if (tag !== 50) {
|
|
6531
|
+
break;
|
|
6532
|
+
}
|
|
6533
|
+
message.originalWorkerErrorStackTrace = reader.string();
|
|
6534
|
+
continue;
|
|
6535
|
+
}
|
|
6345
6536
|
}
|
|
6346
6537
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6347
6538
|
break;
|
|
@@ -6360,11 +6551,12 @@ export const ErrorResponse = {
|
|
|
6360
6551
|
message.originalWorkerErrorDetail = object.originalWorkerErrorDetail ?? "";
|
|
6361
6552
|
message.originalWorkerErrorType = object.originalWorkerErrorType ?? "";
|
|
6362
6553
|
message.originalWorkerErrorStatus = object.originalWorkerErrorStatus ?? 0;
|
|
6554
|
+
message.originalWorkerErrorStackTrace = object.originalWorkerErrorStackTrace ?? "";
|
|
6363
6555
|
return message;
|
|
6364
6556
|
},
|
|
6365
6557
|
};
|
|
6366
6558
|
function createBaseWorkerErrorResponse() {
|
|
6367
|
-
return { detail: "", errorType: "" };
|
|
6559
|
+
return { detail: "", errorType: "", stackTrace: "" };
|
|
6368
6560
|
}
|
|
6369
6561
|
export const WorkerErrorResponse = {
|
|
6370
6562
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -6374,6 +6566,9 @@ export const WorkerErrorResponse = {
|
|
|
6374
6566
|
if (message.errorType !== "") {
|
|
6375
6567
|
writer.uint32(18).string(message.errorType);
|
|
6376
6568
|
}
|
|
6569
|
+
if (message.stackTrace !== "") {
|
|
6570
|
+
writer.uint32(26).string(message.stackTrace);
|
|
6571
|
+
}
|
|
6377
6572
|
return writer;
|
|
6378
6573
|
},
|
|
6379
6574
|
decode(input, length) {
|
|
@@ -6397,6 +6592,13 @@ export const WorkerErrorResponse = {
|
|
|
6397
6592
|
message.errorType = reader.string();
|
|
6398
6593
|
continue;
|
|
6399
6594
|
}
|
|
6595
|
+
case 3: {
|
|
6596
|
+
if (tag !== 26) {
|
|
6597
|
+
break;
|
|
6598
|
+
}
|
|
6599
|
+
message.stackTrace = reader.string();
|
|
6600
|
+
continue;
|
|
6601
|
+
}
|
|
6400
6602
|
}
|
|
6401
6603
|
if ((tag & 7) === 4 || tag === 0) {
|
|
6402
6604
|
break;
|
|
@@ -6412,6 +6614,7 @@ export const WorkerErrorResponse = {
|
|
|
6412
6614
|
const message = createBaseWorkerErrorResponse();
|
|
6413
6615
|
message.detail = object.detail ?? "";
|
|
6414
6616
|
message.errorType = object.errorType ?? "";
|
|
6617
|
+
message.stackTrace = object.stackTrace ?? "";
|
|
6415
6618
|
return message;
|
|
6416
6619
|
},
|
|
6417
6620
|
};
|
|
@@ -8518,6 +8721,7 @@ function createBaseContinueAsNewDump() {
|
|
|
8518
8721
|
stepOutputs: [],
|
|
8519
8722
|
staleSkipTimers: [],
|
|
8520
8723
|
attributes: [],
|
|
8724
|
+
pendingAttributeSyncItems: [],
|
|
8521
8725
|
};
|
|
8522
8726
|
}
|
|
8523
8727
|
export const ContinueAsNewDump = {
|
|
@@ -8543,6 +8747,9 @@ export const ContinueAsNewDump = {
|
|
|
8543
8747
|
for (const v of message.attributes) {
|
|
8544
8748
|
KV.encode(v, writer.uint32(58).fork()).join();
|
|
8545
8749
|
}
|
|
8750
|
+
for (const v of message.pendingAttributeSyncItems) {
|
|
8751
|
+
AttributeSyncItem.encode(v, writer.uint32(66).fork()).join();
|
|
8752
|
+
}
|
|
8546
8753
|
return writer;
|
|
8547
8754
|
},
|
|
8548
8755
|
decode(input, length) {
|
|
@@ -8604,6 +8811,13 @@ export const ContinueAsNewDump = {
|
|
|
8604
8811
|
message.attributes.push(KV.decode(reader, reader.uint32()));
|
|
8605
8812
|
continue;
|
|
8606
8813
|
}
|
|
8814
|
+
case 8: {
|
|
8815
|
+
if (tag !== 66) {
|
|
8816
|
+
break;
|
|
8817
|
+
}
|
|
8818
|
+
message.pendingAttributeSyncItems.push(AttributeSyncItem.decode(reader, reader.uint32()));
|
|
8819
|
+
continue;
|
|
8820
|
+
}
|
|
8607
8821
|
}
|
|
8608
8822
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8609
8823
|
break;
|
|
@@ -8633,6 +8847,8 @@ export const ContinueAsNewDump = {
|
|
|
8633
8847
|
message.stepOutputs = object.stepOutputs?.map((e) => StepCompletionOutput.fromPartial(e)) || [];
|
|
8634
8848
|
message.staleSkipTimers = object.staleSkipTimers?.map((e) => StaleSkipTimer.fromPartial(e)) || [];
|
|
8635
8849
|
message.attributes = object.attributes?.map((e) => KV.fromPartial(e)) || [];
|
|
8850
|
+
message.pendingAttributeSyncItems =
|
|
8851
|
+
object.pendingAttributeSyncItems?.map((e) => AttributeSyncItem.fromPartial(e)) || [];
|
|
8636
8852
|
return message;
|
|
8637
8853
|
},
|
|
8638
8854
|
};
|
|
@@ -8758,7 +8974,7 @@ export const InterpreterWorkflowInput = {
|
|
|
8758
8974
|
StepOptions.encode(message.stepOptions, writer.uint32(58).fork()).join();
|
|
8759
8975
|
}
|
|
8760
8976
|
for (const v of message.initAttributes) {
|
|
8761
|
-
|
|
8977
|
+
AttributeWrite.encode(v, writer.uint32(66).fork()).join();
|
|
8762
8978
|
}
|
|
8763
8979
|
if (message.config !== undefined) {
|
|
8764
8980
|
FlowConfig.encode(message.config, writer.uint32(74).fork()).join();
|
|
@@ -8810,7 +9026,7 @@ export const InterpreterWorkflowInput = {
|
|
|
8810
9026
|
if (tag !== 66) {
|
|
8811
9027
|
break;
|
|
8812
9028
|
}
|
|
8813
|
-
message.initAttributes.push(
|
|
9029
|
+
message.initAttributes.push(AttributeWrite.decode(reader, reader.uint32()));
|
|
8814
9030
|
continue;
|
|
8815
9031
|
}
|
|
8816
9032
|
case 9: {
|
|
@@ -8855,7 +9071,7 @@ export const InterpreterWorkflowInput = {
|
|
|
8855
9071
|
message.stepOptions = (object.stepOptions !== undefined && object.stepOptions !== null)
|
|
8856
9072
|
? StepOptions.fromPartial(object.stepOptions)
|
|
8857
9073
|
: undefined;
|
|
8858
|
-
message.initAttributes = object.initAttributes?.map((e) =>
|
|
9074
|
+
message.initAttributes = object.initAttributes?.map((e) => AttributeWrite.fromPartial(e)) || [];
|
|
8859
9075
|
message.config = (object.config !== undefined && object.config !== null)
|
|
8860
9076
|
? FlowConfig.fromPartial(object.config)
|
|
8861
9077
|
: undefined;
|
|
@@ -9465,6 +9681,132 @@ export const CleanupBlobStoreActivityOutput = {
|
|
|
9465
9681
|
return message;
|
|
9466
9682
|
},
|
|
9467
9683
|
};
|
|
9684
|
+
function createBaseAttributeSyncItem() {
|
|
9685
|
+
return { configName: "", key: "", value: undefined };
|
|
9686
|
+
}
|
|
9687
|
+
export const AttributeSyncItem = {
|
|
9688
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9689
|
+
if (message.configName !== "") {
|
|
9690
|
+
writer.uint32(10).string(message.configName);
|
|
9691
|
+
}
|
|
9692
|
+
if (message.key !== "") {
|
|
9693
|
+
writer.uint32(18).string(message.key);
|
|
9694
|
+
}
|
|
9695
|
+
if (message.value !== undefined) {
|
|
9696
|
+
Value.encode(message.value, writer.uint32(26).fork()).join();
|
|
9697
|
+
}
|
|
9698
|
+
return writer;
|
|
9699
|
+
},
|
|
9700
|
+
decode(input, length) {
|
|
9701
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9702
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9703
|
+
const message = createBaseAttributeSyncItem();
|
|
9704
|
+
while (reader.pos < end) {
|
|
9705
|
+
const tag = reader.uint32();
|
|
9706
|
+
switch (tag >>> 3) {
|
|
9707
|
+
case 1: {
|
|
9708
|
+
if (tag !== 10) {
|
|
9709
|
+
break;
|
|
9710
|
+
}
|
|
9711
|
+
message.configName = reader.string();
|
|
9712
|
+
continue;
|
|
9713
|
+
}
|
|
9714
|
+
case 2: {
|
|
9715
|
+
if (tag !== 18) {
|
|
9716
|
+
break;
|
|
9717
|
+
}
|
|
9718
|
+
message.key = reader.string();
|
|
9719
|
+
continue;
|
|
9720
|
+
}
|
|
9721
|
+
case 3: {
|
|
9722
|
+
if (tag !== 26) {
|
|
9723
|
+
break;
|
|
9724
|
+
}
|
|
9725
|
+
message.value = Value.decode(reader, reader.uint32());
|
|
9726
|
+
continue;
|
|
9727
|
+
}
|
|
9728
|
+
}
|
|
9729
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9730
|
+
break;
|
|
9731
|
+
}
|
|
9732
|
+
reader.skip(tag & 7);
|
|
9733
|
+
}
|
|
9734
|
+
return message;
|
|
9735
|
+
},
|
|
9736
|
+
create(base) {
|
|
9737
|
+
return AttributeSyncItem.fromPartial(base ?? {});
|
|
9738
|
+
},
|
|
9739
|
+
fromPartial(object) {
|
|
9740
|
+
const message = createBaseAttributeSyncItem();
|
|
9741
|
+
message.configName = object.configName ?? "";
|
|
9742
|
+
message.key = object.key ?? "";
|
|
9743
|
+
message.value = (object.value !== undefined && object.value !== null) ? Value.fromPartial(object.value) : undefined;
|
|
9744
|
+
return message;
|
|
9745
|
+
},
|
|
9746
|
+
};
|
|
9747
|
+
function createBaseSyncAttributeBatchActivityInput() {
|
|
9748
|
+
return { flowId: "", configName: "", items: [] };
|
|
9749
|
+
}
|
|
9750
|
+
export const SyncAttributeBatchActivityInput = {
|
|
9751
|
+
encode(message, writer = new BinaryWriter()) {
|
|
9752
|
+
if (message.flowId !== "") {
|
|
9753
|
+
writer.uint32(10).string(message.flowId);
|
|
9754
|
+
}
|
|
9755
|
+
if (message.configName !== "") {
|
|
9756
|
+
writer.uint32(18).string(message.configName);
|
|
9757
|
+
}
|
|
9758
|
+
for (const v of message.items) {
|
|
9759
|
+
AttributeSyncItem.encode(v, writer.uint32(26).fork()).join();
|
|
9760
|
+
}
|
|
9761
|
+
return writer;
|
|
9762
|
+
},
|
|
9763
|
+
decode(input, length) {
|
|
9764
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9765
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9766
|
+
const message = createBaseSyncAttributeBatchActivityInput();
|
|
9767
|
+
while (reader.pos < end) {
|
|
9768
|
+
const tag = reader.uint32();
|
|
9769
|
+
switch (tag >>> 3) {
|
|
9770
|
+
case 1: {
|
|
9771
|
+
if (tag !== 10) {
|
|
9772
|
+
break;
|
|
9773
|
+
}
|
|
9774
|
+
message.flowId = reader.string();
|
|
9775
|
+
continue;
|
|
9776
|
+
}
|
|
9777
|
+
case 2: {
|
|
9778
|
+
if (tag !== 18) {
|
|
9779
|
+
break;
|
|
9780
|
+
}
|
|
9781
|
+
message.configName = reader.string();
|
|
9782
|
+
continue;
|
|
9783
|
+
}
|
|
9784
|
+
case 3: {
|
|
9785
|
+
if (tag !== 26) {
|
|
9786
|
+
break;
|
|
9787
|
+
}
|
|
9788
|
+
message.items.push(AttributeSyncItem.decode(reader, reader.uint32()));
|
|
9789
|
+
continue;
|
|
9790
|
+
}
|
|
9791
|
+
}
|
|
9792
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9793
|
+
break;
|
|
9794
|
+
}
|
|
9795
|
+
reader.skip(tag & 7);
|
|
9796
|
+
}
|
|
9797
|
+
return message;
|
|
9798
|
+
},
|
|
9799
|
+
create(base) {
|
|
9800
|
+
return SyncAttributeBatchActivityInput.fromPartial(base ?? {});
|
|
9801
|
+
},
|
|
9802
|
+
fromPartial(object) {
|
|
9803
|
+
const message = createBaseSyncAttributeBatchActivityInput();
|
|
9804
|
+
message.flowId = object.flowId ?? "";
|
|
9805
|
+
message.configName = object.configName ?? "";
|
|
9806
|
+
message.items = object.items?.map((e) => AttributeSyncItem.fromPartial(e)) || [];
|
|
9807
|
+
return message;
|
|
9808
|
+
},
|
|
9809
|
+
};
|
|
9468
9810
|
function createBaseExecuteRpcSignalRequest() {
|
|
9469
9811
|
return {
|
|
9470
9812
|
rpcInput: undefined,
|
|
@@ -9637,25 +9979,35 @@ export const SkipTimerSignalRequest = {
|
|
|
9637
9979
|
return message;
|
|
9638
9980
|
},
|
|
9639
9981
|
};
|
|
9640
|
-
function
|
|
9641
|
-
return { reason: "" };
|
|
9982
|
+
function createBaseStopFlowSignalRequest() {
|
|
9983
|
+
return { stopType: 0, reason: "" };
|
|
9642
9984
|
}
|
|
9643
|
-
export const
|
|
9985
|
+
export const StopFlowSignalRequest = {
|
|
9644
9986
|
encode(message, writer = new BinaryWriter()) {
|
|
9987
|
+
if (message.stopType !== 0) {
|
|
9988
|
+
writer.uint32(8).int32(message.stopType);
|
|
9989
|
+
}
|
|
9645
9990
|
if (message.reason !== "") {
|
|
9646
|
-
writer.uint32(
|
|
9991
|
+
writer.uint32(18).string(message.reason);
|
|
9647
9992
|
}
|
|
9648
9993
|
return writer;
|
|
9649
9994
|
},
|
|
9650
9995
|
decode(input, length) {
|
|
9651
9996
|
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
9652
9997
|
const end = length === undefined ? reader.len : reader.pos + length;
|
|
9653
|
-
const message =
|
|
9998
|
+
const message = createBaseStopFlowSignalRequest();
|
|
9654
9999
|
while (reader.pos < end) {
|
|
9655
10000
|
const tag = reader.uint32();
|
|
9656
10001
|
switch (tag >>> 3) {
|
|
9657
10002
|
case 1: {
|
|
9658
|
-
if (tag !==
|
|
10003
|
+
if (tag !== 8) {
|
|
10004
|
+
break;
|
|
10005
|
+
}
|
|
10006
|
+
message.stopType = reader.int32();
|
|
10007
|
+
continue;
|
|
10008
|
+
}
|
|
10009
|
+
case 2: {
|
|
10010
|
+
if (tag !== 18) {
|
|
9659
10011
|
break;
|
|
9660
10012
|
}
|
|
9661
10013
|
message.reason = reader.string();
|
|
@@ -9670,10 +10022,11 @@ export const FailFlowSignalRequest = {
|
|
|
9670
10022
|
return message;
|
|
9671
10023
|
},
|
|
9672
10024
|
create(base) {
|
|
9673
|
-
return
|
|
10025
|
+
return StopFlowSignalRequest.fromPartial(base ?? {});
|
|
9674
10026
|
},
|
|
9675
10027
|
fromPartial(object) {
|
|
9676
|
-
const message =
|
|
10028
|
+
const message = createBaseStopFlowSignalRequest();
|
|
10029
|
+
message.stopType = object.stopType ?? 0;
|
|
9677
10030
|
message.reason = object.reason ?? "";
|
|
9678
10031
|
return message;
|
|
9679
10032
|
},
|
|
@@ -10496,6 +10849,15 @@ export const FlowServiceService = {
|
|
|
10496
10849
|
responseSerialize: (value) => Buffer.from(SearchFlowsResponse.encode(value).finish()),
|
|
10497
10850
|
responseDeserialize: (value) => SearchFlowsResponse.decode(value),
|
|
10498
10851
|
},
|
|
10852
|
+
syncAttributeIndexes: {
|
|
10853
|
+
path: "/dex.FlowService/SyncAttributeIndexes",
|
|
10854
|
+
requestStream: false,
|
|
10855
|
+
responseStream: false,
|
|
10856
|
+
requestSerialize: (value) => Buffer.from(SyncAttributeIndexRequest.encode(value).finish()),
|
|
10857
|
+
requestDeserialize: (value) => SyncAttributeIndexRequest.decode(value),
|
|
10858
|
+
responseSerialize: (value) => Buffer.from(SyncAttributeIndexResponse.encode(value).finish()),
|
|
10859
|
+
responseDeserialize: (value) => SyncAttributeIndexResponse.decode(value),
|
|
10860
|
+
},
|
|
10499
10861
|
getFlowSummary: {
|
|
10500
10862
|
path: "/dex.FlowService/GetFlowSummary",
|
|
10501
10863
|
requestStream: false,
|