@sentio/protos 2.13.7 → 2.14.0-rc.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sentio/protos",
3
3
  "license": "Apache-2.0",
4
- "version": "2.13.7",
4
+ "version": "2.14.0-rc.2",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "google-protobuf": "^3.21.2",
@@ -535,7 +535,6 @@ export interface ProcessBindingsRequest {
535
535
 
536
536
  export interface ProcessBindingResponse {
537
537
  result: ProcessResult | undefined;
538
- configUpdated: boolean;
539
538
  }
540
539
 
541
540
  export interface Data {
@@ -627,11 +626,16 @@ export interface DataBinding {
627
626
  handlerIds: number[];
628
627
  }
629
628
 
629
+ export interface StateResult {
630
+ configUpdated: boolean;
631
+ }
632
+
630
633
  export interface ProcessResult {
631
634
  gauges: GaugeResult[];
632
635
  counters: CounterResult[];
633
636
  events: EventTrackingResult[];
634
637
  exports: ExportResult[];
638
+ states: StateResult | undefined;
635
639
  }
636
640
 
637
641
  export interface RecordMetaData {
@@ -3321,7 +3325,7 @@ export const ProcessBindingsRequest = {
3321
3325
  };
3322
3326
 
3323
3327
  function createBaseProcessBindingResponse(): ProcessBindingResponse {
3324
- return { result: undefined, configUpdated: false };
3328
+ return { result: undefined };
3325
3329
  }
3326
3330
 
3327
3331
  export const ProcessBindingResponse = {
@@ -3329,9 +3333,6 @@ export const ProcessBindingResponse = {
3329
3333
  if (message.result !== undefined) {
3330
3334
  ProcessResult.encode(message.result, writer.uint32(10).fork()).ldelim();
3331
3335
  }
3332
- if (message.configUpdated === true) {
3333
- writer.uint32(32).bool(message.configUpdated);
3334
- }
3335
3336
  return writer;
3336
3337
  },
3337
3338
 
@@ -3345,9 +3346,6 @@ export const ProcessBindingResponse = {
3345
3346
  case 1:
3346
3347
  message.result = ProcessResult.decode(reader, reader.uint32());
3347
3348
  break;
3348
- case 4:
3349
- message.configUpdated = reader.bool();
3350
- break;
3351
3349
  default:
3352
3350
  reader.skipType(tag & 7);
3353
3351
  break;
@@ -3357,16 +3355,12 @@ export const ProcessBindingResponse = {
3357
3355
  },
3358
3356
 
3359
3357
  fromJSON(object: any): ProcessBindingResponse {
3360
- return {
3361
- result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined,
3362
- configUpdated: isSet(object.configUpdated) ? Boolean(object.configUpdated) : false,
3363
- };
3358
+ return { result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined };
3364
3359
  },
3365
3360
 
3366
3361
  toJSON(message: ProcessBindingResponse): unknown {
3367
3362
  const obj: any = {};
3368
3363
  message.result !== undefined && (obj.result = message.result ? ProcessResult.toJSON(message.result) : undefined);
3369
- message.configUpdated !== undefined && (obj.configUpdated = message.configUpdated);
3370
3364
  return obj;
3371
3365
  },
3372
3366
 
@@ -3379,7 +3373,6 @@ export const ProcessBindingResponse = {
3379
3373
  message.result = (object.result !== undefined && object.result !== null)
3380
3374
  ? ProcessResult.fromPartial(object.result)
3381
3375
  : undefined;
3382
- message.configUpdated = object.configUpdated ?? false;
3383
3376
  return message;
3384
3377
  },
3385
3378
  };
@@ -4485,8 +4478,59 @@ export const DataBinding = {
4485
4478
  },
4486
4479
  };
4487
4480
 
4481
+ function createBaseStateResult(): StateResult {
4482
+ return { configUpdated: false };
4483
+ }
4484
+
4485
+ export const StateResult = {
4486
+ encode(message: StateResult, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
4487
+ if (message.configUpdated === true) {
4488
+ writer.uint32(8).bool(message.configUpdated);
4489
+ }
4490
+ return writer;
4491
+ },
4492
+
4493
+ decode(input: _m0.Reader | Uint8Array, length?: number): StateResult {
4494
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
4495
+ let end = length === undefined ? reader.len : reader.pos + length;
4496
+ const message = createBaseStateResult();
4497
+ while (reader.pos < end) {
4498
+ const tag = reader.uint32();
4499
+ switch (tag >>> 3) {
4500
+ case 1:
4501
+ message.configUpdated = reader.bool();
4502
+ break;
4503
+ default:
4504
+ reader.skipType(tag & 7);
4505
+ break;
4506
+ }
4507
+ }
4508
+ return message;
4509
+ },
4510
+
4511
+ fromJSON(object: any): StateResult {
4512
+ return { configUpdated: isSet(object.configUpdated) ? Boolean(object.configUpdated) : false };
4513
+ },
4514
+
4515
+ toJSON(message: StateResult): unknown {
4516
+ const obj: any = {};
4517
+ message.configUpdated !== undefined && (obj.configUpdated = message.configUpdated);
4518
+ return obj;
4519
+ },
4520
+
4521
+ create(base?: DeepPartial<StateResult>): StateResult {
4522
+ return StateResult.fromPartial(base ?? {});
4523
+ },
4524
+
4525
+ fromPartial(object: DeepPartial<StateResult>): StateResult {
4526
+ const message = createBaseStateResult();
4527
+ message.configUpdated = object.configUpdated ?? false;
4528
+ return message;
4529
+ },
4530
+ };
4531
+
4488
4532
  function createBaseProcessResult(): ProcessResult {
4489
- return { gauges: [], counters: [], events: [], exports: [] };
4533
+ return { gauges: [], counters: [], events: [], exports: [], states: undefined };
4490
4534
  }
4491
4535
 
4492
4536
  export const ProcessResult = {
@@ -4503,6 +4547,9 @@ export const ProcessResult = {
4503
4547
  for (const v of message.exports) {
4504
4548
  ExportResult.encode(v!, writer.uint32(42).fork()).ldelim();
4505
4549
  }
4550
+ if (message.states !== undefined) {
4551
+ StateResult.encode(message.states, writer.uint32(50).fork()).ldelim();
4552
+ }
4506
4553
  return writer;
4507
4554
  },
4508
4555
 
@@ -4525,6 +4572,9 @@ export const ProcessResult = {
4525
4572
  case 5:
4526
4573
  message.exports.push(ExportResult.decode(reader, reader.uint32()));
4527
4574
  break;
4575
+ case 6:
4576
+ message.states = StateResult.decode(reader, reader.uint32());
4577
+ break;
4528
4578
  default:
4529
4579
  reader.skipType(tag & 7);
4530
4580
  break;
@@ -4539,6 +4589,7 @@ export const ProcessResult = {
4539
4589
  counters: Array.isArray(object?.counters) ? object.counters.map((e: any) => CounterResult.fromJSON(e)) : [],
4540
4590
  events: Array.isArray(object?.events) ? object.events.map((e: any) => EventTrackingResult.fromJSON(e)) : [],
4541
4591
  exports: Array.isArray(object?.exports) ? object.exports.map((e: any) => ExportResult.fromJSON(e)) : [],
4592
+ states: isSet(object.states) ? StateResult.fromJSON(object.states) : undefined,
4542
4593
  };
4543
4594
  },
4544
4595
 
@@ -4564,6 +4615,7 @@ export const ProcessResult = {
4564
4615
  } else {
4565
4616
  obj.exports = [];
4566
4617
  }
4618
+ message.states !== undefined && (obj.states = message.states ? StateResult.toJSON(message.states) : undefined);
4567
4619
  return obj;
4568
4620
  },
4569
4621
 
@@ -4577,6 +4629,9 @@ export const ProcessResult = {
4577
4629
  message.counters = object.counters?.map((e) => CounterResult.fromPartial(e)) || [];
4578
4630
  message.events = object.events?.map((e) => EventTrackingResult.fromPartial(e)) || [];
4579
4631
  message.exports = object.exports?.map((e) => ExportResult.fromPartial(e)) || [];
4632
+ message.states = (object.states !== undefined && object.states !== null)
4633
+ ? StateResult.fromPartial(object.states)
4634
+ : undefined;
4580
4635
  return message;
4581
4636
  },
4582
4637
  };