discord-protos 1.2.335 → 1.2.336

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.
@@ -348,6 +348,7 @@ message PreloadedUserSettings {
348
348
  ProfileVisibility profile_visibility = 32;
349
349
  optional google.protobuf.BoolValue hide_friend_request_notes = 33;
350
350
  repeated AdTopic ad_topic_opt_outs = 34;
351
+ optional google.protobuf.BoolValue swp_message_promotion_opted_out = 35;
351
352
  }
352
353
 
353
354
  message DebugSettings {
@@ -711,6 +711,10 @@ message PremiumMarketingComponentProperties {
711
711
  DISMISSIBLE_CONTENT_VIRTUAL_CURRENCY_PROFILE_ONBOARDING_COACHMARK = 830;
712
712
  DISMISSIBLE_CONTENT_ORB_WALLET_PROFILE_INTRODUCTION_COACHMARK = 831;
713
713
  DISMISSIBLE_CONTENT_MOBILE_SHOP_BROWSE_ALL_NITRO_UPSELL = 832;
714
+ DISMISSIBLE_CONTENT_GUILD_SPACE_COACHMARK = 834;
715
+ DISMISSIBLE_CONTENT_GUILD_SPACE_NUX_MODAL = 835;
716
+ DISMISSIBLE_CONTENT_ORB_WALLET_SHOP_CTA_CARD = 836;
717
+ DISMISSIBLE_CONTENT_ORB_WALLET_NITRO_UPSELL_CTA_CARD = 837;
714
718
  }
715
719
 
716
720
  message MobileBottomSheet {
@@ -6,4 +6,6 @@ message Claims {
6
6
  fixed64 user_id = 1;
7
7
  fixed64 issued_at = 2;
8
8
  bool is_staff = 3;
9
+ bytes auth_token_hash = 4;
10
+ fixed64 expires_at = 5;
9
11
  }
@@ -9,6 +9,8 @@ message QosToken {
9
9
 
10
10
  message DerivedQosData {
11
11
  bytes claims = 1;
12
+ bytes signature = 2;
13
+ uint32 key_id = 3;
12
14
  }
13
15
 
14
16
  optional ClientProvidedQosData client_provided = 1;
@@ -952,6 +952,10 @@ export interface PreloadedUserSettings_PrivacySettings {
952
952
  * @generated from protobuf field: repeated discord_protos.discord_users.v1.PreloadedUserSettings.AdTopic ad_topic_opt_outs = 34
953
953
  */
954
954
  adTopicOptOuts: PreloadedUserSettings_AdTopic[];
955
+ /**
956
+ * @generated from protobuf field: optional google.protobuf.BoolValue swp_message_promotion_opted_out = 35
957
+ */
958
+ swpMessagePromotionOptedOut?: BoolValue;
955
959
  }
956
960
  /**
957
961
  * @generated from protobuf message discord_protos.discord_users.v1.PreloadedUserSettings.DebugSettings
@@ -2774,7 +2774,8 @@ class PreloadedUserSettings_PrivacySettings$Type extends runtime_4.MessageType {
2774
2774
  { no: 31, name: "show_local_time", kind: "message", T: () => wrappers_5.BoolValue },
2775
2775
  { no: 32, name: "profile_visibility", kind: "enum", T: () => ["discord_protos.discord_users.v1.PreloadedUserSettings.ProfileVisibility", PreloadedUserSettings_ProfileVisibility, "PROFILE_VISIBILITY_"] },
2776
2776
  { no: 33, name: "hide_friend_request_notes", kind: "message", T: () => wrappers_5.BoolValue },
2777
- { no: 34, name: "ad_topic_opt_outs", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.discord_users.v1.PreloadedUserSettings.AdTopic", PreloadedUserSettings_AdTopic, "AD_TOPIC_"] }
2777
+ { no: 34, name: "ad_topic_opt_outs", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.discord_users.v1.PreloadedUserSettings.AdTopic", PreloadedUserSettings_AdTopic, "AD_TOPIC_"] },
2778
+ { no: 35, name: "swp_message_promotion_opted_out", kind: "message", T: () => wrappers_5.BoolValue }
2778
2779
  ]);
2779
2780
  }
2780
2781
  create(value) {
@@ -2916,6 +2917,9 @@ class PreloadedUserSettings_PrivacySettings$Type extends runtime_4.MessageType {
2916
2917
  else
2917
2918
  message.adTopicOptOuts.push(reader.int32());
2918
2919
  break;
2920
+ case /* optional google.protobuf.BoolValue swp_message_promotion_opted_out */ 35:
2921
+ message.swpMessagePromotionOptedOut = wrappers_5.BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.swpMessagePromotionOptedOut);
2922
+ break;
2919
2923
  default:
2920
2924
  let u = options.readUnknownField;
2921
2925
  if (u === "throw")
@@ -3044,6 +3048,9 @@ class PreloadedUserSettings_PrivacySettings$Type extends runtime_4.MessageType {
3044
3048
  writer.int32(message.adTopicOptOuts[i]);
3045
3049
  writer.join();
3046
3050
  }
3051
+ /* optional google.protobuf.BoolValue swp_message_promotion_opted_out = 35; */
3052
+ if (message.swpMessagePromotionOptedOut)
3053
+ wrappers_5.BoolValue.internalBinaryWrite(message.swpMessagePromotionOptedOut, writer.tag(35, runtime_1.WireType.LengthDelimited).fork(), options).join();
3047
3054
  let u = options.writeUnknownFields;
3048
3055
  if (u !== false)
3049
3056
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -3605,7 +3605,23 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
3605
3605
  /**
3606
3606
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_MOBILE_SHOP_BROWSE_ALL_NITRO_UPSELL = 832;
3607
3607
  */
3608
- MOBILE_SHOP_BROWSE_ALL_NITRO_UPSELL = 832
3608
+ MOBILE_SHOP_BROWSE_ALL_NITRO_UPSELL = 832,
3609
+ /**
3610
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_SPACE_COACHMARK = 834;
3611
+ */
3612
+ GUILD_SPACE_COACHMARK = 834,
3613
+ /**
3614
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_SPACE_NUX_MODAL = 835;
3615
+ */
3616
+ GUILD_SPACE_NUX_MODAL = 835,
3617
+ /**
3618
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_ORB_WALLET_SHOP_CTA_CARD = 836;
3619
+ */
3620
+ ORB_WALLET_SHOP_CTA_CARD = 836,
3621
+ /**
3622
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_ORB_WALLET_NITRO_UPSELL_CTA_CARD = 837;
3623
+ */
3624
+ ORB_WALLET_NITRO_UPSELL_CTA_CARD = 837
3609
3625
  }
3610
3626
  /**
3611
3627
  * @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
@@ -2419,6 +2419,22 @@ var PremiumMarketingComponentProperties_DismissibleContent;
2419
2419
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_MOBILE_SHOP_BROWSE_ALL_NITRO_UPSELL = 832;
2420
2420
  */
2421
2421
  PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["MOBILE_SHOP_BROWSE_ALL_NITRO_UPSELL"] = 832] = "MOBILE_SHOP_BROWSE_ALL_NITRO_UPSELL";
2422
+ /**
2423
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_SPACE_COACHMARK = 834;
2424
+ */
2425
+ PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["GUILD_SPACE_COACHMARK"] = 834] = "GUILD_SPACE_COACHMARK";
2426
+ /**
2427
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_SPACE_NUX_MODAL = 835;
2428
+ */
2429
+ PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["GUILD_SPACE_NUX_MODAL"] = 835] = "GUILD_SPACE_NUX_MODAL";
2430
+ /**
2431
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_ORB_WALLET_SHOP_CTA_CARD = 836;
2432
+ */
2433
+ PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["ORB_WALLET_SHOP_CTA_CARD"] = 836] = "ORB_WALLET_SHOP_CTA_CARD";
2434
+ /**
2435
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_ORB_WALLET_NITRO_UPSELL_CTA_CARD = 837;
2436
+ */
2437
+ PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["ORB_WALLET_NITRO_UPSELL_CTA_CARD"] = 837] = "ORB_WALLET_NITRO_UPSELL_CTA_CARD";
2422
2438
  })(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
2423
2439
  /**
2424
2440
  * @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
@@ -20,6 +20,14 @@ export interface Claims {
20
20
  * @generated from protobuf field: bool is_staff = 3
21
21
  */
22
22
  isStaff: boolean;
23
+ /**
24
+ * @generated from protobuf field: bytes auth_token_hash = 4
25
+ */
26
+ authTokenHash: Uint8Array;
27
+ /**
28
+ * @generated from protobuf field: fixed64 expires_at = 5
29
+ */
30
+ expiresAt: bigint;
23
31
  }
24
32
  declare class Claims$Type extends MessageType<Claims> {
25
33
  constructor();
@@ -11,7 +11,9 @@ class Claims$Type extends runtime_4.MessageType {
11
11
  super("discord_protos.qos_token.v1.Claims", [
12
12
  { no: 1, name: "user_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
13
13
  { no: 2, name: "issued_at", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
14
- { no: 3, name: "is_staff", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
14
+ { no: 3, name: "is_staff", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
15
+ { no: 4, name: "auth_token_hash", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
16
+ { no: 5, name: "expires_at", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }
15
17
  ]);
16
18
  }
17
19
  create(value) {
@@ -19,6 +21,8 @@ class Claims$Type extends runtime_4.MessageType {
19
21
  message.userId = 0n;
20
22
  message.issuedAt = 0n;
21
23
  message.isStaff = false;
24
+ message.authTokenHash = new Uint8Array(0);
25
+ message.expiresAt = 0n;
22
26
  if (value !== undefined)
23
27
  (0, runtime_3.reflectionMergePartial)(this, message, value);
24
28
  return message;
@@ -37,6 +41,12 @@ class Claims$Type extends runtime_4.MessageType {
37
41
  case /* bool is_staff */ 3:
38
42
  message.isStaff = reader.bool();
39
43
  break;
44
+ case /* bytes auth_token_hash */ 4:
45
+ message.authTokenHash = reader.bytes();
46
+ break;
47
+ case /* fixed64 expires_at */ 5:
48
+ message.expiresAt = reader.fixed64().toBigInt();
49
+ break;
40
50
  default:
41
51
  let u = options.readUnknownField;
42
52
  if (u === "throw")
@@ -58,6 +68,12 @@ class Claims$Type extends runtime_4.MessageType {
58
68
  /* bool is_staff = 3; */
59
69
  if (message.isStaff !== false)
60
70
  writer.tag(3, runtime_1.WireType.Varint).bool(message.isStaff);
71
+ /* bytes auth_token_hash = 4; */
72
+ if (message.authTokenHash.length)
73
+ writer.tag(4, runtime_1.WireType.LengthDelimited).bytes(message.authTokenHash);
74
+ /* fixed64 expires_at = 5; */
75
+ if (message.expiresAt !== 0n)
76
+ writer.tag(5, runtime_1.WireType.Bit64).fixed64(message.expiresAt);
61
77
  let u = options.writeUnknownFields;
62
78
  if (u !== false)
63
79
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -34,6 +34,14 @@ export interface QosToken_DerivedQosData {
34
34
  * @generated from protobuf field: bytes claims = 1
35
35
  */
36
36
  claims: Uint8Array;
37
+ /**
38
+ * @generated from protobuf field: bytes signature = 2
39
+ */
40
+ signature: Uint8Array;
41
+ /**
42
+ * @generated from protobuf field: uint32 key_id = 3
43
+ */
44
+ keyId: number;
37
45
  }
38
46
  declare class QosToken$Type extends MessageType<QosToken> {
39
47
  constructor();
@@ -109,12 +109,16 @@ exports.QosToken_ClientProvidedQosData = new QosToken_ClientProvidedQosData$Type
109
109
  class QosToken_DerivedQosData$Type extends runtime_4.MessageType {
110
110
  constructor() {
111
111
  super("discord_protos.qos_token.v1.QosToken.DerivedQosData", [
112
- { no: 1, name: "claims", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
112
+ { no: 1, name: "claims", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
113
+ { no: 2, name: "signature", kind: "scalar", T: 12 /*ScalarType.BYTES*/ },
114
+ { no: 3, name: "key_id", kind: "scalar", T: 13 /*ScalarType.UINT32*/ }
113
115
  ]);
114
116
  }
115
117
  create(value) {
116
118
  const message = globalThis.Object.create((this.messagePrototype));
117
119
  message.claims = new Uint8Array(0);
120
+ message.signature = new Uint8Array(0);
121
+ message.keyId = 0;
118
122
  if (value !== undefined)
119
123
  (0, runtime_3.reflectionMergePartial)(this, message, value);
120
124
  return message;
@@ -127,6 +131,12 @@ class QosToken_DerivedQosData$Type extends runtime_4.MessageType {
127
131
  case /* bytes claims */ 1:
128
132
  message.claims = reader.bytes();
129
133
  break;
134
+ case /* bytes signature */ 2:
135
+ message.signature = reader.bytes();
136
+ break;
137
+ case /* uint32 key_id */ 3:
138
+ message.keyId = reader.uint32();
139
+ break;
130
140
  default:
131
141
  let u = options.readUnknownField;
132
142
  if (u === "throw")
@@ -142,6 +152,12 @@ class QosToken_DerivedQosData$Type extends runtime_4.MessageType {
142
152
  /* bytes claims = 1; */
143
153
  if (message.claims.length)
144
154
  writer.tag(1, runtime_1.WireType.LengthDelimited).bytes(message.claims);
155
+ /* bytes signature = 2; */
156
+ if (message.signature.length)
157
+ writer.tag(2, runtime_1.WireType.LengthDelimited).bytes(message.signature);
158
+ /* uint32 key_id = 3; */
159
+ if (message.keyId !== 0)
160
+ writer.tag(3, runtime_1.WireType.Varint).uint32(message.keyId);
145
161
  let u = options.writeUnknownFields;
146
162
  if (u !== false)
147
163
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-protos",
3
- "version": "1.2.335",
3
+ "version": "1.2.336",
4
4
  "description": "A parser for Discord's protobufs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",