@superdurable/dex 0.2.0 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -12
- package/dist/src/attribute-store-sync.d.ts +2 -2
- package/dist/src/attribute-store-sync.js +4 -2
- package/dist/src/attribute-store-sync.js.map +1 -1
- package/dist/src/client.d.ts +26 -0
- package/dist/src/client.js +64 -4
- package/dist/src/client.js.map +1 -1
- package/dist/src/context.d.ts +8 -0
- package/dist/src/flow.d.ts +7 -2
- package/dist/src/flow.js +45 -2
- package/dist/src/flow.js.map +1 -1
- package/dist/src/gen/dex.d.ts +61 -2
- package/dist/src/gen/dex.js +369 -5
- package/dist/src/gen/dex.js.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +1 -0
- package/dist/src/index.js.map +1 -1
- package/dist/src/invocation-context.d.ts +7 -2
- package/dist/src/invocation-context.js +40 -1
- package/dist/src/invocation-context.js.map +1 -1
- package/dist/src/options.d.ts +5 -5
- package/dist/src/persistence.d.ts +4 -1
- package/dist/src/persistence.js.map +1 -1
- package/dist/src/rpc.d.ts +2 -2
- package/dist/src/step.d.ts +27 -20
- package/dist/src/step.js +4 -4
- package/dist/src/step.js.map +1 -1
- package/dist/src/stream.d.ts +40 -0
- package/dist/src/stream.js +43 -0
- package/dist/src/stream.js.map +1 -0
- package/dist/src/worker-dispatcher.d.ts +3 -2
- package/dist/src/worker-dispatcher.js +12 -10
- 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.d.ts
CHANGED
|
@@ -298,8 +298,11 @@ export interface FlowConfig {
|
|
|
298
298
|
continueAsNewPageSizeInBytes?: number | undefined;
|
|
299
299
|
stepDurability?: StepDurability | undefined;
|
|
300
300
|
workerTarget: WorkerTarget | undefined;
|
|
301
|
-
/** Present empty disables future synchronization; non-empty selects
|
|
302
|
-
|
|
301
|
+
/** Present empty disables future synchronization; non-empty selects Server-configured stores. */
|
|
302
|
+
attributeStoreNames?: AttributeStoreNames | undefined;
|
|
303
|
+
}
|
|
304
|
+
export interface AttributeStoreNames {
|
|
305
|
+
names: string[];
|
|
303
306
|
}
|
|
304
307
|
export interface WorkerTarget {
|
|
305
308
|
/** Plaintext gRPC dial target, not an HTTP URL. */
|
|
@@ -329,6 +332,31 @@ export interface ChannelMessage {
|
|
|
329
332
|
channelName: string;
|
|
330
333
|
value: Value | undefined;
|
|
331
334
|
}
|
|
335
|
+
export interface WriteStreamRequest {
|
|
336
|
+
flowId: string;
|
|
337
|
+
flowType: string;
|
|
338
|
+
streamName: string;
|
|
339
|
+
maxEstimatedBytes: bigint;
|
|
340
|
+
value: Value | undefined;
|
|
341
|
+
/** Client keys must not contain "#"; Step SDKs use `<runID>#<stepExecutionID>`. */
|
|
342
|
+
idempotencyKey: string;
|
|
343
|
+
}
|
|
344
|
+
export interface ReadStreamRequest {
|
|
345
|
+
flowId: string;
|
|
346
|
+
flowType: string;
|
|
347
|
+
streamName: string;
|
|
348
|
+
resumeToken: string;
|
|
349
|
+
waitTimeSeconds: number;
|
|
350
|
+
}
|
|
351
|
+
export interface ReadStreamResponse {
|
|
352
|
+
message: StreamMessage | undefined;
|
|
353
|
+
}
|
|
354
|
+
export interface StreamMessage {
|
|
355
|
+
value: Value | undefined;
|
|
356
|
+
resumeToken: string;
|
|
357
|
+
createdTime: Date | undefined;
|
|
358
|
+
idempotencyKey: string;
|
|
359
|
+
}
|
|
332
360
|
export interface StopFlowRequest {
|
|
333
361
|
flowId: string;
|
|
334
362
|
runId: string;
|
|
@@ -1215,11 +1243,16 @@ export declare const StepOptions: MessageFns<StepOptions>;
|
|
|
1215
1243
|
export declare const FlowAlreadyStartedOptions: MessageFns<FlowAlreadyStartedOptions>;
|
|
1216
1244
|
export declare const FlowStartOptions: MessageFns<FlowStartOptions>;
|
|
1217
1245
|
export declare const FlowConfig: MessageFns<FlowConfig>;
|
|
1246
|
+
export declare const AttributeStoreNames: MessageFns<AttributeStoreNames>;
|
|
1218
1247
|
export declare const WorkerTarget: MessageFns<WorkerTarget>;
|
|
1219
1248
|
export declare const StartFlowRequest: MessageFns<StartFlowRequest>;
|
|
1220
1249
|
export declare const StartFlowResponse: MessageFns<StartFlowResponse>;
|
|
1221
1250
|
export declare const PublishToChannelRequest: MessageFns<PublishToChannelRequest>;
|
|
1222
1251
|
export declare const ChannelMessage: MessageFns<ChannelMessage>;
|
|
1252
|
+
export declare const WriteStreamRequest: MessageFns<WriteStreamRequest>;
|
|
1253
|
+
export declare const ReadStreamRequest: MessageFns<ReadStreamRequest>;
|
|
1254
|
+
export declare const ReadStreamResponse: MessageFns<ReadStreamResponse>;
|
|
1255
|
+
export declare const StreamMessage: MessageFns<StreamMessage>;
|
|
1223
1256
|
export declare const StopFlowRequest: MessageFns<StopFlowRequest>;
|
|
1224
1257
|
export declare const GetAttributesRequest: MessageFns<GetAttributesRequest>;
|
|
1225
1258
|
export declare const GetAttributesResponse: MessageFns<GetAttributesResponse>;
|
|
@@ -1385,6 +1418,24 @@ export declare const FlowServiceService: {
|
|
|
1385
1418
|
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1386
1419
|
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1387
1420
|
};
|
|
1421
|
+
readonly writeStream: {
|
|
1422
|
+
readonly path: "/dex.FlowService/WriteStream";
|
|
1423
|
+
readonly requestStream: false;
|
|
1424
|
+
readonly responseStream: false;
|
|
1425
|
+
readonly requestSerialize: (value: WriteStreamRequest) => Buffer;
|
|
1426
|
+
readonly requestDeserialize: (value: Buffer) => WriteStreamRequest;
|
|
1427
|
+
readonly responseSerialize: (value: Empty) => Buffer;
|
|
1428
|
+
readonly responseDeserialize: (value: Buffer) => Empty;
|
|
1429
|
+
};
|
|
1430
|
+
readonly readStream: {
|
|
1431
|
+
readonly path: "/dex.FlowService/ReadStream";
|
|
1432
|
+
readonly requestStream: false;
|
|
1433
|
+
readonly responseStream: false;
|
|
1434
|
+
readonly requestSerialize: (value: ReadStreamRequest) => Buffer;
|
|
1435
|
+
readonly requestDeserialize: (value: Buffer) => ReadStreamRequest;
|
|
1436
|
+
readonly responseSerialize: (value: ReadStreamResponse) => Buffer;
|
|
1437
|
+
readonly responseDeserialize: (value: Buffer) => ReadStreamResponse;
|
|
1438
|
+
};
|
|
1388
1439
|
readonly stopFlow: {
|
|
1389
1440
|
readonly path: "/dex.FlowService/StopFlow";
|
|
1390
1441
|
readonly requestStream: false;
|
|
@@ -1560,6 +1611,8 @@ export declare const FlowServiceService: {
|
|
|
1560
1611
|
export interface FlowServiceServer extends UntypedServiceImplementation {
|
|
1561
1612
|
startFlow: handleUnaryCall<StartFlowRequest, StartFlowResponse>;
|
|
1562
1613
|
publishToChannel: handleUnaryCall<PublishToChannelRequest, Empty>;
|
|
1614
|
+
writeStream: handleUnaryCall<WriteStreamRequest, Empty>;
|
|
1615
|
+
readStream: handleUnaryCall<ReadStreamRequest, ReadStreamResponse>;
|
|
1563
1616
|
stopFlow: handleUnaryCall<StopFlowRequest, Empty>;
|
|
1564
1617
|
getAttributes: handleUnaryCall<GetAttributesRequest, GetAttributesResponse>;
|
|
1565
1618
|
setAttributes: handleUnaryCall<SetAttributesRequest, Empty>;
|
|
@@ -1587,6 +1640,12 @@ export interface FlowServiceClient extends Client {
|
|
|
1587
1640
|
publishToChannel(request: PublishToChannelRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1588
1641
|
publishToChannel(request: PublishToChannelRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1589
1642
|
publishToChannel(request: PublishToChannelRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1643
|
+
writeStream(request: WriteStreamRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1644
|
+
writeStream(request: WriteStreamRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1645
|
+
writeStream(request: WriteStreamRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1646
|
+
readStream(request: ReadStreamRequest, callback: (error: ServiceError | null, response: ReadStreamResponse) => void): ClientUnaryCall;
|
|
1647
|
+
readStream(request: ReadStreamRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ReadStreamResponse) => void): ClientUnaryCall;
|
|
1648
|
+
readStream(request: ReadStreamRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ReadStreamResponse) => void): ClientUnaryCall;
|
|
1590
1649
|
stopFlow(request: StopFlowRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1591
1650
|
stopFlow(request: StopFlowRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
|
1592
1651
|
stopFlow(request: StopFlowRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall;
|
package/dist/src/gen/dex.js
CHANGED
|
@@ -1377,7 +1377,7 @@ function createBaseFlowConfig() {
|
|
|
1377
1377
|
continueAsNewPageSizeInBytes: undefined,
|
|
1378
1378
|
stepDurability: undefined,
|
|
1379
1379
|
workerTarget: undefined,
|
|
1380
|
-
|
|
1380
|
+
attributeStoreNames: undefined,
|
|
1381
1381
|
};
|
|
1382
1382
|
}
|
|
1383
1383
|
export const FlowConfig = {
|
|
@@ -1397,8 +1397,8 @@ export const FlowConfig = {
|
|
|
1397
1397
|
if (message.workerTarget !== undefined) {
|
|
1398
1398
|
WorkerTarget.encode(message.workerTarget, writer.uint32(42).fork()).join();
|
|
1399
1399
|
}
|
|
1400
|
-
if (message.
|
|
1401
|
-
writer.uint32(50).
|
|
1400
|
+
if (message.attributeStoreNames !== undefined) {
|
|
1401
|
+
AttributeStoreNames.encode(message.attributeStoreNames, writer.uint32(50).fork()).join();
|
|
1402
1402
|
}
|
|
1403
1403
|
return writer;
|
|
1404
1404
|
},
|
|
@@ -1448,7 +1448,7 @@ export const FlowConfig = {
|
|
|
1448
1448
|
if (tag !== 50) {
|
|
1449
1449
|
break;
|
|
1450
1450
|
}
|
|
1451
|
-
message.
|
|
1451
|
+
message.attributeStoreNames = AttributeStoreNames.decode(reader, reader.uint32());
|
|
1452
1452
|
continue;
|
|
1453
1453
|
}
|
|
1454
1454
|
}
|
|
@@ -1471,7 +1471,50 @@ export const FlowConfig = {
|
|
|
1471
1471
|
message.workerTarget = (object.workerTarget !== undefined && object.workerTarget !== null)
|
|
1472
1472
|
? WorkerTarget.fromPartial(object.workerTarget)
|
|
1473
1473
|
: undefined;
|
|
1474
|
-
message.
|
|
1474
|
+
message.attributeStoreNames = (object.attributeStoreNames !== undefined && object.attributeStoreNames !== null)
|
|
1475
|
+
? AttributeStoreNames.fromPartial(object.attributeStoreNames)
|
|
1476
|
+
: undefined;
|
|
1477
|
+
return message;
|
|
1478
|
+
},
|
|
1479
|
+
};
|
|
1480
|
+
function createBaseAttributeStoreNames() {
|
|
1481
|
+
return { names: [] };
|
|
1482
|
+
}
|
|
1483
|
+
export const AttributeStoreNames = {
|
|
1484
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1485
|
+
for (const v of message.names) {
|
|
1486
|
+
writer.uint32(10).string(v);
|
|
1487
|
+
}
|
|
1488
|
+
return writer;
|
|
1489
|
+
},
|
|
1490
|
+
decode(input, length) {
|
|
1491
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1492
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1493
|
+
const message = createBaseAttributeStoreNames();
|
|
1494
|
+
while (reader.pos < end) {
|
|
1495
|
+
const tag = reader.uint32();
|
|
1496
|
+
switch (tag >>> 3) {
|
|
1497
|
+
case 1: {
|
|
1498
|
+
if (tag !== 10) {
|
|
1499
|
+
break;
|
|
1500
|
+
}
|
|
1501
|
+
message.names.push(reader.string());
|
|
1502
|
+
continue;
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1506
|
+
break;
|
|
1507
|
+
}
|
|
1508
|
+
reader.skip(tag & 7);
|
|
1509
|
+
}
|
|
1510
|
+
return message;
|
|
1511
|
+
},
|
|
1512
|
+
create(base) {
|
|
1513
|
+
return AttributeStoreNames.fromPartial(base ?? {});
|
|
1514
|
+
},
|
|
1515
|
+
fromPartial(object) {
|
|
1516
|
+
const message = createBaseAttributeStoreNames();
|
|
1517
|
+
message.names = object.names?.map((e) => e) || [];
|
|
1475
1518
|
return message;
|
|
1476
1519
|
},
|
|
1477
1520
|
};
|
|
@@ -1828,6 +1871,309 @@ export const ChannelMessage = {
|
|
|
1828
1871
|
return message;
|
|
1829
1872
|
},
|
|
1830
1873
|
};
|
|
1874
|
+
function createBaseWriteStreamRequest() {
|
|
1875
|
+
return { flowId: "", flowType: "", streamName: "", maxEstimatedBytes: 0n, value: undefined, idempotencyKey: "" };
|
|
1876
|
+
}
|
|
1877
|
+
export const WriteStreamRequest = {
|
|
1878
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1879
|
+
if (message.flowId !== "") {
|
|
1880
|
+
writer.uint32(10).string(message.flowId);
|
|
1881
|
+
}
|
|
1882
|
+
if (message.flowType !== "") {
|
|
1883
|
+
writer.uint32(18).string(message.flowType);
|
|
1884
|
+
}
|
|
1885
|
+
if (message.streamName !== "") {
|
|
1886
|
+
writer.uint32(26).string(message.streamName);
|
|
1887
|
+
}
|
|
1888
|
+
if (message.maxEstimatedBytes !== 0n) {
|
|
1889
|
+
if (BigInt.asIntN(64, message.maxEstimatedBytes) !== message.maxEstimatedBytes) {
|
|
1890
|
+
throw new globalThis.Error("value provided for field message.maxEstimatedBytes of type int64 too large");
|
|
1891
|
+
}
|
|
1892
|
+
writer.uint32(32).int64(message.maxEstimatedBytes);
|
|
1893
|
+
}
|
|
1894
|
+
if (message.value !== undefined) {
|
|
1895
|
+
Value.encode(message.value, writer.uint32(42).fork()).join();
|
|
1896
|
+
}
|
|
1897
|
+
if (message.idempotencyKey !== "") {
|
|
1898
|
+
writer.uint32(50).string(message.idempotencyKey);
|
|
1899
|
+
}
|
|
1900
|
+
return writer;
|
|
1901
|
+
},
|
|
1902
|
+
decode(input, length) {
|
|
1903
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1904
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1905
|
+
const message = createBaseWriteStreamRequest();
|
|
1906
|
+
while (reader.pos < end) {
|
|
1907
|
+
const tag = reader.uint32();
|
|
1908
|
+
switch (tag >>> 3) {
|
|
1909
|
+
case 1: {
|
|
1910
|
+
if (tag !== 10) {
|
|
1911
|
+
break;
|
|
1912
|
+
}
|
|
1913
|
+
message.flowId = reader.string();
|
|
1914
|
+
continue;
|
|
1915
|
+
}
|
|
1916
|
+
case 2: {
|
|
1917
|
+
if (tag !== 18) {
|
|
1918
|
+
break;
|
|
1919
|
+
}
|
|
1920
|
+
message.flowType = reader.string();
|
|
1921
|
+
continue;
|
|
1922
|
+
}
|
|
1923
|
+
case 3: {
|
|
1924
|
+
if (tag !== 26) {
|
|
1925
|
+
break;
|
|
1926
|
+
}
|
|
1927
|
+
message.streamName = reader.string();
|
|
1928
|
+
continue;
|
|
1929
|
+
}
|
|
1930
|
+
case 4: {
|
|
1931
|
+
if (tag !== 32) {
|
|
1932
|
+
break;
|
|
1933
|
+
}
|
|
1934
|
+
message.maxEstimatedBytes = reader.int64();
|
|
1935
|
+
continue;
|
|
1936
|
+
}
|
|
1937
|
+
case 5: {
|
|
1938
|
+
if (tag !== 42) {
|
|
1939
|
+
break;
|
|
1940
|
+
}
|
|
1941
|
+
message.value = Value.decode(reader, reader.uint32());
|
|
1942
|
+
continue;
|
|
1943
|
+
}
|
|
1944
|
+
case 6: {
|
|
1945
|
+
if (tag !== 50) {
|
|
1946
|
+
break;
|
|
1947
|
+
}
|
|
1948
|
+
message.idempotencyKey = reader.string();
|
|
1949
|
+
continue;
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1952
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1953
|
+
break;
|
|
1954
|
+
}
|
|
1955
|
+
reader.skip(tag & 7);
|
|
1956
|
+
}
|
|
1957
|
+
return message;
|
|
1958
|
+
},
|
|
1959
|
+
create(base) {
|
|
1960
|
+
return WriteStreamRequest.fromPartial(base ?? {});
|
|
1961
|
+
},
|
|
1962
|
+
fromPartial(object) {
|
|
1963
|
+
const message = createBaseWriteStreamRequest();
|
|
1964
|
+
message.flowId = object.flowId ?? "";
|
|
1965
|
+
message.flowType = object.flowType ?? "";
|
|
1966
|
+
message.streamName = object.streamName ?? "";
|
|
1967
|
+
message.maxEstimatedBytes = (object.maxEstimatedBytes !== undefined && object.maxEstimatedBytes !== null)
|
|
1968
|
+
? BigInt(object.maxEstimatedBytes)
|
|
1969
|
+
: 0n;
|
|
1970
|
+
message.value = (object.value !== undefined && object.value !== null) ? Value.fromPartial(object.value) : undefined;
|
|
1971
|
+
message.idempotencyKey = object.idempotencyKey ?? "";
|
|
1972
|
+
return message;
|
|
1973
|
+
},
|
|
1974
|
+
};
|
|
1975
|
+
function createBaseReadStreamRequest() {
|
|
1976
|
+
return { flowId: "", flowType: "", streamName: "", resumeToken: "", waitTimeSeconds: 0 };
|
|
1977
|
+
}
|
|
1978
|
+
export const ReadStreamRequest = {
|
|
1979
|
+
encode(message, writer = new BinaryWriter()) {
|
|
1980
|
+
if (message.flowId !== "") {
|
|
1981
|
+
writer.uint32(10).string(message.flowId);
|
|
1982
|
+
}
|
|
1983
|
+
if (message.flowType !== "") {
|
|
1984
|
+
writer.uint32(18).string(message.flowType);
|
|
1985
|
+
}
|
|
1986
|
+
if (message.streamName !== "") {
|
|
1987
|
+
writer.uint32(26).string(message.streamName);
|
|
1988
|
+
}
|
|
1989
|
+
if (message.resumeToken !== "") {
|
|
1990
|
+
writer.uint32(34).string(message.resumeToken);
|
|
1991
|
+
}
|
|
1992
|
+
if (message.waitTimeSeconds !== 0) {
|
|
1993
|
+
writer.uint32(40).int32(message.waitTimeSeconds);
|
|
1994
|
+
}
|
|
1995
|
+
return writer;
|
|
1996
|
+
},
|
|
1997
|
+
decode(input, length) {
|
|
1998
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1999
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2000
|
+
const message = createBaseReadStreamRequest();
|
|
2001
|
+
while (reader.pos < end) {
|
|
2002
|
+
const tag = reader.uint32();
|
|
2003
|
+
switch (tag >>> 3) {
|
|
2004
|
+
case 1: {
|
|
2005
|
+
if (tag !== 10) {
|
|
2006
|
+
break;
|
|
2007
|
+
}
|
|
2008
|
+
message.flowId = reader.string();
|
|
2009
|
+
continue;
|
|
2010
|
+
}
|
|
2011
|
+
case 2: {
|
|
2012
|
+
if (tag !== 18) {
|
|
2013
|
+
break;
|
|
2014
|
+
}
|
|
2015
|
+
message.flowType = reader.string();
|
|
2016
|
+
continue;
|
|
2017
|
+
}
|
|
2018
|
+
case 3: {
|
|
2019
|
+
if (tag !== 26) {
|
|
2020
|
+
break;
|
|
2021
|
+
}
|
|
2022
|
+
message.streamName = reader.string();
|
|
2023
|
+
continue;
|
|
2024
|
+
}
|
|
2025
|
+
case 4: {
|
|
2026
|
+
if (tag !== 34) {
|
|
2027
|
+
break;
|
|
2028
|
+
}
|
|
2029
|
+
message.resumeToken = reader.string();
|
|
2030
|
+
continue;
|
|
2031
|
+
}
|
|
2032
|
+
case 5: {
|
|
2033
|
+
if (tag !== 40) {
|
|
2034
|
+
break;
|
|
2035
|
+
}
|
|
2036
|
+
message.waitTimeSeconds = reader.int32();
|
|
2037
|
+
continue;
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2041
|
+
break;
|
|
2042
|
+
}
|
|
2043
|
+
reader.skip(tag & 7);
|
|
2044
|
+
}
|
|
2045
|
+
return message;
|
|
2046
|
+
},
|
|
2047
|
+
create(base) {
|
|
2048
|
+
return ReadStreamRequest.fromPartial(base ?? {});
|
|
2049
|
+
},
|
|
2050
|
+
fromPartial(object) {
|
|
2051
|
+
const message = createBaseReadStreamRequest();
|
|
2052
|
+
message.flowId = object.flowId ?? "";
|
|
2053
|
+
message.flowType = object.flowType ?? "";
|
|
2054
|
+
message.streamName = object.streamName ?? "";
|
|
2055
|
+
message.resumeToken = object.resumeToken ?? "";
|
|
2056
|
+
message.waitTimeSeconds = object.waitTimeSeconds ?? 0;
|
|
2057
|
+
return message;
|
|
2058
|
+
},
|
|
2059
|
+
};
|
|
2060
|
+
function createBaseReadStreamResponse() {
|
|
2061
|
+
return { message: undefined };
|
|
2062
|
+
}
|
|
2063
|
+
export const ReadStreamResponse = {
|
|
2064
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2065
|
+
if (message.message !== undefined) {
|
|
2066
|
+
StreamMessage.encode(message.message, writer.uint32(10).fork()).join();
|
|
2067
|
+
}
|
|
2068
|
+
return writer;
|
|
2069
|
+
},
|
|
2070
|
+
decode(input, length) {
|
|
2071
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2072
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2073
|
+
const message = createBaseReadStreamResponse();
|
|
2074
|
+
while (reader.pos < end) {
|
|
2075
|
+
const tag = reader.uint32();
|
|
2076
|
+
switch (tag >>> 3) {
|
|
2077
|
+
case 1: {
|
|
2078
|
+
if (tag !== 10) {
|
|
2079
|
+
break;
|
|
2080
|
+
}
|
|
2081
|
+
message.message = StreamMessage.decode(reader, reader.uint32());
|
|
2082
|
+
continue;
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2086
|
+
break;
|
|
2087
|
+
}
|
|
2088
|
+
reader.skip(tag & 7);
|
|
2089
|
+
}
|
|
2090
|
+
return message;
|
|
2091
|
+
},
|
|
2092
|
+
create(base) {
|
|
2093
|
+
return ReadStreamResponse.fromPartial(base ?? {});
|
|
2094
|
+
},
|
|
2095
|
+
fromPartial(object) {
|
|
2096
|
+
const message = createBaseReadStreamResponse();
|
|
2097
|
+
message.message = (object.message !== undefined && object.message !== null)
|
|
2098
|
+
? StreamMessage.fromPartial(object.message)
|
|
2099
|
+
: undefined;
|
|
2100
|
+
return message;
|
|
2101
|
+
},
|
|
2102
|
+
};
|
|
2103
|
+
function createBaseStreamMessage() {
|
|
2104
|
+
return { value: undefined, resumeToken: "", createdTime: undefined, idempotencyKey: "" };
|
|
2105
|
+
}
|
|
2106
|
+
export const StreamMessage = {
|
|
2107
|
+
encode(message, writer = new BinaryWriter()) {
|
|
2108
|
+
if (message.value !== undefined) {
|
|
2109
|
+
Value.encode(message.value, writer.uint32(10).fork()).join();
|
|
2110
|
+
}
|
|
2111
|
+
if (message.resumeToken !== "") {
|
|
2112
|
+
writer.uint32(18).string(message.resumeToken);
|
|
2113
|
+
}
|
|
2114
|
+
if (message.createdTime !== undefined) {
|
|
2115
|
+
Timestamp.encode(toTimestamp(message.createdTime), writer.uint32(26).fork()).join();
|
|
2116
|
+
}
|
|
2117
|
+
if (message.idempotencyKey !== "") {
|
|
2118
|
+
writer.uint32(34).string(message.idempotencyKey);
|
|
2119
|
+
}
|
|
2120
|
+
return writer;
|
|
2121
|
+
},
|
|
2122
|
+
decode(input, length) {
|
|
2123
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
2124
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
2125
|
+
const message = createBaseStreamMessage();
|
|
2126
|
+
while (reader.pos < end) {
|
|
2127
|
+
const tag = reader.uint32();
|
|
2128
|
+
switch (tag >>> 3) {
|
|
2129
|
+
case 1: {
|
|
2130
|
+
if (tag !== 10) {
|
|
2131
|
+
break;
|
|
2132
|
+
}
|
|
2133
|
+
message.value = Value.decode(reader, reader.uint32());
|
|
2134
|
+
continue;
|
|
2135
|
+
}
|
|
2136
|
+
case 2: {
|
|
2137
|
+
if (tag !== 18) {
|
|
2138
|
+
break;
|
|
2139
|
+
}
|
|
2140
|
+
message.resumeToken = reader.string();
|
|
2141
|
+
continue;
|
|
2142
|
+
}
|
|
2143
|
+
case 3: {
|
|
2144
|
+
if (tag !== 26) {
|
|
2145
|
+
break;
|
|
2146
|
+
}
|
|
2147
|
+
message.createdTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
2148
|
+
continue;
|
|
2149
|
+
}
|
|
2150
|
+
case 4: {
|
|
2151
|
+
if (tag !== 34) {
|
|
2152
|
+
break;
|
|
2153
|
+
}
|
|
2154
|
+
message.idempotencyKey = reader.string();
|
|
2155
|
+
continue;
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2159
|
+
break;
|
|
2160
|
+
}
|
|
2161
|
+
reader.skip(tag & 7);
|
|
2162
|
+
}
|
|
2163
|
+
return message;
|
|
2164
|
+
},
|
|
2165
|
+
create(base) {
|
|
2166
|
+
return StreamMessage.fromPartial(base ?? {});
|
|
2167
|
+
},
|
|
2168
|
+
fromPartial(object) {
|
|
2169
|
+
const message = createBaseStreamMessage();
|
|
2170
|
+
message.value = (object.value !== undefined && object.value !== null) ? Value.fromPartial(object.value) : undefined;
|
|
2171
|
+
message.resumeToken = object.resumeToken ?? "";
|
|
2172
|
+
message.createdTime = object.createdTime ?? undefined;
|
|
2173
|
+
message.idempotencyKey = object.idempotencyKey ?? "";
|
|
2174
|
+
return message;
|
|
2175
|
+
},
|
|
2176
|
+
};
|
|
1831
2177
|
function createBaseStopFlowRequest() {
|
|
1832
2178
|
return { flowId: "", runId: "", reason: "", stopType: 0 };
|
|
1833
2179
|
}
|
|
@@ -12189,6 +12535,24 @@ export const FlowServiceService = {
|
|
|
12189
12535
|
responseSerialize: (value) => Buffer.from(Empty.encode(value).finish()),
|
|
12190
12536
|
responseDeserialize: (value) => Empty.decode(value),
|
|
12191
12537
|
},
|
|
12538
|
+
writeStream: {
|
|
12539
|
+
path: "/dex.FlowService/WriteStream",
|
|
12540
|
+
requestStream: false,
|
|
12541
|
+
responseStream: false,
|
|
12542
|
+
requestSerialize: (value) => Buffer.from(WriteStreamRequest.encode(value).finish()),
|
|
12543
|
+
requestDeserialize: (value) => WriteStreamRequest.decode(value),
|
|
12544
|
+
responseSerialize: (value) => Buffer.from(Empty.encode(value).finish()),
|
|
12545
|
+
responseDeserialize: (value) => Empty.decode(value),
|
|
12546
|
+
},
|
|
12547
|
+
readStream: {
|
|
12548
|
+
path: "/dex.FlowService/ReadStream",
|
|
12549
|
+
requestStream: false,
|
|
12550
|
+
responseStream: false,
|
|
12551
|
+
requestSerialize: (value) => Buffer.from(ReadStreamRequest.encode(value).finish()),
|
|
12552
|
+
requestDeserialize: (value) => ReadStreamRequest.decode(value),
|
|
12553
|
+
responseSerialize: (value) => Buffer.from(ReadStreamResponse.encode(value).finish()),
|
|
12554
|
+
responseDeserialize: (value) => ReadStreamResponse.decode(value),
|
|
12555
|
+
},
|
|
12192
12556
|
stopFlow: {
|
|
12193
12557
|
path: "/dex.FlowService/StopFlow",
|
|
12194
12558
|
requestStream: false,
|