discord-protos 1.2.400 → 1.2.402
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 +19 -0
- package/discord_protos/discord_users/v1/PreloadedUserSettings.proto +1 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +5 -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 +65 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.js +108 -2
- 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 +21 -1
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +20 -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
|
@@ -506,6 +506,24 @@ message Experiment {
|
|
|
506
506
|
optional RolloutPlan rollout_plan = 2;
|
|
507
507
|
}
|
|
508
508
|
|
|
509
|
+
enum Level {
|
|
510
|
+
LEVEL_UNSPECIFIED = 0;
|
|
511
|
+
LEVEL_ORGANIZATION = 1;
|
|
512
|
+
LEVEL_SQUAD = 2;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
enum FiscalPeriod {
|
|
516
|
+
FISCAL_PERIOD_UNSPECIFIED = 0;
|
|
517
|
+
FISCAL_PERIOD_H1 = 1;
|
|
518
|
+
FISCAL_PERIOD_H2 = 2;
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
message HoldoutScope {
|
|
522
|
+
Level level = 1;
|
|
523
|
+
FiscalPeriod fiscal_half = 2;
|
|
524
|
+
int32 fiscal_year = 3;
|
|
525
|
+
}
|
|
526
|
+
|
|
509
527
|
enum Kind {
|
|
510
528
|
KIND_CHANGE_SOURCE_UNSPECIFIED = 0;
|
|
511
529
|
KIND_MANUAL = 1;
|
|
@@ -571,5 +589,6 @@ message Experiment {
|
|
|
571
589
|
optional LifecyclePlan lifecycle_plan = 48;
|
|
572
590
|
bool is_feature_flag = 49;
|
|
573
591
|
bool is_official_holdout = 50;
|
|
592
|
+
optional HoldoutScope holdout_scope = 52;
|
|
574
593
|
optional ChangeSource change_source = 51;
|
|
575
594
|
}
|
|
@@ -646,6 +646,11 @@ 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;
|
|
651
|
+
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_SETTINGS_BADGE = 876;
|
|
652
|
+
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_STYLING_BADGE = 877;
|
|
653
|
+
DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_ACTION_SHEET = 878;
|
|
649
654
|
}
|
|
650
655
|
|
|
651
656
|
message MobileBottomSheet {
|
|
@@ -790,6 +790,7 @@ message User {
|
|
|
790
790
|
CLASSIFICATION_TYPE_APP_WARN_TRADEMARK_ADMIN = 8120;
|
|
791
791
|
CLASSIFICATION_TYPE_APP_DISABLE_GUILD_INSTALLS_ADMIN = 8130;
|
|
792
792
|
CLASSIFICATION_TYPE_APP_DELETE_CG_ADMIN = 8140;
|
|
793
|
+
CLASSIFICATION_TYPE_APP_WARN_CG_ADMIN = 8150;
|
|
793
794
|
CLASSIFICATION_TYPE_TEST_CLASSIFICATION = 9000;
|
|
794
795
|
CLASSIFICATION_TYPE_TEST_CLASSIFICATION_LOW = 9001;
|
|
795
796
|
CLASSIFICATION_TYPE_TEST_CLASSIFICATION_SEVERE = 9002;
|
|
@@ -828,6 +828,7 @@ message UserData {
|
|
|
828
828
|
CLASSIFICATION_TYPE_APP_WARN_TRADEMARK_ADMIN = 8120;
|
|
829
829
|
CLASSIFICATION_TYPE_APP_DISABLE_GUILD_INSTALLS_ADMIN = 8130;
|
|
830
830
|
CLASSIFICATION_TYPE_APP_DELETE_CG_ADMIN = 8140;
|
|
831
|
+
CLASSIFICATION_TYPE_APP_WARN_CG_ADMIN = 8150;
|
|
831
832
|
CLASSIFICATION_TYPE_TEST_CLASSIFICATION = 9000;
|
|
832
833
|
CLASSIFICATION_TYPE_TEST_CLASSIFICATION_LOW = 9001;
|
|
833
834
|
CLASSIFICATION_TYPE_TEST_CLASSIFICATION_SEVERE = 9002;
|
|
@@ -202,6 +202,10 @@ export interface Experiment {
|
|
|
202
202
|
* @generated from protobuf field: bool is_official_holdout = 50
|
|
203
203
|
*/
|
|
204
204
|
isOfficialHoldout: boolean;
|
|
205
|
+
/**
|
|
206
|
+
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.HoldoutScope holdout_scope = 52
|
|
207
|
+
*/
|
|
208
|
+
holdoutScope?: Experiment_HoldoutScope;
|
|
205
209
|
/**
|
|
206
210
|
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.ChangeSource change_source = 51
|
|
207
211
|
*/
|
|
@@ -1196,6 +1200,23 @@ export interface Experiment_LifecyclePlan {
|
|
|
1196
1200
|
*/
|
|
1197
1201
|
rolloutPlan?: Experiment_RolloutPlan;
|
|
1198
1202
|
}
|
|
1203
|
+
/**
|
|
1204
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.HoldoutScope
|
|
1205
|
+
*/
|
|
1206
|
+
export interface Experiment_HoldoutScope {
|
|
1207
|
+
/**
|
|
1208
|
+
* @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.Level level = 1
|
|
1209
|
+
*/
|
|
1210
|
+
level: Experiment_Level;
|
|
1211
|
+
/**
|
|
1212
|
+
* @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.FiscalPeriod fiscal_half = 2
|
|
1213
|
+
*/
|
|
1214
|
+
fiscalHalf: Experiment_FiscalPeriod;
|
|
1215
|
+
/**
|
|
1216
|
+
* @generated from protobuf field: int32 fiscal_year = 3
|
|
1217
|
+
*/
|
|
1218
|
+
fiscalYear: number;
|
|
1219
|
+
}
|
|
1199
1220
|
/**
|
|
1200
1221
|
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.ChangeSource
|
|
1201
1222
|
*/
|
|
@@ -1559,6 +1580,40 @@ export declare enum Experiment_StepStatus {
|
|
|
1559
1580
|
*/
|
|
1560
1581
|
COMPLETED = 4
|
|
1561
1582
|
}
|
|
1583
|
+
/**
|
|
1584
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.Level
|
|
1585
|
+
*/
|
|
1586
|
+
export declare enum Experiment_Level {
|
|
1587
|
+
/**
|
|
1588
|
+
* @generated from protobuf enum value: LEVEL_UNSPECIFIED = 0;
|
|
1589
|
+
*/
|
|
1590
|
+
UNSPECIFIED = 0,
|
|
1591
|
+
/**
|
|
1592
|
+
* @generated from protobuf enum value: LEVEL_ORGANIZATION = 1;
|
|
1593
|
+
*/
|
|
1594
|
+
ORGANIZATION = 1,
|
|
1595
|
+
/**
|
|
1596
|
+
* @generated from protobuf enum value: LEVEL_SQUAD = 2;
|
|
1597
|
+
*/
|
|
1598
|
+
SQUAD = 2
|
|
1599
|
+
}
|
|
1600
|
+
/**
|
|
1601
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.FiscalPeriod
|
|
1602
|
+
*/
|
|
1603
|
+
export declare enum Experiment_FiscalPeriod {
|
|
1604
|
+
/**
|
|
1605
|
+
* @generated from protobuf enum value: FISCAL_PERIOD_UNSPECIFIED = 0;
|
|
1606
|
+
*/
|
|
1607
|
+
UNSPECIFIED = 0,
|
|
1608
|
+
/**
|
|
1609
|
+
* @generated from protobuf enum value: FISCAL_PERIOD_H1 = 1;
|
|
1610
|
+
*/
|
|
1611
|
+
H1 = 1,
|
|
1612
|
+
/**
|
|
1613
|
+
* @generated from protobuf enum value: FISCAL_PERIOD_H2 = 2;
|
|
1614
|
+
*/
|
|
1615
|
+
H2 = 2
|
|
1616
|
+
}
|
|
1562
1617
|
/**
|
|
1563
1618
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.Kind
|
|
1564
1619
|
*/
|
|
@@ -2206,6 +2261,16 @@ declare class Experiment_LifecyclePlan$Type extends MessageType<Experiment_Lifec
|
|
|
2206
2261
|
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan
|
|
2207
2262
|
*/
|
|
2208
2263
|
export declare const Experiment_LifecyclePlan: Experiment_LifecyclePlan$Type;
|
|
2264
|
+
declare class Experiment_HoldoutScope$Type extends MessageType<Experiment_HoldoutScope> {
|
|
2265
|
+
constructor();
|
|
2266
|
+
create(value?: PartialMessage<Experiment_HoldoutScope>): Experiment_HoldoutScope;
|
|
2267
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_HoldoutScope): Experiment_HoldoutScope;
|
|
2268
|
+
internalBinaryWrite(message: Experiment_HoldoutScope, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.HoldoutScope
|
|
2272
|
+
*/
|
|
2273
|
+
export declare const Experiment_HoldoutScope: Experiment_HoldoutScope$Type;
|
|
2209
2274
|
declare class Experiment_ChangeSource$Type extends MessageType<Experiment_ChangeSource> {
|
|
2210
2275
|
constructor();
|
|
2211
2276
|
create(value?: PartialMessage<Experiment_ChangeSource>): Experiment_ChangeSource;
|
|
@@ -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 = exports.Experiment_ClientSystemLocale = exports.Experiment_Always = exports.Experiment_ClientReleaseChannel = void 0;
|
|
3
|
+
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_FiscalPeriod = exports.Experiment_Level = 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_HoldoutScope = 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 = exports.Experiment_UnitIdInRangeByHash = exports.Experiment_UserHasFlag = 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");
|
|
@@ -356,6 +356,42 @@ var Experiment_StepStatus;
|
|
|
356
356
|
*/
|
|
357
357
|
Experiment_StepStatus[Experiment_StepStatus["COMPLETED"] = 4] = "COMPLETED";
|
|
358
358
|
})(Experiment_StepStatus || (exports.Experiment_StepStatus = Experiment_StepStatus = {}));
|
|
359
|
+
/**
|
|
360
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.Level
|
|
361
|
+
*/
|
|
362
|
+
var Experiment_Level;
|
|
363
|
+
(function (Experiment_Level) {
|
|
364
|
+
/**
|
|
365
|
+
* @generated from protobuf enum value: LEVEL_UNSPECIFIED = 0;
|
|
366
|
+
*/
|
|
367
|
+
Experiment_Level[Experiment_Level["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
368
|
+
/**
|
|
369
|
+
* @generated from protobuf enum value: LEVEL_ORGANIZATION = 1;
|
|
370
|
+
*/
|
|
371
|
+
Experiment_Level[Experiment_Level["ORGANIZATION"] = 1] = "ORGANIZATION";
|
|
372
|
+
/**
|
|
373
|
+
* @generated from protobuf enum value: LEVEL_SQUAD = 2;
|
|
374
|
+
*/
|
|
375
|
+
Experiment_Level[Experiment_Level["SQUAD"] = 2] = "SQUAD";
|
|
376
|
+
})(Experiment_Level || (exports.Experiment_Level = Experiment_Level = {}));
|
|
377
|
+
/**
|
|
378
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.FiscalPeriod
|
|
379
|
+
*/
|
|
380
|
+
var Experiment_FiscalPeriod;
|
|
381
|
+
(function (Experiment_FiscalPeriod) {
|
|
382
|
+
/**
|
|
383
|
+
* @generated from protobuf enum value: FISCAL_PERIOD_UNSPECIFIED = 0;
|
|
384
|
+
*/
|
|
385
|
+
Experiment_FiscalPeriod[Experiment_FiscalPeriod["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
386
|
+
/**
|
|
387
|
+
* @generated from protobuf enum value: FISCAL_PERIOD_H1 = 1;
|
|
388
|
+
*/
|
|
389
|
+
Experiment_FiscalPeriod[Experiment_FiscalPeriod["H1"] = 1] = "H1";
|
|
390
|
+
/**
|
|
391
|
+
* @generated from protobuf enum value: FISCAL_PERIOD_H2 = 2;
|
|
392
|
+
*/
|
|
393
|
+
Experiment_FiscalPeriod[Experiment_FiscalPeriod["H2"] = 2] = "H2";
|
|
394
|
+
})(Experiment_FiscalPeriod || (exports.Experiment_FiscalPeriod = Experiment_FiscalPeriod = {}));
|
|
359
395
|
/**
|
|
360
396
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.Kind
|
|
361
397
|
*/
|
|
@@ -477,6 +513,7 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
477
513
|
{ no: 48, name: "lifecycle_plan", kind: "message", T: () => exports.Experiment_LifecyclePlan },
|
|
478
514
|
{ no: 49, name: "is_feature_flag", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
479
515
|
{ no: 50, name: "is_official_holdout", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
516
|
+
{ no: 52, name: "holdout_scope", kind: "message", T: () => exports.Experiment_HoldoutScope },
|
|
480
517
|
{ no: 51, name: "change_source", kind: "message", T: () => exports.Experiment_ChangeSource }
|
|
481
518
|
]);
|
|
482
519
|
}
|
|
@@ -680,6 +717,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
680
717
|
case /* bool is_official_holdout */ 50:
|
|
681
718
|
message.isOfficialHoldout = reader.bool();
|
|
682
719
|
break;
|
|
720
|
+
case /* optional discord_protos.discord_experimentation.v1.Experiment.HoldoutScope holdout_scope */ 52:
|
|
721
|
+
message.holdoutScope = exports.Experiment_HoldoutScope.internalBinaryRead(reader, reader.uint32(), options, message.holdoutScope);
|
|
722
|
+
break;
|
|
683
723
|
case /* optional discord_protos.discord_experimentation.v1.Experiment.ChangeSource change_source */ 51:
|
|
684
724
|
message.changeSource = exports.Experiment_ChangeSource.internalBinaryRead(reader, reader.uint32(), options, message.changeSource);
|
|
685
725
|
break;
|
|
@@ -851,6 +891,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
851
891
|
/* optional discord_protos.discord_experimentation.v1.Experiment.ChangeSource change_source = 51; */
|
|
852
892
|
if (message.changeSource)
|
|
853
893
|
exports.Experiment_ChangeSource.internalBinaryWrite(message.changeSource, writer.tag(51, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
894
|
+
/* optional discord_protos.discord_experimentation.v1.Experiment.HoldoutScope holdout_scope = 52; */
|
|
895
|
+
if (message.holdoutScope)
|
|
896
|
+
exports.Experiment_HoldoutScope.internalBinaryWrite(message.holdoutScope, writer.tag(52, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
854
897
|
let u = options.writeUnknownFields;
|
|
855
898
|
if (u !== false)
|
|
856
899
|
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -4441,6 +4484,69 @@ class Experiment_LifecyclePlan$Type extends runtime_4.MessageType {
|
|
|
4441
4484
|
*/
|
|
4442
4485
|
exports.Experiment_LifecyclePlan = new Experiment_LifecyclePlan$Type();
|
|
4443
4486
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
4487
|
+
class Experiment_HoldoutScope$Type extends runtime_4.MessageType {
|
|
4488
|
+
constructor() {
|
|
4489
|
+
super("discord_protos.discord_experimentation.v1.Experiment.HoldoutScope", [
|
|
4490
|
+
{ no: 1, name: "level", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Level", Experiment_Level, "LEVEL_"] },
|
|
4491
|
+
{ no: 2, name: "fiscal_half", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.FiscalPeriod", Experiment_FiscalPeriod, "FISCAL_PERIOD_"] },
|
|
4492
|
+
{ no: 3, name: "fiscal_year", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
4493
|
+
]);
|
|
4494
|
+
}
|
|
4495
|
+
create(value) {
|
|
4496
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
4497
|
+
message.level = 0;
|
|
4498
|
+
message.fiscalHalf = 0;
|
|
4499
|
+
message.fiscalYear = 0;
|
|
4500
|
+
if (value !== undefined)
|
|
4501
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
4502
|
+
return message;
|
|
4503
|
+
}
|
|
4504
|
+
internalBinaryRead(reader, length, options, target) {
|
|
4505
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4506
|
+
while (reader.pos < end) {
|
|
4507
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4508
|
+
switch (fieldNo) {
|
|
4509
|
+
case /* discord_protos.discord_experimentation.v1.Experiment.Level level */ 1:
|
|
4510
|
+
message.level = reader.int32();
|
|
4511
|
+
break;
|
|
4512
|
+
case /* discord_protos.discord_experimentation.v1.Experiment.FiscalPeriod fiscal_half */ 2:
|
|
4513
|
+
message.fiscalHalf = reader.int32();
|
|
4514
|
+
break;
|
|
4515
|
+
case /* int32 fiscal_year */ 3:
|
|
4516
|
+
message.fiscalYear = reader.int32();
|
|
4517
|
+
break;
|
|
4518
|
+
default:
|
|
4519
|
+
let u = options.readUnknownField;
|
|
4520
|
+
if (u === "throw")
|
|
4521
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4522
|
+
let d = reader.skip(wireType);
|
|
4523
|
+
if (u !== false)
|
|
4524
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4525
|
+
}
|
|
4526
|
+
}
|
|
4527
|
+
return message;
|
|
4528
|
+
}
|
|
4529
|
+
internalBinaryWrite(message, writer, options) {
|
|
4530
|
+
/* discord_protos.discord_experimentation.v1.Experiment.Level level = 1; */
|
|
4531
|
+
if (message.level !== 0)
|
|
4532
|
+
writer.tag(1, runtime_2.WireType.Varint).int32(message.level);
|
|
4533
|
+
/* discord_protos.discord_experimentation.v1.Experiment.FiscalPeriod fiscal_half = 2; */
|
|
4534
|
+
if (message.fiscalHalf !== 0)
|
|
4535
|
+
writer.tag(2, runtime_2.WireType.Varint).int32(message.fiscalHalf);
|
|
4536
|
+
/* int32 fiscal_year = 3; */
|
|
4537
|
+
if (message.fiscalYear !== 0)
|
|
4538
|
+
writer.tag(3, runtime_2.WireType.Varint).int32(message.fiscalYear);
|
|
4539
|
+
let u = options.writeUnknownFields;
|
|
4540
|
+
if (u !== false)
|
|
4541
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4542
|
+
return writer;
|
|
4543
|
+
}
|
|
4544
|
+
}
|
|
4545
|
+
/**
|
|
4546
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.HoldoutScope
|
|
4547
|
+
*/
|
|
4548
|
+
exports.Experiment_HoldoutScope = new Experiment_HoldoutScope$Type();
|
|
4549
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4444
4550
|
class Experiment_ChangeSource$Type extends runtime_4.MessageType {
|
|
4445
4551
|
constructor() {
|
|
4446
4552
|
super("discord_protos.discord_experimentation.v1.Experiment.ChangeSource", [
|
|
@@ -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,27 @@ 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,
|
|
3598
|
+
/**
|
|
3599
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_SETTINGS_BADGE = 876;
|
|
3600
|
+
*/
|
|
3601
|
+
CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_SETTINGS_BADGE = 876,
|
|
3602
|
+
/**
|
|
3603
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_STYLING_BADGE = 877;
|
|
3604
|
+
*/
|
|
3605
|
+
CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_STYLING_BADGE = 877,
|
|
3606
|
+
/**
|
|
3607
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_ACTION_SHEET = 878;
|
|
3608
|
+
*/
|
|
3609
|
+
CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_ACTION_SHEET = 878
|
|
3590
3610
|
}
|
|
3591
3611
|
/**
|
|
3592
3612
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -2159,6 +2159,26 @@ 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";
|
|
2170
|
+
/**
|
|
2171
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_SETTINGS_BADGE = 876;
|
|
2172
|
+
*/
|
|
2173
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_SETTINGS_BADGE"] = 876] = "CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_SETTINGS_BADGE";
|
|
2174
|
+
/**
|
|
2175
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_STYLING_BADGE = 877;
|
|
2176
|
+
*/
|
|
2177
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_STYLING_BADGE"] = 877] = "CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_STYLING_BADGE";
|
|
2178
|
+
/**
|
|
2179
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_ACTION_SHEET = 878;
|
|
2180
|
+
*/
|
|
2181
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_ACTION_SHEET"] = 878] = "CUSTOM_TYPING_INDICATOR_MOBILE_NEW_PRESETS_ACTION_SHEET";
|
|
2162
2182
|
})(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
|
|
2163
2183
|
/**
|
|
2164
2184
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -3262,6 +3262,10 @@ export declare enum User_ClassificationType {
|
|
|
3262
3262
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_DELETE_CG_ADMIN = 8140;
|
|
3263
3263
|
*/
|
|
3264
3264
|
APP_DELETE_CG_ADMIN = 8140,
|
|
3265
|
+
/**
|
|
3266
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_WARN_CG_ADMIN = 8150;
|
|
3267
|
+
*/
|
|
3268
|
+
APP_WARN_CG_ADMIN = 8150,
|
|
3265
3269
|
/**
|
|
3266
3270
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_TEST_CLASSIFICATION = 9000;
|
|
3267
3271
|
*/
|
|
@@ -2999,6 +2999,10 @@ var User_ClassificationType;
|
|
|
2999
2999
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_DELETE_CG_ADMIN = 8140;
|
|
3000
3000
|
*/
|
|
3001
3001
|
User_ClassificationType[User_ClassificationType["APP_DELETE_CG_ADMIN"] = 8140] = "APP_DELETE_CG_ADMIN";
|
|
3002
|
+
/**
|
|
3003
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_WARN_CG_ADMIN = 8150;
|
|
3004
|
+
*/
|
|
3005
|
+
User_ClassificationType[User_ClassificationType["APP_WARN_CG_ADMIN"] = 8150] = "APP_WARN_CG_ADMIN";
|
|
3002
3006
|
/**
|
|
3003
3007
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_TEST_CLASSIFICATION = 9000;
|
|
3004
3008
|
*/
|
|
@@ -3807,6 +3807,10 @@ export declare enum UserData_ClassificationType {
|
|
|
3807
3807
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_DELETE_CG_ADMIN = 8140;
|
|
3808
3808
|
*/
|
|
3809
3809
|
APP_DELETE_CG_ADMIN = 8140,
|
|
3810
|
+
/**
|
|
3811
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_WARN_CG_ADMIN = 8150;
|
|
3812
|
+
*/
|
|
3813
|
+
APP_WARN_CG_ADMIN = 8150,
|
|
3810
3814
|
/**
|
|
3811
3815
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_TEST_CLASSIFICATION = 9000;
|
|
3812
3816
|
*/
|
|
@@ -3043,6 +3043,10 @@ var UserData_ClassificationType;
|
|
|
3043
3043
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_DELETE_CG_ADMIN = 8140;
|
|
3044
3044
|
*/
|
|
3045
3045
|
UserData_ClassificationType[UserData_ClassificationType["APP_DELETE_CG_ADMIN"] = 8140] = "APP_DELETE_CG_ADMIN";
|
|
3046
|
+
/**
|
|
3047
|
+
* @generated from protobuf enum value: CLASSIFICATION_TYPE_APP_WARN_CG_ADMIN = 8150;
|
|
3048
|
+
*/
|
|
3049
|
+
UserData_ClassificationType[UserData_ClassificationType["APP_WARN_CG_ADMIN"] = 8150] = "APP_WARN_CG_ADMIN";
|
|
3046
3050
|
/**
|
|
3047
3051
|
* @generated from protobuf enum value: CLASSIFICATION_TYPE_TEST_CLASSIFICATION = 9000;
|
|
3048
3052
|
*/
|