@sentio/protos 2.57.8 → 2.57.9-rc.10

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.
@@ -946,6 +946,9 @@ export var TabularData_ColumnType;
946
946
  TabularData_ColumnType[TabularData_ColumnType["LIST"] = 3] = "LIST";
947
947
  TabularData_ColumnType[TabularData_ColumnType["TIME"] = 4] = "TIME";
948
948
  TabularData_ColumnType[TabularData_ColumnType["MAP"] = 5] = "MAP";
949
+ TabularData_ColumnType[TabularData_ColumnType["JSON"] = 6] = "JSON";
950
+ TabularData_ColumnType[TabularData_ColumnType["TOKEN"] = 7] = "TOKEN";
951
+ TabularData_ColumnType[TabularData_ColumnType["DYNAMIC"] = 8] = "DYNAMIC";
949
952
  TabularData_ColumnType[TabularData_ColumnType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
950
953
  })(TabularData_ColumnType || (TabularData_ColumnType = {}));
951
954
  export function tabularData_ColumnTypeFromJSON(object) {
@@ -968,6 +971,15 @@ export function tabularData_ColumnTypeFromJSON(object) {
968
971
  case 5:
969
972
  case "MAP":
970
973
  return TabularData_ColumnType.MAP;
974
+ case 6:
975
+ case "JSON":
976
+ return TabularData_ColumnType.JSON;
977
+ case 7:
978
+ case "TOKEN":
979
+ return TabularData_ColumnType.TOKEN;
980
+ case 8:
981
+ case "DYNAMIC":
982
+ return TabularData_ColumnType.DYNAMIC;
971
983
  case -1:
972
984
  case "UNRECOGNIZED":
973
985
  default:
@@ -988,6 +1000,12 @@ export function tabularData_ColumnTypeToJSON(object) {
988
1000
  return "TIME";
989
1001
  case TabularData_ColumnType.MAP:
990
1002
  return "MAP";
1003
+ case TabularData_ColumnType.JSON:
1004
+ return "JSON";
1005
+ case TabularData_ColumnType.TOKEN:
1006
+ return "TOKEN";
1007
+ case TabularData_ColumnType.DYNAMIC:
1008
+ return "DYNAMIC";
991
1009
  case TabularData_ColumnType.UNRECOGNIZED:
992
1010
  default:
993
1011
  return "UNRECOGNIZED";
@@ -11331,6 +11349,7 @@ function createBaseRichValue() {
11331
11349
  return {
11332
11350
  nullValue: undefined,
11333
11351
  intValue: undefined,
11352
+ int64Value: undefined,
11334
11353
  floatValue: undefined,
11335
11354
  bytesValue: undefined,
11336
11355
  boolValue: undefined,
@@ -11351,6 +11370,12 @@ export const RichValue = {
11351
11370
  if (message.intValue !== undefined) {
11352
11371
  writer.uint32(16).int32(message.intValue);
11353
11372
  }
11373
+ if (message.int64Value !== undefined) {
11374
+ if (BigInt.asIntN(64, message.int64Value) !== message.int64Value) {
11375
+ throw new globalThis.Error("value provided for field message.int64Value of type int64 too large");
11376
+ }
11377
+ writer.uint32(104).int64(message.int64Value.toString());
11378
+ }
11354
11379
  if (message.floatValue !== undefined) {
11355
11380
  writer.uint32(25).double(message.floatValue);
11356
11381
  }
@@ -11402,6 +11427,12 @@ export const RichValue = {
11402
11427
  }
11403
11428
  message.intValue = reader.int32();
11404
11429
  continue;
11430
+ case 13:
11431
+ if (tag !== 104) {
11432
+ break;
11433
+ }
11434
+ message.int64Value = longToBigint(reader.int64());
11435
+ continue;
11405
11436
  case 3:
11406
11437
  if (tag !== 25) {
11407
11438
  break;
@@ -11474,6 +11505,7 @@ export const RichValue = {
11474
11505
  return {
11475
11506
  nullValue: isSet(object.nullValue) ? richValue_NullValueFromJSON(object.nullValue) : undefined,
11476
11507
  intValue: isSet(object.intValue) ? globalThis.Number(object.intValue) : undefined,
11508
+ int64Value: isSet(object.int64Value) ? BigInt(object.int64Value) : undefined,
11477
11509
  floatValue: isSet(object.floatValue) ? globalThis.Number(object.floatValue) : undefined,
11478
11510
  bytesValue: isSet(object.bytesValue) ? bytesFromBase64(object.bytesValue) : undefined,
11479
11511
  boolValue: isSet(object.boolValue) ? globalThis.Boolean(object.boolValue) : undefined,
@@ -11494,6 +11526,9 @@ export const RichValue = {
11494
11526
  if (message.intValue !== undefined) {
11495
11527
  obj.intValue = Math.round(message.intValue);
11496
11528
  }
11529
+ if (message.int64Value !== undefined) {
11530
+ obj.int64Value = message.int64Value.toString();
11531
+ }
11497
11532
  if (message.floatValue !== undefined) {
11498
11533
  obj.floatValue = message.floatValue;
11499
11534
  }
@@ -11533,6 +11568,7 @@ export const RichValue = {
11533
11568
  const message = createBaseRichValue();
11534
11569
  message.nullValue = object.nullValue ?? undefined;
11535
11570
  message.intValue = object.intValue ?? undefined;
11571
+ message.int64Value = object.int64Value ?? undefined;
11536
11572
  message.floatValue = object.floatValue ?? undefined;
11537
11573
  message.bytesValue = object.bytesValue ?? undefined;
11538
11574
  message.boolValue = object.boolValue ?? undefined;
@@ -12019,6 +12055,276 @@ export const TokenAmount = {
12019
12055
  return message;
12020
12056
  },
12021
12057
  };
12058
+ function createBaseRequestLog() {
12059
+ return {
12060
+ requestId: "",
12061
+ endpointId: "",
12062
+ owner: "",
12063
+ slug: "",
12064
+ statusCode: 0,
12065
+ error: "",
12066
+ requestBody: new Uint8Array(0),
12067
+ requestHeader: undefined,
12068
+ responseBody: new Uint8Array(0),
12069
+ responseHeader: undefined,
12070
+ createdAt: undefined,
12071
+ duration: BigInt("0"),
12072
+ queryDuration: BigInt("0"),
12073
+ method: "",
12074
+ rpcNodeId: "",
12075
+ };
12076
+ }
12077
+ export const RequestLog = {
12078
+ encode(message, writer = _m0.Writer.create()) {
12079
+ if (message.requestId !== "") {
12080
+ writer.uint32(10).string(message.requestId);
12081
+ }
12082
+ if (message.endpointId !== "") {
12083
+ writer.uint32(18).string(message.endpointId);
12084
+ }
12085
+ if (message.owner !== "") {
12086
+ writer.uint32(26).string(message.owner);
12087
+ }
12088
+ if (message.slug !== "") {
12089
+ writer.uint32(34).string(message.slug);
12090
+ }
12091
+ if (message.statusCode !== 0) {
12092
+ writer.uint32(40).uint32(message.statusCode);
12093
+ }
12094
+ if (message.error !== "") {
12095
+ writer.uint32(50).string(message.error);
12096
+ }
12097
+ if (message.requestBody.length !== 0) {
12098
+ writer.uint32(58).bytes(message.requestBody);
12099
+ }
12100
+ if (message.requestHeader !== undefined) {
12101
+ Struct.encode(Struct.wrap(message.requestHeader), writer.uint32(66).fork()).ldelim();
12102
+ }
12103
+ if (message.responseBody.length !== 0) {
12104
+ writer.uint32(74).bytes(message.responseBody);
12105
+ }
12106
+ if (message.responseHeader !== undefined) {
12107
+ Struct.encode(Struct.wrap(message.responseHeader), writer.uint32(82).fork()).ldelim();
12108
+ }
12109
+ if (message.createdAt !== undefined) {
12110
+ Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(90).fork()).ldelim();
12111
+ }
12112
+ if (message.duration !== BigInt("0")) {
12113
+ if (BigInt.asUintN(64, message.duration) !== message.duration) {
12114
+ throw new globalThis.Error("value provided for field message.duration of type uint64 too large");
12115
+ }
12116
+ writer.uint32(96).uint64(message.duration.toString());
12117
+ }
12118
+ if (message.queryDuration !== BigInt("0")) {
12119
+ if (BigInt.asUintN(64, message.queryDuration) !== message.queryDuration) {
12120
+ throw new globalThis.Error("value provided for field message.queryDuration of type uint64 too large");
12121
+ }
12122
+ writer.uint32(104).uint64(message.queryDuration.toString());
12123
+ }
12124
+ if (message.method !== "") {
12125
+ writer.uint32(114).string(message.method);
12126
+ }
12127
+ if (message.rpcNodeId !== "") {
12128
+ writer.uint32(122).string(message.rpcNodeId);
12129
+ }
12130
+ return writer;
12131
+ },
12132
+ decode(input, length) {
12133
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
12134
+ let end = length === undefined ? reader.len : reader.pos + length;
12135
+ const message = createBaseRequestLog();
12136
+ while (reader.pos < end) {
12137
+ const tag = reader.uint32();
12138
+ switch (tag >>> 3) {
12139
+ case 1:
12140
+ if (tag !== 10) {
12141
+ break;
12142
+ }
12143
+ message.requestId = reader.string();
12144
+ continue;
12145
+ case 2:
12146
+ if (tag !== 18) {
12147
+ break;
12148
+ }
12149
+ message.endpointId = reader.string();
12150
+ continue;
12151
+ case 3:
12152
+ if (tag !== 26) {
12153
+ break;
12154
+ }
12155
+ message.owner = reader.string();
12156
+ continue;
12157
+ case 4:
12158
+ if (tag !== 34) {
12159
+ break;
12160
+ }
12161
+ message.slug = reader.string();
12162
+ continue;
12163
+ case 5:
12164
+ if (tag !== 40) {
12165
+ break;
12166
+ }
12167
+ message.statusCode = reader.uint32();
12168
+ continue;
12169
+ case 6:
12170
+ if (tag !== 50) {
12171
+ break;
12172
+ }
12173
+ message.error = reader.string();
12174
+ continue;
12175
+ case 7:
12176
+ if (tag !== 58) {
12177
+ break;
12178
+ }
12179
+ message.requestBody = reader.bytes();
12180
+ continue;
12181
+ case 8:
12182
+ if (tag !== 66) {
12183
+ break;
12184
+ }
12185
+ message.requestHeader = Struct.unwrap(Struct.decode(reader, reader.uint32()));
12186
+ continue;
12187
+ case 9:
12188
+ if (tag !== 74) {
12189
+ break;
12190
+ }
12191
+ message.responseBody = reader.bytes();
12192
+ continue;
12193
+ case 10:
12194
+ if (tag !== 82) {
12195
+ break;
12196
+ }
12197
+ message.responseHeader = Struct.unwrap(Struct.decode(reader, reader.uint32()));
12198
+ continue;
12199
+ case 11:
12200
+ if (tag !== 90) {
12201
+ break;
12202
+ }
12203
+ message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
12204
+ continue;
12205
+ case 12:
12206
+ if (tag !== 96) {
12207
+ break;
12208
+ }
12209
+ message.duration = longToBigint(reader.uint64());
12210
+ continue;
12211
+ case 13:
12212
+ if (tag !== 104) {
12213
+ break;
12214
+ }
12215
+ message.queryDuration = longToBigint(reader.uint64());
12216
+ continue;
12217
+ case 14:
12218
+ if (tag !== 114) {
12219
+ break;
12220
+ }
12221
+ message.method = reader.string();
12222
+ continue;
12223
+ case 15:
12224
+ if (tag !== 122) {
12225
+ break;
12226
+ }
12227
+ message.rpcNodeId = reader.string();
12228
+ continue;
12229
+ }
12230
+ if ((tag & 7) === 4 || tag === 0) {
12231
+ break;
12232
+ }
12233
+ reader.skipType(tag & 7);
12234
+ }
12235
+ return message;
12236
+ },
12237
+ fromJSON(object) {
12238
+ return {
12239
+ requestId: isSet(object.requestId) ? globalThis.String(object.requestId) : "",
12240
+ endpointId: isSet(object.endpointId) ? globalThis.String(object.endpointId) : "",
12241
+ owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
12242
+ slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
12243
+ statusCode: isSet(object.statusCode) ? globalThis.Number(object.statusCode) : 0,
12244
+ error: isSet(object.error) ? globalThis.String(object.error) : "",
12245
+ requestBody: isSet(object.requestBody) ? bytesFromBase64(object.requestBody) : new Uint8Array(0),
12246
+ requestHeader: isObject(object.requestHeader) ? object.requestHeader : undefined,
12247
+ responseBody: isSet(object.responseBody) ? bytesFromBase64(object.responseBody) : new Uint8Array(0),
12248
+ responseHeader: isObject(object.responseHeader) ? object.responseHeader : undefined,
12249
+ createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
12250
+ duration: isSet(object.duration) ? BigInt(object.duration) : BigInt("0"),
12251
+ queryDuration: isSet(object.queryDuration) ? BigInt(object.queryDuration) : BigInt("0"),
12252
+ method: isSet(object.method) ? globalThis.String(object.method) : "",
12253
+ rpcNodeId: isSet(object.rpcNodeId) ? globalThis.String(object.rpcNodeId) : "",
12254
+ };
12255
+ },
12256
+ toJSON(message) {
12257
+ const obj = {};
12258
+ if (message.requestId !== "") {
12259
+ obj.requestId = message.requestId;
12260
+ }
12261
+ if (message.endpointId !== "") {
12262
+ obj.endpointId = message.endpointId;
12263
+ }
12264
+ if (message.owner !== "") {
12265
+ obj.owner = message.owner;
12266
+ }
12267
+ if (message.slug !== "") {
12268
+ obj.slug = message.slug;
12269
+ }
12270
+ if (message.statusCode !== 0) {
12271
+ obj.statusCode = Math.round(message.statusCode);
12272
+ }
12273
+ if (message.error !== "") {
12274
+ obj.error = message.error;
12275
+ }
12276
+ if (message.requestBody.length !== 0) {
12277
+ obj.requestBody = base64FromBytes(message.requestBody);
12278
+ }
12279
+ if (message.requestHeader !== undefined) {
12280
+ obj.requestHeader = message.requestHeader;
12281
+ }
12282
+ if (message.responseBody.length !== 0) {
12283
+ obj.responseBody = base64FromBytes(message.responseBody);
12284
+ }
12285
+ if (message.responseHeader !== undefined) {
12286
+ obj.responseHeader = message.responseHeader;
12287
+ }
12288
+ if (message.createdAt !== undefined) {
12289
+ obj.createdAt = message.createdAt.toISOString();
12290
+ }
12291
+ if (message.duration !== BigInt("0")) {
12292
+ obj.duration = message.duration.toString();
12293
+ }
12294
+ if (message.queryDuration !== BigInt("0")) {
12295
+ obj.queryDuration = message.queryDuration.toString();
12296
+ }
12297
+ if (message.method !== "") {
12298
+ obj.method = message.method;
12299
+ }
12300
+ if (message.rpcNodeId !== "") {
12301
+ obj.rpcNodeId = message.rpcNodeId;
12302
+ }
12303
+ return obj;
12304
+ },
12305
+ create(base) {
12306
+ return RequestLog.fromPartial(base ?? {});
12307
+ },
12308
+ fromPartial(object) {
12309
+ const message = createBaseRequestLog();
12310
+ message.requestId = object.requestId ?? "";
12311
+ message.endpointId = object.endpointId ?? "";
12312
+ message.owner = object.owner ?? "";
12313
+ message.slug = object.slug ?? "";
12314
+ message.statusCode = object.statusCode ?? 0;
12315
+ message.error = object.error ?? "";
12316
+ message.requestBody = object.requestBody ?? new Uint8Array(0);
12317
+ message.requestHeader = object.requestHeader ?? undefined;
12318
+ message.responseBody = object.responseBody ?? new Uint8Array(0);
12319
+ message.responseHeader = object.responseHeader ?? undefined;
12320
+ message.createdAt = object.createdAt ?? undefined;
12321
+ message.duration = object.duration ?? BigInt("0");
12322
+ message.queryDuration = object.queryDuration ?? BigInt("0");
12323
+ message.method = object.method ?? "";
12324
+ message.rpcNodeId = object.rpcNodeId ?? "";
12325
+ return message;
12326
+ },
12327
+ };
12022
12328
  function bytesFromBase64(b64) {
12023
12329
  if (globalThis.Buffer) {
12024
12330
  return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));