discord-protos 1.2.206 → 1.2.207
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 +7 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.d.ts +21 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.js +29 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -382,6 +382,12 @@ message Experiment {
|
|
|
382
382
|
CUSTOM_UNIT_PREFIX_SEO_URL_SLUG = 1;
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
+
enum EligibilityPersistence {
|
|
386
|
+
ELIGIBILITY_PERSISTENCE_DEFAULT = 0;
|
|
387
|
+
ELIGIBILITY_PERSISTENCE_OFF = 1;
|
|
388
|
+
ELIGIBILITY_PERSISTENCE_OVERRIDES_ONLY = 2;
|
|
389
|
+
}
|
|
390
|
+
|
|
385
391
|
fixed64 id = 1;
|
|
386
392
|
string name = 2;
|
|
387
393
|
optional google.protobuf.Timestamp created_at = 3;
|
|
@@ -421,4 +427,5 @@ message Experiment {
|
|
|
421
427
|
bool allocate_right_to_left = 38;
|
|
422
428
|
bool is_managed = 39;
|
|
423
429
|
fixed64 number_line_id = 41;
|
|
430
|
+
EligibilityPersistence eligibility_persistence = 42;
|
|
424
431
|
}
|
|
@@ -169,6 +169,10 @@ export interface Experiment {
|
|
|
169
169
|
* @generated from protobuf field: fixed64 number_line_id = 41
|
|
170
170
|
*/
|
|
171
171
|
numberLineId: bigint;
|
|
172
|
+
/**
|
|
173
|
+
* @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence eligibility_persistence = 42
|
|
174
|
+
*/
|
|
175
|
+
eligibilityPersistence: Experiment_EligibilityPersistence;
|
|
172
176
|
}
|
|
173
177
|
/**
|
|
174
178
|
* @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Bucket
|
|
@@ -1141,6 +1145,23 @@ export declare enum Experiment_CustomUnitPrefix {
|
|
|
1141
1145
|
*/
|
|
1142
1146
|
SEO_URL_SLUG = 1
|
|
1143
1147
|
}
|
|
1148
|
+
/**
|
|
1149
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence
|
|
1150
|
+
*/
|
|
1151
|
+
export declare enum Experiment_EligibilityPersistence {
|
|
1152
|
+
/**
|
|
1153
|
+
* @generated from protobuf enum value: ELIGIBILITY_PERSISTENCE_DEFAULT = 0;
|
|
1154
|
+
*/
|
|
1155
|
+
DEFAULT = 0,
|
|
1156
|
+
/**
|
|
1157
|
+
* @generated from protobuf enum value: ELIGIBILITY_PERSISTENCE_OFF = 1;
|
|
1158
|
+
*/
|
|
1159
|
+
OFF = 1,
|
|
1160
|
+
/**
|
|
1161
|
+
* @generated from protobuf enum value: ELIGIBILITY_PERSISTENCE_OVERRIDES_ONLY = 2;
|
|
1162
|
+
*/
|
|
1163
|
+
OVERRIDES_ONLY = 2
|
|
1164
|
+
}
|
|
1144
1165
|
/**
|
|
1145
1166
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.FilterCategory
|
|
1146
1167
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.Experiment_DebugConfig = exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = exports.Experiment_InstallationIds = exports.Experiment_UserIP = void 0;
|
|
3
|
+
exports.Experiment_GuildHasFeature = exports.Experiment_GuildMemberCountRange = 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 = 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_EligibilityPersistence = 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_DebugConfig = exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = exports.Experiment_InstallationIds = exports.Experiment_UserIP = exports.Experiment_UserLocation = 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");
|
|
@@ -199,6 +199,24 @@ var Experiment_CustomUnitPrefix;
|
|
|
199
199
|
*/
|
|
200
200
|
Experiment_CustomUnitPrefix[Experiment_CustomUnitPrefix["SEO_URL_SLUG"] = 1] = "SEO_URL_SLUG";
|
|
201
201
|
})(Experiment_CustomUnitPrefix || (exports.Experiment_CustomUnitPrefix = Experiment_CustomUnitPrefix = {}));
|
|
202
|
+
/**
|
|
203
|
+
* @generated from protobuf enum discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence
|
|
204
|
+
*/
|
|
205
|
+
var Experiment_EligibilityPersistence;
|
|
206
|
+
(function (Experiment_EligibilityPersistence) {
|
|
207
|
+
/**
|
|
208
|
+
* @generated from protobuf enum value: ELIGIBILITY_PERSISTENCE_DEFAULT = 0;
|
|
209
|
+
*/
|
|
210
|
+
Experiment_EligibilityPersistence[Experiment_EligibilityPersistence["DEFAULT"] = 0] = "DEFAULT";
|
|
211
|
+
/**
|
|
212
|
+
* @generated from protobuf enum value: ELIGIBILITY_PERSISTENCE_OFF = 1;
|
|
213
|
+
*/
|
|
214
|
+
Experiment_EligibilityPersistence[Experiment_EligibilityPersistence["OFF"] = 1] = "OFF";
|
|
215
|
+
/**
|
|
216
|
+
* @generated from protobuf enum value: ELIGIBILITY_PERSISTENCE_OVERRIDES_ONLY = 2;
|
|
217
|
+
*/
|
|
218
|
+
Experiment_EligibilityPersistence[Experiment_EligibilityPersistence["OVERRIDES_ONLY"] = 2] = "OVERRIDES_ONLY";
|
|
219
|
+
})(Experiment_EligibilityPersistence || (exports.Experiment_EligibilityPersistence = Experiment_EligibilityPersistence = {}));
|
|
202
220
|
/**
|
|
203
221
|
* @generated from protobuf enum discord_protos.discord_experimentation.v1.FilterCategory
|
|
204
222
|
*/
|
|
@@ -285,7 +303,8 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
285
303
|
{ no: 37, name: "growthbook_tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
|
|
286
304
|
{ no: 38, name: "allocate_right_to_left", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
287
305
|
{ no: 39, name: "is_managed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
|
|
288
|
-
{ no: 41, name: "number_line_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }
|
|
306
|
+
{ no: 41, name: "number_line_id", kind: "scalar", T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ },
|
|
307
|
+
{ no: 42, name: "eligibility_persistence", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence", Experiment_EligibilityPersistence, "ELIGIBILITY_PERSISTENCE_"] }
|
|
289
308
|
]);
|
|
290
309
|
}
|
|
291
310
|
create(value) {
|
|
@@ -321,6 +340,7 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
321
340
|
message.allocateRightToLeft = false;
|
|
322
341
|
message.isManaged = false;
|
|
323
342
|
message.numberLineId = 0n;
|
|
343
|
+
message.eligibilityPersistence = 0;
|
|
324
344
|
if (value !== undefined)
|
|
325
345
|
(0, runtime_3.reflectionMergePartial)(this, message, value);
|
|
326
346
|
return message;
|
|
@@ -455,6 +475,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
455
475
|
case /* fixed64 number_line_id */ 41:
|
|
456
476
|
message.numberLineId = reader.fixed64().toBigInt();
|
|
457
477
|
break;
|
|
478
|
+
case /* discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence eligibility_persistence */ 42:
|
|
479
|
+
message.eligibilityPersistence = reader.int32();
|
|
480
|
+
break;
|
|
458
481
|
default:
|
|
459
482
|
let u = options.readUnknownField;
|
|
460
483
|
if (u === "throw")
|
|
@@ -592,6 +615,9 @@ class Experiment$Type extends runtime_4.MessageType {
|
|
|
592
615
|
/* fixed64 number_line_id = 41; */
|
|
593
616
|
if (message.numberLineId !== 0n)
|
|
594
617
|
writer.tag(41, runtime_2.WireType.Bit64).fixed64(message.numberLineId);
|
|
618
|
+
/* discord_protos.discord_experimentation.v1.Experiment.EligibilityPersistence eligibility_persistence = 42; */
|
|
619
|
+
if (message.eligibilityPersistence !== 0)
|
|
620
|
+
writer.tag(42, runtime_2.WireType.Varint).int32(message.eligibilityPersistence);
|
|
595
621
|
let u = options.writeUnknownFields;
|
|
596
622
|
if (u !== false)
|
|
597
623
|
(u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
package/dist/index.d.ts
CHANGED
|
@@ -4,12 +4,12 @@ declare module "@protobuf-ts/runtime" {
|
|
|
4
4
|
fromBase64(base64: string): T;
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
|
+
export * from "./discord_protos/discord_users/v1/PreloadedUserSettings";
|
|
7
8
|
export * from "./discord_protos/users/v1/User";
|
|
8
9
|
export * from "./discord_protos/users/v1/MediumUser";
|
|
9
10
|
export * from "./discord_protos/users/v1/UserData";
|
|
10
11
|
export * from "./discord_protos/users/v1/GuildShardingConfig";
|
|
11
12
|
export * from "./discord_protos/discord_experimentation/v1/Experiment";
|
|
12
|
-
export * from "./discord_protos/discord_users/v1/PreloadedUserSettings";
|
|
13
13
|
export * from "./discord_protos/discord_users/v1/FrecencyUserSettings";
|
|
14
14
|
export * from "./discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection";
|
|
15
15
|
export * from "./discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures";
|
package/dist/index.js
CHANGED
|
@@ -51,12 +51,12 @@ function fromBase64(base64) {
|
|
|
51
51
|
}
|
|
52
52
|
runtime_1.MessageType.prototype.fromBase64 = fromBase64;
|
|
53
53
|
runtime_1.MessageType.prototype.toBase64 = toBase64;
|
|
54
|
+
__exportStar(require("./discord_protos/discord_users/v1/PreloadedUserSettings"), exports);
|
|
54
55
|
__exportStar(require("./discord_protos/users/v1/User"), exports);
|
|
55
56
|
__exportStar(require("./discord_protos/users/v1/MediumUser"), exports);
|
|
56
57
|
__exportStar(require("./discord_protos/users/v1/UserData"), exports);
|
|
57
58
|
__exportStar(require("./discord_protos/users/v1/GuildShardingConfig"), exports);
|
|
58
59
|
__exportStar(require("./discord_protos/discord_experimentation/v1/Experiment"), exports);
|
|
59
|
-
__exportStar(require("./discord_protos/discord_users/v1/PreloadedUserSettings"), exports);
|
|
60
60
|
__exportStar(require("./discord_protos/discord_users/v1/FrecencyUserSettings"), exports);
|
|
61
61
|
__exportStar(require("./discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection"), exports);
|
|
62
62
|
__exportStar(require("./discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures"), exports);
|