@ifunny/ifunny-api-types 1.0.4 → 1.2.2

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 +650 -0
  2. package/.devenv/bootstrap/default.nix +22 -0
  3. package/.devenv/bootstrap/lock-sources.nix +123 -0
  4. package/.devenv/bootstrap/resolve-input-paths.nix +34 -0
  5. package/.devenv/bootstrap/resolve-lock.nix +116 -0
  6. package/.devenv/changelog-cache.json +13 -0
  7. package/.devenv/devenv.fish +252 -0
  8. package/.devenv/imports.txt +0 -0
  9. package/.devenv/input-paths.txt +8 -0
  10. package/.devenv/load-exports +1 -0
  11. package/.devenv/nix-eval-cache.db +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 +2275 -0
  49. package/.devenv/shell-f924d749ff8c17ee.sh +2270 -0
  50. package/.devenv/shell-rcfile.sh +152 -0
  51. package/.devenv/state/files.json +5 -0
  52. package/.devenv/state/git-hooks-install/hooks +1 -0
  53. package/.devenv/state/git-hooks-install/key +4 -0
  54. package/.devenv/state/prek/.lock +0 -0
  55. package/.devenv/state/prek/README +2 -0
  56. package/.devenv/state/prek/config-tracking.json +3 -0
  57. package/.devenv/state/prek/patches/1793595918715-562072.patch +26 -0
  58. package/.devenv/state/prek/patches/1793596283854-574354.patch +22881 -0
  59. package/.devenv/state/prek/patches/1793596332255-574728.patch +22870 -0
  60. package/.devenv/state/prek/patches/1793597557669-617911.patch +284 -0
  61. package/.devenv/state/prek/patches/1793856046749-331249.patch +2906 -0
  62. package/.devenv/state/prek/patches/1793856096552-331868.patch +2998 -0
  63. package/.devenv/state/prek/patches/1793856146786-332328.patch +3009 -0
  64. package/.devenv/state/prek/patches/1793856181490-332981.patch +11401 -0
  65. package/.devenv/state/prek/patches/1793856203087-333510.patch +11388 -0
  66. package/.devenv/state/prek/patches/1793856277935-334258.patch +11372 -0
  67. package/.devenv/state/prek/patches/1793856646955-337912.patch +8488 -0
  68. package/.devenv/state/prek/patches/1793856682905-338572.patch +8260 -0
  69. package/.devenv/state/prek/patches/1793857035751-356215.patch +8295 -0
  70. package/.devenv/state/tasks.db +0 -0
  71. package/.devenv/state/tasks.db.init.lock +0 -0
  72. package/.devenv/task-names.txt +7 -0
  73. package/.github/workflows/codeql.yml +72 -72
  74. package/.github/workflows/test.yml +31 -31
  75. package/.prettierignore +9 -0
  76. package/CHANGELOG.md +609 -427
  77. package/LICENSE +121 -121
  78. package/README.md +2 -2
  79. package/devenv.lock +103 -0
  80. package/devenv.nix +35 -0
  81. package/devenv.yaml +23 -0
  82. package/dist/errors/bad_request.js +7 -7
  83. package/dist/errors/bad_request.js.map +1 -1
  84. package/dist/errors/captcha_required.js +18 -18
  85. package/dist/errors/captcha_required.js.map +1 -1
  86. package/dist/errors/email_exists.js +7 -7
  87. package/dist/errors/email_exists.js.map +1 -1
  88. package/dist/errors/error.js +2 -2
  89. package/dist/errors/error_base.js +42 -42
  90. package/dist/errors/error_base.js.map +1 -1
  91. package/dist/errors/index.js +28 -28
  92. package/dist/errors/invalid_client.js +7 -7
  93. package/dist/errors/invalid_client.js.map +1 -1
  94. package/dist/errors/invalid_email.js +7 -7
  95. package/dist/errors/invalid_email.js.map +1 -1
  96. package/dist/errors/invalid_grant.js +7 -7
  97. package/dist/errors/invalid_grant.js.map +1 -1
  98. package/dist/errors/not_found.js +2 -2
  99. package/dist/errors/permission_denied.js +7 -7
  100. package/dist/errors/permission_denied.js.map +1 -1
  101. package/dist/errors/unauthorized.js +7 -7
  102. package/dist/errors/unauthorized.js.map +1 -1
  103. package/dist/errors/wrong_params.js +7 -7
  104. package/dist/errors/wrong_params.js.map +1 -1
  105. package/dist/index.js +20 -20
  106. package/dist/payloads/activity.js +49 -49
  107. package/dist/payloads/activity.js.map +1 -1
  108. package/dist/payloads/app.js +2 -2
  109. package/dist/payloads/appeal.js +13 -13
  110. package/dist/payloads/appeal.js.map +1 -1
  111. package/dist/payloads/ban.js +35 -35
  112. package/dist/payloads/ban.js.map +1 -1
  113. package/dist/payloads/base.js +2 -2
  114. package/dist/payloads/chat.js +37 -0
  115. package/dist/payloads/chat.js.map +1 -0
  116. package/dist/payloads/client.js +12 -12
  117. package/dist/payloads/client.js.map +1 -1
  118. package/dist/payloads/comment.js +41 -41
  119. package/dist/payloads/comment.js.map +1 -1
  120. package/dist/payloads/content.js +175 -175
  121. package/dist/payloads/content.js.map +1 -1
  122. package/dist/payloads/index.js +28 -26
  123. package/dist/payloads/index.js.map +1 -1
  124. package/dist/payloads/strike.js +2 -2
  125. package/dist/payloads/topics.js +72 -0
  126. package/dist/payloads/topics.js.map +1 -0
  127. package/dist/payloads/user.js +214 -214
  128. package/dist/payloads/user.js.map +1 -1
  129. package/dist/rest/account.js +2 -2
  130. package/dist/rest/content.js +53 -53
  131. package/dist/rest/content.js.map +1 -1
  132. package/dist/rest/counters.js +2 -2
  133. package/dist/rest/endpoints.js +198 -198
  134. package/dist/rest/endpoints.js.map +1 -1
  135. package/dist/rest/explore.js +81 -81
  136. package/dist/rest/explore.js.map +1 -1
  137. package/dist/rest/feeds.js +2 -2
  138. package/dist/rest/index.js +24 -24
  139. package/dist/rest/issues.js +2 -2
  140. package/dist/rest/oauth2.js +8 -8
  141. package/dist/rest/oauth2.js.map +1 -1
  142. package/dist/utils/index.js +18 -18
  143. package/dist/utils/rest.js +2 -2
  144. package/dist/utils/util.js +2 -2
  145. package/eslint.config.mjs +18 -0
  146. package/package.json +66 -50
  147. package/prettier.config.js +15 -0
  148. package/tag-check.sh +111 -0
  149. package/types/errors/bad_request.d.ts +11 -11
  150. package/types/errors/bad_request.d.ts.map +1 -1
  151. package/types/errors/captcha_required.d.ts +32 -32
  152. package/types/errors/captcha_required.d.ts.map +1 -1
  153. package/types/errors/email_exists.d.ts +14 -14
  154. package/types/errors/email_exists.d.ts.map +1 -1
  155. package/types/errors/error.d.ts +28 -28
  156. package/types/errors/error.d.ts.map +1 -1
  157. package/types/errors/error_base.d.ts +60 -60
  158. package/types/errors/error_base.d.ts.map +1 -1
  159. package/types/errors/index.d.ts +12 -12
  160. package/types/errors/invalid_client.d.ts +14 -14
  161. package/types/errors/invalid_client.d.ts.map +1 -1
  162. package/types/errors/invalid_email.d.ts +14 -14
  163. package/types/errors/invalid_email.d.ts.map +1 -1
  164. package/types/errors/invalid_grant.d.ts +11 -11
  165. package/types/errors/invalid_grant.d.ts.map +1 -1
  166. package/types/errors/not_found.d.ts +7 -7
  167. package/types/errors/permission_denied.d.ts +11 -11
  168. package/types/errors/permission_denied.d.ts.map +1 -1
  169. package/types/errors/unauthorized.d.ts +11 -11
  170. package/types/errors/unauthorized.d.ts.map +1 -1
  171. package/types/errors/wrong_params.d.ts +10 -10
  172. package/types/errors/wrong_params.d.ts.map +1 -1
  173. package/types/index.d.ts +4 -4
  174. package/types/payloads/activity.d.ts +113 -113
  175. package/types/payloads/activity.d.ts.map +1 -1
  176. package/types/payloads/app.d.ts +265 -265
  177. package/types/payloads/appeal.d.ts +21 -21
  178. package/types/payloads/appeal.d.ts.map +1 -1
  179. package/types/payloads/ban.d.ts +84 -84
  180. package/types/payloads/ban.d.ts.map +1 -1
  181. package/types/payloads/base.d.ts +4 -4
  182. package/types/payloads/chat.d.ts +117 -0
  183. package/types/payloads/chat.d.ts.map +1 -0
  184. package/types/payloads/client.d.ts +107 -107
  185. package/types/payloads/client.d.ts.map +1 -1
  186. package/types/payloads/comment.d.ts +123 -123
  187. package/types/payloads/comment.d.ts.map +1 -1
  188. package/types/payloads/content.d.ts +676 -677
  189. package/types/payloads/content.d.ts.map +1 -1
  190. package/types/payloads/index.d.ts +12 -10
  191. package/types/payloads/index.d.ts.map +1 -1
  192. package/types/payloads/strike.d.ts +14 -14
  193. package/types/payloads/topics.d.ts +45 -0
  194. package/types/payloads/topics.d.ts.map +1 -0
  195. package/types/payloads/user.d.ts +522 -522
  196. package/types/payloads/user.d.ts.map +1 -1
  197. package/types/rest/account.d.ts +3 -3
  198. package/types/rest/account.d.ts.map +1 -1
  199. package/types/rest/content.d.ts +95 -95
  200. package/types/rest/content.d.ts.map +1 -1
  201. package/types/rest/counters.d.ts +9 -9
  202. package/types/rest/counters.d.ts.map +1 -1
  203. package/types/rest/endpoints.d.ts +152 -152
  204. package/types/rest/explore.d.ts +112 -112
  205. package/types/rest/explore.d.ts.map +1 -1
  206. package/types/rest/feeds.d.ts +16 -16
  207. package/types/rest/index.d.ts +8 -8
  208. package/types/rest/issues.d.ts +15 -15
  209. package/types/rest/oauth2.d.ts +36 -36
  210. package/types/rest/oauth2.d.ts.map +1 -1
  211. package/types/utils/index.d.ts +2 -2
  212. package/types/utils/rest.d.ts +49 -49
  213. package/types/utils/rest.d.ts.map +1 -1
  214. package/types/utils/util.d.ts +79 -79
  215. package/types/utils/util.d.ts.map +1 -1
@@ -1 +1 @@
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,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AC;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 +1,4 @@
1
- import { APIClientUser } from "../payloads/client";
2
- import { RESTAPISuccessResponse } from "../utils/rest";
3
- export declare type RESTAPIAccountSuccess = RESTAPISuccessResponse<APIClientUser>;
1
+ import { APIClientUser } from "../payloads/client";
2
+ import { RESTAPISuccessResponse } from "../utils/rest";
3
+ export type RESTAPIAccountSuccess = RESTAPISuccessResponse<APIClientUser>;
4
4
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
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
+ {"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,MAAM,MAAM,qBAAqB,GAAG,sBAAsB,CAAC,aAAa,CAAC,CAAC"}
@@ -1,96 +1,96 @@
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>;
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 type APIReportReason = `${REPORT_TYPE}`;
56
+ /**
57
+ * @example
58
+ * GET /v4/content/:contentId
59
+ */
60
+ export 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 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 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 type RESTAPIContentRepublishUsersResponse = RESTAPISuccessResponse<ContentRepublishUsers>;
96
96
  //# sourceMappingURL=content.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../src/rest/content.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAEhE;;GAEG;AACH,oBAAY,WAAW;IACtB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,KAAK,UAAU;IACf;;OAEG;IACH,cAAc,WAAW;IACzB;;OAEG;IACH,OAAO,SAAS;IAChB;;OAEG;IACH,QAAQ,aAAa;IACrB;;OAEG;IACH,UAAU,eAAe;IACzB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,MAAM,WAAW;CACjB;AAED;;GAEG;AACH,oBAAY,eAAe,GAAG,GAAG,WAAW,EAAE,CAAC;AAE/C;;;GAGG;AACH,oBAAY,sBAAsB,GAAG,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,UAAU,EAAE,MAAM,C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AG,sBAAsB,CAAC,UAAU,CAAC,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAChC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;CACzB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,2BAA2B,GAAG,sBAAsB,CAAC,gBAAgB,CAAC,CAAC;AAEnF,MAAM,WAAW,iBAAiB;IACjC,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,KAAK,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,MAAM,gCAAgC,GAAG,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;AAEzF,MAAM,WAAW,qBAAqB;IACrC,iBAAiB,EAAE,MAAM,CAAC;IAC1B,KAAK,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;CACnC;AAED;;;GAGG;AACH,MAAM,MAAM,oCAAoC,GAC/C,sBAAsB,CAAC,qBAAqB,CAAC,CAAC"}
@@ -1,10 +1,10 @@
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>;
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 type RESTAPICountersResponse = RESTAPISuccessResponse<APICounters>;
10
10
  //# sourceMappingURL=counters.d.ts.map
@@ -1 +1 @@
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"}
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,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAAC,WAAW,CAAC,CAAC"}
@@ -1,153 +1,153 @@
1
- export declare class Endpoints {
2
- static readonly base = "api.ifunny.mobi";
3
- static readonly account = "/account";
4
- static readonly collective = "/feeds/collective";
5
- static readonly counters = "/counters";
6
- static readonly featured = "/feeds/featured";
7
- static readonly feeds = "/feeds";
8
- static readonly oauth2 = "/oauth2";
9
- static readonly projectElements = "/feeds/project_elements";
10
- static readonly subscriptionFeed = "/timelines/home";
11
- static readonly timelines = "/timelines";
12
- static readonly token = "/oauth2/token";
13
- static readonly myUser = "/users/my";
14
- static readonly myComments: string;
15
- static readonly chatInvites: string;
16
- static readonly mySmiles: string;
17
- static readonly myAppeals: string;
18
- static readonly unreadChatMessages: string;
19
- static readonly myNews = "/news/my";
20
- static readonly nicksAvailable = "/users/nicks_available";
21
- static readonly emailsAvailable = "/users/emails_available";
22
- static readonly app = "/app";
23
- static readonly settings: string;
24
- static readonly privacy: string;
25
- /**
26
- * @param query The nick or id of the user
27
- * @param byNick Whether to fetch by nick (Default: false)
28
- * @example
29
- * "/timelines/users/:userId"
30
- * "/timelines/users/by_nick/:userNick"
31
- */
32
- static userTimeline(query: string, byNick?: boolean): string;
33
- /**
34
- * @param query The user id or nick
35
- * @param byNick Whether to fetch by nick (Default: false)
36
- * @example
37
- * "/users"
38
- * "/users/:userId"
39
- * "/users/by_nick/:userNick"
40
- */
41
- static user(query?: string, byNick?: boolean): string;
42
- /**
43
- * @param user The user id or nick
44
- * @param byNick Whether the user is by nick (Default: false)
45
- * @example
46
- * "/users/:userId/guests"
47
- * "/users/by_nick/:userNick/guests"
48
- */
49
- static guests(user: string, byNick?: boolean): string;
50
- /**
51
- * @param user The user id or nick
52
- * @param byNick Whether the user is by nick (Default: false)
53
- * @example
54
- * "/users/:userId/blocked"
55
- * "/users/by_nick/:userNick/blocked"
56
- */
57
- static blocked(user: string, byNick?: boolean): string;
58
- /**
59
- *
60
- * @param user User nick or ID
61
- * @param byNick User is the nick
62
- * @example
63
- * ""
64
- */
65
- static blockedData(user: string, byNick?: boolean): string;
66
- /**
67
- *
68
- * @param user Url to block
69
- * @param byNick Is the user the nick?
70
- * @example
71
- * "/users/my/blocked/:userId"
72
- * "/users/my/blocked/by_nick/:userNick"
73
- */
74
- static blockUser(user: string, byNick?: boolean): string;
75
- /**
76
- * @param user The user id or nick
77
- * @param byNick Whether the user is by nick (Default: false)
78
- * @example
79
- * "/users/:userId/subscribers"
80
- * "/users/by_nick/:userNick/subscribers"
81
- */
82
- static subscribers(user: string, byNick?: boolean): string;
83
- /**
84
- * @param user The user id or nick
85
- * @param byNick Whether the user is by nick (Default: false)
86
- * @example
87
- * "/users/:userId/subscriptions"
88
- */
89
- static subscriptions(user: string, byNick?: boolean): string;
90
- /**
91
- * @param id Id of the content if getting one
92
- * @example
93
- * "/content"
94
- * "/content/:contentId"
95
- */
96
- static content(id?: string): string;
97
- /**
98
- * @param contentId The content id
99
- * @example
100
- * "/content/:contentId/smiles"
101
- */
102
- static smiles(contentId: string): string;
103
- /**
104
- * @param contentId The content id
105
- * @example
106
- * "/content/:contentId/unsmiles"
107
- */
108
- static unsmiles(contentId: string): string;
109
- /**
110
- * @param contentId The content id
111
- * @example
112
- * "/content/:contentId/republished"
113
- */
114
- static republishes(contentId: string): string;
115
- /**
116
- * @param contentId Id of the content
117
- * @param commentId Id of the comment if applicable
118
- * @example
119
- * "/content/:contentId/comments"
120
- * "/content/:contentId/comments/:commentId"
121
- */
122
- static comments(contentId: string, commentId?: string): string;
123
- /**
124
- * @param contentId The content id
125
- * @param commentId The comment id
126
- * @example
127
- * "/content/:contentId/comments/:commentId/replies"
128
- */
129
- static replies(contentId: string, commentId: string): string;
130
- /**
131
- * @param contentId The content id
132
- * @example
133
- * "/content/:contentId/comments/attached_content"
134
- */
135
- static commentAttachment(contentId: string): string;
136
- /**
137
- * @param contentId The content id or array of content ids if adding to reads
138
- * @example
139
- * "/reads"
140
- * "/reads/:contentId"
141
- * "/reads/:contentId1,contentId2..."
142
- */
143
- static reads(contentId?: string | string[]): string;
144
- /**
145
- * @param userId The id of the user the ban belongs to
146
- * @param banId The id of the Ban
147
- * @example
148
- * "/users/:userId/bans"
149
- * "/users/:userId/bans/:banId"
150
- */
151
- static bans(userId: string, banId?: string): string;
152
- }
1
+ export declare class Endpoints {
2
+ static readonly base = "api.ifunny.mobi";
3
+ static readonly account = "/account";
4
+ static readonly collective = "/feeds/collective";
5
+ static readonly counters = "/counters";
6
+ static readonly featured = "/feeds/featured";
7
+ static readonly feeds = "/feeds";
8
+ static readonly oauth2 = "/oauth2";
9
+ static readonly projectElements = "/feeds/project_elements";
10
+ static readonly subscriptionFeed = "/timelines/home";
11
+ static readonly timelines = "/timelines";
12
+ static readonly token = "/oauth2/token";
13
+ static readonly myUser = "/users/my";
14
+ static readonly myComments: string;
15
+ static readonly chatInvites: string;
16
+ static readonly mySmiles: string;
17
+ static readonly myAppeals: string;
18
+ static readonly unreadChatMessages: string;
19
+ static readonly myNews = "/news/my";
20
+ static readonly nicksAvailable = "/users/nicks_available";
21
+ static readonly emailsAvailable = "/users/emails_available";
22
+ static readonly app = "/app";
23
+ static readonly settings: string;
24
+ static readonly privacy: string;
25
+ /**
26
+ * @param query The nick or id of the user
27
+ * @param byNick Whether to fetch by nick (Default: false)
28
+ * @example
29
+ * "/timelines/users/:userId"
30
+ * "/timelines/users/by_nick/:userNick"
31
+ */
32
+ static userTimeline(query: string, byNick?: boolean): string;
33
+ /**
34
+ * @param query The user id or nick
35
+ * @param byNick Whether to fetch by nick (Default: false)
36
+ * @example
37
+ * "/users"
38
+ * "/users/:userId"
39
+ * "/users/by_nick/:userNick"
40
+ */
41
+ static user(query?: string, byNick?: boolean): string;
42
+ /**
43
+ * @param user The user id or nick
44
+ * @param byNick Whether the user is by nick (Default: false)
45
+ * @example
46
+ * "/users/:userId/guests"
47
+ * "/users/by_nick/:userNick/guests"
48
+ */
49
+ static guests(user: string, byNick?: boolean): string;
50
+ /**
51
+ * @param user The user id or nick
52
+ * @param byNick Whether the user is by nick (Default: false)
53
+ * @example
54
+ * "/users/:userId/blocked"
55
+ * "/users/by_nick/:userNick/blocked"
56
+ */
57
+ static blocked(user: string, byNick?: boolean): string;
58
+ /**
59
+ *
60
+ * @param user User nick or ID
61
+ * @param byNick User is the nick
62
+ * @example
63
+ * ""
64
+ */
65
+ static blockedData(user: string, byNick?: boolean): string;
66
+ /**
67
+ *
68
+ * @param user Url to block
69
+ * @param byNick Is the user the nick?
70
+ * @example
71
+ * "/users/my/blocked/:userId"
72
+ * "/users/my/blocked/by_nick/:userNick"
73
+ */
74
+ static blockUser(user: string, byNick?: boolean): string;
75
+ /**
76
+ * @param user The user id or nick
77
+ * @param byNick Whether the user is by nick (Default: false)
78
+ * @example
79
+ * "/users/:userId/subscribers"
80
+ * "/users/by_nick/:userNick/subscribers"
81
+ */
82
+ static subscribers(user: string, byNick?: boolean): string;
83
+ /**
84
+ * @param user The user id or nick
85
+ * @param byNick Whether the user is by nick (Default: false)
86
+ * @example
87
+ * "/users/:userId/subscriptions"
88
+ */
89
+ static subscriptions(user: string, byNick?: boolean): string;
90
+ /**
91
+ * @param id Id of the content if getting one
92
+ * @example
93
+ * "/content"
94
+ * "/content/:contentId"
95
+ */
96
+ static content(id?: string): string;
97
+ /**
98
+ * @param contentId The content id
99
+ * @example
100
+ * "/content/:contentId/smiles"
101
+ */
102
+ static smiles(contentId: string): string;
103
+ /**
104
+ * @param contentId The content id
105
+ * @example
106
+ * "/content/:contentId/unsmiles"
107
+ */
108
+ static unsmiles(contentId: string): string;
109
+ /**
110
+ * @param contentId The content id
111
+ * @example
112
+ * "/content/:contentId/republished"
113
+ */
114
+ static republishes(contentId: string): string;
115
+ /**
116
+ * @param contentId Id of the content
117
+ * @param commentId Id of the comment if applicable
118
+ * @example
119
+ * "/content/:contentId/comments"
120
+ * "/content/:contentId/comments/:commentId"
121
+ */
122
+ static comments(contentId: string, commentId?: string): string;
123
+ /**
124
+ * @param contentId The content id
125
+ * @param commentId The comment id
126
+ * @example
127
+ * "/content/:contentId/comments/:commentId/replies"
128
+ */
129
+ static replies(contentId: string, commentId: string): string;
130
+ /**
131
+ * @param contentId The content id
132
+ * @example
133
+ * "/content/:contentId/comments/attached_content"
134
+ */
135
+ static commentAttachment(contentId: string): string;
136
+ /**
137
+ * @param contentId The content id or array of content ids if adding to reads
138
+ * @example
139
+ * "/reads"
140
+ * "/reads/:contentId"
141
+ * "/reads/:contentId1,contentId2..."
142
+ */
143
+ static reads(contentId?: string | string[]): string;
144
+ /**
145
+ * @param userId The id of the user the ban belongs to
146
+ * @param banId The id of the Ban
147
+ * @example
148
+ * "/users/:userId/bans"
149
+ * "/users/:userId/bans/:banId"
150
+ */
151
+ static bans(userId: string, banId?: string): string;
152
+ }
153
153
  //# sourceMappingURL=endpoints.d.ts.map