@fntio/infra-client 0.0.0-stage → 0.5.0
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/CHANGELOG.md +193 -0
- package/LICENSE +93 -0
- package/README.md +875 -2
- package/assets/acl-reconciler/index.js +1604 -0
- package/assets/api/index.js +9857 -0
- package/assets/api/package.json +9 -0
- package/assets/api/vendor_modules/.package-lock.json +857 -0
- package/assets/api/vendor_modules/accepts/HISTORY.md +243 -0
- package/assets/api/vendor_modules/accepts/LICENSE +23 -0
- package/assets/api/vendor_modules/accepts/README.md +140 -0
- package/assets/api/vendor_modules/accepts/index.js +238 -0
- package/assets/api/vendor_modules/accepts/package.json +47 -0
- package/assets/api/vendor_modules/array-flatten/LICENSE +21 -0
- package/assets/api/vendor_modules/array-flatten/README.md +43 -0
- package/assets/api/vendor_modules/array-flatten/array-flatten.js +64 -0
- package/assets/api/vendor_modules/array-flatten/package.json +39 -0
- package/assets/api/vendor_modules/aws-jwt-verify/LICENSE +175 -0
- package/assets/api/vendor_modules/aws-jwt-verify/README.md +1033 -0
- package/assets/api/vendor_modules/aws-jwt-verify/asn1.d.ts +20 -0
- package/assets/api/vendor_modules/aws-jwt-verify/assert.d.ts +41 -0
- package/assets/api/vendor_modules/aws-jwt-verify/cognito-verifier.d.ts +183 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/asn1.js +301 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/assert.js +108 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/cognito-verifier.js +158 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/error.js +131 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/https-common.js +29 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/https-node.js +89 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/https.js +52 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/index.js +9 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/jwk.js +221 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/jwt-model.js +10 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/jwt-rsa.js +397 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/jwt.js +161 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/node-web-compat-node.js +48 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/node-web-compat-web.js +78 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/node-web-compat.js +11 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/package.json +1 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/safe-json-parse.js +34 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/cjs/typing-util.js +6 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/asn1.js +296 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/assert.js +101 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/cognito-verifier.js +153 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/error.js +101 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/https-common.js +25 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/https-node.js +85 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/https.js +48 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/index.js +4 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/jwk.js +208 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/jwt-model.js +7 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/jwt-rsa.js +389 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/jwt.js +156 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/node-web-compat-node.js +45 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/node-web-compat-web.js +75 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/node-web-compat.js +10 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/package.json +1 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/safe-json-parse.js +29 -0
- package/assets/api/vendor_modules/aws-jwt-verify/dist/esm/typing-util.js +5 -0
- package/assets/api/vendor_modules/aws-jwt-verify/error.d.ts +108 -0
- package/assets/api/vendor_modules/aws-jwt-verify/https-common.d.ts +9 -0
- package/assets/api/vendor_modules/aws-jwt-verify/https-node.d.ts +20 -0
- package/assets/api/vendor_modules/aws-jwt-verify/https.d.ts +35 -0
- package/assets/api/vendor_modules/aws-jwt-verify/index.d.ts +2 -0
- package/assets/api/vendor_modules/aws-jwt-verify/jwk.d.ts +76 -0
- package/assets/api/vendor_modules/aws-jwt-verify/jwt-model.d.ts +78 -0
- package/assets/api/vendor_modules/aws-jwt-verify/jwt-rsa.d.ts +348 -0
- package/assets/api/vendor_modules/aws-jwt-verify/jwt.d.ts +51 -0
- package/assets/api/vendor_modules/aws-jwt-verify/package.json +136 -0
- package/assets/api/vendor_modules/aws-jwt-verify/safe-json-parse.d.ts +18 -0
- package/assets/api/vendor_modules/aws-jwt-verify/typing-util.d.ts +38 -0
- package/assets/api/vendor_modules/body-parser/HISTORY.md +703 -0
- package/assets/api/vendor_modules/body-parser/LICENSE +23 -0
- package/assets/api/vendor_modules/body-parser/README.md +476 -0
- package/assets/api/vendor_modules/body-parser/index.js +156 -0
- package/assets/api/vendor_modules/body-parser/lib/read.js +205 -0
- package/assets/api/vendor_modules/body-parser/lib/types/json.js +247 -0
- package/assets/api/vendor_modules/body-parser/lib/types/raw.js +105 -0
- package/assets/api/vendor_modules/body-parser/lib/types/text.js +125 -0
- package/assets/api/vendor_modules/body-parser/lib/types/urlencoded.js +303 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/.editorconfig +46 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/.github/SECURITY.md +11 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/.github/THREAT_MODEL.md +80 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/.nycrc +13 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/CHANGELOG.md +872 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/LICENSE.md +29 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/README.md +804 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/dist/qs.js +141 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/eslint.config.mjs +57 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/lib/formats.js +23 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/lib/index.js +11 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/lib/parse.js +503 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/lib/stringify.js +378 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/lib/utils.js +512 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/package.json +95 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/test/parse.js +2296 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/test/stringify.js +1995 -0
- package/assets/api/vendor_modules/body-parser/node_modules/qs/test/utils.js +822 -0
- package/assets/api/vendor_modules/body-parser/package.json +55 -0
- package/assets/api/vendor_modules/bytes/History.md +97 -0
- package/assets/api/vendor_modules/bytes/LICENSE +23 -0
- package/assets/api/vendor_modules/bytes/Readme.md +152 -0
- package/assets/api/vendor_modules/bytes/index.js +170 -0
- package/assets/api/vendor_modules/bytes/package.json +42 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/README.md +62 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/index.js +15 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/package.json +85 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/assets/api/vendor_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/assets/api/vendor_modules/call-bound/.eslintrc +13 -0
- package/assets/api/vendor_modules/call-bound/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/call-bound/.nycrc +9 -0
- package/assets/api/vendor_modules/call-bound/CHANGELOG.md +42 -0
- package/assets/api/vendor_modules/call-bound/LICENSE +21 -0
- package/assets/api/vendor_modules/call-bound/README.md +53 -0
- package/assets/api/vendor_modules/call-bound/index.d.ts +94 -0
- package/assets/api/vendor_modules/call-bound/index.js +19 -0
- package/assets/api/vendor_modules/call-bound/package.json +99 -0
- package/assets/api/vendor_modules/call-bound/test/index.js +61 -0
- package/assets/api/vendor_modules/call-bound/tsconfig.json +10 -0
- package/assets/api/vendor_modules/content-disposition/HISTORY.md +60 -0
- package/assets/api/vendor_modules/content-disposition/LICENSE +22 -0
- package/assets/api/vendor_modules/content-disposition/README.md +142 -0
- package/assets/api/vendor_modules/content-disposition/index.js +458 -0
- package/assets/api/vendor_modules/content-disposition/package.json +44 -0
- package/assets/api/vendor_modules/content-type/HISTORY.md +29 -0
- package/assets/api/vendor_modules/content-type/LICENSE +22 -0
- package/assets/api/vendor_modules/content-type/README.md +94 -0
- package/assets/api/vendor_modules/content-type/index.js +225 -0
- package/assets/api/vendor_modules/content-type/package.json +42 -0
- package/assets/api/vendor_modules/cookie/LICENSE +24 -0
- package/assets/api/vendor_modules/cookie/README.md +317 -0
- package/assets/api/vendor_modules/cookie/SECURITY.md +25 -0
- package/assets/api/vendor_modules/cookie/index.js +335 -0
- package/assets/api/vendor_modules/cookie/package.json +44 -0
- package/assets/api/vendor_modules/cookie-signature/History.md +42 -0
- package/assets/api/vendor_modules/cookie-signature/Readme.md +42 -0
- package/assets/api/vendor_modules/cookie-signature/index.js +51 -0
- package/assets/api/vendor_modules/cookie-signature/package.json +18 -0
- package/assets/api/vendor_modules/debug/.coveralls.yml +1 -0
- package/assets/api/vendor_modules/debug/.eslintrc +11 -0
- package/assets/api/vendor_modules/debug/.travis.yml +14 -0
- package/assets/api/vendor_modules/debug/CHANGELOG.md +362 -0
- package/assets/api/vendor_modules/debug/LICENSE +19 -0
- package/assets/api/vendor_modules/debug/Makefile +50 -0
- package/assets/api/vendor_modules/debug/README.md +312 -0
- package/assets/api/vendor_modules/debug/component.json +19 -0
- package/assets/api/vendor_modules/debug/karma.conf.js +70 -0
- package/assets/api/vendor_modules/debug/node.js +1 -0
- package/assets/api/vendor_modules/debug/package.json +49 -0
- package/assets/api/vendor_modules/debug/src/browser.js +185 -0
- package/assets/api/vendor_modules/debug/src/debug.js +202 -0
- package/assets/api/vendor_modules/debug/src/index.js +10 -0
- package/assets/api/vendor_modules/debug/src/inspector-log.js +15 -0
- package/assets/api/vendor_modules/debug/src/node.js +248 -0
- package/assets/api/vendor_modules/depd/History.md +103 -0
- package/assets/api/vendor_modules/depd/LICENSE +22 -0
- package/assets/api/vendor_modules/depd/Readme.md +280 -0
- package/assets/api/vendor_modules/depd/index.js +538 -0
- package/assets/api/vendor_modules/depd/lib/browser/index.js +77 -0
- package/assets/api/vendor_modules/depd/package.json +45 -0
- package/assets/api/vendor_modules/destroy/LICENSE +23 -0
- package/assets/api/vendor_modules/destroy/README.md +63 -0
- package/assets/api/vendor_modules/destroy/index.js +209 -0
- package/assets/api/vendor_modules/destroy/package.json +48 -0
- package/assets/api/vendor_modules/dunder-proto/.eslintrc +5 -0
- package/assets/api/vendor_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/dunder-proto/.nycrc +13 -0
- package/assets/api/vendor_modules/dunder-proto/CHANGELOG.md +24 -0
- package/assets/api/vendor_modules/dunder-proto/LICENSE +21 -0
- package/assets/api/vendor_modules/dunder-proto/README.md +54 -0
- package/assets/api/vendor_modules/dunder-proto/get.d.ts +5 -0
- package/assets/api/vendor_modules/dunder-proto/get.js +30 -0
- package/assets/api/vendor_modules/dunder-proto/package.json +76 -0
- package/assets/api/vendor_modules/dunder-proto/set.d.ts +5 -0
- package/assets/api/vendor_modules/dunder-proto/set.js +35 -0
- package/assets/api/vendor_modules/dunder-proto/test/get.js +34 -0
- package/assets/api/vendor_modules/dunder-proto/test/index.js +4 -0
- package/assets/api/vendor_modules/dunder-proto/test/set.js +50 -0
- package/assets/api/vendor_modules/dunder-proto/tsconfig.json +9 -0
- package/assets/api/vendor_modules/ee-first/LICENSE +22 -0
- package/assets/api/vendor_modules/ee-first/README.md +80 -0
- package/assets/api/vendor_modules/ee-first/index.js +95 -0
- package/assets/api/vendor_modules/ee-first/package.json +29 -0
- package/assets/api/vendor_modules/encodeurl/LICENSE +22 -0
- package/assets/api/vendor_modules/encodeurl/README.md +109 -0
- package/assets/api/vendor_modules/encodeurl/index.js +60 -0
- package/assets/api/vendor_modules/encodeurl/package.json +40 -0
- package/assets/api/vendor_modules/es-define-property/.eslintrc +13 -0
- package/assets/api/vendor_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/es-define-property/.nycrc +9 -0
- package/assets/api/vendor_modules/es-define-property/CHANGELOG.md +29 -0
- package/assets/api/vendor_modules/es-define-property/LICENSE +21 -0
- package/assets/api/vendor_modules/es-define-property/README.md +49 -0
- package/assets/api/vendor_modules/es-define-property/index.d.ts +3 -0
- package/assets/api/vendor_modules/es-define-property/index.js +14 -0
- package/assets/api/vendor_modules/es-define-property/package.json +81 -0
- package/assets/api/vendor_modules/es-define-property/test/index.js +56 -0
- package/assets/api/vendor_modules/es-define-property/tsconfig.json +10 -0
- package/assets/api/vendor_modules/es-errors/.eslintrc +5 -0
- package/assets/api/vendor_modules/es-errors/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/es-errors/CHANGELOG.md +40 -0
- package/assets/api/vendor_modules/es-errors/LICENSE +21 -0
- package/assets/api/vendor_modules/es-errors/README.md +55 -0
- package/assets/api/vendor_modules/es-errors/eval.d.ts +3 -0
- package/assets/api/vendor_modules/es-errors/eval.js +4 -0
- package/assets/api/vendor_modules/es-errors/index.d.ts +3 -0
- package/assets/api/vendor_modules/es-errors/index.js +4 -0
- package/assets/api/vendor_modules/es-errors/package.json +80 -0
- package/assets/api/vendor_modules/es-errors/range.d.ts +3 -0
- package/assets/api/vendor_modules/es-errors/range.js +4 -0
- package/assets/api/vendor_modules/es-errors/ref.d.ts +3 -0
- package/assets/api/vendor_modules/es-errors/ref.js +4 -0
- package/assets/api/vendor_modules/es-errors/syntax.d.ts +3 -0
- package/assets/api/vendor_modules/es-errors/syntax.js +4 -0
- package/assets/api/vendor_modules/es-errors/test/index.js +19 -0
- package/assets/api/vendor_modules/es-errors/tsconfig.json +49 -0
- package/assets/api/vendor_modules/es-errors/type.d.ts +3 -0
- package/assets/api/vendor_modules/es-errors/type.js +4 -0
- package/assets/api/vendor_modules/es-errors/uri.d.ts +3 -0
- package/assets/api/vendor_modules/es-errors/uri.js +4 -0
- package/assets/api/vendor_modules/es-object-atoms/.eslintrc +16 -0
- package/assets/api/vendor_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/es-object-atoms/CHANGELOG.md +44 -0
- package/assets/api/vendor_modules/es-object-atoms/LICENSE +21 -0
- package/assets/api/vendor_modules/es-object-atoms/README.md +63 -0
- package/assets/api/vendor_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/assets/api/vendor_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/assets/api/vendor_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/assets/api/vendor_modules/es-object-atoms/ToObject.js +10 -0
- package/assets/api/vendor_modules/es-object-atoms/index.d.ts +3 -0
- package/assets/api/vendor_modules/es-object-atoms/index.js +4 -0
- package/assets/api/vendor_modules/es-object-atoms/isObject.d.ts +3 -0
- package/assets/api/vendor_modules/es-object-atoms/isObject.js +6 -0
- package/assets/api/vendor_modules/es-object-atoms/package.json +79 -0
- package/assets/api/vendor_modules/es-object-atoms/test/index.js +38 -0
- package/assets/api/vendor_modules/es-object-atoms/tsconfig.json +7 -0
- package/assets/api/vendor_modules/escape-html/LICENSE +24 -0
- package/assets/api/vendor_modules/escape-html/Readme.md +43 -0
- package/assets/api/vendor_modules/escape-html/index.js +78 -0
- package/assets/api/vendor_modules/escape-html/package.json +24 -0
- package/assets/api/vendor_modules/etag/HISTORY.md +83 -0
- package/assets/api/vendor_modules/etag/LICENSE +22 -0
- package/assets/api/vendor_modules/etag/README.md +159 -0
- package/assets/api/vendor_modules/etag/index.js +131 -0
- package/assets/api/vendor_modules/etag/package.json +47 -0
- package/assets/api/vendor_modules/express/History.md +3676 -0
- package/assets/api/vendor_modules/express/LICENSE +24 -0
- package/assets/api/vendor_modules/express/Readme.md +260 -0
- package/assets/api/vendor_modules/express/index.js +11 -0
- package/assets/api/vendor_modules/express/lib/application.js +661 -0
- package/assets/api/vendor_modules/express/lib/express.js +116 -0
- package/assets/api/vendor_modules/express/lib/middleware/init.js +43 -0
- package/assets/api/vendor_modules/express/lib/middleware/query.js +47 -0
- package/assets/api/vendor_modules/express/lib/request.js +525 -0
- package/assets/api/vendor_modules/express/lib/response.js +1179 -0
- package/assets/api/vendor_modules/express/lib/router/index.js +673 -0
- package/assets/api/vendor_modules/express/lib/router/layer.js +181 -0
- package/assets/api/vendor_modules/express/lib/router/route.js +230 -0
- package/assets/api/vendor_modules/express/lib/utils.js +304 -0
- package/assets/api/vendor_modules/express/lib/view.js +182 -0
- package/assets/api/vendor_modules/express/package.json +102 -0
- package/assets/api/vendor_modules/finalhandler/HISTORY.md +216 -0
- package/assets/api/vendor_modules/finalhandler/LICENSE +22 -0
- package/assets/api/vendor_modules/finalhandler/README.md +147 -0
- package/assets/api/vendor_modules/finalhandler/SECURITY.md +25 -0
- package/assets/api/vendor_modules/finalhandler/index.js +341 -0
- package/assets/api/vendor_modules/finalhandler/package.json +47 -0
- package/assets/api/vendor_modules/forwarded/HISTORY.md +21 -0
- package/assets/api/vendor_modules/forwarded/LICENSE +22 -0
- package/assets/api/vendor_modules/forwarded/README.md +57 -0
- package/assets/api/vendor_modules/forwarded/index.js +90 -0
- package/assets/api/vendor_modules/forwarded/package.json +45 -0
- package/assets/api/vendor_modules/fresh/HISTORY.md +70 -0
- package/assets/api/vendor_modules/fresh/LICENSE +23 -0
- package/assets/api/vendor_modules/fresh/README.md +119 -0
- package/assets/api/vendor_modules/fresh/index.js +137 -0
- package/assets/api/vendor_modules/fresh/package.json +46 -0
- package/assets/api/vendor_modules/function-bind/.eslintrc +21 -0
- package/assets/api/vendor_modules/function-bind/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/function-bind/.github/SECURITY.md +3 -0
- package/assets/api/vendor_modules/function-bind/.nycrc +13 -0
- package/assets/api/vendor_modules/function-bind/CHANGELOG.md +136 -0
- package/assets/api/vendor_modules/function-bind/LICENSE +20 -0
- package/assets/api/vendor_modules/function-bind/README.md +46 -0
- package/assets/api/vendor_modules/function-bind/implementation.js +84 -0
- package/assets/api/vendor_modules/function-bind/index.js +5 -0
- package/assets/api/vendor_modules/function-bind/package.json +87 -0
- package/assets/api/vendor_modules/function-bind/test/.eslintrc +9 -0
- package/assets/api/vendor_modules/function-bind/test/index.js +252 -0
- package/assets/api/vendor_modules/get-intrinsic/.eslintrc +42 -0
- package/assets/api/vendor_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/get-intrinsic/.nycrc +9 -0
- package/assets/api/vendor_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/assets/api/vendor_modules/get-intrinsic/LICENSE +21 -0
- package/assets/api/vendor_modules/get-intrinsic/README.md +71 -0
- package/assets/api/vendor_modules/get-intrinsic/index.js +378 -0
- package/assets/api/vendor_modules/get-intrinsic/package.json +97 -0
- package/assets/api/vendor_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/assets/api/vendor_modules/get-proto/.eslintrc +10 -0
- package/assets/api/vendor_modules/get-proto/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/get-proto/.nycrc +9 -0
- package/assets/api/vendor_modules/get-proto/CHANGELOG.md +21 -0
- package/assets/api/vendor_modules/get-proto/LICENSE +21 -0
- package/assets/api/vendor_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/assets/api/vendor_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/assets/api/vendor_modules/get-proto/README.md +50 -0
- package/assets/api/vendor_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/assets/api/vendor_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/assets/api/vendor_modules/get-proto/index.d.ts +5 -0
- package/assets/api/vendor_modules/get-proto/index.js +27 -0
- package/assets/api/vendor_modules/get-proto/package.json +81 -0
- package/assets/api/vendor_modules/get-proto/test/index.js +68 -0
- package/assets/api/vendor_modules/get-proto/tsconfig.json +9 -0
- package/assets/api/vendor_modules/gopd/.eslintrc +16 -0
- package/assets/api/vendor_modules/gopd/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/gopd/CHANGELOG.md +45 -0
- package/assets/api/vendor_modules/gopd/LICENSE +21 -0
- package/assets/api/vendor_modules/gopd/README.md +40 -0
- package/assets/api/vendor_modules/gopd/gOPD.d.ts +1 -0
- package/assets/api/vendor_modules/gopd/gOPD.js +4 -0
- package/assets/api/vendor_modules/gopd/index.d.ts +5 -0
- package/assets/api/vendor_modules/gopd/index.js +15 -0
- package/assets/api/vendor_modules/gopd/package.json +77 -0
- package/assets/api/vendor_modules/gopd/test/index.js +36 -0
- package/assets/api/vendor_modules/gopd/tsconfig.json +9 -0
- package/assets/api/vendor_modules/has-symbols/.eslintrc +11 -0
- package/assets/api/vendor_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/has-symbols/.nycrc +9 -0
- package/assets/api/vendor_modules/has-symbols/CHANGELOG.md +91 -0
- package/assets/api/vendor_modules/has-symbols/LICENSE +21 -0
- package/assets/api/vendor_modules/has-symbols/README.md +46 -0
- package/assets/api/vendor_modules/has-symbols/index.d.ts +3 -0
- package/assets/api/vendor_modules/has-symbols/index.js +14 -0
- package/assets/api/vendor_modules/has-symbols/package.json +111 -0
- package/assets/api/vendor_modules/has-symbols/shams.d.ts +3 -0
- package/assets/api/vendor_modules/has-symbols/shams.js +45 -0
- package/assets/api/vendor_modules/has-symbols/test/index.js +22 -0
- package/assets/api/vendor_modules/has-symbols/test/shams/core-js.js +29 -0
- package/assets/api/vendor_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/assets/api/vendor_modules/has-symbols/test/tests.js +58 -0
- package/assets/api/vendor_modules/has-symbols/tsconfig.json +10 -0
- package/assets/api/vendor_modules/hasown/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/hasown/.nycrc +13 -0
- package/assets/api/vendor_modules/hasown/CHANGELOG.md +58 -0
- package/assets/api/vendor_modules/hasown/LICENSE +21 -0
- package/assets/api/vendor_modules/hasown/README.md +40 -0
- package/assets/api/vendor_modules/hasown/eslint.config.mjs +6 -0
- package/assets/api/vendor_modules/hasown/index.d.ts +3 -0
- package/assets/api/vendor_modules/hasown/index.js +8 -0
- package/assets/api/vendor_modules/hasown/package.json +91 -0
- package/assets/api/vendor_modules/hasown/tsconfig.json +6 -0
- package/assets/api/vendor_modules/http-errors/HISTORY.md +186 -0
- package/assets/api/vendor_modules/http-errors/LICENSE +23 -0
- package/assets/api/vendor_modules/http-errors/README.md +169 -0
- package/assets/api/vendor_modules/http-errors/index.js +290 -0
- package/assets/api/vendor_modules/http-errors/package.json +54 -0
- package/assets/api/vendor_modules/iconv-lite/Changelog.md +162 -0
- package/assets/api/vendor_modules/iconv-lite/LICENSE +21 -0
- package/assets/api/vendor_modules/iconv-lite/README.md +156 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/index.js +22 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/internal.js +188 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/utf16.js +177 -0
- package/assets/api/vendor_modules/iconv-lite/encodings/utf7.js +290 -0
- package/assets/api/vendor_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/assets/api/vendor_modules/iconv-lite/lib/extend-node.js +217 -0
- package/assets/api/vendor_modules/iconv-lite/lib/index.d.ts +24 -0
- package/assets/api/vendor_modules/iconv-lite/lib/index.js +153 -0
- package/assets/api/vendor_modules/iconv-lite/lib/streams.js +121 -0
- package/assets/api/vendor_modules/iconv-lite/package.json +46 -0
- package/assets/api/vendor_modules/inherits/LICENSE +16 -0
- package/assets/api/vendor_modules/inherits/README.md +42 -0
- package/assets/api/vendor_modules/inherits/inherits.js +9 -0
- package/assets/api/vendor_modules/inherits/inherits_browser.js +27 -0
- package/assets/api/vendor_modules/inherits/package.json +29 -0
- package/assets/api/vendor_modules/ipaddr.js/LICENSE +19 -0
- package/assets/api/vendor_modules/ipaddr.js/README.md +233 -0
- package/assets/api/vendor_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/assets/api/vendor_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/assets/api/vendor_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/assets/api/vendor_modules/ipaddr.js/package.json +35 -0
- package/assets/api/vendor_modules/math-intrinsics/.eslintrc +16 -0
- package/assets/api/vendor_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/assets/api/vendor_modules/math-intrinsics/LICENSE +21 -0
- package/assets/api/vendor_modules/math-intrinsics/README.md +50 -0
- package/assets/api/vendor_modules/math-intrinsics/abs.d.ts +1 -0
- package/assets/api/vendor_modules/math-intrinsics/abs.js +4 -0
- package/assets/api/vendor_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/assets/api/vendor_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/assets/api/vendor_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/assets/api/vendor_modules/math-intrinsics/floor.d.ts +1 -0
- package/assets/api/vendor_modules/math-intrinsics/floor.js +4 -0
- package/assets/api/vendor_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/isFinite.js +12 -0
- package/assets/api/vendor_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/isInteger.js +16 -0
- package/assets/api/vendor_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/assets/api/vendor_modules/math-intrinsics/isNaN.js +6 -0
- package/assets/api/vendor_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/assets/api/vendor_modules/math-intrinsics/max.d.ts +1 -0
- package/assets/api/vendor_modules/math-intrinsics/max.js +4 -0
- package/assets/api/vendor_modules/math-intrinsics/min.d.ts +1 -0
- package/assets/api/vendor_modules/math-intrinsics/min.js +4 -0
- package/assets/api/vendor_modules/math-intrinsics/mod.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/mod.js +9 -0
- package/assets/api/vendor_modules/math-intrinsics/package.json +86 -0
- package/assets/api/vendor_modules/math-intrinsics/pow.d.ts +1 -0
- package/assets/api/vendor_modules/math-intrinsics/pow.js +4 -0
- package/assets/api/vendor_modules/math-intrinsics/round.d.ts +1 -0
- package/assets/api/vendor_modules/math-intrinsics/round.js +4 -0
- package/assets/api/vendor_modules/math-intrinsics/sign.d.ts +3 -0
- package/assets/api/vendor_modules/math-intrinsics/sign.js +11 -0
- package/assets/api/vendor_modules/math-intrinsics/test/index.js +192 -0
- package/assets/api/vendor_modules/math-intrinsics/tsconfig.json +3 -0
- package/assets/api/vendor_modules/media-typer/HISTORY.md +22 -0
- package/assets/api/vendor_modules/media-typer/LICENSE +22 -0
- package/assets/api/vendor_modules/media-typer/README.md +81 -0
- package/assets/api/vendor_modules/media-typer/index.js +270 -0
- package/assets/api/vendor_modules/media-typer/package.json +26 -0
- package/assets/api/vendor_modules/merge-descriptors/HISTORY.md +21 -0
- package/assets/api/vendor_modules/merge-descriptors/LICENSE +23 -0
- package/assets/api/vendor_modules/merge-descriptors/README.md +49 -0
- package/assets/api/vendor_modules/merge-descriptors/index.js +60 -0
- package/assets/api/vendor_modules/merge-descriptors/package.json +39 -0
- package/assets/api/vendor_modules/methods/HISTORY.md +29 -0
- package/assets/api/vendor_modules/methods/LICENSE +24 -0
- package/assets/api/vendor_modules/methods/README.md +51 -0
- package/assets/api/vendor_modules/methods/index.js +69 -0
- package/assets/api/vendor_modules/methods/package.json +36 -0
- package/assets/api/vendor_modules/mime/CHANGELOG.md +164 -0
- package/assets/api/vendor_modules/mime/LICENSE +21 -0
- package/assets/api/vendor_modules/mime/README.md +90 -0
- package/assets/api/vendor_modules/mime/cli.js +8 -0
- package/assets/api/vendor_modules/mime/mime.js +108 -0
- package/assets/api/vendor_modules/mime/package.json +44 -0
- package/assets/api/vendor_modules/mime/src/build.js +53 -0
- package/assets/api/vendor_modules/mime/src/test.js +60 -0
- package/assets/api/vendor_modules/mime/types.json +1 -0
- package/assets/api/vendor_modules/mime-db/HISTORY.md +507 -0
- package/assets/api/vendor_modules/mime-db/LICENSE +23 -0
- package/assets/api/vendor_modules/mime-db/README.md +100 -0
- package/assets/api/vendor_modules/mime-db/db.json +8519 -0
- package/assets/api/vendor_modules/mime-db/index.js +12 -0
- package/assets/api/vendor_modules/mime-db/package.json +60 -0
- package/assets/api/vendor_modules/mime-types/HISTORY.md +397 -0
- package/assets/api/vendor_modules/mime-types/LICENSE +23 -0
- package/assets/api/vendor_modules/mime-types/README.md +113 -0
- package/assets/api/vendor_modules/mime-types/index.js +188 -0
- package/assets/api/vendor_modules/mime-types/package.json +44 -0
- package/assets/api/vendor_modules/ms/index.js +152 -0
- package/assets/api/vendor_modules/ms/license.md +21 -0
- package/assets/api/vendor_modules/ms/package.json +37 -0
- package/assets/api/vendor_modules/ms/readme.md +51 -0
- package/assets/api/vendor_modules/negotiator/HISTORY.md +108 -0
- package/assets/api/vendor_modules/negotiator/LICENSE +24 -0
- package/assets/api/vendor_modules/negotiator/README.md +203 -0
- package/assets/api/vendor_modules/negotiator/index.js +82 -0
- package/assets/api/vendor_modules/negotiator/lib/charset.js +169 -0
- package/assets/api/vendor_modules/negotiator/lib/encoding.js +184 -0
- package/assets/api/vendor_modules/negotiator/lib/language.js +179 -0
- package/assets/api/vendor_modules/negotiator/lib/mediaType.js +294 -0
- package/assets/api/vendor_modules/negotiator/package.json +42 -0
- package/assets/api/vendor_modules/object-inspect/.eslintrc +53 -0
- package/assets/api/vendor_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/object-inspect/.nycrc +13 -0
- package/assets/api/vendor_modules/object-inspect/CHANGELOG.md +424 -0
- package/assets/api/vendor_modules/object-inspect/LICENSE +21 -0
- package/assets/api/vendor_modules/object-inspect/example/all.js +23 -0
- package/assets/api/vendor_modules/object-inspect/example/circular.js +6 -0
- package/assets/api/vendor_modules/object-inspect/example/fn.js +5 -0
- package/assets/api/vendor_modules/object-inspect/example/inspect.js +10 -0
- package/assets/api/vendor_modules/object-inspect/index.js +544 -0
- package/assets/api/vendor_modules/object-inspect/package-support.json +20 -0
- package/assets/api/vendor_modules/object-inspect/package.json +105 -0
- package/assets/api/vendor_modules/object-inspect/readme.markdown +84 -0
- package/assets/api/vendor_modules/object-inspect/test/bigint.js +58 -0
- package/assets/api/vendor_modules/object-inspect/test/browser/dom.js +15 -0
- package/assets/api/vendor_modules/object-inspect/test/circular.js +16 -0
- package/assets/api/vendor_modules/object-inspect/test/deep.js +12 -0
- package/assets/api/vendor_modules/object-inspect/test/element.js +53 -0
- package/assets/api/vendor_modules/object-inspect/test/err.js +48 -0
- package/assets/api/vendor_modules/object-inspect/test/fakes.js +29 -0
- package/assets/api/vendor_modules/object-inspect/test/fn.js +76 -0
- package/assets/api/vendor_modules/object-inspect/test/global.js +17 -0
- package/assets/api/vendor_modules/object-inspect/test/has.js +15 -0
- package/assets/api/vendor_modules/object-inspect/test/holes.js +15 -0
- package/assets/api/vendor_modules/object-inspect/test/indent-option.js +271 -0
- package/assets/api/vendor_modules/object-inspect/test/inspect.js +139 -0
- package/assets/api/vendor_modules/object-inspect/test/lowbyte.js +12 -0
- package/assets/api/vendor_modules/object-inspect/test/number.js +58 -0
- package/assets/api/vendor_modules/object-inspect/test/quoteStyle.js +26 -0
- package/assets/api/vendor_modules/object-inspect/test/toStringTag.js +40 -0
- package/assets/api/vendor_modules/object-inspect/test/undef.js +12 -0
- package/assets/api/vendor_modules/object-inspect/test/values.js +261 -0
- package/assets/api/vendor_modules/object-inspect/test-core-js.js +26 -0
- package/assets/api/vendor_modules/object-inspect/util.inspect.js +1 -0
- package/assets/api/vendor_modules/on-finished/HISTORY.md +98 -0
- package/assets/api/vendor_modules/on-finished/LICENSE +23 -0
- package/assets/api/vendor_modules/on-finished/README.md +162 -0
- package/assets/api/vendor_modules/on-finished/index.js +234 -0
- package/assets/api/vendor_modules/on-finished/package.json +39 -0
- package/assets/api/vendor_modules/parseurl/HISTORY.md +58 -0
- package/assets/api/vendor_modules/parseurl/LICENSE +24 -0
- package/assets/api/vendor_modules/parseurl/README.md +133 -0
- package/assets/api/vendor_modules/parseurl/index.js +158 -0
- package/assets/api/vendor_modules/parseurl/package.json +40 -0
- package/assets/api/vendor_modules/path-to-regexp/LICENSE +21 -0
- package/assets/api/vendor_modules/path-to-regexp/Readme.md +35 -0
- package/assets/api/vendor_modules/path-to-regexp/index.js +158 -0
- package/assets/api/vendor_modules/path-to-regexp/package.json +30 -0
- package/assets/api/vendor_modules/proxy-addr/HISTORY.md +167 -0
- package/assets/api/vendor_modules/proxy-addr/LICENSE +22 -0
- package/assets/api/vendor_modules/proxy-addr/README.md +139 -0
- package/assets/api/vendor_modules/proxy-addr/index.js +359 -0
- package/assets/api/vendor_modules/proxy-addr/package.json +51 -0
- package/assets/api/vendor_modules/qs/.editorconfig +46 -0
- package/assets/api/vendor_modules/qs/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/qs/.github/SECURITY.md +11 -0
- package/assets/api/vendor_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/assets/api/vendor_modules/qs/.nycrc +13 -0
- package/assets/api/vendor_modules/qs/CHANGELOG.md +833 -0
- package/assets/api/vendor_modules/qs/LICENSE.md +29 -0
- package/assets/api/vendor_modules/qs/README.md +758 -0
- package/assets/api/vendor_modules/qs/dist/qs.js +141 -0
- package/assets/api/vendor_modules/qs/eslint.config.mjs +57 -0
- package/assets/api/vendor_modules/qs/lib/formats.js +23 -0
- package/assets/api/vendor_modules/qs/lib/index.js +11 -0
- package/assets/api/vendor_modules/qs/lib/parse.js +414 -0
- package/assets/api/vendor_modules/qs/lib/stringify.js +363 -0
- package/assets/api/vendor_modules/qs/lib/utils.js +381 -0
- package/assets/api/vendor_modules/qs/package.json +95 -0
- package/assets/api/vendor_modules/qs/test/empty-keys-cases.js +267 -0
- package/assets/api/vendor_modules/qs/test/parse.js +1933 -0
- package/assets/api/vendor_modules/qs/test/stringify.js +1448 -0
- package/assets/api/vendor_modules/qs/test/utils.js +626 -0
- package/assets/api/vendor_modules/range-parser/HISTORY.md +56 -0
- package/assets/api/vendor_modules/range-parser/LICENSE +23 -0
- package/assets/api/vendor_modules/range-parser/README.md +84 -0
- package/assets/api/vendor_modules/range-parser/index.js +162 -0
- package/assets/api/vendor_modules/range-parser/package.json +44 -0
- package/assets/api/vendor_modules/raw-body/LICENSE +22 -0
- package/assets/api/vendor_modules/raw-body/README.md +223 -0
- package/assets/api/vendor_modules/raw-body/index.d.ts +87 -0
- package/assets/api/vendor_modules/raw-body/index.js +336 -0
- package/assets/api/vendor_modules/raw-body/package.json +47 -0
- package/assets/api/vendor_modules/safe-buffer/LICENSE +21 -0
- package/assets/api/vendor_modules/safe-buffer/README.md +584 -0
- package/assets/api/vendor_modules/safe-buffer/index.d.ts +187 -0
- package/assets/api/vendor_modules/safe-buffer/index.js +65 -0
- package/assets/api/vendor_modules/safe-buffer/package.json +51 -0
- package/assets/api/vendor_modules/safer-buffer/LICENSE +21 -0
- package/assets/api/vendor_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/assets/api/vendor_modules/safer-buffer/Readme.md +156 -0
- package/assets/api/vendor_modules/safer-buffer/dangerous.js +58 -0
- package/assets/api/vendor_modules/safer-buffer/package.json +34 -0
- package/assets/api/vendor_modules/safer-buffer/safer.js +77 -0
- package/assets/api/vendor_modules/safer-buffer/tests.js +406 -0
- package/assets/api/vendor_modules/send/HISTORY.md +538 -0
- package/assets/api/vendor_modules/send/LICENSE +23 -0
- package/assets/api/vendor_modules/send/README.md +327 -0
- package/assets/api/vendor_modules/send/SECURITY.md +24 -0
- package/assets/api/vendor_modules/send/index.js +1142 -0
- package/assets/api/vendor_modules/send/node_modules/ms/index.js +162 -0
- package/assets/api/vendor_modules/send/node_modules/ms/license.md +21 -0
- package/assets/api/vendor_modules/send/node_modules/ms/package.json +38 -0
- package/assets/api/vendor_modules/send/node_modules/ms/readme.md +59 -0
- package/assets/api/vendor_modules/send/package.json +62 -0
- package/assets/api/vendor_modules/serve-static/HISTORY.md +493 -0
- package/assets/api/vendor_modules/serve-static/LICENSE +25 -0
- package/assets/api/vendor_modules/serve-static/README.md +257 -0
- package/assets/api/vendor_modules/serve-static/index.js +209 -0
- package/assets/api/vendor_modules/serve-static/package.json +42 -0
- package/assets/api/vendor_modules/serverless-http/LICENSE.txt +33 -0
- package/assets/api/vendor_modules/serverless-http/README.md +117 -0
- package/assets/api/vendor_modules/serverless-http/lib/finish.js +42 -0
- package/assets/api/vendor_modules/serverless-http/lib/framework/get-framework.js +79 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/aws/clean-up-event.js +98 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/aws/create-request.js +110 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/aws/format-response.js +45 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/aws/index.js +15 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/aws/is-binary.js +42 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/aws/sanitize-headers.js +21 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/azure/clean-up-request.js +41 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/azure/create-request.js +45 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/azure/format-response.js +18 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/azure/index.js +13 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/azure/is-binary.js +42 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/azure/sanitize-headers.js +23 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/azure/set-cookie.json +1 -0
- package/assets/api/vendor_modules/serverless-http/lib/provider/get-provider.js +17 -0
- package/assets/api/vendor_modules/serverless-http/lib/request.js +38 -0
- package/assets/api/vendor_modules/serverless-http/lib/response.js +135 -0
- package/assets/api/vendor_modules/serverless-http/package.json +93 -0
- package/assets/api/vendor_modules/serverless-http/serverless-http.d.ts +41 -0
- package/assets/api/vendor_modules/serverless-http/serverless-http.js +23 -0
- package/assets/api/vendor_modules/setprototypeof/LICENSE +13 -0
- package/assets/api/vendor_modules/setprototypeof/README.md +31 -0
- package/assets/api/vendor_modules/setprototypeof/index.d.ts +2 -0
- package/assets/api/vendor_modules/setprototypeof/index.js +17 -0
- package/assets/api/vendor_modules/setprototypeof/package.json +38 -0
- package/assets/api/vendor_modules/setprototypeof/test/index.js +24 -0
- package/assets/api/vendor_modules/side-channel/.editorconfig +9 -0
- package/assets/api/vendor_modules/side-channel/.eslintrc +12 -0
- package/assets/api/vendor_modules/side-channel/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/side-channel/.nycrc +13 -0
- package/assets/api/vendor_modules/side-channel/CHANGELOG.md +120 -0
- package/assets/api/vendor_modules/side-channel/LICENSE +21 -0
- package/assets/api/vendor_modules/side-channel/README.md +61 -0
- package/assets/api/vendor_modules/side-channel/index.d.ts +14 -0
- package/assets/api/vendor_modules/side-channel/index.js +46 -0
- package/assets/api/vendor_modules/side-channel/package.json +85 -0
- package/assets/api/vendor_modules/side-channel/test/index.js +120 -0
- package/assets/api/vendor_modules/side-channel/tsconfig.json +9 -0
- package/assets/api/vendor_modules/side-channel-list/.editorconfig +9 -0
- package/assets/api/vendor_modules/side-channel-list/.eslintrc +11 -0
- package/assets/api/vendor_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/side-channel-list/.nycrc +13 -0
- package/assets/api/vendor_modules/side-channel-list/CHANGELOG.md +36 -0
- package/assets/api/vendor_modules/side-channel-list/LICENSE +21 -0
- package/assets/api/vendor_modules/side-channel-list/README.md +62 -0
- package/assets/api/vendor_modules/side-channel-list/index.d.ts +13 -0
- package/assets/api/vendor_modules/side-channel-list/index.js +111 -0
- package/assets/api/vendor_modules/side-channel-list/list.d.ts +14 -0
- package/assets/api/vendor_modules/side-channel-list/package.json +77 -0
- package/assets/api/vendor_modules/side-channel-list/test/index.js +154 -0
- package/assets/api/vendor_modules/side-channel-list/tsconfig.json +9 -0
- package/assets/api/vendor_modules/side-channel-map/.editorconfig +9 -0
- package/assets/api/vendor_modules/side-channel-map/.eslintrc +11 -0
- package/assets/api/vendor_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/side-channel-map/.nycrc +13 -0
- package/assets/api/vendor_modules/side-channel-map/CHANGELOG.md +22 -0
- package/assets/api/vendor_modules/side-channel-map/LICENSE +21 -0
- package/assets/api/vendor_modules/side-channel-map/README.md +62 -0
- package/assets/api/vendor_modules/side-channel-map/index.d.ts +15 -0
- package/assets/api/vendor_modules/side-channel-map/index.js +68 -0
- package/assets/api/vendor_modules/side-channel-map/package.json +80 -0
- package/assets/api/vendor_modules/side-channel-map/test/index.js +114 -0
- package/assets/api/vendor_modules/side-channel-map/tsconfig.json +9 -0
- package/assets/api/vendor_modules/side-channel-weakmap/.editorconfig +9 -0
- package/assets/api/vendor_modules/side-channel-weakmap/.eslintrc +12 -0
- package/assets/api/vendor_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/assets/api/vendor_modules/side-channel-weakmap/.nycrc +13 -0
- package/assets/api/vendor_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/assets/api/vendor_modules/side-channel-weakmap/LICENSE +21 -0
- package/assets/api/vendor_modules/side-channel-weakmap/README.md +62 -0
- package/assets/api/vendor_modules/side-channel-weakmap/index.d.ts +15 -0
- package/assets/api/vendor_modules/side-channel-weakmap/index.js +84 -0
- package/assets/api/vendor_modules/side-channel-weakmap/package.json +87 -0
- package/assets/api/vendor_modules/side-channel-weakmap/test/index.js +114 -0
- package/assets/api/vendor_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/assets/api/vendor_modules/statuses/HISTORY.md +87 -0
- package/assets/api/vendor_modules/statuses/LICENSE +23 -0
- package/assets/api/vendor_modules/statuses/README.md +139 -0
- package/assets/api/vendor_modules/statuses/codes.json +65 -0
- package/assets/api/vendor_modules/statuses/index.js +146 -0
- package/assets/api/vendor_modules/statuses/package.json +49 -0
- package/assets/api/vendor_modules/toidentifier/HISTORY.md +9 -0
- package/assets/api/vendor_modules/toidentifier/LICENSE +21 -0
- package/assets/api/vendor_modules/toidentifier/README.md +61 -0
- package/assets/api/vendor_modules/toidentifier/index.js +32 -0
- package/assets/api/vendor_modules/toidentifier/package.json +38 -0
- package/assets/api/vendor_modules/type-is/HISTORY.md +259 -0
- package/assets/api/vendor_modules/type-is/LICENSE +23 -0
- package/assets/api/vendor_modules/type-is/README.md +170 -0
- package/assets/api/vendor_modules/type-is/index.js +266 -0
- package/assets/api/vendor_modules/type-is/package.json +45 -0
- package/assets/api/vendor_modules/unpipe/HISTORY.md +4 -0
- package/assets/api/vendor_modules/unpipe/LICENSE +22 -0
- package/assets/api/vendor_modules/unpipe/README.md +43 -0
- package/assets/api/vendor_modules/unpipe/index.js +69 -0
- package/assets/api/vendor_modules/unpipe/package.json +27 -0
- package/assets/api/vendor_modules/utils-merge/LICENSE +20 -0
- package/assets/api/vendor_modules/utils-merge/README.md +34 -0
- package/assets/api/vendor_modules/utils-merge/index.js +23 -0
- package/assets/api/vendor_modules/utils-merge/package.json +40 -0
- package/assets/api/vendor_modules/vary/HISTORY.md +39 -0
- package/assets/api/vendor_modules/vary/LICENSE +22 -0
- package/assets/api/vendor_modules/vary/README.md +101 -0
- package/assets/api/vendor_modules/vary/index.js +149 -0
- package/assets/api/vendor_modules/vary/package.json +43 -0
- package/assets/federation-presignup/index.js +108 -0
- package/assets/firstadmin/index.js +361 -0
- package/assets/headscale-apikey/index.js +140 -0
- package/assets/invoke-relay/index.js +96 -0
- package/assets/issuer-canary/index.js +71 -0
- package/assets/issuer-publish/index.js +87 -0
- package/assets/keyminter/index.js +209 -0
- package/assets/plugin-authorizer/index.js +1740 -0
- package/assets/plugin-catalog/index.js +881 -0
- package/assets/reapproval/index.js +3761 -0
- package/assets/sg-manager/index.js +176 -0
- package/assets/tailnet-resolver/index.js +55 -0
- package/assets/web/chunk-2MOGDYK4.js +1 -0
- package/assets/web/chunk-2SO4BVIT.js +1 -0
- package/assets/web/chunk-2V6RSAAC.js +1 -0
- package/assets/web/chunk-32GNBTAL.js +1 -0
- package/assets/web/chunk-33SYY2JB.js +1 -0
- package/assets/web/chunk-3VWYT7AX.js +1 -0
- package/assets/web/chunk-4FG4DAWU.js +4 -0
- package/assets/web/chunk-4N2IUS6T.js +1 -0
- package/assets/web/chunk-4SK6XQ6C.js +1 -0
- package/assets/web/chunk-65WE5MXA.js +8 -0
- package/assets/web/chunk-6D7SSSJF.js +1 -0
- package/assets/web/chunk-6KFR7DYY.js +1 -0
- package/assets/web/chunk-A4WHI3ZG.js +8 -0
- package/assets/web/chunk-BNFKRZTP.js +1 -0
- package/assets/web/chunk-CG56PH3M.js +1 -0
- package/assets/web/chunk-CGO25AIM.js +1 -0
- package/assets/web/chunk-CP4XZPOA.js +1 -0
- package/assets/web/chunk-CV7EODPO.js +1 -0
- package/assets/web/chunk-D7TR2ORJ.js +1 -0
- package/assets/web/chunk-DCOFBAKJ.js +1 -0
- package/assets/web/chunk-DOLRLYW7.js +1 -0
- package/assets/web/chunk-EEJ3X466.js +1 -0
- package/assets/web/chunk-EQ4PF25J.js +1 -0
- package/assets/web/chunk-EVP5UVDQ.js +1 -0
- package/assets/web/chunk-EW2VMNHE.js +1 -0
- package/assets/web/chunk-FIUVIKAN.js +1 -0
- package/assets/web/chunk-GHEU25TG.js +1 -0
- package/assets/web/chunk-GK2T2SMO.js +1 -0
- package/assets/web/chunk-GKI3R2JB.js +1 -0
- package/assets/web/chunk-GPKKIOHD.js +2 -0
- package/assets/web/chunk-H4AVFUDM.js +1 -0
- package/assets/web/chunk-H5H727H6.js +1 -0
- package/assets/web/chunk-HGVFH6YM.js +1 -0
- package/assets/web/chunk-HHPIANBK.js +1 -0
- package/assets/web/chunk-HK56COCB.js +1 -0
- package/assets/web/chunk-HZUB7LFV.js +1 -0
- package/assets/web/chunk-I7NTNTBA.js +1 -0
- package/assets/web/chunk-IKK5DQ3Z.js +1 -0
- package/assets/web/chunk-IMH56UBX.js +1 -0
- package/assets/web/chunk-J3SSPCFV.js +1 -0
- package/assets/web/chunk-J4C7C5KO.js +1 -0
- package/assets/web/chunk-J57JB4MU.js +1 -0
- package/assets/web/chunk-JMBXRK3I.js +4 -0
- package/assets/web/chunk-KCCEQIXX.js +1 -0
- package/assets/web/chunk-KEBESIXR.js +1 -0
- package/assets/web/chunk-KPNHT4MK.js +1 -0
- package/assets/web/chunk-LMLXTVZG.js +1 -0
- package/assets/web/chunk-M6OAYNRE.js +1 -0
- package/assets/web/chunk-M7MGX5I4.js +1 -0
- package/assets/web/chunk-MU2VNTNY.js +1 -0
- package/assets/web/chunk-NABAVDRL.js +1 -0
- package/assets/web/chunk-NO5D6WDF.js +1 -0
- package/assets/web/chunk-O4QSFUXB.js +1 -0
- package/assets/web/chunk-OATVFQXO.js +1 -0
- package/assets/web/chunk-P5WRM37W.js +5 -0
- package/assets/web/chunk-PCP6D2SM.js +1 -0
- package/assets/web/chunk-PMMBJK7Q.js +1 -0
- package/assets/web/chunk-PSMER3HX.js +1 -0
- package/assets/web/chunk-QPBWZLCT.js +1 -0
- package/assets/web/chunk-QVABVDO5.js +1 -0
- package/assets/web/chunk-RI77LE5V.js +1 -0
- package/assets/web/chunk-RKGUEXZ2.js +1 -0
- package/assets/web/chunk-RMFH2YTZ.js +1 -0
- package/assets/web/chunk-RROPCBUH.js +1 -0
- package/assets/web/chunk-SJMLX5AT.js +1 -0
- package/assets/web/chunk-TKVALOE4.js +2 -0
- package/assets/web/chunk-TM43WUKM.js +1 -0
- package/assets/web/chunk-VKWV3ANT.js +1 -0
- package/assets/web/chunk-VTMYG6YW.js +1 -0
- package/assets/web/chunk-VWW4SA5R.js +1 -0
- package/assets/web/chunk-WEDAFMID.js +1 -0
- package/assets/web/chunk-WFIHWVQO.js +1 -0
- package/assets/web/chunk-XJM3HDJQ.js +1 -0
- package/assets/web/chunk-YVJV2RUY.js +1 -0
- package/assets/web/chunk-Z3KONI7L.js +1 -0
- package/assets/web/chunk-ZDCURXPS.js +1 -0
- package/assets/web/favicon.ico +0 -0
- package/assets/web/index.html +63 -0
- package/assets/web/main-S6E3BC5O.js +2 -0
- package/assets/web/polyfills-7RSNIJ6J.js +2 -0
- package/assets/web/styles-R6ZUWC6K.css +1 -0
- package/dist/index.d.ts +27 -0
- package/dist/index.js +66 -0
- package/dist/lambdacode/api/services/brandingShapes.d.ts +5 -0
- package/dist/lambdacode/api/services/brandingShapes.js +15 -0
- package/dist/lambdacode/issuer/objects.d.ts +8 -0
- package/dist/lambdacode/issuer/objects.js +11 -0
- package/dist/lambdacode/network/naming.d.ts +52 -0
- package/dist/lambdacode/network/naming.js +67 -0
- package/dist/lib/access-portal-hub.d.ts +53 -0
- package/dist/lib/access-portal-hub.js +87 -0
- package/dist/lib/access-portal.d.ts +32 -0
- package/dist/lib/access-portal.js +174 -0
- package/dist/lib/audit-log.d.ts +18 -0
- package/dist/lib/audit-log.js +25 -0
- package/dist/lib/connector-stack.d.ts +28 -0
- package/dist/lib/connector-stack.js +81 -0
- package/dist/lib/constructs/app-function.d.ts +14 -0
- package/dist/lib/constructs/app-function.js +84 -0
- package/dist/lib/constructs/app-table.d.ts +12 -0
- package/dist/lib/constructs/app-table.js +58 -0
- package/dist/lib/constructs/mirrored-image.d.ts +12 -0
- package/dist/lib/constructs/mirrored-image.js +80 -0
- package/dist/lib/constructs/monitoring.d.ts +21 -0
- package/dist/lib/constructs/monitoring.js +133 -0
- package/dist/lib/constructs/oidc-issuer.d.ts +44 -0
- package/dist/lib/constructs/oidc-issuer.js +234 -0
- package/dist/lib/constructs/scratch-tmpfs.d.ts +5 -0
- package/dist/lib/constructs/scratch-tmpfs.js +48 -0
- package/dist/lib/constructs/sg-manager.d.ts +27 -0
- package/dist/lib/constructs/sg-manager.js +88 -0
- package/dist/lib/constructs/tailnet-connector.d.ts +29 -0
- package/dist/lib/constructs/tailnet-connector.js +177 -0
- package/dist/lib/constructs/tailnet-resolver.d.ts +30 -0
- package/dist/lib/constructs/tailnet-resolver.js +71 -0
- package/dist/lib/constructs/target-account-trust.d.ts +32 -0
- package/dist/lib/constructs/target-account-trust.js +81 -0
- package/dist/lib/constructs/vending-api.d.ts +103 -0
- package/dist/lib/constructs/vending-api.js +203 -0
- package/dist/lib/constructs/web-acl.d.ts +61 -0
- package/dist/lib/constructs/web-acl.js +213 -0
- package/dist/lib/constructs/web-identity.d.ts +49 -0
- package/dist/lib/constructs/web-identity.js +116 -0
- package/dist/lib/creds-stack.d.ts +151 -0
- package/dist/lib/creds-stack.js +592 -0
- package/dist/lib/data-stack.d.ts +53 -0
- package/dist/lib/data-stack.js +282 -0
- package/dist/lib/dimensions-validation.d.ts +20 -0
- package/dist/lib/dimensions-validation.js +51 -0
- package/dist/lib/federation.d.ts +113 -0
- package/dist/lib/federation.js +254 -0
- package/dist/lib/managed-login-branding.json +450 -0
- package/dist/lib/network-stack.d.ts +58 -0
- package/dist/lib/network-stack.js +776 -0
- package/dist/lib/network-validation.d.ts +54 -0
- package/dist/lib/network-validation.js +220 -0
- package/dist/lib/pkg-paths.d.ts +3 -0
- package/dist/lib/pkg-paths.js +51 -0
- package/dist/lib/plugins/plugin-api.d.ts +40 -0
- package/dist/lib/plugins/plugin-api.js +125 -0
- package/dist/lib/plugins/plugin-catalog-activation.d.ts +31 -0
- package/dist/lib/plugins/plugin-catalog-activation.js +109 -0
- package/dist/lib/plugins/registration.d.ts +41 -0
- package/dist/lib/plugins/registration.js +121 -0
- package/dist/lib/plugins/runtime.d.ts +10 -0
- package/dist/lib/plugins/runtime.js +17 -0
- package/dist/lib/project-config.d.ts +164 -0
- package/dist/lib/project-config.js +2 -0
- package/dist/lib/target-account-stack.d.ts +15 -0
- package/dist/lib/target-account-stack.js +59 -0
- package/dist/lib/target-account-template.d.ts +13 -0
- package/dist/lib/target-account-template.js +64 -0
- package/dist/lib/web-cert-stack.d.ts +30 -0
- package/dist/lib/web-cert-stack.js +90 -0
- package/dist/lib/web-stack.d.ts +103 -0
- package/dist/lib/web-stack.js +540 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/README.md +303 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/backend/context.d.ts +31 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/backend/context.js +58 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/backend/index.d.ts +9 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/backend/index.js +26 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/client.d.ts +59 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/client.js +290 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/errors.d.ts +14 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/errors.js +32 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/http.d.ts +72 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/http.js +170 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/index.d.ts +11 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/index.js +28 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/theme-apply.d.ts +22 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/browser/theme-apply.js +22 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/access.d.ts +14 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/access.js +41 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/authorizer.d.ts +17 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/authorizer.js +44 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/canonical.d.ts +2 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/canonical.js +21 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/catalog.d.ts +39 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/catalog.js +18 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/discovery.d.ts +78 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/discovery.js +48 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/fields.d.ts +7 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/fields.js +2 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/manifest.d.ts +59 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/manifest.js +19 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/messages.d.ts +111 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/messages.js +109 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/paths.d.ts +20 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/paths.js +49 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/theme.d.ts +21 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/theme.js +60 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/transport.d.ts +14 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/transport.js +10 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/validate.d.ts +27 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/contracts/validate.js +321 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/devHost.d.ts +61 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/devHost.js +99 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/fakeDocument.d.ts +12 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/fakeDocument.js +22 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/fakeWindows.d.ts +22 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/fakeWindows.js +46 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/index.d.ts +4 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/index.js +20 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/samples.d.ts +37 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/fixtures/samples.js +228 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/host/host.d.ts +47 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/host/host.js +121 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/host/index.d.ts +5 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/host/index.js +22 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/index.d.ts +10 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/dist/index.js +28 -0
- package/node_modules/@fntio/infra-client-plugin-sdk/package.json +99 -0
- package/openapi.yaml +4284 -0
- package/package.json +124 -4
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.devHostTheme = devHostTheme;
|
|
4
|
+
exports.createDevHost = createDevHost;
|
|
5
|
+
const paths_1 = require("../contracts/paths");
|
|
6
|
+
const host_1 = require("../host/host");
|
|
7
|
+
const samples_1 = require("./samples");
|
|
8
|
+
function devHostTheme(appearance) {
|
|
9
|
+
return appearance === "dark" ? samples_1.sampleDarkTheme : samples_1.sampleTheme;
|
|
10
|
+
}
|
|
11
|
+
function createDevHost(options) {
|
|
12
|
+
const lifetime = options.tokenLifetimeMs ?? 5 * 60_000;
|
|
13
|
+
let sequence = 0;
|
|
14
|
+
const mint = () => ({ token: `fixture-token-${++sequence}`, expiresAt: Date.now() + lifetime });
|
|
15
|
+
let session = mint();
|
|
16
|
+
let accounts = options.accounts ?? samples_1.sampleAccounts;
|
|
17
|
+
let entryAvailable = true;
|
|
18
|
+
let theme = options.theme ?? devHostTheme(options.appearance ?? "light");
|
|
19
|
+
let failNext = false;
|
|
20
|
+
let loadReported = false;
|
|
21
|
+
const emit = (event) => options.onEvent?.(event);
|
|
22
|
+
const loadFailed = () => {
|
|
23
|
+
if (loadReported || host.state() !== "waiting")
|
|
24
|
+
return;
|
|
25
|
+
loadReported = true;
|
|
26
|
+
emit({ type: "handshakeTimeout" });
|
|
27
|
+
};
|
|
28
|
+
const base = {
|
|
29
|
+
id: "parameters", displayName: "Application parameters", version: "0.0.0-dev", revision: "dev",
|
|
30
|
+
...options.plugin,
|
|
31
|
+
};
|
|
32
|
+
// Derived AFTER the overrides: a developer who renames the plugin gets their own API root.
|
|
33
|
+
const plugin = { ...base, apiBaseUrl: options.plugin?.apiBaseUrl ?? (0, paths_1.pluginApiBaseUrl)(base.id) };
|
|
34
|
+
const user = { subject: "dev-user", principalType: "user", email: "dev@example.com", displayName: "Dev User", ...options.user };
|
|
35
|
+
const renew = () => {
|
|
36
|
+
session = mint();
|
|
37
|
+
return session;
|
|
38
|
+
};
|
|
39
|
+
const host = (0, host_1.createPluginHost)({
|
|
40
|
+
frame: options.frame,
|
|
41
|
+
origin: options.origin,
|
|
42
|
+
listenOn: options.listenOn,
|
|
43
|
+
handshakeTimeoutMs: options.handshakeTimeoutMs,
|
|
44
|
+
initialState: () => ({ session, user, plugin, entry: options.entry ?? "user", accounts, theme }),
|
|
45
|
+
refreshSession: async () => {
|
|
46
|
+
if (failNext) {
|
|
47
|
+
failNext = false;
|
|
48
|
+
emit({ type: "refresh", outcome: "failed" });
|
|
49
|
+
return null;
|
|
50
|
+
}
|
|
51
|
+
emit({ type: "refresh", outcome: "renewed" });
|
|
52
|
+
return renew();
|
|
53
|
+
},
|
|
54
|
+
onReady: (info) => emit({ type: "ready", ...info }),
|
|
55
|
+
onHandshakeTimeout: () => loadFailed(),
|
|
56
|
+
onRequestAccessRefresh: (reason) => emit({ type: "accessRefresh", reason }),
|
|
57
|
+
onIncompatible: (info) => emit({ type: "incompatible", version: info.version }),
|
|
58
|
+
onEnded: (reason) => emit({ type: "ended", reason }),
|
|
59
|
+
});
|
|
60
|
+
const pushAccess = () => host.sendAccess({ accounts, entryAvailable });
|
|
61
|
+
return {
|
|
62
|
+
...host,
|
|
63
|
+
session: () => session,
|
|
64
|
+
accounts: () => accounts,
|
|
65
|
+
renewSession: () => {
|
|
66
|
+
host.sendSession(renew());
|
|
67
|
+
return session;
|
|
68
|
+
},
|
|
69
|
+
expireSession: () => {
|
|
70
|
+
session = { token: session.token, expiresAt: Date.now() - 1 };
|
|
71
|
+
host.sendSession(session);
|
|
72
|
+
},
|
|
73
|
+
failNextRefresh: () => {
|
|
74
|
+
failNext = true;
|
|
75
|
+
},
|
|
76
|
+
failLoad: loadFailed,
|
|
77
|
+
grant: (account) => {
|
|
78
|
+
accounts = [...accounts.filter((a) => a.accountNumber !== account.accountNumber), account];
|
|
79
|
+
pushAccess();
|
|
80
|
+
},
|
|
81
|
+
revoke: (accountNumber) => {
|
|
82
|
+
accounts = accounts.filter((a) => a.accountNumber !== accountNumber);
|
|
83
|
+
pushAccess();
|
|
84
|
+
},
|
|
85
|
+
setEntryAvailable: (available) => {
|
|
86
|
+
entryAvailable = available;
|
|
87
|
+
pushAccess();
|
|
88
|
+
},
|
|
89
|
+
setAppearance: (appearance) => {
|
|
90
|
+
theme = devHostTheme(appearance);
|
|
91
|
+
host.sendTheme(theme);
|
|
92
|
+
},
|
|
93
|
+
setTheme: (next) => {
|
|
94
|
+
theme = next;
|
|
95
|
+
host.sendTheme(next);
|
|
96
|
+
},
|
|
97
|
+
signOut: () => host.end("signedOut"),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PluginThemeDocument, PluginThemeStyleElement } from "../browser/theme-apply";
|
|
2
|
+
export interface FakeThemeDocument {
|
|
3
|
+
readonly doc: PluginThemeDocument;
|
|
4
|
+
/** Attributes set on the root element (`data-theme`). */
|
|
5
|
+
readonly attributes: Record<string, string>;
|
|
6
|
+
/** Style elements by id; `applyPluginTheme` rewrites the same one in place. */
|
|
7
|
+
readonly styles: Map<string, PluginThemeStyleElement>;
|
|
8
|
+
/** Ids in append order, to prove nothing is appended twice. */
|
|
9
|
+
readonly appended: string[];
|
|
10
|
+
}
|
|
11
|
+
/** The slice of `document` the SDK themes, for tests of plugins and of the SDK itself. */
|
|
12
|
+
export declare function createFakeThemeDocument(): FakeThemeDocument;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createFakeThemeDocument = createFakeThemeDocument;
|
|
4
|
+
/** The slice of `document` the SDK themes, for tests of plugins and of the SDK itself. */
|
|
5
|
+
function createFakeThemeDocument() {
|
|
6
|
+
const attributes = {};
|
|
7
|
+
const styles = new Map();
|
|
8
|
+
const appended = [];
|
|
9
|
+
const doc = {
|
|
10
|
+
documentElement: { setAttribute: (name, value) => void (attributes[name] = value) },
|
|
11
|
+
head: {
|
|
12
|
+
appendChild: (node) => {
|
|
13
|
+
const element = node;
|
|
14
|
+
appended.push(element.id);
|
|
15
|
+
styles.set(element.id, element);
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
getElementById: (id) => styles.get(id) ?? null,
|
|
19
|
+
createElement: () => ({ id: "", textContent: null }),
|
|
20
|
+
};
|
|
21
|
+
return { doc, attributes, styles, appended };
|
|
22
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PluginMessageEventLike, PluginMessageListenerTarget, PluginMessagePort } from "../contracts/transport";
|
|
2
|
+
export interface FakeWindow extends PluginMessagePort, PluginMessageListenerTarget {
|
|
3
|
+
readonly origin: string;
|
|
4
|
+
/** Everything posted TO this window (`window.postMessage` is called on the target), oldest
|
|
5
|
+
* first, with the origin the caller addressed. */
|
|
6
|
+
readonly inbox: ReadonlyArray<{
|
|
7
|
+
readonly message: unknown;
|
|
8
|
+
readonly targetOrigin: string;
|
|
9
|
+
}>;
|
|
10
|
+
/** Deliver an event straight to this window's listeners, bypassing the peer (spoofing tests). */
|
|
11
|
+
receive(event: PluginMessageEventLike): void;
|
|
12
|
+
}
|
|
13
|
+
export interface FakeWindowPair {
|
|
14
|
+
readonly host: FakeWindow;
|
|
15
|
+
readonly plugin: FakeWindow;
|
|
16
|
+
}
|
|
17
|
+
/** Two windows wired like a portal page and its plugin iframe. Browser semantics: calling
|
|
18
|
+
* `postMessage` on a window delivers to that window's listeners, on a microtask, with the OTHER
|
|
19
|
+
* window as `source`; a `targetOrigin` other than `*` or the target's own origin drops the message. */
|
|
20
|
+
export declare function createFakeWindowPair(hostOrigin?: string, pluginOrigin?: string): FakeWindowPair;
|
|
21
|
+
/** Let queued deliveries and the promise chains behind them run. */
|
|
22
|
+
export declare function settle(): Promise<void>;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createFakeWindowPair = createFakeWindowPair;
|
|
4
|
+
exports.settle = settle;
|
|
5
|
+
// jest-environment-jsdom 29 has no structuredClone; JSON is close enough for protocol payloads.
|
|
6
|
+
const clone = typeof structuredClone === "function" ? structuredClone : (value) => JSON.parse(JSON.stringify(value));
|
|
7
|
+
/** Two windows wired like a portal page and its plugin iframe. Browser semantics: calling
|
|
8
|
+
* `postMessage` on a window delivers to that window's listeners, on a microtask, with the OTHER
|
|
9
|
+
* window as `source`; a `targetOrigin` other than `*` or the target's own origin drops the message. */
|
|
10
|
+
function createFakeWindowPair(hostOrigin = "https://portal.example", pluginOrigin = hostOrigin) {
|
|
11
|
+
const make = (origin) => {
|
|
12
|
+
const listeners = new Set();
|
|
13
|
+
const inbox = [];
|
|
14
|
+
let peer;
|
|
15
|
+
const self = {
|
|
16
|
+
origin,
|
|
17
|
+
inbox,
|
|
18
|
+
link: (other) => (peer = other),
|
|
19
|
+
postMessage(message, targetOrigin) {
|
|
20
|
+
inbox.push({ message, targetOrigin });
|
|
21
|
+
const data = clone(message);
|
|
22
|
+
const source = peer;
|
|
23
|
+
if (!source || (targetOrigin !== "*" && targetOrigin !== origin))
|
|
24
|
+
return;
|
|
25
|
+
// A promise microtask, not queueMicrotask: fake timers stub the latter and would stall delivery.
|
|
26
|
+
void Promise.resolve().then(() => self.receive({ data, origin: source.origin, source }));
|
|
27
|
+
},
|
|
28
|
+
addEventListener: (_type, listener) => void listeners.add(listener),
|
|
29
|
+
removeEventListener: (_type, listener) => void listeners.delete(listener),
|
|
30
|
+
receive: (event) => {
|
|
31
|
+
for (const listener of [...listeners])
|
|
32
|
+
listener(event);
|
|
33
|
+
},
|
|
34
|
+
};
|
|
35
|
+
return self;
|
|
36
|
+
};
|
|
37
|
+
const host = make(hostOrigin);
|
|
38
|
+
const plugin = make(pluginOrigin);
|
|
39
|
+
host.link(plugin);
|
|
40
|
+
plugin.link(host);
|
|
41
|
+
return { host, plugin };
|
|
42
|
+
}
|
|
43
|
+
/** Let queued deliveries and the promise chains behind them run. */
|
|
44
|
+
async function settle() {
|
|
45
|
+
await new Promise((resolve) => setTimeout(resolve, 0));
|
|
46
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./samples"), exports);
|
|
18
|
+
__exportStar(require("./fakeWindows"), exports);
|
|
19
|
+
__exportStar(require("./fakeDocument"), exports);
|
|
20
|
+
__exportStar(require("./devHost"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PluginAuthorizerContextV1 } from "../contracts/authorizer";
|
|
2
|
+
import { PluginCatalogRecordV1 } from "../contracts/catalog";
|
|
3
|
+
import { PluginDiscoveryResponseV1 } from "../contracts/discovery";
|
|
4
|
+
import { PluginManifestV1 } from "../contracts/manifest";
|
|
5
|
+
import { HostToPluginPayloads, PluginAccountContext } from "../contracts/messages";
|
|
6
|
+
import { PluginTheme } from "../contracts/theme";
|
|
7
|
+
import { PluginValidationCode } from "../contracts/validate";
|
|
8
|
+
export declare const FIXTURE_ACCOUNT_A = "111111111111";
|
|
9
|
+
export declare const FIXTURE_ACCOUNT_B = "222222222222";
|
|
10
|
+
/** The reference plugin: user + admin, two UI entries, three routes on one handler. */
|
|
11
|
+
export declare const parametersManifest: PluginManifestV1;
|
|
12
|
+
export declare const PARAMETERS_HANDLER_KEYS: readonly string[];
|
|
13
|
+
export declare const uiOnlyManifest: PluginManifestV1;
|
|
14
|
+
export declare const backendOnlyManifest: PluginManifestV1;
|
|
15
|
+
export declare const adminOnlyUiManifest: PluginManifestV1;
|
|
16
|
+
export declare const disabledManifest: PluginManifestV1;
|
|
17
|
+
export interface ValidManifestFixture {
|
|
18
|
+
readonly name: string;
|
|
19
|
+
readonly manifest: PluginManifestV1;
|
|
20
|
+
readonly handlerKeys?: readonly string[];
|
|
21
|
+
}
|
|
22
|
+
export declare const validManifests: readonly ValidManifestFixture[];
|
|
23
|
+
export interface InvalidManifestFixture {
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly manifest: unknown;
|
|
26
|
+
/** The code the validator must report (it may report others too). */
|
|
27
|
+
readonly code: PluginValidationCode;
|
|
28
|
+
readonly handlerKeys?: readonly string[];
|
|
29
|
+
}
|
|
30
|
+
export declare const invalidManifests: readonly InvalidManifestFixture[];
|
|
31
|
+
export declare const sampleTheme: PluginTheme;
|
|
32
|
+
export declare const sampleDarkTheme: PluginTheme;
|
|
33
|
+
export declare const sampleCatalogRecord: PluginCatalogRecordV1;
|
|
34
|
+
export declare const sampleAccounts: readonly PluginAccountContext[];
|
|
35
|
+
export declare const sampleDiscoveryResponse: PluginDiscoveryResponseV1;
|
|
36
|
+
export declare const sampleInitPayload: HostToPluginPayloads["init"];
|
|
37
|
+
export declare const sampleAuthorizerContext: PluginAuthorizerContextV1;
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sampleAuthorizerContext = exports.sampleInitPayload = exports.sampleDiscoveryResponse = exports.sampleAccounts = exports.sampleCatalogRecord = exports.sampleDarkTheme = exports.sampleTheme = exports.invalidManifests = exports.validManifests = exports.disabledManifest = exports.adminOnlyUiManifest = exports.backendOnlyManifest = exports.uiOnlyManifest = exports.PARAMETERS_HANDLER_KEYS = exports.parametersManifest = exports.FIXTURE_ACCOUNT_B = exports.FIXTURE_ACCOUNT_A = void 0;
|
|
4
|
+
const manifest_1 = require("../contracts/manifest");
|
|
5
|
+
const paths_1 = require("../contracts/paths");
|
|
6
|
+
exports.FIXTURE_ACCOUNT_A = "111111111111";
|
|
7
|
+
exports.FIXTURE_ACCOUNT_B = "222222222222";
|
|
8
|
+
/** The reference plugin: user + admin, two UI entries, three routes on one handler. */
|
|
9
|
+
exports.parametersManifest = {
|
|
10
|
+
schemaVersion: 1,
|
|
11
|
+
id: "parameters",
|
|
12
|
+
displayName: "Application parameters",
|
|
13
|
+
description: "Read and edit SSM parameters under the configured prefixes.",
|
|
14
|
+
version: "1.0.0",
|
|
15
|
+
hostApiVersion: 1,
|
|
16
|
+
enabled: true,
|
|
17
|
+
accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_A, regions: ["eu-central-1"] }, { accountNumber: exports.FIXTURE_ACCOUNT_B }],
|
|
18
|
+
permissions: [
|
|
19
|
+
{ id: "user", label: "View application parameters" },
|
|
20
|
+
{ id: "admin", label: "Edit application parameters", description: "Includes viewing." },
|
|
21
|
+
],
|
|
22
|
+
ui: {
|
|
23
|
+
user: { label: "Parameters", icon: "sliders", order: 10, entry: "index.html#/user" },
|
|
24
|
+
admin: { label: "Parameters", icon: "sliders", order: 10, entry: "index.html#/admin" },
|
|
25
|
+
},
|
|
26
|
+
routes: [
|
|
27
|
+
{ id: "list", method: "GET", path: "/parameters", permission: "user", handlerKey: "api" },
|
|
28
|
+
{ id: "get", method: "GET", path: "/parameters/{name}", permission: "user", handlerKey: "api" },
|
|
29
|
+
{ id: "update", method: "PUT", path: "/parameters/{name}", permission: "admin", handlerKey: "api" },
|
|
30
|
+
],
|
|
31
|
+
};
|
|
32
|
+
exports.PARAMETERS_HANDLER_KEYS = ["api"];
|
|
33
|
+
exports.uiOnlyManifest = {
|
|
34
|
+
schemaVersion: 1,
|
|
35
|
+
id: "status-board",
|
|
36
|
+
displayName: "Status board",
|
|
37
|
+
version: "2.3.1",
|
|
38
|
+
hostApiVersion: 1,
|
|
39
|
+
enabled: true,
|
|
40
|
+
accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_A }],
|
|
41
|
+
permissions: [{ id: "user", label: "View the status board" }],
|
|
42
|
+
ui: { user: { label: "Status", entry: "board.html" } },
|
|
43
|
+
routes: [],
|
|
44
|
+
};
|
|
45
|
+
exports.backendOnlyManifest = {
|
|
46
|
+
schemaVersion: 1,
|
|
47
|
+
id: "backup-jobs",
|
|
48
|
+
displayName: "Database backups",
|
|
49
|
+
version: "0.4.0",
|
|
50
|
+
hostApiVersion: 1,
|
|
51
|
+
enabled: true,
|
|
52
|
+
accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_B, regions: ["eu-central-1", "eu-west-1"] }],
|
|
53
|
+
permissions: [{ id: "admin", label: "Run and inspect backups" }],
|
|
54
|
+
routes: [
|
|
55
|
+
{ id: "start", method: "POST", path: "/jobs", permission: "admin", handlerKey: "jobs" },
|
|
56
|
+
{ id: "status", method: "GET", path: "/jobs/{jobId}", permission: "admin", handlerKey: "jobs" },
|
|
57
|
+
{ id: "cancel", method: "DELETE", path: "/jobs/{jobId}", permission: "admin", handlerKey: "jobs" },
|
|
58
|
+
],
|
|
59
|
+
};
|
|
60
|
+
exports.adminOnlyUiManifest = {
|
|
61
|
+
schemaVersion: 1,
|
|
62
|
+
id: "feature-flags",
|
|
63
|
+
displayName: "Feature flags",
|
|
64
|
+
version: "1.0.0",
|
|
65
|
+
hostApiVersion: 1,
|
|
66
|
+
enabled: true,
|
|
67
|
+
accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_A }],
|
|
68
|
+
permissions: [{ id: "admin", label: "Manage feature flags" }],
|
|
69
|
+
ui: { admin: { label: "Feature flags", entry: "index.html" } },
|
|
70
|
+
routes: [{ id: "root", method: "GET", path: "/", permission: "admin", handlerKey: "flags" }],
|
|
71
|
+
};
|
|
72
|
+
exports.disabledManifest = { ...exports.parametersManifest, id: "parameters-legacy", enabled: false };
|
|
73
|
+
exports.validManifests = [
|
|
74
|
+
{ name: "user + admin with UI and routes", manifest: exports.parametersManifest, handlerKeys: exports.PARAMETERS_HANDLER_KEYS },
|
|
75
|
+
{ name: "UI-only", manifest: exports.uiOnlyManifest, handlerKeys: [] },
|
|
76
|
+
{ name: "backend-only", manifest: exports.backendOnlyManifest, handlerKeys: ["jobs"] },
|
|
77
|
+
{ name: "admin-only with a root route", manifest: exports.adminOnlyUiManifest, handlerKeys: ["flags"] },
|
|
78
|
+
{ name: "disabled", manifest: exports.disabledManifest, handlerKeys: exports.PARAMETERS_HANDLER_KEYS },
|
|
79
|
+
];
|
|
80
|
+
const patch = (p) => ({ ...exports.parametersManifest, ...p });
|
|
81
|
+
const route = (o) => ({
|
|
82
|
+
id: "r", method: "GET", path: "/x", permission: "user", handlerKey: "api", ...o,
|
|
83
|
+
});
|
|
84
|
+
const userUi = { user: exports.parametersManifest.ui.user };
|
|
85
|
+
const { permission: _omitted, ...routeWithoutPermission } = route({});
|
|
86
|
+
exports.invalidManifests = [
|
|
87
|
+
{ name: "not an object", manifest: "parameters", code: "not-an-object" },
|
|
88
|
+
{ name: "unknown top-level field", manifest: patch({ handler: "api" }), code: "unknown-field" },
|
|
89
|
+
{ name: "schemaVersion 2", manifest: patch({ schemaVersion: 2 }), code: "schema-version" },
|
|
90
|
+
{ name: "hostApiVersion 2", manifest: patch({ hostApiVersion: 2 }), code: "host-api-version" },
|
|
91
|
+
{ name: "id with uppercase", manifest: patch({ id: "Parameters" }), code: "plugin-id" },
|
|
92
|
+
{ name: "id starting with a digit", manifest: patch({ id: "1parameters" }), code: "plugin-id" },
|
|
93
|
+
{ name: "id too long", manifest: patch({ id: "a".repeat(65) }), code: "plugin-id" },
|
|
94
|
+
{ name: "blank displayName", manifest: patch({ displayName: " " }), code: "display-name" },
|
|
95
|
+
{ name: "description over the limit", manifest: patch({ description: "d".repeat(manifest_1.PLUGIN_DESCRIPTION_MAX + 1) }), code: "description" },
|
|
96
|
+
{ name: "permission description not a string", manifest: patch({ permissions: [{ id: "user", label: "View", description: 7 }, { id: "admin", label: "Edit" }] }), code: "description" },
|
|
97
|
+
{ name: "version with a space", manifest: patch({ version: "1.0 beta" }), code: "version" },
|
|
98
|
+
{ name: "enabled as a string", manifest: patch({ enabled: "yes" }), code: "enabled" },
|
|
99
|
+
{ name: "no accounts", manifest: patch({ accounts: [] }), code: "accounts-empty" },
|
|
100
|
+
{ name: "short account number", manifest: patch({ accounts: [{ accountNumber: "12345" }] }), code: "account-number" },
|
|
101
|
+
{ name: "account bound twice", manifest: patch({ accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_A }, { accountNumber: exports.FIXTURE_ACCOUNT_A }] }), code: "account-duplicate" },
|
|
102
|
+
{ name: "invalid region", manifest: patch({ accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_A, regions: ["europe"] }] }), code: "region" },
|
|
103
|
+
{ name: "region listed twice", manifest: patch({ accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_A, regions: ["eu-central-1", "eu-central-1"] }] }), code: "region-duplicate" },
|
|
104
|
+
{ name: "no permissions", manifest: patch({ permissions: [] }), code: "permissions-empty" },
|
|
105
|
+
{ name: "unknown permission id", manifest: patch({ permissions: [{ id: "owner", label: "Owner" }] }), code: "permission-id" },
|
|
106
|
+
{ name: "permission declared twice", manifest: patch({ permissions: [{ id: "user", label: "A" }, { id: "user", label: "B" }] }), code: "permission-duplicate" },
|
|
107
|
+
{ name: "permission without a label", manifest: patch({ permissions: [{ id: "user", label: "" }, { id: "admin", label: "Edit" }] }), code: "permission-label" },
|
|
108
|
+
{ name: "empty ui object", manifest: patch({ ui: {} }), code: "ui-empty" },
|
|
109
|
+
{ name: "a third UI entry", manifest: patch({ ui: { ...exports.parametersManifest.ui, reports: { label: "Reports", entry: "index.html#/reports" } } }), code: "ui-unknown-entry" },
|
|
110
|
+
{ name: "admin entry without the admin permission", manifest: patch({ permissions: [{ id: "user", label: "View" }], routes: [route({})], ui: { admin: { label: "Admin", entry: "index.html#/admin" } } }), code: "ui-undeclared-permission" },
|
|
111
|
+
{ name: "absolute entry path", manifest: patch({ ui: { user: { label: "P", entry: "/index.html" } } }), code: "ui-entry-path" },
|
|
112
|
+
{ name: "entry is a URL", manifest: patch({ ui: { user: { label: "P", entry: "https://example.com/index.html" } } }), code: "ui-entry-path" },
|
|
113
|
+
{ name: "entry escapes the asset directory", manifest: patch({ ui: { user: { label: "P", entry: "../index.html" } } }), code: "ui-entry-path" },
|
|
114
|
+
{ name: "entry without a file before the hash", manifest: patch({ ui: { user: { label: "P", entry: "#/user" } } }), code: "ui-entry-path" },
|
|
115
|
+
{ name: "ui entry without a label", manifest: patch({ ui: { user: { label: "", entry: "index.html" } } }), code: "ui-label" },
|
|
116
|
+
{ name: "icon with spaces", manifest: patch({ ui: { user: { label: "P", icon: "my icon", entry: "index.html" } } }), code: "ui-icon" },
|
|
117
|
+
{ name: "order not an integer", manifest: patch({ ui: { user: { label: "P", order: 1.5, entry: "index.html" } } }), code: "ui-order" },
|
|
118
|
+
{ name: "route id with uppercase", manifest: patch({ routes: [route({ id: "List" })] }), code: "route-id" },
|
|
119
|
+
{ name: "route that is not an object", manifest: patch({ routes: ["list"] }), code: "route-id" },
|
|
120
|
+
{ name: "route id used twice", manifest: patch({ routes: [route({ id: "list", path: "/a" }), route({ id: "list", path: "/b" })] }), code: "route-duplicate-id" },
|
|
121
|
+
{ name: "route method ANY", manifest: patch({ routes: [route({ method: "ANY" })] }), code: "route-method" },
|
|
122
|
+
{ name: "route path without a leading slash", manifest: patch({ routes: [route({ path: "parameters" })] }), code: "route-path" },
|
|
123
|
+
{ name: "route path with a trailing slash", manifest: patch({ routes: [route({ path: "/parameters/" })] }), code: "route-path" },
|
|
124
|
+
{ name: "greedy proxy route", manifest: patch({ routes: [route({ path: "/{proxy+}" })] }), code: "route-greedy" },
|
|
125
|
+
{ name: "route declares the account parameter", manifest: patch({ routes: [route({ path: "/{accountNumber}/x" })] }), code: "route-reserved-param" },
|
|
126
|
+
{ name: "same parameter twice in one path", manifest: patch({ routes: [route({ path: "/a/{id}/b/{id}" })] }), code: "route-param-duplicate" },
|
|
127
|
+
{ name: "parameter name conflict at one position", manifest: patch({ routes: [route({ id: "a", path: "/items/{id}" }), route({ id: "b", path: "/items/{name}/history" })] }), code: "route-param-conflict" },
|
|
128
|
+
{ name: "same shape with different parameter names", manifest: patch({ routes: [route({ id: "a", path: "/items/{id}" }), route({ id: "b", path: "/items/{key}" })] }), code: "route-duplicate-shape" },
|
|
129
|
+
{ name: "same method and path twice", manifest: patch({ routes: [route({ id: "a" }), route({ id: "b" })] }), code: "route-duplicate-shape" },
|
|
130
|
+
{ name: "route requires an undeclared permission", manifest: patch({ permissions: [{ id: "user", label: "View" }], ui: userUi, routes: [route({ permission: "admin" })] }), code: "route-undeclared-permission" },
|
|
131
|
+
{ name: "route with no permission field at all", manifest: patch({ routes: [routeWithoutPermission] }), code: "route-undeclared-permission" },
|
|
132
|
+
{ name: "route with an unknown handler key", manifest: patch({ routes: [route({ handlerKey: "missing" })] }), handlerKeys: ["api"], code: "route-handler-key" },
|
|
133
|
+
{ name: "neither UI nor routes", manifest: patch({ ui: undefined, routes: [] }), code: "no-surface" },
|
|
134
|
+
{ name: "routes missing entirely", manifest: patch({ routes: undefined }), code: "route-path" },
|
|
135
|
+
{
|
|
136
|
+
name: "manifest over the size limit",
|
|
137
|
+
manifest: patch({ routes: Array.from({ length: 1400 }, (_, i) => route({ id: `route-${i}`, path: `/resource-${i}/items` })) }),
|
|
138
|
+
code: "manifest-too-large",
|
|
139
|
+
},
|
|
140
|
+
];
|
|
141
|
+
exports.sampleTheme = {
|
|
142
|
+
appearance: "light",
|
|
143
|
+
tokens: {
|
|
144
|
+
"--background": "#ffffff",
|
|
145
|
+
"--surface": "#f7f7f8",
|
|
146
|
+
"--surface-foreground": "#1b1f26",
|
|
147
|
+
"--muted-foreground": "#6d7583",
|
|
148
|
+
"--border": "rgba(27, 31, 38, 0.12)",
|
|
149
|
+
"--accent-9": "#ea580c",
|
|
150
|
+
"--brand-primary": "#ea580c",
|
|
151
|
+
"--brand-foreground": "#ffffff",
|
|
152
|
+
"--radius": "0.5rem",
|
|
153
|
+
"--font-sans": "\"Inter\", system-ui, sans-serif",
|
|
154
|
+
},
|
|
155
|
+
branding: { projectName: "Example Portal" },
|
|
156
|
+
};
|
|
157
|
+
exports.sampleDarkTheme = {
|
|
158
|
+
...exports.sampleTheme,
|
|
159
|
+
appearance: "dark",
|
|
160
|
+
tokens: {
|
|
161
|
+
...exports.sampleTheme.tokens,
|
|
162
|
+
"--background": "#111318",
|
|
163
|
+
"--surface": "#1b1f26",
|
|
164
|
+
"--surface-foreground": "#e6e8ec",
|
|
165
|
+
"--muted-foreground": "#9aa3b2",
|
|
166
|
+
"--border": "rgba(230, 232, 236, 0.14)",
|
|
167
|
+
"--accent-9": "#f97316",
|
|
168
|
+
"--brand-primary": "#f97316",
|
|
169
|
+
"--brand-foreground": "#111318",
|
|
170
|
+
},
|
|
171
|
+
};
|
|
172
|
+
const ASSET_PREFIX = (0, paths_1.pluginAssetPrefix)("parameters", "1.0.0", "0123abcd");
|
|
173
|
+
exports.sampleCatalogRecord = {
|
|
174
|
+
pluginId: "parameters",
|
|
175
|
+
schemaVersion: 1,
|
|
176
|
+
manifest: exports.parametersManifest,
|
|
177
|
+
revision: "0123abcd0123abcd",
|
|
178
|
+
assetPrefix: ASSET_PREFIX,
|
|
179
|
+
installed: true,
|
|
180
|
+
owner: "WebStack/parameters",
|
|
181
|
+
ui: {
|
|
182
|
+
user: { label: "Parameters", icon: "sliders", order: 10, url: (0, paths_1.pluginUiUrl)(ASSET_PREFIX, "index.html#/user") },
|
|
183
|
+
admin: { label: "Parameters", icon: "sliders", order: 10, url: (0, paths_1.pluginUiUrl)(ASSET_PREFIX, "index.html#/admin") },
|
|
184
|
+
},
|
|
185
|
+
routes: exports.parametersManifest.routes.map((r) => ({ ...r, resourcePath: (0, paths_1.pluginRouteResourcePath)("parameters", r.path) })),
|
|
186
|
+
installedAt: "2026-09-16T09:00:00.000Z",
|
|
187
|
+
updatedAt: "2026-09-16T09:00:00.000Z",
|
|
188
|
+
};
|
|
189
|
+
exports.sampleAccounts = [
|
|
190
|
+
{ accountNumber: exports.FIXTURE_ACCOUNT_A, displayName: "Example workloads", regions: ["eu-central-1"], permissions: ["user", "admin"] },
|
|
191
|
+
{ accountNumber: exports.FIXTURE_ACCOUNT_B, displayName: "Example sandbox", permissions: ["user"] },
|
|
192
|
+
];
|
|
193
|
+
exports.sampleDiscoveryResponse = {
|
|
194
|
+
schemaVersion: 1,
|
|
195
|
+
refreshAfterSeconds: 60,
|
|
196
|
+
plugins: [
|
|
197
|
+
{
|
|
198
|
+
id: "parameters",
|
|
199
|
+
displayName: "Application parameters",
|
|
200
|
+
description: exports.parametersManifest.description,
|
|
201
|
+
version: "1.0.0",
|
|
202
|
+
revision: "0123abcd0123abcd",
|
|
203
|
+
apiBaseUrl: "/api/plugins/parameters",
|
|
204
|
+
ui: { user: { label: "Parameters", icon: "sliders", order: 10, url: (0, paths_1.pluginUiUrl)(ASSET_PREFIX, "index.html#/user") } },
|
|
205
|
+
accounts: [{ accountNumber: exports.FIXTURE_ACCOUNT_A, displayName: "Example workloads", regions: ["eu-central-1"], permissions: ["user"] }],
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
};
|
|
209
|
+
exports.sampleInitPayload = {
|
|
210
|
+
// Relative, not a timestamp: a fixed one expired on 2026-09-21 and every suite built on this
|
|
211
|
+
// fixture (ours and any plugin author's) started asking the host for an "expiring" refresh.
|
|
212
|
+
session: { token: "eyJhbGciOiJSUzI1NiJ9.example.signature", expiresAt: Date.now() + 3_600_000 },
|
|
213
|
+
user: { subject: "6f1e2d3c-0000-4000-8000-000000000001", principalType: "user", email: "admin@example.com", displayName: "Example Admin" },
|
|
214
|
+
plugin: { id: "parameters", displayName: "Application parameters", version: "1.0.0", revision: "0123abcd0123abcd", apiBaseUrl: "/api/plugins/parameters" },
|
|
215
|
+
entry: "user",
|
|
216
|
+
accounts: exports.sampleAccounts,
|
|
217
|
+
theme: exports.sampleTheme,
|
|
218
|
+
};
|
|
219
|
+
exports.sampleAuthorizerContext = {
|
|
220
|
+
pluginId: "parameters",
|
|
221
|
+
pluginRevision: "0123abcd0123abcd",
|
|
222
|
+
routeId: "list",
|
|
223
|
+
accountNumber: exports.FIXTURE_ACCOUNT_A,
|
|
224
|
+
requiredPermission: "user",
|
|
225
|
+
subject: "6f1e2d3c-0000-4000-8000-000000000001",
|
|
226
|
+
principalType: "user",
|
|
227
|
+
correlationId: "req-0001",
|
|
228
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { HostToPluginPayloads, PluginSession, PluginToHostPayloads } from "../contracts/messages";
|
|
2
|
+
import { PluginTheme } from "../contracts/theme";
|
|
3
|
+
import { PluginMessageListenerTarget, PluginMessagePort } from "../contracts/transport";
|
|
4
|
+
export type PluginHostInitState = HostToPluginPayloads["init"];
|
|
5
|
+
export type PluginSessionEndReason = HostToPluginPayloads["sessionEnded"]["reason"];
|
|
6
|
+
export type PluginHostState = "waiting" | "connected" | "ended";
|
|
7
|
+
/** An `HTMLIFrameElement` satisfies this. */
|
|
8
|
+
export interface PluginHostFrame {
|
|
9
|
+
readonly contentWindow: PluginMessagePort | null;
|
|
10
|
+
}
|
|
11
|
+
export interface PluginHostOptions {
|
|
12
|
+
readonly frame: PluginHostFrame;
|
|
13
|
+
/** The exact origin messages are sent to and required from. Plugins share the portal's origin. */
|
|
14
|
+
readonly origin: string;
|
|
15
|
+
readonly listenOn: PluginMessageListenerTarget;
|
|
16
|
+
/** Read on every `ready`, so a reloaded frame starts from the host's current state. */
|
|
17
|
+
readonly initialState: () => PluginHostInitState;
|
|
18
|
+
/** The host's own renewal; `null` (or a throw, sync or async) means the session is over. */
|
|
19
|
+
readonly refreshSession: () => Promise<PluginSession | null>;
|
|
20
|
+
/** 0 disables. */
|
|
21
|
+
readonly handshakeTimeoutMs?: number;
|
|
22
|
+
readonly onReady?: (info: {
|
|
23
|
+
instanceId: string;
|
|
24
|
+
sdkVersion: string;
|
|
25
|
+
reconnect: boolean;
|
|
26
|
+
}) => void;
|
|
27
|
+
readonly onHandshakeTimeout?: () => void;
|
|
28
|
+
readonly onRequestAccessRefresh?: (reason: PluginToHostPayloads["requestAccessRefresh"]["reason"]) => void;
|
|
29
|
+
/** A frame speaking another protocol version; it is never initialised. */
|
|
30
|
+
readonly onIncompatible?: (info: {
|
|
31
|
+
version: unknown;
|
|
32
|
+
}) => void;
|
|
33
|
+
/** Fires for every `end`/`dispose`, connected or not; discriminate on `reason`. */
|
|
34
|
+
readonly onEnded?: (reason: PluginSessionEndReason) => void;
|
|
35
|
+
}
|
|
36
|
+
export interface PluginHost {
|
|
37
|
+
state(): PluginHostState;
|
|
38
|
+
instanceId(): string | null;
|
|
39
|
+
sendSession(session: PluginSession): void;
|
|
40
|
+
sendAccess(payload: HostToPluginPayloads["accessChanged"]): void;
|
|
41
|
+
sendTheme(theme: PluginTheme): void;
|
|
42
|
+
/** Tell the frame the session is over and stop listening. Terminal. */
|
|
43
|
+
end(reason: PluginSessionEndReason): void;
|
|
44
|
+
/** `end("unloaded")` unless already ended. Call from the host's own teardown. */
|
|
45
|
+
dispose(): void;
|
|
46
|
+
}
|
|
47
|
+
export declare function createPluginHost(options: PluginHostOptions): PluginHost;
|