@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.
- package/README.md +59 -0
- package/dist/actions/action.d.ts +5 -0
- package/dist/actions/action.d.ts.map +1 -0
- package/dist/actions/action.js +2 -0
- package/dist/actions/action.js.map +1 -0
- package/dist/actions/close.action.d.ts +3 -0
- package/dist/actions/close.action.d.ts.map +1 -0
- package/dist/actions/close.action.js +2 -0
- package/dist/actions/close.action.js.map +1 -0
- package/dist/actions/core-analyze.action.d.ts +11 -0
- package/dist/actions/core-analyze.action.d.ts.map +1 -0
- package/dist/actions/core-analyze.action.js +2 -0
- package/dist/actions/core-analyze.action.js.map +1 -0
- package/dist/actions/core-lint.action.d.ts +9 -0
- package/dist/actions/core-lint.action.d.ts.map +1 -0
- package/dist/actions/core-lint.action.js +2 -0
- package/dist/actions/core-lint.action.js.map +1 -0
- package/dist/actions/core-request-sample.action.d.ts +9 -0
- package/dist/actions/core-request-sample.action.d.ts.map +1 -0
- package/dist/actions/core-request-sample.action.js +2 -0
- package/dist/actions/core-request-sample.action.js.map +1 -0
- package/dist/actions/core-test.action.d.ts +10 -0
- package/dist/actions/core-test.action.d.ts.map +1 -0
- package/dist/actions/core-test.action.js +2 -0
- package/dist/actions/core-test.action.js.map +1 -0
- package/dist/actions/core-validation-input.d.ts +6 -0
- package/dist/actions/core-validation-input.d.ts.map +1 -0
- package/dist/actions/core-validation-input.js +2 -0
- package/dist/actions/core-validation-input.js.map +1 -0
- package/dist/actions/format-load.action.d.ts +16 -0
- package/dist/actions/format-load.action.d.ts.map +1 -0
- package/dist/actions/format-load.action.js +36 -0
- package/dist/actions/format-load.action.js.map +1 -0
- package/dist/actions/format.action.d.ts +4 -0
- package/dist/actions/format.action.d.ts.map +1 -0
- package/dist/actions/format.action.js +2 -0
- package/dist/actions/format.action.js.map +1 -0
- package/dist/actions/index.d.ts +39 -0
- package/dist/actions/index.d.ts.map +1 -0
- package/dist/actions/index.js +14 -0
- package/dist/actions/index.js.map +1 -0
- package/dist/actions/ready.action.d.ts +3 -0
- package/dist/actions/ready.action.d.ts.map +1 -0
- package/dist/actions/ready.action.js +2 -0
- package/dist/actions/ready.action.js.map +1 -0
- package/dist/actions/report-flush.action.d.ts +6 -0
- package/dist/actions/report-flush.action.d.ts.map +1 -0
- package/dist/actions/report-flush.action.js +2 -0
- package/dist/actions/report-flush.action.js.map +1 -0
- package/dist/actions/request-dispatch.action.d.ts +13 -0
- package/dist/actions/request-dispatch.action.d.ts.map +1 -0
- package/dist/actions/request-dispatch.action.js +45 -0
- package/dist/actions/request-dispatch.action.js.map +1 -0
- package/dist/actions/traffic-load.action.d.ts +16 -0
- package/dist/actions/traffic-load.action.d.ts.map +1 -0
- package/dist/actions/traffic-load.action.js +36 -0
- package/dist/actions/traffic-load.action.js.map +1 -0
- package/dist/actions/validation-result.d.ts +18 -0
- package/dist/actions/validation-result.d.ts.map +1 -0
- package/dist/actions/validation-result.js +81 -0
- package/dist/actions/validation-result.js.map +1 -0
- package/dist/ajv.d.ts +5 -0
- package/dist/ajv.d.ts.map +1 -0
- package/dist/ajv.js +9 -0
- package/dist/ajv.js.map +1 -0
- package/dist/chalk.d.ts +2 -0
- package/dist/chalk.d.ts.map +1 -0
- package/dist/chalk.js +2 -0
- package/dist/chalk.js.map +1 -0
- package/dist/constants.d.ts +5 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +6 -0
- package/dist/constants.js.map +1 -0
- package/dist/core-plugin.d.ts +5 -0
- package/dist/core-plugin.d.ts.map +1 -0
- package/dist/core-plugin.js +62 -0
- package/dist/core-plugin.js.map +1 -0
- package/dist/emitter/action-event.d.ts +19 -0
- package/dist/emitter/action-event.d.ts.map +1 -0
- package/dist/emitter/action-event.js +2 -0
- package/dist/emitter/action-event.js.map +1 -0
- package/dist/emitter/error-event.d.ts +13 -0
- package/dist/emitter/error-event.d.ts.map +1 -0
- package/dist/emitter/error-event.js +2 -0
- package/dist/emitter/error-event.js.map +1 -0
- package/dist/emitter/events.d.ts +10 -0
- package/dist/emitter/events.d.ts.map +1 -0
- package/dist/emitter/events.js +2 -0
- package/dist/emitter/events.js.map +1 -0
- package/dist/emitter/index.d.ts +6 -0
- package/dist/emitter/index.d.ts.map +1 -0
- package/dist/emitter/index.js +6 -0
- package/dist/emitter/index.js.map +1 -0
- package/dist/emitter/thymian-emitter.d.ts +61 -0
- package/dist/emitter/thymian-emitter.d.ts.map +1 -0
- package/dist/emitter/thymian-emitter.js +371 -0
- package/dist/emitter/thymian-emitter.js.map +1 -0
- package/dist/emitter/utils.d.ts +8 -0
- package/dist/emitter/utils.d.ts.map +1 -0
- package/dist/emitter/utils.js +16 -0
- package/dist/emitter/utils.js.map +1 -0
- package/dist/events/error.event.d.ts +5 -0
- package/dist/events/error.event.d.ts.map +1 -0
- package/dist/events/error.event.js +49 -0
- package/dist/events/error.event.js.map +1 -0
- package/dist/events/exit.event.d.ts +14 -0
- package/dist/events/exit.event.d.ts.map +1 -0
- package/dist/events/exit.event.js +9 -0
- package/dist/events/exit.event.js.map +1 -0
- package/dist/events/index.d.ts +15 -0
- package/dist/events/index.d.ts.map +1 -0
- package/dist/events/index.js +4 -0
- package/dist/events/index.js.map +1 -0
- package/dist/events/register-plugin.event.d.ts +51 -0
- package/dist/events/register-plugin.event.d.ts.map +1 -0
- package/dist/events/register-plugin.event.js +29 -0
- package/dist/events/register-plugin.event.js.map +1 -0
- package/dist/events/report.event.d.ts +104 -0
- package/dist/events/report.event.d.ts.map +1 -0
- package/dist/events/report.event.js +109 -0
- package/dist/events/report.event.js.map +1 -0
- package/dist/format/circular-references.d.ts +3 -0
- package/dist/format/circular-references.d.ts.map +1 -0
- package/dist/format/circular-references.js +71 -0
- package/dist/format/circular-references.js.map +1 -0
- package/dist/format/edges/edge.d.ts +9 -0
- package/dist/format/edges/edge.d.ts.map +1 -0
- package/dist/format/edges/edge.js +2 -0
- package/dist/format/edges/edge.js.map +1 -0
- package/dist/format/edges/has-sample.edge.d.ts +5 -0
- package/dist/format/edges/has-sample.edge.d.ts.map +1 -0
- package/dist/format/edges/has-sample.edge.js +2 -0
- package/dist/format/edges/has-sample.edge.js.map +1 -0
- package/dist/format/edges/http-link.edge.d.ts +10 -0
- package/dist/format/edges/http-link.edge.d.ts.map +1 -0
- package/dist/format/edges/http-link.edge.js +2 -0
- package/dist/format/edges/http-link.edge.js.map +1 -0
- package/dist/format/edges/http-transaction.edge.d.ts +5 -0
- package/dist/format/edges/http-transaction.edge.d.ts.map +1 -0
- package/dist/format/edges/http-transaction.edge.js +2 -0
- package/dist/format/edges/http-transaction.edge.js.map +1 -0
- package/dist/format/edges/is-secured-with.edge.d.ts +5 -0
- package/dist/format/edges/is-secured-with.edge.d.ts.map +1 -0
- package/dist/format/edges/is-secured-with.edge.js +2 -0
- package/dist/format/edges/is-secured-with.edge.js.map +1 -0
- package/dist/format/edges/sample-http-transaction.edge.d.ts +5 -0
- package/dist/format/edges/sample-http-transaction.edge.d.ts.map +1 -0
- package/dist/format/edges/sample-http-transaction.edge.js +2 -0
- package/dist/format/edges/sample-http-transaction.edge.js.map +1 -0
- package/dist/format/format-location.d.ts +13 -0
- package/dist/format/format-location.d.ts.map +1 -0
- package/dist/format/format-location.js +2 -0
- package/dist/format/format-location.js.map +1 -0
- package/dist/format/http-filter-expression-to-transaction-filter.d.ts +5 -0
- package/dist/format/http-filter-expression-to-transaction-filter.d.ts.map +1 -0
- package/dist/format/http-filter-expression-to-transaction-filter.js +88 -0
- package/dist/format/http-filter-expression-to-transaction-filter.js.map +1 -0
- package/dist/format/index.d.ts +14 -0
- package/dist/format/index.d.ts.map +1 -0
- package/dist/format/index.js +14 -0
- package/dist/format/index.js.map +1 -0
- package/dist/format/nodes/http-request.node.d.ts +29 -0
- package/dist/format/nodes/http-request.node.d.ts.map +1 -0
- package/dist/format/nodes/http-request.node.js +2 -0
- package/dist/format/nodes/http-request.node.js.map +1 -0
- package/dist/format/nodes/http-response.node.d.ts +12 -0
- package/dist/format/nodes/http-response.node.d.ts.map +1 -0
- package/dist/format/nodes/http-response.node.js +2 -0
- package/dist/format/nodes/http-response.node.js.map +1 -0
- package/dist/format/nodes/node.d.ts +9 -0
- package/dist/format/nodes/node.d.ts.map +1 -0
- package/dist/format/nodes/node.js +2 -0
- package/dist/format/nodes/node.js.map +1 -0
- package/dist/format/nodes/sample-http-request.node.d.ts +7 -0
- package/dist/format/nodes/sample-http-request.node.d.ts.map +1 -0
- package/dist/format/nodes/sample-http-request.node.js +2 -0
- package/dist/format/nodes/sample-http-request.node.js.map +1 -0
- package/dist/format/nodes/sample-http-response.node.d.ts +7 -0
- package/dist/format/nodes/sample-http-response.node.d.ts.map +1 -0
- package/dist/format/nodes/sample-http-response.node.js +2 -0
- package/dist/format/nodes/sample-http-response.node.js.map +1 -0
- package/dist/format/nodes/security-scheme.node.d.ts +17 -0
- package/dist/format/nodes/security-scheme.node.d.ts.map +1 -0
- package/dist/format/nodes/security-scheme.node.js +2 -0
- package/dist/format/nodes/security-scheme.node.js.map +1 -0
- package/dist/format/parameter.d.ts +10 -0
- package/dist/format/parameter.d.ts.map +1 -0
- package/dist/format/parameter.js +2 -0
- package/dist/format/parameter.js.map +1 -0
- package/dist/format/serialization-style/cookie.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/cookie.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/cookie.serialization-style.js +7 -0
- package/dist/format/serialization-style/cookie.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/header.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/header.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/header.serialization-style.js +7 -0
- package/dist/format/serialization-style/header.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/index.d.ts +6 -0
- package/dist/format/serialization-style/index.d.ts.map +1 -0
- package/dist/format/serialization-style/index.js +6 -0
- package/dist/format/serialization-style/index.js.map +1 -0
- package/dist/format/serialization-style/path.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/path.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/path.serialization-style.js +7 -0
- package/dist/format/serialization-style/path.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/query.serialization-style.d.ts +5 -0
- package/dist/format/serialization-style/query.serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/query.serialization-style.js +7 -0
- package/dist/format/serialization-style/query.serialization-style.js.map +1 -0
- package/dist/format/serialization-style/serialization-style.d.ts +13 -0
- package/dist/format/serialization-style/serialization-style.d.ts.map +1 -0
- package/dist/format/serialization-style/serialization-style.js +25 -0
- package/dist/format/serialization-style/serialization-style.js.map +1 -0
- package/dist/format/thymian-format.d.ts +109 -0
- package/dist/format/thymian-format.d.ts.map +1 -0
- package/dist/format/thymian-format.js +437 -0
- package/dist/format/thymian-format.js.map +1 -0
- package/dist/format/thymian-schema.d.ts +56 -0
- package/dist/format/thymian-schema.d.ts.map +1 -0
- package/dist/format/thymian-schema.js +2 -0
- package/dist/format/thymian-schema.js.map +1 -0
- package/dist/format/utils.d.ts +12 -0
- package/dist/format/utils.d.ts.map +1 -0
- package/dist/format/utils.js +85 -0
- package/dist/format/utils.js.map +1 -0
- package/dist/http-filter-visitor.d.ts +76 -0
- package/dist/http-filter-visitor.d.ts.map +1 -0
- package/dist/http-filter-visitor.js +168 -0
- package/dist/http-filter-visitor.js.map +1 -0
- package/dist/http-filter.d.ts +140 -0
- package/dist/http-filter.d.ts.map +1 -0
- package/dist/http-filter.js +137 -0
- package/dist/http-filter.js.map +1 -0
- package/dist/http-status-codes/1xx/index.d.ts +15 -0
- package/dist/http-status-codes/1xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/1xx/index.js +15 -0
- package/dist/http-status-codes/1xx/index.js.map +1 -0
- package/dist/http-status-codes/1xx/informational.phrases.d.ts +4 -0
- package/dist/http-status-codes/1xx/informational.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/1xx/informational.phrases.js +10 -0
- package/dist/http-status-codes/1xx/informational.phrases.js.map +1 -0
- package/dist/http-status-codes/1xx/informational.status-codes.d.ts +4 -0
- package/dist/http-status-codes/1xx/informational.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/1xx/informational.status-codes.js +5 -0
- package/dist/http-status-codes/1xx/informational.status-codes.js.map +1 -0
- package/dist/http-status-codes/2xx/index.d.ts +25 -0
- package/dist/http-status-codes/2xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/2xx/index.js +25 -0
- package/dist/http-status-codes/2xx/index.js.map +1 -0
- package/dist/http-status-codes/2xx/successful.phrases.d.ts +4 -0
- package/dist/http-status-codes/2xx/successful.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/2xx/successful.phrases.js +15 -0
- package/dist/http-status-codes/2xx/successful.phrases.js.map +1 -0
- package/dist/http-status-codes/2xx/successful.status-codes.d.ts +4 -0
- package/dist/http-status-codes/2xx/successful.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/2xx/successful.status-codes.js +7 -0
- package/dist/http-status-codes/2xx/successful.status-codes.js.map +1 -0
- package/dist/http-status-codes/3xx/index.d.ts +21 -0
- package/dist/http-status-codes/3xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/3xx/index.js +21 -0
- package/dist/http-status-codes/3xx/index.js.map +1 -0
- package/dist/http-status-codes/3xx/redirection.phrases.d.ts +4 -0
- package/dist/http-status-codes/3xx/redirection.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/3xx/redirection.phrases.js +13 -0
- package/dist/http-status-codes/3xx/redirection.phrases.js.map +1 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.d.ts +4 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.js +7 -0
- package/dist/http-status-codes/3xx/redirection.status-codes.js.map +1 -0
- package/dist/http-status-codes/4xx/client-error.phrases.d.ts +4 -0
- package/dist/http-status-codes/4xx/client-error.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/4xx/client-error.phrases.js +34 -0
- package/dist/http-status-codes/4xx/client-error.phrases.js.map +1 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.d.ts +4 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.js +8 -0
- package/dist/http-status-codes/4xx/client-error.status-codes.js.map +1 -0
- package/dist/http-status-codes/4xx/index.d.ts +63 -0
- package/dist/http-status-codes/4xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/4xx/index.js +63 -0
- package/dist/http-status-codes/4xx/index.js.map +1 -0
- package/dist/http-status-codes/5xx/index.d.ts +29 -0
- package/dist/http-status-codes/5xx/index.d.ts.map +1 -0
- package/dist/http-status-codes/5xx/index.js +29 -0
- package/dist/http-status-codes/5xx/index.js.map +1 -0
- package/dist/http-status-codes/5xx/server-error.phrases.d.ts +4 -0
- package/dist/http-status-codes/5xx/server-error.phrases.d.ts.map +1 -0
- package/dist/http-status-codes/5xx/server-error.phrases.js +17 -0
- package/dist/http-status-codes/5xx/server-error.phrases.js.map +1 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.d.ts +4 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.d.ts.map +1 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.js +7 -0
- package/dist/http-status-codes/5xx/server-error.status-codes.js.map +1 -0
- package/dist/http-status-codes/http-status-code-ranges.d.ts +11 -0
- package/dist/http-status-codes/http-status-code-ranges.d.ts.map +1 -0
- package/dist/http-status-codes/http-status-code-ranges.js +19 -0
- package/dist/http-status-codes/http-status-code-ranges.js.map +1 -0
- package/dist/http-status-codes/http-status-code.d.ts +8 -0
- package/dist/http-status-codes/http-status-code.d.ts.map +1 -0
- package/dist/http-status-codes/http-status-code.js +13 -0
- package/dist/http-status-codes/http-status-code.js.map +1 -0
- package/dist/http-status-codes/http-status-phrase.d.ts +8 -0
- package/dist/http-status-codes/http-status-phrase.d.ts.map +1 -0
- package/dist/http-status-codes/http-status-phrase.js +13 -0
- package/dist/http-status-codes/http-status-phrase.js.map +1 -0
- package/dist/http-status-codes/index.d.ts +10 -0
- package/dist/http-status-codes/index.d.ts.map +1 -0
- package/dist/http-status-codes/index.js +10 -0
- package/dist/http-status-codes/index.js.map +1 -0
- package/dist/http-status-codes/phrase-to-status-code.d.ts +62 -0
- package/dist/http-status-codes/phrase-to-status-code.d.ts.map +1 -0
- package/dist/http-status-codes/phrase-to-status-code.js +13 -0
- package/dist/http-status-codes/phrase-to-status-code.js.map +1 -0
- package/dist/http-status-codes/status-code-to-phrase.d.ts +62 -0
- package/dist/http-status-codes/status-code-to-phrase.d.ts.map +1 -0
- package/dist/http-status-codes/status-code-to-phrase.js +13 -0
- package/dist/http-status-codes/status-code-to-phrase.js.map +1 -0
- package/dist/http-status-codes/validate.d.ts +5 -0
- package/dist/http-status-codes/validate.d.ts.map +1 -0
- package/dist/http-status-codes/validate.js +28 -0
- package/dist/http-status-codes/validate.js.map +1 -0
- package/dist/http-testing/http-test/create-hook-runner.d.ts +21 -0
- package/dist/http-testing/http-test/create-hook-runner.d.ts.map +1 -0
- package/dist/http-testing/http-test/create-hook-runner.js +17 -0
- package/dist/http-testing/http-test/create-hook-runner.js.map +1 -0
- package/dist/http-testing/http-test/create-http-test-context.d.ts +3 -0
- package/dist/http-testing/http-test/create-http-test-context.d.ts.map +1 -0
- package/dist/http-testing/http-test/create-http-test-context.js +24 -0
- package/dist/http-testing/http-test/create-http-test-context.js.map +1 -0
- package/dist/http-testing/http-test/http-test-case-result.d.ts +46 -0
- package/dist/http-testing/http-test/http-test-case-result.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-case-result.js +2 -0
- package/dist/http-testing/http-test/http-test-case-result.js.map +1 -0
- package/dist/http-testing/http-test/http-test-case.d.ts +36 -0
- package/dist/http-testing/http-test/http-test-case.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-case.js +2 -0
- package/dist/http-testing/http-test/http-test-case.js.map +1 -0
- package/dist/http-testing/http-test/http-test-context.d.ts +20 -0
- package/dist/http-testing/http-test/http-test-context.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-context.js +2 -0
- package/dist/http-testing/http-test/http-test-context.js.map +1 -0
- package/dist/http-testing/http-test/http-test-hooks.d.ts +26 -0
- package/dist/http-testing/http-test/http-test-hooks.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-hooks.js +2 -0
- package/dist/http-testing/http-test/http-test-hooks.js.map +1 -0
- package/dist/http-testing/http-test/http-test-pipeline.d.ts +10 -0
- package/dist/http-testing/http-test/http-test-pipeline.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test-pipeline.js +2 -0
- package/dist/http-testing/http-test/http-test-pipeline.js.map +1 -0
- package/dist/http-testing/http-test/http-test.d.ts +11 -0
- package/dist/http-testing/http-test/http-test.d.ts.map +1 -0
- package/dist/http-testing/http-test/http-test.js +35 -0
- package/dist/http-testing/http-test/http-test.js.map +1 -0
- package/dist/http-testing/http-test/index.d.ts +10 -0
- package/dist/http-testing/http-test/index.d.ts.map +1 -0
- package/dist/http-testing/http-test/index.js +10 -0
- package/dist/http-testing/http-test/index.js.map +1 -0
- package/dist/http-testing/http-test/utils.d.ts +11 -0
- package/dist/http-testing/http-test/utils.d.ts.map +1 -0
- package/dist/http-testing/http-test/utils.js +16 -0
- package/dist/http-testing/http-test/utils.js.map +1 -0
- package/dist/http-testing/index.d.ts +7 -0
- package/dist/http-testing/index.d.ts.map +1 -0
- package/dist/http-testing/index.js +7 -0
- package/dist/http-testing/index.js.map +1 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.d.ts +5 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.js +39 -0
- package/dist/http-testing/operators/expect-for-transaction.operator.js.map +1 -0
- package/dist/http-testing/operators/expect-headers.operator.d.ts +4 -0
- package/dist/http-testing/operators/expect-headers.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect-headers.operator.js +37 -0
- package/dist/http-testing/operators/expect-headers.operator.js.map +1 -0
- package/dist/http-testing/operators/expect-status-code.operator.d.ts +5 -0
- package/dist/http-testing/operators/expect-status-code.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect-status-code.operator.js +55 -0
- package/dist/http-testing/operators/expect-status-code.operator.js.map +1 -0
- package/dist/http-testing/operators/expect.operator.d.ts +4 -0
- package/dist/http-testing/operators/expect.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/expect.operator.js +31 -0
- package/dist/http-testing/operators/expect.operator.js.map +1 -0
- package/dist/http-testing/operators/fail.operator.d.ts +4 -0
- package/dist/http-testing/operators/fail.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/fail.operator.js +8 -0
- package/dist/http-testing/operators/fail.operator.js.map +1 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.d.ts +10 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.js +18 -0
- package/dist/http-testing/operators/filter-http-transactions.operator.js.map +1 -0
- package/dist/http-testing/operators/generate-requests.operator.d.ts +10 -0
- package/dist/http-testing/operators/generate-requests.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/generate-requests.operator.js +44 -0
- package/dist/http-testing/operators/generate-requests.operator.js.map +1 -0
- package/dist/http-testing/operators/index.d.ts +21 -0
- package/dist/http-testing/operators/index.d.ts.map +1 -0
- package/dist/http-testing/operators/index.js +21 -0
- package/dist/http-testing/operators/index.js.map +1 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.d.ts +7 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.js +32 -0
- package/dist/http-testing/operators/map-to-grouped-test-case.operator.js.map +1 -0
- package/dist/http-testing/operators/map-to-test-case.operator.d.ts +7 -0
- package/dist/http-testing/operators/map-to-test-case.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/map-to-test-case.operator.js +21 -0
- package/dist/http-testing/operators/map-to-test-case.operator.js.map +1 -0
- package/dist/http-testing/operators/override-headers.operator.d.ts +5 -0
- package/dist/http-testing/operators/override-headers.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/override-headers.operator.js +18 -0
- package/dist/http-testing/operators/override-headers.operator.js.map +1 -0
- package/dist/http-testing/operators/override-with-previous.operator.d.ts +5 -0
- package/dist/http-testing/operators/override-with-previous.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/override-with-previous.operator.js +23 -0
- package/dist/http-testing/operators/override-with-previous.operator.js.map +1 -0
- package/dist/http-testing/operators/replay-previous-step.operator.d.ts +5 -0
- package/dist/http-testing/operators/replay-previous-step.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/replay-previous-step.operator.js +27 -0
- package/dist/http-testing/operators/replay-previous-step.operator.js.map +1 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.d.ts +7 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.js +61 -0
- package/dist/http-testing/operators/reply-previous-but-expect-response.operator.js.map +1 -0
- package/dist/http-testing/operators/requires-authorization.operator.d.ts +5 -0
- package/dist/http-testing/operators/requires-authorization.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/requires-authorization.operator.js +9 -0
- package/dist/http-testing/operators/requires-authorization.operator.js.map +1 -0
- package/dist/http-testing/operators/run-requests.operator.d.ts +14 -0
- package/dist/http-testing/operators/run-requests.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/run-requests.operator.js +139 -0
- package/dist/http-testing/operators/run-requests.operator.js.map +1 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.d.ts +5 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.js +43 -0
- package/dist/http-testing/operators/single-step-for-transaction.operator.js.map +1 -0
- package/dist/http-testing/operators/skip.operator.d.ts +5 -0
- package/dist/http-testing/operators/skip.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/skip.operator.js +11 -0
- package/dist/http-testing/operators/skip.operator.js.map +1 -0
- package/dist/http-testing/operators/step.operator.d.ts +5 -0
- package/dist/http-testing/operators/step.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/step.operator.js +20 -0
- package/dist/http-testing/operators/step.operator.js.map +1 -0
- package/dist/http-testing/operators/utils.d.ts +10 -0
- package/dist/http-testing/operators/utils.d.ts.map +1 -0
- package/dist/http-testing/operators/utils.js +17 -0
- package/dist/http-testing/operators/utils.js.map +1 -0
- package/dist/http-testing/operators/validate-responses.operator.d.ts +4 -0
- package/dist/http-testing/operators/validate-responses.operator.d.ts.map +1 -0
- package/dist/http-testing/operators/validate-responses.operator.js +33 -0
- package/dist/http-testing/operators/validate-responses.operator.js.map +1 -0
- package/dist/http-testing/serialize-parameter.d.ts +6 -0
- package/dist/http-testing/serialize-parameter.d.ts.map +1 -0
- package/dist/http-testing/serialize-parameter.js +51 -0
- package/dist/http-testing/serialize-parameter.js.map +1 -0
- package/dist/http-testing/serialize-request.d.ts +7 -0
- package/dist/http-testing/serialize-request.d.ts.map +1 -0
- package/dist/http-testing/serialize-request.js +112 -0
- package/dist/http-testing/serialize-request.js.map +1 -0
- package/dist/http-testing/test-builder/builder-pipeline.d.ts +4 -0
- package/dist/http-testing/test-builder/builder-pipeline.d.ts.map +1 -0
- package/dist/http-testing/test-builder/builder-pipeline.js +2 -0
- package/dist/http-testing/test-builder/builder-pipeline.js.map +1 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.d.ts +9 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.d.ts.map +1 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.js +114 -0
- package/dist/http-testing/test-builder/compilers/http-filter-to-transaction-filter.js.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.d.ts +4 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.d.ts.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.js +36 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-response-checker.js.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.d.ts +4 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.d.ts.map +1 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.js +65 -0
- package/dist/http-testing/test-builder/compilers/response-scoped-to-transaction-validator.js.map +1 -0
- package/dist/http-testing/test-builder/extract-value-from-response.d.ts +4 -0
- package/dist/http-testing/test-builder/extract-value-from-response.d.ts.map +1 -0
- package/dist/http-testing/test-builder/extract-value-from-response.js +16 -0
- package/dist/http-testing/test-builder/extract-value-from-response.js.map +1 -0
- package/dist/http-testing/test-builder/override-request-template.d.ts +4 -0
- package/dist/http-testing/test-builder/override-request-template.d.ts.map +1 -0
- package/dist/http-testing/test-builder/override-request-template.js +33 -0
- package/dist/http-testing/test-builder/override-request-template.js.map +1 -0
- package/dist/http-testing/test-builder/reply-step-builder.d.ts +10 -0
- package/dist/http-testing/test-builder/reply-step-builder.d.ts.map +1 -0
- package/dist/http-testing/test-builder/reply-step-builder.js +39 -0
- package/dist/http-testing/test-builder/reply-step-builder.js.map +1 -0
- package/dist/http-testing/test-builder/single-step-test-builder.d.ts +42 -0
- package/dist/http-testing/test-builder/single-step-test-builder.d.ts.map +1 -0
- package/dist/http-testing/test-builder/single-step-test-builder.js +112 -0
- package/dist/http-testing/test-builder/single-step-test-builder.js.map +1 -0
- package/dist/http-testing/validate/ajv.d.ts +3 -0
- package/dist/http-testing/validate/ajv.d.ts.map +1 -0
- package/dist/http-testing/validate/ajv.js +7 -0
- package/dist/http-testing/validate/ajv.js.map +1 -0
- package/dist/http-testing/validate/index.d.ts +9 -0
- package/dist/http-testing/validate/index.d.ts.map +1 -0
- package/dist/http-testing/validate/index.js +9 -0
- package/dist/http-testing/validate/index.js.map +1 -0
- package/dist/http-testing/validate/validate-body.d.ts +5 -0
- package/dist/http-testing/validate/validate-body.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-body.js +62 -0
- package/dist/http-testing/validate/validate-body.js.map +1 -0
- package/dist/http-testing/validate/validate-headers.d.ts +8 -0
- package/dist/http-testing/validate/validate-headers.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-headers.js +101 -0
- package/dist/http-testing/validate/validate-headers.js.map +1 -0
- package/dist/http-testing/validate/validate-request-body.d.ts +5 -0
- package/dist/http-testing/validate/validate-request-body.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-body.js +71 -0
- package/dist/http-testing/validate/validate-request-body.js.map +1 -0
- package/dist/http-testing/validate/validate-request-headers.d.ts +8 -0
- package/dist/http-testing/validate/validate-request-headers.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-headers.js +93 -0
- package/dist/http-testing/validate/validate-request-headers.js.map +1 -0
- package/dist/http-testing/validate/validate-request-path-parameters.d.ts +6 -0
- package/dist/http-testing/validate/validate-request-path-parameters.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-path-parameters.js +69 -0
- package/dist/http-testing/validate/validate-request-path-parameters.js.map +1 -0
- package/dist/http-testing/validate/validate-request-query-parameters.d.ts +7 -0
- package/dist/http-testing/validate/validate-request-query-parameters.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-request-query-parameters.js +91 -0
- package/dist/http-testing/validate/validate-request-query-parameters.js.map +1 -0
- package/dist/http-testing/validate/validate-response.d.ts +7 -0
- package/dist/http-testing/validate/validate-response.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-response.js +15 -0
- package/dist/http-testing/validate/validate-response.js.map +1 -0
- package/dist/http-testing/validate/validate-status-code.d.ts +3 -0
- package/dist/http-testing/validate/validate-status-code.d.ts.map +1 -0
- package/dist/http-testing/validate/validate-status-code.js +25 -0
- package/dist/http-testing/validate/validate-status-code.js.map +1 -0
- package/dist/http.d.ts +29 -0
- package/dist/http.d.ts.map +1 -0
- package/dist/http.js +2 -0
- package/dist/http.js.map +1 -0
- package/dist/index.d.ts +25 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/logger/log-level.d.ts +5 -0
- package/dist/logger/log-level.d.ts.map +1 -0
- package/dist/logger/log-level.js +24 -0
- package/dist/logger/log-level.js.map +1 -0
- package/dist/logger/logger.d.ts +13 -0
- package/dist/logger/logger.d.ts.map +1 -0
- package/dist/logger/logger.js +2 -0
- package/dist/logger/logger.js.map +1 -0
- package/dist/logger/noop.logger.d.ts +15 -0
- package/dist/logger/noop.logger.d.ts.map +1 -0
- package/dist/logger/noop.logger.js +18 -0
- package/dist/logger/noop.logger.js.map +1 -0
- package/dist/logger/text.logger.d.ts +16 -0
- package/dist/logger/text.logger.d.ts.map +1 -0
- package/dist/logger/text.logger.js +51 -0
- package/dist/logger/text.logger.js.map +1 -0
- package/dist/report-sorter.d.ts +16 -0
- package/dist/report-sorter.d.ts.map +1 -0
- package/dist/report-sorter.js +193 -0
- package/dist/report-sorter.js.map +1 -0
- package/dist/rules/ajv-validate.d.ts +2 -0
- package/dist/rules/ajv-validate.d.ts.map +1 -0
- package/dist/rules/ajv-validate.js +4 -0
- package/dist/rules/ajv-validate.js.map +1 -0
- package/dist/rules/captured-trace-to-string.d.ts +3 -0
- package/dist/rules/captured-trace-to-string.d.ts.map +1 -0
- package/dist/rules/captured-trace-to-string.js +27 -0
- package/dist/rules/captured-trace-to-string.js.map +1 -0
- package/dist/rules/common-http-converters.d.ts +8 -0
- package/dist/rules/common-http-converters.d.ts.map +1 -0
- package/dist/rules/common-http-converters.js +58 -0
- package/dist/rules/common-http-converters.js.map +1 -0
- package/dist/rules/contexts.d.ts +63 -0
- package/dist/rules/contexts.d.ts.map +1 -0
- package/dist/rules/contexts.js +2 -0
- package/dist/rules/contexts.js.map +1 -0
- package/dist/rules/index.d.ts +16 -0
- package/dist/rules/index.d.ts.map +1 -0
- package/dist/rules/index.js +16 -0
- package/dist/rules/index.js.map +1 -0
- package/dist/rules/rule-builder.d.ts +34 -0
- package/dist/rules/rule-builder.d.ts.map +1 -0
- package/dist/rules/rule-builder.js +112 -0
- package/dist/rules/rule-builder.js.map +1 -0
- package/dist/rules/rule-configuration.d.ts +10 -0
- package/dist/rules/rule-configuration.d.ts.map +1 -0
- package/dist/rules/rule-configuration.js +2 -0
- package/dist/rules/rule-configuration.js.map +1 -0
- package/dist/rules/rule-filter.d.ts +9 -0
- package/dist/rules/rule-filter.d.ts.map +1 -0
- package/dist/rules/rule-filter.js +12 -0
- package/dist/rules/rule-filter.js.map +1 -0
- package/dist/rules/rule-fn.d.ts +7 -0
- package/dist/rules/rule-fn.d.ts.map +1 -0
- package/dist/rules/rule-fn.js +2 -0
- package/dist/rules/rule-fn.js.map +1 -0
- package/dist/rules/rule-loader.d.ts +8 -0
- package/dist/rules/rule-loader.d.ts.map +1 -0
- package/dist/rules/rule-loader.js +124 -0
- package/dist/rules/rule-loader.js.map +1 -0
- package/dist/rules/rule-meta.d.ts +20 -0
- package/dist/rules/rule-meta.d.ts.map +1 -0
- package/dist/rules/rule-meta.js +18 -0
- package/dist/rules/rule-meta.js.map +1 -0
- package/dist/rules/rule-runner.d.ts +30 -0
- package/dist/rules/rule-runner.d.ts.map +1 -0
- package/dist/rules/rule-runner.js +129 -0
- package/dist/rules/rule-runner.js.map +1 -0
- package/dist/rules/rule-set.d.ts +9 -0
- package/dist/rules/rule-set.d.ts.map +1 -0
- package/dist/rules/rule-set.js +2 -0
- package/dist/rules/rule-set.js.map +1 -0
- package/dist/rules/rule-severity.d.ts +10 -0
- package/dist/rules/rule-severity.d.ts.map +1 -0
- package/dist/rules/rule-severity.js +12 -0
- package/dist/rules/rule-severity.js.map +1 -0
- package/dist/rules/rule-violation.d.ts +22 -0
- package/dist/rules/rule-violation.d.ts.map +1 -0
- package/dist/rules/rule-violation.js +2 -0
- package/dist/rules/rule-violation.js.map +1 -0
- package/dist/rules/rule.d.ts +10 -0
- package/dist/rules/rule.d.ts.map +1 -0
- package/dist/rules/rule.js +2 -0
- package/dist/rules/rule.js.map +1 -0
- package/dist/rules/traffic.d.ts +25 -0
- package/dist/rules/traffic.d.ts.map +1 -0
- package/dist/rules/traffic.js +2 -0
- package/dist/rules/traffic.js.map +1 -0
- package/dist/thymian-plugin.d.ts +38 -0
- package/dist/thymian-plugin.d.ts.map +1 -0
- package/dist/thymian-plugin.js +24 -0
- package/dist/thymian-plugin.js.map +1 -0
- package/dist/thymian.d.ts +85 -0
- package/dist/thymian.d.ts.map +1 -0
- package/dist/thymian.error.d.ts +26 -0
- package/dist/thymian.error.d.ts.map +1 -0
- package/dist/thymian.error.js +34 -0
- package/dist/thymian.error.js.map +1 -0
- package/dist/thymian.js +322 -0
- package/dist/thymian.js.map +1 -0
- package/dist/utils.d.ts +40 -0
- package/dist/utils.d.ts.map +1 -0
- package/dist/utils.js +139 -0
- package/dist/utils.js.map +1 -0
- package/package.json +64 -0
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { JSONSchemaType } from 'ajv/dist/2020.js';
|
|
2
|
+
/**
|
|
3
|
+
* Severity levels for report items.
|
|
4
|
+
*
|
|
5
|
+
* **Mapping from {@link import('../rules/rule-severity.js').RuleSeverity RuleSeverity}:**
|
|
6
|
+
* - `RuleSeverity 'error'` → `ThymianReportSeverity 'error'`
|
|
7
|
+
* - `RuleSeverity 'warn'` → `ThymianReportSeverity 'warn'`
|
|
8
|
+
* - `RuleSeverity 'hint'` → `ThymianReportSeverity 'hint'`
|
|
9
|
+
* - `RuleSeverity 'off'` → never produces report items (filtered by the rule runner)
|
|
10
|
+
*
|
|
11
|
+
* **Non-rule informational items:**
|
|
12
|
+
* - `'info'` is reserved for operational/informational items that originate
|
|
13
|
+
* from direct report emission (e.g., skipped test cases) rather than from
|
|
14
|
+
* rule evaluation. There is no corresponding `RuleSeverity` value.
|
|
15
|
+
*/
|
|
16
|
+
export type ThymianReportSeverity = 'info' | 'hint' | 'warn' | 'error';
|
|
17
|
+
/**
|
|
18
|
+
* Location information for a report item or section.
|
|
19
|
+
*
|
|
20
|
+
* Supports the location semantics for all three validation contexts:
|
|
21
|
+
* - **lint**: `file` carries spec file path/URI and position within the document.
|
|
22
|
+
* - **test**: `format` carries the graph element (node/edge) that identifies the
|
|
23
|
+
* endpoint or request path under test.
|
|
24
|
+
* - **analyze**: `format` carries the graph element for the traffic analysis context,
|
|
25
|
+
* optionally combined with `file` when traffic has a source file.
|
|
26
|
+
*
|
|
27
|
+
* Both sub-objects are optional and may coexist on the same location.
|
|
28
|
+
*/
|
|
29
|
+
export interface ThymianReportLocation {
|
|
30
|
+
file?: {
|
|
31
|
+
path?: string;
|
|
32
|
+
uri?: string;
|
|
33
|
+
position?: {
|
|
34
|
+
line: number;
|
|
35
|
+
column: number;
|
|
36
|
+
offset: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
format?: {
|
|
40
|
+
elementType: 'node' | 'edge';
|
|
41
|
+
elementId: string;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* A single finding or informational item within a report section.
|
|
46
|
+
*
|
|
47
|
+
* Items produced by the rule-violation pipeline (via `createReportFromViolations`)
|
|
48
|
+
* always carry `ruleName` sourced from {@link import('../rules/rule-violation.js').EvaluatedRuleViolation EvaluatedRuleViolation}.
|
|
49
|
+
*
|
|
50
|
+
* Items produced by direct report emission (via `ctx.report()`) may omit
|
|
51
|
+
* `ruleName` when they represent operational status rather than rule findings
|
|
52
|
+
* (e.g., skipped or failed test cases).
|
|
53
|
+
*/
|
|
54
|
+
export interface ThymianReportItem {
|
|
55
|
+
severity: ThymianReportSeverity;
|
|
56
|
+
message: string;
|
|
57
|
+
/** Stable rule identifier. Present for rule-originated findings; may be absent for operational/informational items. */
|
|
58
|
+
ruleName?: string;
|
|
59
|
+
details?: string;
|
|
60
|
+
links?: {
|
|
61
|
+
title?: string;
|
|
62
|
+
url: string;
|
|
63
|
+
}[];
|
|
64
|
+
location?: ThymianReportLocation;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* A group of related report items under a common heading.
|
|
68
|
+
*
|
|
69
|
+
* In the standard violation pipeline, headings are derived from the resolved
|
|
70
|
+
* violation location (e.g., "GET /users → 200 OK").
|
|
71
|
+
*/
|
|
72
|
+
export interface ThymianReportSection {
|
|
73
|
+
heading: string;
|
|
74
|
+
items: ThymianReportItem[];
|
|
75
|
+
location?: ThymianReportLocation;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* The canonical shared report model for all validation contexts.
|
|
79
|
+
*
|
|
80
|
+
* `ThymianReport` is the formatter-agnostic representation of validation
|
|
81
|
+
* findings emitted through the `core.report` event. All lint, test, and
|
|
82
|
+
* analyze workflows produce results through this single model before any
|
|
83
|
+
* formatter-specific rendering occurs.
|
|
84
|
+
*
|
|
85
|
+
* - `source` identifies the producing plugin.
|
|
86
|
+
* - `message` provides a human-readable summary of the validation run.
|
|
87
|
+
* - `sections` groups findings by location heading.
|
|
88
|
+
* - `metadata` carries optional context-specific information (e.g., validation
|
|
89
|
+
* mode, config source) without polluting the core model structure.
|
|
90
|
+
*
|
|
91
|
+
* Formatters (text, markdown, CSV) translate this model into presentation
|
|
92
|
+
* output. Renderer differences are limited to styling, grouping, and stream
|
|
93
|
+
* routing — not validation meaning.
|
|
94
|
+
*/
|
|
95
|
+
export interface ThymianReport {
|
|
96
|
+
source: string;
|
|
97
|
+
message: string;
|
|
98
|
+
sections?: ThymianReportSection[];
|
|
99
|
+
metadata?: Record<string, unknown>;
|
|
100
|
+
}
|
|
101
|
+
export type ReportFn = (report: ThymianReport) => void;
|
|
102
|
+
export type ReportEvent = ThymianReport;
|
|
103
|
+
export declare const thymianReportSchema: JSONSchemaType<ReportEvent>;
|
|
104
|
+
//# sourceMappingURL=report.event.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{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AAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAClC,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,MAAM,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,aAAa,KAAK,IAAI,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG,aAAa,CAAC;AA4FxC,eAAO,MAAM,mBAAmB,EAAE,cAAc,CAAC,WAAW,CAoBjB,CAAC"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
const thymianReportLocationSchema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
nullable: true,
|
|
4
|
+
additionalProperties: false,
|
|
5
|
+
properties: {
|
|
6
|
+
file: {
|
|
7
|
+
type: 'object',
|
|
8
|
+
nullable: true,
|
|
9
|
+
additionalProperties: false,
|
|
10
|
+
properties: {
|
|
11
|
+
path: { type: 'string', nullable: true },
|
|
12
|
+
uri: { type: 'string', nullable: true },
|
|
13
|
+
position: {
|
|
14
|
+
type: 'object',
|
|
15
|
+
nullable: true,
|
|
16
|
+
additionalProperties: false,
|
|
17
|
+
required: ['line', 'column', 'offset'],
|
|
18
|
+
properties: {
|
|
19
|
+
line: { type: 'integer', nullable: false },
|
|
20
|
+
column: { type: 'integer', nullable: false },
|
|
21
|
+
offset: { type: 'integer', nullable: false },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
format: {
|
|
27
|
+
type: 'object',
|
|
28
|
+
nullable: true,
|
|
29
|
+
additionalProperties: false,
|
|
30
|
+
required: ['elementType', 'elementId'],
|
|
31
|
+
properties: {
|
|
32
|
+
elementType: {
|
|
33
|
+
type: 'string',
|
|
34
|
+
enum: ['node', 'edge'],
|
|
35
|
+
nullable: false,
|
|
36
|
+
},
|
|
37
|
+
elementId: { type: 'string', nullable: false },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
};
|
|
42
|
+
const thymianReportItemSchema = {
|
|
43
|
+
type: 'object',
|
|
44
|
+
nullable: false,
|
|
45
|
+
additionalProperties: false,
|
|
46
|
+
required: ['severity', 'message'],
|
|
47
|
+
properties: {
|
|
48
|
+
severity: {
|
|
49
|
+
type: 'string',
|
|
50
|
+
enum: ['info', 'hint', 'warn', 'error'],
|
|
51
|
+
nullable: false,
|
|
52
|
+
},
|
|
53
|
+
message: { type: 'string', nullable: false },
|
|
54
|
+
ruleName: { type: 'string', nullable: true },
|
|
55
|
+
details: { type: 'string', nullable: true },
|
|
56
|
+
links: {
|
|
57
|
+
type: 'array',
|
|
58
|
+
nullable: true,
|
|
59
|
+
items: {
|
|
60
|
+
type: 'object',
|
|
61
|
+
nullable: false,
|
|
62
|
+
required: ['url'],
|
|
63
|
+
additionalProperties: false,
|
|
64
|
+
properties: {
|
|
65
|
+
title: { type: 'string', nullable: true },
|
|
66
|
+
url: { type: 'string', nullable: false },
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
location: thymianReportLocationSchema,
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
const thymianReportSectionSchema = {
|
|
74
|
+
type: 'object',
|
|
75
|
+
nullable: false,
|
|
76
|
+
additionalProperties: false,
|
|
77
|
+
required: ['heading', 'items'],
|
|
78
|
+
properties: {
|
|
79
|
+
heading: { type: 'string', nullable: false },
|
|
80
|
+
items: {
|
|
81
|
+
type: 'array',
|
|
82
|
+
nullable: false,
|
|
83
|
+
items: thymianReportItemSchema,
|
|
84
|
+
},
|
|
85
|
+
location: thymianReportLocationSchema,
|
|
86
|
+
},
|
|
87
|
+
};
|
|
88
|
+
export const thymianReportSchema = {
|
|
89
|
+
type: 'object',
|
|
90
|
+
nullable: false,
|
|
91
|
+
additionalProperties: false,
|
|
92
|
+
required: ['source', 'message'],
|
|
93
|
+
properties: {
|
|
94
|
+
source: { type: 'string', nullable: false },
|
|
95
|
+
message: { type: 'string', nullable: false },
|
|
96
|
+
sections: {
|
|
97
|
+
type: 'array',
|
|
98
|
+
nullable: true,
|
|
99
|
+
items: thymianReportSectionSchema,
|
|
100
|
+
},
|
|
101
|
+
metadata: {
|
|
102
|
+
type: 'object',
|
|
103
|
+
nullable: true,
|
|
104
|
+
required: [],
|
|
105
|
+
additionalProperties: true,
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
};
|
|
109
|
+
//# sourceMappingURL=report.event.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"report.event.js","sourceRoot":"","sources":["../../src/events/report.event.ts"],"names":[],"mappings":"AAuGA,MAAM,2BAA2B,GAAG;IAClC,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,oBAAoB,EAAE,KAAK;IAC3B,UAAU,EAAE;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;gBACxC,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE;gBACvC,QAAQ,EAAE;oBACR,IAAI,EAAE,QAAQ;oBACd,QAAQ,EAAE,IAAI;oBACd,oBAAoB,EAAE,KAAK;oBAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAU;oBAC/C,UAAU,EAAE;wBACV,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;wBAC1C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;wBAC5C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAE;qBAC7C;iBACF;aACF;SACF;QACD,MAAM,EAAE;YACN,IAAI,E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G,CAAC,CA8BtD;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAgDpD"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
const REF_KEY = '$thymian-ref';
|
|
2
|
+
export function resolveCircularReferences(obj) {
|
|
3
|
+
const activeStack = new Map();
|
|
4
|
+
function recurse(current, path) {
|
|
5
|
+
if (typeof current !== 'object' || current === null) {
|
|
6
|
+
return current;
|
|
7
|
+
}
|
|
8
|
+
if (activeStack.has(current)) {
|
|
9
|
+
return { [REF_KEY]: activeStack.get(current) };
|
|
10
|
+
}
|
|
11
|
+
activeStack.set(current, path);
|
|
12
|
+
let result;
|
|
13
|
+
if (Array.isArray(current)) {
|
|
14
|
+
result = current.map((item, index) => recurse(item, `${path}/${index}`));
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
result = {};
|
|
18
|
+
for (const [key, value] of Object.entries(current)) {
|
|
19
|
+
result[key] = recurse(value, `${path}/${key}`);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
activeStack.delete(current);
|
|
23
|
+
return result;
|
|
24
|
+
}
|
|
25
|
+
return recurse(obj, '#');
|
|
26
|
+
}
|
|
27
|
+
export function resolveThymianPointers(root) {
|
|
28
|
+
const index = new Map();
|
|
29
|
+
function buildIndex(current, path) {
|
|
30
|
+
if (current === null || typeof current !== 'object') {
|
|
31
|
+
return;
|
|
32
|
+
}
|
|
33
|
+
index.set(path, current);
|
|
34
|
+
if (Array.isArray(current)) {
|
|
35
|
+
current.forEach((item, i) => buildIndex(item, `${path}/${i}`));
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
for (const key in current) {
|
|
39
|
+
if (key !== REF_KEY) {
|
|
40
|
+
buildIndex(current[key], `${path}/${key}`);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
function link(current) {
|
|
46
|
+
if (current === null || typeof current !== 'object') {
|
|
47
|
+
return current;
|
|
48
|
+
}
|
|
49
|
+
if (Object.hasOwn(current, REF_KEY)) {
|
|
50
|
+
const targetPath = current[REF_KEY];
|
|
51
|
+
if (!index.has(targetPath)) {
|
|
52
|
+
throw new Error(`Pointer ${targetPath} could not be resolved.`);
|
|
53
|
+
}
|
|
54
|
+
return index.get(targetPath);
|
|
55
|
+
}
|
|
56
|
+
if (Array.isArray(current)) {
|
|
57
|
+
for (let i = 0; i < current.length; i++) {
|
|
58
|
+
current[i] = link(current[i]);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
else {
|
|
62
|
+
for (const key in current) {
|
|
63
|
+
current[key] = link(current[key]);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return current;
|
|
67
|
+
}
|
|
68
|
+
buildIndex(root, '#');
|
|
69
|
+
return link(root);
|
|
70
|
+
}
|
|
71
|
+
//# sourceMappingURL=circular-references.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"circular-references.js","sourceRoot":"","sources":["../../src/format/circular-references.ts"],"names":[],"mappings":"AAAA,MAAM,OAAO,GAAG,cAAc,CAAC;AAE/B,MAAM,UAAU,yBAAyB,CAAI,GAAM;IACjD,MAAM,WAAW,GAAG,IAAI,GAAG,EAAE,CAAC;IAE9B,SAAS,OAAO,CAAC,OAAY,EAAE,IAAY;QACzC,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI,EAAE,CAAC;YACpD,OAAO,OAAO,CAAC;QACjB,CAAC;QAED,IAAI,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;YAC7B,OAAO,EAAE,CAAC,OAAO,CAAC,EAAE,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,CAAC;QACjD,CAAC;QAED,WAAW,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;QAE/B,IAAI,MAAgD,CAAC;QACrD,IAAI,KAAK,CAAC,OAAO,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FormatLocation } from '../format-location.js';
|
|
2
|
+
export interface ThymianBaseEdge {
|
|
3
|
+
type: string;
|
|
4
|
+
label: string;
|
|
5
|
+
extensions?: Record<PropertyKey, unknown>;
|
|
6
|
+
sourceLocation?: ThymianFormatLocation;
|
|
7
|
+
sourceName: string;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.d.ts","sourceRoot":"","sources":["../../../src/format/edges/edge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAEnE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC1C,cAAc,CAAC,EAAE,qBAAqB,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edge.js","sourceRoot":"","sources":["../../../src/format/edges/edge.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-sample.edge.d.ts","sourceRoot":"","sources":["../../../src/format/edges/has-sample.edge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,WAAW,SAAU,SAAQ,eAAe;IAChD,IAAI,EAAE,YAAY,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"has-sample.edge.js","sourceRoot":"","sources":["../../../src/format/edges/has-sample.edge.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ThymianBaseEdge } from './edge.js';
|
|
2
|
+
export interface HttpLink extends ThymianBaseEdge {
|
|
3
|
+
type: 'http-link';
|
|
4
|
+
headers?: Record<string, unknown>;
|
|
5
|
+
queryParameters?: Record<string, unknown>;
|
|
6
|
+
cookies?: Record<string, unknown>;
|
|
7
|
+
pathParameters?: Record<string, unknown>;
|
|
8
|
+
body?: unknown;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=http-link.edge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-link.edge.d.ts","sourceRoot":"","sources":["../../../src/format/edges/http-link.edge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,WAAW,QAAS,SAAQ,eAAe;IAC/C,IAAI,EAAE,WAAW,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzC,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-link.edge.js","sourceRoot":"","sources":["../../../src/format/edges/http-link.edge.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-transaction.edge.d.ts","sourceRoot":"","sources":["../../../src/format/edges/http-transaction.edge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,WAAW,eAAgB,SAAQ,eAAe;IACtD,IAAI,EAAE,kBAAkB,CAAC;CAC1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-transaction.edge.js","sourceRoot":"","sources":["../../../src/format/edges/http-transaction.edge.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-secured-with.edge.d.ts","sourceRoot":"","sources":["../../../src/format/edges/is-secured-with.edge.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,WAAW,aAAc,SAAQ,eAAe;IACpD,IAAI,EAAE,YAAY,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-secured-with.edge.js","sourceRoot":"","sources":["../../../src/format/edges/is-secured-with.edge.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sample-http-transaction.edge.d.ts","sourceRoot":"","sources":["../../../src/format/edges/sample-http-transaction.edge.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,MAAM,WAAW,qBAAsB,SAAQ,eAAe;IAC5D,IAAI,EAAE,yBAAyB,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sample-http-transaction.edge.js","sourceRoot":"","sources":["../../../src/format/edges/sample-http-transaction.edge.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type ThymianFormatPosition = {
|
|
2
|
+
line: number;
|
|
3
|
+
column: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
};
|
|
6
|
+
export type ThymianFormatLocation = ({
|
|
7
|
+
path: string;
|
|
8
|
+
} | {
|
|
9
|
+
uri: string;
|
|
10
|
+
}) & {
|
|
11
|
+
position?: ThymianFormatPosition;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=format-location.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-location.d.ts","sourceRoot":"","sources":["../../src/format/format-location.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,CAChC;IACE,IAAI,EAAE,MAAM,CAAC;CACd,GACD;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,CAClB,GAAG;IACF,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CAClC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-location.js","sourceRoot":"","sources":["../../src/format/format-location.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { HttpFilterExpression } from '../http-filter.js';
|
|
2
|
+
import { ThymianFormat, type ThymianHttpTransaction } from './index.js';
|
|
3
|
+
export type TransactionFilterFn = (transaction: ThymianHttpTransaction, transactions: ThymianHttpTransaction[], format: ThymianFormat) => boolean;
|
|
4
|
+
export declare function httpFilterExpressionToTransactionFilter(expression: HttpFilterExpression): TransactionFilterFn;
|
|
5
|
+
//# sourceMappingURL=http-filter-expression-to-transaction-filter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-filter-expression-to-transaction-filter.d.ts","sourceRoot":"","sources":["../../src/format/http-filter-expression-to-transaction-filter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAM9D,OAAO,EAAE,aAAa,EAAE,KAAK,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG,CAChC,WAAW,EAAE,sBAAsB,EACnC,YAAY,EAAE,sBAAsB,EAAE,EACtC,MAAM,EAAE,aAAa,KAClB,OAAO,CAAC;AAgHb,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,oBAAoB,GAC/B,mBAAmB,CAErB"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { createFilterVisitor, visitHttpFilter, } from '../http-filter-visitor.js';
|
|
2
|
+
import { equalsIgnoreCase } from '../utils.js';
|
|
3
|
+
import { ThymianFormat } from './index.js';
|
|
4
|
+
const visitor = createFilterVisitor({
|
|
5
|
+
visitMethod({ method }) {
|
|
6
|
+
if (typeof method === 'undefined') {
|
|
7
|
+
return () => false;
|
|
8
|
+
}
|
|
9
|
+
return (transaction) => equalsIgnoreCase(transaction.thymianReq.method, method);
|
|
10
|
+
},
|
|
11
|
+
visitRequestHeader({ header }) {
|
|
12
|
+
if (typeof header === 'undefined') {
|
|
13
|
+
return () => false;
|
|
14
|
+
}
|
|
15
|
+
return (transaction) => equalsIgnoreCase(header, ...Object.keys(transaction.thymianReq.headers));
|
|
16
|
+
},
|
|
17
|
+
visitQueryParam({ param }) {
|
|
18
|
+
if (typeof param === 'undefined') {
|
|
19
|
+
return () => false;
|
|
20
|
+
}
|
|
21
|
+
return (transaction) => equalsIgnoreCase(param, ...Object.keys(transaction.thymianReq.queryParameters));
|
|
22
|
+
},
|
|
23
|
+
visitPath({ path }) {
|
|
24
|
+
if (typeof path === 'undefined') {
|
|
25
|
+
return () => false;
|
|
26
|
+
}
|
|
27
|
+
return (transaction) => transaction.thymianReq.path.endsWith(path);
|
|
28
|
+
},
|
|
29
|
+
visitHasResponse({ filter }) {
|
|
30
|
+
const nestedFilter = httpFilterExpressionToTransactionFilter(filter);
|
|
31
|
+
return (transaction, transactions, format) => nestedFilter(transaction, transactions, format);
|
|
32
|
+
},
|
|
33
|
+
visitIsAuthorized({ isAuthorized }) {
|
|
34
|
+
return (transaction, transactions, format) => format.requestIsSecured(transaction.thymianReqId) === isAuthorized;
|
|
35
|
+
},
|
|
36
|
+
visitOrigin({ origin }) {
|
|
37
|
+
return (transaction) => {
|
|
38
|
+
const req = transaction.thymianReq;
|
|
39
|
+
return `${req.protocol}://${req.host}:${req.port}` === origin;
|
|
40
|
+
};
|
|
41
|
+
},
|
|
42
|
+
visitHasBody({ hasBody }) {
|
|
43
|
+
return (transaction) => transaction.thymianReq.bodyRequired === hasBody;
|
|
44
|
+
},
|
|
45
|
+
visitPort({ port }) {
|
|
46
|
+
return (transaction) => transaction.thymianReq.port === port;
|
|
47
|
+
},
|
|
48
|
+
visitRequestMediaType({ mediaType }) {
|
|
49
|
+
return (transaction) => transaction.thymianReq.mediaType === mediaType;
|
|
50
|
+
},
|
|
51
|
+
visitUrl({ url }) {
|
|
52
|
+
return (transaction) => {
|
|
53
|
+
const req = transaction.thymianReq;
|
|
54
|
+
return (`${req.protocol}://${req.host}:${req.port}${req.path.startsWith('/') ? req.path : '/' + req.path}` === url);
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
visitProtocol({ protocol }) {
|
|
58
|
+
return (transaction) => transaction.thymianReq.protocol === protocol;
|
|
59
|
+
},
|
|
60
|
+
visitStatusCode({ code }) {
|
|
61
|
+
return (transaction) => transaction.thymianRes.statusCode === code;
|
|
62
|
+
},
|
|
63
|
+
visitHasResponseBody({ hasBody }) {
|
|
64
|
+
return (transaction) => !!transaction.thymianRes.schema === hasBody;
|
|
65
|
+
},
|
|
66
|
+
visitResponseHeader({ header }) {
|
|
67
|
+
if (typeof header === 'undefined') {
|
|
68
|
+
return () => false;
|
|
69
|
+
}
|
|
70
|
+
return (transaction) => equalsIgnoreCase(header, ...Object.keys(transaction.thymianRes.headers));
|
|
71
|
+
},
|
|
72
|
+
visitStatusCodeRange({ start, end }) {
|
|
73
|
+
return (transaction) => {
|
|
74
|
+
const statusCode = transaction.thymianRes.statusCode;
|
|
75
|
+
return (Number.isInteger(statusCode) && statusCode >= start && statusCode <= end);
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
visitResponseMediaType({ mediaType }) {
|
|
79
|
+
return (transaction) => transaction.thymianRes.mediaType === mediaType;
|
|
80
|
+
},
|
|
81
|
+
visitResponseTrailer() {
|
|
82
|
+
throw new Error('Response trailers are not currently supported.');
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
export function httpFilterExpressionToTransactionFilter(expression) {
|
|
86
|
+
return visitHttpFilter(expression, visitor);
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=http-filter-expression-to-transaction-filter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-filter-expression-to-transaction-filter.js","sourceRoot":"","sources":["../../src/format/http-filter-expression-to-transaction-filter.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,eAAe,GAChB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,aAAa,EAA+B,MAAM,YAAY,CAAC;AAQxE,MAAM,OAAO,GAAG,mBAAmB,CAAsB;IACvD,WAAW,CAAC,EAAE,MAAM,EAAE;QACpB,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC;QACrB,CAAC;QACD,OAAO,CAAC,WAAmC,EAAE,EAAE,CAC7C,gBAAgB,CAAC,WAAW,CAAC,UAAU,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;IACD,kBAAkB,CAAC,EAAE,MAAM,EAAE;QAC3B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;YAClC,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC;QACrB,CAAC;QACD,OAAO,CAAC,WAAmC,EAAE,EAAE,CAC7C,gBAAgB,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7E,CAAC;IACD,eAAe,CAAC,EAAE,KAAK,EAAE;QACvB,IAAI,OAAO,KAAK,KAAK,WAAW,EAAE,CAAC;YACjC,OAAO,GAAG,EAAE,CAAC,KAAK,CAAC;QACrB,CAAC;QACD,OAAO,CAAC,WAAmC,EAAE,EAAE,CAC7C,gBAAgB,CACd,KAAK,EACL,GAAG,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AC7C,gBAAgB,CAAC,MAAM,EAAE,GAAG,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7E,CAAC;IACD,oBAAoB,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE;QACjC,OAAO,CAAC,WAAmC,EAAE,EAAE;YAC7C,MAAM,UAAU,GAAG,WAAW,CAAC,UAAU,CAAC,UAAU,CAAC;YACrD,OAAO,CACL,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,IAAI,UAAU,IAAI,KAAK,IAAI,UAAU,IAAI,GAAG,CACzE,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC;IACD,sBAAsB,CAAC,EAAE,SAAS,EAAE;QAClC,OAAO,CAAC,WAAmC,EAAE,EAAE,CAC7C,WAAW,CAAC,UAAU,CAAC,SAAS,KAAK,SAAS,CAAC;IACnD,CAAC;IACD,oBAAoB;QAClB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;CACF,CAAC,CAAC;AAEH,MAAM,UAAU,uCAAuC,CACrD,UAAgC;IAEhC,OAAO,eAAe,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './edges/edge.js';
|
|
2
|
+
export * from './edges/http-link.edge.js';
|
|
3
|
+
export * from './edges/http-transaction.edge.js';
|
|
4
|
+
export * from './edges/is-secured-with.edge.js';
|
|
5
|
+
export * from './format-location.js';
|
|
6
|
+
export * from './nodes/http-request.node.js';
|
|
7
|
+
export * from './nodes/http-response.node.js';
|
|
8
|
+
export * from './nodes/node.js';
|
|
9
|
+
export * from './nodes/security-scheme.node.js';
|
|
10
|
+
export * from './parameter.js';
|
|
11
|
+
export * from './serialization-style/index.js';
|
|
12
|
+
export * from './thymian-format.js';
|
|
13
|
+
export * from './thymian-schema.js';
|
|
14
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/format/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './edges/edge.js';
|
|
2
|
+
export * from './edges/http-link.edge.js';
|
|
3
|
+
export * from './edges/http-transaction.edge.js';
|
|
4
|
+
export * from './edges/is-secured-with.edge.js';
|
|
5
|
+
export * from './format-location.js';
|
|
6
|
+
export * from './nodes/http-request.node.js';
|
|
7
|
+
export * from './nodes/http-response.node.js';
|
|
8
|
+
export * from './nodes/node.js';
|
|
9
|
+
export * from './nodes/security-scheme.node.js';
|
|
10
|
+
export * from './parameter.js';
|
|
11
|
+
export * from './serialization-style/index.js';
|
|
12
|
+
export * from './thymian-format.js';
|
|
13
|
+
export * from './thymian-schema.js';
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/format/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,kCAAkC,CAAC;AACjD,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Parameter } from '../parameter.js';
|
|
2
|
+
import type { SerializationStyle } from '../serialization-style/index.js';
|
|
3
|
+
import type { ThymianSchema } from '../thymian-schema.js';
|
|
4
|
+
import type { ThymianBaseNode } from './node.js';
|
|
5
|
+
export type Encoding = {
|
|
6
|
+
[propertyName: string]: {
|
|
7
|
+
contentType?: string;
|
|
8
|
+
headers: Record<string, Parameter>;
|
|
9
|
+
serializationStyle: SerializationStyle;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
export interface ThymianHttpRequest extends ThymianBaseNode {
|
|
13
|
+
type: 'http-request';
|
|
14
|
+
host: string;
|
|
15
|
+
port: number;
|
|
16
|
+
protocol: 'http' | 'https';
|
|
17
|
+
path: string;
|
|
18
|
+
method: string;
|
|
19
|
+
headers: Record<string, Parameter>;
|
|
20
|
+
queryParameters: Record<string, Parameter>;
|
|
21
|
+
cookies: Record<string, Parameter>;
|
|
22
|
+
pathParameters: Record<string, Parameter>;
|
|
23
|
+
description?: string;
|
|
24
|
+
bodyRequired?: boolean;
|
|
25
|
+
body?: ThymianSchema;
|
|
26
|
+
mediaType: string;
|
|
27
|
+
encoding?: Encoding;
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=http-request.node.d.ts.map
|