@ifunny/ifunny-api-types 1.0.3 → 1.2.0

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.
Files changed (215) hide show
  1. package/.devenv/bootstrap/bootstrapLib.nix +630 -0
  2. package/.devenv/bootstrap/default.nix +22 -0
  3. package/.devenv/bootstrap/resolve-lock.nix +190 -0
  4. package/.devenv/changelog-cache.json +9 -0
  5. package/.devenv/devenv.fish +252 -0
  6. package/.devenv/imports.txt +0 -0
  7. package/.devenv/input-paths.txt +10 -0
  8. package/.devenv/load-exports +1 -0
  9. package/.devenv/nix-eval-cache.db +0 -0
  10. package/.devenv/nix-eval-cache.db-shm +0 -0
  11. package/.devenv/nix-eval-cache.db-wal +0 -0
  12. package/.devenv/nix-eval-cache.db.init.lock +0 -0
  13. package/.devenv/nixpkgs-config-99f33fda17d41bc9.nix +17 -0
  14. package/.devenv/nixpkgs-config-c46eff8321b73149.nix +29 -0
  15. package/.devenv/profiles/nix/bootstrap/bootstrapLib.nix +571 -0
  16. package/.devenv/profiles/nix/bootstrap/default.nix +19 -0
  17. package/.devenv/profiles/nix/bootstrap/resolve-lock.nix +157 -0
  18. package/.devenv/profiles/nix/imports.txt +0 -0
  19. package/.devenv/profiles/nix/input-paths.txt +4 -0
  20. package/.devenv/profiles/nix/load-exports +1 -0
  21. package/.devenv/profiles/nix/nix-eval-cache.db +0 -0
  22. package/.devenv/profiles/nix/nix-eval-cache.db-shm +0 -0
  23. package/.devenv/profiles/nix/nix-eval-cache.db-wal +0 -0
  24. package/.devenv/profiles/nix/nixpkgs-config-99f33fda17d41bc9.nix +17 -0
  25. package/.devenv/profiles/nix/shell-0d722b4fe4724c8e.sh +2270 -0
  26. package/.devenv/profiles/nix/shell-314b72302fb2c916.sh +2270 -0
  27. package/.devenv/profiles/nix/shell-6a4b00b5ca837a3b.sh +2270 -0
  28. package/.devenv/profiles/nix/shell-956adc1e664f64c3.sh +2270 -0
  29. package/.devenv/profiles/nix/shell-9dbff87fad44e8d9.sh +2270 -0
  30. package/.devenv/profiles/nix/shell-b1e9e1f82076662f.sh +2270 -0
  31. package/.devenv/profiles/nix/shell-b4f4bbfa36797bee.sh +2270 -0
  32. package/.devenv/profiles/nix/shell-c4b190d331c48d67.sh +2270 -0
  33. package/.devenv/profiles/nix/state/files.json +1 -0
  34. package/.devenv/profiles/nix/state/tasks.db +0 -0
  35. package/.devenv/profiles/nix/state/tasks.db-shm +0 -0
  36. package/.devenv/profiles/nix/state/tasks.db-wal +0 -0
  37. package/.devenv/profiles/nix/task-names.txt +5 -0
  38. package/.devenv/shell-086ca2c39799e6a6.sh +2270 -0
  39. package/.devenv/shell-2c06a35dd99be3d1.sh +2270 -0
  40. package/.devenv/shell-36f1fe0faec08873.sh +2270 -0
  41. package/.devenv/shell-676361065bda5b43.sh +2270 -0
  42. package/.devenv/shell-9f6cb513d1721fef.sh +2270 -0
  43. package/.devenv/shell-c0e4459b4f5922d7.sh +2270 -0
  44. package/.devenv/shell-c862a0db6e9ad5f4.sh +2270 -0
  45. package/.devenv/shell-d71ade933a43e837.sh +2270 -0
  46. package/.devenv/shell-dd73aac05b182946.sh +2270 -0
  47. package/.devenv/shell-e39d0b30a7e0eb13.sh +2270 -0
  48. package/.devenv/shell-env.sh +2263 -0
  49. package/.devenv/shell-f924d749ff8c17ee.sh +2270 -0
  50. package/.devenv/shell-rcfile.sh +152 -0
  51. package/.devenv/state/files.json +1 -0
  52. package/.devenv/state/tasks.db +0 -0
  53. package/.devenv/state/tasks.db-shm +0 -0
  54. package/.devenv/state/tasks.db-wal +0 -0
  55. package/.devenv/state/tasks.db.init.lock +0 -0
  56. package/.devenv/task-names.txt +5 -0
  57. package/.github/workflows/codeql.yml +72 -72
  58. package/.github/workflows/test.yml +31 -31
  59. package/CHANGELOG.md +8405 -417
  60. package/LICENSE +121 -121
  61. package/README.md +2 -2
  62. package/devenv.lock +65 -0
  63. package/devenv.nix +38 -0
  64. package/devenv.yaml +18 -0
  65. package/eslint.config.mjs +18 -0
  66. package/package.json +59 -50
  67. package/prettier.config.js +15 -0
  68. package/dist/errors/bad_request.js +0 -8
  69. package/dist/errors/bad_request.js.map +0 -1
  70. package/dist/errors/captcha_required.js +0 -19
  71. package/dist/errors/captcha_required.js.map +0 -1
  72. package/dist/errors/email_exists.js +0 -8
  73. package/dist/errors/email_exists.js.map +0 -1
  74. package/dist/errors/error.js +0 -3
  75. package/dist/errors/error.js.map +0 -1
  76. package/dist/errors/error_base.js +0 -43
  77. package/dist/errors/error_base.js.map +0 -1
  78. package/dist/errors/index.js +0 -29
  79. package/dist/errors/index.js.map +0 -1
  80. package/dist/errors/invalid_client.js +0 -8
  81. package/dist/errors/invalid_client.js.map +0 -1
  82. package/dist/errors/invalid_email.js +0 -8
  83. package/dist/errors/invalid_email.js.map +0 -1
  84. package/dist/errors/invalid_grant.js +0 -8
  85. package/dist/errors/invalid_grant.js.map +0 -1
  86. package/dist/errors/not_found.js +0 -3
  87. package/dist/errors/not_found.js.map +0 -1
  88. package/dist/errors/permission_denied.js +0 -8
  89. package/dist/errors/permission_denied.js.map +0 -1
  90. package/dist/errors/unauthorized.js +0 -8
  91. package/dist/errors/unauthorized.js.map +0 -1
  92. package/dist/errors/wrong_params.js +0 -8
  93. package/dist/errors/wrong_params.js.map +0 -1
  94. package/dist/index.js +0 -21
  95. package/dist/index.js.map +0 -1
  96. package/dist/payloads/activity.js +0 -50
  97. package/dist/payloads/activity.js.map +0 -1
  98. package/dist/payloads/app.js +0 -3
  99. package/dist/payloads/app.js.map +0 -1
  100. package/dist/payloads/appeal.js +0 -14
  101. package/dist/payloads/appeal.js.map +0 -1
  102. package/dist/payloads/ban.js +0 -36
  103. package/dist/payloads/ban.js.map +0 -1
  104. package/dist/payloads/base.js +0 -3
  105. package/dist/payloads/base.js.map +0 -1
  106. package/dist/payloads/client.js +0 -13
  107. package/dist/payloads/client.js.map +0 -1
  108. package/dist/payloads/comment.js +0 -42
  109. package/dist/payloads/comment.js.map +0 -1
  110. package/dist/payloads/content.js +0 -176
  111. package/dist/payloads/content.js.map +0 -1
  112. package/dist/payloads/index.js +0 -27
  113. package/dist/payloads/index.js.map +0 -1
  114. package/dist/payloads/strike.js +0 -3
  115. package/dist/payloads/strike.js.map +0 -1
  116. package/dist/payloads/user.js +0 -214
  117. package/dist/payloads/user.js.map +0 -1
  118. package/dist/rest/account.js +0 -3
  119. package/dist/rest/account.js.map +0 -1
  120. package/dist/rest/content.js +0 -54
  121. package/dist/rest/content.js.map +0 -1
  122. package/dist/rest/counters.js +0 -3
  123. package/dist/rest/counters.js.map +0 -1
  124. package/dist/rest/endpoints.js +0 -199
  125. package/dist/rest/endpoints.js.map +0 -1
  126. package/dist/rest/explore.js +0 -82
  127. package/dist/rest/explore.js.map +0 -1
  128. package/dist/rest/feeds.js +0 -3
  129. package/dist/rest/feeds.js.map +0 -1
  130. package/dist/rest/index.js +0 -25
  131. package/dist/rest/index.js.map +0 -1
  132. package/dist/rest/issues.js +0 -3
  133. package/dist/rest/issues.js.map +0 -1
  134. package/dist/rest/oauth2.js +0 -9
  135. package/dist/rest/oauth2.js.map +0 -1
  136. package/dist/utils/index.js +0 -19
  137. package/dist/utils/index.js.map +0 -1
  138. package/dist/utils/rest.js +0 -3
  139. package/dist/utils/rest.js.map +0 -1
  140. package/dist/utils/util.js +0 -3
  141. package/dist/utils/util.js.map +0 -1
  142. package/types/errors/bad_request.d.ts +0 -12
  143. package/types/errors/bad_request.d.ts.map +0 -1
  144. package/types/errors/captcha_required.d.ts +0 -33
  145. package/types/errors/captcha_required.d.ts.map +0 -1
  146. package/types/errors/email_exists.d.ts +0 -15
  147. package/types/errors/email_exists.d.ts.map +0 -1
  148. package/types/errors/error.d.ts +0 -29
  149. package/types/errors/error.d.ts.map +0 -1
  150. package/types/errors/error_base.d.ts +0 -61
  151. package/types/errors/error_base.d.ts.map +0 -1
  152. package/types/errors/index.d.ts +0 -13
  153. package/types/errors/index.d.ts.map +0 -1
  154. package/types/errors/invalid_client.d.ts +0 -15
  155. package/types/errors/invalid_client.d.ts.map +0 -1
  156. package/types/errors/invalid_email.d.ts +0 -15
  157. package/types/errors/invalid_email.d.ts.map +0 -1
  158. package/types/errors/invalid_grant.d.ts +0 -12
  159. package/types/errors/invalid_grant.d.ts.map +0 -1
  160. package/types/errors/not_found.d.ts +0 -8
  161. package/types/errors/not_found.d.ts.map +0 -1
  162. package/types/errors/permission_denied.d.ts +0 -12
  163. package/types/errors/permission_denied.d.ts.map +0 -1
  164. package/types/errors/unauthorized.d.ts +0 -12
  165. package/types/errors/unauthorized.d.ts.map +0 -1
  166. package/types/errors/wrong_params.d.ts +0 -11
  167. package/types/errors/wrong_params.d.ts.map +0 -1
  168. package/types/index.d.ts +0 -5
  169. package/types/index.d.ts.map +0 -1
  170. package/types/payloads/activity.d.ts +0 -114
  171. package/types/payloads/activity.d.ts.map +0 -1
  172. package/types/payloads/app.d.ts +0 -266
  173. package/types/payloads/app.d.ts.map +0 -1
  174. package/types/payloads/appeal.d.ts +0 -22
  175. package/types/payloads/appeal.d.ts.map +0 -1
  176. package/types/payloads/ban.d.ts +0 -85
  177. package/types/payloads/ban.d.ts.map +0 -1
  178. package/types/payloads/base.d.ts +0 -5
  179. package/types/payloads/base.d.ts.map +0 -1
  180. package/types/payloads/client.d.ts +0 -106
  181. package/types/payloads/client.d.ts.map +0 -1
  182. package/types/payloads/comment.d.ts +0 -124
  183. package/types/payloads/comment.d.ts.map +0 -1
  184. package/types/payloads/content.d.ts +0 -676
  185. package/types/payloads/content.d.ts.map +0 -1
  186. package/types/payloads/index.d.ts +0 -11
  187. package/types/payloads/index.d.ts.map +0 -1
  188. package/types/payloads/strike.d.ts +0 -15
  189. package/types/payloads/strike.d.ts.map +0 -1
  190. package/types/payloads/user.d.ts +0 -515
  191. package/types/payloads/user.d.ts.map +0 -1
  192. package/types/rest/account.d.ts +0 -4
  193. package/types/rest/account.d.ts.map +0 -1
  194. package/types/rest/content.d.ts +0 -96
  195. package/types/rest/content.d.ts.map +0 -1
  196. package/types/rest/counters.d.ts +0 -10
  197. package/types/rest/counters.d.ts.map +0 -1
  198. package/types/rest/endpoints.d.ts +0 -153
  199. package/types/rest/endpoints.d.ts.map +0 -1
  200. package/types/rest/explore.d.ts +0 -113
  201. package/types/rest/explore.d.ts.map +0 -1
  202. package/types/rest/feeds.d.ts +0 -17
  203. package/types/rest/feeds.d.ts.map +0 -1
  204. package/types/rest/index.d.ts +0 -9
  205. package/types/rest/index.d.ts.map +0 -1
  206. package/types/rest/issues.d.ts +0 -16
  207. package/types/rest/issues.d.ts.map +0 -1
  208. package/types/rest/oauth2.d.ts +0 -37
  209. package/types/rest/oauth2.d.ts.map +0 -1
  210. package/types/utils/index.d.ts +0 -3
  211. package/types/utils/index.d.ts.map +0 -1
  212. package/types/utils/rest.d.ts +0 -50
  213. package/types/utils/rest.d.ts.map +0 -1
  214. package/types/utils/util.d.ts +0 -80
  215. package/types/utils/util.d.ts.map +0 -1
@@ -1,15 +0,0 @@
1
- import { EpochSec } from "../utils";
2
- import { APIBanReason } from "./ban";
3
- import Base from "./base";
4
- import { APIContent } from "./content";
5
- export interface APIStrike extends Base {
6
- ban_reason: APIBanReason;
7
- created_at: EpochSec;
8
- expired_at: EpochSec;
9
- related_content?: APIContent;
10
- was_shown: boolean;
11
- is_active: boolean;
12
- ban_days: number;
13
- is_appealed: boolean;
14
- }
15
- //# sourceMappingURL=strike.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strike.d.ts","sourceRoot":"","sources":["../../src/payloads/strike.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AACrC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,WAAW,SAAU,SAAQ,IAAI;IACtC,UAAU,EAAE,YAAY,CAAC;IACzB,UAAU,EAAE,QAAQ,CAAC;IACrB,UAAU,EAAE,QAAQ,CAAC;IACrB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;CACrB"}
@@ -1,515 +0,0 @@
1
- import { HexCode, Size } from "../utils/util";
2
- import { APIBanSmall } from "./ban";
3
- import { APIBasePayload } from "./base";
4
- /**
5
- * Simple user type typically found in array of users
6
- */
7
- export declare type APISimpleUser = Omit<APIUser, "rating" | "nick_color">;
8
- /**
9
- * The creator object for the Content
10
- */
11
- export interface APIUser extends Pick<APIUserProfile, "id" | "nick" | "photo" | "is_verified" | "is_banned" | "is_deleted" | "is_in_subscriptions" | "is_in_subscribers" | "is_blocked" | "nick_color" | "rating" | "original_nick" | "block_type"> {
12
- /**
13
- * Only includes subscription and subscriber count
14
- */
15
- num: APIUserNums;
16
- /**
17
- * Total amount of posts the user has
18
- */
19
- total_posts: number;
20
- }
21
- /**
22
- * Num object for the simple user\
23
- * ? `total_posts` is not in APIUserNumBase. Try `user.total_posts`
24
- */
25
- export interface APIUserNums {
26
- /**
27
- * Total amount of users that are subscribed to the Client
28
- */
29
- subscribers: number;
30
- /**
31
- * Total amount of users the Client is subscribed to
32
- */
33
- subscriptions: number;
34
- }
35
- /**
36
- * Represents a user from iFunny
37
- */
38
- export interface APIUserProfile extends APIBasePayload {
39
- /**
40
- * User's about bio\
41
- * ? Can be an empty string
42
- */
43
- about: string;
44
- /**
45
- * Did the user block the client
46
- */
47
- are_you_blocked: boolean;
48
- /**
49
- * Array of APIBan objects.
50
- */
51
- bans: APIBanSmall[];
52
- /**
53
- * Block type if the user is blocked
54
- */
55
- block_type?: APIUserBlockType;
56
- /**
57
- * User's cover image background color {@link HexCode}
58
- */
59
- cover_bg_color?: HexCode;
60
- /**
61
- * User's cover image url
62
- * @example
63
- * `https://img.ifunny.co/user_covers/${string}.webp`
64
- */
65
- cover_url?: string;
66
- /**
67
- * User's unique id\
68
- * ? Never changes
69
- */
70
- id: string;
71
- /**
72
- * Can the Client chat with the user
73
- */
74
- is_available_for_chat: boolean;
75
- /**
76
- * Is the user banned\
77
- * ! UNSAFE TO CHECK FOR ACTIVE BANS
78
- */
79
- is_banned: boolean;
80
- /**
81
- * Is the user blocked by the client
82
- */
83
- is_blocked: boolean;
84
- /**
85
- * Is the user deleted from iFunny's servers\
86
- * ? if true, many properties will be undefined
87
- */
88
- is_deleted: boolean;
89
- /**
90
- * Is the User subscribed to the Client
91
- */
92
- is_in_subscribers: boolean;
93
- /**
94
- * Is the Client subscribed to the user
95
- */
96
- is_in_subscriptions: boolean;
97
- /**
98
- * Is the user's account private
99
- */
100
- is_private: boolean;
101
- /**
102
- * Is the client subscribed to the user's notifications
103
- */
104
- is_subscribed_to_updates: boolean;
105
- /**
106
- * Is the user verified on iFunny
107
- */
108
- is_verified: boolean;
109
- /**
110
- * The user's meme experience
111
- */
112
- meme_experience: APIMemeExperience;
113
- /**
114
- * The Chat privacy status of the user
115
- */
116
- messaging_privacy_status: APIUserMessagePrivacy;
117
- /**
118
- * Does the user have access to chats
119
- */
120
- messenger_active: boolean;
121
- /**
122
- * Seems to always be `"1010101010101010101010101010101010101010"`
123
- */
124
- messenger_token: string;
125
- /**
126
- * User's unique username\
127
- * ! UNSAFE FOR USER CACHING.
128
- */
129
- nick: string;
130
- /**
131
- * User's nick color\
132
- * ? Default: 55FF00
133
- */
134
- nick_color?: APINickColor;
135
- /**
136
- * User's profile stats
137
- */
138
- num: APIUserProfileNums;
139
- /**
140
- * Original nick of the user\
141
- * ? iFunny censors some usernames similar to the comment filter
142
- */
143
- original_nick: string;
144
- /**
145
- * The user's profile photo
146
- */
147
- photo?: APIProfilePhoto;
148
- /**
149
- * The user's rating\
150
- * ! Deprecated by iFunny
151
- */
152
- rating: APIUserRating;
153
- /**
154
- * The User's linked social accounts\
155
- * Twitter, Google, Facebook
156
- */
157
- social?: APIUserAllSocials;
158
- /**
159
- * User's inapp share url
160
- * @example
161
- * `https://ifunny.co/user/:nick`
162
- */
163
- web_url: string;
164
- }
165
- export declare enum UserBlockType {
166
- USER = "user",
167
- INSTALLATION = "installation"
168
- }
169
- export declare type APIUserBlockType = `${UserBlockType}`;
170
- /**
171
- * `closed` only the user can create direct messages\
172
- * `public` anyone can create a direct message the user\
173
- * `subscribers` only subscribers can create a direct message with the user\
174
- * ? Backend does not check this status on requests as of 5/28/22
175
- */
176
- export declare enum MESSAGE_PRIVACY {
177
- CLOSED = "closed",
178
- PUBLIC = "public",
179
- SUBSCRIBERS = "subscribers"
180
- }
181
- export declare type APIUserMessagePrivacy = `${MESSAGE_PRIVACY}`;
182
- /**
183
- * A user's meme experience
184
- */
185
- export interface APIMemeExperience {
186
- /**
187
- * Pixel size of the badge
188
- */
189
- badge_size: Size;
190
- /**
191
- * MemeRank badge png url
192
- * @example
193
- * `https://img.ifunny.co/meme_experience/${number}.png`
194
- */
195
- badge_url: string;
196
- /**
197
- * The amount of days the user has logged into iFunny
198
- */
199
- days: number;
200
- /**
201
- * Days needed to get to the meme rank
202
- */
203
- next_milestone: typeof MILESTONES[keyof typeof MILESTONES];
204
- /**
205
- * The user's rank name
206
- */
207
- rank: APIMemeRank;
208
- }
209
- /**
210
- * All current Meme Ranks from the API
211
- */
212
- export declare enum RANK {
213
- /**
214
- * Days: `1-4`
215
- */
216
- MEME_EXPLORER = "Meme explorer",
217
- /**
218
- * Days: `5-24`
219
- */
220
- MEME_BRO = "Meme bro",
221
- /**
222
- * Days: `25-49`
223
- */
224
- MEME_DADDY = "Meme daddy",
225
- /**
226
- * Days: `50-99`
227
- */
228
- DANK_MEMER = "Dank memer",
229
- /**
230
- * Days: `100-199`
231
- */
232
- MEME_MASTER_BAKER = "Meme master baker",
233
- /**
234
- * Days: `200-299`
235
- */
236
- DEEP_FRIED_MEMER = "Deep fried memer",
237
- /**
238
- * Days: `300-499`
239
- */
240
- SAUCY_MEMER = "Saucy memer",
241
- /**
242
- * Days: `500-665`
243
- */
244
- ORIGINAL_MEME_GANGSTER = "Original Meme Gangster",
245
- /**
246
- * Days: `666-910`
247
- */
248
- MEME_DEMON = "Meme demon",
249
- /**
250
- * Days: `911-999`
251
- */
252
- STEAL_BEAMS_OF_MEMES = "Steal beams of memes",
253
- /**
254
- * Days: `1000-1499`
255
- */
256
- MEME_DEALER = "Meme dealer",
257
- /**
258
- * Days: `1500-1999`
259
- */
260
- IFUNNY_VETERAN = "iFunny Veteran",
261
- /**
262
- * Days: `2000+`
263
- * * Final Meme Rank
264
- * ? next_milestone is `3000` but rank does not change
265
- */
266
- CHEFS_MEME_AGENT = "Chef's meme agent"
267
- }
268
- /**
269
- * The minimum amount of days for each rank
270
- */
271
- export declare const DAYS: {
272
- /**
273
- * Days: `1-4`
274
- */
275
- readonly MEME_EXPLORER: 1;
276
- /**
277
- * Days: `5-24`
278
- */
279
- readonly MEME_BRO: 5;
280
- /**
281
- * Days: `25-49`
282
- */
283
- readonly MEME_DADDY: 25;
284
- /**
285
- * Days: `50-99`
286
- */
287
- readonly DANK_MEMER: 50;
288
- /**
289
- * Days: `100-199`
290
- */
291
- readonly MEME_MASTER_BAKER: 100;
292
- /**
293
- * Days: `200-299`
294
- */
295
- readonly DEEP_FRIED_MEMER: 200;
296
- /**
297
- * Days: `300-499`
298
- */
299
- readonly SAUCY_MEMER: 300;
300
- /**
301
- * Days: `500-665`
302
- */
303
- readonly ORIGINAL_MEME_GANGSTER: 500;
304
- /**
305
- * Days: `666-910`
306
- */
307
- readonly MEME_DEMON: 666;
308
- /**
309
- * Days: `911-999`
310
- */
311
- readonly STEAL_BEAMS_OF_MEMES: 911;
312
- /**
313
- * Days: `1000-1499`
314
- */
315
- readonly MEME_DEALER: 1000;
316
- /**
317
- * Days: `1500-1999`
318
- */
319
- readonly IFUNNY_VETERAN: 1500;
320
- /**
321
- * Days: `2000+`
322
- * * Final Meme Rank
323
- * ? next_milestone is `3000` but rank does not change
324
- */
325
- readonly CHEFS_MEME_AGENT: 2000;
326
- };
327
- /**
328
- * The next milestone for each rank
329
- */
330
- export declare const MILESTONES: {
331
- /**
332
- * Days: `1-4`
333
- */
334
- readonly MEME_EXPLORER: 5;
335
- /**
336
- * Days: `5-24`
337
- */
338
- readonly MEME_BRO: 25;
339
- /**
340
- * Days: `25-49`
341
- */
342
- readonly MEME_DADDY: 50;
343
- /**
344
- * Days: `50-99`
345
- */
346
- readonly DANK_MEMER: 100;
347
- /**
348
- * Days: `100-199`
349
- */
350
- readonly MEME_MASTER_BAKER: 200;
351
- /**
352
- * Days: `200-299`
353
- */
354
- readonly DEEP_FRIED_MEMER: 300;
355
- /**
356
- * Days: `300-499`
357
- */
358
- readonly SAUCY_MEMER: 500;
359
- /**
360
- * Days: `500-665`
361
- */
362
- readonly ORIGINAL_MEME_GANGSTER: 666;
363
- /**
364
- * Days: `666-910`
365
- */
366
- readonly MEME_DEMON: 911;
367
- /**
368
- * Days: `911-999`
369
- */
370
- readonly STEAL_BEAMS_OF_MEMES: 1000;
371
- /**
372
- * Days: `1000-1499`
373
- */
374
- readonly MEME_DEALER: 1500;
375
- /**
376
- * Days: `1500-1999`
377
- */
378
- readonly IFUNNY_VETERAN: 2000;
379
- /**
380
- * Days: `2000+`
381
- * * Final Meme Rank\
382
- * ? next_milestone is `3000` but rank does not change
383
- */
384
- readonly CHEFS_MEME_AGENT: 3000;
385
- };
386
- export declare type APIMemeRank = `${RANK}`;
387
- export interface APIProfilePhoto {
388
- /**
389
- * Profile Photo background color {@link HexCode}
390
- */
391
- bg_color: HexCode;
392
- /**
393
- * Profile photo thumbnail
394
- */
395
- thumb: APIProfilePhotoThumbnail;
396
- /**
397
- * Profile photo content url
398
- */
399
- url: string;
400
- }
401
- /**
402
- * Profile photo thumbnail
403
- */
404
- export interface APIProfilePhotoThumbnail {
405
- /**
406
- * resize:400x,quality:90
407
- */
408
- large_url: string;
409
- /**
410
- * resize:200x quality:90
411
- */
412
- medium_url: string;
413
- /**
414
- * resize:100x quality:90
415
- */
416
- small_url: string;
417
- }
418
- export interface APIUserProfileNums extends APIUserNums {
419
- /**
420
- * Total amount of posts on the user's timeline
421
- */
422
- total_posts: number;
423
- /**
424
- * Amout of original (not republished) posts on the user's timeline
425
- */
426
- created: number;
427
- /**
428
- * Amount of featured posts the user has
429
- */
430
- featured: number;
431
- /**
432
- * Amount of smiles the user has from posts
433
- */
434
- total_smiles: number;
435
- /**
436
- * Amount of achievements the user has
437
- */
438
- achievements: number;
439
- }
440
- /**
441
- * User's Rating\
442
- * ! Deprecated by iFunny
443
- */
444
- export interface APIUserRating {
445
- points: number;
446
- current_level: APIUserRatingLevel;
447
- next_level: APIUserRatingLevel;
448
- max_level: APIUserRatingLevel;
449
- is_show_level: boolean;
450
- }
451
- /**
452
- * A User Rating Level\
453
- * ! Deprecated by iFunny
454
- */
455
- export interface APIUserRatingLevel {
456
- id: string;
457
- value: number;
458
- points: number;
459
- }
460
- /**
461
- * Known nick colors
462
- */
463
- export declare enum NICK_COLOR {
464
- BRIGHT_GREEN = "55FF00",
465
- BETA_TESTER = "55FF00",
466
- MAROON = "660000",
467
- ORANGE = "e0b400",
468
- PURPLE = "a078f0",
469
- RED = "ff3e52",
470
- WHITE = "ffffff"
471
- }
472
- /**
473
- * A user's nick color\
474
- * ? Nick colors are hex codes but these are the currently documented ones
475
- */
476
- export declare type APINickColor = `${NICK_COLOR}`;
477
- /**
478
- * A user's linked socials
479
- */
480
- export interface APIUserAllSocials {
481
- /**
482
- * Apple account linked to the user
483
- */
484
- apple?: APIUserSocial;
485
- /**
486
- * Facebook account linked to the user
487
- */
488
- fb?: APIUserSocial;
489
- /**
490
- * Google account linked to the user
491
- */
492
- ggl?: APIUserSocial;
493
- /**
494
- * Odnoklassniki account linked to the user (Russian social media)
495
- */
496
- ok?: APIUserSocial;
497
- /**
498
- * Twitter account linked to the user
499
- */
500
- tw?: APIUserSocial;
501
- /**
502
- * V Kontakte account linked to the user (Russian social media)
503
- */
504
- vk?: APIUserSocial;
505
- }
506
- /**
507
- * A user's linked social
508
- */
509
- export interface APIUserSocial {
510
- id: string;
511
- is_hidden: boolean;
512
- link: string;
513
- nick?: string;
514
- }
515
- //# sourceMappingURL=user.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../src/payloads/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAExC;;GAEG;AACH,oBAAY,aAAa,GAAG,IAAI,CAAC,OAAO,EAAE,QAAQ,GAAG,YAAY,CAAC,CAAC;AAEnE;;GAEG;AACH,MAAM,WAAW,OAChB,SAAQ,IAAI,CACX,cAAc,EACZ,IAAI,GACJ,MAAM,GACN,OAAO,GACP,aAAa,GACb,WAAW,GACX,YAAY,GACZ,qBAAqB,GACrB,mBAAmB,GACnB,YAAY,GACZ,YAAY,GACZ,QAAQ,GACR,eAAe,GACf,YAAY,CACd;IACD;;OAEG;IACH,GAAG,EAAE,WAAW,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC3B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc;IACrD;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,eAAe,EAAE,OAAO,CAAC;IACzB;;OAEG;IACH,IAAI,EAAE,WAAW,EAAE,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;OAIG;IACH,SA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AG,UAAU,EAAE,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,iBAAiB;IACjC;;OAEG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAC;IACnB;;OAEG;IACH,EAAE,CAAC,EAAE,aAAa,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACd"}
@@ -1,4 +0,0 @@
1
- import { APIClientUser } from "../payloads/client";
2
- import { RESTAPISuccessResponse } from "../utils/rest";
3
- export declare type RESTAPIAccountSuccess = RESTAPISuccessResponse<APIClientUser>;
4
- //# sourceMappingURL=account.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/rest/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,oBAAY,qBAAqB,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC"}
@@ -1,96 +0,0 @@
1
- import { APIContent, APISimpleUser } from "../payloads";
2
- import { RESTAPIItems, RESTAPISuccessResponse } from "../utils";
3
- /**
4
- * Possible report reasons
5
- */
6
- export declare enum REPORT_TYPE {
7
- /**
8
- * Hate Speech
9
- */
10
- HATE = "hate",
11
- /**
12
- * Nudity
13
- */
14
- NUDE = "nude",
15
- /**
16
- * Bot spam / spamming
17
- */
18
- SPAM = "spam",
19
- /**
20
- * Scam or Fraud
21
- */
22
- FRAUD = "fraud",
23
- /**
24
- * Targeted Abuse
25
- */
26
- TARGETED_ABUSE = "target",
27
- /**
28
- * Threats of Harm
29
- */
30
- THREATS = "harm",
31
- /**
32
- * Violence or Gore
33
- */
34
- VIOLENCE = "violence",
35
- /**
36
- * Harassment
37
- */
38
- HARASSMENT = "harassment",
39
- /**
40
- * Suicide or Self-injury
41
- */
42
- SUICIDE = "suicide",
43
- /**
44
- * Illegal or regulated goods
45
- */
46
- ILLEGAL = "illegal",
47
- /**
48
- * Banner Issues
49
- */
50
- BANNER = "banner"
51
- }
52
- /**
53
- * Possible report reasons
54
- */
55
- export declare type APIReportReason = `${REPORT_TYPE}`;
56
- /**
57
- * @example
58
- * GET /v4/content/:contentId
59
- */
60
- export declare type RESTAPIContentResponse = RESTAPISuccessResponse<APIContent>;
61
- /**
62
- * Nums returned when smiling or unsmiling content
63
- */
64
- export interface ContentSmileNums {
65
- num_smiles: number;
66
- num_unsmiles: number;
67
- num_guest_smiles: number;
68
- }
69
- /**
70
- * @example
71
- * PUT /v4/content/:contentId/smiles
72
- * DELETE /v4/content/:contentId/smiles
73
- * PUT /v4/content/:contentId/unsmiles
74
- * DELETE /v4/content/:contentId/unsmiles
75
- */
76
- export declare type RESTAPIContentSmileResponse = RESTAPISuccessResponse<ContentSmileNums>;
77
- export interface ContentSmileUsers {
78
- smiles_count: number;
79
- guest_smiles_count: number;
80
- users: RESTAPIItems<APISimpleUser>;
81
- }
82
- /**
83
- * @example
84
- * GET /v4/content/:contentId/smiles
85
- */
86
- export declare type RESTAPIContentSmileUsersResponse = RESTAPISuccessResponse<ContentSmileUsers>;
87
- export interface ContentRepublishUsers {
88
- republishes_count: number;
89
- users: RESTAPIItems<APISimpleUser>;
90
- }
91
- /**
92
- * @example
93
- * GET /v4/content/:contentId/republished
94
- */
95
- export declare type RESTAPIContentRepublishUsersResponse = RESTAPISuccessResponse<ContentRepublishUsers>;
96
- //# sourceMappingURL=content.d.ts.map
@@ -1 +0,0 @@
1
- {"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ACnC;AAED;;;GAGG;AACH,oBAAY,oCAAoC,GAC/C,sBAAsB,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { RESTAPISuccessResponse } from "../utils";
2
- export interface APICounters {
3
- featured: number;
4
- subscriptions: number;
5
- collective: number;
6
- news: number;
7
- map: number;
8
- }
9
- export declare type RESTAPICountersResponse = RESTAPISuccessResponse<APICounters>;
10
- //# sourceMappingURL=counters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"counters.d.ts","sourceRoot":"","sources":["../../src/rest/counters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAElD,MAAM,WAAW,WAAW;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACZ;AAED,oBAAY,uBAAuB,GAAG,sBAAsB,CAAC,WAAW,CAAC,CAAC"}