@conduitplatform/grpc-sdk 0.17.0-alpha.7 → 0.17.0-alpha.9
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/dist/index.cjs +2339 -443
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +429 -34
- package/dist/index.d.ts +429 -34
- package/dist/index.esm.js +2318 -443
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -3,11 +3,11 @@ var ConduitError = class _ConduitError extends Error {
|
|
|
3
3
|
message;
|
|
4
4
|
name;
|
|
5
5
|
status;
|
|
6
|
-
constructor(name,
|
|
6
|
+
constructor(name, status3, message) {
|
|
7
7
|
super(message);
|
|
8
8
|
this.name = name;
|
|
9
9
|
this.message = message;
|
|
10
|
-
this.status =
|
|
10
|
+
this.status = status3;
|
|
11
11
|
}
|
|
12
12
|
static unauthorized(message = "Unauthorized") {
|
|
13
13
|
return new _ConduitError("UNAUTHORIZED", 401, message);
|
|
@@ -154,7 +154,7 @@ function validateAccessTokenResponse_StatusToJSON(object) {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
function createBaseUserLoginRequest() {
|
|
157
|
-
return { userId: "", clientId: "" };
|
|
157
|
+
return { userId: "", clientId: "", realm: void 0 };
|
|
158
158
|
}
|
|
159
159
|
var UserLoginRequest = {
|
|
160
160
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -164,6 +164,9 @@ var UserLoginRequest = {
|
|
|
164
164
|
if (message.clientId !== "") {
|
|
165
165
|
writer.uint32(18).string(message.clientId);
|
|
166
166
|
}
|
|
167
|
+
if (message.realm !== void 0) {
|
|
168
|
+
writer.uint32(26).string(message.realm);
|
|
169
|
+
}
|
|
167
170
|
return writer;
|
|
168
171
|
},
|
|
169
172
|
decode(input, length) {
|
|
@@ -193,6 +196,13 @@ var UserLoginRequest = {
|
|
|
193
196
|
message.clientId = reader.string();
|
|
194
197
|
continue;
|
|
195
198
|
}
|
|
199
|
+
case 3: {
|
|
200
|
+
if (tag !== 26) {
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
message.realm = reader.string();
|
|
204
|
+
continue;
|
|
205
|
+
}
|
|
196
206
|
}
|
|
197
207
|
if ((tag & 7) === 4 || tag === 0) {
|
|
198
208
|
break;
|
|
@@ -207,7 +217,8 @@ var UserLoginRequest = {
|
|
|
207
217
|
fromJSON(object) {
|
|
208
218
|
return {
|
|
209
219
|
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
210
|
-
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : ""
|
|
220
|
+
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
221
|
+
realm: isSet(object.realm) ? globalThis.String(object.realm) : void 0
|
|
211
222
|
};
|
|
212
223
|
},
|
|
213
224
|
toJSON(message) {
|
|
@@ -218,6 +229,9 @@ var UserLoginRequest = {
|
|
|
218
229
|
if (message.clientId !== "") {
|
|
219
230
|
obj.clientId = message.clientId;
|
|
220
231
|
}
|
|
232
|
+
if (message.realm !== void 0) {
|
|
233
|
+
obj.realm = message.realm;
|
|
234
|
+
}
|
|
221
235
|
return obj;
|
|
222
236
|
},
|
|
223
237
|
create(base) {
|
|
@@ -227,11 +241,19 @@ var UserLoginRequest = {
|
|
|
227
241
|
const message = createBaseUserLoginRequest();
|
|
228
242
|
message.userId = object.userId ?? "";
|
|
229
243
|
message.clientId = object.clientId ?? "";
|
|
244
|
+
message.realm = object.realm ?? void 0;
|
|
230
245
|
return message;
|
|
231
246
|
}
|
|
232
247
|
};
|
|
233
248
|
function createBaseUserCreateRequest() {
|
|
234
|
-
return {
|
|
249
|
+
return {
|
|
250
|
+
email: "",
|
|
251
|
+
password: void 0,
|
|
252
|
+
verify: false,
|
|
253
|
+
anonymousId: void 0,
|
|
254
|
+
userData: void 0,
|
|
255
|
+
realm: void 0
|
|
256
|
+
};
|
|
235
257
|
}
|
|
236
258
|
var UserCreateRequest = {
|
|
237
259
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -250,6 +272,9 @@ var UserCreateRequest = {
|
|
|
250
272
|
if (message.userData !== void 0) {
|
|
251
273
|
writer.uint32(42).string(message.userData);
|
|
252
274
|
}
|
|
275
|
+
if (message.realm !== void 0) {
|
|
276
|
+
writer.uint32(50).string(message.realm);
|
|
277
|
+
}
|
|
253
278
|
return writer;
|
|
254
279
|
},
|
|
255
280
|
decode(input, length) {
|
|
@@ -300,6 +325,13 @@ var UserCreateRequest = {
|
|
|
300
325
|
message.userData = reader.string();
|
|
301
326
|
continue;
|
|
302
327
|
}
|
|
328
|
+
case 6: {
|
|
329
|
+
if (tag !== 50) {
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
message.realm = reader.string();
|
|
333
|
+
continue;
|
|
334
|
+
}
|
|
303
335
|
}
|
|
304
336
|
if ((tag & 7) === 4 || tag === 0) {
|
|
305
337
|
break;
|
|
@@ -317,7 +349,8 @@ var UserCreateRequest = {
|
|
|
317
349
|
password: isSet(object.password) ? globalThis.String(object.password) : void 0,
|
|
318
350
|
verify: isSet(object.verify) ? globalThis.Boolean(object.verify) : false,
|
|
319
351
|
anonymousId: isSet(object.anonymousId) ? globalThis.String(object.anonymousId) : void 0,
|
|
320
|
-
userData: isSet(object.userData) ? globalThis.String(object.userData) : void 0
|
|
352
|
+
userData: isSet(object.userData) ? globalThis.String(object.userData) : void 0,
|
|
353
|
+
realm: isSet(object.realm) ? globalThis.String(object.realm) : void 0
|
|
321
354
|
};
|
|
322
355
|
},
|
|
323
356
|
toJSON(message) {
|
|
@@ -337,6 +370,9 @@ var UserCreateRequest = {
|
|
|
337
370
|
if (message.userData !== void 0) {
|
|
338
371
|
obj.userData = message.userData;
|
|
339
372
|
}
|
|
373
|
+
if (message.realm !== void 0) {
|
|
374
|
+
obj.realm = message.realm;
|
|
375
|
+
}
|
|
340
376
|
return obj;
|
|
341
377
|
},
|
|
342
378
|
create(base) {
|
|
@@ -349,11 +385,12 @@ var UserCreateRequest = {
|
|
|
349
385
|
message.verify = object.verify ?? false;
|
|
350
386
|
message.anonymousId = object.anonymousId ?? void 0;
|
|
351
387
|
message.userData = object.userData ?? void 0;
|
|
388
|
+
message.realm = object.realm ?? void 0;
|
|
352
389
|
return message;
|
|
353
390
|
}
|
|
354
391
|
};
|
|
355
392
|
function createBaseUserCreateByUsernameRequest() {
|
|
356
|
-
return { username: "", password: void 0, anonymousId: void 0 };
|
|
393
|
+
return { username: "", password: void 0, anonymousId: void 0, realm: void 0 };
|
|
357
394
|
}
|
|
358
395
|
var UserCreateByUsernameRequest = {
|
|
359
396
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -366,6 +403,9 @@ var UserCreateByUsernameRequest = {
|
|
|
366
403
|
if (message.anonymousId !== void 0) {
|
|
367
404
|
writer.uint32(26).string(message.anonymousId);
|
|
368
405
|
}
|
|
406
|
+
if (message.realm !== void 0) {
|
|
407
|
+
writer.uint32(34).string(message.realm);
|
|
408
|
+
}
|
|
369
409
|
return writer;
|
|
370
410
|
},
|
|
371
411
|
decode(input, length) {
|
|
@@ -402,6 +442,13 @@ var UserCreateByUsernameRequest = {
|
|
|
402
442
|
message.anonymousId = reader.string();
|
|
403
443
|
continue;
|
|
404
444
|
}
|
|
445
|
+
case 4: {
|
|
446
|
+
if (tag !== 34) {
|
|
447
|
+
break;
|
|
448
|
+
}
|
|
449
|
+
message.realm = reader.string();
|
|
450
|
+
continue;
|
|
451
|
+
}
|
|
405
452
|
}
|
|
406
453
|
if ((tag & 7) === 4 || tag === 0) {
|
|
407
454
|
break;
|
|
@@ -417,7 +464,8 @@ var UserCreateByUsernameRequest = {
|
|
|
417
464
|
return {
|
|
418
465
|
username: isSet(object.username) ? globalThis.String(object.username) : "",
|
|
419
466
|
password: isSet(object.password) ? globalThis.String(object.password) : void 0,
|
|
420
|
-
anonymousId: isSet(object.anonymousId) ? globalThis.String(object.anonymousId) : void 0
|
|
467
|
+
anonymousId: isSet(object.anonymousId) ? globalThis.String(object.anonymousId) : void 0,
|
|
468
|
+
realm: isSet(object.realm) ? globalThis.String(object.realm) : void 0
|
|
421
469
|
};
|
|
422
470
|
},
|
|
423
471
|
toJSON(message) {
|
|
@@ -431,6 +479,9 @@ var UserCreateByUsernameRequest = {
|
|
|
431
479
|
if (message.anonymousId !== void 0) {
|
|
432
480
|
obj.anonymousId = message.anonymousId;
|
|
433
481
|
}
|
|
482
|
+
if (message.realm !== void 0) {
|
|
483
|
+
obj.realm = message.realm;
|
|
484
|
+
}
|
|
434
485
|
return obj;
|
|
435
486
|
},
|
|
436
487
|
create(base) {
|
|
@@ -441,11 +492,12 @@ var UserCreateByUsernameRequest = {
|
|
|
441
492
|
message.username = object.username ?? "";
|
|
442
493
|
message.password = object.password ?? void 0;
|
|
443
494
|
message.anonymousId = object.anonymousId ?? void 0;
|
|
495
|
+
message.realm = object.realm ?? void 0;
|
|
444
496
|
return message;
|
|
445
497
|
}
|
|
446
498
|
};
|
|
447
499
|
function createBaseUserChangePass() {
|
|
448
|
-
return { email: "", password: void 0 };
|
|
500
|
+
return { email: "", password: void 0, realm: void 0 };
|
|
449
501
|
}
|
|
450
502
|
var UserChangePass = {
|
|
451
503
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -455,6 +507,9 @@ var UserChangePass = {
|
|
|
455
507
|
if (message.password !== void 0) {
|
|
456
508
|
writer.uint32(18).string(message.password);
|
|
457
509
|
}
|
|
510
|
+
if (message.realm !== void 0) {
|
|
511
|
+
writer.uint32(26).string(message.realm);
|
|
512
|
+
}
|
|
458
513
|
return writer;
|
|
459
514
|
},
|
|
460
515
|
decode(input, length) {
|
|
@@ -484,6 +539,13 @@ var UserChangePass = {
|
|
|
484
539
|
message.password = reader.string();
|
|
485
540
|
continue;
|
|
486
541
|
}
|
|
542
|
+
case 3: {
|
|
543
|
+
if (tag !== 26) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
message.realm = reader.string();
|
|
547
|
+
continue;
|
|
548
|
+
}
|
|
487
549
|
}
|
|
488
550
|
if ((tag & 7) === 4 || tag === 0) {
|
|
489
551
|
break;
|
|
@@ -498,7 +560,8 @@ var UserChangePass = {
|
|
|
498
560
|
fromJSON(object) {
|
|
499
561
|
return {
|
|
500
562
|
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
501
|
-
password: isSet(object.password) ? globalThis.String(object.password) : void 0
|
|
563
|
+
password: isSet(object.password) ? globalThis.String(object.password) : void 0,
|
|
564
|
+
realm: isSet(object.realm) ? globalThis.String(object.realm) : void 0
|
|
502
565
|
};
|
|
503
566
|
},
|
|
504
567
|
toJSON(message) {
|
|
@@ -509,6 +572,9 @@ var UserChangePass = {
|
|
|
509
572
|
if (message.password !== void 0) {
|
|
510
573
|
obj.password = message.password;
|
|
511
574
|
}
|
|
575
|
+
if (message.realm !== void 0) {
|
|
576
|
+
obj.realm = message.realm;
|
|
577
|
+
}
|
|
512
578
|
return obj;
|
|
513
579
|
},
|
|
514
580
|
create(base) {
|
|
@@ -518,6 +584,144 @@ var UserChangePass = {
|
|
|
518
584
|
const message = createBaseUserChangePass();
|
|
519
585
|
message.email = object.email ?? "";
|
|
520
586
|
message.password = object.password ?? void 0;
|
|
587
|
+
message.realm = object.realm ?? void 0;
|
|
588
|
+
return message;
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
function createBaseUserChangeEmail() {
|
|
592
|
+
return { userId: "", newEmail: "" };
|
|
593
|
+
}
|
|
594
|
+
var UserChangeEmail = {
|
|
595
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
596
|
+
if (message.userId !== "") {
|
|
597
|
+
writer.uint32(10).string(message.userId);
|
|
598
|
+
}
|
|
599
|
+
if (message.newEmail !== "") {
|
|
600
|
+
writer.uint32(18).string(message.newEmail);
|
|
601
|
+
}
|
|
602
|
+
return writer;
|
|
603
|
+
},
|
|
604
|
+
decode(input, length) {
|
|
605
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
606
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
607
|
+
if (previousRecursionDepth >= 100) {
|
|
608
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
609
|
+
}
|
|
610
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
611
|
+
try {
|
|
612
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
613
|
+
const message = createBaseUserChangeEmail();
|
|
614
|
+
while (reader.pos < end) {
|
|
615
|
+
const tag = reader.uint32();
|
|
616
|
+
switch (tag >>> 3) {
|
|
617
|
+
case 1: {
|
|
618
|
+
if (tag !== 10) {
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
message.userId = reader.string();
|
|
622
|
+
continue;
|
|
623
|
+
}
|
|
624
|
+
case 2: {
|
|
625
|
+
if (tag !== 18) {
|
|
626
|
+
break;
|
|
627
|
+
}
|
|
628
|
+
message.newEmail = reader.string();
|
|
629
|
+
continue;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
reader.skip(tag & 7);
|
|
636
|
+
}
|
|
637
|
+
return message;
|
|
638
|
+
} finally {
|
|
639
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
640
|
+
}
|
|
641
|
+
},
|
|
642
|
+
fromJSON(object) {
|
|
643
|
+
return {
|
|
644
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
645
|
+
newEmail: isSet(object.newEmail) ? globalThis.String(object.newEmail) : ""
|
|
646
|
+
};
|
|
647
|
+
},
|
|
648
|
+
toJSON(message) {
|
|
649
|
+
const obj = {};
|
|
650
|
+
if (message.userId !== "") {
|
|
651
|
+
obj.userId = message.userId;
|
|
652
|
+
}
|
|
653
|
+
if (message.newEmail !== "") {
|
|
654
|
+
obj.newEmail = message.newEmail;
|
|
655
|
+
}
|
|
656
|
+
return obj;
|
|
657
|
+
},
|
|
658
|
+
create(base) {
|
|
659
|
+
return UserChangeEmail.fromPartial(base ?? {});
|
|
660
|
+
},
|
|
661
|
+
fromPartial(object) {
|
|
662
|
+
const message = createBaseUserChangeEmail();
|
|
663
|
+
message.userId = object.userId ?? "";
|
|
664
|
+
message.newEmail = object.newEmail ?? "";
|
|
665
|
+
return message;
|
|
666
|
+
}
|
|
667
|
+
};
|
|
668
|
+
function createBaseUserChangeEmailResponse() {
|
|
669
|
+
return { message: "" };
|
|
670
|
+
}
|
|
671
|
+
var UserChangeEmailResponse = {
|
|
672
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
673
|
+
if (message.message !== "") {
|
|
674
|
+
writer.uint32(10).string(message.message);
|
|
675
|
+
}
|
|
676
|
+
return writer;
|
|
677
|
+
},
|
|
678
|
+
decode(input, length) {
|
|
679
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
680
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
681
|
+
if (previousRecursionDepth >= 100) {
|
|
682
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
683
|
+
}
|
|
684
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
685
|
+
try {
|
|
686
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
687
|
+
const message = createBaseUserChangeEmailResponse();
|
|
688
|
+
while (reader.pos < end) {
|
|
689
|
+
const tag = reader.uint32();
|
|
690
|
+
switch (tag >>> 3) {
|
|
691
|
+
case 1: {
|
|
692
|
+
if (tag !== 10) {
|
|
693
|
+
break;
|
|
694
|
+
}
|
|
695
|
+
message.message = reader.string();
|
|
696
|
+
continue;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
700
|
+
break;
|
|
701
|
+
}
|
|
702
|
+
reader.skip(tag & 7);
|
|
703
|
+
}
|
|
704
|
+
return message;
|
|
705
|
+
} finally {
|
|
706
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
707
|
+
}
|
|
708
|
+
},
|
|
709
|
+
fromJSON(object) {
|
|
710
|
+
return { message: isSet(object.message) ? globalThis.String(object.message) : "" };
|
|
711
|
+
},
|
|
712
|
+
toJSON(message) {
|
|
713
|
+
const obj = {};
|
|
714
|
+
if (message.message !== "") {
|
|
715
|
+
obj.message = message.message;
|
|
716
|
+
}
|
|
717
|
+
return obj;
|
|
718
|
+
},
|
|
719
|
+
create(base) {
|
|
720
|
+
return UserChangeEmailResponse.fromPartial(base ?? {});
|
|
721
|
+
},
|
|
722
|
+
fromPartial(object) {
|
|
723
|
+
const message = createBaseUserChangeEmailResponse();
|
|
724
|
+
message.message = object.message ?? "";
|
|
521
725
|
return message;
|
|
522
726
|
}
|
|
523
727
|
};
|
|
@@ -991,7 +1195,7 @@ var UserCreateResponse = {
|
|
|
991
1195
|
}
|
|
992
1196
|
};
|
|
993
1197
|
function createBaseTeam() {
|
|
994
|
-
return { id: "", name: "", parentTeam: "", isDefault: false };
|
|
1198
|
+
return { id: "", name: "", parentTeam: "", isDefault: false, realmEnabled: false, realmSlug: void 0 };
|
|
995
1199
|
}
|
|
996
1200
|
var Team = {
|
|
997
1201
|
encode(message, writer = new BinaryWriter2()) {
|
|
@@ -1007,6 +1211,12 @@ var Team = {
|
|
|
1007
1211
|
if (message.isDefault !== false) {
|
|
1008
1212
|
writer.uint32(32).bool(message.isDefault);
|
|
1009
1213
|
}
|
|
1214
|
+
if (message.realmEnabled !== false) {
|
|
1215
|
+
writer.uint32(40).bool(message.realmEnabled);
|
|
1216
|
+
}
|
|
1217
|
+
if (message.realmSlug !== void 0) {
|
|
1218
|
+
writer.uint32(50).string(message.realmSlug);
|
|
1219
|
+
}
|
|
1010
1220
|
return writer;
|
|
1011
1221
|
},
|
|
1012
1222
|
decode(input, length) {
|
|
@@ -1050,6 +1260,20 @@ var Team = {
|
|
|
1050
1260
|
message.isDefault = reader.bool();
|
|
1051
1261
|
continue;
|
|
1052
1262
|
}
|
|
1263
|
+
case 5: {
|
|
1264
|
+
if (tag !== 40) {
|
|
1265
|
+
break;
|
|
1266
|
+
}
|
|
1267
|
+
message.realmEnabled = reader.bool();
|
|
1268
|
+
continue;
|
|
1269
|
+
}
|
|
1270
|
+
case 6: {
|
|
1271
|
+
if (tag !== 50) {
|
|
1272
|
+
break;
|
|
1273
|
+
}
|
|
1274
|
+
message.realmSlug = reader.string();
|
|
1275
|
+
continue;
|
|
1276
|
+
}
|
|
1053
1277
|
}
|
|
1054
1278
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1055
1279
|
break;
|
|
@@ -1066,7 +1290,9 @@ var Team = {
|
|
|
1066
1290
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
1067
1291
|
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
1068
1292
|
parentTeam: isSet(object.parentTeam) ? globalThis.String(object.parentTeam) : "",
|
|
1069
|
-
isDefault: isSet(object.isDefault) ? globalThis.Boolean(object.isDefault) : false
|
|
1293
|
+
isDefault: isSet(object.isDefault) ? globalThis.Boolean(object.isDefault) : false,
|
|
1294
|
+
realmEnabled: isSet(object.realmEnabled) ? globalThis.Boolean(object.realmEnabled) : false,
|
|
1295
|
+
realmSlug: isSet(object.realmSlug) ? globalThis.String(object.realmSlug) : void 0
|
|
1070
1296
|
};
|
|
1071
1297
|
},
|
|
1072
1298
|
toJSON(message) {
|
|
@@ -1083,6 +1309,12 @@ var Team = {
|
|
|
1083
1309
|
if (message.isDefault !== false) {
|
|
1084
1310
|
obj.isDefault = message.isDefault;
|
|
1085
1311
|
}
|
|
1312
|
+
if (message.realmEnabled !== false) {
|
|
1313
|
+
obj.realmEnabled = message.realmEnabled;
|
|
1314
|
+
}
|
|
1315
|
+
if (message.realmSlug !== void 0) {
|
|
1316
|
+
obj.realmSlug = message.realmSlug;
|
|
1317
|
+
}
|
|
1086
1318
|
return obj;
|
|
1087
1319
|
},
|
|
1088
1320
|
create(base) {
|
|
@@ -1094,6 +1326,8 @@ var Team = {
|
|
|
1094
1326
|
message.name = object.name ?? "";
|
|
1095
1327
|
message.parentTeam = object.parentTeam ?? "";
|
|
1096
1328
|
message.isDefault = object.isDefault ?? false;
|
|
1329
|
+
message.realmEnabled = object.realmEnabled ?? false;
|
|
1330
|
+
message.realmSlug = object.realmSlug ?? void 0;
|
|
1097
1331
|
return message;
|
|
1098
1332
|
}
|
|
1099
1333
|
};
|
|
@@ -1234,16 +1468,13 @@ var ModifyTeamMembersRequest = {
|
|
|
1234
1468
|
return message;
|
|
1235
1469
|
}
|
|
1236
1470
|
};
|
|
1237
|
-
function
|
|
1238
|
-
return {
|
|
1471
|
+
function createBaseGetUserRequest() {
|
|
1472
|
+
return { userId: "" };
|
|
1239
1473
|
}
|
|
1240
|
-
var
|
|
1474
|
+
var GetUserRequest = {
|
|
1241
1475
|
encode(message, writer = new BinaryWriter2()) {
|
|
1242
|
-
if (message.
|
|
1243
|
-
writer.uint32(10).string(message.
|
|
1244
|
-
}
|
|
1245
|
-
if (message.path !== void 0) {
|
|
1246
|
-
writer.uint32(18).string(message.path);
|
|
1476
|
+
if (message.userId !== "") {
|
|
1477
|
+
writer.uint32(10).string(message.userId);
|
|
1247
1478
|
}
|
|
1248
1479
|
return writer;
|
|
1249
1480
|
},
|
|
@@ -1256,7 +1487,7 @@ var ValidateAccessTokenRequest = {
|
|
|
1256
1487
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1257
1488
|
try {
|
|
1258
1489
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1259
|
-
const message =
|
|
1490
|
+
const message = createBaseGetUserRequest();
|
|
1260
1491
|
while (reader.pos < end) {
|
|
1261
1492
|
const tag = reader.uint32();
|
|
1262
1493
|
switch (tag >>> 3) {
|
|
@@ -1264,14 +1495,7 @@ var ValidateAccessTokenRequest = {
|
|
|
1264
1495
|
if (tag !== 10) {
|
|
1265
1496
|
break;
|
|
1266
1497
|
}
|
|
1267
|
-
message.
|
|
1268
|
-
continue;
|
|
1269
|
-
}
|
|
1270
|
-
case 2: {
|
|
1271
|
-
if (tag !== 18) {
|
|
1272
|
-
break;
|
|
1273
|
-
}
|
|
1274
|
-
message.path = reader.string();
|
|
1498
|
+
message.userId = reader.string();
|
|
1275
1499
|
continue;
|
|
1276
1500
|
}
|
|
1277
1501
|
}
|
|
@@ -1286,41 +1510,31 @@ var ValidateAccessTokenRequest = {
|
|
|
1286
1510
|
}
|
|
1287
1511
|
},
|
|
1288
1512
|
fromJSON(object) {
|
|
1289
|
-
return {
|
|
1290
|
-
accessToken: isSet(object.accessToken) ? globalThis.String(object.accessToken) : "",
|
|
1291
|
-
path: isSet(object.path) ? globalThis.String(object.path) : void 0
|
|
1292
|
-
};
|
|
1513
|
+
return { userId: isSet(object.userId) ? globalThis.String(object.userId) : "" };
|
|
1293
1514
|
},
|
|
1294
1515
|
toJSON(message) {
|
|
1295
1516
|
const obj = {};
|
|
1296
|
-
if (message.
|
|
1297
|
-
obj.
|
|
1298
|
-
}
|
|
1299
|
-
if (message.path !== void 0) {
|
|
1300
|
-
obj.path = message.path;
|
|
1517
|
+
if (message.userId !== "") {
|
|
1518
|
+
obj.userId = message.userId;
|
|
1301
1519
|
}
|
|
1302
1520
|
return obj;
|
|
1303
1521
|
},
|
|
1304
1522
|
create(base) {
|
|
1305
|
-
return
|
|
1523
|
+
return GetUserRequest.fromPartial(base ?? {});
|
|
1306
1524
|
},
|
|
1307
1525
|
fromPartial(object) {
|
|
1308
|
-
const message =
|
|
1309
|
-
message.
|
|
1310
|
-
message.path = object.path ?? void 0;
|
|
1526
|
+
const message = createBaseGetUserRequest();
|
|
1527
|
+
message.userId = object.userId ?? "";
|
|
1311
1528
|
return message;
|
|
1312
1529
|
}
|
|
1313
1530
|
};
|
|
1314
|
-
function
|
|
1315
|
-
return {
|
|
1531
|
+
function createBaseGetUserResponse() {
|
|
1532
|
+
return { user: "" };
|
|
1316
1533
|
}
|
|
1317
|
-
var
|
|
1534
|
+
var GetUserResponse = {
|
|
1318
1535
|
encode(message, writer = new BinaryWriter2()) {
|
|
1319
|
-
if (message.
|
|
1320
|
-
writer.uint32(
|
|
1321
|
-
}
|
|
1322
|
-
if (message.userId !== void 0) {
|
|
1323
|
-
writer.uint32(18).string(message.userId);
|
|
1536
|
+
if (message.user !== "") {
|
|
1537
|
+
writer.uint32(10).string(message.user);
|
|
1324
1538
|
}
|
|
1325
1539
|
return writer;
|
|
1326
1540
|
},
|
|
@@ -1333,22 +1547,15 @@ var ValidateAccessTokenResponse = {
|
|
|
1333
1547
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1334
1548
|
try {
|
|
1335
1549
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1336
|
-
const message =
|
|
1550
|
+
const message = createBaseGetUserResponse();
|
|
1337
1551
|
while (reader.pos < end) {
|
|
1338
1552
|
const tag = reader.uint32();
|
|
1339
1553
|
switch (tag >>> 3) {
|
|
1340
1554
|
case 1: {
|
|
1341
|
-
if (tag !==
|
|
1342
|
-
break;
|
|
1343
|
-
}
|
|
1344
|
-
message.status = reader.int32();
|
|
1345
|
-
continue;
|
|
1346
|
-
}
|
|
1347
|
-
case 2: {
|
|
1348
|
-
if (tag !== 18) {
|
|
1555
|
+
if (tag !== 10) {
|
|
1349
1556
|
break;
|
|
1350
1557
|
}
|
|
1351
|
-
message.
|
|
1558
|
+
message.user = reader.string();
|
|
1352
1559
|
continue;
|
|
1353
1560
|
}
|
|
1354
1561
|
}
|
|
@@ -1363,38 +1570,34 @@ var ValidateAccessTokenResponse = {
|
|
|
1363
1570
|
}
|
|
1364
1571
|
},
|
|
1365
1572
|
fromJSON(object) {
|
|
1366
|
-
return {
|
|
1367
|
-
status: isSet(object.status) ? validateAccessTokenResponse_StatusFromJSON(object.status) : 0,
|
|
1368
|
-
userId: isSet(object.userId) ? globalThis.String(object.userId) : void 0
|
|
1369
|
-
};
|
|
1573
|
+
return { user: isSet(object.user) ? globalThis.String(object.user) : "" };
|
|
1370
1574
|
},
|
|
1371
1575
|
toJSON(message) {
|
|
1372
1576
|
const obj = {};
|
|
1373
|
-
if (message.
|
|
1374
|
-
obj.
|
|
1375
|
-
}
|
|
1376
|
-
if (message.userId !== void 0) {
|
|
1377
|
-
obj.userId = message.userId;
|
|
1577
|
+
if (message.user !== "") {
|
|
1578
|
+
obj.user = message.user;
|
|
1378
1579
|
}
|
|
1379
1580
|
return obj;
|
|
1380
1581
|
},
|
|
1381
1582
|
create(base) {
|
|
1382
|
-
return
|
|
1583
|
+
return GetUserResponse.fromPartial(base ?? {});
|
|
1383
1584
|
},
|
|
1384
1585
|
fromPartial(object) {
|
|
1385
|
-
const message =
|
|
1386
|
-
message.
|
|
1387
|
-
message.userId = object.userId ?? void 0;
|
|
1586
|
+
const message = createBaseGetUserResponse();
|
|
1587
|
+
message.user = object.user ?? "";
|
|
1388
1588
|
return message;
|
|
1389
1589
|
}
|
|
1390
1590
|
};
|
|
1391
|
-
function
|
|
1392
|
-
return {
|
|
1591
|
+
function createBaseValidateAccessTokenRequest() {
|
|
1592
|
+
return { accessToken: "", path: void 0 };
|
|
1393
1593
|
}
|
|
1394
|
-
var
|
|
1594
|
+
var ValidateAccessTokenRequest = {
|
|
1395
1595
|
encode(message, writer = new BinaryWriter2()) {
|
|
1396
|
-
if (message.
|
|
1397
|
-
writer.uint32(10).string(message.
|
|
1596
|
+
if (message.accessToken !== "") {
|
|
1597
|
+
writer.uint32(10).string(message.accessToken);
|
|
1598
|
+
}
|
|
1599
|
+
if (message.path !== void 0) {
|
|
1600
|
+
writer.uint32(18).string(message.path);
|
|
1398
1601
|
}
|
|
1399
1602
|
return writer;
|
|
1400
1603
|
},
|
|
@@ -1407,7 +1610,7 @@ var AnonymousUserCreateRequest = {
|
|
|
1407
1610
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1408
1611
|
try {
|
|
1409
1612
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1410
|
-
const message =
|
|
1613
|
+
const message = createBaseValidateAccessTokenRequest();
|
|
1411
1614
|
while (reader.pos < end) {
|
|
1412
1615
|
const tag = reader.uint32();
|
|
1413
1616
|
switch (tag >>> 3) {
|
|
@@ -1415,7 +1618,198 @@ var AnonymousUserCreateRequest = {
|
|
|
1415
1618
|
if (tag !== 10) {
|
|
1416
1619
|
break;
|
|
1417
1620
|
}
|
|
1418
|
-
message.
|
|
1621
|
+
message.accessToken = reader.string();
|
|
1622
|
+
continue;
|
|
1623
|
+
}
|
|
1624
|
+
case 2: {
|
|
1625
|
+
if (tag !== 18) {
|
|
1626
|
+
break;
|
|
1627
|
+
}
|
|
1628
|
+
message.path = reader.string();
|
|
1629
|
+
continue;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1633
|
+
break;
|
|
1634
|
+
}
|
|
1635
|
+
reader.skip(tag & 7);
|
|
1636
|
+
}
|
|
1637
|
+
return message;
|
|
1638
|
+
} finally {
|
|
1639
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
fromJSON(object) {
|
|
1643
|
+
return {
|
|
1644
|
+
accessToken: isSet(object.accessToken) ? globalThis.String(object.accessToken) : "",
|
|
1645
|
+
path: isSet(object.path) ? globalThis.String(object.path) : void 0
|
|
1646
|
+
};
|
|
1647
|
+
},
|
|
1648
|
+
toJSON(message) {
|
|
1649
|
+
const obj = {};
|
|
1650
|
+
if (message.accessToken !== "") {
|
|
1651
|
+
obj.accessToken = message.accessToken;
|
|
1652
|
+
}
|
|
1653
|
+
if (message.path !== void 0) {
|
|
1654
|
+
obj.path = message.path;
|
|
1655
|
+
}
|
|
1656
|
+
return obj;
|
|
1657
|
+
},
|
|
1658
|
+
create(base) {
|
|
1659
|
+
return ValidateAccessTokenRequest.fromPartial(base ?? {});
|
|
1660
|
+
},
|
|
1661
|
+
fromPartial(object) {
|
|
1662
|
+
const message = createBaseValidateAccessTokenRequest();
|
|
1663
|
+
message.accessToken = object.accessToken ?? "";
|
|
1664
|
+
message.path = object.path ?? void 0;
|
|
1665
|
+
return message;
|
|
1666
|
+
}
|
|
1667
|
+
};
|
|
1668
|
+
function createBaseValidateAccessTokenResponse() {
|
|
1669
|
+
return { status: 0, userId: void 0, realm: void 0, homeRealm: void 0 };
|
|
1670
|
+
}
|
|
1671
|
+
var ValidateAccessTokenResponse = {
|
|
1672
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
1673
|
+
if (message.status !== 0) {
|
|
1674
|
+
writer.uint32(8).int32(message.status);
|
|
1675
|
+
}
|
|
1676
|
+
if (message.userId !== void 0) {
|
|
1677
|
+
writer.uint32(18).string(message.userId);
|
|
1678
|
+
}
|
|
1679
|
+
if (message.realm !== void 0) {
|
|
1680
|
+
writer.uint32(26).string(message.realm);
|
|
1681
|
+
}
|
|
1682
|
+
if (message.homeRealm !== void 0) {
|
|
1683
|
+
writer.uint32(34).string(message.homeRealm);
|
|
1684
|
+
}
|
|
1685
|
+
return writer;
|
|
1686
|
+
},
|
|
1687
|
+
decode(input, length) {
|
|
1688
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
1689
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1690
|
+
if (previousRecursionDepth >= 100) {
|
|
1691
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1692
|
+
}
|
|
1693
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1694
|
+
try {
|
|
1695
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1696
|
+
const message = createBaseValidateAccessTokenResponse();
|
|
1697
|
+
while (reader.pos < end) {
|
|
1698
|
+
const tag = reader.uint32();
|
|
1699
|
+
switch (tag >>> 3) {
|
|
1700
|
+
case 1: {
|
|
1701
|
+
if (tag !== 8) {
|
|
1702
|
+
break;
|
|
1703
|
+
}
|
|
1704
|
+
message.status = reader.int32();
|
|
1705
|
+
continue;
|
|
1706
|
+
}
|
|
1707
|
+
case 2: {
|
|
1708
|
+
if (tag !== 18) {
|
|
1709
|
+
break;
|
|
1710
|
+
}
|
|
1711
|
+
message.userId = reader.string();
|
|
1712
|
+
continue;
|
|
1713
|
+
}
|
|
1714
|
+
case 3: {
|
|
1715
|
+
if (tag !== 26) {
|
|
1716
|
+
break;
|
|
1717
|
+
}
|
|
1718
|
+
message.realm = reader.string();
|
|
1719
|
+
continue;
|
|
1720
|
+
}
|
|
1721
|
+
case 4: {
|
|
1722
|
+
if (tag !== 34) {
|
|
1723
|
+
break;
|
|
1724
|
+
}
|
|
1725
|
+
message.homeRealm = reader.string();
|
|
1726
|
+
continue;
|
|
1727
|
+
}
|
|
1728
|
+
}
|
|
1729
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1730
|
+
break;
|
|
1731
|
+
}
|
|
1732
|
+
reader.skip(tag & 7);
|
|
1733
|
+
}
|
|
1734
|
+
return message;
|
|
1735
|
+
} finally {
|
|
1736
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
fromJSON(object) {
|
|
1740
|
+
return {
|
|
1741
|
+
status: isSet(object.status) ? validateAccessTokenResponse_StatusFromJSON(object.status) : 0,
|
|
1742
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : void 0,
|
|
1743
|
+
realm: isSet(object.realm) ? globalThis.String(object.realm) : void 0,
|
|
1744
|
+
homeRealm: isSet(object.homeRealm) ? globalThis.String(object.homeRealm) : void 0
|
|
1745
|
+
};
|
|
1746
|
+
},
|
|
1747
|
+
toJSON(message) {
|
|
1748
|
+
const obj = {};
|
|
1749
|
+
if (message.status !== 0) {
|
|
1750
|
+
obj.status = validateAccessTokenResponse_StatusToJSON(message.status);
|
|
1751
|
+
}
|
|
1752
|
+
if (message.userId !== void 0) {
|
|
1753
|
+
obj.userId = message.userId;
|
|
1754
|
+
}
|
|
1755
|
+
if (message.realm !== void 0) {
|
|
1756
|
+
obj.realm = message.realm;
|
|
1757
|
+
}
|
|
1758
|
+
if (message.homeRealm !== void 0) {
|
|
1759
|
+
obj.homeRealm = message.homeRealm;
|
|
1760
|
+
}
|
|
1761
|
+
return obj;
|
|
1762
|
+
},
|
|
1763
|
+
create(base) {
|
|
1764
|
+
return ValidateAccessTokenResponse.fromPartial(base ?? {});
|
|
1765
|
+
},
|
|
1766
|
+
fromPartial(object) {
|
|
1767
|
+
const message = createBaseValidateAccessTokenResponse();
|
|
1768
|
+
message.status = object.status ?? 0;
|
|
1769
|
+
message.userId = object.userId ?? void 0;
|
|
1770
|
+
message.realm = object.realm ?? void 0;
|
|
1771
|
+
message.homeRealm = object.homeRealm ?? void 0;
|
|
1772
|
+
return message;
|
|
1773
|
+
}
|
|
1774
|
+
};
|
|
1775
|
+
function createBaseAnonymousUserCreateRequest() {
|
|
1776
|
+
return { clientId: "", realm: void 0 };
|
|
1777
|
+
}
|
|
1778
|
+
var AnonymousUserCreateRequest = {
|
|
1779
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
1780
|
+
if (message.clientId !== "") {
|
|
1781
|
+
writer.uint32(10).string(message.clientId);
|
|
1782
|
+
}
|
|
1783
|
+
if (message.realm !== void 0) {
|
|
1784
|
+
writer.uint32(18).string(message.realm);
|
|
1785
|
+
}
|
|
1786
|
+
return writer;
|
|
1787
|
+
},
|
|
1788
|
+
decode(input, length) {
|
|
1789
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
1790
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
1791
|
+
if (previousRecursionDepth >= 100) {
|
|
1792
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1793
|
+
}
|
|
1794
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1795
|
+
try {
|
|
1796
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
1797
|
+
const message = createBaseAnonymousUserCreateRequest();
|
|
1798
|
+
while (reader.pos < end) {
|
|
1799
|
+
const tag = reader.uint32();
|
|
1800
|
+
switch (tag >>> 3) {
|
|
1801
|
+
case 1: {
|
|
1802
|
+
if (tag !== 10) {
|
|
1803
|
+
break;
|
|
1804
|
+
}
|
|
1805
|
+
message.clientId = reader.string();
|
|
1806
|
+
continue;
|
|
1807
|
+
}
|
|
1808
|
+
case 2: {
|
|
1809
|
+
if (tag !== 18) {
|
|
1810
|
+
break;
|
|
1811
|
+
}
|
|
1812
|
+
message.realm = reader.string();
|
|
1419
1813
|
continue;
|
|
1420
1814
|
}
|
|
1421
1815
|
}
|
|
@@ -1430,13 +1824,19 @@ var AnonymousUserCreateRequest = {
|
|
|
1430
1824
|
}
|
|
1431
1825
|
},
|
|
1432
1826
|
fromJSON(object) {
|
|
1433
|
-
return {
|
|
1827
|
+
return {
|
|
1828
|
+
clientId: isSet(object.clientId) ? globalThis.String(object.clientId) : "",
|
|
1829
|
+
realm: isSet(object.realm) ? globalThis.String(object.realm) : void 0
|
|
1830
|
+
};
|
|
1434
1831
|
},
|
|
1435
1832
|
toJSON(message) {
|
|
1436
1833
|
const obj = {};
|
|
1437
1834
|
if (message.clientId !== "") {
|
|
1438
1835
|
obj.clientId = message.clientId;
|
|
1439
1836
|
}
|
|
1837
|
+
if (message.realm !== void 0) {
|
|
1838
|
+
obj.realm = message.realm;
|
|
1839
|
+
}
|
|
1440
1840
|
return obj;
|
|
1441
1841
|
},
|
|
1442
1842
|
create(base) {
|
|
@@ -1445,6 +1845,7 @@ var AnonymousUserCreateRequest = {
|
|
|
1445
1845
|
fromPartial(object) {
|
|
1446
1846
|
const message = createBaseAnonymousUserCreateRequest();
|
|
1447
1847
|
message.clientId = object.clientId ?? "";
|
|
1848
|
+
message.realm = object.realm ?? void 0;
|
|
1448
1849
|
return message;
|
|
1449
1850
|
}
|
|
1450
1851
|
};
|
|
@@ -2011,87 +2412,630 @@ var UpdateTeamRequest = {
|
|
|
2011
2412
|
return message;
|
|
2012
2413
|
}
|
|
2013
2414
|
};
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
}
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2415
|
+
function createBaseSetTeamRealmRequest() {
|
|
2416
|
+
return { teamId: "", slug: "", settingsJson: void 0, force: false };
|
|
2417
|
+
}
|
|
2418
|
+
var SetTeamRealmRequest = {
|
|
2419
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
2420
|
+
if (message.teamId !== "") {
|
|
2421
|
+
writer.uint32(10).string(message.teamId);
|
|
2422
|
+
}
|
|
2423
|
+
if (message.slug !== "") {
|
|
2424
|
+
writer.uint32(18).string(message.slug);
|
|
2425
|
+
}
|
|
2426
|
+
if (message.settingsJson !== void 0) {
|
|
2427
|
+
writer.uint32(26).string(message.settingsJson);
|
|
2428
|
+
}
|
|
2429
|
+
if (message.force !== false) {
|
|
2430
|
+
writer.uint32(32).bool(message.force);
|
|
2431
|
+
}
|
|
2432
|
+
return writer;
|
|
2433
|
+
},
|
|
2434
|
+
decode(input, length) {
|
|
2435
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
2436
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2437
|
+
if (previousRecursionDepth >= 100) {
|
|
2438
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2439
|
+
}
|
|
2440
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2441
|
+
try {
|
|
2442
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2443
|
+
const message = createBaseSetTeamRealmRequest();
|
|
2444
|
+
while (reader.pos < end) {
|
|
2445
|
+
const tag = reader.uint32();
|
|
2446
|
+
switch (tag >>> 3) {
|
|
2447
|
+
case 1: {
|
|
2448
|
+
if (tag !== 10) {
|
|
2449
|
+
break;
|
|
2450
|
+
}
|
|
2451
|
+
message.teamId = reader.string();
|
|
2452
|
+
continue;
|
|
2453
|
+
}
|
|
2454
|
+
case 2: {
|
|
2455
|
+
if (tag !== 18) {
|
|
2456
|
+
break;
|
|
2457
|
+
}
|
|
2458
|
+
message.slug = reader.string();
|
|
2459
|
+
continue;
|
|
2460
|
+
}
|
|
2461
|
+
case 3: {
|
|
2462
|
+
if (tag !== 26) {
|
|
2463
|
+
break;
|
|
2464
|
+
}
|
|
2465
|
+
message.settingsJson = reader.string();
|
|
2466
|
+
continue;
|
|
2467
|
+
}
|
|
2468
|
+
case 4: {
|
|
2469
|
+
if (tag !== 32) {
|
|
2470
|
+
break;
|
|
2471
|
+
}
|
|
2472
|
+
message.force = reader.bool();
|
|
2473
|
+
continue;
|
|
2474
|
+
}
|
|
2475
|
+
}
|
|
2476
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2477
|
+
break;
|
|
2478
|
+
}
|
|
2479
|
+
reader.skip(tag & 7);
|
|
2480
|
+
}
|
|
2481
|
+
return message;
|
|
2482
|
+
} finally {
|
|
2483
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2484
|
+
}
|
|
2485
|
+
},
|
|
2486
|
+
fromJSON(object) {
|
|
2487
|
+
return {
|
|
2488
|
+
teamId: isSet(object.teamId) ? globalThis.String(object.teamId) : "",
|
|
2489
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
2490
|
+
settingsJson: isSet(object.settingsJson) ? globalThis.String(object.settingsJson) : void 0,
|
|
2491
|
+
force: isSet(object.force) ? globalThis.Boolean(object.force) : false
|
|
2492
|
+
};
|
|
2493
|
+
},
|
|
2494
|
+
toJSON(message) {
|
|
2495
|
+
const obj = {};
|
|
2496
|
+
if (message.teamId !== "") {
|
|
2497
|
+
obj.teamId = message.teamId;
|
|
2498
|
+
}
|
|
2499
|
+
if (message.slug !== "") {
|
|
2500
|
+
obj.slug = message.slug;
|
|
2501
|
+
}
|
|
2502
|
+
if (message.settingsJson !== void 0) {
|
|
2503
|
+
obj.settingsJson = message.settingsJson;
|
|
2504
|
+
}
|
|
2505
|
+
if (message.force !== false) {
|
|
2506
|
+
obj.force = message.force;
|
|
2507
|
+
}
|
|
2508
|
+
return obj;
|
|
2509
|
+
},
|
|
2510
|
+
create(base) {
|
|
2511
|
+
return SetTeamRealmRequest.fromPartial(base ?? {});
|
|
2512
|
+
},
|
|
2513
|
+
fromPartial(object) {
|
|
2514
|
+
const message = createBaseSetTeamRealmRequest();
|
|
2515
|
+
message.teamId = object.teamId ?? "";
|
|
2516
|
+
message.slug = object.slug ?? "";
|
|
2517
|
+
message.settingsJson = object.settingsJson ?? void 0;
|
|
2518
|
+
message.force = object.force ?? false;
|
|
2519
|
+
return message;
|
|
2520
|
+
}
|
|
2521
|
+
};
|
|
2522
|
+
function createBaseGetRealmSettingsRequest() {
|
|
2523
|
+
return { teamId: "" };
|
|
2524
|
+
}
|
|
2525
|
+
var GetRealmSettingsRequest = {
|
|
2526
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
2527
|
+
if (message.teamId !== "") {
|
|
2528
|
+
writer.uint32(10).string(message.teamId);
|
|
2529
|
+
}
|
|
2530
|
+
return writer;
|
|
2531
|
+
},
|
|
2532
|
+
decode(input, length) {
|
|
2533
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
2534
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2535
|
+
if (previousRecursionDepth >= 100) {
|
|
2536
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2537
|
+
}
|
|
2538
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2539
|
+
try {
|
|
2540
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2541
|
+
const message = createBaseGetRealmSettingsRequest();
|
|
2542
|
+
while (reader.pos < end) {
|
|
2543
|
+
const tag = reader.uint32();
|
|
2544
|
+
switch (tag >>> 3) {
|
|
2545
|
+
case 1: {
|
|
2546
|
+
if (tag !== 10) {
|
|
2547
|
+
break;
|
|
2548
|
+
}
|
|
2549
|
+
message.teamId = reader.string();
|
|
2550
|
+
continue;
|
|
2551
|
+
}
|
|
2552
|
+
}
|
|
2553
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2554
|
+
break;
|
|
2555
|
+
}
|
|
2556
|
+
reader.skip(tag & 7);
|
|
2557
|
+
}
|
|
2558
|
+
return message;
|
|
2559
|
+
} finally {
|
|
2560
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
fromJSON(object) {
|
|
2564
|
+
return { teamId: isSet(object.teamId) ? globalThis.String(object.teamId) : "" };
|
|
2565
|
+
},
|
|
2566
|
+
toJSON(message) {
|
|
2567
|
+
const obj = {};
|
|
2568
|
+
if (message.teamId !== "") {
|
|
2569
|
+
obj.teamId = message.teamId;
|
|
2570
|
+
}
|
|
2571
|
+
return obj;
|
|
2572
|
+
},
|
|
2573
|
+
create(base) {
|
|
2574
|
+
return GetRealmSettingsRequest.fromPartial(base ?? {});
|
|
2575
|
+
},
|
|
2576
|
+
fromPartial(object) {
|
|
2577
|
+
const message = createBaseGetRealmSettingsRequest();
|
|
2578
|
+
message.teamId = object.teamId ?? "";
|
|
2579
|
+
return message;
|
|
2580
|
+
}
|
|
2581
|
+
};
|
|
2582
|
+
function createBaseRealmResponse() {
|
|
2583
|
+
return { team: void 0, settingsJson: "", homeCount: 0, guestCount: 0 };
|
|
2584
|
+
}
|
|
2585
|
+
var RealmResponse = {
|
|
2586
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
2587
|
+
if (message.team !== void 0) {
|
|
2588
|
+
Team.encode(message.team, writer.uint32(10).fork()).join();
|
|
2589
|
+
}
|
|
2590
|
+
if (message.settingsJson !== "") {
|
|
2591
|
+
writer.uint32(18).string(message.settingsJson);
|
|
2592
|
+
}
|
|
2593
|
+
if (message.homeCount !== 0) {
|
|
2594
|
+
writer.uint32(24).int32(message.homeCount);
|
|
2595
|
+
}
|
|
2596
|
+
if (message.guestCount !== 0) {
|
|
2597
|
+
writer.uint32(32).int32(message.guestCount);
|
|
2598
|
+
}
|
|
2599
|
+
return writer;
|
|
2600
|
+
},
|
|
2601
|
+
decode(input, length) {
|
|
2602
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
2603
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2604
|
+
if (previousRecursionDepth >= 100) {
|
|
2605
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2606
|
+
}
|
|
2607
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2608
|
+
try {
|
|
2609
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2610
|
+
const message = createBaseRealmResponse();
|
|
2611
|
+
while (reader.pos < end) {
|
|
2612
|
+
const tag = reader.uint32();
|
|
2613
|
+
switch (tag >>> 3) {
|
|
2614
|
+
case 1: {
|
|
2615
|
+
if (tag !== 10) {
|
|
2616
|
+
break;
|
|
2617
|
+
}
|
|
2618
|
+
message.team = Team.decode(reader, reader.uint32());
|
|
2619
|
+
continue;
|
|
2620
|
+
}
|
|
2621
|
+
case 2: {
|
|
2622
|
+
if (tag !== 18) {
|
|
2623
|
+
break;
|
|
2624
|
+
}
|
|
2625
|
+
message.settingsJson = reader.string();
|
|
2626
|
+
continue;
|
|
2627
|
+
}
|
|
2628
|
+
case 3: {
|
|
2629
|
+
if (tag !== 24) {
|
|
2630
|
+
break;
|
|
2631
|
+
}
|
|
2632
|
+
message.homeCount = reader.int32();
|
|
2633
|
+
continue;
|
|
2634
|
+
}
|
|
2635
|
+
case 4: {
|
|
2636
|
+
if (tag !== 32) {
|
|
2637
|
+
break;
|
|
2638
|
+
}
|
|
2639
|
+
message.guestCount = reader.int32();
|
|
2640
|
+
continue;
|
|
2641
|
+
}
|
|
2642
|
+
}
|
|
2643
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2644
|
+
break;
|
|
2645
|
+
}
|
|
2646
|
+
reader.skip(tag & 7);
|
|
2647
|
+
}
|
|
2648
|
+
return message;
|
|
2649
|
+
} finally {
|
|
2650
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2651
|
+
}
|
|
2652
|
+
},
|
|
2653
|
+
fromJSON(object) {
|
|
2654
|
+
return {
|
|
2655
|
+
team: isSet(object.team) ? Team.fromJSON(object.team) : void 0,
|
|
2656
|
+
settingsJson: isSet(object.settingsJson) ? globalThis.String(object.settingsJson) : "",
|
|
2657
|
+
homeCount: isSet(object.homeCount) ? globalThis.Number(object.homeCount) : 0,
|
|
2658
|
+
guestCount: isSet(object.guestCount) ? globalThis.Number(object.guestCount) : 0
|
|
2659
|
+
};
|
|
2660
|
+
},
|
|
2661
|
+
toJSON(message) {
|
|
2662
|
+
const obj = {};
|
|
2663
|
+
if (message.team !== void 0) {
|
|
2664
|
+
obj.team = Team.toJSON(message.team);
|
|
2665
|
+
}
|
|
2666
|
+
if (message.settingsJson !== "") {
|
|
2667
|
+
obj.settingsJson = message.settingsJson;
|
|
2668
|
+
}
|
|
2669
|
+
if (message.homeCount !== 0) {
|
|
2670
|
+
obj.homeCount = Math.round(message.homeCount);
|
|
2671
|
+
}
|
|
2672
|
+
if (message.guestCount !== 0) {
|
|
2673
|
+
obj.guestCount = Math.round(message.guestCount);
|
|
2674
|
+
}
|
|
2675
|
+
return obj;
|
|
2676
|
+
},
|
|
2677
|
+
create(base) {
|
|
2678
|
+
return RealmResponse.fromPartial(base ?? {});
|
|
2679
|
+
},
|
|
2680
|
+
fromPartial(object) {
|
|
2681
|
+
const message = createBaseRealmResponse();
|
|
2682
|
+
message.team = object.team !== void 0 && object.team !== null ? Team.fromPartial(object.team) : void 0;
|
|
2683
|
+
message.settingsJson = object.settingsJson ?? "";
|
|
2684
|
+
message.homeCount = object.homeCount ?? 0;
|
|
2685
|
+
message.guestCount = object.guestCount ?? 0;
|
|
2686
|
+
return message;
|
|
2687
|
+
}
|
|
2688
|
+
};
|
|
2689
|
+
function createBaseUnsetTeamRealmRequest() {
|
|
2690
|
+
return { teamId: "", force: false };
|
|
2691
|
+
}
|
|
2692
|
+
var UnsetTeamRealmRequest = {
|
|
2693
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
2694
|
+
if (message.teamId !== "") {
|
|
2695
|
+
writer.uint32(10).string(message.teamId);
|
|
2696
|
+
}
|
|
2697
|
+
if (message.force !== false) {
|
|
2698
|
+
writer.uint32(16).bool(message.force);
|
|
2699
|
+
}
|
|
2700
|
+
return writer;
|
|
2701
|
+
},
|
|
2702
|
+
decode(input, length) {
|
|
2703
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
2704
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2705
|
+
if (previousRecursionDepth >= 100) {
|
|
2706
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2707
|
+
}
|
|
2708
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2709
|
+
try {
|
|
2710
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2711
|
+
const message = createBaseUnsetTeamRealmRequest();
|
|
2712
|
+
while (reader.pos < end) {
|
|
2713
|
+
const tag = reader.uint32();
|
|
2714
|
+
switch (tag >>> 3) {
|
|
2715
|
+
case 1: {
|
|
2716
|
+
if (tag !== 10) {
|
|
2717
|
+
break;
|
|
2718
|
+
}
|
|
2719
|
+
message.teamId = reader.string();
|
|
2720
|
+
continue;
|
|
2721
|
+
}
|
|
2722
|
+
case 2: {
|
|
2723
|
+
if (tag !== 16) {
|
|
2724
|
+
break;
|
|
2725
|
+
}
|
|
2726
|
+
message.force = reader.bool();
|
|
2727
|
+
continue;
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2730
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2731
|
+
break;
|
|
2732
|
+
}
|
|
2733
|
+
reader.skip(tag & 7);
|
|
2734
|
+
}
|
|
2735
|
+
return message;
|
|
2736
|
+
} finally {
|
|
2737
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2738
|
+
}
|
|
2739
|
+
},
|
|
2740
|
+
fromJSON(object) {
|
|
2741
|
+
return {
|
|
2742
|
+
teamId: isSet(object.teamId) ? globalThis.String(object.teamId) : "",
|
|
2743
|
+
force: isSet(object.force) ? globalThis.Boolean(object.force) : false
|
|
2744
|
+
};
|
|
2745
|
+
},
|
|
2746
|
+
toJSON(message) {
|
|
2747
|
+
const obj = {};
|
|
2748
|
+
if (message.teamId !== "") {
|
|
2749
|
+
obj.teamId = message.teamId;
|
|
2750
|
+
}
|
|
2751
|
+
if (message.force !== false) {
|
|
2752
|
+
obj.force = message.force;
|
|
2753
|
+
}
|
|
2754
|
+
return obj;
|
|
2755
|
+
},
|
|
2756
|
+
create(base) {
|
|
2757
|
+
return UnsetTeamRealmRequest.fromPartial(base ?? {});
|
|
2758
|
+
},
|
|
2759
|
+
fromPartial(object) {
|
|
2760
|
+
const message = createBaseUnsetTeamRealmRequest();
|
|
2761
|
+
message.teamId = object.teamId ?? "";
|
|
2762
|
+
message.force = object.force ?? false;
|
|
2763
|
+
return message;
|
|
2764
|
+
}
|
|
2765
|
+
};
|
|
2766
|
+
function createBaseUnsetTeamRealmResponse() {
|
|
2767
|
+
return { message: "", blockedUsers: 0 };
|
|
2768
|
+
}
|
|
2769
|
+
var UnsetTeamRealmResponse = {
|
|
2770
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
2771
|
+
if (message.message !== "") {
|
|
2772
|
+
writer.uint32(10).string(message.message);
|
|
2773
|
+
}
|
|
2774
|
+
if (message.blockedUsers !== 0) {
|
|
2775
|
+
writer.uint32(16).int32(message.blockedUsers);
|
|
2776
|
+
}
|
|
2777
|
+
return writer;
|
|
2778
|
+
},
|
|
2779
|
+
decode(input, length) {
|
|
2780
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
2781
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2782
|
+
if (previousRecursionDepth >= 100) {
|
|
2783
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2784
|
+
}
|
|
2785
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2786
|
+
try {
|
|
2787
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2788
|
+
const message = createBaseUnsetTeamRealmResponse();
|
|
2789
|
+
while (reader.pos < end) {
|
|
2790
|
+
const tag = reader.uint32();
|
|
2791
|
+
switch (tag >>> 3) {
|
|
2792
|
+
case 1: {
|
|
2793
|
+
if (tag !== 10) {
|
|
2794
|
+
break;
|
|
2795
|
+
}
|
|
2796
|
+
message.message = reader.string();
|
|
2797
|
+
continue;
|
|
2798
|
+
}
|
|
2799
|
+
case 2: {
|
|
2800
|
+
if (tag !== 16) {
|
|
2801
|
+
break;
|
|
2802
|
+
}
|
|
2803
|
+
message.blockedUsers = reader.int32();
|
|
2804
|
+
continue;
|
|
2805
|
+
}
|
|
2806
|
+
}
|
|
2807
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2808
|
+
break;
|
|
2809
|
+
}
|
|
2810
|
+
reader.skip(tag & 7);
|
|
2811
|
+
}
|
|
2812
|
+
return message;
|
|
2813
|
+
} finally {
|
|
2814
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
fromJSON(object) {
|
|
2818
|
+
return {
|
|
2819
|
+
message: isSet(object.message) ? globalThis.String(object.message) : "",
|
|
2820
|
+
blockedUsers: isSet(object.blockedUsers) ? globalThis.Number(object.blockedUsers) : 0
|
|
2821
|
+
};
|
|
2822
|
+
},
|
|
2823
|
+
toJSON(message) {
|
|
2824
|
+
const obj = {};
|
|
2825
|
+
if (message.message !== "") {
|
|
2826
|
+
obj.message = message.message;
|
|
2827
|
+
}
|
|
2828
|
+
if (message.blockedUsers !== 0) {
|
|
2829
|
+
obj.blockedUsers = Math.round(message.blockedUsers);
|
|
2830
|
+
}
|
|
2831
|
+
return obj;
|
|
2832
|
+
},
|
|
2833
|
+
create(base) {
|
|
2834
|
+
return UnsetTeamRealmResponse.fromPartial(base ?? {});
|
|
2835
|
+
},
|
|
2836
|
+
fromPartial(object) {
|
|
2837
|
+
const message = createBaseUnsetTeamRealmResponse();
|
|
2838
|
+
message.message = object.message ?? "";
|
|
2839
|
+
message.blockedUsers = object.blockedUsers ?? 0;
|
|
2840
|
+
return message;
|
|
2841
|
+
}
|
|
2842
|
+
};
|
|
2843
|
+
function createBaseRealmMembershipRequest() {
|
|
2844
|
+
return { teamId: "", userId: "", type: "", force: false };
|
|
2845
|
+
}
|
|
2846
|
+
var RealmMembershipRequest = {
|
|
2847
|
+
encode(message, writer = new BinaryWriter2()) {
|
|
2848
|
+
if (message.teamId !== "") {
|
|
2849
|
+
writer.uint32(10).string(message.teamId);
|
|
2850
|
+
}
|
|
2851
|
+
if (message.userId !== "") {
|
|
2852
|
+
writer.uint32(18).string(message.userId);
|
|
2853
|
+
}
|
|
2854
|
+
if (message.type !== "") {
|
|
2855
|
+
writer.uint32(26).string(message.type);
|
|
2856
|
+
}
|
|
2857
|
+
if (message.force !== false) {
|
|
2858
|
+
writer.uint32(32).bool(message.force);
|
|
2859
|
+
}
|
|
2860
|
+
return writer;
|
|
2861
|
+
},
|
|
2862
|
+
decode(input, length) {
|
|
2863
|
+
const reader = input instanceof BinaryReader2 ? input : new BinaryReader2(input);
|
|
2864
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
2865
|
+
if (previousRecursionDepth >= 100) {
|
|
2866
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
2867
|
+
}
|
|
2868
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2869
|
+
try {
|
|
2870
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2871
|
+
const message = createBaseRealmMembershipRequest();
|
|
2872
|
+
while (reader.pos < end) {
|
|
2873
|
+
const tag = reader.uint32();
|
|
2874
|
+
switch (tag >>> 3) {
|
|
2875
|
+
case 1: {
|
|
2876
|
+
if (tag !== 10) {
|
|
2877
|
+
break;
|
|
2878
|
+
}
|
|
2879
|
+
message.teamId = reader.string();
|
|
2880
|
+
continue;
|
|
2881
|
+
}
|
|
2882
|
+
case 2: {
|
|
2883
|
+
if (tag !== 18) {
|
|
2884
|
+
break;
|
|
2885
|
+
}
|
|
2886
|
+
message.userId = reader.string();
|
|
2887
|
+
continue;
|
|
2888
|
+
}
|
|
2889
|
+
case 3: {
|
|
2890
|
+
if (tag !== 26) {
|
|
2891
|
+
break;
|
|
2892
|
+
}
|
|
2893
|
+
message.type = reader.string();
|
|
2894
|
+
continue;
|
|
2895
|
+
}
|
|
2896
|
+
case 4: {
|
|
2897
|
+
if (tag !== 32) {
|
|
2898
|
+
break;
|
|
2899
|
+
}
|
|
2900
|
+
message.force = reader.bool();
|
|
2901
|
+
continue;
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2904
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2905
|
+
break;
|
|
2906
|
+
}
|
|
2907
|
+
reader.skip(tag & 7);
|
|
2908
|
+
}
|
|
2909
|
+
return message;
|
|
2910
|
+
} finally {
|
|
2911
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
2912
|
+
}
|
|
2913
|
+
},
|
|
2914
|
+
fromJSON(object) {
|
|
2915
|
+
return {
|
|
2916
|
+
teamId: isSet(object.teamId) ? globalThis.String(object.teamId) : "",
|
|
2917
|
+
userId: isSet(object.userId) ? globalThis.String(object.userId) : "",
|
|
2918
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
2919
|
+
force: isSet(object.force) ? globalThis.Boolean(object.force) : false
|
|
2920
|
+
};
|
|
2921
|
+
},
|
|
2922
|
+
toJSON(message) {
|
|
2923
|
+
const obj = {};
|
|
2924
|
+
if (message.teamId !== "") {
|
|
2925
|
+
obj.teamId = message.teamId;
|
|
2926
|
+
}
|
|
2927
|
+
if (message.userId !== "") {
|
|
2928
|
+
obj.userId = message.userId;
|
|
2929
|
+
}
|
|
2930
|
+
if (message.type !== "") {
|
|
2931
|
+
obj.type = message.type;
|
|
2932
|
+
}
|
|
2933
|
+
if (message.force !== false) {
|
|
2934
|
+
obj.force = message.force;
|
|
2935
|
+
}
|
|
2936
|
+
return obj;
|
|
2937
|
+
},
|
|
2938
|
+
create(base) {
|
|
2939
|
+
return RealmMembershipRequest.fromPartial(base ?? {});
|
|
2940
|
+
},
|
|
2941
|
+
fromPartial(object) {
|
|
2942
|
+
const message = createBaseRealmMembershipRequest();
|
|
2943
|
+
message.teamId = object.teamId ?? "";
|
|
2944
|
+
message.userId = object.userId ?? "";
|
|
2945
|
+
message.type = object.type ?? "";
|
|
2946
|
+
message.force = object.force ?? false;
|
|
2947
|
+
return message;
|
|
2948
|
+
}
|
|
2949
|
+
};
|
|
2950
|
+
var AuthenticationDefinition = {
|
|
2951
|
+
name: "Authentication",
|
|
2952
|
+
fullName: "authentication.Authentication",
|
|
2953
|
+
methods: {
|
|
2954
|
+
userLogin: {
|
|
2955
|
+
name: "UserLogin",
|
|
2956
|
+
requestType: UserLoginRequest,
|
|
2957
|
+
requestStream: false,
|
|
2958
|
+
responseType: UserLoginResponse,
|
|
2959
|
+
responseStream: false,
|
|
2960
|
+
options: {}
|
|
2961
|
+
},
|
|
2962
|
+
userCreate: {
|
|
2963
|
+
name: "UserCreate",
|
|
2964
|
+
requestType: UserCreateRequest,
|
|
2965
|
+
requestStream: false,
|
|
2966
|
+
responseType: UserCreateResponse,
|
|
2967
|
+
responseStream: false,
|
|
2968
|
+
options: {}
|
|
2969
|
+
},
|
|
2970
|
+
userCreateByUsername: {
|
|
2971
|
+
name: "UserCreateByUsername",
|
|
2972
|
+
requestType: UserCreateByUsernameRequest,
|
|
2973
|
+
requestStream: false,
|
|
2974
|
+
responseType: UserCreateResponse,
|
|
2975
|
+
responseStream: false,
|
|
2976
|
+
options: {}
|
|
2977
|
+
},
|
|
2978
|
+
userModifyStatus: {
|
|
2979
|
+
name: "UserModifyStatus",
|
|
2980
|
+
requestType: UserModifyStatusRequest,
|
|
2981
|
+
requestStream: false,
|
|
2982
|
+
responseType: UserModifyStatusResponse,
|
|
2983
|
+
responseStream: false,
|
|
2984
|
+
options: {}
|
|
2985
|
+
},
|
|
2986
|
+
anonymousUserCreate: {
|
|
2987
|
+
name: "AnonymousUserCreate",
|
|
2988
|
+
requestType: AnonymousUserCreateRequest,
|
|
2989
|
+
requestStream: false,
|
|
2990
|
+
responseType: UserLoginResponse,
|
|
2991
|
+
responseStream: false,
|
|
2992
|
+
options: {}
|
|
2993
|
+
},
|
|
2994
|
+
changePass: {
|
|
2995
|
+
name: "ChangePass",
|
|
2996
|
+
requestType: UserChangePass,
|
|
2997
|
+
requestStream: false,
|
|
2998
|
+
responseType: UserCreateResponse,
|
|
2999
|
+
responseStream: false,
|
|
3000
|
+
options: {}
|
|
3001
|
+
},
|
|
3002
|
+
changeEmail: {
|
|
3003
|
+
name: "ChangeEmail",
|
|
3004
|
+
requestType: UserChangeEmail,
|
|
3005
|
+
requestStream: false,
|
|
3006
|
+
responseType: UserChangeEmailResponse,
|
|
3007
|
+
responseStream: false,
|
|
3008
|
+
options: {}
|
|
3009
|
+
},
|
|
3010
|
+
userDelete: {
|
|
3011
|
+
name: "UserDelete",
|
|
3012
|
+
requestType: UserDeleteRequest,
|
|
3013
|
+
requestStream: false,
|
|
3014
|
+
responseType: UserDeleteResponse,
|
|
3015
|
+
responseStream: false,
|
|
3016
|
+
options: {}
|
|
3017
|
+
},
|
|
3018
|
+
getTeam: {
|
|
3019
|
+
name: "GetTeam",
|
|
3020
|
+
requestType: GetTeamRequest,
|
|
3021
|
+
requestStream: false,
|
|
3022
|
+
responseType: Team,
|
|
3023
|
+
responseStream: false,
|
|
3024
|
+
options: {}
|
|
3025
|
+
},
|
|
3026
|
+
createTeam: {
|
|
3027
|
+
name: "CreateTeam",
|
|
3028
|
+
requestType: CreateTeamRequest,
|
|
3029
|
+
requestStream: false,
|
|
3030
|
+
responseType: Team,
|
|
3031
|
+
responseStream: false,
|
|
3032
|
+
options: {}
|
|
3033
|
+
},
|
|
3034
|
+
teamDelete: {
|
|
3035
|
+
name: "TeamDelete",
|
|
3036
|
+
requestType: TeamDeleteRequest,
|
|
3037
|
+
requestStream: false,
|
|
3038
|
+
responseType: TeamDeleteResponse,
|
|
2095
3039
|
responseStream: false,
|
|
2096
3040
|
options: {}
|
|
2097
3041
|
},
|
|
@@ -2111,6 +3055,14 @@ var AuthenticationDefinition = {
|
|
|
2111
3055
|
responseStream: false,
|
|
2112
3056
|
options: {}
|
|
2113
3057
|
},
|
|
3058
|
+
getUser: {
|
|
3059
|
+
name: "GetUser",
|
|
3060
|
+
requestType: GetUserRequest,
|
|
3061
|
+
requestStream: false,
|
|
3062
|
+
responseType: GetUserResponse,
|
|
3063
|
+
responseStream: false,
|
|
3064
|
+
options: {}
|
|
3065
|
+
},
|
|
2114
3066
|
validateAccessToken: {
|
|
2115
3067
|
name: "ValidateAccessToken",
|
|
2116
3068
|
requestType: ValidateAccessTokenRequest,
|
|
@@ -2142,6 +3094,46 @@ var AuthenticationDefinition = {
|
|
|
2142
3094
|
responseType: Team,
|
|
2143
3095
|
responseStream: false,
|
|
2144
3096
|
options: {}
|
|
3097
|
+
},
|
|
3098
|
+
setTeamRealm: {
|
|
3099
|
+
name: "SetTeamRealm",
|
|
3100
|
+
requestType: SetTeamRealmRequest,
|
|
3101
|
+
requestStream: false,
|
|
3102
|
+
responseType: RealmResponse,
|
|
3103
|
+
responseStream: false,
|
|
3104
|
+
options: {}
|
|
3105
|
+
},
|
|
3106
|
+
getRealmSettings: {
|
|
3107
|
+
name: "GetRealmSettings",
|
|
3108
|
+
requestType: GetRealmSettingsRequest,
|
|
3109
|
+
requestStream: false,
|
|
3110
|
+
responseType: RealmResponse,
|
|
3111
|
+
responseStream: false,
|
|
3112
|
+
options: {}
|
|
3113
|
+
},
|
|
3114
|
+
unsetTeamRealm: {
|
|
3115
|
+
name: "UnsetTeamRealm",
|
|
3116
|
+
requestType: UnsetTeamRealmRequest,
|
|
3117
|
+
requestStream: false,
|
|
3118
|
+
responseType: UnsetTeamRealmResponse,
|
|
3119
|
+
responseStream: false,
|
|
3120
|
+
options: {}
|
|
3121
|
+
},
|
|
3122
|
+
grantRealmMembership: {
|
|
3123
|
+
name: "GrantRealmMembership",
|
|
3124
|
+
requestType: RealmMembershipRequest,
|
|
3125
|
+
requestStream: false,
|
|
3126
|
+
responseType: Empty,
|
|
3127
|
+
responseStream: false,
|
|
3128
|
+
options: {}
|
|
3129
|
+
},
|
|
3130
|
+
revokeRealmMembership: {
|
|
3131
|
+
name: "RevokeRealmMembership",
|
|
3132
|
+
requestType: RealmMembershipRequest,
|
|
3133
|
+
requestStream: false,
|
|
3134
|
+
responseType: Empty,
|
|
3135
|
+
responseStream: false,
|
|
3136
|
+
options: {}
|
|
2145
3137
|
}
|
|
2146
3138
|
}
|
|
2147
3139
|
};
|
|
@@ -2861,7 +3853,230 @@ var FindRelationRequest = {
|
|
|
2861
3853
|
if (message.skip !== void 0) {
|
|
2862
3854
|
writer.uint32(48).int32(message.skip);
|
|
2863
3855
|
}
|
|
2864
|
-
if (message.limit !== void 0) {
|
|
3856
|
+
if (message.limit !== void 0) {
|
|
3857
|
+
writer.uint32(56).int32(message.limit);
|
|
3858
|
+
}
|
|
3859
|
+
return writer;
|
|
3860
|
+
},
|
|
3861
|
+
decode(input, length) {
|
|
3862
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
3863
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
3864
|
+
if (previousRecursionDepth >= 100) {
|
|
3865
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
3866
|
+
}
|
|
3867
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3868
|
+
try {
|
|
3869
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3870
|
+
const message = createBaseFindRelationRequest();
|
|
3871
|
+
while (reader.pos < end) {
|
|
3872
|
+
const tag = reader.uint32();
|
|
3873
|
+
switch (tag >>> 3) {
|
|
3874
|
+
case 1: {
|
|
3875
|
+
if (tag !== 10) {
|
|
3876
|
+
break;
|
|
3877
|
+
}
|
|
3878
|
+
message.subject = reader.string();
|
|
3879
|
+
continue;
|
|
3880
|
+
}
|
|
3881
|
+
case 2: {
|
|
3882
|
+
if (tag !== 18) {
|
|
3883
|
+
break;
|
|
3884
|
+
}
|
|
3885
|
+
message.relation = reader.string();
|
|
3886
|
+
continue;
|
|
3887
|
+
}
|
|
3888
|
+
case 3: {
|
|
3889
|
+
if (tag !== 26) {
|
|
3890
|
+
break;
|
|
3891
|
+
}
|
|
3892
|
+
message.resource = reader.string();
|
|
3893
|
+
continue;
|
|
3894
|
+
}
|
|
3895
|
+
case 4: {
|
|
3896
|
+
if (tag !== 34) {
|
|
3897
|
+
break;
|
|
3898
|
+
}
|
|
3899
|
+
message.subjectType = reader.string();
|
|
3900
|
+
continue;
|
|
3901
|
+
}
|
|
3902
|
+
case 5: {
|
|
3903
|
+
if (tag !== 42) {
|
|
3904
|
+
break;
|
|
3905
|
+
}
|
|
3906
|
+
message.resourceType = reader.string();
|
|
3907
|
+
continue;
|
|
3908
|
+
}
|
|
3909
|
+
case 6: {
|
|
3910
|
+
if (tag !== 48) {
|
|
3911
|
+
break;
|
|
3912
|
+
}
|
|
3913
|
+
message.skip = reader.int32();
|
|
3914
|
+
continue;
|
|
3915
|
+
}
|
|
3916
|
+
case 7: {
|
|
3917
|
+
if (tag !== 56) {
|
|
3918
|
+
break;
|
|
3919
|
+
}
|
|
3920
|
+
message.limit = reader.int32();
|
|
3921
|
+
continue;
|
|
3922
|
+
}
|
|
3923
|
+
}
|
|
3924
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
3925
|
+
break;
|
|
3926
|
+
}
|
|
3927
|
+
reader.skip(tag & 7);
|
|
3928
|
+
}
|
|
3929
|
+
return message;
|
|
3930
|
+
} finally {
|
|
3931
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
3932
|
+
}
|
|
3933
|
+
},
|
|
3934
|
+
fromJSON(object) {
|
|
3935
|
+
return {
|
|
3936
|
+
subject: isSet2(object.subject) ? globalThis.String(object.subject) : void 0,
|
|
3937
|
+
relation: isSet2(object.relation) ? globalThis.String(object.relation) : void 0,
|
|
3938
|
+
resource: isSet2(object.resource) ? globalThis.String(object.resource) : void 0,
|
|
3939
|
+
subjectType: isSet2(object.subjectType) ? globalThis.String(object.subjectType) : void 0,
|
|
3940
|
+
resourceType: isSet2(object.resourceType) ? globalThis.String(object.resourceType) : void 0,
|
|
3941
|
+
skip: isSet2(object.skip) ? globalThis.Number(object.skip) : void 0,
|
|
3942
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : void 0
|
|
3943
|
+
};
|
|
3944
|
+
},
|
|
3945
|
+
toJSON(message) {
|
|
3946
|
+
const obj = {};
|
|
3947
|
+
if (message.subject !== void 0) {
|
|
3948
|
+
obj.subject = message.subject;
|
|
3949
|
+
}
|
|
3950
|
+
if (message.relation !== void 0) {
|
|
3951
|
+
obj.relation = message.relation;
|
|
3952
|
+
}
|
|
3953
|
+
if (message.resource !== void 0) {
|
|
3954
|
+
obj.resource = message.resource;
|
|
3955
|
+
}
|
|
3956
|
+
if (message.subjectType !== void 0) {
|
|
3957
|
+
obj.subjectType = message.subjectType;
|
|
3958
|
+
}
|
|
3959
|
+
if (message.resourceType !== void 0) {
|
|
3960
|
+
obj.resourceType = message.resourceType;
|
|
3961
|
+
}
|
|
3962
|
+
if (message.skip !== void 0) {
|
|
3963
|
+
obj.skip = Math.round(message.skip);
|
|
3964
|
+
}
|
|
3965
|
+
if (message.limit !== void 0) {
|
|
3966
|
+
obj.limit = Math.round(message.limit);
|
|
3967
|
+
}
|
|
3968
|
+
return obj;
|
|
3969
|
+
},
|
|
3970
|
+
create(base) {
|
|
3971
|
+
return FindRelationRequest.fromPartial(base ?? {});
|
|
3972
|
+
},
|
|
3973
|
+
fromPartial(object) {
|
|
3974
|
+
const message = createBaseFindRelationRequest();
|
|
3975
|
+
message.subject = object.subject ?? void 0;
|
|
3976
|
+
message.relation = object.relation ?? void 0;
|
|
3977
|
+
message.resource = object.resource ?? void 0;
|
|
3978
|
+
message.subjectType = object.subjectType ?? void 0;
|
|
3979
|
+
message.resourceType = object.resourceType ?? void 0;
|
|
3980
|
+
message.skip = object.skip ?? void 0;
|
|
3981
|
+
message.limit = object.limit ?? void 0;
|
|
3982
|
+
return message;
|
|
3983
|
+
}
|
|
3984
|
+
};
|
|
3985
|
+
function createBaseFindRelationResponse() {
|
|
3986
|
+
return { relations: [], count: 0 };
|
|
3987
|
+
}
|
|
3988
|
+
var FindRelationResponse = {
|
|
3989
|
+
encode(message, writer = new BinaryWriter3()) {
|
|
3990
|
+
for (const v of message.relations) {
|
|
3991
|
+
Relation.encode(v, writer.uint32(10).fork()).join();
|
|
3992
|
+
}
|
|
3993
|
+
if (message.count !== 0) {
|
|
3994
|
+
writer.uint32(16).int32(message.count);
|
|
3995
|
+
}
|
|
3996
|
+
return writer;
|
|
3997
|
+
},
|
|
3998
|
+
decode(input, length) {
|
|
3999
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
4000
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4001
|
+
if (previousRecursionDepth >= 100) {
|
|
4002
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4003
|
+
}
|
|
4004
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4005
|
+
try {
|
|
4006
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4007
|
+
const message = createBaseFindRelationResponse();
|
|
4008
|
+
while (reader.pos < end) {
|
|
4009
|
+
const tag = reader.uint32();
|
|
4010
|
+
switch (tag >>> 3) {
|
|
4011
|
+
case 1: {
|
|
4012
|
+
if (tag !== 10) {
|
|
4013
|
+
break;
|
|
4014
|
+
}
|
|
4015
|
+
message.relations.push(Relation.decode(reader, reader.uint32()));
|
|
4016
|
+
continue;
|
|
4017
|
+
}
|
|
4018
|
+
case 2: {
|
|
4019
|
+
if (tag !== 16) {
|
|
4020
|
+
break;
|
|
4021
|
+
}
|
|
4022
|
+
message.count = reader.int32();
|
|
4023
|
+
continue;
|
|
4024
|
+
}
|
|
4025
|
+
}
|
|
4026
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4027
|
+
break;
|
|
4028
|
+
}
|
|
4029
|
+
reader.skip(tag & 7);
|
|
4030
|
+
}
|
|
4031
|
+
return message;
|
|
4032
|
+
} finally {
|
|
4033
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4034
|
+
}
|
|
4035
|
+
},
|
|
4036
|
+
fromJSON(object) {
|
|
4037
|
+
return {
|
|
4038
|
+
relations: globalThis.Array.isArray(object?.relations) ? object.relations.map((e) => Relation.fromJSON(e)) : [],
|
|
4039
|
+
count: isSet2(object.count) ? globalThis.Number(object.count) : 0
|
|
4040
|
+
};
|
|
4041
|
+
},
|
|
4042
|
+
toJSON(message) {
|
|
4043
|
+
const obj = {};
|
|
4044
|
+
if (message.relations?.length) {
|
|
4045
|
+
obj.relations = message.relations.map((e) => Relation.toJSON(e));
|
|
4046
|
+
}
|
|
4047
|
+
if (message.count !== 0) {
|
|
4048
|
+
obj.count = Math.round(message.count);
|
|
4049
|
+
}
|
|
4050
|
+
return obj;
|
|
4051
|
+
},
|
|
4052
|
+
create(base) {
|
|
4053
|
+
return FindRelationResponse.fromPartial(base ?? {});
|
|
4054
|
+
},
|
|
4055
|
+
fromPartial(object) {
|
|
4056
|
+
const message = createBaseFindRelationResponse();
|
|
4057
|
+
message.relations = object.relations?.map((e) => Relation.fromPartial(e)) || [];
|
|
4058
|
+
message.count = object.count ?? 0;
|
|
4059
|
+
return message;
|
|
4060
|
+
}
|
|
4061
|
+
};
|
|
4062
|
+
function createBaseAllowedResourcesRequest() {
|
|
4063
|
+
return { subject: "", action: "", resourceType: "", skip: 0, limit: 0 };
|
|
4064
|
+
}
|
|
4065
|
+
var AllowedResourcesRequest = {
|
|
4066
|
+
encode(message, writer = new BinaryWriter3()) {
|
|
4067
|
+
if (message.subject !== "") {
|
|
4068
|
+
writer.uint32(10).string(message.subject);
|
|
4069
|
+
}
|
|
4070
|
+
if (message.action !== "") {
|
|
4071
|
+
writer.uint32(18).string(message.action);
|
|
4072
|
+
}
|
|
4073
|
+
if (message.resourceType !== "") {
|
|
4074
|
+
writer.uint32(42).string(message.resourceType);
|
|
4075
|
+
}
|
|
4076
|
+
if (message.skip !== 0) {
|
|
4077
|
+
writer.uint32(48).int32(message.skip);
|
|
4078
|
+
}
|
|
4079
|
+
if (message.limit !== 0) {
|
|
2865
4080
|
writer.uint32(56).int32(message.limit);
|
|
2866
4081
|
}
|
|
2867
4082
|
return writer;
|
|
@@ -2875,7 +4090,7 @@ var FindRelationRequest = {
|
|
|
2875
4090
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
2876
4091
|
try {
|
|
2877
4092
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2878
|
-
const message =
|
|
4093
|
+
const message = createBaseAllowedResourcesRequest();
|
|
2879
4094
|
while (reader.pos < end) {
|
|
2880
4095
|
const tag = reader.uint32();
|
|
2881
4096
|
switch (tag >>> 3) {
|
|
@@ -2890,21 +4105,7 @@ var FindRelationRequest = {
|
|
|
2890
4105
|
if (tag !== 18) {
|
|
2891
4106
|
break;
|
|
2892
4107
|
}
|
|
2893
|
-
message.
|
|
2894
|
-
continue;
|
|
2895
|
-
}
|
|
2896
|
-
case 3: {
|
|
2897
|
-
if (tag !== 26) {
|
|
2898
|
-
break;
|
|
2899
|
-
}
|
|
2900
|
-
message.resource = reader.string();
|
|
2901
|
-
continue;
|
|
2902
|
-
}
|
|
2903
|
-
case 4: {
|
|
2904
|
-
if (tag !== 34) {
|
|
2905
|
-
break;
|
|
2906
|
-
}
|
|
2907
|
-
message.subjectType = reader.string();
|
|
4108
|
+
message.action = reader.string();
|
|
2908
4109
|
continue;
|
|
2909
4110
|
}
|
|
2910
4111
|
case 5: {
|
|
@@ -2941,62 +4142,52 @@ var FindRelationRequest = {
|
|
|
2941
4142
|
},
|
|
2942
4143
|
fromJSON(object) {
|
|
2943
4144
|
return {
|
|
2944
|
-
subject: isSet2(object.subject) ? globalThis.String(object.subject) :
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
skip: isSet2(object.skip) ? globalThis.Number(object.skip) : void 0,
|
|
2950
|
-
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : void 0
|
|
4145
|
+
subject: isSet2(object.subject) ? globalThis.String(object.subject) : "",
|
|
4146
|
+
action: isSet2(object.action) ? globalThis.String(object.action) : "",
|
|
4147
|
+
resourceType: isSet2(object.resourceType) ? globalThis.String(object.resourceType) : "",
|
|
4148
|
+
skip: isSet2(object.skip) ? globalThis.Number(object.skip) : 0,
|
|
4149
|
+
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0
|
|
2951
4150
|
};
|
|
2952
4151
|
},
|
|
2953
4152
|
toJSON(message) {
|
|
2954
4153
|
const obj = {};
|
|
2955
|
-
if (message.subject !==
|
|
4154
|
+
if (message.subject !== "") {
|
|
2956
4155
|
obj.subject = message.subject;
|
|
2957
4156
|
}
|
|
2958
|
-
if (message.
|
|
2959
|
-
obj.
|
|
2960
|
-
}
|
|
2961
|
-
if (message.resource !== void 0) {
|
|
2962
|
-
obj.resource = message.resource;
|
|
2963
|
-
}
|
|
2964
|
-
if (message.subjectType !== void 0) {
|
|
2965
|
-
obj.subjectType = message.subjectType;
|
|
4157
|
+
if (message.action !== "") {
|
|
4158
|
+
obj.action = message.action;
|
|
2966
4159
|
}
|
|
2967
|
-
if (message.resourceType !==
|
|
4160
|
+
if (message.resourceType !== "") {
|
|
2968
4161
|
obj.resourceType = message.resourceType;
|
|
2969
4162
|
}
|
|
2970
|
-
if (message.skip !==
|
|
4163
|
+
if (message.skip !== 0) {
|
|
2971
4164
|
obj.skip = Math.round(message.skip);
|
|
2972
4165
|
}
|
|
2973
|
-
if (message.limit !==
|
|
4166
|
+
if (message.limit !== 0) {
|
|
2974
4167
|
obj.limit = Math.round(message.limit);
|
|
2975
4168
|
}
|
|
2976
4169
|
return obj;
|
|
2977
4170
|
},
|
|
2978
4171
|
create(base) {
|
|
2979
|
-
return
|
|
4172
|
+
return AllowedResourcesRequest.fromPartial(base ?? {});
|
|
2980
4173
|
},
|
|
2981
4174
|
fromPartial(object) {
|
|
2982
|
-
const message =
|
|
2983
|
-
message.subject = object.subject ??
|
|
2984
|
-
message.
|
|
2985
|
-
message.
|
|
2986
|
-
message.
|
|
2987
|
-
message.
|
|
2988
|
-
message.skip = object.skip ?? void 0;
|
|
2989
|
-
message.limit = object.limit ?? void 0;
|
|
4175
|
+
const message = createBaseAllowedResourcesRequest();
|
|
4176
|
+
message.subject = object.subject ?? "";
|
|
4177
|
+
message.action = object.action ?? "";
|
|
4178
|
+
message.resourceType = object.resourceType ?? "";
|
|
4179
|
+
message.skip = object.skip ?? 0;
|
|
4180
|
+
message.limit = object.limit ?? 0;
|
|
2990
4181
|
return message;
|
|
2991
4182
|
}
|
|
2992
4183
|
};
|
|
2993
|
-
function
|
|
2994
|
-
return {
|
|
4184
|
+
function createBaseAllowedResourcesResponse() {
|
|
4185
|
+
return { resources: [], count: 0 };
|
|
2995
4186
|
}
|
|
2996
|
-
var
|
|
4187
|
+
var AllowedResourcesResponse = {
|
|
2997
4188
|
encode(message, writer = new BinaryWriter3()) {
|
|
2998
|
-
for (const v of message.
|
|
2999
|
-
|
|
4189
|
+
for (const v of message.resources) {
|
|
4190
|
+
writer.uint32(10).string(v);
|
|
3000
4191
|
}
|
|
3001
4192
|
if (message.count !== 0) {
|
|
3002
4193
|
writer.uint32(16).int32(message.count);
|
|
@@ -3012,7 +4203,7 @@ var FindRelationResponse = {
|
|
|
3012
4203
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3013
4204
|
try {
|
|
3014
4205
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3015
|
-
const message =
|
|
4206
|
+
const message = createBaseAllowedResourcesResponse();
|
|
3016
4207
|
while (reader.pos < end) {
|
|
3017
4208
|
const tag = reader.uint32();
|
|
3018
4209
|
switch (tag >>> 3) {
|
|
@@ -3020,7 +4211,7 @@ var FindRelationResponse = {
|
|
|
3020
4211
|
if (tag !== 10) {
|
|
3021
4212
|
break;
|
|
3022
4213
|
}
|
|
3023
|
-
message.
|
|
4214
|
+
message.resources.push(reader.string());
|
|
3024
4215
|
continue;
|
|
3025
4216
|
}
|
|
3026
4217
|
case 2: {
|
|
@@ -3043,14 +4234,14 @@ var FindRelationResponse = {
|
|
|
3043
4234
|
},
|
|
3044
4235
|
fromJSON(object) {
|
|
3045
4236
|
return {
|
|
3046
|
-
|
|
4237
|
+
resources: globalThis.Array.isArray(object?.resources) ? object.resources.map((e) => globalThis.String(e)) : [],
|
|
3047
4238
|
count: isSet2(object.count) ? globalThis.Number(object.count) : 0
|
|
3048
4239
|
};
|
|
3049
4240
|
},
|
|
3050
4241
|
toJSON(message) {
|
|
3051
4242
|
const obj = {};
|
|
3052
|
-
if (message.
|
|
3053
|
-
obj.
|
|
4243
|
+
if (message.resources?.length) {
|
|
4244
|
+
obj.resources = message.resources;
|
|
3054
4245
|
}
|
|
3055
4246
|
if (message.count !== 0) {
|
|
3056
4247
|
obj.count = Math.round(message.count);
|
|
@@ -3058,19 +4249,19 @@ var FindRelationResponse = {
|
|
|
3058
4249
|
return obj;
|
|
3059
4250
|
},
|
|
3060
4251
|
create(base) {
|
|
3061
|
-
return
|
|
4252
|
+
return AllowedResourcesResponse.fromPartial(base ?? {});
|
|
3062
4253
|
},
|
|
3063
4254
|
fromPartial(object) {
|
|
3064
|
-
const message =
|
|
3065
|
-
message.
|
|
4255
|
+
const message = createBaseAllowedResourcesResponse();
|
|
4256
|
+
message.resources = object.resources?.map((e) => e) || [];
|
|
3066
4257
|
message.count = object.count ?? 0;
|
|
3067
4258
|
return message;
|
|
3068
4259
|
}
|
|
3069
4260
|
};
|
|
3070
|
-
function
|
|
3071
|
-
return { subject: "", action: "",
|
|
4261
|
+
function createBaseResourceAccessListRequest() {
|
|
4262
|
+
return { subject: "", action: "", viewName: void 0, resourceType: "" };
|
|
3072
4263
|
}
|
|
3073
|
-
var
|
|
4264
|
+
var ResourceAccessListRequest = {
|
|
3074
4265
|
encode(message, writer = new BinaryWriter3()) {
|
|
3075
4266
|
if (message.subject !== "") {
|
|
3076
4267
|
writer.uint32(10).string(message.subject);
|
|
@@ -3078,15 +4269,12 @@ var AllowedResourcesRequest = {
|
|
|
3078
4269
|
if (message.action !== "") {
|
|
3079
4270
|
writer.uint32(18).string(message.action);
|
|
3080
4271
|
}
|
|
4272
|
+
if (message.viewName !== void 0) {
|
|
4273
|
+
writer.uint32(26).string(message.viewName);
|
|
4274
|
+
}
|
|
3081
4275
|
if (message.resourceType !== "") {
|
|
3082
4276
|
writer.uint32(42).string(message.resourceType);
|
|
3083
4277
|
}
|
|
3084
|
-
if (message.skip !== 0) {
|
|
3085
|
-
writer.uint32(48).int32(message.skip);
|
|
3086
|
-
}
|
|
3087
|
-
if (message.limit !== 0) {
|
|
3088
|
-
writer.uint32(56).int32(message.limit);
|
|
3089
|
-
}
|
|
3090
4278
|
return writer;
|
|
3091
4279
|
},
|
|
3092
4280
|
decode(input, length) {
|
|
@@ -3098,7 +4286,7 @@ var AllowedResourcesRequest = {
|
|
|
3098
4286
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3099
4287
|
try {
|
|
3100
4288
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3101
|
-
const message =
|
|
4289
|
+
const message = createBaseResourceAccessListRequest();
|
|
3102
4290
|
while (reader.pos < end) {
|
|
3103
4291
|
const tag = reader.uint32();
|
|
3104
4292
|
switch (tag >>> 3) {
|
|
@@ -3116,25 +4304,18 @@ var AllowedResourcesRequest = {
|
|
|
3116
4304
|
message.action = reader.string();
|
|
3117
4305
|
continue;
|
|
3118
4306
|
}
|
|
3119
|
-
case
|
|
3120
|
-
if (tag !==
|
|
3121
|
-
break;
|
|
3122
|
-
}
|
|
3123
|
-
message.resourceType = reader.string();
|
|
3124
|
-
continue;
|
|
3125
|
-
}
|
|
3126
|
-
case 6: {
|
|
3127
|
-
if (tag !== 48) {
|
|
4307
|
+
case 3: {
|
|
4308
|
+
if (tag !== 26) {
|
|
3128
4309
|
break;
|
|
3129
4310
|
}
|
|
3130
|
-
message.
|
|
4311
|
+
message.viewName = reader.string();
|
|
3131
4312
|
continue;
|
|
3132
4313
|
}
|
|
3133
|
-
case
|
|
3134
|
-
if (tag !==
|
|
4314
|
+
case 5: {
|
|
4315
|
+
if (tag !== 42) {
|
|
3135
4316
|
break;
|
|
3136
4317
|
}
|
|
3137
|
-
message.
|
|
4318
|
+
message.resourceType = reader.string();
|
|
3138
4319
|
continue;
|
|
3139
4320
|
}
|
|
3140
4321
|
}
|
|
@@ -3152,9 +4333,8 @@ var AllowedResourcesRequest = {
|
|
|
3152
4333
|
return {
|
|
3153
4334
|
subject: isSet2(object.subject) ? globalThis.String(object.subject) : "",
|
|
3154
4335
|
action: isSet2(object.action) ? globalThis.String(object.action) : "",
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
limit: isSet2(object.limit) ? globalThis.Number(object.limit) : 0
|
|
4336
|
+
viewName: isSet2(object.viewName) ? globalThis.String(object.viewName) : void 0,
|
|
4337
|
+
resourceType: isSet2(object.resourceType) ? globalThis.String(object.resourceType) : ""
|
|
3158
4338
|
};
|
|
3159
4339
|
},
|
|
3160
4340
|
toJSON(message) {
|
|
@@ -3165,40 +4345,99 @@ var AllowedResourcesRequest = {
|
|
|
3165
4345
|
if (message.action !== "") {
|
|
3166
4346
|
obj.action = message.action;
|
|
3167
4347
|
}
|
|
4348
|
+
if (message.viewName !== void 0) {
|
|
4349
|
+
obj.viewName = message.viewName;
|
|
4350
|
+
}
|
|
3168
4351
|
if (message.resourceType !== "") {
|
|
3169
4352
|
obj.resourceType = message.resourceType;
|
|
3170
4353
|
}
|
|
3171
|
-
if (message.skip !== 0) {
|
|
3172
|
-
obj.skip = Math.round(message.skip);
|
|
3173
|
-
}
|
|
3174
|
-
if (message.limit !== 0) {
|
|
3175
|
-
obj.limit = Math.round(message.limit);
|
|
3176
|
-
}
|
|
3177
4354
|
return obj;
|
|
3178
4355
|
},
|
|
3179
4356
|
create(base) {
|
|
3180
|
-
return
|
|
4357
|
+
return ResourceAccessListRequest.fromPartial(base ?? {});
|
|
3181
4358
|
},
|
|
3182
4359
|
fromPartial(object) {
|
|
3183
|
-
const message =
|
|
4360
|
+
const message = createBaseResourceAccessListRequest();
|
|
3184
4361
|
message.subject = object.subject ?? "";
|
|
3185
4362
|
message.action = object.action ?? "";
|
|
4363
|
+
message.viewName = object.viewName ?? void 0;
|
|
3186
4364
|
message.resourceType = object.resourceType ?? "";
|
|
3187
|
-
message.skip = object.skip ?? 0;
|
|
3188
|
-
message.limit = object.limit ?? 0;
|
|
3189
4365
|
return message;
|
|
3190
4366
|
}
|
|
3191
4367
|
};
|
|
3192
|
-
function
|
|
3193
|
-
return {
|
|
4368
|
+
function createBaseResourceAccessListResponse() {
|
|
4369
|
+
return { viewName: "" };
|
|
3194
4370
|
}
|
|
3195
|
-
var
|
|
4371
|
+
var ResourceAccessListResponse = {
|
|
3196
4372
|
encode(message, writer = new BinaryWriter3()) {
|
|
3197
|
-
|
|
3198
|
-
writer.uint32(10).string(
|
|
4373
|
+
if (message.viewName !== "") {
|
|
4374
|
+
writer.uint32(10).string(message.viewName);
|
|
3199
4375
|
}
|
|
3200
|
-
|
|
3201
|
-
|
|
4376
|
+
return writer;
|
|
4377
|
+
},
|
|
4378
|
+
decode(input, length) {
|
|
4379
|
+
const reader = input instanceof BinaryReader3 ? input : new BinaryReader3(input);
|
|
4380
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
4381
|
+
if (previousRecursionDepth >= 100) {
|
|
4382
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
4383
|
+
}
|
|
4384
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
4385
|
+
try {
|
|
4386
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
4387
|
+
const message = createBaseResourceAccessListResponse();
|
|
4388
|
+
while (reader.pos < end) {
|
|
4389
|
+
const tag = reader.uint32();
|
|
4390
|
+
switch (tag >>> 3) {
|
|
4391
|
+
case 1: {
|
|
4392
|
+
if (tag !== 10) {
|
|
4393
|
+
break;
|
|
4394
|
+
}
|
|
4395
|
+
message.viewName = reader.string();
|
|
4396
|
+
continue;
|
|
4397
|
+
}
|
|
4398
|
+
}
|
|
4399
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
4400
|
+
break;
|
|
4401
|
+
}
|
|
4402
|
+
reader.skip(tag & 7);
|
|
4403
|
+
}
|
|
4404
|
+
return message;
|
|
4405
|
+
} finally {
|
|
4406
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
4407
|
+
}
|
|
4408
|
+
},
|
|
4409
|
+
fromJSON(object) {
|
|
4410
|
+
return { viewName: isSet2(object.viewName) ? globalThis.String(object.viewName) : "" };
|
|
4411
|
+
},
|
|
4412
|
+
toJSON(message) {
|
|
4413
|
+
const obj = {};
|
|
4414
|
+
if (message.viewName !== "") {
|
|
4415
|
+
obj.viewName = message.viewName;
|
|
4416
|
+
}
|
|
4417
|
+
return obj;
|
|
4418
|
+
},
|
|
4419
|
+
create(base) {
|
|
4420
|
+
return ResourceAccessListResponse.fromPartial(base ?? {});
|
|
4421
|
+
},
|
|
4422
|
+
fromPartial(object) {
|
|
4423
|
+
const message = createBaseResourceAccessListResponse();
|
|
4424
|
+
message.viewName = object.viewName ?? "";
|
|
4425
|
+
return message;
|
|
4426
|
+
}
|
|
4427
|
+
};
|
|
4428
|
+
function createBasePermissionCheck() {
|
|
4429
|
+
return { subject: "", actions: [], resource: "" };
|
|
4430
|
+
}
|
|
4431
|
+
var PermissionCheck = {
|
|
4432
|
+
encode(message, writer = new BinaryWriter3()) {
|
|
4433
|
+
if (message.subject !== "") {
|
|
4434
|
+
writer.uint32(10).string(message.subject);
|
|
4435
|
+
}
|
|
4436
|
+
for (const v of message.actions) {
|
|
4437
|
+
writer.uint32(18).string(v);
|
|
4438
|
+
}
|
|
4439
|
+
if (message.resource !== "") {
|
|
4440
|
+
writer.uint32(26).string(message.resource);
|
|
3202
4441
|
}
|
|
3203
4442
|
return writer;
|
|
3204
4443
|
},
|
|
@@ -3211,7 +4450,7 @@ var AllowedResourcesResponse = {
|
|
|
3211
4450
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3212
4451
|
try {
|
|
3213
4452
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3214
|
-
const message =
|
|
4453
|
+
const message = createBasePermissionCheck();
|
|
3215
4454
|
while (reader.pos < end) {
|
|
3216
4455
|
const tag = reader.uint32();
|
|
3217
4456
|
switch (tag >>> 3) {
|
|
@@ -3219,14 +4458,21 @@ var AllowedResourcesResponse = {
|
|
|
3219
4458
|
if (tag !== 10) {
|
|
3220
4459
|
break;
|
|
3221
4460
|
}
|
|
3222
|
-
message.
|
|
4461
|
+
message.subject = reader.string();
|
|
3223
4462
|
continue;
|
|
3224
4463
|
}
|
|
3225
4464
|
case 2: {
|
|
3226
|
-
if (tag !==
|
|
4465
|
+
if (tag !== 18) {
|
|
3227
4466
|
break;
|
|
3228
4467
|
}
|
|
3229
|
-
message.
|
|
4468
|
+
message.actions.push(reader.string());
|
|
4469
|
+
continue;
|
|
4470
|
+
}
|
|
4471
|
+
case 3: {
|
|
4472
|
+
if (tag !== 26) {
|
|
4473
|
+
break;
|
|
4474
|
+
}
|
|
4475
|
+
message.resource = reader.string();
|
|
3230
4476
|
continue;
|
|
3231
4477
|
}
|
|
3232
4478
|
}
|
|
@@ -3242,34 +4488,39 @@ var AllowedResourcesResponse = {
|
|
|
3242
4488
|
},
|
|
3243
4489
|
fromJSON(object) {
|
|
3244
4490
|
return {
|
|
3245
|
-
|
|
3246
|
-
|
|
4491
|
+
subject: isSet2(object.subject) ? globalThis.String(object.subject) : "",
|
|
4492
|
+
actions: globalThis.Array.isArray(object?.actions) ? object.actions.map((e) => globalThis.String(e)) : [],
|
|
4493
|
+
resource: isSet2(object.resource) ? globalThis.String(object.resource) : ""
|
|
3247
4494
|
};
|
|
3248
4495
|
},
|
|
3249
4496
|
toJSON(message) {
|
|
3250
4497
|
const obj = {};
|
|
3251
|
-
if (message.
|
|
3252
|
-
obj.
|
|
4498
|
+
if (message.subject !== "") {
|
|
4499
|
+
obj.subject = message.subject;
|
|
3253
4500
|
}
|
|
3254
|
-
if (message.
|
|
3255
|
-
obj.
|
|
4501
|
+
if (message.actions?.length) {
|
|
4502
|
+
obj.actions = message.actions;
|
|
4503
|
+
}
|
|
4504
|
+
if (message.resource !== "") {
|
|
4505
|
+
obj.resource = message.resource;
|
|
3256
4506
|
}
|
|
3257
4507
|
return obj;
|
|
3258
4508
|
},
|
|
3259
4509
|
create(base) {
|
|
3260
|
-
return
|
|
4510
|
+
return PermissionCheck.fromPartial(base ?? {});
|
|
3261
4511
|
},
|
|
3262
4512
|
fromPartial(object) {
|
|
3263
|
-
const message =
|
|
3264
|
-
message.
|
|
3265
|
-
message.
|
|
4513
|
+
const message = createBasePermissionCheck();
|
|
4514
|
+
message.subject = object.subject ?? "";
|
|
4515
|
+
message.actions = object.actions?.map((e) => e) || [];
|
|
4516
|
+
message.resource = object.resource ?? "";
|
|
3266
4517
|
return message;
|
|
3267
4518
|
}
|
|
3268
4519
|
};
|
|
3269
|
-
function
|
|
3270
|
-
return { subject: "", action: "",
|
|
4520
|
+
function createBasePermissionRequest() {
|
|
4521
|
+
return { subject: "", action: "", resource: "" };
|
|
3271
4522
|
}
|
|
3272
|
-
var
|
|
4523
|
+
var PermissionRequest = {
|
|
3273
4524
|
encode(message, writer = new BinaryWriter3()) {
|
|
3274
4525
|
if (message.subject !== "") {
|
|
3275
4526
|
writer.uint32(10).string(message.subject);
|
|
@@ -3277,11 +4528,8 @@ var ResourceAccessListRequest = {
|
|
|
3277
4528
|
if (message.action !== "") {
|
|
3278
4529
|
writer.uint32(18).string(message.action);
|
|
3279
4530
|
}
|
|
3280
|
-
if (message.
|
|
3281
|
-
writer.uint32(26).string(message.
|
|
3282
|
-
}
|
|
3283
|
-
if (message.resourceType !== "") {
|
|
3284
|
-
writer.uint32(42).string(message.resourceType);
|
|
4531
|
+
if (message.resource !== "") {
|
|
4532
|
+
writer.uint32(26).string(message.resource);
|
|
3285
4533
|
}
|
|
3286
4534
|
return writer;
|
|
3287
4535
|
},
|
|
@@ -3294,7 +4542,7 @@ var ResourceAccessListRequest = {
|
|
|
3294
4542
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3295
4543
|
try {
|
|
3296
4544
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3297
|
-
const message =
|
|
4545
|
+
const message = createBasePermissionRequest();
|
|
3298
4546
|
while (reader.pos < end) {
|
|
3299
4547
|
const tag = reader.uint32();
|
|
3300
4548
|
switch (tag >>> 3) {
|
|
@@ -3316,14 +4564,7 @@ var ResourceAccessListRequest = {
|
|
|
3316
4564
|
if (tag !== 26) {
|
|
3317
4565
|
break;
|
|
3318
4566
|
}
|
|
3319
|
-
message.
|
|
3320
|
-
continue;
|
|
3321
|
-
}
|
|
3322
|
-
case 5: {
|
|
3323
|
-
if (tag !== 42) {
|
|
3324
|
-
break;
|
|
3325
|
-
}
|
|
3326
|
-
message.resourceType = reader.string();
|
|
4567
|
+
message.resource = reader.string();
|
|
3327
4568
|
continue;
|
|
3328
4569
|
}
|
|
3329
4570
|
}
|
|
@@ -3341,8 +4582,7 @@ var ResourceAccessListRequest = {
|
|
|
3341
4582
|
return {
|
|
3342
4583
|
subject: isSet2(object.subject) ? globalThis.String(object.subject) : "",
|
|
3343
4584
|
action: isSet2(object.action) ? globalThis.String(object.action) : "",
|
|
3344
|
-
|
|
3345
|
-
resourceType: isSet2(object.resourceType) ? globalThis.String(object.resourceType) : ""
|
|
4585
|
+
resource: isSet2(object.resource) ? globalThis.String(object.resource) : ""
|
|
3346
4586
|
};
|
|
3347
4587
|
},
|
|
3348
4588
|
toJSON(message) {
|
|
@@ -3353,33 +4593,29 @@ var ResourceAccessListRequest = {
|
|
|
3353
4593
|
if (message.action !== "") {
|
|
3354
4594
|
obj.action = message.action;
|
|
3355
4595
|
}
|
|
3356
|
-
if (message.
|
|
3357
|
-
obj.
|
|
3358
|
-
}
|
|
3359
|
-
if (message.resourceType !== "") {
|
|
3360
|
-
obj.resourceType = message.resourceType;
|
|
4596
|
+
if (message.resource !== "") {
|
|
4597
|
+
obj.resource = message.resource;
|
|
3361
4598
|
}
|
|
3362
4599
|
return obj;
|
|
3363
4600
|
},
|
|
3364
4601
|
create(base) {
|
|
3365
|
-
return
|
|
4602
|
+
return PermissionRequest.fromPartial(base ?? {});
|
|
3366
4603
|
},
|
|
3367
4604
|
fromPartial(object) {
|
|
3368
|
-
const message =
|
|
4605
|
+
const message = createBasePermissionRequest();
|
|
3369
4606
|
message.subject = object.subject ?? "";
|
|
3370
4607
|
message.action = object.action ?? "";
|
|
3371
|
-
message.
|
|
3372
|
-
message.resourceType = object.resourceType ?? "";
|
|
4608
|
+
message.resource = object.resource ?? "";
|
|
3373
4609
|
return message;
|
|
3374
4610
|
}
|
|
3375
4611
|
};
|
|
3376
|
-
function
|
|
3377
|
-
return {
|
|
4612
|
+
function createBaseDecision() {
|
|
4613
|
+
return { allow: false };
|
|
3378
4614
|
}
|
|
3379
|
-
var
|
|
4615
|
+
var Decision = {
|
|
3380
4616
|
encode(message, writer = new BinaryWriter3()) {
|
|
3381
|
-
if (message.
|
|
3382
|
-
writer.uint32(
|
|
4617
|
+
if (message.allow !== false) {
|
|
4618
|
+
writer.uint32(8).bool(message.allow);
|
|
3383
4619
|
}
|
|
3384
4620
|
return writer;
|
|
3385
4621
|
},
|
|
@@ -3392,15 +4628,15 @@ var ResourceAccessListResponse = {
|
|
|
3392
4628
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3393
4629
|
try {
|
|
3394
4630
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3395
|
-
const message =
|
|
4631
|
+
const message = createBaseDecision();
|
|
3396
4632
|
while (reader.pos < end) {
|
|
3397
4633
|
const tag = reader.uint32();
|
|
3398
4634
|
switch (tag >>> 3) {
|
|
3399
4635
|
case 1: {
|
|
3400
|
-
if (tag !==
|
|
4636
|
+
if (tag !== 8) {
|
|
3401
4637
|
break;
|
|
3402
4638
|
}
|
|
3403
|
-
message.
|
|
4639
|
+
message.allow = reader.bool();
|
|
3404
4640
|
continue;
|
|
3405
4641
|
}
|
|
3406
4642
|
}
|
|
@@ -3415,37 +4651,37 @@ var ResourceAccessListResponse = {
|
|
|
3415
4651
|
}
|
|
3416
4652
|
},
|
|
3417
4653
|
fromJSON(object) {
|
|
3418
|
-
return {
|
|
4654
|
+
return { allow: isSet2(object.allow) ? globalThis.Boolean(object.allow) : false };
|
|
3419
4655
|
},
|
|
3420
4656
|
toJSON(message) {
|
|
3421
4657
|
const obj = {};
|
|
3422
|
-
if (message.
|
|
3423
|
-
obj.
|
|
4658
|
+
if (message.allow !== false) {
|
|
4659
|
+
obj.allow = message.allow;
|
|
3424
4660
|
}
|
|
3425
4661
|
return obj;
|
|
3426
4662
|
},
|
|
3427
4663
|
create(base) {
|
|
3428
|
-
return
|
|
4664
|
+
return Decision.fromPartial(base ?? {});
|
|
3429
4665
|
},
|
|
3430
4666
|
fromPartial(object) {
|
|
3431
|
-
const message =
|
|
3432
|
-
message.
|
|
4667
|
+
const message = createBaseDecision();
|
|
4668
|
+
message.allow = object.allow ?? false;
|
|
3433
4669
|
return message;
|
|
3434
4670
|
}
|
|
3435
4671
|
};
|
|
3436
|
-
function
|
|
3437
|
-
return { subject: "",
|
|
4672
|
+
function createBaseSubjectPermissionsRequest() {
|
|
4673
|
+
return { subject: "", resource: "", actionPrefix: void 0 };
|
|
3438
4674
|
}
|
|
3439
|
-
var
|
|
4675
|
+
var SubjectPermissionsRequest = {
|
|
3440
4676
|
encode(message, writer = new BinaryWriter3()) {
|
|
3441
4677
|
if (message.subject !== "") {
|
|
3442
4678
|
writer.uint32(10).string(message.subject);
|
|
3443
4679
|
}
|
|
3444
|
-
for (const v of message.actions) {
|
|
3445
|
-
writer.uint32(18).string(v);
|
|
3446
|
-
}
|
|
3447
4680
|
if (message.resource !== "") {
|
|
3448
|
-
writer.uint32(
|
|
4681
|
+
writer.uint32(18).string(message.resource);
|
|
4682
|
+
}
|
|
4683
|
+
if (message.actionPrefix !== void 0) {
|
|
4684
|
+
writer.uint32(26).string(message.actionPrefix);
|
|
3449
4685
|
}
|
|
3450
4686
|
return writer;
|
|
3451
4687
|
},
|
|
@@ -3458,7 +4694,7 @@ var PermissionCheck = {
|
|
|
3458
4694
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3459
4695
|
try {
|
|
3460
4696
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3461
|
-
const message =
|
|
4697
|
+
const message = createBaseSubjectPermissionsRequest();
|
|
3462
4698
|
while (reader.pos < end) {
|
|
3463
4699
|
const tag = reader.uint32();
|
|
3464
4700
|
switch (tag >>> 3) {
|
|
@@ -3473,14 +4709,14 @@ var PermissionCheck = {
|
|
|
3473
4709
|
if (tag !== 18) {
|
|
3474
4710
|
break;
|
|
3475
4711
|
}
|
|
3476
|
-
message.
|
|
4712
|
+
message.resource = reader.string();
|
|
3477
4713
|
continue;
|
|
3478
4714
|
}
|
|
3479
4715
|
case 3: {
|
|
3480
4716
|
if (tag !== 26) {
|
|
3481
4717
|
break;
|
|
3482
4718
|
}
|
|
3483
|
-
message.
|
|
4719
|
+
message.actionPrefix = reader.string();
|
|
3484
4720
|
continue;
|
|
3485
4721
|
}
|
|
3486
4722
|
}
|
|
@@ -3497,8 +4733,8 @@ var PermissionCheck = {
|
|
|
3497
4733
|
fromJSON(object) {
|
|
3498
4734
|
return {
|
|
3499
4735
|
subject: isSet2(object.subject) ? globalThis.String(object.subject) : "",
|
|
3500
|
-
|
|
3501
|
-
|
|
4736
|
+
resource: isSet2(object.resource) ? globalThis.String(object.resource) : "",
|
|
4737
|
+
actionPrefix: isSet2(object.actionPrefix) ? globalThis.String(object.actionPrefix) : void 0
|
|
3502
4738
|
};
|
|
3503
4739
|
},
|
|
3504
4740
|
toJSON(message) {
|
|
@@ -3506,38 +4742,44 @@ var PermissionCheck = {
|
|
|
3506
4742
|
if (message.subject !== "") {
|
|
3507
4743
|
obj.subject = message.subject;
|
|
3508
4744
|
}
|
|
3509
|
-
if (message.actions?.length) {
|
|
3510
|
-
obj.actions = message.actions;
|
|
3511
|
-
}
|
|
3512
4745
|
if (message.resource !== "") {
|
|
3513
4746
|
obj.resource = message.resource;
|
|
3514
4747
|
}
|
|
4748
|
+
if (message.actionPrefix !== void 0) {
|
|
4749
|
+
obj.actionPrefix = message.actionPrefix;
|
|
4750
|
+
}
|
|
3515
4751
|
return obj;
|
|
3516
4752
|
},
|
|
3517
4753
|
create(base) {
|
|
3518
|
-
return
|
|
4754
|
+
return SubjectPermissionsRequest.fromPartial(base ?? {});
|
|
3519
4755
|
},
|
|
3520
4756
|
fromPartial(object) {
|
|
3521
|
-
const message =
|
|
4757
|
+
const message = createBaseSubjectPermissionsRequest();
|
|
3522
4758
|
message.subject = object.subject ?? "";
|
|
3523
|
-
message.actions = object.actions?.map((e) => e) || [];
|
|
3524
4759
|
message.resource = object.resource ?? "";
|
|
4760
|
+
message.actionPrefix = object.actionPrefix ?? void 0;
|
|
3525
4761
|
return message;
|
|
3526
4762
|
}
|
|
3527
4763
|
};
|
|
3528
|
-
function
|
|
3529
|
-
return {
|
|
4764
|
+
function createBaseSubjectPermission() {
|
|
4765
|
+
return { action: "", direct: false, inherited: false, implicit: false, allowed: false };
|
|
3530
4766
|
}
|
|
3531
|
-
var
|
|
4767
|
+
var SubjectPermission = {
|
|
3532
4768
|
encode(message, writer = new BinaryWriter3()) {
|
|
3533
|
-
if (message.subject !== "") {
|
|
3534
|
-
writer.uint32(10).string(message.subject);
|
|
3535
|
-
}
|
|
3536
4769
|
if (message.action !== "") {
|
|
3537
|
-
writer.uint32(
|
|
4770
|
+
writer.uint32(10).string(message.action);
|
|
3538
4771
|
}
|
|
3539
|
-
if (message.
|
|
3540
|
-
writer.uint32(
|
|
4772
|
+
if (message.direct !== false) {
|
|
4773
|
+
writer.uint32(16).bool(message.direct);
|
|
4774
|
+
}
|
|
4775
|
+
if (message.inherited !== false) {
|
|
4776
|
+
writer.uint32(24).bool(message.inherited);
|
|
4777
|
+
}
|
|
4778
|
+
if (message.implicit !== false) {
|
|
4779
|
+
writer.uint32(32).bool(message.implicit);
|
|
4780
|
+
}
|
|
4781
|
+
if (message.allowed !== false) {
|
|
4782
|
+
writer.uint32(40).bool(message.allowed);
|
|
3541
4783
|
}
|
|
3542
4784
|
return writer;
|
|
3543
4785
|
},
|
|
@@ -3550,7 +4792,7 @@ var PermissionRequest = {
|
|
|
3550
4792
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3551
4793
|
try {
|
|
3552
4794
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3553
|
-
const message =
|
|
4795
|
+
const message = createBaseSubjectPermission();
|
|
3554
4796
|
while (reader.pos < end) {
|
|
3555
4797
|
const tag = reader.uint32();
|
|
3556
4798
|
switch (tag >>> 3) {
|
|
@@ -3558,21 +4800,35 @@ var PermissionRequest = {
|
|
|
3558
4800
|
if (tag !== 10) {
|
|
3559
4801
|
break;
|
|
3560
4802
|
}
|
|
3561
|
-
message.
|
|
4803
|
+
message.action = reader.string();
|
|
3562
4804
|
continue;
|
|
3563
4805
|
}
|
|
3564
4806
|
case 2: {
|
|
3565
|
-
if (tag !==
|
|
4807
|
+
if (tag !== 16) {
|
|
3566
4808
|
break;
|
|
3567
4809
|
}
|
|
3568
|
-
message.
|
|
4810
|
+
message.direct = reader.bool();
|
|
3569
4811
|
continue;
|
|
3570
4812
|
}
|
|
3571
4813
|
case 3: {
|
|
3572
|
-
if (tag !==
|
|
4814
|
+
if (tag !== 24) {
|
|
3573
4815
|
break;
|
|
3574
4816
|
}
|
|
3575
|
-
message.
|
|
4817
|
+
message.inherited = reader.bool();
|
|
4818
|
+
continue;
|
|
4819
|
+
}
|
|
4820
|
+
case 4: {
|
|
4821
|
+
if (tag !== 32) {
|
|
4822
|
+
break;
|
|
4823
|
+
}
|
|
4824
|
+
message.implicit = reader.bool();
|
|
4825
|
+
continue;
|
|
4826
|
+
}
|
|
4827
|
+
case 5: {
|
|
4828
|
+
if (tag !== 40) {
|
|
4829
|
+
break;
|
|
4830
|
+
}
|
|
4831
|
+
message.allowed = reader.bool();
|
|
3576
4832
|
continue;
|
|
3577
4833
|
}
|
|
3578
4834
|
}
|
|
@@ -3588,42 +4844,52 @@ var PermissionRequest = {
|
|
|
3588
4844
|
},
|
|
3589
4845
|
fromJSON(object) {
|
|
3590
4846
|
return {
|
|
3591
|
-
subject: isSet2(object.subject) ? globalThis.String(object.subject) : "",
|
|
3592
4847
|
action: isSet2(object.action) ? globalThis.String(object.action) : "",
|
|
3593
|
-
|
|
4848
|
+
direct: isSet2(object.direct) ? globalThis.Boolean(object.direct) : false,
|
|
4849
|
+
inherited: isSet2(object.inherited) ? globalThis.Boolean(object.inherited) : false,
|
|
4850
|
+
implicit: isSet2(object.implicit) ? globalThis.Boolean(object.implicit) : false,
|
|
4851
|
+
allowed: isSet2(object.allowed) ? globalThis.Boolean(object.allowed) : false
|
|
3594
4852
|
};
|
|
3595
4853
|
},
|
|
3596
4854
|
toJSON(message) {
|
|
3597
4855
|
const obj = {};
|
|
3598
|
-
if (message.subject !== "") {
|
|
3599
|
-
obj.subject = message.subject;
|
|
3600
|
-
}
|
|
3601
4856
|
if (message.action !== "") {
|
|
3602
4857
|
obj.action = message.action;
|
|
3603
4858
|
}
|
|
3604
|
-
if (message.
|
|
3605
|
-
obj.
|
|
4859
|
+
if (message.direct !== false) {
|
|
4860
|
+
obj.direct = message.direct;
|
|
4861
|
+
}
|
|
4862
|
+
if (message.inherited !== false) {
|
|
4863
|
+
obj.inherited = message.inherited;
|
|
4864
|
+
}
|
|
4865
|
+
if (message.implicit !== false) {
|
|
4866
|
+
obj.implicit = message.implicit;
|
|
4867
|
+
}
|
|
4868
|
+
if (message.allowed !== false) {
|
|
4869
|
+
obj.allowed = message.allowed;
|
|
3606
4870
|
}
|
|
3607
4871
|
return obj;
|
|
3608
4872
|
},
|
|
3609
4873
|
create(base) {
|
|
3610
|
-
return
|
|
4874
|
+
return SubjectPermission.fromPartial(base ?? {});
|
|
3611
4875
|
},
|
|
3612
4876
|
fromPartial(object) {
|
|
3613
|
-
const message =
|
|
3614
|
-
message.subject = object.subject ?? "";
|
|
4877
|
+
const message = createBaseSubjectPermission();
|
|
3615
4878
|
message.action = object.action ?? "";
|
|
3616
|
-
message.
|
|
4879
|
+
message.direct = object.direct ?? false;
|
|
4880
|
+
message.inherited = object.inherited ?? false;
|
|
4881
|
+
message.implicit = object.implicit ?? false;
|
|
4882
|
+
message.allowed = object.allowed ?? false;
|
|
3617
4883
|
return message;
|
|
3618
4884
|
}
|
|
3619
4885
|
};
|
|
3620
|
-
function
|
|
3621
|
-
return {
|
|
4886
|
+
function createBaseSubjectPermissionsResponse() {
|
|
4887
|
+
return { permissions: [] };
|
|
3622
4888
|
}
|
|
3623
|
-
var
|
|
4889
|
+
var SubjectPermissionsResponse = {
|
|
3624
4890
|
encode(message, writer = new BinaryWriter3()) {
|
|
3625
|
-
|
|
3626
|
-
writer.uint32(
|
|
4891
|
+
for (const v of message.permissions) {
|
|
4892
|
+
SubjectPermission.encode(v, writer.uint32(10).fork()).join();
|
|
3627
4893
|
}
|
|
3628
4894
|
return writer;
|
|
3629
4895
|
},
|
|
@@ -3636,15 +4902,15 @@ var Decision = {
|
|
|
3636
4902
|
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
3637
4903
|
try {
|
|
3638
4904
|
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
3639
|
-
const message =
|
|
4905
|
+
const message = createBaseSubjectPermissionsResponse();
|
|
3640
4906
|
while (reader.pos < end) {
|
|
3641
4907
|
const tag = reader.uint32();
|
|
3642
4908
|
switch (tag >>> 3) {
|
|
3643
4909
|
case 1: {
|
|
3644
|
-
if (tag !==
|
|
4910
|
+
if (tag !== 10) {
|
|
3645
4911
|
break;
|
|
3646
4912
|
}
|
|
3647
|
-
message.
|
|
4913
|
+
message.permissions.push(SubjectPermission.decode(reader, reader.uint32()));
|
|
3648
4914
|
continue;
|
|
3649
4915
|
}
|
|
3650
4916
|
}
|
|
@@ -3659,21 +4925,23 @@ var Decision = {
|
|
|
3659
4925
|
}
|
|
3660
4926
|
},
|
|
3661
4927
|
fromJSON(object) {
|
|
3662
|
-
return {
|
|
4928
|
+
return {
|
|
4929
|
+
permissions: globalThis.Array.isArray(object?.permissions) ? object.permissions.map((e) => SubjectPermission.fromJSON(e)) : []
|
|
4930
|
+
};
|
|
3663
4931
|
},
|
|
3664
4932
|
toJSON(message) {
|
|
3665
4933
|
const obj = {};
|
|
3666
|
-
if (message.
|
|
3667
|
-
obj.
|
|
4934
|
+
if (message.permissions?.length) {
|
|
4935
|
+
obj.permissions = message.permissions.map((e) => SubjectPermission.toJSON(e));
|
|
3668
4936
|
}
|
|
3669
4937
|
return obj;
|
|
3670
4938
|
},
|
|
3671
4939
|
create(base) {
|
|
3672
|
-
return
|
|
4940
|
+
return SubjectPermissionsResponse.fromPartial(base ?? {});
|
|
3673
4941
|
},
|
|
3674
4942
|
fromPartial(object) {
|
|
3675
|
-
const message =
|
|
3676
|
-
message.
|
|
4943
|
+
const message = createBaseSubjectPermissionsResponse();
|
|
4944
|
+
message.permissions = object.permissions?.map((e) => SubjectPermission.fromPartial(e)) || [];
|
|
3677
4945
|
return message;
|
|
3678
4946
|
}
|
|
3679
4947
|
};
|
|
@@ -3769,6 +5037,14 @@ var AuthorizationDefinition = {
|
|
|
3769
5037
|
responseStream: false,
|
|
3770
5038
|
options: {}
|
|
3771
5039
|
},
|
|
5040
|
+
getSubjectPermissions: {
|
|
5041
|
+
name: "GetSubjectPermissions",
|
|
5042
|
+
requestType: SubjectPermissionsRequest,
|
|
5043
|
+
requestStream: false,
|
|
5044
|
+
responseType: SubjectPermissionsResponse,
|
|
5045
|
+
responseStream: false,
|
|
5046
|
+
options: {}
|
|
5047
|
+
},
|
|
3772
5048
|
getAllowedResources: {
|
|
3773
5049
|
name: "GetAllowedResources",
|
|
3774
5050
|
requestType: AllowedResourcesRequest,
|
|
@@ -4050,13 +5326,95 @@ var EditMessageRequest = {
|
|
|
4050
5326
|
message.userId = reader.string();
|
|
4051
5327
|
continue;
|
|
4052
5328
|
}
|
|
4053
|
-
case 3: {
|
|
4054
|
-
if (tag !== 26) {
|
|
4055
|
-
break;
|
|
4056
|
-
}
|
|
4057
|
-
message.newMessage = reader.string();
|
|
4058
|
-
continue;
|
|
4059
|
-
}
|
|
5329
|
+
case 3: {
|
|
5330
|
+
if (tag !== 26) {
|
|
5331
|
+
break;
|
|
5332
|
+
}
|
|
5333
|
+
message.newMessage = reader.string();
|
|
5334
|
+
continue;
|
|
5335
|
+
}
|
|
5336
|
+
}
|
|
5337
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
5338
|
+
break;
|
|
5339
|
+
}
|
|
5340
|
+
reader.skip(tag & 7);
|
|
5341
|
+
}
|
|
5342
|
+
return message;
|
|
5343
|
+
} finally {
|
|
5344
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
5345
|
+
}
|
|
5346
|
+
},
|
|
5347
|
+
fromJSON(object) {
|
|
5348
|
+
return {
|
|
5349
|
+
messageId: isSet3(object.messageId) ? globalThis.String(object.messageId) : "",
|
|
5350
|
+
userId: isSet3(object.userId) ? globalThis.String(object.userId) : "",
|
|
5351
|
+
newMessage: isSet3(object.newMessage) ? globalThis.String(object.newMessage) : ""
|
|
5352
|
+
};
|
|
5353
|
+
},
|
|
5354
|
+
toJSON(message) {
|
|
5355
|
+
const obj = {};
|
|
5356
|
+
if (message.messageId !== "") {
|
|
5357
|
+
obj.messageId = message.messageId;
|
|
5358
|
+
}
|
|
5359
|
+
if (message.userId !== "") {
|
|
5360
|
+
obj.userId = message.userId;
|
|
5361
|
+
}
|
|
5362
|
+
if (message.newMessage !== "") {
|
|
5363
|
+
obj.newMessage = message.newMessage;
|
|
5364
|
+
}
|
|
5365
|
+
return obj;
|
|
5366
|
+
},
|
|
5367
|
+
create(base) {
|
|
5368
|
+
return EditMessageRequest.fromPartial(base ?? {});
|
|
5369
|
+
},
|
|
5370
|
+
fromPartial(object) {
|
|
5371
|
+
const message = createBaseEditMessageRequest();
|
|
5372
|
+
message.messageId = object.messageId ?? "";
|
|
5373
|
+
message.userId = object.userId ?? "";
|
|
5374
|
+
message.newMessage = object.newMessage ?? "";
|
|
5375
|
+
return message;
|
|
5376
|
+
}
|
|
5377
|
+
};
|
|
5378
|
+
function createBaseDeleteMessageRequest() {
|
|
5379
|
+
return { messageId: "", userId: "" };
|
|
5380
|
+
}
|
|
5381
|
+
var DeleteMessageRequest = {
|
|
5382
|
+
encode(message, writer = new BinaryWriter4()) {
|
|
5383
|
+
if (message.messageId !== "") {
|
|
5384
|
+
writer.uint32(10).string(message.messageId);
|
|
5385
|
+
}
|
|
5386
|
+
if (message.userId !== "") {
|
|
5387
|
+
writer.uint32(18).string(message.userId);
|
|
5388
|
+
}
|
|
5389
|
+
return writer;
|
|
5390
|
+
},
|
|
5391
|
+
decode(input, length) {
|
|
5392
|
+
const reader = input instanceof BinaryReader4 ? input : new BinaryReader4(input);
|
|
5393
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
5394
|
+
if (previousRecursionDepth >= 100) {
|
|
5395
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
5396
|
+
}
|
|
5397
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
5398
|
+
try {
|
|
5399
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
5400
|
+
const message = createBaseDeleteMessageRequest();
|
|
5401
|
+
while (reader.pos < end) {
|
|
5402
|
+
const tag = reader.uint32();
|
|
5403
|
+
switch (tag >>> 3) {
|
|
5404
|
+
case 1: {
|
|
5405
|
+
if (tag !== 10) {
|
|
5406
|
+
break;
|
|
5407
|
+
}
|
|
5408
|
+
message.messageId = reader.string();
|
|
5409
|
+
continue;
|
|
5410
|
+
}
|
|
5411
|
+
case 2: {
|
|
5412
|
+
if (tag !== 18) {
|
|
5413
|
+
break;
|
|
5414
|
+
}
|
|
5415
|
+
message.userId = reader.string();
|
|
5416
|
+
continue;
|
|
5417
|
+
}
|
|
4060
5418
|
}
|
|
4061
5419
|
if ((tag & 7) === 4 || tag === 0) {
|
|
4062
5420
|
break;
|
|
@@ -4071,8 +5429,7 @@ var EditMessageRequest = {
|
|
|
4071
5429
|
fromJSON(object) {
|
|
4072
5430
|
return {
|
|
4073
5431
|
messageId: isSet3(object.messageId) ? globalThis.String(object.messageId) : "",
|
|
4074
|
-
userId: isSet3(object.userId) ? globalThis.String(object.userId) : ""
|
|
4075
|
-
newMessage: isSet3(object.newMessage) ? globalThis.String(object.newMessage) : ""
|
|
5432
|
+
userId: isSet3(object.userId) ? globalThis.String(object.userId) : ""
|
|
4076
5433
|
};
|
|
4077
5434
|
},
|
|
4078
5435
|
toJSON(message) {
|
|
@@ -4083,19 +5440,15 @@ var EditMessageRequest = {
|
|
|
4083
5440
|
if (message.userId !== "") {
|
|
4084
5441
|
obj.userId = message.userId;
|
|
4085
5442
|
}
|
|
4086
|
-
if (message.newMessage !== "") {
|
|
4087
|
-
obj.newMessage = message.newMessage;
|
|
4088
|
-
}
|
|
4089
5443
|
return obj;
|
|
4090
5444
|
},
|
|
4091
5445
|
create(base) {
|
|
4092
|
-
return
|
|
5446
|
+
return DeleteMessageRequest.fromPartial(base ?? {});
|
|
4093
5447
|
},
|
|
4094
5448
|
fromPartial(object) {
|
|
4095
|
-
const message =
|
|
5449
|
+
const message = createBaseDeleteMessageRequest();
|
|
4096
5450
|
message.messageId = object.messageId ?? "";
|
|
4097
5451
|
message.userId = object.userId ?? "";
|
|
4098
|
-
message.newMessage = object.newMessage ?? "";
|
|
4099
5452
|
return message;
|
|
4100
5453
|
}
|
|
4101
5454
|
};
|
|
@@ -4348,6 +5701,14 @@ var ChatDefinition = {
|
|
|
4348
5701
|
responseType: Empty,
|
|
4349
5702
|
responseStream: false,
|
|
4350
5703
|
options: {}
|
|
5704
|
+
},
|
|
5705
|
+
deleteMessage: {
|
|
5706
|
+
name: "DeleteMessage",
|
|
5707
|
+
requestType: DeleteMessageRequest,
|
|
5708
|
+
requestStream: false,
|
|
5709
|
+
responseType: Empty,
|
|
5710
|
+
responseStream: false,
|
|
5711
|
+
options: {}
|
|
4351
5712
|
}
|
|
4352
5713
|
}
|
|
4353
5714
|
};
|
|
@@ -9498,6 +10859,113 @@ function isSet4(value) {
|
|
|
9498
10859
|
|
|
9499
10860
|
// src/protoUtils/core.ts
|
|
9500
10861
|
import { BinaryReader as BinaryReader6, BinaryWriter as BinaryWriter6 } from "@bufbuild/protobuf/wire";
|
|
10862
|
+
function createBaseSocketPushRequest() {
|
|
10863
|
+
return { event: "", data: void 0, receivers: [], rooms: [] };
|
|
10864
|
+
}
|
|
10865
|
+
var SocketPushRequest = {
|
|
10866
|
+
encode(message, writer = new BinaryWriter6()) {
|
|
10867
|
+
if (message.event !== "") {
|
|
10868
|
+
writer.uint32(10).string(message.event);
|
|
10869
|
+
}
|
|
10870
|
+
if (message.data !== void 0) {
|
|
10871
|
+
writer.uint32(18).string(message.data);
|
|
10872
|
+
}
|
|
10873
|
+
for (const v of message.receivers) {
|
|
10874
|
+
writer.uint32(26).string(v);
|
|
10875
|
+
}
|
|
10876
|
+
for (const v of message.rooms) {
|
|
10877
|
+
writer.uint32(34).string(v);
|
|
10878
|
+
}
|
|
10879
|
+
return writer;
|
|
10880
|
+
},
|
|
10881
|
+
decode(input, length) {
|
|
10882
|
+
const reader = input instanceof BinaryReader6 ? input : new BinaryReader6(input);
|
|
10883
|
+
const previousRecursionDepth = reader.__tsProtoDecodeDepth ?? 0;
|
|
10884
|
+
if (previousRecursionDepth >= 100) {
|
|
10885
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
10886
|
+
}
|
|
10887
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
10888
|
+
try {
|
|
10889
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
10890
|
+
const message = createBaseSocketPushRequest();
|
|
10891
|
+
while (reader.pos < end) {
|
|
10892
|
+
const tag = reader.uint32();
|
|
10893
|
+
switch (tag >>> 3) {
|
|
10894
|
+
case 1: {
|
|
10895
|
+
if (tag !== 10) {
|
|
10896
|
+
break;
|
|
10897
|
+
}
|
|
10898
|
+
message.event = reader.string();
|
|
10899
|
+
continue;
|
|
10900
|
+
}
|
|
10901
|
+
case 2: {
|
|
10902
|
+
if (tag !== 18) {
|
|
10903
|
+
break;
|
|
10904
|
+
}
|
|
10905
|
+
message.data = reader.string();
|
|
10906
|
+
continue;
|
|
10907
|
+
}
|
|
10908
|
+
case 3: {
|
|
10909
|
+
if (tag !== 26) {
|
|
10910
|
+
break;
|
|
10911
|
+
}
|
|
10912
|
+
message.receivers.push(reader.string());
|
|
10913
|
+
continue;
|
|
10914
|
+
}
|
|
10915
|
+
case 4: {
|
|
10916
|
+
if (tag !== 34) {
|
|
10917
|
+
break;
|
|
10918
|
+
}
|
|
10919
|
+
message.rooms.push(reader.string());
|
|
10920
|
+
continue;
|
|
10921
|
+
}
|
|
10922
|
+
}
|
|
10923
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
10924
|
+
break;
|
|
10925
|
+
}
|
|
10926
|
+
reader.skip(tag & 7);
|
|
10927
|
+
}
|
|
10928
|
+
return message;
|
|
10929
|
+
} finally {
|
|
10930
|
+
reader.__tsProtoDecodeDepth = previousRecursionDepth;
|
|
10931
|
+
}
|
|
10932
|
+
},
|
|
10933
|
+
fromJSON(object) {
|
|
10934
|
+
return {
|
|
10935
|
+
event: isSet5(object.event) ? globalThis.String(object.event) : "",
|
|
10936
|
+
data: isSet5(object.data) ? globalThis.String(object.data) : void 0,
|
|
10937
|
+
receivers: globalThis.Array.isArray(object?.receivers) ? object.receivers.map((e) => globalThis.String(e)) : [],
|
|
10938
|
+
rooms: globalThis.Array.isArray(object?.rooms) ? object.rooms.map((e) => globalThis.String(e)) : []
|
|
10939
|
+
};
|
|
10940
|
+
},
|
|
10941
|
+
toJSON(message) {
|
|
10942
|
+
const obj = {};
|
|
10943
|
+
if (message.event !== "") {
|
|
10944
|
+
obj.event = message.event;
|
|
10945
|
+
}
|
|
10946
|
+
if (message.data !== void 0) {
|
|
10947
|
+
obj.data = message.data;
|
|
10948
|
+
}
|
|
10949
|
+
if (message.receivers?.length) {
|
|
10950
|
+
obj.receivers = message.receivers;
|
|
10951
|
+
}
|
|
10952
|
+
if (message.rooms?.length) {
|
|
10953
|
+
obj.rooms = message.rooms;
|
|
10954
|
+
}
|
|
10955
|
+
return obj;
|
|
10956
|
+
},
|
|
10957
|
+
create(base) {
|
|
10958
|
+
return SocketPushRequest.fromPartial(base ?? {});
|
|
10959
|
+
},
|
|
10960
|
+
fromPartial(object) {
|
|
10961
|
+
const message = createBaseSocketPushRequest();
|
|
10962
|
+
message.event = object.event ?? "";
|
|
10963
|
+
message.data = object.data ?? void 0;
|
|
10964
|
+
message.receivers = object.receivers?.map((e) => e) || [];
|
|
10965
|
+
message.rooms = object.rooms?.map((e) => e) || [];
|
|
10966
|
+
return message;
|
|
10967
|
+
}
|
|
10968
|
+
};
|
|
9501
10969
|
function createBaseRegisterAdminRouteRequest() {
|
|
9502
10970
|
return { routes: [], routerUrl: void 0 };
|
|
9503
10971
|
}
|
|
@@ -11573,6 +13041,14 @@ var AdminDefinition = {
|
|
|
11573
13041
|
responseType: Empty,
|
|
11574
13042
|
responseStream: false,
|
|
11575
13043
|
options: {}
|
|
13044
|
+
},
|
|
13045
|
+
socketPush: {
|
|
13046
|
+
name: "SocketPush",
|
|
13047
|
+
requestType: SocketPushRequest,
|
|
13048
|
+
requestStream: false,
|
|
13049
|
+
responseType: Empty,
|
|
13050
|
+
responseStream: false,
|
|
13051
|
+
options: {}
|
|
11576
13052
|
}
|
|
11577
13053
|
}
|
|
11578
13054
|
};
|
|
@@ -22256,12 +23732,12 @@ async function checkModuleHealth(clientName, serviceUrl, service = "", grpcToken
|
|
|
22256
23732
|
}
|
|
22257
23733
|
const _healthClient = clientFactory.create(HealthDefinition, channel);
|
|
22258
23734
|
let error;
|
|
22259
|
-
const
|
|
23735
|
+
const status3 = await _healthClient.check({ service }).then((res) => {
|
|
22260
23736
|
return res.status;
|
|
22261
23737
|
}).catch((err) => error = err);
|
|
22262
23738
|
channel.close();
|
|
22263
23739
|
if (!error) {
|
|
22264
|
-
return
|
|
23740
|
+
return status3;
|
|
22265
23741
|
}
|
|
22266
23742
|
throw error;
|
|
22267
23743
|
}
|
|
@@ -22588,6 +24064,11 @@ var PostgresIndexType = /* @__PURE__ */ ((PostgresIndexType2) => {
|
|
|
22588
24064
|
PostgresIndexType2["BRIN"] = "BRIN";
|
|
22589
24065
|
return PostgresIndexType2;
|
|
22590
24066
|
})(PostgresIndexType || {});
|
|
24067
|
+
var CompatibleIndexType = /* @__PURE__ */ ((CompatibleIndexType2) => {
|
|
24068
|
+
CompatibleIndexType2["Ascending"] = "Ascending";
|
|
24069
|
+
CompatibleIndexType2["Descending"] = "Descending";
|
|
24070
|
+
return CompatibleIndexType2;
|
|
24071
|
+
})(CompatibleIndexType || {});
|
|
22591
24072
|
var ConduitModelOptionsPermModifyType = [
|
|
22592
24073
|
"Everything",
|
|
22593
24074
|
"Nothing",
|
|
@@ -23216,6 +24697,9 @@ var Admin = class extends ConduitModule {
|
|
|
23216
24697
|
};
|
|
23217
24698
|
return this.client.registerAdminRoute(request);
|
|
23218
24699
|
}
|
|
24700
|
+
socketPush(data) {
|
|
24701
|
+
return this.client.socketPush(data);
|
|
24702
|
+
}
|
|
23219
24703
|
patchRouteMiddlewares(path, action, middlewares) {
|
|
23220
24704
|
return this.client.patchRouteMiddlewares({
|
|
23221
24705
|
path,
|
|
@@ -23318,6 +24802,9 @@ var Chat = class extends ConduitModule {
|
|
|
23318
24802
|
editMessage(messageData) {
|
|
23319
24803
|
return this.client.editMessage(EditMessageRequest.fromPartial(messageData));
|
|
23320
24804
|
}
|
|
24805
|
+
deleteMessage(messageData) {
|
|
24806
|
+
return this.client.deleteMessage(DeleteMessageRequest.fromPartial(messageData));
|
|
24807
|
+
}
|
|
23321
24808
|
createRoom(name, participants) {
|
|
23322
24809
|
return this.client.createRoom({ name, participants });
|
|
23323
24810
|
}
|
|
@@ -23361,6 +24848,16 @@ var Authorization = class extends ConduitModule {
|
|
|
23361
24848
|
can(data) {
|
|
23362
24849
|
return this.client.can(data);
|
|
23363
24850
|
}
|
|
24851
|
+
/**
|
|
24852
|
+
* Lists actions declared on the resource definition.
|
|
24853
|
+
* A direct grant for an undeclared action can still pass `can()` and is omitted.
|
|
24854
|
+
* `actionPrefix` is literal (`overview` also matches `overviewer`; prefer `overview_`).
|
|
24855
|
+
* Subject and resource-definition changes drop the ~60s cache immediately.
|
|
24856
|
+
* Inherited access through an intermediate subject can lag until the TTL, as with `can()`.
|
|
24857
|
+
*/
|
|
24858
|
+
getSubjectPermissions(data) {
|
|
24859
|
+
return this.client.getSubjectPermissions(data);
|
|
24860
|
+
}
|
|
23364
24861
|
grantPermission(data) {
|
|
23365
24862
|
return this.client.grantPermission(data);
|
|
23366
24863
|
}
|
|
@@ -23376,6 +24873,7 @@ var Authorization = class extends ConduitModule {
|
|
|
23376
24873
|
};
|
|
23377
24874
|
|
|
23378
24875
|
// src/modules/authentication/index.ts
|
|
24876
|
+
import { status } from "@grpc/grpc-js";
|
|
23379
24877
|
var Authentication = class extends ConduitModule {
|
|
23380
24878
|
constructor(moduleName, url, grpcToken) {
|
|
23381
24879
|
super(moduleName, "authentication", url, grpcToken);
|
|
@@ -23383,29 +24881,79 @@ var Authentication = class extends ConduitModule {
|
|
|
23383
24881
|
this.initializeClient(AuthenticationDefinition);
|
|
23384
24882
|
}
|
|
23385
24883
|
moduleName;
|
|
23386
|
-
|
|
23387
|
-
|
|
24884
|
+
userCacheProvider;
|
|
24885
|
+
/**
|
|
24886
|
+
* Attaches a cache (or a lazy provider of one, resolved on every `getUser` call so that
|
|
24887
|
+
* no Redis connection is opened until it is needed) that `getUser` reads through.
|
|
24888
|
+
*/
|
|
24889
|
+
attachUserCache(cache) {
|
|
24890
|
+
this.userCacheProvider = typeof cache === "function" ? cache : cache ? () => cache : void 0;
|
|
24891
|
+
}
|
|
24892
|
+
hasUserCache() {
|
|
24893
|
+
return this.userCacheProvider !== void 0;
|
|
24894
|
+
}
|
|
24895
|
+
/**
|
|
24896
|
+
* Fetches a user document (never includes `hashedPassword`), reading through the
|
|
24897
|
+
* attached user cache (5 s TTL, see UserCache) when there is one. Cache problems never
|
|
24898
|
+
* fail or delay the call beyond the cache's own timeout; the cache write is fire-and-forget.
|
|
24899
|
+
*
|
|
24900
|
+
* The server answers gRPC NOT_FOUND for an unknown id and this method rejects with that
|
|
24901
|
+
* error (an empty response is also turned into a `GrpcError` NOT_FOUND).
|
|
24902
|
+
*/
|
|
24903
|
+
async getUser(userId) {
|
|
24904
|
+
let cache;
|
|
24905
|
+
try {
|
|
24906
|
+
cache = this.userCacheProvider?.();
|
|
24907
|
+
} catch {
|
|
24908
|
+
cache = void 0;
|
|
24909
|
+
}
|
|
24910
|
+
const cached = await cache?.get(userId);
|
|
24911
|
+
if (cached) return cached;
|
|
24912
|
+
const res = await this.client.getUser({ userId });
|
|
24913
|
+
if (!res?.user) {
|
|
24914
|
+
throw new GrpcError(status.NOT_FOUND, "User not found");
|
|
24915
|
+
}
|
|
24916
|
+
const user = JSON.parse(res.user);
|
|
24917
|
+
void cache?.set(userId, user);
|
|
24918
|
+
return user;
|
|
24919
|
+
}
|
|
24920
|
+
/**
|
|
24921
|
+
* Issues tokens for a user without a login. Trusted path: it runs no login strategy
|
|
24922
|
+
* and satisfies a realm's `requireTwoFa` policy without a 2FA step. `realm` (slug)
|
|
24923
|
+
* defaults to the user's home realm.
|
|
24924
|
+
*/
|
|
24925
|
+
userLogin(userId, clientId, realm) {
|
|
24926
|
+
return this.client.userLogin({ userId, clientId, realm });
|
|
23388
24927
|
}
|
|
23389
24928
|
userDelete(userId) {
|
|
23390
24929
|
return this.client.userDelete({ userId });
|
|
23391
24930
|
}
|
|
23392
|
-
userCreate(email, verify = false, password, anonymousId, userData) {
|
|
24931
|
+
userCreate(email, verify = false, password, anonymousId, userData, realm) {
|
|
23393
24932
|
return this.client.userCreate({
|
|
23394
24933
|
email,
|
|
23395
24934
|
verify,
|
|
23396
24935
|
password,
|
|
23397
24936
|
anonymousId,
|
|
23398
|
-
userData: JSON.stringify(userData)
|
|
24937
|
+
userData: JSON.stringify(userData),
|
|
24938
|
+
realm
|
|
23399
24939
|
});
|
|
23400
24940
|
}
|
|
23401
|
-
userCreateByUsername(username, password, anonymousId) {
|
|
23402
|
-
return this.client.userCreateByUsername({ username, password, anonymousId });
|
|
24941
|
+
userCreateByUsername(username, password, anonymousId, realm) {
|
|
24942
|
+
return this.client.userCreateByUsername({ username, password, anonymousId, realm });
|
|
23403
24943
|
}
|
|
23404
|
-
anonymousUserCreate(clientId) {
|
|
23405
|
-
return this.client.anonymousUserCreate({ clientId });
|
|
24944
|
+
anonymousUserCreate(clientId, realm) {
|
|
24945
|
+
return this.client.anonymousUserCreate({ clientId, realm });
|
|
23406
24946
|
}
|
|
23407
|
-
|
|
23408
|
-
|
|
24947
|
+
/**
|
|
24948
|
+
* Sets a new password. `realm` picks the account when the email is held by several accounts
|
|
24949
|
+
* (isolated identity mode): a realm slug picks that realm's account, `'global'` picks the
|
|
24950
|
+
* account without a home realm. Without it such an email is refused with FAILED_PRECONDITION.
|
|
24951
|
+
*/
|
|
24952
|
+
changePass(email, password, realm) {
|
|
24953
|
+
return this.client.changePass({ email, password, realm });
|
|
24954
|
+
}
|
|
24955
|
+
changeEmail(userId, newEmail) {
|
|
24956
|
+
return this.client.changeEmail({ userId, newEmail });
|
|
23409
24957
|
}
|
|
23410
24958
|
getTeam(teamId) {
|
|
23411
24959
|
return this.client.getTeam({ teamId });
|
|
@@ -23444,6 +24992,46 @@ var Authentication = class extends ConduitModule {
|
|
|
23444
24992
|
updateTeam(teamId, name, newParentTeamId) {
|
|
23445
24993
|
return this.client.updateTeam({ teamId, name, newParentTeamId });
|
|
23446
24994
|
}
|
|
24995
|
+
/**
|
|
24996
|
+
* Turns a top-level team into a realm, or updates the settings of an existing realm.
|
|
24997
|
+
* `settings` is the realm settings body (strategies, policies, registration, active);
|
|
24998
|
+
* it may carry OAuth secrets (write-only). Changing the slug of an existing realm
|
|
24999
|
+
* needs `force`.
|
|
25000
|
+
* Errors keep their gRPC code; module errors (REALM_SLUG_TAKEN, REALM_NESTED,
|
|
25001
|
+
* GUESTS_NOT_ALLOWED...) carry a JSON string message (`{"conduitCode", "message"}`),
|
|
25002
|
+
* so key on `conduitCode`.
|
|
25003
|
+
*/
|
|
25004
|
+
setTeamRealm(teamId, slug, settings, force = false) {
|
|
25005
|
+
return this.client.setTeamRealm({
|
|
25006
|
+
teamId,
|
|
25007
|
+
slug,
|
|
25008
|
+
settingsJson: settings === void 0 ? void 0 : JSON.stringify(settings),
|
|
25009
|
+
force
|
|
25010
|
+
});
|
|
25011
|
+
}
|
|
25012
|
+
/** The team, its masked realm settings (`settingsJson`, no secrets) and user counts. */
|
|
25013
|
+
getRealmSettings(teamId) {
|
|
25014
|
+
return this.client.getRealmSettings({ teamId });
|
|
25015
|
+
}
|
|
25016
|
+
/** Demotes a realm. Refused while home users exist unless `force`, which blocks them. */
|
|
25017
|
+
unsetTeamRealm(teamId, force = false) {
|
|
25018
|
+
return this.client.unsetTeamRealm({ teamId, force });
|
|
25019
|
+
}
|
|
25020
|
+
/**
|
|
25021
|
+
* `home` makes the realm the user's home realm, `guest` adds a guest membership.
|
|
25022
|
+
* Fails with FAILED_PRECONDITION when `home` would replace a different home realm
|
|
25023
|
+
* (unless `force`, which moves the user and revokes all their tokens) and when `guest`
|
|
25024
|
+
* is requested for a user whose home realm is this realm.
|
|
25025
|
+
* Errors keep their gRPC code; module errors carry a JSON string message
|
|
25026
|
+
* (`{"conduitCode", "message"}`), so key on `conduitCode`.
|
|
25027
|
+
*/
|
|
25028
|
+
grantRealmMembership(teamId, userId, type, force = false) {
|
|
25029
|
+
return this.client.grantRealmMembership({ teamId, userId, type, force });
|
|
25030
|
+
}
|
|
25031
|
+
/** Removes a guest membership (home users are moved, not removed). */
|
|
25032
|
+
revokeRealmMembership(teamId, userId) {
|
|
25033
|
+
return this.client.revokeRealmMembership({ teamId, userId, type: "", force: false });
|
|
25034
|
+
}
|
|
23447
25035
|
};
|
|
23448
25036
|
|
|
23449
25037
|
// src/modules/communications/index.ts
|
|
@@ -23732,72 +25320,136 @@ import crypto from "crypto";
|
|
|
23732
25320
|
var EventBus = class {
|
|
23733
25321
|
_clientSubscriber;
|
|
23734
25322
|
_clientPublisher;
|
|
23735
|
-
|
|
23736
|
-
|
|
25323
|
+
/** channelName -> subscriberId -> callback */
|
|
25324
|
+
_channelCallbacks;
|
|
25325
|
+
/** subscriberId -> channelName */
|
|
25326
|
+
_subscriberChannels;
|
|
25327
|
+
/** channels with a successful Redis SUBSCRIBE */
|
|
25328
|
+
_redisSubscribedChannels;
|
|
25329
|
+
_subscribeInFlight = /* @__PURE__ */ new Map();
|
|
23737
25330
|
_signature;
|
|
25331
|
+
_anonymousSubscriberSeq = 0;
|
|
25332
|
+
_shuttingDown = false;
|
|
23738
25333
|
constructor(redisManager) {
|
|
23739
|
-
this.
|
|
23740
|
-
this.
|
|
25334
|
+
this._channelCallbacks = /* @__PURE__ */ new Map();
|
|
25335
|
+
this._subscriberChannels = /* @__PURE__ */ new Map();
|
|
25336
|
+
this._redisSubscribedChannels = /* @__PURE__ */ new Set();
|
|
23741
25337
|
this._clientSubscriber = redisManager.getClient({ keyPrefix: "bus_" });
|
|
23742
25338
|
this._clientPublisher = redisManager.getClient({ keyPrefix: "bus_" });
|
|
23743
25339
|
this._signature = crypto.randomBytes(20).toString("hex");
|
|
23744
25340
|
this._clientSubscriber.on("ready", () => {
|
|
23745
25341
|
getLogger().log("The Bus is in the station...hehe");
|
|
23746
25342
|
});
|
|
25343
|
+
this._clientSubscriber.on("message", (channel, message) => {
|
|
25344
|
+
this.dispatch(channel, message);
|
|
25345
|
+
});
|
|
23747
25346
|
process.on("exit", () => {
|
|
23748
|
-
this.
|
|
23749
|
-
this._clientPublisher.quit();
|
|
25347
|
+
this.quit();
|
|
23750
25348
|
});
|
|
23751
25349
|
}
|
|
25350
|
+
quit() {
|
|
25351
|
+
if (this._shuttingDown) return;
|
|
25352
|
+
this._shuttingDown = true;
|
|
25353
|
+
void this._clientSubscriber.quit();
|
|
25354
|
+
void this._clientPublisher.quit();
|
|
25355
|
+
}
|
|
23752
25356
|
unsubscribe(subscriberId) {
|
|
23753
|
-
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
23757
|
-
|
|
23758
|
-
|
|
25357
|
+
const channelName = this._subscriberChannels.get(subscriberId);
|
|
25358
|
+
if (!channelName) {
|
|
25359
|
+
return;
|
|
25360
|
+
}
|
|
25361
|
+
const callbacks = this._channelCallbacks.get(channelName);
|
|
25362
|
+
callbacks?.delete(subscriberId);
|
|
25363
|
+
this._subscriberChannels.delete(subscriberId);
|
|
25364
|
+
if (callbacks && callbacks.size === 0) {
|
|
25365
|
+
this._channelCallbacks.delete(channelName);
|
|
25366
|
+
if (this._redisSubscribedChannels.delete(channelName)) {
|
|
23759
25367
|
this._clientSubscriber.unsubscribe(channelName, () => {
|
|
23760
25368
|
});
|
|
23761
25369
|
}
|
|
23762
25370
|
}
|
|
23763
25371
|
}
|
|
23764
25372
|
subscribe(channelName, callback, subscriberId) {
|
|
25373
|
+
void this.subscribeAck(channelName, callback, subscriberId).catch((err) => {
|
|
25374
|
+
getLogger().error(
|
|
25375
|
+
`EventBus subscribe failed for ${channelName}: ${err instanceof Error ? err.message : String(err)}`
|
|
25376
|
+
);
|
|
25377
|
+
});
|
|
25378
|
+
}
|
|
25379
|
+
async subscribeAck(channelName, callback, subscriberId) {
|
|
25380
|
+
if (this._shuttingDown) {
|
|
25381
|
+
return;
|
|
25382
|
+
}
|
|
25383
|
+
const id = subscriberId ?? `anon:${channelName}:${++this._anonymousSubscriberSeq}:${crypto.randomBytes(4).toString("hex")}`;
|
|
23765
25384
|
if (subscriberId) {
|
|
23766
25385
|
this.unsubscribe(subscriberId);
|
|
23767
25386
|
}
|
|
23768
|
-
|
|
23769
|
-
|
|
23770
|
-
|
|
23771
|
-
|
|
23772
|
-
|
|
23773
|
-
|
|
23774
|
-
|
|
23775
|
-
|
|
25387
|
+
let callbacks = this._channelCallbacks.get(channelName);
|
|
25388
|
+
if (!callbacks) {
|
|
25389
|
+
callbacks = /* @__PURE__ */ new Map();
|
|
25390
|
+
this._channelCallbacks.set(channelName, callbacks);
|
|
25391
|
+
}
|
|
25392
|
+
callbacks.set(id, callback);
|
|
25393
|
+
this._subscriberChannels.set(id, channelName);
|
|
25394
|
+
if (this._redisSubscribedChannels.has(channelName)) {
|
|
23776
25395
|
return;
|
|
23777
25396
|
}
|
|
23778
|
-
this.
|
|
23779
|
-
|
|
23780
|
-
|
|
23781
|
-
|
|
23782
|
-
|
|
23783
|
-
|
|
23784
|
-
|
|
23785
|
-
|
|
23786
|
-
|
|
23787
|
-
|
|
23788
|
-
});
|
|
23789
|
-
}
|
|
23790
|
-
} else {
|
|
23791
|
-
self._subscribedChannels[channelName].forEach((fn) => {
|
|
23792
|
-
fn(message);
|
|
25397
|
+
let inFlight = this._subscribeInFlight.get(channelName);
|
|
25398
|
+
if (!inFlight) {
|
|
25399
|
+
inFlight = new Promise((resolve, reject) => {
|
|
25400
|
+
this._clientSubscriber.subscribe(channelName, (err) => {
|
|
25401
|
+
if (err) {
|
|
25402
|
+
reject(err);
|
|
25403
|
+
return;
|
|
25404
|
+
}
|
|
25405
|
+
this._redisSubscribedChannels.add(channelName);
|
|
25406
|
+
resolve();
|
|
23793
25407
|
});
|
|
25408
|
+
}).finally(() => {
|
|
25409
|
+
this._subscribeInFlight.delete(channelName);
|
|
25410
|
+
});
|
|
25411
|
+
this._subscribeInFlight.set(channelName, inFlight);
|
|
25412
|
+
}
|
|
25413
|
+
try {
|
|
25414
|
+
await inFlight;
|
|
25415
|
+
} catch (err) {
|
|
25416
|
+
if (!this._redisSubscribedChannels.has(channelName)) {
|
|
25417
|
+
this.removeChannelCallbacks(channelName);
|
|
23794
25418
|
}
|
|
23795
|
-
|
|
25419
|
+
this.unsubscribe(id);
|
|
25420
|
+
throw err;
|
|
25421
|
+
}
|
|
23796
25422
|
}
|
|
23797
25423
|
publish(channelName, message) {
|
|
23798
25424
|
message = message + `CND_Signature:${this._signature}`;
|
|
23799
25425
|
this._clientPublisher.publish(channelName, message);
|
|
23800
25426
|
}
|
|
25427
|
+
removeChannelCallbacks(channelName) {
|
|
25428
|
+
const callbacks = this._channelCallbacks.get(channelName);
|
|
25429
|
+
if (!callbacks) {
|
|
25430
|
+
return;
|
|
25431
|
+
}
|
|
25432
|
+
for (const subId of callbacks.keys()) {
|
|
25433
|
+
this._subscriberChannels.delete(subId);
|
|
25434
|
+
}
|
|
25435
|
+
this._channelCallbacks.delete(channelName);
|
|
25436
|
+
}
|
|
25437
|
+
dispatch(channel, message) {
|
|
25438
|
+
const callbacks = this._channelCallbacks.get(channel);
|
|
25439
|
+
if (!callbacks || callbacks.size === 0) {
|
|
25440
|
+
return;
|
|
25441
|
+
}
|
|
25442
|
+
let payload = message;
|
|
25443
|
+
if (message.indexOf("CND_Signature") !== -1) {
|
|
25444
|
+
if (message.indexOf(this._signature) !== -1) {
|
|
25445
|
+
return;
|
|
25446
|
+
}
|
|
25447
|
+
payload = message.split("CND_Signature:")[0];
|
|
25448
|
+
}
|
|
25449
|
+
for (const fn of callbacks.values()) {
|
|
25450
|
+
fn(payload);
|
|
25451
|
+
}
|
|
25452
|
+
}
|
|
23801
25453
|
};
|
|
23802
25454
|
|
|
23803
25455
|
// src/utilities/RedisManager.ts
|
|
@@ -23839,6 +25491,22 @@ async function isLockContention(error) {
|
|
|
23839
25491
|
);
|
|
23840
25492
|
return voteErrors.length > 0 && voteErrors.every((voteError) => voteError instanceof ResourceLockedError);
|
|
23841
25493
|
}
|
|
25494
|
+
var CONSUME_KEY_IF_MATCHES_SCRIPT = `
|
|
25495
|
+
local stored = redis.call('GET', KEYS[1])
|
|
25496
|
+
if not stored then return 0 end
|
|
25497
|
+
if stored == ARGV[1] then
|
|
25498
|
+
redis.call('DEL', KEYS[1], KEYS[2])
|
|
25499
|
+
return 1
|
|
25500
|
+
end
|
|
25501
|
+
local attempts = redis.call('INCR', KEYS[2])
|
|
25502
|
+
if attempts >= tonumber(ARGV[2]) then
|
|
25503
|
+
redis.call('DEL', KEYS[1], KEYS[2])
|
|
25504
|
+
elseif attempts == 1 then
|
|
25505
|
+
local ttl = redis.call('PTTL', KEYS[1])
|
|
25506
|
+
if ttl > 0 then redis.call('PEXPIRE', KEYS[2], ttl) end
|
|
25507
|
+
end
|
|
25508
|
+
return 0
|
|
25509
|
+
`;
|
|
23842
25510
|
var StateManager = class {
|
|
23843
25511
|
redisClient;
|
|
23844
25512
|
redLock;
|
|
@@ -23934,10 +25602,175 @@ var StateManager = class {
|
|
|
23934
25602
|
getKey(keyName) {
|
|
23935
25603
|
return this.redisClient.get(keyName);
|
|
23936
25604
|
}
|
|
25605
|
+
/**
|
|
25606
|
+
* Deletes keyName and resolves true when it holds value. A mismatch is counted in
|
|
25607
|
+
* attemptsKey (expiring with keyName), and the maxAttempts-th mismatch deletes keyName.
|
|
25608
|
+
* Both keys must share a hash tag for Redis Cluster.
|
|
25609
|
+
*/
|
|
25610
|
+
async consumeKeyIfMatches(keyName, attemptsKey, value, maxAttempts) {
|
|
25611
|
+
const result = await this.redisClient.eval(
|
|
25612
|
+
CONSUME_KEY_IF_MATCHES_SCRIPT,
|
|
25613
|
+
2,
|
|
25614
|
+
keyName,
|
|
25615
|
+
attemptsKey,
|
|
25616
|
+
value,
|
|
25617
|
+
maxAttempts
|
|
25618
|
+
);
|
|
25619
|
+
return result === 1;
|
|
25620
|
+
}
|
|
25621
|
+
incr(keyName) {
|
|
25622
|
+
return this.redisClient.incr(keyName);
|
|
25623
|
+
}
|
|
25624
|
+
};
|
|
25625
|
+
|
|
25626
|
+
// src/utilities/redisHelpers.ts
|
|
25627
|
+
var RedisTimeoutError = class extends Error {
|
|
25628
|
+
constructor(ms) {
|
|
25629
|
+
super(`Redis operation timed out after ${ms}ms`);
|
|
25630
|
+
}
|
|
25631
|
+
};
|
|
25632
|
+
function withTimeout(op, ms) {
|
|
25633
|
+
let timer;
|
|
25634
|
+
const timeout = new Promise((_, reject) => {
|
|
25635
|
+
timer = setTimeout(() => reject(new RedisTimeoutError(ms)), ms);
|
|
25636
|
+
});
|
|
25637
|
+
let pending;
|
|
25638
|
+
try {
|
|
25639
|
+
pending = op();
|
|
25640
|
+
} catch (e) {
|
|
25641
|
+
clearTimeout(timer);
|
|
25642
|
+
return Promise.reject(e);
|
|
25643
|
+
}
|
|
25644
|
+
return Promise.race([pending, timeout]).finally(() => clearTimeout(timer));
|
|
25645
|
+
}
|
|
25646
|
+
function silenceClientErrors(client, label) {
|
|
25647
|
+
const emitter = client;
|
|
25648
|
+
emitter.on?.("error", (e) => {
|
|
25649
|
+
const logger = getLogger();
|
|
25650
|
+
logger.debug?.(`${label} redis error: ${e?.message}`);
|
|
25651
|
+
});
|
|
25652
|
+
}
|
|
25653
|
+
async function inChunks(items, size, fn) {
|
|
25654
|
+
const failed = [];
|
|
25655
|
+
for (let i = 0; i < items.length; i += size) {
|
|
25656
|
+
const chunk = items.slice(i, i + size);
|
|
25657
|
+
try {
|
|
25658
|
+
await fn(chunk);
|
|
25659
|
+
} catch {
|
|
25660
|
+
failed.push(...chunk);
|
|
25661
|
+
}
|
|
25662
|
+
}
|
|
25663
|
+
return failed;
|
|
25664
|
+
}
|
|
25665
|
+
|
|
25666
|
+
// src/utilities/UserCache.ts
|
|
25667
|
+
var USER_CACHE_PREFIX = "auth_user_";
|
|
25668
|
+
var USER_CACHE_TTL_MS = 5e3;
|
|
25669
|
+
var OP_TIMEOUT_MS = 200;
|
|
25670
|
+
var CHUNK_SIZE = 100;
|
|
25671
|
+
var UserCache = class {
|
|
25672
|
+
client;
|
|
25673
|
+
constructor(redisManager) {
|
|
25674
|
+
const client = redisManager.getClient();
|
|
25675
|
+
silenceClientErrors(client, "UserCache");
|
|
25676
|
+
this.client = client;
|
|
25677
|
+
}
|
|
25678
|
+
key(id) {
|
|
25679
|
+
return USER_CACHE_PREFIX + id;
|
|
25680
|
+
}
|
|
25681
|
+
async get(id) {
|
|
25682
|
+
try {
|
|
25683
|
+
const raw = await withTimeout(() => this.client.get(this.key(id)), OP_TIMEOUT_MS);
|
|
25684
|
+
return raw ? JSON.parse(raw) : null;
|
|
25685
|
+
} catch {
|
|
25686
|
+
return null;
|
|
25687
|
+
}
|
|
25688
|
+
}
|
|
25689
|
+
async set(id, user) {
|
|
25690
|
+
try {
|
|
25691
|
+
await withTimeout(
|
|
25692
|
+
() => this.client.set(this.key(id), JSON.stringify(user), "PX", USER_CACHE_TTL_MS),
|
|
25693
|
+
OP_TIMEOUT_MS
|
|
25694
|
+
);
|
|
25695
|
+
} catch {
|
|
25696
|
+
}
|
|
25697
|
+
}
|
|
25698
|
+
async invalidate(id) {
|
|
25699
|
+
try {
|
|
25700
|
+
await withTimeout(() => this.client.del(this.key(id)), OP_TIMEOUT_MS);
|
|
25701
|
+
} catch {
|
|
25702
|
+
}
|
|
25703
|
+
}
|
|
25704
|
+
async invalidateMany(ids) {
|
|
25705
|
+
await inChunks(
|
|
25706
|
+
ids,
|
|
25707
|
+
CHUNK_SIZE,
|
|
25708
|
+
(chunk) => Promise.all(chunk.map((id) => this.invalidate(id))).then(() => void 0)
|
|
25709
|
+
);
|
|
25710
|
+
}
|
|
25711
|
+
};
|
|
25712
|
+
|
|
25713
|
+
// src/utilities/SessionRegistry.ts
|
|
25714
|
+
var SESSION_REGISTRY_PREFIX = "auth_session_";
|
|
25715
|
+
var OP_TIMEOUT_MS2 = 500;
|
|
25716
|
+
var CHUNK_SIZE2 = 100;
|
|
25717
|
+
var SessionRegistry = class _SessionRegistry {
|
|
25718
|
+
client;
|
|
25719
|
+
constructor(redisManager) {
|
|
25720
|
+
const client = redisManager.getClient();
|
|
25721
|
+
silenceClientErrors(client, "SessionRegistry");
|
|
25722
|
+
this.client = client;
|
|
25723
|
+
}
|
|
25724
|
+
key(sid) {
|
|
25725
|
+
return SESSION_REGISTRY_PREFIX + sid;
|
|
25726
|
+
}
|
|
25727
|
+
async run(op) {
|
|
25728
|
+
try {
|
|
25729
|
+
return await withTimeout(op, OP_TIMEOUT_MS2);
|
|
25730
|
+
} catch {
|
|
25731
|
+
throw new Error("Session registry unavailable");
|
|
25732
|
+
}
|
|
25733
|
+
}
|
|
25734
|
+
static ttl(ttlMs) {
|
|
25735
|
+
return Math.max(1, Math.ceil(ttlMs));
|
|
25736
|
+
}
|
|
25737
|
+
async register(sid, data, ttlMs) {
|
|
25738
|
+
const value = JSON.stringify({
|
|
25739
|
+
user: data.user,
|
|
25740
|
+
clientId: data.clientId,
|
|
25741
|
+
realm: data.realm ?? null
|
|
25742
|
+
});
|
|
25743
|
+
await this.run(
|
|
25744
|
+
() => this.client.set(this.key(sid), value, "PX", _SessionRegistry.ttl(ttlMs))
|
|
25745
|
+
);
|
|
25746
|
+
}
|
|
25747
|
+
/** Extends the session's lifetime. Does nothing for an unknown session. */
|
|
25748
|
+
async touch(sid, ttlMs) {
|
|
25749
|
+
await this.run(() => this.client.pexpire(this.key(sid), _SessionRegistry.ttl(ttlMs)));
|
|
25750
|
+
}
|
|
25751
|
+
async exists(sid) {
|
|
25752
|
+
return await this.run(() => this.client.exists(this.key(sid))) === 1;
|
|
25753
|
+
}
|
|
25754
|
+
async revoke(sid) {
|
|
25755
|
+
await this.run(() => this.client.del(this.key(sid)));
|
|
25756
|
+
}
|
|
25757
|
+
/** Attempts every sid; throws an Error listing the sids that could not be revoked. */
|
|
25758
|
+
async revokeMany(sids) {
|
|
25759
|
+
const failed = [];
|
|
25760
|
+
await inChunks(sids, CHUNK_SIZE2, async (chunk) => {
|
|
25761
|
+
const results = await Promise.allSettled(chunk.map((sid) => this.revoke(sid)));
|
|
25762
|
+
results.forEach((r, i) => {
|
|
25763
|
+
if (r.status === "rejected") failed.push(chunk[i]);
|
|
25764
|
+
});
|
|
25765
|
+
});
|
|
25766
|
+
if (failed.length > 0) {
|
|
25767
|
+
throw new Error(`Failed to revoke sessions: ${failed.join(", ")}`);
|
|
25768
|
+
}
|
|
25769
|
+
}
|
|
23937
25770
|
};
|
|
23938
25771
|
|
|
23939
25772
|
// src/index.ts
|
|
23940
|
-
import { status } from "@grpc/grpc-js";
|
|
25773
|
+
import { status as status2 } from "@grpc/grpc-js";
|
|
23941
25774
|
import { createSigner } from "fast-jwt";
|
|
23942
25775
|
|
|
23943
25776
|
// src/interfaces/Route.ts
|
|
@@ -24012,6 +25845,8 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
|
|
|
24012
25845
|
_dynamicModules = {};
|
|
24013
25846
|
_eventBus;
|
|
24014
25847
|
_stateManager;
|
|
25848
|
+
_userCache;
|
|
25849
|
+
_sessionRegistry;
|
|
24015
25850
|
lastSearch = Date.now();
|
|
24016
25851
|
urlRemap;
|
|
24017
25852
|
_serviceHealthStatusGetter;
|
|
@@ -24095,6 +25930,20 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
|
|
|
24095
25930
|
return null;
|
|
24096
25931
|
}
|
|
24097
25932
|
}
|
|
25933
|
+
/** Redis-backed user cache. Throws when Redis is not initialized. */
|
|
25934
|
+
get userCache() {
|
|
25935
|
+
if (!this._userCache) {
|
|
25936
|
+
this._userCache = new UserCache(this.redisManager);
|
|
25937
|
+
}
|
|
25938
|
+
return this._userCache;
|
|
25939
|
+
}
|
|
25940
|
+
/** Redis-backed session registry. Throws when Redis is not initialized. */
|
|
25941
|
+
get sessionRegistry() {
|
|
25942
|
+
if (!this._sessionRegistry) {
|
|
25943
|
+
this._sessionRegistry = new SessionRegistry(this.redisManager);
|
|
25944
|
+
}
|
|
25945
|
+
return this._sessionRegistry;
|
|
25946
|
+
}
|
|
24098
25947
|
get core() {
|
|
24099
25948
|
return this._core;
|
|
24100
25949
|
}
|
|
@@ -24212,7 +26061,7 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
|
|
|
24212
26061
|
return;
|
|
24213
26062
|
}
|
|
24214
26063
|
} catch (err) {
|
|
24215
|
-
if (err.code ===
|
|
26064
|
+
if (err.code === status2.PERMISSION_DENIED) {
|
|
24216
26065
|
_ConduitGrpcSdk.Logger.error(err);
|
|
24217
26066
|
throw err;
|
|
24218
26067
|
}
|
|
@@ -24301,7 +26150,7 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
|
|
|
24301
26150
|
this.waitForExistence(moduleName, onlyIfServing),
|
|
24302
26151
|
sleep(options.timeoutMs).then(() => {
|
|
24303
26152
|
throw new GrpcError(
|
|
24304
|
-
|
|
26153
|
+
status2.DEADLINE_EXCEEDED,
|
|
24305
26154
|
`awaitPeer(${moduleName}) timed out after ${options.timeoutMs}ms`
|
|
24306
26155
|
);
|
|
24307
26156
|
})
|
|
@@ -24490,6 +26339,11 @@ var ConduitGrpcSdk = class _ConduitGrpcSdk {
|
|
|
24490
26339
|
moduleUrl,
|
|
24491
26340
|
this._grpcToken
|
|
24492
26341
|
);
|
|
26342
|
+
if (moduleName === "authentication") {
|
|
26343
|
+
this._modules[moduleName].attachUserCache(
|
|
26344
|
+
() => this._redisManager ? this.userCache : void 0
|
|
26345
|
+
);
|
|
26346
|
+
}
|
|
24493
26347
|
} else if (this._dynamicModules[moduleName]) {
|
|
24494
26348
|
_ConduitGrpcSdk.Logger.info(`Creating gRPC client for ${moduleName}`);
|
|
24495
26349
|
this._modules[moduleName] = new ConduitModule(
|
|
@@ -24647,6 +26501,7 @@ export {
|
|
|
24647
26501
|
ColumnExistenceResponse,
|
|
24648
26502
|
Communications,
|
|
24649
26503
|
CommunicationsDefinition,
|
|
26504
|
+
CompatibleIndexType,
|
|
24650
26505
|
ConduitAuthorizedResource,
|
|
24651
26506
|
ConduitError,
|
|
24652
26507
|
ConduitGrpcSdk,
|
|
@@ -24680,6 +26535,7 @@ export {
|
|
|
24680
26535
|
DeleteEmbeddingConfigRequest,
|
|
24681
26536
|
DeleteEmbeddingConfigResponse,
|
|
24682
26537
|
DeleteFileResponse,
|
|
26538
|
+
DeleteMessageRequest,
|
|
24683
26539
|
DeleteResourceRequest,
|
|
24684
26540
|
DeleteRoomRequest,
|
|
24685
26541
|
DeleteVectorIndexRequest,
|
|
@@ -24722,6 +26578,7 @@ export {
|
|
|
24722
26578
|
GetMessageStatusResponse,
|
|
24723
26579
|
GetNotificationTokensRequest,
|
|
24724
26580
|
GetNotificationTokensResponse,
|
|
26581
|
+
GetRealmSettingsRequest,
|
|
24725
26582
|
GetRedisDetailsResponse,
|
|
24726
26583
|
GetRoomResponse,
|
|
24727
26584
|
GetSchemaRequest,
|
|
@@ -24730,6 +26587,8 @@ export {
|
|
|
24730
26587
|
GetStatusRequest,
|
|
24731
26588
|
GetStatusResponse,
|
|
24732
26589
|
GetTeamRequest,
|
|
26590
|
+
GetUserRequest,
|
|
26591
|
+
GetUserResponse,
|
|
24733
26592
|
GrpcError,
|
|
24734
26593
|
HealthCheckRequest,
|
|
24735
26594
|
HealthCheckResponse,
|
|
@@ -24770,6 +26629,8 @@ export {
|
|
|
24770
26629
|
RawQueryRequest_RawQuery,
|
|
24771
26630
|
RawQueryRequest_RawQuery_MongoQuery,
|
|
24772
26631
|
RawQueryRequest_RawQuery_SQLQuery,
|
|
26632
|
+
RealmMembershipRequest,
|
|
26633
|
+
RealmResponse,
|
|
24773
26634
|
RegisterAdminRouteRequest,
|
|
24774
26635
|
RegisterAdminRouteRequest_ConduitRouteOptions,
|
|
24775
26636
|
RegisterAdminRouteRequest_ConduitRouteReturnDefinition,
|
|
@@ -24807,6 +26668,7 @@ export {
|
|
|
24807
26668
|
Room,
|
|
24808
26669
|
Router,
|
|
24809
26670
|
RouterDefinition,
|
|
26671
|
+
SESSION_REGISTRY_PREFIX,
|
|
24810
26672
|
SMS,
|
|
24811
26673
|
SQLDataType,
|
|
24812
26674
|
Schema,
|
|
@@ -24838,21 +26700,31 @@ export {
|
|
|
24838
26700
|
SendWithFallbackRequest_SendCommunicationParams,
|
|
24839
26701
|
SendWithFallbackResponse,
|
|
24840
26702
|
SendWithFallbackResponse_ChannelResult,
|
|
26703
|
+
SessionRegistry,
|
|
24841
26704
|
SetConfigRequest,
|
|
24842
26705
|
SetConfigResponse,
|
|
24843
26706
|
SetNotificationTokenRequest,
|
|
24844
26707
|
SetNotificationTokenResponse,
|
|
26708
|
+
SetTeamRealmRequest,
|
|
24845
26709
|
SocketData,
|
|
26710
|
+
SocketPushRequest,
|
|
24846
26711
|
SocketRequest,
|
|
24847
26712
|
SocketResponse,
|
|
24848
26713
|
StartBackfillRequest,
|
|
24849
26714
|
StartBackfillResponse,
|
|
24850
26715
|
Storage,
|
|
24851
26716
|
StorageDefinition,
|
|
26717
|
+
SubjectPermission,
|
|
26718
|
+
SubjectPermissionsRequest,
|
|
26719
|
+
SubjectPermissionsResponse,
|
|
24852
26720
|
TYPE,
|
|
24853
26721
|
Team,
|
|
24854
26722
|
TeamDeleteRequest,
|
|
24855
26723
|
TeamDeleteResponse,
|
|
26724
|
+
USER_CACHE_PREFIX,
|
|
26725
|
+
USER_CACHE_TTL_MS,
|
|
26726
|
+
UnsetTeamRealmRequest,
|
|
26727
|
+
UnsetTeamRealmResponse,
|
|
24856
26728
|
UpdateCommunicationTemplateRequest,
|
|
24857
26729
|
UpdateConfigRequest,
|
|
24858
26730
|
UpdateConfigResponse,
|
|
@@ -24864,6 +26736,9 @@ export {
|
|
|
24864
26736
|
UpdateTemplateRequest,
|
|
24865
26737
|
UpsertConfigRequest,
|
|
24866
26738
|
UpsertConfigResponse,
|
|
26739
|
+
UserCache,
|
|
26740
|
+
UserChangeEmail,
|
|
26741
|
+
UserChangeEmailResponse,
|
|
24867
26742
|
UserChangePass,
|
|
24868
26743
|
UserCreateByUsernameRequest,
|
|
24869
26744
|
UserCreateRequest,
|