@wirebench/engine 2.1.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/LICENSE +201 -0
- package/README.md +3 -0
- package/dist/assert/contract.d.ts +3 -0
- package/dist/assert/contract.js +17 -0
- package/dist/assert/index.d.ts +4 -0
- package/dist/assert/index.js +27 -0
- package/dist/assert/match.d.ts +3 -0
- package/dist/assert/match.js +58 -0
- package/dist/assert/model.d.ts +73 -0
- package/dist/assert/model.js +8 -0
- package/dist/assert/schema.d.ts +34 -0
- package/dist/assert/schema.js +46 -0
- package/dist/assert/sla.d.ts +3 -0
- package/dist/assert/sla.js +8 -0
- package/dist/assert/soap-fault.d.ts +3 -0
- package/dist/assert/soap-fault.js +20 -0
- package/dist/assert/status.d.ts +3 -0
- package/dist/assert/status.js +14 -0
- package/dist/errors.d.ts +77 -0
- package/dist/errors.js +121 -0
- package/dist/fs.d.ts +35 -0
- package/dist/fs.js +64 -0
- package/dist/generate.d.ts +12 -0
- package/dist/generate.js +14 -0
- package/dist/grpc/browser.d.ts +11 -0
- package/dist/grpc/browser.js +9 -0
- package/dist/grpc/cache.d.ts +113 -0
- package/dist/grpc/cache.js +244 -0
- package/dist/grpc/call.d.ts +64 -0
- package/dist/grpc/call.js +72 -0
- package/dist/grpc/codec.d.ts +29 -0
- package/dist/grpc/codec.js +416 -0
- package/dist/grpc/command.d.ts +23 -0
- package/dist/grpc/command.js +91 -0
- package/dist/grpc/expand.d.ts +25 -0
- package/dist/grpc/expand.js +52 -0
- package/dist/grpc/framing.d.ts +28 -0
- package/dist/grpc/framing.js +61 -0
- package/dist/grpc/import.d.ts +47 -0
- package/dist/grpc/import.js +88 -0
- package/dist/grpc/model.d.ts +179 -0
- package/dist/grpc/model.js +91 -0
- package/dist/grpc/proto/describe.d.ts +92 -0
- package/dist/grpc/proto/describe.js +205 -0
- package/dist/grpc/proto/load.d.ts +35 -0
- package/dist/grpc/proto/load.js +112 -0
- package/dist/grpc/proto/sample.d.ts +21 -0
- package/dist/grpc/proto/sample.js +79 -0
- package/dist/grpc/proto/well-known.d.ts +42 -0
- package/dist/grpc/proto/well-known.js +143 -0
- package/dist/grpc/reconcile.d.ts +42 -0
- package/dist/grpc/reconcile.js +153 -0
- package/dist/grpc/reflection/client.d.ts +70 -0
- package/dist/grpc/reflection/client.js +197 -0
- package/dist/grpc/reflection/descriptors.d.ts +69 -0
- package/dist/grpc/reflection/descriptors.js +140 -0
- package/dist/grpc/reflection/proto.d.ts +33 -0
- package/dist/grpc/reflection/proto.js +144 -0
- package/dist/grpc/send.d.ts +132 -0
- package/dist/grpc/send.js +435 -0
- package/dist/grpc/shape.d.ts +29 -0
- package/dist/grpc/shape.js +36 -0
- package/dist/grpc/status.d.ts +21 -0
- package/dist/grpc/status.js +62 -0
- package/dist/grpc/target.d.ts +21 -0
- package/dist/grpc/target.js +66 -0
- package/dist/http/auth/apply.d.ts +37 -0
- package/dist/http/auth/apply.js +74 -0
- package/dist/http/auth/basic.d.ts +36 -0
- package/dist/http/auth/basic.js +69 -0
- package/dist/http/auth/md4.d.ts +13 -0
- package/dist/http/auth/md4.js +81 -0
- package/dist/http/auth/ntlm-transport.d.ts +61 -0
- package/dist/http/auth/ntlm-transport.js +97 -0
- package/dist/http/auth/ntlm.d.ts +190 -0
- package/dist/http/auth/ntlm.js +377 -0
- package/dist/http/client.d.ts +73 -0
- package/dist/http/client.js +403 -0
- package/dist/http/curl-flags.d.ts +15 -0
- package/dist/http/curl-flags.js +95 -0
- package/dist/http/curl.d.ts +94 -0
- package/dist/http/curl.js +245 -0
- package/dist/http/decompress.d.ts +7 -0
- package/dist/http/decompress.js +22 -0
- package/dist/http/errors.d.ts +22 -0
- package/dist/http/errors.js +144 -0
- package/dist/http/failed-request.d.ts +27 -0
- package/dist/http/failed-request.js +48 -0
- package/dist/http/headers.d.ts +15 -0
- package/dist/http/headers.js +50 -0
- package/dist/http/heredoc.d.ts +25 -0
- package/dist/http/heredoc.js +74 -0
- package/dist/http/proxy.d.ts +103 -0
- package/dist/http/proxy.js +168 -0
- package/dist/http/raw-capture.d.ts +23 -0
- package/dist/http/raw-capture.js +57 -0
- package/dist/http/timings.d.ts +79 -0
- package/dist/http/timings.js +212 -0
- package/dist/http/tls.d.ts +111 -0
- package/dist/http/tls.js +167 -0
- package/dist/http/types.d.ts +125 -0
- package/dist/http/types.js +6 -0
- package/dist/import-detect.d.ts +26 -0
- package/dist/import-detect.js +169 -0
- package/dist/import.d.ts +20 -0
- package/dist/import.js +163 -0
- package/dist/index.d.ts +272 -0
- package/dist/index.js +157 -0
- package/dist/json/cursor.d.ts +43 -0
- package/dist/json/cursor.js +168 -0
- package/dist/operations.d.ts +12 -0
- package/dist/operations.js +52 -0
- package/dist/project/attachments-cache.d.ts +80 -0
- package/dist/project/attachments-cache.js +186 -0
- package/dist/project/endpoints.d.ts +23 -0
- package/dist/project/endpoints.js +47 -0
- package/dist/project/environments.d.ts +68 -0
- package/dist/project/environments.js +124 -0
- package/dist/project/fs.d.ts +45 -0
- package/dist/project/fs.js +78 -0
- package/dist/project/history.d.ts +171 -0
- package/dist/project/history.js +179 -0
- package/dist/project/keystores.d.ts +24 -0
- package/dist/project/keystores.js +66 -0
- package/dist/project/load.d.ts +44 -0
- package/dist/project/load.js +634 -0
- package/dist/project/migrate.d.ts +27 -0
- package/dist/project/migrate.js +46 -0
- package/dist/project/model.d.ts +401 -0
- package/dist/project/model.js +126 -0
- package/dist/project/paths.d.ts +134 -0
- package/dist/project/paths.js +259 -0
- package/dist/project/preferences.d.ts +318 -0
- package/dist/project/preferences.js +239 -0
- package/dist/project/properties.d.ts +97 -0
- package/dist/project/properties.js +356 -0
- package/dist/project/save.d.ts +65 -0
- package/dist/project/save.js +295 -0
- package/dist/project/schema.d.ts +1329 -0
- package/dist/project/schema.js +737 -0
- package/dist/project/serialize.d.ts +42 -0
- package/dist/project/serialize.js +385 -0
- package/dist/project/wss-configs.d.ts +40 -0
- package/dist/project/wss-configs.js +142 -0
- package/dist/project/yaml.d.ts +17 -0
- package/dist/project/yaml.js +39 -0
- package/dist/redact/index.d.ts +77 -0
- package/dist/redact/index.js +328 -0
- package/dist/redact/literal.d.ts +12 -0
- package/dist/redact/literal.js +68 -0
- package/dist/rest/auth.d.ts +53 -0
- package/dist/rest/auth.js +80 -0
- package/dist/rest/body.d.ts +61 -0
- package/dist/rest/body.js +184 -0
- package/dist/rest/browser.d.ts +12 -0
- package/dist/rest/browser.js +11 -0
- package/dist/rest/cookies.d.ts +41 -0
- package/dist/rest/cookies.js +102 -0
- package/dist/rest/curl.d.ts +75 -0
- package/dist/rest/curl.js +417 -0
- package/dist/rest/expand.d.ts +35 -0
- package/dist/rest/expand.js +104 -0
- package/dist/rest/model.d.ts +247 -0
- package/dist/rest/model.js +118 -0
- package/dist/rest/oauth2.d.ts +118 -0
- package/dist/rest/oauth2.js +212 -0
- package/dist/rest/openapi/cache.d.ts +54 -0
- package/dist/rest/openapi/cache.js +128 -0
- package/dist/rest/openapi/import.d.ts +67 -0
- package/dist/rest/openapi/import.js +91 -0
- package/dist/rest/openapi/map.d.ts +102 -0
- package/dist/rest/openapi/map.js +477 -0
- package/dist/rest/openapi/model.d.ts +203 -0
- package/dist/rest/openapi/model.js +37 -0
- package/dist/rest/openapi/parse.d.ts +44 -0
- package/dist/rest/openapi/parse.js +1530 -0
- package/dist/rest/openapi/refs.d.ts +63 -0
- package/dist/rest/openapi/refs.js +258 -0
- package/dist/rest/openapi/sample.d.ts +68 -0
- package/dist/rest/openapi/sample.js +336 -0
- package/dist/rest/postman/import.d.ts +21 -0
- package/dist/rest/postman/import.js +47 -0
- package/dist/rest/postman/index.d.ts +7 -0
- package/dist/rest/postman/index.js +7 -0
- package/dist/rest/postman/map.d.ts +28 -0
- package/dist/rest/postman/map.js +427 -0
- package/dist/rest/postman/model.d.ts +118 -0
- package/dist/rest/postman/model.js +7 -0
- package/dist/rest/postman/parse.d.ts +29 -0
- package/dist/rest/postman/parse.js +518 -0
- package/dist/rest/response.d.ts +72 -0
- package/dist/rest/response.js +221 -0
- package/dist/rest/send.d.ts +102 -0
- package/dist/rest/send.js +148 -0
- package/dist/rest/url.d.ts +92 -0
- package/dist/rest/url.js +213 -0
- package/dist/run/effective-auth.d.ts +10 -0
- package/dist/run/effective-auth.js +19 -0
- package/dist/run/index.d.ts +8 -0
- package/dist/run/index.js +4 -0
- package/dist/run/prepare.d.ts +43 -0
- package/dist/run/prepare.js +280 -0
- package/dist/run/run.d.ts +53 -0
- package/dist/run/run.js +223 -0
- package/dist/run/secret-needs.d.ts +13 -0
- package/dist/run/secret-needs.js +125 -0
- package/dist/run/select.d.ts +34 -0
- package/dist/run/select.js +76 -0
- package/dist/secrets/env-names.d.ts +27 -0
- package/dist/secrets/env-names.js +40 -0
- package/dist/secrets/resolve.d.ts +58 -0
- package/dist/secrets/resolve.js +136 -0
- package/dist/send-options.d.ts +141 -0
- package/dist/send-options.js +228 -0
- package/dist/send.d.ts +53 -0
- package/dist/send.js +210 -0
- package/dist/soap/body-builder.d.ts +38 -0
- package/dist/soap/body-builder.js +250 -0
- package/dist/soap/build-problems.d.ts +12 -0
- package/dist/soap/build-problems.js +2 -0
- package/dist/soap/charset.d.ts +23 -0
- package/dist/soap/charset.js +47 -0
- package/dist/soap/envelope.d.ts +44 -0
- package/dist/soap/envelope.js +76 -0
- package/dist/soap/fault.d.ts +46 -0
- package/dist/soap/fault.js +129 -0
- package/dist/soap/form-request.d.ts +34 -0
- package/dist/soap/form-request.js +251 -0
- package/dist/soap/legacy-project/definition-fetcher.d.ts +21 -0
- package/dist/soap/legacy-project/definition-fetcher.js +43 -0
- package/dist/soap/legacy-project/format.d.ts +18 -0
- package/dist/soap/legacy-project/format.js +24 -0
- package/dist/soap/legacy-project/import.d.ts +21 -0
- package/dist/soap/legacy-project/import.js +46 -0
- package/dist/soap/legacy-project/index.d.ts +9 -0
- package/dist/soap/legacy-project/index.js +5 -0
- package/dist/soap/legacy-project/map.d.ts +91 -0
- package/dist/soap/legacy-project/map.js +290 -0
- package/dist/soap/legacy-project/model.d.ts +98 -0
- package/dist/soap/legacy-project/model.js +5 -0
- package/dist/soap/legacy-project/parse.d.ts +16 -0
- package/dist/soap/legacy-project/parse.js +325 -0
- package/dist/soap/mime/cid-scan.d.ts +36 -0
- package/dist/soap/mime/cid-scan.js +52 -0
- package/dist/soap/mime/inline-files.d.ts +39 -0
- package/dist/soap/mime/inline-files.js +71 -0
- package/dist/soap/mime/mtom.d.ts +74 -0
- package/dist/soap/mime/mtom.js +134 -0
- package/dist/soap/mime/multipart.d.ts +66 -0
- package/dist/soap/mime/multipart.js +329 -0
- package/dist/soap/mime/send-pipeline.d.ts +61 -0
- package/dist/soap/mime/send-pipeline.js +145 -0
- package/dist/soap/mime/swa.d.ts +45 -0
- package/dist/soap/mime/swa.js +62 -0
- package/dist/soap/mime/types.d.ts +69 -0
- package/dist/soap/mime/types.js +10 -0
- package/dist/soap/namespace-scope.d.ts +32 -0
- package/dist/soap/namespace-scope.js +85 -0
- package/dist/soap/prefixes.d.ts +24 -0
- package/dist/soap/prefixes.js +70 -0
- package/dist/soap/recreate.d.ts +28 -0
- package/dist/soap/recreate.js +168 -0
- package/dist/soap/request-builder.d.ts +63 -0
- package/dist/soap/request-builder.js +161 -0
- package/dist/soap/response-parser.d.ts +29 -0
- package/dist/soap/response-parser.js +71 -0
- package/dist/soap/soap-action.d.ts +31 -0
- package/dist/soap/soap-action.js +28 -0
- package/dist/soap/transforms.d.ts +52 -0
- package/dist/soap/transforms.js +164 -0
- package/dist/types.d.ts +307 -0
- package/dist/types.js +6 -0
- package/dist/validate/index.d.ts +61 -0
- package/dist/validate/index.js +72 -0
- package/dist/validate/schema-file-set.d.ts +51 -0
- package/dist/validate/schema-file-set.js +288 -0
- package/dist/validate/schema-validator.d.ts +53 -0
- package/dist/validate/schema-validator.js +251 -0
- package/dist/validate/soap-structure.d.ts +34 -0
- package/dist/validate/soap-structure.js +255 -0
- package/dist/validate/types.d.ts +47 -0
- package/dist/validate/types.js +8 -0
- package/dist/validate/wsi/assertions/helpers.d.ts +145 -0
- package/dist/validate/wsi/assertions/helpers.js +387 -0
- package/dist/validate/wsi/assertions/index.d.ts +44 -0
- package/dist/validate/wsi/assertions/index.js +77 -0
- package/dist/validate/wsi/assertions/message/helpers.d.ts +63 -0
- package/dist/validate/wsi/assertions/message/helpers.js +168 -0
- package/dist/validate/wsi/assertions/message/index.d.ts +39 -0
- package/dist/validate/wsi/assertions/message/index.js +62 -0
- package/dist/validate/wsi/assertions/message/r1001.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1001.js +38 -0
- package/dist/validate/wsi/assertions/message/r1003.d.ts +14 -0
- package/dist/validate/wsi/assertions/message/r1003.js +45 -0
- package/dist/validate/wsi/assertions/message/r1005.d.ts +12 -0
- package/dist/validate/wsi/assertions/message/r1005.js +37 -0
- package/dist/validate/wsi/assertions/message/r1006.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1006.js +49 -0
- package/dist/validate/wsi/assertions/message/r1007.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1007.js +30 -0
- package/dist/validate/wsi/assertions/message/r1011.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1011.js +33 -0
- package/dist/validate/wsi/assertions/message/r1012.d.ts +13 -0
- package/dist/validate/wsi/assertions/message/r1012.js +37 -0
- package/dist/validate/wsi/assertions/message/r1013.d.ts +9 -0
- package/dist/validate/wsi/assertions/message/r1013.js +42 -0
- package/dist/validate/wsi/assertions/message/r1014.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1014.js +30 -0
- package/dist/validate/wsi/assertions/message/r1015.d.ts +12 -0
- package/dist/validate/wsi/assertions/message/r1015.js +36 -0
- package/dist/validate/wsi/assertions/message/r1017.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1017.js +30 -0
- package/dist/validate/wsi/assertions/message/r1100.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1100.js +39 -0
- package/dist/validate/wsi/assertions/message/r1101.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1101.js +37 -0
- package/dist/validate/wsi/assertions/message/r1102.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1102.js +41 -0
- package/dist/validate/wsi/assertions/message/r1103.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1103.js +28 -0
- package/dist/validate/wsi/assertions/message/r1107.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1107.js +38 -0
- package/dist/validate/wsi/assertions/message/r1109.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1109.js +32 -0
- package/dist/validate/wsi/assertions/message/r1124.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1124.js +31 -0
- package/dist/validate/wsi/assertions/message/r1132.d.ts +9 -0
- package/dist/validate/wsi/assertions/message/r1132.js +23 -0
- package/dist/validate/wsi/assertions/message/r1140.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1140.js +42 -0
- package/dist/validate/wsi/assertions/message/r1141.d.ts +10 -0
- package/dist/validate/wsi/assertions/message/r1141.js +32 -0
- package/dist/validate/wsi/assertions/message/r2113.d.ts +11 -0
- package/dist/validate/wsi/assertions/message/r2113.js +33 -0
- package/dist/validate/wsi/assertions/message/r2211.d.ts +7 -0
- package/dist/validate/wsi/assertions/message/r2211.js +42 -0
- package/dist/validate/wsi/assertions/r2001.d.ts +15 -0
- package/dist/validate/wsi/assertions/r2001.js +47 -0
- package/dist/validate/wsi/assertions/r2002.d.ts +11 -0
- package/dist/validate/wsi/assertions/r2002.js +38 -0
- package/dist/validate/wsi/assertions/r2003.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2003.js +32 -0
- package/dist/validate/wsi/assertions/r2005.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2005.js +40 -0
- package/dist/validate/wsi/assertions/r2101.d.ts +14 -0
- package/dist/validate/wsi/assertions/r2101.js +65 -0
- package/dist/validate/wsi/assertions/r2102.d.ts +10 -0
- package/dist/validate/wsi/assertions/r2102.js +41 -0
- package/dist/validate/wsi/assertions/r2105.d.ts +8 -0
- package/dist/validate/wsi/assertions/r2105.js +39 -0
- package/dist/validate/wsi/assertions/r2110.d.ts +8 -0
- package/dist/validate/wsi/assertions/r2110.js +38 -0
- package/dist/validate/wsi/assertions/r2111.d.ts +6 -0
- package/dist/validate/wsi/assertions/r2111.js +30 -0
- package/dist/validate/wsi/assertions/r2112.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2112.js +35 -0
- package/dist/validate/wsi/assertions/r2201.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2201.js +28 -0
- package/dist/validate/wsi/assertions/r2203.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2203.js +30 -0
- package/dist/validate/wsi/assertions/r2204.d.ts +6 -0
- package/dist/validate/wsi/assertions/r2204.js +29 -0
- package/dist/validate/wsi/assertions/r2205.d.ts +8 -0
- package/dist/validate/wsi/assertions/r2205.js +46 -0
- package/dist/validate/wsi/assertions/r2206.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2206.js +36 -0
- package/dist/validate/wsi/assertions/r2209.d.ts +12 -0
- package/dist/validate/wsi/assertions/r2209.js +37 -0
- package/dist/validate/wsi/assertions/r2210.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2210.js +30 -0
- package/dist/validate/wsi/assertions/r2303.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2303.js +44 -0
- package/dist/validate/wsi/assertions/r2304.d.ts +6 -0
- package/dist/validate/wsi/assertions/r2304.js +32 -0
- package/dist/validate/wsi/assertions/r2401.d.ts +12 -0
- package/dist/validate/wsi/assertions/r2401.js +31 -0
- package/dist/validate/wsi/assertions/r2701.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2701.js +28 -0
- package/dist/validate/wsi/assertions/r2702.d.ts +6 -0
- package/dist/validate/wsi/assertions/r2702.js +26 -0
- package/dist/validate/wsi/assertions/r2705.d.ts +11 -0
- package/dist/validate/wsi/assertions/r2705.js +31 -0
- package/dist/validate/wsi/assertions/r2706.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2706.js +29 -0
- package/dist/validate/wsi/assertions/r2710.d.ts +13 -0
- package/dist/validate/wsi/assertions/r2710.js +37 -0
- package/dist/validate/wsi/assertions/r2716.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2716.js +29 -0
- package/dist/validate/wsi/assertions/r2717.d.ts +9 -0
- package/dist/validate/wsi/assertions/r2717.js +31 -0
- package/dist/validate/wsi/assertions/r2718.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2718.js +41 -0
- package/dist/validate/wsi/assertions/r2720.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2720.js +29 -0
- package/dist/validate/wsi/assertions/r2721.d.ts +6 -0
- package/dist/validate/wsi/assertions/r2721.js +27 -0
- package/dist/validate/wsi/assertions/r2722.d.ts +6 -0
- package/dist/validate/wsi/assertions/r2722.js +29 -0
- package/dist/validate/wsi/assertions/r2801.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2801.js +39 -0
- package/dist/validate/wsi/assertions/r2803.d.ts +7 -0
- package/dist/validate/wsi/assertions/r2803.js +29 -0
- package/dist/validate/wsi/docs.d.ts +29 -0
- package/dist/validate/wsi/docs.js +167 -0
- package/dist/validate/wsi/index.d.ts +16 -0
- package/dist/validate/wsi/index.js +11 -0
- package/dist/validate/wsi/report-html.d.ts +36 -0
- package/dist/validate/wsi/report-html.js +135 -0
- package/dist/validate/wsi/run-message.d.ts +50 -0
- package/dist/validate/wsi/run-message.js +190 -0
- package/dist/validate/wsi/run-wsdl.d.ts +48 -0
- package/dist/validate/wsi/run-wsdl.js +99 -0
- package/dist/validate/wsi/types.d.ts +173 -0
- package/dist/validate/wsi/types.js +17 -0
- package/dist/workspace/commit-message.d.ts +47 -0
- package/dist/workspace/commit-message.js +195 -0
- package/dist/workspace/environments.d.ts +79 -0
- package/dist/workspace/environments.js +115 -0
- package/dist/workspace/index.d.ts +28 -0
- package/dist/workspace/index.js +19 -0
- package/dist/workspace/load.d.ts +45 -0
- package/dist/workspace/load.js +155 -0
- package/dist/workspace/local-state.d.ts +37 -0
- package/dist/workspace/local-state.js +59 -0
- package/dist/workspace/migrate.d.ts +38 -0
- package/dist/workspace/migrate.js +50 -0
- package/dist/workspace/model.d.ts +86 -0
- package/dist/workspace/model.js +54 -0
- package/dist/workspace/paths.d.ts +64 -0
- package/dist/workspace/paths.js +97 -0
- package/dist/workspace/reidentify.d.ts +22 -0
- package/dist/workspace/reidentify.js +122 -0
- package/dist/workspace/save.d.ts +31 -0
- package/dist/workspace/save.js +84 -0
- package/dist/workspace/schema.d.ts +93 -0
- package/dist/workspace/schema.js +115 -0
- package/dist/workspace/serialize.d.ts +24 -0
- package/dist/workspace/serialize.js +60 -0
- package/dist/workspace/share.d.ts +52 -0
- package/dist/workspace/share.js +89 -0
- package/dist/ws/browser.d.ts +13 -0
- package/dist/ws/browser.js +11 -0
- package/dist/ws/call.d.ts +53 -0
- package/dist/ws/call.js +106 -0
- package/dist/ws/command.d.ts +19 -0
- package/dist/ws/command.js +28 -0
- package/dist/ws/expand.d.ts +38 -0
- package/dist/ws/expand.js +76 -0
- package/dist/ws/model.d.ts +191 -0
- package/dist/ws/model.js +83 -0
- package/dist/ws/pretty.d.ts +12 -0
- package/dist/ws/pretty.js +25 -0
- package/dist/ws/session.d.ts +50 -0
- package/dist/ws/session.js +333 -0
- package/dist/ws/shape.d.ts +18 -0
- package/dist/ws/shape.js +28 -0
- package/dist/ws/transcript.d.ts +14 -0
- package/dist/ws/transcript.js +29 -0
- package/dist/ws/url.d.ts +3 -0
- package/dist/ws/url.js +44 -0
- package/dist/wsa/headers.d.ts +78 -0
- package/dist/wsa/headers.js +244 -0
- package/dist/wsa/model.d.ts +66 -0
- package/dist/wsa/model.js +52 -0
- package/dist/wsa/policy-detect.d.ts +81 -0
- package/dist/wsa/policy-detect.js +245 -0
- package/dist/wsdl/cache-naming.d.ts +39 -0
- package/dist/wsdl/cache-naming.js +90 -0
- package/dist/wsdl/cache.d.ts +48 -0
- package/dist/wsdl/cache.js +141 -0
- package/dist/wsdl/docs-generator.d.ts +47 -0
- package/dist/wsdl/docs-generator.js +439 -0
- package/dist/wsdl/dom-utils.d.ts +15 -0
- package/dist/wsdl/dom-utils.js +50 -0
- package/dist/wsdl/export-definition.d.ts +38 -0
- package/dist/wsdl/export-definition.js +100 -0
- package/dist/wsdl/fetch.d.ts +13 -0
- package/dist/wsdl/fetch.js +60 -0
- package/dist/wsdl/merge.d.ts +17 -0
- package/dist/wsdl/merge.js +57 -0
- package/dist/wsdl/model.d.ts +176 -0
- package/dist/wsdl/model.js +17 -0
- package/dist/wsdl/parse-binding.d.ts +6 -0
- package/dist/wsdl/parse-binding.js +150 -0
- package/dist/wsdl/parse-wsdl.d.ts +47 -0
- package/dist/wsdl/parse-wsdl.js +161 -0
- package/dist/wsdl/qname.d.ts +28 -0
- package/dist/wsdl/qname.js +41 -0
- package/dist/wsdl/ref-policy.d.ts +54 -0
- package/dist/wsdl/ref-policy.js +87 -0
- package/dist/wsdl/resolver.d.ts +81 -0
- package/dist/wsdl/resolver.js +276 -0
- package/dist/wsdl/update-definition.d.ts +106 -0
- package/dist/wsdl/update-definition.js +314 -0
- package/dist/wss/apply.d.ts +40 -0
- package/dist/wss/apply.js +212 -0
- package/dist/wss/c14n-prefixes.d.ts +27 -0
- package/dist/wss/c14n-prefixes.js +95 -0
- package/dist/wss/incoming/decrypt.d.ts +35 -0
- package/dist/wss/incoming/decrypt.js +57 -0
- package/dist/wss/incoming/index.d.ts +56 -0
- package/dist/wss/incoming/index.js +189 -0
- package/dist/wss/incoming/verify.d.ts +74 -0
- package/dist/wss/incoming/verify.js +440 -0
- package/dist/wss/key-identifiers.d.ts +76 -0
- package/dist/wss/key-identifiers.js +139 -0
- package/dist/wss/keystore/certificate.d.ts +45 -0
- package/dist/wss/keystore/certificate.js +134 -0
- package/dist/wss/keystore/index.d.ts +50 -0
- package/dist/wss/keystore/index.js +80 -0
- package/dist/wss/keystore/model.d.ts +83 -0
- package/dist/wss/keystore/model.js +27 -0
- package/dist/wss/keystore/pem.d.ts +21 -0
- package/dist/wss/keystore/pem.js +140 -0
- package/dist/wss/keystore/pkcs12.d.ts +21 -0
- package/dist/wss/keystore/pkcs12.js +125 -0
- package/dist/wss/model.d.ts +160 -0
- package/dist/wss/model.js +37 -0
- package/dist/wss/outgoing/encryption.d.ts +76 -0
- package/dist/wss/outgoing/encryption.js +618 -0
- package/dist/wss/outgoing/signature.d.ts +73 -0
- package/dist/wss/outgoing/signature.js +239 -0
- package/dist/wss/outgoing/timestamp.d.ts +29 -0
- package/dist/wss/outgoing/timestamp.js +39 -0
- package/dist/wss/outgoing/username-token.d.ts +36 -0
- package/dist/wss/outgoing/username-token.js +68 -0
- package/dist/wss/security-header.d.ts +31 -0
- package/dist/wss/security-header.js +83 -0
- package/dist/xml/index.d.ts +7 -0
- package/dist/xml/index.js +7 -0
- package/dist/xml/namespaces.d.ts +36 -0
- package/dist/xml/namespaces.js +60 -0
- package/dist/xml/parse.d.ts +79 -0
- package/dist/xml/parse.js +109 -0
- package/dist/xml/positions.d.ts +26 -0
- package/dist/xml/positions.js +71 -0
- package/dist/xml/pretty.d.ts +37 -0
- package/dist/xml/pretty.js +137 -0
- package/dist/xml/serialize.d.ts +6 -0
- package/dist/xml/serialize.js +8 -0
- package/dist/xml/tolerant-tree.d.ts +56 -0
- package/dist/xml/tolerant-tree.js +134 -0
- package/dist/xpath/evaluate-async.d.ts +31 -0
- package/dist/xpath/evaluate-async.js +81 -0
- package/dist/xpath/evaluate.d.ts +98 -0
- package/dist/xpath/evaluate.js +340 -0
- package/dist/xpath/jsonpath.d.ts +40 -0
- package/dist/xpath/jsonpath.js +109 -0
- package/dist/xpath/namespaces.d.ts +29 -0
- package/dist/xpath/namespaces.js +101 -0
- package/dist/xpath/worker.d.ts +7 -0
- package/dist/xpath/worker.js +26 -0
- package/dist/xsd/builtins.d.ts +36 -0
- package/dist/xsd/builtins.js +108 -0
- package/dist/xsd/check-references.d.ts +25 -0
- package/dist/xsd/check-references.js +145 -0
- package/dist/xsd/form-edits.d.ts +57 -0
- package/dist/xsd/form-edits.js +153 -0
- package/dist/xsd/form-model.d.ts +153 -0
- package/dist/xsd/form-model.js +691 -0
- package/dist/xsd/locate.d.ts +42 -0
- package/dist/xsd/locate.js +249 -0
- package/dist/xsd/model.d.ts +249 -0
- package/dist/xsd/model.js +1 -0
- package/dist/xsd/parse-particles.d.ts +48 -0
- package/dist/xsd/parse-particles.js +320 -0
- package/dist/xsd/parse-schema.d.ts +21 -0
- package/dist/xsd/parse-schema.js +143 -0
- package/dist/xsd/resolve-content.d.ts +18 -0
- package/dist/xsd/resolve-content.js +242 -0
- package/dist/xsd/sample-generator.d.ts +51 -0
- package/dist/xsd/sample-generator.js +291 -0
- package/dist/xsd/sample-types.d.ts +21 -0
- package/dist/xsd/sample-types.js +69 -0
- package/dist/xsd/sample-values.d.ts +54 -0
- package/dist/xsd/sample-values.js +267 -0
- package/dist/xsd/schema-set.d.ts +51 -0
- package/dist/xsd/schema-set.js +203 -0
- package/dist/xsd/xml-scan.d.ts +64 -0
- package/dist/xsd/xml-scan.js +286 -0
- package/dist/xsd/xml-writer.d.ts +56 -0
- package/dist/xsd/xml-writer.js +103 -0
- package/package.json +69 -0
|
@@ -0,0 +1,1329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zod schemas for every YAML document in a project folder.
|
|
3
|
+
*
|
|
4
|
+
* Every object schema is `z.looseObject`: unknown keys are accepted and
|
|
5
|
+
* IGNORED on load (the loader only ever reads the fields it knows about), and
|
|
6
|
+
* `saveProject` only ever writes known fields back out, so a 1.x build reading
|
|
7
|
+
* a file written by a newer 1.x build silently drops fields it does not
|
|
8
|
+
* understand rather than refusing to open the project. A breaking change to a
|
|
9
|
+
* document's shape bumps `formatVersion` instead of relying on strictness
|
|
10
|
+
* here. `formatVersion` itself stays a `z.literal` so an out-of-range value is
|
|
11
|
+
* still caught explicitly (see `migrate.ts`).
|
|
12
|
+
*
|
|
13
|
+
* The policy that follows from that, stated once so nobody has to rediscover
|
|
14
|
+
* it: **any additive field bumps `formatVersion`.** Since an unknown key is
|
|
15
|
+
* dropped on load and never written back, a field added inside the current
|
|
16
|
+
* version does not merely go unread by older builds — it is deleted from the
|
|
17
|
+
* project the first time an older build saves. "Additive is safe" is true of
|
|
18
|
+
* formats that round-trip unknown keys; this one deliberately does not. See
|
|
19
|
+
* ADR-0003.
|
|
20
|
+
*/
|
|
21
|
+
import { z } from 'zod';
|
|
22
|
+
/**
|
|
23
|
+
* Credentials as persisted: usernames and a `secretRef`, never a password
|
|
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
|
+
header: "header";
|
|
73
|
+
query: "query";
|
|
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
|
+
basic: "basic";
|
|
90
|
+
body: "body";
|
|
91
|
+
}>>;
|
|
92
|
+
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
93
|
+
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$loose>]>;
|
|
95
|
+
/** `wirebench.yaml`. */
|
|
96
|
+
export declare const manifestSchema: z.ZodObject<{
|
|
97
|
+
formatVersion: z.ZodLiteral<4>;
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
description: z.ZodOptional<z.ZodString>;
|
|
101
|
+
settings: z.ZodObject<{
|
|
102
|
+
cacheDefinitions: z.ZodBoolean;
|
|
103
|
+
defaultTimeoutMs: z.ZodNumber;
|
|
104
|
+
resourceRoot: z.ZodOptional<z.ZodString>;
|
|
105
|
+
prettyPrintResponses: z.ZodBoolean;
|
|
106
|
+
}, z.core.$loose>;
|
|
107
|
+
properties: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
108
|
+
disabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
|
+
activeEnvironmentId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
writtenBy: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$loose>;
|
|
112
|
+
/** `interfaces/<slug>/interface.yaml`. */
|
|
113
|
+
export declare const interfaceFileSchema: z.ZodObject<{
|
|
114
|
+
kind: z.ZodLiteral<"soap">;
|
|
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
|
+
text: "text";
|
|
356
|
+
json: "json";
|
|
357
|
+
xml: "xml";
|
|
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
|
+
text: "text";
|
|
437
|
+
json: "json";
|
|
438
|
+
xml: "xml";
|
|
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
|
+
header: "header";
|
|
511
|
+
query: "query";
|
|
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
|
+
basic: "basic";
|
|
528
|
+
body: "body";
|
|
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>;
|
|
586
|
+
auth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
587
|
+
type: z.ZodEnum<{
|
|
588
|
+
none: "none";
|
|
589
|
+
basic: "basic";
|
|
590
|
+
ntlm: "ntlm";
|
|
591
|
+
}>;
|
|
592
|
+
username: z.ZodOptional<z.ZodString>;
|
|
593
|
+
passwordRef: z.ZodOptional<z.ZodString>;
|
|
594
|
+
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
595
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
596
|
+
workstation: z.ZodOptional<z.ZodString>;
|
|
597
|
+
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
598
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
599
|
+
type: z.ZodLiteral<"inherit">;
|
|
600
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
601
|
+
type: z.ZodLiteral<"bearer">;
|
|
602
|
+
tokenRef: z.ZodOptional<z.ZodString>;
|
|
603
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
604
|
+
scheme: z.ZodOptional<z.ZodString>;
|
|
605
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
606
|
+
type: z.ZodLiteral<"api-key">;
|
|
607
|
+
name: z.ZodString;
|
|
608
|
+
valueRef: z.ZodOptional<z.ZodString>;
|
|
609
|
+
valueEnv: z.ZodOptional<z.ZodString>;
|
|
610
|
+
in: z.ZodEnum<{
|
|
611
|
+
header: "header";
|
|
612
|
+
query: "query";
|
|
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
|
+
basic: "basic";
|
|
629
|
+
body: "body";
|
|
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
|
+
header: "header";
|
|
673
|
+
query: "query";
|
|
674
|
+
}>;
|
|
675
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
676
|
+
type: z.ZodLiteral<"oauth2">;
|
|
677
|
+
grant: z.ZodEnum<{
|
|
678
|
+
"client-credentials": "client-credentials";
|
|
679
|
+
"authorization-code": "authorization-code";
|
|
680
|
+
}>;
|
|
681
|
+
tokenUrl: z.ZodString;
|
|
682
|
+
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
683
|
+
clientId: z.ZodString;
|
|
684
|
+
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
685
|
+
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
686
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
687
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
688
|
+
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
689
|
+
basic: "basic";
|
|
690
|
+
body: "body";
|
|
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
|
+
header: "header";
|
|
760
|
+
query: "query";
|
|
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
|
+
basic: "basic";
|
|
777
|
+
body: "body";
|
|
778
|
+
}>>;
|
|
779
|
+
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
780
|
+
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
781
|
+
}, z.core.$loose>]>>;
|
|
782
|
+
settings: z.ZodDefault<z.ZodObject<{
|
|
783
|
+
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
784
|
+
trustInvalid: z.ZodOptional<z.ZodBoolean>;
|
|
785
|
+
sslKeystoreRef: z.ZodOptional<z.ZodString>;
|
|
786
|
+
bindAddress: z.ZodOptional<z.ZodString>;
|
|
787
|
+
maxSizeBytes: z.ZodOptional<z.ZodNumber>;
|
|
788
|
+
escapeProperties: z.ZodOptional<z.ZodBoolean>;
|
|
789
|
+
}, z.core.$loose>>;
|
|
790
|
+
orphaned: z.ZodOptional<z.ZodBoolean>;
|
|
791
|
+
}, z.core.$loose>;
|
|
792
|
+
/** `apis/<slug>/api.yaml` for a gRPC API. */
|
|
793
|
+
export declare const grpcApiFileSchema: z.ZodObject<{
|
|
794
|
+
kind: z.ZodLiteral<"grpc">;
|
|
795
|
+
id: z.ZodString;
|
|
796
|
+
name: z.ZodString;
|
|
797
|
+
order: z.ZodNumber;
|
|
798
|
+
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
|
+
auth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
808
|
+
type: z.ZodEnum<{
|
|
809
|
+
none: "none";
|
|
810
|
+
basic: "basic";
|
|
811
|
+
ntlm: "ntlm";
|
|
812
|
+
}>;
|
|
813
|
+
username: z.ZodOptional<z.ZodString>;
|
|
814
|
+
passwordRef: z.ZodOptional<z.ZodString>;
|
|
815
|
+
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
816
|
+
domain: z.ZodOptional<z.ZodString>;
|
|
817
|
+
workstation: z.ZodOptional<z.ZodString>;
|
|
818
|
+
preemptive: z.ZodOptional<z.ZodBoolean>;
|
|
819
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
820
|
+
type: z.ZodLiteral<"inherit">;
|
|
821
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
822
|
+
type: z.ZodLiteral<"bearer">;
|
|
823
|
+
tokenRef: z.ZodOptional<z.ZodString>;
|
|
824
|
+
tokenEnv: z.ZodOptional<z.ZodString>;
|
|
825
|
+
scheme: z.ZodOptional<z.ZodString>;
|
|
826
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
827
|
+
type: z.ZodLiteral<"api-key">;
|
|
828
|
+
name: z.ZodString;
|
|
829
|
+
valueRef: z.ZodOptional<z.ZodString>;
|
|
830
|
+
valueEnv: z.ZodOptional<z.ZodString>;
|
|
831
|
+
in: z.ZodEnum<{
|
|
832
|
+
header: "header";
|
|
833
|
+
query: "query";
|
|
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
|
+
basic: "basic";
|
|
850
|
+
body: "body";
|
|
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
|
+
header: "header";
|
|
921
|
+
query: "query";
|
|
922
|
+
}>;
|
|
923
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
924
|
+
type: z.ZodLiteral<"oauth2">;
|
|
925
|
+
grant: z.ZodEnum<{
|
|
926
|
+
"client-credentials": "client-credentials";
|
|
927
|
+
"authorization-code": "authorization-code";
|
|
928
|
+
}>;
|
|
929
|
+
tokenUrl: z.ZodString;
|
|
930
|
+
authorizationUrl: z.ZodOptional<z.ZodString>;
|
|
931
|
+
clientId: z.ZodString;
|
|
932
|
+
clientSecretRef: z.ZodOptional<z.ZodString>;
|
|
933
|
+
clientSecretEnv: z.ZodOptional<z.ZodString>;
|
|
934
|
+
scopes: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
935
|
+
audience: z.ZodOptional<z.ZodString>;
|
|
936
|
+
clientAuth: z.ZodDefault<z.ZodEnum<{
|
|
937
|
+
basic: "basic";
|
|
938
|
+
body: "body";
|
|
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
|
+
header: "header";
|
|
1001
|
+
query: "query";
|
|
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
|
+
basic: "basic";
|
|
1018
|
+
body: "body";
|
|
1019
|
+
}>>;
|
|
1020
|
+
pkce: z.ZodDefault<z.ZodBoolean>;
|
|
1021
|
+
refreshTokenRef: z.ZodOptional<z.ZodString>;
|
|
1022
|
+
}, z.core.$loose>]>>;
|
|
1023
|
+
definition: z.ZodOptional<z.ZodObject<{
|
|
1024
|
+
kind: z.ZodLiteral<"asyncapi">;
|
|
1025
|
+
source: z.ZodString;
|
|
1026
|
+
cache: z.ZodDefault<z.ZodBoolean>;
|
|
1027
|
+
}, z.core.$loose>>;
|
|
1028
|
+
}, 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
|
+
/** `environments/<slug>.yaml`. */
|
|
1043
|
+
export declare const environmentFileSchema: z.ZodObject<{
|
|
1044
|
+
id: z.ZodString;
|
|
1045
|
+
name: z.ZodString;
|
|
1046
|
+
order: z.ZodNumber;
|
|
1047
|
+
endpoints: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1048
|
+
properties: z.ZodRecord<z.ZodString, z.ZodString>;
|
|
1049
|
+
disabled: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1050
|
+
}, z.core.$loose>;
|
|
1051
|
+
/** One entry of an outgoing WS-Security configuration, as this build understands it. */
|
|
1052
|
+
export declare const wssEntrySchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
1053
|
+
kind: z.ZodLiteral<"timestamp">;
|
|
1054
|
+
timeToLiveSeconds: z.ZodNumber;
|
|
1055
|
+
millisecondPrecision: z.ZodBoolean;
|
|
1056
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1057
|
+
kind: z.ZodLiteral<"username-token">;
|
|
1058
|
+
username: z.ZodString;
|
|
1059
|
+
passwordRef: z.ZodOptional<z.ZodString>;
|
|
1060
|
+
passwordType: z.ZodEnum<{
|
|
1061
|
+
none: "none";
|
|
1062
|
+
text: "text";
|
|
1063
|
+
digest: "digest";
|
|
1064
|
+
}>;
|
|
1065
|
+
addNonce: z.ZodBoolean;
|
|
1066
|
+
addCreated: z.ZodBoolean;
|
|
1067
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1068
|
+
kind: z.ZodLiteral<"signature">;
|
|
1069
|
+
keystoreRef: z.ZodDefault<z.ZodString>;
|
|
1070
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
keyPasswordRef: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
keyIdentifierType: z.ZodDefault<z.ZodEnum<{
|
|
1073
|
+
BinarySecurityToken: "BinarySecurityToken";
|
|
1074
|
+
IssuerSerial: "IssuerSerial";
|
|
1075
|
+
SubjectKeyIdentifier: "SubjectKeyIdentifier";
|
|
1076
|
+
X509KeyIdentifier: "X509KeyIdentifier";
|
|
1077
|
+
Thumbprint: "Thumbprint";
|
|
1078
|
+
}>>;
|
|
1079
|
+
signatureAlgorithm: z.ZodDefault<z.ZodEnum<{
|
|
1080
|
+
"rsa-sha256": "rsa-sha256";
|
|
1081
|
+
"rsa-sha1": "rsa-sha1";
|
|
1082
|
+
}>>;
|
|
1083
|
+
digestAlgorithm: z.ZodDefault<z.ZodEnum<{
|
|
1084
|
+
sha256: "sha256";
|
|
1085
|
+
sha1: "sha1";
|
|
1086
|
+
}>>;
|
|
1087
|
+
canonicalization: z.ZodDefault<z.ZodLiteral<"exc-c14n">>;
|
|
1088
|
+
useSingleCertificate: z.ZodDefault<z.ZodBoolean>;
|
|
1089
|
+
parts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1090
|
+
name: z.ZodString;
|
|
1091
|
+
namespace: z.ZodString;
|
|
1092
|
+
encode: z.ZodEnum<{
|
|
1093
|
+
Content: "Content";
|
|
1094
|
+
Element: "Element";
|
|
1095
|
+
}>;
|
|
1096
|
+
}, z.core.$loose>>>;
|
|
1097
|
+
}, z.core.$loose>, z.ZodObject<{
|
|
1098
|
+
kind: z.ZodLiteral<"encryption">;
|
|
1099
|
+
keystoreRef: z.ZodDefault<z.ZodString>;
|
|
1100
|
+
alias: z.ZodOptional<z.ZodString>;
|
|
1101
|
+
keyIdentifierType: z.ZodDefault<z.ZodEnum<{
|
|
1102
|
+
BinarySecurityToken: "BinarySecurityToken";
|
|
1103
|
+
IssuerSerial: "IssuerSerial";
|
|
1104
|
+
SubjectKeyIdentifier: "SubjectKeyIdentifier";
|
|
1105
|
+
X509KeyIdentifier: "X509KeyIdentifier";
|
|
1106
|
+
Thumbprint: "Thumbprint";
|
|
1107
|
+
}>>;
|
|
1108
|
+
symmetricAlgorithm: z.ZodDefault<z.ZodEnum<{
|
|
1109
|
+
"aes128-cbc": "aes128-cbc";
|
|
1110
|
+
"aes256-cbc": "aes256-cbc";
|
|
1111
|
+
"aes128-gcm": "aes128-gcm";
|
|
1112
|
+
"aes256-gcm": "aes256-gcm";
|
|
1113
|
+
}>>;
|
|
1114
|
+
keyTransportAlgorithm: z.ZodDefault<z.ZodEnum<{
|
|
1115
|
+
"rsa-oaep": "rsa-oaep";
|
|
1116
|
+
"rsa-1_5": "rsa-1_5";
|
|
1117
|
+
}>>;
|
|
1118
|
+
embedKey: z.ZodDefault<z.ZodBoolean>;
|
|
1119
|
+
encryptSymmetricKey: z.ZodDefault<z.ZodBoolean>;
|
|
1120
|
+
parts: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
1121
|
+
name: z.ZodString;
|
|
1122
|
+
namespace: z.ZodString;
|
|
1123
|
+
encode: z.ZodEnum<{
|
|
1124
|
+
Content: "Content";
|
|
1125
|
+
Element: "Element";
|
|
1126
|
+
}>;
|
|
1127
|
+
}, z.core.$loose>>>;
|
|
1128
|
+
}, z.core.$loose>]>;
|
|
1129
|
+
/** `wss/outgoing/<name>.yaml`. */
|
|
1130
|
+
export declare const wssOutgoingFileSchema: z.ZodObject<{
|
|
1131
|
+
id: z.ZodString;
|
|
1132
|
+
name: z.ZodString;
|
|
1133
|
+
defaultAlias: z.ZodOptional<z.ZodString>;
|
|
1134
|
+
defaultPasswordRef: z.ZodOptional<z.ZodString>;
|
|
1135
|
+
actor: z.ZodOptional<z.ZodString>;
|
|
1136
|
+
mustUnderstand: z.ZodOptional<z.ZodBoolean>;
|
|
1137
|
+
entries: z.ZodOptional<z.ZodArray<z.ZodObject<{}, z.core.$loose>>>;
|
|
1138
|
+
}, z.core.$loose>;
|
|
1139
|
+
/**
|
|
1140
|
+
* `wss/incoming/<name>.yaml`. Tolerant in the same way the outgoing entries are: every field
|
|
1141
|
+
* but `id`/`name` defaults, so a document written by an older build (which had only the two
|
|
1142
|
+
* keystore refs) loads as a complete configuration rather than being rejected.
|
|
1143
|
+
*/
|
|
1144
|
+
export declare const wssIncomingFileSchema: z.ZodObject<{
|
|
1145
|
+
id: z.ZodString;
|
|
1146
|
+
name: z.ZodString;
|
|
1147
|
+
decryptKeystoreRef: z.ZodOptional<z.ZodString>;
|
|
1148
|
+
decryptAlias: z.ZodOptional<z.ZodString>;
|
|
1149
|
+
decryptKeyPasswordRef: z.ZodOptional<z.ZodString>;
|
|
1150
|
+
signatureKeystoreRef: z.ZodOptional<z.ZodString>;
|
|
1151
|
+
requireSignature: z.ZodOptional<z.ZodBoolean>;
|
|
1152
|
+
requireTimestamp: z.ZodOptional<z.ZodBoolean>;
|
|
1153
|
+
timestampSkewSeconds: z.ZodOptional<z.ZodNumber>;
|
|
1154
|
+
verifyChain: z.ZodOptional<z.ZodBoolean>;
|
|
1155
|
+
}, z.core.$loose>;
|
|
1156
|
+
/**
|
|
1157
|
+
* One `wss/keystores.yaml` entry: mirrors the engine's `KeystoreDef`. `looseObject` so a field
|
|
1158
|
+
* a later build adds survives a load/save round trip through this one. Never a password — only
|
|
1159
|
+
* a `secretRef` the host resolves through `safeStorage`.
|
|
1160
|
+
*/
|
|
1161
|
+
export declare const keystoreEntrySchema: z.ZodObject<{
|
|
1162
|
+
id: z.ZodString;
|
|
1163
|
+
name: z.ZodString;
|
|
1164
|
+
path: z.ZodString;
|
|
1165
|
+
type: z.ZodEnum<{
|
|
1166
|
+
pkcs12: "pkcs12";
|
|
1167
|
+
pem: "pem";
|
|
1168
|
+
}>;
|
|
1169
|
+
passwordSecretRef: z.ZodOptional<z.ZodString>;
|
|
1170
|
+
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
1171
|
+
defaultAlias: z.ZodOptional<z.ZodString>;
|
|
1172
|
+
}, z.core.$loose>;
|
|
1173
|
+
/** `wss/keystores.yaml` — the project's client keystore registry. */
|
|
1174
|
+
export declare const keystoresFileSchema: z.ZodObject<{
|
|
1175
|
+
keystores: z.ZodArray<z.ZodObject<{
|
|
1176
|
+
id: z.ZodString;
|
|
1177
|
+
name: z.ZodString;
|
|
1178
|
+
path: z.ZodString;
|
|
1179
|
+
type: z.ZodEnum<{
|
|
1180
|
+
pkcs12: "pkcs12";
|
|
1181
|
+
pem: "pem";
|
|
1182
|
+
}>;
|
|
1183
|
+
passwordSecretRef: z.ZodOptional<z.ZodString>;
|
|
1184
|
+
passwordEnv: z.ZodOptional<z.ZodString>;
|
|
1185
|
+
defaultAlias: z.ZodOptional<z.ZodString>;
|
|
1186
|
+
}, z.core.$loose>>;
|
|
1187
|
+
}, z.core.$loose>;
|
|
1188
|
+
/** One document entry inside `interfaces/<slug>/definition/manifest.yaml`. */
|
|
1189
|
+
declare const definitionCacheDocumentSchema: z.ZodObject<{
|
|
1190
|
+
file: z.ZodString;
|
|
1191
|
+
location: z.ZodString;
|
|
1192
|
+
requestedLocation: z.ZodOptional<z.ZodString>;
|
|
1193
|
+
kind: z.ZodEnum<{
|
|
1194
|
+
wsdl: "wsdl";
|
|
1195
|
+
xsd: "xsd";
|
|
1196
|
+
}>;
|
|
1197
|
+
sha256: z.ZodString;
|
|
1198
|
+
bytes: z.ZodNumber;
|
|
1199
|
+
importedBy: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1201
|
+
chameleonFor: z.ZodOptional<z.ZodString>;
|
|
1202
|
+
}, z.core.$loose>;
|
|
1203
|
+
/** `interfaces/<slug>/definition/manifest.yaml`. */
|
|
1204
|
+
export declare const definitionCacheManifestSchema: z.ZodObject<{
|
|
1205
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1206
|
+
rootLocation: z.ZodString;
|
|
1207
|
+
fetchedAt: z.ZodString;
|
|
1208
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
1209
|
+
file: z.ZodString;
|
|
1210
|
+
location: z.ZodString;
|
|
1211
|
+
requestedLocation: z.ZodOptional<z.ZodString>;
|
|
1212
|
+
kind: z.ZodEnum<{
|
|
1213
|
+
wsdl: "wsdl";
|
|
1214
|
+
xsd: "xsd";
|
|
1215
|
+
}>;
|
|
1216
|
+
sha256: z.ZodString;
|
|
1217
|
+
bytes: z.ZodNumber;
|
|
1218
|
+
importedBy: z.ZodOptional<z.ZodString>;
|
|
1219
|
+
namespace: z.ZodOptional<z.ZodString>;
|
|
1220
|
+
chameleonFor: z.ZodOptional<z.ZodString>;
|
|
1221
|
+
}, z.core.$loose>>;
|
|
1222
|
+
}, z.core.$loose>;
|
|
1223
|
+
/** One entry of `apis/<slug>/definition/manifest.yaml`. */
|
|
1224
|
+
declare const apiDefinitionCacheDocumentSchema: z.ZodObject<{
|
|
1225
|
+
file: z.ZodString;
|
|
1226
|
+
location: z.ZodString;
|
|
1227
|
+
requestedLocation: z.ZodOptional<z.ZodString>;
|
|
1228
|
+
sha256: z.ZodString;
|
|
1229
|
+
bytes: z.ZodNumber;
|
|
1230
|
+
}, z.core.$loose>;
|
|
1231
|
+
/**
|
|
1232
|
+
* `apis/<slug>/definition/manifest.yaml`. Its own schema rather than the WSDL one because an
|
|
1233
|
+
* OpenAPI document has no `kind`, `namespace` or `importedBy` to record — a JSON or YAML file
|
|
1234
|
+
* references its siblings by location and nothing else.
|
|
1235
|
+
*/
|
|
1236
|
+
export declare const apiDefinitionCacheManifestSchema: z.ZodObject<{
|
|
1237
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1238
|
+
rootLocation: z.ZodString;
|
|
1239
|
+
fetchedAt: z.ZodString;
|
|
1240
|
+
declaredVersion: z.ZodOptional<z.ZodString>;
|
|
1241
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
1242
|
+
file: z.ZodString;
|
|
1243
|
+
location: z.ZodString;
|
|
1244
|
+
requestedLocation: z.ZodOptional<z.ZodString>;
|
|
1245
|
+
sha256: z.ZodString;
|
|
1246
|
+
bytes: z.ZodNumber;
|
|
1247
|
+
}, z.core.$loose>>;
|
|
1248
|
+
}, z.core.$loose>;
|
|
1249
|
+
/**
|
|
1250
|
+
* `apis/<slug>/definition/manifest.yaml` for a gRPC API: the `.proto` files an import was made of,
|
|
1251
|
+
* each stored byte-exact under `protos/` at its import path so the set loads again exactly as the
|
|
1252
|
+
* imports spell it. The `kind` tells a reader which of the two API manifests it has.
|
|
1253
|
+
*/
|
|
1254
|
+
export declare const protoDefinitionCacheManifestSchema: z.ZodObject<{
|
|
1255
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1256
|
+
kind: z.ZodLiteral<"proto">;
|
|
1257
|
+
source: z.ZodString;
|
|
1258
|
+
fetchedAt: z.ZodString;
|
|
1259
|
+
roots: z.ZodArray<z.ZodString>;
|
|
1260
|
+
files: z.ZodArray<z.ZodObject<{
|
|
1261
|
+
path: z.ZodString;
|
|
1262
|
+
sha256: z.ZodString;
|
|
1263
|
+
bytes: z.ZodNumber;
|
|
1264
|
+
}, z.core.$loose>>;
|
|
1265
|
+
}, z.core.$loose>;
|
|
1266
|
+
/** The proto definition cache manifest as persisted. */
|
|
1267
|
+
export type ProtoDefinitionCacheManifest = z.infer<typeof protoDefinitionCacheManifestSchema>;
|
|
1268
|
+
/**
|
|
1269
|
+
* `apis/<slug>/definition/manifest.yaml` for a gRPC API discovered by server reflection: one binary
|
|
1270
|
+
* `FileDescriptorSet` beside it, because a server describes itself in the compiler's own output and
|
|
1271
|
+
* there is no `.proto` text to keep. The `kind` is what tells the two gRPC manifests apart.
|
|
1272
|
+
*/
|
|
1273
|
+
export declare const descriptorDefinitionCacheManifestSchema: z.ZodObject<{
|
|
1274
|
+
formatVersion: z.ZodLiteral<1>;
|
|
1275
|
+
kind: z.ZodLiteral<"descriptors">;
|
|
1276
|
+
source: z.ZodString;
|
|
1277
|
+
fetchedAt: z.ZodString;
|
|
1278
|
+
roots: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
1279
|
+
reflectionVersion: z.ZodOptional<z.ZodEnum<{
|
|
1280
|
+
v1: "v1";
|
|
1281
|
+
v1alpha: "v1alpha";
|
|
1282
|
+
}>>;
|
|
1283
|
+
file: z.ZodObject<{
|
|
1284
|
+
path: z.ZodString;
|
|
1285
|
+
sha256: z.ZodString;
|
|
1286
|
+
bytes: z.ZodNumber;
|
|
1287
|
+
}, z.core.$loose>;
|
|
1288
|
+
}, z.core.$loose>;
|
|
1289
|
+
/** The descriptor definition cache manifest as persisted. */
|
|
1290
|
+
export type DescriptorDefinitionCacheManifest = z.infer<typeof descriptorDefinitionCacheManifestSchema>;
|
|
1291
|
+
/** The API definition cache manifest as persisted. */
|
|
1292
|
+
export type ApiDefinitionCacheManifest = z.infer<typeof apiDefinitionCacheManifestSchema>;
|
|
1293
|
+
/** One document of an API definition cache, as the manifest records it. */
|
|
1294
|
+
export type ApiDefinitionCacheDocument = z.infer<typeof apiDefinitionCacheDocumentSchema>;
|
|
1295
|
+
/** The definition cache manifest as persisted. */
|
|
1296
|
+
export type DefinitionCacheManifest = z.infer<typeof definitionCacheManifestSchema>;
|
|
1297
|
+
/** One document entry inside a definition cache manifest. */
|
|
1298
|
+
export type DefinitionCacheDocument = z.infer<typeof definitionCacheDocumentSchema>;
|
|
1299
|
+
/** The manifest document as persisted. */
|
|
1300
|
+
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
|
+
/** An environment document as persisted. */
|
|
1306
|
+
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 {};
|