discord-protos 1.2.56 → 1.2.57

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.
@@ -3,7 +3,7 @@ from __future__ import annotations
3
3
  from enum import Enum as _Enum
4
4
  from typing import TYPE_CHECKING
5
5
 
6
- __version__ = '1.2.56'
6
+ __version__ = '1.2.57'
7
7
 
8
8
  if TYPE_CHECKING:
9
9
  from google.protobuf.message import Message as _Message
@@ -224,6 +224,7 @@ message Experiment {
224
224
  SURFACE_UNSPECIFIED = 0;
225
225
  SURFACE_API = 1;
226
226
  SURFACE_APP = 2;
227
+ SURFACE_DEVELOPER_PORTAL = 3;
227
228
  }
228
229
 
229
230
  enum ExposureTracking {
@@ -26,7 +26,7 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb
26
26
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
27
27
 
28
28
 
29
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+discord_experimentation/v1/Experiment.proto\x12)discord_protos.discord_experimentation.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x9c>\n\nExperiment\x12\n\n\x02id\x18\x01 \x01(\x06\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x33\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12\x12\n\ncreator_id\x18\x04 \x01(\x06\x12\x0f\n\x07version\x18\x05 \x01(\x05\x12\x32\n\tedited_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\x12\x11\n\teditor_id\x18\x07 \x01(\x06\x12\r\n\x05title\x18\x08 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12\x35\n\nhypothesis\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x02\x88\x01\x01\x12\x39\n\x0etech_spec_link\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x03\x88\x01\x01\x12\x10\n\x08revision\x18\x0c \x01(\x05\x12\x10\n\x08hash_key\x18\r \x01(\t\x12Q\n\tunit_type\x18\x0e \x01(\x0e\x32>.discord_protos.discord_experimentation.v1.Experiment.UnitType\x12S\n\nvariations\x18\x0f \x03(\x0b\x32?.discord_protos.discord_experimentation.v1.Experiment.Variation\x12I\n\x05rules\x18\x10 \x03(\x0b\x32:.discord_protos.discord_experimentation.v1.Experiment.Rule\x12J\n\x05phase\x18\x12 \x01(\x0e\x32;.discord_protos.discord_experimentation.v1.Experiment.Phase\x12O\n\x08surfaces\x18\x13 \x03(\x0e\x32=.discord_protos.discord_experimentation.v1.Experiment.Surface\x12\x18\n\x10owning_team_name\x18\x14 \x01(\t\x12&\n\x1e\x63\x61\x63hed_notification_channel_id\x18\x15 \x01(\x06\x12\x61\n\x11\x65xposure_tracking\x18\x16 \x01(\x0e\x32\x46.discord_protos.discord_experimentation.v1.Experiment.ExposureTracking\x12]\n\x0f\x61ssignment_mode\x18\x19 \x01(\x0e\x32\x44.discord_protos.discord_experimentation.v1.Experiment.AssignmentMode\x12\x1f\n\x17\x65nable_edit_raw_json_ui\x18\x17 \x01(\x08\x12\x1c\n\x14winning_variation_id\x18\x18 \x01(\x05\x1ao\n\x06\x42ucket\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0c\n\x04stop\x18\x02 \x01(\x05\x12H\n\x04type\x18\x03 \x01(\x0e\x32:.discord_protos.discord_experimentation.v1.Experiment.Type\x1a\xda\x01\n\tVariation\x12\n\n\x02id\x18\x01 \x01(\x05\x12\r\n\x05label\x18\x02 \x01(\t\x12\x19\n\x11target_allocation\x18\x03 \x01(\x05\x12M\n\x07\x62uckets\x18\x04 \x03(\x0b\x32<.discord_protos.discord_experimentation.v1.Experiment.Bucket\x12H\n\x04type\x18\x05 \x01(\x0e\x32:.discord_protos.discord_experimentation.v1.Experiment.Type\x1a\xa1\x01\n\x18PlatformVersionSpecifier\x12\r\n\x05major\x18\x01 \x01(\r\x12\x30\n\x05minor\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x00\x88\x01\x01\x12\x30\n\x05\x62uild\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueH\x01\x88\x01\x01\x42\x08\n\x06_minorB\x08\n\x06_build\x1a\xa0\x01\n\x19PlatformVersionRangeBound\x12\x64\n\x07version\x18\x01 \x01(\x0b\x32N.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionSpecifierH\x00\x88\x01\x01\x12\x11\n\tinclusive\x18\x02 \x01(\x08\x42\n\n\x08_version\x1a\x8c\x02\n\x14PlatformVersionRange\x12i\n\x0blower_bound\x18\x01 \x01(\x0b\x32O.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionRangeBoundH\x00\x88\x01\x01\x12i\n\x0bupper_bound\x18\x02 \x01(\x0b\x32O.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionRangeBoundH\x01\x88\x01\x01\x42\x0e\n\x0c_lower_boundB\x0e\n\x0c_upper_bound\x1a\x8c\x01\n\x0fPlatformVersion\x12Z\n\x06ranges\x18\x01 \x03(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionRange\x12\x1d\n\x15work_around_pyoto_bug\x18\x02 \x01(\x08\x1a\xe2\x03\n\x0e\x43lientPlatform\x12_\n\x0bios_version\x18\x01 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x00\x88\x01\x01\x12\x63\n\x0f\x61ndroid_version\x18\x02 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x01\x88\x01\x01\x12_\n\x0bweb_version\x18\x03 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x02\x88\x01\x01\x12\x62\n\x0enative_version\x18\x04 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x03\x88\x01\x01\x42\x0e\n\x0c_ios_versionB\x12\n\x10_android_versionB\x0e\n\x0c_web_versionB\x11\n\x0f_native_version\x1a&\n\x13SDKVersionSpecifier\x12\x0f\n\x07version\x18\x01 \x01(\x05\x1a\x96\x01\n\x14SDKVersionRangeBound\x12_\n\x07version\x18\x01 \x01(\x0b\x32I.discord_protos.discord_experimentation.v1.Experiment.SDKVersionSpecifierH\x00\x88\x01\x01\x12\x11\n\tinclusive\x18\x02 \x01(\x08\x42\n\n\x08_version\x1a\xfd\x01\n\x0fSDKVersionRange\x12\x64\n\x0blower_bound\x18\x01 \x01(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.SDKVersionRangeBoundH\x00\x88\x01\x01\x12\x64\n\x0bupper_bound\x18\x02 \x01(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.SDKVersionRangeBoundH\x01\x88\x01\x01\x42\x0e\n\x0c_lower_boundB\x0e\n\x0c_upper_bound\x1a\x82\x01\n\nSDKVersion\x12U\n\x06ranges\x18\x01 \x03(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.SDKVersionRange\x12\x1d\n\x15work_around_pyoto_bug\x18\x02 \x01(\x08\x1a\xb5\x06\n\x15\x43lientOperatingSystem\x12Z\n\x0bios_version\x18\x01 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x00\x88\x01\x01\x12^\n\x0f\x61ndroid_version\x18\x02 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x01\x88\x01\x01\x12\\\n\rmacos_version\x18\x03 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x02\x88\x01\x01\x12^\n\x0fwindows_version\x18\x04 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x03\x88\x01\x01\x12\x62\n\x13playstation_version\x18\x05 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x04\x88\x01\x01\x12[\n\x0cxbox_version\x18\x06 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x05\x88\x01\x01\x12\\\n\rlinux_version\x18\x07 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x06\x88\x01\x01\x42\x0e\n\x0c_ios_versionB\x12\n\x10_android_versionB\x10\n\x0e_macos_versionB\x12\n\x10_windows_versionB\x16\n\x14_playstation_versionB\x0f\n\r_xbox_versionB\x10\n\x0e_linux_version\x1a>\n\nStaffUsers\x12\x15\n\rwork_accounts\x18\x01 \x01(\x08\x12\x19\n\x11personal_accounts\x18\x02 \x01(\x08\x1a \n\x0bUserInGuild\x12\x11\n\tguild_ids\x18\x01 \x03(\x06\x1a\x1b\n\x07UserIds\x12\x10\n\x08user_ids\x18\x01 \x03(\x06\x1a#\n\x0c\x43lientLocale\x12\x13\n\x07locales\x18\x01 \x03(\tB\x02\x10\x00\x1a\x39\n\tISORegion\x12\x13\n\x0biso_country\x18\x01 \x01(\t\x12\x17\n\x0fiso_subdivision\x18\x02 \x01(\t\x1a;\n\x05Place\x12\x0c\n\x04\x63ity\x18\x01 \x01(\t\x12\x13\n\x0bsubdivision\x18\x02 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x03 \x01(\t\x1a\xcc\x01\n\x08Location\x12U\n\niso_region\x18\x01 \x01(\x0b\x32?.discord_protos.discord_experimentation.v1.Experiment.ISORegionH\x00\x12\x0f\n\x05is_eu\x18\x02 \x01(\x08H\x00\x12L\n\x05place\x18\x03 \x01(\x0b\x32;.discord_protos.discord_experimentation.v1.Experiment.PlaceH\x00\x42\n\n\x08location\x1a\x63\n\x0e\x43lientLocation\x12Q\n\tlocations\x18\x01 \x03(\x0b\x32>.discord_protos.discord_experimentation.v1.Experiment.Location\x1a\x1e\n\x08\x43lientIP\x12\x12\n\x06\x62locks\x18\x01 \x03(\tB\x02\x10\x00\x1a!\n\nUserLocale\x12\x13\n\x07locales\x18\x01 \x03(\tB\x02\x10\x00\x1a\x1b\n\tUserIsBot\x12\x0e\n\x06is_bot\x18\x01 \x01(\x08\x1a\xa6\x01\n\x0cUserAgeRange\x12\x38\n\rmin_age_years\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x00\x88\x01\x01\x12\x38\n\rmax_age_years\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x01\x88\x01\x01\x42\x10\n\x0e_min_age_yearsB\x10\n\x0e_max_age_years\x1a\x1d\n\x0c\x46ixed64Value\x12\r\n\x05value\x18\x01 \x01(\x06\x1a\xd5\x01\n\x0bUserIDRange\x12W\n\x06min_id\x18\x01 \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.Fixed64ValueH\x00\x88\x01\x01\x12W\n\x06max_id\x18\x02 \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.Fixed64ValueH\x01\x88\x01\x01\x42\t\n\x07_min_idB\t\n\x07_max_id\x1a\x1b\n\x0bUserHasFlag\x12\x0c\n\x04mask\x18\x01 \x01(\x06\x1a\x37\n\x13UnitIdInRangeByHash\x12\x10\n\x08hash_key\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\r\x1a\x34\n\x14\x43lientReleaseChannel\x12\x1c\n\x10release_channels\x18\x01 \x03(\tB\x02\x10\x00\x1a\x17\n\x06\x41lways\x12\r\n\x05value\x18\x01 \x01(\x08\x1a)\n\x12\x43lientSystemLocale\x12\x13\n\x07locales\x18\x01 \x03(\tB\x02\x10\x00\x1a\xbf\x0c\n\x06\x46ilter\x12^\n\x0e\x63lient_version\x18\x02 \x01(\x0b\x32\x44.discord_protos.discord_experimentation.v1.Experiment.ClientPlatformH\x00\x12`\n\tclient_os\x18\x03 \x01(\x0b\x32K.discord_protos.discord_experimentation.v1.Experiment.ClientOperatingSystemH\x00\x12Q\n\x05staff\x18\x04 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.StaffUsersH\x00\x12Z\n\ruser_in_guild\x18\x05 \x01(\x0b\x32\x41.discord_protos.discord_experimentation.v1.Experiment.UserInGuildH\x00\x12Q\n\x08user_ids\x18\x06 \x01(\x0b\x32=.discord_protos.discord_experimentation.v1.Experiment.UserIdsH\x00\x12[\n\rclient_locale\x18\x07 \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.ClientLocaleH\x00\x12_\n\x0f\x63lient_location\x18\x08 \x01(\x0b\x32\x44.discord_protos.discord_experimentation.v1.Experiment.ClientLocationH\x00\x12S\n\tclient_ip\x18\t \x01(\x0b\x32>.discord_protos.discord_experimentation.v1.Experiment.ClientIPH\x00\x12W\n\x0buser_locale\x18\n \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.UserLocaleH\x00\x12N\n\x03\x62ot\x18\x0b \x01(\x0b\x32?.discord_protos.discord_experimentation.v1.Experiment.UserIsBotH\x00\x12\\\n\x0euser_age_range\x18\x0c \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.UserAgeRangeH\x00\x12Z\n\ruser_id_range\x18\r \x01(\x0b\x32\x41.discord_protos.discord_experimentation.v1.Experiment.UserIDRangeH\x00\x12Z\n\ruser_has_flag\x18\x0e \x01(\x0b\x32\x41.discord_protos.discord_experimentation.v1.Experiment.UserHasFlagH\x00\x12m\n\x18unit_id_in_range_by_hash\x18\x0f \x01(\x0b\x32I.discord_protos.discord_experimentation.v1.Experiment.UnitIdInRangeByHashH\x00\x12l\n\x16\x63lient_release_channel\x18\x10 \x01(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.ClientReleaseChannelH\x00\x12N\n\x06\x61lways\x18\x11 \x01(\x0b\x32<.discord_protos.discord_experimentation.v1.Experiment.AlwaysH\x00\x12h\n\x14\x63lient_system_locale\x18\x12 \x01(\x0b\x32H.discord_protos.discord_experimentation.v1.Experiment.ClientSystemLocaleH\x00\x42\x08\n\x06\x66ilter\x1a \n\x08Override\x12\x14\n\x0cvariation_id\x18\x01 \x01(\x05\x1a\x9b\x02\n\x04Rule\x12H\n\x04type\x18\x01 \x01(\x0e\x32:.discord_protos.discord_experimentation.v1.Experiment.Type\x12M\n\x07\x66ilters\x18\x02 \x03(\x0b\x32<.discord_protos.discord_experimentation.v1.Experiment.Filter\x12U\n\x08override\x18\x03 \x01(\x0b\x32>.discord_protos.discord_experimentation.v1.Experiment.OverrideH\x00\x88\x01\x01\x12\x16\n\x0eis_sunset_rule\x18\x04 \x01(\x08\x42\x0b\n\t_override\"9\n\x08UnitType\x12\x19\n\x15UNIT_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eUNIT_TYPE_USER\x10\x01\"O\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bTYPE_ACTIVE\x10\x01\x12\x0f\n\x0bTYPE_UNUSED\x10\x02\x12\x0f\n\x0bTYPE_BURNED\x10\x03\"\xb7\x01\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPHASE_DRAFT\x10\x01\x12\x15\n\x11PHASE_MEASUREMENT\x10\x02\x12\x1b\n\x17PHASE_MEASUREMENT_ENDED\x10\x03\x12\x15\n\x11PHASE_ROLLING_OUT\x10\x04\x12\x14\n\x10PHASE_ROLLED_OUT\x10\x05\x12\x12\n\x0ePHASE_ARCHIVED\x10\x06\x12\x11\n\rPHASE_AA_MODE\x10\x07\"D\n\x07Surface\x12\x17\n\x13SURFACE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSURFACE_API\x10\x01\x12\x0f\n\x0bSURFACE_APP\x10\x02\"Q\n\x10\x45xposureTracking\x12\x1d\n\x19\x45XPOSURE_TRACKING_ENABLED\x10\x00\x12\x1e\n\x1a\x45XPOSURE_TRACKING_DISABLED\x10\x01\"p\n\x0e\x41ssignmentMode\x12\x18\n\x14\x41SSIGNMENT_MODE_FULL\x10\x00\x12!\n\x1d\x41SSIGNMENT_MODE_FORCE_DEFAULT\x10\x01\x12!\n\x1d\x41SSIGNMENT_MODE_OVERRIDE_ONLY\x10\x02\x42\r\n\x0b_created_atB\x0c\n\n_edited_atB\r\n\x0b_hypothesisB\x11\n\x0f_tech_spec_linkb\x06proto3')
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+discord_experimentation/v1/Experiment.proto\x12)discord_protos.discord_experimentation.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba>\n\nExperiment\x12\n\n\x02id\x18\x01 \x01(\x06\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x33\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12\x12\n\ncreator_id\x18\x04 \x01(\x06\x12\x0f\n\x07version\x18\x05 \x01(\x05\x12\x32\n\tedited_at\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\x12\x11\n\teditor_id\x18\x07 \x01(\x06\x12\r\n\x05title\x18\x08 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\t \x01(\t\x12\x35\n\nhypothesis\x18\n \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x02\x88\x01\x01\x12\x39\n\x0etech_spec_link\x18\x0b \x01(\x0b\x32\x1c.google.protobuf.StringValueH\x03\x88\x01\x01\x12\x10\n\x08revision\x18\x0c \x01(\x05\x12\x10\n\x08hash_key\x18\r \x01(\t\x12Q\n\tunit_type\x18\x0e \x01(\x0e\x32>.discord_protos.discord_experimentation.v1.Experiment.UnitType\x12S\n\nvariations\x18\x0f \x03(\x0b\x32?.discord_protos.discord_experimentation.v1.Experiment.Variation\x12I\n\x05rules\x18\x10 \x03(\x0b\x32:.discord_protos.discord_experimentation.v1.Experiment.Rule\x12J\n\x05phase\x18\x12 \x01(\x0e\x32;.discord_protos.discord_experimentation.v1.Experiment.Phase\x12O\n\x08surfaces\x18\x13 \x03(\x0e\x32=.discord_protos.discord_experimentation.v1.Experiment.Surface\x12\x18\n\x10owning_team_name\x18\x14 \x01(\t\x12&\n\x1e\x63\x61\x63hed_notification_channel_id\x18\x15 \x01(\x06\x12\x61\n\x11\x65xposure_tracking\x18\x16 \x01(\x0e\x32\x46.discord_protos.discord_experimentation.v1.Experiment.ExposureTracking\x12]\n\x0f\x61ssignment_mode\x18\x19 \x01(\x0e\x32\x44.discord_protos.discord_experimentation.v1.Experiment.AssignmentMode\x12\x1f\n\x17\x65nable_edit_raw_json_ui\x18\x17 \x01(\x08\x12\x1c\n\x14winning_variation_id\x18\x18 \x01(\x05\x1ao\n\x06\x42ucket\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0c\n\x04stop\x18\x02 \x01(\x05\x12H\n\x04type\x18\x03 \x01(\x0e\x32:.discord_protos.discord_experimentation.v1.Experiment.Type\x1a\xda\x01\n\tVariation\x12\n\n\x02id\x18\x01 \x01(\x05\x12\r\n\x05label\x18\x02 \x01(\t\x12\x19\n\x11target_allocation\x18\x03 \x01(\x05\x12M\n\x07\x62uckets\x18\x04 \x03(\x0b\x32<.discord_protos.discord_experimentation.v1.Experiment.Bucket\x12H\n\x04type\x18\x05 \x01(\x0e\x32:.discord_protos.discord_experimentation.v1.Experiment.Type\x1a\xa1\x01\n\x18PlatformVersionSpecifier\x12\r\n\x05major\x18\x01 \x01(\r\x12\x30\n\x05minor\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x00\x88\x01\x01\x12\x30\n\x05\x62uild\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt64ValueH\x01\x88\x01\x01\x42\x08\n\x06_minorB\x08\n\x06_build\x1a\xa0\x01\n\x19PlatformVersionRangeBound\x12\x64\n\x07version\x18\x01 \x01(\x0b\x32N.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionSpecifierH\x00\x88\x01\x01\x12\x11\n\tinclusive\x18\x02 \x01(\x08\x42\n\n\x08_version\x1a\x8c\x02\n\x14PlatformVersionRange\x12i\n\x0blower_bound\x18\x01 \x01(\x0b\x32O.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionRangeBoundH\x00\x88\x01\x01\x12i\n\x0bupper_bound\x18\x02 \x01(\x0b\x32O.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionRangeBoundH\x01\x88\x01\x01\x42\x0e\n\x0c_lower_boundB\x0e\n\x0c_upper_bound\x1a\x8c\x01\n\x0fPlatformVersion\x12Z\n\x06ranges\x18\x01 \x03(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionRange\x12\x1d\n\x15work_around_pyoto_bug\x18\x02 \x01(\x08\x1a\xe2\x03\n\x0e\x43lientPlatform\x12_\n\x0bios_version\x18\x01 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x00\x88\x01\x01\x12\x63\n\x0f\x61ndroid_version\x18\x02 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x01\x88\x01\x01\x12_\n\x0bweb_version\x18\x03 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x02\x88\x01\x01\x12\x62\n\x0enative_version\x18\x04 \x01(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.PlatformVersionH\x03\x88\x01\x01\x42\x0e\n\x0c_ios_versionB\x12\n\x10_android_versionB\x0e\n\x0c_web_versionB\x11\n\x0f_native_version\x1a&\n\x13SDKVersionSpecifier\x12\x0f\n\x07version\x18\x01 \x01(\x05\x1a\x96\x01\n\x14SDKVersionRangeBound\x12_\n\x07version\x18\x01 \x01(\x0b\x32I.discord_protos.discord_experimentation.v1.Experiment.SDKVersionSpecifierH\x00\x88\x01\x01\x12\x11\n\tinclusive\x18\x02 \x01(\x08\x42\n\n\x08_version\x1a\xfd\x01\n\x0fSDKVersionRange\x12\x64\n\x0blower_bound\x18\x01 \x01(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.SDKVersionRangeBoundH\x00\x88\x01\x01\x12\x64\n\x0bupper_bound\x18\x02 \x01(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.SDKVersionRangeBoundH\x01\x88\x01\x01\x42\x0e\n\x0c_lower_boundB\x0e\n\x0c_upper_bound\x1a\x82\x01\n\nSDKVersion\x12U\n\x06ranges\x18\x01 \x03(\x0b\x32\x45.discord_protos.discord_experimentation.v1.Experiment.SDKVersionRange\x12\x1d\n\x15work_around_pyoto_bug\x18\x02 \x01(\x08\x1a\xb5\x06\n\x15\x43lientOperatingSystem\x12Z\n\x0bios_version\x18\x01 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x00\x88\x01\x01\x12^\n\x0f\x61ndroid_version\x18\x02 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x01\x88\x01\x01\x12\\\n\rmacos_version\x18\x03 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x02\x88\x01\x01\x12^\n\x0fwindows_version\x18\x04 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x03\x88\x01\x01\x12\x62\n\x13playstation_version\x18\x05 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x04\x88\x01\x01\x12[\n\x0cxbox_version\x18\x06 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x05\x88\x01\x01\x12\\\n\rlinux_version\x18\x07 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.SDKVersionH\x06\x88\x01\x01\x42\x0e\n\x0c_ios_versionB\x12\n\x10_android_versionB\x10\n\x0e_macos_versionB\x12\n\x10_windows_versionB\x16\n\x14_playstation_versionB\x0f\n\r_xbox_versionB\x10\n\x0e_linux_version\x1a>\n\nStaffUsers\x12\x15\n\rwork_accounts\x18\x01 \x01(\x08\x12\x19\n\x11personal_accounts\x18\x02 \x01(\x08\x1a \n\x0bUserInGuild\x12\x11\n\tguild_ids\x18\x01 \x03(\x06\x1a\x1b\n\x07UserIds\x12\x10\n\x08user_ids\x18\x01 \x03(\x06\x1a#\n\x0c\x43lientLocale\x12\x13\n\x07locales\x18\x01 \x03(\tB\x02\x10\x00\x1a\x39\n\tISORegion\x12\x13\n\x0biso_country\x18\x01 \x01(\t\x12\x17\n\x0fiso_subdivision\x18\x02 \x01(\t\x1a;\n\x05Place\x12\x0c\n\x04\x63ity\x18\x01 \x01(\t\x12\x13\n\x0bsubdivision\x18\x02 \x01(\t\x12\x0f\n\x07\x63ountry\x18\x03 \x01(\t\x1a\xcc\x01\n\x08Location\x12U\n\niso_region\x18\x01 \x01(\x0b\x32?.discord_protos.discord_experimentation.v1.Experiment.ISORegionH\x00\x12\x0f\n\x05is_eu\x18\x02 \x01(\x08H\x00\x12L\n\x05place\x18\x03 \x01(\x0b\x32;.discord_protos.discord_experimentation.v1.Experiment.PlaceH\x00\x42\n\n\x08location\x1a\x63\n\x0e\x43lientLocation\x12Q\n\tlocations\x18\x01 \x03(\x0b\x32>.discord_protos.discord_experimentation.v1.Experiment.Location\x1a\x1e\n\x08\x43lientIP\x12\x12\n\x06\x62locks\x18\x01 \x03(\tB\x02\x10\x00\x1a!\n\nUserLocale\x12\x13\n\x07locales\x18\x01 \x03(\tB\x02\x10\x00\x1a\x1b\n\tUserIsBot\x12\x0e\n\x06is_bot\x18\x01 \x01(\x08\x1a\xa6\x01\n\x0cUserAgeRange\x12\x38\n\rmin_age_years\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x00\x88\x01\x01\x12\x38\n\rmax_age_years\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueH\x01\x88\x01\x01\x42\x10\n\x0e_min_age_yearsB\x10\n\x0e_max_age_years\x1a\x1d\n\x0c\x46ixed64Value\x12\r\n\x05value\x18\x01 \x01(\x06\x1a\xd5\x01\n\x0bUserIDRange\x12W\n\x06min_id\x18\x01 \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.Fixed64ValueH\x00\x88\x01\x01\x12W\n\x06max_id\x18\x02 \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.Fixed64ValueH\x01\x88\x01\x01\x42\t\n\x07_min_idB\t\n\x07_max_id\x1a\x1b\n\x0bUserHasFlag\x12\x0c\n\x04mask\x18\x01 \x01(\x06\x1a\x37\n\x13UnitIdInRangeByHash\x12\x10\n\x08hash_key\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\r\x1a\x34\n\x14\x43lientReleaseChannel\x12\x1c\n\x10release_channels\x18\x01 \x03(\tB\x02\x10\x00\x1a\x17\n\x06\x41lways\x12\r\n\x05value\x18\x01 \x01(\x08\x1a)\n\x12\x43lientSystemLocale\x12\x13\n\x07locales\x18\x01 \x03(\tB\x02\x10\x00\x1a\xbf\x0c\n\x06\x46ilter\x12^\n\x0e\x63lient_version\x18\x02 \x01(\x0b\x32\x44.discord_protos.discord_experimentation.v1.Experiment.ClientPlatformH\x00\x12`\n\tclient_os\x18\x03 \x01(\x0b\x32K.discord_protos.discord_experimentation.v1.Experiment.ClientOperatingSystemH\x00\x12Q\n\x05staff\x18\x04 \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.StaffUsersH\x00\x12Z\n\ruser_in_guild\x18\x05 \x01(\x0b\x32\x41.discord_protos.discord_experimentation.v1.Experiment.UserInGuildH\x00\x12Q\n\x08user_ids\x18\x06 \x01(\x0b\x32=.discord_protos.discord_experimentation.v1.Experiment.UserIdsH\x00\x12[\n\rclient_locale\x18\x07 \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.ClientLocaleH\x00\x12_\n\x0f\x63lient_location\x18\x08 \x01(\x0b\x32\x44.discord_protos.discord_experimentation.v1.Experiment.ClientLocationH\x00\x12S\n\tclient_ip\x18\t \x01(\x0b\x32>.discord_protos.discord_experimentation.v1.Experiment.ClientIPH\x00\x12W\n\x0buser_locale\x18\n \x01(\x0b\x32@.discord_protos.discord_experimentation.v1.Experiment.UserLocaleH\x00\x12N\n\x03\x62ot\x18\x0b \x01(\x0b\x32?.discord_protos.discord_experimentation.v1.Experiment.UserIsBotH\x00\x12\\\n\x0euser_age_range\x18\x0c \x01(\x0b\x32\x42.discord_protos.discord_experimentation.v1.Experiment.UserAgeRangeH\x00\x12Z\n\ruser_id_range\x18\r \x01(\x0b\x32\x41.discord_protos.discord_experimentation.v1.Experiment.UserIDRangeH\x00\x12Z\n\ruser_has_flag\x18\x0e \x01(\x0b\x32\x41.discord_protos.discord_experimentation.v1.Experiment.UserHasFlagH\x00\x12m\n\x18unit_id_in_range_by_hash\x18\x0f \x01(\x0b\x32I.discord_protos.discord_experimentation.v1.Experiment.UnitIdInRangeByHashH\x00\x12l\n\x16\x63lient_release_channel\x18\x10 \x01(\x0b\x32J.discord_protos.discord_experimentation.v1.Experiment.ClientReleaseChannelH\x00\x12N\n\x06\x61lways\x18\x11 \x01(\x0b\x32<.discord_protos.discord_experimentation.v1.Experiment.AlwaysH\x00\x12h\n\x14\x63lient_system_locale\x18\x12 \x01(\x0b\x32H.discord_protos.discord_experimentation.v1.Experiment.ClientSystemLocaleH\x00\x42\x08\n\x06\x66ilter\x1a \n\x08Override\x12\x14\n\x0cvariation_id\x18\x01 \x01(\x05\x1a\x9b\x02\n\x04Rule\x12H\n\x04type\x18\x01 \x01(\x0e\x32:.discord_protos.discord_experimentation.v1.Experiment.Type\x12M\n\x07\x66ilters\x18\x02 \x03(\x0b\x32<.discord_protos.discord_experimentation.v1.Experiment.Filter\x12U\n\x08override\x18\x03 \x01(\x0b\x32>.discord_protos.discord_experimentation.v1.Experiment.OverrideH\x00\x88\x01\x01\x12\x16\n\x0eis_sunset_rule\x18\x04 \x01(\x08\x42\x0b\n\t_override\"9\n\x08UnitType\x12\x19\n\x15UNIT_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eUNIT_TYPE_USER\x10\x01\"O\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bTYPE_ACTIVE\x10\x01\x12\x0f\n\x0bTYPE_UNUSED\x10\x02\x12\x0f\n\x0bTYPE_BURNED\x10\x03\"\xb7\x01\n\x05Phase\x12\x15\n\x11PHASE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bPHASE_DRAFT\x10\x01\x12\x15\n\x11PHASE_MEASUREMENT\x10\x02\x12\x1b\n\x17PHASE_MEASUREMENT_ENDED\x10\x03\x12\x15\n\x11PHASE_ROLLING_OUT\x10\x04\x12\x14\n\x10PHASE_ROLLED_OUT\x10\x05\x12\x12\n\x0ePHASE_ARCHIVED\x10\x06\x12\x11\n\rPHASE_AA_MODE\x10\x07\"b\n\x07Surface\x12\x17\n\x13SURFACE_UNSPECIFIED\x10\x00\x12\x0f\n\x0bSURFACE_API\x10\x01\x12\x0f\n\x0bSURFACE_APP\x10\x02\x12\x1c\n\x18SURFACE_DEVELOPER_PORTAL\x10\x03\"Q\n\x10\x45xposureTracking\x12\x1d\n\x19\x45XPOSURE_TRACKING_ENABLED\x10\x00\x12\x1e\n\x1a\x45XPOSURE_TRACKING_DISABLED\x10\x01\"p\n\x0e\x41ssignmentMode\x12\x18\n\x14\x41SSIGNMENT_MODE_FULL\x10\x00\x12!\n\x1d\x41SSIGNMENT_MODE_FORCE_DEFAULT\x10\x01\x12!\n\x1d\x41SSIGNMENT_MODE_OVERRIDE_ONLY\x10\x02\x42\r\n\x0b_created_atB\x0c\n\n_edited_atB\r\n\x0b_hypothesisB\x11\n\x0f_tech_spec_linkb\x06proto3')
30
30
 
31
31
  _globals = globals()
32
32
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -44,7 +44,7 @@ if not _descriptor._USE_C_DESCRIPTORS:
44
44
  _globals['_EXPERIMENT_CLIENTSYSTEMLOCALE'].fields_by_name['locales']._loaded_options = None
45
45
  _globals['_EXPERIMENT_CLIENTSYSTEMLOCALE'].fields_by_name['locales']._serialized_options = b'\020\000'
46
46
  _globals['_EXPERIMENT']._serialized_start=156
47
- _globals['_EXPERIMENT']._serialized_end=8120
47
+ _globals['_EXPERIMENT']._serialized_end=8150
48
48
  _globals['_EXPERIMENT_BUCKET']._serialized_start=1266
49
49
  _globals['_EXPERIMENT_BUCKET']._serialized_end=1377
50
50
  _globals['_EXPERIMENT_VARIATION']._serialized_start=1380
@@ -120,9 +120,9 @@ if not _descriptor._USE_C_DESCRIPTORS:
120
120
  _globals['_EXPERIMENT_PHASE']._serialized_start=7607
121
121
  _globals['_EXPERIMENT_PHASE']._serialized_end=7790
122
122
  _globals['_EXPERIMENT_SURFACE']._serialized_start=7792
123
- _globals['_EXPERIMENT_SURFACE']._serialized_end=7860
124
- _globals['_EXPERIMENT_EXPOSURETRACKING']._serialized_start=7862
125
- _globals['_EXPERIMENT_EXPOSURETRACKING']._serialized_end=7943
126
- _globals['_EXPERIMENT_ASSIGNMENTMODE']._serialized_start=7945
127
- _globals['_EXPERIMENT_ASSIGNMENTMODE']._serialized_end=8057
123
+ _globals['_EXPERIMENT_SURFACE']._serialized_end=7890
124
+ _globals['_EXPERIMENT_EXPOSURETRACKING']._serialized_start=7892
125
+ _globals['_EXPERIMENT_EXPOSURETRACKING']._serialized_end=7973
126
+ _globals['_EXPERIMENT_ASSIGNMENTMODE']._serialized_start=7975
127
+ _globals['_EXPERIMENT_ASSIGNMENTMODE']._serialized_end=8087
128
128
  # @@protoc_insertion_point(module_scope)
@@ -69,9 +69,9 @@ export interface Experiment {
69
69
  */
70
70
  unitType: Experiment_UnitType;
71
71
  /**
72
- * @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.Variant variants = 15
72
+ * @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.Variation variations = 15
73
73
  */
74
- variants: Experiment_Variant[];
74
+ variations: Experiment_Variation[];
75
75
  /**
76
76
  * @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.Rule rules = 16
77
77
  */
@@ -105,14 +105,14 @@ export interface Experiment {
105
105
  */
106
106
  enableEditRawJsonUi: boolean;
107
107
  /**
108
- * @generated from protobuf field: int32 winning_variant_id = 24
108
+ * @generated from protobuf field: int32 winning_variation_id = 24
109
109
  */
110
- winningVariantId: number;
110
+ winningVariationId: number;
111
111
  }
112
112
  /**
113
- * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.VariantAllocation
113
+ * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Bucket
114
114
  */
115
- export interface Experiment_VariantAllocation {
115
+ export interface Experiment_Bucket {
116
116
  /**
117
117
  * @generated from protobuf field: int32 start = 1
118
118
  */
@@ -127,9 +127,9 @@ export interface Experiment_VariantAllocation {
127
127
  type: Experiment_Type;
128
128
  }
129
129
  /**
130
- * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Variant
130
+ * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Variation
131
131
  */
132
- export interface Experiment_Variant {
132
+ export interface Experiment_Variation {
133
133
  /**
134
134
  * @generated from protobuf field: int32 id = 1
135
135
  */
@@ -143,9 +143,9 @@ export interface Experiment_Variant {
143
143
  */
144
144
  targetAllocation: number;
145
145
  /**
146
- * @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.VariantAllocation allocations = 4
146
+ * @generated from protobuf field: repeated discord_protos.discord_experimentation.v1.Experiment.Bucket buckets = 4
147
147
  */
148
- allocations: Experiment_VariantAllocation[];
148
+ buckets: Experiment_Bucket[];
149
149
  /**
150
150
  * @generated from protobuf field: discord_protos.discord_experimentation.v1.Experiment.Type type = 5
151
151
  */
@@ -646,9 +646,9 @@ export interface Experiment_Filter {
646
646
  */
647
647
  export interface Experiment_Override {
648
648
  /**
649
- * @generated from protobuf field: int32 variant_id = 1
649
+ * @generated from protobuf field: int32 variation_id = 1
650
650
  */
651
- variantId: number;
651
+ variationId: number;
652
652
  }
653
653
  /**
654
654
  * @generated from protobuf message discord_protos.discord_experimentation.v1.Experiment.Rule
@@ -799,26 +799,26 @@ declare class Experiment$Type extends MessageType<Experiment> {
799
799
  * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment
800
800
  */
801
801
  export declare const Experiment: Experiment$Type;
802
- declare class Experiment_VariantAllocation$Type extends MessageType<Experiment_VariantAllocation> {
802
+ declare class Experiment_Bucket$Type extends MessageType<Experiment_Bucket> {
803
803
  constructor();
804
- create(value?: PartialMessage<Experiment_VariantAllocation>): Experiment_VariantAllocation;
805
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_VariantAllocation): Experiment_VariantAllocation;
806
- internalBinaryWrite(message: Experiment_VariantAllocation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
804
+ create(value?: PartialMessage<Experiment_Bucket>): Experiment_Bucket;
805
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_Bucket): Experiment_Bucket;
806
+ internalBinaryWrite(message: Experiment_Bucket, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
807
807
  }
808
808
  /**
809
- * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.VariantAllocation
809
+ * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.Bucket
810
810
  */
811
- export declare const Experiment_VariantAllocation: Experiment_VariantAllocation$Type;
812
- declare class Experiment_Variant$Type extends MessageType<Experiment_Variant> {
811
+ export declare const Experiment_Bucket: Experiment_Bucket$Type;
812
+ declare class Experiment_Variation$Type extends MessageType<Experiment_Variation> {
813
813
  constructor();
814
- create(value?: PartialMessage<Experiment_Variant>): Experiment_Variant;
815
- internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_Variant): Experiment_Variant;
816
- internalBinaryWrite(message: Experiment_Variant, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
814
+ create(value?: PartialMessage<Experiment_Variation>): Experiment_Variation;
815
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Experiment_Variation): Experiment_Variation;
816
+ internalBinaryWrite(message: Experiment_Variation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter;
817
817
  }
818
818
  /**
819
- * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.Variant
819
+ * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.Variation
820
820
  */
821
- export declare const Experiment_Variant: Experiment_Variant$Type;
821
+ export declare const Experiment_Variation: Experiment_Variation$Type;
822
822
  declare class Experiment_PlatformVersionSpecifier$Type extends MessageType<Experiment_PlatformVersionSpecifier> {
823
823
  constructor();
824
824
  create(value?: PartialMessage<Experiment_PlatformVersionSpecifier>): Experiment_PlatformVersionSpecifier;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = 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_PlatformVersion = exports.Experiment_PlatformVersionRange = exports.Experiment_PlatformVersionRangeBound = exports.Experiment_PlatformVersionSpecifier = exports.Experiment_Variant = exports.Experiment_VariantAllocation = exports.Experiment = exports.Experiment_AssignmentMode = exports.Experiment_ExposureTracking = exports.Experiment_Surface = exports.Experiment_Phase = exports.Experiment_Type = exports.Experiment_UnitType = void 0;
3
+ exports.Experiment_Rule = exports.Experiment_Override = exports.Experiment_Filter = 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_PlatformVersion = exports.Experiment_PlatformVersionRange = exports.Experiment_PlatformVersionRangeBound = exports.Experiment_PlatformVersionSpecifier = exports.Experiment_Variation = exports.Experiment_Bucket = exports.Experiment = exports.Experiment_AssignmentMode = exports.Experiment_ExposureTracking = exports.Experiment_Surface = exports.Experiment_Phase = exports.Experiment_Type = exports.Experiment_UnitType = void 0;
4
4
  const runtime_1 = require("@protobuf-ts/runtime");
5
5
  const runtime_2 = require("@protobuf-ts/runtime");
6
6
  const runtime_3 = require("@protobuf-ts/runtime");
@@ -151,7 +151,7 @@ class Experiment$Type extends runtime_4.MessageType {
151
151
  { no: 12, name: "revision", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
152
152
  { no: 13, name: "hash_key", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
153
153
  { no: 14, name: "unit_type", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.UnitType", Experiment_UnitType, "UNIT_TYPE_"] },
154
- { no: 15, name: "variants", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_Variant },
154
+ { no: 15, name: "variations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_Variation },
155
155
  { no: 16, name: "rules", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_Rule },
156
156
  { no: 18, name: "phase", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Phase", Experiment_Phase, "PHASE_"] },
157
157
  { no: 19, name: "surfaces", kind: "enum", repeat: 1 /*RepeatType.PACKED*/, T: () => ["discord_protos.discord_experimentation.v1.Experiment.Surface", Experiment_Surface, "SURFACE_"] },
@@ -160,7 +160,7 @@ class Experiment$Type extends runtime_4.MessageType {
160
160
  { no: 22, name: "exposure_tracking", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.ExposureTracking", Experiment_ExposureTracking, "EXPOSURE_TRACKING_"] },
161
161
  { no: 25, name: "assignment_mode", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.AssignmentMode", Experiment_AssignmentMode, "ASSIGNMENT_MODE_"] },
162
162
  { no: 23, name: "enable_edit_raw_json_ui", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
163
- { no: 24, name: "winning_variant_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
163
+ { no: 24, name: "winning_variation_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
164
164
  ]);
165
165
  }
166
166
  create(value) {
@@ -175,7 +175,7 @@ class Experiment$Type extends runtime_4.MessageType {
175
175
  message.revision = 0;
176
176
  message.hashKey = "";
177
177
  message.unitType = 0;
178
- message.variants = [];
178
+ message.variations = [];
179
179
  message.rules = [];
180
180
  message.phase = 0;
181
181
  message.surfaces = [];
@@ -184,7 +184,7 @@ class Experiment$Type extends runtime_4.MessageType {
184
184
  message.exposureTracking = 0;
185
185
  message.assignmentMode = 0;
186
186
  message.enableEditRawJsonUi = false;
187
- message.winningVariantId = 0;
187
+ message.winningVariationId = 0;
188
188
  if (value !== undefined)
189
189
  (0, runtime_3.reflectionMergePartial)(this, message, value);
190
190
  return message;
@@ -236,8 +236,8 @@ class Experiment$Type extends runtime_4.MessageType {
236
236
  case /* discord_protos.discord_experimentation.v1.Experiment.UnitType unit_type */ 14:
237
237
  message.unitType = reader.int32();
238
238
  break;
239
- case /* repeated discord_protos.discord_experimentation.v1.Experiment.Variant variants */ 15:
240
- message.variants.push(exports.Experiment_Variant.internalBinaryRead(reader, reader.uint32(), options));
239
+ case /* repeated discord_protos.discord_experimentation.v1.Experiment.Variation variations */ 15:
240
+ message.variations.push(exports.Experiment_Variation.internalBinaryRead(reader, reader.uint32(), options));
241
241
  break;
242
242
  case /* repeated discord_protos.discord_experimentation.v1.Experiment.Rule rules */ 16:
243
243
  message.rules.push(exports.Experiment_Rule.internalBinaryRead(reader, reader.uint32(), options));
@@ -267,8 +267,8 @@ class Experiment$Type extends runtime_4.MessageType {
267
267
  case /* bool enable_edit_raw_json_ui */ 23:
268
268
  message.enableEditRawJsonUi = reader.bool();
269
269
  break;
270
- case /* int32 winning_variant_id */ 24:
271
- message.winningVariantId = reader.int32();
270
+ case /* int32 winning_variation_id */ 24:
271
+ message.winningVariationId = reader.int32();
272
272
  break;
273
273
  default:
274
274
  let u = options.readUnknownField;
@@ -324,9 +324,9 @@ class Experiment$Type extends runtime_4.MessageType {
324
324
  /* discord_protos.discord_experimentation.v1.Experiment.UnitType unit_type = 14; */
325
325
  if (message.unitType !== 0)
326
326
  writer.tag(14, runtime_2.WireType.Varint).int32(message.unitType);
327
- /* repeated discord_protos.discord_experimentation.v1.Experiment.Variant variants = 15; */
328
- for (let i = 0; i < message.variants.length; i++)
329
- exports.Experiment_Variant.internalBinaryWrite(message.variants[i], writer.tag(15, runtime_2.WireType.LengthDelimited).fork(), options).join();
327
+ /* repeated discord_protos.discord_experimentation.v1.Experiment.Variation variations = 15; */
328
+ for (let i = 0; i < message.variations.length; i++)
329
+ exports.Experiment_Variation.internalBinaryWrite(message.variations[i], writer.tag(15, runtime_2.WireType.LengthDelimited).fork(), options).join();
330
330
  /* repeated discord_protos.discord_experimentation.v1.Experiment.Rule rules = 16; */
331
331
  for (let i = 0; i < message.rules.length; i++)
332
332
  exports.Experiment_Rule.internalBinaryWrite(message.rules[i], writer.tag(16, runtime_2.WireType.LengthDelimited).fork(), options).join();
@@ -352,9 +352,9 @@ class Experiment$Type extends runtime_4.MessageType {
352
352
  /* bool enable_edit_raw_json_ui = 23; */
353
353
  if (message.enableEditRawJsonUi !== false)
354
354
  writer.tag(23, runtime_2.WireType.Varint).bool(message.enableEditRawJsonUi);
355
- /* int32 winning_variant_id = 24; */
356
- if (message.winningVariantId !== 0)
357
- writer.tag(24, runtime_2.WireType.Varint).int32(message.winningVariantId);
355
+ /* int32 winning_variation_id = 24; */
356
+ if (message.winningVariationId !== 0)
357
+ writer.tag(24, runtime_2.WireType.Varint).int32(message.winningVariationId);
358
358
  /* discord_protos.discord_experimentation.v1.Experiment.AssignmentMode assignment_mode = 25; */
359
359
  if (message.assignmentMode !== 0)
360
360
  writer.tag(25, runtime_2.WireType.Varint).int32(message.assignmentMode);
@@ -369,9 +369,9 @@ class Experiment$Type extends runtime_4.MessageType {
369
369
  */
370
370
  exports.Experiment = new Experiment$Type();
371
371
  // @generated message type with reflection information, may provide speed optimized methods
372
- class Experiment_VariantAllocation$Type extends runtime_4.MessageType {
372
+ class Experiment_Bucket$Type extends runtime_4.MessageType {
373
373
  constructor() {
374
- super("discord_protos.discord_experimentation.v1.Experiment.VariantAllocation", [
374
+ super("discord_protos.discord_experimentation.v1.Experiment.Bucket", [
375
375
  { no: 1, name: "start", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
376
376
  { no: 2, name: "stop", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
377
377
  { no: 3, name: "type", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Type", Experiment_Type, "TYPE_"] }
@@ -428,17 +428,17 @@ class Experiment_VariantAllocation$Type extends runtime_4.MessageType {
428
428
  }
429
429
  }
430
430
  /**
431
- * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.VariantAllocation
431
+ * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.Bucket
432
432
  */
433
- exports.Experiment_VariantAllocation = new Experiment_VariantAllocation$Type();
433
+ exports.Experiment_Bucket = new Experiment_Bucket$Type();
434
434
  // @generated message type with reflection information, may provide speed optimized methods
435
- class Experiment_Variant$Type extends runtime_4.MessageType {
435
+ class Experiment_Variation$Type extends runtime_4.MessageType {
436
436
  constructor() {
437
- super("discord_protos.discord_experimentation.v1.Experiment.Variant", [
437
+ super("discord_protos.discord_experimentation.v1.Experiment.Variation", [
438
438
  { no: 1, name: "id", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
439
439
  { no: 2, name: "label", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
440
440
  { no: 3, name: "target_allocation", kind: "scalar", T: 5 /*ScalarType.INT32*/ },
441
- { no: 4, name: "allocations", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_VariantAllocation },
441
+ { no: 4, name: "buckets", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => exports.Experiment_Bucket },
442
442
  { no: 5, name: "type", kind: "enum", T: () => ["discord_protos.discord_experimentation.v1.Experiment.Type", Experiment_Type, "TYPE_"] }
443
443
  ]);
444
444
  }
@@ -447,7 +447,7 @@ class Experiment_Variant$Type extends runtime_4.MessageType {
447
447
  message.id = 0;
448
448
  message.label = "";
449
449
  message.targetAllocation = 0;
450
- message.allocations = [];
450
+ message.buckets = [];
451
451
  message.type = 0;
452
452
  if (value !== undefined)
453
453
  (0, runtime_3.reflectionMergePartial)(this, message, value);
@@ -467,8 +467,8 @@ class Experiment_Variant$Type extends runtime_4.MessageType {
467
467
  case /* int32 target_allocation */ 3:
468
468
  message.targetAllocation = reader.int32();
469
469
  break;
470
- case /* repeated discord_protos.discord_experimentation.v1.Experiment.VariantAllocation allocations */ 4:
471
- message.allocations.push(exports.Experiment_VariantAllocation.internalBinaryRead(reader, reader.uint32(), options));
470
+ case /* repeated discord_protos.discord_experimentation.v1.Experiment.Bucket buckets */ 4:
471
+ message.buckets.push(exports.Experiment_Bucket.internalBinaryRead(reader, reader.uint32(), options));
472
472
  break;
473
473
  case /* discord_protos.discord_experimentation.v1.Experiment.Type type */ 5:
474
474
  message.type = reader.int32();
@@ -494,9 +494,9 @@ class Experiment_Variant$Type extends runtime_4.MessageType {
494
494
  /* int32 target_allocation = 3; */
495
495
  if (message.targetAllocation !== 0)
496
496
  writer.tag(3, runtime_2.WireType.Varint).int32(message.targetAllocation);
497
- /* repeated discord_protos.discord_experimentation.v1.Experiment.VariantAllocation allocations = 4; */
498
- for (let i = 0; i < message.allocations.length; i++)
499
- exports.Experiment_VariantAllocation.internalBinaryWrite(message.allocations[i], writer.tag(4, runtime_2.WireType.LengthDelimited).fork(), options).join();
497
+ /* repeated discord_protos.discord_experimentation.v1.Experiment.Bucket buckets = 4; */
498
+ for (let i = 0; i < message.buckets.length; i++)
499
+ exports.Experiment_Bucket.internalBinaryWrite(message.buckets[i], writer.tag(4, runtime_2.WireType.LengthDelimited).fork(), options).join();
500
500
  /* discord_protos.discord_experimentation.v1.Experiment.Type type = 5; */
501
501
  if (message.type !== 0)
502
502
  writer.tag(5, runtime_2.WireType.Varint).int32(message.type);
@@ -507,9 +507,9 @@ class Experiment_Variant$Type extends runtime_4.MessageType {
507
507
  }
508
508
  }
509
509
  /**
510
- * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.Variant
510
+ * @generated MessageType for protobuf message discord_protos.discord_experimentation.v1.Experiment.Variation
511
511
  */
512
- exports.Experiment_Variant = new Experiment_Variant$Type();
512
+ exports.Experiment_Variation = new Experiment_Variation$Type();
513
513
  // @generated message type with reflection information, may provide speed optimized methods
514
514
  class Experiment_PlatformVersionSpecifier$Type extends runtime_4.MessageType {
515
515
  constructor() {
@@ -2295,12 +2295,12 @@ exports.Experiment_Filter = new Experiment_Filter$Type();
2295
2295
  class Experiment_Override$Type extends runtime_4.MessageType {
2296
2296
  constructor() {
2297
2297
  super("discord_protos.discord_experimentation.v1.Experiment.Override", [
2298
- { no: 1, name: "variant_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
2298
+ { no: 1, name: "variation_id", kind: "scalar", T: 5 /*ScalarType.INT32*/ }
2299
2299
  ]);
2300
2300
  }
2301
2301
  create(value) {
2302
2302
  const message = globalThis.Object.create((this.messagePrototype));
2303
- message.variantId = 0;
2303
+ message.variationId = 0;
2304
2304
  if (value !== undefined)
2305
2305
  (0, runtime_3.reflectionMergePartial)(this, message, value);
2306
2306
  return message;
@@ -2310,8 +2310,8 @@ class Experiment_Override$Type extends runtime_4.MessageType {
2310
2310
  while (reader.pos < end) {
2311
2311
  let [fieldNo, wireType] = reader.tag();
2312
2312
  switch (fieldNo) {
2313
- case /* int32 variant_id */ 1:
2314
- message.variantId = reader.int32();
2313
+ case /* int32 variation_id */ 1:
2314
+ message.variationId = reader.int32();
2315
2315
  break;
2316
2316
  default:
2317
2317
  let u = options.readUnknownField;
@@ -2325,9 +2325,9 @@ class Experiment_Override$Type extends runtime_4.MessageType {
2325
2325
  return message;
2326
2326
  }
2327
2327
  internalBinaryWrite(message, writer, options) {
2328
- /* int32 variant_id = 1; */
2329
- if (message.variantId !== 0)
2330
- writer.tag(1, runtime_2.WireType.Varint).int32(message.variantId);
2328
+ /* int32 variation_id = 1; */
2329
+ if (message.variationId !== 0)
2330
+ writer.tag(1, runtime_2.WireType.Varint).int32(message.variationId);
2331
2331
  let u = options.writeUnknownFields;
2332
2332
  if (u !== false)
2333
2333
  (u == true ? runtime_1.UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord-protos",
3
- "version": "1.2.56",
3
+ "version": "1.2.57",
4
4
  "description": "A parser for Discord's protobufs",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",