@versori/run 0.0.1-alpha.2 → 0.0.1-alpha.4

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 (861) hide show
  1. package/esm/_dnt.polyfills.d.ts +14 -0
  2. package/esm/_dnt.polyfills.d.ts.map +1 -0
  3. package/esm/_dnt.polyfills.js +12 -0
  4. package/esm/deps/deno.land/x/oak@v17.1.4/application.d.ts +383 -0
  5. package/esm/deps/deno.land/x/oak@v17.1.4/application.d.ts.map +1 -0
  6. package/esm/deps/deno.land/x/oak@v17.1.4/application.js +526 -0
  7. package/esm/deps/deno.land/x/oak@v17.1.4/body.d.ts +71 -0
  8. package/esm/deps/deno.land/x/oak@v17.1.4/body.d.ts.map +1 -0
  9. package/esm/deps/deno.land/x/oak@v17.1.4/body.js +236 -0
  10. package/esm/deps/deno.land/x/oak@v17.1.4/context.d.ts +163 -0
  11. package/esm/deps/deno.land/x/oak@v17.1.4/context.d.ts.map +1 -0
  12. package/esm/deps/deno.land/x/oak@v17.1.4/context.js +287 -0
  13. package/esm/deps/deno.land/x/oak@v17.1.4/deps.d.ts +19 -0
  14. package/esm/deps/deno.land/x/oak@v17.1.4/deps.d.ts.map +1 -0
  15. package/esm/deps/deno.land/x/oak@v17.1.4/deps.js +21 -0
  16. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts +51 -0
  17. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts.map +1 -0
  18. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_bun.js +147 -0
  19. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts +17 -0
  20. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts.map +1 -0
  21. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native.js +100 -0
  22. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts +26 -0
  23. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts.map +1 -0
  24. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_native_request.js +112 -0
  25. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts +48 -0
  26. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts.map +1 -0
  27. package/esm/deps/deno.land/x/oak@v17.1.4/http_server_node.js +152 -0
  28. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts +20 -0
  29. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts.map +1 -0
  30. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/etag.js +53 -0
  31. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts +67 -0
  32. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts.map +1 -0
  33. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/proxy.js +127 -0
  34. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts +114 -0
  35. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts.map +1 -0
  36. package/esm/deps/deno.land/x/oak@v17.1.4/middleware/serve.js +211 -0
  37. package/esm/deps/deno.land/x/oak@v17.1.4/middleware.d.ts +36 -0
  38. package/esm/deps/deno.land/x/oak@v17.1.4/middleware.d.ts.map +1 -0
  39. package/esm/deps/deno.land/x/oak@v17.1.4/middleware.js +34 -0
  40. package/esm/deps/deno.land/x/oak@v17.1.4/mod.d.ts +111 -0
  41. package/esm/deps/deno.land/x/oak@v17.1.4/mod.d.ts.map +1 -0
  42. package/esm/deps/deno.land/x/oak@v17.1.4/mod.js +109 -0
  43. package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts +2 -0
  44. package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts.map +1 -0
  45. package/esm/deps/deno.land/x/oak@v17.1.4/node_shims.js +75 -0
  46. package/esm/deps/deno.land/x/oak@v17.1.4/request.d.ts +133 -0
  47. package/esm/deps/deno.land/x/oak@v17.1.4/request.d.ts.map +1 -0
  48. package/esm/deps/deno.land/x/oak@v17.1.4/request.js +246 -0
  49. package/esm/deps/deno.land/x/oak@v17.1.4/response.d.ts +148 -0
  50. package/esm/deps/deno.land/x/oak@v17.1.4/response.d.ts.map +1 -0
  51. package/esm/deps/deno.land/x/oak@v17.1.4/response.js +295 -0
  52. package/esm/deps/deno.land/x/oak@v17.1.4/router.d.ts +363 -0
  53. package/esm/deps/deno.land/x/oak@v17.1.4/router.d.ts.map +1 -0
  54. package/esm/deps/deno.land/x/oak@v17.1.4/router.js +636 -0
  55. package/esm/deps/deno.land/x/oak@v17.1.4/send.d.ts +75 -0
  56. package/esm/deps/deno.land/x/oak@v17.1.4/send.d.ts.map +1 -0
  57. package/esm/deps/deno.land/x/oak@v17.1.4/send.js +196 -0
  58. package/esm/deps/deno.land/x/oak@v17.1.4/testing.d.ts +33 -0
  59. package/esm/deps/deno.land/x/oak@v17.1.4/testing.d.ts.map +1 -0
  60. package/esm/deps/deno.land/x/oak@v17.1.4/testing.js +112 -0
  61. package/esm/deps/deno.land/x/oak@v17.1.4/types.d.ts +77 -0
  62. package/esm/deps/deno.land/x/oak@v17.1.4/types.d.ts.map +1 -0
  63. package/esm/deps/deno.land/x/oak@v17.1.4/types.js +1 -0
  64. package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts +3 -0
  65. package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts.map +1 -0
  66. package/esm/deps/deno.land/x/oak@v17.1.4/utils/clone_state.js +16 -0
  67. package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts +3 -0
  68. package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts.map +1 -0
  69. package/esm/deps/deno.land/x/oak@v17.1.4/utils/consts.js +3 -0
  70. package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts +7 -0
  71. package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts.map +1 -0
  72. package/esm/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.js +20 -0
  73. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts +6 -0
  74. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts.map +1 -0
  75. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode.js +17 -0
  76. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts +6 -0
  77. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts.map +1 -0
  78. package/esm/deps/deno.land/x/oak@v17.1.4/utils/decode_component.js +13 -0
  79. package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts +3 -0
  80. package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts.map +1 -0
  81. package/esm/deps/deno.land/x/oak@v17.1.4/utils/encode_url.js +10 -0
  82. package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts +31 -0
  83. package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts.map +1 -0
  84. package/esm/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.js +56 -0
  85. package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts +9 -0
  86. package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts.map +1 -0
  87. package/esm/deps/deno.land/x/oak@v17.1.4/utils/streams.js +75 -0
  88. package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts +17 -0
  89. package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts.map +1 -0
  90. package/esm/deps/deno.land/x/oak@v17.1.4/utils/type_guards.js +37 -0
  91. package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts +16 -0
  92. package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts.map +1 -0
  93. package/esm/deps/jsr.io/@oak/commons/1.0.0/content_disposition.js +125 -0
  94. package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts +363 -0
  95. package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts.map +1 -0
  96. package/esm/deps/jsr.io/@oak/commons/1.0.0/cookie_map.js +602 -0
  97. package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts +9 -0
  98. package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts.map +1 -0
  99. package/esm/deps/jsr.io/@oak/commons/1.0.0/form_data.js +285 -0
  100. package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts +16 -0
  101. package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts.map +1 -0
  102. package/esm/deps/jsr.io/@oak/commons/1.0.0/forwarded.js +208 -0
  103. package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts +6 -0
  104. package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts.map +1 -0
  105. package/esm/deps/jsr.io/@oak/commons/1.0.0/header_utils.js +28 -0
  106. package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts +123 -0
  107. package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts.map +1 -0
  108. package/esm/deps/jsr.io/@oak/commons/1.0.0/http_errors.js +233 -0
  109. package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts +56 -0
  110. package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts.map +1 -0
  111. package/esm/deps/jsr.io/@oak/commons/1.0.0/keystack.js +165 -0
  112. package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts +56 -0
  113. package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts.map +1 -0
  114. package/esm/deps/jsr.io/@oak/commons/1.0.0/media_types.js +205 -0
  115. package/esm/deps/jsr.io/@oak/commons/1.0.0/method.d.ts +29 -0
  116. package/esm/deps/jsr.io/@oak/commons/1.0.0/method.d.ts.map +1 -0
  117. package/esm/deps/jsr.io/@oak/commons/1.0.0/method.js +62 -0
  118. package/esm/deps/jsr.io/@oak/commons/1.0.0/range.d.ts +324 -0
  119. package/esm/deps/jsr.io/@oak/commons/1.0.0/range.d.ts.map +1 -0
  120. package/esm/deps/jsr.io/@oak/commons/1.0.0/range.js +503 -0
  121. package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts +178 -0
  122. package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts.map +1 -0
  123. package/esm/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.js +262 -0
  124. package/esm/deps/jsr.io/@oak/commons/1.0.0/status.d.ts +389 -0
  125. package/esm/deps/jsr.io/@oak/commons/1.0.0/status.d.ts.map +1 -0
  126. package/esm/deps/jsr.io/@oak/commons/1.0.0/status.js +386 -0
  127. package/esm/deps/jsr.io/@std/assert/1.0.11/assert.d.ts +16 -0
  128. package/esm/deps/jsr.io/@std/assert/1.0.11/assert.d.ts.map +1 -0
  129. package/esm/deps/jsr.io/@std/assert/1.0.11/assert.js +22 -0
  130. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +26 -0
  131. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
  132. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +30 -0
  133. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
  134. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
  135. package/esm/deps/jsr.io/@std/bytes/1.0.5/_types.js +2 -0
  136. package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts +21 -0
  137. package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
  138. package/esm/deps/jsr.io/@std/bytes/1.0.5/concat.js +32 -0
  139. package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts +34 -0
  140. package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts.map +1 -0
  141. package/esm/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.js +55 -0
  142. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
  143. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
  144. package/esm/deps/jsr.io/@std/encoding/1.0.7/_types.js +2 -0
  145. package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +2 -0
  146. package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +1 -0
  147. package/esm/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +26 -0
  148. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +40 -0
  149. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
  150. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64.js +163 -0
  151. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +40 -0
  152. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
  153. package/esm/deps/jsr.io/@std/encoding/1.0.7/base64url.js +81 -0
  154. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts +38 -0
  155. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts.map +1 -0
  156. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/common.js +40 -0
  157. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts +34 -0
  158. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts.map +1 -0
  159. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.js +123 -0
  160. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts +31 -0
  161. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts.map +1 -0
  162. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/language.js +113 -0
  163. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts +31 -0
  164. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts.map +1 -0
  165. package/esm/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.js +140 -0
  166. package/esm/deps/jsr.io/@std/http/1.0.13/etag.d.ts +148 -0
  167. package/esm/deps/jsr.io/@std/http/1.0.13/etag.d.ts.map +1 -0
  168. package/esm/deps/jsr.io/@std/http/1.0.13/etag.js +135 -0
  169. package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts +148 -0
  170. package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts.map +1 -0
  171. package/esm/deps/jsr.io/@std/http/1.0.13/negotiation.js +37 -0
  172. package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts +200 -0
  173. package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts.map +1 -0
  174. package/esm/deps/jsr.io/@std/http/1.0.13/user_agent.js +1150 -0
  175. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  176. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
  177. package/esm/deps/jsr.io/@std/media-types/1.1.0/_db.js +33 -0
  178. package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts +15 -0
  179. package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
  180. package/esm/deps/jsr.io/@std/media-types/1.1.0/_util.js +122 -0
  181. package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts +43 -0
  182. package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
  183. package/esm/deps/jsr.io/@std/media-types/1.1.0/content_type.js +57 -0
  184. package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts +33 -0
  185. package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
  186. package/esm/deps/jsr.io/@std/media-types/1.1.0/format_media_type.js +77 -0
  187. package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts +22 -0
  188. package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
  189. package/esm/deps/jsr.io/@std/media-types/1.1.0/get_charset.js +43 -0
  190. package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts +31 -0
  191. package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
  192. package/esm/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.js +114 -0
  193. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts +25 -0
  194. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  195. package/esm/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.js +31 -0
  196. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
  197. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
  198. package/esm/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9138 -0
  199. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +2 -0
  200. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +1 -0
  201. package/esm/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +7 -0
  202. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +4 -0
  203. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +1 -0
  204. package/esm/deps/jsr.io/@std/path/1.0.8/_common/basename.js +40 -0
  205. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +2 -0
  206. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +1 -0
  207. package/esm/deps/jsr.io/@std/path/1.0.8/_common/common.js +23 -0
  208. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +40 -0
  209. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +1 -0
  210. package/esm/deps/jsr.io/@std/path/1.0.8/_common/constants.js +46 -0
  211. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +2 -0
  212. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +1 -0
  213. package/esm/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +8 -0
  214. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +4 -0
  215. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +1 -0
  216. package/esm/deps/jsr.io/@std/path/1.0.8/_common/format.js +19 -0
  217. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +2 -0
  218. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +1 -0
  219. package/esm/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +9 -0
  220. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +35 -0
  221. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +1 -0
  222. package/esm/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +234 -0
  223. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +2 -0
  224. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +1 -0
  225. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +8 -0
  226. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +2 -0
  227. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +1 -0
  228. package/esm/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +77 -0
  229. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +2 -0
  230. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +1 -0
  231. package/esm/deps/jsr.io/@std/path/1.0.8/_common/relative.js +9 -0
  232. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +2 -0
  233. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +1 -0
  234. package/esm/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +19 -0
  235. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +2 -0
  236. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +1 -0
  237. package/esm/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +15 -0
  238. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
  239. package/esm/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
  240. package/esm/deps/jsr.io/@std/path/1.0.8/_os.js +9 -0
  241. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts +28 -0
  242. package/esm/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
  243. package/esm/deps/jsr.io/@std/path/1.0.8/basename.js +36 -0
  244. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts +28 -0
  245. package/esm/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +1 -0
  246. package/esm/deps/jsr.io/@std/path/1.0.8/common.js +33 -0
  247. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts +15 -0
  248. package/esm/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +1 -0
  249. package/esm/deps/jsr.io/@std/path/1.0.8/constants.js +17 -0
  250. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +23 -0
  251. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
  252. package/esm/deps/jsr.io/@std/path/1.0.8/dirname.js +29 -0
  253. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts +23 -0
  254. package/esm/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
  255. package/esm/deps/jsr.io/@std/path/1.0.8/extname.js +29 -0
  256. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts +22 -0
  257. package/esm/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +1 -0
  258. package/esm/deps/jsr.io/@std/path/1.0.8/format.js +27 -0
  259. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +22 -0
  260. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +1 -0
  261. package/esm/deps/jsr.io/@std/path/1.0.8/from_file_url.js +28 -0
  262. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +77 -0
  263. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +1 -0
  264. package/esm/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +83 -0
  265. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +22 -0
  266. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +1 -0
  267. package/esm/deps/jsr.io/@std/path/1.0.8/is_absolute.js +28 -0
  268. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +17 -0
  269. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +1 -0
  270. package/esm/deps/jsr.io/@std/path/1.0.8/is_glob.js +42 -0
  271. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts +23 -0
  272. package/esm/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
  273. package/esm/deps/jsr.io/@std/path/1.0.8/join.js +29 -0
  274. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +28 -0
  275. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +1 -0
  276. package/esm/deps/jsr.io/@std/path/1.0.8/join_globs.js +34 -0
  277. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
  278. package/esm/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
  279. package/esm/deps/jsr.io/@std/path/1.0.8/mod.js +57 -0
  280. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +27 -0
  281. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
  282. package/esm/deps/jsr.io/@std/path/1.0.8/normalize.js +33 -0
  283. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +29 -0
  284. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +1 -0
  285. package/esm/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +35 -0
  286. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts +35 -0
  287. package/esm/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +1 -0
  288. package/esm/deps/jsr.io/@std/path/1.0.8/parse.js +39 -0
  289. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +2 -0
  290. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +1 -0
  291. package/esm/deps/jsr.io/@std/path/1.0.8/posix/_util.js +8 -0
  292. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +40 -0
  293. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
  294. package/esm/deps/jsr.io/@std/path/1.0.8/posix/basename.js +49 -0
  295. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +13 -0
  296. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +1 -0
  297. package/esm/deps/jsr.io/@std/path/1.0.8/posix/constants.js +14 -0
  298. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +32 -0
  299. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
  300. package/esm/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +62 -0
  301. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +37 -0
  302. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
  303. package/esm/deps/jsr.io/@std/path/1.0.8/posix/extname.js +89 -0
  304. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +24 -0
  305. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +1 -0
  306. package/esm/deps/jsr.io/@std/path/1.0.8/posix/format.js +28 -0
  307. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +16 -0
  308. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +1 -0
  309. package/esm/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +21 -0
  310. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +72 -0
  311. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +1 -0
  312. package/esm/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +82 -0
  313. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +17 -0
  314. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +1 -0
  315. package/esm/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +23 -0
  316. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +33 -0
  317. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
  318. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join.js +42 -0
  319. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +20 -0
  320. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +1 -0
  321. package/esm/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +40 -0
  322. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +40 -0
  323. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
  324. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +57 -0
  325. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +20 -0
  326. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +1 -0
  327. package/esm/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +32 -0
  328. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +25 -0
  329. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +1 -0
  330. package/esm/deps/jsr.io/@std/path/1.0.8/posix/parse.js +115 -0
  331. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +20 -0
  332. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +1 -0
  333. package/esm/deps/jsr.io/@std/path/1.0.8/posix/relative.js +106 -0
  334. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +17 -0
  335. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +1 -0
  336. package/esm/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +59 -0
  337. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +17 -0
  338. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +1 -0
  339. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +27 -0
  340. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +16 -0
  341. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +1 -0
  342. package/esm/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +20 -0
  343. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts +24 -0
  344. package/esm/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +1 -0
  345. package/esm/deps/jsr.io/@std/path/1.0.8/relative.js +30 -0
  346. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +22 -0
  347. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +1 -0
  348. package/esm/deps/jsr.io/@std/path/1.0.8/resolve.js +30 -0
  349. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +22 -0
  350. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +1 -0
  351. package/esm/deps/jsr.io/@std/path/1.0.8/to_file_url.js +28 -0
  352. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +21 -0
  353. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +1 -0
  354. package/esm/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +29 -0
  355. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts +38 -0
  356. package/esm/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +1 -0
  357. package/esm/deps/jsr.io/@std/path/1.0.8/types.js +3 -0
  358. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +4 -0
  359. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +1 -0
  360. package/esm/deps/jsr.io/@std/path/1.0.8/windows/_util.js +15 -0
  361. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +23 -0
  362. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
  363. package/esm/deps/jsr.io/@std/path/1.0.8/windows/basename.js +44 -0
  364. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +13 -0
  365. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +1 -0
  366. package/esm/deps/jsr.io/@std/path/1.0.8/windows/constants.js +14 -0
  367. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
  368. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
  369. package/esm/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +112 -0
  370. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +20 -0
  371. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
  372. package/esm/deps/jsr.io/@std/path/1.0.8/windows/extname.js +81 -0
  373. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +24 -0
  374. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +1 -0
  375. package/esm/deps/jsr.io/@std/path/1.0.8/windows/format.js +28 -0
  376. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +18 -0
  377. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +1 -0
  378. package/esm/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +30 -0
  379. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +71 -0
  380. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +1 -0
  381. package/esm/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +82 -0
  382. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +17 -0
  383. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +1 -0
  384. package/esm/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +38 -0
  385. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
  386. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
  387. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join.js +74 -0
  388. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +21 -0
  389. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +1 -0
  390. package/esm/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +41 -0
  391. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +22 -0
  392. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
  393. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +134 -0
  394. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +20 -0
  395. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +1 -0
  396. package/esm/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +32 -0
  397. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +25 -0
  398. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +1 -0
  399. package/esm/deps/jsr.io/@std/path/1.0.8/windows/parse.js +176 -0
  400. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +23 -0
  401. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +1 -0
  402. package/esm/deps/jsr.io/@std/path/1.0.8/windows/relative.js +131 -0
  403. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +17 -0
  404. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +1 -0
  405. package/esm/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +154 -0
  406. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +17 -0
  407. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +1 -0
  408. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +34 -0
  409. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +17 -0
  410. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +1 -0
  411. package/esm/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +49 -0
  412. package/esm/mod.d.ts +1 -0
  413. package/esm/mod.d.ts.map +1 -1
  414. package/esm/mod.js +1 -0
  415. package/esm/src/dsl/http/versori/internalauth.d.ts.map +1 -1
  416. package/esm/src/dsl/http/versori/internalauth.js +17 -10
  417. package/esm/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
  418. package/esm/src/dsl/http/versori/roundtripper.js +10 -1
  419. package/esm/src/dsl/triggers/WebhookTrigger.d.ts +13 -0
  420. package/esm/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -0
  421. package/esm/src/dsl/triggers/WebhookTrigger.js +31 -0
  422. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts +9 -1
  423. package/esm/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  424. package/esm/src/interpreter/memory/MemoryInterpreter.js +54 -21
  425. package/esm/src/interpreter/memory/ObservableCompiler.d.ts +2 -0
  426. package/esm/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  427. package/esm/src/interpreter/memory/ObservableCompiler.js +2 -0
  428. package/esm/src/interpreter/memory/compilers/webhook.d.ts +4 -0
  429. package/esm/src/interpreter/memory/compilers/webhook.d.ts.map +1 -0
  430. package/esm/src/interpreter/memory/compilers/webhook.js +40 -0
  431. package/package.json +2 -1
  432. package/script/_dnt.polyfills.d.ts +14 -0
  433. package/script/_dnt.polyfills.d.ts.map +1 -0
  434. package/script/_dnt.polyfills.js +12 -0
  435. package/script/deps/deno.land/x/oak@v17.1.4/application.d.ts +383 -0
  436. package/script/deps/deno.land/x/oak@v17.1.4/application.d.ts.map +1 -0
  437. package/script/deps/deno.land/x/oak@v17.1.4/application.js +554 -0
  438. package/script/deps/deno.land/x/oak@v17.1.4/body.d.ts +71 -0
  439. package/script/deps/deno.land/x/oak@v17.1.4/body.d.ts.map +1 -0
  440. package/script/deps/deno.land/x/oak@v17.1.4/body.js +240 -0
  441. package/script/deps/deno.land/x/oak@v17.1.4/context.d.ts +163 -0
  442. package/script/deps/deno.land/x/oak@v17.1.4/context.d.ts.map +1 -0
  443. package/script/deps/deno.land/x/oak@v17.1.4/context.js +291 -0
  444. package/script/deps/deno.land/x/oak@v17.1.4/deps.d.ts +19 -0
  445. package/script/deps/deno.land/x/oak@v17.1.4/deps.d.ts.map +1 -0
  446. package/script/deps/deno.land/x/oak@v17.1.4/deps.js +60 -0
  447. package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts +51 -0
  448. package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.d.ts.map +1 -0
  449. package/script/deps/deno.land/x/oak@v17.1.4/http_server_bun.js +151 -0
  450. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts +17 -0
  451. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.d.ts.map +1 -0
  452. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native.js +127 -0
  453. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts +26 -0
  454. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.d.ts.map +1 -0
  455. package/script/deps/deno.land/x/oak@v17.1.4/http_server_native_request.js +140 -0
  456. package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts +48 -0
  457. package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.d.ts.map +1 -0
  458. package/script/deps/deno.land/x/oak@v17.1.4/http_server_node.js +180 -0
  459. package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts +20 -0
  460. package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.d.ts.map +1 -0
  461. package/script/deps/deno.land/x/oak@v17.1.4/middleware/etag.js +57 -0
  462. package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts +67 -0
  463. package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.d.ts.map +1 -0
  464. package/script/deps/deno.land/x/oak@v17.1.4/middleware/proxy.js +130 -0
  465. package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts +114 -0
  466. package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.d.ts.map +1 -0
  467. package/script/deps/deno.land/x/oak@v17.1.4/middleware/serve.js +218 -0
  468. package/script/deps/deno.land/x/oak@v17.1.4/middleware.d.ts +36 -0
  469. package/script/deps/deno.land/x/oak@v17.1.4/middleware.d.ts.map +1 -0
  470. package/script/deps/deno.land/x/oak@v17.1.4/middleware.js +38 -0
  471. package/script/deps/deno.land/x/oak@v17.1.4/mod.d.ts +111 -0
  472. package/script/deps/deno.land/x/oak@v17.1.4/mod.d.ts.map +1 -0
  473. package/script/deps/deno.land/x/oak@v17.1.4/mod.js +159 -0
  474. package/script/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts +2 -0
  475. package/script/deps/deno.land/x/oak@v17.1.4/node_shims.d.ts.map +1 -0
  476. package/script/deps/deno.land/x/oak@v17.1.4/node_shims.js +100 -0
  477. package/script/deps/deno.land/x/oak@v17.1.4/request.d.ts +133 -0
  478. package/script/deps/deno.land/x/oak@v17.1.4/request.d.ts.map +1 -0
  479. package/script/deps/deno.land/x/oak@v17.1.4/request.js +250 -0
  480. package/script/deps/deno.land/x/oak@v17.1.4/response.d.ts +148 -0
  481. package/script/deps/deno.land/x/oak@v17.1.4/response.d.ts.map +1 -0
  482. package/script/deps/deno.land/x/oak@v17.1.4/response.js +299 -0
  483. package/script/deps/deno.land/x/oak@v17.1.4/router.d.ts +363 -0
  484. package/script/deps/deno.land/x/oak@v17.1.4/router.d.ts.map +1 -0
  485. package/script/deps/deno.land/x/oak@v17.1.4/router.js +641 -0
  486. package/script/deps/deno.land/x/oak@v17.1.4/send.d.ts +75 -0
  487. package/script/deps/deno.land/x/oak@v17.1.4/send.d.ts.map +1 -0
  488. package/script/deps/deno.land/x/oak@v17.1.4/send.js +222 -0
  489. package/script/deps/deno.land/x/oak@v17.1.4/testing.d.ts +33 -0
  490. package/script/deps/deno.land/x/oak@v17.1.4/testing.d.ts.map +1 -0
  491. package/script/deps/deno.land/x/oak@v17.1.4/testing.js +118 -0
  492. package/script/deps/deno.land/x/oak@v17.1.4/types.d.ts +77 -0
  493. package/script/deps/deno.land/x/oak@v17.1.4/types.d.ts.map +1 -0
  494. package/script/deps/deno.land/x/oak@v17.1.4/types.js +2 -0
  495. package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts +3 -0
  496. package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.d.ts.map +1 -0
  497. package/script/deps/deno.land/x/oak@v17.1.4/utils/clone_state.js +19 -0
  498. package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts +3 -0
  499. package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.d.ts.map +1 -0
  500. package/script/deps/deno.land/x/oak@v17.1.4/utils/consts.js +6 -0
  501. package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts +7 -0
  502. package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.d.ts.map +1 -0
  503. package/script/deps/deno.land/x/oak@v17.1.4/utils/create_promise_with_resolvers.js +23 -0
  504. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts +6 -0
  505. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.d.ts.map +1 -0
  506. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode.js +20 -0
  507. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts +6 -0
  508. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.d.ts.map +1 -0
  509. package/script/deps/deno.land/x/oak@v17.1.4/utils/decode_component.js +16 -0
  510. package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts +3 -0
  511. package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.d.ts.map +1 -0
  512. package/script/deps/deno.land/x/oak@v17.1.4/utils/encode_url.js +13 -0
  513. package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts +31 -0
  514. package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.d.ts.map +1 -0
  515. package/script/deps/deno.land/x/oak@v17.1.4/utils/resolve_path.js +59 -0
  516. package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts +9 -0
  517. package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.d.ts.map +1 -0
  518. package/script/deps/deno.land/x/oak@v17.1.4/utils/streams.js +80 -0
  519. package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts +17 -0
  520. package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.d.ts.map +1 -0
  521. package/script/deps/deno.land/x/oak@v17.1.4/utils/type_guards.js +70 -0
  522. package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts +16 -0
  523. package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.d.ts.map +1 -0
  524. package/script/deps/jsr.io/@oak/commons/1.0.0/content_disposition.js +128 -0
  525. package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts +363 -0
  526. package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.d.ts.map +1 -0
  527. package/script/deps/jsr.io/@oak/commons/1.0.0/cookie_map.js +608 -0
  528. package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts +9 -0
  529. package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.d.ts.map +1 -0
  530. package/script/deps/jsr.io/@oak/commons/1.0.0/form_data.js +288 -0
  531. package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts +16 -0
  532. package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.d.ts.map +1 -0
  533. package/script/deps/jsr.io/@oak/commons/1.0.0/forwarded.js +211 -0
  534. package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts +6 -0
  535. package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.d.ts.map +1 -0
  536. package/script/deps/jsr.io/@oak/commons/1.0.0/header_utils.js +32 -0
  537. package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts +123 -0
  538. package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.d.ts.map +1 -0
  539. package/script/deps/jsr.io/@oak/commons/1.0.0/http_errors.js +239 -0
  540. package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts +56 -0
  541. package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.d.ts.map +1 -0
  542. package/script/deps/jsr.io/@oak/commons/1.0.0/keystack.js +169 -0
  543. package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts +56 -0
  544. package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.d.ts.map +1 -0
  545. package/script/deps/jsr.io/@oak/commons/1.0.0/media_types.js +212 -0
  546. package/script/deps/jsr.io/@oak/commons/1.0.0/method.d.ts +29 -0
  547. package/script/deps/jsr.io/@oak/commons/1.0.0/method.d.ts.map +1 -0
  548. package/script/deps/jsr.io/@oak/commons/1.0.0/method.js +66 -0
  549. package/script/deps/jsr.io/@oak/commons/1.0.0/range.d.ts +324 -0
  550. package/script/deps/jsr.io/@oak/commons/1.0.0/range.d.ts.map +1 -0
  551. package/script/deps/jsr.io/@oak/commons/1.0.0/range.js +536 -0
  552. package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts +178 -0
  553. package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.d.ts.map +1 -0
  554. package/script/deps/jsr.io/@oak/commons/1.0.0/server_sent_event.js +267 -0
  555. package/script/deps/jsr.io/@oak/commons/1.0.0/status.d.ts +389 -0
  556. package/script/deps/jsr.io/@oak/commons/1.0.0/status.d.ts.map +1 -0
  557. package/script/deps/jsr.io/@oak/commons/1.0.0/status.js +396 -0
  558. package/script/deps/jsr.io/@std/assert/1.0.11/assert.d.ts +16 -0
  559. package/script/deps/jsr.io/@std/assert/1.0.11/assert.d.ts.map +1 -0
  560. package/script/deps/jsr.io/@std/assert/1.0.11/assert.js +25 -0
  561. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts +26 -0
  562. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
  563. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.js +34 -0
  564. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts +9 -0
  565. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.d.ts.map +1 -0
  566. package/script/deps/jsr.io/@std/bytes/1.0.5/_types.js +3 -0
  567. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts +21 -0
  568. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.d.ts.map +1 -0
  569. package/script/deps/jsr.io/@std/bytes/1.0.5/concat.js +35 -0
  570. package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts +34 -0
  571. package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.d.ts.map +1 -0
  572. package/script/deps/jsr.io/@std/crypto/1.0.4/timing_safe_equal.js +58 -0
  573. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts +9 -0
  574. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.d.ts.map +1 -0
  575. package/script/deps/jsr.io/@std/encoding/1.0.7/_types.js +3 -0
  576. package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts +2 -0
  577. package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.d.ts.map +1 -0
  578. package/script/deps/jsr.io/@std/encoding/1.0.7/_validate_binary_like.js +29 -0
  579. package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts +40 -0
  580. package/script/deps/jsr.io/@std/encoding/1.0.7/base64.d.ts.map +1 -0
  581. package/script/deps/jsr.io/@std/encoding/1.0.7/base64.js +167 -0
  582. package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts +40 -0
  583. package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.d.ts.map +1 -0
  584. package/script/deps/jsr.io/@std/encoding/1.0.7/base64url.js +108 -0
  585. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts +38 -0
  586. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.d.ts.map +1 -0
  587. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/common.js +44 -0
  588. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts +34 -0
  589. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.d.ts.map +1 -0
  590. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/encoding.js +126 -0
  591. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts +31 -0
  592. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.d.ts.map +1 -0
  593. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/language.js +116 -0
  594. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts +31 -0
  595. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.d.ts.map +1 -0
  596. package/script/deps/jsr.io/@std/http/1.0.13/_negotiation/media_type.js +143 -0
  597. package/script/deps/jsr.io/@std/http/1.0.13/etag.d.ts +148 -0
  598. package/script/deps/jsr.io/@std/http/1.0.13/etag.d.ts.map +1 -0
  599. package/script/deps/jsr.io/@std/http/1.0.13/etag.js +140 -0
  600. package/script/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts +148 -0
  601. package/script/deps/jsr.io/@std/http/1.0.13/negotiation.d.ts.map +1 -0
  602. package/script/deps/jsr.io/@std/http/1.0.13/negotiation.js +42 -0
  603. package/script/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts +200 -0
  604. package/script/deps/jsr.io/@std/http/1.0.13/user_agent.d.ts.map +1 -0
  605. package/script/deps/jsr.io/@std/http/1.0.13/user_agent.js +1154 -0
  606. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts +8 -0
  607. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.d.ts.map +1 -0
  608. package/script/deps/jsr.io/@std/media-types/1.1.0/_db.js +40 -0
  609. package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts +15 -0
  610. package/script/deps/jsr.io/@std/media-types/1.1.0/_util.d.ts.map +1 -0
  611. package/script/deps/jsr.io/@std/media-types/1.1.0/_util.js +132 -0
  612. package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts +43 -0
  613. package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.d.ts.map +1 -0
  614. package/script/deps/jsr.io/@std/media-types/1.1.0/content_type.js +60 -0
  615. package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts +33 -0
  616. package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.d.ts.map +1 -0
  617. package/script/deps/jsr.io/@std/media-types/1.1.0/format_media_type.js +80 -0
  618. package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts +22 -0
  619. package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.d.ts.map +1 -0
  620. package/script/deps/jsr.io/@std/media-types/1.1.0/get_charset.js +46 -0
  621. package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts +31 -0
  622. package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.d.ts.map +1 -0
  623. package/script/deps/jsr.io/@std/media-types/1.1.0/parse_media_type.js +117 -0
  624. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts +25 -0
  625. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.d.ts.map +1 -0
  626. package/script/deps/jsr.io/@std/media-types/1.1.0/type_by_extension.js +34 -0
  627. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts +9103 -0
  628. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.d.ts.map +1 -0
  629. package/script/deps/jsr.io/@std/media-types/1.1.0/vendor/db.js +9140 -0
  630. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts +2 -0
  631. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.d.ts.map +1 -0
  632. package/script/deps/jsr.io/@std/path/1.0.8/_common/assert_path.js +10 -0
  633. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts +4 -0
  634. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.d.ts.map +1 -0
  635. package/script/deps/jsr.io/@std/path/1.0.8/_common/basename.js +45 -0
  636. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts +2 -0
  637. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.d.ts.map +1 -0
  638. package/script/deps/jsr.io/@std/path/1.0.8/_common/common.js +26 -0
  639. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts +40 -0
  640. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.d.ts.map +1 -0
  641. package/script/deps/jsr.io/@std/path/1.0.8/_common/constants.js +49 -0
  642. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts +2 -0
  643. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.d.ts.map +1 -0
  644. package/script/deps/jsr.io/@std/path/1.0.8/_common/dirname.js +11 -0
  645. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts +4 -0
  646. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.d.ts.map +1 -0
  647. package/script/deps/jsr.io/@std/path/1.0.8/_common/format.js +23 -0
  648. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts +2 -0
  649. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.d.ts.map +1 -0
  650. package/script/deps/jsr.io/@std/path/1.0.8/_common/from_file_url.js +12 -0
  651. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts +35 -0
  652. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.d.ts.map +1 -0
  653. package/script/deps/jsr.io/@std/path/1.0.8/_common/glob_to_reg_exp.js +237 -0
  654. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts +2 -0
  655. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.d.ts.map +1 -0
  656. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize.js +11 -0
  657. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts +2 -0
  658. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.d.ts.map +1 -0
  659. package/script/deps/jsr.io/@std/path/1.0.8/_common/normalize_string.js +80 -0
  660. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts +2 -0
  661. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.d.ts.map +1 -0
  662. package/script/deps/jsr.io/@std/path/1.0.8/_common/relative.js +12 -0
  663. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts +2 -0
  664. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.d.ts.map +1 -0
  665. package/script/deps/jsr.io/@std/path/1.0.8/_common/strip_trailing_separators.js +22 -0
  666. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts +2 -0
  667. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.d.ts.map +1 -0
  668. package/script/deps/jsr.io/@std/path/1.0.8/_common/to_file_url.js +18 -0
  669. package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts +2 -0
  670. package/script/deps/jsr.io/@std/path/1.0.8/_os.d.ts.map +1 -0
  671. package/script/deps/jsr.io/@std/path/1.0.8/_os.js +35 -0
  672. package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts +28 -0
  673. package/script/deps/jsr.io/@std/path/1.0.8/basename.d.ts.map +1 -0
  674. package/script/deps/jsr.io/@std/path/1.0.8/basename.js +39 -0
  675. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts +28 -0
  676. package/script/deps/jsr.io/@std/path/1.0.8/common.d.ts.map +1 -0
  677. package/script/deps/jsr.io/@std/path/1.0.8/common.js +36 -0
  678. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts +15 -0
  679. package/script/deps/jsr.io/@std/path/1.0.8/constants.d.ts.map +1 -0
  680. package/script/deps/jsr.io/@std/path/1.0.8/constants.js +20 -0
  681. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts +23 -0
  682. package/script/deps/jsr.io/@std/path/1.0.8/dirname.d.ts.map +1 -0
  683. package/script/deps/jsr.io/@std/path/1.0.8/dirname.js +32 -0
  684. package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts +23 -0
  685. package/script/deps/jsr.io/@std/path/1.0.8/extname.d.ts.map +1 -0
  686. package/script/deps/jsr.io/@std/path/1.0.8/extname.js +32 -0
  687. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts +22 -0
  688. package/script/deps/jsr.io/@std/path/1.0.8/format.d.ts.map +1 -0
  689. package/script/deps/jsr.io/@std/path/1.0.8/format.js +30 -0
  690. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts +22 -0
  691. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.d.ts.map +1 -0
  692. package/script/deps/jsr.io/@std/path/1.0.8/from_file_url.js +31 -0
  693. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts +77 -0
  694. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.d.ts.map +1 -0
  695. package/script/deps/jsr.io/@std/path/1.0.8/glob_to_regexp.js +86 -0
  696. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts +22 -0
  697. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.d.ts.map +1 -0
  698. package/script/deps/jsr.io/@std/path/1.0.8/is_absolute.js +31 -0
  699. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts +17 -0
  700. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.d.ts.map +1 -0
  701. package/script/deps/jsr.io/@std/path/1.0.8/is_glob.js +45 -0
  702. package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts +23 -0
  703. package/script/deps/jsr.io/@std/path/1.0.8/join.d.ts.map +1 -0
  704. package/script/deps/jsr.io/@std/path/1.0.8/join.js +32 -0
  705. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts +28 -0
  706. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.d.ts.map +1 -0
  707. package/script/deps/jsr.io/@std/path/1.0.8/join_globs.js +37 -0
  708. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts +54 -0
  709. package/script/deps/jsr.io/@std/path/1.0.8/mod.d.ts.map +1 -0
  710. package/script/deps/jsr.io/@std/path/1.0.8/mod.js +73 -0
  711. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts +27 -0
  712. package/script/deps/jsr.io/@std/path/1.0.8/normalize.d.ts.map +1 -0
  713. package/script/deps/jsr.io/@std/path/1.0.8/normalize.js +36 -0
  714. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts +29 -0
  715. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.d.ts.map +1 -0
  716. package/script/deps/jsr.io/@std/path/1.0.8/normalize_glob.js +38 -0
  717. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts +35 -0
  718. package/script/deps/jsr.io/@std/path/1.0.8/parse.d.ts.map +1 -0
  719. package/script/deps/jsr.io/@std/path/1.0.8/parse.js +42 -0
  720. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts +2 -0
  721. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.d.ts.map +1 -0
  722. package/script/deps/jsr.io/@std/path/1.0.8/posix/_util.js +11 -0
  723. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts +40 -0
  724. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.d.ts.map +1 -0
  725. package/script/deps/jsr.io/@std/path/1.0.8/posix/basename.js +52 -0
  726. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts +13 -0
  727. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.d.ts.map +1 -0
  728. package/script/deps/jsr.io/@std/path/1.0.8/posix/constants.js +17 -0
  729. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts +32 -0
  730. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.d.ts.map +1 -0
  731. package/script/deps/jsr.io/@std/path/1.0.8/posix/dirname.js +65 -0
  732. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts +37 -0
  733. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.d.ts.map +1 -0
  734. package/script/deps/jsr.io/@std/path/1.0.8/posix/extname.js +92 -0
  735. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts +24 -0
  736. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.d.ts.map +1 -0
  737. package/script/deps/jsr.io/@std/path/1.0.8/posix/format.js +31 -0
  738. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts +16 -0
  739. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.d.ts.map +1 -0
  740. package/script/deps/jsr.io/@std/path/1.0.8/posix/from_file_url.js +24 -0
  741. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts +72 -0
  742. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.d.ts.map +1 -0
  743. package/script/deps/jsr.io/@std/path/1.0.8/posix/glob_to_regexp.js +85 -0
  744. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts +17 -0
  745. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.d.ts.map +1 -0
  746. package/script/deps/jsr.io/@std/path/1.0.8/posix/is_absolute.js +26 -0
  747. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts +33 -0
  748. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.d.ts.map +1 -0
  749. package/script/deps/jsr.io/@std/path/1.0.8/posix/join.js +45 -0
  750. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts +20 -0
  751. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.d.ts.map +1 -0
  752. package/script/deps/jsr.io/@std/path/1.0.8/posix/join_globs.js +43 -0
  753. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts +40 -0
  754. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.d.ts.map +1 -0
  755. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize.js +60 -0
  756. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts +20 -0
  757. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.d.ts.map +1 -0
  758. package/script/deps/jsr.io/@std/path/1.0.8/posix/normalize_glob.js +35 -0
  759. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts +25 -0
  760. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.d.ts.map +1 -0
  761. package/script/deps/jsr.io/@std/path/1.0.8/posix/parse.js +118 -0
  762. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts +20 -0
  763. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.d.ts.map +1 -0
  764. package/script/deps/jsr.io/@std/path/1.0.8/posix/relative.js +109 -0
  765. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts +17 -0
  766. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.d.ts.map +1 -0
  767. package/script/deps/jsr.io/@std/path/1.0.8/posix/resolve.js +85 -0
  768. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts +17 -0
  769. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.d.ts.map +1 -0
  770. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_file_url.js +30 -0
  771. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts +16 -0
  772. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.d.ts.map +1 -0
  773. package/script/deps/jsr.io/@std/path/1.0.8/posix/to_namespaced_path.js +23 -0
  774. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts +24 -0
  775. package/script/deps/jsr.io/@std/path/1.0.8/relative.d.ts.map +1 -0
  776. package/script/deps/jsr.io/@std/path/1.0.8/relative.js +33 -0
  777. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts +22 -0
  778. package/script/deps/jsr.io/@std/path/1.0.8/resolve.d.ts.map +1 -0
  779. package/script/deps/jsr.io/@std/path/1.0.8/resolve.js +33 -0
  780. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts +22 -0
  781. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.d.ts.map +1 -0
  782. package/script/deps/jsr.io/@std/path/1.0.8/to_file_url.js +31 -0
  783. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts +21 -0
  784. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.d.ts.map +1 -0
  785. package/script/deps/jsr.io/@std/path/1.0.8/to_namespaced_path.js +32 -0
  786. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts +38 -0
  787. package/script/deps/jsr.io/@std/path/1.0.8/types.d.ts.map +1 -0
  788. package/script/deps/jsr.io/@std/path/1.0.8/types.js +4 -0
  789. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts +4 -0
  790. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.d.ts.map +1 -0
  791. package/script/deps/jsr.io/@std/path/1.0.8/windows/_util.js +20 -0
  792. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts +23 -0
  793. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.d.ts.map +1 -0
  794. package/script/deps/jsr.io/@std/path/1.0.8/windows/basename.js +47 -0
  795. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts +13 -0
  796. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.d.ts.map +1 -0
  797. package/script/deps/jsr.io/@std/path/1.0.8/windows/constants.js +17 -0
  798. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts +20 -0
  799. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.d.ts.map +1 -0
  800. package/script/deps/jsr.io/@std/path/1.0.8/windows/dirname.js +115 -0
  801. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts +20 -0
  802. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.d.ts.map +1 -0
  803. package/script/deps/jsr.io/@std/path/1.0.8/windows/extname.js +84 -0
  804. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts +24 -0
  805. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.d.ts.map +1 -0
  806. package/script/deps/jsr.io/@std/path/1.0.8/windows/format.js +31 -0
  807. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts +18 -0
  808. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.d.ts.map +1 -0
  809. package/script/deps/jsr.io/@std/path/1.0.8/windows/from_file_url.js +33 -0
  810. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts +71 -0
  811. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.d.ts.map +1 -0
  812. package/script/deps/jsr.io/@std/path/1.0.8/windows/glob_to_regexp.js +85 -0
  813. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts +17 -0
  814. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.d.ts.map +1 -0
  815. package/script/deps/jsr.io/@std/path/1.0.8/windows/is_absolute.js +41 -0
  816. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts +20 -0
  817. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.d.ts.map +1 -0
  818. package/script/deps/jsr.io/@std/path/1.0.8/windows/join.js +77 -0
  819. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts +21 -0
  820. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.d.ts.map +1 -0
  821. package/script/deps/jsr.io/@std/path/1.0.8/windows/join_globs.js +44 -0
  822. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts +22 -0
  823. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.d.ts.map +1 -0
  824. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize.js +137 -0
  825. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts +20 -0
  826. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.d.ts.map +1 -0
  827. package/script/deps/jsr.io/@std/path/1.0.8/windows/normalize_glob.js +35 -0
  828. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts +25 -0
  829. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.d.ts.map +1 -0
  830. package/script/deps/jsr.io/@std/path/1.0.8/windows/parse.js +179 -0
  831. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts +23 -0
  832. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.d.ts.map +1 -0
  833. package/script/deps/jsr.io/@std/path/1.0.8/windows/relative.js +134 -0
  834. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts +17 -0
  835. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.d.ts.map +1 -0
  836. package/script/deps/jsr.io/@std/path/1.0.8/windows/resolve.js +180 -0
  837. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts +17 -0
  838. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.d.ts.map +1 -0
  839. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_file_url.js +37 -0
  840. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts +17 -0
  841. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.d.ts.map +1 -0
  842. package/script/deps/jsr.io/@std/path/1.0.8/windows/to_namespaced_path.js +52 -0
  843. package/script/mod.d.ts +1 -0
  844. package/script/mod.d.ts.map +1 -1
  845. package/script/mod.js +1 -0
  846. package/script/src/dsl/http/versori/internalauth.d.ts.map +1 -1
  847. package/script/src/dsl/http/versori/internalauth.js +17 -10
  848. package/script/src/dsl/http/versori/roundtripper.d.ts.map +1 -1
  849. package/script/src/dsl/http/versori/roundtripper.js +10 -1
  850. package/script/src/dsl/triggers/WebhookTrigger.d.ts +13 -0
  851. package/script/src/dsl/triggers/WebhookTrigger.d.ts.map +1 -0
  852. package/script/src/dsl/triggers/WebhookTrigger.js +36 -0
  853. package/script/src/interpreter/memory/MemoryInterpreter.d.ts +9 -1
  854. package/script/src/interpreter/memory/MemoryInterpreter.d.ts.map +1 -1
  855. package/script/src/interpreter/memory/MemoryInterpreter.js +54 -21
  856. package/script/src/interpreter/memory/ObservableCompiler.d.ts +2 -0
  857. package/script/src/interpreter/memory/ObservableCompiler.d.ts.map +1 -1
  858. package/script/src/interpreter/memory/ObservableCompiler.js +2 -0
  859. package/script/src/interpreter/memory/compilers/webhook.d.ts +4 -0
  860. package/script/src/interpreter/memory/compilers/webhook.d.ts.map +1 -0
  861. package/script/src/interpreter/memory/compilers/webhook.js +43 -0
@@ -0,0 +1,299 @@
1
+ "use strict";
2
+ // Copyright 2018-2025 the oak authors. All rights reserved. MIT license.
3
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
6
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
7
+ };
8
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
9
+ if (kind === "m") throw new TypeError("Private method is not writable");
10
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
11
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
12
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
13
+ };
14
+ var _Response_instances, _Response_body, _Response_bodySet, _Response_domResponse, _Response_headers, _Response_jsonBodyReplacer, _Response_request, _Response_resources, _Response_status, _Response_type, _Response_writable, _Response_getBodyInit, _Response_setContentType;
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.Response = exports.REDIRECT_BACK = void 0;
17
+ /**
18
+ * Contains the {@linkcode Response} abstraction used by oak.
19
+ *
20
+ * Most end users would not need to directly access this module.
21
+ *
22
+ * @module
23
+ */
24
+ const deps_js_1 = require("./deps.js");
25
+ const http_server_native_request_js_1 = require("./http_server_native_request.js");
26
+ const type_guards_js_1 = require("./utils/type_guards.js");
27
+ const consts_js_1 = require("./utils/consts.js");
28
+ const encode_url_js_1 = require("./utils/encode_url.js");
29
+ const streams_js_1 = require("./utils/streams.js");
30
+ /** A symbol that indicates to `response.redirect()` to attempt to redirect
31
+ * back to the request referrer. For example:
32
+ *
33
+ * ```ts
34
+ * import { Application, REDIRECT_BACK } from "jsr:@oak/oak/";
35
+ *
36
+ * const app = new Application();
37
+ *
38
+ * app.use((ctx) => {
39
+ * if (ctx.request.url.pathName === "/back") {
40
+ * ctx.response.redirect(REDIRECT_BACK, "/");
41
+ * }
42
+ * });
43
+ *
44
+ * await app.listen({ port: 80 });
45
+ * ```
46
+ */
47
+ exports.REDIRECT_BACK = Symbol("redirect backwards");
48
+ async function convertBodyToBodyInit(body, type, jsonBodyReplacer) {
49
+ let result;
50
+ if (consts_js_1.BODY_TYPES.includes(typeof body)) {
51
+ result = String(body);
52
+ type = type ?? ((0, type_guards_js_1.isHtml)(result) ? "html" : "text/plain");
53
+ }
54
+ else if ((0, type_guards_js_1.isFsFile)(body)) {
55
+ result = body.readable;
56
+ }
57
+ else if (ArrayBuffer.isView(body) || body instanceof ArrayBuffer ||
58
+ body instanceof Blob || body instanceof URLSearchParams) {
59
+ // deno-lint-ignore no-explicit-any
60
+ result = body;
61
+ }
62
+ else if (body instanceof ReadableStream) {
63
+ result = body.pipeThrough(new streams_js_1.Uint8ArrayTransformStream());
64
+ }
65
+ else if (body instanceof FormData) {
66
+ result = body;
67
+ type = undefined;
68
+ }
69
+ else if ((0, type_guards_js_1.isAsyncIterable)(body)) {
70
+ result = (0, streams_js_1.readableStreamFromAsyncIterable)(body);
71
+ }
72
+ else if (body && typeof body === "object") {
73
+ result = JSON.stringify(body, jsonBodyReplacer);
74
+ type = type ?? "json";
75
+ }
76
+ else if (typeof body === "function") {
77
+ const result = body.call(null);
78
+ return convertBodyToBodyInit(await result, type, jsonBodyReplacer);
79
+ }
80
+ else if (body) {
81
+ throw new TypeError("Response body was set but could not be converted.");
82
+ }
83
+ return [result, type];
84
+ }
85
+ /** An interface to control what response will be sent when the middleware
86
+ * finishes processing the request.
87
+ *
88
+ * The response is usually accessed via the context's `.response` property.
89
+ *
90
+ * ### Example
91
+ *
92
+ * ```ts
93
+ * import { Application, Status } from "jsr:@oak/oak/";
94
+ *
95
+ * const app = new Application();
96
+ *
97
+ * app.use((ctx) => {
98
+ * ctx.response.body = { hello: "oak" };
99
+ * ctx.response.type = "json";
100
+ * ctx.response.status = Status.OK;
101
+ * });
102
+ * ```
103
+ */
104
+ class Response {
105
+ /** The body of the response. The body will be automatically processed when
106
+ * the response is being sent and converted to a `Uint8Array` or a
107
+ * `Deno.Reader`.
108
+ *
109
+ * Automatic conversion to a `Deno.Reader` occurs for async iterables. */
110
+ get body() {
111
+ return __classPrivateFieldGet(this, _Response_body, "f");
112
+ }
113
+ /** The body of the response. The body will be automatically processed when
114
+ * the response is being sent and converted to a `Uint8Array` or a
115
+ * `Deno.Reader`.
116
+ *
117
+ * Automatic conversion to a `Deno.Reader` occurs for async iterables. */
118
+ set body(value) {
119
+ if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
120
+ throw new Error("The response is not writable.");
121
+ }
122
+ __classPrivateFieldSet(this, _Response_bodySet, true, "f");
123
+ __classPrivateFieldSet(this, _Response_body, value, "f");
124
+ }
125
+ /** Headers that will be returned in the response. */
126
+ get headers() {
127
+ return __classPrivateFieldGet(this, _Response_headers, "f");
128
+ }
129
+ /** Headers that will be returned in the response. */
130
+ set headers(value) {
131
+ if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
132
+ throw new Error("The response is not writable.");
133
+ }
134
+ __classPrivateFieldSet(this, _Response_headers, value, "f");
135
+ }
136
+ /** The HTTP status of the response. If this has not been explicitly set,
137
+ * reading the value will return what would be the value of status if the
138
+ * response were sent at this point in processing the middleware. If the body
139
+ * has been set, the status will be `200 OK`. If a value for the body has
140
+ * not been set yet, the status will be `404 Not Found`. */
141
+ get status() {
142
+ if (__classPrivateFieldGet(this, _Response_status, "f")) {
143
+ return __classPrivateFieldGet(this, _Response_status, "f");
144
+ }
145
+ return this.body != null
146
+ ? deps_js_1.Status.OK
147
+ : __classPrivateFieldGet(this, _Response_bodySet, "f")
148
+ ? deps_js_1.Status.NoContent
149
+ : deps_js_1.Status.NotFound;
150
+ }
151
+ /** The HTTP status of the response. If this has not been explicitly set,
152
+ * reading the value will return what would be the value of status if the
153
+ * response were sent at this point in processing the middleware. If the body
154
+ * has been set, the status will be `200 OK`. If a value for the body has
155
+ * not been set yet, the status will be `404 Not Found`. */
156
+ set status(value) {
157
+ if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
158
+ throw new Error("The response is not writable.");
159
+ }
160
+ __classPrivateFieldSet(this, _Response_status, value, "f");
161
+ }
162
+ /** The media type, or extension of the response. Setting this value will
163
+ * ensure an appropriate `Content-Type` header is added to the response. */
164
+ get type() {
165
+ return __classPrivateFieldGet(this, _Response_type, "f");
166
+ }
167
+ /** The media type, or extension of the response. Setting this value will
168
+ * ensure an appropriate `Content-Type` header is added to the response. */
169
+ set type(value) {
170
+ if (!__classPrivateFieldGet(this, _Response_writable, "f")) {
171
+ throw new Error("The response is not writable.");
172
+ }
173
+ __classPrivateFieldSet(this, _Response_type, value, "f");
174
+ }
175
+ /** A read-only property which determines if the response is writable or not.
176
+ * Once the response has been processed, this value is set to `false`. */
177
+ get writable() {
178
+ return __classPrivateFieldGet(this, _Response_writable, "f");
179
+ }
180
+ constructor(request, jsonBodyReplacer) {
181
+ _Response_instances.add(this);
182
+ _Response_body.set(this, void 0);
183
+ _Response_bodySet.set(this, false);
184
+ _Response_domResponse.set(this, void 0);
185
+ _Response_headers.set(this, new Headers());
186
+ _Response_jsonBodyReplacer.set(this, void 0);
187
+ _Response_request.set(this, void 0);
188
+ _Response_resources.set(this, []);
189
+ _Response_status.set(this, void 0);
190
+ _Response_type.set(this, void 0);
191
+ _Response_writable.set(this, true);
192
+ __classPrivateFieldSet(this, _Response_request, request, "f");
193
+ __classPrivateFieldSet(this, _Response_jsonBodyReplacer, jsonBodyReplacer, "f");
194
+ }
195
+ /** Add a resource to the list of resources that will be closed when the
196
+ * request is destroyed. */
197
+ addResource(resource) {
198
+ __classPrivateFieldGet(this, _Response_resources, "f").push(resource);
199
+ }
200
+ /** Release any resources that are being tracked by the response.
201
+ *
202
+ * @param closeResources close any resource IDs registered with the response
203
+ */
204
+ destroy(closeResources = true) {
205
+ __classPrivateFieldSet(this, _Response_writable, false, "f");
206
+ __classPrivateFieldSet(this, _Response_body, undefined, "f");
207
+ __classPrivateFieldSet(this, _Response_domResponse, undefined, "f");
208
+ if (closeResources) {
209
+ for (const resource of __classPrivateFieldGet(this, _Response_resources, "f")) {
210
+ try {
211
+ resource.close();
212
+ }
213
+ catch {
214
+ // we don't care about errors here
215
+ }
216
+ }
217
+ }
218
+ }
219
+ redirect(url, alt = "/") {
220
+ if (url === exports.REDIRECT_BACK) {
221
+ url = __classPrivateFieldGet(this, _Response_request, "f").headers.get("Referer") ?? String(alt);
222
+ }
223
+ else if (typeof url === "object") {
224
+ url = String(url);
225
+ }
226
+ this.headers.set("Location", (0, encode_url_js_1.encodeUrl)(url));
227
+ if (!this.status || !(0, deps_js_1.isRedirectStatus)(this.status)) {
228
+ this.status = deps_js_1.Status.Found;
229
+ }
230
+ if (__classPrivateFieldGet(this, _Response_request, "f").accepts("html")) {
231
+ url = encodeURI(url);
232
+ this.type = "text/html; charset=UTF-8";
233
+ this.body = `Redirecting to <a href="${url}">${url}</a>.`;
234
+ return;
235
+ }
236
+ this.type = "text/plain; charset=UTF-8";
237
+ this.body = `Redirecting to ${url}.`;
238
+ }
239
+ async toDomResponse() {
240
+ if (__classPrivateFieldGet(this, _Response_domResponse, "f")) {
241
+ return __classPrivateFieldGet(this, _Response_domResponse, "f");
242
+ }
243
+ const bodyInit = await __classPrivateFieldGet(this, _Response_instances, "m", _Response_getBodyInit).call(this);
244
+ __classPrivateFieldGet(this, _Response_instances, "m", _Response_setContentType).call(this);
245
+ const { headers } = this;
246
+ // If there is no body and no content type and no set length, then set the
247
+ // content length to 0
248
+ if (!(bodyInit ||
249
+ headers.has("Content-Type") ||
250
+ headers.has("Content-Length"))) {
251
+ headers.append("Content-Length", "0");
252
+ }
253
+ __classPrivateFieldSet(this, _Response_writable, false, "f");
254
+ const status = this.status;
255
+ const responseInit = {
256
+ headers,
257
+ status,
258
+ statusText: deps_js_1.STATUS_TEXT[status],
259
+ };
260
+ return __classPrivateFieldSet(this, _Response_domResponse, new http_server_native_request_js_1.DomResponse(bodyInit, responseInit), "f");
261
+ }
262
+ with(responseOrBody, init) {
263
+ if (__classPrivateFieldGet(this, _Response_domResponse, "f") || !__classPrivateFieldGet(this, _Response_writable, "f")) {
264
+ throw new Error("A response has already been finalized.");
265
+ }
266
+ __classPrivateFieldSet(this, _Response_writable, false, "f");
267
+ __classPrivateFieldSet(this, _Response_domResponse, responseOrBody instanceof http_server_native_request_js_1.DomResponse
268
+ ? responseOrBody
269
+ : new http_server_native_request_js_1.DomResponse(responseOrBody, init), "f");
270
+ }
271
+ [(_Response_body = new WeakMap(), _Response_bodySet = new WeakMap(), _Response_domResponse = new WeakMap(), _Response_headers = new WeakMap(), _Response_jsonBodyReplacer = new WeakMap(), _Response_request = new WeakMap(), _Response_resources = new WeakMap(), _Response_status = new WeakMap(), _Response_type = new WeakMap(), _Response_writable = new WeakMap(), _Response_instances = new WeakSet(), _Response_getBodyInit = async function _Response_getBodyInit() {
272
+ const [body, type] = await convertBodyToBodyInit(this.body, this.type, __classPrivateFieldGet(this, _Response_jsonBodyReplacer, "f"));
273
+ this.type = type;
274
+ return body;
275
+ }, _Response_setContentType = function _Response_setContentType() {
276
+ if (this.type) {
277
+ const contentTypeString = (0, deps_js_1.contentType)(this.type);
278
+ if (contentTypeString && !this.headers.has("Content-Type")) {
279
+ this.headers.append("Content-Type", contentTypeString);
280
+ }
281
+ }
282
+ }, Symbol.for("Deno.customInspect"))](inspect) {
283
+ const { body, headers, status, type, writable } = this;
284
+ return `${this.constructor.name} ${inspect({ body, headers, status, type, writable })}`;
285
+ }
286
+ [Symbol.for("nodejs.util.inspect.custom")](depth,
287
+ // deno-lint-ignore no-explicit-any
288
+ options, inspect) {
289
+ if (depth < 0) {
290
+ return options.stylize(`[${this.constructor.name}]`, "special");
291
+ }
292
+ const newOptions = Object.assign({}, options, {
293
+ depth: options.depth === null ? null : options.depth - 1,
294
+ });
295
+ const { body, headers, status, type, writable } = this;
296
+ return `${options.stylize(this.constructor.name, "special")} ${inspect({ body, headers, status, type, writable }, newOptions)}`;
297
+ }
298
+ }
299
+ exports.Response = Response;
@@ -0,0 +1,363 @@
1
+ /**
2
+ * Contains the router of oak. Typical usage is the creation of an application
3
+ * instance, the creation of a router instance, registration of route
4
+ * middleware, registration of router with the application, and then starting to
5
+ * listen for requests.
6
+ *
7
+ * # Example
8
+ *
9
+ * ```ts
10
+ * import { Application } from "jsr:@oak/oak/application";
11
+ * import { Router } from "jsr:@oak/oak/router";
12
+ *
13
+ * const app = new Application();
14
+ * const router = new Router();
15
+ * router.get("/", (ctx) => {
16
+ * ctx.response.body = "hello world!";
17
+ * });
18
+ * app.use(router.routes());
19
+ * app.use(router.allowedMethods());
20
+ *
21
+ * app.listen();
22
+ * ```
23
+ *
24
+ * @module
25
+ */
26
+ /**
27
+ * Adapted directly from @koa/router at
28
+ * https://github.com/koajs/router/ which is licensed as:
29
+ *
30
+ * The MIT License (MIT)
31
+ *
32
+ * Copyright (c) 2015 Alexander C. Mingoia
33
+ *
34
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
35
+ * of this software and associated documentation files (the "Software"), to deal
36
+ * in the Software without restriction, including without limitation the rights
37
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
38
+ * copies of the Software, and to permit persons to whom the Software is
39
+ * furnished to do so, subject to the following conditions:
40
+ *
41
+ * The above copyright notice and this permission notice shall be included in
42
+ * all copies or substantial portions of the Software.
43
+ *
44
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
45
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
46
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
47
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
49
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
50
+ * THE SOFTWARE.
51
+ */
52
+ import type { State } from "./application.js";
53
+ import type { Context } from "./context.js";
54
+ import { type HTTPMethods, type ParseOptions, type RedirectStatus, type TokensToRegexpOptions } from "./deps.js";
55
+ import { type Middleware } from "./middleware.js";
56
+ /** Options which can be specified when calling the `.allowedMethods()` method
57
+ * on a {@linkcode Router} instance. */
58
+ export interface RouterAllowedMethodsOptions {
59
+ /** Use the value returned from this function instead of an HTTP error
60
+ * `MethodNotAllowed`. */
61
+ methodNotAllowed?(): any;
62
+ /** Use the value returned from this function instead of an HTTP error
63
+ * `NotImplemented`. */
64
+ notImplemented?(): any;
65
+ /** When dealing with a non-implemented method or a method not allowed, throw
66
+ * an error instead of setting the status and header for the response. */
67
+ throw?: boolean;
68
+ }
69
+ /** The internal abstraction of a route used by the oak {@linkcode Router}. */
70
+ export interface Route<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
71
+ /** The HTTP methods that this route handles. */
72
+ methods: HTTPMethods[];
73
+ /** The middleware that will be applied to this route. */
74
+ middleware: RouterMiddleware<R, P, S>[];
75
+ /** An optional name for the route. */
76
+ name?: string;
77
+ /** Options that were used to create the route. */
78
+ options: LayerOptions;
79
+ /** The parameters that are identified in the route that will be parsed out
80
+ * on matched requests. */
81
+ paramNames: (keyof P)[];
82
+ /** The path that this route manages. */
83
+ path: string;
84
+ /** The regular expression used for matching and parsing parameters for the
85
+ * route. */
86
+ regexp: RegExp;
87
+ }
88
+ /** The context passed router middleware. */
89
+ export interface RouterContext<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> extends Context<S> {
90
+ /** When matching the route, an array of the capturing groups from the regular
91
+ * expression. */
92
+ captures: string[];
93
+ /** The routes that were matched for this request. */
94
+ matched?: Layer<R, P, S>[];
95
+ /** Any parameters parsed from the route when matched. */
96
+ params: P;
97
+ /** A reference to the router instance. */
98
+ router: Router;
99
+ /** If the matched route has a `name`, the matched route name is provided
100
+ * here. */
101
+ routeName?: string;
102
+ /** Overrides the matched path for future route middleware, when a
103
+ * `routerPath` option is not defined on the `Router` options. */
104
+ routerPath?: string;
105
+ }
106
+ /** The interface that {@linkcode Router} middleware should adhere to. */
107
+ export interface RouterMiddleware<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
108
+ (context: RouterContext<R, P, S>, next: () => Promise<unknown>): Promise<unknown> | unknown;
109
+ /** For route parameter middleware, the `param` key for this parameter will
110
+ * be set. */
111
+ param?: keyof P;
112
+ router?: Router<any>;
113
+ }
114
+ /** Options which can be specified when creating a new instance of a
115
+ * {@linkcode Router}. */
116
+ export interface RouterOptions {
117
+ /** Override the default set of methods supported by the router. */
118
+ methods?: HTTPMethods[];
119
+ /** Only handle routes where the requested path starts with the prefix. */
120
+ prefix?: string;
121
+ /** Override the `request.url.pathname` when matching middleware to run. */
122
+ routerPath?: string;
123
+ /** Determines if routes are matched in a case sensitive way. Defaults to
124
+ * `false`. */
125
+ sensitive?: boolean;
126
+ /** Determines if routes are matched strictly, where the trailing `/` is not
127
+ * optional. Defaults to `false`. */
128
+ strict?: boolean;
129
+ }
130
+ /** Middleware that will be called by the router when handling a specific
131
+ * parameter, which the middleware will be called when a request matches the
132
+ * route parameter. */
133
+ export interface RouterParamMiddleware<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
134
+ (param: string, context: RouterContext<R, P, S>, next: () => Promise<unknown>): Promise<unknown> | unknown;
135
+ router?: Router<any>;
136
+ }
137
+ interface ParamsDictionary {
138
+ [key: string]: string;
139
+ }
140
+ type RemoveTail<S extends string, Tail extends string> = S extends `${infer P}${Tail}` ? P : S;
141
+ type GetRouteParams<S extends string> = RemoveTail<RemoveTail<RemoveTail<S, `/${string}`>, `-${string}`>, `.${string}`>;
142
+ /** A dynamic type which attempts to determine the route params based on
143
+ * matching the route string. */
144
+ export type RouteParams<Route extends string> = string extends Route ? ParamsDictionary : Route extends `${string}(${string}` ? ParamsDictionary : Route extends `${string}:${infer Rest}` ? (GetRouteParams<Rest> extends never ? ParamsDictionary : GetRouteParams<Rest> extends `${infer ParamName}?` ? {
145
+ [P in ParamName]?: string;
146
+ } : {
147
+ [P in GetRouteParams<Rest>]: string;
148
+ }) & (Rest extends `${GetRouteParams<Rest>}${infer Next}` ? RouteParams<Next> : unknown) : Record<string | number, string | undefined>;
149
+ type LayerOptions = TokensToRegexpOptions & ParseOptions & {
150
+ ignoreCaptures?: boolean;
151
+ name?: string;
152
+ };
153
+ type UrlOptions = TokensToRegexpOptions & ParseOptions & {
154
+ /** When generating a URL from a route, add the query to the URL. If an
155
+ * object */
156
+ query?: URLSearchParams | Record<string, string> | string;
157
+ };
158
+ /** An internal class used to group together middleware when using multiple
159
+ * middlewares with a router. */
160
+ export declare class Layer<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = Record<string, any>> {
161
+ #private;
162
+ methods: HTTPMethods[];
163
+ name?: string;
164
+ path: string;
165
+ stack: RouterMiddleware<R, P, S>[];
166
+ constructor(path: string, methods: HTTPMethods[], middleware: RouterMiddleware<R, P, S> | RouterMiddleware<R, P, S>[], { name, ...opts }?: LayerOptions);
167
+ clone(): Layer<R, P, S>;
168
+ match(path: string): boolean;
169
+ params(captures: string[], existingParams?: RouteParams<R>): RouteParams<R>;
170
+ captures(path: string): string[];
171
+ url(params?: RouteParams<R>, options?: UrlOptions): string;
172
+ param(param: string, fn: RouterParamMiddleware<any, any, any>): this;
173
+ setPrefix(prefix: string): this;
174
+ toJSON(): Route<any, any, any>;
175
+ }
176
+ /** An interface for registering middleware that will run when certain HTTP
177
+ * methods and paths are requested, as well as provides a way to parameterize
178
+ * parts of the requested path.
179
+ *
180
+ * ### Basic example
181
+ *
182
+ * ```ts
183
+ * import { Application, Router } from "jsr:@oak/oak/";
184
+ *
185
+ * const router = new Router();
186
+ * router.get("/", (ctx, next) => {
187
+ * // handle the GET endpoint here
188
+ * });
189
+ * router.all("/item/:item", (ctx, next) => {
190
+ * // called for all HTTP verbs/requests
191
+ * ctx.params.item; // contains the value of `:item` from the parsed URL
192
+ * });
193
+ *
194
+ * const app = new Application();
195
+ * app.use(router.routes());
196
+ * app.use(router.allowedMethods());
197
+ *
198
+ * app.listen({ port: 8080 });
199
+ * ```
200
+ */
201
+ export declare class Router<RS extends State = Record<string, any>> {
202
+ #private;
203
+ constructor(opts?: RouterOptions);
204
+ /** Register named middleware for the specified routes when specified methods
205
+ * are requested. */
206
+ add<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(methods: HTTPMethods[] | HTTPMethods, name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
207
+ /** Register middleware for the specified routes when the specified methods is
208
+ * requested. */
209
+ add<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(methods: HTTPMethods[] | HTTPMethods, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
210
+ /** Register middleware for the specified routes when the specified methods
211
+ * are requested with explicit path parameters. */
212
+ add<P extends RouteParams<string>, S extends State = RS>(methods: HTTPMethods[] | HTTPMethods, nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
213
+ /** Register named middleware for the specified routes when the `DELETE`,
214
+ * `GET`, `POST`, or `PUT` method is requested. */
215
+ all<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
216
+ /** Register middleware for the specified routes when the `DELETE`,
217
+ * `GET`, `POST`, or `PUT` method is requested. */
218
+ all<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
219
+ /** Register middleware for the specified routes when the `DELETE`,
220
+ * `GET`, `POST`, or `PUT` method is requested with explicit path parameters.
221
+ */
222
+ all<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
223
+ /** Middleware that handles requests for HTTP methods registered with the
224
+ * router. If none of the routes handle a method, then "not allowed" logic
225
+ * will be used. If a method is supported by some routes, but not the
226
+ * particular matched router, then "not implemented" will be returned.
227
+ *
228
+ * The middleware will also automatically handle the `OPTIONS` method,
229
+ * responding with a `200 OK` when the `Allowed` header sent to the allowed
230
+ * methods for a given route.
231
+ *
232
+ * By default, a "not allowed" request will respond with a `405 Not Allowed`
233
+ * and a "not implemented" will respond with a `501 Not Implemented`. Setting
234
+ * the option `.throw` to `true` will cause the middleware to throw an
235
+ * `HTTPError` instead of setting the response status. The error can be
236
+ * overridden by providing a `.notImplemented` or `.notAllowed` method in the
237
+ * options, of which the value will be returned will be thrown instead of the
238
+ * HTTP error. */
239
+ allowedMethods(options?: RouterAllowedMethodsOptions): Middleware;
240
+ /** Register named middleware for the specified routes when the `DELETE`,
241
+ * method is requested. */
242
+ delete<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
243
+ /** Register middleware for the specified routes when the `DELETE`,
244
+ * method is requested. */
245
+ delete<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
246
+ /** Register middleware for the specified routes when the `DELETE`,
247
+ * method is requested with explicit path parameters. */
248
+ delete<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
249
+ /** Iterate over the routes currently added to the router. To be compatible
250
+ * with the iterable interfaces, both the key and value are set to the value
251
+ * of the route. */
252
+ entries(): IterableIterator<[Route<string>, Route<string>]>;
253
+ /** Iterate over the routes currently added to the router, calling the
254
+ * `callback` function for each value. */
255
+ forEach(callback: (value1: Route<string>, value2: Route<string>, router: this) => void, thisArg?: any): void;
256
+ /** Register named middleware for the specified routes when the `GET`,
257
+ * method is requested. */
258
+ get<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
259
+ /** Register middleware for the specified routes when the `GET`,
260
+ * method is requested. */
261
+ get<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
262
+ /** Register middleware for the specified routes when the `GET`,
263
+ * method is requested with explicit path parameters. */
264
+ get<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
265
+ /** Register named middleware for the specified routes when the `HEAD`,
266
+ * method is requested. */
267
+ head<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
268
+ /** Register middleware for the specified routes when the `HEAD`,
269
+ * method is requested. */
270
+ head<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
271
+ /** Register middleware for the specified routes when the `HEAD`,
272
+ * method is requested with explicit path parameters. */
273
+ head<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
274
+ /** Iterate over the routes currently added to the router. To be compatible
275
+ * with the iterable interfaces, the key is set to the value of the route. */
276
+ keys(): IterableIterator<Route<string>>;
277
+ /** Register named middleware for the specified routes when the `OPTIONS`,
278
+ * method is requested. */
279
+ options<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
280
+ /** Register middleware for the specified routes when the `OPTIONS`,
281
+ * method is requested. */
282
+ options<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
283
+ /** Register middleware for the specified routes when the `OPTIONS`,
284
+ * method is requested with explicit path parameters. */
285
+ options<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
286
+ /** Register param middleware, which will be called when the particular param
287
+ * is parsed from the route. */
288
+ param<R extends string, S extends State = RS>(param: keyof RouteParams<R>, middleware: RouterParamMiddleware<R, RouteParams<R>, S>): Router<S>;
289
+ /** Register named middleware for the specified routes when the `PATCH`,
290
+ * method is requested. */
291
+ patch<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
292
+ /** Register middleware for the specified routes when the `PATCH`,
293
+ * method is requested. */
294
+ patch<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
295
+ /** Register middleware for the specified routes when the `PATCH`,
296
+ * method is requested with explicit path parameters. */
297
+ patch<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
298
+ /** Register named middleware for the specified routes when the `POST`,
299
+ * method is requested. */
300
+ post<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
301
+ /** Register middleware for the specified routes when the `POST`,
302
+ * method is requested. */
303
+ post<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
304
+ /** Register middleware for the specified routes when the `POST`,
305
+ * method is requested with explicit path parameters. */
306
+ post<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
307
+ /** Set the router prefix for this router. */
308
+ prefix(prefix: string): this;
309
+ /** Register named middleware for the specified routes when the `PUT`
310
+ * method is requested. */
311
+ put<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(name: string, path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
312
+ /** Register middleware for the specified routes when the `PUT`
313
+ * method is requested. */
314
+ put<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
315
+ /** Register middleware for the specified routes when the `PUT`
316
+ * method is requested with explicit path parameters. */
317
+ put<P extends RouteParams<string>, S extends State = RS>(nameOrPath: string, pathOrMiddleware: string | RouterMiddleware<string, P, S>, ...middleware: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
318
+ /** Register a direction middleware, where when the `source` path is matched
319
+ * the router will redirect the request to the `destination` path. A `status`
320
+ * of `302 Found` will be set by default.
321
+ *
322
+ * The `source` and `destination` can be named routes. */
323
+ redirect(source: string, destination: string | URL, status?: RedirectStatus): this;
324
+ /** Return middleware that will do all the route processing that the router
325
+ * has been configured to handle. Typical usage would be something like this:
326
+ *
327
+ * ```ts
328
+ * import { Application, Router } from "jsr:@oak/oak/";
329
+ *
330
+ * const app = new Application();
331
+ * const router = new Router();
332
+ *
333
+ * // register routes
334
+ *
335
+ * app.use(router.routes());
336
+ * app.use(router.allowedMethods());
337
+ * await app.listen({ port: 80 });
338
+ * ```
339
+ */
340
+ routes(): Middleware;
341
+ /** Generate a URL pathname for a named route, interpolating the optional
342
+ * params provided. Also accepts an optional set of options. */
343
+ url<P extends RouteParams<string> = RouteParams<string>>(name: string, params?: P, options?: UrlOptions): string | undefined;
344
+ /** Register middleware to be used on every matched route. */
345
+ use<P extends RouteParams<string> = RouteParams<string>, S extends State = RS>(middleware: RouterMiddleware<string, P, S>, ...middlewares: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
346
+ /** Register middleware to be used on every route that matches the supplied
347
+ * `path`. */
348
+ use<R extends string, P extends RouteParams<R> = RouteParams<R>, S extends State = RS>(path: R, middleware: RouterMiddleware<R, P, S>, ...middlewares: RouterMiddleware<R, P, S>[]): Router<S extends RS ? S : (S & RS)>;
349
+ /** Register middleware to be used on every route that matches the supplied
350
+ * `path` with explicit path parameters. */
351
+ use<P extends RouteParams<string>, S extends State = RS>(path: string, middleware: RouterMiddleware<string, P, S>, ...middlewares: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
352
+ use<P extends RouteParams<string> = RouteParams<string>, S extends State = RS>(path: string[], middleware: RouterMiddleware<string, P, S>, ...middlewares: RouterMiddleware<string, P, S>[]): Router<S extends RS ? S : (S & RS)>;
353
+ /** Iterate over the routes currently added to the router. */
354
+ values(): IterableIterator<Route<string, RouteParams<string>, RS>>;
355
+ /** Provide an iterator interface that iterates over the routes registered
356
+ * with the router. */
357
+ [Symbol.iterator](): IterableIterator<Route<string, RouteParams<string>, RS>>;
358
+ /** Generate a URL pathname based on the provided path, interpolating the
359
+ * optional params provided. Also accepts an optional set of options. */
360
+ static url<R extends string>(path: R, params?: RouteParams<R>, options?: UrlOptions): string;
361
+ }
362
+ export {};
363
+ //# sourceMappingURL=router.d.ts.map