@sentio/runtime 2.59.0-rc.3 → 2.59.0-rc.30

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.
@@ -2871,6 +2871,14 @@ var NotificationType;
2871
2871
  NotificationType2[NotificationType2["BILLING_SUBSCRIPTION"] = 303] = "BILLING_SUBSCRIPTION";
2872
2872
  NotificationType2[NotificationType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2873
2873
  })(NotificationType || (NotificationType = {}));
2874
+ var AuthChecker_Permission;
2875
+ (function(AuthChecker_Permission2) {
2876
+ AuthChecker_Permission2[AuthChecker_Permission2["NONE"] = 0] = "NONE";
2877
+ AuthChecker_Permission2[AuthChecker_Permission2["READ"] = 1] = "READ";
2878
+ AuthChecker_Permission2[AuthChecker_Permission2["WRITE"] = 2] = "WRITE";
2879
+ AuthChecker_Permission2[AuthChecker_Permission2["ADMIN"] = 3] = "ADMIN";
2880
+ AuthChecker_Permission2[AuthChecker_Permission2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2881
+ })(AuthChecker_Permission || (AuthChecker_Permission = {}));
2874
2882
  var User_AccountStatus;
2875
2883
  (function(User_AccountStatus2) {
2876
2884
  User_AccountStatus2[User_AccountStatus2["PENDING"] = 0] = "PENDING";
@@ -4314,6 +4322,20 @@ function eventLogConfig_BasicFieldTypeToJSON(object) {
4314
4322
  return "UNRECOGNIZED";
4315
4323
  }
4316
4324
  }
4325
+ var ProcessStreamResponse_Partitions_Partition_SysValue;
4326
+ (function(ProcessStreamResponse_Partitions_Partition_SysValue2) {
4327
+ ProcessStreamResponse_Partitions_Partition_SysValue2[ProcessStreamResponse_Partitions_Partition_SysValue2["BLOCK_NUMBER"] = 0] = "BLOCK_NUMBER";
4328
+ ProcessStreamResponse_Partitions_Partition_SysValue2[ProcessStreamResponse_Partitions_Partition_SysValue2["SEQ_MODE"] = 1] = "SEQ_MODE";
4329
+ ProcessStreamResponse_Partitions_Partition_SysValue2[ProcessStreamResponse_Partitions_Partition_SysValue2["UNIQUE_VALUE"] = 2] = "UNIQUE_VALUE";
4330
+ ProcessStreamResponse_Partitions_Partition_SysValue2[ProcessStreamResponse_Partitions_Partition_SysValue2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
4331
+ })(ProcessStreamResponse_Partitions_Partition_SysValue || (ProcessStreamResponse_Partitions_Partition_SysValue = {}));
4332
+ var EntityUpdateData_Operator;
4333
+ (function(EntityUpdateData_Operator2) {
4334
+ EntityUpdateData_Operator2[EntityUpdateData_Operator2["SET"] = 0] = "SET";
4335
+ EntityUpdateData_Operator2[EntityUpdateData_Operator2["ADD"] = 1] = "ADD";
4336
+ EntityUpdateData_Operator2[EntityUpdateData_Operator2["MULTIPLY"] = 2] = "MULTIPLY";
4337
+ EntityUpdateData_Operator2[EntityUpdateData_Operator2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
4338
+ })(EntityUpdateData_Operator || (EntityUpdateData_Operator = {}));
4317
4339
  var DBRequest_DBOperator;
4318
4340
  (function(DBRequest_DBOperator2) {
4319
4341
  DBRequest_DBOperator2[DBRequest_DBOperator2["EQ"] = 0] = "EQ";
@@ -4330,6 +4352,43 @@ var DBRequest_DBOperator;
4330
4352
  DBRequest_DBOperator2[DBRequest_DBOperator2["HAS_ANY"] = 11] = "HAS_ANY";
4331
4353
  DBRequest_DBOperator2[DBRequest_DBOperator2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
4332
4354
  })(DBRequest_DBOperator || (DBRequest_DBOperator = {}));
4355
+ var TimeseriesResult_TimeseriesType;
4356
+ (function(TimeseriesResult_TimeseriesType2) {
4357
+ TimeseriesResult_TimeseriesType2[TimeseriesResult_TimeseriesType2["EVENT"] = 0] = "EVENT";
4358
+ TimeseriesResult_TimeseriesType2[TimeseriesResult_TimeseriesType2["GAUGE"] = 1] = "GAUGE";
4359
+ TimeseriesResult_TimeseriesType2[TimeseriesResult_TimeseriesType2["COUNTER"] = 2] = "COUNTER";
4360
+ TimeseriesResult_TimeseriesType2[TimeseriesResult_TimeseriesType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
4361
+ })(TimeseriesResult_TimeseriesType || (TimeseriesResult_TimeseriesType = {}));
4362
+ function timeseriesResult_TimeseriesTypeFromJSON(object) {
4363
+ switch (object) {
4364
+ case 0:
4365
+ case "EVENT":
4366
+ return TimeseriesResult_TimeseriesType.EVENT;
4367
+ case 1:
4368
+ case "GAUGE":
4369
+ return TimeseriesResult_TimeseriesType.GAUGE;
4370
+ case 2:
4371
+ case "COUNTER":
4372
+ return TimeseriesResult_TimeseriesType.COUNTER;
4373
+ case -1:
4374
+ case "UNRECOGNIZED":
4375
+ default:
4376
+ return TimeseriesResult_TimeseriesType.UNRECOGNIZED;
4377
+ }
4378
+ }
4379
+ function timeseriesResult_TimeseriesTypeToJSON(object) {
4380
+ switch (object) {
4381
+ case TimeseriesResult_TimeseriesType.EVENT:
4382
+ return "EVENT";
4383
+ case TimeseriesResult_TimeseriesType.GAUGE:
4384
+ return "GAUGE";
4385
+ case TimeseriesResult_TimeseriesType.COUNTER:
4386
+ return "COUNTER";
4387
+ case TimeseriesResult_TimeseriesType.UNRECOGNIZED:
4388
+ default:
4389
+ return "UNRECOGNIZED";
4390
+ }
4391
+ }
4333
4392
  function createBaseProjectConfig() {
4334
4393
  return { name: "", version: "" };
4335
4394
  }
@@ -5940,6 +5999,7 @@ function createBaseAccountConfig() {
5940
5999
  chainId: "",
5941
6000
  address: "",
5942
6001
  startBlock: BigInt("0"),
6002
+ endBlock: BigInt("0"),
5943
6003
  intervalConfigs: [],
5944
6004
  moveIntervalConfigs: [],
5945
6005
  moveCallConfigs: [],
@@ -5961,6 +6021,12 @@ var AccountConfig = {
5961
6021
  }
5962
6022
  writer.uint32(24).uint64(message.startBlock.toString());
5963
6023
  }
6024
+ if (message.endBlock !== BigInt("0")) {
6025
+ if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
6026
+ throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
6027
+ }
6028
+ writer.uint32(80).uint64(message.endBlock.toString());
6029
+ }
5964
6030
  for (const v of message.intervalConfigs) {
5965
6031
  OnIntervalConfig.encode(v, writer.uint32(34).fork()).ldelim();
5966
6032
  }
@@ -6003,6 +6069,12 @@ var AccountConfig = {
6003
6069
  }
6004
6070
  message.startBlock = longToBigint3(reader.uint64());
6005
6071
  continue;
6072
+ case 10:
6073
+ if (tag !== 80) {
6074
+ break;
6075
+ }
6076
+ message.endBlock = longToBigint3(reader.uint64());
6077
+ continue;
6006
6078
  case 4:
6007
6079
  if (tag !== 34) {
6008
6080
  break;
@@ -6046,6 +6118,7 @@ var AccountConfig = {
6046
6118
  chainId: isSet4(object.chainId) ? globalThis.String(object.chainId) : "",
6047
6119
  address: isSet4(object.address) ? globalThis.String(object.address) : "",
6048
6120
  startBlock: isSet4(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
6121
+ endBlock: isSet4(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
6049
6122
  intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs) ? object.intervalConfigs.map((e) => OnIntervalConfig.fromJSON(e)) : [],
6050
6123
  moveIntervalConfigs: globalThis.Array.isArray(object?.moveIntervalConfigs) ? object.moveIntervalConfigs.map((e) => MoveOnIntervalConfig.fromJSON(e)) : [],
6051
6124
  moveCallConfigs: globalThis.Array.isArray(object?.moveCallConfigs) ? object.moveCallConfigs.map((e) => MoveCallHandlerConfig.fromJSON(e)) : [],
@@ -6064,6 +6137,9 @@ var AccountConfig = {
6064
6137
  if (message.startBlock !== BigInt("0")) {
6065
6138
  obj.startBlock = message.startBlock.toString();
6066
6139
  }
6140
+ if (message.endBlock !== BigInt("0")) {
6141
+ obj.endBlock = message.endBlock.toString();
6142
+ }
6067
6143
  if (message.intervalConfigs?.length) {
6068
6144
  obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig.toJSON(e));
6069
6145
  }
@@ -6089,6 +6165,7 @@ var AccountConfig = {
6089
6165
  message.chainId = object.chainId ?? "";
6090
6166
  message.address = object.address ?? "";
6091
6167
  message.startBlock = object.startBlock ?? BigInt("0");
6168
+ message.endBlock = object.endBlock ?? BigInt("0");
6092
6169
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig.fromPartial(e)) || [];
6093
6170
  message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig.fromPartial(e)) || [];
6094
6171
  message.moveCallConfigs = object.moveCallConfigs?.map((e) => MoveCallHandlerConfig.fromPartial(e)) || [];
@@ -8175,13 +8252,16 @@ var MoveCallHandlerConfig = {
8175
8252
  }
8176
8253
  };
8177
8254
  function createBaseMoveResourceChangeConfig() {
8178
- return { type: "", handlerId: 0, handlerName: "" };
8255
+ return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
8179
8256
  }
8180
8257
  var MoveResourceChangeConfig = {
8181
8258
  encode(message, writer = import_minimal5.default.Writer.create()) {
8182
8259
  if (message.type !== "") {
8183
8260
  writer.uint32(10).string(message.type);
8184
8261
  }
8262
+ if (message.includeDeleted !== false) {
8263
+ writer.uint32(32).bool(message.includeDeleted);
8264
+ }
8185
8265
  if (message.handlerId !== 0) {
8186
8266
  writer.uint32(16).int32(message.handlerId);
8187
8267
  }
@@ -8203,6 +8283,12 @@ var MoveResourceChangeConfig = {
8203
8283
  }
8204
8284
  message.type = reader.string();
8205
8285
  continue;
8286
+ case 4:
8287
+ if (tag !== 32) {
8288
+ break;
8289
+ }
8290
+ message.includeDeleted = reader.bool();
8291
+ continue;
8206
8292
  case 2:
8207
8293
  if (tag !== 16) {
8208
8294
  break;
@@ -8226,6 +8312,7 @@ var MoveResourceChangeConfig = {
8226
8312
  fromJSON(object) {
8227
8313
  return {
8228
8314
  type: isSet4(object.type) ? globalThis.String(object.type) : "",
8315
+ includeDeleted: isSet4(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
8229
8316
  handlerId: isSet4(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
8230
8317
  handlerName: isSet4(object.handlerName) ? globalThis.String(object.handlerName) : ""
8231
8318
  };
@@ -8235,6 +8322,9 @@ var MoveResourceChangeConfig = {
8235
8322
  if (message.type !== "") {
8236
8323
  obj.type = message.type;
8237
8324
  }
8325
+ if (message.includeDeleted !== false) {
8326
+ obj.includeDeleted = message.includeDeleted;
8327
+ }
8238
8328
  if (message.handlerId !== 0) {
8239
8329
  obj.handlerId = Math.round(message.handlerId);
8240
8330
  }
@@ -8249,6 +8339,7 @@ var MoveResourceChangeConfig = {
8249
8339
  fromPartial(object) {
8250
8340
  const message = createBaseMoveResourceChangeConfig();
8251
8341
  message.type = object.type ?? "";
8342
+ message.includeDeleted = object.includeDeleted ?? false;
8252
8343
  message.handlerId = object.handlerId ?? 0;
8253
8344
  message.handlerName = object.handlerName ?? "";
8254
8345
  return message;
@@ -9521,7 +9612,7 @@ var StateResult = {
9521
9612
  }
9522
9613
  };
9523
9614
  function createBaseProcessResult() {
9524
- return { gauges: [], counters: [], events: [], exports: [], states: void 0 };
9615
+ return { gauges: [], counters: [], events: [], exports: [], states: void 0, timeseriesResult: [] };
9525
9616
  }
9526
9617
  var ProcessResult = {
9527
9618
  encode(message, writer = import_minimal5.default.Writer.create()) {
@@ -9540,6 +9631,9 @@ var ProcessResult = {
9540
9631
  if (message.states !== void 0) {
9541
9632
  StateResult.encode(message.states, writer.uint32(50).fork()).ldelim();
9542
9633
  }
9634
+ for (const v of message.timeseriesResult) {
9635
+ TimeseriesResult.encode(v, writer.uint32(58).fork()).ldelim();
9636
+ }
9543
9637
  return writer;
9544
9638
  },
9545
9639
  decode(input, length) {
@@ -9579,6 +9673,12 @@ var ProcessResult = {
9579
9673
  }
9580
9674
  message.states = StateResult.decode(reader, reader.uint32());
9581
9675
  continue;
9676
+ case 7:
9677
+ if (tag !== 58) {
9678
+ break;
9679
+ }
9680
+ message.timeseriesResult.push(TimeseriesResult.decode(reader, reader.uint32()));
9681
+ continue;
9582
9682
  }
9583
9683
  if ((tag & 7) === 4 || tag === 0) {
9584
9684
  break;
@@ -9593,7 +9693,8 @@ var ProcessResult = {
9593
9693
  counters: globalThis.Array.isArray(object?.counters) ? object.counters.map((e) => CounterResult.fromJSON(e)) : [],
9594
9694
  events: globalThis.Array.isArray(object?.events) ? object.events.map((e) => EventTrackingResult.fromJSON(e)) : [],
9595
9695
  exports: globalThis.Array.isArray(object?.exports) ? object.exports.map((e) => ExportResult.fromJSON(e)) : [],
9596
- states: isSet4(object.states) ? StateResult.fromJSON(object.states) : void 0
9696
+ states: isSet4(object.states) ? StateResult.fromJSON(object.states) : void 0,
9697
+ timeseriesResult: globalThis.Array.isArray(object?.timeseriesResult) ? object.timeseriesResult.map((e) => TimeseriesResult.fromJSON(e)) : []
9597
9698
  };
9598
9699
  },
9599
9700
  toJSON(message) {
@@ -9613,6 +9714,9 @@ var ProcessResult = {
9613
9714
  if (message.states !== void 0) {
9614
9715
  obj.states = StateResult.toJSON(message.states);
9615
9716
  }
9717
+ if (message.timeseriesResult?.length) {
9718
+ obj.timeseriesResult = message.timeseriesResult.map((e) => TimeseriesResult.toJSON(e));
9719
+ }
9616
9720
  return obj;
9617
9721
  },
9618
9722
  create(base) {
@@ -9625,6 +9729,7 @@ var ProcessResult = {
9625
9729
  message.events = object.events?.map((e) => EventTrackingResult.fromPartial(e)) || [];
9626
9730
  message.exports = object.exports?.map((e) => ExportResult.fromPartial(e)) || [];
9627
9731
  message.states = object.states !== void 0 && object.states !== null ? StateResult.fromPartial(object.states) : void 0;
9732
+ message.timeseriesResult = object.timeseriesResult?.map((e) => TimeseriesResult.fromPartial(e)) || [];
9628
9733
  return message;
9629
9734
  }
9630
9735
  };
@@ -10549,6 +10654,100 @@ var EventTrackingResult = {
10549
10654
  return message;
10550
10655
  }
10551
10656
  };
10657
+ function createBaseTimeseriesResult() {
10658
+ return { metadata: void 0, type: 0, data: void 0, runtimeInfo: void 0 };
10659
+ }
10660
+ var TimeseriesResult = {
10661
+ encode(message, writer = import_minimal5.default.Writer.create()) {
10662
+ if (message.metadata !== void 0) {
10663
+ RecordMetaData.encode(message.metadata, writer.uint32(10).fork()).ldelim();
10664
+ }
10665
+ if (message.type !== 0) {
10666
+ writer.uint32(16).int32(message.type);
10667
+ }
10668
+ if (message.data !== void 0) {
10669
+ RichStruct.encode(message.data, writer.uint32(26).fork()).ldelim();
10670
+ }
10671
+ if (message.runtimeInfo !== void 0) {
10672
+ RuntimeInfo.encode(message.runtimeInfo, writer.uint32(34).fork()).ldelim();
10673
+ }
10674
+ return writer;
10675
+ },
10676
+ decode(input, length) {
10677
+ const reader = input instanceof import_minimal5.default.Reader ? input : import_minimal5.default.Reader.create(input);
10678
+ let end = length === void 0 ? reader.len : reader.pos + length;
10679
+ const message = createBaseTimeseriesResult();
10680
+ while (reader.pos < end) {
10681
+ const tag = reader.uint32();
10682
+ switch (tag >>> 3) {
10683
+ case 1:
10684
+ if (tag !== 10) {
10685
+ break;
10686
+ }
10687
+ message.metadata = RecordMetaData.decode(reader, reader.uint32());
10688
+ continue;
10689
+ case 2:
10690
+ if (tag !== 16) {
10691
+ break;
10692
+ }
10693
+ message.type = reader.int32();
10694
+ continue;
10695
+ case 3:
10696
+ if (tag !== 26) {
10697
+ break;
10698
+ }
10699
+ message.data = RichStruct.decode(reader, reader.uint32());
10700
+ continue;
10701
+ case 4:
10702
+ if (tag !== 34) {
10703
+ break;
10704
+ }
10705
+ message.runtimeInfo = RuntimeInfo.decode(reader, reader.uint32());
10706
+ continue;
10707
+ }
10708
+ if ((tag & 7) === 4 || tag === 0) {
10709
+ break;
10710
+ }
10711
+ reader.skipType(tag & 7);
10712
+ }
10713
+ return message;
10714
+ },
10715
+ fromJSON(object) {
10716
+ return {
10717
+ metadata: isSet4(object.metadata) ? RecordMetaData.fromJSON(object.metadata) : void 0,
10718
+ type: isSet4(object.type) ? timeseriesResult_TimeseriesTypeFromJSON(object.type) : 0,
10719
+ data: isSet4(object.data) ? RichStruct.fromJSON(object.data) : void 0,
10720
+ runtimeInfo: isSet4(object.runtimeInfo) ? RuntimeInfo.fromJSON(object.runtimeInfo) : void 0
10721
+ };
10722
+ },
10723
+ toJSON(message) {
10724
+ const obj = {};
10725
+ if (message.metadata !== void 0) {
10726
+ obj.metadata = RecordMetaData.toJSON(message.metadata);
10727
+ }
10728
+ if (message.type !== 0) {
10729
+ obj.type = timeseriesResult_TimeseriesTypeToJSON(message.type);
10730
+ }
10731
+ if (message.data !== void 0) {
10732
+ obj.data = RichStruct.toJSON(message.data);
10733
+ }
10734
+ if (message.runtimeInfo !== void 0) {
10735
+ obj.runtimeInfo = RuntimeInfo.toJSON(message.runtimeInfo);
10736
+ }
10737
+ return obj;
10738
+ },
10739
+ create(base) {
10740
+ return TimeseriesResult.fromPartial(base ?? {});
10741
+ },
10742
+ fromPartial(object) {
10743
+ const message = createBaseTimeseriesResult();
10744
+ message.metadata = object.metadata !== void 0 && object.metadata !== null ? RecordMetaData.fromPartial(object.metadata) : void 0;
10745
+ message.type = object.type ?? 0;
10746
+ message.data = object.data !== void 0 && object.data !== null ? RichStruct.fromPartial(object.data) : void 0;
10747
+ message.runtimeInfo = object.runtimeInfo !== void 0 && object.runtimeInfo !== null ? RuntimeInfo.fromPartial(object.runtimeInfo) : void 0;
10748
+ return message;
10749
+ }
10750
+ };
10552
10751
  function createBaseExportResult() {
10553
10752
  return { metadata: void 0, payload: "", runtimeInfo: void 0 };
10554
10753
  }
@@ -10664,6 +10863,19 @@ var Plugin = class {
10664
10863
  async preprocessBinding(request, preprocessStore) {
10665
10864
  return PreprocessResult.create();
10666
10865
  }
10866
+ async partition(request) {
10867
+ return {
10868
+ partitions: request.handlerIds.reduce(
10869
+ (acc, id) => ({
10870
+ ...acc,
10871
+ [id]: {
10872
+ sysValue: ProcessStreamResponse_Partitions_Partition_SysValue.UNRECOGNIZED
10873
+ }
10874
+ }),
10875
+ {}
10876
+ )
10877
+ };
10878
+ }
10667
10879
  /**
10668
10880
  * method used by action server only
10669
10881
  * @param port
@@ -10721,6 +10933,13 @@ var PluginManager = class _PluginManager {
10721
10933
  return plugin.processBinding(request, preparedData);
10722
10934
  });
10723
10935
  }
10936
+ async partition(request) {
10937
+ const plugin = this.typesToPlugin.get(request.handlerType);
10938
+ if (!plugin) {
10939
+ throw new Error(`No plugin for ${request.handlerType}`);
10940
+ }
10941
+ return plugin.partition(request);
10942
+ }
10724
10943
  preprocessBinding(request, preprocessStore, dbContext) {
10725
10944
  const plugin = this.typesToPlugin.get(request.handlerType);
10726
10945
  if (!plugin) {
@@ -12524,6 +12743,66 @@ function eventLogConfig_BasicFieldTypeToJSON2(object) {
12524
12743
  return "UNRECOGNIZED";
12525
12744
  }
12526
12745
  }
12746
+ function processStreamResponse_Partitions_Partition_SysValueFromJSON(object) {
12747
+ switch (object) {
12748
+ case 0:
12749
+ case "BLOCK_NUMBER":
12750
+ return 0 /* BLOCK_NUMBER */;
12751
+ case 1:
12752
+ case "SEQ_MODE":
12753
+ return 1 /* SEQ_MODE */;
12754
+ case 2:
12755
+ case "UNIQUE_VALUE":
12756
+ return 2 /* UNIQUE_VALUE */;
12757
+ case -1:
12758
+ case "UNRECOGNIZED":
12759
+ default:
12760
+ return -1 /* UNRECOGNIZED */;
12761
+ }
12762
+ }
12763
+ function processStreamResponse_Partitions_Partition_SysValueToJSON(object) {
12764
+ switch (object) {
12765
+ case 0 /* BLOCK_NUMBER */:
12766
+ return "BLOCK_NUMBER";
12767
+ case 1 /* SEQ_MODE */:
12768
+ return "SEQ_MODE";
12769
+ case 2 /* UNIQUE_VALUE */:
12770
+ return "UNIQUE_VALUE";
12771
+ case -1 /* UNRECOGNIZED */:
12772
+ default:
12773
+ return "UNRECOGNIZED";
12774
+ }
12775
+ }
12776
+ function entityUpdateData_OperatorFromJSON(object) {
12777
+ switch (object) {
12778
+ case 0:
12779
+ case "SET":
12780
+ return 0 /* SET */;
12781
+ case 1:
12782
+ case "ADD":
12783
+ return 1 /* ADD */;
12784
+ case 2:
12785
+ case "MULTIPLY":
12786
+ return 2 /* MULTIPLY */;
12787
+ case -1:
12788
+ case "UNRECOGNIZED":
12789
+ default:
12790
+ return -1 /* UNRECOGNIZED */;
12791
+ }
12792
+ }
12793
+ function entityUpdateData_OperatorToJSON(object) {
12794
+ switch (object) {
12795
+ case 0 /* SET */:
12796
+ return "SET";
12797
+ case 1 /* ADD */:
12798
+ return "ADD";
12799
+ case 2 /* MULTIPLY */:
12800
+ return "MULTIPLY";
12801
+ case -1 /* UNRECOGNIZED */:
12802
+ default:
12803
+ return "UNRECOGNIZED";
12804
+ }
12805
+ }
12527
12806
  function dBRequest_DBOperatorFromJSON(object) {
12528
12807
  switch (object) {
12529
12808
  case 0:
@@ -12599,6 +12878,36 @@ function dBRequest_DBOperatorToJSON(object) {
12599
12878
  return "UNRECOGNIZED";
12600
12879
  }
12601
12880
  }
12881
+ function timeseriesResult_TimeseriesTypeFromJSON2(object) {
12882
+ switch (object) {
12883
+ case 0:
12884
+ case "EVENT":
12885
+ return 0 /* EVENT */;
12886
+ case 1:
12887
+ case "GAUGE":
12888
+ return 1 /* GAUGE */;
12889
+ case 2:
12890
+ case "COUNTER":
12891
+ return 2 /* COUNTER */;
12892
+ case -1:
12893
+ case "UNRECOGNIZED":
12894
+ default:
12895
+ return -1 /* UNRECOGNIZED */;
12896
+ }
12897
+ }
12898
+ function timeseriesResult_TimeseriesTypeToJSON2(object) {
12899
+ switch (object) {
12900
+ case 0 /* EVENT */:
12901
+ return "EVENT";
12902
+ case 1 /* GAUGE */:
12903
+ return "GAUGE";
12904
+ case 2 /* COUNTER */:
12905
+ return "COUNTER";
12906
+ case -1 /* UNRECOGNIZED */:
12907
+ default:
12908
+ return "UNRECOGNIZED";
12909
+ }
12910
+ }
12602
12911
  function createBaseProjectConfig2() {
12603
12912
  return { name: "", version: "" };
12604
12913
  }
@@ -14276,6 +14585,7 @@ function createBaseAccountConfig2() {
14276
14585
  chainId: "",
14277
14586
  address: "",
14278
14587
  startBlock: BigInt("0"),
14588
+ endBlock: BigInt("0"),
14279
14589
  intervalConfigs: [],
14280
14590
  aptosIntervalConfigs: [],
14281
14591
  moveIntervalConfigs: [],
@@ -14298,6 +14608,12 @@ var AccountConfig2 = {
14298
14608
  }
14299
14609
  writer.uint32(24).uint64(message.startBlock.toString());
14300
14610
  }
14611
+ if (message.endBlock !== BigInt("0")) {
14612
+ if (BigInt.asUintN(64, message.endBlock) !== message.endBlock) {
14613
+ throw new globalThis.Error("value provided for field message.endBlock of type uint64 too large");
14614
+ }
14615
+ writer.uint32(80).uint64(message.endBlock.toString());
14616
+ }
14301
14617
  for (const v of message.intervalConfigs) {
14302
14618
  OnIntervalConfig2.encode(v, writer.uint32(34).fork()).ldelim();
14303
14619
  }
@@ -14343,6 +14659,12 @@ var AccountConfig2 = {
14343
14659
  }
14344
14660
  message.startBlock = longToBigint6(reader.uint64());
14345
14661
  continue;
14662
+ case 10:
14663
+ if (tag !== 80) {
14664
+ break;
14665
+ }
14666
+ message.endBlock = longToBigint6(reader.uint64());
14667
+ continue;
14346
14668
  case 4:
14347
14669
  if (tag !== 34) {
14348
14670
  break;
@@ -14392,6 +14714,7 @@ var AccountConfig2 = {
14392
14714
  chainId: isSet8(object.chainId) ? globalThis.String(object.chainId) : "",
14393
14715
  address: isSet8(object.address) ? globalThis.String(object.address) : "",
14394
14716
  startBlock: isSet8(object.startBlock) ? BigInt(object.startBlock) : BigInt("0"),
14717
+ endBlock: isSet8(object.endBlock) ? BigInt(object.endBlock) : BigInt("0"),
14395
14718
  intervalConfigs: globalThis.Array.isArray(object?.intervalConfigs) ? object.intervalConfigs.map((e) => OnIntervalConfig2.fromJSON(e)) : [],
14396
14719
  aptosIntervalConfigs: globalThis.Array.isArray(object?.aptosIntervalConfigs) ? object.aptosIntervalConfigs.map((e) => AptosOnIntervalConfig.fromJSON(e)) : [],
14397
14720
  moveIntervalConfigs: globalThis.Array.isArray(object?.moveIntervalConfigs) ? object.moveIntervalConfigs.map((e) => MoveOnIntervalConfig2.fromJSON(e)) : [],
@@ -14411,6 +14734,9 @@ var AccountConfig2 = {
14411
14734
  if (message.startBlock !== BigInt("0")) {
14412
14735
  obj.startBlock = message.startBlock.toString();
14413
14736
  }
14737
+ if (message.endBlock !== BigInt("0")) {
14738
+ obj.endBlock = message.endBlock.toString();
14739
+ }
14414
14740
  if (message.intervalConfigs?.length) {
14415
14741
  obj.intervalConfigs = message.intervalConfigs.map((e) => OnIntervalConfig2.toJSON(e));
14416
14742
  }
@@ -14439,6 +14765,7 @@ var AccountConfig2 = {
14439
14765
  message.chainId = object.chainId ?? "";
14440
14766
  message.address = object.address ?? "";
14441
14767
  message.startBlock = object.startBlock ?? BigInt("0");
14768
+ message.endBlock = object.endBlock ?? BigInt("0");
14442
14769
  message.intervalConfigs = object.intervalConfigs?.map((e) => OnIntervalConfig2.fromPartial(e)) || [];
14443
14770
  message.aptosIntervalConfigs = object.aptosIntervalConfigs?.map((e) => AptosOnIntervalConfig.fromPartial(e)) || [];
14444
14771
  message.moveIntervalConfigs = object.moveIntervalConfigs?.map((e) => MoveOnIntervalConfig2.fromPartial(e)) || [];
@@ -16672,13 +16999,16 @@ var MoveCallHandlerConfig2 = {
16672
16999
  }
16673
17000
  };
16674
17001
  function createBaseMoveResourceChangeConfig2() {
16675
- return { type: "", handlerId: 0, handlerName: "" };
17002
+ return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
16676
17003
  }
16677
17004
  var MoveResourceChangeConfig2 = {
16678
17005
  encode(message, writer = import_minimal10.default.Writer.create()) {
16679
17006
  if (message.type !== "") {
16680
17007
  writer.uint32(10).string(message.type);
16681
17008
  }
17009
+ if (message.includeDeleted !== false) {
17010
+ writer.uint32(32).bool(message.includeDeleted);
17011
+ }
16682
17012
  if (message.handlerId !== 0) {
16683
17013
  writer.uint32(16).int32(message.handlerId);
16684
17014
  }
@@ -16700,6 +17030,12 @@ var MoveResourceChangeConfig2 = {
16700
17030
  }
16701
17031
  message.type = reader.string();
16702
17032
  continue;
17033
+ case 4:
17034
+ if (tag !== 32) {
17035
+ break;
17036
+ }
17037
+ message.includeDeleted = reader.bool();
17038
+ continue;
16703
17039
  case 2:
16704
17040
  if (tag !== 16) {
16705
17041
  break;
@@ -16723,6 +17059,7 @@ var MoveResourceChangeConfig2 = {
16723
17059
  fromJSON(object) {
16724
17060
  return {
16725
17061
  type: isSet8(object.type) ? globalThis.String(object.type) : "",
17062
+ includeDeleted: isSet8(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
16726
17063
  handlerId: isSet8(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
16727
17064
  handlerName: isSet8(object.handlerName) ? globalThis.String(object.handlerName) : ""
16728
17065
  };
@@ -16732,6 +17069,9 @@ var MoveResourceChangeConfig2 = {
16732
17069
  if (message.type !== "") {
16733
17070
  obj.type = message.type;
16734
17071
  }
17072
+ if (message.includeDeleted !== false) {
17073
+ obj.includeDeleted = message.includeDeleted;
17074
+ }
16735
17075
  if (message.handlerId !== 0) {
16736
17076
  obj.handlerId = Math.round(message.handlerId);
16737
17077
  }
@@ -16746,6 +17086,7 @@ var MoveResourceChangeConfig2 = {
16746
17086
  fromPartial(object) {
16747
17087
  const message = createBaseMoveResourceChangeConfig2();
16748
17088
  message.type = object.type ?? "";
17089
+ message.includeDeleted = object.includeDeleted ?? false;
16749
17090
  message.handlerId = object.handlerId ?? 0;
16750
17091
  message.handlerName = object.handlerName ?? "";
16751
17092
  return message;
@@ -18219,7 +18560,7 @@ var ProcessBindingResponse = {
18219
18560
  }
18220
18561
  };
18221
18562
  function createBaseProcessStreamRequest() {
18222
- return { processId: 0, binding: void 0, dbResult: void 0 };
18563
+ return { processId: 0, binding: void 0, dbResult: void 0, start: void 0 };
18223
18564
  }
18224
18565
  var ProcessStreamRequest = {
18225
18566
  encode(message, writer = import_minimal10.default.Writer.create()) {
@@ -18232,6 +18573,9 @@ var ProcessStreamRequest = {
18232
18573
  if (message.dbResult !== void 0) {
18233
18574
  DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
18234
18575
  }
18576
+ if (message.start !== void 0) {
18577
+ writer.uint32(32).bool(message.start);
18578
+ }
18235
18579
  return writer;
18236
18580
  },
18237
18581
  decode(input, length) {
@@ -18259,6 +18603,12 @@ var ProcessStreamRequest = {
18259
18603
  }
18260
18604
  message.dbResult = DBResponse.decode(reader, reader.uint32());
18261
18605
  continue;
18606
+ case 4:
18607
+ if (tag !== 32) {
18608
+ break;
18609
+ }
18610
+ message.start = reader.bool();
18611
+ continue;
18262
18612
  }
18263
18613
  if ((tag & 7) === 4 || tag === 0) {
18264
18614
  break;
@@ -18271,7 +18621,8 @@ var ProcessStreamRequest = {
18271
18621
  return {
18272
18622
  processId: isSet8(object.processId) ? globalThis.Number(object.processId) : 0,
18273
18623
  binding: isSet8(object.binding) ? DataBinding2.fromJSON(object.binding) : void 0,
18274
- dbResult: isSet8(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : void 0
18624
+ dbResult: isSet8(object.dbResult) ? DBResponse.fromJSON(object.dbResult) : void 0,
18625
+ start: isSet8(object.start) ? globalThis.Boolean(object.start) : void 0
18275
18626
  };
18276
18627
  },
18277
18628
  toJSON(message) {
@@ -18285,6 +18636,9 @@ var ProcessStreamRequest = {
18285
18636
  if (message.dbResult !== void 0) {
18286
18637
  obj.dbResult = DBResponse.toJSON(message.dbResult);
18287
18638
  }
18639
+ if (message.start !== void 0) {
18640
+ obj.start = message.start;
18641
+ }
18288
18642
  return obj;
18289
18643
  },
18290
18644
  create(base) {
@@ -18295,11 +18649,12 @@ var ProcessStreamRequest = {
18295
18649
  message.processId = object.processId ?? 0;
18296
18650
  message.binding = object.binding !== void 0 && object.binding !== null ? DataBinding2.fromPartial(object.binding) : void 0;
18297
18651
  message.dbResult = object.dbResult !== void 0 && object.dbResult !== null ? DBResponse.fromPartial(object.dbResult) : void 0;
18652
+ message.start = object.start ?? void 0;
18298
18653
  return message;
18299
18654
  }
18300
18655
  };
18301
18656
  function createBaseProcessStreamResponse() {
18302
- return { processId: 0, dbRequest: void 0, result: void 0 };
18657
+ return { processId: 0, dbRequest: void 0, result: void 0, partitions: void 0 };
18303
18658
  }
18304
18659
  var ProcessStreamResponse = {
18305
18660
  encode(message, writer = import_minimal10.default.Writer.create()) {
@@ -18312,6 +18667,9 @@ var ProcessStreamResponse = {
18312
18667
  if (message.result !== void 0) {
18313
18668
  ProcessResult2.encode(message.result, writer.uint32(26).fork()).ldelim();
18314
18669
  }
18670
+ if (message.partitions !== void 0) {
18671
+ ProcessStreamResponse_Partitions2.encode(message.partitions, writer.uint32(34).fork()).ldelim();
18672
+ }
18315
18673
  return writer;
18316
18674
  },
18317
18675
  decode(input, length) {
@@ -18339,6 +18697,12 @@ var ProcessStreamResponse = {
18339
18697
  }
18340
18698
  message.result = ProcessResult2.decode(reader, reader.uint32());
18341
18699
  continue;
18700
+ case 4:
18701
+ if (tag !== 34) {
18702
+ break;
18703
+ }
18704
+ message.partitions = ProcessStreamResponse_Partitions2.decode(reader, reader.uint32());
18705
+ continue;
18342
18706
  }
18343
18707
  if ((tag & 7) === 4 || tag === 0) {
18344
18708
  break;
@@ -18351,7 +18715,8 @@ var ProcessStreamResponse = {
18351
18715
  return {
18352
18716
  processId: isSet8(object.processId) ? globalThis.Number(object.processId) : 0,
18353
18717
  dbRequest: isSet8(object.dbRequest) ? DBRequest.fromJSON(object.dbRequest) : void 0,
18354
- result: isSet8(object.result) ? ProcessResult2.fromJSON(object.result) : void 0
18718
+ result: isSet8(object.result) ? ProcessResult2.fromJSON(object.result) : void 0,
18719
+ partitions: isSet8(object.partitions) ? ProcessStreamResponse_Partitions2.fromJSON(object.partitions) : void 0
18355
18720
  };
18356
18721
  },
18357
18722
  toJSON(message) {
@@ -18365,6 +18730,9 @@ var ProcessStreamResponse = {
18365
18730
  if (message.result !== void 0) {
18366
18731
  obj.result = ProcessResult2.toJSON(message.result);
18367
18732
  }
18733
+ if (message.partitions !== void 0) {
18734
+ obj.partitions = ProcessStreamResponse_Partitions2.toJSON(message.partitions);
18735
+ }
18368
18736
  return obj;
18369
18737
  },
18370
18738
  create(base) {
@@ -18375,46 +18743,251 @@ var ProcessStreamResponse = {
18375
18743
  message.processId = object.processId ?? 0;
18376
18744
  message.dbRequest = object.dbRequest !== void 0 && object.dbRequest !== null ? DBRequest.fromPartial(object.dbRequest) : void 0;
18377
18745
  message.result = object.result !== void 0 && object.result !== null ? ProcessResult2.fromPartial(object.result) : void 0;
18746
+ message.partitions = object.partitions !== void 0 && object.partitions !== null ? ProcessStreamResponse_Partitions2.fromPartial(object.partitions) : void 0;
18378
18747
  return message;
18379
18748
  }
18380
18749
  };
18381
- function createBasePreprocessStreamRequest() {
18382
- return { processId: 0, bindings: void 0, dbResult: void 0 };
18750
+ function createBaseProcessStreamResponse_Partitions() {
18751
+ return { partitions: {} };
18383
18752
  }
18384
- var PreprocessStreamRequest = {
18753
+ var ProcessStreamResponse_Partitions2 = {
18385
18754
  encode(message, writer = import_minimal10.default.Writer.create()) {
18386
- if (message.processId !== 0) {
18387
- writer.uint32(8).int32(message.processId);
18388
- }
18389
- if (message.bindings !== void 0) {
18390
- PreprocessStreamRequest_DataBindings.encode(message.bindings, writer.uint32(18).fork()).ldelim();
18391
- }
18392
- if (message.dbResult !== void 0) {
18393
- DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
18394
- }
18755
+ Object.entries(message.partitions).forEach(([key, value]) => {
18756
+ ProcessStreamResponse_Partitions_PartitionsEntry.encode({ key, value }, writer.uint32(10).fork()).ldelim();
18757
+ });
18395
18758
  return writer;
18396
18759
  },
18397
18760
  decode(input, length) {
18398
18761
  const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
18399
18762
  let end = length === void 0 ? reader.len : reader.pos + length;
18400
- const message = createBasePreprocessStreamRequest();
18763
+ const message = createBaseProcessStreamResponse_Partitions();
18401
18764
  while (reader.pos < end) {
18402
18765
  const tag = reader.uint32();
18403
18766
  switch (tag >>> 3) {
18404
18767
  case 1:
18405
- if (tag !== 8) {
18768
+ if (tag !== 10) {
18406
18769
  break;
18407
18770
  }
18408
- message.processId = reader.int32();
18409
- continue;
18410
- case 2:
18411
- if (tag !== 18) {
18412
- break;
18771
+ const entry1 = ProcessStreamResponse_Partitions_PartitionsEntry.decode(reader, reader.uint32());
18772
+ if (entry1.value !== void 0) {
18773
+ message.partitions[entry1.key] = entry1.value;
18413
18774
  }
18414
- message.bindings = PreprocessStreamRequest_DataBindings.decode(reader, reader.uint32());
18415
18775
  continue;
18416
- case 3:
18417
- if (tag !== 26) {
18776
+ }
18777
+ if ((tag & 7) === 4 || tag === 0) {
18778
+ break;
18779
+ }
18780
+ reader.skipType(tag & 7);
18781
+ }
18782
+ return message;
18783
+ },
18784
+ fromJSON(object) {
18785
+ return {
18786
+ partitions: isObject6(object.partitions) ? Object.entries(object.partitions).reduce(
18787
+ (acc, [key, value]) => {
18788
+ acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromJSON(value);
18789
+ return acc;
18790
+ },
18791
+ {}
18792
+ ) : {}
18793
+ };
18794
+ },
18795
+ toJSON(message) {
18796
+ const obj = {};
18797
+ if (message.partitions) {
18798
+ const entries = Object.entries(message.partitions);
18799
+ if (entries.length > 0) {
18800
+ obj.partitions = {};
18801
+ entries.forEach(([k, v]) => {
18802
+ obj.partitions[k] = ProcessStreamResponse_Partitions_Partition.toJSON(v);
18803
+ });
18804
+ }
18805
+ }
18806
+ return obj;
18807
+ },
18808
+ create(base) {
18809
+ return ProcessStreamResponse_Partitions2.fromPartial(base ?? {});
18810
+ },
18811
+ fromPartial(object) {
18812
+ const message = createBaseProcessStreamResponse_Partitions();
18813
+ message.partitions = Object.entries(object.partitions ?? {}).reduce((acc, [key, value]) => {
18814
+ if (value !== void 0) {
18815
+ acc[globalThis.Number(key)] = ProcessStreamResponse_Partitions_Partition.fromPartial(value);
18816
+ }
18817
+ return acc;
18818
+ }, {});
18819
+ return message;
18820
+ }
18821
+ };
18822
+ function createBaseProcessStreamResponse_Partitions_Partition() {
18823
+ return { userValue: void 0, sysValue: void 0 };
18824
+ }
18825
+ var ProcessStreamResponse_Partitions_Partition = {
18826
+ encode(message, writer = import_minimal10.default.Writer.create()) {
18827
+ if (message.userValue !== void 0) {
18828
+ writer.uint32(10).string(message.userValue);
18829
+ }
18830
+ if (message.sysValue !== void 0) {
18831
+ writer.uint32(16).int32(message.sysValue);
18832
+ }
18833
+ return writer;
18834
+ },
18835
+ decode(input, length) {
18836
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
18837
+ let end = length === void 0 ? reader.len : reader.pos + length;
18838
+ const message = createBaseProcessStreamResponse_Partitions_Partition();
18839
+ while (reader.pos < end) {
18840
+ const tag = reader.uint32();
18841
+ switch (tag >>> 3) {
18842
+ case 1:
18843
+ if (tag !== 10) {
18844
+ break;
18845
+ }
18846
+ message.userValue = reader.string();
18847
+ continue;
18848
+ case 2:
18849
+ if (tag !== 16) {
18850
+ break;
18851
+ }
18852
+ message.sysValue = reader.int32();
18853
+ continue;
18854
+ }
18855
+ if ((tag & 7) === 4 || tag === 0) {
18856
+ break;
18857
+ }
18858
+ reader.skipType(tag & 7);
18859
+ }
18860
+ return message;
18861
+ },
18862
+ fromJSON(object) {
18863
+ return {
18864
+ userValue: isSet8(object.userValue) ? globalThis.String(object.userValue) : void 0,
18865
+ sysValue: isSet8(object.sysValue) ? processStreamResponse_Partitions_Partition_SysValueFromJSON(object.sysValue) : void 0
18866
+ };
18867
+ },
18868
+ toJSON(message) {
18869
+ const obj = {};
18870
+ if (message.userValue !== void 0) {
18871
+ obj.userValue = message.userValue;
18872
+ }
18873
+ if (message.sysValue !== void 0) {
18874
+ obj.sysValue = processStreamResponse_Partitions_Partition_SysValueToJSON(message.sysValue);
18875
+ }
18876
+ return obj;
18877
+ },
18878
+ create(base) {
18879
+ return ProcessStreamResponse_Partitions_Partition.fromPartial(base ?? {});
18880
+ },
18881
+ fromPartial(object) {
18882
+ const message = createBaseProcessStreamResponse_Partitions_Partition();
18883
+ message.userValue = object.userValue ?? void 0;
18884
+ message.sysValue = object.sysValue ?? void 0;
18885
+ return message;
18886
+ }
18887
+ };
18888
+ function createBaseProcessStreamResponse_Partitions_PartitionsEntry() {
18889
+ return { key: 0, value: void 0 };
18890
+ }
18891
+ var ProcessStreamResponse_Partitions_PartitionsEntry = {
18892
+ encode(message, writer = import_minimal10.default.Writer.create()) {
18893
+ if (message.key !== 0) {
18894
+ writer.uint32(8).int32(message.key);
18895
+ }
18896
+ if (message.value !== void 0) {
18897
+ ProcessStreamResponse_Partitions_Partition.encode(message.value, writer.uint32(18).fork()).ldelim();
18898
+ }
18899
+ return writer;
18900
+ },
18901
+ decode(input, length) {
18902
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
18903
+ let end = length === void 0 ? reader.len : reader.pos + length;
18904
+ const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
18905
+ while (reader.pos < end) {
18906
+ const tag = reader.uint32();
18907
+ switch (tag >>> 3) {
18908
+ case 1:
18909
+ if (tag !== 8) {
18910
+ break;
18911
+ }
18912
+ message.key = reader.int32();
18913
+ continue;
18914
+ case 2:
18915
+ if (tag !== 18) {
18916
+ break;
18917
+ }
18918
+ message.value = ProcessStreamResponse_Partitions_Partition.decode(reader, reader.uint32());
18919
+ continue;
18920
+ }
18921
+ if ((tag & 7) === 4 || tag === 0) {
18922
+ break;
18923
+ }
18924
+ reader.skipType(tag & 7);
18925
+ }
18926
+ return message;
18927
+ },
18928
+ fromJSON(object) {
18929
+ return {
18930
+ key: isSet8(object.key) ? globalThis.Number(object.key) : 0,
18931
+ value: isSet8(object.value) ? ProcessStreamResponse_Partitions_Partition.fromJSON(object.value) : void 0
18932
+ };
18933
+ },
18934
+ toJSON(message) {
18935
+ const obj = {};
18936
+ if (message.key !== 0) {
18937
+ obj.key = Math.round(message.key);
18938
+ }
18939
+ if (message.value !== void 0) {
18940
+ obj.value = ProcessStreamResponse_Partitions_Partition.toJSON(message.value);
18941
+ }
18942
+ return obj;
18943
+ },
18944
+ create(base) {
18945
+ return ProcessStreamResponse_Partitions_PartitionsEntry.fromPartial(base ?? {});
18946
+ },
18947
+ fromPartial(object) {
18948
+ const message = createBaseProcessStreamResponse_Partitions_PartitionsEntry();
18949
+ message.key = object.key ?? 0;
18950
+ message.value = object.value !== void 0 && object.value !== null ? ProcessStreamResponse_Partitions_Partition.fromPartial(object.value) : void 0;
18951
+ return message;
18952
+ }
18953
+ };
18954
+ function createBasePreprocessStreamRequest() {
18955
+ return { processId: 0, bindings: void 0, dbResult: void 0 };
18956
+ }
18957
+ var PreprocessStreamRequest = {
18958
+ encode(message, writer = import_minimal10.default.Writer.create()) {
18959
+ if (message.processId !== 0) {
18960
+ writer.uint32(8).int32(message.processId);
18961
+ }
18962
+ if (message.bindings !== void 0) {
18963
+ PreprocessStreamRequest_DataBindings.encode(message.bindings, writer.uint32(18).fork()).ldelim();
18964
+ }
18965
+ if (message.dbResult !== void 0) {
18966
+ DBResponse.encode(message.dbResult, writer.uint32(26).fork()).ldelim();
18967
+ }
18968
+ return writer;
18969
+ },
18970
+ decode(input, length) {
18971
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
18972
+ let end = length === void 0 ? reader.len : reader.pos + length;
18973
+ const message = createBasePreprocessStreamRequest();
18974
+ while (reader.pos < end) {
18975
+ const tag = reader.uint32();
18976
+ switch (tag >>> 3) {
18977
+ case 1:
18978
+ if (tag !== 8) {
18979
+ break;
18980
+ }
18981
+ message.processId = reader.int32();
18982
+ continue;
18983
+ case 2:
18984
+ if (tag !== 18) {
18985
+ break;
18986
+ }
18987
+ message.bindings = PreprocessStreamRequest_DataBindings.decode(reader, reader.uint32());
18988
+ continue;
18989
+ case 3:
18990
+ if (tag !== 26) {
18418
18991
  break;
18419
18992
  }
18420
18993
  message.dbResult = DBResponse.decode(reader, reader.uint32());
@@ -18886,8 +19459,219 @@ var EntityList = {
18886
19459
  return message;
18887
19460
  }
18888
19461
  };
19462
+ function createBaseEntityUpdateData() {
19463
+ return { fields: {} };
19464
+ }
19465
+ var EntityUpdateData = {
19466
+ encode(message, writer = import_minimal10.default.Writer.create()) {
19467
+ Object.entries(message.fields).forEach(([key, value]) => {
19468
+ EntityUpdateData_FieldsEntry.encode({ key, value }, writer.uint32(10).fork()).ldelim();
19469
+ });
19470
+ return writer;
19471
+ },
19472
+ decode(input, length) {
19473
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
19474
+ let end = length === void 0 ? reader.len : reader.pos + length;
19475
+ const message = createBaseEntityUpdateData();
19476
+ while (reader.pos < end) {
19477
+ const tag = reader.uint32();
19478
+ switch (tag >>> 3) {
19479
+ case 1:
19480
+ if (tag !== 10) {
19481
+ break;
19482
+ }
19483
+ const entry1 = EntityUpdateData_FieldsEntry.decode(reader, reader.uint32());
19484
+ if (entry1.value !== void 0) {
19485
+ message.fields[entry1.key] = entry1.value;
19486
+ }
19487
+ continue;
19488
+ }
19489
+ if ((tag & 7) === 4 || tag === 0) {
19490
+ break;
19491
+ }
19492
+ reader.skipType(tag & 7);
19493
+ }
19494
+ return message;
19495
+ },
19496
+ fromJSON(object) {
19497
+ return {
19498
+ fields: isObject6(object.fields) ? Object.entries(object.fields).reduce((acc, [key, value]) => {
19499
+ acc[key] = EntityUpdateData_FieldValue.fromJSON(value);
19500
+ return acc;
19501
+ }, {}) : {}
19502
+ };
19503
+ },
19504
+ toJSON(message) {
19505
+ const obj = {};
19506
+ if (message.fields) {
19507
+ const entries = Object.entries(message.fields);
19508
+ if (entries.length > 0) {
19509
+ obj.fields = {};
19510
+ entries.forEach(([k, v]) => {
19511
+ obj.fields[k] = EntityUpdateData_FieldValue.toJSON(v);
19512
+ });
19513
+ }
19514
+ }
19515
+ return obj;
19516
+ },
19517
+ create(base) {
19518
+ return EntityUpdateData.fromPartial(base ?? {});
19519
+ },
19520
+ fromPartial(object) {
19521
+ const message = createBaseEntityUpdateData();
19522
+ message.fields = Object.entries(object.fields ?? {}).reduce(
19523
+ (acc, [key, value]) => {
19524
+ if (value !== void 0) {
19525
+ acc[key] = EntityUpdateData_FieldValue.fromPartial(value);
19526
+ }
19527
+ return acc;
19528
+ },
19529
+ {}
19530
+ );
19531
+ return message;
19532
+ }
19533
+ };
19534
+ function createBaseEntityUpdateData_FieldValue() {
19535
+ return { value: void 0, op: 0 };
19536
+ }
19537
+ var EntityUpdateData_FieldValue = {
19538
+ encode(message, writer = import_minimal10.default.Writer.create()) {
19539
+ if (message.value !== void 0) {
19540
+ RichValue2.encode(message.value, writer.uint32(10).fork()).ldelim();
19541
+ }
19542
+ if (message.op !== 0) {
19543
+ writer.uint32(16).int32(message.op);
19544
+ }
19545
+ return writer;
19546
+ },
19547
+ decode(input, length) {
19548
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
19549
+ let end = length === void 0 ? reader.len : reader.pos + length;
19550
+ const message = createBaseEntityUpdateData_FieldValue();
19551
+ while (reader.pos < end) {
19552
+ const tag = reader.uint32();
19553
+ switch (tag >>> 3) {
19554
+ case 1:
19555
+ if (tag !== 10) {
19556
+ break;
19557
+ }
19558
+ message.value = RichValue2.decode(reader, reader.uint32());
19559
+ continue;
19560
+ case 2:
19561
+ if (tag !== 16) {
19562
+ break;
19563
+ }
19564
+ message.op = reader.int32();
19565
+ continue;
19566
+ }
19567
+ if ((tag & 7) === 4 || tag === 0) {
19568
+ break;
19569
+ }
19570
+ reader.skipType(tag & 7);
19571
+ }
19572
+ return message;
19573
+ },
19574
+ fromJSON(object) {
19575
+ return {
19576
+ value: isSet8(object.value) ? RichValue2.fromJSON(object.value) : void 0,
19577
+ op: isSet8(object.op) ? entityUpdateData_OperatorFromJSON(object.op) : 0
19578
+ };
19579
+ },
19580
+ toJSON(message) {
19581
+ const obj = {};
19582
+ if (message.value !== void 0) {
19583
+ obj.value = RichValue2.toJSON(message.value);
19584
+ }
19585
+ if (message.op !== 0) {
19586
+ obj.op = entityUpdateData_OperatorToJSON(message.op);
19587
+ }
19588
+ return obj;
19589
+ },
19590
+ create(base) {
19591
+ return EntityUpdateData_FieldValue.fromPartial(base ?? {});
19592
+ },
19593
+ fromPartial(object) {
19594
+ const message = createBaseEntityUpdateData_FieldValue();
19595
+ message.value = object.value !== void 0 && object.value !== null ? RichValue2.fromPartial(object.value) : void 0;
19596
+ message.op = object.op ?? 0;
19597
+ return message;
19598
+ }
19599
+ };
19600
+ function createBaseEntityUpdateData_FieldsEntry() {
19601
+ return { key: "", value: void 0 };
19602
+ }
19603
+ var EntityUpdateData_FieldsEntry = {
19604
+ encode(message, writer = import_minimal10.default.Writer.create()) {
19605
+ if (message.key !== "") {
19606
+ writer.uint32(10).string(message.key);
19607
+ }
19608
+ if (message.value !== void 0) {
19609
+ EntityUpdateData_FieldValue.encode(message.value, writer.uint32(18).fork()).ldelim();
19610
+ }
19611
+ return writer;
19612
+ },
19613
+ decode(input, length) {
19614
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
19615
+ let end = length === void 0 ? reader.len : reader.pos + length;
19616
+ const message = createBaseEntityUpdateData_FieldsEntry();
19617
+ while (reader.pos < end) {
19618
+ const tag = reader.uint32();
19619
+ switch (tag >>> 3) {
19620
+ case 1:
19621
+ if (tag !== 10) {
19622
+ break;
19623
+ }
19624
+ message.key = reader.string();
19625
+ continue;
19626
+ case 2:
19627
+ if (tag !== 18) {
19628
+ break;
19629
+ }
19630
+ message.value = EntityUpdateData_FieldValue.decode(reader, reader.uint32());
19631
+ continue;
19632
+ }
19633
+ if ((tag & 7) === 4 || tag === 0) {
19634
+ break;
19635
+ }
19636
+ reader.skipType(tag & 7);
19637
+ }
19638
+ return message;
19639
+ },
19640
+ fromJSON(object) {
19641
+ return {
19642
+ key: isSet8(object.key) ? globalThis.String(object.key) : "",
19643
+ value: isSet8(object.value) ? EntityUpdateData_FieldValue.fromJSON(object.value) : void 0
19644
+ };
19645
+ },
19646
+ toJSON(message) {
19647
+ const obj = {};
19648
+ if (message.key !== "") {
19649
+ obj.key = message.key;
19650
+ }
19651
+ if (message.value !== void 0) {
19652
+ obj.value = EntityUpdateData_FieldValue.toJSON(message.value);
19653
+ }
19654
+ return obj;
19655
+ },
19656
+ create(base) {
19657
+ return EntityUpdateData_FieldsEntry.fromPartial(base ?? {});
19658
+ },
19659
+ fromPartial(object) {
19660
+ const message = createBaseEntityUpdateData_FieldsEntry();
19661
+ message.key = object.key ?? "";
19662
+ message.value = object.value !== void 0 && object.value !== null ? EntityUpdateData_FieldValue.fromPartial(object.value) : void 0;
19663
+ return message;
19664
+ }
19665
+ };
18889
19666
  function createBaseDBRequest() {
18890
- return { opId: BigInt("0"), get: void 0, upsert: void 0, delete: void 0, list: void 0 };
19667
+ return {
19668
+ opId: BigInt("0"),
19669
+ get: void 0,
19670
+ upsert: void 0,
19671
+ update: void 0,
19672
+ delete: void 0,
19673
+ list: void 0
19674
+ };
18891
19675
  }
18892
19676
  var DBRequest = {
18893
19677
  encode(message, writer = import_minimal10.default.Writer.create()) {
@@ -18903,6 +19687,9 @@ var DBRequest = {
18903
19687
  if (message.upsert !== void 0) {
18904
19688
  DBRequest_DBUpsert.encode(message.upsert, writer.uint32(26).fork()).ldelim();
18905
19689
  }
19690
+ if (message.update !== void 0) {
19691
+ DBRequest_DBUpdate.encode(message.update, writer.uint32(50).fork()).ldelim();
19692
+ }
18906
19693
  if (message.delete !== void 0) {
18907
19694
  DBRequest_DBDelete.encode(message.delete, writer.uint32(34).fork()).ldelim();
18908
19695
  }
@@ -18936,6 +19723,12 @@ var DBRequest = {
18936
19723
  }
18937
19724
  message.upsert = DBRequest_DBUpsert.decode(reader, reader.uint32());
18938
19725
  continue;
19726
+ case 6:
19727
+ if (tag !== 50) {
19728
+ break;
19729
+ }
19730
+ message.update = DBRequest_DBUpdate.decode(reader, reader.uint32());
19731
+ continue;
18939
19732
  case 4:
18940
19733
  if (tag !== 34) {
18941
19734
  break;
@@ -18961,6 +19754,7 @@ var DBRequest = {
18961
19754
  opId: isSet8(object.opId) ? BigInt(object.opId) : BigInt("0"),
18962
19755
  get: isSet8(object.get) ? DBRequest_DBGet.fromJSON(object.get) : void 0,
18963
19756
  upsert: isSet8(object.upsert) ? DBRequest_DBUpsert.fromJSON(object.upsert) : void 0,
19757
+ update: isSet8(object.update) ? DBRequest_DBUpdate.fromJSON(object.update) : void 0,
18964
19758
  delete: isSet8(object.delete) ? DBRequest_DBDelete.fromJSON(object.delete) : void 0,
18965
19759
  list: isSet8(object.list) ? DBRequest_DBList.fromJSON(object.list) : void 0
18966
19760
  };
@@ -18976,6 +19770,9 @@ var DBRequest = {
18976
19770
  if (message.upsert !== void 0) {
18977
19771
  obj.upsert = DBRequest_DBUpsert.toJSON(message.upsert);
18978
19772
  }
19773
+ if (message.update !== void 0) {
19774
+ obj.update = DBRequest_DBUpdate.toJSON(message.update);
19775
+ }
18979
19776
  if (message.delete !== void 0) {
18980
19777
  obj.delete = DBRequest_DBDelete.toJSON(message.delete);
18981
19778
  }
@@ -18992,6 +19789,7 @@ var DBRequest = {
18992
19789
  message.opId = object.opId ?? BigInt("0");
18993
19790
  message.get = object.get !== void 0 && object.get !== null ? DBRequest_DBGet.fromPartial(object.get) : void 0;
18994
19791
  message.upsert = object.upsert !== void 0 && object.upsert !== null ? DBRequest_DBUpsert.fromPartial(object.upsert) : void 0;
19792
+ message.update = object.update !== void 0 && object.update !== null ? DBRequest_DBUpdate.fromPartial(object.update) : void 0;
18995
19793
  message.delete = object.delete !== void 0 && object.delete !== null ? DBRequest_DBDelete.fromPartial(object.delete) : void 0;
18996
19794
  message.list = object.list !== void 0 && object.list !== null ? DBRequest_DBList.fromPartial(object.list) : void 0;
18997
19795
  return message;
@@ -19251,6 +20049,86 @@ var DBRequest_DBUpsert = {
19251
20049
  return message;
19252
20050
  }
19253
20051
  };
20052
+ function createBaseDBRequest_DBUpdate() {
20053
+ return { entity: [], id: [], entityData: [] };
20054
+ }
20055
+ var DBRequest_DBUpdate = {
20056
+ encode(message, writer = import_minimal10.default.Writer.create()) {
20057
+ for (const v of message.entity) {
20058
+ writer.uint32(10).string(v);
20059
+ }
20060
+ for (const v of message.id) {
20061
+ writer.uint32(18).string(v);
20062
+ }
20063
+ for (const v of message.entityData) {
20064
+ EntityUpdateData.encode(v, writer.uint32(26).fork()).ldelim();
20065
+ }
20066
+ return writer;
20067
+ },
20068
+ decode(input, length) {
20069
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
20070
+ let end = length === void 0 ? reader.len : reader.pos + length;
20071
+ const message = createBaseDBRequest_DBUpdate();
20072
+ while (reader.pos < end) {
20073
+ const tag = reader.uint32();
20074
+ switch (tag >>> 3) {
20075
+ case 1:
20076
+ if (tag !== 10) {
20077
+ break;
20078
+ }
20079
+ message.entity.push(reader.string());
20080
+ continue;
20081
+ case 2:
20082
+ if (tag !== 18) {
20083
+ break;
20084
+ }
20085
+ message.id.push(reader.string());
20086
+ continue;
20087
+ case 3:
20088
+ if (tag !== 26) {
20089
+ break;
20090
+ }
20091
+ message.entityData.push(EntityUpdateData.decode(reader, reader.uint32()));
20092
+ continue;
20093
+ }
20094
+ if ((tag & 7) === 4 || tag === 0) {
20095
+ break;
20096
+ }
20097
+ reader.skipType(tag & 7);
20098
+ }
20099
+ return message;
20100
+ },
20101
+ fromJSON(object) {
20102
+ return {
20103
+ entity: globalThis.Array.isArray(object?.entity) ? object.entity.map((e) => globalThis.String(e)) : [],
20104
+ id: globalThis.Array.isArray(object?.id) ? object.id.map((e) => globalThis.String(e)) : [],
20105
+ entityData: globalThis.Array.isArray(object?.entityData) ? object.entityData.map((e) => EntityUpdateData.fromJSON(e)) : []
20106
+ };
20107
+ },
20108
+ toJSON(message) {
20109
+ const obj = {};
20110
+ if (message.entity?.length) {
20111
+ obj.entity = message.entity;
20112
+ }
20113
+ if (message.id?.length) {
20114
+ obj.id = message.id;
20115
+ }
20116
+ if (message.entityData?.length) {
20117
+ obj.entityData = message.entityData.map((e) => EntityUpdateData.toJSON(e));
20118
+ }
20119
+ return obj;
20120
+ },
20121
+ create(base) {
20122
+ return DBRequest_DBUpdate.fromPartial(base ?? {});
20123
+ },
20124
+ fromPartial(object) {
20125
+ const message = createBaseDBRequest_DBUpdate();
20126
+ message.entity = object.entity?.map((e) => e) || [];
20127
+ message.id = object.id?.map((e) => e) || [];
20128
+ message.entityData = object.entityData?.map((e) => EntityUpdateData.fromPartial(e)) || [];
20129
+ return message;
20130
+ }
20131
+ };
19254
20132
  function createBaseDBRequest_DBDelete() {
19255
20133
  return { entity: [], id: [] };
19256
20134
  }
@@ -21819,7 +22697,7 @@ var StateResult2 = {
21819
22697
  }
21820
22698
  };
21821
22699
  function createBaseProcessResult2() {
21822
- return { gauges: [], counters: [], logs: [], events: [], exports: [], states: void 0 };
22700
+ return { gauges: [], counters: [], logs: [], events: [], exports: [], states: void 0, timeseriesResult: [] };
21823
22701
  }
21824
22702
  var ProcessResult2 = {
21825
22703
  encode(message, writer = import_minimal10.default.Writer.create()) {
@@ -21841,6 +22719,9 @@ var ProcessResult2 = {
21841
22719
  if (message.states !== void 0) {
21842
22720
  StateResult2.encode(message.states, writer.uint32(50).fork()).ldelim();
21843
22721
  }
22722
+ for (const v of message.timeseriesResult) {
22723
+ TimeseriesResult2.encode(v, writer.uint32(58).fork()).ldelim();
22724
+ }
21844
22725
  return writer;
21845
22726
  },
21846
22727
  decode(input, length) {
@@ -21886,6 +22767,12 @@ var ProcessResult2 = {
21886
22767
  }
21887
22768
  message.states = StateResult2.decode(reader, reader.uint32());
21888
22769
  continue;
22770
+ case 7:
22771
+ if (tag !== 58) {
22772
+ break;
22773
+ }
22774
+ message.timeseriesResult.push(TimeseriesResult2.decode(reader, reader.uint32()));
22775
+ continue;
21889
22776
  }
21890
22777
  if ((tag & 7) === 4 || tag === 0) {
21891
22778
  break;
@@ -21901,7 +22788,8 @@ var ProcessResult2 = {
21901
22788
  logs: globalThis.Array.isArray(object?.logs) ? object.logs.map((e) => LogResult.fromJSON(e)) : [],
21902
22789
  events: globalThis.Array.isArray(object?.events) ? object.events.map((e) => EventTrackingResult2.fromJSON(e)) : [],
21903
22790
  exports: globalThis.Array.isArray(object?.exports) ? object.exports.map((e) => ExportResult2.fromJSON(e)) : [],
21904
- states: isSet8(object.states) ? StateResult2.fromJSON(object.states) : void 0
22791
+ states: isSet8(object.states) ? StateResult2.fromJSON(object.states) : void 0,
22792
+ timeseriesResult: globalThis.Array.isArray(object?.timeseriesResult) ? object.timeseriesResult.map((e) => TimeseriesResult2.fromJSON(e)) : []
21905
22793
  };
21906
22794
  },
21907
22795
  toJSON(message) {
@@ -21924,6 +22812,9 @@ var ProcessResult2 = {
21924
22812
  if (message.states !== void 0) {
21925
22813
  obj.states = StateResult2.toJSON(message.states);
21926
22814
  }
22815
+ if (message.timeseriesResult?.length) {
22816
+ obj.timeseriesResult = message.timeseriesResult.map((e) => TimeseriesResult2.toJSON(e));
22817
+ }
21927
22818
  return obj;
21928
22819
  },
21929
22820
  create(base) {
@@ -21937,6 +22828,7 @@ var ProcessResult2 = {
21937
22828
  message.events = object.events?.map((e) => EventTrackingResult2.fromPartial(e)) || [];
21938
22829
  message.exports = object.exports?.map((e) => ExportResult2.fromPartial(e)) || [];
21939
22830
  message.states = object.states !== void 0 && object.states !== null ? StateResult2.fromPartial(object.states) : void 0;
22831
+ message.timeseriesResult = object.timeseriesResult?.map((e) => TimeseriesResult2.fromPartial(e)) || [];
21940
22832
  return message;
21941
22833
  }
21942
22834
  };
@@ -22785,6 +23677,100 @@ var EventTrackingResult2 = {
22785
23677
  return message;
22786
23678
  }
22787
23679
  };
23680
+ function createBaseTimeseriesResult2() {
23681
+ return { metadata: void 0, type: 0, data: void 0, runtimeInfo: void 0 };
23682
+ }
23683
+ var TimeseriesResult2 = {
23684
+ encode(message, writer = import_minimal10.default.Writer.create()) {
23685
+ if (message.metadata !== void 0) {
23686
+ RecordMetaData2.encode(message.metadata, writer.uint32(10).fork()).ldelim();
23687
+ }
23688
+ if (message.type !== 0) {
23689
+ writer.uint32(16).int32(message.type);
23690
+ }
23691
+ if (message.data !== void 0) {
23692
+ RichStruct2.encode(message.data, writer.uint32(26).fork()).ldelim();
23693
+ }
23694
+ if (message.runtimeInfo !== void 0) {
23695
+ RuntimeInfo2.encode(message.runtimeInfo, writer.uint32(34).fork()).ldelim();
23696
+ }
23697
+ return writer;
23698
+ },
23699
+ decode(input, length) {
23700
+ const reader = input instanceof import_minimal10.default.Reader ? input : import_minimal10.default.Reader.create(input);
23701
+ let end = length === void 0 ? reader.len : reader.pos + length;
23702
+ const message = createBaseTimeseriesResult2();
23703
+ while (reader.pos < end) {
23704
+ const tag = reader.uint32();
23705
+ switch (tag >>> 3) {
23706
+ case 1:
23707
+ if (tag !== 10) {
23708
+ break;
23709
+ }
23710
+ message.metadata = RecordMetaData2.decode(reader, reader.uint32());
23711
+ continue;
23712
+ case 2:
23713
+ if (tag !== 16) {
23714
+ break;
23715
+ }
23716
+ message.type = reader.int32();
23717
+ continue;
23718
+ case 3:
23719
+ if (tag !== 26) {
23720
+ break;
23721
+ }
23722
+ message.data = RichStruct2.decode(reader, reader.uint32());
23723
+ continue;
23724
+ case 4:
23725
+ if (tag !== 34) {
23726
+ break;
23727
+ }
23728
+ message.runtimeInfo = RuntimeInfo2.decode(reader, reader.uint32());
23729
+ continue;
23730
+ }
23731
+ if ((tag & 7) === 4 || tag === 0) {
23732
+ break;
23733
+ }
23734
+ reader.skipType(tag & 7);
23735
+ }
23736
+ return message;
23737
+ },
23738
+ fromJSON(object) {
23739
+ return {
23740
+ metadata: isSet8(object.metadata) ? RecordMetaData2.fromJSON(object.metadata) : void 0,
23741
+ type: isSet8(object.type) ? timeseriesResult_TimeseriesTypeFromJSON2(object.type) : 0,
23742
+ data: isSet8(object.data) ? RichStruct2.fromJSON(object.data) : void 0,
23743
+ runtimeInfo: isSet8(object.runtimeInfo) ? RuntimeInfo2.fromJSON(object.runtimeInfo) : void 0
23744
+ };
23745
+ },
23746
+ toJSON(message) {
23747
+ const obj = {};
23748
+ if (message.metadata !== void 0) {
23749
+ obj.metadata = RecordMetaData2.toJSON(message.metadata);
23750
+ }
23751
+ if (message.type !== 0) {
23752
+ obj.type = timeseriesResult_TimeseriesTypeToJSON2(message.type);
23753
+ }
23754
+ if (message.data !== void 0) {
23755
+ obj.data = RichStruct2.toJSON(message.data);
23756
+ }
23757
+ if (message.runtimeInfo !== void 0) {
23758
+ obj.runtimeInfo = RuntimeInfo2.toJSON(message.runtimeInfo);
23759
+ }
23760
+ return obj;
23761
+ },
23762
+ create(base) {
23763
+ return TimeseriesResult2.fromPartial(base ?? {});
23764
+ },
23765
+ fromPartial(object) {
23766
+ const message = createBaseTimeseriesResult2();
23767
+ message.metadata = object.metadata !== void 0 && object.metadata !== null ? RecordMetaData2.fromPartial(object.metadata) : void 0;
23768
+ message.type = object.type ?? 0;
23769
+ message.data = object.data !== void 0 && object.data !== null ? RichStruct2.fromPartial(object.data) : void 0;
23770
+ message.runtimeInfo = object.runtimeInfo !== void 0 && object.runtimeInfo !== null ? RuntimeInfo2.fromPartial(object.runtimeInfo) : void 0;
23771
+ return message;
23772
+ }
23773
+ };
22788
23774
  function createBaseExportResult2() {
22789
23775
  return { metadata: void 0, payload: "", runtimeInfo: void 0 };
22790
23776
  }
@@ -23003,4 +23989,4 @@ long/index.js:
23003
23989
  * SPDX-License-Identifier: Apache-2.0
23004
23990
  *)
23005
23991
  */
23006
- //# sourceMappingURL=chunk-ZUTD563J.js.map
23992
+ //# sourceMappingURL=chunk-FO2V2K7T.js.map