discord-protos 1.2.174 → 1.2.176

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.
@@ -20,6 +20,16 @@ extend google.protobuf.MessageOptions {
20
20
  FilterCategory filter_category = 50000;
21
21
  }
22
22
 
23
+ enum FilterEvaluationMode {
24
+ FILTER_EVALUATION_MODE_UNSPECIFIED = 0;
25
+ FILTER_EVALUATION_MODE_LAZY = 1;
26
+ FILTER_EVALUATION_MODE_STICKY = 2;
27
+ }
28
+
29
+ extend google.protobuf.MessageOptions {
30
+ FilterEvaluationMode filter_evaluation_mode = 50001;
31
+ }
32
+
23
33
  message Experiment {
24
34
  enum UnitType {
25
35
  UNIT_TYPE_UNSPECIFIED = 0;
@@ -240,17 +250,20 @@ message Experiment {
240
250
 
241
251
  message GuildIds {
242
252
  option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_GUILD;
253
+ option (discord_protos.discord_experimentation.v1.filter_evaluation_mode) = FILTER_EVALUATION_MODE_LAZY;
243
254
  repeated fixed64 guild_ids = 1;
244
255
  }
245
256
 
246
257
  message GuildMemberCountRange {
247
258
  option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_GUILD;
259
+ option (discord_protos.discord_experimentation.v1.filter_evaluation_mode) = FILTER_EVALUATION_MODE_STICKY;
248
260
  optional google.protobuf.UInt32Value min_count = 1;
249
261
  optional google.protobuf.UInt32Value max_count = 2;
250
262
  }
251
263
 
252
264
  message GuildHasFeature {
253
265
  option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_GUILD;
266
+ option (discord_protos.discord_experimentation.v1.filter_evaluation_mode) = FILTER_EVALUATION_MODE_STICKY;
254
267
  repeated string features = 1 [packed = false];
255
268
  }
256
269
 
@@ -644,6 +644,7 @@ message PremiumMarketingComponentProperties {
644
644
  DISMISSIBLE_CONTENT_COLLECTIBLES_SHOP_SLAYER_STOREFRONT_PROMOTIONAL_BANNER = 741;
645
645
  DISMISSIBLE_CONTENT_NOTIFICATION_NUDGE_POST_REACTION_BANNER = 742;
646
646
  DISMISSIBLE_CONTENT_NEW_GIFTING_BADGES_COACHMARK = 743;
647
+ DISMISSIBLE_CONTENT_PREMIUM_GROUP_GIFT_SELECTION_UPSELL = 744;
647
648
  }
648
649
 
649
650
  message MobileBottomSheet {
@@ -1150,6 +1150,23 @@ export declare enum FilterCategory {
1150
1150
  */
1151
1151
  UTILITY = 4
1152
1152
  }
1153
+ /**
1154
+ * @generated from protobuf enum discord_protos.discord_experimentation.v1.FilterEvaluationMode
1155
+ */
1156
+ export declare enum FilterEvaluationMode {
1157
+ /**
1158
+ * @generated from protobuf enum value: FILTER_EVALUATION_MODE_UNSPECIFIED = 0;
1159
+ */
1160
+ UNSPECIFIED = 0,
1161
+ /**
1162
+ * @generated from protobuf enum value: FILTER_EVALUATION_MODE_LAZY = 1;
1163
+ */
1164
+ LAZY = 1,
1165
+ /**
1166
+ * @generated from protobuf enum value: FILTER_EVALUATION_MODE_STICKY = 2;
1167
+ */
1168
+ STICKY = 2
1169
+ }
1153
1170
  declare class Experiment$Type extends MessageType<Experiment> {
1154
1171
  constructor();
1155
1172
  create(value?: PartialMessage<Experiment>): Experiment;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Experiment_UserIP = exports.Experiment_UserLocation = 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.FilterCategory = 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 = void 0;
3
+ exports.Experiment_UserLocation = 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_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 = 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");
@@ -221,6 +221,24 @@ var FilterCategory;
221
221
  */
222
222
  FilterCategory[FilterCategory["UTILITY"] = 4] = "UTILITY";
223
223
  })(FilterCategory || (exports.FilterCategory = FilterCategory = {}));
224
+ /**
225
+ * @generated from protobuf enum discord_protos.discord_experimentation.v1.FilterEvaluationMode
226
+ */
227
+ var FilterEvaluationMode;
228
+ (function (FilterEvaluationMode) {
229
+ /**
230
+ * @generated from protobuf enum value: FILTER_EVALUATION_MODE_UNSPECIFIED = 0;
231
+ */
232
+ FilterEvaluationMode[FilterEvaluationMode["UNSPECIFIED"] = 0] = "UNSPECIFIED";
233
+ /**
234
+ * @generated from protobuf enum value: FILTER_EVALUATION_MODE_LAZY = 1;
235
+ */
236
+ FilterEvaluationMode[FilterEvaluationMode["LAZY"] = 1] = "LAZY";
237
+ /**
238
+ * @generated from protobuf enum value: FILTER_EVALUATION_MODE_STICKY = 2;
239
+ */
240
+ FilterEvaluationMode[FilterEvaluationMode["STICKY"] = 2] = "STICKY";
241
+ })(FilterEvaluationMode || (exports.FilterEvaluationMode = FilterEvaluationMode = {}));
224
242
  // @generated message type with reflection information, may provide speed optimized methods
225
243
  class Experiment$Type extends runtime_4.MessageType {
226
244
  constructor() {
@@ -2564,7 +2582,7 @@ class Experiment_GuildIds$Type extends runtime_4.MessageType {
2564
2582
  constructor() {
2565
2583
  super("discord_protos.discord_experimentation.v1.Experiment.GuildIds", [
2566
2584
  { no: 1, name: "guild_ids", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 6 /*ScalarType.FIXED64*/, L: 0 /*LongType.BIGINT*/ }
2567
- ], { "discord_protos.discord_experimentation.v1.filter_category": "FILTER_CATEGORY_GUILD" });
2585
+ ], { "discord_protos.discord_experimentation.v1.filter_category": "FILTER_CATEGORY_GUILD", "discord_protos.discord_experimentation.v1.filter_evaluation_mode": "FILTER_EVALUATION_MODE_LAZY" });
2568
2586
  }
2569
2587
  create(value) {
2570
2588
  const message = globalThis.Object.create((this.messagePrototype));
@@ -2620,7 +2638,7 @@ class Experiment_GuildMemberCountRange$Type extends runtime_4.MessageType {
2620
2638
  super("discord_protos.discord_experimentation.v1.Experiment.GuildMemberCountRange", [
2621
2639
  { no: 1, name: "min_count", kind: "message", T: () => wrappers_2.UInt32Value },
2622
2640
  { no: 2, name: "max_count", kind: "message", T: () => wrappers_2.UInt32Value }
2623
- ], { "discord_protos.discord_experimentation.v1.filter_category": "FILTER_CATEGORY_GUILD" });
2641
+ ], { "discord_protos.discord_experimentation.v1.filter_category": "FILTER_CATEGORY_GUILD", "discord_protos.discord_experimentation.v1.filter_evaluation_mode": "FILTER_EVALUATION_MODE_STICKY" });
2624
2642
  }
2625
2643
  create(value) {
2626
2644
  const message = globalThis.Object.create((this.messagePrototype));
@@ -2672,7 +2690,7 @@ class Experiment_GuildHasFeature$Type extends runtime_4.MessageType {
2672
2690
  constructor() {
2673
2691
  super("discord_protos.discord_experimentation.v1.Experiment.GuildHasFeature", [
2674
2692
  { no: 1, name: "features", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
2675
- ], { "discord_protos.discord_experimentation.v1.filter_category": "FILTER_CATEGORY_GUILD" });
2693
+ ], { "discord_protos.discord_experimentation.v1.filter_category": "FILTER_CATEGORY_GUILD", "discord_protos.discord_experimentation.v1.filter_evaluation_mode": "FILTER_EVALUATION_MODE_STICKY" });
2676
2694
  }
2677
2695
  create(value) {
2678
2696
  const message = globalThis.Object.create((this.messagePrototype));
@@ -2947,7 +2947,11 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
2947
2947
  /**
2948
2948
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_NEW_GIFTING_BADGES_COACHMARK = 743;
2949
2949
  */
2950
- NEW_GIFTING_BADGES_COACHMARK = 743
2950
+ NEW_GIFTING_BADGES_COACHMARK = 743,
2951
+ /**
2952
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_PREMIUM_GROUP_GIFT_SELECTION_UPSELL = 744;
2953
+ */
2954
+ PREMIUM_GROUP_GIFT_SELECTION_UPSELL = 744
2951
2955
  }
2952
2956
  declare class PremiumMarketingComponentProperties$Type extends MessageType<PremiumMarketingComponentProperties> {
2953
2957
  constructor();
@@ -2208,6 +2208,10 @@ var PremiumMarketingComponentProperties_DismissibleContent;
2208
2208
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_NEW_GIFTING_BADGES_COACHMARK = 743;
2209
2209
  */
2210
2210
  PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["NEW_GIFTING_BADGES_COACHMARK"] = 743] = "NEW_GIFTING_BADGES_COACHMARK";
2211
+ /**
2212
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_PREMIUM_GROUP_GIFT_SELECTION_UPSELL = 744;
2213
+ */
2214
+ PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["PREMIUM_GROUP_GIFT_SELECTION_UPSELL"] = 744] = "PREMIUM_GROUP_GIFT_SELECTION_UPSELL";
2211
2215
  })(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
2212
2216
  // @generated message type with reflection information, may provide speed optimized methods
2213
2217
  class PremiumMarketingComponentProperties$Type extends runtime_4.MessageType {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-protos",
3
- "version": "1.2.174",
3
+ "version": "1.2.176",
4
4
  "description": "A parser for Discord's protobufs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",