discord-protos 1.2.149 → 1.2.151

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.
@@ -397,4 +397,5 @@ message Experiment {
397
397
  repeated string growthbook_tags = 37 [packed = false];
398
398
  bool allocate_right_to_left = 38;
399
399
  bool is_managed = 39;
400
+ optional google.protobuf.Timestamp rollout_until = 40;
400
401
  }
@@ -611,6 +611,7 @@ message PremiumMarketingComponentProperties {
611
611
  DISMISSIBLE_CONTENT_PREMIUM_MARKETING_MOMENT_NAGBAR_UPSELL = 726;
612
612
  DISMISSIBLE_CONTENT_WISHLISTING_NITRO_TAB_NEW_BADGE = 727;
613
613
  DISMISSIBLE_CONTENT_QUEST_HOME_NEW_QUEST_BADGE = 728;
614
+ DISMISSIBLE_CONTENT_PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE = 729;
614
615
  }
615
616
 
616
617
  message MobileBottomSheet {
@@ -165,6 +165,10 @@ export interface Experiment {
165
165
  * @generated from protobuf field: bool is_managed = 39
166
166
  */
167
167
  isManaged: boolean;
168
+ /**
169
+ * @generated from protobuf field: optional google.protobuf.Timestamp rollout_until = 40
170
+ */
171
+ rolloutUntil?: Timestamp;
168
172
  }
169
173
  /**
170
174
  * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Bucket
@@ -262,7 +262,8 @@ class Experiment$Type extends runtime_4.MessageType {
262
262
  { no: 36, name: "custom_unit_prefix", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.CustomUnitPrefix", Experiment_CustomUnitPrefix, "CUSTOM_UNIT_PREFIX_"] },
263
263
  { no: 37, name: "growthbook_tags", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
264
264
  { no: 38, name: "allocate_right_to_left", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
265
- { no: 39, name: "is_managed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
265
+ { no: 39, name: "is_managed", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
266
+ { no: 40, name: "rollout_until", kind: "message", T: () => timestamp_1.Timestamp }
266
267
  ]);
267
268
  }
268
269
  create(value) {
@@ -428,6 +429,9 @@ class Experiment$Type extends runtime_4.MessageType {
428
429
  case /* bool is_managed */ 39:
429
430
  message.isManaged = reader.bool();
430
431
  break;
432
+ case /* optional google.protobuf.Timestamp rollout_until */ 40:
433
+ message.rolloutUntil = timestamp_1.Timestamp.internalBinaryRead(reader, reader.uint32(), options, message.rolloutUntil);
434
+ break;
431
435
  default:
432
436
  let u = options.readUnknownField;
433
437
  if (u === "throw")
@@ -562,6 +566,9 @@ class Experiment$Type extends runtime_4.MessageType {
562
566
  /* bool is_managed = 39; */
563
567
  if (message.isManaged !== false)
564
568
  writer.tag(39, runtime_2.WireType.Varint).bool(message.isManaged);
569
+ /* optional google.protobuf.Timestamp rollout_until = 40; */
570
+ if (message.rolloutUntil)
571
+ timestamp_1.Timestamp.internalBinaryWrite(message.rolloutUntil, writer.tag(40, runtime_2.WireType.LengthDelimited).fork(), options).join();
565
572
  let u = options.writeUnknownFields;
566
573
  if (u !== false)
567
574
  (u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
@@ -2813,7 +2813,11 @@ export declare enum PremiumMarketingComponentProperties_DismissibleContent {
2813
2813
  /**
2814
2814
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_QUEST_HOME_NEW_QUEST_BADGE = 728;
2815
2815
  */
2816
- QUEST_HOME_NEW_QUEST_BADGE = 728
2816
+ QUEST_HOME_NEW_QUEST_BADGE = 728,
2817
+ /**
2818
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE = 729;
2819
+ */
2820
+ PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE = 729
2817
2821
  }
2818
2822
  declare class PremiumMarketingComponentProperties$Type extends MessageType<PremiumMarketingComponentProperties> {
2819
2823
  constructor();
@@ -2148,6 +2148,10 @@ var PremiumMarketingComponentProperties_DismissibleContent;
2148
2148
  * @generated from protobuf enum value: DISMISSIBLE_CONTENT_QUEST_HOME_NEW_QUEST_BADGE = 728;
2149
2149
  */
2150
2150
  PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["QUEST_HOME_NEW_QUEST_BADGE"] = 728] = "QUEST_HOME_NEW_QUEST_BADGE";
2151
+ /**
2152
+ * @generated from protobuf enum value: DISMISSIBLE_CONTENT_PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE = 729;
2153
+ */
2154
+ PremiumMarketingComponentProperties_DismissibleContent[PremiumMarketingComponentProperties_DismissibleContent["PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE"] = 729] = "PREMIUM_MARKETING_MOMENT_USER_SETTINGS_OFFER_BADGE";
2151
2155
  })(PremiumMarketingComponentProperties_DismissibleContent || (exports.PremiumMarketingComponentProperties_DismissibleContent = PremiumMarketingComponentProperties_DismissibleContent = {}));
2152
2156
  // @generated message type with reflection information, may provide speed optimized methods
2153
2157
  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.149",
3
+ "version": "1.2.151",
4
4
  "description": "A parser for Discord's protobufs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",