discord-protos 1.2.202 → 1.2.204
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/common/v1/LocalizedSnowflake.proto +8 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +45 -0
- package/discord_protos/users/v1/User.proto +4 -0
- package/discord_protos/users/v1/UserData.proto +4 -0
- package/dist/discord_protos/common/v1/LocalizedSnowflake.d.ts +33 -0
- package/dist/discord_protos/common/v1/LocalizedSnowflake.js +78 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +187 -1
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +369 -21
- package/dist/discord_protos/users/v1/User.d.ts +17 -1
- package/dist/discord_protos/users/v1/User.js +16 -0
- package/dist/discord_protos/users/v1/UserData.d.ts +17 -1
- package/dist/discord_protos/users/v1/UserData.js +16 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -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 {
|
|
@@ -658,6 +680,7 @@ message PremiumMarketingComponentProperties {
|
|
|
658
680
|
DISMISSIBLE_CONTENT_XBOX_PERKS_RECONNECT_UPSELL = 756;
|
|
659
681
|
DISMISSIBLE_CONTENT_STEELSERIES_LOGITECH_REHEAT = 757;
|
|
660
682
|
DISMISSIBLE_CONTENT_REFERRAL_PROGRAM_ENTRYPOINT_NITRO_BUTTON_NOTIFICATION = 758;
|
|
683
|
+
DISMISSIBLE_CONTENT_INVITE_NONFRIENDS_TO_GDM_COACHMARK = 759;
|
|
661
684
|
}
|
|
662
685
|
|
|
663
686
|
message MobileBottomSheet {
|
|
@@ -668,6 +691,8 @@ message PremiumMarketingComponentProperties {
|
|
|
668
691
|
optional CTAButton button = 5;
|
|
669
692
|
DismissibleContent dismissible_content = 6;
|
|
670
693
|
optional HelpArticle help_article = 7;
|
|
694
|
+
optional LocalizedString header_localized = 8;
|
|
695
|
+
optional LocalizedString body_localized = 9;
|
|
671
696
|
}
|
|
672
697
|
|
|
673
698
|
message Gradient {
|
|
@@ -694,6 +719,8 @@ message PremiumMarketingComponentProperties {
|
|
|
694
719
|
string body = 2;
|
|
695
720
|
string asset_url = 3;
|
|
696
721
|
optional ThemeAwareAsset asset = 4;
|
|
722
|
+
optional LocalizedString header_localized = 5;
|
|
723
|
+
optional LocalizedString body_localized = 6;
|
|
697
724
|
}
|
|
698
725
|
|
|
699
726
|
message GiftPlanSelectionCardBanner {
|
|
@@ -709,6 +736,9 @@ message PremiumMarketingComponentProperties {
|
|
|
709
736
|
optional ThemeAwareAsset background_asset = 10;
|
|
710
737
|
optional ThemeAwareAsset card_asset = 11;
|
|
711
738
|
optional ThemeAwareAsset mobile_banner_asset = 12;
|
|
739
|
+
optional LocalizedString header_localized = 13;
|
|
740
|
+
optional LocalizedString desktop_body_localized = 14;
|
|
741
|
+
optional LocalizedString mobile_body_localized = 15;
|
|
712
742
|
}
|
|
713
743
|
|
|
714
744
|
enum AssetVariant {
|
|
@@ -727,6 +757,8 @@ message PremiumMarketingComponentProperties {
|
|
|
727
757
|
optional ThemeAwareAsset background_asset = 7;
|
|
728
758
|
optional ThemeAwareAsset mobile_background_asset = 8;
|
|
729
759
|
AssetVariant asset_variant = 9;
|
|
760
|
+
optional LocalizedString desktop_body_localized = 10;
|
|
761
|
+
optional LocalizedString mobile_body_localized = 11;
|
|
730
762
|
}
|
|
731
763
|
|
|
732
764
|
message BillingSettingsNitroGiftBanner {
|
|
@@ -739,10 +771,14 @@ message PremiumMarketingComponentProperties {
|
|
|
739
771
|
string additional_terms = 7;
|
|
740
772
|
optional ThemeAwareAsset asset = 8;
|
|
741
773
|
optional ThemeAwareAsset background_asset = 9;
|
|
774
|
+
optional LocalizedString header_localized = 10;
|
|
775
|
+
optional LocalizedString body_localized = 11;
|
|
776
|
+
optional LocalizedString additional_terms_localized = 12;
|
|
742
777
|
}
|
|
743
778
|
|
|
744
779
|
message GiftReminderNagbar {
|
|
745
780
|
string body = 1;
|
|
781
|
+
optional LocalizedString body_localized = 2;
|
|
746
782
|
}
|
|
747
783
|
|
|
748
784
|
message GiftReminderCoachmark {
|
|
@@ -750,18 +786,23 @@ message PremiumMarketingComponentProperties {
|
|
|
750
786
|
string body = 2;
|
|
751
787
|
string asset_url = 3;
|
|
752
788
|
optional ThemeAwareAsset asset = 4;
|
|
789
|
+
optional LocalizedString header_localized = 5;
|
|
790
|
+
optional LocalizedString body_localized = 6;
|
|
753
791
|
}
|
|
754
792
|
|
|
755
793
|
message PremiumTabTooltip {
|
|
756
794
|
string header = 1;
|
|
757
795
|
string body = 2;
|
|
758
796
|
optional ThemeAwareAsset asset = 3;
|
|
797
|
+
optional LocalizedString header_localized = 4;
|
|
798
|
+
optional LocalizedString body_localized = 5;
|
|
759
799
|
}
|
|
760
800
|
|
|
761
801
|
message PremiumTabPopoverCTAButton {
|
|
762
802
|
string copy = 1;
|
|
763
803
|
ButtonAction button_action = 2;
|
|
764
804
|
string deeplink_section = 3;
|
|
805
|
+
optional LocalizedString copy_localized = 4;
|
|
765
806
|
}
|
|
766
807
|
|
|
767
808
|
message PremiumTabPopover {
|
|
@@ -771,6 +812,8 @@ message PremiumMarketingComponentProperties {
|
|
|
771
812
|
optional PremiumTabPopoverCTAButton button = 4;
|
|
772
813
|
string help_article_id = 5;
|
|
773
814
|
optional HelpArticle help_article = 6;
|
|
815
|
+
optional LocalizedString header_localized = 7;
|
|
816
|
+
optional LocalizedString body_localized = 8;
|
|
774
817
|
}
|
|
775
818
|
|
|
776
819
|
message Nagbar {
|
|
@@ -779,6 +822,8 @@ message PremiumMarketingComponentProperties {
|
|
|
779
822
|
ButtonAction cta_action = 3;
|
|
780
823
|
string deeplink_section = 4;
|
|
781
824
|
optional HelpArticle help_article = 5;
|
|
825
|
+
optional LocalizedString body_localized = 6;
|
|
826
|
+
optional LocalizedString cta_label_localized = 7;
|
|
782
827
|
}
|
|
783
828
|
|
|
784
829
|
string content_identifier = 3;
|
|
@@ -625,6 +625,10 @@ message User {
|
|
|
625
625
|
DISPLAY_NAME_EFFECT_TOON = 4;
|
|
626
626
|
DISPLAY_NAME_EFFECT_POP = 5;
|
|
627
627
|
DISPLAY_NAME_EFFECT_GLOW = 6;
|
|
628
|
+
DISPLAY_NAME_EFFECT_TEST_1 = 1001;
|
|
629
|
+
DISPLAY_NAME_EFFECT_TEST_2 = 1002;
|
|
630
|
+
DISPLAY_NAME_EFFECT_TEST_3 = 1003;
|
|
631
|
+
DISPLAY_NAME_EFFECT_TEST_4 = 1004;
|
|
628
632
|
}
|
|
629
633
|
|
|
630
634
|
message DisplayNameStyles {
|
|
@@ -691,6 +691,10 @@ message UserData {
|
|
|
691
691
|
DISPLAY_NAME_EFFECT_TOON = 4;
|
|
692
692
|
DISPLAY_NAME_EFFECT_POP = 5;
|
|
693
693
|
DISPLAY_NAME_EFFECT_GLOW = 6;
|
|
694
|
+
DISPLAY_NAME_EFFECT_TEST_1 = 1001;
|
|
695
|
+
DISPLAY_NAME_EFFECT_TEST_2 = 1002;
|
|
696
|
+
DISPLAY_NAME_EFFECT_TEST_3 = 1003;
|
|
697
|
+
DISPLAY_NAME_EFFECT_TEST_4 = 1004;
|
|
694
698
|
}
|
|
695
699
|
|
|
696
700
|
message DisplayNameStyles {
|
|
@@ -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();
|