@wirebench/engine 2.2.1 → 3.1.0-rc.1
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 +134 -1
- package/dist/account/schema.d.ts +34 -0
- package/dist/account/schema.js +29 -0
- package/dist/assert/callback.d.ts +76 -0
- package/dist/assert/callback.js +320 -0
- package/dist/assert/capture-source.d.ts +50 -0
- package/dist/assert/capture-source.js +89 -0
- package/dist/assert/check.d.ts +8 -0
- package/dist/assert/check.js +18 -0
- package/dist/assert/header.d.ts +5 -0
- package/dist/assert/header.js +48 -0
- package/dist/assert/index.d.ts +2 -2
- package/dist/assert/index.js +12 -0
- package/dist/assert/match.d.ts +6 -0
- package/dist/assert/match.js +13 -4
- package/dist/assert/model.d.ts +110 -3
- package/dist/assert/model.js +16 -1
- package/dist/assert/schema.d.ts +194 -1
- package/dist/assert/schema.js +154 -12
- package/dist/assert/status-names.d.ts +9 -0
- package/dist/assert/status-names.js +27 -0
- package/dist/assert/status.d.ts +4 -1
- package/dist/assert/status.js +27 -3
- package/dist/asyncapi/browser.d.ts +7 -0
- package/dist/asyncapi/browser.js +6 -0
- package/dist/asyncapi/frame-check-worker-host.d.ts +44 -0
- package/dist/asyncapi/frame-check-worker-host.js +175 -0
- package/dist/asyncapi/frame-check-worker.d.ts +12 -0
- package/dist/asyncapi/frame-check-worker.js +25 -0
- package/dist/asyncapi/frame-check.d.ts +25 -0
- package/dist/asyncapi/frame-check.js +78 -0
- package/dist/asyncapi/import.d.ts +25 -0
- package/dist/asyncapi/import.js +34 -0
- package/dist/asyncapi/map.d.ts +40 -0
- package/dist/asyncapi/map.js +230 -0
- package/dist/asyncapi/model.d.ts +84 -0
- package/dist/asyncapi/model.js +7 -0
- package/dist/asyncapi/normalise-2.d.ts +13 -0
- package/dist/asyncapi/normalise-2.js +113 -0
- package/dist/asyncapi/normalise-3.d.ts +14 -0
- package/dist/asyncapi/normalise-3.js +133 -0
- package/dist/asyncapi/parse.d.ts +31 -0
- package/dist/asyncapi/parse.js +85 -0
- package/dist/asyncapi/read.d.ts +35 -0
- package/dist/asyncapi/read.js +186 -0
- package/dist/asyncapi/security.d.ts +14 -0
- package/dist/asyncapi/security.js +55 -0
- package/dist/asyncapi/update.d.ts +53 -0
- package/dist/asyncapi/update.js +220 -0
- package/dist/errors.d.ts +16 -0
- package/dist/errors.js +22 -0
- package/dist/grpc/events.d.ts +22 -0
- package/dist/grpc/events.js +1 -0
- package/dist/grpc/expand.d.ts +1 -1
- package/dist/grpc/expand.js +15 -5
- package/dist/grpc/files.d.ts +271 -0
- package/dist/grpc/files.js +62 -0
- package/dist/grpc/model.d.ts +11 -1
- package/dist/grpc/module.d.ts +2 -0
- package/dist/grpc/module.js +13 -0
- package/dist/grpc/run.d.ts +73 -0
- package/dist/grpc/run.js +407 -0
- package/dist/grpc/script-types.d.ts +8 -0
- package/dist/grpc/script-types.js +149 -0
- package/dist/grpc/scripting.d.ts +34 -0
- package/dist/grpc/scripting.js +147 -0
- package/dist/grpc/send-input.d.ts +46 -0
- package/dist/grpc/send-input.js +42 -0
- package/dist/grpc/send.d.ts +2 -2
- package/dist/grpc/status.d.ts +9 -2
- package/dist/grpc/status.js +11 -24
- package/dist/grpc/storage.d.ts +9 -0
- package/dist/grpc/storage.js +167 -0
- package/dist/{rest/auth.d.ts → http/auth/apply-auth.d.ts} +4 -4
- package/dist/{rest/auth.js → http/auth/apply-auth.js} +1 -1
- package/dist/http/auth/apply.d.ts +1 -1
- package/dist/{rest → http/auth}/oauth2.d.ts +2 -2
- package/dist/{rest → http/auth}/oauth2.js +1 -1
- package/dist/http/auth/send-auth.d.ts +57 -0
- package/dist/http/auth/send-auth.js +7 -0
- package/dist/http/client.js +150 -8
- package/dist/http/cookies.d.ts +79 -0
- package/dist/http/cookies.js +81 -0
- package/dist/http/curl.d.ts +4 -14
- package/dist/http/curl.js +4 -154
- package/dist/http/decompress.d.ts +7 -0
- package/dist/http/decompress.js +23 -1
- package/dist/http/document-fetch.d.ts +42 -0
- package/dist/http/document-fetch.js +207 -0
- package/dist/http/entries.d.ts +27 -0
- package/dist/http/entries.js +16 -0
- package/dist/http/escape.d.ts +18 -0
- package/dist/http/escape.js +30 -0
- package/dist/http/fetch-document.d.ts +28 -0
- package/dist/{wsdl/fetch.js → http/fetch-document.js} +8 -16
- package/dist/http/media-type.d.ts +9 -0
- package/dist/http/media-type.js +12 -0
- package/dist/http/transcript-cap.d.ts +26 -0
- package/dist/http/transcript-cap.js +36 -0
- package/dist/http/types.d.ts +59 -0
- package/dist/http/webhook-signature.d.ts +81 -0
- package/dist/http/webhook-signature.js +227 -0
- package/dist/import-detect.d.ts +2 -2
- package/dist/import-detect.js +10 -1
- package/dist/index.d.ts +207 -55
- package/dist/index.js +129 -32
- package/dist/json/cursor.d.ts +2 -0
- package/dist/json/cursor.js +1 -0
- package/dist/json/pointer-range.d.ts +18 -0
- package/dist/json/pointer-range.js +157 -0
- package/dist/json/schema/model.d.ts +59 -0
- package/dist/json/schema/model.js +8 -0
- package/dist/json/schema/parse-text.d.ts +16 -0
- package/dist/json/schema/parse-text.js +37 -0
- package/dist/{rest/openapi → json/schema}/refs.d.ts +2 -2
- package/dist/{rest/openapi → json/schema}/refs.js +3 -3
- package/dist/{rest/openapi → json/schema}/sample.d.ts +4 -0
- package/dist/{rest/openapi → json/schema}/sample.js +2 -2
- package/dist/json/schema/source.d.ts +21 -0
- package/dist/json/schema/source.js +8 -0
- package/dist/json/schema-validate.d.ts +49 -0
- package/dist/json/schema-validate.js +557 -0
- package/dist/{wss/keystore → keystore}/index.js +1 -1
- package/dist/{wss/keystore → keystore}/pem.js +1 -1
- package/dist/{wss/keystore → keystore}/pkcs12.js +1 -1
- package/dist/project/attachments-cache.d.ts +3 -1
- package/dist/{wsdl → project}/cache-naming.js +1 -1
- package/dist/project/endpoints.d.ts +18 -8
- package/dist/project/endpoints.js +21 -6
- package/dist/project/environments.d.ts +7 -5
- package/dist/project/history.d.ts +105 -9
- package/dist/project/history.js +195 -23
- package/dist/project/inherit.d.ts +7 -0
- package/dist/project/inherit.js +9 -0
- package/dist/project/keystores.d.ts +1 -1
- package/dist/project/load-helpers.d.ts +89 -0
- package/dist/project/load-helpers.js +177 -0
- package/dist/project/load.d.ts +30 -4
- package/dist/project/load.js +168 -545
- package/dist/project/managed-files.d.ts +36 -0
- package/dist/project/managed-files.js +97 -0
- package/dist/project/migrate.d.ts +2 -2
- package/dist/project/migrate.js +2 -2
- package/dist/project/model.d.ts +92 -14
- package/dist/project/model.js +50 -4
- package/dist/project/paths.d.ts +10 -1
- package/dist/project/paths.js +10 -1
- package/dist/project/preferences.d.ts +11 -2
- package/dist/project/preferences.js +5 -1
- package/dist/project/properties.d.ts +31 -17
- package/dist/project/properties.js +89 -70
- package/dist/project/request-location.d.ts +20 -0
- package/dist/project/request-location.js +62 -0
- package/dist/project/save.d.ts +12 -2
- package/dist/project/save.js +186 -141
- package/dist/project/schema-parts.d.ts +337 -0
- package/dist/project/schema-parts.js +248 -0
- package/dist/project/schema.d.ts +72 -928
- package/dist/project/schema.js +17 -466
- package/dist/project/sequence-guards.d.ts +43 -0
- package/dist/project/sequence-guards.js +109 -0
- package/dist/project/serialize-helpers.d.ts +60 -0
- package/dist/project/serialize-helpers.js +108 -0
- package/dist/project/serialize.d.ts +7 -8
- package/dist/project/serialize.js +34 -293
- package/dist/protocol/features.d.ts +51 -0
- package/dist/protocol/features.js +64 -0
- package/dist/protocol/index.d.ts +7 -0
- package/dist/protocol/index.js +4 -0
- package/dist/protocol/module.d.ts +247 -0
- package/dist/protocol/module.js +48 -0
- package/dist/protocol/registry.d.ts +42 -0
- package/dist/protocol/registry.js +47 -0
- package/dist/protocols.d.ts +77 -0
- package/dist/protocols.js +40 -0
- package/dist/redact/index.d.ts +12 -1
- package/dist/redact/index.js +55 -7
- package/dist/redact/literal.d.ts +10 -0
- package/dist/redact/literal.js +110 -12
- package/dist/rest/body.d.ts +2 -10
- package/dist/rest/body.js +3 -25
- package/dist/rest/browser.d.ts +4 -0
- package/dist/rest/browser.js +5 -0
- package/dist/rest/contract-check-worker-host.d.ts +36 -0
- package/dist/rest/contract-check-worker-host.js +158 -0
- package/dist/rest/contract-check-worker.d.ts +7 -0
- package/dist/rest/contract-check-worker.js +28 -0
- package/dist/rest/contract-check.d.ts +43 -0
- package/dist/rest/contract-check.js +217 -0
- package/dist/rest/cookie-jar.d.ts +62 -0
- package/dist/rest/cookie-jar.js +262 -0
- package/dist/rest/cookies.d.ts +6 -22
- package/dist/rest/cookies.js +6 -42
- package/dist/rest/curl.js +5 -1
- package/dist/rest/events.d.ts +12 -0
- package/dist/rest/events.js +1 -0
- package/dist/rest/expand.d.ts +6 -1
- package/dist/rest/expand.js +29 -11
- package/dist/rest/files.d.ts +439 -0
- package/dist/rest/files.js +107 -0
- package/dist/rest/json-form.d.ts +97 -0
- package/dist/rest/json-form.js +396 -0
- package/dist/rest/model.d.ts +35 -24
- package/dist/rest/model.js +6 -9
- package/dist/rest/module.d.ts +2 -0
- package/dist/rest/module.js +13 -0
- package/dist/rest/openapi/cache.d.ts +7 -2
- package/dist/rest/openapi/cache.js +2 -2
- package/dist/rest/openapi/import.d.ts +11 -16
- package/dist/rest/openapi/import.js +6 -2
- package/dist/rest/openapi/map.d.ts +38 -1
- package/dist/rest/openapi/map.js +151 -41
- package/dist/rest/openapi/match.d.ts +20 -0
- package/dist/rest/openapi/match.js +117 -0
- package/dist/rest/openapi/model.d.ts +33 -45
- package/dist/rest/openapi/parse.d.ts +3 -12
- package/dist/rest/openapi/parse.js +138 -67
- package/dist/rest/openapi/responses.d.ts +23 -0
- package/dist/rest/openapi/responses.js +59 -0
- package/dist/rest/openapi/runtime-expression.d.ts +69 -0
- package/dist/rest/openapi/runtime-expression.js +213 -0
- package/dist/rest/openapi/update.d.ts +116 -0
- package/dist/rest/openapi/update.js +456 -0
- package/dist/rest/postman/map.d.ts +1 -0
- package/dist/rest/postman/map.js +66 -4
- package/dist/rest/postman/model.d.ts +9 -0
- package/dist/rest/postman/parse.js +33 -10
- package/dist/rest/response.d.ts +2 -23
- package/dist/rest/response.js +3 -75
- package/dist/rest/run.d.ts +56 -0
- package/dist/rest/run.js +395 -0
- package/dist/rest/script-types.d.ts +7 -0
- package/dist/rest/script-types.js +83 -0
- package/dist/rest/scripting.d.ts +38 -0
- package/dist/rest/scripting.js +282 -0
- package/dist/rest/send-input.d.ts +54 -0
- package/dist/rest/send-input.js +73 -0
- package/dist/rest/send.d.ts +77 -4
- package/dist/rest/send.js +128 -7
- package/dist/rest/sse-transcript.d.ts +25 -0
- package/dist/rest/sse-transcript.js +95 -0
- package/dist/rest/sse.d.ts +43 -0
- package/dist/rest/sse.js +195 -0
- package/dist/rest/storage.d.ts +26 -0
- package/dist/rest/storage.js +262 -0
- package/dist/rest/url.d.ts +10 -4
- package/dist/rest/url.js +38 -5
- package/dist/run/baseline-update.d.ts +35 -0
- package/dist/run/baseline-update.js +97 -0
- package/dist/run/baseline.d.ts +42 -0
- package/dist/run/baseline.js +93 -0
- package/dist/run/context.d.ts +86 -0
- package/dist/run/context.js +31 -0
- package/dist/run/current-values.d.ts +32 -0
- package/dist/run/current-values.js +43 -0
- package/dist/run/event-queue.d.ts +14 -0
- package/dist/run/event-queue.js +46 -0
- package/dist/run/exchange.d.ts +62 -0
- package/dist/run/exchange.js +65 -0
- package/dist/run/host.d.ts +89 -0
- package/dist/run/host.js +1 -0
- package/dist/run/index.d.ts +20 -7
- package/dist/run/index.js +12 -4
- package/dist/run/oauth2-token.d.ts +42 -0
- package/dist/run/oauth2-token.js +92 -0
- package/dist/run/open.d.ts +12 -0
- package/dist/run/open.js +16 -0
- package/dist/run/run.d.ts +124 -4
- package/dist/run/run.js +293 -134
- package/dist/run/scope.d.ts +11 -0
- package/dist/run/scope.js +26 -0
- package/dist/run/script-support.d.ts +53 -0
- package/dist/run/script-support.js +68 -0
- package/dist/run/secret-needs.d.ts +11 -4
- package/dist/run/secret-needs.js +48 -96
- package/dist/run/select.d.ts +34 -25
- package/dist/run/select.js +45 -54
- package/dist/run/send-helpers.d.ts +93 -0
- package/dist/run/send-helpers.js +255 -0
- package/dist/run/tree.d.ts +50 -0
- package/dist/run/tree.js +54 -0
- package/dist/script/api/postman.d.ts +10 -0
- package/dist/script/api/postman.js +264 -0
- package/dist/script/api/prelude.d.ts +20 -0
- package/dist/script/api/prelude.js +215 -0
- package/dist/script/apply.d.ts +44 -0
- package/dist/script/apply.js +120 -0
- package/dist/script/check/host.d.ts +41 -0
- package/dist/script/check/host.js +143 -0
- package/dist/script/check/service.d.ts +52 -0
- package/dist/script/check/service.js +195 -0
- package/dist/script/check/worker.d.ts +1 -0
- package/dist/script/check/worker.js +40 -0
- package/dist/script/index.d.ts +16 -0
- package/dist/script/index.js +10 -0
- package/dist/script/lookup.d.ts +10 -0
- package/dist/script/lookup.js +23 -0
- package/dist/script/model.d.ts +82 -0
- package/dist/script/model.js +18 -0
- package/dist/script/props.d.ts +8 -0
- package/dist/script/props.js +28 -0
- package/dist/script/request-scripts.d.ts +83 -0
- package/dist/script/request-scripts.js +160 -0
- package/dist/script/run.d.ts +47 -0
- package/dist/script/run.js +146 -0
- package/dist/script/sandbox/execute.d.ts +26 -0
- package/dist/script/sandbox/execute.js +212 -0
- package/dist/script/sandbox/host-api.d.ts +27 -0
- package/dist/script/sandbox/host-api.js +101 -0
- package/dist/script/sandbox/host.d.ts +18 -0
- package/dist/script/sandbox/host.js +172 -0
- package/dist/script/sandbox/model.d.ts +69 -0
- package/dist/script/sandbox/model.js +24 -0
- package/dist/script/sandbox/worker.d.ts +1 -0
- package/dist/script/sandbox/worker.js +20 -0
- package/dist/script/send.d.ts +27 -0
- package/dist/script/send.js +76 -0
- package/dist/script/strip.d.ts +5 -0
- package/dist/script/strip.js +43 -0
- package/dist/script/types/api.d.ts +38 -0
- package/dist/script/types/api.js +113 -0
- package/dist/script/types/json-schema.d.ts +26 -0
- package/dist/script/types/json-schema.js +206 -0
- package/dist/secrets/env-names.d.ts +9 -1
- package/dist/secrets/env-names.js +17 -1
- package/dist/secrets/resolve.d.ts +44 -4
- package/dist/secrets/resolve.js +58 -1
- package/dist/secrets/scan/apply.d.ts +36 -0
- package/dist/secrets/scan/apply.js +194 -0
- package/dist/secrets/scan/rules.d.ts +32 -0
- package/dist/secrets/scan/rules.js +346 -0
- package/dist/secrets/scan/scan.d.ts +6 -0
- package/dist/secrets/scan/scan.js +57 -0
- package/dist/secrets/scan/walk.d.ts +70 -0
- package/dist/secrets/scan/walk.js +156 -0
- package/dist/secrets/secret-refs.d.ts +8 -0
- package/dist/secrets/secret-refs.js +25 -0
- package/dist/secrets/secret-token.d.ts +17 -0
- package/dist/secrets/secret-token.js +25 -0
- package/dist/sequence/file.d.ts +169 -0
- package/dist/sequence/file.js +237 -0
- package/dist/sequence/index.d.ts +7 -0
- package/dist/sequence/index.js +5 -0
- package/dist/sequence/load.d.ts +32 -0
- package/dist/sequence/load.js +56 -0
- package/dist/sequence/model.d.ts +115 -0
- package/dist/sequence/model.js +53 -0
- package/dist/sequence/run.d.ts +131 -0
- package/dist/sequence/run.js +191 -0
- package/dist/sequence/transfer.d.ts +24 -0
- package/dist/sequence/transfer.js +75 -0
- package/dist/server-api/audit.d.ts +455 -0
- package/dist/server-api/audit.js +186 -0
- package/dist/server-api/ci-tokens.d.ts +50 -0
- package/dist/server-api/ci-tokens.js +35 -0
- package/dist/server-api/hooks.d.ts +337 -0
- package/dist/server-api/hooks.js +152 -0
- package/dist/server-api/identity.d.ts +210 -0
- package/dist/server-api/identity.js +115 -0
- package/dist/server-api/licensing.d.ts +80 -0
- package/dist/server-api/licensing.js +53 -0
- package/dist/server-api/live.d.ts +132 -0
- package/dist/server-api/live.js +102 -0
- package/dist/server-api/meta.d.ts +31 -0
- package/dist/server-api/meta.js +21 -0
- package/dist/server-api/sync.d.ts +179 -0
- package/dist/server-api/sync.js +124 -0
- package/dist/server-api/teams.d.ts +306 -0
- package/dist/server-api/teams.js +113 -0
- package/dist/snapshot/diff.d.ts +30 -0
- package/dist/snapshot/diff.js +75 -0
- package/dist/snapshot/format.d.ts +17 -0
- package/dist/snapshot/format.js +40 -0
- package/dist/snapshot/golden-file.d.ts +45 -0
- package/dist/snapshot/golden-file.js +173 -0
- package/dist/snapshot/ignore.d.ts +14 -0
- package/dist/snapshot/ignore.js +79 -0
- package/dist/snapshot/index.d.ts +9 -0
- package/dist/snapshot/index.js +9 -0
- package/dist/snapshot/json-diff.d.ts +3 -0
- package/dist/snapshot/json-diff.js +93 -0
- package/dist/snapshot/xml-diff.d.ts +10 -0
- package/dist/snapshot/xml-diff.js +194 -0
- package/dist/soap/auth.d.ts +26 -0
- package/dist/soap/auth.js +54 -0
- package/dist/soap/curl.d.ts +20 -0
- package/dist/soap/curl.js +161 -0
- package/dist/soap/expand.d.ts +24 -0
- package/dist/soap/expand.js +95 -0
- package/dist/soap/files.d.ts +384 -0
- package/dist/soap/files.js +114 -0
- package/dist/soap/form-request.d.ts +13 -0
- package/dist/soap/form-request.js +2 -2
- package/dist/soap/generate.d.ts +12 -0
- package/dist/{generate.js → soap/generate.js} +4 -4
- package/dist/{import.d.ts → soap/import.d.ts} +4 -4
- package/dist/{import.js → soap/import.js} +13 -13
- package/dist/soap/json-operation.d.ts +35 -0
- package/dist/soap/json-operation.js +225 -0
- package/dist/soap/legacy-project/env-refs.d.ts +19 -0
- package/dist/soap/legacy-project/env-refs.js +105 -0
- package/dist/soap/legacy-project/map.d.ts +2 -2
- package/dist/soap/legacy-project/map.js +6 -0
- package/dist/soap/mime/multipart.d.ts +2 -2
- package/dist/soap/mime/multipart.js +2 -5
- package/dist/soap/mime/send-pipeline.d.ts +1 -1
- package/dist/soap/mime/send-pipeline.js +1 -1
- package/dist/soap/mime/types.d.ts +1 -3
- package/dist/soap/module.d.ts +2 -0
- package/dist/soap/module.js +13 -0
- package/dist/soap/namespace-scope.js +1 -1
- package/dist/soap/operations.d.ts +12 -0
- package/dist/{operations.js → soap/operations.js} +4 -4
- package/dist/soap/run.d.ts +70 -0
- package/dist/soap/run.js +549 -0
- package/dist/soap/script-types.d.ts +65 -0
- package/dist/soap/script-types.js +379 -0
- package/dist/soap/scripting.d.ts +45 -0
- package/dist/soap/scripting.js +221 -0
- package/dist/soap/send-input.d.ts +61 -0
- package/dist/{send-options.js → soap/send-input.js} +5 -109
- package/dist/{send.d.ts → soap/send.d.ts} +1 -1
- package/dist/{send.js → soap/send.js} +28 -12
- package/dist/soap/storage.d.ts +9 -0
- package/dist/soap/storage.js +237 -0
- package/dist/soap/transforms.d.ts +3 -12
- package/dist/soap/transforms.js +3 -14
- package/dist/{types.d.ts → soap/types.d.ts} +34 -84
- package/dist/sync/git-cli.d.ts +202 -0
- package/dist/sync/git-cli.js +684 -0
- package/dist/sync/three-way-merge.d.ts +41 -0
- package/dist/sync/three-way-merge.js +85 -0
- package/dist/sync/tree-paths.d.ts +34 -0
- package/dist/sync/tree-paths.js +131 -0
- package/dist/team-secrets/envelope.d.ts +10 -0
- package/dist/team-secrets/envelope.js +121 -0
- package/dist/team-secrets/errors.d.ts +26 -0
- package/dist/team-secrets/errors.js +27 -0
- package/dist/team-secrets/index.d.ts +14 -0
- package/dist/team-secrets/index.js +8 -0
- package/dist/team-secrets/keys.d.ts +52 -0
- package/dist/team-secrets/keys.js +158 -0
- package/dist/team-secrets/log.d.ts +48 -0
- package/dist/team-secrets/log.js +175 -0
- package/dist/team-secrets/resolve-conflict.d.ts +7 -0
- package/dist/team-secrets/resolve-conflict.js +14 -0
- package/dist/team-secrets/schema.d.ts +97 -0
- package/dist/team-secrets/schema.js +157 -0
- package/dist/team-secrets/sign.d.ts +24 -0
- package/dist/team-secrets/sign.js +71 -0
- package/dist/team-secrets/vault.d.ts +49 -0
- package/dist/team-secrets/vault.js +148 -0
- package/dist/validate/wsi/run-message.d.ts +2 -2
- package/dist/validate/wsi/run-message.js +1 -1
- package/dist/validate/wsi/run-wsdl.d.ts +2 -2
- package/dist/validate/wsi/run-wsdl.js +1 -1
- package/dist/validate/wsi/types.d.ts +1 -1
- package/dist/webhooks/model.d.ts +138 -0
- package/dist/webhooks/model.js +150 -0
- package/dist/workspace/commit-message.d.ts +1 -1
- package/dist/workspace/commit-message.js +6 -1
- package/dist/workspace/environments.d.ts +11 -4
- package/dist/workspace/environments.js +12 -0
- package/dist/workspace/index.d.ts +3 -3
- package/dist/workspace/index.js +2 -2
- package/dist/workspace/paths.d.ts +5 -2
- package/dist/workspace/paths.js +5 -2
- package/dist/workspace/schema.d.ts +7 -3
- package/dist/workspace/schema.js +24 -3
- package/dist/workspace/share.d.ts +30 -11
- package/dist/workspace/share.js +32 -6
- package/dist/ws/call.d.ts +1 -1
- package/dist/ws/call.js +2 -2
- package/dist/ws/connect.d.ts +60 -0
- package/dist/ws/connect.js +131 -0
- package/dist/ws/events.d.ts +17 -0
- package/dist/ws/events.js +1 -0
- package/dist/ws/expand.d.ts +1 -1
- package/dist/ws/expand.js +1 -1
- package/dist/ws/files.d.ts +284 -0
- package/dist/ws/files.js +71 -0
- package/dist/ws/history-entry.d.ts +44 -0
- package/dist/ws/history-entry.js +93 -0
- package/dist/ws/model.d.ts +44 -3
- package/dist/ws/model.js +3 -0
- package/dist/ws/module.d.ts +2 -0
- package/dist/ws/module.js +11 -0
- package/dist/ws/run.d.ts +63 -0
- package/dist/ws/run.js +470 -0
- package/dist/ws/session.d.ts +18 -0
- package/dist/ws/session.js +52 -25
- package/dist/ws/storage.d.ts +9 -0
- package/dist/ws/storage.js +176 -0
- package/dist/ws/transcript.d.ts +3 -4
- package/dist/ws/transcript.js +26 -17
- package/dist/ws/url.d.ts +1 -1
- package/dist/wsdl/cache.js +1 -1
- package/dist/wsdl/docs-generator.d.ts +3 -3
- package/dist/wsdl/docs-generator.js +1 -1
- package/dist/wsdl/export-definition.js +1 -1
- package/dist/wsdl/qname.d.ts +2 -5
- package/dist/wsdl/resolver.d.ts +4 -11
- package/dist/wsdl/resolver.js +3 -3
- package/dist/wsdl/update-definition.d.ts +5 -5
- package/dist/wsdl/update-definition.js +6 -6
- package/dist/wss/apply.js +1 -1
- package/dist/{project/wss-configs.d.ts → wss/configs.d.ts} +2 -2
- package/dist/{project/wss-configs.js → wss/configs.js} +2 -2
- package/dist/wss/incoming/decrypt.d.ts +1 -1
- package/dist/wss/incoming/index.js +1 -1
- package/dist/wss/incoming/verify.d.ts +1 -1
- package/dist/wss/incoming/verify.js +1 -1
- package/dist/wss/key-identifiers.js +1 -1
- package/dist/wss/model.d.ts +1 -1
- package/dist/wss/outgoing/encryption.d.ts +1 -1
- package/dist/wss/outgoing/signature.d.ts +1 -1
- package/dist/xml/decode.d.ts +15 -0
- package/dist/xml/decode.js +22 -0
- package/dist/xml/entitize.d.ts +17 -0
- package/dist/xml/entitize.js +19 -0
- package/dist/xml/index.d.ts +1 -1
- package/dist/xml/index.js +1 -1
- package/dist/xml/locate.d.ts +39 -0
- package/dist/xml/locate.js +117 -0
- package/dist/xml/qname.d.ts +12 -0
- package/dist/xml/qname.js +8 -0
- package/dist/xpath/evaluate-async.d.ts +19 -0
- package/dist/xpath/evaluate-async.js +31 -11
- package/dist/xpath/evaluate.d.ts +1 -1
- package/dist/xpath/namespaces.js +1 -1
- package/dist/xpath/worker.d.ts +11 -5
- package/dist/xpath/worker.js +24 -7
- package/dist/xsd/form-model.d.ts +19 -2
- package/dist/xsd/form-model.js +14 -2
- package/dist/xsd/json-bridge.d.ts +152 -0
- package/dist/xsd/json-bridge.js +1213 -0
- package/dist/xsd/locate.d.ts +2 -30
- package/dist/xsd/locate.js +1 -109
- package/dist/xsd/xml-scan.d.ts +2 -0
- package/dist/xsd/xml-scan.js +1 -1
- package/dist/xsd/xml-writer.d.ts +2 -0
- package/dist/xsd/xml-writer.js +4 -0
- package/package.json +12 -1
- package/dist/generate.d.ts +0 -12
- package/dist/operations.d.ts +0 -12
- package/dist/run/effective-auth.d.ts +0 -10
- package/dist/run/effective-auth.js +0 -19
- package/dist/run/prepare.d.ts +0 -43
- package/dist/run/prepare.js +0 -280
- package/dist/send-options.d.ts +0 -141
- package/dist/wsdl/fetch.d.ts +0 -13
- /package/dist/{soap → http}/charset.d.ts +0 -0
- /package/dist/{soap → http}/charset.js +0 -0
- /package/dist/{wsdl → http}/ref-policy.d.ts +0 -0
- /package/dist/{wsdl → http}/ref-policy.js +0 -0
- /package/dist/{wss/keystore → keystore}/certificate.d.ts +0 -0
- /package/dist/{wss/keystore → keystore}/certificate.js +0 -0
- /package/dist/{wss/keystore → keystore}/index.d.ts +0 -0
- /package/dist/{wss/keystore → keystore}/model.d.ts +0 -0
- /package/dist/{wss/keystore → keystore}/model.js +0 -0
- /package/dist/{wss/keystore → keystore}/pem.d.ts +0 -0
- /package/dist/{wss/keystore → keystore}/pkcs12.d.ts +0 -0
- /package/dist/{wsdl → project}/cache-naming.d.ts +0 -0
- /package/dist/{types.js → soap/types.js} +0 -0
- /package/dist/{soap → xml}/prefixes.d.ts +0 -0
- /package/dist/{soap → xml}/prefixes.js +0 -0
package/dist/project/schema.d.ts
CHANGED
|
@@ -17,84 +17,18 @@
|
|
|
17
17
|
* project the first time an older build saves. "Additive is safe" is true of
|
|
18
18
|
* formats that round-trip unknown keys; this one deliberately does not. See
|
|
19
19
|
* ADR-0003.
|
|
20
|
+
*
|
|
21
|
+
* This file holds the core documents only: the manifest, an environment, the keystore registry, the
|
|
22
|
+
* WS-Security configurations, the webhook collection and the definition-cache manifests. A
|
|
23
|
+
* protocol's container and request files are in its own folder (`soap/files.ts`, `rest/files.ts`,
|
|
24
|
+
* `grpc/files.ts`, `ws/files.ts`), and the pieces they share in `schema-parts.ts`.
|
|
20
25
|
*/
|
|
21
26
|
import { z } from 'zod';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* value. Unlike every other schema here, a plaintext `password` key is
|
|
25
|
-
* explicitly rejected rather than merely ignored — secrets must never be
|
|
26
|
-
* written to a project file, in any format.
|
|
27
|
-
*/
|
|
28
|
-
export declare const endpointAuthSchema: z.ZodObject<{
|
|
29
|
-
type: z.ZodEnum<{
|
|
30
|
-
none: "none";
|
|
31
|
-
basic: "basic";
|
|
32
|
-
ntlm: "ntlm";
|
|
33
|
-
}>;
|
|
34
|
-
username: z.ZodOptional<z.ZodString>;
|
|
35
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
36
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
37
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
38
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
39
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
-
}, z.core.$loose>;
|
|
41
|
-
/**
|
|
42
|
-
* Authentication as persisted anywhere a project configures it. `endpointAuthSchema` is one arm,
|
|
43
|
-
* so a file written before the REST client — which only ever held `none`/`basic`/`ntlm` — parses
|
|
44
|
-
* unchanged. `inherit` is accepted here and rejected by the SOAP schemas that reuse
|
|
45
|
-
* `endpointAuthSchema` instead, since an interface has nothing to inherit from.
|
|
46
|
-
*/
|
|
47
|
-
export declare const authConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
48
|
-
type: z.ZodEnum<{
|
|
49
|
-
none: "none";
|
|
50
|
-
basic: "basic";
|
|
51
|
-
ntlm: "ntlm";
|
|
52
|
-
}>;
|
|
53
|
-
username: z.ZodOptional<z.ZodString>;
|
|
54
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
55
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
56
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
57
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
58
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
60
|
-
type: z.ZodLiteral<"inherit">;
|
|
61
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
62
|
-
type: z.ZodLiteral<"bearer">;
|
|
63
|
-
tokenRef: z.ZodOptional<z.ZodString>;
|
|
64
|
-
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
65
|
-
scheme: z.ZodOptional<z.ZodString>;
|
|
66
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
67
|
-
type: z.ZodLiteral<"api-key">;
|
|
68
|
-
name: z.ZodString;
|
|
69
|
-
valueRef: z.ZodOptional<z.ZodString>;
|
|
70
|
-
valueEnv: z.ZodOptional<z.ZodString>;
|
|
71
|
-
in: z.ZodEnum<{
|
|
72
|
-
query: "query";
|
|
73
|
-
header: "header";
|
|
74
|
-
}>;
|
|
75
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
76
|
-
type: z.ZodLiteral<"oauth2">;
|
|
77
|
-
grant: z.ZodEnum<{
|
|
78
|
-
"client-credentials": "client-credentials";
|
|
79
|
-
"authorization-code": "authorization-code";
|
|
80
|
-
}>;
|
|
81
|
-
tokenUrl: z.ZodString;
|
|
82
|
-
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
83
|
-
clientId: z.ZodString;
|
|
84
|
-
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
85
|
-
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
86
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
87
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
88
|
-
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
89
|
-
body: "body";
|
|
90
|
-
basic: "basic";
|
|
91
|
-
}>>;
|
|
92
|
-
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
-
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
94
|
-
}, z.core.$loose>]>;
|
|
27
|
+
export { assertSupportedKind, attachmentSourceSchema, authConfigSchema, definitionAuthSchema, endpointAuthSchema, hookLinkSchema, keyValueEntrySchema, parseFile, restFolderFileSchema, scriptsSchema, soapOwnerAuthSchema, webhookSigningSchema, } from './schema-parts.js';
|
|
28
|
+
export type { KeyValueEntryFile, RestFolderFile, WebhookSigningFile } from './schema-parts.js';
|
|
95
29
|
/** `wirebench.yaml`. */
|
|
96
30
|
export declare const manifestSchema: z.ZodObject<{
|
|
97
|
-
formatVersion: z.ZodLiteral<
|
|
31
|
+
formatVersion: z.ZodLiteral<6>;
|
|
98
32
|
id: z.ZodString;
|
|
99
33
|
name: z.ZodString;
|
|
100
34
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -109,480 +43,9 @@ export declare const manifestSchema: z.ZodObject<{
|
|
|
109
43
|
activeEnvironmentId: z.ZodOptional<z.ZodString>;
|
|
110
44
|
writtenBy: z.ZodOptional<z.ZodString>;
|
|
111
45
|
}, z.core.$loose>;
|
|
112
|
-
/** `
|
|
113
|
-
export declare const
|
|
114
|
-
|
|
115
|
-
id: z.ZodString;
|
|
116
|
-
name: z.ZodString;
|
|
117
|
-
order: z.ZodNumber;
|
|
118
|
-
definitionUrl: z.ZodString;
|
|
119
|
-
cacheDefinition: z.ZodBoolean;
|
|
120
|
-
targetNamespace: z.ZodOptional<z.ZodString>;
|
|
121
|
-
endpoints: z.ZodArray<z.ZodObject<{
|
|
122
|
-
id: z.ZodString;
|
|
123
|
-
name: z.ZodString;
|
|
124
|
-
url: z.ZodString;
|
|
125
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
126
|
-
type: z.ZodEnum<{
|
|
127
|
-
none: "none";
|
|
128
|
-
basic: "basic";
|
|
129
|
-
ntlm: "ntlm";
|
|
130
|
-
}>;
|
|
131
|
-
username: z.ZodOptional<z.ZodString>;
|
|
132
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
133
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
134
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
135
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
136
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
137
|
-
}, z.core.$loose>>;
|
|
138
|
-
authMode: z.ZodEnum<{
|
|
139
|
-
override: "override";
|
|
140
|
-
complement: "complement";
|
|
141
|
-
}>;
|
|
142
|
-
trustInvalid: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
-
}, z.core.$loose>>;
|
|
144
|
-
defaultEndpointId: z.ZodOptional<z.ZodString>;
|
|
145
|
-
wsa: z.ZodObject<{
|
|
146
|
-
enabled: z.ZodBoolean;
|
|
147
|
-
version: z.ZodOptional<z.ZodEnum<{
|
|
148
|
-
"2005/08": "2005/08";
|
|
149
|
-
"2004/08": "2004/08";
|
|
150
|
-
}>>;
|
|
151
|
-
mustUnderstand: z.ZodOptional<z.ZodEnum<{
|
|
152
|
-
none: "none";
|
|
153
|
-
true: "true";
|
|
154
|
-
false: "false";
|
|
155
|
-
}>>;
|
|
156
|
-
action: z.ZodOptional<z.ZodString>;
|
|
157
|
-
to: z.ZodOptional<z.ZodString>;
|
|
158
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
159
|
-
replyTo: z.ZodOptional<z.ZodString>;
|
|
160
|
-
from: z.ZodOptional<z.ZodString>;
|
|
161
|
-
faultTo: z.ZodOptional<z.ZodString>;
|
|
162
|
-
relatesTo: z.ZodOptional<z.ZodString>;
|
|
163
|
-
relationshipType: z.ZodOptional<z.ZodString>;
|
|
164
|
-
addDefaultAction: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
-
addDefaultTo: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
-
generateMessageId: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
-
}, z.core.$loose>;
|
|
168
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
169
|
-
type: z.ZodEnum<{
|
|
170
|
-
none: "none";
|
|
171
|
-
basic: "basic";
|
|
172
|
-
ntlm: "ntlm";
|
|
173
|
-
}>;
|
|
174
|
-
username: z.ZodOptional<z.ZodString>;
|
|
175
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
176
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
177
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
178
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
179
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
180
|
-
}, z.core.$loose>>;
|
|
181
|
-
operations: z.ZodArray<z.ZodObject<{
|
|
182
|
-
name: z.ZodString;
|
|
183
|
-
bindingName: z.ZodString;
|
|
184
|
-
slug: z.ZodString;
|
|
185
|
-
order: z.ZodNumber;
|
|
186
|
-
}, z.core.$loose>>;
|
|
187
|
-
}, z.core.$loose>;
|
|
188
|
-
/** Where a file's bytes live: the project's content-addressed cache, or a path on disk. */
|
|
189
|
-
export declare const attachmentSourceSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
190
|
-
kind: z.ZodLiteral<"cache">;
|
|
191
|
-
sha256: z.ZodString;
|
|
192
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
193
|
-
kind: z.ZodLiteral<"path">;
|
|
194
|
-
path: z.ZodString;
|
|
195
|
-
}, z.core.$loose>]>;
|
|
196
|
-
/** `interfaces/<slug>/operations/<slug>/<name>.request.yaml` (the envelope lives in the sibling `.xml`). */
|
|
197
|
-
export declare const requestFileSchema: z.ZodObject<{
|
|
198
|
-
kind: z.ZodLiteral<"soap">;
|
|
199
|
-
id: z.ZodString;
|
|
200
|
-
name: z.ZodString;
|
|
201
|
-
order: z.ZodNumber;
|
|
202
|
-
description: z.ZodOptional<z.ZodString>;
|
|
203
|
-
endpointId: z.ZodOptional<z.ZodString>;
|
|
204
|
-
endpointUrl: z.ZodOptional<z.ZodString>;
|
|
205
|
-
soapVersion: z.ZodEnum<{
|
|
206
|
-
1.1: "1.1";
|
|
207
|
-
1.2: "1.2";
|
|
208
|
-
}>;
|
|
209
|
-
soapAction: z.ZodOptional<z.ZodString>;
|
|
210
|
-
headers: z.ZodArray<z.ZodObject<{
|
|
211
|
-
name: z.ZodString;
|
|
212
|
-
value: z.ZodString;
|
|
213
|
-
}, z.core.$loose>>;
|
|
214
|
-
attachments: z.ZodArray<z.ZodObject<{
|
|
215
|
-
id: z.ZodString;
|
|
216
|
-
name: z.ZodString;
|
|
217
|
-
contentType: z.ZodString;
|
|
218
|
-
size: z.ZodNumber;
|
|
219
|
-
part: z.ZodOptional<z.ZodString>;
|
|
220
|
-
type: z.ZodEnum<{
|
|
221
|
-
XOP: "XOP";
|
|
222
|
-
MIME: "MIME";
|
|
223
|
-
SWAREF: "SWAREF";
|
|
224
|
-
CONTENT: "CONTENT";
|
|
225
|
-
UNKNOWN: "UNKNOWN";
|
|
226
|
-
}>;
|
|
227
|
-
contentId: z.ZodString;
|
|
228
|
-
cached: z.ZodBoolean;
|
|
229
|
-
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
230
|
-
kind: z.ZodLiteral<"cache">;
|
|
231
|
-
sha256: z.ZodString;
|
|
232
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
233
|
-
kind: z.ZodLiteral<"path">;
|
|
234
|
-
path: z.ZodString;
|
|
235
|
-
}, z.core.$loose>]>;
|
|
236
|
-
}, z.core.$loose>>;
|
|
237
|
-
auth: z.ZodOptional<z.ZodObject<{
|
|
238
|
-
type: z.ZodEnum<{
|
|
239
|
-
none: "none";
|
|
240
|
-
basic: "basic";
|
|
241
|
-
ntlm: "ntlm";
|
|
242
|
-
}>;
|
|
243
|
-
username: z.ZodOptional<z.ZodString>;
|
|
244
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
245
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
246
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
247
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
248
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
-
}, z.core.$loose>>;
|
|
250
|
-
wsa: z.ZodOptional<z.ZodObject<{
|
|
251
|
-
enabled: z.ZodBoolean;
|
|
252
|
-
version: z.ZodOptional<z.ZodEnum<{
|
|
253
|
-
"2005/08": "2005/08";
|
|
254
|
-
"2004/08": "2004/08";
|
|
255
|
-
}>>;
|
|
256
|
-
mustUnderstand: z.ZodOptional<z.ZodEnum<{
|
|
257
|
-
none: "none";
|
|
258
|
-
true: "true";
|
|
259
|
-
false: "false";
|
|
260
|
-
}>>;
|
|
261
|
-
action: z.ZodOptional<z.ZodString>;
|
|
262
|
-
to: z.ZodOptional<z.ZodString>;
|
|
263
|
-
messageId: z.ZodOptional<z.ZodString>;
|
|
264
|
-
replyTo: z.ZodOptional<z.ZodString>;
|
|
265
|
-
from: z.ZodOptional<z.ZodString>;
|
|
266
|
-
faultTo: z.ZodOptional<z.ZodString>;
|
|
267
|
-
relatesTo: z.ZodOptional<z.ZodString>;
|
|
268
|
-
relationshipType: z.ZodOptional<z.ZodString>;
|
|
269
|
-
addDefaultAction: z.ZodOptional<z.ZodBoolean>;
|
|
270
|
-
addDefaultTo: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
-
generateMessageId: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
-
}, z.core.$loose>>;
|
|
273
|
-
wssOutgoingRef: z.ZodOptional<z.ZodString>;
|
|
274
|
-
wssIncomingRef: z.ZodOptional<z.ZodString>;
|
|
275
|
-
properties: z.ZodObject<{
|
|
276
|
-
encoding: z.ZodString;
|
|
277
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
278
|
-
bindAddress: z.ZodOptional<z.ZodString>;
|
|
279
|
-
followRedirects: z.ZodBoolean;
|
|
280
|
-
skipSoapAction: z.ZodBoolean;
|
|
281
|
-
enableMtom: z.ZodBoolean;
|
|
282
|
-
forceMtom: z.ZodBoolean;
|
|
283
|
-
inlineResponseAttachments: z.ZodBoolean;
|
|
284
|
-
expandMtomAttachments: z.ZodBoolean;
|
|
285
|
-
disableMultiparts: z.ZodBoolean;
|
|
286
|
-
encodeAttachments: z.ZodBoolean;
|
|
287
|
-
enableInlineFiles: z.ZodBoolean;
|
|
288
|
-
removeEmptyContent: z.ZodBoolean;
|
|
289
|
-
entitizeProperties: z.ZodBoolean;
|
|
290
|
-
prettyPrint: z.ZodBoolean;
|
|
291
|
-
stripWhitespaces: z.ZodBoolean;
|
|
292
|
-
dumpFile: z.ZodOptional<z.ZodString>;
|
|
293
|
-
maxSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
294
|
-
wssPasswordType: z.ZodOptional<z.ZodEnum<{
|
|
295
|
-
text: "text";
|
|
296
|
-
digest: "digest";
|
|
297
|
-
}>>;
|
|
298
|
-
wssTimeToLive: z.ZodOptional<z.ZodNumber>;
|
|
299
|
-
sslKeystoreRef: z.ZodOptional<z.ZodString>;
|
|
300
|
-
}, z.core.$loose>;
|
|
301
|
-
assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
302
|
-
type: z.ZodLiteral<"status">;
|
|
303
|
-
equals: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>;
|
|
304
|
-
name: z.ZodOptional<z.ZodString>;
|
|
305
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
306
|
-
type: z.ZodLiteral<"soap-fault">;
|
|
307
|
-
expect: z.ZodDefault<z.ZodEnum<{
|
|
308
|
-
none: "none";
|
|
309
|
-
present: "present";
|
|
310
|
-
}>>;
|
|
311
|
-
name: z.ZodOptional<z.ZodString>;
|
|
312
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
313
|
-
type: z.ZodLiteral<"match">;
|
|
314
|
-
language: z.ZodEnum<{
|
|
315
|
-
xpath: "xpath";
|
|
316
|
-
xquery: "xquery";
|
|
317
|
-
jsonpath: "jsonpath";
|
|
318
|
-
}>;
|
|
319
|
-
expression: z.ZodString;
|
|
320
|
-
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
321
|
-
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
322
|
-
matches: z.ZodOptional<z.ZodString>;
|
|
323
|
-
exists: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
-
name: z.ZodOptional<z.ZodString>;
|
|
325
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
326
|
-
type: z.ZodLiteral<"schema">;
|
|
327
|
-
name: z.ZodOptional<z.ZodString>;
|
|
328
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
329
|
-
type: z.ZodLiteral<"sla">;
|
|
330
|
-
maxMs: z.ZodNumber;
|
|
331
|
-
name: z.ZodOptional<z.ZodString>;
|
|
332
|
-
}, z.core.$loose>], "type">>>;
|
|
333
|
-
orphaned: z.ZodOptional<z.ZodBoolean>;
|
|
334
|
-
}, z.core.$loose>;
|
|
335
|
-
/**
|
|
336
|
-
* One table row as persisted. `enabled` is written only when `false`, so a missing key means
|
|
337
|
-
* enabled; names may repeat and their order is the wire order.
|
|
338
|
-
*/
|
|
339
|
-
export declare const keyValueEntrySchema: z.ZodObject<{
|
|
340
|
-
name: z.ZodString;
|
|
341
|
-
value: z.ZodString;
|
|
342
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
343
|
-
description: z.ZodOptional<z.ZodString>;
|
|
344
|
-
}, z.core.$loose>;
|
|
345
|
-
/**
|
|
346
|
-
* A request body as persisted. A raw body names its sibling file rather than carrying its text:
|
|
347
|
-
* `file` is a bare file name in the request's own directory, validated as a path segment before
|
|
348
|
-
* anything is read or written (ADR-0005).
|
|
349
|
-
*/
|
|
350
|
-
export declare const restBodySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
351
|
-
kind: z.ZodLiteral<"none">;
|
|
352
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
353
|
-
kind: z.ZodLiteral<"raw">;
|
|
354
|
-
language: z.ZodEnum<{
|
|
355
|
-
xml: "xml";
|
|
356
|
-
text: "text";
|
|
357
|
-
json: "json";
|
|
358
|
-
html: "html";
|
|
359
|
-
javascript: "javascript";
|
|
360
|
-
}>;
|
|
361
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
362
|
-
file: z.ZodString;
|
|
363
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
364
|
-
kind: z.ZodLiteral<"form">;
|
|
365
|
-
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
366
|
-
name: z.ZodString;
|
|
367
|
-
value: z.ZodString;
|
|
368
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
369
|
-
description: z.ZodOptional<z.ZodString>;
|
|
370
|
-
}, z.core.$loose>>>;
|
|
371
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
372
|
-
kind: z.ZodLiteral<"multipart">;
|
|
373
|
-
parts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
374
|
-
kind: z.ZodLiteral<"text">;
|
|
375
|
-
name: z.ZodString;
|
|
376
|
-
value: z.ZodString;
|
|
377
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
378
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
379
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
380
|
-
kind: z.ZodLiteral<"file">;
|
|
381
|
-
name: z.ZodString;
|
|
382
|
-
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
383
|
-
kind: z.ZodLiteral<"cache">;
|
|
384
|
-
sha256: z.ZodString;
|
|
385
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
386
|
-
kind: z.ZodLiteral<"path">;
|
|
387
|
-
path: z.ZodString;
|
|
388
|
-
}, z.core.$loose>]>;
|
|
389
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
390
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
391
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
392
|
-
}, z.core.$loose>]>>>;
|
|
393
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
394
|
-
kind: z.ZodLiteral<"binary">;
|
|
395
|
-
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
396
|
-
kind: z.ZodLiteral<"cache">;
|
|
397
|
-
sha256: z.ZodString;
|
|
398
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
399
|
-
kind: z.ZodLiteral<"path">;
|
|
400
|
-
path: z.ZodString;
|
|
401
|
-
}, z.core.$loose>]>;
|
|
402
|
-
contentType: z.ZodString;
|
|
403
|
-
}, z.core.$loose>]>;
|
|
404
|
-
/** `apis/<slug>/requests/[<folder>/…]<name>.request.yaml`. */
|
|
405
|
-
export declare const restRequestFileSchema: z.ZodObject<{
|
|
406
|
-
kind: z.ZodLiteral<"rest">;
|
|
407
|
-
id: z.ZodString;
|
|
408
|
-
name: z.ZodString;
|
|
409
|
-
order: z.ZodNumber;
|
|
410
|
-
description: z.ZodOptional<z.ZodString>;
|
|
411
|
-
method: z.ZodString;
|
|
412
|
-
url: z.ZodString;
|
|
413
|
-
pathParams: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
414
|
-
name: z.ZodString;
|
|
415
|
-
value: z.ZodString;
|
|
416
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
417
|
-
description: z.ZodOptional<z.ZodString>;
|
|
418
|
-
}, z.core.$loose>>>;
|
|
419
|
-
query: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
420
|
-
name: z.ZodString;
|
|
421
|
-
value: z.ZodString;
|
|
422
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
423
|
-
description: z.ZodOptional<z.ZodString>;
|
|
424
|
-
}, z.core.$loose>>>;
|
|
425
|
-
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
426
|
-
name: z.ZodString;
|
|
427
|
-
value: z.ZodString;
|
|
428
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
429
|
-
description: z.ZodOptional<z.ZodString>;
|
|
430
|
-
}, z.core.$loose>>>;
|
|
431
|
-
body: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
432
|
-
kind: z.ZodLiteral<"none">;
|
|
433
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
434
|
-
kind: z.ZodLiteral<"raw">;
|
|
435
|
-
language: z.ZodEnum<{
|
|
436
|
-
xml: "xml";
|
|
437
|
-
text: "text";
|
|
438
|
-
json: "json";
|
|
439
|
-
html: "html";
|
|
440
|
-
javascript: "javascript";
|
|
441
|
-
}>;
|
|
442
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
443
|
-
file: z.ZodString;
|
|
444
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
445
|
-
kind: z.ZodLiteral<"form">;
|
|
446
|
-
fields: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
447
|
-
name: z.ZodString;
|
|
448
|
-
value: z.ZodString;
|
|
449
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
450
|
-
description: z.ZodOptional<z.ZodString>;
|
|
451
|
-
}, z.core.$loose>>>;
|
|
452
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
453
|
-
kind: z.ZodLiteral<"multipart">;
|
|
454
|
-
parts: z.ZodDefault<z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
455
|
-
kind: z.ZodLiteral<"text">;
|
|
456
|
-
name: z.ZodString;
|
|
457
|
-
value: z.ZodString;
|
|
458
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
459
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
460
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
461
|
-
kind: z.ZodLiteral<"file">;
|
|
462
|
-
name: z.ZodString;
|
|
463
|
-
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
464
|
-
kind: z.ZodLiteral<"cache">;
|
|
465
|
-
sha256: z.ZodString;
|
|
466
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
467
|
-
kind: z.ZodLiteral<"path">;
|
|
468
|
-
path: z.ZodString;
|
|
469
|
-
}, z.core.$loose>]>;
|
|
470
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
471
|
-
fileName: z.ZodOptional<z.ZodString>;
|
|
472
|
-
contentType: z.ZodOptional<z.ZodString>;
|
|
473
|
-
}, z.core.$loose>]>>>;
|
|
474
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
475
|
-
kind: z.ZodLiteral<"binary">;
|
|
476
|
-
source: z.ZodUnion<readonly [z.ZodObject<{
|
|
477
|
-
kind: z.ZodLiteral<"cache">;
|
|
478
|
-
sha256: z.ZodString;
|
|
479
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
480
|
-
kind: z.ZodLiteral<"path">;
|
|
481
|
-
path: z.ZodString;
|
|
482
|
-
}, z.core.$loose>]>;
|
|
483
|
-
contentType: z.ZodString;
|
|
484
|
-
}, z.core.$loose>]>>;
|
|
485
|
-
auth: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
486
|
-
type: z.ZodEnum<{
|
|
487
|
-
none: "none";
|
|
488
|
-
basic: "basic";
|
|
489
|
-
ntlm: "ntlm";
|
|
490
|
-
}>;
|
|
491
|
-
username: z.ZodOptional<z.ZodString>;
|
|
492
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
493
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
494
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
495
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
496
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
497
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
498
|
-
type: z.ZodLiteral<"inherit">;
|
|
499
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
500
|
-
type: z.ZodLiteral<"bearer">;
|
|
501
|
-
tokenRef: z.ZodOptional<z.ZodString>;
|
|
502
|
-
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
503
|
-
scheme: z.ZodOptional<z.ZodString>;
|
|
504
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
505
|
-
type: z.ZodLiteral<"api-key">;
|
|
506
|
-
name: z.ZodString;
|
|
507
|
-
valueRef: z.ZodOptional<z.ZodString>;
|
|
508
|
-
valueEnv: z.ZodOptional<z.ZodString>;
|
|
509
|
-
in: z.ZodEnum<{
|
|
510
|
-
query: "query";
|
|
511
|
-
header: "header";
|
|
512
|
-
}>;
|
|
513
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
514
|
-
type: z.ZodLiteral<"oauth2">;
|
|
515
|
-
grant: z.ZodEnum<{
|
|
516
|
-
"client-credentials": "client-credentials";
|
|
517
|
-
"authorization-code": "authorization-code";
|
|
518
|
-
}>;
|
|
519
|
-
tokenUrl: z.ZodString;
|
|
520
|
-
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
521
|
-
clientId: z.ZodString;
|
|
522
|
-
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
523
|
-
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
524
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
525
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
526
|
-
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
527
|
-
body: "body";
|
|
528
|
-
basic: "basic";
|
|
529
|
-
}>>;
|
|
530
|
-
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
531
|
-
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
532
|
-
}, z.core.$loose>]>>;
|
|
533
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
534
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
535
|
-
followRedirects: z.ZodOptional<z.ZodBoolean>;
|
|
536
|
-
maxRedirects: z.ZodOptional<z.ZodNumber>;
|
|
537
|
-
keepBodyOnRedirect: z.ZodOptional<z.ZodBoolean>;
|
|
538
|
-
encodeUrl: z.ZodOptional<z.ZodBoolean>;
|
|
539
|
-
trustInvalid: z.ZodOptional<z.ZodBoolean>;
|
|
540
|
-
sslKeystoreRef: z.ZodOptional<z.ZodString>;
|
|
541
|
-
bindAddress: z.ZodOptional<z.ZodString>;
|
|
542
|
-
maxSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
543
|
-
sendCookies: z.ZodOptional<z.ZodBoolean>;
|
|
544
|
-
escapeProperties: z.ZodOptional<z.ZodBoolean>;
|
|
545
|
-
}, z.core.$loose>>;
|
|
546
|
-
assertions: z.ZodDefault<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
547
|
-
type: z.ZodLiteral<"status">;
|
|
548
|
-
equals: z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>, z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>]>;
|
|
549
|
-
name: z.ZodOptional<z.ZodString>;
|
|
550
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
551
|
-
type: z.ZodLiteral<"soap-fault">;
|
|
552
|
-
expect: z.ZodDefault<z.ZodEnum<{
|
|
553
|
-
none: "none";
|
|
554
|
-
present: "present";
|
|
555
|
-
}>>;
|
|
556
|
-
name: z.ZodOptional<z.ZodString>;
|
|
557
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
558
|
-
type: z.ZodLiteral<"match">;
|
|
559
|
-
language: z.ZodEnum<{
|
|
560
|
-
xpath: "xpath";
|
|
561
|
-
xquery: "xquery";
|
|
562
|
-
jsonpath: "jsonpath";
|
|
563
|
-
}>;
|
|
564
|
-
expression: z.ZodString;
|
|
565
|
-
namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
566
|
-
equals: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>;
|
|
567
|
-
matches: z.ZodOptional<z.ZodString>;
|
|
568
|
-
exists: z.ZodOptional<z.ZodBoolean>;
|
|
569
|
-
name: z.ZodOptional<z.ZodString>;
|
|
570
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
571
|
-
type: z.ZodLiteral<"schema">;
|
|
572
|
-
name: z.ZodOptional<z.ZodString>;
|
|
573
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
574
|
-
type: z.ZodLiteral<"sla">;
|
|
575
|
-
maxMs: z.ZodNumber;
|
|
576
|
-
name: z.ZodOptional<z.ZodString>;
|
|
577
|
-
}, z.core.$loose>], "type">>>;
|
|
578
|
-
orphaned: z.ZodOptional<z.ZodBoolean>;
|
|
579
|
-
}, z.core.$loose>;
|
|
580
|
-
/** `apis/<slug>/requests/[<folder>/…]folder.yaml`. */
|
|
581
|
-
export declare const restFolderFileSchema: z.ZodObject<{
|
|
582
|
-
id: z.ZodString;
|
|
583
|
-
name: z.ZodString;
|
|
584
|
-
order: z.ZodNumber;
|
|
585
|
-
description: z.ZodOptional<z.ZodString>;
|
|
46
|
+
/** `webhooks/webhooks.yaml`. */
|
|
47
|
+
export declare const webhooksFileSchema: z.ZodObject<{
|
|
48
|
+
target: z.ZodString;
|
|
586
49
|
auth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
587
50
|
type: z.ZodEnum<{
|
|
588
51
|
none: "none";
|
|
@@ -608,69 +71,8 @@ export declare const restFolderFileSchema: z.ZodObject<{
|
|
|
608
71
|
valueRef: z.ZodOptional<z.ZodString>;
|
|
609
72
|
valueEnv: z.ZodOptional<z.ZodString>;
|
|
610
73
|
in: z.ZodEnum<{
|
|
611
|
-
query: "query";
|
|
612
74
|
header: "header";
|
|
613
|
-
}>;
|
|
614
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
615
|
-
type: z.ZodLiteral<"oauth2">;
|
|
616
|
-
grant: z.ZodEnum<{
|
|
617
|
-
"client-credentials": "client-credentials";
|
|
618
|
-
"authorization-code": "authorization-code";
|
|
619
|
-
}>;
|
|
620
|
-
tokenUrl: z.ZodString;
|
|
621
|
-
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
622
|
-
clientId: z.ZodString;
|
|
623
|
-
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
624
|
-
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
625
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
626
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
627
|
-
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
628
|
-
body: "body";
|
|
629
|
-
basic: "basic";
|
|
630
|
-
}>>;
|
|
631
|
-
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
632
|
-
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
633
|
-
}, z.core.$loose>]>>;
|
|
634
|
-
}, z.core.$loose>;
|
|
635
|
-
/** `apis/<slug>/api.yaml`. */
|
|
636
|
-
export declare const apiFileSchema: z.ZodObject<{
|
|
637
|
-
kind: z.ZodLiteral<"rest">;
|
|
638
|
-
id: z.ZodString;
|
|
639
|
-
name: z.ZodString;
|
|
640
|
-
order: z.ZodNumber;
|
|
641
|
-
description: z.ZodOptional<z.ZodString>;
|
|
642
|
-
baseUrl: z.ZodString;
|
|
643
|
-
servers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
644
|
-
url: z.ZodString;
|
|
645
|
-
description: z.ZodOptional<z.ZodString>;
|
|
646
|
-
}, z.core.$loose>>>;
|
|
647
|
-
auth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
648
|
-
type: z.ZodEnum<{
|
|
649
|
-
none: "none";
|
|
650
|
-
basic: "basic";
|
|
651
|
-
ntlm: "ntlm";
|
|
652
|
-
}>;
|
|
653
|
-
username: z.ZodOptional<z.ZodString>;
|
|
654
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
655
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
656
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
657
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
658
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
659
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
660
|
-
type: z.ZodLiteral<"inherit">;
|
|
661
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
662
|
-
type: z.ZodLiteral<"bearer">;
|
|
663
|
-
tokenRef: z.ZodOptional<z.ZodString>;
|
|
664
|
-
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
665
|
-
scheme: z.ZodOptional<z.ZodString>;
|
|
666
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
667
|
-
type: z.ZodLiteral<"api-key">;
|
|
668
|
-
name: z.ZodString;
|
|
669
|
-
valueRef: z.ZodOptional<z.ZodString>;
|
|
670
|
-
valueEnv: z.ZodOptional<z.ZodString>;
|
|
671
|
-
in: z.ZodEnum<{
|
|
672
75
|
query: "query";
|
|
673
|
-
header: "header";
|
|
674
76
|
}>;
|
|
675
77
|
}, z.core.$loose>, z.ZodObject<{
|
|
676
78
|
type: z.ZodLiteral<"oauth2">;
|
|
@@ -686,124 +88,47 @@ export declare const apiFileSchema: z.ZodObject<{
|
|
|
686
88
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
687
89
|
audience: z.ZodOptional<z.ZodString>;
|
|
688
90
|
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
689
|
-
body: "body";
|
|
690
91
|
basic: "basic";
|
|
691
|
-
}>>;
|
|
692
|
-
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
693
|
-
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
694
|
-
}, z.core.$loose>]>>;
|
|
695
|
-
definition: z.ZodOptional<z.ZodObject<{
|
|
696
|
-
source: z.ZodString;
|
|
697
|
-
cache: z.ZodDefault<z.ZodBoolean>;
|
|
698
|
-
version: z.ZodDefault<z.ZodString>;
|
|
699
|
-
}, z.core.$loose>>;
|
|
700
|
-
}, z.core.$loose>;
|
|
701
|
-
/** The four shapes a gRPC method can take. */
|
|
702
|
-
export declare const grpcMethodKindSchema: z.ZodEnum<{
|
|
703
|
-
unary: "unary";
|
|
704
|
-
"server-streaming": "server-streaming";
|
|
705
|
-
"client-streaming": "client-streaming";
|
|
706
|
-
"bidi-streaming": "bidi-streaming";
|
|
707
|
-
}>;
|
|
708
|
-
/**
|
|
709
|
-
* `apis/<slug>/requests/[<folder>/…]<name>.request.yaml` for a gRPC request. The message text lives
|
|
710
|
-
* in the sibling file `message` names, validated as a path segment before it is read (ADR-0005),
|
|
711
|
-
* so a JSON message is a JSON file in git like a REST raw body.
|
|
712
|
-
*/
|
|
713
|
-
export declare const grpcRequestFileSchema: z.ZodObject<{
|
|
714
|
-
kind: z.ZodLiteral<"grpc">;
|
|
715
|
-
id: z.ZodString;
|
|
716
|
-
name: z.ZodString;
|
|
717
|
-
order: z.ZodNumber;
|
|
718
|
-
description: z.ZodOptional<z.ZodString>;
|
|
719
|
-
service: z.ZodString;
|
|
720
|
-
method: z.ZodString;
|
|
721
|
-
methodKind: z.ZodDefault<z.ZodEnum<{
|
|
722
|
-
unary: "unary";
|
|
723
|
-
"server-streaming": "server-streaming";
|
|
724
|
-
"client-streaming": "client-streaming";
|
|
725
|
-
"bidi-streaming": "bidi-streaming";
|
|
726
|
-
}>>;
|
|
727
|
-
metadata: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
728
|
-
name: z.ZodString;
|
|
729
|
-
value: z.ZodString;
|
|
730
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
731
|
-
description: z.ZodOptional<z.ZodString>;
|
|
732
|
-
}, z.core.$loose>>>;
|
|
733
|
-
message: z.ZodOptional<z.ZodString>;
|
|
734
|
-
auth: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
735
|
-
type: z.ZodEnum<{
|
|
736
|
-
none: "none";
|
|
737
|
-
basic: "basic";
|
|
738
|
-
ntlm: "ntlm";
|
|
739
|
-
}>;
|
|
740
|
-
username: z.ZodOptional<z.ZodString>;
|
|
741
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
742
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
743
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
744
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
745
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
746
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
747
|
-
type: z.ZodLiteral<"inherit">;
|
|
748
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
749
|
-
type: z.ZodLiteral<"bearer">;
|
|
750
|
-
tokenRef: z.ZodOptional<z.ZodString>;
|
|
751
|
-
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
752
|
-
scheme: z.ZodOptional<z.ZodString>;
|
|
753
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
754
|
-
type: z.ZodLiteral<"api-key">;
|
|
755
|
-
name: z.ZodString;
|
|
756
|
-
valueRef: z.ZodOptional<z.ZodString>;
|
|
757
|
-
valueEnv: z.ZodOptional<z.ZodString>;
|
|
758
|
-
in: z.ZodEnum<{
|
|
759
|
-
query: "query";
|
|
760
|
-
header: "header";
|
|
761
|
-
}>;
|
|
762
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
763
|
-
type: z.ZodLiteral<"oauth2">;
|
|
764
|
-
grant: z.ZodEnum<{
|
|
765
|
-
"client-credentials": "client-credentials";
|
|
766
|
-
"authorization-code": "authorization-code";
|
|
767
|
-
}>;
|
|
768
|
-
tokenUrl: z.ZodString;
|
|
769
|
-
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
770
|
-
clientId: z.ZodString;
|
|
771
|
-
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
772
|
-
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
773
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
774
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
775
|
-
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
776
92
|
body: "body";
|
|
777
|
-
basic: "basic";
|
|
778
93
|
}>>;
|
|
779
94
|
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
780
95
|
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
781
96
|
}, z.core.$loose>]>>;
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
97
|
+
signing: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
98
|
+
mode: z.ZodLiteral<"none">;
|
|
99
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
100
|
+
mode: z.ZodLiteral<"sign">;
|
|
101
|
+
scheme: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
102
|
+
kind: z.ZodLiteral<"hmac">;
|
|
103
|
+
algorithm: z.ZodEnum<{
|
|
104
|
+
sha256: "sha256";
|
|
105
|
+
sha1: "sha1";
|
|
106
|
+
sha512: "sha512";
|
|
107
|
+
}>;
|
|
108
|
+
encoding: z.ZodEnum<{
|
|
109
|
+
base64: "base64";
|
|
110
|
+
hex: "hex";
|
|
111
|
+
}>;
|
|
112
|
+
header: z.ZodString;
|
|
113
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
kind: z.ZodLiteral<"timestamped">;
|
|
116
|
+
header: z.ZodString;
|
|
117
|
+
toleranceSec: z.ZodDefault<z.ZodNumber>;
|
|
118
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
119
|
+
kind: z.ZodLiteral<"standard">;
|
|
120
|
+
toleranceSec: z.ZodDefault<z.ZodNumber>;
|
|
121
|
+
}, z.core.$strip>], "kind">;
|
|
122
|
+
secretRef: z.ZodOptional<z.ZodString>;
|
|
123
|
+
secretEnv: z.ZodOptional<z.ZodString>;
|
|
124
|
+
}, z.core.$loose>]>>;
|
|
791
125
|
}, z.core.$loose>;
|
|
792
|
-
/** `
|
|
793
|
-
export declare const
|
|
794
|
-
kind: z.ZodLiteral<"grpc">;
|
|
126
|
+
/** `webhooks/requests/[<folder>/…]folder.yaml`: a REST folder plus a target override and its source API. */
|
|
127
|
+
export declare const webhookFolderFileSchema: z.ZodObject<{
|
|
795
128
|
id: z.ZodString;
|
|
796
129
|
name: z.ZodString;
|
|
797
130
|
order: z.ZodNumber;
|
|
798
131
|
description: z.ZodOptional<z.ZodString>;
|
|
799
|
-
target: z.ZodString;
|
|
800
|
-
tls: z.ZodDefault<z.ZodBoolean>;
|
|
801
|
-
metadata: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
802
|
-
name: z.ZodString;
|
|
803
|
-
value: z.ZodString;
|
|
804
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
805
|
-
description: z.ZodOptional<z.ZodString>;
|
|
806
|
-
}, z.core.$loose>>>;
|
|
807
132
|
auth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
808
133
|
type: z.ZodEnum<{
|
|
809
134
|
none: "none";
|
|
@@ -829,96 +154,8 @@ export declare const grpcApiFileSchema: z.ZodObject<{
|
|
|
829
154
|
valueRef: z.ZodOptional<z.ZodString>;
|
|
830
155
|
valueEnv: z.ZodOptional<z.ZodString>;
|
|
831
156
|
in: z.ZodEnum<{
|
|
832
|
-
query: "query";
|
|
833
157
|
header: "header";
|
|
834
|
-
}>;
|
|
835
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
836
|
-
type: z.ZodLiteral<"oauth2">;
|
|
837
|
-
grant: z.ZodEnum<{
|
|
838
|
-
"client-credentials": "client-credentials";
|
|
839
|
-
"authorization-code": "authorization-code";
|
|
840
|
-
}>;
|
|
841
|
-
tokenUrl: z.ZodString;
|
|
842
|
-
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
843
|
-
clientId: z.ZodString;
|
|
844
|
-
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
845
|
-
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
846
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
847
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
848
|
-
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
849
|
-
body: "body";
|
|
850
|
-
basic: "basic";
|
|
851
|
-
}>>;
|
|
852
|
-
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
853
|
-
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
854
|
-
}, z.core.$loose>]>>;
|
|
855
|
-
definition: z.ZodOptional<z.ZodObject<{
|
|
856
|
-
kind: z.ZodDefault<z.ZodEnum<{
|
|
857
|
-
proto: "proto";
|
|
858
|
-
reflection: "reflection";
|
|
859
|
-
}>>;
|
|
860
|
-
source: z.ZodString;
|
|
861
|
-
cache: z.ZodDefault<z.ZodBoolean>;
|
|
862
|
-
roots: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
863
|
-
reflectionVersion: z.ZodOptional<z.ZodEnum<{
|
|
864
|
-
auto: "auto";
|
|
865
|
-
v1: "v1";
|
|
866
|
-
v1alpha: "v1alpha";
|
|
867
|
-
}>>;
|
|
868
|
-
trustInvalid: z.ZodOptional<z.ZodBoolean>;
|
|
869
|
-
}, z.core.$loose>>;
|
|
870
|
-
}, z.core.$loose>;
|
|
871
|
-
/**
|
|
872
|
-
* `apis/<slug>/requests/[<folder>/…]<name>.request.yaml` for a WebSocket request. Each saved
|
|
873
|
-
* message's own text lives in its own sibling file, so a JSON message is a JSON file in git.
|
|
874
|
-
*/
|
|
875
|
-
export declare const wsRequestFileSchema: z.ZodObject<{
|
|
876
|
-
kind: z.ZodLiteral<"websocket">;
|
|
877
|
-
id: z.ZodString;
|
|
878
|
-
name: z.ZodString;
|
|
879
|
-
order: z.ZodNumber;
|
|
880
|
-
description: z.ZodOptional<z.ZodString>;
|
|
881
|
-
url: z.ZodString;
|
|
882
|
-
query: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
883
|
-
name: z.ZodString;
|
|
884
|
-
value: z.ZodString;
|
|
885
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
886
|
-
description: z.ZodOptional<z.ZodString>;
|
|
887
|
-
}, z.core.$loose>>>;
|
|
888
|
-
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
889
|
-
name: z.ZodString;
|
|
890
|
-
value: z.ZodString;
|
|
891
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
892
|
-
description: z.ZodOptional<z.ZodString>;
|
|
893
|
-
}, z.core.$loose>>>;
|
|
894
|
-
subprotocols: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
895
|
-
auth: z.ZodDefault<z.ZodUnion<readonly [z.ZodObject<{
|
|
896
|
-
type: z.ZodEnum<{
|
|
897
|
-
none: "none";
|
|
898
|
-
basic: "basic";
|
|
899
|
-
ntlm: "ntlm";
|
|
900
|
-
}>;
|
|
901
|
-
username: z.ZodOptional<z.ZodString>;
|
|
902
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
903
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
904
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
905
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
906
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
907
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
908
|
-
type: z.ZodLiteral<"inherit">;
|
|
909
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
910
|
-
type: z.ZodLiteral<"bearer">;
|
|
911
|
-
tokenRef: z.ZodOptional<z.ZodString>;
|
|
912
|
-
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
913
|
-
scheme: z.ZodOptional<z.ZodString>;
|
|
914
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
915
|
-
type: z.ZodLiteral<"api-key">;
|
|
916
|
-
name: z.ZodString;
|
|
917
|
-
valueRef: z.ZodOptional<z.ZodString>;
|
|
918
|
-
valueEnv: z.ZodOptional<z.ZodString>;
|
|
919
|
-
in: z.ZodEnum<{
|
|
920
158
|
query: "query";
|
|
921
|
-
header: "header";
|
|
922
159
|
}>;
|
|
923
160
|
}, z.core.$loose>, z.ZodObject<{
|
|
924
161
|
type: z.ZodLiteral<"oauth2">;
|
|
@@ -934,111 +171,45 @@ export declare const wsRequestFileSchema: z.ZodObject<{
|
|
|
934
171
|
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
935
172
|
audience: z.ZodOptional<z.ZodString>;
|
|
936
173
|
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
937
|
-
body: "body";
|
|
938
174
|
basic: "basic";
|
|
939
|
-
}>>;
|
|
940
|
-
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
941
|
-
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
942
|
-
}, z.core.$loose>]>>;
|
|
943
|
-
settings: z.ZodDefault<z.ZodObject<{
|
|
944
|
-
handshakeTimeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
945
|
-
trustInvalid: z.ZodOptional<z.ZodBoolean>;
|
|
946
|
-
sslKeystoreRef: z.ZodOptional<z.ZodString>;
|
|
947
|
-
bindAddress: z.ZodOptional<z.ZodString>;
|
|
948
|
-
maxMessageBytes: z.ZodOptional<z.ZodNumber>;
|
|
949
|
-
escapeProperties: z.ZodOptional<z.ZodBoolean>;
|
|
950
|
-
}, z.core.$loose>>;
|
|
951
|
-
messages: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
952
|
-
id: z.ZodString;
|
|
953
|
-
name: z.ZodString;
|
|
954
|
-
format: z.ZodDefault<z.ZodEnum<{
|
|
955
|
-
text: "text";
|
|
956
|
-
binary: "binary";
|
|
957
|
-
}>>;
|
|
958
|
-
file: z.ZodString;
|
|
959
|
-
}, z.core.$loose>>>;
|
|
960
|
-
}, z.core.$loose>;
|
|
961
|
-
/** `apis/<slug>/api.yaml` for a WebSocket API. */
|
|
962
|
-
export declare const wsApiFileSchema: z.ZodObject<{
|
|
963
|
-
kind: z.ZodLiteral<"websocket">;
|
|
964
|
-
id: z.ZodString;
|
|
965
|
-
name: z.ZodString;
|
|
966
|
-
order: z.ZodNumber;
|
|
967
|
-
description: z.ZodOptional<z.ZodString>;
|
|
968
|
-
url: z.ZodString;
|
|
969
|
-
headers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
970
|
-
name: z.ZodString;
|
|
971
|
-
value: z.ZodString;
|
|
972
|
-
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
973
|
-
description: z.ZodOptional<z.ZodString>;
|
|
974
|
-
}, z.core.$loose>>>;
|
|
975
|
-
auth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
976
|
-
type: z.ZodEnum<{
|
|
977
|
-
none: "none";
|
|
978
|
-
basic: "basic";
|
|
979
|
-
ntlm: "ntlm";
|
|
980
|
-
}>;
|
|
981
|
-
username: z.ZodOptional<z.ZodString>;
|
|
982
|
-
passwordRef: z.ZodOptional<z.ZodString>;
|
|
983
|
-
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
984
|
-
domain: z.ZodOptional<z.ZodString>;
|
|
985
|
-
workstation: z.ZodOptional<z.ZodString>;
|
|
986
|
-
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
987
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
988
|
-
type: z.ZodLiteral<"inherit">;
|
|
989
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
990
|
-
type: z.ZodLiteral<"bearer">;
|
|
991
|
-
tokenRef: z.ZodOptional<z.ZodString>;
|
|
992
|
-
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
993
|
-
scheme: z.ZodOptional<z.ZodString>;
|
|
994
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
995
|
-
type: z.ZodLiteral<"api-key">;
|
|
996
|
-
name: z.ZodString;
|
|
997
|
-
valueRef: z.ZodOptional<z.ZodString>;
|
|
998
|
-
valueEnv: z.ZodOptional<z.ZodString>;
|
|
999
|
-
in: z.ZodEnum<{
|
|
1000
|
-
query: "query";
|
|
1001
|
-
header: "header";
|
|
1002
|
-
}>;
|
|
1003
|
-
}, z.core.$loose>, z.ZodObject<{
|
|
1004
|
-
type: z.ZodLiteral<"oauth2">;
|
|
1005
|
-
grant: z.ZodEnum<{
|
|
1006
|
-
"client-credentials": "client-credentials";
|
|
1007
|
-
"authorization-code": "authorization-code";
|
|
1008
|
-
}>;
|
|
1009
|
-
tokenUrl: z.ZodString;
|
|
1010
|
-
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
1011
|
-
clientId: z.ZodString;
|
|
1012
|
-
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
1013
|
-
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
1014
|
-
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1015
|
-
audience: z.ZodOptional<z.ZodString>;
|
|
1016
|
-
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
1017
175
|
body: "body";
|
|
1018
|
-
basic: "basic";
|
|
1019
176
|
}>>;
|
|
1020
177
|
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
1021
178
|
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
1022
179
|
}, z.core.$loose>]>>;
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
cache: z.ZodDefault<z.ZodBoolean>;
|
|
180
|
+
target: z.ZodOptional<z.ZodString>;
|
|
181
|
+
source: z.ZodOptional<z.ZodObject<{
|
|
182
|
+
apiId: z.ZodString;
|
|
1027
183
|
}, z.core.$loose>>;
|
|
184
|
+
signing: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
185
|
+
mode: z.ZodLiteral<"none">;
|
|
186
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
187
|
+
mode: z.ZodLiteral<"sign">;
|
|
188
|
+
scheme: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
189
|
+
kind: z.ZodLiteral<"hmac">;
|
|
190
|
+
algorithm: z.ZodEnum<{
|
|
191
|
+
sha256: "sha256";
|
|
192
|
+
sha1: "sha1";
|
|
193
|
+
sha512: "sha512";
|
|
194
|
+
}>;
|
|
195
|
+
encoding: z.ZodEnum<{
|
|
196
|
+
base64: "base64";
|
|
197
|
+
hex: "hex";
|
|
198
|
+
}>;
|
|
199
|
+
header: z.ZodString;
|
|
200
|
+
prefix: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
202
|
+
kind: z.ZodLiteral<"timestamped">;
|
|
203
|
+
header: z.ZodString;
|
|
204
|
+
toleranceSec: z.ZodDefault<z.ZodNumber>;
|
|
205
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
206
|
+
kind: z.ZodLiteral<"standard">;
|
|
207
|
+
toleranceSec: z.ZodDefault<z.ZodNumber>;
|
|
208
|
+
}, z.core.$strip>], "kind">;
|
|
209
|
+
secretRef: z.ZodOptional<z.ZodString>;
|
|
210
|
+
secretEnv: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$loose>]>>;
|
|
1028
212
|
}, z.core.$loose>;
|
|
1029
|
-
/**
|
|
1030
|
-
* Refuses a document whose `kind` this build does not know how to honour — a protocol a later
|
|
1031
|
-
* release adds, or a typo — before schema validation, so the error says what is actually wrong
|
|
1032
|
-
* ("this build cannot open a graphql document") instead of "expected 'rest', received 'graphql'",
|
|
1033
|
-
* and so a project written by a future build fails loudly rather than losing its requests to a
|
|
1034
|
-
* dropped unknown key. `grpc` was the reserved name this guard existed for until the gRPC client
|
|
1035
|
-
* arrived; it stays for whatever comes next.
|
|
1036
|
-
*
|
|
1037
|
-
* @throws ProjectError `project-kind-not-supported`
|
|
1038
|
-
*/
|
|
1039
|
-
export declare function assertSupportedKind(document: unknown, file: string): void;
|
|
1040
|
-
/** The `kind` of an `api.yaml`, read ahead of full validation so the loader knows which schema applies. */
|
|
1041
|
-
export declare function apiKindOf(document: unknown): 'rest' | 'grpc' | 'websocket';
|
|
1042
213
|
/** `environments/<slug>.yaml`. */
|
|
1043
214
|
export declare const environmentFileSchema: z.ZodObject<{
|
|
1044
215
|
id: z.ZodString;
|
|
@@ -1298,32 +469,5 @@ export type DefinitionCacheManifest = z.infer<typeof definitionCacheManifestSche
|
|
|
1298
469
|
export type DefinitionCacheDocument = z.infer<typeof definitionCacheDocumentSchema>;
|
|
1299
470
|
/** The manifest document as persisted. */
|
|
1300
471
|
export type ManifestFile = z.infer<typeof manifestSchema>;
|
|
1301
|
-
/** An interface document as persisted. */
|
|
1302
|
-
export type InterfaceFile = z.infer<typeof interfaceFileSchema>;
|
|
1303
|
-
/** A request document as persisted (envelope excluded). */
|
|
1304
|
-
export type RequestFile = z.infer<typeof requestFileSchema>;
|
|
1305
472
|
/** An environment document as persisted. */
|
|
1306
473
|
export type EnvironmentFile = z.infer<typeof environmentFileSchema>;
|
|
1307
|
-
/** One table row as persisted (params, query, headers, form fields). */
|
|
1308
|
-
export type KeyValueEntryFile = z.infer<typeof keyValueEntrySchema>;
|
|
1309
|
-
/** An API document as persisted. */
|
|
1310
|
-
export type ApiFile = z.infer<typeof apiFileSchema>;
|
|
1311
|
-
/** A folder document as persisted. */
|
|
1312
|
-
export type RestFolderFile = z.infer<typeof restFolderFileSchema>;
|
|
1313
|
-
/** A REST request document as persisted (a raw body's text excluded). */
|
|
1314
|
-
export type RestRequestFile = z.infer<typeof restRequestFileSchema>;
|
|
1315
|
-
/** A gRPC `api.yaml` as parsed. */
|
|
1316
|
-
export type GrpcApiFile = z.infer<typeof grpcApiFileSchema>;
|
|
1317
|
-
/** A gRPC `*.request.yaml` as parsed. */
|
|
1318
|
-
export type GrpcRequestFile = z.infer<typeof grpcRequestFileSchema>;
|
|
1319
|
-
/** A WebSocket `api.yaml` as parsed. */
|
|
1320
|
-
export type WsApiFile = z.infer<typeof wsApiFileSchema>;
|
|
1321
|
-
/** A WebSocket `*.request.yaml` as parsed. */
|
|
1322
|
-
export type WsRequestFile = z.infer<typeof wsRequestFileSchema>;
|
|
1323
|
-
/**
|
|
1324
|
-
* Validates `value` against `schema`, raising
|
|
1325
|
-
* `ProjectError('project-file-invalid')` carrying the file path and the
|
|
1326
|
-
* individual zod issues when it does not match.
|
|
1327
|
-
*/
|
|
1328
|
-
export declare function parseFile<T>(schema: z.ZodType<T>, value: unknown, file: string): T;
|
|
1329
|
-
export {};
|