@superdurable/dex 0.2.10 → 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.
- 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 +2 -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.js +6 -18
- package/dist/src/invocation-context.js.map +1 -1
- package/dist/src/options.d.ts +48 -2
- package/dist/src/options.js +13 -0
- 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.js
CHANGED
|
@@ -1045,6 +1045,12 @@ function createBaseStepOptions() {
|
|
|
1045
1045
|
waitForLockAttributeKeys: [],
|
|
1046
1046
|
executeLockAttributeKeys: [],
|
|
1047
1047
|
heartbeatTimeoutSeconds: 0,
|
|
1048
|
+
waitForLoadAttributeMapInstances: [],
|
|
1049
|
+
waitForLoadChannelNames: [],
|
|
1050
|
+
waitForLoadChannelMapInstances: [],
|
|
1051
|
+
executeLoadAttributeMapInstances: [],
|
|
1052
|
+
executeLoadChannelNames: [],
|
|
1053
|
+
executeLoadChannelMapInstances: [],
|
|
1048
1054
|
};
|
|
1049
1055
|
}
|
|
1050
1056
|
export const StepOptions = {
|
|
@@ -1091,6 +1097,24 @@ export const StepOptions = {
|
|
|
1091
1097
|
if (message.heartbeatTimeoutSeconds !== 0) {
|
|
1092
1098
|
writer.uint32(112).int32(message.heartbeatTimeoutSeconds);
|
|
1093
1099
|
}
|
|
1100
|
+
for (const v of message.waitForLoadAttributeMapInstances) {
|
|
1101
|
+
writer.uint32(122).string(v);
|
|
1102
|
+
}
|
|
1103
|
+
for (const v of message.waitForLoadChannelNames) {
|
|
1104
|
+
writer.uint32(130).string(v);
|
|
1105
|
+
}
|
|
1106
|
+
for (const v of message.waitForLoadChannelMapInstances) {
|
|
1107
|
+
writer.uint32(138).string(v);
|
|
1108
|
+
}
|
|
1109
|
+
for (const v of message.executeLoadAttributeMapInstances) {
|
|
1110
|
+
writer.uint32(146).string(v);
|
|
1111
|
+
}
|
|
1112
|
+
for (const v of message.executeLoadChannelNames) {
|
|
1113
|
+
writer.uint32(154).string(v);
|
|
1114
|
+
}
|
|
1115
|
+
for (const v of message.executeLoadChannelMapInstances) {
|
|
1116
|
+
writer.uint32(162).string(v);
|
|
1117
|
+
}
|
|
1094
1118
|
return writer;
|
|
1095
1119
|
},
|
|
1096
1120
|
decode(input, length) {
|
|
@@ -1198,6 +1222,48 @@ export const StepOptions = {
|
|
|
1198
1222
|
message.heartbeatTimeoutSeconds = reader.int32();
|
|
1199
1223
|
continue;
|
|
1200
1224
|
}
|
|
1225
|
+
case 15: {
|
|
1226
|
+
if (tag !== 122) {
|
|
1227
|
+
break;
|
|
1228
|
+
}
|
|
1229
|
+
message.waitForLoadAttributeMapInstances.push(reader.string());
|
|
1230
|
+
continue;
|
|
1231
|
+
}
|
|
1232
|
+
case 16: {
|
|
1233
|
+
if (tag !== 130) {
|
|
1234
|
+
break;
|
|
1235
|
+
}
|
|
1236
|
+
message.waitForLoadChannelNames.push(reader.string());
|
|
1237
|
+
continue;
|
|
1238
|
+
}
|
|
1239
|
+
case 17: {
|
|
1240
|
+
if (tag !== 138) {
|
|
1241
|
+
break;
|
|
1242
|
+
}
|
|
1243
|
+
message.waitForLoadChannelMapInstances.push(reader.string());
|
|
1244
|
+
continue;
|
|
1245
|
+
}
|
|
1246
|
+
case 18: {
|
|
1247
|
+
if (tag !== 146) {
|
|
1248
|
+
break;
|
|
1249
|
+
}
|
|
1250
|
+
message.executeLoadAttributeMapInstances.push(reader.string());
|
|
1251
|
+
continue;
|
|
1252
|
+
}
|
|
1253
|
+
case 19: {
|
|
1254
|
+
if (tag !== 154) {
|
|
1255
|
+
break;
|
|
1256
|
+
}
|
|
1257
|
+
message.executeLoadChannelNames.push(reader.string());
|
|
1258
|
+
continue;
|
|
1259
|
+
}
|
|
1260
|
+
case 20: {
|
|
1261
|
+
if (tag !== 162) {
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
message.executeLoadChannelMapInstances.push(reader.string());
|
|
1265
|
+
continue;
|
|
1266
|
+
}
|
|
1201
1267
|
}
|
|
1202
1268
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1203
1269
|
break;
|
|
@@ -1232,6 +1298,180 @@ export const StepOptions = {
|
|
|
1232
1298
|
message.waitForLockAttributeKeys = object.waitForLockAttributeKeys?.map((e) => e) || [];
|
|
1233
1299
|
message.executeLockAttributeKeys = object.executeLockAttributeKeys?.map((e) => e) || [];
|
|
1234
1300
|
message.heartbeatTimeoutSeconds = object.heartbeatTimeoutSeconds ?? 0;
|
|
1301
|
+
message.waitForLoadAttributeMapInstances = object.waitForLoadAttributeMapInstances?.map((e) => e) || [];
|
|
1302
|
+
message.waitForLoadChannelNames = object.waitForLoadChannelNames?.map((e) => e) || [];
|
|
1303
|
+
message.waitForLoadChannelMapInstances = object.waitForLoadChannelMapInstances?.map((e) => e) || [];
|
|
1304
|
+
message.executeLoadAttributeMapInstances = object.executeLoadAttributeMapInstances?.map((e) => e) || [];
|
|
1305
|
+
message.executeLoadChannelNames = object.executeLoadChannelNames?.map((e) => e) || [];
|
|
1306
|
+
message.executeLoadChannelMapInstances = object.executeLoadChannelMapInstances?.map((e) => e) || [];
|
|
1307
|
+
return message;
|
|
1308
|
+
},
|
|
1309
|
+
};
|
|
1310
|
+
function createBaseFlowTimeoutHandlerOptions() {
|
|
1311
|
+
return {
|
|
1312
|
+
methodTimeoutSeconds: 0,
|
|
1313
|
+
heartbeatTimeoutSeconds: 0,
|
|
1314
|
+
retryPolicy: undefined,
|
|
1315
|
+
failurePolicy: 0,
|
|
1316
|
+
failureProceedStepType: "",
|
|
1317
|
+
failureProceedStepOptions: undefined,
|
|
1318
|
+
durabilityOverride: 0,
|
|
1319
|
+
lockAttributeKeys: [],
|
|
1320
|
+
loadAttributeMapInstances: [],
|
|
1321
|
+
loadChannelNames: [],
|
|
1322
|
+
loadChannelMapInstances: [],
|
|
1323
|
+
};
|
|
1324
|
+
}
|
|
1325
|
+
export const FlowTimeoutHandlerOptions = {
|
|
1326
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1327
|
+
if (message.methodTimeoutSeconds !== 0) {
|
|
1328
|
+
writer.uint32(8).int32(message.methodTimeoutSeconds);
|
|
1329
|
+
}
|
|
1330
|
+
if (message.heartbeatTimeoutSeconds !== 0) {
|
|
1331
|
+
writer.uint32(16).int32(message.heartbeatTimeoutSeconds);
|
|
1332
|
+
}
|
|
1333
|
+
if (message.retryPolicy !== undefined) {
|
|
1334
|
+
RetryPolicy.encode(message.retryPolicy, writer.uint32(26).fork()).join();
|
|
1335
|
+
}
|
|
1336
|
+
if (message.failurePolicy !== 0) {
|
|
1337
|
+
writer.uint32(32).int32(message.failurePolicy);
|
|
1338
|
+
}
|
|
1339
|
+
if (message.failureProceedStepType !== "") {
|
|
1340
|
+
writer.uint32(42).string(message.failureProceedStepType);
|
|
1341
|
+
}
|
|
1342
|
+
if (message.failureProceedStepOptions !== undefined) {
|
|
1343
|
+
StepOptions.encode(message.failureProceedStepOptions, writer.uint32(50).fork()).join();
|
|
1344
|
+
}
|
|
1345
|
+
if (message.durabilityOverride !== 0) {
|
|
1346
|
+
writer.uint32(56).int32(message.durabilityOverride);
|
|
1347
|
+
}
|
|
1348
|
+
for (const v of message.lockAttributeKeys) {
|
|
1349
|
+
writer.uint32(66).string(v);
|
|
1350
|
+
}
|
|
1351
|
+
for (const v of message.loadAttributeMapInstances) {
|
|
1352
|
+
writer.uint32(74).string(v);
|
|
1353
|
+
}
|
|
1354
|
+
for (const v of message.loadChannelNames) {
|
|
1355
|
+
writer.uint32(82).string(v);
|
|
1356
|
+
}
|
|
1357
|
+
for (const v of message.loadChannelMapInstances) {
|
|
1358
|
+
writer.uint32(90).string(v);
|
|
1359
|
+
}
|
|
1360
|
+
return writer;
|
|
1361
|
+
},
|
|
1362
|
+
decode(input, length) {
|
|
1363
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1364
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1365
|
+
const message = createBaseFlowTimeoutHandlerOptions();
|
|
1366
|
+
while (reader.pos < end) {
|
|
1367
|
+
const tag = reader.uint32();
|
|
1368
|
+
switch (tag >>> 3) {
|
|
1369
|
+
case 1: {
|
|
1370
|
+
if (tag !== 8) {
|
|
1371
|
+
break;
|
|
1372
|
+
}
|
|
1373
|
+
message.methodTimeoutSeconds = reader.int32();
|
|
1374
|
+
continue;
|
|
1375
|
+
}
|
|
1376
|
+
case 2: {
|
|
1377
|
+
if (tag !== 16) {
|
|
1378
|
+
break;
|
|
1379
|
+
}
|
|
1380
|
+
message.heartbeatTimeoutSeconds = reader.int32();
|
|
1381
|
+
continue;
|
|
1382
|
+
}
|
|
1383
|
+
case 3: {
|
|
1384
|
+
if (tag !== 26) {
|
|
1385
|
+
break;
|
|
1386
|
+
}
|
|
1387
|
+
message.retryPolicy = RetryPolicy.decode(reader, reader.uint32());
|
|
1388
|
+
continue;
|
|
1389
|
+
}
|
|
1390
|
+
case 4: {
|
|
1391
|
+
if (tag !== 32) {
|
|
1392
|
+
break;
|
|
1393
|
+
}
|
|
1394
|
+
message.failurePolicy = reader.int32();
|
|
1395
|
+
continue;
|
|
1396
|
+
}
|
|
1397
|
+
case 5: {
|
|
1398
|
+
if (tag !== 42) {
|
|
1399
|
+
break;
|
|
1400
|
+
}
|
|
1401
|
+
message.failureProceedStepType = reader.string();
|
|
1402
|
+
continue;
|
|
1403
|
+
}
|
|
1404
|
+
case 6: {
|
|
1405
|
+
if (tag !== 50) {
|
|
1406
|
+
break;
|
|
1407
|
+
}
|
|
1408
|
+
message.failureProceedStepOptions = StepOptions.decode(reader, reader.uint32());
|
|
1409
|
+
continue;
|
|
1410
|
+
}
|
|
1411
|
+
case 7: {
|
|
1412
|
+
if (tag !== 56) {
|
|
1413
|
+
break;
|
|
1414
|
+
}
|
|
1415
|
+
message.durabilityOverride = reader.int32();
|
|
1416
|
+
continue;
|
|
1417
|
+
}
|
|
1418
|
+
case 8: {
|
|
1419
|
+
if (tag !== 66) {
|
|
1420
|
+
break;
|
|
1421
|
+
}
|
|
1422
|
+
message.lockAttributeKeys.push(reader.string());
|
|
1423
|
+
continue;
|
|
1424
|
+
}
|
|
1425
|
+
case 9: {
|
|
1426
|
+
if (tag !== 74) {
|
|
1427
|
+
break;
|
|
1428
|
+
}
|
|
1429
|
+
message.loadAttributeMapInstances.push(reader.string());
|
|
1430
|
+
continue;
|
|
1431
|
+
}
|
|
1432
|
+
case 10: {
|
|
1433
|
+
if (tag !== 82) {
|
|
1434
|
+
break;
|
|
1435
|
+
}
|
|
1436
|
+
message.loadChannelNames.push(reader.string());
|
|
1437
|
+
continue;
|
|
1438
|
+
}
|
|
1439
|
+
case 11: {
|
|
1440
|
+
if (tag !== 90) {
|
|
1441
|
+
break;
|
|
1442
|
+
}
|
|
1443
|
+
message.loadChannelMapInstances.push(reader.string());
|
|
1444
|
+
continue;
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1448
|
+
break;
|
|
1449
|
+
}
|
|
1450
|
+
reader.skip(tag & 7);
|
|
1451
|
+
}
|
|
1452
|
+
return message;
|
|
1453
|
+
},
|
|
1454
|
+
create(base) {
|
|
1455
|
+
return FlowTimeoutHandlerOptions.fromPartial(base ?? {});
|
|
1456
|
+
},
|
|
1457
|
+
fromPartial(object) {
|
|
1458
|
+
const message = createBaseFlowTimeoutHandlerOptions();
|
|
1459
|
+
message.methodTimeoutSeconds = object.methodTimeoutSeconds ?? 0;
|
|
1460
|
+
message.heartbeatTimeoutSeconds = object.heartbeatTimeoutSeconds ?? 0;
|
|
1461
|
+
message.retryPolicy = (object.retryPolicy !== undefined && object.retryPolicy !== null)
|
|
1462
|
+
? RetryPolicy.fromPartial(object.retryPolicy)
|
|
1463
|
+
: undefined;
|
|
1464
|
+
message.failurePolicy = object.failurePolicy ?? 0;
|
|
1465
|
+
message.failureProceedStepType = object.failureProceedStepType ?? "";
|
|
1466
|
+
message.failureProceedStepOptions =
|
|
1467
|
+
(object.failureProceedStepOptions !== undefined && object.failureProceedStepOptions !== null)
|
|
1468
|
+
? StepOptions.fromPartial(object.failureProceedStepOptions)
|
|
1469
|
+
: undefined;
|
|
1470
|
+
message.durabilityOverride = object.durabilityOverride ?? 0;
|
|
1471
|
+
message.lockAttributeKeys = object.lockAttributeKeys?.map((e) => e) || [];
|
|
1472
|
+
message.loadAttributeMapInstances = object.loadAttributeMapInstances?.map((e) => e) || [];
|
|
1473
|
+
message.loadChannelNames = object.loadChannelNames?.map((e) => e) || [];
|
|
1474
|
+
message.loadChannelMapInstances = object.loadChannelMapInstances?.map((e) => e) || [];
|
|
1235
1475
|
return message;
|
|
1236
1476
|
},
|
|
1237
1477
|
};
|
|
@@ -1284,6 +1524,7 @@ function createBaseFlowStartOptions() {
|
|
|
1284
1524
|
attributes: [],
|
|
1285
1525
|
flowConfigOverride: undefined,
|
|
1286
1526
|
flowAlreadyStartedOptions: undefined,
|
|
1527
|
+
timeoutHandlerOptions: undefined,
|
|
1287
1528
|
};
|
|
1288
1529
|
}
|
|
1289
1530
|
export const FlowStartOptions = {
|
|
@@ -1306,6 +1547,9 @@ export const FlowStartOptions = {
|
|
|
1306
1547
|
if (message.flowAlreadyStartedOptions !== undefined) {
|
|
1307
1548
|
FlowAlreadyStartedOptions.encode(message.flowAlreadyStartedOptions, writer.uint32(50).fork()).join();
|
|
1308
1549
|
}
|
|
1550
|
+
if (message.timeoutHandlerOptions !== undefined) {
|
|
1551
|
+
FlowTimeoutHandlerOptions.encode(message.timeoutHandlerOptions, writer.uint32(58).fork()).join();
|
|
1552
|
+
}
|
|
1309
1553
|
return writer;
|
|
1310
1554
|
},
|
|
1311
1555
|
decode(input, length) {
|
|
@@ -1357,6 +1601,13 @@ export const FlowStartOptions = {
|
|
|
1357
1601
|
message.flowAlreadyStartedOptions = FlowAlreadyStartedOptions.decode(reader, reader.uint32());
|
|
1358
1602
|
continue;
|
|
1359
1603
|
}
|
|
1604
|
+
case 7: {
|
|
1605
|
+
if (tag !== 58) {
|
|
1606
|
+
break;
|
|
1607
|
+
}
|
|
1608
|
+
message.timeoutHandlerOptions = FlowTimeoutHandlerOptions.decode(reader, reader.uint32());
|
|
1609
|
+
continue;
|
|
1610
|
+
}
|
|
1360
1611
|
}
|
|
1361
1612
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1362
1613
|
break;
|
|
@@ -1383,6 +1634,10 @@ export const FlowStartOptions = {
|
|
|
1383
1634
|
(object.flowAlreadyStartedOptions !== undefined && object.flowAlreadyStartedOptions !== null)
|
|
1384
1635
|
? FlowAlreadyStartedOptions.fromPartial(object.flowAlreadyStartedOptions)
|
|
1385
1636
|
: undefined;
|
|
1637
|
+
message.timeoutHandlerOptions =
|
|
1638
|
+
(object.timeoutHandlerOptions !== undefined && object.timeoutHandlerOptions !== null)
|
|
1639
|
+
? FlowTimeoutHandlerOptions.fromPartial(object.timeoutHandlerOptions)
|
|
1640
|
+
: undefined;
|
|
1386
1641
|
return message;
|
|
1387
1642
|
},
|
|
1388
1643
|
};
|
|
@@ -4318,6 +4573,7 @@ function createBaseFlowStartedOrContinuedHistoryEvent() {
|
|
|
4318
4573
|
flowConfig: undefined,
|
|
4319
4574
|
flowTimeout: undefined,
|
|
4320
4575
|
flowTimeoutPolicy: 0,
|
|
4576
|
+
timeoutHandlerOptions: undefined,
|
|
4321
4577
|
startOrContinue: undefined,
|
|
4322
4578
|
};
|
|
4323
4579
|
}
|
|
@@ -4338,6 +4594,9 @@ export const FlowStartedOrContinuedHistoryEvent = {
|
|
|
4338
4594
|
if (message.flowTimeoutPolicy !== 0) {
|
|
4339
4595
|
writer.uint32(40).int32(message.flowTimeoutPolicy);
|
|
4340
4596
|
}
|
|
4597
|
+
if (message.timeoutHandlerOptions !== undefined) {
|
|
4598
|
+
FlowTimeoutHandlerOptions.encode(message.timeoutHandlerOptions, writer.uint32(50).fork()).join();
|
|
4599
|
+
}
|
|
4341
4600
|
switch (message.startOrContinue?.$case) {
|
|
4342
4601
|
case "initialStart":
|
|
4343
4602
|
FlowInitialStart.encode(message.startOrContinue.value, writer.uint32(82).fork()).join();
|
|
@@ -4390,6 +4649,13 @@ export const FlowStartedOrContinuedHistoryEvent = {
|
|
|
4390
4649
|
message.flowTimeoutPolicy = reader.int32();
|
|
4391
4650
|
continue;
|
|
4392
4651
|
}
|
|
4652
|
+
case 6: {
|
|
4653
|
+
if (tag !== 50) {
|
|
4654
|
+
break;
|
|
4655
|
+
}
|
|
4656
|
+
message.timeoutHandlerOptions = FlowTimeoutHandlerOptions.decode(reader, reader.uint32());
|
|
4657
|
+
continue;
|
|
4658
|
+
}
|
|
4393
4659
|
case 10: {
|
|
4394
4660
|
if (tag !== 82) {
|
|
4395
4661
|
break;
|
|
@@ -4431,6 +4697,10 @@ export const FlowStartedOrContinuedHistoryEvent = {
|
|
|
4431
4697
|
? Duration.fromPartial(object.flowTimeout)
|
|
4432
4698
|
: undefined;
|
|
4433
4699
|
message.flowTimeoutPolicy = object.flowTimeoutPolicy ?? 0;
|
|
4700
|
+
message.timeoutHandlerOptions =
|
|
4701
|
+
(object.timeoutHandlerOptions !== undefined && object.timeoutHandlerOptions !== null)
|
|
4702
|
+
? FlowTimeoutHandlerOptions.fromPartial(object.timeoutHandlerOptions)
|
|
4703
|
+
: undefined;
|
|
4434
4704
|
switch (object.startOrContinue?.$case) {
|
|
4435
4705
|
case "initialStart": {
|
|
4436
4706
|
if (object.startOrContinue?.value !== undefined && object.startOrContinue?.value !== null) {
|
|
@@ -5228,6 +5498,7 @@ function createBaseStepWaitForCompletedOutput() {
|
|
|
5228
5498
|
publishToChannel: [],
|
|
5229
5499
|
recordEvents: [],
|
|
5230
5500
|
upsertStepExecutionLocals: [],
|
|
5501
|
+
deleteFromChannel: [],
|
|
5231
5502
|
};
|
|
5232
5503
|
}
|
|
5233
5504
|
export const StepWaitForCompletedOutput = {
|
|
@@ -5247,6 +5518,9 @@ export const StepWaitForCompletedOutput = {
|
|
|
5247
5518
|
for (const v of message.upsertStepExecutionLocals) {
|
|
5248
5519
|
KV.encode(v, writer.uint32(42).fork()).join();
|
|
5249
5520
|
}
|
|
5521
|
+
for (const v of message.deleteFromChannel) {
|
|
5522
|
+
ChannelMessageDeletion.encode(v, writer.uint32(50).fork()).join();
|
|
5523
|
+
}
|
|
5250
5524
|
return writer;
|
|
5251
5525
|
},
|
|
5252
5526
|
decode(input, length) {
|
|
@@ -5291,6 +5565,13 @@ export const StepWaitForCompletedOutput = {
|
|
|
5291
5565
|
message.upsertStepExecutionLocals.push(KV.decode(reader, reader.uint32()));
|
|
5292
5566
|
continue;
|
|
5293
5567
|
}
|
|
5568
|
+
case 6: {
|
|
5569
|
+
if (tag !== 50) {
|
|
5570
|
+
break;
|
|
5571
|
+
}
|
|
5572
|
+
message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
|
|
5573
|
+
continue;
|
|
5574
|
+
}
|
|
5294
5575
|
}
|
|
5295
5576
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5296
5577
|
break;
|
|
@@ -5311,6 +5592,7 @@ export const StepWaitForCompletedOutput = {
|
|
|
5311
5592
|
message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
|
|
5312
5593
|
message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
|
|
5313
5594
|
message.upsertStepExecutionLocals = object.upsertStepExecutionLocals?.map((e) => KV.fromPartial(e)) || [];
|
|
5595
|
+
message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
|
|
5314
5596
|
return message;
|
|
5315
5597
|
},
|
|
5316
5598
|
};
|
|
@@ -5321,6 +5603,7 @@ function createBaseStepExecuteCompletedOutput() {
|
|
|
5321
5603
|
publishToChannel: [],
|
|
5322
5604
|
recordEvents: [],
|
|
5323
5605
|
upsertStepExecutionLocals: [],
|
|
5606
|
+
deleteFromChannel: [],
|
|
5324
5607
|
};
|
|
5325
5608
|
}
|
|
5326
5609
|
export const StepExecuteCompletedOutput = {
|
|
@@ -5340,6 +5623,9 @@ export const StepExecuteCompletedOutput = {
|
|
|
5340
5623
|
for (const v of message.upsertStepExecutionLocals) {
|
|
5341
5624
|
KV.encode(v, writer.uint32(42).fork()).join();
|
|
5342
5625
|
}
|
|
5626
|
+
for (const v of message.deleteFromChannel) {
|
|
5627
|
+
ChannelMessageDeletion.encode(v, writer.uint32(50).fork()).join();
|
|
5628
|
+
}
|
|
5343
5629
|
return writer;
|
|
5344
5630
|
},
|
|
5345
5631
|
decode(input, length) {
|
|
@@ -5384,6 +5670,13 @@ export const StepExecuteCompletedOutput = {
|
|
|
5384
5670
|
message.upsertStepExecutionLocals.push(KV.decode(reader, reader.uint32()));
|
|
5385
5671
|
continue;
|
|
5386
5672
|
}
|
|
5673
|
+
case 6: {
|
|
5674
|
+
if (tag !== 50) {
|
|
5675
|
+
break;
|
|
5676
|
+
}
|
|
5677
|
+
message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
|
|
5678
|
+
continue;
|
|
5679
|
+
}
|
|
5387
5680
|
}
|
|
5388
5681
|
if ((tag & 7) === 4 || tag === 0) {
|
|
5389
5682
|
break;
|
|
@@ -5404,6 +5697,7 @@ export const StepExecuteCompletedOutput = {
|
|
|
5404
5697
|
message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
|
|
5405
5698
|
message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
|
|
5406
5699
|
message.upsertStepExecutionLocals = object.upsertStepExecutionLocals?.map((e) => KV.fromPartial(e)) || [];
|
|
5700
|
+
message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
|
|
5407
5701
|
return message;
|
|
5408
5702
|
},
|
|
5409
5703
|
};
|
|
@@ -7837,7 +8131,18 @@ export const ChannelInfo = {
|
|
|
7837
8131
|
},
|
|
7838
8132
|
};
|
|
7839
8133
|
function createBaseInvokeWaitForMethodRequest() {
|
|
7840
|
-
return {
|
|
8134
|
+
return {
|
|
8135
|
+
context: undefined,
|
|
8136
|
+
flowType: "",
|
|
8137
|
+
stepType: "",
|
|
8138
|
+
stepInput: undefined,
|
|
8139
|
+
attributes: [],
|
|
8140
|
+
channelInfos: {},
|
|
8141
|
+
loadedChannelMessages: {},
|
|
8142
|
+
loadedAttributeMapInstances: [],
|
|
8143
|
+
loadedChannelNames: [],
|
|
8144
|
+
loadedChannelMapInstances: [],
|
|
8145
|
+
};
|
|
7841
8146
|
}
|
|
7842
8147
|
export const InvokeWaitForMethodRequest = {
|
|
7843
8148
|
encode(message, writer = new BinaryWriter()) {
|
|
@@ -7856,6 +8161,22 @@ export const InvokeWaitForMethodRequest = {
|
|
|
7856
8161
|
for (const v of message.attributes) {
|
|
7857
8162
|
KV.encode(v, writer.uint32(42).fork()).join();
|
|
7858
8163
|
}
|
|
8164
|
+
globalThis.Object.entries(message.channelInfos).forEach(([key, value]) => {
|
|
8165
|
+
InvokeWaitForMethodRequest_ChannelInfosEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
|
|
8166
|
+
});
|
|
8167
|
+
globalThis.Object.entries(message.loadedChannelMessages).forEach(([key, value]) => {
|
|
8168
|
+
InvokeWaitForMethodRequest_LoadedChannelMessagesEntry.encode({ key: key, value }, writer.uint32(58).fork())
|
|
8169
|
+
.join();
|
|
8170
|
+
});
|
|
8171
|
+
for (const v of message.loadedAttributeMapInstances) {
|
|
8172
|
+
writer.uint32(66).string(v);
|
|
8173
|
+
}
|
|
8174
|
+
for (const v of message.loadedChannelNames) {
|
|
8175
|
+
writer.uint32(74).string(v);
|
|
8176
|
+
}
|
|
8177
|
+
for (const v of message.loadedChannelMapInstances) {
|
|
8178
|
+
writer.uint32(82).string(v);
|
|
8179
|
+
}
|
|
7859
8180
|
return writer;
|
|
7860
8181
|
},
|
|
7861
8182
|
decode(input, length) {
|
|
@@ -7900,32 +8221,197 @@ export const InvokeWaitForMethodRequest = {
|
|
|
7900
8221
|
message.attributes.push(KV.decode(reader, reader.uint32()));
|
|
7901
8222
|
continue;
|
|
7902
8223
|
}
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7918
|
-
|
|
7919
|
-
|
|
7920
|
-
|
|
7921
|
-
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7925
|
-
|
|
7926
|
-
|
|
7927
|
-
|
|
7928
|
-
|
|
8224
|
+
case 6: {
|
|
8225
|
+
if (tag !== 50) {
|
|
8226
|
+
break;
|
|
8227
|
+
}
|
|
8228
|
+
const entry6 = InvokeWaitForMethodRequest_ChannelInfosEntry.decode(reader, reader.uint32());
|
|
8229
|
+
if (entry6.value !== undefined) {
|
|
8230
|
+
message.channelInfos[entry6.key] = entry6.value;
|
|
8231
|
+
}
|
|
8232
|
+
continue;
|
|
8233
|
+
}
|
|
8234
|
+
case 7: {
|
|
8235
|
+
if (tag !== 58) {
|
|
8236
|
+
break;
|
|
8237
|
+
}
|
|
8238
|
+
const entry7 = InvokeWaitForMethodRequest_LoadedChannelMessagesEntry.decode(reader, reader.uint32());
|
|
8239
|
+
if (entry7.value !== undefined) {
|
|
8240
|
+
message.loadedChannelMessages[entry7.key] = entry7.value;
|
|
8241
|
+
}
|
|
8242
|
+
continue;
|
|
8243
|
+
}
|
|
8244
|
+
case 8: {
|
|
8245
|
+
if (tag !== 66) {
|
|
8246
|
+
break;
|
|
8247
|
+
}
|
|
8248
|
+
message.loadedAttributeMapInstances.push(reader.string());
|
|
8249
|
+
continue;
|
|
8250
|
+
}
|
|
8251
|
+
case 9: {
|
|
8252
|
+
if (tag !== 74) {
|
|
8253
|
+
break;
|
|
8254
|
+
}
|
|
8255
|
+
message.loadedChannelNames.push(reader.string());
|
|
8256
|
+
continue;
|
|
8257
|
+
}
|
|
8258
|
+
case 10: {
|
|
8259
|
+
if (tag !== 82) {
|
|
8260
|
+
break;
|
|
8261
|
+
}
|
|
8262
|
+
message.loadedChannelMapInstances.push(reader.string());
|
|
8263
|
+
continue;
|
|
8264
|
+
}
|
|
8265
|
+
}
|
|
8266
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8267
|
+
break;
|
|
8268
|
+
}
|
|
8269
|
+
reader.skip(tag & 7);
|
|
8270
|
+
}
|
|
8271
|
+
return message;
|
|
8272
|
+
},
|
|
8273
|
+
create(base) {
|
|
8274
|
+
return InvokeWaitForMethodRequest.fromPartial(base ?? {});
|
|
8275
|
+
},
|
|
8276
|
+
fromPartial(object) {
|
|
8277
|
+
const message = createBaseInvokeWaitForMethodRequest();
|
|
8278
|
+
message.context = (object.context !== undefined && object.context !== null)
|
|
8279
|
+
? Context.fromPartial(object.context)
|
|
8280
|
+
: undefined;
|
|
8281
|
+
message.flowType = object.flowType ?? "";
|
|
8282
|
+
message.stepType = object.stepType ?? "";
|
|
8283
|
+
message.stepInput = (object.stepInput !== undefined && object.stepInput !== null)
|
|
8284
|
+
? Value.fromPartial(object.stepInput)
|
|
8285
|
+
: undefined;
|
|
8286
|
+
message.attributes = object.attributes?.map((e) => KV.fromPartial(e)) || [];
|
|
8287
|
+
message.channelInfos = globalThis.Object.entries(object.channelInfos ?? {}).reduce((acc, [key, value]) => {
|
|
8288
|
+
if (value !== undefined) {
|
|
8289
|
+
acc[key] = ChannelInfo.fromPartial(value);
|
|
8290
|
+
}
|
|
8291
|
+
return acc;
|
|
8292
|
+
}, {});
|
|
8293
|
+
message.loadedChannelMessages =
|
|
8294
|
+
globalThis.Object.entries(object.loadedChannelMessages ?? {}).reduce((acc, [key, value]) => {
|
|
8295
|
+
if (value !== undefined) {
|
|
8296
|
+
acc[key] = ChannelValues.fromPartial(value);
|
|
8297
|
+
}
|
|
8298
|
+
return acc;
|
|
8299
|
+
}, {});
|
|
8300
|
+
message.loadedAttributeMapInstances = object.loadedAttributeMapInstances?.map((e) => e) || [];
|
|
8301
|
+
message.loadedChannelNames = object.loadedChannelNames?.map((e) => e) || [];
|
|
8302
|
+
message.loadedChannelMapInstances = object.loadedChannelMapInstances?.map((e) => e) || [];
|
|
8303
|
+
return message;
|
|
8304
|
+
},
|
|
8305
|
+
};
|
|
8306
|
+
function createBaseInvokeWaitForMethodRequest_ChannelInfosEntry() {
|
|
8307
|
+
return { key: "", value: undefined };
|
|
8308
|
+
}
|
|
8309
|
+
export const InvokeWaitForMethodRequest_ChannelInfosEntry = {
|
|
8310
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8311
|
+
if (message.key !== "") {
|
|
8312
|
+
writer.uint32(10).string(message.key);
|
|
8313
|
+
}
|
|
8314
|
+
if (message.value !== undefined) {
|
|
8315
|
+
ChannelInfo.encode(message.value, writer.uint32(18).fork()).join();
|
|
8316
|
+
}
|
|
8317
|
+
return writer;
|
|
8318
|
+
},
|
|
8319
|
+
decode(input, length) {
|
|
8320
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8321
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8322
|
+
const message = createBaseInvokeWaitForMethodRequest_ChannelInfosEntry();
|
|
8323
|
+
while (reader.pos < end) {
|
|
8324
|
+
const tag = reader.uint32();
|
|
8325
|
+
switch (tag >>> 3) {
|
|
8326
|
+
case 1: {
|
|
8327
|
+
if (tag !== 10) {
|
|
8328
|
+
break;
|
|
8329
|
+
}
|
|
8330
|
+
message.key = reader.string();
|
|
8331
|
+
continue;
|
|
8332
|
+
}
|
|
8333
|
+
case 2: {
|
|
8334
|
+
if (tag !== 18) {
|
|
8335
|
+
break;
|
|
8336
|
+
}
|
|
8337
|
+
message.value = ChannelInfo.decode(reader, reader.uint32());
|
|
8338
|
+
continue;
|
|
8339
|
+
}
|
|
8340
|
+
}
|
|
8341
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8342
|
+
break;
|
|
8343
|
+
}
|
|
8344
|
+
reader.skip(tag & 7);
|
|
8345
|
+
}
|
|
8346
|
+
return message;
|
|
8347
|
+
},
|
|
8348
|
+
create(base) {
|
|
8349
|
+
return InvokeWaitForMethodRequest_ChannelInfosEntry.fromPartial(base ?? {});
|
|
8350
|
+
},
|
|
8351
|
+
fromPartial(object) {
|
|
8352
|
+
const message = createBaseInvokeWaitForMethodRequest_ChannelInfosEntry();
|
|
8353
|
+
message.key = object.key ?? "";
|
|
8354
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
8355
|
+
? ChannelInfo.fromPartial(object.value)
|
|
8356
|
+
: undefined;
|
|
8357
|
+
return message;
|
|
8358
|
+
},
|
|
8359
|
+
};
|
|
8360
|
+
function createBaseInvokeWaitForMethodRequest_LoadedChannelMessagesEntry() {
|
|
8361
|
+
return { key: "", value: undefined };
|
|
8362
|
+
}
|
|
8363
|
+
export const InvokeWaitForMethodRequest_LoadedChannelMessagesEntry = {
|
|
8364
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8365
|
+
if (message.key !== "") {
|
|
8366
|
+
writer.uint32(10).string(message.key);
|
|
8367
|
+
}
|
|
8368
|
+
if (message.value !== undefined) {
|
|
8369
|
+
ChannelValues.encode(message.value, writer.uint32(18).fork()).join();
|
|
8370
|
+
}
|
|
8371
|
+
return writer;
|
|
8372
|
+
},
|
|
8373
|
+
decode(input, length) {
|
|
8374
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8375
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8376
|
+
const message = createBaseInvokeWaitForMethodRequest_LoadedChannelMessagesEntry();
|
|
8377
|
+
while (reader.pos < end) {
|
|
8378
|
+
const tag = reader.uint32();
|
|
8379
|
+
switch (tag >>> 3) {
|
|
8380
|
+
case 1: {
|
|
8381
|
+
if (tag !== 10) {
|
|
8382
|
+
break;
|
|
8383
|
+
}
|
|
8384
|
+
message.key = reader.string();
|
|
8385
|
+
continue;
|
|
8386
|
+
}
|
|
8387
|
+
case 2: {
|
|
8388
|
+
if (tag !== 18) {
|
|
8389
|
+
break;
|
|
8390
|
+
}
|
|
8391
|
+
message.value = ChannelValues.decode(reader, reader.uint32());
|
|
8392
|
+
continue;
|
|
8393
|
+
}
|
|
8394
|
+
}
|
|
8395
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8396
|
+
break;
|
|
8397
|
+
}
|
|
8398
|
+
reader.skip(tag & 7);
|
|
8399
|
+
}
|
|
8400
|
+
return message;
|
|
8401
|
+
},
|
|
8402
|
+
create(base) {
|
|
8403
|
+
return InvokeWaitForMethodRequest_LoadedChannelMessagesEntry.fromPartial(base ?? {});
|
|
8404
|
+
},
|
|
8405
|
+
fromPartial(object) {
|
|
8406
|
+
const message = createBaseInvokeWaitForMethodRequest_LoadedChannelMessagesEntry();
|
|
8407
|
+
message.key = object.key ?? "";
|
|
8408
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
8409
|
+
? ChannelValues.fromPartial(object.value)
|
|
8410
|
+
: undefined;
|
|
8411
|
+
return message;
|
|
8412
|
+
},
|
|
8413
|
+
};
|
|
8414
|
+
function createBaseInvokeWaitForMethodResponse() {
|
|
7929
8415
|
return {
|
|
7930
8416
|
localActivityMetadata: undefined,
|
|
7931
8417
|
upsertAttributes: [],
|
|
@@ -7933,6 +8419,7 @@ function createBaseInvokeWaitForMethodResponse() {
|
|
|
7933
8419
|
upsertStepExeLocals: [],
|
|
7934
8420
|
recordEvents: [],
|
|
7935
8421
|
publishToChannel: [],
|
|
8422
|
+
deleteFromChannel: [],
|
|
7936
8423
|
};
|
|
7937
8424
|
}
|
|
7938
8425
|
export const InvokeWaitForMethodResponse = {
|
|
@@ -7955,6 +8442,9 @@ export const InvokeWaitForMethodResponse = {
|
|
|
7955
8442
|
for (const v of message.publishToChannel) {
|
|
7956
8443
|
ChannelMessage.encode(v, writer.uint32(50).fork()).join();
|
|
7957
8444
|
}
|
|
8445
|
+
for (const v of message.deleteFromChannel) {
|
|
8446
|
+
ChannelMessageDeletion.encode(v, writer.uint32(58).fork()).join();
|
|
8447
|
+
}
|
|
7958
8448
|
return writer;
|
|
7959
8449
|
},
|
|
7960
8450
|
decode(input, length) {
|
|
@@ -8006,6 +8496,13 @@ export const InvokeWaitForMethodResponse = {
|
|
|
8006
8496
|
message.publishToChannel.push(ChannelMessage.decode(reader, reader.uint32()));
|
|
8007
8497
|
continue;
|
|
8008
8498
|
}
|
|
8499
|
+
case 7: {
|
|
8500
|
+
if (tag !== 58) {
|
|
8501
|
+
break;
|
|
8502
|
+
}
|
|
8503
|
+
message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
|
|
8504
|
+
continue;
|
|
8505
|
+
}
|
|
8009
8506
|
}
|
|
8010
8507
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8011
8508
|
break;
|
|
@@ -8030,6 +8527,7 @@ export const InvokeWaitForMethodResponse = {
|
|
|
8030
8527
|
message.upsertStepExeLocals = object.upsertStepExeLocals?.map((e) => KV.fromPartial(e)) || [];
|
|
8031
8528
|
message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
|
|
8032
8529
|
message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
|
|
8530
|
+
message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
|
|
8033
8531
|
return message;
|
|
8034
8532
|
},
|
|
8035
8533
|
};
|
|
@@ -8233,6 +8731,11 @@ function createBaseInvokeExecuteMethodRequest() {
|
|
|
8233
8731
|
attributes: [],
|
|
8234
8732
|
stepExeLocals: [],
|
|
8235
8733
|
conditionResults: undefined,
|
|
8734
|
+
channelInfos: {},
|
|
8735
|
+
loadedChannelMessages: {},
|
|
8736
|
+
loadedAttributeMapInstances: [],
|
|
8737
|
+
loadedChannelNames: [],
|
|
8738
|
+
loadedChannelMapInstances: [],
|
|
8236
8739
|
};
|
|
8237
8740
|
}
|
|
8238
8741
|
export const InvokeExecuteMethodRequest = {
|
|
@@ -8258,6 +8761,22 @@ export const InvokeExecuteMethodRequest = {
|
|
|
8258
8761
|
if (message.conditionResults !== undefined) {
|
|
8259
8762
|
ConditionResults.encode(message.conditionResults, writer.uint32(58).fork()).join();
|
|
8260
8763
|
}
|
|
8764
|
+
globalThis.Object.entries(message.channelInfos).forEach(([key, value]) => {
|
|
8765
|
+
InvokeExecuteMethodRequest_ChannelInfosEntry.encode({ key: key, value }, writer.uint32(66).fork()).join();
|
|
8766
|
+
});
|
|
8767
|
+
globalThis.Object.entries(message.loadedChannelMessages).forEach(([key, value]) => {
|
|
8768
|
+
InvokeExecuteMethodRequest_LoadedChannelMessagesEntry.encode({ key: key, value }, writer.uint32(74).fork())
|
|
8769
|
+
.join();
|
|
8770
|
+
});
|
|
8771
|
+
for (const v of message.loadedAttributeMapInstances) {
|
|
8772
|
+
writer.uint32(82).string(v);
|
|
8773
|
+
}
|
|
8774
|
+
for (const v of message.loadedChannelNames) {
|
|
8775
|
+
writer.uint32(90).string(v);
|
|
8776
|
+
}
|
|
8777
|
+
for (const v of message.loadedChannelMapInstances) {
|
|
8778
|
+
writer.uint32(98).string(v);
|
|
8779
|
+
}
|
|
8261
8780
|
return writer;
|
|
8262
8781
|
},
|
|
8263
8782
|
decode(input, length) {
|
|
@@ -8316,6 +8835,47 @@ export const InvokeExecuteMethodRequest = {
|
|
|
8316
8835
|
message.conditionResults = ConditionResults.decode(reader, reader.uint32());
|
|
8317
8836
|
continue;
|
|
8318
8837
|
}
|
|
8838
|
+
case 8: {
|
|
8839
|
+
if (tag !== 66) {
|
|
8840
|
+
break;
|
|
8841
|
+
}
|
|
8842
|
+
const entry8 = InvokeExecuteMethodRequest_ChannelInfosEntry.decode(reader, reader.uint32());
|
|
8843
|
+
if (entry8.value !== undefined) {
|
|
8844
|
+
message.channelInfos[entry8.key] = entry8.value;
|
|
8845
|
+
}
|
|
8846
|
+
continue;
|
|
8847
|
+
}
|
|
8848
|
+
case 9: {
|
|
8849
|
+
if (tag !== 74) {
|
|
8850
|
+
break;
|
|
8851
|
+
}
|
|
8852
|
+
const entry9 = InvokeExecuteMethodRequest_LoadedChannelMessagesEntry.decode(reader, reader.uint32());
|
|
8853
|
+
if (entry9.value !== undefined) {
|
|
8854
|
+
message.loadedChannelMessages[entry9.key] = entry9.value;
|
|
8855
|
+
}
|
|
8856
|
+
continue;
|
|
8857
|
+
}
|
|
8858
|
+
case 10: {
|
|
8859
|
+
if (tag !== 82) {
|
|
8860
|
+
break;
|
|
8861
|
+
}
|
|
8862
|
+
message.loadedAttributeMapInstances.push(reader.string());
|
|
8863
|
+
continue;
|
|
8864
|
+
}
|
|
8865
|
+
case 11: {
|
|
8866
|
+
if (tag !== 90) {
|
|
8867
|
+
break;
|
|
8868
|
+
}
|
|
8869
|
+
message.loadedChannelNames.push(reader.string());
|
|
8870
|
+
continue;
|
|
8871
|
+
}
|
|
8872
|
+
case 12: {
|
|
8873
|
+
if (tag !== 98) {
|
|
8874
|
+
break;
|
|
8875
|
+
}
|
|
8876
|
+
message.loadedChannelMapInstances.push(reader.string());
|
|
8877
|
+
continue;
|
|
8878
|
+
}
|
|
8319
8879
|
}
|
|
8320
8880
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8321
8881
|
break;
|
|
@@ -8342,6 +8902,130 @@ export const InvokeExecuteMethodRequest = {
|
|
|
8342
8902
|
message.conditionResults = (object.conditionResults !== undefined && object.conditionResults !== null)
|
|
8343
8903
|
? ConditionResults.fromPartial(object.conditionResults)
|
|
8344
8904
|
: undefined;
|
|
8905
|
+
message.channelInfos = globalThis.Object.entries(object.channelInfos ?? {}).reduce((acc, [key, value]) => {
|
|
8906
|
+
if (value !== undefined) {
|
|
8907
|
+
acc[key] = ChannelInfo.fromPartial(value);
|
|
8908
|
+
}
|
|
8909
|
+
return acc;
|
|
8910
|
+
}, {});
|
|
8911
|
+
message.loadedChannelMessages =
|
|
8912
|
+
globalThis.Object.entries(object.loadedChannelMessages ?? {}).reduce((acc, [key, value]) => {
|
|
8913
|
+
if (value !== undefined) {
|
|
8914
|
+
acc[key] = ChannelValues.fromPartial(value);
|
|
8915
|
+
}
|
|
8916
|
+
return acc;
|
|
8917
|
+
}, {});
|
|
8918
|
+
message.loadedAttributeMapInstances = object.loadedAttributeMapInstances?.map((e) => e) || [];
|
|
8919
|
+
message.loadedChannelNames = object.loadedChannelNames?.map((e) => e) || [];
|
|
8920
|
+
message.loadedChannelMapInstances = object.loadedChannelMapInstances?.map((e) => e) || [];
|
|
8921
|
+
return message;
|
|
8922
|
+
},
|
|
8923
|
+
};
|
|
8924
|
+
function createBaseInvokeExecuteMethodRequest_ChannelInfosEntry() {
|
|
8925
|
+
return { key: "", value: undefined };
|
|
8926
|
+
}
|
|
8927
|
+
export const InvokeExecuteMethodRequest_ChannelInfosEntry = {
|
|
8928
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8929
|
+
if (message.key !== "") {
|
|
8930
|
+
writer.uint32(10).string(message.key);
|
|
8931
|
+
}
|
|
8932
|
+
if (message.value !== undefined) {
|
|
8933
|
+
ChannelInfo.encode(message.value, writer.uint32(18).fork()).join();
|
|
8934
|
+
}
|
|
8935
|
+
return writer;
|
|
8936
|
+
},
|
|
8937
|
+
decode(input, length) {
|
|
8938
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8939
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8940
|
+
const message = createBaseInvokeExecuteMethodRequest_ChannelInfosEntry();
|
|
8941
|
+
while (reader.pos < end) {
|
|
8942
|
+
const tag = reader.uint32();
|
|
8943
|
+
switch (tag >>> 3) {
|
|
8944
|
+
case 1: {
|
|
8945
|
+
if (tag !== 10) {
|
|
8946
|
+
break;
|
|
8947
|
+
}
|
|
8948
|
+
message.key = reader.string();
|
|
8949
|
+
continue;
|
|
8950
|
+
}
|
|
8951
|
+
case 2: {
|
|
8952
|
+
if (tag !== 18) {
|
|
8953
|
+
break;
|
|
8954
|
+
}
|
|
8955
|
+
message.value = ChannelInfo.decode(reader, reader.uint32());
|
|
8956
|
+
continue;
|
|
8957
|
+
}
|
|
8958
|
+
}
|
|
8959
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
8960
|
+
break;
|
|
8961
|
+
}
|
|
8962
|
+
reader.skip(tag & 7);
|
|
8963
|
+
}
|
|
8964
|
+
return message;
|
|
8965
|
+
},
|
|
8966
|
+
create(base) {
|
|
8967
|
+
return InvokeExecuteMethodRequest_ChannelInfosEntry.fromPartial(base ?? {});
|
|
8968
|
+
},
|
|
8969
|
+
fromPartial(object) {
|
|
8970
|
+
const message = createBaseInvokeExecuteMethodRequest_ChannelInfosEntry();
|
|
8971
|
+
message.key = object.key ?? "";
|
|
8972
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
8973
|
+
? ChannelInfo.fromPartial(object.value)
|
|
8974
|
+
: undefined;
|
|
8975
|
+
return message;
|
|
8976
|
+
},
|
|
8977
|
+
};
|
|
8978
|
+
function createBaseInvokeExecuteMethodRequest_LoadedChannelMessagesEntry() {
|
|
8979
|
+
return { key: "", value: undefined };
|
|
8980
|
+
}
|
|
8981
|
+
export const InvokeExecuteMethodRequest_LoadedChannelMessagesEntry = {
|
|
8982
|
+
encode(message, writer = new BinaryWriter()) {
|
|
8983
|
+
if (message.key !== "") {
|
|
8984
|
+
writer.uint32(10).string(message.key);
|
|
8985
|
+
}
|
|
8986
|
+
if (message.value !== undefined) {
|
|
8987
|
+
ChannelValues.encode(message.value, writer.uint32(18).fork()).join();
|
|
8988
|
+
}
|
|
8989
|
+
return writer;
|
|
8990
|
+
},
|
|
8991
|
+
decode(input, length) {
|
|
8992
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
8993
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
8994
|
+
const message = createBaseInvokeExecuteMethodRequest_LoadedChannelMessagesEntry();
|
|
8995
|
+
while (reader.pos < end) {
|
|
8996
|
+
const tag = reader.uint32();
|
|
8997
|
+
switch (tag >>> 3) {
|
|
8998
|
+
case 1: {
|
|
8999
|
+
if (tag !== 10) {
|
|
9000
|
+
break;
|
|
9001
|
+
}
|
|
9002
|
+
message.key = reader.string();
|
|
9003
|
+
continue;
|
|
9004
|
+
}
|
|
9005
|
+
case 2: {
|
|
9006
|
+
if (tag !== 18) {
|
|
9007
|
+
break;
|
|
9008
|
+
}
|
|
9009
|
+
message.value = ChannelValues.decode(reader, reader.uint32());
|
|
9010
|
+
continue;
|
|
9011
|
+
}
|
|
9012
|
+
}
|
|
9013
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9014
|
+
break;
|
|
9015
|
+
}
|
|
9016
|
+
reader.skip(tag & 7);
|
|
9017
|
+
}
|
|
9018
|
+
return message;
|
|
9019
|
+
},
|
|
9020
|
+
create(base) {
|
|
9021
|
+
return InvokeExecuteMethodRequest_LoadedChannelMessagesEntry.fromPartial(base ?? {});
|
|
9022
|
+
},
|
|
9023
|
+
fromPartial(object) {
|
|
9024
|
+
const message = createBaseInvokeExecuteMethodRequest_LoadedChannelMessagesEntry();
|
|
9025
|
+
message.key = object.key ?? "";
|
|
9026
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
9027
|
+
? ChannelValues.fromPartial(object.value)
|
|
9028
|
+
: undefined;
|
|
8345
9029
|
return message;
|
|
8346
9030
|
},
|
|
8347
9031
|
};
|
|
@@ -8353,6 +9037,7 @@ function createBaseInvokeExecuteMethodResponse() {
|
|
|
8353
9037
|
recordEvents: [],
|
|
8354
9038
|
upsertStepExeLocals: [],
|
|
8355
9039
|
publishToChannel: [],
|
|
9040
|
+
deleteFromChannel: [],
|
|
8356
9041
|
};
|
|
8357
9042
|
}
|
|
8358
9043
|
export const InvokeExecuteMethodResponse = {
|
|
@@ -8375,6 +9060,9 @@ export const InvokeExecuteMethodResponse = {
|
|
|
8375
9060
|
for (const v of message.publishToChannel) {
|
|
8376
9061
|
ChannelMessage.encode(v, writer.uint32(50).fork()).join();
|
|
8377
9062
|
}
|
|
9063
|
+
for (const v of message.deleteFromChannel) {
|
|
9064
|
+
ChannelMessageDeletion.encode(v, writer.uint32(58).fork()).join();
|
|
9065
|
+
}
|
|
8378
9066
|
return writer;
|
|
8379
9067
|
},
|
|
8380
9068
|
decode(input, length) {
|
|
@@ -8426,6 +9114,13 @@ export const InvokeExecuteMethodResponse = {
|
|
|
8426
9114
|
message.publishToChannel.push(ChannelMessage.decode(reader, reader.uint32()));
|
|
8427
9115
|
continue;
|
|
8428
9116
|
}
|
|
9117
|
+
case 7: {
|
|
9118
|
+
if (tag !== 58) {
|
|
9119
|
+
break;
|
|
9120
|
+
}
|
|
9121
|
+
message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
|
|
9122
|
+
continue;
|
|
9123
|
+
}
|
|
8429
9124
|
}
|
|
8430
9125
|
if ((tag & 7) === 4 || tag === 0) {
|
|
8431
9126
|
break;
|
|
@@ -8450,6 +9145,7 @@ export const InvokeExecuteMethodResponse = {
|
|
|
8450
9145
|
message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
|
|
8451
9146
|
message.upsertStepExeLocals = object.upsertStepExeLocals?.map((e) => KV.fromPartial(e)) || [];
|
|
8452
9147
|
message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
|
|
9148
|
+
message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
|
|
8453
9149
|
return message;
|
|
8454
9150
|
},
|
|
8455
9151
|
};
|
|
@@ -9392,6 +10088,7 @@ function createBaseSubFlowOptions() {
|
|
|
9392
10088
|
attributes: [],
|
|
9393
10089
|
flowConfigOverride: undefined,
|
|
9394
10090
|
flowTimeoutPolicy: 0,
|
|
10091
|
+
timeoutHandlerOptions: undefined,
|
|
9395
10092
|
};
|
|
9396
10093
|
}
|
|
9397
10094
|
export const SubFlowOptions = {
|
|
@@ -9417,6 +10114,9 @@ export const SubFlowOptions = {
|
|
|
9417
10114
|
if (message.flowTimeoutPolicy !== 0) {
|
|
9418
10115
|
writer.uint32(56).int32(message.flowTimeoutPolicy);
|
|
9419
10116
|
}
|
|
10117
|
+
if (message.timeoutHandlerOptions !== undefined) {
|
|
10118
|
+
FlowTimeoutHandlerOptions.encode(message.timeoutHandlerOptions, writer.uint32(66).fork()).join();
|
|
10119
|
+
}
|
|
9420
10120
|
return writer;
|
|
9421
10121
|
},
|
|
9422
10122
|
decode(input, length) {
|
|
@@ -9475,6 +10175,13 @@ export const SubFlowOptions = {
|
|
|
9475
10175
|
message.flowTimeoutPolicy = reader.int32();
|
|
9476
10176
|
continue;
|
|
9477
10177
|
}
|
|
10178
|
+
case 8: {
|
|
10179
|
+
if (tag !== 66) {
|
|
10180
|
+
break;
|
|
10181
|
+
}
|
|
10182
|
+
message.timeoutHandlerOptions = FlowTimeoutHandlerOptions.decode(reader, reader.uint32());
|
|
10183
|
+
continue;
|
|
10184
|
+
}
|
|
9478
10185
|
}
|
|
9479
10186
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9480
10187
|
break;
|
|
@@ -9499,6 +10206,10 @@ export const SubFlowOptions = {
|
|
|
9499
10206
|
? FlowConfig.fromPartial(object.flowConfigOverride)
|
|
9500
10207
|
: undefined;
|
|
9501
10208
|
message.flowTimeoutPolicy = object.flowTimeoutPolicy ?? 0;
|
|
10209
|
+
message.timeoutHandlerOptions =
|
|
10210
|
+
(object.timeoutHandlerOptions !== undefined && object.timeoutHandlerOptions !== null)
|
|
10211
|
+
? FlowTimeoutHandlerOptions.fromPartial(object.timeoutHandlerOptions)
|
|
10212
|
+
: undefined;
|
|
9502
10213
|
return message;
|
|
9503
10214
|
},
|
|
9504
10215
|
};
|
|
@@ -11049,6 +11760,7 @@ function createBaseInterpreterWorkflowInput() {
|
|
|
11049
11760
|
config: undefined,
|
|
11050
11761
|
isResumeFromContinueAsNew: false,
|
|
11051
11762
|
continueAsNewInput: undefined,
|
|
11763
|
+
timeoutHandlerOptions: undefined,
|
|
11052
11764
|
};
|
|
11053
11765
|
}
|
|
11054
11766
|
export const InterpreterWorkflowInput = {
|
|
@@ -11083,6 +11795,9 @@ export const InterpreterWorkflowInput = {
|
|
|
11083
11795
|
if (message.continueAsNewInput !== undefined) {
|
|
11084
11796
|
ContinueAsNewInput.encode(message.continueAsNewInput, writer.uint32(82).fork()).join();
|
|
11085
11797
|
}
|
|
11798
|
+
if (message.timeoutHandlerOptions !== undefined) {
|
|
11799
|
+
FlowTimeoutHandlerOptions.encode(message.timeoutHandlerOptions, writer.uint32(90).fork()).join();
|
|
11800
|
+
}
|
|
11086
11801
|
return writer;
|
|
11087
11802
|
},
|
|
11088
11803
|
decode(input, length) {
|
|
@@ -11162,6 +11877,13 @@ export const InterpreterWorkflowInput = {
|
|
|
11162
11877
|
message.continueAsNewInput = ContinueAsNewInput.decode(reader, reader.uint32());
|
|
11163
11878
|
continue;
|
|
11164
11879
|
}
|
|
11880
|
+
case 11: {
|
|
11881
|
+
if (tag !== 90) {
|
|
11882
|
+
break;
|
|
11883
|
+
}
|
|
11884
|
+
message.timeoutHandlerOptions = FlowTimeoutHandlerOptions.decode(reader, reader.uint32());
|
|
11885
|
+
continue;
|
|
11886
|
+
}
|
|
11165
11887
|
}
|
|
11166
11888
|
if ((tag & 7) === 4 || tag === 0) {
|
|
11167
11889
|
break;
|
|
@@ -11193,6 +11915,10 @@ export const InterpreterWorkflowInput = {
|
|
|
11193
11915
|
message.continueAsNewInput = (object.continueAsNewInput !== undefined && object.continueAsNewInput !== null)
|
|
11194
11916
|
? ContinueAsNewInput.fromPartial(object.continueAsNewInput)
|
|
11195
11917
|
: undefined;
|
|
11918
|
+
message.timeoutHandlerOptions =
|
|
11919
|
+
(object.timeoutHandlerOptions !== undefined && object.timeoutHandlerOptions !== null)
|
|
11920
|
+
? FlowTimeoutHandlerOptions.fromPartial(object.timeoutHandlerOptions)
|
|
11921
|
+
: undefined;
|
|
11196
11922
|
return message;
|
|
11197
11923
|
},
|
|
11198
11924
|
};
|