discord-protos 1.2.165 → 1.2.167

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.
@@ -633,6 +633,7 @@ message PremiumMarketingComponentProperties {
633
633
  DISMISSIBLE_CONTENT_RIOT_CONNECTION_DEPRECATION_DISABLE = 735;
634
634
  DISMISSIBLE_CONTENT_RIOT_CONNECTION_DEPRECATION_ADMIN = 736;
635
635
  DISMISSIBLE_CONTENT_RIOT_CONNECTION_DEPRECATION_ADMIN_DISABLE = 737;
636
+ DISMISSIBLE_CONTENT_CROISSANT_REHEAT_MOMENT = 738;
636
637
  }
637
638
 
638
639
  message MobileBottomSheet {
@@ -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
  }
@@ -2895,7 +2895,11 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
2895
2895
  /**
2896
2896
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_RIOT_CONNECTION_DEPRECATION_ADMIN_DISABLE = 737;
2897
2897
  */
2898
- RIOT_CONNECTION_DEPRECATION_ADMIN_DISABLE = 737
2898
+ RIOT_CONNECTION_DEPRECATION_ADMIN_DISABLE = 737,
2899
+ /**
2900
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_CROISSANT_REHEAT_MOMENT = 738;
2901
+ */
2902
+ CROISSANT_REHEAT_MOMENT = 738
2899
2903
  }
2900
2904
  declare class PremiumMarketingComponentProperties$Type extends MessageType<PremiumMarketingComponentProperties> {
2901
2905
  constructor();
@@ -2184,6 +2184,10 @@ var PremiumMarketingComponentProperties_DismissibleContent;
2184
2184
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_RIOT_CONNECTION_DEPRECATION_ADMIN_DISABLE = 737;
2185
2185
  */
2186
2186
  PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["RIOT_CONNECTION_DEPRECATION_ADMIN_DISABLE"] = 737] = "RIOT_CONNECTION_DEPRECATION_ADMIN_DISABLE";
2187
+ /**
2188
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_CROISSANT_REHEAT_MOMENT = 738;
2189
+ */
2190
+ PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CROISSANT_REHEAT_MOMENT"] = 738] = "CROISSANT_REHEAT_MOMENT";
2187
2191
  })(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
2188
2192
  // @generated message type with reflection information, may provide speed optimized methods
2189
2193
  class PremiumMarketingComponentProperties$Type extends runtime_4.MessageType {
@@ -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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-protos",
3
- "version": "1.2.165",
3
+ "version": "1.2.167",
4
4
  "description": "A parser for Discord's protobufs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",