@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,437 @@
|
|
|
1
|
+
import { createHash } from 'node:crypto';
|
|
2
|
+
import { MultiDirectedGraph } from 'graphology';
|
|
3
|
+
import { match } from 'path-to-regexp';
|
|
4
|
+
import stringify from 'safe-stable-stringify';
|
|
5
|
+
import { httpStatusCodeToPhrase, isValidHttpStatusCode, } from '../http-status-codes/index.js';
|
|
6
|
+
import { ThymianBaseError } from '../thymian.error.js';
|
|
7
|
+
import { capitalizeFirstChar, equalsIgnoreCase, getContentType, httpRequestToLabel, httpResponseToLabel, normalizeUrl, thymianRequestToOrigin, } from '../utils.js';
|
|
8
|
+
import { matchObjects } from '../utils.js';
|
|
9
|
+
import { resolveCircularReferences, resolveThymianPointers, } from './circular-references.js';
|
|
10
|
+
import { httpFilterExpressionToTransactionFilter } from './http-filter-expression-to-transaction-filter.js';
|
|
11
|
+
import { httpRequestToThymianHttpRequest, httpResponseToThymianHttpResponse, } from './utils.js';
|
|
12
|
+
export function isNodeType(node, type) {
|
|
13
|
+
return node.type === type;
|
|
14
|
+
}
|
|
15
|
+
export function isEdgeType(edge, type) {
|
|
16
|
+
return edge.type === type;
|
|
17
|
+
}
|
|
18
|
+
export function thymianHttpRequestToLabel(req) {
|
|
19
|
+
const label = `${req.method.toUpperCase()} ${req.protocol}://${req.host}:${req.port}${req.path.startsWith('/') ? req.path : '/' + req.path}`;
|
|
20
|
+
return req.mediaType ? label + ` - ${req.mediaType}` : label;
|
|
21
|
+
}
|
|
22
|
+
export function thymianHttpResponseToLabel(res) {
|
|
23
|
+
const statusCode = res.statusCode;
|
|
24
|
+
const phrase = isValidHttpStatusCode(statusCode)
|
|
25
|
+
? httpStatusCodeToPhrase[statusCode]
|
|
26
|
+
: '';
|
|
27
|
+
const label = `${statusCode} ${phrase.toUpperCase()}`;
|
|
28
|
+
return res.mediaType ? label + ` - ${res.mediaType}` : label;
|
|
29
|
+
}
|
|
30
|
+
export class ThymianFormat {
|
|
31
|
+
graph;
|
|
32
|
+
static ignoredNodeProperties = ['x', 'y'];
|
|
33
|
+
constructor(graph = new MultiDirectedGraph()) {
|
|
34
|
+
this.graph = graph;
|
|
35
|
+
}
|
|
36
|
+
addEdge(source, target, edge, options = {}) {
|
|
37
|
+
const e = {
|
|
38
|
+
label: edge.type,
|
|
39
|
+
...edge,
|
|
40
|
+
};
|
|
41
|
+
const id = this.hash(source, target, this.hashObj(e));
|
|
42
|
+
if (this.graph.hasEdge(id)) {
|
|
43
|
+
if (options.throwIfExists) {
|
|
44
|
+
throw new Error(`Edge with ID ${id} already exists.`);
|
|
45
|
+
}
|
|
46
|
+
return id;
|
|
47
|
+
}
|
|
48
|
+
return this.graph.addEdgeWithKey(id, source, target, {
|
|
49
|
+
label: edge.type,
|
|
50
|
+
...edge,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
addHttpLink(source, target, edge) {
|
|
54
|
+
const res = this.getNode(source);
|
|
55
|
+
const req = this.getNode(target);
|
|
56
|
+
if (!res || !req) {
|
|
57
|
+
throw new ThymianBaseError('Invalid HTTP link.', {
|
|
58
|
+
name: 'InvalidHttpLink',
|
|
59
|
+
ref: 'https://thymian.dev/references/errors/invalid-http-link/',
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
const label = `${thymianHttpResponseToLabel(res)} \u2192 ${thymianHttpRequestToLabel(req)}`;
|
|
63
|
+
return this.addEdge(source, target, {
|
|
64
|
+
label,
|
|
65
|
+
...edge,
|
|
66
|
+
type: 'http-link',
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
addResponseToRequest(requestId, response, transaction = {}, sourceName) {
|
|
70
|
+
const req = this.getNode(requestId);
|
|
71
|
+
if (!req) {
|
|
72
|
+
throw new Error(`Invalid request ID${requestId}. Cannot add response to request.`);
|
|
73
|
+
}
|
|
74
|
+
const resLabel = thymianHttpResponseToLabel(response);
|
|
75
|
+
const res = {
|
|
76
|
+
label: resLabel,
|
|
77
|
+
...response,
|
|
78
|
+
type: 'http-response',
|
|
79
|
+
};
|
|
80
|
+
// Generate unique ID by combining request ID with response hash
|
|
81
|
+
// This ensures each request has its own response nodes, even if response content is identical
|
|
82
|
+
const responseNodeId = this.hash(requestId, this.hashObj(res));
|
|
83
|
+
const resId = this.addResponse(res, responseNodeId);
|
|
84
|
+
return [
|
|
85
|
+
resId,
|
|
86
|
+
this.addEdge(requestId, resId, {
|
|
87
|
+
type: 'http-transaction',
|
|
88
|
+
...transaction,
|
|
89
|
+
label: `${req.label} \u2192 ${resLabel}`,
|
|
90
|
+
sourceName: sourceName ?? req.sourceName,
|
|
91
|
+
}),
|
|
92
|
+
];
|
|
93
|
+
}
|
|
94
|
+
addHttpTransaction(request, response, sourceName) {
|
|
95
|
+
const reqId = this.addRequest({ sourceName, ...request });
|
|
96
|
+
const [resId, transactionId] = this.addResponseToRequest(reqId, {
|
|
97
|
+
sourceName,
|
|
98
|
+
...response,
|
|
99
|
+
});
|
|
100
|
+
return [reqId, resId, transactionId];
|
|
101
|
+
}
|
|
102
|
+
addSecurityScheme(scheme) {
|
|
103
|
+
let label = capitalizeFirstChar(scheme.scheme);
|
|
104
|
+
if (scheme.scheme === 'bearer' && 'bearerFormat' in scheme) {
|
|
105
|
+
label += scheme.bearerFormat;
|
|
106
|
+
}
|
|
107
|
+
else if (scheme.scheme === 'api-key' && 'in' in scheme) {
|
|
108
|
+
label += scheme.in;
|
|
109
|
+
}
|
|
110
|
+
label += 'Auth';
|
|
111
|
+
return this.addNode({
|
|
112
|
+
label,
|
|
113
|
+
...scheme,
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
addRequest(request) {
|
|
117
|
+
const label = thymianHttpRequestToLabel(request);
|
|
118
|
+
return this.addNode({
|
|
119
|
+
label,
|
|
120
|
+
...request,
|
|
121
|
+
type: 'http-request',
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
addResponse(response, id) {
|
|
125
|
+
const label = thymianHttpResponseToLabel(response);
|
|
126
|
+
return this.addNode({
|
|
127
|
+
label,
|
|
128
|
+
...response,
|
|
129
|
+
type: 'http-response',
|
|
130
|
+
}, id);
|
|
131
|
+
}
|
|
132
|
+
addNode(node, id = this.hashObj(node), options = {}) {
|
|
133
|
+
if (this.graph.hasNode(id)) {
|
|
134
|
+
if (options.throwIfExists) {
|
|
135
|
+
throw new Error(`Node with ID ${id} already exists.`);
|
|
136
|
+
}
|
|
137
|
+
return id;
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
return this.graph.addNode(id, node);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
getNode(id) {
|
|
144
|
+
return this.graph.getNodeAttributes(id);
|
|
145
|
+
}
|
|
146
|
+
getEdge(id) {
|
|
147
|
+
return this.graph.getEdgeAttributes(id);
|
|
148
|
+
}
|
|
149
|
+
findNodeByExtension(extensionName, values) {
|
|
150
|
+
const id = this.graph.findNode((id, attributes) => attributes.extensions &&
|
|
151
|
+
extensionName in attributes.extensions &&
|
|
152
|
+
matchObjects(attributes.extensions[extensionName], values));
|
|
153
|
+
return this.graph.getNodeAttributes(id);
|
|
154
|
+
}
|
|
155
|
+
requestIsSecured(reqId) {
|
|
156
|
+
return !!this.graph.findOutEdge(reqId, (_, edge) => isEdgeType(edge, 'is-secured'));
|
|
157
|
+
}
|
|
158
|
+
getHttpResponsesOf(reqId) {
|
|
159
|
+
return this.graph.reduceOutNeighbors(reqId, (acc, id, attributes) => {
|
|
160
|
+
if (isNodeType(attributes, 'http-response')) {
|
|
161
|
+
const transactionId = this.graph.findEdge(reqId, id, (_, edge) => edge.type === 'http-transaction');
|
|
162
|
+
if (!transactionId) {
|
|
163
|
+
throw new Error('Invalid HTTP transaction.');
|
|
164
|
+
}
|
|
165
|
+
acc.push([id, attributes, transactionId]);
|
|
166
|
+
}
|
|
167
|
+
return acc;
|
|
168
|
+
}, []);
|
|
169
|
+
}
|
|
170
|
+
getNeighboursOfType(id, type) {
|
|
171
|
+
return this.graph.reduceNeighbors(id, (acc, id, node) => {
|
|
172
|
+
if (isNodeType(node, type)) {
|
|
173
|
+
acc.push([id, node]);
|
|
174
|
+
}
|
|
175
|
+
return acc;
|
|
176
|
+
}, []);
|
|
177
|
+
}
|
|
178
|
+
getThymianHttpRequestsWithResponses() {
|
|
179
|
+
return this.graph.reduceNodes((acc, id, node) => {
|
|
180
|
+
if (isNodeType(node, 'http-request')) {
|
|
181
|
+
const responses = this.getHttpResponsesOf(id);
|
|
182
|
+
acc.push([
|
|
183
|
+
node,
|
|
184
|
+
responses.map(([, res]) => res),
|
|
185
|
+
id,
|
|
186
|
+
responses.map(([id]) => id),
|
|
187
|
+
]);
|
|
188
|
+
}
|
|
189
|
+
return acc;
|
|
190
|
+
}, []);
|
|
191
|
+
}
|
|
192
|
+
getNodesByExtension(extensionName, values) {
|
|
193
|
+
return this.graph.reduceNodes((acc, _, attributes) => {
|
|
194
|
+
if (attributes.extensions &&
|
|
195
|
+
extensionName in attributes.extensions &&
|
|
196
|
+
matchObjects(attributes.extensions[extensionName], values)) {
|
|
197
|
+
acc.push(attributes);
|
|
198
|
+
}
|
|
199
|
+
return acc;
|
|
200
|
+
}, []);
|
|
201
|
+
}
|
|
202
|
+
getThymianHttpRequestsWithIds() {
|
|
203
|
+
return this.graph.reduceNodes((requests, id, node) => {
|
|
204
|
+
if (isNodeType(node, 'http-request')) {
|
|
205
|
+
requests.push([node, id]);
|
|
206
|
+
}
|
|
207
|
+
return requests;
|
|
208
|
+
}, []);
|
|
209
|
+
}
|
|
210
|
+
getHttpTransactions() {
|
|
211
|
+
return this.graph.reduceEdges((transactions, id, edge, source, target) => {
|
|
212
|
+
if (edge.type === 'http-transaction') {
|
|
213
|
+
transactions.push([source, target, id]);
|
|
214
|
+
}
|
|
215
|
+
return transactions;
|
|
216
|
+
}, []);
|
|
217
|
+
}
|
|
218
|
+
getThymianHttpRequests() {
|
|
219
|
+
return this.graph.reduceNodes((requests, id, node) => {
|
|
220
|
+
if (isNodeType(node, 'http-request')) {
|
|
221
|
+
requests.push(node);
|
|
222
|
+
}
|
|
223
|
+
return requests;
|
|
224
|
+
}, []);
|
|
225
|
+
}
|
|
226
|
+
getThymianHttpTransactionById(id) {
|
|
227
|
+
let edge;
|
|
228
|
+
try {
|
|
229
|
+
edge = this.getEdge(id);
|
|
230
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
231
|
+
}
|
|
232
|
+
catch (e) {
|
|
233
|
+
/*empty*/
|
|
234
|
+
}
|
|
235
|
+
if (!edge) {
|
|
236
|
+
return undefined;
|
|
237
|
+
}
|
|
238
|
+
const [reqId, resId] = this.graph.extremities(id);
|
|
239
|
+
if (!reqId || !resId) {
|
|
240
|
+
return undefined;
|
|
241
|
+
}
|
|
242
|
+
const req = this.getNode(reqId);
|
|
243
|
+
const res = this.getNode(resId);
|
|
244
|
+
if (!req || !res) {
|
|
245
|
+
return undefined;
|
|
246
|
+
}
|
|
247
|
+
return {
|
|
248
|
+
thymianReq: req,
|
|
249
|
+
thymianReqId: reqId,
|
|
250
|
+
thymianRes: res,
|
|
251
|
+
thymianResId: resId,
|
|
252
|
+
transactionId: id,
|
|
253
|
+
transaction: edge,
|
|
254
|
+
};
|
|
255
|
+
}
|
|
256
|
+
getThymianHttpTransactions() {
|
|
257
|
+
return this.graph.reduceEdges((transactions, id, edge, sourceId, targetId, source, target) => {
|
|
258
|
+
if (isEdgeType(edge, 'http-transaction')) {
|
|
259
|
+
transactions.push({
|
|
260
|
+
thymianReq: source,
|
|
261
|
+
thymianReqId: sourceId,
|
|
262
|
+
thymianRes: target,
|
|
263
|
+
thymianResId: targetId,
|
|
264
|
+
transactionId: id,
|
|
265
|
+
transaction: edge,
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
return transactions;
|
|
269
|
+
}, []);
|
|
270
|
+
}
|
|
271
|
+
matchTransaction(req, res) {
|
|
272
|
+
const edgeId = this.graph.findEdge((id, edge, sourceId, targetId, source, target) => {
|
|
273
|
+
if (!isEdgeType(edge, 'http-transaction')) {
|
|
274
|
+
return false;
|
|
275
|
+
}
|
|
276
|
+
const thymianReq = source;
|
|
277
|
+
const thymianRes = target;
|
|
278
|
+
const origin = thymianRequestToOrigin(thymianReq);
|
|
279
|
+
const reqMediaType = getContentType(req.headers);
|
|
280
|
+
const resMediaType = getContentType(res.headers);
|
|
281
|
+
const reqOriginUrl = normalizeUrl(req.origin);
|
|
282
|
+
return (equalsIgnoreCase(thymianReq.method, req.method) &&
|
|
283
|
+
equalsIgnoreCase(thymianReq.path, req.path) &&
|
|
284
|
+
equalsIgnoreCase(origin, reqOriginUrl.toString()) &&
|
|
285
|
+
thymianRes.statusCode === res.statusCode &&
|
|
286
|
+
equalsIgnoreCase(reqMediaType, thymianReq.mediaType) &&
|
|
287
|
+
equalsIgnoreCase(resMediaType, thymianRes.mediaType));
|
|
288
|
+
});
|
|
289
|
+
if (!edgeId) {
|
|
290
|
+
return undefined;
|
|
291
|
+
}
|
|
292
|
+
return [edgeId, ...this.graph.extremities(edgeId)];
|
|
293
|
+
}
|
|
294
|
+
matchHtpRequestByUrl(url) {
|
|
295
|
+
let urlObj;
|
|
296
|
+
if (/^(http|https)/.test(url)) {
|
|
297
|
+
urlObj = new URL(url);
|
|
298
|
+
}
|
|
299
|
+
else {
|
|
300
|
+
urlObj = new URL('http://localhost:8080' + url);
|
|
301
|
+
}
|
|
302
|
+
const pathname = urlObj.pathname;
|
|
303
|
+
return this.graph.reduceNodes((result, id, node) => {
|
|
304
|
+
if (isNodeType(node, 'http-request')) {
|
|
305
|
+
const path = node.path.replaceAll(/{([^}]+)}/gi, ':$1');
|
|
306
|
+
const matchFn = match(path);
|
|
307
|
+
const r = matchFn(pathname);
|
|
308
|
+
if (r) {
|
|
309
|
+
result = {
|
|
310
|
+
reqId: id,
|
|
311
|
+
parameters: r.params,
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
return result;
|
|
316
|
+
}, undefined);
|
|
317
|
+
}
|
|
318
|
+
findNode(type, properties) {
|
|
319
|
+
const nodeId = this.graph.findNode((id, node) => isNodeType(node, type) && matchObjects(node, properties));
|
|
320
|
+
if (typeof nodeId === 'undefined') {
|
|
321
|
+
return undefined;
|
|
322
|
+
}
|
|
323
|
+
return this.getNode(nodeId);
|
|
324
|
+
}
|
|
325
|
+
addSampleHttpRequest(request, sourceName) {
|
|
326
|
+
return this.addNode({
|
|
327
|
+
type: 'sample-http-request',
|
|
328
|
+
label: httpRequestToLabel(request),
|
|
329
|
+
sample: request,
|
|
330
|
+
sourceName,
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
addSampleHttpResponse(response, sourceName) {
|
|
334
|
+
return this.addNode({
|
|
335
|
+
type: 'sample-http-response',
|
|
336
|
+
label: httpResponseToLabel(response),
|
|
337
|
+
sample: response,
|
|
338
|
+
sourceName,
|
|
339
|
+
});
|
|
340
|
+
}
|
|
341
|
+
addSampleHttpTransaction(request, response, sourceName) {
|
|
342
|
+
const reqId = this.addSampleHttpRequest(request, sourceName);
|
|
343
|
+
const resId = this.addSampleHttpResponse(response, sourceName);
|
|
344
|
+
const transactionId = this.addEdge(reqId, reqId, {
|
|
345
|
+
type: 'sample-http-transaction',
|
|
346
|
+
label: `Sample HTTP Transaction`,
|
|
347
|
+
sourceName,
|
|
348
|
+
});
|
|
349
|
+
return [reqId, resId, transactionId];
|
|
350
|
+
}
|
|
351
|
+
toHash() {
|
|
352
|
+
const hash = createHash('sha1');
|
|
353
|
+
this.graph
|
|
354
|
+
.nodes()
|
|
355
|
+
.sort()
|
|
356
|
+
.forEach((id) => hash.update(id));
|
|
357
|
+
this.graph
|
|
358
|
+
.edges()
|
|
359
|
+
.sort()
|
|
360
|
+
.forEach((id) => hash.update(id));
|
|
361
|
+
return hash.digest('hex');
|
|
362
|
+
}
|
|
363
|
+
export() {
|
|
364
|
+
return resolveCircularReferences({
|
|
365
|
+
...this.graph.export(),
|
|
366
|
+
attributes: {
|
|
367
|
+
hash: this.toHash(),
|
|
368
|
+
},
|
|
369
|
+
});
|
|
370
|
+
}
|
|
371
|
+
// TODO must implement this feature. But before we should think about the node and edge ID generation
|
|
372
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
373
|
+
merge(format) {
|
|
374
|
+
return this;
|
|
375
|
+
}
|
|
376
|
+
filter(fn) {
|
|
377
|
+
const copied = this.graph.copy();
|
|
378
|
+
const filterFn = typeof fn === 'function'
|
|
379
|
+
? fn
|
|
380
|
+
: httpFilterExpressionToTransactionFilter(fn);
|
|
381
|
+
// 1. if the filter function returns false for a transaction, its corresponding edge is dropped
|
|
382
|
+
this.getThymianHttpTransactions()
|
|
383
|
+
.filter((transaction, _, transactions) => !filterFn(transaction, transactions, this))
|
|
384
|
+
.forEach((transaction) => {
|
|
385
|
+
copied.dropEdge(transaction.transactionId);
|
|
386
|
+
});
|
|
387
|
+
// after that, all nodes that have no outgoing edges are dropped if they are http-request or http-response nodes
|
|
388
|
+
copied.forEachNode((id, node) => {
|
|
389
|
+
if ((isNodeType(node, 'http-request') ||
|
|
390
|
+
isNodeType(node, 'http-response')) &&
|
|
391
|
+
copied.neighbors(id).length === 0) {
|
|
392
|
+
copied.dropNode(id);
|
|
393
|
+
}
|
|
394
|
+
});
|
|
395
|
+
return new ThymianFormat(copied);
|
|
396
|
+
}
|
|
397
|
+
static fromHttpTransactions(transactions, sourceName) {
|
|
398
|
+
const format = new ThymianFormat();
|
|
399
|
+
for (const [req, res] of transactions) {
|
|
400
|
+
const thymianReq = httpRequestToThymianHttpRequest(req, sourceName);
|
|
401
|
+
const thymianRes = httpResponseToThymianHttpResponse(res, sourceName);
|
|
402
|
+
const [sampleReqId, sampleResId] = format.addSampleHttpTransaction(req, res, sourceName);
|
|
403
|
+
const [reqId, resId] = format.addHttpTransaction(thymianReq, thymianRes, sourceName);
|
|
404
|
+
format.addEdge(reqId, sampleReqId, {
|
|
405
|
+
type: 'has-sample',
|
|
406
|
+
sourceName,
|
|
407
|
+
});
|
|
408
|
+
format.addEdge(resId, sampleResId, {
|
|
409
|
+
type: 'has-sample',
|
|
410
|
+
sourceName,
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
return format;
|
|
414
|
+
}
|
|
415
|
+
static import(graph, sourceName) {
|
|
416
|
+
const g = new MultiDirectedGraph().import(resolveThymianPointers(graph));
|
|
417
|
+
g.forEachNode((_, node) => {
|
|
418
|
+
node.sourceName ??= sourceName;
|
|
419
|
+
});
|
|
420
|
+
g.forEachEdge((_, edge) => {
|
|
421
|
+
edge.sourceName ??= sourceName;
|
|
422
|
+
});
|
|
423
|
+
return new ThymianFormat(g);
|
|
424
|
+
}
|
|
425
|
+
hash(...values) {
|
|
426
|
+
const hash = createHash('sha1');
|
|
427
|
+
values.forEach((value) => hash.update(value));
|
|
428
|
+
return hash.digest('hex');
|
|
429
|
+
}
|
|
430
|
+
hashObj(obj) {
|
|
431
|
+
if (typeof obj === 'undefined') {
|
|
432
|
+
return '';
|
|
433
|
+
}
|
|
434
|
+
return createHash('sha1').update(stringify(obj)).digest('hex');
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
//# sourceMappingURL=thymian-format.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thymian-format.js","sourceRoot":"","sources":["../../src/format/thymian-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,OAAO,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;AACvC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAI9C,OAAO,EACL,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,mBAAmB,EACnB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EAEZ,sBAAsB,GACvB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,YAAY,EAAkC,MAAM,aAAa,CAAC;AAC3E,OAAO,EACL,yBAAyB,EACzB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC;AAMlC,OAAO,EAAE,uCAAuC,EAAE,MAAM,mDAAmD,CAAC;AAM5G,OAAO,EACL,+BAA+B,EAC/B,iCAAiC,GAClC,MAAM,YAAY,CAAC;AAOpB,MAAM,UAAU,UAAU,CACxB,IAAiB,EACjB,IAAO;IAEP,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,UAAU,CACxB,IAAiB,EACjB,IAAO;IAEP,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,CAAC;AAC5B,CAAC;AA+CD,MAAM,UAAU,yBAAyB,CACvC,GAA0D;IAE1D,MAAM,KAAK,GAAG,GAAG,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,GAAG,CAAC,QAAQ,MAAM,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,CAAC,EAAE,IAAI,EAAE,EAAE;YACxB,IAAI,CAAC,UAAU,KAAK,UAAU,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE;YACxB,IAAI,CAAC,UAAU,KAAK,UAAU,CAAC;QACjC,CAAC,CAAC,CAAC;QAEH,OAAO,IAAI,aAAa,CAAC,CAAiB,CAAC,CAAC;IAC9C,CAAC;IAEO,IAAI,CAAC,GAAG,MAAgB;QAC9B,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;QAEhC,MAAM,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE9C,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC5B,CAAC;IAEO,OAAO,CAAC,GAAY;QAC1B,IAAI,OAAO,GAAG,KAAK,WAAW,EAAE,CAAC;YAC/B,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACjE,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
export type ThymianSchemaType = 'null' | 'boolean' | 'object' | 'array' | 'number' | 'string' | 'integer';
|
|
2
|
+
export type ThymianSchema = {
|
|
3
|
+
type?: ThymianSchemaType | ThymianSchemaType[];
|
|
4
|
+
const?: unknown;
|
|
5
|
+
enum?: unknown[];
|
|
6
|
+
examples?: unknown[];
|
|
7
|
+
description?: string;
|
|
8
|
+
default?: unknown;
|
|
9
|
+
multipleOf?: number;
|
|
10
|
+
maximum?: number;
|
|
11
|
+
exclusiveMaximum?: number;
|
|
12
|
+
minimum?: number;
|
|
13
|
+
exclusiveMinimum?: number;
|
|
14
|
+
maxLength?: number;
|
|
15
|
+
minLength?: number;
|
|
16
|
+
pattern?: string;
|
|
17
|
+
format?: string;
|
|
18
|
+
contentEncoding?: string;
|
|
19
|
+
contentMediaType?: string;
|
|
20
|
+
prefixItems?: ThymianSchema[];
|
|
21
|
+
items?: ThymianSchema;
|
|
22
|
+
contains?: ThymianSchema;
|
|
23
|
+
minItems?: number;
|
|
24
|
+
maxItems?: number;
|
|
25
|
+
uniqueItems?: boolean;
|
|
26
|
+
minContains?: number;
|
|
27
|
+
maxContains?: number;
|
|
28
|
+
properties?: Record<string, ThymianSchema>;
|
|
29
|
+
patternProperties?: Record<string, ThymianSchema>;
|
|
30
|
+
additionalProperties?: ThymianSchema | boolean;
|
|
31
|
+
propertyNames?: ThymianSchema;
|
|
32
|
+
required?: string[];
|
|
33
|
+
minProperties?: number;
|
|
34
|
+
maxProperties?: number;
|
|
35
|
+
dependentSchemas?: Record<string, ThymianSchema>;
|
|
36
|
+
dependentRequired?: Record<string, string[]>;
|
|
37
|
+
allOf?: ThymianSchema[];
|
|
38
|
+
anyOf?: ThymianSchema[];
|
|
39
|
+
oneOf?: ThymianSchema[];
|
|
40
|
+
not?: ThymianSchema;
|
|
41
|
+
if?: ThymianSchema;
|
|
42
|
+
then?: ThymianSchema;
|
|
43
|
+
else?: ThymianSchema;
|
|
44
|
+
unevaluatedProperties?: ThymianSchema | boolean;
|
|
45
|
+
unevaluatedItems?: ThymianSchema | boolean;
|
|
46
|
+
$ref?: string;
|
|
47
|
+
$anchor?: string;
|
|
48
|
+
xml?: {
|
|
49
|
+
name?: string;
|
|
50
|
+
namespace?: string;
|
|
51
|
+
prefix?: string;
|
|
52
|
+
attribute?: string;
|
|
53
|
+
wrapped?: boolean;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=thymian-schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thymian-schema.d.ts","sourceRoot":"","sources":["../../src/format/thymian-schema.ts"],"names":[],"mappings":"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,CAAC,CAAC;IAClD,oBAAoB,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;IAC/C,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACjD,iBAAiB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAE7C,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,KAAK,CAAC,EAAE,aAAa,EAAE,CAAC;IACxB,GAAG,CAAC,EAAE,aAAa,CAAC;IACpB,EAAE,CAAC,EAAE,aAAa,CAAC;IACnB,IAAI,CAAC,EAAE,aAAa,CAAC;IACrB,IAAI,CAAC,EAAE,aAAa,CAAC;IAErB,qBAAqB,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;IAChD,gBAAgB,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC;IAE3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,GAAG,CAAC,EAAE;QACJ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,OAAO,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"thymian-schema.js","sourceRoot":"","sources":["../../src/format/thymian-schema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { HttpRequest, HttpResponse } from '../http.js';
|
|
2
|
+
import { type PartialBy } from '../utils.js';
|
|
3
|
+
import type { ThymianHttpRequest } from './nodes/http-request.node.js';
|
|
4
|
+
import type { ThymianHttpResponse } from './nodes/http-response.node.js';
|
|
5
|
+
import type { Parameter } from './parameter.js';
|
|
6
|
+
import type { SerializationStyle } from './serialization-style/index.js';
|
|
7
|
+
export declare function extractSchemaForValue(value: string): 'string' | 'integer' | 'number' | 'boolean';
|
|
8
|
+
export declare function valueToParameter(value: string | string[] | undefined, style: SerializationStyle): Parameter | undefined;
|
|
9
|
+
export declare function parameterValuesToParameters(values: Record<string, string | string[] | undefined>, style: SerializationStyle): Record<string, Parameter>;
|
|
10
|
+
export declare function httpRequestToThymianHttpRequest(request: HttpRequest, sourceName: string): PartialBy<ThymianHttpRequest, 'label'>;
|
|
11
|
+
export declare function httpResponseToThymianHttpResponse(response: HttpResponse, sourceName: string): ThymianHttpResponse;
|
|
12
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/format/utils.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAoC,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAC/E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,MAAM,GACZ,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,CAc7C;AAED,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,EACpC,KAAK,EAAE,kBAAkB,GACxB,SAAS,GAAG,SAAS,CAwBvB;AAED,wBAAgB,2BAA2B,CACzC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS,CAAC,EACrD,KAAK,EAAE,kBAAkB,GACxB,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAmB3B;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,MAAM,GACjB,SAAS,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAoBxC;AAED,wBAAgB,iCAAiC,CAC/C,QAAQ,EAAE,YAAY,EACtB,UAAU,EAAE,MAAM,GACjB,mBAAmB,CAqBrB"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { DEFAULT_HEADER_SERIALIZATION_STYLE } from '../constants.js';
|
|
2
|
+
import { equalsIgnoreCase, getContentType } from '../utils.js';
|
|
3
|
+
export function extractSchemaForValue(value) {
|
|
4
|
+
if (!isNaN(parseInt(value))) {
|
|
5
|
+
return 'integer';
|
|
6
|
+
}
|
|
7
|
+
if (!isNaN(parseFloat(value))) {
|
|
8
|
+
return 'number';
|
|
9
|
+
}
|
|
10
|
+
if (value === 'true' || value === 'false') {
|
|
11
|
+
return 'boolean';
|
|
12
|
+
}
|
|
13
|
+
return 'string';
|
|
14
|
+
}
|
|
15
|
+
export function valueToParameter(value, style) {
|
|
16
|
+
if (Array.isArray(value)) {
|
|
17
|
+
return {
|
|
18
|
+
required: true,
|
|
19
|
+
schema: {
|
|
20
|
+
type: extractSchemaForValue(value[0] ?? ''),
|
|
21
|
+
examples: value,
|
|
22
|
+
},
|
|
23
|
+
style,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
if (typeof value === 'string') {
|
|
27
|
+
return {
|
|
28
|
+
required: false,
|
|
29
|
+
schema: {
|
|
30
|
+
type: extractSchemaForValue(value),
|
|
31
|
+
examples: [value],
|
|
32
|
+
},
|
|
33
|
+
style,
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return undefined;
|
|
37
|
+
}
|
|
38
|
+
export function parameterValuesToParameters(values, style) {
|
|
39
|
+
return Object.entries(values).reduce((acc, [key, value]) => {
|
|
40
|
+
if (equalsIgnoreCase(key, 'content-type')) {
|
|
41
|
+
return acc;
|
|
42
|
+
}
|
|
43
|
+
const parameter = valueToParameter(value, style);
|
|
44
|
+
if (!parameter) {
|
|
45
|
+
return acc;
|
|
46
|
+
}
|
|
47
|
+
acc[key] = parameter;
|
|
48
|
+
return acc;
|
|
49
|
+
}, {});
|
|
50
|
+
}
|
|
51
|
+
export function httpRequestToThymianHttpRequest(request, sourceName) {
|
|
52
|
+
const url = new URL(request.path, request.origin);
|
|
53
|
+
return {
|
|
54
|
+
host: url.host,
|
|
55
|
+
mediaType: getContentType(request.headers),
|
|
56
|
+
method: request.method,
|
|
57
|
+
path: request.path,
|
|
58
|
+
port: parseInt(url.port) || (url.protocol === 'https:' ? 443 : 80),
|
|
59
|
+
protocol: url.protocol === 'https:' ? 'https' : 'http',
|
|
60
|
+
type: 'http-request',
|
|
61
|
+
cookies: {},
|
|
62
|
+
headers: parameterValuesToParameters(request.headers ?? {}, DEFAULT_HEADER_SERIALIZATION_STYLE),
|
|
63
|
+
pathParameters: {},
|
|
64
|
+
queryParameters: {},
|
|
65
|
+
sourceName,
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
export function httpResponseToThymianHttpResponse(response, sourceName) {
|
|
69
|
+
const thymianHttpResponse = {
|
|
70
|
+
type: 'http-response',
|
|
71
|
+
label: '',
|
|
72
|
+
statusCode: response.statusCode,
|
|
73
|
+
mediaType: getContentType(response.headers),
|
|
74
|
+
headers: parameterValuesToParameters(response.headers ?? {}, DEFAULT_HEADER_SERIALIZATION_STYLE),
|
|
75
|
+
sourceName,
|
|
76
|
+
};
|
|
77
|
+
if (response.body) {
|
|
78
|
+
thymianHttpResponse.schema = {
|
|
79
|
+
type: 'string',
|
|
80
|
+
examples: [response.body],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
return thymianHttpResponse;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/format/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,iBAAiB,CAAC;AAErE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAkB,MAAM,aAAa,CAAC;AAM/E,MAAM,UAAU,qBAAqB,CACnC,KAAa;IAEb,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QAC5B,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC;QAC9B,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,IAAI,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,OAAO,EAAE,CAAC;QAC1C,OAAO,SAAS,CAAC;IACnB,CAAC;IAED,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,MAAM,UAAU,gBAAgB,CAC9B,KAAoC,EACpC,KAAyB;IAEzB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO;YACL,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;gBAC3C,QAAQ,EAAE,KAAK;aAChB;YACD,KAAK;SACN,CAAC;IACJ,CAAC;IAED,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QAC9B,OAAO;YACL,QAAQ,EAAE,KAAK;YACf,MAAM,EAAE;gBACN,IAAI,EAAE,qBAAqB,CAAC,KAAK,CAAC;gBAClC,QAAQ,EAAE,CAAC,KAAK,CAAC;aA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