diff --git a/package-lock.json b/package-lock.json index 06f504c19..a98ac49f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "@easyops-cn/docusaurus-search-local": "0.32.0", "@lottiefiles/react-lottie-player": "^3.4.7", "@mdx-js/react": "1.6.22", - "@openfga/sdk": "0.0.2", + "@openfga/sdk": "0.1.0", "@openfga/syntax-transformer": "^0.0.5", "assert-never": "1.2.1", "clsx": "1.2.1", @@ -25,7 +25,7 @@ "react-dom": "17.0.2", "react-feather": "2.0.10", "sanitize-html": "2.7.2", - "swagger-ui-react": "4.14.1" + "swagger-ui-react": "4.14.2" }, "devDependencies": { "@docusaurus/module-type-aliases": "2.1.0", @@ -34,15 +34,15 @@ "@types/react": "17.0.41", "@types/react-router-dom": "5.3.3", "@types/sanitize-html": "2.6.2", - "@typescript-eslint/eslint-plugin": "5.38.0", - "@typescript-eslint/parser": "5.38.0", + "@typescript-eslint/eslint-plugin": "5.39.0", + "@typescript-eslint/parser": "5.39.0", "docusaurus-plugin-module-alias": "0.0.2", "eslint": "8.24.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-react": "7.31.8", "husky": "8.0.1", "prettier": "2.7.1", - "typescript": "4.8.3" + "typescript": "4.8.4" } }, "node_modules/@algolia/autocomplete-core": { @@ -3207,9 +3207,9 @@ } }, "node_modules/@openfga/sdk": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@openfga/sdk/-/sdk-0.0.2.tgz", - "integrity": "sha512-DbOsFatIVxiwzMB0ZXNvRnp+SrhsqCfwxpf62R/avF7efHRlDskuLaj9BrfgEgJKKLVelOMPKykReZzD3EDTLQ==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@openfga/sdk/-/sdk-0.1.0.tgz", + "integrity": "sha512-570tI80PPLiMbUS1TgAE9ULQbeo/MdGSdNjEgsAUcBUfvcY8O8/ufWff1oe5jIq8G5g43FbyQjv5rSn6a8qMpQ==", "dependencies": { "axios": "^0.27.2" } @@ -3223,14 +3223,6 @@ "nearley": "^2.20.1" } }, - "node_modules/@openfga/syntax-transformer/node_modules/@openfga/sdk": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@openfga/sdk/-/sdk-0.1.0.tgz", - "integrity": "sha512-570tI80PPLiMbUS1TgAE9ULQbeo/MdGSdNjEgsAUcBUfvcY8O8/ufWff1oe5jIq8G5g43FbyQjv5rSn6a8qMpQ==", - "dependencies": { - "axios": "^0.27.2" - } - }, "node_modules/@polka/url": { "version": "1.0.0-next.21", "resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz", @@ -3824,14 +3816,14 @@ } }, "node_modules/@typescript-eslint/eslint-plugin": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.0.tgz", - "integrity": "sha512-GgHi/GNuUbTOeoJiEANi0oI6fF3gBQc3bGFYj40nnAPCbhrtEDf2rjBmefFadweBmO1Du1YovHeDP2h5JLhtTQ==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz", + "integrity": "sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.38.0", - "@typescript-eslint/type-utils": "5.38.0", - "@typescript-eslint/utils": "5.38.0", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/type-utils": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "ignore": "^5.2.0", "regexpp": "^3.2.0", @@ -3856,14 +3848,14 @@ } }, "node_modules/@typescript-eslint/parser": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.0.tgz", - "integrity": "sha512-/F63giJGLDr0ms1Cr8utDAxP2SPiglaD6V+pCOcG35P2jCqdfR7uuEhz1GIC3oy4hkUF8xA1XSXmd9hOh/a5EA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", + "integrity": "sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==", "dev": true, "dependencies": { - "@typescript-eslint/scope-manager": "5.38.0", - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/typescript-estree": "5.38.0", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "debug": "^4.3.4" }, "engines": { @@ -3883,13 +3875,13 @@ } }, "node_modules/@typescript-eslint/scope-manager": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.0.tgz", - "integrity": "sha512-ByhHIuNyKD9giwkkLqzezZ9y5bALW8VNY6xXcP+VxoH4JBDKjU5WNnsiD4HJdglHECdV+lyaxhvQjTUbRboiTA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz", + "integrity": "sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/visitor-keys": "5.38.0" + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0" }, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -3900,13 +3892,13 @@ } }, "node_modules/@typescript-eslint/type-utils": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.0.tgz", - "integrity": "sha512-iZq5USgybUcj/lfnbuelJ0j3K9dbs1I3RICAJY9NZZpDgBYXmuUlYQGzftpQA9wC8cKgtS6DASTvF3HrXwwozA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz", + "integrity": "sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA==", "dev": true, "dependencies": { - "@typescript-eslint/typescript-estree": "5.38.0", - "@typescript-eslint/utils": "5.38.0", + "@typescript-eslint/typescript-estree": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "tsutils": "^3.21.0" }, @@ -3927,9 +3919,9 @@ } }, "node_modules/@typescript-eslint/types": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.0.tgz", - "integrity": "sha512-HHu4yMjJ7i3Cb+8NUuRCdOGu2VMkfmKyIJsOr9PfkBVYLYrtMCK/Ap50Rpov+iKpxDTfnqvDbuPLgBE5FwUNfA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.39.0.tgz", + "integrity": "sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==", "dev": true, "engines": { "node": "^12.22.0 || ^14.17.0 || >=16.0.0" @@ -3940,13 +3932,13 @@ } }, "node_modules/@typescript-eslint/typescript-estree": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.0.tgz", - "integrity": "sha512-6P0RuphkR+UuV7Avv7MU3hFoWaGcrgOdi8eTe1NwhMp2/GjUJoODBTRWzlHpZh6lFOaPmSvgxGlROa0Sg5Zbyg==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz", + "integrity": "sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/visitor-keys": "5.38.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -3967,15 +3959,15 @@ } }, "node_modules/@typescript-eslint/utils": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.0.tgz", - "integrity": "sha512-6sdeYaBgk9Fh7N2unEXGz+D+som2QCQGPAf1SxrkEr+Z32gMreQ0rparXTNGRRfYUWk/JzbGdcM8NSSd6oqnTA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.39.0.tgz", + "integrity": "sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==", "dev": true, "dependencies": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.38.0", - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/typescript-estree": "5.38.0", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" }, @@ -3991,12 +3983,12 @@ } }, "node_modules/@typescript-eslint/visitor-keys": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.0.tgz", - "integrity": "sha512-MxnrdIyArnTi+XyFLR+kt/uNAcdOnmT+879os7qDRI+EYySR4crXJq9BXPfRzzLGq0wgxkwidrCJ9WCAoacm1w==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz", + "integrity": "sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==", "dev": true, "dependencies": { - "@typescript-eslint/types": "5.38.0", + "@typescript-eslint/types": "5.39.0", "eslint-visitor-keys": "^3.3.0" }, "engines": { @@ -13151,9 +13143,9 @@ } }, "node_modules/swagger-ui-react": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-4.14.1.tgz", - "integrity": "sha512-aKduDkf9gZUHmkT2jIXtyxIhsfj7oarQkXF+54OYa1wtzgtMujKj4z55GqGPnLlS1gIjxtn2aDPNI5+936jmxQ==", + "version": "4.14.2", + "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-4.14.2.tgz", + "integrity": "sha512-MFhlzbBIGvrLP9Ajr2fABQPmqOKcVQByRVvP3fiUcACOzS4hkVAFRJg076OHtJ5NxShLuIml07tj0P4tNcIYfw==", "dependencies": { "@babel/runtime-corejs3": "^7.18.9", "@braintree/sanitize-url": "=6.0.0", @@ -13445,9 +13437,9 @@ } }, "node_modules/typescript": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", - "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==", + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -16893,9 +16885,9 @@ } }, "@openfga/sdk": { - "version": "0.0.2", - "resolved": "https://registry.npmjs.org/@openfga/sdk/-/sdk-0.0.2.tgz", - "integrity": "sha512-DbOsFatIVxiwzMB0ZXNvRnp+SrhsqCfwxpf62R/avF7efHRlDskuLaj9BrfgEgJKKLVelOMPKykReZzD3EDTLQ==", + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/@openfga/sdk/-/sdk-0.1.0.tgz", + "integrity": "sha512-570tI80PPLiMbUS1TgAE9ULQbeo/MdGSdNjEgsAUcBUfvcY8O8/ufWff1oe5jIq8G5g43FbyQjv5rSn6a8qMpQ==", "requires": { "axios": "^0.27.2" } @@ -16907,16 +16899,6 @@ "requires": { "@openfga/sdk": "^0.1.0", "nearley": "^2.20.1" - }, - "dependencies": { - "@openfga/sdk": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@openfga/sdk/-/sdk-0.1.0.tgz", - "integrity": "sha512-570tI80PPLiMbUS1TgAE9ULQbeo/MdGSdNjEgsAUcBUfvcY8O8/ufWff1oe5jIq8G5g43FbyQjv5rSn6a8qMpQ==", - "requires": { - "axios": "^0.27.2" - } - } } }, "@polka/url": { @@ -17377,14 +17359,14 @@ } }, "@typescript-eslint/eslint-plugin": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.38.0.tgz", - "integrity": "sha512-GgHi/GNuUbTOeoJiEANi0oI6fF3gBQc3bGFYj40nnAPCbhrtEDf2rjBmefFadweBmO1Du1YovHeDP2h5JLhtTQ==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.39.0.tgz", + "integrity": "sha512-xVfKOkBm5iWMNGKQ2fwX5GVgBuHmZBO1tCRwXmY5oAIsPscfwm2UADDuNB8ZVYCtpQvJK4xpjrK7jEhcJ0zY9A==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.38.0", - "@typescript-eslint/type-utils": "5.38.0", - "@typescript-eslint/utils": "5.38.0", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/type-utils": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "ignore": "^5.2.0", "regexpp": "^3.2.0", @@ -17393,53 +17375,53 @@ } }, "@typescript-eslint/parser": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.38.0.tgz", - "integrity": "sha512-/F63giJGLDr0ms1Cr8utDAxP2SPiglaD6V+pCOcG35P2jCqdfR7uuEhz1GIC3oy4hkUF8xA1XSXmd9hOh/a5EA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.39.0.tgz", + "integrity": "sha512-PhxLjrZnHShe431sBAGHaNe6BDdxAASDySgsBCGxcBecVCi8NQWxQZMcizNA4g0pN51bBAn/FUfkWG3SDVcGlA==", "dev": true, "requires": { - "@typescript-eslint/scope-manager": "5.38.0", - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/typescript-estree": "5.38.0", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "debug": "^4.3.4" } }, "@typescript-eslint/scope-manager": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.38.0.tgz", - "integrity": "sha512-ByhHIuNyKD9giwkkLqzezZ9y5bALW8VNY6xXcP+VxoH4JBDKjU5WNnsiD4HJdglHECdV+lyaxhvQjTUbRboiTA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.39.0.tgz", + "integrity": "sha512-/I13vAqmG3dyqMVSZPjsbuNQlYS082Y7OMkwhCfLXYsmlI0ca4nkL7wJ/4gjX70LD4P8Hnw1JywUVVAwepURBw==", "dev": true, "requires": { - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/visitor-keys": "5.38.0" + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0" } }, "@typescript-eslint/type-utils": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.38.0.tgz", - "integrity": "sha512-iZq5USgybUcj/lfnbuelJ0j3K9dbs1I3RICAJY9NZZpDgBYXmuUlYQGzftpQA9wC8cKgtS6DASTvF3HrXwwozA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.39.0.tgz", + "integrity": "sha512-KJHJkOothljQWzR3t/GunL0TPKY+fGJtnpl+pX+sJ0YiKTz3q2Zr87SGTmFqsCMFrLt5E0+o+S6eQY0FAXj9uA==", "dev": true, "requires": { - "@typescript-eslint/typescript-estree": "5.38.0", - "@typescript-eslint/utils": "5.38.0", + "@typescript-eslint/typescript-estree": "5.39.0", + "@typescript-eslint/utils": "5.39.0", "debug": "^4.3.4", "tsutils": "^3.21.0" } }, "@typescript-eslint/types": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.38.0.tgz", - "integrity": "sha512-HHu4yMjJ7i3Cb+8NUuRCdOGu2VMkfmKyIJsOr9PfkBVYLYrtMCK/Ap50Rpov+iKpxDTfnqvDbuPLgBE5FwUNfA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.39.0.tgz", + "integrity": "sha512-gQMZrnfEBFXK38hYqt8Lkwt8f4U6yq+2H5VDSgP/qiTzC8Nw8JO3OuSUOQ2qW37S/dlwdkHDntkZM6SQhKyPhw==", "dev": true }, "@typescript-eslint/typescript-estree": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.38.0.tgz", - "integrity": "sha512-6P0RuphkR+UuV7Avv7MU3hFoWaGcrgOdi8eTe1NwhMp2/GjUJoODBTRWzlHpZh6lFOaPmSvgxGlROa0Sg5Zbyg==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.39.0.tgz", + "integrity": "sha512-qLFQP0f398sdnogJoLtd43pUgB18Q50QSA+BTE5h3sUxySzbWDpTSdgt4UyxNSozY/oDK2ta6HVAzvGgq8JYnA==", "dev": true, "requires": { - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/visitor-keys": "5.38.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/visitor-keys": "5.39.0", "debug": "^4.3.4", "globby": "^11.1.0", "is-glob": "^4.0.3", @@ -17448,26 +17430,26 @@ } }, "@typescript-eslint/utils": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.38.0.tgz", - "integrity": "sha512-6sdeYaBgk9Fh7N2unEXGz+D+som2QCQGPAf1SxrkEr+Z32gMreQ0rparXTNGRRfYUWk/JzbGdcM8NSSd6oqnTA==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.39.0.tgz", + "integrity": "sha512-+DnY5jkpOpgj+EBtYPyHRjXampJfC0yUZZzfzLuUWVZvCuKqSdJVC8UhdWipIw7VKNTfwfAPiOWzYkAwuIhiAg==", "dev": true, "requires": { "@types/json-schema": "^7.0.9", - "@typescript-eslint/scope-manager": "5.38.0", - "@typescript-eslint/types": "5.38.0", - "@typescript-eslint/typescript-estree": "5.38.0", + "@typescript-eslint/scope-manager": "5.39.0", + "@typescript-eslint/types": "5.39.0", + "@typescript-eslint/typescript-estree": "5.39.0", "eslint-scope": "^5.1.1", "eslint-utils": "^3.0.0" } }, "@typescript-eslint/visitor-keys": { - "version": "5.38.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.38.0.tgz", - "integrity": "sha512-MxnrdIyArnTi+XyFLR+kt/uNAcdOnmT+879os7qDRI+EYySR4crXJq9BXPfRzzLGq0wgxkwidrCJ9WCAoacm1w==", + "version": "5.39.0", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.39.0.tgz", + "integrity": "sha512-yyE3RPwOG+XJBLrhvsxAidUgybJVQ/hG8BhiJo0k8JSAYfk/CshVcxf0HwP4Jt7WZZ6vLmxdo1p6EyN3tzFTkg==", "dev": true, "requires": { - "@typescript-eslint/types": "5.38.0", + "@typescript-eslint/types": "5.39.0", "eslint-visitor-keys": "^3.3.0" } }, @@ -24100,9 +24082,9 @@ } }, "swagger-ui-react": { - "version": "4.14.1", - "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-4.14.1.tgz", - "integrity": "sha512-aKduDkf9gZUHmkT2jIXtyxIhsfj7oarQkXF+54OYa1wtzgtMujKj4z55GqGPnLlS1gIjxtn2aDPNI5+936jmxQ==", + "version": "4.14.2", + "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-4.14.2.tgz", + "integrity": "sha512-MFhlzbBIGvrLP9Ajr2fABQPmqOKcVQByRVvP3fiUcACOzS4hkVAFRJg076OHtJ5NxShLuIml07tj0P4tNcIYfw==", "requires": { "@babel/runtime-corejs3": "^7.18.9", "@braintree/sanitize-url": "=6.0.0", @@ -24318,9 +24300,9 @@ } }, "typescript": { - "version": "4.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.3.tgz", - "integrity": "sha512-goMHfm00nWPa8UvR/CPSvykqf6dVV8x/dp0c5mFTMTIu0u0FlGWRioyy7Nn0PGAdHxpJZnuO/ut+PpQ8UiHAig==" + "version": "4.8.4", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz", + "integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==" }, "ua-parser-js": { "version": "0.7.31", diff --git a/package.json b/package.json index 2cb940cc2..0ecfe562c 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "@easyops-cn/docusaurus-search-local": "0.32.0", "@lottiefiles/react-lottie-player": "^3.4.7", "@mdx-js/react": "1.6.22", - "@openfga/sdk": "0.0.2", + "@openfga/sdk": "0.1.0", "@openfga/syntax-transformer": "^0.0.5", "assert-never": "1.2.1", "clsx": "1.2.1", @@ -39,7 +39,7 @@ "react-dom": "17.0.2", "react-feather": "2.0.10", "sanitize-html": "2.7.2", - "swagger-ui-react": "4.14.1" + "swagger-ui-react": "4.14.2" }, "devDependencies": { "@docusaurus/module-type-aliases": "2.1.0", @@ -48,15 +48,15 @@ "@types/react": "17.0.41", "@types/react-router-dom": "5.3.3", "@types/sanitize-html": "2.6.2", - "@typescript-eslint/eslint-plugin": "5.38.0", - "@typescript-eslint/parser": "5.38.0", + "@typescript-eslint/eslint-plugin": "5.39.0", + "@typescript-eslint/parser": "5.39.0", "docusaurus-plugin-module-alias": "0.0.2", "eslint": "8.24.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-react": "7.31.8", "husky": "8.0.1", "prettier": "2.7.1", - "typescript": "4.8.3" + "typescript": "4.8.4" }, "overrides": { "trim": "0.0.3" diff --git a/src/components/Docs/AuthorizationModel/AuthzModelCodeBlock.tsx b/src/components/Docs/AuthorizationModel/AuthzModelCodeBlock.tsx index 4959ca321..8b9200458 100644 --- a/src/components/Docs/AuthorizationModel/AuthzModelCodeBlock.tsx +++ b/src/components/Docs/AuthorizationModel/AuthzModelCodeBlock.tsx @@ -1,10 +1,10 @@ import * as React from 'react'; import CodeBlock from '@theme/CodeBlock'; import { loadSyntax, SyntaxFormat } from './SyntaxTransformer'; -import { TypeDefinitions } from '@openfga/sdk'; +import { WriteAuthorizationModelRequest } from '@openfga/sdk'; type AuthzModelCodeBlockProps = { - configuration: TypeDefinitions; + configuration: WriteAuthorizationModelRequest; syntaxFormat: SyntaxFormat; }; diff --git a/src/components/Docs/AuthorizationModel/AuthzModelSnippetViewer.tsx b/src/components/Docs/AuthorizationModel/AuthzModelSnippetViewer.tsx index 17fe4e1e2..1dffb30aa 100644 --- a/src/components/Docs/AuthorizationModel/AuthzModelSnippetViewer.tsx +++ b/src/components/Docs/AuthorizationModel/AuthzModelSnippetViewer.tsx @@ -1,6 +1,6 @@ import React from 'react'; -import { TypeDefinitions } from '@openfga/sdk'; +import { WriteAuthorizationModelRequest } from '@openfga/sdk'; import Link from '@docusaurus/Link'; import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; @@ -11,7 +11,7 @@ import { AuthzModelCodeBlock } from './AuthzModelCodeBlock'; type AuthzModelSnippetViewerProps = { // Authorization Model in api syntax - configuration: TypeDefinitions; + configuration: WriteAuthorizationModelRequest; // optional description description?: string; onlyShow?: SyntaxFormat; diff --git a/src/components/Docs/AuthorizationModel/SyntaxTransformer.ts b/src/components/Docs/AuthorizationModel/SyntaxTransformer.ts index 28fb90a97..467c3e3ea 100644 --- a/src/components/Docs/AuthorizationModel/SyntaxTransformer.ts +++ b/src/components/Docs/AuthorizationModel/SyntaxTransformer.ts @@ -1,7 +1,6 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ -import _ from 'lodash'; -import { TypeDefinitions } from '@openfga/sdk'; +import { WriteAuthorizationModelRequest } from '@openfga/sdk'; import { apiSyntaxToFriendlySyntax } from '@openfga/syntax-transformer'; export enum SyntaxFormat { @@ -9,7 +8,7 @@ export enum SyntaxFormat { Friendly2 = 'friendly_v2', } -export const loadSyntax = (configuration: TypeDefinitions, format: SyntaxFormat = SyntaxFormat.Api) => { +export const loadSyntax = (configuration: WriteAuthorizationModelRequest, format: SyntaxFormat = SyntaxFormat.Api) => { switch (format) { case SyntaxFormat.Friendly2: return apiSyntaxToFriendlySyntax(configuration);