@sentio/runtime 3.0.0-rc.8 → 3.0.0-rc.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.
@@ -2883,6 +2883,13 @@ var NotificationType;
2883
2883
  NotificationType2[NotificationType2["BILLING_USAGE"] = 304] = "BILLING_USAGE";
2884
2884
  NotificationType2[NotificationType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2885
2885
  })(NotificationType || (NotificationType = {}));
2886
+ var ChatType;
2887
+ (function(ChatType2) {
2888
+ ChatType2[ChatType2["CHAT_TYPE_UNSPECIFIED"] = 0] = "CHAT_TYPE_UNSPECIFIED";
2889
+ ChatType2[ChatType2["CHAT_TYPE_CHAT"] = 1] = "CHAT_TYPE_CHAT";
2890
+ ChatType2[ChatType2["CHAT_TYPE_ACTION"] = 2] = "CHAT_TYPE_ACTION";
2891
+ ChatType2[ChatType2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
2892
+ })(ChatType || (ChatType = {}));
2886
2893
  var UsageTracker_CustomSkus_SkuOp;
2887
2894
  (function(UsageTracker_CustomSkus_SkuOp2) {
2888
2895
  UsageTracker_CustomSkus_SkuOp2[UsageTracker_CustomSkus_SkuOp2["MIN"] = 0] = "MIN";
@@ -9796,13 +9803,16 @@ var EntityUpdateData_FieldsEntry = {
9796
9803
  }
9797
9804
  };
9798
9805
  function createBaseTPLRequest() {
9799
- return { templates: [] };
9806
+ return { templates: [], remove: false };
9800
9807
  }
9801
9808
  var TPLRequest = {
9802
9809
  encode(message, writer = import_minimal6.default.Writer.create()) {
9803
9810
  for (const v of message.templates) {
9804
9811
  TemplateInstance.encode(v, writer.uint32(10).fork()).ldelim();
9805
9812
  }
9813
+ if (message.remove !== false) {
9814
+ writer.uint32(16).bool(message.remove);
9815
+ }
9806
9816
  return writer;
9807
9817
  },
9808
9818
  decode(input, length) {
@@ -9818,6 +9828,12 @@ var TPLRequest = {
9818
9828
  }
9819
9829
  message.templates.push(TemplateInstance.decode(reader, reader.uint32()));
9820
9830
  continue;
9831
+ case 2:
9832
+ if (tag !== 16) {
9833
+ break;
9834
+ }
9835
+ message.remove = reader.bool();
9836
+ continue;
9821
9837
  }
9822
9838
  if ((tag & 7) === 4 || tag === 0) {
9823
9839
  break;
@@ -9828,7 +9844,8 @@ var TPLRequest = {
9828
9844
  },
9829
9845
  fromJSON(object) {
9830
9846
  return {
9831
- templates: globalThis.Array.isArray(object?.templates) ? object.templates.map((e) => TemplateInstance.fromJSON(e)) : []
9847
+ templates: globalThis.Array.isArray(object?.templates) ? object.templates.map((e) => TemplateInstance.fromJSON(e)) : [],
9848
+ remove: isSet4(object.remove) ? globalThis.Boolean(object.remove) : false
9832
9849
  };
9833
9850
  },
9834
9851
  toJSON(message) {
@@ -9836,6 +9853,9 @@ var TPLRequest = {
9836
9853
  if (message.templates?.length) {
9837
9854
  obj.templates = message.templates.map((e) => TemplateInstance.toJSON(e));
9838
9855
  }
9856
+ if (message.remove !== false) {
9857
+ obj.remove = message.remove;
9858
+ }
9839
9859
  return obj;
9840
9860
  },
9841
9861
  create(base) {
@@ -9844,6 +9864,7 @@ var TPLRequest = {
9844
9864
  fromPartial(object) {
9845
9865
  const message = createBaseTPLRequest();
9846
9866
  message.templates = object.templates?.map((e) => TemplateInstance.fromPartial(e)) || [];
9867
+ message.remove = object.remove ?? false;
9847
9868
  return message;
9848
9869
  }
9849
9870
  };
@@ -13991,12 +14012,6 @@ var PluginManager = class _PluginManager {
13991
14012
  });
13992
14013
  }
13993
14014
  }
13994
- sendTemplateInstance(instance) {
13995
- const store = this.dbContextLocalStorage.getStore();
13996
- if (store && "sendTemplateRequest" in store) {
13997
- store?.sendTemplateRequest([instance]);
13998
- }
13999
- }
14000
14015
  };
14001
14016
  import("node:process").then((p) => p.stdout.write(""));
14002
14017
 
@@ -16335,7 +16350,7 @@ var ProcessConfigResponse3 = {
16335
16350
  ContractConfig2.encode(v, writer.uint32(18).fork()).ldelim();
16336
16351
  }
16337
16352
  for (const v of message.templateInstances) {
16338
- TemplateInstance3.encode(v, writer.uint32(26).fork()).ldelim();
16353
+ TemplateInstance2.encode(v, writer.uint32(26).fork()).ldelim();
16339
16354
  }
16340
16355
  for (const v of message.accountConfigs) {
16341
16356
  AccountConfig2.encode(v, writer.uint32(34).fork()).ldelim();
@@ -16383,7 +16398,7 @@ var ProcessConfigResponse3 = {
16383
16398
  if (tag !== 26) {
16384
16399
  break;
16385
16400
  }
16386
- message.templateInstances.push(TemplateInstance3.decode(reader, reader.uint32()));
16401
+ message.templateInstances.push(TemplateInstance2.decode(reader, reader.uint32()));
16387
16402
  continue;
16388
16403
  case 4:
16389
16404
  if (tag !== 34) {
@@ -16428,7 +16443,7 @@ var ProcessConfigResponse3 = {
16428
16443
  config: isSet8(object.config) ? ProjectConfig2.fromJSON(object.config) : void 0,
16429
16444
  executionConfig: isSet8(object.executionConfig) ? ExecutionConfig2.fromJSON(object.executionConfig) : void 0,
16430
16445
  contractConfigs: globalThis.Array.isArray(object?.contractConfigs) ? object.contractConfigs.map((e) => ContractConfig2.fromJSON(e)) : [],
16431
- templateInstances: globalThis.Array.isArray(object?.templateInstances) ? object.templateInstances.map((e) => TemplateInstance3.fromJSON(e)) : [],
16446
+ templateInstances: globalThis.Array.isArray(object?.templateInstances) ? object.templateInstances.map((e) => TemplateInstance2.fromJSON(e)) : [],
16432
16447
  accountConfigs: globalThis.Array.isArray(object?.accountConfigs) ? object.accountConfigs.map((e) => AccountConfig2.fromJSON(e)) : [],
16433
16448
  metricConfigs: globalThis.Array.isArray(object?.metricConfigs) ? object.metricConfigs.map((e) => MetricConfig2.fromJSON(e)) : [],
16434
16449
  exportConfigs: globalThis.Array.isArray(object?.exportConfigs) ? object.exportConfigs.map((e) => ExportConfig2.fromJSON(e)) : [],
@@ -16448,7 +16463,7 @@ var ProcessConfigResponse3 = {
16448
16463
  obj.contractConfigs = message.contractConfigs.map((e) => ContractConfig2.toJSON(e));
16449
16464
  }
16450
16465
  if (message.templateInstances?.length) {
16451
- obj.templateInstances = message.templateInstances.map((e) => TemplateInstance3.toJSON(e));
16466
+ obj.templateInstances = message.templateInstances.map((e) => TemplateInstance2.toJSON(e));
16452
16467
  }
16453
16468
  if (message.accountConfigs?.length) {
16454
16469
  obj.accountConfigs = message.accountConfigs.map((e) => AccountConfig2.toJSON(e));
@@ -16475,7 +16490,7 @@ var ProcessConfigResponse3 = {
16475
16490
  message.config = object.config !== void 0 && object.config !== null ? ProjectConfig2.fromPartial(object.config) : void 0;
16476
16491
  message.executionConfig = object.executionConfig !== void 0 && object.executionConfig !== null ? ExecutionConfig2.fromPartial(object.executionConfig) : void 0;
16477
16492
  message.contractConfigs = object.contractConfigs?.map((e) => ContractConfig2.fromPartial(e)) || [];
16478
- message.templateInstances = object.templateInstances?.map((e) => TemplateInstance3.fromPartial(e)) || [];
16493
+ message.templateInstances = object.templateInstances?.map((e) => TemplateInstance2.fromPartial(e)) || [];
16479
16494
  message.accountConfigs = object.accountConfigs?.map((e) => AccountConfig2.fromPartial(e)) || [];
16480
16495
  message.metricConfigs = object.metricConfigs?.map((e) => MetricConfig2.fromPartial(e)) || [];
16481
16496
  message.exportConfigs = object.exportConfigs?.map((e) => ExportConfig2.fromPartial(e)) || [];
@@ -18075,7 +18090,7 @@ var ContractInfo2 = {
18075
18090
  function createBaseTemplateInstance2() {
18076
18091
  return { contract: void 0, startBlock: BigInt("0"), endBlock: BigInt("0"), templateId: 0, baseLabels: void 0 };
18077
18092
  }
18078
- var TemplateInstance3 = {
18093
+ var TemplateInstance2 = {
18079
18094
  encode(message, writer = import_minimal12.default.Writer.create()) {
18080
18095
  if (message.contract !== void 0) {
18081
18096
  ContractInfo2.encode(message.contract, writer.uint32(10).fork()).ldelim();
@@ -18174,7 +18189,7 @@ var TemplateInstance3 = {
18174
18189
  return obj;
18175
18190
  },
18176
18191
  create(base) {
18177
- return TemplateInstance3.fromPartial(base ?? {});
18192
+ return TemplateInstance2.fromPartial(base ?? {});
18178
18193
  },
18179
18194
  fromPartial(object) {
18180
18195
  const message = createBaseTemplateInstance2();
@@ -18192,7 +18207,7 @@ function createBaseStartRequest2() {
18192
18207
  var StartRequest3 = {
18193
18208
  encode(message, writer = import_minimal12.default.Writer.create()) {
18194
18209
  for (const v of message.templateInstances) {
18195
- TemplateInstance3.encode(v, writer.uint32(10).fork()).ldelim();
18210
+ TemplateInstance2.encode(v, writer.uint32(10).fork()).ldelim();
18196
18211
  }
18197
18212
  return writer;
18198
18213
  },
@@ -18207,7 +18222,7 @@ var StartRequest3 = {
18207
18222
  if (tag !== 10) {
18208
18223
  break;
18209
18224
  }
18210
- message.templateInstances.push(TemplateInstance3.decode(reader, reader.uint32()));
18225
+ message.templateInstances.push(TemplateInstance2.decode(reader, reader.uint32()));
18211
18226
  continue;
18212
18227
  }
18213
18228
  if ((tag & 7) === 4 || tag === 0) {
@@ -18219,13 +18234,13 @@ var StartRequest3 = {
18219
18234
  },
18220
18235
  fromJSON(object) {
18221
18236
  return {
18222
- templateInstances: globalThis.Array.isArray(object?.templateInstances) ? object.templateInstances.map((e) => TemplateInstance3.fromJSON(e)) : []
18237
+ templateInstances: globalThis.Array.isArray(object?.templateInstances) ? object.templateInstances.map((e) => TemplateInstance2.fromJSON(e)) : []
18223
18238
  };
18224
18239
  },
18225
18240
  toJSON(message) {
18226
18241
  const obj = {};
18227
18242
  if (message.templateInstances?.length) {
18228
- obj.templateInstances = message.templateInstances.map((e) => TemplateInstance3.toJSON(e));
18243
+ obj.templateInstances = message.templateInstances.map((e) => TemplateInstance2.toJSON(e));
18229
18244
  }
18230
18245
  return obj;
18231
18246
  },
@@ -18234,7 +18249,7 @@ var StartRequest3 = {
18234
18249
  },
18235
18250
  fromPartial(object) {
18236
18251
  const message = createBaseStartRequest2();
18237
- message.templateInstances = object.templateInstances?.map((e) => TemplateInstance3.fromPartial(e)) || [];
18252
+ message.templateInstances = object.templateInstances?.map((e) => TemplateInstance2.fromPartial(e)) || [];
18238
18253
  return message;
18239
18254
  }
18240
18255
  };
@@ -25776,4 +25791,4 @@ long/index.js:
25776
25791
  * SPDX-License-Identifier: Apache-2.0
25777
25792
  *)
25778
25793
  */
25779
- //# sourceMappingURL=chunk-QHFSZVR5.js.map
25794
+ //# sourceMappingURL=chunk-ROBPWJIE.js.map