@sapphire/plugin-api 5.2.1-next.f01b974.0 → 6.0.0-next.dede596.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 (300) hide show
  1. package/dist/cjs/index.cjs +134 -0
  2. package/dist/cjs/index.cjs.map +1 -0
  3. package/dist/cjs/index.d.ts +1134 -0
  4. package/dist/cjs/lib/structures/Augmentations.d.cjs +4 -0
  5. package/dist/cjs/lib/structures/Augmentations.d.cjs.map +1 -0
  6. package/dist/cjs/lib/structures/MediaParser.cjs +83 -0
  7. package/dist/cjs/lib/structures/MediaParser.cjs.map +1 -0
  8. package/dist/cjs/lib/structures/MediaParserStore.cjs +27 -0
  9. package/dist/cjs/lib/structures/MediaParserStore.cjs.map +1 -0
  10. package/dist/cjs/lib/structures/Middleware.cjs +34 -0
  11. package/dist/cjs/lib/structures/Middleware.cjs.map +1 -0
  12. package/dist/cjs/lib/structures/MiddlewareStore.cjs +53 -0
  13. package/dist/cjs/lib/structures/MiddlewareStore.cjs.map +1 -0
  14. package/dist/cjs/lib/structures/Route.cjs +72 -0
  15. package/dist/cjs/lib/structures/Route.cjs.map +1 -0
  16. package/dist/cjs/lib/structures/RouteStore.cjs +68 -0
  17. package/dist/cjs/lib/structures/RouteStore.cjs.map +1 -0
  18. package/dist/cjs/lib/structures/api/ApiRequest.cjs +42 -0
  19. package/dist/cjs/lib/structures/api/ApiRequest.cjs.map +1 -0
  20. package/dist/cjs/lib/structures/api/ApiResponse.cjs +126 -0
  21. package/dist/cjs/lib/structures/api/ApiResponse.cjs.map +1 -0
  22. package/dist/cjs/lib/structures/api/CookieStore.cjs +106 -0
  23. package/dist/cjs/lib/structures/api/CookieStore.cjs.map +1 -0
  24. package/dist/cjs/lib/structures/http/Auth.cjs +152 -0
  25. package/dist/cjs/lib/structures/http/Auth.cjs.map +1 -0
  26. package/dist/cjs/lib/structures/http/HttpCodes.cjs +70 -0
  27. package/dist/cjs/lib/structures/http/HttpCodes.cjs.map +1 -0
  28. package/dist/cjs/lib/structures/http/HttpMethods.cjs +12 -0
  29. package/dist/cjs/lib/structures/http/HttpMethods.cjs.map +1 -0
  30. package/dist/cjs/lib/structures/http/Server.cjs +127 -0
  31. package/dist/cjs/lib/structures/http/Server.cjs.map +1 -0
  32. package/dist/cjs/lib/utils/MimeTypes.cjs +26 -0
  33. package/dist/cjs/lib/utils/MimeTypes.cjs.map +1 -0
  34. package/dist/cjs/lib/utils/RouteData.cjs +73 -0
  35. package/dist/cjs/lib/utils/RouteData.cjs.map +1 -0
  36. package/dist/cjs/listeners/PluginRouteError.cjs +24 -0
  37. package/dist/cjs/listeners/PluginRouteError.cjs.map +1 -0
  38. package/dist/cjs/listeners/PluginServerMatch.cjs +26 -0
  39. package/dist/cjs/listeners/PluginServerMatch.cjs.map +1 -0
  40. package/dist/cjs/listeners/PluginServerMiddlewareError.cjs +24 -0
  41. package/dist/cjs/listeners/PluginServerMiddlewareError.cjs.map +1 -0
  42. package/dist/cjs/listeners/PluginServerMiddlewareSuccess.cjs +25 -0
  43. package/dist/cjs/listeners/PluginServerMiddlewareSuccess.cjs.map +1 -0
  44. package/dist/cjs/listeners/PluginServerNoMatch.cjs +22 -0
  45. package/dist/cjs/listeners/PluginServerNoMatch.cjs.map +1 -0
  46. package/dist/cjs/listeners/PluginServerRequest.cjs +32 -0
  47. package/dist/cjs/listeners/PluginServerRequest.cjs.map +1 -0
  48. package/dist/cjs/listeners/_load.cjs +26 -0
  49. package/dist/cjs/listeners/_load.cjs.map +1 -0
  50. package/dist/cjs/mediaParsers/_load.cjs +20 -0
  51. package/dist/cjs/mediaParsers/_load.cjs.map +1 -0
  52. package/dist/cjs/mediaParsers/applicationFormUrlEncoded.cjs +23 -0
  53. package/dist/cjs/mediaParsers/applicationFormUrlEncoded.cjs.map +1 -0
  54. package/dist/cjs/mediaParsers/applicationJson.cjs +22 -0
  55. package/dist/cjs/mediaParsers/applicationJson.cjs.map +1 -0
  56. package/dist/cjs/mediaParsers/textPlain.cjs +22 -0
  57. package/dist/cjs/mediaParsers/textPlain.cjs.map +1 -0
  58. package/dist/cjs/middlewares/_load.cjs +22 -0
  59. package/dist/cjs/middlewares/_load.cjs.map +1 -0
  60. package/dist/cjs/middlewares/auth.cjs +36 -0
  61. package/dist/cjs/middlewares/auth.cjs.map +1 -0
  62. package/dist/cjs/middlewares/body.cjs +50 -0
  63. package/dist/cjs/middlewares/body.cjs.map +1 -0
  64. package/dist/cjs/middlewares/cookies.cjs +30 -0
  65. package/dist/cjs/middlewares/cookies.cjs.map +1 -0
  66. package/dist/cjs/middlewares/headers.cjs +59 -0
  67. package/dist/cjs/middlewares/headers.cjs.map +1 -0
  68. package/dist/cjs/register.cjs +37 -0
  69. package/dist/cjs/register.cjs.map +1 -0
  70. package/dist/{register.d.ts → cjs/register.d.ts} +6 -5
  71. package/dist/cjs/routes/_load.cjs +18 -0
  72. package/dist/cjs/routes/_load.cjs.map +1 -0
  73. package/dist/cjs/routes/oauth/callback.cjs +79 -0
  74. package/dist/cjs/routes/oauth/callback.cjs.map +1 -0
  75. package/dist/cjs/routes/oauth/logout.cjs +66 -0
  76. package/dist/cjs/routes/oauth/logout.cjs.map +1 -0
  77. package/dist/esm/chunk-PYETHG4R.mjs +29 -0
  78. package/dist/esm/chunk-PYETHG4R.mjs.map +1 -0
  79. package/dist/esm/index.d.mts +1134 -0
  80. package/dist/esm/index.mjs +26 -0
  81. package/dist/esm/index.mjs.map +1 -0
  82. package/dist/esm/lib/structures/Augmentations.d.mjs +3 -0
  83. package/dist/esm/lib/structures/Augmentations.d.mjs.map +1 -0
  84. package/dist/esm/lib/structures/MediaParser.mjs +80 -0
  85. package/dist/esm/lib/structures/MediaParser.mjs.map +1 -0
  86. package/dist/esm/lib/structures/MediaParserStore.mjs +24 -0
  87. package/dist/esm/lib/structures/MediaParserStore.mjs.map +1 -0
  88. package/dist/esm/lib/structures/Middleware.mjs +26 -0
  89. package/dist/esm/lib/structures/Middleware.mjs.map +1 -0
  90. package/dist/esm/lib/structures/MiddlewareStore.mjs +45 -0
  91. package/dist/esm/lib/structures/MiddlewareStore.mjs.map +1 -0
  92. package/dist/esm/lib/structures/Route.mjs +64 -0
  93. package/dist/esm/lib/structures/Route.mjs.map +1 -0
  94. package/dist/esm/lib/structures/RouteStore.mjs +60 -0
  95. package/dist/esm/lib/structures/RouteStore.mjs.map +1 -0
  96. package/dist/esm/lib/structures/api/ApiRequest.mjs +34 -0
  97. package/dist/esm/lib/structures/api/ApiRequest.mjs.map +1 -0
  98. package/dist/esm/lib/structures/api/ApiResponse.mjs +118 -0
  99. package/dist/esm/lib/structures/api/ApiResponse.mjs.map +1 -0
  100. package/dist/esm/lib/structures/api/CookieStore.mjs +98 -0
  101. package/dist/esm/lib/structures/api/CookieStore.mjs.map +1 -0
  102. package/dist/esm/lib/structures/http/Auth.mjs +126 -0
  103. package/dist/esm/lib/structures/http/Auth.mjs.map +1 -0
  104. package/dist/esm/lib/structures/http/HttpCodes.mjs +70 -0
  105. package/dist/esm/lib/structures/http/HttpCodes.mjs.map +1 -0
  106. package/dist/esm/lib/structures/http/HttpMethods.mjs +9 -0
  107. package/dist/esm/lib/structures/http/HttpMethods.mjs.map +1 -0
  108. package/dist/esm/lib/structures/http/Server.mjs +118 -0
  109. package/dist/esm/lib/structures/http/Server.mjs.map +1 -0
  110. package/dist/esm/lib/utils/MimeTypes.mjs +26 -0
  111. package/dist/esm/lib/utils/MimeTypes.mjs.map +1 -0
  112. package/dist/esm/lib/utils/RouteData.mjs +64 -0
  113. package/dist/esm/lib/utils/RouteData.mjs.map +1 -0
  114. package/dist/esm/listeners/PluginRouteError.mjs +21 -0
  115. package/dist/esm/listeners/PluginRouteError.mjs.map +1 -0
  116. package/dist/esm/listeners/PluginServerMatch.mjs +23 -0
  117. package/dist/esm/listeners/PluginServerMatch.mjs.map +1 -0
  118. package/dist/esm/listeners/PluginServerMiddlewareError.mjs +21 -0
  119. package/dist/esm/listeners/PluginServerMiddlewareError.mjs.map +1 -0
  120. package/dist/esm/listeners/PluginServerMiddlewareSuccess.mjs +22 -0
  121. package/dist/esm/listeners/PluginServerMiddlewareSuccess.mjs.map +1 -0
  122. package/dist/esm/listeners/PluginServerNoMatch.mjs +19 -0
  123. package/dist/esm/listeners/PluginServerNoMatch.mjs.map +1 -0
  124. package/dist/esm/listeners/PluginServerRequest.mjs +29 -0
  125. package/dist/esm/listeners/PluginServerRequest.mjs.map +1 -0
  126. package/dist/esm/listeners/_load.mjs +23 -0
  127. package/dist/esm/listeners/_load.mjs.map +1 -0
  128. package/dist/esm/mediaParsers/_load.mjs +17 -0
  129. package/dist/esm/mediaParsers/_load.mjs.map +1 -0
  130. package/dist/esm/mediaParsers/applicationFormUrlEncoded.mjs +20 -0
  131. package/dist/esm/mediaParsers/applicationFormUrlEncoded.mjs.map +1 -0
  132. package/dist/esm/mediaParsers/applicationJson.mjs +19 -0
  133. package/dist/esm/mediaParsers/applicationJson.mjs.map +1 -0
  134. package/dist/esm/mediaParsers/textPlain.mjs +19 -0
  135. package/dist/esm/mediaParsers/textPlain.mjs.map +1 -0
  136. package/dist/esm/middlewares/_load.mjs +19 -0
  137. package/dist/esm/middlewares/_load.mjs.map +1 -0
  138. package/dist/esm/middlewares/auth.mjs +28 -0
  139. package/dist/esm/middlewares/auth.mjs.map +1 -0
  140. package/dist/esm/middlewares/body.mjs +42 -0
  141. package/dist/esm/middlewares/body.mjs.map +1 -0
  142. package/dist/esm/middlewares/cookies.mjs +22 -0
  143. package/dist/esm/middlewares/cookies.mjs.map +1 -0
  144. package/dist/esm/middlewares/headers.mjs +51 -0
  145. package/dist/esm/middlewares/headers.mjs.map +1 -0
  146. package/dist/esm/register.d.mts +18 -0
  147. package/dist/esm/register.mjs +34 -0
  148. package/dist/esm/register.mjs.map +1 -0
  149. package/dist/esm/routes/_load.mjs +15 -0
  150. package/dist/esm/routes/_load.mjs.map +1 -0
  151. package/dist/esm/routes/oauth/callback.mjs +71 -0
  152. package/dist/esm/routes/oauth/callback.mjs.map +1 -0
  153. package/dist/esm/routes/oauth/logout.mjs +63 -0
  154. package/dist/esm/routes/oauth/logout.mjs.map +1 -0
  155. package/package.json +34 -19
  156. package/dist/index.d.ts +0 -38
  157. package/dist/index.d.ts.map +0 -1
  158. package/dist/index.js +0 -32
  159. package/dist/index.js.map +0 -1
  160. package/dist/index.mjs +0 -21
  161. package/dist/lib/structures/MediaParser.d.ts +0 -51
  162. package/dist/lib/structures/MediaParser.d.ts.map +0 -1
  163. package/dist/lib/structures/MediaParser.js +0 -94
  164. package/dist/lib/structures/MediaParser.js.map +0 -1
  165. package/dist/lib/structures/MediaParserStore.d.ts +0 -15
  166. package/dist/lib/structures/MediaParserStore.d.ts.map +0 -1
  167. package/dist/lib/structures/MediaParserStore.js +0 -24
  168. package/dist/lib/structures/MediaParserStore.js.map +0 -1
  169. package/dist/lib/structures/Middleware.d.ts +0 -49
  170. package/dist/lib/structures/Middleware.d.ts.map +0 -1
  171. package/dist/lib/structures/Middleware.js +0 -31
  172. package/dist/lib/structures/Middleware.js.map +0 -1
  173. package/dist/lib/structures/MiddlewareStore.d.ts +0 -20
  174. package/dist/lib/structures/MiddlewareStore.d.ts.map +0 -1
  175. package/dist/lib/structures/MiddlewareStore.js +0 -52
  176. package/dist/lib/structures/MiddlewareStore.js.map +0 -1
  177. package/dist/lib/structures/Route.d.ts +0 -78
  178. package/dist/lib/structures/Route.d.ts.map +0 -1
  179. package/dist/lib/structures/Route.js +0 -84
  180. package/dist/lib/structures/Route.js.map +0 -1
  181. package/dist/lib/structures/RouteStore.d.ts +0 -23
  182. package/dist/lib/structures/RouteStore.d.ts.map +0 -1
  183. package/dist/lib/structures/RouteStore.js +0 -71
  184. package/dist/lib/structures/RouteStore.js.map +0 -1
  185. package/dist/lib/structures/api/ApiRequest.d.ts +0 -26
  186. package/dist/lib/structures/api/ApiRequest.d.ts.map +0 -1
  187. package/dist/lib/structures/api/ApiRequest.js +0 -51
  188. package/dist/lib/structures/api/ApiRequest.js.map +0 -1
  189. package/dist/lib/structures/api/ApiResponse.d.ts +0 -74
  190. package/dist/lib/structures/api/ApiResponse.d.ts.map +0 -1
  191. package/dist/lib/structures/api/ApiResponse.js +0 -123
  192. package/dist/lib/structures/api/ApiResponse.js.map +0 -1
  193. package/dist/lib/structures/api/CookieStore.d.ts +0 -30
  194. package/dist/lib/structures/api/CookieStore.d.ts.map +0 -1
  195. package/dist/lib/structures/api/CookieStore.js +0 -132
  196. package/dist/lib/structures/api/CookieStore.js.map +0 -1
  197. package/dist/lib/structures/http/Auth.d.ts +0 -164
  198. package/dist/lib/structures/http/Auth.d.ts.map +0 -1
  199. package/dist/lib/structures/http/Auth.js +0 -164
  200. package/dist/lib/structures/http/Auth.js.map +0 -1
  201. package/dist/lib/structures/http/HttpCodes.d.ts +0 -378
  202. package/dist/lib/structures/http/HttpCodes.d.ts.map +0 -1
  203. package/dist/lib/structures/http/HttpCodes.js +0 -382
  204. package/dist/lib/structures/http/HttpCodes.js.map +0 -1
  205. package/dist/lib/structures/http/HttpMethods.d.ts +0 -4
  206. package/dist/lib/structures/http/HttpMethods.d.ts.map +0 -1
  207. package/dist/lib/structures/http/HttpMethods.js +0 -7
  208. package/dist/lib/structures/http/HttpMethods.js.map +0 -1
  209. package/dist/lib/structures/http/Server.d.ts +0 -180
  210. package/dist/lib/structures/http/Server.d.ts.map +0 -1
  211. package/dist/lib/structures/http/Server.js +0 -144
  212. package/dist/lib/structures/http/Server.js.map +0 -1
  213. package/dist/lib/utils/MimeTypes.d.ts +0 -19
  214. package/dist/lib/utils/MimeTypes.d.ts.map +0 -1
  215. package/dist/lib/utils/MimeTypes.js +0 -23
  216. package/dist/lib/utils/MimeTypes.js.map +0 -1
  217. package/dist/lib/utils/RouteData.d.ts +0 -34
  218. package/dist/lib/utils/RouteData.d.ts.map +0 -1
  219. package/dist/lib/utils/RouteData.js +0 -84
  220. package/dist/lib/utils/RouteData.js.map +0 -1
  221. package/dist/listeners/PluginRouteError.d.ts +0 -7
  222. package/dist/listeners/PluginRouteError.d.ts.map +0 -1
  223. package/dist/listeners/PluginRouteError.js +0 -20
  224. package/dist/listeners/PluginRouteError.js.map +0 -1
  225. package/dist/listeners/PluginServerMatch.d.ts +0 -9
  226. package/dist/listeners/PluginServerMatch.d.ts.map +0 -1
  227. package/dist/listeners/PluginServerMatch.js +0 -15
  228. package/dist/listeners/PluginServerMatch.js.map +0 -1
  229. package/dist/listeners/PluginServerMiddlewareError.d.ts +0 -7
  230. package/dist/listeners/PluginServerMiddlewareError.d.ts.map +0 -1
  231. package/dist/listeners/PluginServerMiddlewareError.js +0 -20
  232. package/dist/listeners/PluginServerMiddlewareError.js.map +0 -1
  233. package/dist/listeners/PluginServerMiddlewareSuccess.d.ts +0 -9
  234. package/dist/listeners/PluginServerMiddlewareSuccess.d.ts.map +0 -1
  235. package/dist/listeners/PluginServerMiddlewareSuccess.js +0 -20
  236. package/dist/listeners/PluginServerMiddlewareSuccess.js.map +0 -1
  237. package/dist/listeners/PluginServerNoMatch.d.ts +0 -8
  238. package/dist/listeners/PluginServerNoMatch.d.ts.map +0 -1
  239. package/dist/listeners/PluginServerNoMatch.js +0 -16
  240. package/dist/listeners/PluginServerNoMatch.js.map +0 -1
  241. package/dist/listeners/PluginServerRequest.d.ts +0 -8
  242. package/dist/listeners/PluginServerRequest.d.ts.map +0 -1
  243. package/dist/listeners/PluginServerRequest.js +0 -30
  244. package/dist/listeners/PluginServerRequest.js.map +0 -1
  245. package/dist/listeners/_load.d.ts +0 -2
  246. package/dist/listeners/_load.d.ts.map +0 -1
  247. package/dist/listeners/_load.js +0 -21
  248. package/dist/listeners/_load.js.map +0 -1
  249. package/dist/mediaParsers/_load.d.ts +0 -2
  250. package/dist/mediaParsers/_load.d.ts.map +0 -1
  251. package/dist/mediaParsers/_load.js +0 -15
  252. package/dist/mediaParsers/_load.js.map +0 -1
  253. package/dist/mediaParsers/applicationFormUrlEncoded.d.ts +0 -7
  254. package/dist/mediaParsers/applicationFormUrlEncoded.d.ts.map +0 -1
  255. package/dist/mediaParsers/applicationFormUrlEncoded.js +0 -17
  256. package/dist/mediaParsers/applicationFormUrlEncoded.js.map +0 -1
  257. package/dist/mediaParsers/applicationJson.d.ts +0 -7
  258. package/dist/mediaParsers/applicationJson.d.ts.map +0 -1
  259. package/dist/mediaParsers/applicationJson.js +0 -16
  260. package/dist/mediaParsers/applicationJson.js.map +0 -1
  261. package/dist/mediaParsers/textPlain.d.ts +0 -7
  262. package/dist/mediaParsers/textPlain.d.ts.map +0 -1
  263. package/dist/mediaParsers/textPlain.js +0 -16
  264. package/dist/mediaParsers/textPlain.js.map +0 -1
  265. package/dist/middlewares/_load.d.ts +0 -2
  266. package/dist/middlewares/_load.d.ts.map +0 -1
  267. package/dist/middlewares/_load.js +0 -17
  268. package/dist/middlewares/_load.js.map +0 -1
  269. package/dist/middlewares/auth.d.ts +0 -9
  270. package/dist/middlewares/auth.d.ts.map +0 -1
  271. package/dist/middlewares/auth.js +0 -32
  272. package/dist/middlewares/auth.js.map +0 -1
  273. package/dist/middlewares/body.d.ts +0 -10
  274. package/dist/middlewares/body.d.ts.map +0 -1
  275. package/dist/middlewares/body.js +0 -50
  276. package/dist/middlewares/body.js.map +0 -1
  277. package/dist/middlewares/cookies.d.ts +0 -10
  278. package/dist/middlewares/cookies.d.ts.map +0 -1
  279. package/dist/middlewares/cookies.js +0 -29
  280. package/dist/middlewares/cookies.js.map +0 -1
  281. package/dist/middlewares/headers.d.ts +0 -27
  282. package/dist/middlewares/headers.d.ts.map +0 -1
  283. package/dist/middlewares/headers.js +0 -59
  284. package/dist/middlewares/headers.js.map +0 -1
  285. package/dist/register.d.ts.map +0 -1
  286. package/dist/register.js +0 -42
  287. package/dist/register.js.map +0 -1
  288. package/dist/register.mjs +0 -4
  289. package/dist/routes/_load.d.ts +0 -2
  290. package/dist/routes/_load.d.ts.map +0 -1
  291. package/dist/routes/_load.js +0 -13
  292. package/dist/routes/_load.js.map +0 -1
  293. package/dist/routes/oauth/callback.d.ts +0 -28
  294. package/dist/routes/oauth/callback.d.ts.map +0 -1
  295. package/dist/routes/oauth/callback.js +0 -73
  296. package/dist/routes/oauth/callback.js.map +0 -1
  297. package/dist/routes/oauth/logout.d.ts +0 -8
  298. package/dist/routes/oauth/logout.d.ts.map +0 -1
  299. package/dist/routes/oauth/logout.js +0 -94
  300. package/dist/routes/oauth/logout.js.map +0 -1
@@ -1,378 +0,0 @@
1
- export declare enum HttpCodes {
2
- /**
3
- * Standard response for successful HTTP requests. The actual response will
4
- * depend on the request method used. In a GET request, the response will
5
- * contain an entity corresponding to the requested resource. In a POST
6
- * request, the response will contain an entity describing or containing the
7
- * result of the action.
8
- */
9
- OK = 200,
10
- /**
11
- * The request has been fulfilled, resulting in the creation of a new
12
- * resource.
13
- */
14
- Created = 201,
15
- /**
16
- * The request has been accepted for processing, but the processing has not
17
- * been completed. The request might or might not be eventually acted upon,
18
- * and may be disallowed when processing occurs.
19
- */
20
- Accepted = 202,
21
- /**
22
- * The server is a transforming proxy (e.g. a Web accelerator) that received
23
- * a 200 OK from its origin, but is returning a modified version of the
24
- * origin's response.
25
- */
26
- NonAuthoritativeInformation = 203,
27
- /**
28
- * The server successfully processed the request, and is not returning any
29
- * content.
30
- */
31
- NoContent = 204,
32
- /**
33
- * The server successfully processed the request, asks that the requester
34
- * reset its document view, and is not returning any content.
35
- */
36
- ResetContent = 205,
37
- /**
38
- * (RFC 7233) The server is delivering only part of the resource (byte
39
- * serving) due to a range header sent by the client. The range header is
40
- * used by HTTP clients to enable resuming of interrupted downloads, or
41
- * split a download into multiple simultaneous streams.
42
- */
43
- PartialContent = 206,
44
- /**
45
- * (WebDAV; RFC 4918) The message body that follows is by default an XML
46
- * message and can contain a number of separate response codes, depending on
47
- * how many sub-requests were made.
48
- */
49
- MultiStatus = 207,
50
- /**
51
- * (WebDAV; RFC 5842) The members of a DAV binding have already been
52
- * enumerated in a preceding part of the (multistatus) response, and are not
53
- * being included again.
54
- */
55
- AlreadyReported = 208,
56
- /**
57
- * (RFC 3229) The server has fulfilled a request for the resource, and the
58
- * response is a representation of the result of one or more
59
- * instance-manipulations applied to the current instance.
60
- */
61
- IMUsed = 226,
62
- /**
63
- * Indicates multiple options for the resource from which the client may
64
- * choose (via agent-driven content negotiation). For example, this code
65
- * could be used to present multiple video format options, to list files
66
- * with different filename extensions, or to suggest word-sense
67
- * disambiguation.
68
- */
69
- MultipleChoices = 300,
70
- /**
71
- * This and all future requests should be directed to the given URI.
72
- */
73
- MovedPermanently = 301,
74
- /**
75
- * (Previously "Moved temporarily") Tells the client to look at (browse to)
76
- * another URL. 302 has been superseded by 303 and 307. This is an example
77
- * of industry practice contradicting the standard. The HTTP/1.0
78
- * specification (RFC 1945) required the client to perform a temporary
79
- * redirect (the original describing phrase was "Moved Temporarily"), but
80
- * popular browsers implemented 302 with the functionality of a 303 See
81
- * Other. Therefore, HTTP/1.1 added status codes 303 and 307 to distinguish
82
- * between the two behaviours. However, some Web applications and frameworks
83
- * use the 302 status code as if it were the 303.
84
- */
85
- Found = 302,
86
- /**
87
- * The response to the request can be found under another URI using the GET
88
- * method. When received in response to a POST (or PUT/DELETE), the client
89
- * should presume that the server has received the data and should issue a
90
- * new GET request to the given URI.
91
- */
92
- SeeOther = 303,
93
- /**
94
- * (RFC 7232) Indicates that the resource has not been modified since the
95
- * version specified by the request headers If-Modified-Since or
96
- * If-None-Match. In such case, there is no need to retransmit the resource
97
- * since the client still has a previously-downloaded copy.
98
- */
99
- NotModified = 304,
100
- /**
101
- * The requested resource is available only through a proxy, the address for
102
- * which is provided in the response. For security reasons, many HTTP
103
- * clients (such as Mozilla Firefox and Internet Explorer) do not obey this
104
- * status code.
105
- */
106
- UseProxy = 305,
107
- /**
108
- * No longer used. Originally meant "Subsequent requests should use the
109
- * specified proxy.".
110
- */
111
- SwitchProxy = 306,
112
- /**
113
- * In this case, the request should be repeated with another URI; however,
114
- * future requests should still use the original URI. In contrast to how 302
115
- * was historically implemented, the request method is not allowed to be
116
- * changed when reissuing the original request. For example, a POST request
117
- * should be repeated using another POST request.
118
- */
119
- TemporaryRedirect = 307,
120
- /**
121
- * (RFC 7538) The request and all future requests should be repeated using
122
- * another URI. 307 and 308 parallel the behaviors of 302 and 301, but do
123
- * not allow the HTTP method to change. So, for example, submitting a form
124
- * to a permanently redirected resource may continue smoothly.
125
- */
126
- PermanentRedirect = 308,
127
- /**
128
- * The server cannot or will not process the request due to an apparent
129
- * client error (e.g., malformed request syntax, size too large, invalid
130
- * request message framing, or deceptive request routing).
131
- */
132
- BadRequest = 400,
133
- /**
134
- * (RFC 7235) Similar to 403 Forbidden, but specifically for use when
135
- * authentication is required and has failed or has not yet been provided.
136
- * The response must include a WWW-Authenticate header field containing a
137
- * challenge applicable to the requested resource. See Basic access
138
- * authentication and Digest access authentication. 401 semantically means
139
- * "unauthorised", the user does not have valid authentication credentials
140
- * for the target resource.
141
- */
142
- Unauthorized = 401,
143
- /**
144
- * Reserved for future use. The original intention was that this code might
145
- * be used as part of some form of digital cash or micropayment scheme, as
146
- * proposed, for example, by GNU Taler, but that has not yet happened, and
147
- * this code is not widely used. Google Developers API uses this status if a
148
- * particular developer has exceeded the daily limit on requests. Sipgate
149
- * uses this code if an account does not have sufficient funds to start a
150
- * call. Shopify uses this code when the store has not paid their fees and
151
- * is temporarily disabled. Stripe uses this code for failed payments where
152
- * parameters were correct, for example blocked fraudulent payments.
153
- */
154
- PaymentRequired = 402,
155
- /**
156
- * The request contained valid data and was understood by the server, but
157
- * the server is refusing action. This may be due to the user not having the
158
- * necessary permissions for a resource or needing an account of some sort,
159
- * or attempting a prohibited action (e.g. creating a duplicate record
160
- * where only one is allowed). This code is also typically used if the
161
- * request provided authentication by answering the WWW-Authenticate header
162
- * field challenge, but the server did not accept that authentication. The
163
- * request should not be repeated.
164
- */
165
- Forbidden = 403,
166
- /**
167
- * The requested resource could not be found but may be available in the
168
- * future. Subsequent requests by the client are permissible.
169
- */
170
- NotFound = 404,
171
- /**
172
- * A request method is not supported for the requested resource; for example,
173
- * a GET request on a form that requires data to be presented via POST, or a
174
- * PUT request on a read-only resource.
175
- */
176
- MethodNotAllowed = 405,
177
- /**
178
- * The requested resource is capable of generating only content not
179
- * acceptable according to the Accept headers sent in the request. See Content negotiation.
180
- */
181
- NotAcceptable = 406,
182
- /**
183
- * (RFC 7235) The client must first authenticate itself with the proxy.
184
- */
185
- ProxyAuthenticationRequired = 407,
186
- /**
187
- * The server timed out waiting for the request. According to HTTP
188
- * specifications: "The client did not produce a request within the time
189
- * that the server was prepared to wait. The client MAY repeat the request
190
- * without modifications at any later time."
191
- */
192
- RequestTimeout = 408,
193
- /**
194
- * Indicates that the request could not be processed because of conflict in
195
- * the current state of the resource, such as an edit conflict between
196
- * multiple simultaneous updates.
197
- */
198
- Conflict = 409,
199
- /**
200
- * Indicates that the resource requested is no longer available and will not
201
- * be available again. This should be used when a resource has been
202
- * intentionally removed and the resource should be purged. Upon receiving a
203
- * 410 status code, the client should not request the resource in the future.
204
- * Clients such as search engines should remove the resource from their
205
- * indices. Most use cases do not require clients and search engines to
206
- * purge the resource, and a "404 Not Found" may be used instead.
207
- */
208
- Gone = 410,
209
- /**
210
- * The request did not specify the length of its content, which is required
211
- * by the requested resource.
212
- */
213
- LengthRequired = 411,
214
- /**
215
- * (RFC 7232) The server does not meet one of the preconditions that the
216
- * requester put on the request header fields.
217
- */
218
- PreconditionFailed = 412,
219
- /**
220
- * (RFC 7231) The request is larger than the server is willing or able to
221
- * process. Previously called "Request Entity Too Large".
222
- */
223
- PayloadTooLarge = 413,
224
- /**
225
- * (RFC 7231) The URI provided was too long for the server to process. Often
226
- * the result of too much data being encoded as a query-string of a GET
227
- * request, in which case it should be converted to a POST request. Called
228
- * "Request-URI Too Long" previously.
229
- */
230
- URITooLong = 414,
231
- /**
232
- * (RFC 7231) The request entity has a media type which the server or
233
- * resource does not support. For example, the client uploads an image as
234
- * image/svg+xml, but the server requires that images use a different format.
235
- */
236
- UnsupportedMediaType = 415,
237
- /**
238
- * (RFC 7233) The client has asked for a portion of the file (byte serving),
239
- * but the server cannot supply that portion. For example, if the client
240
- * asked for a part of the file that lies beyond the end of the file. Called
241
- * "Requested Range Not Satisfiable" previously.
242
- */
243
- RangeNotSatisfiable = 416,
244
- /**
245
- * The server cannot meet the requirements of the Expect request-header
246
- * field.
247
- */
248
- ExpectationFailed = 417,
249
- /**
250
- * (RFC 2324, RFC 7168) This code was defined in 1998 as one of the
251
- * traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot
252
- * Control Protocol, and is not expected to be implemented by actual HTTP
253
- * servers. The RFC specifies this code should be returned by teapots
254
- * requested to brew coffee. This HTTP status is used as an Easter egg in
255
- * some websites, such as Google.com's I'm a teapot easter egg.
256
- */
257
- IAmATeapot = 418,
258
- /**
259
- * Returned by the Twitter Search and Trends API when the client is being rate limited.
260
- * The text is a quote from 'Demolition Man' and the '420' code is likely a reference
261
- * to this number's association with marijuana. Other services may wish to implement
262
- * the 429 Too Many Requests response code instead.
263
- */
264
- EnhanceYourCalm = 420,
265
- /**
266
- * (RFC 7540) The request was directed at a server that is not able to
267
- * produce a response (for example because of connection reuse).
268
- */
269
- MisdirectedRequest = 421,
270
- /**
271
- * (WebDAV; RFC 4918) The request was well-formed but was unable to be
272
- * followed due to semantic errors.
273
- */
274
- UnprocessableEntity = 422,
275
- /**
276
- * (WebDAV; RFC 4918) The resource that is being accessed is locked.
277
- */
278
- Locked = 423,
279
- /**
280
- * (WebDAV; RFC 4918) The request failed because it depended on another
281
- * request and that request failed (e.g., a PROPPATCH).
282
- */
283
- FailedDependency = 424,
284
- /**
285
- * (RFC 8470) Indicates that the server is unwilling to risk processing a
286
- * request that might be replayed.
287
- */
288
- TooEarly = 425,
289
- /**
290
- * The client should switch to a different protocol such as TLS/1.0, given
291
- * in the Upgrade header field.
292
- */
293
- UpgradeRequired = 426,
294
- /**
295
- * (RFC 6585) The origin server requires the request to be conditional.
296
- * Intended to prevent the 'lost update' problem, where a client GETs a
297
- * resource's state, modifies it, and PUTs it back to the server, when
298
- * meanwhile a third party has modified the state on the server, leading to
299
- * a conflict.
300
- */
301
- PreconditionRequired = 428,
302
- /**
303
- * (RFC 6585) The user has sent too many requests in a given amount of time.
304
- * Intended for use with rate-limiting schemes.
305
- */
306
- TooManyRequests = 429,
307
- /**
308
- * (RFC 6585) The server is unwilling to process the request because either
309
- * an individual header field, or all the header fields collectively, are
310
- * too large.
311
- */
312
- RequestHeaderFieldsTooLarge = 431,
313
- /**
314
- * (RFC 7725) A server operator has received a legal demand to deny access
315
- * to a resource or to a set of resources that includes the requested
316
- * resource. The code 451 was chosen as a reference to the novel Fahrenheit
317
- * 451 (see the Acknowledgements in the RFC).
318
- */
319
- UnavailableForLegalReasons = 451,
320
- /**
321
- * A generic error message, given when an unexpected condition was
322
- * encountered and no more specific message is suitable.
323
- */
324
- InternalServerError = 500,
325
- /**
326
- * The server either does not recognize the request method, or it lacks the
327
- * ability to fulfil the request. Usually this implies future availability
328
- * (e.g., a new feature of a web-service API).
329
- */
330
- NotImplemented = 501,
331
- /**
332
- * The server was acting as a gateway or proxy and received an invalid
333
- * response from the upstream server.
334
- */
335
- BadGateway = 502,
336
- /**
337
- * The server cannot handle the request (because it is overloaded or down
338
- * for maintenance). Generally, this is a temporary state.
339
- */
340
- ServiceUnavailable = 503,
341
- /**
342
- * The server was acting as a gateway or proxy and did not receive a timely
343
- * response from the upstream server.
344
- */
345
- GatewayTimeout = 504,
346
- /**
347
- * The server does not support the HTTP protocol version used in the request.
348
- */
349
- HTTPVersionNotSupported = 505,
350
- /**
351
- * (RFC 2295) Transparent content negotiation for the request results in a
352
- * circular reference.
353
- */
354
- VariantAlsoNegotiates = 506,
355
- /**
356
- * (WebDAV; RFC 4918) The server is unable to store the representation
357
- * needed to complete the request.
358
- */
359
- InsufficientStorage = 507,
360
- /**
361
- * (WebDAV; RFC 5842) The server detected an infinite loop while processing
362
- * the request (sent instead of 208 Already Reported).
363
- */
364
- LoopDetected = 508,
365
- /**
366
- * (RFC 2774) Further extensions to the request are required for the server
367
- * to fulfil it.
368
- */
369
- NotExtended = 510,
370
- /**
371
- * (RFC 6585) The client needs to authenticate to gain network access.
372
- * Intended for use by intercepting proxies used to control access to the
373
- * network (e.g., "captive portals" used to require agreement to Terms of
374
- * Service before granting full Internet access via a Wi-Fi hotspot).
375
- */
376
- NetworkAuthenticationRequired = 511
377
- }
378
- //# sourceMappingURL=HttpCodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"HttpCodes.d.ts","sourceRoot":"","sources":["../../../../src/lib/structures/http/HttpCodes.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACpB;;;;;;OAMG;IACH,EAAE,MAAM;IAER;;;OAGG;IACH,OAAO,MAAM;IAEb;;;;OAIG;IACH,QAAQ,MAAM;IAEd;;;;OAIG;IACH,2BAA2B,MAAM;IAEjC;;;OAGG;IACH,SAAS,MAAM;IAEf;;;OAGG;IACH,YAAY,MAAM;IAElB;;;;;OAKG;IACH,cAAc,MAAM;IAEpB;;;;OAIG;IACH,WAAW,MAAM;IAEjB;;;;OAIG;IACH,eAAe,MAAM;IAErB;;;;OAIG;IACH,MAAM,MAAM;IAEZ;;;;;;OAMG;IACH,eAAe,MAAM;IAErB;;OAEG;IACH,gBAAgB,MAAM;IAEtB;;;;;;;;;;OAUG;IACH,KAAK,MAAM;IAEX;;;;;OAKG;IACH,QAAQ,MAAM;IAEd;;;;;OAKG;IACH,WAAW,MAAM;IAEjB;;;;;OAKG;IACH,QAAQ,MAAM;IACd;;;OAGG;IACH,WAAW,MAAM;IAEjB;;;;;;OAMG;IACH,iBAAiB,MAAM;IAEvB;;;;;OAKG;IACH,iBAAiB,MAAM;IAEvB;;;;OAIG;IACH,UAAU,MAAM;IAEhB;;;;;;;;OAQG;IACH,YAAY,MAAM;IAElB;;;;;;;;;;OAUG;IACH,eAAe,MAAM;IAErB;;;;;;;;;OASG;IACH,SAAS,MAAM;IAEf;;;OAGG;IACH,QAAQ,MAAM;IAEd;;;;OAIG;IACH,gBAAgB,MAAM;IAEtB;;;OAGG;IACH,aAAa,MAAM;IAEnB;;OAEG;IACH,2BAA2B,MAAM;IAEjC;;;;;OAKG;IACH,cAAc,MAAM;IAEpB;;;;OAIG;IACH,QAAQ,MAAM;IAEd;;;;;;;;OAQG;IACH,IAAI,MAAM;IAEV;;;OAGG;IACH,cAAc,MAAM;IAEpB;;;OAGG;IACH,kBAAkB,MAAM;IAExB;;;OAGG;IACH,eAAe,MAAM;IAErB;;;;;OAKG;IACH,UAAU,MAAM;IAEhB;;;;OAIG;IACH,oBAAoB,MAAM;IAE1B;;;;;OAKG;IACH,mBAAmB,MAAM;IAEzB;;;OAGG;IACH,iBAAiB,MAAM;IAEvB;;;;;;;OAOG;IACH,UAAU,MAAM;IAEhB;;;;;OAKG;IACH,eAAe,MAAM;IAErB;;;OAGG;IACH,kBAAkB,MAAM;IAExB;;;OAGG;IACH,mBAAmB,MAAM;IAEzB;;OAEG;IACH,MAAM,MAAM;IAEZ;;;OAGG;IACH,gBAAgB,MAAM;IAEtB;;;OAGG;IACH,QAAQ,MAAM;IAEd;;;OAGG;IACH,eAAe,MAAM;IAErB;;;;;;OAMG;IACH,oBAAoB,MAAM;IAE1B;;;OAGG;IACH,eAAe,MAAM;IAErB;;;;OAIG;IACH,2BAA2B,MAAM;IAEjC;;;;;OAKG;IACH,0BAA0B,MAAM;IAEhC;;;OAGG;IACH,mBAAmB,MAAM;IAEzB;;;;OAIG;IACH,cAAc,MAAM;IAEpB;;;OAGG;IACH,UAAU,MAAM;IAEhB;;;OAGG;IACH,kBAAkB,MAAM;IAExB;;;OAGG;IACH,cAAc,MAAM;IAEpB;;OAEG;IACH,uBAAuB,MAAM;IAE7B;;;OAGG;IACH,qBAAqB,MAAM;IAE3B;;;OAGG;IACH,mBAAmB,MAAM;IAEzB;;;OAGG;IACH,YAAY,MAAM;IAElB;;;OAGG;IACH,WAAW,MAAM;IAEjB;;;;;OAKG;IACH,6BAA6B,MAAM;CACnC"}