@thymian/core 0.0.0-PLACEHOLDER

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 (642) hide show
  1. package/README.md +59 -0
  2. package/dist/actions/action.d.ts +5 -0
  3. package/dist/actions/action.d.ts.map +1 -0
  4. package/dist/actions/action.js +2 -0
  5. package/dist/actions/action.js.map +1 -0
  6. package/dist/actions/close.action.d.ts +3 -0
  7. package/dist/actions/close.action.d.ts.map +1 -0
  8. package/dist/actions/close.action.js +2 -0
  9. package/dist/actions/close.action.js.map +1 -0
  10. package/dist/actions/core-analyze.action.d.ts +11 -0
  11. package/dist/actions/core-analyze.action.d.ts.map +1 -0
  12. package/dist/actions/core-analyze.action.js +2 -0
  13. package/dist/actions/core-analyze.action.js.map +1 -0
  14. package/dist/actions/core-lint.action.d.ts +9 -0
  15. package/dist/actions/core-lint.action.d.ts.map +1 -0
  16. package/dist/actions/core-lint.action.js +2 -0
  17. package/dist/actions/core-lint.action.js.map +1 -0
  18. package/dist/actions/core-request-sample.action.d.ts +9 -0
  19. package/dist/actions/core-request-sample.action.d.ts.map +1 -0
  20. package/dist/actions/core-request-sample.action.js +2 -0
  21. package/dist/actions/core-request-sample.action.js.map +1 -0
  22. package/dist/actions/core-test.action.d.ts +10 -0
  23. package/dist/actions/core-test.action.d.ts.map +1 -0
  24. package/dist/actions/core-test.action.js +2 -0
  25. package/dist/actions/core-test.action.js.map +1 -0
  26. package/dist/actions/core-validation-input.d.ts +6 -0
  27. package/dist/actions/core-validation-input.d.ts.map +1 -0
  28. package/dist/actions/core-validation-input.js +2 -0
  29. package/dist/actions/core-validation-input.js.map +1 -0
  30. package/dist/actions/format-load.action.d.ts +16 -0
  31. package/dist/actions/format-load.action.d.ts.map +1 -0
  32. package/dist/actions/format-load.action.js +36 -0
  33. package/dist/actions/format-load.action.js.map +1 -0
  34. package/dist/actions/format.action.d.ts +4 -0
  35. package/dist/actions/format.action.d.ts.map +1 -0
  36. package/dist/actions/format.action.js +2 -0
  37. package/dist/actions/format.action.js.map +1 -0
  38. package/dist/actions/index.d.ts +39 -0
  39. package/dist/actions/index.d.ts.map +1 -0
  40. package/dist/actions/index.js +14 -0
  41. package/dist/actions/index.js.map +1 -0
  42. package/dist/actions/ready.action.d.ts +3 -0
  43. package/dist/actions/ready.action.d.ts.map +1 -0
  44. package/dist/actions/ready.action.js +2 -0
  45. package/dist/actions/ready.action.js.map +1 -0
  46. package/dist/actions/report-flush.action.d.ts +6 -0
  47. package/dist/actions/report-flush.action.d.ts.map +1 -0
  48. package/dist/actions/report-flush.action.js +2 -0
  49. package/dist/actions/report-flush.action.js.map +1 -0
  50. package/dist/actions/request-dispatch.action.d.ts +13 -0
  51. package/dist/actions/request-dispatch.action.d.ts.map +1 -0
  52. package/dist/actions/request-dispatch.action.js +45 -0
  53. package/dist/actions/request-dispatch.action.js.map +1 -0
  54. package/dist/actions/traffic-load.action.d.ts +16 -0
  55. package/dist/actions/traffic-load.action.d.ts.map +1 -0
  56. package/dist/actions/traffic-load.action.js +36 -0
  57. package/dist/actions/traffic-load.action.js.map +1 -0
  58. package/dist/actions/validation-result.d.ts +18 -0
  59. package/dist/actions/validation-result.d.ts.map +1 -0
  60. package/dist/actions/validation-result.js +81 -0
  61. package/dist/actions/validation-result.js.map +1 -0
  62. package/dist/ajv.d.ts +5 -0
  63. package/dist/ajv.d.ts.map +1 -0
  64. package/dist/ajv.js +9 -0
  65. package/dist/ajv.js.map +1 -0
  66. package/dist/chalk.d.ts +2 -0
  67. package/dist/chalk.d.ts.map +1 -0
  68. package/dist/chalk.js +2 -0
  69. package/dist/chalk.js.map +1 -0
  70. package/dist/constants.d.ts +5 -0
  71. package/dist/constants.d.ts.map +1 -0
  72. package/dist/constants.js +6 -0
  73. package/dist/constants.js.map +1 -0
  74. package/dist/core-plugin.d.ts +5 -0
  75. package/dist/core-plugin.d.ts.map +1 -0
  76. package/dist/core-plugin.js +62 -0
  77. package/dist/core-plugin.js.map +1 -0
  78. package/dist/emitter/action-event.d.ts +19 -0
  79. package/dist/emitter/action-event.d.ts.map +1 -0
  80. package/dist/emitter/action-event.js +2 -0
  81. package/dist/emitter/action-event.js.map +1 -0
  82. package/dist/emitter/error-event.d.ts +13 -0
  83. package/dist/emitter/error-event.d.ts.map +1 -0
  84. package/dist/emitter/error-event.js +2 -0
  85. package/dist/emitter/error-event.js.map +1 -0
  86. package/dist/emitter/events.d.ts +10 -0
  87. package/dist/emitter/events.d.ts.map +1 -0
  88. package/dist/emitter/events.js +2 -0
  89. package/dist/emitter/events.js.map +1 -0
  90. package/dist/emitter/index.d.ts +6 -0
  91. package/dist/emitter/index.d.ts.map +1 -0
  92. package/dist/emitter/index.js +6 -0
  93. package/dist/emitter/index.js.map +1 -0
  94. package/dist/emitter/thymian-emitter.d.ts +61 -0
  95. package/dist/emitter/thymian-emitter.d.ts.map +1 -0
  96. package/dist/emitter/thymian-emitter.js +371 -0
  97. package/dist/emitter/thymian-emitter.js.map +1 -0
  98. package/dist/emitter/utils.d.ts +8 -0
  99. package/dist/emitter/utils.d.ts.map +1 -0
  100. package/dist/emitter/utils.js +16 -0
  101. package/dist/emitter/utils.js.map +1 -0
  102. package/dist/events/error.event.d.ts +5 -0
  103. package/dist/events/error.event.d.ts.map +1 -0
  104. package/dist/events/error.event.js +49 -0
  105. package/dist/events/error.event.js.map +1 -0
  106. package/dist/events/exit.event.d.ts +14 -0
  107. package/dist/events/exit.event.d.ts.map +1 -0
  108. package/dist/events/exit.event.js +9 -0
  109. package/dist/events/exit.event.js.map +1 -0
  110. package/dist/events/index.d.ts +15 -0
  111. package/dist/events/index.d.ts.map +1 -0
  112. package/dist/events/index.js +4 -0
  113. package/dist/events/index.js.map +1 -0
  114. package/dist/events/register-plugin.event.d.ts +51 -0
  115. package/dist/events/register-plugin.event.d.ts.map +1 -0
  116. package/dist/events/register-plugin.event.js +29 -0
  117. package/dist/events/register-plugin.event.js.map +1 -0
  118. package/dist/events/report.event.d.ts +104 -0
  119. package/dist/events/report.event.d.ts.map +1 -0
  120. package/dist/events/report.event.js +109 -0
  121. package/dist/events/report.event.js.map +1 -0
  122. package/dist/format/circular-references.d.ts +3 -0
  123. package/dist/format/circular-references.d.ts.map +1 -0
  124. package/dist/format/circular-references.js +71 -0
  125. package/dist/format/circular-references.js.map +1 -0
  126. package/dist/format/edges/edge.d.ts +9 -0
  127. package/dist/format/edges/edge.d.ts.map +1 -0
  128. package/dist/format/edges/edge.js +2 -0
  129. package/dist/format/edges/edge.js.map +1 -0
  130. package/dist/format/edges/has-sample.edge.d.ts +5 -0
  131. package/dist/format/edges/has-sample.edge.d.ts.map +1 -0
  132. package/dist/format/edges/has-sample.edge.js +2 -0
  133. package/dist/format/edges/has-sample.edge.js.map +1 -0
  134. package/dist/format/edges/http-link.edge.d.ts +10 -0
  135. package/dist/format/edges/http-link.edge.d.ts.map +1 -0
  136. package/dist/format/edges/http-link.edge.js +2 -0
  137. package/dist/format/edges/http-link.edge.js.map +1 -0
  138. package/dist/format/edges/http-transaction.edge.d.ts +5 -0
  139. package/dist/format/edges/http-transaction.edge.d.ts.map +1 -0
  140. package/dist/format/edges/http-transaction.edge.js +2 -0
  141. package/dist/format/edges/http-transaction.edge.js.map +1 -0
  142. package/dist/format/edges/is-secured-with.edge.d.ts +5 -0
  143. package/dist/format/edges/is-secured-with.edge.d.ts.map +1 -0
  144. package/dist/format/edges/is-secured-with.edge.js +2 -0
  145. package/dist/format/edges/is-secured-with.edge.js.map +1 -0
  146. package/dist/format/edges/sample-http-transaction.edge.d.ts +5 -0
  147. package/dist/format/edges/sample-http-transaction.edge.d.ts.map +1 -0
  148. package/dist/format/edges/sample-http-transaction.edge.js +2 -0
  149. package/dist/format/edges/sample-http-transaction.edge.js.map +1 -0
  150. package/dist/format/format-location.d.ts +13 -0
  151. package/dist/format/format-location.d.ts.map +1 -0
  152. package/dist/format/format-location.js +2 -0
  153. package/dist/format/format-location.js.map +1 -0
  154. package/dist/format/http-filter-expression-to-transaction-filter.d.ts +5 -0
  155. package/dist/format/http-filter-expression-to-transaction-filter.d.ts.map +1 -0
  156. package/dist/format/http-filter-expression-to-transaction-filter.js +88 -0
  157. package/dist/format/http-filter-expression-to-transaction-filter.js.map +1 -0
  158. package/dist/format/index.d.ts +14 -0
  159. package/dist/format/index.d.ts.map +1 -0
  160. package/dist/format/index.js +14 -0
  161. package/dist/format/index.js.map +1 -0
  162. package/dist/format/nodes/http-request.node.d.ts +29 -0
  163. package/dist/format/nodes/http-request.node.d.ts.map +1 -0
  164. package/dist/format/nodes/http-request.node.js +2 -0
  165. package/dist/format/nodes/http-request.node.js.map +1 -0
  166. package/dist/format/nodes/http-response.node.d.ts +12 -0
  167. package/dist/format/nodes/http-response.node.d.ts.map +1 -0
  168. package/dist/format/nodes/http-response.node.js +2 -0
  169. package/dist/format/nodes/http-response.node.js.map +1 -0
  170. package/dist/format/nodes/node.d.ts +9 -0
  171. package/dist/format/nodes/node.d.ts.map +1 -0
  172. package/dist/format/nodes/node.js +2 -0
  173. package/dist/format/nodes/node.js.map +1 -0
  174. package/dist/format/nodes/sample-http-request.node.d.ts +7 -0
  175. package/dist/format/nodes/sample-http-request.node.d.ts.map +1 -0
  176. package/dist/format/nodes/sample-http-request.node.js +2 -0
  177. package/dist/format/nodes/sample-http-request.node.js.map +1 -0
  178. package/dist/format/nodes/sample-http-response.node.d.ts +7 -0
  179. package/dist/format/nodes/sample-http-response.node.d.ts.map +1 -0
  180. package/dist/format/nodes/sample-http-response.node.js +2 -0
  181. package/dist/format/nodes/sample-http-response.node.js.map +1 -0
  182. package/dist/format/nodes/security-scheme.node.d.ts +17 -0
  183. package/dist/format/nodes/security-scheme.node.d.ts.map +1 -0
  184. package/dist/format/nodes/security-scheme.node.js +2 -0
  185. package/dist/format/nodes/security-scheme.node.js.map +1 -0
  186. package/dist/format/parameter.d.ts +10 -0
  187. package/dist/format/parameter.d.ts.map +1 -0
  188. package/dist/format/parameter.js +2 -0
  189. package/dist/format/parameter.js.map +1 -0
  190. package/dist/format/serialization-style/cookie.serialization-style.d.ts +5 -0
  191. package/dist/format/serialization-style/cookie.serialization-style.d.ts.map +1 -0
  192. package/dist/format/serialization-style/cookie.serialization-style.js +7 -0
  193. package/dist/format/serialization-style/cookie.serialization-style.js.map +1 -0
  194. package/dist/format/serialization-style/header.serialization-style.d.ts +5 -0
  195. package/dist/format/serialization-style/header.serialization-style.d.ts.map +1 -0
  196. package/dist/format/serialization-style/header.serialization-style.js +7 -0
  197. package/dist/format/serialization-style/header.serialization-style.js.map +1 -0
  198. package/dist/format/serialization-style/index.d.ts +6 -0
  199. package/dist/format/serialization-style/index.d.ts.map +1 -0
  200. package/dist/format/serialization-style/index.js +6 -0
  201. package/dist/format/serialization-style/index.js.map +1 -0
  202. package/dist/format/serialization-style/path.serialization-style.d.ts +5 -0
  203. package/dist/format/serialization-style/path.serialization-style.d.ts.map +1 -0
  204. package/dist/format/serialization-style/path.serialization-style.js +7 -0
  205. package/dist/format/serialization-style/path.serialization-style.js.map +1 -0
  206. package/dist/format/serialization-style/query.serialization-style.d.ts +5 -0
  207. package/dist/format/serialization-style/query.serialization-style.d.ts.map +1 -0
  208. package/dist/format/serialization-style/query.serialization-style.js +7 -0
  209. package/dist/format/serialization-style/query.serialization-style.js.map +1 -0
  210. package/dist/format/serialization-style/serialization-style.d.ts +13 -0
  211. package/dist/format/serialization-style/serialization-style.d.ts.map +1 -0
  212. package/dist/format/serialization-style/serialization-style.js +25 -0
  213. package/dist/format/serialization-style/serialization-style.js.map +1 -0
  214. package/dist/format/thymian-format.d.ts +109 -0
  215. package/dist/format/thymian-format.d.ts.map +1 -0
  216. package/dist/format/thymian-format.js +437 -0
  217. package/dist/format/thymian-format.js.map +1 -0
  218. package/dist/format/thymian-schema.d.ts +56 -0
  219. package/dist/format/thymian-schema.d.ts.map +1 -0
  220. package/dist/format/thymian-schema.js +2 -0
  221. package/dist/format/thymian-schema.js.map +1 -0
  222. package/dist/format/utils.d.ts +12 -0
  223. package/dist/format/utils.d.ts.map +1 -0
  224. package/dist/format/utils.js +85 -0
  225. package/dist/format/utils.js.map +1 -0
  226. package/dist/http-filter-visitor.d.ts +76 -0
  227. package/dist/http-filter-visitor.d.ts.map +1 -0
  228. package/dist/http-filter-visitor.js +168 -0
  229. package/dist/http-filter-visitor.js.map +1 -0
  230. package/dist/http-filter.d.ts +140 -0
  231. package/dist/http-filter.d.ts.map +1 -0
  232. package/dist/http-filter.js +137 -0
  233. package/dist/http-filter.js.map +1 -0
  234. package/dist/http-status-codes/1xx/index.d.ts +15 -0
  235. package/dist/http-status-codes/1xx/index.d.ts.map +1 -0
  236. package/dist/http-status-codes/1xx/index.js +15 -0
  237. package/dist/http-status-codes/1xx/index.js.map +1 -0
  238. package/dist/http-status-codes/1xx/informational.phrases.d.ts +4 -0
  239. package/dist/http-status-codes/1xx/informational.phrases.d.ts.map +1 -0
  240. package/dist/http-status-codes/1xx/informational.phrases.js +10 -0
  241. package/dist/http-status-codes/1xx/informational.phrases.js.map +1 -0
  242. package/dist/http-status-codes/1xx/informational.status-codes.d.ts +4 -0
  243. package/dist/http-status-codes/1xx/informational.status-codes.d.ts.map +1 -0
  244. package/dist/http-status-codes/1xx/informational.status-codes.js +5 -0
  245. package/dist/http-status-codes/1xx/informational.status-codes.js.map +1 -0
  246. package/dist/http-status-codes/2xx/index.d.ts +25 -0
  247. package/dist/http-status-codes/2xx/index.d.ts.map +1 -0
  248. package/dist/http-status-codes/2xx/index.js +25 -0
  249. package/dist/http-status-codes/2xx/index.js.map +1 -0
  250. package/dist/http-status-codes/2xx/successful.phrases.d.ts +4 -0
  251. package/dist/http-status-codes/2xx/successful.phrases.d.ts.map +1 -0
  252. package/dist/http-status-codes/2xx/successful.phrases.js +15 -0
  253. package/dist/http-status-codes/2xx/successful.phrases.js.map +1 -0
  254. package/dist/http-status-codes/2xx/successful.status-codes.d.ts +4 -0
  255. package/dist/http-status-codes/2xx/successful.status-codes.d.ts.map +1 -0
  256. package/dist/http-status-codes/2xx/successful.status-codes.js +7 -0
  257. package/dist/http-status-codes/2xx/successful.status-codes.js.map +1 -0
  258. package/dist/http-status-codes/3xx/index.d.ts +21 -0
  259. package/dist/http-status-codes/3xx/index.d.ts.map +1 -0
  260. package/dist/http-status-codes/3xx/index.js +21 -0
  261. package/dist/http-status-codes/3xx/index.js.map +1 -0
  262. package/dist/http-status-codes/3xx/redirection.phrases.d.ts +4 -0
  263. package/dist/http-status-codes/3xx/redirection.phrases.d.ts.map +1 -0
  264. package/dist/http-status-codes/3xx/redirection.phrases.js +13 -0
  265. package/dist/http-status-codes/3xx/redirection.phrases.js.map +1 -0
  266. package/dist/http-status-codes/3xx/redirection.status-codes.d.ts +4 -0
  267. package/dist/http-status-codes/3xx/redirection.status-codes.d.ts.map +1 -0
  268. package/dist/http-status-codes/3xx/redirection.status-codes.js +7 -0
  269. package/dist/http-status-codes/3xx/redirection.status-codes.js.map +1 -0
  270. package/dist/http-status-codes/4xx/client-error.phrases.d.ts +4 -0
  271. package/dist/http-status-codes/4xx/client-error.phrases.d.ts.map +1 -0
  272. package/dist/http-status-codes/4xx/client-error.phrases.js +34 -0
  273. package/dist/http-status-codes/4xx/client-error.phrases.js.map +1 -0
  274. package/dist/http-status-codes/4xx/client-error.status-codes.d.ts +4 -0
  275. package/dist/http-status-codes/4xx/client-error.status-codes.d.ts.map +1 -0
  276. package/dist/http-status-codes/4xx/client-error.status-codes.js +8 -0
  277. package/dist/http-status-codes/4xx/client-error.status-codes.js.map +1 -0
  278. package/dist/http-status-codes/4xx/index.d.ts +63 -0
  279. package/dist/http-status-codes/4xx/index.d.ts.map +1 -0
  280. package/dist/http-status-codes/4xx/index.js +63 -0
  281. package/dist/http-status-codes/4xx/index.js.map +1 -0
  282. package/dist/http-status-codes/5xx/index.d.ts +29 -0
  283. package/dist/http-status-codes/5xx/index.d.ts.map +1 -0
  284. package/dist/http-status-codes/5xx/index.js +29 -0
  285. package/dist/http-status-codes/5xx/index.js.map +1 -0
  286. package/dist/http-status-codes/5xx/server-error.phrases.d.ts +4 -0
  287. package/dist/http-status-codes/5xx/server-error.phrases.d.ts.map +1 -0
  288. package/dist/http-status-codes/5xx/server-error.phrases.js +17 -0
  289. package/dist/http-status-codes/5xx/server-error.phrases.js.map +1 -0
  290. package/dist/http-status-codes/5xx/server-error.status-codes.d.ts +4 -0
  291. package/dist/http-status-codes/5xx/server-error.status-codes.d.ts.map +1 -0
  292. package/dist/http-status-codes/5xx/server-error.status-codes.js +7 -0
  293. package/dist/http-status-codes/5xx/server-error.status-codes.js.map +1 -0
  294. package/dist/http-status-codes/http-status-code-ranges.d.ts +11 -0
  295. package/dist/http-status-codes/http-status-code-ranges.d.ts.map +1 -0
  296. package/dist/http-status-codes/http-status-code-ranges.js +19 -0
  297. package/dist/http-status-codes/http-status-code-ranges.js.map +1 -0
  298. package/dist/http-status-codes/http-status-code.d.ts +8 -0
  299. package/dist/http-status-codes/http-status-code.d.ts.map +1 -0
  300. package/dist/http-status-codes/http-status-code.js +13 -0
  301. package/dist/http-status-codes/http-status-code.js.map +1 -0
  302. package/dist/http-status-codes/http-status-phrase.d.ts +8 -0
  303. package/dist/http-status-codes/http-status-phrase.d.ts.map +1 -0
  304. package/dist/http-status-codes/http-status-phrase.js +13 -0
  305. package/dist/http-status-codes/http-status-phrase.js.map +1 -0
  306. package/dist/http-status-codes/index.d.ts +10 -0
  307. package/dist/http-status-codes/index.d.ts.map +1 -0
  308. package/dist/http-status-codes/index.js +10 -0
  309. package/dist/http-status-codes/index.js.map +1 -0
  310. package/dist/http-status-codes/phrase-to-status-code.d.ts +62 -0
  311. package/dist/http-status-codes/phrase-to-status-code.d.ts.map +1 -0
  312. package/dist/http-status-codes/phrase-to-status-code.js +13 -0
  313. package/dist/http-status-codes/phrase-to-status-code.js.map +1 -0
  314. package/dist/http-status-codes/status-code-to-phrase.d.ts +62 -0
  315. package/dist/http-status-codes/status-code-to-phrase.d.ts.map +1 -0
  316. package/dist/http-status-codes/status-code-to-phrase.js +13 -0
  317. package/dist/http-status-codes/status-code-to-phrase.js.map +1 -0
  318. package/dist/http-status-codes/validate.d.ts +5 -0
  319. package/dist/http-status-codes/validate.d.ts.map +1 -0
  320. package/dist/http-status-codes/validate.js +28 -0
  321. package/dist/http-status-codes/validate.js.map +1 -0
  322. package/dist/http-testing/http-test/create-hook-runner.d.ts +21 -0
  323. package/dist/http-testing/http-test/create-hook-runner.d.ts.map +1 -0
  324. package/dist/http-testing/http-test/create-hook-runner.js +17 -0
  325. package/dist/http-testing/http-test/create-hook-runner.js.map +1 -0
  326. package/dist/http-testing/http-test/create-http-test-context.d.ts +3 -0
  327. package/dist/http-testing/http-test/create-http-test-context.d.ts.map +1 -0
  328. package/dist/http-testing/http-test/create-http-test-context.js +24 -0
  329. package/dist/http-testing/http-test/create-http-test-context.js.map +1 -0
  330. package/dist/http-testing/http-test/http-test-case-result.d.ts +46 -0
  331. package/dist/http-testing/http-test/http-test-case-result.d.ts.map +1 -0
  332. package/dist/http-testing/http-test/http-test-case-result.js +2 -0
  333. package/dist/http-testing/http-test/http-test-case-result.js.map +1 -0
  334. package/dist/http-testing/http-test/http-test-case.d.ts +36 -0
  335. package/dist/http-testing/http-test/http-test-case.d.ts.map +1 -0
  336. package/dist/http-testing/http-test/http-test-case.js +2 -0
  337. package/dist/http-testing/http-test/http-test-case.js.map +1 -0
  338. package/dist/http-testing/http-test/http-test-context.d.ts +20 -0
  339. package/dist/http-testing/http-test/http-test-context.d.ts.map +1 -0
  340. package/dist/http-testing/http-test/http-test-context.js +2 -0
  341. package/dist/http-testing/http-test/http-test-context.js.map +1 -0
  342. package/dist/http-testing/http-test/http-test-hooks.d.ts +26 -0
  343. package/dist/http-testing/http-test/http-test-hooks.d.ts.map +1 -0
  344. package/dist/http-testing/http-test/http-test-hooks.js +2 -0
  345. package/dist/http-testing/http-test/http-test-hooks.js.map +1 -0
  346. package/dist/http-testing/http-test/http-test-pipeline.d.ts +10 -0
  347. package/dist/http-testing/http-test/http-test-pipeline.d.ts.map +1 -0
  348. package/dist/http-testing/http-test/http-test-pipeline.js +2 -0
  349. package/dist/http-testing/http-test/http-test-pipeline.js.map +1 -0
  350. package/dist/http-testing/http-test/http-test.d.ts +11 -0
  351. package/dist/http-testing/http-test/http-test.d.ts.map +1 -0
  352. package/dist/http-testing/http-test/http-test.js +35 -0
  353. package/dist/http-testing/http-test/http-test.js.map +1 -0
  354. package/dist/http-testing/http-test/index.d.ts +10 -0
  355. package/dist/http-testing/http-test/index.d.ts.map +1 -0
  356. package/dist/http-testing/http-test/index.js +10 -0
  357. package/dist/http-testing/http-test/index.js.map +1 -0
  358. package/dist/http-testing/http-test/utils.d.ts +11 -0
  359. package/dist/http-testing/http-test/utils.d.ts.map +1 -0
  360. package/dist/http-testing/http-test/utils.js +16 -0
  361. package/dist/http-testing/http-test/utils.js.map +1 -0
  362. package/dist/http-testing/index.d.ts +7 -0
  363. package/dist/http-testing/index.d.ts.map +1 -0
  364. package/dist/http-testing/index.js +7 -0
  365. package/dist/http-testing/index.js.map +1 -0
  366. package/dist/http-testing/operators/expect-for-transaction.operator.d.ts +5 -0
  367. package/dist/http-testing/operators/expect-for-transaction.operator.d.ts.map +1 -0
  368. package/dist/http-testing/operators/expect-for-transaction.operator.js +39 -0
  369. package/dist/http-testing/operators/expect-for-transaction.operator.js.map +1 -0
  370. package/dist/http-testing/operators/expect-headers.operator.d.ts +4 -0
  371. package/dist/http-testing/operators/expect-headers.operator.d.ts.map +1 -0
  372. package/dist/http-testing/operators/expect-headers.operator.js +37 -0
  373. package/dist/http-testing/operators/expect-headers.operator.js.map +1 -0
  374. package/dist/http-testing/operators/expect-status-code.operator.d.ts +5 -0
  375. package/dist/http-testing/operators/expect-status-code.operator.d.ts.map +1 -0
  376. package/dist/http-testing/operators/expect-status-code.operator.js +55 -0
  377. package/dist/http-testing/operators/expect-status-code.operator.js.map +1 -0
  378. package/dist/http-testing/operators/expect.operator.d.ts +4 -0
  379. package/dist/http-testing/operators/expect.operator.d.ts.map +1 -0
  380. package/dist/http-testing/operators/expect.operator.js +31 -0
  381. package/dist/http-testing/operators/expect.operator.js.map +1 -0
  382. package/dist/http-testing/operators/fail.operator.d.ts +4 -0
  383. package/dist/http-testing/operators/fail.operator.d.ts.map +1 -0
  384. package/dist/http-testing/operators/fail.operator.js +8 -0
  385. package/dist/http-testing/operators/fail.operator.js.map +1 -0
  386. package/dist/http-testing/operators/filter-http-transactions.operator.d.ts +10 -0
  387. package/dist/http-testing/operators/filter-http-transactions.operator.d.ts.map +1 -0
  388. package/dist/http-testing/operators/filter-http-transactions.operator.js +18 -0
  389. package/dist/http-testing/operators/filter-http-transactions.operator.js.map +1 -0
  390. package/dist/http-testing/operators/generate-requests.operator.d.ts +10 -0
  391. package/dist/http-testing/operators/generate-requests.operator.d.ts.map +1 -0
  392. package/dist/http-testing/operators/generate-requests.operator.js +44 -0
  393. package/dist/http-testing/operators/generate-requests.operator.js.map +1 -0
  394. package/dist/http-testing/operators/index.d.ts +21 -0
  395. package/dist/http-testing/operators/index.d.ts.map +1 -0
  396. package/dist/http-testing/operators/index.js +21 -0
  397. package/dist/http-testing/operators/index.js.map +1 -0
  398. package/dist/http-testing/operators/map-to-grouped-test-case.operator.d.ts +7 -0
  399. package/dist/http-testing/operators/map-to-grouped-test-case.operator.d.ts.map +1 -0
  400. package/dist/http-testing/operators/map-to-grouped-test-case.operator.js +32 -0
  401. package/dist/http-testing/operators/map-to-grouped-test-case.operator.js.map +1 -0
  402. package/dist/http-testing/operators/map-to-test-case.operator.d.ts +7 -0
  403. package/dist/http-testing/operators/map-to-test-case.operator.d.ts.map +1 -0
  404. package/dist/http-testing/operators/map-to-test-case.operator.js +21 -0
  405. package/dist/http-testing/operators/map-to-test-case.operator.js.map +1 -0
  406. package/dist/http-testing/operators/override-headers.operator.d.ts +5 -0
  407. package/dist/http-testing/operators/override-headers.operator.d.ts.map +1 -0
  408. package/dist/http-testing/operators/override-headers.operator.js +18 -0
  409. package/dist/http-testing/operators/override-headers.operator.js.map +1 -0
  410. package/dist/http-testing/operators/override-with-previous.operator.d.ts +5 -0
  411. package/dist/http-testing/operators/override-with-previous.operator.d.ts.map +1 -0
  412. package/dist/http-testing/operators/override-with-previous.operator.js +23 -0
  413. package/dist/http-testing/operators/override-with-previous.operator.js.map +1 -0
  414. package/dist/http-testing/operators/replay-previous-step.operator.d.ts +5 -0
  415. package/dist/http-testing/operators/replay-previous-step.operator.d.ts.map +1 -0
  416. package/dist/http-testing/operators/replay-previous-step.operator.js +27 -0
  417. package/dist/http-testing/operators/replay-previous-step.operator.js.map +1 -0
  418. package/dist/http-testing/operators/reply-previous-but-expect-response.operator.d.ts +7 -0
  419. package/dist/http-testing/operators/reply-previous-but-expect-response.operator.d.ts.map +1 -0
  420. package/dist/http-testing/operators/reply-previous-but-expect-response.operator.js +61 -0
  421. package/dist/http-testing/operators/reply-previous-but-expect-response.operator.js.map +1 -0
  422. package/dist/http-testing/operators/requires-authorization.operator.d.ts +5 -0
  423. package/dist/http-testing/operators/requires-authorization.operator.d.ts.map +1 -0
  424. package/dist/http-testing/operators/requires-authorization.operator.js +9 -0
  425. package/dist/http-testing/operators/requires-authorization.operator.js.map +1 -0
  426. package/dist/http-testing/operators/run-requests.operator.d.ts +14 -0
  427. package/dist/http-testing/operators/run-requests.operator.d.ts.map +1 -0
  428. package/dist/http-testing/operators/run-requests.operator.js +139 -0
  429. package/dist/http-testing/operators/run-requests.operator.js.map +1 -0
  430. package/dist/http-testing/operators/single-step-for-transaction.operator.d.ts +5 -0
  431. package/dist/http-testing/operators/single-step-for-transaction.operator.d.ts.map +1 -0
  432. package/dist/http-testing/operators/single-step-for-transaction.operator.js +43 -0
  433. package/dist/http-testing/operators/single-step-for-transaction.operator.js.map +1 -0
  434. package/dist/http-testing/operators/skip.operator.d.ts +5 -0
  435. package/dist/http-testing/operators/skip.operator.d.ts.map +1 -0
  436. package/dist/http-testing/operators/skip.operator.js +11 -0
  437. package/dist/http-testing/operators/skip.operator.js.map +1 -0
  438. package/dist/http-testing/operators/step.operator.d.ts +5 -0
  439. package/dist/http-testing/operators/step.operator.d.ts.map +1 -0
  440. package/dist/http-testing/operators/step.operator.js +20 -0
  441. package/dist/http-testing/operators/step.operator.js.map +1 -0
  442. package/dist/http-testing/operators/utils.d.ts +10 -0
  443. package/dist/http-testing/operators/utils.d.ts.map +1 -0
  444. package/dist/http-testing/operators/utils.js +17 -0
  445. package/dist/http-testing/operators/utils.js.map +1 -0
  446. package/dist/http-testing/operators/validate-responses.operator.d.ts +4 -0
  447. package/dist/http-testing/operators/validate-responses.operator.d.ts.map +1 -0
  448. package/dist/http-testing/operators/validate-responses.operator.js +33 -0
  449. package/dist/http-testing/operators/validate-responses.operator.js.map +1 -0
  450. package/dist/http-testing/serialize-parameter.d.ts +6 -0
  451. package/dist/http-testing/serialize-parameter.d.ts.map +1 -0
  452. package/dist/http-testing/serialize-parameter.js +51 -0
  453. package/dist/http-testing/serialize-parameter.js.map +1 -0
  454. package/dist/http-testing/serialize-request.d.ts +7 -0
  455. package/dist/http-testing/serialize-request.d.ts.map +1 -0
  456. package/dist/http-testing/serialize-request.js +112 -0
  457. package/dist/http-testing/serialize-request.js.map +1 -0
  458. package/dist/http-testing/test-builder/builder-pipeline.d.ts +4 -0
  459. package/dist/http-testing/test-builder/builder-pipeline.d.ts.map +1 -0
  460. package/dist/http-testing/test-builder/builder-pipeline.js +2 -0
  461. package/dist/http-testing/test-builder/builder-pipeline.js.map +1 -0
  462. package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.d.ts +9 -0
  463. package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.d.ts.map +1 -0
  464. package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.js +114 -0
  465. package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.js.map +1 -0
  466. package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.d.ts +4 -0
  467. package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.d.ts.map +1 -0
  468. package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.js +36 -0
  469. package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.js.map +1 -0
  470. package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.d.ts +4 -0
  471. package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.d.ts.map +1 -0
  472. package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.js +65 -0
  473. package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.js.map +1 -0
  474. package/dist/http-testing/test-builder/extract-value-from-response.d.ts +4 -0
  475. package/dist/http-testing/test-builder/extract-value-from-response.d.ts.map +1 -0
  476. package/dist/http-testing/test-builder/extract-value-from-response.js +16 -0
  477. package/dist/http-testing/test-builder/extract-value-from-response.js.map +1 -0
  478. package/dist/http-testing/test-builder/override-request-template.d.ts +4 -0
  479. package/dist/http-testing/test-builder/override-request-template.d.ts.map +1 -0
  480. package/dist/http-testing/test-builder/override-request-template.js +33 -0
  481. package/dist/http-testing/test-builder/override-request-template.js.map +1 -0
  482. package/dist/http-testing/test-builder/reply-step-builder.d.ts +10 -0
  483. package/dist/http-testing/test-builder/reply-step-builder.d.ts.map +1 -0
  484. package/dist/http-testing/test-builder/reply-step-builder.js +39 -0
  485. package/dist/http-testing/test-builder/reply-step-builder.js.map +1 -0
  486. package/dist/http-testing/test-builder/single-step-test-builder.d.ts +42 -0
  487. package/dist/http-testing/test-builder/single-step-test-builder.d.ts.map +1 -0
  488. package/dist/http-testing/test-builder/single-step-test-builder.js +112 -0
  489. package/dist/http-testing/test-builder/single-step-test-builder.js.map +1 -0
  490. package/dist/http-testing/validate/ajv.d.ts +3 -0
  491. package/dist/http-testing/validate/ajv.d.ts.map +1 -0
  492. package/dist/http-testing/validate/ajv.js +7 -0
  493. package/dist/http-testing/validate/ajv.js.map +1 -0
  494. package/dist/http-testing/validate/index.d.ts +9 -0
  495. package/dist/http-testing/validate/index.d.ts.map +1 -0
  496. package/dist/http-testing/validate/index.js +9 -0
  497. package/dist/http-testing/validate/index.js.map +1 -0
  498. package/dist/http-testing/validate/validate-body.d.ts +5 -0
  499. package/dist/http-testing/validate/validate-body.d.ts.map +1 -0
  500. package/dist/http-testing/validate/validate-body.js +62 -0
  501. package/dist/http-testing/validate/validate-body.js.map +1 -0
  502. package/dist/http-testing/validate/validate-headers.d.ts +8 -0
  503. package/dist/http-testing/validate/validate-headers.d.ts.map +1 -0
  504. package/dist/http-testing/validate/validate-headers.js +101 -0
  505. package/dist/http-testing/validate/validate-headers.js.map +1 -0
  506. package/dist/http-testing/validate/validate-request-body.d.ts +5 -0
  507. package/dist/http-testing/validate/validate-request-body.d.ts.map +1 -0
  508. package/dist/http-testing/validate/validate-request-body.js +71 -0
  509. package/dist/http-testing/validate/validate-request-body.js.map +1 -0
  510. package/dist/http-testing/validate/validate-request-headers.d.ts +8 -0
  511. package/dist/http-testing/validate/validate-request-headers.d.ts.map +1 -0
  512. package/dist/http-testing/validate/validate-request-headers.js +93 -0
  513. package/dist/http-testing/validate/validate-request-headers.js.map +1 -0
  514. package/dist/http-testing/validate/validate-request-path-parameters.d.ts +6 -0
  515. package/dist/http-testing/validate/validate-request-path-parameters.d.ts.map +1 -0
  516. package/dist/http-testing/validate/validate-request-path-parameters.js +69 -0
  517. package/dist/http-testing/validate/validate-request-path-parameters.js.map +1 -0
  518. package/dist/http-testing/validate/validate-request-query-parameters.d.ts +7 -0
  519. package/dist/http-testing/validate/validate-request-query-parameters.d.ts.map +1 -0
  520. package/dist/http-testing/validate/validate-request-query-parameters.js +91 -0
  521. package/dist/http-testing/validate/validate-request-query-parameters.js.map +1 -0
  522. package/dist/http-testing/validate/validate-response.d.ts +7 -0
  523. package/dist/http-testing/validate/validate-response.d.ts.map +1 -0
  524. package/dist/http-testing/validate/validate-response.js +15 -0
  525. package/dist/http-testing/validate/validate-response.js.map +1 -0
  526. package/dist/http-testing/validate/validate-status-code.d.ts +3 -0
  527. package/dist/http-testing/validate/validate-status-code.d.ts.map +1 -0
  528. package/dist/http-testing/validate/validate-status-code.js +25 -0
  529. package/dist/http-testing/validate/validate-status-code.js.map +1 -0
  530. package/dist/http.d.ts +29 -0
  531. package/dist/http.d.ts.map +1 -0
  532. package/dist/http.js +2 -0
  533. package/dist/http.js.map +1 -0
  534. package/dist/index.d.ts +25 -0
  535. package/dist/index.d.ts.map +1 -0
  536. package/dist/index.js +25 -0
  537. package/dist/index.js.map +1 -0
  538. package/dist/logger/log-level.d.ts +5 -0
  539. package/dist/logger/log-level.d.ts.map +1 -0
  540. package/dist/logger/log-level.js +24 -0
  541. package/dist/logger/log-level.js.map +1 -0
  542. package/dist/logger/logger.d.ts +13 -0
  543. package/dist/logger/logger.d.ts.map +1 -0
  544. package/dist/logger/logger.js +2 -0
  545. package/dist/logger/logger.js.map +1 -0
  546. package/dist/logger/noop.logger.d.ts +15 -0
  547. package/dist/logger/noop.logger.d.ts.map +1 -0
  548. package/dist/logger/noop.logger.js +18 -0
  549. package/dist/logger/noop.logger.js.map +1 -0
  550. package/dist/logger/text.logger.d.ts +16 -0
  551. package/dist/logger/text.logger.d.ts.map +1 -0
  552. package/dist/logger/text.logger.js +51 -0
  553. package/dist/logger/text.logger.js.map +1 -0
  554. package/dist/report-sorter.d.ts +16 -0
  555. package/dist/report-sorter.d.ts.map +1 -0
  556. package/dist/report-sorter.js +193 -0
  557. package/dist/report-sorter.js.map +1 -0
  558. package/dist/rules/ajv-validate.d.ts +2 -0
  559. package/dist/rules/ajv-validate.d.ts.map +1 -0
  560. package/dist/rules/ajv-validate.js +4 -0
  561. package/dist/rules/ajv-validate.js.map +1 -0
  562. package/dist/rules/captured-trace-to-string.d.ts +3 -0
  563. package/dist/rules/captured-trace-to-string.d.ts.map +1 -0
  564. package/dist/rules/captured-trace-to-string.js +27 -0
  565. package/dist/rules/captured-trace-to-string.js.map +1 -0
  566. package/dist/rules/common-http-converters.d.ts +8 -0
  567. package/dist/rules/common-http-converters.d.ts.map +1 -0
  568. package/dist/rules/common-http-converters.js +58 -0
  569. package/dist/rules/common-http-converters.js.map +1 -0
  570. package/dist/rules/contexts.d.ts +63 -0
  571. package/dist/rules/contexts.d.ts.map +1 -0
  572. package/dist/rules/contexts.js +2 -0
  573. package/dist/rules/contexts.js.map +1 -0
  574. package/dist/rules/index.d.ts +16 -0
  575. package/dist/rules/index.d.ts.map +1 -0
  576. package/dist/rules/index.js +16 -0
  577. package/dist/rules/index.js.map +1 -0
  578. package/dist/rules/rule-builder.d.ts +34 -0
  579. package/dist/rules/rule-builder.d.ts.map +1 -0
  580. package/dist/rules/rule-builder.js +112 -0
  581. package/dist/rules/rule-builder.js.map +1 -0
  582. package/dist/rules/rule-configuration.d.ts +10 -0
  583. package/dist/rules/rule-configuration.d.ts.map +1 -0
  584. package/dist/rules/rule-configuration.js +2 -0
  585. package/dist/rules/rule-configuration.js.map +1 -0
  586. package/dist/rules/rule-filter.d.ts +9 -0
  587. package/dist/rules/rule-filter.d.ts.map +1 -0
  588. package/dist/rules/rule-filter.js +12 -0
  589. package/dist/rules/rule-filter.js.map +1 -0
  590. package/dist/rules/rule-fn.d.ts +7 -0
  591. package/dist/rules/rule-fn.d.ts.map +1 -0
  592. package/dist/rules/rule-fn.js +2 -0
  593. package/dist/rules/rule-fn.js.map +1 -0
  594. package/dist/rules/rule-loader.d.ts +8 -0
  595. package/dist/rules/rule-loader.d.ts.map +1 -0
  596. package/dist/rules/rule-loader.js +124 -0
  597. package/dist/rules/rule-loader.js.map +1 -0
  598. package/dist/rules/rule-meta.d.ts +20 -0
  599. package/dist/rules/rule-meta.d.ts.map +1 -0
  600. package/dist/rules/rule-meta.js +18 -0
  601. package/dist/rules/rule-meta.js.map +1 -0
  602. package/dist/rules/rule-runner.d.ts +30 -0
  603. package/dist/rules/rule-runner.d.ts.map +1 -0
  604. package/dist/rules/rule-runner.js +129 -0
  605. package/dist/rules/rule-runner.js.map +1 -0
  606. package/dist/rules/rule-set.d.ts +9 -0
  607. package/dist/rules/rule-set.d.ts.map +1 -0
  608. package/dist/rules/rule-set.js +2 -0
  609. package/dist/rules/rule-set.js.map +1 -0
  610. package/dist/rules/rule-severity.d.ts +10 -0
  611. package/dist/rules/rule-severity.d.ts.map +1 -0
  612. package/dist/rules/rule-severity.js +12 -0
  613. package/dist/rules/rule-severity.js.map +1 -0
  614. package/dist/rules/rule-violation.d.ts +22 -0
  615. package/dist/rules/rule-violation.d.ts.map +1 -0
  616. package/dist/rules/rule-violation.js +2 -0
  617. package/dist/rules/rule-violation.js.map +1 -0
  618. package/dist/rules/rule.d.ts +10 -0
  619. package/dist/rules/rule.d.ts.map +1 -0
  620. package/dist/rules/rule.js +2 -0
  621. package/dist/rules/rule.js.map +1 -0
  622. package/dist/rules/traffic.d.ts +25 -0
  623. package/dist/rules/traffic.d.ts.map +1 -0
  624. package/dist/rules/traffic.js +2 -0
  625. package/dist/rules/traffic.js.map +1 -0
  626. package/dist/thymian-plugin.d.ts +38 -0
  627. package/dist/thymian-plugin.d.ts.map +1 -0
  628. package/dist/thymian-plugin.js +24 -0
  629. package/dist/thymian-plugin.js.map +1 -0
  630. package/dist/thymian.d.ts +85 -0
  631. package/dist/thymian.d.ts.map +1 -0
  632. package/dist/thymian.error.d.ts +26 -0
  633. package/dist/thymian.error.d.ts.map +1 -0
  634. package/dist/thymian.error.js +34 -0
  635. package/dist/thymian.error.js.map +1 -0
  636. package/dist/thymian.js +322 -0
  637. package/dist/thymian.js.map +1 -0
  638. package/dist/utils.d.ts +40 -0
  639. package/dist/utils.d.ts.map +1 -0
  640. package/dist/utils.js +139 -0
  641. package/dist/utils.js.map +1 -0
  642. package/package.json +64 -0
@@ -0,0 +1,13 @@
1
+ import { informationalStatusCodes, } from './1xx/index.js';
2
+ import { successfulStatusCodes, } from './2xx/index.js';
3
+ import { redirectionStatusCodes, } from './3xx/index.js';
4
+ import { clientErrorStatusCodes, } from './4xx/index.js';
5
+ import { serverErrorStatusCodes, } from './5xx/index.js';
6
+ export const httpStatusCodes = [
7
+ ...informationalStatusCodes,
8
+ ...successfulStatusCodes,
9
+ ...redirectionStatusCodes,
10
+ ...clientErrorStatusCodes,
11
+ ...serverErrorStatusCodes,
12
+ ];
13
+ //# sourceMappingURL=http-status-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-status-code.js","sourceRoot":"","sources":["../../src/http-status-codes/http-status-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,wBAAwB,GACzB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,qBAAqB,GACtB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,sBAAsB,GACvB,MAAM,gBAAgB,CAAC;AASxB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,GAAG,wBAAwB;IAC3B,GAAG,qBAAqB;IACxB,GAAG,sBAAsB;IACzB,GAAG,sBAAsB;IACzB,GAAG,sBAAsB;CACjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { type InformationalPhrase } from './1xx/index.js';
2
+ import { type SuccessfulPhrase } from './2xx/index.js';
3
+ import { type RedirectionPhrase } from './3xx/index.js';
4
+ import { type ClientErrorPhrase } from './4xx/index.js';
5
+ import { type ServerErrorPhrase } from './5xx/index.js';
6
+ export type HttpStatusPhrase = InformationalPhrase | SuccessfulPhrase | RedirectionPhrase | ClientErrorPhrase | ServerErrorPhrase;
7
+ export declare const httpPhrases: readonly ["continue", "switching protocols", "processing", "early hints", "ok", "created", "accepted", "non-authoritative information", "no content", "reset content", "partial content", "multi-status", "already reported", "multiple choices", "moved permanently", "found", "see other", "not modified", "temporary redirect", "permanent redirect", "bad request", "unauthorized", "payment required", "forbidden", "not found", "method not allowed", "not acceptable", "proxy authentication required", "request timeout", "conflict", "gone", "length required", "precondition failed", "payload too large", "uri too long", "unsupported media type", "range not satisfiable", "expectation failed", "misdirected request", "unprocessable entity", "locked", "failed dependency", "too early", "upgrade required", "precondition required", "too many requests", "request header fields too large", "unavailable for legal reasons", "internal server error", "not implemented", "bad gateway", "service unavailable", "gateway timeout", "http version not supported", "variant also negotiates", "insufficient storage", "loop detected", "not extended", "network authentication required"];
8
+ //# sourceMappingURL=http-status-phrase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-status-phrase.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/http-status-phrase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAwB,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAE,KAAK,gBAAgB,EAAqB,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAAE,KAAK,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,KAAK,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAAE,KAAK,iBAAiB,EAAsB,MAAM,gBAAgB,CAAC;AAE5E,MAAM,MAAM,gBAAgB,GACxB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,GACjB,iBAAiB,GACjB,iBAAiB,CAAC;AAEtB,eAAO,MAAM,WAAW,0oCAMd,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { informationalPhrases } from './1xx/index.js';
2
+ import { successfulPhrases } from './2xx/index.js';
3
+ import { redirectionPhrases } from './3xx/index.js';
4
+ import { clientErrorPhrases } from './4xx/index.js';
5
+ import { serverErrorPhrases } from './5xx/index.js';
6
+ export const httpPhrases = [
7
+ ...informationalPhrases,
8
+ ...successfulPhrases,
9
+ ...redirectionPhrases,
10
+ ...clientErrorPhrases,
11
+ ...serverErrorPhrases,
12
+ ];
13
+ //# sourceMappingURL=http-status-phrase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-status-phrase.js","sourceRoot":"","sources":["../../src/http-status-codes/http-status-phrase.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAChF,OAAO,EAAyB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAC1E,OAAO,EAA0B,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAA0B,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC5E,OAAO,EAA0B,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAS5E,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,GAAG,oBAAoB;IACvB,GAAG,iBAAiB;IACpB,GAAG,kBAAkB;IACrB,GAAG,kBAAkB;IACrB,GAAG,kBAAkB;CACb,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from './1xx/index.js';
2
+ export * from './2xx/index.js';
3
+ export * from './3xx/index.js';
4
+ export * from './4xx/index.js';
5
+ export * from './5xx/index.js';
6
+ export * from './http-status-code.js';
7
+ export * from './http-status-code-ranges.js';
8
+ export * from './status-code-to-phrase.js';
9
+ export * from './validate.js';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
@@ -0,0 +1,10 @@
1
+ export * from './1xx/index.js';
2
+ export * from './2xx/index.js';
3
+ export * from './3xx/index.js';
4
+ export * from './4xx/index.js';
5
+ export * from './5xx/index.js';
6
+ export * from './http-status-code.js';
7
+ export * from './http-status-code-ranges.js';
8
+ export * from './status-code-to-phrase.js';
9
+ export * from './validate.js';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/http-status-codes/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,eAAe,CAAC"}
@@ -0,0 +1,62 @@
1
+ export declare const httpStatusPhraseToStatusCode: {
2
+ readonly "internal server error": 500;
3
+ readonly "not implemented": 501;
4
+ readonly "bad gateway": 502;
5
+ readonly "service unavailable": 503;
6
+ readonly "gateway timeout": 504;
7
+ readonly "http version not supported": 505;
8
+ readonly "variant also negotiates": 506;
9
+ readonly "insufficient storage": 507;
10
+ readonly "loop detected": 508;
11
+ readonly "not extended": 510;
12
+ readonly "network authentication required": 511;
13
+ readonly "bad request": 400;
14
+ readonly unauthorized: 401;
15
+ readonly "payment required": 402;
16
+ readonly forbidden: 403;
17
+ readonly "not found": 404;
18
+ readonly "method not allowed": 405;
19
+ readonly "not acceptable": 406;
20
+ readonly "proxy authentication required": 407;
21
+ readonly "request timeout": 408;
22
+ readonly conflict: 409;
23
+ readonly gone: 410;
24
+ readonly "length required": 411;
25
+ readonly "precondition failed": 412;
26
+ readonly "payload too large": 413;
27
+ readonly "uri too long": 414;
28
+ readonly "unsupported media type": 415;
29
+ readonly "range not satisfiable": 416;
30
+ readonly "expectation failed": 417;
31
+ readonly "misdirected request": 421;
32
+ readonly "unprocessable entity": 422;
33
+ readonly locked: 423;
34
+ readonly "failed dependency": 424;
35
+ readonly "too early": 425;
36
+ readonly "upgrade required": 426;
37
+ readonly "precondition required": 428;
38
+ readonly "too many requests": 429;
39
+ readonly "request header fields too large": 431;
40
+ readonly "unavailable for legal reasons": 451;
41
+ readonly "multiple choices": 300;
42
+ readonly "moved permanently": 301;
43
+ readonly found: 302;
44
+ readonly "see other": 303;
45
+ readonly "not modified": 304;
46
+ readonly "temporary redirect": 307;
47
+ readonly "permanent redirect": 308;
48
+ readonly ok: 200;
49
+ readonly created: 201;
50
+ readonly accepted: 202;
51
+ readonly "non-authoritative information": 203;
52
+ readonly "no content": 204;
53
+ readonly "reset content": 205;
54
+ readonly "partial content": 206;
55
+ readonly "multi-status": 207;
56
+ readonly "already reported": 208;
57
+ readonly continue: 100;
58
+ readonly "switching protocols": 101;
59
+ readonly processing: 102;
60
+ readonly 'early hints': 103;
61
+ };
62
+ //# sourceMappingURL=phrase-to-status-code.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phrase-to-status-code.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/phrase-to-status-code.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAM/B,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { informationalPhraseToStatusCode } from './1xx/index.js';
2
+ import { successfulPhraseToStatusCode } from './2xx/index.js';
3
+ import { redirectionPhraseToStatusCode } from './3xx/index.js';
4
+ import { clientErrorPhraseToStatusCOde } from './4xx/index.js';
5
+ import { serverErrorPhraseToStatusCode } from './5xx/index.js';
6
+ export const httpStatusPhraseToStatusCode = {
7
+ ...informationalPhraseToStatusCode,
8
+ ...successfulPhraseToStatusCode,
9
+ ...redirectionPhraseToStatusCode,
10
+ ...clientErrorPhraseToStatusCOde,
11
+ ...serverErrorPhraseToStatusCode,
12
+ };
13
+ //# sourceMappingURL=phrase-to-status-code.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"phrase-to-status-code.js","sourceRoot":"","sources":["../../src/http-status-codes/phrase-to-status-code.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,CAAC,MAAM,4BAA4B,GAAG;IAC1C,GAAG,+BAA+B;IAClC,GAAG,4BAA4B;IAC/B,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;CACxB,CAAC"}
@@ -0,0 +1,62 @@
1
+ export declare const httpStatusCodeToPhrase: {
2
+ readonly 500: "internal server error";
3
+ readonly 501: "not implemented";
4
+ readonly 502: "bad gateway";
5
+ readonly 503: "service unavailable";
6
+ readonly 504: "gateway timeout";
7
+ readonly 505: "http version not supported";
8
+ readonly 506: "variant also negotiates";
9
+ readonly 507: "insufficient storage";
10
+ readonly 508: "loop detected";
11
+ readonly 510: "not extended";
12
+ readonly 511: "network authentication required";
13
+ readonly 400: "bad request";
14
+ readonly 401: "unauthorized";
15
+ readonly 402: "payment required";
16
+ readonly 403: "forbidden";
17
+ readonly 404: "not found";
18
+ readonly 405: "method not allowed";
19
+ readonly 406: "not acceptable";
20
+ readonly 407: "proxy authentication required";
21
+ readonly 408: "request timeout";
22
+ readonly 409: "conflict";
23
+ readonly 410: "gone";
24
+ readonly 411: "length required";
25
+ readonly 412: "precondition failed";
26
+ readonly 413: "payload too large";
27
+ readonly 414: "uri too long";
28
+ readonly 415: "unsupported media type";
29
+ readonly 416: "range not satisfiable";
30
+ readonly 417: "expectation failed";
31
+ readonly 421: "misdirected request";
32
+ readonly 422: "unprocessable entity";
33
+ readonly 423: "locked";
34
+ readonly 424: "failed dependency";
35
+ readonly 425: "too early";
36
+ readonly 426: "upgrade required";
37
+ readonly 428: "precondition required";
38
+ readonly 429: "too many requests";
39
+ readonly 431: "request header fields too large";
40
+ readonly 451: "unavailable for legal reasons";
41
+ readonly 300: "multiple choices";
42
+ readonly 301: "moved permanently";
43
+ readonly 302: "found";
44
+ readonly 303: "see other";
45
+ readonly 304: "not modified";
46
+ readonly 307: "temporary redirect";
47
+ readonly 308: "permanent redirect";
48
+ readonly 200: "ok";
49
+ readonly 201: "created";
50
+ readonly 202: "accepted";
51
+ readonly 203: "non-authoritative information";
52
+ readonly 204: "no content";
53
+ readonly 205: "reset content";
54
+ readonly 206: "partial content";
55
+ readonly 207: "multi-status";
56
+ readonly 208: "already reported";
57
+ readonly 100: "continue";
58
+ readonly 101: "switching protocols";
59
+ readonly 102: "processing";
60
+ readonly 103: "early hints";
61
+ };
62
+ //# sourceMappingURL=status-code-to-phrase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-code-to-phrase.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/status-code-to-phrase.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAMzB,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { informationalStatusCodeToPhrase } from './1xx/index.js';
2
+ import { successfulStatusCodeToPhrase } from './2xx/index.js';
3
+ import { redirectionStatusCodeToPhrase } from './3xx/index.js';
4
+ import { clientErrorStatusCodeToPhrase } from './4xx/index.js';
5
+ import { serverErrorStatusCodeToPhrase } from './5xx/index.js';
6
+ export const httpStatusCodeToPhrase = {
7
+ ...informationalStatusCodeToPhrase,
8
+ ...successfulStatusCodeToPhrase,
9
+ ...redirectionStatusCodeToPhrase,
10
+ ...clientErrorStatusCodeToPhrase,
11
+ ...serverErrorStatusCodeToPhrase,
12
+ };
13
+ //# sourceMappingURL=status-code-to-phrase.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status-code-to-phrase.js","sourceRoot":"","sources":["../../src/http-status-codes/status-code-to-phrase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,4BAA4B,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAC/D,OAAO,EAAE,6BAA6B,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,GAAG,+BAA+B;IAClC,GAAG,4BAA4B;IAC/B,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;IAChC,GAAG,6BAA6B;CACxB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import type { HttpStatusCode } from './http-status-code.js';
2
+ import type { HttpStatusPhrase } from './http-status-phrase.js';
3
+ export declare function isValidHttpStatusCode(code: unknown): code is HttpStatusCode;
4
+ export declare function isValidHttpStatusPhrase(phrase: string): phrase is HttpStatusPhrase;
5
+ //# sourceMappingURL=validate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../src/http-status-codes/validate.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAEhE,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,OAAO,GAAG,IAAI,IAAI,cAAc,CAiB3E;AAED,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,MAAM,GACb,MAAM,IAAI,gBAAgB,CAQ5B"}
@@ -0,0 +1,28 @@
1
+ import { isValidInformationalPhrase, isValidInformationalStatusCode, } from './1xx/index.js';
2
+ import { isValidSuccessfulPhrase, isValidSuccessfulStatusCode, } from './2xx/index.js';
3
+ import { isValidRedirectionPhrase, isValidRedirectionStatusCode, } from './3xx/index.js';
4
+ import { isValidClientErrorPhrase, isValidClientErrorStatusCode, } from './4xx/index.js';
5
+ import { isValidServerErrorPhrase, isValidServerErrorStatusCode, } from './5xx/index.js';
6
+ export function isValidHttpStatusCode(code) {
7
+ let codeNum;
8
+ if (typeof code === 'number') {
9
+ codeNum = code;
10
+ }
11
+ else if (typeof code === 'string' && !isNaN(+code)) {
12
+ codeNum = +code;
13
+ }
14
+ return (typeof codeNum !== 'undefined' &&
15
+ (isValidInformationalStatusCode(codeNum) ||
16
+ isValidSuccessfulStatusCode(codeNum) ||
17
+ isValidRedirectionStatusCode(codeNum) ||
18
+ isValidClientErrorStatusCode(codeNum) ||
19
+ isValidServerErrorStatusCode(codeNum)));
20
+ }
21
+ export function isValidHttpStatusPhrase(phrase) {
22
+ return (isValidInformationalPhrase(phrase) ||
23
+ isValidSuccessfulPhrase(phrase) ||
24
+ isValidRedirectionPhrase(phrase) ||
25
+ isValidClientErrorPhrase(phrase) ||
26
+ isValidServerErrorPhrase(phrase));
27
+ }
28
+ //# sourceMappingURL=validate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../src/http-status-codes/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,8BAA8B,GAC/B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,uBAAuB,EACvB,2BAA2B,GAC5B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,GAC7B,MAAM,gBAAgB,CAAC;AAIxB,MAAM,UAAU,qBAAqB,CAAC,IAAa;IACjD,IAAI,OAA2B,CAAC;IAEhC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC7B,OAAO,GAAG,IAAI,CAAC;IACjB,CAAC;SAAM,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC;QACrD,OAAO,GAAG,CAAC,IAAI,CAAC;IAClB,CAAC;IAED,OAAO,CACL,OAAO,OAAO,KAAK,WAAW;QAC9B,CAAC,8BAA8B,CAAC,OAAO,CAAC;YACtC,2BAA2B,CAAC,OAAO,CAAC;YACpC,4BAA4B,CAAC,OAAO,CAAC;YACrC,4BAA4B,CAAC,OAAO,CAAC;YACrC,4BAA4B,CAAC,OAAO,CAAC,CAAC,CACzC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,uBAAuB,CACrC,MAAc;IAEd,OAAO,CACL,0BAA0B,CAAC,MAAM,CAAC;QAClC,uBAAuB,CAAC,MAAM,CAAC;QAC/B,wBAAwB,CAAC,MAAM,CAAC;QAChC,wBAAwB,CAAC,MAAM,CAAC;QAChC,wBAAwB,CAAC,MAAM,CAAC,CACjC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,21 @@
1
+ import { ThymianEmitter } from '../../index.js';
2
+ import type { HttpTestContext } from './http-test-context.js';
3
+ import type { HttpTestHooks } from './http-test-hooks.js';
4
+ declare module '@thymian/core' {
5
+ interface ThymianActions {
6
+ 'http-testing.beforeRequest': {
7
+ event: HttpTestHooks['beforeRequest']['arg'];
8
+ response: HttpTestHooks['beforeRequest']['return'];
9
+ };
10
+ 'http-testing.afterResponse': {
11
+ event: HttpTestHooks['afterResponse']['arg'];
12
+ response: HttpTestHooks['afterResponse']['return'];
13
+ };
14
+ 'http-testing.authorize': {
15
+ event: HttpTestHooks['authorize']['arg'];
16
+ response: HttpTestHooks['authorize']['return'];
17
+ };
18
+ }
19
+ }
20
+ export declare function createHttpTestHookRunnerFromThymianEmitter(emitter: ThymianEmitter): HttpTestContext['runHook'];
21
+ //# sourceMappingURL=create-hook-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-hook-runner.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-hook-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,QAAQ,eAAe,CAAC;IAC7B,UAAU,cAAc;QACtB,4BAA4B,EAAE;YAC5B,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC;YAC7C,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;SACpD,CAAC;QAEF,4BAA4B,EAAE;YAC5B,KAAK,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,CAAC;YAC7C,QAAQ,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC,QAAQ,CAAC,CAAC;SACpD,CAAC;QAEF,wBAAwB,EAAE;YACxB,KAAK,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,KAAK,CAAC,CAAC;YACzC,QAAQ,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;SAChD,CAAC;KACH;CACF;AAID,wBAAgB,0CAA0C,CACxD,OAAO,EAAE,cAAc,GACtB,eAAe,CAAC,SAAS,CAAC,CAe5B"}
@@ -0,0 +1,17 @@
1
+ import { ThymianEmitter } from '../../index.js';
2
+ import { deepmerge } from '../../utils.js';
3
+ const dm = deepmerge();
4
+ export function createHttpTestHookRunnerFromThymianEmitter(emitter) {
5
+ return async function runHook(name, payload) {
6
+ const actionName = `http-testing.${name}`;
7
+ const result = await emitter.emitAction(actionName, payload, {
8
+ strategy: 'deep-merge',
9
+ });
10
+ const value = dm(payload, result.result ?? {});
11
+ return {
12
+ ...result,
13
+ value,
14
+ };
15
+ };
16
+ }
17
+ //# sourceMappingURL=create-hook-runner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-hook-runner.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-hook-runner.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAuB3C,MAAM,EAAE,GAAG,SAAS,EAAE,CAAC;AAEvB,MAAM,UAAU,0CAA0C,CACxD,OAAuB;IAEvB,OAAO,KAAK,UAAU,OAAO,CAAC,IAAI,EAAE,OAAO;QACzC,MAAM,UAAU,GAA0C,gBAAgB,IAAI,EAAE,CAAC;QAEjF,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,OAAO,EAAE;YAC3D,QAAQ,EAAE,YAAY;SACvB,CAAC,CAAC;QAEH,MAAM,KAAK,GAAG,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;QAE/C,OAAO;YACL,GAAG,MAAM;YACT,KAAK;SACN,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { HttpTestContext, HttpTestContextLocals } from './http-test-context.js';
2
+ export declare function createHttpTestContext<Locals extends HttpTestContextLocals = HttpTestContextLocals>(context: Omit<HttpTestContext<Locals>, 'skip' | 'fail'>): HttpTestContext<Locals>;
3
+ //# sourceMappingURL=create-http-test-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-http-test-context.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-http-test-context.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAGhC,wBAAgB,qBAAqB,CACnC,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,EAE5D,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,GACtD,eAAe,CAAC,MAAM,CAAC,CA8BzB"}
@@ -0,0 +1,24 @@
1
+ export function createHttpTestContext(context) {
2
+ return {
3
+ ...context,
4
+ skip(testCase, reason) {
5
+ testCase.status = 'skipped';
6
+ testCase.reason = reason;
7
+ testCase.end = performance.now();
8
+ return {
9
+ ctx: this,
10
+ current: testCase,
11
+ };
12
+ },
13
+ fail(testCase, reason) {
14
+ testCase.status = 'failed';
15
+ testCase.reason = reason;
16
+ testCase.end = performance.now();
17
+ return {
18
+ ctx: this,
19
+ current: testCase,
20
+ };
21
+ },
22
+ };
23
+ }
24
+ //# sourceMappingURL=create-http-test-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-http-test-context.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/create-http-test-context.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,qBAAqB,CAGnC,OAAuD;IAEvD,OAAO;QACL,GAAG,OAAO;QACV,IAAI,CACF,QAA6B,EAC7B,MAAe;YAEf,QAAQ,CAAC,MAAM,GAAG,SAAS,CAAC;YAC5B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;YACzB,QAAQ,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;YAEjC,OAAO;gBACL,GAAG,EAAE,IAAI;gBACT,OAAO,EAAE,QAAQ;aAClB,CAAC;QACJ,CAAC;QACD,IAAI,CACF,QAA6B,EAC7B,MAAe;YAEf,QAAQ,CAAC,MAAM,GAAG,QAAQ,CAAC;YAC3B,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC;YACzB,QAAQ,CAAC,GAAG,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC;YAEjC,OAAO;gBACL,GAAG,EAAE,IAAI;gBACT,OAAO,EAAE,QAAQ;aAClB,CAAC;QACJ,CAAC;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,46 @@
1
+ import type { ThymianHttpTransaction } from '../../index.js';
2
+ export type HttpTestCaseResult = {
3
+ message: string;
4
+ timestamp?: number;
5
+ location?: {
6
+ stepIdx: number;
7
+ transactionIdx: number;
8
+ };
9
+ } & (AssertionSuccess | AssertionFailure | ExecutionError | Timeout | Skip | Warning | Info | InvalidTransaction);
10
+ export type AssertionSuccess = {
11
+ type: 'assertion-success';
12
+ assertion?: string;
13
+ };
14
+ export type AssertionFailure = {
15
+ type: 'assertion-failure';
16
+ assertion?: string;
17
+ expected?: unknown;
18
+ actual?: unknown;
19
+ transaction?: ThymianHttpTransaction;
20
+ };
21
+ export type ExecutionError = {
22
+ type: 'execution-error';
23
+ error: string;
24
+ };
25
+ export type Timeout = {
26
+ type: 'timeout';
27
+ durationMs: number;
28
+ };
29
+ export type Skip = {
30
+ type: 'skip';
31
+ reason?: string;
32
+ };
33
+ export type Warning = {
34
+ type: 'warning';
35
+ details?: string;
36
+ };
37
+ export type Info = {
38
+ type: 'info';
39
+ details?: string;
40
+ };
41
+ export type InvalidTransaction = {
42
+ type: 'invalid-transaction';
43
+ details?: string;
44
+ transaction?: ThymianHttpTransaction;
45
+ };
46
+ //# sourceMappingURL=http-test-case-result.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-case-result.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,cAAc,EAAE,MAAM,CAAA;KAAE,CAAC;CACxD,GAAG,CACA,gBAAgB,GAChB,gBAAgB,GAChB,cAAc,GACd,OAAO,GACP,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,kBAAkB,CACrB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,mBAAmB,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,iBAAiB,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,OAAO,GAAG;IACpB,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,IAAI,GAAG;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,qBAAqB,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACtC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=http-test-case-result.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-case-result.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case-result.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import type { HttpRequest, HttpRequestTemplate, HttpResponse, ThymianHttpTransaction } from '../../index.js';
2
+ import type { HttpTestCaseResult } from './http-test-case-result.js';
3
+ export interface GroupedHttpTestCaseStep<Transactions extends HttpTestCaseStepTransaction[] = HttpTestCaseStepTransaction[]> extends HttpTestCaseStep<{
4
+ key: string;
5
+ transactions: ThymianHttpTransaction[];
6
+ }, Transactions> {
7
+ type: 'grouped';
8
+ }
9
+ export interface SingleHttpTestCaseStep<Transactions extends HttpTestCaseStepTransaction[] = HttpTestCaseStepTransaction[]> extends HttpTestCaseStep<ThymianHttpTransaction, Transactions> {
10
+ type: 'single';
11
+ }
12
+ export interface CustomHttpTestCaseStep<Source = unknown> extends HttpTestCaseStep<Source> {
13
+ type: 'custom';
14
+ }
15
+ export type HttpTestCaseStepTransaction = {
16
+ requestTemplate: HttpRequestTemplate;
17
+ request?: HttpRequest;
18
+ response?: HttpResponse;
19
+ source?: ThymianHttpTransaction;
20
+ };
21
+ export interface HttpTestCaseStep<Source = unknown, Transactions extends HttpTestCaseStepTransaction[] = HttpTestCaseStepTransaction[]> {
22
+ type: 'single' | 'grouped' | 'custom';
23
+ source: Source;
24
+ transactions: Transactions;
25
+ }
26
+ export type HttpTestCaseStatus = 'running' | 'skipped' | 'failed' | 'passed';
27
+ export type HttpTestCase<Steps extends HttpTestCaseStep[] = HttpTestCaseStep[]> = {
28
+ start: number;
29
+ end?: number;
30
+ status: HttpTestCaseStatus;
31
+ reason?: string;
32
+ name: string;
33
+ readonly steps: Steps;
34
+ readonly results: HttpTestCaseResult[];
35
+ };
36
+ //# sourceMappingURL=http-test-case.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-case.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,WAAW,uBAAuB,CACtC,YAAY,SAAS,2BAA2B,EAAE,GAChD,2BAA2B,EAAE,CAC/B,SAAQ,gBAAgB,CACxB;IACE,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,sBAAsB,EAAE,CAAC;CACxC,EACD,YAAY,CACb;IACC,IAAI,EAAE,SAAS,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB,CACrC,YAAY,SAAS,2BAA2B,EAAE,GAChD,2BAA2B,EAAE,CAC/B,SAAQ,gBAAgB,CAAC,sBAAsB,EAAE,YAAY,CAAC;IAC9D,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB,CACrC,MAAM,GAAG,OAAO,CAChB,SAAQ,gBAAgB,CAAC,MAAM,CAAC;IAChC,IAAI,EAAE,QAAQ,CAAC;CAChB;AAED,MAAM,MAAM,2BAA2B,GAAG;IACxC,eAAe,EAAE,mBAAmB,CAAC;IACrC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,MAAM,CAAC,EAAE,sBAAsB,CAAC;CACjC,CAAC;AAEF,MAAM,WAAW,gBAAgB,CAC/B,MAAM,GAAG,OAAO,EAChB,YAAY,SAAS,2BAA2B,EAAE,GAChD,2BAA2B,EAAE;IAE/B,IAAI,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,YAAY,CAAC;CAC5B;AAED,MAAM,MAAM,kBAAkB,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE7E,MAAM,MAAM,YAAY,CACtB,KAAK,SAAS,gBAAgB,EAAE,GAAG,gBAAgB,EAAE,IACnD;IACF,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,kBAAkB,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CACxC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=http-test-case.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-case.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-case.ts"],"names":[],"mappings":""}
@@ -0,0 +1,20 @@
1
+ import type { HttpRequest, HttpRequestTemplate, HttpResponse, Logger, ThymianFormat, ThymianHttpTransaction } from '../../index.js';
2
+ import type { HttpTestCase, HttpTestCaseStep } from './http-test-case.js';
3
+ import type { HttpTestHooks } from './http-test-hooks.js';
4
+ import type { PipelineItem } from './http-test-pipeline.js';
5
+ export type GenerateRequestsOptions = {
6
+ authenticate?: boolean;
7
+ validCredentials?: boolean;
8
+ };
9
+ export type HttpTestContextLocals = Record<PropertyKey, unknown>;
10
+ export interface HttpTestContext<Locals extends HttpTestContextLocals = HttpTestContextLocals> {
11
+ format: ThymianFormat;
12
+ logger: Logger;
13
+ locals: Locals;
14
+ sampleRequest(transaction: ThymianHttpTransaction): Promise<HttpRequestTemplate>;
15
+ runRequest(req: HttpRequest): Promise<HttpResponse>;
16
+ runHook<Hook extends keyof HttpTestHooks>(name: Hook, payload: HttpTestHooks[Hook]['arg']): Promise<HttpTestHooks[Hook]['return']>;
17
+ skip<Steps extends HttpTestCaseStep[]>(testCase: HttpTestCase<Steps>, reason?: string): PipelineItem<HttpTestCase<Steps>, Locals>;
18
+ fail<Steps extends HttpTestCaseStep[]>(testCase: HttpTestCase<Steps>, reason?: string): PipelineItem<HttpTestCase<Steps>, Locals>;
19
+ }
20
+ //# sourceMappingURL=http-test-context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-context.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,MAAM,EACN,aAAa,EACb,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,MAAM,uBAAuB,GAAG;IACpC,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAEjE,MAAM,WAAW,eAAe,CAC9B,MAAM,SAAS,qBAAqB,GAAG,qBAAqB;IAE5D,MAAM,EAAE,aAAa,CAAC;IAEtB,MAAM,EAAE,MAAM,CAAC;IAEf,MAAM,EAAE,MAAM,CAAC;IAEf,aAAa,CACX,WAAW,EAAE,sBAAsB,GAClC,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAEhC,UAAU,CAAC,GAAG,EAAE,WAAW,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;IAEpD,OAAO,CAAC,IAAI,SAAS,MAAM,aAAa,EACtC,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,GAClC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAE1C,IAAI,CAAC,KAAK,SAAS,gBAAgB,EAAE,EACnC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAC7B,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IAE7C,IAAI,CAAC,KAAK,SAAS,gBAAgB,EAAE,EACnC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAC7B,MAAM,CAAC,EAAE,MAAM,GACd,YAAY,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;CAC9C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=http-test-context.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-context.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-context.ts"],"names":[],"mappings":""}
@@ -0,0 +1,26 @@
1
+ import type { HttpRequest, HttpRequestTemplate, HttpResponse, ThymianHttpTransaction } from '../../index.js';
2
+ import type { HttpTestCaseResult } from './http-test-case-result.js';
3
+ export type HttpTestHookReturnType<T> = {
4
+ result: T;
5
+ testResults?: HttpTestCaseResult[];
6
+ skip?: string;
7
+ fail?: string;
8
+ };
9
+ export type HttpTestHookArg<T, Ctx> = {
10
+ value: T;
11
+ ctx: Ctx;
12
+ };
13
+ export type HttpTestHook<T, Ctx> = {
14
+ arg: HttpTestHookArg<T, Ctx>;
15
+ return: HttpTestHookReturnType<T>;
16
+ };
17
+ export interface HttpTestHooks {
18
+ beforeRequest: HttpTestHook<HttpRequestTemplate, ThymianHttpTransaction | undefined>;
19
+ afterResponse: HttpTestHook<HttpResponse, {
20
+ requestTemplate: HttpRequestTemplate;
21
+ request: HttpRequest;
22
+ thymianTransaction?: ThymianHttpTransaction;
23
+ }>;
24
+ authorize: HttpTestHook<HttpRequestTemplate, ThymianHttpTransaction | undefined>;
25
+ }
26
+ //# sourceMappingURL=http-test-hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-hooks.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-hooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,mBAAmB,EACnB,YAAY,EACZ,sBAAsB,EACvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAErE,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IACtC,MAAM,EAAE,CAAC,CAAC;IACV,WAAW,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,MAAM,MAAM,eAAe,CAAC,CAAC,EAAE,GAAG,IAAI;IACpC,KAAK,EAAE,CAAC,CAAC;IACT,GAAG,EAAE,GAAG,CAAC;CACV,CAAC;AAEF,MAAM,MAAM,YAAY,CAAC,CAAC,EAAE,GAAG,IAAI;IACjC,GAAG,EAAE,eAAe,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAC7B,MAAM,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;CACnC,CAAC;AAEF,MAAM,WAAW,aAAa;IAC5B,aAAa,EAAE,YAAY,CACzB,mBAAmB,EACnB,sBAAsB,GAAG,SAAS,CACnC,CAAC;IAEF,aAAa,EAAE,YAAY,CACzB,YAAY,EACZ;QACE,eAAe,EAAE,mBAAmB,CAAC;QACrC,OAAO,EAAE,WAAW,CAAC;QACrB,kBAAkB,CAAC,EAAE,sBAAsB,CAAC;KAC7C,CACF,CAAC;IAEF,SAAS,EAAE,YAAY,CACrB,mBAAmB,EACnB,sBAAsB,GAAG,SAAS,CACnC,CAAC;CACH"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=http-test-hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-hooks.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-hooks.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { Observable } from 'rxjs';
2
+ import type { ThymianHttpTransaction } from '../../index.js';
3
+ import type { HttpTestCase } from './http-test-case.js';
4
+ import type { HttpTestContext, HttpTestContextLocals } from './http-test-context.js';
5
+ export type PipelineItem<Current, Locals extends HttpTestContextLocals = HttpTestContextLocals> = {
6
+ current: Current;
7
+ ctx: HttpTestContext<Locals>;
8
+ };
9
+ export type HttpTestPipeline<Locals extends HttpTestContextLocals> = (transactions: Observable<PipelineItem<ThymianHttpTransaction, Locals>>) => Observable<PipelineItem<HttpTestCase, Locals>>;
10
+ //# sourceMappingURL=http-test-pipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-pipeline.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEvC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,YAAY,CACtB,OAAO,EACP,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,IAC1D;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,GAAG,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;CAC9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,qBAAqB,IAAI,CACnE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,sBAAsB,EAAE,MAAM,CAAC,CAAC,KACnE,UAAU,CAAC,YAAY,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=http-test-pipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test-pipeline.js","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test-pipeline.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { type HttpTestCase } from './http-test-case.js';
2
+ import type { HttpTestContext, HttpTestContextLocals } from './http-test-context.js';
3
+ import type { HttpTestPipeline } from './http-test-pipeline.js';
4
+ export type HttpTestResult = {
5
+ name: string;
6
+ duration: number;
7
+ cases: HttpTestCase[];
8
+ };
9
+ export type HttpTestRunnerFn<Locals extends HttpTestContextLocals> = (ctx: HttpTestContext<Locals>) => Promise<HttpTestResult>;
10
+ export declare function httpTest<Locals extends HttpTestContextLocals = HttpTestContextLocals>(name: string, fn: HttpTestPipeline<Locals>): HttpTestRunnerFn<Locals>;
11
+ //# sourceMappingURL=http-test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-test.d.ts","sourceRoot":"","sources":["../../../src/http-testing/http-test/http-test.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EACV,eAAe,EACf,qBAAqB,EACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,gBAAgB,EAAgB,MAAM,yBAAyB,CAAC;AAE9E,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,MAAM,SAAS,qBAAqB,IAAI,CACnE,GAAG,EAAE,eAAe,CAAC,MAAM,CAAC,KACzB,OAAO,CAAC,cAAc,CAAC,CAAC;AAE7B,wBAAgB,QAAQ,CACtB,MAAM,SAAS,qBAAqB,GAAG,qBAAqB,EAC5D,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,gBAAgB,CAAC,MAAM,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,CAmCtE"}