discord-protos 1.2.164 → 1.2.166
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/premium_marketing/v1/PremiumMarketingComponentProperties.proto +4 -0
- package/discord_protos/users/v1/UserData.proto +9 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +16 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +32 -4
- package/dist/discord_protos/users/v1/UserData.d.ts +42 -0
- package/dist/discord_protos/users/v1/UserData.js +101 -2
- package/package.json +1 -1
|
@@ -64,6 +64,7 @@ message PremiumMarketingComponentProperties {
|
|
|
64
64
|
repeated Subtitle hero_art_video_subtitles = 13;
|
|
65
65
|
optional Variant1Storage storage = 14;
|
|
66
66
|
optional Disclaimer disclaimer = 15;
|
|
67
|
+
optional HelpArticle help_article = 18;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
message PremiumTab {
|
|
@@ -82,6 +83,7 @@ message PremiumMarketingComponentProperties {
|
|
|
82
83
|
string body = 3;
|
|
83
84
|
string help_article_id = 4;
|
|
84
85
|
optional MarketingPageBannerButton button = 5;
|
|
86
|
+
optional HelpArticle help_article = 6;
|
|
85
87
|
}
|
|
86
88
|
|
|
87
89
|
message PaymentModalBanner {
|
|
@@ -640,6 +642,7 @@ message PremiumMarketingComponentProperties {
|
|
|
640
642
|
string help_article_id = 4;
|
|
641
643
|
optional CTAButton button = 5;
|
|
642
644
|
DismissibleContent dismissible_content = 6;
|
|
645
|
+
optional HelpArticle help_article = 7;
|
|
643
646
|
}
|
|
644
647
|
|
|
645
648
|
message Gradient {
|
|
@@ -734,6 +737,7 @@ message PremiumMarketingComponentProperties {
|
|
|
734
737
|
optional ThemeAwareAsset asset = 3;
|
|
735
738
|
optional PremiumTabPopoverCTAButton button = 4;
|
|
736
739
|
string help_article_id = 5;
|
|
740
|
+
optional HelpArticle help_article = 6;
|
|
737
741
|
}
|
|
738
742
|
|
|
739
743
|
message Nagbar {
|
|
@@ -810,6 +810,14 @@ message UserData {
|
|
|
810
810
|
repeated Badge badges = 1;
|
|
811
811
|
}
|
|
812
812
|
|
|
813
|
+
message UserCountryData {
|
|
814
|
+
string calculated_country = 1;
|
|
815
|
+
optional google.protobuf.Timestamp last_calculated_at = 2;
|
|
816
|
+
optional google.protobuf.StringValue country_override = 3;
|
|
817
|
+
optional google.protobuf.Timestamp override_set_at = 4;
|
|
818
|
+
map<string, float> country_scores = 5;
|
|
819
|
+
}
|
|
820
|
+
|
|
813
821
|
map<fixed64, LinkedUser> linked_users = 1;
|
|
814
822
|
map<uint32, FeatureLimits> safety_feature_limits = 2;
|
|
815
823
|
map<uint32, SafetyFlag> safety_flags = 3;
|
|
@@ -825,4 +833,5 @@ message UserData {
|
|
|
825
833
|
optional AgeAssuranceData age_assurance_data = 13;
|
|
826
834
|
optional Perks perks = 14;
|
|
827
835
|
optional UserBadges badges = 15;
|
|
836
|
+
optional UserCountryData country_data = 16;
|
|
828
837
|
}
|
|
@@ -283,6 +283,10 @@ export interface PremiumMarketingComponentProperties_AnnouncementModalVariant1Pr
|
|
|
283
283
|
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Disclaimer disclaimer = 15
|
|
284
284
|
*/
|
|
285
285
|
disclaimer?: PremiumMarketingComponentProperties_Disclaimer;
|
|
286
|
+
/**
|
|
287
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 18
|
|
288
|
+
*/
|
|
289
|
+
helpArticle?: PremiumMarketingComponentProperties_HelpArticle;
|
|
286
290
|
}
|
|
287
291
|
/**
|
|
288
292
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PremiumTab
|
|
@@ -334,6 +338,10 @@ export interface PremiumMarketingComponentProperties_MarketingPageBanner {
|
|
|
334
338
|
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton button = 5
|
|
335
339
|
*/
|
|
336
340
|
button?: PremiumMarketingComponentProperties_MarketingPageBannerButton;
|
|
341
|
+
/**
|
|
342
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 6
|
|
343
|
+
*/
|
|
344
|
+
helpArticle?: PremiumMarketingComponentProperties_HelpArticle;
|
|
337
345
|
}
|
|
338
346
|
/**
|
|
339
347
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.PaymentModalBanner
|
|
@@ -393,6 +401,10 @@ export interface PremiumMarketingComponentProperties_MobileBottomSheet {
|
|
|
393
401
|
* @generated from protobuf field: discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.DismissibleContent dismissible_content = 6
|
|
394
402
|
*/
|
|
395
403
|
dismissibleContent: PremiumMarketingComponentProperties_DismissibleContent;
|
|
404
|
+
/**
|
|
405
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 7
|
|
406
|
+
*/
|
|
407
|
+
helpArticle?: PremiumMarketingComponentProperties_HelpArticle;
|
|
396
408
|
}
|
|
397
409
|
/**
|
|
398
410
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Gradient
|
|
@@ -685,6 +697,10 @@ export interface PremiumMarketingComponentProperties_PremiumTabPopover {
|
|
|
685
697
|
* @generated from protobuf field: string help_article_id = 5
|
|
686
698
|
*/
|
|
687
699
|
helpArticleId: string;
|
|
700
|
+
/**
|
|
701
|
+
* @generated from protobuf field: optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 6
|
|
702
|
+
*/
|
|
703
|
+
helpArticle?: PremiumMarketingComponentProperties_HelpArticle;
|
|
688
704
|
}
|
|
689
705
|
/**
|
|
690
706
|
* @generated from protobuf message discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Nagbar
|
|
@@ -2828,7 +2828,8 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
2828
2828
|
{ no: 12, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2829
2829
|
{ no: 13, name: "hero_art_video_subtitles", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.PremiumMarketingComponentProperties_Subtitle },
|
|
2830
2830
|
{ no: 14, name: "storage", kind: "message", T: () => exports.PremiumMarketingComponentProperties_Variant1Storage },
|
|
2831
|
-
{ no: 15, name: "disclaimer", kind: "message", T: () => exports.PremiumMarketingComponentProperties_Disclaimer }
|
|
2831
|
+
{ no: 15, name: "disclaimer", kind: "message", T: () => exports.PremiumMarketingComponentProperties_Disclaimer },
|
|
2832
|
+
{ no: 18, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle }
|
|
2832
2833
|
]);
|
|
2833
2834
|
}
|
|
2834
2835
|
create(value) {
|
|
@@ -2899,6 +2900,9 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
2899
2900
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Disclaimer disclaimer */ 15:
|
|
2900
2901
|
message.disclaimer = exports.PremiumMarketingComponentProperties_Disclaimer.internalBinaryRead(reader, reader.uint32(), options, message.disclaimer);
|
|
2901
2902
|
break;
|
|
2903
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article */ 18:
|
|
2904
|
+
message.helpArticle = exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryRead(reader, reader.uint32(), options, message.helpArticle);
|
|
2905
|
+
break;
|
|
2902
2906
|
default:
|
|
2903
2907
|
let u = options.readUnknownField;
|
|
2904
2908
|
if (u === "throw")
|
|
@@ -2956,6 +2960,9 @@ class PremiumMarketingComponentProperties_AnnouncementModalVariant1Properties$Ty
|
|
|
2956
2960
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.Disclaimer disclaimer = 15; */
|
|
2957
2961
|
if (message.disclaimer)
|
|
2958
2962
|
exports.PremiumMarketingComponentProperties_Disclaimer.internalBinaryWrite(message.disclaimer, writer.tag(15, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2963
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 18; */
|
|
2964
|
+
if (message.helpArticle)
|
|
2965
|
+
exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryWrite(message.helpArticle, writer.tag(18, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2959
2966
|
let u = options.writeUnknownFields;
|
|
2960
2967
|
if (u !== false)
|
|
2961
2968
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3084,7 +3091,8 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3084
3091
|
{ no: 2, name: "header", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3085
3092
|
{ no: 3, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3086
3093
|
{ no: 4, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3087
|
-
{ no: 5, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_MarketingPageBannerButton }
|
|
3094
|
+
{ no: 5, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_MarketingPageBannerButton },
|
|
3095
|
+
{ no: 6, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle }
|
|
3088
3096
|
]);
|
|
3089
3097
|
}
|
|
3090
3098
|
create(value) {
|
|
@@ -3117,6 +3125,9 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3117
3125
|
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton button */ 5:
|
|
3118
3126
|
message.button = exports.PremiumMarketingComponentProperties_MarketingPageBannerButton.internalBinaryRead(reader, reader.uint32(), options, message.button);
|
|
3119
3127
|
break;
|
|
3128
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article */ 6:
|
|
3129
|
+
message.helpArticle = exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryRead(reader, reader.uint32(), options, message.helpArticle);
|
|
3130
|
+
break;
|
|
3120
3131
|
default:
|
|
3121
3132
|
let u = options.readUnknownField;
|
|
3122
3133
|
if (u === "throw")
|
|
@@ -3144,6 +3155,9 @@ class PremiumMarketingComponentProperties_MarketingPageBanner$Type extends runti
|
|
|
3144
3155
|
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButton button = 5; */
|
|
3145
3156
|
if (message.button)
|
|
3146
3157
|
exports.PremiumMarketingComponentProperties_MarketingPageBannerButton.internalBinaryWrite(message.button, writer.tag(5, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3158
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 6; */
|
|
3159
|
+
if (message.helpArticle)
|
|
3160
|
+
exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryWrite(message.helpArticle, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3147
3161
|
let u = options.writeUnknownFields;
|
|
3148
3162
|
if (u !== false)
|
|
3149
3163
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3281,7 +3295,8 @@ class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends runtime
|
|
|
3281
3295
|
{ no: 3, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3282
3296
|
{ no: 4, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3283
3297
|
{ no: 5, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_CTAButton },
|
|
3284
|
-
{ no: 6, name: "dismissible_content", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.DismissibleContent", PremiumMarketingComponentProperties_DismissibleContent, "DISMISSIBLE_CONTENT_"] }
|
|
3298
|
+
{ no: 6, name: "dismissible_content", kind: "enum", T: () => ["discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.DismissibleContent", PremiumMarketingComponentProperties_DismissibleContent, "DISMISSIBLE_CONTENT_"] },
|
|
3299
|
+
{ no: 7, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle }
|
|
3285
3300
|
]);
|
|
3286
3301
|
}
|
|
3287
3302
|
create(value) {
|
|
@@ -3318,6 +3333,9 @@ class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends runtime
|
|
|
3318
3333
|
case /* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.DismissibleContent dismissible_content */ 6:
|
|
3319
3334
|
message.dismissibleContent = reader.int32();
|
|
3320
3335
|
break;
|
|
3336
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article */ 7:
|
|
3337
|
+
message.helpArticle = exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryRead(reader, reader.uint32(), options, message.helpArticle);
|
|
3338
|
+
break;
|
|
3321
3339
|
default:
|
|
3322
3340
|
let u = options.readUnknownField;
|
|
3323
3341
|
if (u === "throw")
|
|
@@ -3348,6 +3366,9 @@ class PremiumMarketingComponentProperties_MobileBottomSheet$Type extends runtime
|
|
|
3348
3366
|
/* discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.DismissibleContent dismissible_content = 6; */
|
|
3349
3367
|
if (message.dismissibleContent !== 0)
|
|
3350
3368
|
writer.tag(6, runtime_1.WireType.Varint).int32(message.dismissibleContent);
|
|
3369
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 7; */
|
|
3370
|
+
if (message.helpArticle)
|
|
3371
|
+
exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryWrite(message.helpArticle, writer.tag(7, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
3351
3372
|
let u = options.writeUnknownFields;
|
|
3352
3373
|
if (u !== false)
|
|
3353
3374
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4202,7 +4223,8 @@ class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime
|
|
|
4202
4223
|
{ no: 2, name: "body", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4203
4224
|
{ no: 3, name: "asset", kind: "message", T: () => exports.PremiumMarketingComponentProperties_ThemeAwareAsset },
|
|
4204
4225
|
{ no: 4, name: "button", kind: "message", T: () => exports.PremiumMarketingComponentProperties_PremiumTabPopoverCTAButton },
|
|
4205
|
-
{ no: 5, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
4226
|
+
{ no: 5, name: "help_article_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4227
|
+
{ no: 6, name: "help_article", kind: "message", T: () => exports.PremiumMarketingComponentProperties_HelpArticle }
|
|
4206
4228
|
]);
|
|
4207
4229
|
}
|
|
4208
4230
|
create(value) {
|
|
@@ -4234,6 +4256,9 @@ class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime
|
|
|
4234
4256
|
case /* string help_article_id */ 5:
|
|
4235
4257
|
message.helpArticleId = reader.string();
|
|
4236
4258
|
break;
|
|
4259
|
+
case /* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article */ 6:
|
|
4260
|
+
message.helpArticle = exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryRead(reader, reader.uint32(), options, message.helpArticle);
|
|
4261
|
+
break;
|
|
4237
4262
|
default:
|
|
4238
4263
|
let u = options.readUnknownField;
|
|
4239
4264
|
if (u === "throw")
|
|
@@ -4261,6 +4286,9 @@ class PremiumMarketingComponentProperties_PremiumTabPopover$Type extends runtime
|
|
|
4261
4286
|
/* string help_article_id = 5; */
|
|
4262
4287
|
if (message.helpArticleId !== "")
|
|
4263
4288
|
writer.tag(5, runtime_1.WireType.LengthDelimited).string(message.helpArticleId);
|
|
4289
|
+
/* optional discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.HelpArticle help_article = 6; */
|
|
4290
|
+
if (message.helpArticle)
|
|
4291
|
+
exports.PremiumMarketingComponentProperties_HelpArticle.internalBinaryWrite(message.helpArticle, writer.tag(6, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4264
4292
|
let u = options.writeUnknownFields;
|
|
4265
4293
|
if (u !== false)
|
|
4266
4294
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -78,6 +78,10 @@ export interface UserData {
|
|
|
78
78
|
* @generated from protobuf field: optional discord_protos.users.v1.UserData.UserBadges badges = 15
|
|
79
79
|
*/
|
|
80
80
|
badges?: UserData_UserBadges;
|
|
81
|
+
/**
|
|
82
|
+
* @generated from protobuf field: optional discord_protos.users.v1.UserData.UserCountryData country_data = 16
|
|
83
|
+
*/
|
|
84
|
+
countryData?: UserData_UserCountryData;
|
|
81
85
|
}
|
|
82
86
|
/**
|
|
83
87
|
* @generated from protobuf message discord_protos.users.v1.UserData.LinkedUser
|
|
@@ -563,6 +567,33 @@ export interface UserData_UserBadges {
|
|
|
563
567
|
*/
|
|
564
568
|
badges: UserData_Badge[];
|
|
565
569
|
}
|
|
570
|
+
/**
|
|
571
|
+
* @generated from protobuf message discord_protos.users.v1.UserData.UserCountryData
|
|
572
|
+
*/
|
|
573
|
+
export interface UserData_UserCountryData {
|
|
574
|
+
/**
|
|
575
|
+
* @generated from protobuf field: string calculated_country = 1
|
|
576
|
+
*/
|
|
577
|
+
calculatedCountry: string;
|
|
578
|
+
/**
|
|
579
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp last_calculated_at = 2
|
|
580
|
+
*/
|
|
581
|
+
lastCalculatedAt?: Timestamp;
|
|
582
|
+
/**
|
|
583
|
+
* @generated from protobuf field: optional google.protobuf.StringValue country_override = 3
|
|
584
|
+
*/
|
|
585
|
+
countryOverride?: StringValue;
|
|
586
|
+
/**
|
|
587
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp override_set_at = 4
|
|
588
|
+
*/
|
|
589
|
+
overrideSetAt?: Timestamp;
|
|
590
|
+
/**
|
|
591
|
+
* @generated from protobuf field: map<string, float> country_scores = 5
|
|
592
|
+
*/
|
|
593
|
+
countryScores: {
|
|
594
|
+
[key: string]: number;
|
|
595
|
+
};
|
|
596
|
+
}
|
|
566
597
|
/**
|
|
567
598
|
* @generated from protobuf enum discord_protos.users.v1.UserData.UserLinkType
|
|
568
599
|
*/
|
|
@@ -3312,4 +3343,15 @@ declare class UserData_UserBadges$Type extends MessageType<UserData_UserBadges>
|
|
|
3312
3343
|
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserBadges
|
|
3313
3344
|
*/
|
|
3314
3345
|
export declare const UserData_UserBadges: UserData_UserBadges$Type;
|
|
3346
|
+
declare class UserData_UserCountryData$Type extends MessageType<UserData_UserCountryData> {
|
|
3347
|
+
constructor();
|
|
3348
|
+
create(value?: PartialMessage<UserData_UserCountryData>): UserData_UserCountryData;
|
|
3349
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserData_UserCountryData): UserData_UserCountryData;
|
|
3350
|
+
private binaryReadMap5;
|
|
3351
|
+
internalBinaryWrite(message: UserData_UserCountryData, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
3352
|
+
}
|
|
3353
|
+
/**
|
|
3354
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserCountryData
|
|
3355
|
+
*/
|
|
3356
|
+
export declare const UserData_UserCountryData: UserData_UserCountryData$Type;
|
|
3315
3357
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserData_UserBadges = exports.UserData_Badge = exports.UserData_AprilFools2026Badge = exports.UserData_BadgeCommon = exports.UserData_Perks = exports.UserData_PerkConfig = exports.UserData_PerkConfigIncreasedGuildLimit = exports.UserData_PerkConfigIncreasedFileUploadSize = exports.UserData_AgeAssuranceData = exports.UserData_RestrictedSchedule = exports.UserData_ScheduleRule = exports.UserData_TimeOfDay = exports.UserData_StoreCountry = exports.UserData_DisplayNameStyles = exports.UserData_PremiumState = exports.UserData_SafetyState = exports.UserData_BannedState = exports.UserData_TempBannedState = exports.UserData_DeferredActionState = exports.UserData_RestrictedState = exports.UserData_NormalState = exports.UserData_UserCollectibles = exports.UserData_UserNameplate = exports.UserData_CrossPlatformRestriction = exports.UserData_UserPrimaryGuild = exports.UserData_QuestMetadata = exports.UserData_SafetyFlag = exports.UserData_FeatureLimits = exports.UserData_RateLimitData = exports.UserData_LinkedUser = exports.UserData = exports.UserData_PerkSource = exports.UserData_AgeAssuranceVendor = exports.UserData_AgeAssuranceMethod = exports.UserData_DayOfWeek = exports.UserData_DisplayNameEffect = exports.UserData_DisplayNameFont = exports.UserData_PremiumSubscriptionGroupRole = exports.UserData_PremiumSubscriptionType = exports.UserData_PremiumSource = exports.UserData_SafetyAnnotations = exports.UserData_SafetyStateReason = exports.UserData_ClassificationType = exports.UserData_UserLinkStatus = exports.UserData_UserLinkType = void 0;
|
|
3
|
+
exports.UserData_UserCountryData = exports.UserData_UserBadges = exports.UserData_Badge = exports.UserData_AprilFools2026Badge = exports.UserData_BadgeCommon = exports.UserData_Perks = exports.UserData_PerkConfig = exports.UserData_PerkConfigIncreasedGuildLimit = exports.UserData_PerkConfigIncreasedFileUploadSize = exports.UserData_AgeAssuranceData = exports.UserData_RestrictedSchedule = exports.UserData_ScheduleRule = exports.UserData_TimeOfDay = exports.UserData_StoreCountry = exports.UserData_DisplayNameStyles = exports.UserData_PremiumState = exports.UserData_SafetyState = exports.UserData_BannedState = exports.UserData_TempBannedState = exports.UserData_DeferredActionState = exports.UserData_RestrictedState = exports.UserData_NormalState = exports.UserData_UserCollectibles = exports.UserData_UserNameplate = exports.UserData_CrossPlatformRestriction = exports.UserData_UserPrimaryGuild = exports.UserData_QuestMetadata = exports.UserData_SafetyFlag = exports.UserData_FeatureLimits = exports.UserData_RateLimitData = exports.UserData_LinkedUser = exports.UserData = exports.UserData_PerkSource = exports.UserData_AgeAssuranceVendor = exports.UserData_AgeAssuranceMethod = exports.UserData_DayOfWeek = exports.UserData_DisplayNameEffect = exports.UserData_DisplayNameFont = exports.UserData_PremiumSubscriptionGroupRole = exports.UserData_PremiumSubscriptionType = exports.UserData_PremiumSource = exports.UserData_SafetyAnnotations = exports.UserData_SafetyStateReason = exports.UserData_ClassificationType = exports.UserData_UserLinkStatus = exports.UserData_UserLinkType = void 0;
|
|
4
4
|
const runtime_1 = require("@protobuf-ts/runtime");
|
|
5
5
|
const runtime_2 = require("@protobuf-ts/runtime");
|
|
6
6
|
const runtime_3 = require("@protobuf-ts/runtime");
|
|
@@ -2475,7 +2475,8 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
2475
2475
|
{ no: 12, name: "restricted_schedule", kind: "message", T: () => exports.UserData_RestrictedSchedule },
|
|
2476
2476
|
{ no: 13, name: "age_assurance_data", kind: "message", T: () => exports.UserData_AgeAssuranceData },
|
|
2477
2477
|
{ no: 14, name: "perks", kind: "message", T: () => exports.UserData_Perks },
|
|
2478
|
-
{ no: 15, name: "badges", kind: "message", T: () => exports.UserData_UserBadges }
|
|
2478
|
+
{ no: 15, name: "badges", kind: "message", T: () => exports.UserData_UserBadges },
|
|
2479
|
+
{ no: 16, name: "country_data", kind: "message", T: () => exports.UserData_UserCountryData }
|
|
2479
2480
|
]);
|
|
2480
2481
|
}
|
|
2481
2482
|
create(value) {
|
|
@@ -2537,6 +2538,9 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
2537
2538
|
case /* optional discord_protos.users.v1.UserData.UserBadges badges */ 15:
|
|
2538
2539
|
message.badges = exports.UserData_UserBadges.internalBinaryRead(reader, reader.uint32(), options, message.badges);
|
|
2539
2540
|
break;
|
|
2541
|
+
case /* optional discord_protos.users.v1.UserData.UserCountryData country_data */ 16:
|
|
2542
|
+
message.countryData = exports.UserData_UserCountryData.internalBinaryRead(reader, reader.uint32(), options, message.countryData);
|
|
2543
|
+
break;
|
|
2540
2544
|
default:
|
|
2541
2545
|
let u = options.readUnknownField;
|
|
2542
2546
|
if (u === "throw")
|
|
@@ -2654,6 +2658,9 @@ class UserData$Type extends runtime_4.MessageType {
|
|
|
2654
2658
|
/* optional discord_protos.users.v1.UserData.UserBadges badges = 15; */
|
|
2655
2659
|
if (message.badges)
|
|
2656
2660
|
exports.UserData_UserBadges.internalBinaryWrite(message.badges, writer.tag(15, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2661
|
+
/* optional discord_protos.users.v1.UserData.UserCountryData country_data = 16; */
|
|
2662
|
+
if (message.countryData)
|
|
2663
|
+
exports.UserData_UserCountryData.internalBinaryWrite(message.countryData, writer.tag(16, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
2657
2664
|
let u = options.writeUnknownFields;
|
|
2658
2665
|
if (u !== false)
|
|
2659
2666
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4516,3 +4523,95 @@ class UserData_UserBadges$Type extends runtime_4.MessageType {
|
|
|
4516
4523
|
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserBadges
|
|
4517
4524
|
*/
|
|
4518
4525
|
exports.UserData_UserBadges = new UserData_UserBadges$Type();
|
|
4526
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4527
|
+
class UserData_UserCountryData$Type extends runtime_4.MessageType {
|
|
4528
|
+
constructor() {
|
|
4529
|
+
super("discord_protos.users.v1.UserData.UserCountryData", [
|
|
4530
|
+
{ no: 1, name: "calculated_country", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
4531
|
+
{ no: 2, name: "last_calculated_at", kind: "message", T: () => timestamp_1.Timestamp },
|
|
4532
|
+
{ no: 3, name: "country_override", kind: "message", T: () => wrappers_1.StringValue },
|
|
4533
|
+
{ no: 4, name: "override_set_at", kind: "message", T: () => timestamp_1.Timestamp },
|
|
4534
|
+
{ no: 5, name: "country_scores", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 2 /*ScalarType.FLOAT*/ } }
|
|
4535
|
+
]);
|
|
4536
|
+
}
|
|
4537
|
+
create(value) {
|
|
4538
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
4539
|
+
message.calculatedCountry = "";
|
|
4540
|
+
message.countryScores = {};
|
|
4541
|
+
if (value !== undefined)
|
|
4542
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
4543
|
+
return message;
|
|
4544
|
+
}
|
|
4545
|
+
internalBinaryRead(reader, length, options, target) {
|
|
4546
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4547
|
+
while (reader.pos < end) {
|
|
4548
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4549
|
+
switch (fieldNo) {
|
|
4550
|
+
case /* string calculated_country */ 1:
|
|
4551
|
+
message.calculatedCountry = reader.string();
|
|
4552
|
+
break;
|
|
4553
|
+
case /* optional google.protobuf.Timestamp last_calculated_at */ 2:
|
|
4554
|
+
message.lastCalculatedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.lastCalculatedAt);
|
|
4555
|
+
break;
|
|
4556
|
+
case /* optional google.protobuf.StringValue country_override */ 3:
|
|
4557
|
+
message.countryOverride = wrappers_1.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.countryOverride);
|
|
4558
|
+
break;
|
|
4559
|
+
case /* optional google.protobuf.Timestamp override_set_at */ 4:
|
|
4560
|
+
message.overrideSetAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.overrideSetAt);
|
|
4561
|
+
break;
|
|
4562
|
+
case /* map<string, float> country_scores */ 5:
|
|
4563
|
+
this.binaryReadMap5(message.countryScores, reader, options);
|
|
4564
|
+
break;
|
|
4565
|
+
default:
|
|
4566
|
+
let u = options.readUnknownField;
|
|
4567
|
+
if (u === "throw")
|
|
4568
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4569
|
+
let d = reader.skip(wireType);
|
|
4570
|
+
if (u !== false)
|
|
4571
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4572
|
+
}
|
|
4573
|
+
}
|
|
4574
|
+
return message;
|
|
4575
|
+
}
|
|
4576
|
+
binaryReadMap5(map, reader, options) {
|
|
4577
|
+
let len = reader.uint32(), end = reader.pos + len, key, val;
|
|
4578
|
+
while (reader.pos < end) {
|
|
4579
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4580
|
+
switch (fieldNo) {
|
|
4581
|
+
case 1:
|
|
4582
|
+
key = reader.string();
|
|
4583
|
+
break;
|
|
4584
|
+
case 2:
|
|
4585
|
+
val = reader.float();
|
|
4586
|
+
break;
|
|
4587
|
+
default: throw new globalThis.Error("unknown map entry field for discord_protos.users.v1.UserData.UserCountryData.country_scores");
|
|
4588
|
+
}
|
|
4589
|
+
}
|
|
4590
|
+
map[key ?? ""] = val ?? 0;
|
|
4591
|
+
}
|
|
4592
|
+
internalBinaryWrite(message, writer, options) {
|
|
4593
|
+
/* string calculated_country = 1; */
|
|
4594
|
+
if (message.calculatedCountry !== "")
|
|
4595
|
+
writer.tag(1, runtime_1.WireType.LengthDelimited).string(message.calculatedCountry);
|
|
4596
|
+
/* optional google.protobuf.Timestamp last_calculated_at = 2; */
|
|
4597
|
+
if (message.lastCalculatedAt)
|
|
4598
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.lastCalculatedAt, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4599
|
+
/* optional google.protobuf.StringValue country_override = 3; */
|
|
4600
|
+
if (message.countryOverride)
|
|
4601
|
+
wrappers_1.StringValue.internalBinaryWrite(message.countryOverride, writer.tag(3, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4602
|
+
/* optional google.protobuf.Timestamp override_set_at = 4; */
|
|
4603
|
+
if (message.overrideSetAt)
|
|
4604
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.overrideSetAt, writer.tag(4, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
4605
|
+
/* map<string, float> country_scores = 5; */
|
|
4606
|
+
for (let k of globalThis.Object.keys(message.countryScores))
|
|
4607
|
+
writer.tag(5, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.LengthDelimited).string(k).tag(2, runtime_1.WireType.Bit32).float(message.countryScores[k]).join();
|
|
4608
|
+
let u = options.writeUnknownFields;
|
|
4609
|
+
if (u !== false)
|
|
4610
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4611
|
+
return writer;
|
|
4612
|
+
}
|
|
4613
|
+
}
|
|
4614
|
+
/**
|
|
4615
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.UserData.UserCountryData
|
|
4616
|
+
*/
|
|
4617
|
+
exports.UserData_UserCountryData = new UserData_UserCountryData$Type();
|