@superdurable/dex 0.2.7 → 0.2.9

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.
@@ -144,6 +144,7 @@ export var ErrorSubStatus;
144
144
  ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_FLOW_NOT_EXISTS"] = 3] = "ERROR_SUB_STATUS_FLOW_NOT_EXISTS";
145
145
  ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_WORKER_API_ERROR"] = 4] = "ERROR_SUB_STATUS_WORKER_API_ERROR";
146
146
  ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_LONG_POLL_TIME_OUT"] = 5] = "ERROR_SUB_STATUS_LONG_POLL_TIME_OUT";
147
+ ErrorSubStatus[ErrorSubStatus["ERROR_SUB_STATUS_CHANNEL_MESSAGE_NOT_FOUND"] = 6] = "ERROR_SUB_STATUS_CHANNEL_MESSAGE_NOT_FOUND";
147
148
  ErrorSubStatus[ErrorSubStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
148
149
  })(ErrorSubStatus || (ErrorSubStatus = {}));
149
150
  export var CloseDecisionType;
@@ -196,6 +197,7 @@ export var UpdateErrorType;
196
197
  UpdateErrorType[UpdateErrorType["UPDATE_ERROR_TYPE_DEADLINE_EXCEEDED"] = 4] = "UPDATE_ERROR_TYPE_DEADLINE_EXCEEDED";
197
198
  UpdateErrorType[UpdateErrorType["UPDATE_ERROR_TYPE_RPC_ACQUIRE_LOCK_FAILURE"] = 5] = "UPDATE_ERROR_TYPE_RPC_ACQUIRE_LOCK_FAILURE";
198
199
  UpdateErrorType[UpdateErrorType["UPDATE_ERROR_TYPE_SERVER_INTERNAL"] = 6] = "UPDATE_ERROR_TYPE_SERVER_INTERNAL";
200
+ UpdateErrorType[UpdateErrorType["UPDATE_ERROR_TYPE_CHANNEL_MESSAGE_NOT_FOUND"] = 7] = "UPDATE_ERROR_TYPE_CHANNEL_MESSAGE_NOT_FOUND";
199
201
  UpdateErrorType[UpdateErrorType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
200
202
  })(UpdateErrorType || (UpdateErrorType = {}));
201
203
  export var SubFlowCompletionDeliveryStatus;
@@ -1834,7 +1836,7 @@ export const PublishToChannelRequest = {
1834
1836
  },
1835
1837
  };
1836
1838
  function createBaseChannelMessage() {
1837
- return { channelName: "", value: undefined };
1839
+ return { channelName: "", value: undefined, messageId: "" };
1838
1840
  }
1839
1841
  export const ChannelMessage = {
1840
1842
  encode(message, writer = new BinaryWriter()) {
@@ -1844,6 +1846,9 @@ export const ChannelMessage = {
1844
1846
  if (message.value !== undefined) {
1845
1847
  Value.encode(message.value, writer.uint32(18).fork()).join();
1846
1848
  }
1849
+ if (message.messageId !== "") {
1850
+ writer.uint32(26).string(message.messageId);
1851
+ }
1847
1852
  return writer;
1848
1853
  },
1849
1854
  decode(input, length) {
@@ -1867,6 +1872,13 @@ export const ChannelMessage = {
1867
1872
  message.value = Value.decode(reader, reader.uint32());
1868
1873
  continue;
1869
1874
  }
1875
+ case 3: {
1876
+ if (tag !== 26) {
1877
+ break;
1878
+ }
1879
+ message.messageId = reader.string();
1880
+ continue;
1881
+ }
1870
1882
  }
1871
1883
  if ((tag & 7) === 4 || tag === 0) {
1872
1884
  break;
@@ -1882,6 +1894,248 @@ export const ChannelMessage = {
1882
1894
  const message = createBaseChannelMessage();
1883
1895
  message.channelName = object.channelName ?? "";
1884
1896
  message.value = (object.value !== undefined && object.value !== null) ? Value.fromPartial(object.value) : undefined;
1897
+ message.messageId = object.messageId ?? "";
1898
+ return message;
1899
+ },
1900
+ };
1901
+ function createBaseGetChannelMessagesRequest() {
1902
+ return { flowId: "", runId: "", channelName: "" };
1903
+ }
1904
+ export const GetChannelMessagesRequest = {
1905
+ encode(message, writer = new BinaryWriter()) {
1906
+ if (message.flowId !== "") {
1907
+ writer.uint32(10).string(message.flowId);
1908
+ }
1909
+ if (message.runId !== "") {
1910
+ writer.uint32(18).string(message.runId);
1911
+ }
1912
+ if (message.channelName !== "") {
1913
+ writer.uint32(26).string(message.channelName);
1914
+ }
1915
+ return writer;
1916
+ },
1917
+ decode(input, length) {
1918
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1919
+ const end = length === undefined ? reader.len : reader.pos + length;
1920
+ const message = createBaseGetChannelMessagesRequest();
1921
+ while (reader.pos < end) {
1922
+ const tag = reader.uint32();
1923
+ switch (tag >>> 3) {
1924
+ case 1: {
1925
+ if (tag !== 10) {
1926
+ break;
1927
+ }
1928
+ message.flowId = reader.string();
1929
+ continue;
1930
+ }
1931
+ case 2: {
1932
+ if (tag !== 18) {
1933
+ break;
1934
+ }
1935
+ message.runId = reader.string();
1936
+ continue;
1937
+ }
1938
+ case 3: {
1939
+ if (tag !== 26) {
1940
+ break;
1941
+ }
1942
+ message.channelName = reader.string();
1943
+ continue;
1944
+ }
1945
+ }
1946
+ if ((tag & 7) === 4 || tag === 0) {
1947
+ break;
1948
+ }
1949
+ reader.skip(tag & 7);
1950
+ }
1951
+ return message;
1952
+ },
1953
+ create(base) {
1954
+ return GetChannelMessagesRequest.fromPartial(base ?? {});
1955
+ },
1956
+ fromPartial(object) {
1957
+ const message = createBaseGetChannelMessagesRequest();
1958
+ message.flowId = object.flowId ?? "";
1959
+ message.runId = object.runId ?? "";
1960
+ message.channelName = object.channelName ?? "";
1961
+ return message;
1962
+ },
1963
+ };
1964
+ function createBaseGetChannelMessagesResponse() {
1965
+ return { messages: [] };
1966
+ }
1967
+ export const GetChannelMessagesResponse = {
1968
+ encode(message, writer = new BinaryWriter()) {
1969
+ for (const v of message.messages) {
1970
+ ChannelMessage.encode(v, writer.uint32(10).fork()).join();
1971
+ }
1972
+ return writer;
1973
+ },
1974
+ decode(input, length) {
1975
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1976
+ const end = length === undefined ? reader.len : reader.pos + length;
1977
+ const message = createBaseGetChannelMessagesResponse();
1978
+ while (reader.pos < end) {
1979
+ const tag = reader.uint32();
1980
+ switch (tag >>> 3) {
1981
+ case 1: {
1982
+ if (tag !== 10) {
1983
+ break;
1984
+ }
1985
+ message.messages.push(ChannelMessage.decode(reader, reader.uint32()));
1986
+ continue;
1987
+ }
1988
+ }
1989
+ if ((tag & 7) === 4 || tag === 0) {
1990
+ break;
1991
+ }
1992
+ reader.skip(tag & 7);
1993
+ }
1994
+ return message;
1995
+ },
1996
+ create(base) {
1997
+ return GetChannelMessagesResponse.fromPartial(base ?? {});
1998
+ },
1999
+ fromPartial(object) {
2000
+ const message = createBaseGetChannelMessagesResponse();
2001
+ message.messages = object.messages?.map((e) => ChannelMessage.fromPartial(e)) || [];
2002
+ return message;
2003
+ },
2004
+ };
2005
+ function createBaseDeleteChannelMessageRequest() {
2006
+ return { flowId: "", runId: "", channelName: "", messageId: "", requestId: "" };
2007
+ }
2008
+ export const DeleteChannelMessageRequest = {
2009
+ encode(message, writer = new BinaryWriter()) {
2010
+ if (message.flowId !== "") {
2011
+ writer.uint32(10).string(message.flowId);
2012
+ }
2013
+ if (message.runId !== "") {
2014
+ writer.uint32(18).string(message.runId);
2015
+ }
2016
+ if (message.channelName !== "") {
2017
+ writer.uint32(26).string(message.channelName);
2018
+ }
2019
+ if (message.messageId !== "") {
2020
+ writer.uint32(34).string(message.messageId);
2021
+ }
2022
+ if (message.requestId !== "") {
2023
+ writer.uint32(42).string(message.requestId);
2024
+ }
2025
+ return writer;
2026
+ },
2027
+ decode(input, length) {
2028
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2029
+ const end = length === undefined ? reader.len : reader.pos + length;
2030
+ const message = createBaseDeleteChannelMessageRequest();
2031
+ while (reader.pos < end) {
2032
+ const tag = reader.uint32();
2033
+ switch (tag >>> 3) {
2034
+ case 1: {
2035
+ if (tag !== 10) {
2036
+ break;
2037
+ }
2038
+ message.flowId = reader.string();
2039
+ continue;
2040
+ }
2041
+ case 2: {
2042
+ if (tag !== 18) {
2043
+ break;
2044
+ }
2045
+ message.runId = reader.string();
2046
+ continue;
2047
+ }
2048
+ case 3: {
2049
+ if (tag !== 26) {
2050
+ break;
2051
+ }
2052
+ message.channelName = reader.string();
2053
+ continue;
2054
+ }
2055
+ case 4: {
2056
+ if (tag !== 34) {
2057
+ break;
2058
+ }
2059
+ message.messageId = reader.string();
2060
+ continue;
2061
+ }
2062
+ case 5: {
2063
+ if (tag !== 42) {
2064
+ break;
2065
+ }
2066
+ message.requestId = reader.string();
2067
+ continue;
2068
+ }
2069
+ }
2070
+ if ((tag & 7) === 4 || tag === 0) {
2071
+ break;
2072
+ }
2073
+ reader.skip(tag & 7);
2074
+ }
2075
+ return message;
2076
+ },
2077
+ create(base) {
2078
+ return DeleteChannelMessageRequest.fromPartial(base ?? {});
2079
+ },
2080
+ fromPartial(object) {
2081
+ const message = createBaseDeleteChannelMessageRequest();
2082
+ message.flowId = object.flowId ?? "";
2083
+ message.runId = object.runId ?? "";
2084
+ message.channelName = object.channelName ?? "";
2085
+ message.messageId = object.messageId ?? "";
2086
+ message.requestId = object.requestId ?? "";
2087
+ return message;
2088
+ },
2089
+ };
2090
+ function createBaseChannelMessageDeletion() {
2091
+ return { channelName: "", messageId: "" };
2092
+ }
2093
+ export const ChannelMessageDeletion = {
2094
+ encode(message, writer = new BinaryWriter()) {
2095
+ if (message.channelName !== "") {
2096
+ writer.uint32(10).string(message.channelName);
2097
+ }
2098
+ if (message.messageId !== "") {
2099
+ writer.uint32(18).string(message.messageId);
2100
+ }
2101
+ return writer;
2102
+ },
2103
+ decode(input, length) {
2104
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2105
+ const end = length === undefined ? reader.len : reader.pos + length;
2106
+ const message = createBaseChannelMessageDeletion();
2107
+ while (reader.pos < end) {
2108
+ const tag = reader.uint32();
2109
+ switch (tag >>> 3) {
2110
+ case 1: {
2111
+ if (tag !== 10) {
2112
+ break;
2113
+ }
2114
+ message.channelName = reader.string();
2115
+ continue;
2116
+ }
2117
+ case 2: {
2118
+ if (tag !== 18) {
2119
+ break;
2120
+ }
2121
+ message.messageId = reader.string();
2122
+ continue;
2123
+ }
2124
+ }
2125
+ if ((tag & 7) === 4 || tag === 0) {
2126
+ break;
2127
+ }
2128
+ reader.skip(tag & 7);
2129
+ }
2130
+ return message;
2131
+ },
2132
+ create(base) {
2133
+ return ChannelMessageDeletion.fromPartial(base ?? {});
2134
+ },
2135
+ fromPartial(object) {
2136
+ const message = createBaseChannelMessageDeletion();
2137
+ message.channelName = object.channelName ?? "";
2138
+ message.messageId = object.messageId ?? "";
1885
2139
  return message;
1886
2140
  },
1887
2141
  };
@@ -3747,6 +4001,9 @@ export const FlowHistoryEvent = {
3747
4001
  case "timeTravelFork":
3748
4002
  TimeTravelForkHistoryEvent.encode(message.payload.value, writer.uint32(242).fork()).join();
3749
4003
  break;
4004
+ case "channelExternalDelete":
4005
+ ChannelExternalDeleteEvent.encode(message.payload.value, writer.uint32(250).fork()).join();
4006
+ break;
3750
4007
  }
3751
4008
  return writer;
3752
4009
  },
@@ -3878,6 +4135,16 @@ export const FlowHistoryEvent = {
3878
4135
  };
3879
4136
  continue;
3880
4137
  }
4138
+ case 31: {
4139
+ if (tag !== 250) {
4140
+ break;
4141
+ }
4142
+ message.payload = {
4143
+ $case: "channelExternalDelete",
4144
+ value: ChannelExternalDeleteEvent.decode(reader, reader.uint32()),
4145
+ };
4146
+ continue;
4147
+ }
3881
4148
  }
3882
4149
  if ((tag & 7) === 4 || tag === 0) {
3883
4150
  break;
@@ -3990,6 +4257,15 @@ export const FlowHistoryEvent = {
3990
4257
  }
3991
4258
  break;
3992
4259
  }
4260
+ case "channelExternalDelete": {
4261
+ if (object.payload?.value !== undefined && object.payload?.value !== null) {
4262
+ message.payload = {
4263
+ $case: "channelExternalDelete",
4264
+ value: ChannelExternalDeleteEvent.fromPartial(object.payload.value),
4265
+ };
4266
+ }
4267
+ break;
4268
+ }
3993
4269
  }
3994
4270
  return message;
3995
4271
  },
@@ -5460,6 +5736,7 @@ function createBaseRpcExecutionCompletedEvent() {
5460
5736
  recordEvents: [],
5461
5737
  publishToChannel: [],
5462
5738
  isSetAttributeApi: false,
5739
+ deleteFromChannel: [],
5463
5740
  };
5464
5741
  }
5465
5742
  export const RpcExecutionCompletedEvent = {
@@ -5488,6 +5765,9 @@ export const RpcExecutionCompletedEvent = {
5488
5765
  if (message.isSetAttributeApi !== false) {
5489
5766
  writer.uint32(64).bool(message.isSetAttributeApi);
5490
5767
  }
5768
+ for (const v of message.deleteFromChannel) {
5769
+ ChannelMessageDeletion.encode(v, writer.uint32(74).fork()).join();
5770
+ }
5491
5771
  return writer;
5492
5772
  },
5493
5773
  decode(input, length) {
@@ -5553,6 +5833,13 @@ export const RpcExecutionCompletedEvent = {
5553
5833
  message.isSetAttributeApi = reader.bool();
5554
5834
  continue;
5555
5835
  }
5836
+ case 9: {
5837
+ if (tag !== 74) {
5838
+ break;
5839
+ }
5840
+ message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
5841
+ continue;
5842
+ }
5556
5843
  }
5557
5844
  if ((tag & 7) === 4 || tag === 0) {
5558
5845
  break;
@@ -5578,6 +5865,7 @@ export const RpcExecutionCompletedEvent = {
5578
5865
  message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
5579
5866
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
5580
5867
  message.isSetAttributeApi = object.isSetAttributeApi ?? false;
5868
+ message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
5581
5869
  return message;
5582
5870
  },
5583
5871
  };
@@ -5622,6 +5910,47 @@ export const ChannelExternalPublishEvent = {
5622
5910
  return message;
5623
5911
  },
5624
5912
  };
5913
+ function createBaseChannelExternalDeleteEvent() {
5914
+ return { messages: [] };
5915
+ }
5916
+ export const ChannelExternalDeleteEvent = {
5917
+ encode(message, writer = new BinaryWriter()) {
5918
+ for (const v of message.messages) {
5919
+ ChannelMessageDeletion.encode(v, writer.uint32(10).fork()).join();
5920
+ }
5921
+ return writer;
5922
+ },
5923
+ decode(input, length) {
5924
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
5925
+ const end = length === undefined ? reader.len : reader.pos + length;
5926
+ const message = createBaseChannelExternalDeleteEvent();
5927
+ while (reader.pos < end) {
5928
+ const tag = reader.uint32();
5929
+ switch (tag >>> 3) {
5930
+ case 1: {
5931
+ if (tag !== 10) {
5932
+ break;
5933
+ }
5934
+ message.messages.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
5935
+ continue;
5936
+ }
5937
+ }
5938
+ if ((tag & 7) === 4 || tag === 0) {
5939
+ break;
5940
+ }
5941
+ reader.skip(tag & 7);
5942
+ }
5943
+ return message;
5944
+ },
5945
+ create(base) {
5946
+ return ChannelExternalDeleteEvent.fromPartial(base ?? {});
5947
+ },
5948
+ fromPartial(object) {
5949
+ const message = createBaseChannelExternalDeleteEvent();
5950
+ message.messages = object.messages?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
5951
+ return message;
5952
+ },
5953
+ };
5625
5954
  function createBaseWaitForHistoryEventRequest() {
5626
5955
  return { flowId: "", runId: "", nextInternalEventId: 0n };
5627
5956
  }
@@ -6329,6 +6658,10 @@ function createBaseInvokeRPCRequest() {
6329
6658
  timeoutSeconds: 0,
6330
6659
  lockAttributeKeys: [],
6331
6660
  requestId: "",
6661
+ isTransactional: false,
6662
+ loadAttributeMapInstances: [],
6663
+ loadChannelNames: [],
6664
+ loadChannelMapInstances: [],
6332
6665
  };
6333
6666
  }
6334
6667
  export const InvokeRPCRequest = {
@@ -6354,6 +6687,18 @@ export const InvokeRPCRequest = {
6354
6687
  if (message.requestId !== "") {
6355
6688
  writer.uint32(58).string(message.requestId);
6356
6689
  }
6690
+ if (message.isTransactional !== false) {
6691
+ writer.uint32(64).bool(message.isTransactional);
6692
+ }
6693
+ for (const v of message.loadAttributeMapInstances) {
6694
+ writer.uint32(74).string(v);
6695
+ }
6696
+ for (const v of message.loadChannelNames) {
6697
+ writer.uint32(82).string(v);
6698
+ }
6699
+ for (const v of message.loadChannelMapInstances) {
6700
+ writer.uint32(90).string(v);
6701
+ }
6357
6702
  return writer;
6358
6703
  },
6359
6704
  decode(input, length) {
@@ -6391,25 +6736,53 @@ export const InvokeRPCRequest = {
6391
6736
  message.input = Value.decode(reader, reader.uint32());
6392
6737
  continue;
6393
6738
  }
6394
- case 5: {
6395
- if (tag !== 40) {
6739
+ case 5: {
6740
+ if (tag !== 40) {
6741
+ break;
6742
+ }
6743
+ message.timeoutSeconds = reader.int32();
6744
+ continue;
6745
+ }
6746
+ case 6: {
6747
+ if (tag !== 50) {
6748
+ break;
6749
+ }
6750
+ message.lockAttributeKeys.push(reader.string());
6751
+ continue;
6752
+ }
6753
+ case 7: {
6754
+ if (tag !== 58) {
6755
+ break;
6756
+ }
6757
+ message.requestId = reader.string();
6758
+ continue;
6759
+ }
6760
+ case 8: {
6761
+ if (tag !== 64) {
6762
+ break;
6763
+ }
6764
+ message.isTransactional = reader.bool();
6765
+ continue;
6766
+ }
6767
+ case 9: {
6768
+ if (tag !== 74) {
6396
6769
  break;
6397
6770
  }
6398
- message.timeoutSeconds = reader.int32();
6771
+ message.loadAttributeMapInstances.push(reader.string());
6399
6772
  continue;
6400
6773
  }
6401
- case 6: {
6402
- if (tag !== 50) {
6774
+ case 10: {
6775
+ if (tag !== 82) {
6403
6776
  break;
6404
6777
  }
6405
- message.lockAttributeKeys.push(reader.string());
6778
+ message.loadChannelNames.push(reader.string());
6406
6779
  continue;
6407
6780
  }
6408
- case 7: {
6409
- if (tag !== 58) {
6781
+ case 11: {
6782
+ if (tag !== 90) {
6410
6783
  break;
6411
6784
  }
6412
- message.requestId = reader.string();
6785
+ message.loadChannelMapInstances.push(reader.string());
6413
6786
  continue;
6414
6787
  }
6415
6788
  }
@@ -6432,6 +6805,10 @@ export const InvokeRPCRequest = {
6432
6805
  message.timeoutSeconds = object.timeoutSeconds ?? 0;
6433
6806
  message.lockAttributeKeys = object.lockAttributeKeys?.map((e) => e) || [];
6434
6807
  message.requestId = object.requestId ?? "";
6808
+ message.isTransactional = object.isTransactional ?? false;
6809
+ message.loadAttributeMapInstances = object.loadAttributeMapInstances?.map((e) => e) || [];
6810
+ message.loadChannelNames = object.loadChannelNames?.map((e) => e) || [];
6811
+ message.loadChannelMapInstances = object.loadChannelMapInstances?.map((e) => e) || [];
6435
6812
  return message;
6436
6813
  },
6437
6814
  };
@@ -8159,7 +8536,18 @@ export const InvokeExecuteMethodOutput = {
8159
8536
  },
8160
8537
  };
8161
8538
  function createBaseInvokeWorkerRPCRequest() {
8162
- return { context: undefined, flowType: "", rpcName: "", input: undefined, attributes: [], channelInfos: {} };
8539
+ return {
8540
+ context: undefined,
8541
+ flowType: "",
8542
+ rpcName: "",
8543
+ input: undefined,
8544
+ attributes: [],
8545
+ channelInfos: {},
8546
+ loadedChannelMessages: {},
8547
+ loadedAttributeMapInstances: [],
8548
+ loadedChannelNames: [],
8549
+ loadedChannelMapInstances: [],
8550
+ };
8163
8551
  }
8164
8552
  export const InvokeWorkerRPCRequest = {
8165
8553
  encode(message, writer = new BinaryWriter()) {
@@ -8181,6 +8569,19 @@ export const InvokeWorkerRPCRequest = {
8181
8569
  globalThis.Object.entries(message.channelInfos).forEach(([key, value]) => {
8182
8570
  InvokeWorkerRPCRequest_ChannelInfosEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
8183
8571
  });
8572
+ globalThis.Object.entries(message.loadedChannelMessages).forEach(([key, value]) => {
8573
+ InvokeWorkerRPCRequest_LoadedChannelMessagesEntry.encode({ key: key, value }, writer.uint32(58).fork())
8574
+ .join();
8575
+ });
8576
+ for (const v of message.loadedAttributeMapInstances) {
8577
+ writer.uint32(66).string(v);
8578
+ }
8579
+ for (const v of message.loadedChannelNames) {
8580
+ writer.uint32(74).string(v);
8581
+ }
8582
+ for (const v of message.loadedChannelMapInstances) {
8583
+ writer.uint32(82).string(v);
8584
+ }
8184
8585
  return writer;
8185
8586
  },
8186
8587
  decode(input, length) {
@@ -8235,6 +8636,37 @@ export const InvokeWorkerRPCRequest = {
8235
8636
  }
8236
8637
  continue;
8237
8638
  }
8639
+ case 7: {
8640
+ if (tag !== 58) {
8641
+ break;
8642
+ }
8643
+ const entry7 = InvokeWorkerRPCRequest_LoadedChannelMessagesEntry.decode(reader, reader.uint32());
8644
+ if (entry7.value !== undefined) {
8645
+ message.loadedChannelMessages[entry7.key] = entry7.value;
8646
+ }
8647
+ continue;
8648
+ }
8649
+ case 8: {
8650
+ if (tag !== 66) {
8651
+ break;
8652
+ }
8653
+ message.loadedAttributeMapInstances.push(reader.string());
8654
+ continue;
8655
+ }
8656
+ case 9: {
8657
+ if (tag !== 74) {
8658
+ break;
8659
+ }
8660
+ message.loadedChannelNames.push(reader.string());
8661
+ continue;
8662
+ }
8663
+ case 10: {
8664
+ if (tag !== 82) {
8665
+ break;
8666
+ }
8667
+ message.loadedChannelMapInstances.push(reader.string());
8668
+ continue;
8669
+ }
8238
8670
  }
8239
8671
  if ((tag & 7) === 4 || tag === 0) {
8240
8672
  break;
@@ -8261,6 +8693,16 @@ export const InvokeWorkerRPCRequest = {
8261
8693
  }
8262
8694
  return acc;
8263
8695
  }, {});
8696
+ message.loadedChannelMessages =
8697
+ globalThis.Object.entries(object.loadedChannelMessages ?? {}).reduce((acc, [key, value]) => {
8698
+ if (value !== undefined) {
8699
+ acc[key] = ChannelValues.fromPartial(value);
8700
+ }
8701
+ return acc;
8702
+ }, {});
8703
+ message.loadedAttributeMapInstances = object.loadedAttributeMapInstances?.map((e) => e) || [];
8704
+ message.loadedChannelNames = object.loadedChannelNames?.map((e) => e) || [];
8705
+ message.loadedChannelMapInstances = object.loadedChannelMapInstances?.map((e) => e) || [];
8264
8706
  return message;
8265
8707
  },
8266
8708
  };
@@ -8318,8 +8760,69 @@ export const InvokeWorkerRPCRequest_ChannelInfosEntry = {
8318
8760
  return message;
8319
8761
  },
8320
8762
  };
8763
+ function createBaseInvokeWorkerRPCRequest_LoadedChannelMessagesEntry() {
8764
+ return { key: "", value: undefined };
8765
+ }
8766
+ export const InvokeWorkerRPCRequest_LoadedChannelMessagesEntry = {
8767
+ encode(message, writer = new BinaryWriter()) {
8768
+ if (message.key !== "") {
8769
+ writer.uint32(10).string(message.key);
8770
+ }
8771
+ if (message.value !== undefined) {
8772
+ ChannelValues.encode(message.value, writer.uint32(18).fork()).join();
8773
+ }
8774
+ return writer;
8775
+ },
8776
+ decode(input, length) {
8777
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8778
+ const end = length === undefined ? reader.len : reader.pos + length;
8779
+ const message = createBaseInvokeWorkerRPCRequest_LoadedChannelMessagesEntry();
8780
+ while (reader.pos < end) {
8781
+ const tag = reader.uint32();
8782
+ switch (tag >>> 3) {
8783
+ case 1: {
8784
+ if (tag !== 10) {
8785
+ break;
8786
+ }
8787
+ message.key = reader.string();
8788
+ continue;
8789
+ }
8790
+ case 2: {
8791
+ if (tag !== 18) {
8792
+ break;
8793
+ }
8794
+ message.value = ChannelValues.decode(reader, reader.uint32());
8795
+ continue;
8796
+ }
8797
+ }
8798
+ if ((tag & 7) === 4 || tag === 0) {
8799
+ break;
8800
+ }
8801
+ reader.skip(tag & 7);
8802
+ }
8803
+ return message;
8804
+ },
8805
+ create(base) {
8806
+ return InvokeWorkerRPCRequest_LoadedChannelMessagesEntry.fromPartial(base ?? {});
8807
+ },
8808
+ fromPartial(object) {
8809
+ const message = createBaseInvokeWorkerRPCRequest_LoadedChannelMessagesEntry();
8810
+ message.key = object.key ?? "";
8811
+ message.value = (object.value !== undefined && object.value !== null)
8812
+ ? ChannelValues.fromPartial(object.value)
8813
+ : undefined;
8814
+ return message;
8815
+ },
8816
+ };
8321
8817
  function createBaseInvokeWorkerRPCResponse() {
8322
- return { output: undefined, stepDecision: undefined, upsertAttributes: [], recordEvents: [], publishToChannel: [] };
8818
+ return {
8819
+ output: undefined,
8820
+ stepDecision: undefined,
8821
+ upsertAttributes: [],
8822
+ recordEvents: [],
8823
+ deleteFromChannel: [],
8824
+ publishToChannel: [],
8825
+ };
8323
8826
  }
8324
8827
  export const InvokeWorkerRPCResponse = {
8325
8828
  encode(message, writer = new BinaryWriter()) {
@@ -8335,6 +8838,9 @@ export const InvokeWorkerRPCResponse = {
8335
8838
  for (const v of message.recordEvents) {
8336
8839
  KV.encode(v, writer.uint32(34).fork()).join();
8337
8840
  }
8841
+ for (const v of message.deleteFromChannel) {
8842
+ ChannelMessageDeletion.encode(v, writer.uint32(42).fork()).join();
8843
+ }
8338
8844
  for (const v of message.publishToChannel) {
8339
8845
  ChannelMessage.encode(v, writer.uint32(50).fork()).join();
8340
8846
  }
@@ -8375,6 +8881,13 @@ export const InvokeWorkerRPCResponse = {
8375
8881
  message.recordEvents.push(KV.decode(reader, reader.uint32()));
8376
8882
  continue;
8377
8883
  }
8884
+ case 5: {
8885
+ if (tag !== 42) {
8886
+ break;
8887
+ }
8888
+ message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
8889
+ continue;
8890
+ }
8378
8891
  case 6: {
8379
8892
  if (tag !== 50) {
8380
8893
  break;
@@ -8403,6 +8916,7 @@ export const InvokeWorkerRPCResponse = {
8403
8916
  : undefined;
8404
8917
  message.upsertAttributes = object.upsertAttributes?.map((e) => AttributeWrite.fromPartial(e)) || [];
8405
8918
  message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
8919
+ message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
8406
8920
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
8407
8921
  return message;
8408
8922
  },
@@ -9647,12 +10161,12 @@ export const ContinueAsNewDumpResponse = {
9647
10161
  },
9648
10162
  };
9649
10163
  function createBaseChannelValues() {
9650
- return { values: [] };
10164
+ return { messages: [] };
9651
10165
  }
9652
10166
  export const ChannelValues = {
9653
10167
  encode(message, writer = new BinaryWriter()) {
9654
- for (const v of message.values) {
9655
- Value.encode(v, writer.uint32(10).fork()).join();
10168
+ for (const v of message.messages) {
10169
+ ChannelMessage.encode(v, writer.uint32(10).fork()).join();
9656
10170
  }
9657
10171
  return writer;
9658
10172
  },
@@ -9667,7 +10181,7 @@ export const ChannelValues = {
9667
10181
  if (tag !== 10) {
9668
10182
  break;
9669
10183
  }
9670
- message.values.push(Value.decode(reader, reader.uint32()));
10184
+ message.messages.push(ChannelMessage.decode(reader, reader.uint32()));
9671
10185
  continue;
9672
10186
  }
9673
10187
  }
@@ -9683,7 +10197,7 @@ export const ChannelValues = {
9683
10197
  },
9684
10198
  fromPartial(object) {
9685
10199
  const message = createBaseChannelValues();
9686
- message.values = object.values?.map((e) => Value.fromPartial(e)) || [];
10200
+ message.messages = object.messages?.map((e) => ChannelMessage.fromPartial(e)) || [];
9687
10201
  return message;
9688
10202
  },
9689
10203
  };
@@ -11831,6 +12345,8 @@ function createBaseExecuteRpcSignalRequest() {
11831
12345
  recordEvents: [],
11832
12346
  publishToChannel: [],
11833
12347
  isSetAttributeApi: false,
12348
+ deleteFromChannel: [],
12349
+ isDeleteChannelMessageApi: false,
11834
12350
  };
11835
12351
  }
11836
12352
  export const ExecuteRpcSignalRequest = {
@@ -11856,6 +12372,12 @@ export const ExecuteRpcSignalRequest = {
11856
12372
  if (message.isSetAttributeApi !== false) {
11857
12373
  writer.uint32(56).bool(message.isSetAttributeApi);
11858
12374
  }
12375
+ for (const v of message.deleteFromChannel) {
12376
+ ChannelMessageDeletion.encode(v, writer.uint32(66).fork()).join();
12377
+ }
12378
+ if (message.isDeleteChannelMessageApi !== false) {
12379
+ writer.uint32(72).bool(message.isDeleteChannelMessageApi);
12380
+ }
11859
12381
  return writer;
11860
12382
  },
11861
12383
  decode(input, length) {
@@ -11914,6 +12436,20 @@ export const ExecuteRpcSignalRequest = {
11914
12436
  message.isSetAttributeApi = reader.bool();
11915
12437
  continue;
11916
12438
  }
12439
+ case 8: {
12440
+ if (tag !== 66) {
12441
+ break;
12442
+ }
12443
+ message.deleteFromChannel.push(ChannelMessageDeletion.decode(reader, reader.uint32()));
12444
+ continue;
12445
+ }
12446
+ case 9: {
12447
+ if (tag !== 72) {
12448
+ break;
12449
+ }
12450
+ message.isDeleteChannelMessageApi = reader.bool();
12451
+ continue;
12452
+ }
11917
12453
  }
11918
12454
  if ((tag & 7) === 4 || tag === 0) {
11919
12455
  break;
@@ -11940,6 +12476,8 @@ export const ExecuteRpcSignalRequest = {
11940
12476
  message.recordEvents = object.recordEvents?.map((e) => KV.fromPartial(e)) || [];
11941
12477
  message.publishToChannel = object.publishToChannel?.map((e) => ChannelMessage.fromPartial(e)) || [];
11942
12478
  message.isSetAttributeApi = object.isSetAttributeApi ?? false;
12479
+ message.deleteFromChannel = object.deleteFromChannel?.map((e) => ChannelMessageDeletion.fromPartial(e)) || [];
12480
+ message.isDeleteChannelMessageApi = object.isDeleteChannelMessageApi ?? false;
11943
12481
  return message;
11944
12482
  },
11945
12483
  };
@@ -12152,13 +12690,19 @@ export const GetAttributesQueryResponse = {
12152
12690
  },
12153
12691
  };
12154
12692
  function createBasePrepareRpcQueryRequest() {
12155
- return { lockAttributeKeys: [] };
12693
+ return { loadAttributeMapInstances: [], loadChannelNames: [], loadChannelMapInstances: [] };
12156
12694
  }
12157
12695
  export const PrepareRpcQueryRequest = {
12158
12696
  encode(message, writer = new BinaryWriter()) {
12159
- for (const v of message.lockAttributeKeys) {
12697
+ for (const v of message.loadAttributeMapInstances) {
12160
12698
  writer.uint32(10).string(v);
12161
12699
  }
12700
+ for (const v of message.loadChannelNames) {
12701
+ writer.uint32(18).string(v);
12702
+ }
12703
+ for (const v of message.loadChannelMapInstances) {
12704
+ writer.uint32(26).string(v);
12705
+ }
12162
12706
  return writer;
12163
12707
  },
12164
12708
  decode(input, length) {
@@ -12172,7 +12716,21 @@ export const PrepareRpcQueryRequest = {
12172
12716
  if (tag !== 10) {
12173
12717
  break;
12174
12718
  }
12175
- message.lockAttributeKeys.push(reader.string());
12719
+ message.loadAttributeMapInstances.push(reader.string());
12720
+ continue;
12721
+ }
12722
+ case 2: {
12723
+ if (tag !== 18) {
12724
+ break;
12725
+ }
12726
+ message.loadChannelNames.push(reader.string());
12727
+ continue;
12728
+ }
12729
+ case 3: {
12730
+ if (tag !== 26) {
12731
+ break;
12732
+ }
12733
+ message.loadChannelMapInstances.push(reader.string());
12176
12734
  continue;
12177
12735
  }
12178
12736
  }
@@ -12188,7 +12746,9 @@ export const PrepareRpcQueryRequest = {
12188
12746
  },
12189
12747
  fromPartial(object) {
12190
12748
  const message = createBasePrepareRpcQueryRequest();
12191
- message.lockAttributeKeys = object.lockAttributeKeys?.map((e) => e) || [];
12749
+ message.loadAttributeMapInstances = object.loadAttributeMapInstances?.map((e) => e) || [];
12750
+ message.loadChannelNames = object.loadChannelNames?.map((e) => e) || [];
12751
+ message.loadChannelMapInstances = object.loadChannelMapInstances?.map((e) => e) || [];
12192
12752
  return message;
12193
12753
  },
12194
12754
  };
@@ -12200,6 +12760,10 @@ function createBasePrepareRpcQueryResponse() {
12200
12760
  flowType: "",
12201
12761
  workerTarget: undefined,
12202
12762
  channelInfos: {},
12763
+ loadedChannelMessages: {},
12764
+ loadedAttributeMapInstances: [],
12765
+ loadedChannelNames: [],
12766
+ loadedChannelMapInstances: [],
12203
12767
  };
12204
12768
  }
12205
12769
  export const PrepareRpcQueryResponse = {
@@ -12225,6 +12789,19 @@ export const PrepareRpcQueryResponse = {
12225
12789
  globalThis.Object.entries(message.channelInfos).forEach(([key, value]) => {
12226
12790
  PrepareRpcQueryResponse_ChannelInfosEntry.encode({ key: key, value }, writer.uint32(50).fork()).join();
12227
12791
  });
12792
+ globalThis.Object.entries(message.loadedChannelMessages).forEach(([key, value]) => {
12793
+ PrepareRpcQueryResponse_LoadedChannelMessagesEntry.encode({ key: key, value }, writer.uint32(58).fork())
12794
+ .join();
12795
+ });
12796
+ for (const v of message.loadedAttributeMapInstances) {
12797
+ writer.uint32(66).string(v);
12798
+ }
12799
+ for (const v of message.loadedChannelNames) {
12800
+ writer.uint32(74).string(v);
12801
+ }
12802
+ for (const v of message.loadedChannelMapInstances) {
12803
+ writer.uint32(82).string(v);
12804
+ }
12228
12805
  return writer;
12229
12806
  },
12230
12807
  decode(input, length) {
@@ -12279,6 +12856,37 @@ export const PrepareRpcQueryResponse = {
12279
12856
  }
12280
12857
  continue;
12281
12858
  }
12859
+ case 7: {
12860
+ if (tag !== 58) {
12861
+ break;
12862
+ }
12863
+ const entry7 = PrepareRpcQueryResponse_LoadedChannelMessagesEntry.decode(reader, reader.uint32());
12864
+ if (entry7.value !== undefined) {
12865
+ message.loadedChannelMessages[entry7.key] = entry7.value;
12866
+ }
12867
+ continue;
12868
+ }
12869
+ case 8: {
12870
+ if (tag !== 66) {
12871
+ break;
12872
+ }
12873
+ message.loadedAttributeMapInstances.push(reader.string());
12874
+ continue;
12875
+ }
12876
+ case 9: {
12877
+ if (tag !== 74) {
12878
+ break;
12879
+ }
12880
+ message.loadedChannelNames.push(reader.string());
12881
+ continue;
12882
+ }
12883
+ case 10: {
12884
+ if (tag !== 82) {
12885
+ break;
12886
+ }
12887
+ message.loadedChannelMapInstances.push(reader.string());
12888
+ continue;
12889
+ }
12282
12890
  }
12283
12891
  if ((tag & 7) === 4 || tag === 0) {
12284
12892
  break;
@@ -12307,6 +12915,16 @@ export const PrepareRpcQueryResponse = {
12307
12915
  }
12308
12916
  return acc;
12309
12917
  }, {});
12918
+ message.loadedChannelMessages =
12919
+ globalThis.Object.entries(object.loadedChannelMessages ?? {}).reduce((acc, [key, value]) => {
12920
+ if (value !== undefined) {
12921
+ acc[key] = ChannelValues.fromPartial(value);
12922
+ }
12923
+ return acc;
12924
+ }, {});
12925
+ message.loadedAttributeMapInstances = object.loadedAttributeMapInstances?.map((e) => e) || [];
12926
+ message.loadedChannelNames = object.loadedChannelNames?.map((e) => e) || [];
12927
+ message.loadedChannelMapInstances = object.loadedChannelMapInstances?.map((e) => e) || [];
12310
12928
  return message;
12311
12929
  },
12312
12930
  };
@@ -12364,6 +12982,60 @@ export const PrepareRpcQueryResponse_ChannelInfosEntry = {
12364
12982
  return message;
12365
12983
  },
12366
12984
  };
12985
+ function createBasePrepareRpcQueryResponse_LoadedChannelMessagesEntry() {
12986
+ return { key: "", value: undefined };
12987
+ }
12988
+ export const PrepareRpcQueryResponse_LoadedChannelMessagesEntry = {
12989
+ encode(message, writer = new BinaryWriter()) {
12990
+ if (message.key !== "") {
12991
+ writer.uint32(10).string(message.key);
12992
+ }
12993
+ if (message.value !== undefined) {
12994
+ ChannelValues.encode(message.value, writer.uint32(18).fork()).join();
12995
+ }
12996
+ return writer;
12997
+ },
12998
+ decode(input, length) {
12999
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
13000
+ const end = length === undefined ? reader.len : reader.pos + length;
13001
+ const message = createBasePrepareRpcQueryResponse_LoadedChannelMessagesEntry();
13002
+ while (reader.pos < end) {
13003
+ const tag = reader.uint32();
13004
+ switch (tag >>> 3) {
13005
+ case 1: {
13006
+ if (tag !== 10) {
13007
+ break;
13008
+ }
13009
+ message.key = reader.string();
13010
+ continue;
13011
+ }
13012
+ case 2: {
13013
+ if (tag !== 18) {
13014
+ break;
13015
+ }
13016
+ message.value = ChannelValues.decode(reader, reader.uint32());
13017
+ continue;
13018
+ }
13019
+ }
13020
+ if ((tag & 7) === 4 || tag === 0) {
13021
+ break;
13022
+ }
13023
+ reader.skip(tag & 7);
13024
+ }
13025
+ return message;
13026
+ },
13027
+ create(base) {
13028
+ return PrepareRpcQueryResponse_LoadedChannelMessagesEntry.fromPartial(base ?? {});
13029
+ },
13030
+ fromPartial(object) {
13031
+ const message = createBasePrepareRpcQueryResponse_LoadedChannelMessagesEntry();
13032
+ message.key = object.key ?? "";
13033
+ message.value = (object.value !== undefined && object.value !== null)
13034
+ ? ChannelValues.fromPartial(object.value)
13035
+ : undefined;
13036
+ return message;
13037
+ },
13038
+ };
12367
13039
  function createBaseTimerInfo() {
12368
13040
  return { conditionId: "", firingUnixTimestampSeconds: 0n, status: 0 };
12369
13041
  }
@@ -12822,6 +13494,24 @@ export const FlowServiceService = {
12822
13494
  responseSerialize: (value) => Buffer.from(Empty.encode(value).finish()),
12823
13495
  responseDeserialize: (value) => Empty.decode(value),
12824
13496
  },
13497
+ getChannelMessages: {
13498
+ path: "/dex.FlowService/GetChannelMessages",
13499
+ requestStream: false,
13500
+ responseStream: false,
13501
+ requestSerialize: (value) => Buffer.from(GetChannelMessagesRequest.encode(value).finish()),
13502
+ requestDeserialize: (value) => GetChannelMessagesRequest.decode(value),
13503
+ responseSerialize: (value) => Buffer.from(GetChannelMessagesResponse.encode(value).finish()),
13504
+ responseDeserialize: (value) => GetChannelMessagesResponse.decode(value),
13505
+ },
13506
+ deleteChannelMessage: {
13507
+ path: "/dex.FlowService/DeleteChannelMessage",
13508
+ requestStream: false,
13509
+ responseStream: false,
13510
+ requestSerialize: (value) => Buffer.from(DeleteChannelMessageRequest.encode(value).finish()),
13511
+ requestDeserialize: (value) => DeleteChannelMessageRequest.decode(value),
13512
+ responseSerialize: (value) => Buffer.from(Empty.encode(value).finish()),
13513
+ responseDeserialize: (value) => Empty.decode(value),
13514
+ },
12825
13515
  writeStream: {
12826
13516
  path: "/dex.FlowService/WriteStream",
12827
13517
  requestStream: false,