discord-protos 1.2.178 → 1.2.179
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/discord_protos/users/v1/User.proto +2 -0
- package/discord_protos/users/v1/UserData.proto +2 -0
- package/dist/discord_protos/users/v1/User.d.ts +8 -0
- package/dist/discord_protos/users/v1/User.js +16 -2
- package/dist/discord_protos/users/v1/UserData.d.ts +8 -0
- package/dist/discord_protos/users/v1/UserData.js +16 -2
- package/package.json +1 -1
|
@@ -549,10 +549,12 @@ message User {
|
|
|
549
549
|
message TempBannedState {
|
|
550
550
|
optional google.protobuf.Timestamp banned_until = 1;
|
|
551
551
|
repeated ClassificationType classification_types = 2;
|
|
552
|
+
optional google.protobuf.Timestamp banned_at = 3;
|
|
552
553
|
}
|
|
553
554
|
|
|
554
555
|
message BannedState {
|
|
555
556
|
repeated ClassificationType classification_types = 1;
|
|
557
|
+
optional google.protobuf.Timestamp banned_at = 2;
|
|
556
558
|
}
|
|
557
559
|
|
|
558
560
|
enum SafetyStateReason {
|
|
@@ -587,10 +587,12 @@ message UserData {
|
|
|
587
587
|
message TempBannedState {
|
|
588
588
|
optional google.protobuf.Timestamp banned_until = 1;
|
|
589
589
|
repeated ClassificationType classification_types = 2;
|
|
590
|
+
optional google.protobuf.Timestamp banned_at = 3;
|
|
590
591
|
}
|
|
591
592
|
|
|
592
593
|
message BannedState {
|
|
593
594
|
repeated ClassificationType classification_types = 1;
|
|
595
|
+
optional google.protobuf.Timestamp banned_at = 2;
|
|
594
596
|
}
|
|
595
597
|
|
|
596
598
|
enum SafetyStateReason {
|
|
@@ -169,6 +169,10 @@ export interface User_TempBannedState {
|
|
|
169
169
|
* @generated from protobuf field: repeated discord_protos.users.v1.User.ClassificationType classification_types = 2
|
|
170
170
|
*/
|
|
171
171
|
classificationTypes: User_ClassificationType[];
|
|
172
|
+
/**
|
|
173
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp banned_at = 3
|
|
174
|
+
*/
|
|
175
|
+
bannedAt?: Timestamp;
|
|
172
176
|
}
|
|
173
177
|
/**
|
|
174
178
|
* @generated from protobuf message discord_protos.users.v1.User.BannedState
|
|
@@ -178,6 +182,10 @@ export interface User_BannedState {
|
|
|
178
182
|
* @generated from protobuf field: repeated discord_protos.users.v1.User.ClassificationType classification_types = 1
|
|
179
183
|
*/
|
|
180
184
|
classificationTypes: User_ClassificationType[];
|
|
185
|
+
/**
|
|
186
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp banned_at = 2
|
|
187
|
+
*/
|
|
188
|
+
bannedAt?: Timestamp;
|
|
181
189
|
}
|
|
182
190
|
/**
|
|
183
191
|
* @generated from protobuf message discord_protos.users.v1.User.SafetyState
|
|
@@ -2726,7 +2726,8 @@ class User_TempBannedState$Type extends runtime_4.MessageType {
|
|
|
2726
2726
|
constructor() {
|
|
2727
2727
|
super("discord_protos.users.v1.User.TempBannedState", [
|
|
2728
2728
|
{ no: 1, name: "banned_until", kind: "message", T: () => timestamp_1.Timestamp },
|
|
2729
|
-
{ no: 2, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.User.ClassificationType", User_ClassificationType, "CLASSIFICATION_TYPE_"] }
|
|
2729
|
+
{ no: 2, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.User.ClassificationType", User_ClassificationType, "CLASSIFICATION_TYPE_"] },
|
|
2730
|
+
{ no: 3, name: "banned_at", kind: "message", T: () => timestamp_1.Timestamp }
|
|
2730
2731
|
]);
|
|
2731
2732
|
}
|
|
2732
2733
|
create(value) {
|
|
@@ -2751,6 +2752,9 @@ class User_TempBannedState$Type extends runtime_4.MessageType {
|
|
|
2751
2752
|
else
|
|
2752
2753
|
message.classificationTypes.push(reader.int32());
|
|
2753
2754
|
break;
|
|
2755
|
+
case /* optional google.protobuf.Timestamp banned_at */ 3:
|
|
2756
|
+
message.bannedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.bannedAt);
|
|
2757
|
+
break;
|
|
2754
2758
|
default:
|
|
2755
2759
|
let u = options.readUnknownField;
|
|
2756
2760
|
if (u === "throw")
|
|
@@ -2773,6 +2777,9 @@ class User_TempBannedState$Type extends runtime_4.MessageType {
|
|
|
2773
2777
|
writer.int32(message.classificationTypes[i]);
|
|
2774
2778
|
writer.join();
|
|
2775
2779
|
}
|
|
2780
|
+
/* optional google.protobuf.Timestamp banned_at = 3; */
|
|
2781
|
+
if (message.bannedAt)
|
|
2782
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.bannedAt, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2776
2783
|
let u = options.writeUnknownFields;
|
|
2777
2784
|
if (u !== false)
|
|
2778
2785
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -2787,7 +2794,8 @@ exports.User_TempBannedState = new User_TempBannedState$Type();
|
|
|
2787
2794
|
class User_BannedState$Type extends runtime_4.MessageType {
|
|
2788
2795
|
constructor() {
|
|
2789
2796
|
super("discord_protos.users.v1.User.BannedState", [
|
|
2790
|
-
{ no: 1, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.User.ClassificationType", User_ClassificationType, "CLASSIFICATION_TYPE_"] }
|
|
2797
|
+
{ no: 1, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.User.ClassificationType", User_ClassificationType, "CLASSIFICATION_TYPE_"] },
|
|
2798
|
+
{ no: 2, name: "banned_at", kind: "message", T: () => timestamp_1.Timestamp }
|
|
2791
2799
|
]);
|
|
2792
2800
|
}
|
|
2793
2801
|
create(value) {
|
|
@@ -2809,6 +2817,9 @@ class User_BannedState$Type extends runtime_4.MessageType {
|
|
|
2809
2817
|
else
|
|
2810
2818
|
message.classificationTypes.push(reader.int32());
|
|
2811
2819
|
break;
|
|
2820
|
+
case /* optional google.protobuf.Timestamp banned_at */ 2:
|
|
2821
|
+
message.bannedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.bannedAt);
|
|
2822
|
+
break;
|
|
2812
2823
|
default:
|
|
2813
2824
|
let u = options.readUnknownField;
|
|
2814
2825
|
if (u === "throw")
|
|
@@ -2828,6 +2839,9 @@ class User_BannedState$Type extends runtime_4.MessageType {
|
|
|
2828
2839
|
writer.int32(message.classificationTypes[i]);
|
|
2829
2840
|
writer.join();
|
|
2830
2841
|
}
|
|
2842
|
+
/* optional google.protobuf.Timestamp banned_at = 2; */
|
|
2843
|
+
if (message.bannedAt)
|
|
2844
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.bannedAt, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2831
2845
|
let u = options.writeUnknownFields;
|
|
2832
2846
|
if (u !== false)
|
|
2833
2847
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -253,6 +253,10 @@ export interface UserData_TempBannedState {
|
|
|
253
253
|
* @generated from protobuf field: repeated discord_protos.users.v1.UserData.ClassificationType classification_types = 2
|
|
254
254
|
*/
|
|
255
255
|
classificationTypes: UserData_ClassificationType[];
|
|
256
|
+
/**
|
|
257
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp banned_at = 3
|
|
258
|
+
*/
|
|
259
|
+
bannedAt?: Timestamp;
|
|
256
260
|
}
|
|
257
261
|
/**
|
|
258
262
|
* @generated from protobuf message discord_protos.users.v1.UserData.BannedState
|
|
@@ -262,6 +266,10 @@ export interface UserData_BannedState {
|
|
|
262
266
|
* @generated from protobuf field: repeated discord_protos.users.v1.UserData.ClassificationType classification_types = 1
|
|
263
267
|
*/
|
|
264
268
|
classificationTypes: UserData_ClassificationType[];
|
|
269
|
+
/**
|
|
270
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp banned_at = 2
|
|
271
|
+
*/
|
|
272
|
+
bannedAt?: Timestamp;
|
|
265
273
|
}
|
|
266
274
|
/**
|
|
267
275
|
* @generated from protobuf message discord_protos.users.v1.UserData.SafetyState
|
|
@@ -3341,7 +3341,8 @@ class UserData_TempBannedState$Type extends runtime_4.MessageType {
|
|
|
3341
3341
|
constructor() {
|
|
3342
3342
|
super("discord_protos.users.v1.UserData.TempBannedState", [
|
|
3343
3343
|
{ no: 1, name: "banned_until", kind: "message", T: () => timestamp_1.Timestamp },
|
|
3344
|
-
{ no: 2, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.UserData.ClassificationType", UserData_ClassificationType, "CLASSIFICATION_TYPE_"] }
|
|
3344
|
+
{ no: 2, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.UserData.ClassificationType", UserData_ClassificationType, "CLASSIFICATION_TYPE_"] },
|
|
3345
|
+
{ no: 3, name: "banned_at", kind: "message", T: () => timestamp_1.Timestamp }
|
|
3345
3346
|
]);
|
|
3346
3347
|
}
|
|
3347
3348
|
create(value) {
|
|
@@ -3366,6 +3367,9 @@ class UserData_TempBannedState$Type extends runtime_4.MessageType {
|
|
|
3366
3367
|
else
|
|
3367
3368
|
message.classificationTypes.push(reader.int32());
|
|
3368
3369
|
break;
|
|
3370
|
+
case /* optional google.protobuf.Timestamp banned_at */ 3:
|
|
3371
|
+
message.bannedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.bannedAt);
|
|
3372
|
+
break;
|
|
3369
3373
|
default:
|
|
3370
3374
|
let u = options.readUnknownField;
|
|
3371
3375
|
if (u === "throw")
|
|
@@ -3388,6 +3392,9 @@ class UserData_TempBannedState$Type extends runtime_4.MessageType {
|
|
|
3388
3392
|
writer.int32(message.classificationTypes[i]);
|
|
3389
3393
|
writer.join();
|
|
3390
3394
|
}
|
|
3395
|
+
/* optional google.protobuf.Timestamp banned_at = 3; */
|
|
3396
|
+
if (message.bannedAt)
|
|
3397
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.bannedAt, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3391
3398
|
let u = options.writeUnknownFields;
|
|
3392
3399
|
if (u !== false)
|
|
3393
3400
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3402,7 +3409,8 @@ exports.UserData_TempBannedState = new UserData_TempBannedState$Type();
|
|
|
3402
3409
|
class UserData_BannedState$Type extends runtime_4.MessageType {
|
|
3403
3410
|
constructor() {
|
|
3404
3411
|
super("discord_protos.users.v1.UserData.BannedState", [
|
|
3405
|
-
{ no: 1, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.UserData.ClassificationType", UserData_ClassificationType, "CLASSIFICATION_TYPE_"] }
|
|
3412
|
+
{ no: 1, name: "classification_types", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.users.v1.UserData.ClassificationType", UserData_ClassificationType, "CLASSIFICATION_TYPE_"] },
|
|
3413
|
+
{ no: 2, name: "banned_at", kind: "message", T: () => timestamp_1.Timestamp }
|
|
3406
3414
|
]);
|
|
3407
3415
|
}
|
|
3408
3416
|
create(value) {
|
|
@@ -3424,6 +3432,9 @@ class UserData_BannedState$Type extends runtime_4.MessageType {
|
|
|
3424
3432
|
else
|
|
3425
3433
|
message.classificationTypes.push(reader.int32());
|
|
3426
3434
|
break;
|
|
3435
|
+
case /* optional google.protobuf.Timestamp banned_at */ 2:
|
|
3436
|
+
message.bannedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.bannedAt);
|
|
3437
|
+
break;
|
|
3427
3438
|
default:
|
|
3428
3439
|
let u = options.readUnknownField;
|
|
3429
3440
|
if (u === "throw")
|
|
@@ -3443,6 +3454,9 @@ class UserData_BannedState$Type extends runtime_4.MessageType {
|
|
|
3443
3454
|
writer.int32(message.classificationTypes[i]);
|
|
3444
3455
|
writer.join();
|
|
3445
3456
|
}
|
|
3457
|
+
/* optional google.protobuf.Timestamp banned_at = 2; */
|
|
3458
|
+
if (message.bannedAt)
|
|
3459
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.bannedAt, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3446
3460
|
let u = options.writeUnknownFields;
|
|
3447
3461
|
if (u !== false)
|
|
3448
3462
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|