discord-protos 1.2.121 → 1.2.135
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/LICENSE +21 -21
- package/discord_protos/discord_experimentation/v1/Experiment.proto +41 -0
- package/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures.proto +0 -1
- package/discord_protos/discord_users/v1/PreloadedUserSettings.proto +1 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.proto +521 -0
- package/discord_protos/users/v1/MediumUser.proto +0 -1
- package/discord_protos/users/v1/User.proto +2 -0
- package/discord_protos/users/v1/UserData.proto +77 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.d.ts +1576 -0
- package/dist/discord_protos/discord_experimentation/v1/Experiment.js +3312 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures.d.ts +71 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures.js +131 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection.d.ts +41 -0
- package/dist/discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection.js +94 -0
- package/dist/discord_protos/discord_users/v1/FrecencyUserSettings.d.ts +421 -0
- package/dist/discord_protos/discord_users/v1/FrecencyUserSettings.js +1077 -0
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.d.ts +2315 -0
- package/dist/discord_protos/discord_users/v1/PreloadedUserSettings.js +4753 -0
- package/dist/discord_protos/google/protobuf/timestamp.d.ts +155 -0
- package/dist/discord_protos/google/protobuf/timestamp.js +135 -0
- package/dist/discord_protos/google/protobuf/wrappers.d.ts +307 -0
- package/dist/discord_protos/google/protobuf/wrappers.js +611 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.d.ts +2930 -0
- package/dist/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties.js +3925 -0
- package/dist/discord_protos/users/v1/GuildShardingConfig.d.ts +26 -0
- package/dist/discord_protos/users/v1/GuildShardingConfig.js +62 -0
- package/dist/discord_protos/users/v1/MediumUser.d.ts +55 -0
- package/dist/discord_protos/users/v1/MediumUser.js +108 -0
- package/dist/discord_protos/users/v1/User.d.ts +2545 -0
- package/dist/discord_protos/users/v1/User.js +3008 -0
- package/dist/discord_protos/users/v1/UserData.d.ts +3279 -0
- package/dist/discord_protos/users/v1/UserData.js +4478 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +63 -0
- package/package.json +51 -33
- package/.gitattributes +0 -1
- package/.github/workflows/update.yml +0 -84
- package/.prettierrc.yml +0 -4
- package/MANIFEST.in +0 -4
- package/__pycache__/PreloadedUserSettings_pb2.cpython-311.pyc +0 -0
- package/discord_protos/__init__.py +0 -52
- package/discord_protos/discord_experimentation/__init__.py +0 -0
- package/discord_protos/discord_experimentation/v1/Experiment_pb2.py +0 -160
- package/discord_protos/discord_experimentation/v1/__init__.py +0 -0
- package/discord_protos/discord_kkv_store_value_models/__init__.py +0 -0
- package/discord_protos/discord_kkv_store_value_models/v1/AcknowledgedApplicationDisclosures_pb2.py +0 -42
- package/discord_protos/discord_kkv_store_value_models/v1/ApplicationUserRoleConnection_pb2.py +0 -40
- package/discord_protos/discord_kkv_store_value_models/v1/__init__.py +0 -0
- package/discord_protos/discord_users/__init__.py +0 -0
- package/discord_protos/discord_users/v1/FrecencyUserSettings_pb2.py +0 -100
- package/discord_protos/discord_users/v1/PreloadedUserSettings_pb2.py +0 -226
- package/discord_protos/discord_users/v1/__init__.py +0 -0
- package/discord_protos/premium_marketing/__init__.py +0 -0
- package/discord_protos/premium_marketing/v1/PremiumMarketingComponentProperties_pb2.py +0 -94
- package/discord_protos/premium_marketing/v1/__init__.py +0 -0
- package/discord_protos/users/__init__.py +0 -0
- package/discord_protos/users/v1/GuildShardingConfig_pb2.py +0 -36
- package/discord_protos/users/v1/MediumUser_pb2.py +0 -38
- package/discord_protos/users/v1/UserData_pb2.py +0 -120
- package/discord_protos/users/v1/User_pb2.py +0 -70
- package/discord_protos/users/v1/__init__.py +0 -0
- package/discord_protos.egg-info/PKG-INFO +0 -127
- package/dist/load.d.ts +0 -1
- package/dist/load.js +0 -217
- package/pnpm-workspace.yaml +0 -2
- package/pyproject.toml +0 -21
- package/requirements.txt +0 -1
- package/scripts/parse.js +0 -269
- package/scripts/preload.js +0 -17
- package/setup.py +0 -44
- package/tsconfig.json +0 -12
- package/tsconfig.script.json +0 -12
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022-present dolfies
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2022-present dolfies
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,10 +1,25 @@
|
|
|
1
1
|
syntax = "proto3";
|
|
2
2
|
|
|
3
|
+
import "google/protobuf/descriptor.proto";
|
|
4
|
+
|
|
3
5
|
import "google/protobuf/wrappers.proto";
|
|
6
|
+
|
|
4
7
|
import "google/protobuf/timestamp.proto";
|
|
5
8
|
|
|
6
9
|
package discord_protos.discord_experimentation.v1;
|
|
7
10
|
|
|
11
|
+
enum FilterCategory {
|
|
12
|
+
FILTER_CATEGORY_UNSPECIFIED = 0;
|
|
13
|
+
FILTER_CATEGORY_CLIENT = 1;
|
|
14
|
+
FILTER_CATEGORY_GUILD = 2;
|
|
15
|
+
FILTER_CATEGORY_USER = 3;
|
|
16
|
+
FILTER_CATEGORY_UTILITY = 4;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
extend google.protobuf.MessageOptions {
|
|
20
|
+
FilterCategory filter_category = 50000;
|
|
21
|
+
}
|
|
22
|
+
|
|
8
23
|
message Experiment {
|
|
9
24
|
enum UnitType {
|
|
10
25
|
UNIT_TYPE_UNSPECIFIED = 0;
|
|
@@ -64,6 +79,7 @@ message Experiment {
|
|
|
64
79
|
}
|
|
65
80
|
|
|
66
81
|
message ClientPlatform {
|
|
82
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_CLIENT;
|
|
67
83
|
optional PlatformVersion ios_version = 1;
|
|
68
84
|
optional PlatformVersion android_version = 2;
|
|
69
85
|
optional PlatformVersion web_version = 3;
|
|
@@ -92,6 +108,7 @@ message Experiment {
|
|
|
92
108
|
}
|
|
93
109
|
|
|
94
110
|
message ClientOperatingSystem {
|
|
111
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_CLIENT;
|
|
95
112
|
optional SDKVersion ios_version = 1;
|
|
96
113
|
optional SDKVersion android_version = 2;
|
|
97
114
|
optional SDKVersion macos_version = 3;
|
|
@@ -102,19 +119,23 @@ message Experiment {
|
|
|
102
119
|
}
|
|
103
120
|
|
|
104
121
|
message StaffUsers {
|
|
122
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
105
123
|
bool work_accounts = 1;
|
|
106
124
|
bool personal_accounts = 2;
|
|
107
125
|
}
|
|
108
126
|
|
|
109
127
|
message UserInGuild {
|
|
128
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
110
129
|
repeated fixed64 guild_ids = 1;
|
|
111
130
|
}
|
|
112
131
|
|
|
113
132
|
message UserIds {
|
|
133
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
114
134
|
repeated fixed64 user_ids = 1;
|
|
115
135
|
}
|
|
116
136
|
|
|
117
137
|
message ClientLocale {
|
|
138
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_CLIENT;
|
|
118
139
|
repeated string locales = 1 [packed = false];
|
|
119
140
|
}
|
|
120
141
|
|
|
@@ -138,22 +159,27 @@ message Experiment {
|
|
|
138
159
|
}
|
|
139
160
|
|
|
140
161
|
message ClientLocation {
|
|
162
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_CLIENT;
|
|
141
163
|
repeated Location locations = 1;
|
|
142
164
|
}
|
|
143
165
|
|
|
144
166
|
message ClientIP {
|
|
167
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_CLIENT;
|
|
145
168
|
repeated string blocks = 1 [packed = false];
|
|
146
169
|
}
|
|
147
170
|
|
|
148
171
|
message UserLocale {
|
|
172
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
149
173
|
repeated string locales = 1 [packed = false];
|
|
150
174
|
}
|
|
151
175
|
|
|
152
176
|
message UserIsBot {
|
|
177
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
153
178
|
bool is_bot = 1;
|
|
154
179
|
}
|
|
155
180
|
|
|
156
181
|
message UserAgeRange {
|
|
182
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
157
183
|
optional google.protobuf.UInt32Value min_age_years = 1;
|
|
158
184
|
optional google.protobuf.UInt32Value max_age_years = 2;
|
|
159
185
|
}
|
|
@@ -163,65 +189,79 @@ message Experiment {
|
|
|
163
189
|
}
|
|
164
190
|
|
|
165
191
|
message UserIDRange {
|
|
192
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
166
193
|
optional Fixed64Value min_id = 1;
|
|
167
194
|
optional Fixed64Value max_id = 2;
|
|
168
195
|
}
|
|
169
196
|
|
|
170
197
|
message UserHasFlag {
|
|
198
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
171
199
|
fixed64 mask = 1;
|
|
172
200
|
}
|
|
173
201
|
|
|
174
202
|
message UnitIdInRangeByHash {
|
|
203
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_UTILITY;
|
|
175
204
|
string hash_key = 1;
|
|
176
205
|
uint32 stop_ring_position = 2;
|
|
177
206
|
uint32 start_ring_position = 3;
|
|
178
207
|
}
|
|
179
208
|
|
|
180
209
|
message ClientReleaseChannel {
|
|
210
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_CLIENT;
|
|
181
211
|
repeated string release_channels = 1 [packed = false];
|
|
182
212
|
}
|
|
183
213
|
|
|
184
214
|
message Always {
|
|
215
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_UTILITY;
|
|
185
216
|
bool value = 1;
|
|
186
217
|
}
|
|
187
218
|
|
|
188
219
|
message ClientSystemLocale {
|
|
220
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_CLIENT;
|
|
189
221
|
repeated string locales = 1 [packed = false];
|
|
190
222
|
}
|
|
191
223
|
|
|
192
224
|
message UnitIdInExperiment {
|
|
225
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_UTILITY;
|
|
193
226
|
fixed64 experiment_id = 1;
|
|
194
227
|
repeated int32 variation_ids = 2;
|
|
195
228
|
}
|
|
196
229
|
|
|
197
230
|
message UserPremiumType {
|
|
231
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
198
232
|
repeated int32 premium_types = 1;
|
|
199
233
|
}
|
|
200
234
|
|
|
201
235
|
message UnitIdMatchesFilterSnapshot {
|
|
236
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_UTILITY;
|
|
202
237
|
string filter_snapshot_name = 1;
|
|
203
238
|
repeated fixed64 target_filter_values = 2;
|
|
204
239
|
}
|
|
205
240
|
|
|
206
241
|
message GuildIds {
|
|
242
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_GUILD;
|
|
207
243
|
repeated fixed64 guild_ids = 1;
|
|
208
244
|
}
|
|
209
245
|
|
|
210
246
|
message GuildMemberCountRange {
|
|
247
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_GUILD;
|
|
211
248
|
optional google.protobuf.UInt32Value min_count = 1;
|
|
212
249
|
optional google.protobuf.UInt32Value max_count = 2;
|
|
213
250
|
}
|
|
214
251
|
|
|
215
252
|
message GuildHasFeature {
|
|
253
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_GUILD;
|
|
216
254
|
repeated string features = 1 [packed = false];
|
|
217
255
|
}
|
|
218
256
|
|
|
219
257
|
message UserLocation {
|
|
258
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
220
259
|
repeated Location locations = 1;
|
|
221
260
|
bool prefer_client_ip = 2;
|
|
222
261
|
}
|
|
223
262
|
|
|
224
263
|
message UserIP {
|
|
264
|
+
option (discord_protos.discord_experimentation.v1.filter_category) = FILTER_CATEGORY_USER;
|
|
225
265
|
repeated string blocks = 1 [packed = false];
|
|
226
266
|
bool prefer_client_ip = 2;
|
|
227
267
|
}
|
|
@@ -354,4 +394,5 @@ message Experiment {
|
|
|
354
394
|
optional google.protobuf.Timestamp archive_at = 33;
|
|
355
395
|
optional google.protobuf.Int32Value guild_experiment_version = 35;
|
|
356
396
|
CustomUnitPrefix custom_unit_prefix = 36;
|
|
397
|
+
repeated string growthbook_tags = 37 [packed = false];
|
|
357
398
|
}
|