@sentio/protos 2.59.4 → 2.60.0-rc.1

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.
@@ -3198,6 +3198,142 @@ export const TemplateInstance = {
3198
3198
  return message;
3199
3199
  },
3200
3200
  };
3201
+ function createBaseInitResponse() {
3202
+ return { chainIds: [], dbSchema: undefined };
3203
+ }
3204
+ export const InitResponse = {
3205
+ encode(message, writer = _m0.Writer.create()) {
3206
+ for (const v of message.chainIds) {
3207
+ writer.uint32(10).string(v);
3208
+ }
3209
+ if (message.dbSchema !== undefined) {
3210
+ DataBaseSchema.encode(message.dbSchema, writer.uint32(18).fork()).ldelim();
3211
+ }
3212
+ return writer;
3213
+ },
3214
+ decode(input, length) {
3215
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3216
+ let end = length === undefined ? reader.len : reader.pos + length;
3217
+ const message = createBaseInitResponse();
3218
+ while (reader.pos < end) {
3219
+ const tag = reader.uint32();
3220
+ switch (tag >>> 3) {
3221
+ case 1:
3222
+ if (tag !== 10) {
3223
+ break;
3224
+ }
3225
+ message.chainIds.push(reader.string());
3226
+ continue;
3227
+ case 2:
3228
+ if (tag !== 18) {
3229
+ break;
3230
+ }
3231
+ message.dbSchema = DataBaseSchema.decode(reader, reader.uint32());
3232
+ continue;
3233
+ }
3234
+ if ((tag & 7) === 4 || tag === 0) {
3235
+ break;
3236
+ }
3237
+ reader.skipType(tag & 7);
3238
+ }
3239
+ return message;
3240
+ },
3241
+ fromJSON(object) {
3242
+ return {
3243
+ chainIds: globalThis.Array.isArray(object?.chainIds) ? object.chainIds.map((e) => globalThis.String(e)) : [],
3244
+ dbSchema: isSet(object.dbSchema) ? DataBaseSchema.fromJSON(object.dbSchema) : undefined,
3245
+ };
3246
+ },
3247
+ toJSON(message) {
3248
+ const obj = {};
3249
+ if (message.chainIds?.length) {
3250
+ obj.chainIds = message.chainIds;
3251
+ }
3252
+ if (message.dbSchema !== undefined) {
3253
+ obj.dbSchema = DataBaseSchema.toJSON(message.dbSchema);
3254
+ }
3255
+ return obj;
3256
+ },
3257
+ create(base) {
3258
+ return InitResponse.fromPartial(base ?? {});
3259
+ },
3260
+ fromPartial(object) {
3261
+ const message = createBaseInitResponse();
3262
+ message.chainIds = object.chainIds?.map((e) => e) || [];
3263
+ message.dbSchema = (object.dbSchema !== undefined && object.dbSchema !== null)
3264
+ ? DataBaseSchema.fromPartial(object.dbSchema)
3265
+ : undefined;
3266
+ return message;
3267
+ },
3268
+ };
3269
+ function createBaseConfigureHandlersRequest() {
3270
+ return { chainId: "", templateInstances: [] };
3271
+ }
3272
+ export const ConfigureHandlersRequest = {
3273
+ encode(message, writer = _m0.Writer.create()) {
3274
+ if (message.chainId !== "") {
3275
+ writer.uint32(10).string(message.chainId);
3276
+ }
3277
+ for (const v of message.templateInstances) {
3278
+ TemplateInstance.encode(v, writer.uint32(18).fork()).ldelim();
3279
+ }
3280
+ return writer;
3281
+ },
3282
+ decode(input, length) {
3283
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
3284
+ let end = length === undefined ? reader.len : reader.pos + length;
3285
+ const message = createBaseConfigureHandlersRequest();
3286
+ while (reader.pos < end) {
3287
+ const tag = reader.uint32();
3288
+ switch (tag >>> 3) {
3289
+ case 1:
3290
+ if (tag !== 10) {
3291
+ break;
3292
+ }
3293
+ message.chainId = reader.string();
3294
+ continue;
3295
+ case 2:
3296
+ if (tag !== 18) {
3297
+ break;
3298
+ }
3299
+ message.templateInstances.push(TemplateInstance.decode(reader, reader.uint32()));
3300
+ continue;
3301
+ }
3302
+ if ((tag & 7) === 4 || tag === 0) {
3303
+ break;
3304
+ }
3305
+ reader.skipType(tag & 7);
3306
+ }
3307
+ return message;
3308
+ },
3309
+ fromJSON(object) {
3310
+ return {
3311
+ chainId: isSet(object.chainId) ? globalThis.String(object.chainId) : "",
3312
+ templateInstances: globalThis.Array.isArray(object?.templateInstances)
3313
+ ? object.templateInstances.map((e) => TemplateInstance.fromJSON(e))
3314
+ : [],
3315
+ };
3316
+ },
3317
+ toJSON(message) {
3318
+ const obj = {};
3319
+ if (message.chainId !== "") {
3320
+ obj.chainId = message.chainId;
3321
+ }
3322
+ if (message.templateInstances?.length) {
3323
+ obj.templateInstances = message.templateInstances.map((e) => TemplateInstance.toJSON(e));
3324
+ }
3325
+ return obj;
3326
+ },
3327
+ create(base) {
3328
+ return ConfigureHandlersRequest.fromPartial(base ?? {});
3329
+ },
3330
+ fromPartial(object) {
3331
+ const message = createBaseConfigureHandlersRequest();
3332
+ message.chainId = object.chainId ?? "";
3333
+ message.templateInstances = object.templateInstances?.map((e) => TemplateInstance.fromPartial(e)) || [];
3334
+ return message;
3335
+ },
3336
+ };
3201
3337
  function createBaseStartRequest() {
3202
3338
  return { templateInstances: [] };
3203
3339
  }
@@ -6901,6 +7037,145 @@ export const ProcessStreamResponse_Partitions_PartitionsEntry = {
6901
7037
  return message;
6902
7038
  },
6903
7039
  };
7040
+ function createBaseProcessStreamResponseV2() {
7041
+ return {
7042
+ processId: 0,
7043
+ partitions: undefined,
7044
+ dbRequest: undefined,
7045
+ tsRequest: undefined,
7046
+ tplRequest: undefined,
7047
+ result: undefined,
7048
+ };
7049
+ }
7050
+ export const ProcessStreamResponseV2 = {
7051
+ encode(message, writer = _m0.Writer.create()) {
7052
+ if (message.processId !== 0) {
7053
+ writer.uint32(8).int32(message.processId);
7054
+ }
7055
+ if (message.partitions !== undefined) {
7056
+ ProcessStreamResponse_Partitions.encode(message.partitions, writer.uint32(18).fork()).ldelim();
7057
+ }
7058
+ if (message.dbRequest !== undefined) {
7059
+ DBRequest.encode(message.dbRequest, writer.uint32(26).fork()).ldelim();
7060
+ }
7061
+ if (message.tsRequest !== undefined) {
7062
+ TSRequest.encode(message.tsRequest, writer.uint32(34).fork()).ldelim();
7063
+ }
7064
+ if (message.tplRequest !== undefined) {
7065
+ TPLRequest.encode(message.tplRequest, writer.uint32(42).fork()).ldelim();
7066
+ }
7067
+ if (message.result !== undefined) {
7068
+ ProcessResult.encode(message.result, writer.uint32(50).fork()).ldelim();
7069
+ }
7070
+ return writer;
7071
+ },
7072
+ decode(input, length) {
7073
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7074
+ let end = length === undefined ? reader.len : reader.pos + length;
7075
+ const message = createBaseProcessStreamResponseV2();
7076
+ while (reader.pos < end) {
7077
+ const tag = reader.uint32();
7078
+ switch (tag >>> 3) {
7079
+ case 1:
7080
+ if (tag !== 8) {
7081
+ break;
7082
+ }
7083
+ message.processId = reader.int32();
7084
+ continue;
7085
+ case 2:
7086
+ if (tag !== 18) {
7087
+ break;
7088
+ }
7089
+ message.partitions = ProcessStreamResponse_Partitions.decode(reader, reader.uint32());
7090
+ continue;
7091
+ case 3:
7092
+ if (tag !== 26) {
7093
+ break;
7094
+ }
7095
+ message.dbRequest = DBRequest.decode(reader, reader.uint32());
7096
+ continue;
7097
+ case 4:
7098
+ if (tag !== 34) {
7099
+ break;
7100
+ }
7101
+ message.tsRequest = TSRequest.decode(reader, reader.uint32());
7102
+ continue;
7103
+ case 5:
7104
+ if (tag !== 42) {
7105
+ break;
7106
+ }
7107
+ message.tplRequest = TPLRequest.decode(reader, reader.uint32());
7108
+ continue;
7109
+ case 6:
7110
+ if (tag !== 50) {
7111
+ break;
7112
+ }
7113
+ message.result = ProcessResult.decode(reader, reader.uint32());
7114
+ continue;
7115
+ }
7116
+ if ((tag & 7) === 4 || tag === 0) {
7117
+ break;
7118
+ }
7119
+ reader.skipType(tag & 7);
7120
+ }
7121
+ return message;
7122
+ },
7123
+ fromJSON(object) {
7124
+ return {
7125
+ processId: isSet(object.processId) ? globalThis.Number(object.processId) : 0,
7126
+ partitions: isSet(object.partitions) ? ProcessStreamResponse_Partitions.fromJSON(object.partitions) : undefined,
7127
+ dbRequest: isSet(object.dbRequest) ? DBRequest.fromJSON(object.dbRequest) : undefined,
7128
+ tsRequest: isSet(object.tsRequest) ? TSRequest.fromJSON(object.tsRequest) : undefined,
7129
+ tplRequest: isSet(object.tplRequest) ? TPLRequest.fromJSON(object.tplRequest) : undefined,
7130
+ result: isSet(object.result) ? ProcessResult.fromJSON(object.result) : undefined,
7131
+ };
7132
+ },
7133
+ toJSON(message) {
7134
+ const obj = {};
7135
+ if (message.processId !== 0) {
7136
+ obj.processId = Math.round(message.processId);
7137
+ }
7138
+ if (message.partitions !== undefined) {
7139
+ obj.partitions = ProcessStreamResponse_Partitions.toJSON(message.partitions);
7140
+ }
7141
+ if (message.dbRequest !== undefined) {
7142
+ obj.dbRequest = DBRequest.toJSON(message.dbRequest);
7143
+ }
7144
+ if (message.tsRequest !== undefined) {
7145
+ obj.tsRequest = TSRequest.toJSON(message.tsRequest);
7146
+ }
7147
+ if (message.tplRequest !== undefined) {
7148
+ obj.tplRequest = TPLRequest.toJSON(message.tplRequest);
7149
+ }
7150
+ if (message.result !== undefined) {
7151
+ obj.result = ProcessResult.toJSON(message.result);
7152
+ }
7153
+ return obj;
7154
+ },
7155
+ create(base) {
7156
+ return ProcessStreamResponseV2.fromPartial(base ?? {});
7157
+ },
7158
+ fromPartial(object) {
7159
+ const message = createBaseProcessStreamResponseV2();
7160
+ message.processId = object.processId ?? 0;
7161
+ message.partitions = (object.partitions !== undefined && object.partitions !== null)
7162
+ ? ProcessStreamResponse_Partitions.fromPartial(object.partitions)
7163
+ : undefined;
7164
+ message.dbRequest = (object.dbRequest !== undefined && object.dbRequest !== null)
7165
+ ? DBRequest.fromPartial(object.dbRequest)
7166
+ : undefined;
7167
+ message.tsRequest = (object.tsRequest !== undefined && object.tsRequest !== null)
7168
+ ? TSRequest.fromPartial(object.tsRequest)
7169
+ : undefined;
7170
+ message.tplRequest = (object.tplRequest !== undefined && object.tplRequest !== null)
7171
+ ? TPLRequest.fromPartial(object.tplRequest)
7172
+ : undefined;
7173
+ message.result = (object.result !== undefined && object.result !== null)
7174
+ ? ProcessResult.fromPartial(object.result)
7175
+ : undefined;
7176
+ return message;
7177
+ },
7178
+ };
6904
7179
  function createBasePreprocessStreamRequest() {
6905
7180
  return { processId: 0, bindings: undefined, dbResult: undefined };
6906
7181
  }
@@ -7630,6 +7905,112 @@ export const EntityUpdateData_FieldsEntry = {
7630
7905
  return message;
7631
7906
  },
7632
7907
  };
7908
+ function createBaseTPLRequest() {
7909
+ return { templates: [] };
7910
+ }
7911
+ export const TPLRequest = {
7912
+ encode(message, writer = _m0.Writer.create()) {
7913
+ for (const v of message.templates) {
7914
+ TemplateInstance.encode(v, writer.uint32(10).fork()).ldelim();
7915
+ }
7916
+ return writer;
7917
+ },
7918
+ decode(input, length) {
7919
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7920
+ let end = length === undefined ? reader.len : reader.pos + length;
7921
+ const message = createBaseTPLRequest();
7922
+ while (reader.pos < end) {
7923
+ const tag = reader.uint32();
7924
+ switch (tag >>> 3) {
7925
+ case 1:
7926
+ if (tag !== 10) {
7927
+ break;
7928
+ }
7929
+ message.templates.push(TemplateInstance.decode(reader, reader.uint32()));
7930
+ continue;
7931
+ }
7932
+ if ((tag & 7) === 4 || tag === 0) {
7933
+ break;
7934
+ }
7935
+ reader.skipType(tag & 7);
7936
+ }
7937
+ return message;
7938
+ },
7939
+ fromJSON(object) {
7940
+ return {
7941
+ templates: globalThis.Array.isArray(object?.templates)
7942
+ ? object.templates.map((e) => TemplateInstance.fromJSON(e))
7943
+ : [],
7944
+ };
7945
+ },
7946
+ toJSON(message) {
7947
+ const obj = {};
7948
+ if (message.templates?.length) {
7949
+ obj.templates = message.templates.map((e) => TemplateInstance.toJSON(e));
7950
+ }
7951
+ return obj;
7952
+ },
7953
+ create(base) {
7954
+ return TPLRequest.fromPartial(base ?? {});
7955
+ },
7956
+ fromPartial(object) {
7957
+ const message = createBaseTPLRequest();
7958
+ message.templates = object.templates?.map((e) => TemplateInstance.fromPartial(e)) || [];
7959
+ return message;
7960
+ },
7961
+ };
7962
+ function createBaseTSRequest() {
7963
+ return { data: [] };
7964
+ }
7965
+ export const TSRequest = {
7966
+ encode(message, writer = _m0.Writer.create()) {
7967
+ for (const v of message.data) {
7968
+ TimeseriesResult.encode(v, writer.uint32(10).fork()).ldelim();
7969
+ }
7970
+ return writer;
7971
+ },
7972
+ decode(input, length) {
7973
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
7974
+ let end = length === undefined ? reader.len : reader.pos + length;
7975
+ const message = createBaseTSRequest();
7976
+ while (reader.pos < end) {
7977
+ const tag = reader.uint32();
7978
+ switch (tag >>> 3) {
7979
+ case 1:
7980
+ if (tag !== 10) {
7981
+ break;
7982
+ }
7983
+ message.data.push(TimeseriesResult.decode(reader, reader.uint32()));
7984
+ continue;
7985
+ }
7986
+ if ((tag & 7) === 4 || tag === 0) {
7987
+ break;
7988
+ }
7989
+ reader.skipType(tag & 7);
7990
+ }
7991
+ return message;
7992
+ },
7993
+ fromJSON(object) {
7994
+ return {
7995
+ data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => TimeseriesResult.fromJSON(e)) : [],
7996
+ };
7997
+ },
7998
+ toJSON(message) {
7999
+ const obj = {};
8000
+ if (message.data?.length) {
8001
+ obj.data = message.data.map((e) => TimeseriesResult.toJSON(e));
8002
+ }
8003
+ return obj;
8004
+ },
8005
+ create(base) {
8006
+ return TSRequest.fromPartial(base ?? {});
8007
+ },
8008
+ fromPartial(object) {
8009
+ const message = createBaseTSRequest();
8010
+ message.data = object.data?.map((e) => TimeseriesResult.fromPartial(e)) || [];
8011
+ return message;
8012
+ },
8013
+ };
7633
8014
  function createBaseDBRequest() {
7634
8015
  return {
7635
8016
  opId: BigInt("0"),
@@ -11992,6 +12373,36 @@ export const ProcessorDefinition = {
11992
12373
  },
11993
12374
  },
11994
12375
  };
12376
+ export const ProcessorV2Definition = {
12377
+ name: "ProcessorV2",
12378
+ fullName: "processor.ProcessorV2",
12379
+ methods: {
12380
+ init: {
12381
+ name: "Init",
12382
+ requestType: Empty,
12383
+ requestStream: false,
12384
+ responseType: InitResponse,
12385
+ responseStream: false,
12386
+ options: {},
12387
+ },
12388
+ configureHandlers: {
12389
+ name: "ConfigureHandlers",
12390
+ requestType: ConfigureHandlersRequest,
12391
+ requestStream: false,
12392
+ responseType: ProcessConfigResponse,
12393
+ responseStream: false,
12394
+ options: {},
12395
+ },
12396
+ processBindingsStream: {
12397
+ name: "ProcessBindingsStream",
12398
+ requestType: ProcessStreamRequest,
12399
+ requestStream: true,
12400
+ responseType: ProcessStreamResponseV2,
12401
+ responseStream: true,
12402
+ options: {},
12403
+ },
12404
+ },
12405
+ };
11995
12406
  function toTimestamp(date) {
11996
12407
  const seconds = BigInt(Math.trunc(date.getTime() / 1_000));
11997
12408
  const nanos = (date.getTime() % 1_000) * 1_000_000;