@sentio/protos 2.45.3 → 2.46.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/lib/processor/protos/processor.d.ts +2 -0
- package/lib/processor/protos/processor.d.ts.map +1 -1
- package/lib/processor/protos/processor.js +23 -0
- package/lib/processor/protos/processor.js.map +1 -1
- package/lib/service/common/protos/common.d.ts +30 -0
- package/lib/service/common/protos/common.d.ts.map +1 -1
- package/lib/service/common/protos/common.js +206 -1
- package/lib/service/common/protos/common.js.map +1 -1
- package/lib/service/price/protos/price.d.ts +5 -0
- package/lib/service/price/protos/price.d.ts.map +1 -1
- package/lib/service/price/protos/price.js +10 -2
- package/lib/service/price/protos/price.js.map +1 -1
- package/package.json +1 -1
- package/src/processor/protos/processor.ts +25 -0
- package/src/service/common/protos/common.ts +243 -1
- package/src/service/price/protos/price.ts +10 -2
|
@@ -418,6 +418,7 @@ export function project_VisibilityToJSON(object: Project_Visibility): string {
|
|
|
418
418
|
export enum Project_Type {
|
|
419
419
|
SENTIO = 0,
|
|
420
420
|
SUBGRAPH = 1,
|
|
421
|
+
ACTION = 2,
|
|
421
422
|
UNRECOGNIZED = -1,
|
|
422
423
|
}
|
|
423
424
|
|
|
@@ -429,6 +430,9 @@ export function project_TypeFromJSON(object: any): Project_Type {
|
|
|
429
430
|
case 1:
|
|
430
431
|
case "SUBGRAPH":
|
|
431
432
|
return Project_Type.SUBGRAPH;
|
|
433
|
+
case 2:
|
|
434
|
+
case "ACTION":
|
|
435
|
+
return Project_Type.ACTION;
|
|
432
436
|
case -1:
|
|
433
437
|
case "UNRECOGNIZED":
|
|
434
438
|
default:
|
|
@@ -442,6 +446,8 @@ export function project_TypeToJSON(object: Project_Type): string {
|
|
|
442
446
|
return "SENTIO";
|
|
443
447
|
case Project_Type.SUBGRAPH:
|
|
444
448
|
return "SUBGRAPH";
|
|
449
|
+
case Project_Type.ACTION:
|
|
450
|
+
return "ACTION";
|
|
445
451
|
case Project_Type.UNRECOGNIZED:
|
|
446
452
|
default:
|
|
447
453
|
return "UNRECOGNIZED";
|
|
@@ -545,6 +551,7 @@ export interface ApiKey {
|
|
|
545
551
|
updatedAt: bigint;
|
|
546
552
|
expiresAt: bigint;
|
|
547
553
|
source: string;
|
|
554
|
+
ownerType: string;
|
|
548
555
|
}
|
|
549
556
|
|
|
550
557
|
export interface TimeRangeLite {
|
|
@@ -1392,6 +1399,18 @@ export interface UserUsage {
|
|
|
1392
1399
|
tier: Tier;
|
|
1393
1400
|
projects: number;
|
|
1394
1401
|
alerts: number;
|
|
1402
|
+
usageByProjects: { [key: string]: UserUsage_ProjectUsage };
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
export interface UserUsage_ProjectUsage {
|
|
1406
|
+
owner: string;
|
|
1407
|
+
slug: string;
|
|
1408
|
+
cost: bigint;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
export interface UserUsage_UsageByProjectsEntry {
|
|
1412
|
+
key: string;
|
|
1413
|
+
value: UserUsage_ProjectUsage | undefined;
|
|
1395
1414
|
}
|
|
1396
1415
|
|
|
1397
1416
|
export interface CoinID {
|
|
@@ -4468,6 +4487,7 @@ function createBaseApiKey(): ApiKey {
|
|
|
4468
4487
|
updatedAt: BigInt("0"),
|
|
4469
4488
|
expiresAt: BigInt("0"),
|
|
4470
4489
|
source: "",
|
|
4490
|
+
ownerType: "",
|
|
4471
4491
|
};
|
|
4472
4492
|
}
|
|
4473
4493
|
|
|
@@ -4506,6 +4526,9 @@ export const ApiKey = {
|
|
|
4506
4526
|
if (message.source !== "") {
|
|
4507
4527
|
writer.uint32(74).string(message.source);
|
|
4508
4528
|
}
|
|
4529
|
+
if (message.ownerType !== "") {
|
|
4530
|
+
writer.uint32(82).string(message.ownerType);
|
|
4531
|
+
}
|
|
4509
4532
|
return writer;
|
|
4510
4533
|
},
|
|
4511
4534
|
|
|
@@ -4572,6 +4595,13 @@ export const ApiKey = {
|
|
|
4572
4595
|
|
|
4573
4596
|
message.source = reader.string();
|
|
4574
4597
|
continue;
|
|
4598
|
+
case 10:
|
|
4599
|
+
if (tag !== 82) {
|
|
4600
|
+
break;
|
|
4601
|
+
}
|
|
4602
|
+
|
|
4603
|
+
message.ownerType = reader.string();
|
|
4604
|
+
continue;
|
|
4575
4605
|
}
|
|
4576
4606
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4577
4607
|
break;
|
|
@@ -4591,6 +4621,7 @@ export const ApiKey = {
|
|
|
4591
4621
|
updatedAt: isSet(object.updatedAt) ? BigInt(object.updatedAt) : BigInt("0"),
|
|
4592
4622
|
expiresAt: isSet(object.expiresAt) ? BigInt(object.expiresAt) : BigInt("0"),
|
|
4593
4623
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
|
4624
|
+
ownerType: isSet(object.ownerType) ? globalThis.String(object.ownerType) : "",
|
|
4594
4625
|
};
|
|
4595
4626
|
},
|
|
4596
4627
|
|
|
@@ -4620,6 +4651,9 @@ export const ApiKey = {
|
|
|
4620
4651
|
if (message.source !== "") {
|
|
4621
4652
|
obj.source = message.source;
|
|
4622
4653
|
}
|
|
4654
|
+
if (message.ownerType !== "") {
|
|
4655
|
+
obj.ownerType = message.ownerType;
|
|
4656
|
+
}
|
|
4623
4657
|
return obj;
|
|
4624
4658
|
},
|
|
4625
4659
|
|
|
@@ -4636,6 +4670,7 @@ export const ApiKey = {
|
|
|
4636
4670
|
message.updatedAt = object.updatedAt ?? BigInt("0");
|
|
4637
4671
|
message.expiresAt = object.expiresAt ?? BigInt("0");
|
|
4638
4672
|
message.source = object.source ?? "";
|
|
4673
|
+
message.ownerType = object.ownerType ?? "";
|
|
4639
4674
|
return message;
|
|
4640
4675
|
},
|
|
4641
4676
|
};
|
|
@@ -9053,7 +9088,7 @@ export const DashboardSharingRequest = {
|
|
|
9053
9088
|
};
|
|
9054
9089
|
|
|
9055
9090
|
function createBaseUserUsage(): UserUsage {
|
|
9056
|
-
return { tier: 0, projects: 0, alerts: 0 };
|
|
9091
|
+
return { tier: 0, projects: 0, alerts: 0, usageByProjects: {} };
|
|
9057
9092
|
}
|
|
9058
9093
|
|
|
9059
9094
|
export const UserUsage = {
|
|
@@ -9067,6 +9102,9 @@ export const UserUsage = {
|
|
|
9067
9102
|
if (message.alerts !== 0) {
|
|
9068
9103
|
writer.uint32(24).int32(message.alerts);
|
|
9069
9104
|
}
|
|
9105
|
+
Object.entries(message.usageByProjects).forEach(([key, value]) => {
|
|
9106
|
+
UserUsage_UsageByProjectsEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).ldelim();
|
|
9107
|
+
});
|
|
9070
9108
|
return writer;
|
|
9071
9109
|
},
|
|
9072
9110
|
|
|
@@ -9098,6 +9136,16 @@ export const UserUsage = {
|
|
|
9098
9136
|
|
|
9099
9137
|
message.alerts = reader.int32();
|
|
9100
9138
|
continue;
|
|
9139
|
+
case 4:
|
|
9140
|
+
if (tag !== 34) {
|
|
9141
|
+
break;
|
|
9142
|
+
}
|
|
9143
|
+
|
|
9144
|
+
const entry4 = UserUsage_UsageByProjectsEntry.decode(reader, reader.uint32());
|
|
9145
|
+
if (entry4.value !== undefined) {
|
|
9146
|
+
message.usageByProjects[entry4.key] = entry4.value;
|
|
9147
|
+
}
|
|
9148
|
+
continue;
|
|
9101
9149
|
}
|
|
9102
9150
|
if ((tag & 7) === 4 || tag === 0) {
|
|
9103
9151
|
break;
|
|
@@ -9112,6 +9160,15 @@ export const UserUsage = {
|
|
|
9112
9160
|
tier: isSet(object.tier) ? tierFromJSON(object.tier) : 0,
|
|
9113
9161
|
projects: isSet(object.projects) ? globalThis.Number(object.projects) : 0,
|
|
9114
9162
|
alerts: isSet(object.alerts) ? globalThis.Number(object.alerts) : 0,
|
|
9163
|
+
usageByProjects: isObject(object.usageByProjects)
|
|
9164
|
+
? Object.entries(object.usageByProjects).reduce<{ [key: string]: UserUsage_ProjectUsage }>(
|
|
9165
|
+
(acc, [key, value]) => {
|
|
9166
|
+
acc[key] = UserUsage_ProjectUsage.fromJSON(value);
|
|
9167
|
+
return acc;
|
|
9168
|
+
},
|
|
9169
|
+
{},
|
|
9170
|
+
)
|
|
9171
|
+
: {},
|
|
9115
9172
|
};
|
|
9116
9173
|
},
|
|
9117
9174
|
|
|
@@ -9126,6 +9183,15 @@ export const UserUsage = {
|
|
|
9126
9183
|
if (message.alerts !== 0) {
|
|
9127
9184
|
obj.alerts = Math.round(message.alerts);
|
|
9128
9185
|
}
|
|
9186
|
+
if (message.usageByProjects) {
|
|
9187
|
+
const entries = Object.entries(message.usageByProjects);
|
|
9188
|
+
if (entries.length > 0) {
|
|
9189
|
+
obj.usageByProjects = {};
|
|
9190
|
+
entries.forEach(([k, v]) => {
|
|
9191
|
+
obj.usageByProjects[k] = UserUsage_ProjectUsage.toJSON(v);
|
|
9192
|
+
});
|
|
9193
|
+
}
|
|
9194
|
+
}
|
|
9129
9195
|
return obj;
|
|
9130
9196
|
},
|
|
9131
9197
|
|
|
@@ -9137,6 +9203,182 @@ export const UserUsage = {
|
|
|
9137
9203
|
message.tier = object.tier ?? 0;
|
|
9138
9204
|
message.projects = object.projects ?? 0;
|
|
9139
9205
|
message.alerts = object.alerts ?? 0;
|
|
9206
|
+
message.usageByProjects = Object.entries(object.usageByProjects ?? {}).reduce<
|
|
9207
|
+
{ [key: string]: UserUsage_ProjectUsage }
|
|
9208
|
+
>((acc, [key, value]) => {
|
|
9209
|
+
if (value !== undefined) {
|
|
9210
|
+
acc[key] = UserUsage_ProjectUsage.fromPartial(value);
|
|
9211
|
+
}
|
|
9212
|
+
return acc;
|
|
9213
|
+
}, {});
|
|
9214
|
+
return message;
|
|
9215
|
+
},
|
|
9216
|
+
};
|
|
9217
|
+
|
|
9218
|
+
function createBaseUserUsage_ProjectUsage(): UserUsage_ProjectUsage {
|
|
9219
|
+
return { owner: "", slug: "", cost: BigInt("0") };
|
|
9220
|
+
}
|
|
9221
|
+
|
|
9222
|
+
export const UserUsage_ProjectUsage = {
|
|
9223
|
+
encode(message: UserUsage_ProjectUsage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
9224
|
+
if (message.owner !== "") {
|
|
9225
|
+
writer.uint32(10).string(message.owner);
|
|
9226
|
+
}
|
|
9227
|
+
if (message.slug !== "") {
|
|
9228
|
+
writer.uint32(18).string(message.slug);
|
|
9229
|
+
}
|
|
9230
|
+
if (message.cost !== BigInt("0")) {
|
|
9231
|
+
if (BigInt.asUintN(64, message.cost) !== message.cost) {
|
|
9232
|
+
throw new globalThis.Error("value provided for field message.cost of type uint64 too large");
|
|
9233
|
+
}
|
|
9234
|
+
writer.uint32(24).uint64(message.cost.toString());
|
|
9235
|
+
}
|
|
9236
|
+
return writer;
|
|
9237
|
+
},
|
|
9238
|
+
|
|
9239
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserUsage_ProjectUsage {
|
|
9240
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9241
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9242
|
+
const message = createBaseUserUsage_ProjectUsage();
|
|
9243
|
+
while (reader.pos < end) {
|
|
9244
|
+
const tag = reader.uint32();
|
|
9245
|
+
switch (tag >>> 3) {
|
|
9246
|
+
case 1:
|
|
9247
|
+
if (tag !== 10) {
|
|
9248
|
+
break;
|
|
9249
|
+
}
|
|
9250
|
+
|
|
9251
|
+
message.owner = reader.string();
|
|
9252
|
+
continue;
|
|
9253
|
+
case 2:
|
|
9254
|
+
if (tag !== 18) {
|
|
9255
|
+
break;
|
|
9256
|
+
}
|
|
9257
|
+
|
|
9258
|
+
message.slug = reader.string();
|
|
9259
|
+
continue;
|
|
9260
|
+
case 3:
|
|
9261
|
+
if (tag !== 24) {
|
|
9262
|
+
break;
|
|
9263
|
+
}
|
|
9264
|
+
|
|
9265
|
+
message.cost = longToBigint(reader.uint64() as Long);
|
|
9266
|
+
continue;
|
|
9267
|
+
}
|
|
9268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9269
|
+
break;
|
|
9270
|
+
}
|
|
9271
|
+
reader.skipType(tag & 7);
|
|
9272
|
+
}
|
|
9273
|
+
return message;
|
|
9274
|
+
},
|
|
9275
|
+
|
|
9276
|
+
fromJSON(object: any): UserUsage_ProjectUsage {
|
|
9277
|
+
return {
|
|
9278
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
9279
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
9280
|
+
cost: isSet(object.cost) ? BigInt(object.cost) : BigInt("0"),
|
|
9281
|
+
};
|
|
9282
|
+
},
|
|
9283
|
+
|
|
9284
|
+
toJSON(message: UserUsage_ProjectUsage): unknown {
|
|
9285
|
+
const obj: any = {};
|
|
9286
|
+
if (message.owner !== "") {
|
|
9287
|
+
obj.owner = message.owner;
|
|
9288
|
+
}
|
|
9289
|
+
if (message.slug !== "") {
|
|
9290
|
+
obj.slug = message.slug;
|
|
9291
|
+
}
|
|
9292
|
+
if (message.cost !== BigInt("0")) {
|
|
9293
|
+
obj.cost = message.cost.toString();
|
|
9294
|
+
}
|
|
9295
|
+
return obj;
|
|
9296
|
+
},
|
|
9297
|
+
|
|
9298
|
+
create(base?: DeepPartial<UserUsage_ProjectUsage>): UserUsage_ProjectUsage {
|
|
9299
|
+
return UserUsage_ProjectUsage.fromPartial(base ?? {});
|
|
9300
|
+
},
|
|
9301
|
+
fromPartial(object: DeepPartial<UserUsage_ProjectUsage>): UserUsage_ProjectUsage {
|
|
9302
|
+
const message = createBaseUserUsage_ProjectUsage();
|
|
9303
|
+
message.owner = object.owner ?? "";
|
|
9304
|
+
message.slug = object.slug ?? "";
|
|
9305
|
+
message.cost = object.cost ?? BigInt("0");
|
|
9306
|
+
return message;
|
|
9307
|
+
},
|
|
9308
|
+
};
|
|
9309
|
+
|
|
9310
|
+
function createBaseUserUsage_UsageByProjectsEntry(): UserUsage_UsageByProjectsEntry {
|
|
9311
|
+
return { key: "", value: undefined };
|
|
9312
|
+
}
|
|
9313
|
+
|
|
9314
|
+
export const UserUsage_UsageByProjectsEntry = {
|
|
9315
|
+
encode(message: UserUsage_UsageByProjectsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
|
9316
|
+
if (message.key !== "") {
|
|
9317
|
+
writer.uint32(10).string(message.key);
|
|
9318
|
+
}
|
|
9319
|
+
if (message.value !== undefined) {
|
|
9320
|
+
UserUsage_ProjectUsage.encode(message.value, writer.uint32(18).fork()).ldelim();
|
|
9321
|
+
}
|
|
9322
|
+
return writer;
|
|
9323
|
+
},
|
|
9324
|
+
|
|
9325
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): UserUsage_UsageByProjectsEntry {
|
|
9326
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
9327
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
9328
|
+
const message = createBaseUserUsage_UsageByProjectsEntry();
|
|
9329
|
+
while (reader.pos < end) {
|
|
9330
|
+
const tag = reader.uint32();
|
|
9331
|
+
switch (tag >>> 3) {
|
|
9332
|
+
case 1:
|
|
9333
|
+
if (tag !== 10) {
|
|
9334
|
+
break;
|
|
9335
|
+
}
|
|
9336
|
+
|
|
9337
|
+
message.key = reader.string();
|
|
9338
|
+
continue;
|
|
9339
|
+
case 2:
|
|
9340
|
+
if (tag !== 18) {
|
|
9341
|
+
break;
|
|
9342
|
+
}
|
|
9343
|
+
|
|
9344
|
+
message.value = UserUsage_ProjectUsage.decode(reader, reader.uint32());
|
|
9345
|
+
continue;
|
|
9346
|
+
}
|
|
9347
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
9348
|
+
break;
|
|
9349
|
+
}
|
|
9350
|
+
reader.skipType(tag & 7);
|
|
9351
|
+
}
|
|
9352
|
+
return message;
|
|
9353
|
+
},
|
|
9354
|
+
|
|
9355
|
+
fromJSON(object: any): UserUsage_UsageByProjectsEntry {
|
|
9356
|
+
return {
|
|
9357
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
9358
|
+
value: isSet(object.value) ? UserUsage_ProjectUsage.fromJSON(object.value) : undefined,
|
|
9359
|
+
};
|
|
9360
|
+
},
|
|
9361
|
+
|
|
9362
|
+
toJSON(message: UserUsage_UsageByProjectsEntry): unknown {
|
|
9363
|
+
const obj: any = {};
|
|
9364
|
+
if (message.key !== "") {
|
|
9365
|
+
obj.key = message.key;
|
|
9366
|
+
}
|
|
9367
|
+
if (message.value !== undefined) {
|
|
9368
|
+
obj.value = UserUsage_ProjectUsage.toJSON(message.value);
|
|
9369
|
+
}
|
|
9370
|
+
return obj;
|
|
9371
|
+
},
|
|
9372
|
+
|
|
9373
|
+
create(base?: DeepPartial<UserUsage_UsageByProjectsEntry>): UserUsage_UsageByProjectsEntry {
|
|
9374
|
+
return UserUsage_UsageByProjectsEntry.fromPartial(base ?? {});
|
|
9375
|
+
},
|
|
9376
|
+
fromPartial(object: DeepPartial<UserUsage_UsageByProjectsEntry>): UserUsage_UsageByProjectsEntry {
|
|
9377
|
+
const message = createBaseUserUsage_UsageByProjectsEntry();
|
|
9378
|
+
message.key = object.key ?? "";
|
|
9379
|
+
message.value = (object.value !== undefined && object.value !== null)
|
|
9380
|
+
? UserUsage_ProjectUsage.fromPartial(object.value)
|
|
9381
|
+
: undefined;
|
|
9140
9382
|
return message;
|
|
9141
9383
|
},
|
|
9142
9384
|
};
|
|
@@ -1454,6 +1454,7 @@ export const PriceServiceDefinition = {
|
|
|
1454
1454
|
responseStream: false,
|
|
1455
1455
|
options: {
|
|
1456
1456
|
_unknownFields: {
|
|
1457
|
+
8338: [new Uint8Array([0])],
|
|
1457
1458
|
578365826: [new Uint8Array([16, 18, 14, 47, 97, 112, 105, 47, 118, 49, 47, 112, 114, 105, 99, 101, 115])],
|
|
1458
1459
|
},
|
|
1459
1460
|
},
|
|
@@ -1466,10 +1467,11 @@ export const PriceServiceDefinition = {
|
|
|
1466
1467
|
responseStream: false,
|
|
1467
1468
|
options: {
|
|
1468
1469
|
_unknownFields: {
|
|
1470
|
+
8338: [new Uint8Array([0])],
|
|
1469
1471
|
578365826: [
|
|
1470
1472
|
new Uint8Array([
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
+
25,
|
|
1474
|
+
34,
|
|
1473
1475
|
20,
|
|
1474
1476
|
47,
|
|
1475
1477
|
97,
|
|
@@ -1491,6 +1493,9 @@ export const PriceServiceDefinition = {
|
|
|
1491
1493
|
116,
|
|
1492
1494
|
99,
|
|
1493
1495
|
104,
|
|
1496
|
+
58,
|
|
1497
|
+
1,
|
|
1498
|
+
42,
|
|
1494
1499
|
]),
|
|
1495
1500
|
],
|
|
1496
1501
|
},
|
|
@@ -1504,6 +1509,7 @@ export const PriceServiceDefinition = {
|
|
|
1504
1509
|
responseStream: false,
|
|
1505
1510
|
options: {
|
|
1506
1511
|
_unknownFields: {
|
|
1512
|
+
8338: [new Uint8Array([16, 42, 14, 80, 114, 105, 99, 101, 76, 105, 115, 116, 67, 111, 105, 110, 115])],
|
|
1507
1513
|
578365826: [
|
|
1508
1514
|
new Uint8Array([
|
|
1509
1515
|
22,
|
|
@@ -1542,6 +1548,7 @@ export const PriceServiceDefinition = {
|
|
|
1542
1548
|
responseStream: false,
|
|
1543
1549
|
options: {
|
|
1544
1550
|
_unknownFields: {
|
|
1551
|
+
8338: [new Uint8Array([0])],
|
|
1545
1552
|
578365826: [
|
|
1546
1553
|
new Uint8Array([
|
|
1547
1554
|
29,
|
|
@@ -1587,6 +1594,7 @@ export const PriceServiceDefinition = {
|
|
|
1587
1594
|
responseStream: false,
|
|
1588
1595
|
options: {
|
|
1589
1596
|
_unknownFields: {
|
|
1597
|
+
578365818: [new Uint8Array([10, 18, 8, 73, 78, 84, 69, 82, 78, 65, 76])],
|
|
1590
1598
|
578365826: [
|
|
1591
1599
|
new Uint8Array([
|
|
1592
1600
|
28,
|