discord-protos 1.2.399 → 1.2.401
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/discord_experimentation/v1/Experiment.proto +16 -0
- package/discord_protos/discord_users/v1/PreloadedUserSettings.proto +1 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +2 -0
- package/discord_protos/users/v1/User.proto +1 -0
- package/discord_protos/users/v1/UserData.proto +1 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.d.ts +73 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.js +173 -3
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.d.ts +4 -0
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.js +9 -1
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +9 -1
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +8 -0
- package/dist/discord_protos/users/v1/User.d.ts +4 -0
- package/dist/discord_protos/users/v1/User.js +4 -0
- package/dist/discord_protos/users/v1/UserData.d.ts +4 -0
- package/dist/discord_protos/users/v1/UserData.js +4 -0
- package/package.json +1 -1
|
@@ -125,9 +125,25 @@ message Experiment {
|
|
|
125
125
|
optional SDKVersionRangeBound upper_bound = 2;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
message OSVersionRangeBound {
|
|
129
|
+
string version = 1;
|
|
130
|
+
bool inclusive = 2;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
message OSVersionRange {
|
|
134
|
+
optional OSVersionRangeBound lower_bound = 1;
|
|
135
|
+
optional OSVersionRangeBound upper_bound = 2;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
message OSVersion {
|
|
139
|
+
repeated OSVersionRange ranges = 1;
|
|
140
|
+
}
|
|
141
|
+
|
|
128
142
|
message SDKVersion {
|
|
129
143
|
repeated SDKVersionRange ranges = 1;
|
|
130
144
|
bool work_around_pyoto_bug = 2;
|
|
145
|
+
optional OSVersion os_version = 3;
|
|
146
|
+
bool allow_sdk_fallback = 4;
|
|
131
147
|
}
|
|
132
148
|
|
|
133
149
|
message ClientOperatingSystem {
|
|
@@ -646,6 +646,8 @@ message PremiumMarketingComponentProperties {
|
|
|
646
646
|
DISMISSIBLE_CONTENT_NITRO_BADGE_UNHIDDEN_NOTICE = 871;
|
|
647
647
|
DISMISSIBLE_CONTENT_DEFAULT_NITRO_SOUNDS_COACHMARK = 872;
|
|
648
648
|
DISMISSIBLE_CONTENT_DEFAULT_NITRO_SOUNDS_SUGGESTED_POPOVER = 873;
|
|
649
|
+
DISMISSIBLE_CONTENT_PERSONAL_WIDGET_GOING_AWAY_COACHMARK = 874;
|
|
650
|
+
DISMISSIBLE_CONTENT_BUILD_A_BEAR_INTRO = 875;
|
|
649
651
|
}
|
|
650
652
|
|
|
651
653
|
message MobileBottomSheet {
|
|
@@ -205,6 +205,7 @@ message User {
|
|
|
205
205
|
CLASSIFICATION_TYPE_CSEA_CSAM_HIGH_CONFIDENCE_HASH_MATCH = 1180;
|
|
206
206
|
CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_HASH_MATCH = 1190;
|
|
207
207
|
CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200;
|
|
208
|
+
CLASSIFICATION_TYPE_PHISHING_HASH_MATCH = 1210;
|
|
208
209
|
CLASSIFICATION_TYPE_CSAM_SMITE = 3000;
|
|
209
210
|
CLASSIFICATION_TYPE_CSAM_SOLICITATION_OR_ADMISSION_SMITE = 3001;
|
|
210
211
|
CLASSIFICATION_TYPE_CSAM_SOLICITATION_OR_ADMISSION_GUILD_SMITE = 3002;
|
|
@@ -243,6 +243,7 @@ message UserData {
|
|
|
243
243
|
CLASSIFICATION_TYPE_CSEA_CSAM_HIGH_CONFIDENCE_HASH_MATCH = 1180;
|
|
244
244
|
CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_HASH_MATCH = 1190;
|
|
245
245
|
CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200;
|
|
246
|
+
CLASSIFICATION_TYPE_PHISHING_HASH_MATCH = 1210;
|
|
246
247
|
CLASSIFICATION_TYPE_CSAM_SMITE = 3000;
|
|
247
248
|
CLASSIFICATION_TYPE_CSAM_SOLICITATION_OR_ADMISSION_SMITE = 3001;
|
|
248
249
|
CLASSIFICATION_TYPE_CSAM_SOLICITATION_OR_ADMISSION_GUILD_SMITE = 3002;
|
|
@@ -402,6 +402,41 @@ export interface Experiment_SDKVersionRange {
|
|
|
402
402
|
*/
|
|
403
403
|
upperBound?: Experiment_SDKVersionRangeBound;
|
|
404
404
|
}
|
|
405
|
+
/**
|
|
406
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound
|
|
407
|
+
*/
|
|
408
|
+
export interface Experiment_OSVersionRangeBound {
|
|
409
|
+
/**
|
|
410
|
+
* @generated from protobuf field: string version = 1
|
|
411
|
+
*/
|
|
412
|
+
version: string;
|
|
413
|
+
/**
|
|
414
|
+
* @generated from protobuf field: bool inclusive = 2
|
|
415
|
+
*/
|
|
416
|
+
inclusive: boolean;
|
|
417
|
+
}
|
|
418
|
+
/**
|
|
419
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersionRange
|
|
420
|
+
*/
|
|
421
|
+
export interface Experiment_OSVersionRange {
|
|
422
|
+
/**
|
|
423
|
+
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound lower_bound = 1
|
|
424
|
+
*/
|
|
425
|
+
lowerBound?: Experiment_OSVersionRangeBound;
|
|
426
|
+
/**
|
|
427
|
+
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound upper_bound = 2
|
|
428
|
+
*/
|
|
429
|
+
upperBound?: Experiment_OSVersionRangeBound;
|
|
430
|
+
}
|
|
431
|
+
/**
|
|
432
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersion
|
|
433
|
+
*/
|
|
434
|
+
export interface Experiment_OSVersion {
|
|
435
|
+
/**
|
|
436
|
+
* @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.OSVersionRange ranges = 1
|
|
437
|
+
*/
|
|
438
|
+
ranges: Experiment_OSVersionRange[];
|
|
439
|
+
}
|
|
405
440
|
/**
|
|
406
441
|
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.SDKVersion
|
|
407
442
|
*/
|
|
@@ -414,6 +449,14 @@ export interface Experiment_SDKVersion {
|
|
|
414
449
|
* @generated from protobuf field: bool work_around_pyoto_bug = 2
|
|
415
450
|
*/
|
|
416
451
|
workAroundPyotoBug: boolean;
|
|
452
|
+
/**
|
|
453
|
+
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.OSVersion os_version = 3
|
|
454
|
+
*/
|
|
455
|
+
osVersion?: Experiment_OSVersion;
|
|
456
|
+
/**
|
|
457
|
+
* @generated from protobuf field: bool allow_sdk_fallback = 4
|
|
458
|
+
*/
|
|
459
|
+
allowSdkFallback: boolean;
|
|
417
460
|
}
|
|
418
461
|
/**
|
|
419
462
|
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.ClientOperatingSystem
|
|
@@ -1703,6 +1746,36 @@ declare class Experiment_SDKVersionRange$Type extends MessageType<Experiment_SDK
|
|
|
1703
1746
|
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.SDKVersionRange
|
|
1704
1747
|
*/
|
|
1705
1748
|
export declare const Experiment_SDKVersionRange: Experiment_SDKVersionRange$Type;
|
|
1749
|
+
declare class Experiment_OSVersionRangeBound$Type extends MessageType<Experiment_OSVersionRangeBound> {
|
|
1750
|
+
constructor();
|
|
1751
|
+
create(value?: PartialMessage<Experiment_OSVersionRangeBound>): Experiment_OSVersionRangeBound;
|
|
1752
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_OSVersionRangeBound): Experiment_OSVersionRangeBound;
|
|
1753
|
+
internalBinaryWrite(message: Experiment_OSVersionRangeBound, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1754
|
+
}
|
|
1755
|
+
/**
|
|
1756
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound
|
|
1757
|
+
*/
|
|
1758
|
+
export declare const Experiment_OSVersionRangeBound: Experiment_OSVersionRangeBound$Type;
|
|
1759
|
+
declare class Experiment_OSVersionRange$Type extends MessageType<Experiment_OSVersionRange> {
|
|
1760
|
+
constructor();
|
|
1761
|
+
create(value?: PartialMessage<Experiment_OSVersionRange>): Experiment_OSVersionRange;
|
|
1762
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_OSVersionRange): Experiment_OSVersionRange;
|
|
1763
|
+
internalBinaryWrite(message: Experiment_OSVersionRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1764
|
+
}
|
|
1765
|
+
/**
|
|
1766
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersionRange
|
|
1767
|
+
*/
|
|
1768
|
+
export declare const Experiment_OSVersionRange: Experiment_OSVersionRange$Type;
|
|
1769
|
+
declare class Experiment_OSVersion$Type extends MessageType<Experiment_OSVersion> {
|
|
1770
|
+
constructor();
|
|
1771
|
+
create(value?: PartialMessage<Experiment_OSVersion>): Experiment_OSVersion;
|
|
1772
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_OSVersion): Experiment_OSVersion;
|
|
1773
|
+
internalBinaryWrite(message: Experiment_OSVersion, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1774
|
+
}
|
|
1775
|
+
/**
|
|
1776
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersion
|
|
1777
|
+
*/
|
|
1778
|
+
export declare const Experiment_OSVersion: Experiment_OSVersion$Type;
|
|
1706
1779
|
declare class Experiment_SDKVersion$Type extends MessageType<Experiment_SDKVersion> {
|
|
1707
1780
|
constructor();
|
|
1708
1781
|
create(value?: PartialMessage<Experiment_SDKVersion>): Experiment_SDKVersion;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.Experiment_ChangeSource = exports.Experiment_LifecyclePlan = exports.Experiment_RolloutPlan = exports.Experiment_MeasurementPlan = exports.Experiment_RampStep = exports.Experiment_VariationBuckets = exports.Experiment_NumberLineSettings = exports.Experiment_DebugConfig = exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = exports.Experiment_ClientDesignId = exports.Experiment_UserStoreCountry = exports.Experiment_InstallationIds = exports.Experiment_UserIP = exports.Experiment_UserLocation = exports.Experiment_GuildHasFeature = exports.Experiment_GuildMemberCountRange = exports.Experiment_GuildIdRange = exports.Experiment_GuildIds = exports.Experiment_UnitIdMatchesFilterSnapshot = exports.Experiment_UserPremiumType = exports.Experiment_UnitIdInExperiment = void 0;
|
|
3
|
+
exports.Experiment_UnitIdInRangeByHash = exports.Experiment_UserHasFlag = exports.Experiment_UserIDRange = exports.Experiment_Fixed64Value = exports.Experiment_UserAgeRange = exports.Experiment_UserIsBot = exports.Experiment_UserLocale = exports.Experiment_ClientIP = exports.Experiment_ClientLocation = exports.Experiment_Location = exports.Experiment_Place = exports.Experiment_ISORegion = exports.Experiment_ClientLocale = exports.Experiment_UserIds = exports.Experiment_UserInGuild = exports.Experiment_StaffUsers = exports.Experiment_ClientOperatingSystem = exports.Experiment_SDKVersion = exports.Experiment_OSVersion = exports.Experiment_OSVersionRange = exports.Experiment_OSVersionRangeBound = exports.Experiment_SDKVersionRange = exports.Experiment_SDKVersionRangeBound = exports.Experiment_SDKVersionSpecifier = exports.Experiment_ClientPlatform = exports.Experiment_ClientRequiredChanges = exports.Experiment_PlatformVersion = exports.Experiment_PlatformVersionRange = exports.Experiment_PlatformVersionRangeBound = exports.Experiment_PlatformVersionSpecifier = exports.Experiment_Variation = exports.Experiment_Bucket = exports.Experiment = exports.FilterEvaluationMode = exports.FilterCategory = exports.Experiment_Kind = exports.Experiment_StepStatus = exports.Experiment_PlanStatus = exports.Experiment_EligibilityPersistence = exports.Experiment_Mode = exports.Experiment_ExposurePointId = exports.Experiment_CustomUnitPrefix = exports.Experiment_AssignmentMode = exports.Experiment_ExposureTracking = exports.Experiment_Surface = exports.Experiment_Phase = exports.Experiment_Subtype = exports.Experiment_Enum = exports.Experiment_Type = exports.Experiment_UnitType = void 0;
|
|
4
|
+
exports.Experiment_ChangeSource = exports.Experiment_LifecyclePlan = exports.Experiment_RolloutPlan = exports.Experiment_MeasurementPlan = exports.Experiment_RampStep = exports.Experiment_VariationBuckets = exports.Experiment_NumberLineSettings = exports.Experiment_DebugConfig = exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = exports.Experiment_ClientDesignId = exports.Experiment_UserStoreCountry = exports.Experiment_InstallationIds = exports.Experiment_UserIP = exports.Experiment_UserLocation = exports.Experiment_GuildHasFeature = exports.Experiment_GuildMemberCountRange = exports.Experiment_GuildIdRange = exports.Experiment_GuildIds = exports.Experiment_UnitIdMatchesFilterSnapshot = exports.Experiment_UserPremiumType = exports.Experiment_UnitIdInExperiment = exports.Experiment_ClientSystemLocale = exports.Experiment_Always = exports.Experiment_ClientReleaseChannel = void 0;
|
|
5
5
|
const runtime_1 = require("@protobuf-ts/runtime");
|
|
6
6
|
const runtime_2 = require("@protobuf-ts/runtime");
|
|
7
7
|
const runtime_3 = require("@protobuf-ts/runtime");
|
|
@@ -1565,17 +1565,175 @@ class Experiment_SDKVersionRange$Type extends runtime_4.MessageType {
|
|
|
1565
1565
|
*/
|
|
1566
1566
|
exports.Experiment_SDKVersionRange = new Experiment_SDKVersionRange$Type();
|
|
1567
1567
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
1568
|
+
class Experiment_OSVersionRangeBound$Type extends runtime_4.MessageType {
|
|
1569
|
+
constructor() {
|
|
1570
|
+
super("discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound", [
|
|
1571
|
+
{ no: 1, name: "version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1572
|
+
{ no: 2, name: "inclusive", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1573
|
+
]);
|
|
1574
|
+
}
|
|
1575
|
+
create(value) {
|
|
1576
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1577
|
+
message.version = "";
|
|
1578
|
+
message.inclusive = false;
|
|
1579
|
+
if (value !== undefined)
|
|
1580
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1581
|
+
return message;
|
|
1582
|
+
}
|
|
1583
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1584
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1585
|
+
while (reader.pos < end) {
|
|
1586
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1587
|
+
switch (fieldNo) {
|
|
1588
|
+
case /* string version */ 1:
|
|
1589
|
+
message.version = reader.string();
|
|
1590
|
+
break;
|
|
1591
|
+
case /* bool inclusive */ 2:
|
|
1592
|
+
message.inclusive = reader.bool();
|
|
1593
|
+
break;
|
|
1594
|
+
default:
|
|
1595
|
+
let u = options.readUnknownField;
|
|
1596
|
+
if (u === "throw")
|
|
1597
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1598
|
+
let d = reader.skip(wireType);
|
|
1599
|
+
if (u !== false)
|
|
1600
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1601
|
+
}
|
|
1602
|
+
}
|
|
1603
|
+
return message;
|
|
1604
|
+
}
|
|
1605
|
+
internalBinaryWrite(message, writer, options) {
|
|
1606
|
+
/* string version = 1; */
|
|
1607
|
+
if (message.version !== "")
|
|
1608
|
+
writer.tag(1, runtime_2.WireType.LengthDelimited).string(message.version);
|
|
1609
|
+
/* bool inclusive = 2; */
|
|
1610
|
+
if (message.inclusive !== false)
|
|
1611
|
+
writer.tag(2, runtime_2.WireType.Varint).bool(message.inclusive);
|
|
1612
|
+
let u = options.writeUnknownFields;
|
|
1613
|
+
if (u !== false)
|
|
1614
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1615
|
+
return writer;
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound
|
|
1620
|
+
*/
|
|
1621
|
+
exports.Experiment_OSVersionRangeBound = new Experiment_OSVersionRangeBound$Type();
|
|
1622
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1623
|
+
class Experiment_OSVersionRange$Type extends runtime_4.MessageType {
|
|
1624
|
+
constructor() {
|
|
1625
|
+
super("discord_protos.discord_experimentation.v1.Experiment.OSVersionRange", [
|
|
1626
|
+
{ no: 1, name: "lower_bound", kind: "message", T: () => exports.Experiment_OSVersionRangeBound },
|
|
1627
|
+
{ no: 2, name: "upper_bound", kind: "message", T: () => exports.Experiment_OSVersionRangeBound }
|
|
1628
|
+
]);
|
|
1629
|
+
}
|
|
1630
|
+
create(value) {
|
|
1631
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1632
|
+
if (value !== undefined)
|
|
1633
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1634
|
+
return message;
|
|
1635
|
+
}
|
|
1636
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1637
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1638
|
+
while (reader.pos < end) {
|
|
1639
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1640
|
+
switch (fieldNo) {
|
|
1641
|
+
case /* optional discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound lower_bound */ 1:
|
|
1642
|
+
message.lowerBound = exports.Experiment_OSVersionRangeBound.internalBinaryRead(reader, reader.uint32(), options, message.lowerBound);
|
|
1643
|
+
break;
|
|
1644
|
+
case /* optional discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound upper_bound */ 2:
|
|
1645
|
+
message.upperBound = exports.Experiment_OSVersionRangeBound.internalBinaryRead(reader, reader.uint32(), options, message.upperBound);
|
|
1646
|
+
break;
|
|
1647
|
+
default:
|
|
1648
|
+
let u = options.readUnknownField;
|
|
1649
|
+
if (u === "throw")
|
|
1650
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1651
|
+
let d = reader.skip(wireType);
|
|
1652
|
+
if (u !== false)
|
|
1653
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1654
|
+
}
|
|
1655
|
+
}
|
|
1656
|
+
return message;
|
|
1657
|
+
}
|
|
1658
|
+
internalBinaryWrite(message, writer, options) {
|
|
1659
|
+
/* optional discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound lower_bound = 1; */
|
|
1660
|
+
if (message.lowerBound)
|
|
1661
|
+
exports.Experiment_OSVersionRangeBound.internalBinaryWrite(message.lowerBound, writer.tag(1, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
1662
|
+
/* optional discord_protos.discord_experimentation.v1.Experiment.OSVersionRangeBound upper_bound = 2; */
|
|
1663
|
+
if (message.upperBound)
|
|
1664
|
+
exports.Experiment_OSVersionRangeBound.internalBinaryWrite(message.upperBound, writer.tag(2, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
1665
|
+
let u = options.writeUnknownFields;
|
|
1666
|
+
if (u !== false)
|
|
1667
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1668
|
+
return writer;
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
/**
|
|
1672
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersionRange
|
|
1673
|
+
*/
|
|
1674
|
+
exports.Experiment_OSVersionRange = new Experiment_OSVersionRange$Type();
|
|
1675
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1676
|
+
class Experiment_OSVersion$Type extends runtime_4.MessageType {
|
|
1677
|
+
constructor() {
|
|
1678
|
+
super("discord_protos.discord_experimentation.v1.Experiment.OSVersion", [
|
|
1679
|
+
{ no: 1, name: "ranges", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_OSVersionRange }
|
|
1680
|
+
]);
|
|
1681
|
+
}
|
|
1682
|
+
create(value) {
|
|
1683
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
1684
|
+
message.ranges = [];
|
|
1685
|
+
if (value !== undefined)
|
|
1686
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1687
|
+
return message;
|
|
1688
|
+
}
|
|
1689
|
+
internalBinaryRead(reader, length, options, target) {
|
|
1690
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1691
|
+
while (reader.pos < end) {
|
|
1692
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1693
|
+
switch (fieldNo) {
|
|
1694
|
+
case /* repeated discord_protos.discord_experimentation.v1.Experiment.OSVersionRange ranges */ 1:
|
|
1695
|
+
message.ranges.push(exports.Experiment_OSVersionRange.internalBinaryRead(reader, reader.uint32(), options));
|
|
1696
|
+
break;
|
|
1697
|
+
default:
|
|
1698
|
+
let u = options.readUnknownField;
|
|
1699
|
+
if (u === "throw")
|
|
1700
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1701
|
+
let d = reader.skip(wireType);
|
|
1702
|
+
if (u !== false)
|
|
1703
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1704
|
+
}
|
|
1705
|
+
}
|
|
1706
|
+
return message;
|
|
1707
|
+
}
|
|
1708
|
+
internalBinaryWrite(message, writer, options) {
|
|
1709
|
+
/* repeated discord_protos.discord_experimentation.v1.Experiment.OSVersionRange ranges = 1; */
|
|
1710
|
+
for (let i = 0; i < message.ranges.length; i++)
|
|
1711
|
+
exports.Experiment_OSVersionRange.internalBinaryWrite(message.ranges[i], writer.tag(1, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
1712
|
+
let u = options.writeUnknownFields;
|
|
1713
|
+
if (u !== false)
|
|
1714
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1715
|
+
return writer;
|
|
1716
|
+
}
|
|
1717
|
+
}
|
|
1718
|
+
/**
|
|
1719
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.OSVersion
|
|
1720
|
+
*/
|
|
1721
|
+
exports.Experiment_OSVersion = new Experiment_OSVersion$Type();
|
|
1722
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1568
1723
|
class Experiment_SDKVersion$Type extends runtime_4.MessageType {
|
|
1569
1724
|
constructor() {
|
|
1570
1725
|
super("discord_protos.discord_experimentation.v1.Experiment.SDKVersion", [
|
|
1571
1726
|
{ no: 1, name: "ranges", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_SDKVersionRange },
|
|
1572
|
-
{ no: 2, name: "work_around_pyoto_bug", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1727
|
+
{ no: 2, name: "work_around_pyoto_bug", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
1728
|
+
{ no: 3, name: "os_version", kind: "message", T: () => exports.Experiment_OSVersion },
|
|
1729
|
+
{ no: 4, name: "allow_sdk_fallback", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
1573
1730
|
]);
|
|
1574
1731
|
}
|
|
1575
1732
|
create(value) {
|
|
1576
1733
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
1577
1734
|
message.ranges = [];
|
|
1578
1735
|
message.workAroundPyotoBug = false;
|
|
1736
|
+
message.allowSdkFallback = false;
|
|
1579
1737
|
if (value !== undefined)
|
|
1580
1738
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
1581
1739
|
return message;
|
|
@@ -1591,6 +1749,12 @@ class Experiment_SDKVersion$Type extends runtime_4.MessageType {
|
|
|
1591
1749
|
case /* bool work_around_pyoto_bug */ 2:
|
|
1592
1750
|
message.workAroundPyotoBug = reader.bool();
|
|
1593
1751
|
break;
|
|
1752
|
+
case /* optional discord_protos.discord_experimentation.v1.Experiment.OSVersion os_version */ 3:
|
|
1753
|
+
message.osVersion = exports.Experiment_OSVersion.internalBinaryRead(reader, reader.uint32(), options, message.osVersion);
|
|
1754
|
+
break;
|
|
1755
|
+
case /* bool allow_sdk_fallback */ 4:
|
|
1756
|
+
message.allowSdkFallback = reader.bool();
|
|
1757
|
+
break;
|
|
1594
1758
|
default:
|
|
1595
1759
|
let u = options.readUnknownField;
|
|
1596
1760
|
if (u === "throw")
|
|
@@ -1609,6 +1773,12 @@ class Experiment_SDKVersion$Type extends runtime_4.MessageType {
|
|
|
1609
1773
|
/* bool work_around_pyoto_bug = 2; */
|
|
1610
1774
|
if (message.workAroundPyotoBug !== false)
|
|
1611
1775
|
writer.tag(2, runtime_2.WireType.Varint).bool(message.workAroundPyotoBug);
|
|
1776
|
+
/* optional discord_protos.discord_experimentation.v1.Experiment.OSVersion os_version = 3; */
|
|
1777
|
+
if (message.osVersion)
|
|
1778
|
+
exports.Experiment_OSVersion.internalBinaryWrite(message.osVersion, writer.tag(3, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
1779
|
+
/* bool allow_sdk_fallback = 4; */
|
|
1780
|
+
if (message.allowSdkFallback !== false)
|
|
1781
|
+
writer.tag(4, runtime_2.WireType.Varint).bool(message.allowSdkFallback);
|
|
1612
1782
|
let u = options.writeUnknownFields;
|
|
1613
1783
|
if (u !== false)
|
|
1614
1784
|
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -1481,6 +1481,10 @@ export interface PreloadedUserSettings_ConjureProjectSettings {
|
|
|
1481
1481
|
* @generated from protobuf field: bool muted = 1
|
|
1482
1482
|
*/
|
|
1483
1483
|
muted: boolean;
|
|
1484
|
+
/**
|
|
1485
|
+
* @generated from protobuf field: uint64 sidebar_dismissed_at = 2
|
|
1486
|
+
*/
|
|
1487
|
+
sidebarDismissedAt: bigint;
|
|
1484
1488
|
}
|
|
1485
1489
|
/**
|
|
1486
1490
|
* @generated from protobuf message discord_protos.discord_users.v1.PreloadedUserSettings.ConjureSettings
|
|
@@ -5049,12 +5049,14 @@ exports.PreloadedUserSettings_AppVersionSettings = new PreloadedUserSettings_App
|
|
|
5049
5049
|
class PreloadedUserSettings_ConjureProjectSettings$Type extends runtime_4.MessageType {
|
|
5050
5050
|
constructor() {
|
|
5051
5051
|
super("discord_protos.discord_users.v1.PreloadedUserSettings.ConjureProjectSettings", [
|
|
5052
|
-
{ no: 1, name: "muted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
|
|
5052
|
+
{ no: 1, name: "muted", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
5053
|
+
{ no: 2, name: "sidebar_dismissed_at", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
5053
5054
|
]);
|
|
5054
5055
|
}
|
|
5055
5056
|
create(value) {
|
|
5056
5057
|
const message = globalThis.Object.create((this.messagePrototype));
|
|
5057
5058
|
message.muted = false;
|
|
5059
|
+
message.sidebarDismissedAt = 0n;
|
|
5058
5060
|
if (value !== undefined)
|
|
5059
5061
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
5060
5062
|
return message;
|
|
@@ -5067,6 +5069,9 @@ class PreloadedUserSettings_ConjureProjectSettings$Type extends runtime_4.Messag
|
|
|
5067
5069
|
case /* bool muted */ 1:
|
|
5068
5070
|
message.muted = reader.bool();
|
|
5069
5071
|
break;
|
|
5072
|
+
case /* uint64 sidebar_dismissed_at */ 2:
|
|
5073
|
+
message.sidebarDismissedAt = reader.uint64().toBigInt();
|
|
5074
|
+
break;
|
|
5070
5075
|
default:
|
|
5071
5076
|
let u = options.readUnknownField;
|
|
5072
5077
|
if (u === "throw")
|
|
@@ -5082,6 +5087,9 @@ class PreloadedUserSettings_ConjureProjectSettings$Type extends runtime_4.Messag
|
|
|
5082
5087
|
/* bool muted = 1; */
|
|
5083
5088
|
if (message.muted !== false)
|
|
5084
5089
|
writer.tag(1, runtime_1.WireType.Varint).bool(message.muted);
|
|
5090
|
+
/* uint64 sidebar_dismissed_at = 2; */
|
|
5091
|
+
if (message.sidebarDismissedAt !== 0n)
|
|
5092
|
+
writer.tag(2, runtime_1.WireType.Varint).uint64(message.sidebarDismissedAt);
|
|
5085
5093
|
let u = options.writeUnknownFields;
|
|
5086
5094
|
if (u !== false)
|
|
5087
5095
|
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3586,7 +3586,15 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
|
|
|
3586
3586
|
/**
|
|
3587
3587
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_DEFAULT_NITRO_SOUNDS_SUGGESTED_POPOVER = 873;
|
|
3588
3588
|
*/
|
|
3589
|
-
DEFAULT_NITRO_SOUNDS_SUGGESTED_POPOVER = 873
|
|
3589
|
+
DEFAULT_NITRO_SOUNDS_SUGGESTED_POPOVER = 873,
|
|
3590
|
+
/**
|
|
3591
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_PERSONAL_WIDGET_GOING_AWAY_COACHMARK = 874;
|
|
3592
|
+
*/
|
|
3593
|
+
PERSONAL_WIDGET_GOING_AWAY_COACHMARK = 874,
|
|
3594
|
+
/**
|
|
3595
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_BUILD_A_BEAR_INTRO = 875;
|
|
3596
|
+
*/
|
|
3597
|
+
BUILD_A_BEAR_INTRO = 875
|
|
3590
3598
|
}
|
|
3591
3599
|
/**
|
|
3592
3600
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -2159,6 +2159,14 @@ var PremiumMarketingComponentProperties_DismissibleContent;
|
|
|
2159
2159
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_DEFAULT_NITRO_SOUNDS_SUGGESTED_POPOVER = 873;
|
|
2160
2160
|
*/
|
|
2161
2161
|
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["DEFAULT_NITRO_SOUNDS_SUGGESTED_POPOVER"] = 873] = "DEFAULT_NITRO_SOUNDS_SUGGESTED_POPOVER";
|
|
2162
|
+
/**
|
|
2163
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_PERSONAL_WIDGET_GOING_AWAY_COACHMARK = 874;
|
|
2164
|
+
*/
|
|
2165
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["PERSONAL_WIDGET_GOING_AWAY_COACHMARK"] = 874] = "PERSONAL_WIDGET_GOING_AWAY_COACHMARK";
|
|
2166
|
+
/**
|
|
2167
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_BUILD_A_BEAR_INTRO = 875;
|
|
2168
|
+
*/
|
|
2169
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["BUILD_A_BEAR_INTRO"] = 875] = "BUILD_A_BEAR_INTRO";
|
|
2162
2170
|
})(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
|
|
2163
2171
|
/**
|
|
2164
2172
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -922,6 +922,10 @@ export declare enum User_ClassificationType {
|
|
|
922
922
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200;
|
|
923
923
|
*/
|
|
924
924
|
CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200,
|
|
925
|
+
/**
|
|
926
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_PHISHING_HASH_MATCH = 1210;
|
|
927
|
+
*/
|
|
928
|
+
PHISHING_HASH_MATCH = 1210,
|
|
925
929
|
/**
|
|
926
930
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSAM_SMITE = 3000;
|
|
927
931
|
*/
|
|
@@ -659,6 +659,10 @@ var User_ClassificationType;
|
|
|
659
659
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200;
|
|
660
660
|
*/
|
|
661
661
|
User_ClassificationType[User_ClassificationType["CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH"] = 1200] = "CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH";
|
|
662
|
+
/**
|
|
663
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_PHISHING_HASH_MATCH = 1210;
|
|
664
|
+
*/
|
|
665
|
+
User_ClassificationType[User_ClassificationType["PHISHING_HASH_MATCH"] = 1210] = "PHISHING_HASH_MATCH";
|
|
662
666
|
/**
|
|
663
667
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSAM_SMITE = 3000;
|
|
664
668
|
*/
|
|
@@ -1467,6 +1467,10 @@ export declare enum UserData_ClassificationType {
|
|
|
1467
1467
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200;
|
|
1468
1468
|
*/
|
|
1469
1469
|
CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200,
|
|
1470
|
+
/**
|
|
1471
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_PHISHING_HASH_MATCH = 1210;
|
|
1472
|
+
*/
|
|
1473
|
+
PHISHING_HASH_MATCH = 1210,
|
|
1470
1474
|
/**
|
|
1471
1475
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSAM_SMITE = 3000;
|
|
1472
1476
|
*/
|
|
@@ -703,6 +703,10 @@ var UserData_ClassificationType;
|
|
|
703
703
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH = 1200;
|
|
704
704
|
*/
|
|
705
705
|
UserData_ClassificationType[UserData_ClassificationType["CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH"] = 1200] = "CSEA_CSAM_MEDIUM_CONFIDENCE_SAFETY_DISPATCH";
|
|
706
|
+
/**
|
|
707
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_PHISHING_HASH_MATCH = 1210;
|
|
708
|
+
*/
|
|
709
|
+
UserData_ClassificationType[UserData_ClassificationType["PHISHING_HASH_MATCH"] = 1210] = "PHISHING_HASH_MATCH";
|
|
706
710
|
/**
|
|
707
711
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_CSAM_SMITE = 3000;
|
|
708
712
|
*/
|