@superdurable/dex 1.10.1 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -3
- package/dist/src/attribute-hard-delete.d.ts +16 -0
- package/dist/src/attribute-hard-delete.js +59 -0
- package/dist/src/attribute-hard-delete.js.map +1 -0
- package/dist/src/attribute-store-sync.d.ts +1 -0
- package/dist/src/attribute-store-sync.js +3 -0
- package/dist/src/attribute-store-sync.js.map +1 -1
- package/dist/src/client.d.ts +9 -0
- package/dist/src/client.js +55 -6
- package/dist/src/client.js.map +1 -1
- package/dist/src/gen/dex.d.ts +30 -2
- package/dist/src/gen/dex.js +105 -7
- package/dist/src/gen/dex.js.map +1 -1
- package/dist/src/invocation-context.js +4 -1
- package/dist/src/invocation-context.js.map +1 -1
- package/dist/src/persistence.d.ts +182 -0
- package/dist/src/persistence.js +191 -0
- package/dist/src/persistence.js.map +1 -1
- package/dist/src/pull-worker.d.ts +3 -0
- package/dist/src/pull-worker.js +47 -12
- package/dist/src/pull-worker.js.map +1 -1
- package/dist/src/sdk-version.generated.d.ts +1 -1
- package/dist/src/sdk-version.generated.js +1 -1
- package/dist/src/server-protocol.js +1 -1
- package/dist/src/worker-dispatcher.d.ts +3 -1
- package/dist/src/worker-dispatcher.js +20 -3
- package/dist/src/worker-dispatcher.js.map +1 -1
- package/dist/src/worker.js +1 -1
- package/dist/src/worker.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.js
CHANGED
|
@@ -17,14 +17,20 @@ export var PollWorkerTaskRejectReason;
|
|
|
17
17
|
PollWorkerTaskRejectReason[PollWorkerTaskRejectReason["POLL_WORKER_TASK_REJECT_REASON_UNSPECIFIED"] = 0] = "POLL_WORKER_TASK_REJECT_REASON_UNSPECIFIED";
|
|
18
18
|
/** POLL_WORKER_TASK_REJECT_REASON_NO_CAPACITY - All Worker execution slots are occupied. */
|
|
19
19
|
PollWorkerTaskRejectReason[PollWorkerTaskRejectReason["POLL_WORKER_TASK_REJECT_REASON_NO_CAPACITY"] = 1] = "POLL_WORKER_TASK_REJECT_REASON_NO_CAPACITY";
|
|
20
|
+
/** POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_STEP - The Flow has no registration for the requested Step type. */
|
|
21
|
+
PollWorkerTaskRejectReason[PollWorkerTaskRejectReason["POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_STEP"] = 2] = "POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_STEP";
|
|
22
|
+
/** POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_RPC - The Flow has no registration for the requested RPC name. */
|
|
23
|
+
PollWorkerTaskRejectReason[PollWorkerTaskRejectReason["POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_RPC"] = 3] = "POLL_WORKER_TASK_REJECT_REASON_UNKNOWN_RPC";
|
|
20
24
|
PollWorkerTaskRejectReason[PollWorkerTaskRejectReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
21
25
|
})(PollWorkerTaskRejectReason || (PollWorkerTaskRejectReason = {}));
|
|
22
|
-
/** Distinguishes
|
|
26
|
+
/** Distinguishes no available Worker, a disconnected Worker, and a missing Step or RPC registration. */
|
|
23
27
|
export var DispatchTaskErrorReason;
|
|
24
28
|
(function (DispatchTaskErrorReason) {
|
|
25
29
|
DispatchTaskErrorReason[DispatchTaskErrorReason["DISPATCH_TASK_ERROR_REASON_UNSPECIFIED"] = 0] = "DISPATCH_TASK_ERROR_REASON_UNSPECIFIED";
|
|
26
30
|
DispatchTaskErrorReason[DispatchTaskErrorReason["DISPATCH_TASK_ERROR_REASON_NO_WORKER_AVAILABLE"] = 1] = "DISPATCH_TASK_ERROR_REASON_NO_WORKER_AVAILABLE";
|
|
27
31
|
DispatchTaskErrorReason[DispatchTaskErrorReason["DISPATCH_TASK_ERROR_REASON_WORKER_DISCONNECTED"] = 2] = "DISPATCH_TASK_ERROR_REASON_WORKER_DISCONNECTED";
|
|
32
|
+
/** DISPATCH_TASK_ERROR_REASON_UNKNOWN_NAME - A matched Worker does not register the requested Step type or RPC name. */
|
|
33
|
+
DispatchTaskErrorReason[DispatchTaskErrorReason["DISPATCH_TASK_ERROR_REASON_UNKNOWN_NAME"] = 3] = "DISPATCH_TASK_ERROR_REASON_UNKNOWN_NAME";
|
|
28
34
|
DispatchTaskErrorReason[DispatchTaskErrorReason["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
29
35
|
})(DispatchTaskErrorReason || (DispatchTaskErrorReason = {}));
|
|
30
36
|
export var IndexType;
|
|
@@ -788,10 +794,13 @@ export const PollWorkerTaskResponse = {
|
|
|
788
794
|
},
|
|
789
795
|
};
|
|
790
796
|
function createBasePollWorkerTaskRegistered() {
|
|
791
|
-
return {};
|
|
797
|
+
return { supportsUnknownNameRejection: false };
|
|
792
798
|
}
|
|
793
799
|
export const PollWorkerTaskRegistered = {
|
|
794
|
-
encode(
|
|
800
|
+
encode(message, writer = new BinaryWriter()) {
|
|
801
|
+
if (message.supportsUnknownNameRejection !== false) {
|
|
802
|
+
writer.uint32(8).bool(message.supportsUnknownNameRejection);
|
|
803
|
+
}
|
|
795
804
|
return writer;
|
|
796
805
|
},
|
|
797
806
|
decode(input, length) {
|
|
@@ -801,6 +810,13 @@ export const PollWorkerTaskRegistered = {
|
|
|
801
810
|
while (reader.pos < end) {
|
|
802
811
|
const tag = reader.uint32();
|
|
803
812
|
switch (tag >>> 3) {
|
|
813
|
+
case 1: {
|
|
814
|
+
if (tag !== 8) {
|
|
815
|
+
break;
|
|
816
|
+
}
|
|
817
|
+
message.supportsUnknownNameRejection = reader.bool();
|
|
818
|
+
continue;
|
|
819
|
+
}
|
|
804
820
|
}
|
|
805
821
|
if ((tag & 7) === 4 || tag === 0) {
|
|
806
822
|
break;
|
|
@@ -812,8 +828,9 @@ export const PollWorkerTaskRegistered = {
|
|
|
812
828
|
create(base) {
|
|
813
829
|
return PollWorkerTaskRegistered.fromPartial(base ?? {});
|
|
814
830
|
},
|
|
815
|
-
fromPartial(
|
|
831
|
+
fromPartial(object) {
|
|
816
832
|
const message = createBasePollWorkerTaskRegistered();
|
|
833
|
+
message.supportsUnknownNameRejection = object.supportsUnknownNameRejection ?? false;
|
|
817
834
|
return message;
|
|
818
835
|
},
|
|
819
836
|
};
|
|
@@ -1044,6 +1061,10 @@ function createBaseDispatchTaskRequest() {
|
|
|
1044
1061
|
taskId: "",
|
|
1045
1062
|
request: undefined,
|
|
1046
1063
|
supportsAssignmentState: false,
|
|
1064
|
+
excludedAppWorkerIds: [],
|
|
1065
|
+
stopAfterUnknownName: false,
|
|
1066
|
+
stopWhenQueueHasNoStreams: false,
|
|
1067
|
+
supportsUnknownNameError: false,
|
|
1047
1068
|
};
|
|
1048
1069
|
}
|
|
1049
1070
|
export const DispatchTaskRequest = {
|
|
@@ -1083,6 +1104,18 @@ export const DispatchTaskRequest = {
|
|
|
1083
1104
|
if (message.supportsAssignmentState !== false) {
|
|
1084
1105
|
writer.uint32(88).bool(message.supportsAssignmentState);
|
|
1085
1106
|
}
|
|
1107
|
+
for (const v of message.excludedAppWorkerIds) {
|
|
1108
|
+
writer.uint32(98).string(v);
|
|
1109
|
+
}
|
|
1110
|
+
if (message.stopAfterUnknownName !== false) {
|
|
1111
|
+
writer.uint32(104).bool(message.stopAfterUnknownName);
|
|
1112
|
+
}
|
|
1113
|
+
if (message.stopWhenQueueHasNoStreams !== false) {
|
|
1114
|
+
writer.uint32(112).bool(message.stopWhenQueueHasNoStreams);
|
|
1115
|
+
}
|
|
1116
|
+
if (message.supportsUnknownNameError !== false) {
|
|
1117
|
+
writer.uint32(120).bool(message.supportsUnknownNameError);
|
|
1118
|
+
}
|
|
1086
1119
|
return writer;
|
|
1087
1120
|
},
|
|
1088
1121
|
decode(input, length) {
|
|
@@ -1169,6 +1202,34 @@ export const DispatchTaskRequest = {
|
|
|
1169
1202
|
message.supportsAssignmentState = reader.bool();
|
|
1170
1203
|
continue;
|
|
1171
1204
|
}
|
|
1205
|
+
case 12: {
|
|
1206
|
+
if (tag !== 98) {
|
|
1207
|
+
break;
|
|
1208
|
+
}
|
|
1209
|
+
message.excludedAppWorkerIds.push(reader.string());
|
|
1210
|
+
continue;
|
|
1211
|
+
}
|
|
1212
|
+
case 13: {
|
|
1213
|
+
if (tag !== 104) {
|
|
1214
|
+
break;
|
|
1215
|
+
}
|
|
1216
|
+
message.stopAfterUnknownName = reader.bool();
|
|
1217
|
+
continue;
|
|
1218
|
+
}
|
|
1219
|
+
case 14: {
|
|
1220
|
+
if (tag !== 112) {
|
|
1221
|
+
break;
|
|
1222
|
+
}
|
|
1223
|
+
message.stopWhenQueueHasNoStreams = reader.bool();
|
|
1224
|
+
continue;
|
|
1225
|
+
}
|
|
1226
|
+
case 15: {
|
|
1227
|
+
if (tag !== 120) {
|
|
1228
|
+
break;
|
|
1229
|
+
}
|
|
1230
|
+
message.supportsUnknownNameError = reader.bool();
|
|
1231
|
+
continue;
|
|
1232
|
+
}
|
|
1172
1233
|
}
|
|
1173
1234
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1174
1235
|
break;
|
|
@@ -1214,11 +1275,15 @@ export const DispatchTaskRequest = {
|
|
|
1214
1275
|
}
|
|
1215
1276
|
}
|
|
1216
1277
|
message.supportsAssignmentState = object.supportsAssignmentState ?? false;
|
|
1278
|
+
message.excludedAppWorkerIds = object.excludedAppWorkerIds?.map((e) => e) || [];
|
|
1279
|
+
message.stopAfterUnknownName = object.stopAfterUnknownName ?? false;
|
|
1280
|
+
message.stopWhenQueueHasNoStreams = object.stopWhenQueueHasNoStreams ?? false;
|
|
1281
|
+
message.supportsUnknownNameError = object.supportsUnknownNameError ?? false;
|
|
1217
1282
|
return message;
|
|
1218
1283
|
},
|
|
1219
1284
|
};
|
|
1220
1285
|
function createBaseDispatchTaskResponse() {
|
|
1221
|
-
return { output: undefined, servedByAppWorkerId: "" };
|
|
1286
|
+
return { output: undefined, servedByAppWorkerId: "", rejectedByAppWorkerId: "" };
|
|
1222
1287
|
}
|
|
1223
1288
|
export const DispatchTaskResponse = {
|
|
1224
1289
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -1248,6 +1313,9 @@ export const DispatchTaskResponse = {
|
|
|
1248
1313
|
if (message.servedByAppWorkerId !== "") {
|
|
1249
1314
|
writer.uint32(50).string(message.servedByAppWorkerId);
|
|
1250
1315
|
}
|
|
1316
|
+
if (message.rejectedByAppWorkerId !== "") {
|
|
1317
|
+
writer.uint32(74).string(message.rejectedByAppWorkerId);
|
|
1318
|
+
}
|
|
1251
1319
|
return writer;
|
|
1252
1320
|
},
|
|
1253
1321
|
decode(input, length) {
|
|
@@ -1313,6 +1381,13 @@ export const DispatchTaskResponse = {
|
|
|
1313
1381
|
message.servedByAppWorkerId = reader.string();
|
|
1314
1382
|
continue;
|
|
1315
1383
|
}
|
|
1384
|
+
case 9: {
|
|
1385
|
+
if (tag !== 74) {
|
|
1386
|
+
break;
|
|
1387
|
+
}
|
|
1388
|
+
message.rejectedByAppWorkerId = reader.string();
|
|
1389
|
+
continue;
|
|
1390
|
+
}
|
|
1316
1391
|
}
|
|
1317
1392
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1318
1393
|
break;
|
|
@@ -1371,6 +1446,7 @@ export const DispatchTaskResponse = {
|
|
|
1371
1446
|
}
|
|
1372
1447
|
}
|
|
1373
1448
|
message.servedByAppWorkerId = object.servedByAppWorkerId ?? "";
|
|
1449
|
+
message.rejectedByAppWorkerId = object.rejectedByAppWorkerId ?? "";
|
|
1374
1450
|
return message;
|
|
1375
1451
|
},
|
|
1376
1452
|
};
|
|
@@ -1644,7 +1720,7 @@ export const EncodedObject = {
|
|
|
1644
1720
|
},
|
|
1645
1721
|
};
|
|
1646
1722
|
function createBaseAttributeWrite() {
|
|
1647
|
-
return { key: "", value: undefined, indexConfig: undefined, syncConfig: undefined };
|
|
1723
|
+
return { key: "", value: undefined, indexConfig: undefined, syncConfig: undefined, isHardDeleteOnNull: false };
|
|
1648
1724
|
}
|
|
1649
1725
|
export const AttributeWrite = {
|
|
1650
1726
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -1660,6 +1736,9 @@ export const AttributeWrite = {
|
|
|
1660
1736
|
if (message.syncConfig !== undefined) {
|
|
1661
1737
|
AttributeSyncConfig.encode(message.syncConfig, writer.uint32(34).fork()).join();
|
|
1662
1738
|
}
|
|
1739
|
+
if (message.isHardDeleteOnNull !== false) {
|
|
1740
|
+
writer.uint32(40).bool(message.isHardDeleteOnNull);
|
|
1741
|
+
}
|
|
1663
1742
|
return writer;
|
|
1664
1743
|
},
|
|
1665
1744
|
decode(input, length) {
|
|
@@ -1697,6 +1776,13 @@ export const AttributeWrite = {
|
|
|
1697
1776
|
message.syncConfig = AttributeSyncConfig.decode(reader, reader.uint32());
|
|
1698
1777
|
continue;
|
|
1699
1778
|
}
|
|
1779
|
+
case 5: {
|
|
1780
|
+
if (tag !== 40) {
|
|
1781
|
+
break;
|
|
1782
|
+
}
|
|
1783
|
+
message.isHardDeleteOnNull = reader.bool();
|
|
1784
|
+
continue;
|
|
1785
|
+
}
|
|
1700
1786
|
}
|
|
1701
1787
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1702
1788
|
break;
|
|
@@ -1718,6 +1804,7 @@ export const AttributeWrite = {
|
|
|
1718
1804
|
message.syncConfig = (object.syncConfig !== undefined && object.syncConfig !== null)
|
|
1719
1805
|
? AttributeSyncConfig.fromPartial(object.syncConfig)
|
|
1720
1806
|
: undefined;
|
|
1807
|
+
message.isHardDeleteOnNull = object.isHardDeleteOnNull ?? false;
|
|
1721
1808
|
return message;
|
|
1722
1809
|
},
|
|
1723
1810
|
};
|
|
@@ -14565,7 +14652,7 @@ export const SyncAttributeBatchActivityInput = {
|
|
|
14565
14652
|
},
|
|
14566
14653
|
};
|
|
14567
14654
|
function createBaseStartSubFlowActivityInput() {
|
|
14568
|
-
return { condition: undefined, parentFlowConfig: undefined, parentStepExecutionId: "" };
|
|
14655
|
+
return { condition: undefined, parentFlowConfig: undefined, parentStepExecutionId: "", typedRejectionEnabled: false };
|
|
14569
14656
|
}
|
|
14570
14657
|
export const StartSubFlowActivityInput = {
|
|
14571
14658
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -14578,6 +14665,9 @@ export const StartSubFlowActivityInput = {
|
|
|
14578
14665
|
if (message.parentStepExecutionId !== "") {
|
|
14579
14666
|
writer.uint32(26).string(message.parentStepExecutionId);
|
|
14580
14667
|
}
|
|
14668
|
+
if (message.typedRejectionEnabled !== false) {
|
|
14669
|
+
writer.uint32(48).bool(message.typedRejectionEnabled);
|
|
14670
|
+
}
|
|
14581
14671
|
return writer;
|
|
14582
14672
|
},
|
|
14583
14673
|
decode(input, length) {
|
|
@@ -14608,6 +14698,13 @@ export const StartSubFlowActivityInput = {
|
|
|
14608
14698
|
message.parentStepExecutionId = reader.string();
|
|
14609
14699
|
continue;
|
|
14610
14700
|
}
|
|
14701
|
+
case 6: {
|
|
14702
|
+
if (tag !== 48) {
|
|
14703
|
+
break;
|
|
14704
|
+
}
|
|
14705
|
+
message.typedRejectionEnabled = reader.bool();
|
|
14706
|
+
continue;
|
|
14707
|
+
}
|
|
14611
14708
|
}
|
|
14612
14709
|
if ((tag & 7) === 4 || tag === 0) {
|
|
14613
14710
|
break;
|
|
@@ -14628,6 +14725,7 @@ export const StartSubFlowActivityInput = {
|
|
|
14628
14725
|
? FlowConfig.fromPartial(object.parentFlowConfig)
|
|
14629
14726
|
: undefined;
|
|
14630
14727
|
message.parentStepExecutionId = object.parentStepExecutionId ?? "";
|
|
14728
|
+
message.typedRejectionEnabled = object.typedRejectionEnabled ?? false;
|
|
14631
14729
|
return message;
|
|
14632
14730
|
},
|
|
14633
14731
|
};
|