@sentio/runtime 2.36.0-rc.9 → 2.36.0
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/full-service.d.ts +4 -0
- package/lib/full-service.d.ts.map +1 -1
- package/lib/full-service.js +2 -1
- package/lib/full-service.js.map +1 -1
- package/lib/gen/google/protobuf/struct.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +13 -0
- package/lib/gen/processor/protos/processor.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.js +87 -4
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/lib/gen/service/common/protos/common.d.ts +54 -0
- package/lib/gen/service/common/protos/common.d.ts.map +1 -1
- package/lib/gen/service/common/protos/common.js +407 -4
- package/lib/gen/service/common/protos/common.js.map +1 -1
- package/package.json +6 -9
- package/src/full-service.ts +2 -1
- package/src/gen/processor/protos/processor.ts +98 -0
- package/src/gen/service/common/protos/common.ts +454 -0
@@ -157,6 +157,103 @@ export function permissionToJSON(object) {
|
|
157
157
|
return "UNRECOGNIZED";
|
158
158
|
}
|
159
159
|
}
|
160
|
+
export var NotificationType;
|
161
|
+
(function (NotificationType) {
|
162
|
+
NotificationType[NotificationType["GENERAL"] = 0] = "GENERAL";
|
163
|
+
NotificationType[NotificationType["PROCESSOR_UPLOAD_FAILED"] = 101] = "PROCESSOR_UPLOAD_FAILED";
|
164
|
+
NotificationType[NotificationType["PROCESSOR_UPLOAD_SUCCESS"] = 102] = "PROCESSOR_UPLOAD_SUCCESS";
|
165
|
+
NotificationType[NotificationType["PROCESSOR_OBSOLETED"] = 103] = "PROCESSOR_OBSOLETED";
|
166
|
+
NotificationType[NotificationType["PROCESSOR_STOPPED"] = 104] = "PROCESSOR_STOPPED";
|
167
|
+
NotificationType[NotificationType["PROCESSOR_ACTIVATED"] = 105] = "PROCESSOR_ACTIVATED";
|
168
|
+
NotificationType[NotificationType["PROCESSOR_GENERAL"] = 106] = "PROCESSOR_GENERAL";
|
169
|
+
NotificationType[NotificationType["PROCESSOR_ERROR"] = 107] = "PROCESSOR_ERROR";
|
170
|
+
NotificationType[NotificationType["EXPORT_TASK_FAILED"] = 201] = "EXPORT_TASK_FAILED";
|
171
|
+
NotificationType[NotificationType["EXPORT_TASK_SUCCESS"] = 202] = "EXPORT_TASK_SUCCESS";
|
172
|
+
NotificationType[NotificationType["BILLING_INVOICE"] = 301] = "BILLING_INVOICE";
|
173
|
+
NotificationType[NotificationType["BILLING_PAYMENT"] = 302] = "BILLING_PAYMENT";
|
174
|
+
NotificationType[NotificationType["BILLING_SUBSCRIPTION"] = 303] = "BILLING_SUBSCRIPTION";
|
175
|
+
NotificationType[NotificationType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
176
|
+
})(NotificationType || (NotificationType = {}));
|
177
|
+
export function notificationTypeFromJSON(object) {
|
178
|
+
switch (object) {
|
179
|
+
case 0:
|
180
|
+
case "GENERAL":
|
181
|
+
return NotificationType.GENERAL;
|
182
|
+
case 101:
|
183
|
+
case "PROCESSOR_UPLOAD_FAILED":
|
184
|
+
return NotificationType.PROCESSOR_UPLOAD_FAILED;
|
185
|
+
case 102:
|
186
|
+
case "PROCESSOR_UPLOAD_SUCCESS":
|
187
|
+
return NotificationType.PROCESSOR_UPLOAD_SUCCESS;
|
188
|
+
case 103:
|
189
|
+
case "PROCESSOR_OBSOLETED":
|
190
|
+
return NotificationType.PROCESSOR_OBSOLETED;
|
191
|
+
case 104:
|
192
|
+
case "PROCESSOR_STOPPED":
|
193
|
+
return NotificationType.PROCESSOR_STOPPED;
|
194
|
+
case 105:
|
195
|
+
case "PROCESSOR_ACTIVATED":
|
196
|
+
return NotificationType.PROCESSOR_ACTIVATED;
|
197
|
+
case 106:
|
198
|
+
case "PROCESSOR_GENERAL":
|
199
|
+
return NotificationType.PROCESSOR_GENERAL;
|
200
|
+
case 107:
|
201
|
+
case "PROCESSOR_ERROR":
|
202
|
+
return NotificationType.PROCESSOR_ERROR;
|
203
|
+
case 201:
|
204
|
+
case "EXPORT_TASK_FAILED":
|
205
|
+
return NotificationType.EXPORT_TASK_FAILED;
|
206
|
+
case 202:
|
207
|
+
case "EXPORT_TASK_SUCCESS":
|
208
|
+
return NotificationType.EXPORT_TASK_SUCCESS;
|
209
|
+
case 301:
|
210
|
+
case "BILLING_INVOICE":
|
211
|
+
return NotificationType.BILLING_INVOICE;
|
212
|
+
case 302:
|
213
|
+
case "BILLING_PAYMENT":
|
214
|
+
return NotificationType.BILLING_PAYMENT;
|
215
|
+
case 303:
|
216
|
+
case "BILLING_SUBSCRIPTION":
|
217
|
+
return NotificationType.BILLING_SUBSCRIPTION;
|
218
|
+
case -1:
|
219
|
+
case "UNRECOGNIZED":
|
220
|
+
default:
|
221
|
+
return NotificationType.UNRECOGNIZED;
|
222
|
+
}
|
223
|
+
}
|
224
|
+
export function notificationTypeToJSON(object) {
|
225
|
+
switch (object) {
|
226
|
+
case NotificationType.GENERAL:
|
227
|
+
return "GENERAL";
|
228
|
+
case NotificationType.PROCESSOR_UPLOAD_FAILED:
|
229
|
+
return "PROCESSOR_UPLOAD_FAILED";
|
230
|
+
case NotificationType.PROCESSOR_UPLOAD_SUCCESS:
|
231
|
+
return "PROCESSOR_UPLOAD_SUCCESS";
|
232
|
+
case NotificationType.PROCESSOR_OBSOLETED:
|
233
|
+
return "PROCESSOR_OBSOLETED";
|
234
|
+
case NotificationType.PROCESSOR_STOPPED:
|
235
|
+
return "PROCESSOR_STOPPED";
|
236
|
+
case NotificationType.PROCESSOR_ACTIVATED:
|
237
|
+
return "PROCESSOR_ACTIVATED";
|
238
|
+
case NotificationType.PROCESSOR_GENERAL:
|
239
|
+
return "PROCESSOR_GENERAL";
|
240
|
+
case NotificationType.PROCESSOR_ERROR:
|
241
|
+
return "PROCESSOR_ERROR";
|
242
|
+
case NotificationType.EXPORT_TASK_FAILED:
|
243
|
+
return "EXPORT_TASK_FAILED";
|
244
|
+
case NotificationType.EXPORT_TASK_SUCCESS:
|
245
|
+
return "EXPORT_TASK_SUCCESS";
|
246
|
+
case NotificationType.BILLING_INVOICE:
|
247
|
+
return "BILLING_INVOICE";
|
248
|
+
case NotificationType.BILLING_PAYMENT:
|
249
|
+
return "BILLING_PAYMENT";
|
250
|
+
case NotificationType.BILLING_SUBSCRIPTION:
|
251
|
+
return "BILLING_SUBSCRIPTION";
|
252
|
+
case NotificationType.UNRECOGNIZED:
|
253
|
+
default:
|
254
|
+
return "UNRECOGNIZED";
|
255
|
+
}
|
256
|
+
}
|
160
257
|
export var User_AccountStatus;
|
161
258
|
(function (User_AccountStatus) {
|
162
259
|
User_AccountStatus[User_AccountStatus["PENDING"] = 0] = "PENDING";
|
@@ -10304,14 +10401,320 @@ export const SystemSQLQuery_Aggregation_AggregateProperties = {
|
|
10304
10401
|
return message;
|
10305
10402
|
},
|
10306
10403
|
};
|
10404
|
+
function createBaseNotification() {
|
10405
|
+
return {
|
10406
|
+
id: "",
|
10407
|
+
projectId: "",
|
10408
|
+
source: "",
|
10409
|
+
level: "",
|
10410
|
+
message: "",
|
10411
|
+
createdAt: undefined,
|
10412
|
+
type: 0,
|
10413
|
+
ownerId: "",
|
10414
|
+
owner: undefined,
|
10415
|
+
project: undefined,
|
10416
|
+
attributes: {},
|
10417
|
+
read: false,
|
10418
|
+
};
|
10419
|
+
}
|
10420
|
+
export const Notification = {
|
10421
|
+
encode(message, writer = _m0.Writer.create()) {
|
10422
|
+
if (message.id !== "") {
|
10423
|
+
writer.uint32(10).string(message.id);
|
10424
|
+
}
|
10425
|
+
if (message.projectId !== "") {
|
10426
|
+
writer.uint32(18).string(message.projectId);
|
10427
|
+
}
|
10428
|
+
if (message.source !== "") {
|
10429
|
+
writer.uint32(26).string(message.source);
|
10430
|
+
}
|
10431
|
+
if (message.level !== "") {
|
10432
|
+
writer.uint32(34).string(message.level);
|
10433
|
+
}
|
10434
|
+
if (message.message !== "") {
|
10435
|
+
writer.uint32(42).string(message.message);
|
10436
|
+
}
|
10437
|
+
if (message.createdAt !== undefined) {
|
10438
|
+
Timestamp.encode(toTimestamp(message.createdAt), writer.uint32(50).fork()).ldelim();
|
10439
|
+
}
|
10440
|
+
if (message.type !== 0) {
|
10441
|
+
writer.uint32(64).int32(message.type);
|
10442
|
+
}
|
10443
|
+
if (message.ownerId !== "") {
|
10444
|
+
writer.uint32(74).string(message.ownerId);
|
10445
|
+
}
|
10446
|
+
if (message.owner !== undefined) {
|
10447
|
+
Owner.encode(message.owner, writer.uint32(82).fork()).ldelim();
|
10448
|
+
}
|
10449
|
+
if (message.project !== undefined) {
|
10450
|
+
Project.encode(message.project, writer.uint32(90).fork()).ldelim();
|
10451
|
+
}
|
10452
|
+
Object.entries(message.attributes).forEach(([key, value]) => {
|
10453
|
+
Notification_AttributesEntry.encode({ key: key, value }, writer.uint32(98).fork()).ldelim();
|
10454
|
+
});
|
10455
|
+
if (message.read !== false) {
|
10456
|
+
writer.uint32(104).bool(message.read);
|
10457
|
+
}
|
10458
|
+
return writer;
|
10459
|
+
},
|
10460
|
+
decode(input, length) {
|
10461
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
10462
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
10463
|
+
const message = createBaseNotification();
|
10464
|
+
while (reader.pos < end) {
|
10465
|
+
const tag = reader.uint32();
|
10466
|
+
switch (tag >>> 3) {
|
10467
|
+
case 1:
|
10468
|
+
if (tag !== 10) {
|
10469
|
+
break;
|
10470
|
+
}
|
10471
|
+
message.id = reader.string();
|
10472
|
+
continue;
|
10473
|
+
case 2:
|
10474
|
+
if (tag !== 18) {
|
10475
|
+
break;
|
10476
|
+
}
|
10477
|
+
message.projectId = reader.string();
|
10478
|
+
continue;
|
10479
|
+
case 3:
|
10480
|
+
if (tag !== 26) {
|
10481
|
+
break;
|
10482
|
+
}
|
10483
|
+
message.source = reader.string();
|
10484
|
+
continue;
|
10485
|
+
case 4:
|
10486
|
+
if (tag !== 34) {
|
10487
|
+
break;
|
10488
|
+
}
|
10489
|
+
message.level = reader.string();
|
10490
|
+
continue;
|
10491
|
+
case 5:
|
10492
|
+
if (tag !== 42) {
|
10493
|
+
break;
|
10494
|
+
}
|
10495
|
+
message.message = reader.string();
|
10496
|
+
continue;
|
10497
|
+
case 6:
|
10498
|
+
if (tag !== 50) {
|
10499
|
+
break;
|
10500
|
+
}
|
10501
|
+
message.createdAt = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
10502
|
+
continue;
|
10503
|
+
case 8:
|
10504
|
+
if (tag !== 64) {
|
10505
|
+
break;
|
10506
|
+
}
|
10507
|
+
message.type = reader.int32();
|
10508
|
+
continue;
|
10509
|
+
case 9:
|
10510
|
+
if (tag !== 74) {
|
10511
|
+
break;
|
10512
|
+
}
|
10513
|
+
message.ownerId = reader.string();
|
10514
|
+
continue;
|
10515
|
+
case 10:
|
10516
|
+
if (tag !== 82) {
|
10517
|
+
break;
|
10518
|
+
}
|
10519
|
+
message.owner = Owner.decode(reader, reader.uint32());
|
10520
|
+
continue;
|
10521
|
+
case 11:
|
10522
|
+
if (tag !== 90) {
|
10523
|
+
break;
|
10524
|
+
}
|
10525
|
+
message.project = Project.decode(reader, reader.uint32());
|
10526
|
+
continue;
|
10527
|
+
case 12:
|
10528
|
+
if (tag !== 98) {
|
10529
|
+
break;
|
10530
|
+
}
|
10531
|
+
const entry12 = Notification_AttributesEntry.decode(reader, reader.uint32());
|
10532
|
+
if (entry12.value !== undefined) {
|
10533
|
+
message.attributes[entry12.key] = entry12.value;
|
10534
|
+
}
|
10535
|
+
continue;
|
10536
|
+
case 13:
|
10537
|
+
if (tag !== 104) {
|
10538
|
+
break;
|
10539
|
+
}
|
10540
|
+
message.read = reader.bool();
|
10541
|
+
continue;
|
10542
|
+
}
|
10543
|
+
if ((tag & 7) === 4 || tag === 0) {
|
10544
|
+
break;
|
10545
|
+
}
|
10546
|
+
reader.skipType(tag & 7);
|
10547
|
+
}
|
10548
|
+
return message;
|
10549
|
+
},
|
10550
|
+
fromJSON(object) {
|
10551
|
+
return {
|
10552
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
10553
|
+
projectId: isSet(object.projectId) ? globalThis.String(object.projectId) : "",
|
10554
|
+
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
10555
|
+
level: isSet(object.level) ? globalThis.String(object.level) : "",
|
10556
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
10557
|
+
createdAt: isSet(object.createdAt) ? fromJsonTimestamp(object.createdAt) : undefined,
|
10558
|
+
type: isSet(object.type) ? notificationTypeFromJSON(object.type) : 0,
|
10559
|
+
ownerId: isSet(object.ownerId) ? globalThis.String(object.ownerId) : "",
|
10560
|
+
owner: isSet(object.owner) ? Owner.fromJSON(object.owner) : undefined,
|
10561
|
+
project: isSet(object.project) ? Project.fromJSON(object.project) : undefined,
|
10562
|
+
attributes: isObject(object.attributes)
|
10563
|
+
? Object.entries(object.attributes).reduce((acc, [key, value]) => {
|
10564
|
+
acc[key] = String(value);
|
10565
|
+
return acc;
|
10566
|
+
}, {})
|
10567
|
+
: {},
|
10568
|
+
read: isSet(object.read) ? globalThis.Boolean(object.read) : false,
|
10569
|
+
};
|
10570
|
+
},
|
10571
|
+
toJSON(message) {
|
10572
|
+
const obj = {};
|
10573
|
+
if (message.id !== "") {
|
10574
|
+
obj.id = message.id;
|
10575
|
+
}
|
10576
|
+
if (message.projectId !== "") {
|
10577
|
+
obj.projectId = message.projectId;
|
10578
|
+
}
|
10579
|
+
if (message.source !== "") {
|
10580
|
+
obj.source = message.source;
|
10581
|
+
}
|
10582
|
+
if (message.level !== "") {
|
10583
|
+
obj.level = message.level;
|
10584
|
+
}
|
10585
|
+
if (message.message !== "") {
|
10586
|
+
obj.message = message.message;
|
10587
|
+
}
|
10588
|
+
if (message.createdAt !== undefined) {
|
10589
|
+
obj.createdAt = message.createdAt.toISOString();
|
10590
|
+
}
|
10591
|
+
if (message.type !== 0) {
|
10592
|
+
obj.type = notificationTypeToJSON(message.type);
|
10593
|
+
}
|
10594
|
+
if (message.ownerId !== "") {
|
10595
|
+
obj.ownerId = message.ownerId;
|
10596
|
+
}
|
10597
|
+
if (message.owner !== undefined) {
|
10598
|
+
obj.owner = Owner.toJSON(message.owner);
|
10599
|
+
}
|
10600
|
+
if (message.project !== undefined) {
|
10601
|
+
obj.project = Project.toJSON(message.project);
|
10602
|
+
}
|
10603
|
+
if (message.attributes) {
|
10604
|
+
const entries = Object.entries(message.attributes);
|
10605
|
+
if (entries.length > 0) {
|
10606
|
+
obj.attributes = {};
|
10607
|
+
entries.forEach(([k, v]) => {
|
10608
|
+
obj.attributes[k] = v;
|
10609
|
+
});
|
10610
|
+
}
|
10611
|
+
}
|
10612
|
+
if (message.read !== false) {
|
10613
|
+
obj.read = message.read;
|
10614
|
+
}
|
10615
|
+
return obj;
|
10616
|
+
},
|
10617
|
+
create(base) {
|
10618
|
+
return Notification.fromPartial(base ?? {});
|
10619
|
+
},
|
10620
|
+
fromPartial(object) {
|
10621
|
+
const message = createBaseNotification();
|
10622
|
+
message.id = object.id ?? "";
|
10623
|
+
message.projectId = object.projectId ?? "";
|
10624
|
+
message.source = object.source ?? "";
|
10625
|
+
message.level = object.level ?? "";
|
10626
|
+
message.message = object.message ?? "";
|
10627
|
+
message.createdAt = object.createdAt ?? undefined;
|
10628
|
+
message.type = object.type ?? 0;
|
10629
|
+
message.ownerId = object.ownerId ?? "";
|
10630
|
+
message.owner = (object.owner !== undefined && object.owner !== null) ? Owner.fromPartial(object.owner) : undefined;
|
10631
|
+
message.project = (object.project !== undefined && object.project !== null)
|
10632
|
+
? Project.fromPartial(object.project)
|
10633
|
+
: undefined;
|
10634
|
+
message.attributes = Object.entries(object.attributes ?? {}).reduce((acc, [key, value]) => {
|
10635
|
+
if (value !== undefined) {
|
10636
|
+
acc[key] = globalThis.String(value);
|
10637
|
+
}
|
10638
|
+
return acc;
|
10639
|
+
}, {});
|
10640
|
+
message.read = object.read ?? false;
|
10641
|
+
return message;
|
10642
|
+
},
|
10643
|
+
};
|
10644
|
+
function createBaseNotification_AttributesEntry() {
|
10645
|
+
return { key: "", value: "" };
|
10646
|
+
}
|
10647
|
+
export const Notification_AttributesEntry = {
|
10648
|
+
encode(message, writer = _m0.Writer.create()) {
|
10649
|
+
if (message.key !== "") {
|
10650
|
+
writer.uint32(10).string(message.key);
|
10651
|
+
}
|
10652
|
+
if (message.value !== "") {
|
10653
|
+
writer.uint32(18).string(message.value);
|
10654
|
+
}
|
10655
|
+
return writer;
|
10656
|
+
},
|
10657
|
+
decode(input, length) {
|
10658
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
10659
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
10660
|
+
const message = createBaseNotification_AttributesEntry();
|
10661
|
+
while (reader.pos < end) {
|
10662
|
+
const tag = reader.uint32();
|
10663
|
+
switch (tag >>> 3) {
|
10664
|
+
case 1:
|
10665
|
+
if (tag !== 10) {
|
10666
|
+
break;
|
10667
|
+
}
|
10668
|
+
message.key = reader.string();
|
10669
|
+
continue;
|
10670
|
+
case 2:
|
10671
|
+
if (tag !== 18) {
|
10672
|
+
break;
|
10673
|
+
}
|
10674
|
+
message.value = reader.string();
|
10675
|
+
continue;
|
10676
|
+
}
|
10677
|
+
if ((tag & 7) === 4 || tag === 0) {
|
10678
|
+
break;
|
10679
|
+
}
|
10680
|
+
reader.skipType(tag & 7);
|
10681
|
+
}
|
10682
|
+
return message;
|
10683
|
+
},
|
10684
|
+
fromJSON(object) {
|
10685
|
+
return {
|
10686
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
10687
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
10688
|
+
};
|
10689
|
+
},
|
10690
|
+
toJSON(message) {
|
10691
|
+
const obj = {};
|
10692
|
+
if (message.key !== "") {
|
10693
|
+
obj.key = message.key;
|
10694
|
+
}
|
10695
|
+
if (message.value !== "") {
|
10696
|
+
obj.value = message.value;
|
10697
|
+
}
|
10698
|
+
return obj;
|
10699
|
+
},
|
10700
|
+
create(base) {
|
10701
|
+
return Notification_AttributesEntry.fromPartial(base ?? {});
|
10702
|
+
},
|
10703
|
+
fromPartial(object) {
|
10704
|
+
const message = createBaseNotification_AttributesEntry();
|
10705
|
+
message.key = object.key ?? "";
|
10706
|
+
message.value = object.value ?? "";
|
10707
|
+
return message;
|
10708
|
+
},
|
10709
|
+
};
|
10307
10710
|
function toTimestamp(date) {
|
10308
|
-
const seconds = BigInt(Math.trunc(date.getTime() /
|
10309
|
-
const nanos = (date.getTime() %
|
10711
|
+
const seconds = BigInt(Math.trunc(date.getTime() / 1_000));
|
10712
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
10310
10713
|
return { seconds, nanos };
|
10311
10714
|
}
|
10312
10715
|
function fromTimestamp(t) {
|
10313
|
-
let millis = (globalThis.Number(t.seconds.toString()) || 0) *
|
10314
|
-
millis += (t.nanos || 0) /
|
10716
|
+
let millis = (globalThis.Number(t.seconds.toString()) || 0) * 1_000;
|
10717
|
+
millis += (t.nanos || 0) / 1_000_000;
|
10315
10718
|
return new globalThis.Date(millis);
|
10316
10719
|
}
|
10317
10720
|
function fromJsonTimestamp(o) {
|