discord-protos 1.2.312 → 1.2.314
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 +46 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +5 -0
- package/discord_protos/users/v1/AgreementsHistory.proto +17 -0
- package/discord_protos/users/v1/UserData.proto +1 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.d.ts +176 -1
- package/dist/discord_protos/discord_experimentation/v1/Experiment.js +324 -4
- package/dist/discord_protos/google/protobuf/duration.d.ts +112 -0
- package/dist/discord_protos/google/protobuf/duration.js +107 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +22 -2
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +20 -0
- package/dist/discord_protos/users/v1/AgreementsHistory.d.ts +55 -0
- package/dist/discord_protos/users/v1/AgreementsHistory.js +117 -0
- package/dist/discord_protos/users/v1/UserData.d.ts +5 -1
- package/dist/discord_protos/users/v1/UserData.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ import "google/protobuf/descriptor.proto";
|
|
|
4
4
|
|
|
5
5
|
import "google/protobuf/wrappers.proto";
|
|
6
6
|
|
|
7
|
+
import "google/protobuf/duration.proto";
|
|
8
|
+
|
|
7
9
|
import "google/protobuf/timestamp.proto";
|
|
8
10
|
|
|
9
11
|
package discord_protos.discord_experimentation.v1;
|
|
@@ -61,6 +63,7 @@ message Experiment {
|
|
|
61
63
|
Type type = 5;
|
|
62
64
|
optional google.protobuf.StringValue configuration = 6;
|
|
63
65
|
fixed64 owning_experiment_id = 7;
|
|
66
|
+
int32 owning_slot_id = 8;
|
|
64
67
|
}
|
|
65
68
|
|
|
66
69
|
message PlatformVersionSpecifier {
|
|
@@ -402,6 +405,7 @@ message Experiment {
|
|
|
402
405
|
EXPOSURE_POINT_ID_UNSPECIFIED = 0;
|
|
403
406
|
EXPOSURE_POINT_ID_SEO_INSTALLATION_PAGE_LOAD = 1;
|
|
404
407
|
EXPOSURE_POINT_ID_MARKETING_INSTALLATION_PAGE_LOAD = 2;
|
|
408
|
+
EXPOSURE_POINT_ID_INVITE_GUILD_RESOLVE = 3;
|
|
405
409
|
}
|
|
406
410
|
|
|
407
411
|
enum Mode {
|
|
@@ -422,6 +426,47 @@ message Experiment {
|
|
|
422
426
|
ELIGIBILITY_PERSISTENCE_OVERRIDES_ONLY = 2;
|
|
423
427
|
}
|
|
424
428
|
|
|
429
|
+
enum PlanStatus {
|
|
430
|
+
PLAN_STATUS_UNSPECIFIED = 0;
|
|
431
|
+
PLAN_STATUS_DRAFT = 1;
|
|
432
|
+
PLAN_STATUS_ACTIVE = 2;
|
|
433
|
+
PLAN_STATUS_PAUSED_MANUAL = 3;
|
|
434
|
+
PLAN_STATUS_PAUSED_HEALTH_CHECK = 4;
|
|
435
|
+
PLAN_STATUS_COMPLETED = 5;
|
|
436
|
+
PLAN_STATUS_CANCELED = 6;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
enum StepStatus {
|
|
440
|
+
STEP_STATUS_UNSPECIFIED = 0;
|
|
441
|
+
STEP_STATUS_PENDING = 1;
|
|
442
|
+
STEP_STATUS_IN_PROGRESS = 2;
|
|
443
|
+
STEP_STATUS_AWAITING_MANUAL_APPROVAL = 3;
|
|
444
|
+
STEP_STATUS_COMPLETED = 4;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
message RampStep {
|
|
448
|
+
int32 target_basis_points = 1;
|
|
449
|
+
optional google.protobuf.Duration hold_duration = 2;
|
|
450
|
+
bool require_manual_approval = 3;
|
|
451
|
+
optional google.protobuf.Timestamp started_at = 4;
|
|
452
|
+
StepStatus status = 5;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
message MeasurementPlan {
|
|
456
|
+
PlanStatus status = 1;
|
|
457
|
+
repeated RampStep ramp_steps = 2;
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
message RolloutPlan {
|
|
461
|
+
PlanStatus status = 1;
|
|
462
|
+
repeated RampStep ramp_steps = 2;
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
message LifecyclePlan {
|
|
466
|
+
optional MeasurementPlan measurement_plan = 1;
|
|
467
|
+
optional RolloutPlan rollout_plan = 2;
|
|
468
|
+
}
|
|
469
|
+
|
|
425
470
|
fixed64 id = 1;
|
|
426
471
|
string name = 2;
|
|
427
472
|
optional google.protobuf.Timestamp created_at = 3;
|
|
@@ -466,4 +511,5 @@ message Experiment {
|
|
|
466
511
|
bool is_managed = 39;
|
|
467
512
|
optional NumberLineSettings number_line_settings = 43;
|
|
468
513
|
EligibilityPersistence eligibility_persistence = 42;
|
|
514
|
+
optional LifecyclePlan lifecycle_plan = 48;
|
|
469
515
|
}
|
|
@@ -37,6 +37,7 @@ message PremiumMarketingComponentProperties {
|
|
|
37
37
|
BUTTON_ACTION_OPEN_PLAN_SELECTION_MODAL = 5;
|
|
38
38
|
BUTTON_ACTION_OPEN_PREMIUM_GROUP_PAYMENT_MODAL = 6;
|
|
39
39
|
BUTTON_ACTION_OPEN_SOCIAL_LAYER_STOREFRONT = 7;
|
|
40
|
+
BUTTON_ACTION_OPEN_GUILD_BOOST_CHECKOUT = 8;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
43
|
message CTAButton {
|
|
@@ -737,6 +738,10 @@ message PremiumMarketingComponentProperties {
|
|
|
737
738
|
DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_ANNOUNCEMENT = 815;
|
|
738
739
|
DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_UPSELL = 816;
|
|
739
740
|
DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817;
|
|
741
|
+
DISMISSIBLE_CONTENT_GUILD_HEADER_COACHMARK = 818;
|
|
742
|
+
DISMISSIBLE_CONTENT_GUILD_BOOST_TAB_BANNER = 819;
|
|
743
|
+
DISMISSIBLE_CONTENT_TINY_BRONCO_SETTINGS = 820;
|
|
744
|
+
DISMISSIBLE_CONTENT_TINY_BRONCO_NOTICE = 821;
|
|
740
745
|
}
|
|
741
746
|
|
|
742
747
|
message MobileBottomSheet {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
import "google/protobuf/wrappers.proto";
|
|
4
|
+
|
|
5
|
+
import "google/protobuf/timestamp.proto";
|
|
6
|
+
|
|
7
|
+
package discord_protos.users.v1;
|
|
8
|
+
|
|
9
|
+
message AgreementsHistory {
|
|
10
|
+
message AgreementAcceptance {
|
|
11
|
+
optional google.protobuf.Timestamp accepted_at = 1;
|
|
12
|
+
optional google.protobuf.StringValue version = 2;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
repeated AgreementAcceptance terms = 1;
|
|
16
|
+
repeated AgreementAcceptance privacy = 2;
|
|
17
|
+
}
|
|
@@ -4,6 +4,7 @@ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
|
4
4
|
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
5
5
|
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
6
6
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
7
|
+
import { Duration } from "../../google/protobuf/duration";
|
|
7
8
|
import { UInt64Value } from "../../google/protobuf/wrappers";
|
|
8
9
|
import { UInt32Value } from "../../google/protobuf/wrappers";
|
|
9
10
|
import { Int32Value } from "../../google/protobuf/wrappers";
|
|
@@ -189,6 +190,10 @@ export interface Experiment {
|
|
|
189
190
|
* @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence eligibility_persistence = 42
|
|
190
191
|
*/
|
|
191
192
|
eligibilityPersistence: Experiment_EligibilityPersistence;
|
|
193
|
+
/**
|
|
194
|
+
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan lifecycle_plan = 48
|
|
195
|
+
*/
|
|
196
|
+
lifecyclePlan?: Experiment_LifecyclePlan;
|
|
192
197
|
}
|
|
193
198
|
/**
|
|
194
199
|
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Bucket
|
|
@@ -239,6 +244,10 @@ export interface Experiment_Variation {
|
|
|
239
244
|
* @generated from protobuf field: fixed64 owning_experiment_id = 7
|
|
240
245
|
*/
|
|
241
246
|
owningExperimentId: bigint;
|
|
247
|
+
/**
|
|
248
|
+
* @generated from protobuf field: int32 owning_slot_id = 8
|
|
249
|
+
*/
|
|
250
|
+
owningSlotId: number;
|
|
242
251
|
}
|
|
243
252
|
/**
|
|
244
253
|
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.PlatformVersionSpecifier
|
|
@@ -1032,6 +1041,70 @@ export interface Experiment_NumberLineSettings {
|
|
|
1032
1041
|
*/
|
|
1033
1042
|
sharedControl: boolean;
|
|
1034
1043
|
}
|
|
1044
|
+
/**
|
|
1045
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.RampStep
|
|
1046
|
+
*/
|
|
1047
|
+
export interface Experiment_RampStep {
|
|
1048
|
+
/**
|
|
1049
|
+
* @generated from protobuf field: int32 target_basis_points = 1
|
|
1050
|
+
*/
|
|
1051
|
+
targetBasisPoints: number;
|
|
1052
|
+
/**
|
|
1053
|
+
* @generated from protobuf field: optional google.protobuf.Duration hold_duration = 2
|
|
1054
|
+
*/
|
|
1055
|
+
holdDuration?: Duration;
|
|
1056
|
+
/**
|
|
1057
|
+
* @generated from protobuf field: bool require_manual_approval = 3
|
|
1058
|
+
*/
|
|
1059
|
+
requireManualApproval: boolean;
|
|
1060
|
+
/**
|
|
1061
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp started_at = 4
|
|
1062
|
+
*/
|
|
1063
|
+
startedAt?: Timestamp;
|
|
1064
|
+
/**
|
|
1065
|
+
* @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.StepStatus status = 5
|
|
1066
|
+
*/
|
|
1067
|
+
status: Experiment_StepStatus;
|
|
1068
|
+
}
|
|
1069
|
+
/**
|
|
1070
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan
|
|
1071
|
+
*/
|
|
1072
|
+
export interface Experiment_MeasurementPlan {
|
|
1073
|
+
/**
|
|
1074
|
+
* @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.PlanStatus status = 1
|
|
1075
|
+
*/
|
|
1076
|
+
status: Experiment_PlanStatus;
|
|
1077
|
+
/**
|
|
1078
|
+
* @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.RampStep ramp_steps = 2
|
|
1079
|
+
*/
|
|
1080
|
+
rampSteps: Experiment_RampStep[];
|
|
1081
|
+
}
|
|
1082
|
+
/**
|
|
1083
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.RolloutPlan
|
|
1084
|
+
*/
|
|
1085
|
+
export interface Experiment_RolloutPlan {
|
|
1086
|
+
/**
|
|
1087
|
+
* @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.PlanStatus status = 1
|
|
1088
|
+
*/
|
|
1089
|
+
status: Experiment_PlanStatus;
|
|
1090
|
+
/**
|
|
1091
|
+
* @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.RampStep ramp_steps = 2
|
|
1092
|
+
*/
|
|
1093
|
+
rampSteps: Experiment_RampStep[];
|
|
1094
|
+
}
|
|
1095
|
+
/**
|
|
1096
|
+
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan
|
|
1097
|
+
*/
|
|
1098
|
+
export interface Experiment_LifecyclePlan {
|
|
1099
|
+
/**
|
|
1100
|
+
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan measurement_plan = 1
|
|
1101
|
+
*/
|
|
1102
|
+
measurementPlan?: Experiment_MeasurementPlan;
|
|
1103
|
+
/**
|
|
1104
|
+
* @generated from protobuf field: optional discord_protos.discord_experimentation.v1.Experiment.RolloutPlan rollout_plan = 2
|
|
1105
|
+
*/
|
|
1106
|
+
rolloutPlan?: Experiment_RolloutPlan;
|
|
1107
|
+
}
|
|
1035
1108
|
/**
|
|
1036
1109
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.UnitType
|
|
1037
1110
|
*/
|
|
@@ -1231,7 +1304,11 @@ export declare enum Experiment_ExposurePointId {
|
|
|
1231
1304
|
/**
|
|
1232
1305
|
* @generated from protobuf enum value: EXPOSURE_POINT_ID_MARKETING_INSTALLATION_PAGE_LOAD = 2;
|
|
1233
1306
|
*/
|
|
1234
|
-
MARKETING_INSTALLATION_PAGE_LOAD = 2
|
|
1307
|
+
MARKETING_INSTALLATION_PAGE_LOAD = 2,
|
|
1308
|
+
/**
|
|
1309
|
+
* @generated from protobuf enum value: EXPOSURE_POINT_ID_INVITE_GUILD_RESOLVE = 3;
|
|
1310
|
+
*/
|
|
1311
|
+
INVITE_GUILD_RESOLVE = 3
|
|
1235
1312
|
}
|
|
1236
1313
|
/**
|
|
1237
1314
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.Mode
|
|
@@ -1267,6 +1344,64 @@ export declare enum Experiment_EligibilityPersistence {
|
|
|
1267
1344
|
*/
|
|
1268
1345
|
OVERRIDES_ONLY = 2
|
|
1269
1346
|
}
|
|
1347
|
+
/**
|
|
1348
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.PlanStatus
|
|
1349
|
+
*/
|
|
1350
|
+
export declare enum Experiment_PlanStatus {
|
|
1351
|
+
/**
|
|
1352
|
+
* @generated from protobuf enum value: PLAN_STATUS_UNSPECIFIED = 0;
|
|
1353
|
+
*/
|
|
1354
|
+
UNSPECIFIED = 0,
|
|
1355
|
+
/**
|
|
1356
|
+
* @generated from protobuf enum value: PLAN_STATUS_DRAFT = 1;
|
|
1357
|
+
*/
|
|
1358
|
+
DRAFT = 1,
|
|
1359
|
+
/**
|
|
1360
|
+
* @generated from protobuf enum value: PLAN_STATUS_ACTIVE = 2;
|
|
1361
|
+
*/
|
|
1362
|
+
ACTIVE = 2,
|
|
1363
|
+
/**
|
|
1364
|
+
* @generated from protobuf enum value: PLAN_STATUS_PAUSED_MANUAL = 3;
|
|
1365
|
+
*/
|
|
1366
|
+
PAUSED_MANUAL = 3,
|
|
1367
|
+
/**
|
|
1368
|
+
* @generated from protobuf enum value: PLAN_STATUS_PAUSED_HEALTH_CHECK = 4;
|
|
1369
|
+
*/
|
|
1370
|
+
PAUSED_HEALTH_CHECK = 4,
|
|
1371
|
+
/**
|
|
1372
|
+
* @generated from protobuf enum value: PLAN_STATUS_COMPLETED = 5;
|
|
1373
|
+
*/
|
|
1374
|
+
COMPLETED = 5,
|
|
1375
|
+
/**
|
|
1376
|
+
* @generated from protobuf enum value: PLAN_STATUS_CANCELED = 6;
|
|
1377
|
+
*/
|
|
1378
|
+
CANCELED = 6
|
|
1379
|
+
}
|
|
1380
|
+
/**
|
|
1381
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.StepStatus
|
|
1382
|
+
*/
|
|
1383
|
+
export declare enum Experiment_StepStatus {
|
|
1384
|
+
/**
|
|
1385
|
+
* @generated from protobuf enum value: STEP_STATUS_UNSPECIFIED = 0;
|
|
1386
|
+
*/
|
|
1387
|
+
UNSPECIFIED = 0,
|
|
1388
|
+
/**
|
|
1389
|
+
* @generated from protobuf enum value: STEP_STATUS_PENDING = 1;
|
|
1390
|
+
*/
|
|
1391
|
+
PENDING = 1,
|
|
1392
|
+
/**
|
|
1393
|
+
* @generated from protobuf enum value: STEP_STATUS_IN_PROGRESS = 2;
|
|
1394
|
+
*/
|
|
1395
|
+
IN_PROGRESS = 2,
|
|
1396
|
+
/**
|
|
1397
|
+
* @generated from protobuf enum value: STEP_STATUS_AWAITING_MANUAL_APPROVAL = 3;
|
|
1398
|
+
*/
|
|
1399
|
+
AWAITING_MANUAL_APPROVAL = 3,
|
|
1400
|
+
/**
|
|
1401
|
+
* @generated from protobuf enum value: STEP_STATUS_COMPLETED = 4;
|
|
1402
|
+
*/
|
|
1403
|
+
COMPLETED = 4
|
|
1404
|
+
}
|
|
1270
1405
|
/**
|
|
1271
1406
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.FilterCategory
|
|
1272
1407
|
*/
|
|
@@ -1799,4 +1934,44 @@ declare class Experiment_NumberLineSettings$Type extends MessageType<Experiment_
|
|
|
1799
1934
|
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.NumberLineSettings
|
|
1800
1935
|
*/
|
|
1801
1936
|
export declare const Experiment_NumberLineSettings: Experiment_NumberLineSettings$Type;
|
|
1937
|
+
declare class Experiment_RampStep$Type extends MessageType<Experiment_RampStep> {
|
|
1938
|
+
constructor();
|
|
1939
|
+
create(value?: PartialMessage<Experiment_RampStep>): Experiment_RampStep;
|
|
1940
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_RampStep): Experiment_RampStep;
|
|
1941
|
+
internalBinaryWrite(message: Experiment_RampStep, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.RampStep
|
|
1945
|
+
*/
|
|
1946
|
+
export declare const Experiment_RampStep: Experiment_RampStep$Type;
|
|
1947
|
+
declare class Experiment_MeasurementPlan$Type extends MessageType<Experiment_MeasurementPlan> {
|
|
1948
|
+
constructor();
|
|
1949
|
+
create(value?: PartialMessage<Experiment_MeasurementPlan>): Experiment_MeasurementPlan;
|
|
1950
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_MeasurementPlan): Experiment_MeasurementPlan;
|
|
1951
|
+
internalBinaryWrite(message: Experiment_MeasurementPlan, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1952
|
+
}
|
|
1953
|
+
/**
|
|
1954
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan
|
|
1955
|
+
*/
|
|
1956
|
+
export declare const Experiment_MeasurementPlan: Experiment_MeasurementPlan$Type;
|
|
1957
|
+
declare class Experiment_RolloutPlan$Type extends MessageType<Experiment_RolloutPlan> {
|
|
1958
|
+
constructor();
|
|
1959
|
+
create(value?: PartialMessage<Experiment_RolloutPlan>): Experiment_RolloutPlan;
|
|
1960
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_RolloutPlan): Experiment_RolloutPlan;
|
|
1961
|
+
internalBinaryWrite(message: Experiment_RolloutPlan, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.RolloutPlan
|
|
1965
|
+
*/
|
|
1966
|
+
export declare const Experiment_RolloutPlan: Experiment_RolloutPlan$Type;
|
|
1967
|
+
declare class Experiment_LifecyclePlan$Type extends MessageType<Experiment_LifecyclePlan> {
|
|
1968
|
+
constructor();
|
|
1969
|
+
create(value?: PartialMessage<Experiment_LifecyclePlan>): Experiment_LifecyclePlan;
|
|
1970
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_LifecyclePlan): Experiment_LifecyclePlan;
|
|
1971
|
+
internalBinaryWrite(message: Experiment_LifecyclePlan, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan
|
|
1975
|
+
*/
|
|
1976
|
+
export declare const Experiment_LifecyclePlan: Experiment_LifecyclePlan$Type;
|
|
1802
1977
|
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.Experiment_NumberLineSettings = exports.Experiment_DebugConfig = exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = exports.Experiment_UserStoreCountry = exports.Experiment_InstallationIds = exports.Experiment_UserIP = exports.Experiment_UserLocation = exports.Experiment_GuildHasFeature = exports.Experiment_GuildMemberCountRange = exports.Experiment_GuildIdRange = void 0;
|
|
3
|
+
exports.Experiment_UserPremiumType = exports.Experiment_UnitIdInExperiment = exports.Experiment_ClientSystemLocale = exports.Experiment_Always = exports.Experiment_ClientReleaseChannel = 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_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_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_Type = exports.Experiment_UnitType = void 0;
|
|
4
|
+
exports.Experiment_LifecyclePlan = exports.Experiment_RolloutPlan = exports.Experiment_MeasurementPlan = exports.Experiment_RampStep = exports.Experiment_NumberLineSettings = exports.Experiment_DebugConfig = exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = 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 = 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");
|
|
8
8
|
const runtime_4 = require("@protobuf-ts/runtime");
|
|
9
|
+
const duration_1 = require("../../google/protobuf/duration");
|
|
9
10
|
const wrappers_1 = require("../../google/protobuf/wrappers");
|
|
10
11
|
const wrappers_2 = require("../../google/protobuf/wrappers");
|
|
11
12
|
const wrappers_3 = require("../../google/protobuf/wrappers");
|
|
@@ -220,6 +221,10 @@ var Experiment_ExposurePointId;
|
|
|
220
221
|
* @generated from protobuf enum value: EXPOSURE_POINT_ID_MARKETING_INSTALLATION_PAGE_LOAD = 2;
|
|
221
222
|
*/
|
|
222
223
|
Experiment_ExposurePointId[Experiment_ExposurePointId["MARKETING_INSTALLATION_PAGE_LOAD"] = 2] = "MARKETING_INSTALLATION_PAGE_LOAD";
|
|
224
|
+
/**
|
|
225
|
+
* @generated from protobuf enum value: EXPOSURE_POINT_ID_INVITE_GUILD_RESOLVE = 3;
|
|
226
|
+
*/
|
|
227
|
+
Experiment_ExposurePointId[Experiment_ExposurePointId["INVITE_GUILD_RESOLVE"] = 3] = "INVITE_GUILD_RESOLVE";
|
|
223
228
|
})(Experiment_ExposurePointId || (exports.Experiment_ExposurePointId = Experiment_ExposurePointId = {}));
|
|
224
229
|
/**
|
|
225
230
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.Mode
|
|
@@ -257,6 +262,66 @@ var Experiment_EligibilityPersistence;
|
|
|
257
262
|
*/
|
|
258
263
|
Experiment_EligibilityPersistence[Experiment_EligibilityPersistence["OVERRIDES_ONLY"] = 2] = "OVERRIDES_ONLY";
|
|
259
264
|
})(Experiment_EligibilityPersistence || (exports.Experiment_EligibilityPersistence = Experiment_EligibilityPersistence = {}));
|
|
265
|
+
/**
|
|
266
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.PlanStatus
|
|
267
|
+
*/
|
|
268
|
+
var Experiment_PlanStatus;
|
|
269
|
+
(function (Experiment_PlanStatus) {
|
|
270
|
+
/**
|
|
271
|
+
* @generated from protobuf enum value: PLAN_STATUS_UNSPECIFIED = 0;
|
|
272
|
+
*/
|
|
273
|
+
Experiment_PlanStatus[Experiment_PlanStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
274
|
+
/**
|
|
275
|
+
* @generated from protobuf enum value: PLAN_STATUS_DRAFT = 1;
|
|
276
|
+
*/
|
|
277
|
+
Experiment_PlanStatus[Experiment_PlanStatus["DRAFT"] = 1] = "DRAFT";
|
|
278
|
+
/**
|
|
279
|
+
* @generated from protobuf enum value: PLAN_STATUS_ACTIVE = 2;
|
|
280
|
+
*/
|
|
281
|
+
Experiment_PlanStatus[Experiment_PlanStatus["ACTIVE"] = 2] = "ACTIVE";
|
|
282
|
+
/**
|
|
283
|
+
* @generated from protobuf enum value: PLAN_STATUS_PAUSED_MANUAL = 3;
|
|
284
|
+
*/
|
|
285
|
+
Experiment_PlanStatus[Experiment_PlanStatus["PAUSED_MANUAL"] = 3] = "PAUSED_MANUAL";
|
|
286
|
+
/**
|
|
287
|
+
* @generated from protobuf enum value: PLAN_STATUS_PAUSED_HEALTH_CHECK = 4;
|
|
288
|
+
*/
|
|
289
|
+
Experiment_PlanStatus[Experiment_PlanStatus["PAUSED_HEALTH_CHECK"] = 4] = "PAUSED_HEALTH_CHECK";
|
|
290
|
+
/**
|
|
291
|
+
* @generated from protobuf enum value: PLAN_STATUS_COMPLETED = 5;
|
|
292
|
+
*/
|
|
293
|
+
Experiment_PlanStatus[Experiment_PlanStatus["COMPLETED"] = 5] = "COMPLETED";
|
|
294
|
+
/**
|
|
295
|
+
* @generated from protobuf enum value: PLAN_STATUS_CANCELED = 6;
|
|
296
|
+
*/
|
|
297
|
+
Experiment_PlanStatus[Experiment_PlanStatus["CANCELED"] = 6] = "CANCELED";
|
|
298
|
+
})(Experiment_PlanStatus || (exports.Experiment_PlanStatus = Experiment_PlanStatus = {}));
|
|
299
|
+
/**
|
|
300
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.StepStatus
|
|
301
|
+
*/
|
|
302
|
+
var Experiment_StepStatus;
|
|
303
|
+
(function (Experiment_StepStatus) {
|
|
304
|
+
/**
|
|
305
|
+
* @generated from protobuf enum value: STEP_STATUS_UNSPECIFIED = 0;
|
|
306
|
+
*/
|
|
307
|
+
Experiment_StepStatus[Experiment_StepStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
308
|
+
/**
|
|
309
|
+
* @generated from protobuf enum value: STEP_STATUS_PENDING = 1;
|
|
310
|
+
*/
|
|
311
|
+
Experiment_StepStatus[Experiment_StepStatus["PENDING"] = 1] = "PENDING";
|
|
312
|
+
/**
|
|
313
|
+
* @generated from protobuf enum value: STEP_STATUS_IN_PROGRESS = 2;
|
|
314
|
+
*/
|
|
315
|
+
Experiment_StepStatus[Experiment_StepStatus["IN_PROGRESS"] = 2] = "IN_PROGRESS";
|
|
316
|
+
/**
|
|
317
|
+
* @generated from protobuf enum value: STEP_STATUS_AWAITING_MANUAL_APPROVAL = 3;
|
|
318
|
+
*/
|
|
319
|
+
Experiment_StepStatus[Experiment_StepStatus["AWAITING_MANUAL_APPROVAL"] = 3] = "AWAITING_MANUAL_APPROVAL";
|
|
320
|
+
/**
|
|
321
|
+
* @generated from protobuf enum value: STEP_STATUS_COMPLETED = 4;
|
|
322
|
+
*/
|
|
323
|
+
Experiment_StepStatus[Experiment_StepStatus["COMPLETED"] = 4] = "COMPLETED";
|
|
324
|
+
})(Experiment_StepStatus || (exports.Experiment_StepStatus = Experiment_StepStatus = {}));
|
|
260
325
|
/**
|
|
261
326
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.FilterCategory
|
|
262
327
|
*/
|
|
@@ -348,7 +413,8 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
348
413
|
{ no: 38, name: "allocate_right_to_left", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
349
414
|
{ no: 39, name: "is_managed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
350
415
|
{ no: 43, name: "number_line_settings", kind: "message", T: () => exports.Experiment_NumberLineSettings },
|
|
351
|
-
{ no: 42, name: "eligibility_persistence", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence", Experiment_EligibilityPersistence, "ELIGIBILITY_PERSISTENCE_"] }
|
|
416
|
+
{ no: 42, name: "eligibility_persistence", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence", Experiment_EligibilityPersistence, "ELIGIBILITY_PERSISTENCE_"] },
|
|
417
|
+
{ no: 48, name: "lifecycle_plan", kind: "message", T: () => exports.Experiment_LifecyclePlan }
|
|
352
418
|
]);
|
|
353
419
|
}
|
|
354
420
|
create(value) {
|
|
@@ -540,6 +606,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
540
606
|
case /* discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence eligibility_persistence */ 42:
|
|
541
607
|
message.eligibilityPersistence = reader.int32();
|
|
542
608
|
break;
|
|
609
|
+
case /* optional discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan lifecycle_plan */ 48:
|
|
610
|
+
message.lifecyclePlan = exports.Experiment_LifecyclePlan.internalBinaryRead(reader, reader.uint32(), options, message.lifecyclePlan);
|
|
611
|
+
break;
|
|
543
612
|
default:
|
|
544
613
|
let u = options.readUnknownField;
|
|
545
614
|
if (u === "throw")
|
|
@@ -696,6 +765,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
696
765
|
/* string dynamic_config_model = 47; */
|
|
697
766
|
if (message.dynamicConfigModel !== "")
|
|
698
767
|
writer.tag(47, runtime_2.WireType.LengthDelimited).string(message.dynamicConfigModel);
|
|
768
|
+
/* optional discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan lifecycle_plan = 48; */
|
|
769
|
+
if (message.lifecyclePlan)
|
|
770
|
+
exports.Experiment_LifecyclePlan.internalBinaryWrite(message.lifecyclePlan, writer.tag(48, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
699
771
|
let u = options.writeUnknownFields;
|
|
700
772
|
if (u !== false)
|
|
701
773
|
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -779,7 +851,8 @@ class Experiment_Variation$Type extends runtime_4.MessageType {
|
|
|
779
851
|
{ no: 4, name: "buckets", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_Bucket },
|
|
780
852
|
{ no: 5, name: "type", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Type", Experiment_Type, "TYPE_"] },
|
|
781
853
|
{ no: 6, name: "configuration", kind: "message", T: () => wrappers_4.StringValue },
|
|
782
|
-
{ no: 7, name: "owning_experiment_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }
|
|
854
|
+
{ no: 7, name: "owning_experiment_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
855
|
+
{ no: 8, name: "owning_slot_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
783
856
|
]);
|
|
784
857
|
}
|
|
785
858
|
create(value) {
|
|
@@ -790,6 +863,7 @@ class Experiment_Variation$Type extends runtime_4.MessageType {
|
|
|
790
863
|
message.buckets = [];
|
|
791
864
|
message.type = 0;
|
|
792
865
|
message.owningExperimentId = 0n;
|
|
866
|
+
message.owningSlotId = 0;
|
|
793
867
|
if (value !== undefined)
|
|
794
868
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
795
869
|
return message;
|
|
@@ -820,6 +894,9 @@ class Experiment_Variation$Type extends runtime_4.MessageType {
|
|
|
820
894
|
case /* fixed64 owning_experiment_id */ 7:
|
|
821
895
|
message.owningExperimentId = reader.fixed64().toBigInt();
|
|
822
896
|
break;
|
|
897
|
+
case /* int32 owning_slot_id */ 8:
|
|
898
|
+
message.owningSlotId = reader.int32();
|
|
899
|
+
break;
|
|
823
900
|
default:
|
|
824
901
|
let u = options.readUnknownField;
|
|
825
902
|
if (u === "throw")
|
|
@@ -853,6 +930,9 @@ class Experiment_Variation$Type extends runtime_4.MessageType {
|
|
|
853
930
|
/* fixed64 owning_experiment_id = 7; */
|
|
854
931
|
if (message.owningExperimentId !== 0n)
|
|
855
932
|
writer.tag(7, runtime_2.WireType.Bit64).fixed64(message.owningExperimentId);
|
|
933
|
+
/* int32 owning_slot_id = 8; */
|
|
934
|
+
if (message.owningSlotId !== 0)
|
|
935
|
+
writer.tag(8, runtime_2.WireType.Varint).int32(message.owningSlotId);
|
|
856
936
|
let u = options.writeUnknownFields;
|
|
857
937
|
if (u !== false)
|
|
858
938
|
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
@@ -3732,3 +3812,243 @@ class Experiment_NumberLineSettings$Type extends runtime_4.MessageType {
|
|
|
3732
3812
|
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.NumberLineSettings
|
|
3733
3813
|
*/
|
|
3734
3814
|
exports.Experiment_NumberLineSettings = new Experiment_NumberLineSettings$Type();
|
|
3815
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3816
|
+
class Experiment_RampStep$Type extends runtime_4.MessageType {
|
|
3817
|
+
constructor() {
|
|
3818
|
+
super("discord_protos.discord_experimentation.v1.Experiment.RampStep", [
|
|
3819
|
+
{ no: 1, name: "target_basis_points", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
|
|
3820
|
+
{ no: 2, name: "hold_duration", kind: "message", T: () => duration_1.Duration },
|
|
3821
|
+
{ no: 3, name: "require_manual_approval", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
3822
|
+
{ no: 4, name: "started_at", kind: "message", T: () => timestamp_1.Timestamp },
|
|
3823
|
+
{ no: 5, name: "status", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.StepStatus", Experiment_StepStatus, "STEP_STATUS_"] }
|
|
3824
|
+
]);
|
|
3825
|
+
}
|
|
3826
|
+
create(value) {
|
|
3827
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3828
|
+
message.targetBasisPoints = 0;
|
|
3829
|
+
message.requireManualApproval = false;
|
|
3830
|
+
message.status = 0;
|
|
3831
|
+
if (value !== undefined)
|
|
3832
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3833
|
+
return message;
|
|
3834
|
+
}
|
|
3835
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3836
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3837
|
+
while (reader.pos < end) {
|
|
3838
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3839
|
+
switch (fieldNo) {
|
|
3840
|
+
case /* int32 target_basis_points */ 1:
|
|
3841
|
+
message.targetBasisPoints = reader.int32();
|
|
3842
|
+
break;
|
|
3843
|
+
case /* optional google.protobuf.Duration hold_duration */ 2:
|
|
3844
|
+
message.holdDuration = duration_1.Duration.internalBinaryRead(reader, reader.uint32(), options, message.holdDuration);
|
|
3845
|
+
break;
|
|
3846
|
+
case /* bool require_manual_approval */ 3:
|
|
3847
|
+
message.requireManualApproval = reader.bool();
|
|
3848
|
+
break;
|
|
3849
|
+
case /* optional google.protobuf.Timestamp started_at */ 4:
|
|
3850
|
+
message.startedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.startedAt);
|
|
3851
|
+
break;
|
|
3852
|
+
case /* discord_protos.discord_experimentation.v1.Experiment.StepStatus status */ 5:
|
|
3853
|
+
message.status = reader.int32();
|
|
3854
|
+
break;
|
|
3855
|
+
default:
|
|
3856
|
+
let u = options.readUnknownField;
|
|
3857
|
+
if (u === "throw")
|
|
3858
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3859
|
+
let d = reader.skip(wireType);
|
|
3860
|
+
if (u !== false)
|
|
3861
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3862
|
+
}
|
|
3863
|
+
}
|
|
3864
|
+
return message;
|
|
3865
|
+
}
|
|
3866
|
+
internalBinaryWrite(message, writer, options) {
|
|
3867
|
+
/* int32 target_basis_points = 1; */
|
|
3868
|
+
if (message.targetBasisPoints !== 0)
|
|
3869
|
+
writer.tag(1, runtime_2.WireType.Varint).int32(message.targetBasisPoints);
|
|
3870
|
+
/* optional google.protobuf.Duration hold_duration = 2; */
|
|
3871
|
+
if (message.holdDuration)
|
|
3872
|
+
duration_1.Duration.internalBinaryWrite(message.holdDuration, writer.tag(2, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
3873
|
+
/* bool require_manual_approval = 3; */
|
|
3874
|
+
if (message.requireManualApproval !== false)
|
|
3875
|
+
writer.tag(3, runtime_2.WireType.Varint).bool(message.requireManualApproval);
|
|
3876
|
+
/* optional google.protobuf.Timestamp started_at = 4; */
|
|
3877
|
+
if (message.startedAt)
|
|
3878
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.startedAt, writer.tag(4, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
3879
|
+
/* discord_protos.discord_experimentation.v1.Experiment.StepStatus status = 5; */
|
|
3880
|
+
if (message.status !== 0)
|
|
3881
|
+
writer.tag(5, runtime_2.WireType.Varint).int32(message.status);
|
|
3882
|
+
let u = options.writeUnknownFields;
|
|
3883
|
+
if (u !== false)
|
|
3884
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3885
|
+
return writer;
|
|
3886
|
+
}
|
|
3887
|
+
}
|
|
3888
|
+
/**
|
|
3889
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.RampStep
|
|
3890
|
+
*/
|
|
3891
|
+
exports.Experiment_RampStep = new Experiment_RampStep$Type();
|
|
3892
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3893
|
+
class Experiment_MeasurementPlan$Type extends runtime_4.MessageType {
|
|
3894
|
+
constructor() {
|
|
3895
|
+
super("discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan", [
|
|
3896
|
+
{ no: 1, name: "status", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.PlanStatus", Experiment_PlanStatus, "PLAN_STATUS_"] },
|
|
3897
|
+
{ no: 2, name: "ramp_steps", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_RampStep }
|
|
3898
|
+
]);
|
|
3899
|
+
}
|
|
3900
|
+
create(value) {
|
|
3901
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3902
|
+
message.status = 0;
|
|
3903
|
+
message.rampSteps = [];
|
|
3904
|
+
if (value !== undefined)
|
|
3905
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3906
|
+
return message;
|
|
3907
|
+
}
|
|
3908
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3909
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3910
|
+
while (reader.pos < end) {
|
|
3911
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3912
|
+
switch (fieldNo) {
|
|
3913
|
+
case /* discord_protos.discord_experimentation.v1.Experiment.PlanStatus status */ 1:
|
|
3914
|
+
message.status = reader.int32();
|
|
3915
|
+
break;
|
|
3916
|
+
case /* repeated discord_protos.discord_experimentation.v1.Experiment.RampStep ramp_steps */ 2:
|
|
3917
|
+
message.rampSteps.push(exports.Experiment_RampStep.internalBinaryRead(reader, reader.uint32(), options));
|
|
3918
|
+
break;
|
|
3919
|
+
default:
|
|
3920
|
+
let u = options.readUnknownField;
|
|
3921
|
+
if (u === "throw")
|
|
3922
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3923
|
+
let d = reader.skip(wireType);
|
|
3924
|
+
if (u !== false)
|
|
3925
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3926
|
+
}
|
|
3927
|
+
}
|
|
3928
|
+
return message;
|
|
3929
|
+
}
|
|
3930
|
+
internalBinaryWrite(message, writer, options) {
|
|
3931
|
+
/* discord_protos.discord_experimentation.v1.Experiment.PlanStatus status = 1; */
|
|
3932
|
+
if (message.status !== 0)
|
|
3933
|
+
writer.tag(1, runtime_2.WireType.Varint).int32(message.status);
|
|
3934
|
+
/* repeated discord_protos.discord_experimentation.v1.Experiment.RampStep ramp_steps = 2; */
|
|
3935
|
+
for (let i = 0; i < message.rampSteps.length; i++)
|
|
3936
|
+
exports.Experiment_RampStep.internalBinaryWrite(message.rampSteps[i], writer.tag(2, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
3937
|
+
let u = options.writeUnknownFields;
|
|
3938
|
+
if (u !== false)
|
|
3939
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3940
|
+
return writer;
|
|
3941
|
+
}
|
|
3942
|
+
}
|
|
3943
|
+
/**
|
|
3944
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan
|
|
3945
|
+
*/
|
|
3946
|
+
exports.Experiment_MeasurementPlan = new Experiment_MeasurementPlan$Type();
|
|
3947
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3948
|
+
class Experiment_RolloutPlan$Type extends runtime_4.MessageType {
|
|
3949
|
+
constructor() {
|
|
3950
|
+
super("discord_protos.discord_experimentation.v1.Experiment.RolloutPlan", [
|
|
3951
|
+
{ no: 1, name: "status", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.PlanStatus", Experiment_PlanStatus, "PLAN_STATUS_"] },
|
|
3952
|
+
{ no: 2, name: "ramp_steps", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_RampStep }
|
|
3953
|
+
]);
|
|
3954
|
+
}
|
|
3955
|
+
create(value) {
|
|
3956
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
3957
|
+
message.status = 0;
|
|
3958
|
+
message.rampSteps = [];
|
|
3959
|
+
if (value !== undefined)
|
|
3960
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
3961
|
+
return message;
|
|
3962
|
+
}
|
|
3963
|
+
internalBinaryRead(reader, length, options, target) {
|
|
3964
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3965
|
+
while (reader.pos < end) {
|
|
3966
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3967
|
+
switch (fieldNo) {
|
|
3968
|
+
case /* discord_protos.discord_experimentation.v1.Experiment.PlanStatus status */ 1:
|
|
3969
|
+
message.status = reader.int32();
|
|
3970
|
+
break;
|
|
3971
|
+
case /* repeated discord_protos.discord_experimentation.v1.Experiment.RampStep ramp_steps */ 2:
|
|
3972
|
+
message.rampSteps.push(exports.Experiment_RampStep.internalBinaryRead(reader, reader.uint32(), options));
|
|
3973
|
+
break;
|
|
3974
|
+
default:
|
|
3975
|
+
let u = options.readUnknownField;
|
|
3976
|
+
if (u === "throw")
|
|
3977
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3978
|
+
let d = reader.skip(wireType);
|
|
3979
|
+
if (u !== false)
|
|
3980
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
return message;
|
|
3984
|
+
}
|
|
3985
|
+
internalBinaryWrite(message, writer, options) {
|
|
3986
|
+
/* discord_protos.discord_experimentation.v1.Experiment.PlanStatus status = 1; */
|
|
3987
|
+
if (message.status !== 0)
|
|
3988
|
+
writer.tag(1, runtime_2.WireType.Varint).int32(message.status);
|
|
3989
|
+
/* repeated discord_protos.discord_experimentation.v1.Experiment.RampStep ramp_steps = 2; */
|
|
3990
|
+
for (let i = 0; i < message.rampSteps.length; i++)
|
|
3991
|
+
exports.Experiment_RampStep.internalBinaryWrite(message.rampSteps[i], writer.tag(2, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
3992
|
+
let u = options.writeUnknownFields;
|
|
3993
|
+
if (u !== false)
|
|
3994
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3995
|
+
return writer;
|
|
3996
|
+
}
|
|
3997
|
+
}
|
|
3998
|
+
/**
|
|
3999
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.RolloutPlan
|
|
4000
|
+
*/
|
|
4001
|
+
exports.Experiment_RolloutPlan = new Experiment_RolloutPlan$Type();
|
|
4002
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
4003
|
+
class Experiment_LifecyclePlan$Type extends runtime_4.MessageType {
|
|
4004
|
+
constructor() {
|
|
4005
|
+
super("discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan", [
|
|
4006
|
+
{ no: 1, name: "measurement_plan", kind: "message", T: () => exports.Experiment_MeasurementPlan },
|
|
4007
|
+
{ no: 2, name: "rollout_plan", kind: "message", T: () => exports.Experiment_RolloutPlan }
|
|
4008
|
+
]);
|
|
4009
|
+
}
|
|
4010
|
+
create(value) {
|
|
4011
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
4012
|
+
if (value !== undefined)
|
|
4013
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
4014
|
+
return message;
|
|
4015
|
+
}
|
|
4016
|
+
internalBinaryRead(reader, length, options, target) {
|
|
4017
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
4018
|
+
while (reader.pos < end) {
|
|
4019
|
+
let [fieldNo, wireType] = reader.tag();
|
|
4020
|
+
switch (fieldNo) {
|
|
4021
|
+
case /* optional discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan measurement_plan */ 1:
|
|
4022
|
+
message.measurementPlan = exports.Experiment_MeasurementPlan.internalBinaryRead(reader, reader.uint32(), options, message.measurementPlan);
|
|
4023
|
+
break;
|
|
4024
|
+
case /* optional discord_protos.discord_experimentation.v1.Experiment.RolloutPlan rollout_plan */ 2:
|
|
4025
|
+
message.rolloutPlan = exports.Experiment_RolloutPlan.internalBinaryRead(reader, reader.uint32(), options, message.rolloutPlan);
|
|
4026
|
+
break;
|
|
4027
|
+
default:
|
|
4028
|
+
let u = options.readUnknownField;
|
|
4029
|
+
if (u === "throw")
|
|
4030
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
4031
|
+
let d = reader.skip(wireType);
|
|
4032
|
+
if (u !== false)
|
|
4033
|
+
(u === true ? runtime_1.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
4034
|
+
}
|
|
4035
|
+
}
|
|
4036
|
+
return message;
|
|
4037
|
+
}
|
|
4038
|
+
internalBinaryWrite(message, writer, options) {
|
|
4039
|
+
/* optional discord_protos.discord_experimentation.v1.Experiment.MeasurementPlan measurement_plan = 1; */
|
|
4040
|
+
if (message.measurementPlan)
|
|
4041
|
+
exports.Experiment_MeasurementPlan.internalBinaryWrite(message.measurementPlan, writer.tag(1, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
4042
|
+
/* optional discord_protos.discord_experimentation.v1.Experiment.RolloutPlan rollout_plan = 2; */
|
|
4043
|
+
if (message.rolloutPlan)
|
|
4044
|
+
exports.Experiment_RolloutPlan.internalBinaryWrite(message.rolloutPlan, writer.tag(2, runtime_2.WireType.LengthDelimited).fork(), options).join();
|
|
4045
|
+
let u = options.writeUnknownFields;
|
|
4046
|
+
if (u !== false)
|
|
4047
|
+
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
4048
|
+
return writer;
|
|
4049
|
+
}
|
|
4050
|
+
}
|
|
4051
|
+
/**
|
|
4052
|
+
* @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.LifecyclePlan
|
|
4053
|
+
*/
|
|
4054
|
+
exports.Experiment_LifecyclePlan = new Experiment_LifecyclePlan$Type();
|
|
@@ -0,0 +1,112 @@
|
|
|
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 type { JsonValue } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { JsonReadOptions } from "@protobuf-ts/runtime";
|
|
8
|
+
import type { JsonWriteOptions } from "@protobuf-ts/runtime";
|
|
9
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
10
|
+
/**
|
|
11
|
+
* A Duration represents a signed, fixed-length span of time represented
|
|
12
|
+
* as a count of seconds and fractions of seconds at nanosecond
|
|
13
|
+
* resolution. It is independent of any calendar and concepts like "day"
|
|
14
|
+
* or "month". It is related to Timestamp in that the difference between
|
|
15
|
+
* two Timestamp values is a Duration and it can be added or subtracted
|
|
16
|
+
* from a Timestamp. Range is approximately +-10,000 years.
|
|
17
|
+
*
|
|
18
|
+
* # Examples
|
|
19
|
+
*
|
|
20
|
+
* Example 1: Compute Duration from two Timestamps in pseudo code.
|
|
21
|
+
*
|
|
22
|
+
* Timestamp start = ...;
|
|
23
|
+
* Timestamp end = ...;
|
|
24
|
+
* Duration duration = ...;
|
|
25
|
+
*
|
|
26
|
+
* duration.seconds = end.seconds - start.seconds;
|
|
27
|
+
* duration.nanos = end.nanos - start.nanos;
|
|
28
|
+
*
|
|
29
|
+
* if (duration.seconds < 0 && duration.nanos > 0) {
|
|
30
|
+
* duration.seconds += 1;
|
|
31
|
+
* duration.nanos -= 1000000000;
|
|
32
|
+
* } else if (duration.seconds > 0 && duration.nanos < 0) {
|
|
33
|
+
* duration.seconds -= 1;
|
|
34
|
+
* duration.nanos += 1000000000;
|
|
35
|
+
* }
|
|
36
|
+
*
|
|
37
|
+
* Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
|
38
|
+
*
|
|
39
|
+
* Timestamp start = ...;
|
|
40
|
+
* Duration duration = ...;
|
|
41
|
+
* Timestamp end = ...;
|
|
42
|
+
*
|
|
43
|
+
* end.seconds = start.seconds + duration.seconds;
|
|
44
|
+
* end.nanos = start.nanos + duration.nanos;
|
|
45
|
+
*
|
|
46
|
+
* if (end.nanos < 0) {
|
|
47
|
+
* end.seconds -= 1;
|
|
48
|
+
* end.nanos += 1000000000;
|
|
49
|
+
* } else if (end.nanos >= 1000000000) {
|
|
50
|
+
* end.seconds += 1;
|
|
51
|
+
* end.nanos -= 1000000000;
|
|
52
|
+
* }
|
|
53
|
+
*
|
|
54
|
+
* Example 3: Compute Duration from datetime.timedelta in Python.
|
|
55
|
+
*
|
|
56
|
+
* td = datetime.timedelta(days=3, minutes=10)
|
|
57
|
+
* duration = Duration()
|
|
58
|
+
* duration.FromTimedelta(td)
|
|
59
|
+
*
|
|
60
|
+
* # JSON Mapping
|
|
61
|
+
*
|
|
62
|
+
* In JSON format, the Duration type is encoded as a string rather than an
|
|
63
|
+
* object, where the string ends in the suffix "s" (indicating seconds) and
|
|
64
|
+
* is preceded by the number of seconds, with nanoseconds expressed as
|
|
65
|
+
* fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
|
66
|
+
* encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
|
67
|
+
* be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
|
68
|
+
* microsecond should be expressed in JSON format as "3.000001s".
|
|
69
|
+
*
|
|
70
|
+
*
|
|
71
|
+
* @generated from protobuf message google.protobuf.Duration
|
|
72
|
+
*/
|
|
73
|
+
export interface Duration {
|
|
74
|
+
/**
|
|
75
|
+
* Signed seconds of the span of time. Must be from -315,576,000,000
|
|
76
|
+
* to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
|
77
|
+
* 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf field: int64 seconds = 1
|
|
80
|
+
*/
|
|
81
|
+
seconds: bigint;
|
|
82
|
+
/**
|
|
83
|
+
* Signed fractions of a second at nanosecond resolution of the span
|
|
84
|
+
* of time. Durations less than one second are represented with a 0
|
|
85
|
+
* `seconds` field and a positive or negative `nanos` field. For durations
|
|
86
|
+
* of one second or more, a non-zero value for the `nanos` field must be
|
|
87
|
+
* of the same sign as the `seconds` field. Must be from -999,999,999
|
|
88
|
+
* to +999,999,999 inclusive.
|
|
89
|
+
*
|
|
90
|
+
* @generated from protobuf field: int32 nanos = 2
|
|
91
|
+
*/
|
|
92
|
+
nanos: number;
|
|
93
|
+
}
|
|
94
|
+
declare class Duration$Type extends MessageType<Duration> {
|
|
95
|
+
constructor();
|
|
96
|
+
/**
|
|
97
|
+
* Encode `Duration` to JSON string like "3.000001s".
|
|
98
|
+
*/
|
|
99
|
+
internalJsonWrite(message: Duration, options: JsonWriteOptions): JsonValue;
|
|
100
|
+
/**
|
|
101
|
+
* Decode `Duration` from JSON string like "3.000001s"
|
|
102
|
+
*/
|
|
103
|
+
internalJsonRead(json: JsonValue, options: JsonReadOptions, target?: Duration): Duration;
|
|
104
|
+
create(value?: PartialMessage<Duration>): Duration;
|
|
105
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Duration): Duration;
|
|
106
|
+
internalBinaryWrite(message: Duration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* @generated MessageType for protobuf message google.protobuf.Duration
|
|
110
|
+
*/
|
|
111
|
+
export declare const Duration: Duration$Type;
|
|
112
|
+
export {};
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Duration = 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
|
+
const runtime_5 = require("@protobuf-ts/runtime");
|
|
9
|
+
const runtime_6 = require("@protobuf-ts/runtime");
|
|
10
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
11
|
+
class Duration$Type extends runtime_6.MessageType {
|
|
12
|
+
constructor() {
|
|
13
|
+
super("google.protobuf.Duration", [
|
|
14
|
+
{ no: 1, name: "seconds", kind: "scalar", T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
15
|
+
{ no: 2, name: "nanos", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Encode `Duration` to JSON string like "3.000001s".
|
|
20
|
+
*/
|
|
21
|
+
internalJsonWrite(message, options) {
|
|
22
|
+
let s = runtime_5.PbLong.from(message.seconds).toNumber();
|
|
23
|
+
if (s > 315576000000 || s < -315576000000)
|
|
24
|
+
throw new Error("Duration value out of range.");
|
|
25
|
+
let text = message.seconds.toString();
|
|
26
|
+
if (s === 0 && message.nanos < 0)
|
|
27
|
+
text = "-" + text;
|
|
28
|
+
if (message.nanos !== 0) {
|
|
29
|
+
let nanosStr = Math.abs(message.nanos).toString();
|
|
30
|
+
nanosStr = "0".repeat(9 - nanosStr.length) + nanosStr;
|
|
31
|
+
if (nanosStr.substring(3) === "000000")
|
|
32
|
+
nanosStr = nanosStr.substring(0, 3);
|
|
33
|
+
else if (nanosStr.substring(6) === "000")
|
|
34
|
+
nanosStr = nanosStr.substring(0, 6);
|
|
35
|
+
text += "." + nanosStr;
|
|
36
|
+
}
|
|
37
|
+
return text + "s";
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Decode `Duration` from JSON string like "3.000001s"
|
|
41
|
+
*/
|
|
42
|
+
internalJsonRead(json, options, target) {
|
|
43
|
+
if (typeof json !== "string")
|
|
44
|
+
throw new Error("Unable to parse Duration from JSON " + (0, runtime_4.typeofJsonValue)(json) + ". Expected string.");
|
|
45
|
+
let match = json.match(/^(-?)([0-9]+)(?:\.([0-9]+))?s/);
|
|
46
|
+
if (match === null)
|
|
47
|
+
throw new Error("Unable to parse Duration from JSON string. Invalid format.");
|
|
48
|
+
if (!target)
|
|
49
|
+
target = this.create();
|
|
50
|
+
let [, sign, secs, nanos] = match;
|
|
51
|
+
let longSeconds = runtime_5.PbLong.from(sign + secs);
|
|
52
|
+
if (longSeconds.toNumber() > 315576000000 || longSeconds.toNumber() < -315576000000)
|
|
53
|
+
throw new Error("Unable to parse Duration from JSON string. Value out of range.");
|
|
54
|
+
target.seconds = longSeconds.toBigInt();
|
|
55
|
+
if (typeof nanos == "string") {
|
|
56
|
+
let nanosStr = sign + nanos + "0".repeat(9 - nanos.length);
|
|
57
|
+
target.nanos = parseInt(nanosStr);
|
|
58
|
+
}
|
|
59
|
+
return target;
|
|
60
|
+
}
|
|
61
|
+
create(value) {
|
|
62
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
63
|
+
message.seconds = 0n;
|
|
64
|
+
message.nanos = 0;
|
|
65
|
+
if (value !== undefined)
|
|
66
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
67
|
+
return message;
|
|
68
|
+
}
|
|
69
|
+
internalBinaryRead(reader, length, options, target) {
|
|
70
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
71
|
+
while (reader.pos < end) {
|
|
72
|
+
let [fieldNo, wireType] = reader.tag();
|
|
73
|
+
switch (fieldNo) {
|
|
74
|
+
case /* int64 seconds */ 1:
|
|
75
|
+
message.seconds = reader.int64().toBigInt();
|
|
76
|
+
break;
|
|
77
|
+
case /* int32 nanos */ 2:
|
|
78
|
+
message.nanos = reader.int32();
|
|
79
|
+
break;
|
|
80
|
+
default:
|
|
81
|
+
let u = options.readUnknownField;
|
|
82
|
+
if (u === "throw")
|
|
83
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
84
|
+
let d = reader.skip(wireType);
|
|
85
|
+
if (u !== false)
|
|
86
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
return message;
|
|
90
|
+
}
|
|
91
|
+
internalBinaryWrite(message, writer, options) {
|
|
92
|
+
/* int64 seconds = 1; */
|
|
93
|
+
if (message.seconds !== 0n)
|
|
94
|
+
writer.tag(1, runtime_1.WireType.Varint).int64(message.seconds);
|
|
95
|
+
/* int32 nanos = 2; */
|
|
96
|
+
if (message.nanos !== 0)
|
|
97
|
+
writer.tag(2, runtime_1.WireType.Varint).int32(message.nanos);
|
|
98
|
+
let u = options.writeUnknownFields;
|
|
99
|
+
if (u !== false)
|
|
100
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
101
|
+
return writer;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @generated MessageType for protobuf message google.protobuf.Duration
|
|
106
|
+
*/
|
|
107
|
+
exports.Duration = new Duration$Type();
|
|
@@ -1223,7 +1223,11 @@ export declare enum PremiumMarketingComponentProperties_ButtonAction {
|
|
|
1223
1223
|
/**
|
|
1224
1224
|
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_SOCIAL_LAYER_STOREFRONT = 7;
|
|
1225
1225
|
*/
|
|
1226
|
-
OPEN_SOCIAL_LAYER_STOREFRONT = 7
|
|
1226
|
+
OPEN_SOCIAL_LAYER_STOREFRONT = 7,
|
|
1227
|
+
/**
|
|
1228
|
+
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_GUILD_BOOST_CHECKOUT = 8;
|
|
1229
|
+
*/
|
|
1230
|
+
OPEN_GUILD_BOOST_CHECKOUT = 8
|
|
1227
1231
|
}
|
|
1228
1232
|
/**
|
|
1229
1233
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButtonVariant
|
|
@@ -3701,7 +3705,23 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
|
|
|
3701
3705
|
/**
|
|
3702
3706
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817;
|
|
3703
3707
|
*/
|
|
3704
|
-
NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817
|
|
3708
|
+
NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817,
|
|
3709
|
+
/**
|
|
3710
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_HEADER_COACHMARK = 818;
|
|
3711
|
+
*/
|
|
3712
|
+
GUILD_HEADER_COACHMARK = 818,
|
|
3713
|
+
/**
|
|
3714
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_BOOST_TAB_BANNER = 819;
|
|
3715
|
+
*/
|
|
3716
|
+
GUILD_BOOST_TAB_BANNER = 819,
|
|
3717
|
+
/**
|
|
3718
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_TINY_BRONCO_SETTINGS = 820;
|
|
3719
|
+
*/
|
|
3720
|
+
TINY_BRONCO_SETTINGS = 820,
|
|
3721
|
+
/**
|
|
3722
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_TINY_BRONCO_NOTICE = 821;
|
|
3723
|
+
*/
|
|
3724
|
+
TINY_BRONCO_NOTICE = 821
|
|
3705
3725
|
}
|
|
3706
3726
|
/**
|
|
3707
3727
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -43,6 +43,10 @@ var PremiumMarketingComponentProperties_ButtonAction;
|
|
|
43
43
|
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_SOCIAL_LAYER_STOREFRONT = 7;
|
|
44
44
|
*/
|
|
45
45
|
PremiumMarketingComponentProperties_ButtonAction[PremiumMarketingComponentProperties_ButtonAction["OPEN_SOCIAL_LAYER_STOREFRONT"] = 7] = "OPEN_SOCIAL_LAYER_STOREFRONT";
|
|
46
|
+
/**
|
|
47
|
+
* @generated from protobuf enum value: BUTTON_ACTION_OPEN_GUILD_BOOST_CHECKOUT = 8;
|
|
48
|
+
*/
|
|
49
|
+
PremiumMarketingComponentProperties_ButtonAction[PremiumMarketingComponentProperties_ButtonAction["OPEN_GUILD_BOOST_CHECKOUT"] = 8] = "OPEN_GUILD_BOOST_CHECKOUT";
|
|
46
50
|
})(PremiumMarketingComponentProperties_ButtonAction || (exports.PremiumMarketingComponentProperties_ButtonAction = PremiumMarketingComponentProperties_ButtonAction = {}));
|
|
47
51
|
/**
|
|
48
52
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.MarketingPageBannerButtonVariant
|
|
@@ -2523,6 +2527,22 @@ var PremiumMarketingComponentProperties_DismissibleContent;
|
|
|
2523
2527
|
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_NITRO_FILE_UPLOAD_1GB_NEW_BADGE = 817;
|
|
2524
2528
|
*/
|
|
2525
2529
|
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["NITRO_FILE_UPLOAD_1GB_NEW_BADGE"] = 817] = "NITRO_FILE_UPLOAD_1GB_NEW_BADGE";
|
|
2530
|
+
/**
|
|
2531
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_HEADER_COACHMARK = 818;
|
|
2532
|
+
*/
|
|
2533
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["GUILD_HEADER_COACHMARK"] = 818] = "GUILD_HEADER_COACHMARK";
|
|
2534
|
+
/**
|
|
2535
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_GUILD_BOOST_TAB_BANNER = 819;
|
|
2536
|
+
*/
|
|
2537
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["GUILD_BOOST_TAB_BANNER"] = 819] = "GUILD_BOOST_TAB_BANNER";
|
|
2538
|
+
/**
|
|
2539
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_TINY_BRONCO_SETTINGS = 820;
|
|
2540
|
+
*/
|
|
2541
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["TINY_BRONCO_SETTINGS"] = 820] = "TINY_BRONCO_SETTINGS";
|
|
2542
|
+
/**
|
|
2543
|
+
* @generated from protobuf enum value: DISMISSIBLE_CONTENT_TINY_BRONCO_NOTICE = 821;
|
|
2544
|
+
*/
|
|
2545
|
+
PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["TINY_BRONCO_NOTICE"] = 821] = "TINY_BRONCO_NOTICE";
|
|
2526
2546
|
})(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
|
|
2527
2547
|
/**
|
|
2528
2548
|
* @generated from protobuf enum discord_protos.premium_marketing.v1.PremiumMarketingComponentProperties.AssetVariant
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
import { StringValue } from "../../google/protobuf/wrappers";
|
|
8
|
+
import { Timestamp } from "../../google/protobuf/timestamp";
|
|
9
|
+
/**
|
|
10
|
+
* @generated from protobuf message discord_protos.users.v1.AgreementsHistory
|
|
11
|
+
*/
|
|
12
|
+
export interface AgreementsHistory {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from protobuf field: repeated discord_protos.users.v1.AgreementsHistory.AgreementAcceptance terms = 1
|
|
15
|
+
*/
|
|
16
|
+
terms: AgreementsHistory_AgreementAcceptance[];
|
|
17
|
+
/**
|
|
18
|
+
* @generated from protobuf field: repeated discord_protos.users.v1.AgreementsHistory.AgreementAcceptance privacy = 2
|
|
19
|
+
*/
|
|
20
|
+
privacy: AgreementsHistory_AgreementAcceptance[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf message discord_protos.users.v1.AgreementsHistory.AgreementAcceptance
|
|
24
|
+
*/
|
|
25
|
+
export interface AgreementsHistory_AgreementAcceptance {
|
|
26
|
+
/**
|
|
27
|
+
* @generated from protobuf field: optional google.protobuf.Timestamp accepted_at = 1
|
|
28
|
+
*/
|
|
29
|
+
acceptedAt?: Timestamp;
|
|
30
|
+
/**
|
|
31
|
+
* @generated from protobuf field: optional google.protobuf.StringValue version = 2
|
|
32
|
+
*/
|
|
33
|
+
version?: StringValue;
|
|
34
|
+
}
|
|
35
|
+
declare class AgreementsHistory$Type extends MessageType<AgreementsHistory> {
|
|
36
|
+
constructor();
|
|
37
|
+
create(value?: PartialMessage<AgreementsHistory>): AgreementsHistory;
|
|
38
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AgreementsHistory): AgreementsHistory;
|
|
39
|
+
internalBinaryWrite(message: AgreementsHistory, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.AgreementsHistory
|
|
43
|
+
*/
|
|
44
|
+
export declare const AgreementsHistory: AgreementsHistory$Type;
|
|
45
|
+
declare class AgreementsHistory_AgreementAcceptance$Type extends MessageType<AgreementsHistory_AgreementAcceptance> {
|
|
46
|
+
constructor();
|
|
47
|
+
create(value?: PartialMessage<AgreementsHistory_AgreementAcceptance>): AgreementsHistory_AgreementAcceptance;
|
|
48
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AgreementsHistory_AgreementAcceptance): AgreementsHistory_AgreementAcceptance;
|
|
49
|
+
internalBinaryWrite(message: AgreementsHistory_AgreementAcceptance, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.AgreementsHistory.AgreementAcceptance
|
|
53
|
+
*/
|
|
54
|
+
export declare const AgreementsHistory_AgreementAcceptance: AgreementsHistory_AgreementAcceptance$Type;
|
|
55
|
+
export {};
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AgreementsHistory_AgreementAcceptance = exports.AgreementsHistory = 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
|
+
const wrappers_1 = require("../../google/protobuf/wrappers");
|
|
9
|
+
const timestamp_1 = require("../../google/protobuf/timestamp");
|
|
10
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
11
|
+
class AgreementsHistory$Type extends runtime_4.MessageType {
|
|
12
|
+
constructor() {
|
|
13
|
+
super("discord_protos.users.v1.AgreementsHistory", [
|
|
14
|
+
{ no: 1, name: "terms", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.AgreementsHistory_AgreementAcceptance },
|
|
15
|
+
{ no: 2, name: "privacy", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.AgreementsHistory_AgreementAcceptance }
|
|
16
|
+
]);
|
|
17
|
+
}
|
|
18
|
+
create(value) {
|
|
19
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
20
|
+
message.terms = [];
|
|
21
|
+
message.privacy = [];
|
|
22
|
+
if (value !== undefined)
|
|
23
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
24
|
+
return message;
|
|
25
|
+
}
|
|
26
|
+
internalBinaryRead(reader, length, options, target) {
|
|
27
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
28
|
+
while (reader.pos < end) {
|
|
29
|
+
let [fieldNo, wireType] = reader.tag();
|
|
30
|
+
switch (fieldNo) {
|
|
31
|
+
case /* repeated discord_protos.users.v1.AgreementsHistory.AgreementAcceptance terms */ 1:
|
|
32
|
+
message.terms.push(exports.AgreementsHistory_AgreementAcceptance.internalBinaryRead(reader, reader.uint32(), options));
|
|
33
|
+
break;
|
|
34
|
+
case /* repeated discord_protos.users.v1.AgreementsHistory.AgreementAcceptance privacy */ 2:
|
|
35
|
+
message.privacy.push(exports.AgreementsHistory_AgreementAcceptance.internalBinaryRead(reader, reader.uint32(), options));
|
|
36
|
+
break;
|
|
37
|
+
default:
|
|
38
|
+
let u = options.readUnknownField;
|
|
39
|
+
if (u === "throw")
|
|
40
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
41
|
+
let d = reader.skip(wireType);
|
|
42
|
+
if (u !== false)
|
|
43
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return message;
|
|
47
|
+
}
|
|
48
|
+
internalBinaryWrite(message, writer, options) {
|
|
49
|
+
/* repeated discord_protos.users.v1.AgreementsHistory.AgreementAcceptance terms = 1; */
|
|
50
|
+
for (let i = 0; i < message.terms.length; i++)
|
|
51
|
+
exports.AgreementsHistory_AgreementAcceptance.internalBinaryWrite(message.terms[i], writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
52
|
+
/* repeated discord_protos.users.v1.AgreementsHistory.AgreementAcceptance privacy = 2; */
|
|
53
|
+
for (let i = 0; i < message.privacy.length; i++)
|
|
54
|
+
exports.AgreementsHistory_AgreementAcceptance.internalBinaryWrite(message.privacy[i], writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
55
|
+
let u = options.writeUnknownFields;
|
|
56
|
+
if (u !== false)
|
|
57
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
58
|
+
return writer;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.AgreementsHistory
|
|
63
|
+
*/
|
|
64
|
+
exports.AgreementsHistory = new AgreementsHistory$Type();
|
|
65
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
66
|
+
class AgreementsHistory_AgreementAcceptance$Type extends runtime_4.MessageType {
|
|
67
|
+
constructor() {
|
|
68
|
+
super("discord_protos.users.v1.AgreementsHistory.AgreementAcceptance", [
|
|
69
|
+
{ no: 1, name: "accepted_at", kind: "message", T: () => timestamp_1.Timestamp },
|
|
70
|
+
{ no: 2, name: "version", kind: "message", T: () => wrappers_1.StringValue }
|
|
71
|
+
]);
|
|
72
|
+
}
|
|
73
|
+
create(value) {
|
|
74
|
+
const message = globalThis.Object.create((this.messagePrototype));
|
|
75
|
+
if (value !== undefined)
|
|
76
|
+
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
77
|
+
return message;
|
|
78
|
+
}
|
|
79
|
+
internalBinaryRead(reader, length, options, target) {
|
|
80
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
81
|
+
while (reader.pos < end) {
|
|
82
|
+
let [fieldNo, wireType] = reader.tag();
|
|
83
|
+
switch (fieldNo) {
|
|
84
|
+
case /* optional google.protobuf.Timestamp accepted_at */ 1:
|
|
85
|
+
message.acceptedAt = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.acceptedAt);
|
|
86
|
+
break;
|
|
87
|
+
case /* optional google.protobuf.StringValue version */ 2:
|
|
88
|
+
message.version = wrappers_1.StringValue.internalBinaryRead(reader, reader.uint32(), options, message.version);
|
|
89
|
+
break;
|
|
90
|
+
default:
|
|
91
|
+
let u = options.readUnknownField;
|
|
92
|
+
if (u === "throw")
|
|
93
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
94
|
+
let d = reader.skip(wireType);
|
|
95
|
+
if (u !== false)
|
|
96
|
+
(u === true ? runtime_2.UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
}
|
|
101
|
+
internalBinaryWrite(message, writer, options) {
|
|
102
|
+
/* optional google.protobuf.Timestamp accepted_at = 1; */
|
|
103
|
+
if (message.acceptedAt)
|
|
104
|
+
timestamp_1.Timestamp.internalBinaryWrite(message.acceptedAt, writer.tag(1, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
105
|
+
/* optional google.protobuf.StringValue version = 2; */
|
|
106
|
+
if (message.version)
|
|
107
|
+
wrappers_1.StringValue.internalBinaryWrite(message.version, writer.tag(2, runtime_1.WireType.LengthDelimited).fork(), options).join();
|
|
108
|
+
let u = options.writeUnknownFields;
|
|
109
|
+
if (u !== false)
|
|
110
|
+
(u == true ? runtime_2.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
111
|
+
return writer;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* @generated MessageType for protobuf message discord_protos.users.v1.AgreementsHistory.AgreementAcceptance
|
|
116
|
+
*/
|
|
117
|
+
exports.AgreementsHistory_AgreementAcceptance = new AgreementsHistory_AgreementAcceptance$Type();
|
|
@@ -3406,7 +3406,11 @@ export declare enum UserData_AgeAssuranceMethod {
|
|
|
3406
3406
|
/**
|
|
3407
3407
|
* @generated from protobuf enum value: AGE_ASSURANCE_METHOD_OS_SIGNAL_CONFIRMED = 12;
|
|
3408
3408
|
*/
|
|
3409
|
-
OS_SIGNAL_CONFIRMED = 12
|
|
3409
|
+
OS_SIGNAL_CONFIRMED = 12,
|
|
3410
|
+
/**
|
|
3411
|
+
* @generated from protobuf enum value: AGE_ASSURANCE_METHOD_TNS_DETERMINATION = 13;
|
|
3412
|
+
*/
|
|
3413
|
+
TNS_DETERMINATION = 13
|
|
3410
3414
|
}
|
|
3411
3415
|
/**
|
|
3412
3416
|
* @generated from protobuf enum discord_protos.users.v1.UserData.AgeAssuranceVendor
|
|
@@ -2721,6 +2721,10 @@ var UserData_AgeAssuranceMethod;
|
|
|
2721
2721
|
* @generated from protobuf enum value: AGE_ASSURANCE_METHOD_OS_SIGNAL_CONFIRMED = 12;
|
|
2722
2722
|
*/
|
|
2723
2723
|
UserData_AgeAssuranceMethod[UserData_AgeAssuranceMethod["OS_SIGNAL_CONFIRMED"] = 12] = "OS_SIGNAL_CONFIRMED";
|
|
2724
|
+
/**
|
|
2725
|
+
* @generated from protobuf enum value: AGE_ASSURANCE_METHOD_TNS_DETERMINATION = 13;
|
|
2726
|
+
*/
|
|
2727
|
+
UserData_AgeAssuranceMethod[UserData_AgeAssuranceMethod["TNS_DETERMINATION"] = 13] = "TNS_DETERMINATION";
|
|
2724
2728
|
})(UserData_AgeAssuranceMethod || (exports.UserData_AgeAssuranceMethod = UserData_AgeAssuranceMethod = {}));
|
|
2725
2729
|
/**
|
|
2726
2730
|
* @generated from protobuf enum discord_protos.users.v1.UserData.AgeAssuranceVendor
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./discord_protos/users/v1/User";
|
|
|
9
9
|
export * from "./discord_protos/users/v1/MediumUser";
|
|
10
10
|
export * from "./discord_protos/users/v1/UserData";
|
|
11
11
|
export * from "./discord_protos/users/v1/GuildShardingConfig";
|
|
12
|
+
export * from "./discord_protos/users/v1/AgreementsHistory";
|
|
12
13
|
export * from "./discord_protos/discord_experimentation/v1/Experiment";
|
|
13
14
|
export * from "./discord_protos/discord_users/v1/FrecencyUserSettings";
|
|
14
15
|
export * from "./discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection";
|
package/dist/index.js
CHANGED
|
@@ -56,6 +56,7 @@ __exportStar(require("./discord_protos/users/v1/User"), exports);
|
|
|
56
56
|
__exportStar(require("./discord_protos/users/v1/MediumUser"), exports);
|
|
57
57
|
__exportStar(require("./discord_protos/users/v1/UserData"), exports);
|
|
58
58
|
__exportStar(require("./discord_protos/users/v1/GuildShardingConfig"), exports);
|
|
59
|
+
__exportStar(require("./discord_protos/users/v1/AgreementsHistory"), exports);
|
|
59
60
|
__exportStar(require("./discord_protos/discord_experimentation/v1/Experiment"), exports);
|
|
60
61
|
__exportStar(require("./discord_protos/discord_users/v1/FrecencyUserSettings"), exports);
|
|
61
62
|
__exportStar(require("./discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection"), exports);
|