discord-protos 1.2.201 → 1.2.203

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.
@@ -0,0 +1,8 @@
1
+ syntax = "proto3";
2
+
3
+ package discord_protos.common.v1;
4
+
5
+ message LocalizedSnowflake {
6
+ fixed64 default = 1;
7
+ map<string, fixed64> localizations = 2;
8
+ }
@@ -314,6 +314,7 @@ message Experiment {
314
314
  UserIP user_ip = 28;
315
315
  InstallationIds installation_ids = 29;
316
316
  }
317
+ bool negate = 30;
317
318
  }
318
319
 
319
320
  message Override {
@@ -271,6 +271,7 @@ message PreloadedUserSettings {
271
271
  optional google.protobuf.BoolValue enable_upcoming_server_event_notifications = 22;
272
272
  optional google.protobuf.BoolValue enable_screen_downtime_schedule_notifications = 23;
273
273
  optional google.protobuf.BoolValue notify_friends_on_profile_update = 24;
274
+ optional google.protobuf.BoolValue notify_friends_on_come_online = 25;
274
275
  }
275
276
 
276
277
  enum GuildActivityStatusRestrictionDefault {
@@ -3,12 +3,20 @@ syntax = "proto3";
3
3
  package discord_protos.premium_marketing.v1;
4
4
 
5
5
  message PremiumMarketingComponentProperties {
6
+ message LocalizedString {
7
+ string default = 1;
8
+ map<string, string> localizations = 2;
9
+ }
10
+
6
11
  message FeatureCard {
7
12
  string header = 1;
8
13
  string pill = 2;
9
14
  string body = 3;
10
15
  string image_link = 4;
11
16
  string image_link_light_theme = 5;
17
+ optional LocalizedString header_localized = 6;
18
+ optional LocalizedString pill_localized = 7;
19
+ optional LocalizedString body_localized = 8;
12
20
  }
13
21
 
14
22
  enum ButtonAction {
@@ -25,6 +33,7 @@ message PremiumMarketingComponentProperties {
25
33
  string copy = 1;
26
34
  ButtonAction button_action = 2;
27
35
  string deeplink_section = 3;
36
+ optional LocalizedString copy_localized = 4;
28
37
  }
29
38
 
30
39
  message Subtitle {
@@ -42,11 +51,13 @@ message PremiumMarketingComponentProperties {
42
51
  message HelpArticle {
43
52
  string id = 1;
44
53
  string link_text = 2;
54
+ optional LocalizedString link_text_localized = 3;
45
55
  }
46
56
 
47
57
  message Disclaimer {
48
58
  string disclaimer_text = 1;
49
59
  optional HelpArticle disclaimer_help_article = 2;
60
+ optional LocalizedString disclaimer_text_localized = 3;
50
61
  }
51
62
 
52
63
  message AnnouncementModalVariant1Properties {
@@ -64,6 +75,9 @@ message PremiumMarketingComponentProperties {
64
75
  optional Variant1Storage storage = 14;
65
76
  optional Disclaimer disclaimer = 15;
66
77
  optional HelpArticle help_article = 18;
78
+ optional LocalizedString header_localized = 19;
79
+ optional LocalizedString subheader_localized = 20;
80
+ optional LocalizedString modal_top_pill_localized = 21;
67
81
  string dismiss_key = 7;
68
82
  string body = 12;
69
83
  }
@@ -73,12 +87,15 @@ message PremiumMarketingComponentProperties {
73
87
  string acknowledged_badge_label = 2;
74
88
  bool show_hover_gradient = 3;
75
89
  string deeplink_section = 4;
90
+ optional LocalizedString badge_label_localized = 5;
91
+ optional LocalizedString acknowledged_badge_label_localized = 6;
76
92
  }
77
93
 
78
94
  message MarketingPageBannerButton {
79
95
  string copy = 1;
80
96
  ButtonAction button_action = 2;
81
97
  string deeplink_section = 3;
98
+ optional LocalizedString copy_localized = 4;
82
99
  }
83
100
 
84
101
  message MarketingPageBanner {
@@ -88,18 +105,23 @@ message PremiumMarketingComponentProperties {
88
105
  string help_article_id = 4;
89
106
  optional MarketingPageBannerButton button = 5;
90
107
  optional HelpArticle help_article = 6;
108
+ optional LocalizedString header_localized = 7;
109
+ optional LocalizedString body_localized = 8;
91
110
  }
92
111
 
93
112
  message PaymentModalBanner {
94
113
  string asset_url = 1;
95
114
  string header = 2;
96
115
  string body = 3;
116
+ optional LocalizedString header_localized = 4;
117
+ optional LocalizedString body_localized = 5;
97
118
  }
98
119
 
99
120
  message CTAButton {
100
121
  string copy = 1;
101
122
  ButtonAction button_action = 2;
102
123
  string deeplink_section = 3;
124
+ optional LocalizedString copy_localized = 4;
103
125
  }
104
126
 
105
127
  enum DismissibleContent {
@@ -657,6 +679,7 @@ message PremiumMarketingComponentProperties {
657
679
  DISMISSIBLE_CONTENT_GUILD_SETTINGS_GUILD_THEME_NEW_BADGE = 755;
658
680
  DISMISSIBLE_CONTENT_XBOX_PERKS_RECONNECT_UPSELL = 756;
659
681
  DISMISSIBLE_CONTENT_STEELSERIES_LOGITECH_REHEAT = 757;
682
+ DISMISSIBLE_CONTENT_REFERRAL_PROGRAM_ENTRYPOINT_NITRO_BUTTON_NOTIFICATION = 758;
660
683
  }
661
684
 
662
685
  message MobileBottomSheet {
@@ -667,6 +690,8 @@ message PremiumMarketingComponentProperties {
667
690
  optional CTAButton button = 5;
668
691
  DismissibleContent dismissible_content = 6;
669
692
  optional HelpArticle help_article = 7;
693
+ optional LocalizedString header_localized = 8;
694
+ optional LocalizedString body_localized = 9;
670
695
  }
671
696
 
672
697
  message Gradient {
@@ -693,6 +718,8 @@ message PremiumMarketingComponentProperties {
693
718
  string body = 2;
694
719
  string asset_url = 3;
695
720
  optional ThemeAwareAsset asset = 4;
721
+ optional LocalizedString header_localized = 5;
722
+ optional LocalizedString body_localized = 6;
696
723
  }
697
724
 
698
725
  message GiftPlanSelectionCardBanner {
@@ -708,6 +735,9 @@ message PremiumMarketingComponentProperties {
708
735
  optional ThemeAwareAsset background_asset = 10;
709
736
  optional ThemeAwareAsset card_asset = 11;
710
737
  optional ThemeAwareAsset mobile_banner_asset = 12;
738
+ optional LocalizedString header_localized = 13;
739
+ optional LocalizedString desktop_body_localized = 14;
740
+ optional LocalizedString mobile_body_localized = 15;
711
741
  }
712
742
 
713
743
  enum AssetVariant {
@@ -726,6 +756,8 @@ message PremiumMarketingComponentProperties {
726
756
  optional ThemeAwareAsset background_asset = 7;
727
757
  optional ThemeAwareAsset mobile_background_asset = 8;
728
758
  AssetVariant asset_variant = 9;
759
+ optional LocalizedString desktop_body_localized = 10;
760
+ optional LocalizedString mobile_body_localized = 11;
729
761
  }
730
762
 
731
763
  message BillingSettingsNitroGiftBanner {
@@ -738,10 +770,14 @@ message PremiumMarketingComponentProperties {
738
770
  string additional_terms = 7;
739
771
  optional ThemeAwareAsset asset = 8;
740
772
  optional ThemeAwareAsset background_asset = 9;
773
+ optional LocalizedString header_localized = 10;
774
+ optional LocalizedString body_localized = 11;
775
+ optional LocalizedString additional_terms_localized = 12;
741
776
  }
742
777
 
743
778
  message GiftReminderNagbar {
744
779
  string body = 1;
780
+ optional LocalizedString body_localized = 2;
745
781
  }
746
782
 
747
783
  message GiftReminderCoachmark {
@@ -749,18 +785,23 @@ message PremiumMarketingComponentProperties {
749
785
  string body = 2;
750
786
  string asset_url = 3;
751
787
  optional ThemeAwareAsset asset = 4;
788
+ optional LocalizedString header_localized = 5;
789
+ optional LocalizedString body_localized = 6;
752
790
  }
753
791
 
754
792
  message PremiumTabTooltip {
755
793
  string header = 1;
756
794
  string body = 2;
757
795
  optional ThemeAwareAsset asset = 3;
796
+ optional LocalizedString header_localized = 4;
797
+ optional LocalizedString body_localized = 5;
758
798
  }
759
799
 
760
800
  message PremiumTabPopoverCTAButton {
761
801
  string copy = 1;
762
802
  ButtonAction button_action = 2;
763
803
  string deeplink_section = 3;
804
+ optional LocalizedString copy_localized = 4;
764
805
  }
765
806
 
766
807
  message PremiumTabPopover {
@@ -770,6 +811,8 @@ message PremiumMarketingComponentProperties {
770
811
  optional PremiumTabPopoverCTAButton button = 4;
771
812
  string help_article_id = 5;
772
813
  optional HelpArticle help_article = 6;
814
+ optional LocalizedString header_localized = 7;
815
+ optional LocalizedString body_localized = 8;
773
816
  }
774
817
 
775
818
  message Nagbar {
@@ -778,6 +821,8 @@ message PremiumMarketingComponentProperties {
778
821
  ButtonAction cta_action = 3;
779
822
  string deeplink_section = 4;
780
823
  optional HelpArticle help_article = 5;
824
+ optional LocalizedString body_localized = 6;
825
+ optional LocalizedString cta_label_localized = 7;
781
826
  }
782
827
 
783
828
  string content_identifier = 3;
@@ -0,0 +1,33 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
3
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
4
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
5
+ import type { PartialMessage } from "@protobuf-ts/runtime";
6
+ import { MessageType } from "@protobuf-ts/runtime";
7
+ /**
8
+ * @generated from protobuf message discord_protos.common.v1.LocalizedSnowflake
9
+ */
10
+ export interface LocalizedSnowflake {
11
+ /**
12
+ * @generated from protobuf field: fixed64 default = 1
13
+ */
14
+ default: bigint;
15
+ /**
16
+ * @generated from protobuf field: map<string, fixed64> localizations = 2
17
+ */
18
+ localizations: {
19
+ [key: string]: bigint;
20
+ };
21
+ }
22
+ declare class LocalizedSnowflake$Type extends MessageType<LocalizedSnowflake> {
23
+ constructor();
24
+ create(value?: PartialMessage<LocalizedSnowflake>): LocalizedSnowflake;
25
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: LocalizedSnowflake): LocalizedSnowflake;
26
+ private binaryReadMap2;
27
+ internalBinaryWrite(message: LocalizedSnowflake, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
28
+ }
29
+ /**
30
+ * @generated MessageType for protobuf message discord_protos.common.v1.LocalizedSnowflake
31
+ */
32
+ export declare const LocalizedSnowflake: LocalizedSnowflake$Type;
33
+ export {};
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LocalizedSnowflake = void 0;
4
+ const runtime_1 = require("@protobuf-ts/runtime");
5
+ const runtime_2 = require("@protobuf-ts/runtime");
6
+ const runtime_3 = require("@protobuf-ts/runtime");
7
+ const runtime_4 = require("@protobuf-ts/runtime");
8
+ // @generated message type with reflection information, may provide speed optimized methods
9
+ class LocalizedSnowflake$Type extends runtime_4.MessageType {
10
+ constructor() {
11
+ super("discord_protos.common.v1.LocalizedSnowflake", [
12
+ { no: 1, name: "default", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
13
+ { no: 2, name: "localizations", kind: "map", K: 9 /*ScalarType.STRING*/, V: { kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ } }
14
+ ]);
15
+ }
16
+ create(value) {
17
+ const message = globalThis.Object.create((this.messagePrototype));
18
+ message.default = 0n;
19
+ message.localizations = {};
20
+ if (value !== undefined)
21
+ (0, runtime_3.reflectionMergePartial)(this, message, value);
22
+ return message;
23
+ }
24
+ internalBinaryRead(reader, length, options, target) {
25
+ let message = target ?? this.create(), end = reader.pos + length;
26
+ while (reader.pos < end) {
27
+ let [fieldNo, wireType] = reader.tag();
28
+ switch (fieldNo) {
29
+ case /* fixed64 default */ 1:
30
+ message.default = reader.fixed64().toBigInt();
31
+ break;
32
+ case /* map<string, fixed64> localizations */ 2:
33
+ this.binaryReadMap2(message.localizations, reader, options);
34
+ break;
35
+ default:
36
+ let u = options.readUnknownField;
37
+ if (u === "throw")
38
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
39
+ let d = reader.skip(wireType);
40
+ if (u !== false)
41
+ (u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
42
+ }
43
+ }
44
+ return message;
45
+ }
46
+ binaryReadMap2(map, reader, options) {
47
+ let len = reader.uint32(), end = reader.pos + len, key, val;
48
+ while (reader.pos < end) {
49
+ let [fieldNo, wireType] = reader.tag();
50
+ switch (fieldNo) {
51
+ case 1:
52
+ key = reader.string();
53
+ break;
54
+ case 2:
55
+ val = reader.fixed64().toBigInt();
56
+ break;
57
+ default: throw new globalThis.Error("unknown map entry field for discord_protos.common.v1.LocalizedSnowflake.localizations");
58
+ }
59
+ }
60
+ map[key ?? ""] = val ?? 0n;
61
+ }
62
+ internalBinaryWrite(message, writer, options) {
63
+ /* fixed64 default = 1; */
64
+ if (message.default !== 0n)
65
+ writer.tag(1, runtime_1.WireType.Bit64).fixed64(message.default);
66
+ /* map<string, fixed64> localizations = 2; */
67
+ for (let k of globalThis.Object.keys(message.localizations))
68
+ writer.tag(2, runtime_1.WireType.LengthDelimited).fork().tag(1, runtime_1.WireType.LengthDelimited).string(k).tag(2, runtime_1.WireType.Bit64).fixed64(message.localizations[k]).join();
69
+ let u = options.writeUnknownFields;
70
+ if (u !== false)
71
+ (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
72
+ return writer;
73
+ }
74
+ }
75
+ /**
76
+ * @generated MessageType for protobuf message discord_protos.common.v1.LocalizedSnowflake
77
+ */
78
+ exports.LocalizedSnowflake = new LocalizedSnowflake$Type();
@@ -889,6 +889,10 @@ export interface Experiment_Filter {
889
889
  } | {
890
890
  oneofKind: undefined;
891
891
  };
892
+ /**
893
+ * @generated from protobuf field: bool negate = 30
894
+ */
895
+ negate: boolean;
892
896
  }
893
897
  /**
894
898
  * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Override
@@ -2946,12 +2946,14 @@ class Experiment_Filter$Type extends runtime_4.MessageType {
2946
2946
  { no: 26, name: "guild_has_feature", kind: "message", oneof: "filter", T: () => exports.Experiment_GuildHasFeature },
2947
2947
  { no: 27, name: "user_location", kind: "message", oneof: "filter", T: () => exports.Experiment_UserLocation },
2948
2948
  { no: 28, name: "user_ip", kind: "message", oneof: "filter", T: () => exports.Experiment_UserIP },
2949
- { no: 29, name: "installation_ids", kind: "message", oneof: "filter", T: () => exports.Experiment_InstallationIds }
2949
+ { no: 29, name: "installation_ids", kind: "message", oneof: "filter", T: () => exports.Experiment_InstallationIds },
2950
+ { no: 30, name: "negate", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
2950
2951
  ]);
2951
2952
  }
2952
2953
  create(value) {
2953
2954
  const message = globalThis.Object.create((this.messagePrototype));
2954
2955
  message.filter = { oneofKind: undefined };
2956
+ message.negate = false;
2955
2957
  if (value !== undefined)
2956
2958
  (0, runtime_3.reflectionMergePartial)(this, message, value);
2957
2959
  return message;
@@ -3117,6 +3119,9 @@ class Experiment_Filter$Type extends runtime_4.MessageType {
3117
3119
  installationIds: exports.Experiment_InstallationIds.internalBinaryRead(reader, reader.uint32(), options, message.filter.installationIds)
3118
3120
  };
3119
3121
  break;
3122
+ case /* bool negate */ 30:
3123
+ message.negate = reader.bool();
3124
+ break;
3120
3125
  default:
3121
3126
  let u = options.readUnknownField;
3122
3127
  if (u === "throw")
@@ -3207,6 +3212,9 @@ class Experiment_Filter$Type extends runtime_4.MessageType {
3207
3212
  /* discord_protos.discord_experimentation.v1.Experiment.InstallationIds installation_ids = 29; */
3208
3213
  if (message.filter.oneofKind === "installationIds")
3209
3214
  exports.Experiment_InstallationIds.internalBinaryWrite(message.filter.installationIds, writer.tag(29, runtime_2.WireType.LengthDelimited).fork(), options).join();
3215
+ /* bool negate = 30; */
3216
+ if (message.negate !== false)
3217
+ writer.tag(30, runtime_2.WireType.Varint).bool(message.negate);
3210
3218
  let u = options.writeUnknownFields;
3211
3219
  if (u !== false)
3212
3220
  (u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -799,6 +799,10 @@ export interface PreloadedUserSettings_NotificationSettings {
799
799
  * @generated from protobuf field: optional google.protobuf.BoolValue notify_friends_on_profile_update = 24
800
800
  */
801
801
  notifyFriendsOnProfileUpdate?: BoolValue;
802
+ /**
803
+ * @generated from protobuf field: optional google.protobuf.BoolValue notify_friends_on_come_online = 25
804
+ */
805
+ notifyFriendsOnComeOnline?: BoolValue;
802
806
  }
803
807
  /**
804
808
  * @generated from protobuf message discord_protos.discord_users.v1.PreloadedUserSettings.PrivacySettings
@@ -2500,7 +2500,8 @@ class PreloadedUserSettings_NotificationSettings$Type extends runtime_4.MessageT
2500
2500
  { no: 21, name: "enable_friend_gaming_activity_notifications", kind: "message", T: () => wrappers_5.BoolValue },
2501
2501
  { no: 22, name: "enable_upcoming_server_event_notifications", kind: "message", T: () => wrappers_5.BoolValue },
2502
2502
  { no: 23, name: "enable_screen_downtime_schedule_notifications", kind: "message", T: () => wrappers_5.BoolValue },
2503
- { no: 24, name: "notify_friends_on_profile_update", kind: "message", T: () => wrappers_5.BoolValue }
2503
+ { no: 24, name: "notify_friends_on_profile_update", kind: "message", T: () => wrappers_5.BoolValue },
2504
+ { no: 25, name: "notify_friends_on_come_online", kind: "message", T: () => wrappers_5.BoolValue }
2504
2505
  ]);
2505
2506
  }
2506
2507
  create(value) {
@@ -2591,6 +2592,9 @@ class PreloadedUserSettings_NotificationSettings$Type extends runtime_4.MessageT
2591
2592
  case /* optional google.protobuf.BoolValue notify_friends_on_profile_update */ 24:
2592
2593
  message.notifyFriendsOnProfileUpdate = wrappers_5.BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.notifyFriendsOnProfileUpdate);
2593
2594
  break;
2595
+ case /* optional google.protobuf.BoolValue notify_friends_on_come_online */ 25:
2596
+ message.notifyFriendsOnComeOnline = wrappers_5.BoolValue.internalBinaryRead(reader, reader.uint32(), options, message.notifyFriendsOnComeOnline);
2597
+ break;
2594
2598
  default:
2595
2599
  let u = options.readUnknownField;
2596
2600
  if (u === "throw")
@@ -2675,6 +2679,9 @@ class PreloadedUserSettings_NotificationSettings$Type extends runtime_4.MessageT
2675
2679
  /* optional google.protobuf.BoolValue notify_friends_on_profile_update = 24; */
2676
2680
  if (message.notifyFriendsOnProfileUpdate)
2677
2681
  wrappers_5.BoolValue.internalBinaryWrite(message.notifyFriendsOnProfileUpdate, writer.tag(24, runtime_1.WireType.LengthDelimited).fork(), options).join();
2682
+ /* optional google.protobuf.BoolValue notify_friends_on_come_online = 25; */
2683
+ if (message.notifyFriendsOnComeOnline)
2684
+ wrappers_5.BoolValue.internalBinaryWrite(message.notifyFriendsOnComeOnline, writer.tag(25, runtime_1.WireType.LengthDelimited).fork(), options).join();
2678
2685
  let u = options.writeUnknownFields;
2679
2686
  if (u !== false)
2680
2687
  (u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);