Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

fern

Max Deichmann934e933bdbda
diff --git a/fern/api/definition/api.yml b/fern/api/definition/api.yml
index 8a08696550..d6566b3a11 100644
--- a/fern/api/definition/api.yml
+++ b/fern/api/definition/api.yml
@@ -1,3 +1,12 @@
name: langfuse
error-discrimination:
strategy: status-code
+environments:
+ production: https://www.yoursite.com
+ staging:
+ docs: This staging environment is helpful for testing!
+ url: https://www.staging.yoursite.com
+ local:
+ docs: This local environment is helpful for testing locally!
+ url: http://localhost:3001
+default-environment: local
diff --git a/fern/api/definition/trace.yml b/fern/api/definition/trace.yml
index d9a17c133b..d6fbb82431 100644
--- a/fern/api/definition/trace.yml
+++ b/fern/api/definition/trace.yml
@@ -2,12 +2,12 @@
service:
auth: false
- base-path: /traces
+ base-path: /api
endpoints:
create:
docs: Add a trace to the database
method: POST
- path: /create
+ path: /traces
request: CreateTraceRequest
response: Trace
diff --git a/fern/api/generators.yml b/fern/api/generators.yml
index 7f3dd5f1e9..be18a202f9 100644
--- a/fern/api/generators.yml
+++ b/fern/api/generators.yml
@@ -5,8 +5,9 @@ groups:
- name: fernapi/fern-typescript-sdk
version: 0.5.25
output:
- location: local-file-system
- path: ../../generated/typescript
+ location: npm
+ url: npm.buildwithfern.com
+ package-name: "@finto-fern/api-client"
- name: fernapi/fern-python-sdk
version: 0.1.0
output:
diff --git a/fern/fern.config.json b/fern/fern.config.json
index 41e89ec791..871a1517f5 100644
--- a/fern/fern.config.json
+++ b/fern/fern.config.json
@@ -1,4 +1,4 @@
{
"organization": "finto",
- "version": "0.9.0"
-}
+ "version": "0.9.1"
+}
\ No newline at end of file
diff --git a/generated/openapi/openapi.yml b/generated/openapi/openapi.yml
index 403331c6e7..7323bc8919 100644
--- a/generated/openapi/openapi.yml
+++ b/generated/openapi/openapi.yml
@@ -3,7 +3,7 @@ info:
title: langfuse
version: ''
paths:
- /traces/create:
+ /api/traces:
post:
description: Add a trace to the database
operationId: trace_create
@@ -67,3 +67,10 @@ components:
- attributes
- status
securitySchemes: {}
+servers:
+ - url: https://www.yoursite.com
+ description: production
+ - url: https://www.staging.yoursite.com
+ description: staging (This staging environment is helpful for testing!)
+ - url: http://localhost:3001
+ description: local (This local environment is helpful for testing locally!)
diff --git a/generated/python/client.py b/generated/python/client.py
index 041c15ea46..02ff16889c 100644
--- a/generated/python/client.py
+++ b/generated/python/client.py
@@ -2,11 +2,12 @@
from backports.cached_property import cached_property
+from .environment import FintoLangfuseEnvironment
from .resources.trace.client import TraceClient
class FintoLangfuse:
- def __init__(self, *, environment: str):
+ def __init__(self, *, environment: FintoLangfuseEnvironment):
self._environment = environment
@cached_property
diff --git a/generated/python/environment.py b/generated/python/environment.py
new file mode 100644
index 0000000000..f3ea2659bb
--- /dev/null
+++ b/generated/python/environment.py
@@ -0,0 +1,2 @@
+# This file was auto-generated by Fern from our API Definition.
+
diff --git a/generated/python/resources/trace/client.py b/generated/python/resources/trace/client.py
index 4e497267cc..3a45634c1d 100644
--- a/generated/python/resources/trace/client.py
+++ b/generated/python/resources/trace/client.py
@@ -8,17 +8,18 @@ import pydantic
from ...core.api_error import ApiError
from ...core.jsonable_encoder import jsonable_encoder
+from ...environment import FintoLangfuseEnvironment
from .types.create_trace_request import CreateTraceRequest
from .types.trace import Trace
class TraceClient:
- def __init__(self, *, environment: str):
+ def __init__(self, *, environment: FintoLangfuseEnvironment):
self._environment = environment
def create(self, *, request: CreateTraceRequest) -> Trace:
_response = httpx.request(
- "POST", urllib.parse.urljoin(f"{self._environment}/", "traces/create"), json=jsonable_encoder(request)
+ "POST", urllib.parse.urljoin(f"{self._environment}/", "api/traces"), json=jsonable_encoder(request)
)
if 200 <= _response.status_code < 300:
return pydantic.parse_obj_as(Trace, _response.json()) # type: ignore
diff --git a/package-lock.json b/package-lock.json
index 2b5b29ff86..def0b0c770 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -14,52 +14,54 @@
"@headlessui/react": "^1.7.14",
"@heroicons/react": "^2.0.18",
"@mui/material": "^5.13.1",
- "@mui/x-data-grid": "^6.4.0",
- "@next-auth/prisma-adapter": "^1.0.5",
+ "@mui/x-data-grid": "^6.5.0",
+ "@next-auth/prisma-adapter": "^1.0.6",
"@openapitools/openapi-generator-cli": "^2.6.0",
- "@prisma/client": "^4.11.0",
+ "@prisma/client": "^4.14.1",
"@radix-ui/react-collapsible": "^1.0.2",
"@radix-ui/react-slot": "^1.0.1",
- "@t3-oss/env-nextjs": "^0.2.1",
+ "@t3-oss/env-nextjs": "^0.3.1",
"@tailwindcss/forms": "^0.5.3",
- "@tanstack/react-query": "^4.28.0",
- "@trpc/client": "^10.18.0",
- "@trpc/next": "^10.18.0",
- "@trpc/react-query": "^10.18.0",
- "@trpc/server": "^10.18.0",
+ "@tanstack/react-query": "^4.29.7",
+ "@trpc/client": "^10.27.1",
+ "@trpc/next": "^10.27.1",
+ "@trpc/react-query": "^10.27.1",
+ "@trpc/server": "^10.27.1",
+ "@types/cors": "^2.8.13",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
+ "cors": "^2.8.5",
"lucide-react": "^0.220.0",
- "next": "^13.4.1",
- "next-auth": "^4.21.0",
+ "next": "^13.4.3",
+ "next-auth": "^4.22.1",
"next-swagger-doc": "^0.3.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.8.0",
- "superjson": "1.12.2",
+ "superjson": "1.12.3",
"swagger-ui-react": "^4.18.3",
"tailwind-merge": "^1.12.0",
"tailwindcss-animate": "^1.0.5",
"zod": "^3.21.4"
},
"devDependencies": {
- "@types/eslint": "^8.21.3",
- "@types/node": "^18.16.13",
+ "@types/eslint": "^8.37.0",
+ "@types/node": "^20.2.3",
"@types/prettier": "^2.7.2",
"@types/react": "^18.2.6",
- "@types/react-dom": "^18.0.11",
+ "@types/react-dom": "^18.2.4",
"@types/swagger-ui-react": "^4.18.0",
- "@typescript-eslint/eslint-plugin": "^5.56.0",
- "@typescript-eslint/parser": "^5.56.0",
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
+ "@typescript-eslint/parser": "^5.59.6",
"autoprefixer": "^10.4.14",
- "eslint": "^8.36.0",
- "eslint-config-next": "^13.4.1",
- "postcss": "^8.4.21",
- "prettier": "^2.8.6",
- "prettier-plugin-tailwindcss": "^0.2.6",
- "prisma": "^4.11.0",
+ "eslint": "^8.41.0",
+ "eslint-config-next": "^13.4.3",
+ "postcss": "^8.4.23",
+ "prettier": "^2.8.8",
+ "prettier-plugin-tailwindcss": "^0.3.0",
+ "prisma": "^4.14.1",
"swagger-jsdoc": "^6.2.8",
- "tailwindcss": "^3.3.0",
+ "tailwindcss": "^3.3.2",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
}
@@ -475,9 +477,9 @@
}
},
"node_modules/@eslint/js": {
- "version": "8.40.0",
- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.40.0.tgz",
- "integrity": "sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==",
+ "version": "8.41.0",
+ "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.41.0.tgz",
+ "integrity": "sha512-LxcyMGxwmTh2lY9FwHPGWOHmYFCZvbrFCBZL4FzSSsxsRPuhrYUg/49/0KDfW8tnIEaEHtfmn6+NPN+1DqaNmA==",
"dev": true,
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -632,11 +634,6 @@
}
}
},
- "node_modules/@mui/base/node_modules/react-is": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
- "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
- },
"node_modules/@mui/core-downloads-tracker": {
"version": "5.13.1",
"resolved": "https://registry.npmjs.org/@mui/core-downloads-tracker/-/core-downloads-tracker-5.13.1.tgz",
@@ -690,11 +687,6 @@
}
}
},
- "node_modules/@mui/material/node_modules/react-is": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
- "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
- },
"node_modules/@mui/private-theming": {
"version": "5.13.1",
"resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.13.1.tgz",
@@ -826,15 +818,10 @@
"react": "^17.0.0 || ^18.0.0"
}
},
- "node_modules/@mui/utils/node_modules/react-is": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
- "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
- },
"node_modules/@mui/x-data-grid": {
- "version": "6.4.0",
- "resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-6.4.0.tgz",
- "integrity": "sha512-rFpjJh4ZTJW3JnjmTsn5B32PMMJtjxTdRZyjn3Re5K/BA/iJQvN1qHO26qoqbo4Vt3b3dbRLThM/Q0N59PL2Fw==",
+ "version": "6.5.0",
+ "resolved": "https://registry.npmjs.org/@mui/x-data-grid/-/x-data-grid-6.5.0.tgz",
+ "integrity": "sha512-S90o+hwUvm0XC/tCyqSMpL3fGzYSF3P1FfybZPCe3ayVQVV/aR0LQUbfUEHlHUv49qUJ+y9c/QsElrr7BsYrNw==",
"dependencies": {
"@babel/runtime": "^7.21.0",
"@mui/utils": "^5.12.3",
@@ -919,23 +906,43 @@
}
},
"node_modules/@next/env": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/env/-/env-13.4.2.tgz",
- "integrity": "sha512-Wqvo7lDeS0KGwtwg9TT9wKQ8raelmUxt+TQKWvG/xKfcmDXNOtCuaszcfCF8JzlBG1q0VhpI6CKaRMbVPMDWgw=="
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/env/-/env-13.4.3.tgz",
+ "integrity": "sha512-pa1ErjyFensznttAk3EIv77vFbfSYT6cLzVRK5jx4uiRuCQo+m2wCFAREaHKIy63dlgvOyMlzh6R8Inu8H3KrQ=="
},
"node_modules/@next/eslint-plugin-next": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.4.2.tgz",
- "integrity": "sha512-ZeFWgrxwckxTpYM+ANeUL9E7LOGPbZKmI94LJIjbDU69iEIgqd4WD0l2pVbOJMr/+vgoZmJ9Dx1m0WJ7WScXHA==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/eslint-plugin-next/-/eslint-plugin-next-13.4.3.tgz",
+ "integrity": "sha512-5B0uOnh7wyUY9vNNdIA6NUvWozhrZaTMZOzdirYAefqD0ZBK5C/h3+KMYdCKrR7JrXGvVpWnHtv54b3dCzwICA==",
"dev": true,
"dependencies": {
"glob": "7.1.7"
}
},
+ "node_modules/@next/eslint-plugin-next/node_modules/glob": {
+ "version": "7.1.7",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz",
+ "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
+ "dev": true,
+ "dependencies": {
+ "fs.realpath": "^1.0.0",
+ "inflight": "^1.0.4",
+ "inherits": "2",
+ "minimatch": "^3.0.4",
+ "once": "^1.3.0",
+ "path-is-absolute": "^1.0.0"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/@next/swc-darwin-arm64": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.2.tgz",
- "integrity": "sha512-6BBlqGu3ewgJflv9iLCwO1v1hqlecaIH2AotpKfVUEzUxuuDNJQZ2a4KLb4MBl8T9/vca1YuWhSqtbF6ZuUJJw==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.3.tgz",
+ "integrity": "sha512-yx18udH/ZmR4Bw4M6lIIPE3JxsAZwo04iaucEfA2GMt1unXr2iodHUX/LAKNyi6xoLP2ghi0E+Xi1f4Qb8f1LQ==",
"cpu": [
"arm64"
],
@@ -948,9 +955,9 @@
}
},
"node_modules/@next/swc-darwin-x64": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.2.tgz",
- "integrity": "sha512-iZuYr7ZvGLPjPmfhhMl0ISm+z8EiyLBC1bLyFwGBxkWmPXqdJ60mzuTaDSr5WezDwv0fz32HB7JHmRC6JVHSZg==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-darwin-x64/-/swc-darwin-x64-13.4.3.tgz",
+ "integrity": "sha512-Mi8xJWh2IOjryAM1mx18vwmal9eokJ2njY4nDh04scy37F0LEGJ/diL6JL6kTXi0UfUCGbMsOItf7vpReNiD2A==",
"cpu": [
"x64"
],
@@ -963,9 +970,9 @@
}
},
"node_modules/@next/swc-linux-arm64-gnu": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.2.tgz",
- "integrity": "sha512-2xVabFtIge6BJTcJrW8YuUnYTuQjh4jEuRuS2mscyNVOj6zUZkom3CQg+egKOoS+zh2rrro66ffSKIS+ztFJTg==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-gnu/-/swc-linux-arm64-gnu-13.4.3.tgz",
+ "integrity": "sha512-aBvtry4bxJ1xwKZ/LVPeBGBwWVwxa4bTnNkRRw6YffJnn/f4Tv4EGDPaVeYHZGQVA56wsGbtA6nZMuWs/EIk4Q==",
"cpu": [
"arm64"
],
@@ -978,9 +985,9 @@
}
},
"node_modules/@next/swc-linux-arm64-musl": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.2.tgz",
- "integrity": "sha512-wKRCQ27xCUJx5d6IivfjYGq8oVngqIhlhSAJntgXLt7Uo9sRT/3EppMHqUZRfyuNBTbykEre1s5166z+pvRB5A==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-arm64-musl/-/swc-linux-arm64-musl-13.4.3.tgz",
+ "integrity": "sha512-krT+2G3kEsEUvZoYte3/2IscscDraYPc2B+fDJFipPktJmrv088Pei/RjrhWm5TMIy5URYjZUoDZdh5k940Dyw==",
"cpu": [
"arm64"
],
@@ -993,9 +1000,9 @@
}
},
"node_modules/@next/swc-linux-x64-gnu": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.2.tgz",
- "integrity": "sha512-NpCa+UVhhuNeaFVUP1Bftm0uqtvLWq2JTm7+Ta48+2Uqj2mNXrDIvyn1DY/ZEfmW/1yvGBRaUAv9zkMkMRixQA==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-gnu/-/swc-linux-x64-gnu-13.4.3.tgz",
+ "integrity": "sha512-AMdFX6EKJjC0G/CM6hJvkY8wUjCcbdj3Qg7uAQJ7PVejRWaVt0sDTMavbRfgMchx8h8KsAudUCtdFkG9hlEClw==",
"cpu": [
"x64"
],
@@ -1008,9 +1015,9 @@
}
},
"node_modules/@next/swc-linux-x64-musl": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.2.tgz",
- "integrity": "sha512-ZWVC72x0lW4aj44e3khvBrj2oSYj1bD0jESmyah3zG/3DplEy/FOtYkMzbMjHTdDSheso7zH8GIlW6CDQnKhmQ==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-linux-x64-musl/-/swc-linux-x64-musl-13.4.3.tgz",
+ "integrity": "sha512-jySgSXE48shaLtcQbiFO9ajE9mqz7pcAVLnVLvRIlUHyQYR/WyZdK8ehLs65Mz6j9cLrJM+YdmdJPyV4WDaz2g==",
"cpu": [
"x64"
],
@@ -1023,9 +1030,9 @@
}
},
"node_modules/@next/swc-win32-arm64-msvc": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.2.tgz",
- "integrity": "sha512-pLT+OWYpzJig5K4VKhLttlIfBcVZfr2+Xbjra0Tjs83NQSkFS+y7xx+YhCwvpEmXYLIvaggj2ONPyjbiigOvHQ==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-arm64-msvc/-/swc-win32-arm64-msvc-13.4.3.tgz",
+ "integrity": "sha512-5DxHo8uYcaADiE9pHrg8o28VMt/1kR8voDehmfs9AqS0qSClxAAl+CchjdboUvbCjdNWL1MISCvEfKY2InJ3JA==",
"cpu": [
"arm64"
],
@@ -1038,9 +1045,9 @@
}
},
"node_modules/@next/swc-win32-ia32-msvc": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.2.tgz",
- "integrity": "sha512-dhpiksQCyGca4WY0fJyzK3FxMDFoqMb0Cn+uDB+9GYjpU2K5//UGPQlCwiK4JHxuhg8oLMag5Nf3/IPSJNG8jw==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-ia32-msvc/-/swc-win32-ia32-msvc-13.4.3.tgz",
+ "integrity": "sha512-LaqkF3d+GXRA5X6zrUjQUrXm2MN/3E2arXBtn5C7avBCNYfm9G3Xc646AmmmpN3DJZVaMYliMyCIQCMDEzk80w==",
"cpu": [
"ia32"
],
@@ -1053,9 +1060,9 @@
}
},
"node_modules/@next/swc-win32-x64-msvc": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.2.tgz",
- "integrity": "sha512-O7bort1Vld00cu8g0jHZq3cbSTUNMohOEvYqsqE10+yfohhdPHzvzO+ziJRz4Dyyr/fYKREwS7gR4JC0soSOMw==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/@next/swc-win32-x64-msvc/-/swc-win32-x64-msvc-13.4.3.tgz",
+ "integrity": "sha512-jglUk/x7ZWeOJWlVoKyIAkHLTI+qEkOriOOV+3hr1GyiywzcqfI7TpFSiwC7kk1scOiH7NTFKp8mA3XPNO9bDw==",
"cpu": [
"x64"
],
@@ -1229,38 +1236,6 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.0.tgz",
"integrity": "sha512-336iVw3rtn2BUK7ORdIAHTyxHGRIHVReokCR3XjbckJMK7ms8FysBfhLR8IXnAgy7T0PTPNBWKiH514FOW/WSg=="
},
- "node_modules/@openapitools/openapi-generator-cli/node_modules/commander": {
- "version": "8.3.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
- "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
- "engines": {
- "node": ">= 12"
- }
- },
- "node_modules/@openapitools/openapi-generator-cli/node_modules/glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
- "node_modules/@openapitools/openapi-generator-cli/node_modules/tslib": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz",
- "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ=="
- },
"node_modules/@panva/hkdf": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/@panva/hkdf/-/hkdf-1.1.1.tgz",
@@ -1289,6 +1264,30 @@
"url": "https://opencollective.com/unts"
}
},
+ "node_modules/@pkgr/utils/node_modules/open": {
+ "version": "9.1.0",
+ "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz",
+ "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==",
+ "dev": true,
+ "dependencies": {
+ "default-browser": "^4.0.0",
+ "define-lazy-prop": "^3.0.0",
+ "is-inside-container": "^1.0.0",
+ "is-wsl": "^2.2.0"
+ },
+ "engines": {
+ "node": ">=14.16"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/@pkgr/utils/node_modules/tslib": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
+ "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==",
+ "dev": true
+ },
"node_modules/@popperjs/core": {
"version": "2.11.7",
"resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.7.tgz",
@@ -1466,9 +1465,9 @@
}
},
"node_modules/@rushstack/eslint-patch": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.2.0.tgz",
- "integrity": "sha512-sXo/qW2/pAcmT43VoRKOJbDOfV3cYpq3szSVfIThQXNt+E4DfKj361vaAt3c88U5tPUxzEswam7GW48PJqtKAg==",
+ "version": "1.3.0",
+ "resolved": "https://registry.npmjs.org/@rushstack/eslint-patch/-/eslint-patch-1.3.0.tgz",
+ "integrity": "sha512-IthPJsJR85GhOkp3Hvp8zFOPK5ynKn6STyHa/WZpioK7E1aYDiBzpqQPrngc14DszIUkIrdd3k9Iu0XSzlP/1w==",
"dev": true
},
"node_modules/@swagger-api/apidom-ast": {
@@ -1840,22 +1839,29 @@
"tslib": "^2.4.0"
}
},
+ "node_modules/@swc/helpers/node_modules/tslib": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
+ "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA=="
+ },
"node_modules/@t3-oss/env-core": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/@t3-oss/env-core/-/env-core-0.2.2.tgz",
- "integrity": "sha512-Jiuph14/L3L9EDaU0O0YiLeaKUcWA9c3mWYuKem8+L64i3Iwz+IbKdl5Jp4cx+JbOsS/aptwGZplnxSHhm2gMQ==",
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@t3-oss/env-core/-/env-core-0.3.1.tgz",
+ "integrity": "sha512-iEnBuWeSjzqQLDTUw7H+YhstV4OZrGXTkQGL6ZOMxZQoCmwGX7GVS+1KCd5RvCzOtrIAD9jeOItSWNjC7sG4Sg==",
"peerDependencies": {
+ "typescript": ">=4.7.2",
"zod": "^3.0.0"
}
},
"node_modules/@t3-oss/env-nextjs": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/@t3-oss/env-nextjs/-/env-nextjs-0.2.2.tgz",
- "integrity": "sha512-9LnVpTkf/8WkggyVN6Liz9Ma9a7fLzV00b5BngWj3HI3iWDfddsWaqCf/H0f46Bgu29NubP3Bwajf1JieVrxFA==",
+ "version": "0.3.1",
+ "resolved": "https://registry.npmjs.org/@t3-oss/env-nextjs/-/env-nextjs-0.3.1.tgz",
+ "integrity": "sha512-W1OgOn5xtpdEGraAQesyLzO2aNLRfSJEyK6qjQFfEUnrPbkvB+WxABX2bPMqfn4KJQ8pziLCSdBFiUN8OagqAg==",
"dependencies": {
- "@t3-oss/env-core": "0.2.2"
+ "@t3-oss/env-core": "0.3.1"
},
"peerDependencies": {
+ "typescript": ">=4.7.2",
"zod": "^3.0.0"
}
},
@@ -1906,46 +1912,46 @@
}
},
"node_modules/@trpc/client": {
- "version": "10.26.0",
- "resolved": "https://registry.npmjs.org/@trpc/client/-/client-10.26.0.tgz",
- "integrity": "sha512-ojHxQFIE97rBEGPK8p1ijbzo0T1IdEBoJ9fFSgWWL9FMuEEA/DNQ9s0uuiOrDKhCCdTFT1unfRharoJhB2/O2w==",
+ "version": "10.27.1",
+ "resolved": "https://registry.npmjs.org/@trpc/client/-/client-10.27.1.tgz",
+ "integrity": "sha512-e9Syj6F41OHDSUg3JvT67fgoD22UbxPzYgp9Bno13NFpyeJc6vkXRlAgDc8ZuouqUPQuouJWll/I90CsuxEqvA==",
"peerDependencies": {
- "@trpc/server": "10.26.0"
+ "@trpc/server": "10.27.1"
}
},
"node_modules/@trpc/next": {
- "version": "10.26.0",
- "resolved": "https://registry.npmjs.org/@trpc/next/-/next-10.26.0.tgz",
- "integrity": "sha512-p328crXBH6C228LKxjqbpDEXdLmy4+LdgsZuYK3oFMqaJEmCT22b+zcQ9IvQrcPfDxhKOpJym0QpuDNaWpG2qg==",
+ "version": "10.27.1",
+ "resolved": "https://registry.npmjs.org/@trpc/next/-/next-10.27.1.tgz",
+ "integrity": "sha512-3aMGjhJXiJOj/tjqkyMot3x/nbxbHeEcCWjgYiCHmiXVk9h9liIG73f2is8jWEPs3o/eJ+eNwNSzkfhrhIWq2g==",
"dependencies": {
"react-ssr-prepass": "^1.5.0"
},
"peerDependencies": {
"@tanstack/react-query": "^4.18.0",
- "@trpc/client": "10.26.0",
- "@trpc/react-query": "10.26.0",
- "@trpc/server": "10.26.0",
+ "@trpc/client": "10.27.1",
+ "@trpc/react-query": "10.27.1",
+ "@trpc/server": "10.27.1",
"next": "*",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
}
},
"node_modules/@trpc/react-query": {
- "version": "10.26.0",
- "resolved": "https://registry.npmjs.org/@trpc/react-query/-/react-query-10.26.0.tgz",
- "integrity": "sha512-n+enpalaCZhd3A/mbZmXeydRZHsAJo7mzc2ncgHn5S+C3SrfOM897uQdbHdj02Li25ULxzP1O92w+vZzmFbgkA==",
+ "version": "10.27.1",
+ "resolved": "https://registry.npmjs.org/@trpc/react-query/-/react-query-10.27.1.tgz",
+ "integrity": "sha512-6Q6B5cGKvxnmy/B5VsOjOG4sBl19VJJrGloFp93jc3Hq3+EfniOssdoA81VLI3fInif8ns0Z4jgWUIpq8741cA==",
"peerDependencies": {
"@tanstack/react-query": "^4.18.0",
- "@trpc/client": "10.26.0",
- "@trpc/server": "10.26.0",
+ "@trpc/client": "10.27.1",
+ "@trpc/server": "10.27.1",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
}
},
"node_modules/@trpc/server": {
- "version": "10.26.0",
- "resolved": "https://registry.npmjs.org/@trpc/server/-/server-10.26.0.tgz",
- "integrity": "sha512-+Wt0NFAeflVSNiUnHIDNN3C8jP7XIRmYrcgJ6IsAnm0lK4p/FkpCpeu1aig5qxrgZx30PHNDLZ/3FttVSEW2aQ=="
+ "version": "10.27.1",
+ "resolved": "https://registry.npmjs.org/@trpc/server/-/server-10.27.1.tgz",
+ "integrity": "sha512-oMTNpei0+CAet0BuDdBE9cup0SseJAOlWRhWhcTAU05rETsJnzCA5DfNkf+aP3XiAM8rMJfrTfC0Z3aeADhHaA=="
},
"node_modules/@tsconfig/node10": {
"version": "1.0.9",
@@ -1971,6 +1977,14 @@
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
"devOptional": true
},
+ "node_modules/@types/cors": {
+ "version": "2.8.13",
+ "resolved": "https://registry.npmjs.org/@types/cors/-/cors-2.8.13.tgz",
+ "integrity": "sha512-RG8AStHlUiV5ysZQKq97copd2UmVYw3/pRMLefISZ3S1hK104Cwm7iLQ3fTKx+lsUH2CE8FlLaYeEA2LSeqYUA==",
+ "dependencies": {
+ "@types/node": "*"
+ }
+ },
"node_modules/@types/eslint": {
"version": "8.37.0",
"resolved": "https://registry.npmjs.org/@types/eslint/-/eslint-8.37.0.tgz",
@@ -2016,10 +2030,9 @@
"dev": true
},
"node_modules/@types/node": {
- "version": "18.16.13",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-18.16.13.tgz",
- "integrity": "sha512-uZRomboV1vBL61EBXneL4j9/hEn+1Yqa4LQdpGrKmXFyJmVfWc9JV9+yb2AlnOnuaDnb2PDO3hC6/LKmzJxP1A==",
- "devOptional": true
+ "version": "20.2.3",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.3.tgz",
+ "integrity": "sha512-pg9d0yC4rVNWQzX8U7xb4olIOFuuVL9za3bzMT2pu2SU0SNEi66i2qrvhE2qt0HvkhuCaWJu7pLNOt/Pj8BIrw=="
},
"node_modules/@types/parse-json": {
"version": "4.0.0",
@@ -2601,6 +2614,11 @@
"tslib": "^2.3.0"
}
},
+ "node_modules/autolinker/node_modules/tslib": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
+ "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA=="
+ },
"node_modules/autoprefixer": {
"version": "10.4.14",
"resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.14.tgz",
@@ -2881,9 +2899,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001488",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001488.tgz",
- "integrity": "sha512-NORIQuuL4xGpIy6iCCQGN4iFjlBXtfKWIenlUuyZJumLRIindLb7wXM+GO8erEhb7vXfcnf4BAg2PrSDN5TNLQ==",
+ "version": "1.0.30001489",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001489.tgz",
+ "integrity": "sha512-x1mgZEXK8jHIfAxm+xgdpHpk50IN3z3q3zP261/WS+uvePxW8izXuCu6AHz0lkuYTlATDehiZ/tNyYBdSQsOUQ==",
"funding": [
{
"type": "opencollective",
@@ -3137,11 +3155,11 @@
}
},
"node_modules/commander": {
- "version": "4.1.1",
- "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
- "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
+ "version": "8.3.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-8.3.0.tgz",
+ "integrity": "sha512-OkTL9umf+He2DZkUq8f8J9of7yL6RJKI24dVITBmNfZBmri9zYZQrKkuXiKhyfPSu8tUhnVBB1iKXevvnlR4Ww==",
"engines": {
- "node": ">= 6"
+ "node": ">= 12"
}
},
"node_modules/compare-versions": {
@@ -3278,6 +3296,18 @@
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
"optional": true
},
+ "node_modules/cors": {
+ "version": "2.8.5",
+ "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
+ "integrity": "sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g==",
+ "dependencies": {
+ "object-assign": "^4",
+ "vary": "^1"
+ },
+ "engines": {
+ "node": ">= 0.10"
+ }
+ },
"node_modules/cosmiconfig": {
"version": "7.1.0",
"resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-7.1.0.tgz",
@@ -3293,14 +3323,6 @@
"node": ">=10"
}
},
- "node_modules/cosmiconfig/node_modules/yaml": {
- "version": "1.10.2",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
- "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
- "engines": {
- "node": ">= 6"
- }
- },
"node_modules/create-require": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
@@ -3623,9 +3645,9 @@
}
},
"node_modules/electron-to-chromium": {
- "version": "1.4.400",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.400.tgz",
- "integrity": "sha512-Lsvf7cvwbIxCfB8VqbnVtEsjGi3+48ejDiQZfWo5gkT+1vQ2DHQI5pl0nUvPD6z1IQk6JgFeMC5ZQJqVhalEHg==",
+ "version": "1.4.402",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.402.tgz",
+ "integrity": "sha512-gWYvJSkohOiBE6ecVYXkrDgNaUjo47QEKK0kQzmWyhkH+yoYiG44bwuicTGNSIQRG3WDMsWVZJLRnJnLNkbWvA==",
"dev": true
},
"node_modules/emoji-regex": {
@@ -3792,15 +3814,15 @@
}
},
"node_modules/eslint": {
- "version": "8.40.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.40.0.tgz",
- "integrity": "sha512-bvR+TsP9EHL3TqNtj9sCNJVAFK3fBN8Q7g5waghxyRsPLIMwL73XSKnZFK0hk/O2ANC+iAoq6PWMQ+IfBAJIiQ==",
+ "version": "8.41.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.41.0.tgz",
+ "integrity": "sha512-WQDQpzGBOP5IrXPo4Hc0814r4/v2rrIsB0rhT7jtunIalgg6gYXWhRMOejVO8yH21T/FGaxjmFjBMNqcIlmH1Q==",
"dev": true,
"dependencies": {
"@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.4.0",
"@eslint/eslintrc": "^2.0.3",
- "@eslint/js": "8.40.0",
+ "@eslint/js": "8.41.0",
"@humanwhocodes/config-array": "^0.11.8",
"@humanwhocodes/module-importer": "^1.0.1",
"@nodelib/fs.walk": "^1.2.8",
@@ -3820,13 +3842,12 @@
"find-up": "^5.0.0",
"glob-parent": "^6.0.2",
"globals": "^13.19.0",
- "grapheme-splitter": "^1.0.4",
+ "graphemer": "^1.4.0",
"ignore": "^5.2.0",
"import-fresh": "^3.0.0",
"imurmurhash": "^0.1.4",
"is-glob": "^4.0.0",
"is-path-inside": "^3.0.3",
- "js-sdsl": "^4.1.4",
"js-yaml": "^4.1.0",
"json-stable-stringify-without-jsonify": "^1.0.1",
"levn": "^0.4.1",
@@ -3849,12 +3870,12 @@
}
},
"node_modules/eslint-config-next": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.4.2.tgz",
- "integrity": "sha512-zjLJ9B9bbeWSo5q+iHfdt8gVYyT+y2BpWDfjR6XMBtFRSMKRGjllDKxnuKBV1q2Y/QpwLM2PXHJTMRyblCmRAg==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/eslint-config-next/-/eslint-config-next-13.4.3.tgz",
+ "integrity": "sha512-1lXwdFi29fKxzeugof/TUE7lpHyJQt5+U4LaUHyvQfHjvsWO77vFNicJv5sX6k0VDVSbnfz0lw+avxI+CinbMg==",
"dev": true,
"dependencies": {
- "@next/eslint-plugin-next": "13.4.2",
+ "@next/eslint-plugin-next": "13.4.3",
"@rushstack/eslint-patch": "^1.1.3",
"@typescript-eslint/parser": "^5.42.0",
"eslint-import-resolver-node": "^0.3.6",
@@ -4285,6 +4306,33 @@
"url": "https://github.com/sindresorhus/execa?sponsor=1"
}
},
+ "node_modules/execa/node_modules/mimic-fn": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
+ "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",
+ "dev": true,
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
+ "node_modules/execa/node_modules/onetime": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",
+ "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",
+ "dev": true,
+ "dependencies": {
+ "mimic-fn": "^4.0.0"
+ },
+ "engines": {
+ "node": ">=12"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/expand-template": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz",
@@ -4751,9 +4799,9 @@
"optional": true
},
"node_modules/glob": {
- "version": "7.1.7",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.7.tgz",
- "integrity": "sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ==",
+ "version": "7.1.6",
+ "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
+ "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
"dependencies": {
"fs.realpath": "^1.0.0",
"inflight": "^1.0.4",
@@ -4853,6 +4901,12 @@
"integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
"dev": true
},
+ "node_modules/graphemer": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
+ "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
+ "dev": true
+ },
"node_modules/has": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
@@ -4977,6 +5031,11 @@
"react-is": "^16.7.0"
}
},
+ "node_modules/hoist-non-react-statics/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
+ },
"node_modules/human-signals": {
"version": "4.3.1",
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz",
@@ -5279,15 +5338,14 @@
}
},
"node_modules/is-docker": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
- "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
- "dev": true,
+ "version": "2.2.1",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
+ "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
"bin": {
"is-docker": "cli.js"
},
"engines": {
- "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ "node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
@@ -5347,6 +5405,21 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/is-inside-container/node_modules/is-docker": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz",
+ "integrity": "sha512-eljcgEDlEns/7AXFosB5K/2nCM4P7FQPkGc/DWLy5rmFEWvZayGrik1d9/QIY5nJ4f9YsVvBkA6kJpHn9rISdQ==",
+ "dev": true,
+ "bin": {
+ "is-docker": "cli.js"
+ },
+ "engines": {
+ "node": "^12.20.0 || ^14.13.1 || >=16.0.0"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/sindresorhus"
+ }
+ },
"node_modules/is-interactive": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz",
@@ -5560,9 +5633,9 @@
}
},
"node_modules/is-what": {
- "version": "4.1.9",
- "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.9.tgz",
- "integrity": "sha512-I3FU0rkVvwhgLLEs6iITwZ/JaLXe7tQcHyzupXky8jigt1vu4KM0UOqDr963j36JRvJ835EATVIm6MnGz/i1/g==",
+ "version": "4.1.10",
+ "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.10.tgz",
+ "integrity": "sha512-JBy26nXqBUwzTfgj6T5Y/UgXSmRd+03FTq5v3P+N1cOmOtI1hz7dBn+ZfqM7c86qqWTNBEH98h3pkpmI6USnQA==",
"engines": {
"node": ">=12.13"
},
@@ -5581,20 +5654,6 @@
"node": ">=8"
}
},
- "node_modules/is-wsl/node_modules/is-docker": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
- "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
- "bin": {
- "is-docker": "cli.js"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/isarray": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/isarray/-/isarray-2.0.5.tgz",
@@ -5634,16 +5693,6 @@
"resolved": "https://registry.npmjs.org/js-file-download/-/js-file-download-0.4.12.tgz",
"integrity": "sha512-rML+NkoD08p5Dllpjo0ffy4jRHeY6Zsapvr/W86N7E0yuzAO6qa5X9+xog6zQNlH102J7IXljNY2FtS6Lj3ucg=="
},
- "node_modules/js-sdsl": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.4.0.tgz",
- "integrity": "sha512-FfVSdx6pJ41Oa+CF7RDaFmTnCaFhua+SNYQX74riGOpl96x+2jQCqEfQ2bnXu/5DPCqlRuiqyvTJM0Qjz26IVg==",
- "dev": true,
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/js-sdsl"
- }
- },
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@@ -5918,15 +5967,11 @@
}
},
"node_modules/mimic-fn": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-4.0.0.tgz",
- "integrity": "sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw==",
- "dev": true,
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
+ "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
"engines": {
- "node": ">=12"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
+ "node": ">=6"
}
},
"node_modules/mimic-response": {
@@ -6048,11 +6093,11 @@
"dev": true
},
"node_modules/next": {
- "version": "13.4.2",
- "resolved": "https://registry.npmjs.org/next/-/next-13.4.2.tgz",
- "integrity": "sha512-aNFqLs3a3nTGvLWlO9SUhCuMUHVPSFQC0+tDNGAsDXqx+WJDFSbvc233gOJ5H19SBc7nw36A9LwQepOJ2u/8Kg==",
+ "version": "13.4.3",
+ "resolved": "https://registry.npmjs.org/next/-/next-13.4.3.tgz",
+ "integrity": "sha512-FV3pBrAAnAIfOclTvncw9dDohyeuEEXPe5KNcva91anT/rdycWbgtu3IjUj4n5yHnWK8YEPo0vrUecHmnmUNbA==",
"dependencies": {
- "@next/env": "13.4.2",
+ "@next/env": "13.4.3",
"@swc/helpers": "0.5.1",
"busboy": "1.6.0",
"caniuse-lite": "^1.0.30001406",
@@ -6067,15 +6112,15 @@
"node": ">=16.8.0"
},
"optionalDependencies": {
- "@next/swc-darwin-arm64": "13.4.2",
- "@next/swc-darwin-x64": "13.4.2",
- "@next/swc-linux-arm64-gnu": "13.4.2",
- "@next/swc-linux-arm64-musl": "13.4.2",
- "@next/swc-linux-x64-gnu": "13.4.2",
- "@next/swc-linux-x64-musl": "13.4.2",
- "@next/swc-win32-arm64-msvc": "13.4.2",
- "@next/swc-win32-ia32-msvc": "13.4.2",
- "@next/swc-win32-x64-msvc": "13.4.2"
+ "@next/swc-darwin-arm64": "13.4.3",
+ "@next/swc-darwin-x64": "13.4.3",
+ "@next/swc-linux-arm64-gnu": "13.4.3",
+ "@next/swc-linux-arm64-musl": "13.4.3",
+ "@next/swc-linux-x64-gnu": "13.4.3",
+ "@next/swc-linux-x64-musl": "13.4.3",
+ "@next/swc-win32-arm64-msvc": "13.4.3",
+ "@next/swc-win32-ia32-msvc": "13.4.3",
+ "@next/swc-win32-x64-msvc": "13.4.3"
},
"peerDependencies": {
"@opentelemetry/api": "^1.1.0",
@@ -6170,25 +6215,6 @@
"node": ">= 6"
}
},
- "node_modules/next-swagger-doc/node_modules/glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
"node_modules/next-swagger-doc/node_modules/swagger-jsdoc": {
"version": "6.2.5",
"resolved": "https://registry.npmjs.org/swagger-jsdoc/-/swagger-jsdoc-6.2.5.tgz",
@@ -6336,9 +6362,9 @@
}
},
"node_modules/node-releases": {
- "version": "2.0.10",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.10.tgz",
- "integrity": "sha512-5GFldHPXVG/YZmFzJvKK2zDSzPKhEp0+ZR5SVaoSag9fsL5YgHbUHDfnG5494ISANDcK4KwPXAx2xqVEydmd7w==",
+ "version": "2.0.11",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.11.tgz",
+ "integrity": "sha512-+M0PwXeU80kRohZ3aT4J/OnR+l9/KD2nVLNNoRgFtnf+umQVFdGBAO2N8+nCnEi0xlh/Wk3zOGC+vNNx+uM79Q==",
"dev": true
},
"node_modules/normalize-path": {
@@ -6556,42 +6582,38 @@
}
},
"node_modules/onetime": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-6.0.0.tgz",
- "integrity": "sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ==",
- "dev": true,
+ "version": "5.1.2",
+ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
+ "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
"dependencies": {
- "mimic-fn": "^4.0.0"
+ "mimic-fn": "^2.1.0"
},
"engines": {
- "node": ">=12"
+ "node": ">=6"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/open": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/open/-/open-9.1.0.tgz",
- "integrity": "sha512-OS+QTnw1/4vrf+9hh1jc1jnYjzSG4ttTBB8UxOwAnInG3Uo4ssetzC1ihqaIHjLJnA5GGlRl6QlZXOTQhRBUvg==",
- "dev": true,
+ "version": "7.4.2",
+ "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz",
+ "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==",
"dependencies": {
- "default-browser": "^4.0.0",
- "define-lazy-prop": "^3.0.0",
- "is-inside-container": "^1.0.0",
- "is-wsl": "^2.2.0"
+ "is-docker": "^2.0.0",
+ "is-wsl": "^2.1.1"
},
"engines": {
- "node": ">=14.16"
+ "node": ">=8"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
}
},
"node_modules/openapi-types": {
- "version": "12.1.0",
- "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.0.tgz",
- "integrity": "sha512-XpeCy01X6L5EpP+6Hc3jWN7rMZJ+/k1lwki/kTmWzbVhdPie3jd5O2ZtedEx8Yp58icJ0osVldLMrTB/zslQXA==",
+ "version": "12.1.1",
+ "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.1.tgz",
+ "integrity": "sha512-m/DJaEqOUDSU8KoI74E6A3TokccuDOJ81ewZ6kLFwUT1KEIE0GDWvErtnJJDU4sySx8JKF5kk2GzHUuK6f+VHA==",
"peer": true
},
"node_modules/openid-client": {
@@ -6787,35 +6809,6 @@
"node": ">=10"
}
},
- "node_modules/patch-package/node_modules/is-docker": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-2.2.1.tgz",
- "integrity": "sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==",
- "bin": {
- "is-docker": "cli.js"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/patch-package/node_modules/open": {
- "version": "7.4.2",
- "resolved": "https://registry.npmjs.org/open/-/open-7.4.2.tgz",
- "integrity": "sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q==",
- "dependencies": {
- "is-docker": "^2.0.0",
- "is-wsl": "^2.1.1"
- },
- "engines": {
- "node": ">=8"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/patch-package/node_modules/path-key": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
@@ -6881,14 +6874,6 @@
"which": "bin/which"
}
},
- "node_modules/patch-package/node_modules/yaml": {
- "version": "1.10.2",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
- "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
- "engines": {
- "node": ">= 6"
- }
- },
"node_modules/path-exists": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
@@ -7054,6 +7039,14 @@
}
}
},
+ "node_modules/postcss-load-config/node_modules/yaml": {
+ "version": "2.2.2",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz",
+ "integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==",
+ "engines": {
+ "node": ">= 14"
+ }
+ },
"node_modules/postcss-nested": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.0.1.tgz",
@@ -7090,9 +7083,9 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/preact": {
- "version": "10.14.1",
- "resolved": "https://registry.npmjs.org/preact/-/preact-10.14.1.tgz",
- "integrity": "sha512-4XDSnUisk3YFBb3p9WeKeH1mKoxdFUsaXcvxs9wlpYR1wax/TWJVqhwmIWbByX0h7jMEJH6Zc5J6jqc58FKaNQ==",
+ "version": "10.15.0",
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.15.0.tgz",
+ "integrity": "sha512-nZSa8M2R2m1n7nJSBlzDpxRJaIsejrTO1vlFbdpFvyC8qM1iU+On2y0otfoUm6SRB5o0lF0CKDFxg6grEFU0iQ==",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/preact"
@@ -7161,9 +7154,9 @@
}
},
"node_modules/prettier-plugin-tailwindcss": {
- "version": "0.2.8",
- "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.2.8.tgz",
- "integrity": "sha512-KgPcEnJeIijlMjsA6WwYgRs5rh3/q76oInqtMXBA/EMcamrcYJpyhtRhyX1ayT9hnHlHTuO8sIifHF10WuSDKg==",
+ "version": "0.3.0",
+ "resolved": "https://registry.npmjs.org/prettier-plugin-tailwindcss/-/prettier-plugin-tailwindcss-0.3.0.tgz",
+ "integrity": "sha512-009/Xqdy7UmkcTBpwlq7jsViDqXAYSOMLDrHAdTMlVZOrKfM2o9Ci7EMWTMZ7SkKBFTG04UM9F9iM2+4i6boDA==",
"dev": true,
"engines": {
"node": ">=12.17.0"
@@ -7179,6 +7172,7 @@
"prettier-plugin-css-order": "*",
"prettier-plugin-import-sort": "*",
"prettier-plugin-jsdoc": "*",
+ "prettier-plugin-marko": "*",
"prettier-plugin-organize-attributes": "*",
"prettier-plugin-organize-imports": "*",
"prettier-plugin-style-order": "*",
@@ -7213,6 +7207,9 @@
"prettier-plugin-jsdoc": {
"optional": true
},
+ "prettier-plugin-marko": {
+ "optional": true
+ },
"prettier-plugin-organize-attributes": {
"optional": true
},
@@ -7284,6 +7281,11 @@
"react-is": "^16.13.1"
}
},
+ "node_modules/prop-types/node_modules/react-is": {
+ "version": "16.13.1",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
+ "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
+ },
"node_modules/property-information": {
"version": "5.6.0",
"resolved": "https://registry.npmjs.org/property-information/-/property-information-5.6.0.tgz",
@@ -7520,9 +7522,9 @@
}
},
"node_modules/react-is": {
- "version": "16.13.1",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz",
- "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ=="
+ "version": "18.2.0",
+ "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
+ "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
},
"node_modules/react-redux": {
"version": "8.0.5",
@@ -7562,11 +7564,6 @@
}
}
},
- "node_modules/react-redux/node_modules/react-is": {
- "version": "18.2.0",
- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.2.0.tgz",
- "integrity": "sha512-xWGDIW6x921xtzPkhiULtthJHoJvBbF3q26fzloPCK0hsvxtPVelvftw3zjbHWSkR2km9Z+4uxbDDK/6Zw9B8w=="
- },
"node_modules/react-ssr-prepass": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/react-ssr-prepass/-/react-ssr-prepass-1.5.0.tgz",
@@ -7787,28 +7784,6 @@
"node": ">=8"
}
},
- "node_modules/restore-cursor/node_modules/mimic-fn": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/restore-cursor/node_modules/onetime": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
- "dependencies": {
- "mimic-fn": "^2.1.0"
- },
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/ret": {
"version": "0.2.2",
"resolved": "https://registry.npmjs.org/ret/-/ret-0.2.2.tgz",
@@ -7900,15 +7875,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/run-applescript/node_modules/mimic-fn": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
- "dev": true,
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/run-applescript/node_modules/npm-run-path": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
@@ -7921,21 +7887,6 @@
"node": ">=8"
}
},
- "node_modules/run-applescript/node_modules/onetime": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
- "dev": true,
- "dependencies": {
- "mimic-fn": "^2.1.0"
- },
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
"node_modules/run-applescript/node_modules/strip-final-newline": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
@@ -7983,6 +7934,11 @@
"tslib": "^2.1.0"
}
},
+ "node_modules/rxjs/node_modules/tslib": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
+ "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA=="
+ },
"node_modules/safe-buffer": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
@@ -8406,29 +8362,18 @@
"node": ">=8"
}
},
- "node_modules/sucrase/node_modules/glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
+ "node_modules/sucrase/node_modules/commander": {
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",
+ "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",
"engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
+ "node": ">= 6"
}
},
"node_modules/superjson": {
- "version": "1.12.2",
- "resolved": "https://registry.npmjs.org/superjson/-/superjson-1.12.2.tgz",
- "integrity": "sha512-ugvUo9/WmvWOjstornQhsN/sR9mnGtWGYeTxFuqLb4AiT4QdUavjGFRALCPKWWnAiUJ4HTpytj5e0t5HoMRkXg==",
+ "version": "1.12.3",
+ "resolved": "https://registry.npmjs.org/superjson/-/superjson-1.12.3.tgz",
+ "integrity": "sha512-0j+U70KUtP8+roVPbwfqkyQI7lBt7ETnuA7KXbTDX3mCKiD/4fXs2ldKSMdt0MCfpTwiMxo20yFU3vu6ewETpQ==",
"dependencies": {
"copy-anything": "^3.0.2"
},
@@ -8511,26 +8456,6 @@
"node": ">= 6"
}
},
- "node_modules/swagger-jsdoc/node_modules/glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
- "dev": true,
- "dependencies": {
- "fs.realpath": "^1.0.0",
- "inflight": "^1.0.4",
- "inherits": "2",
- "minimatch": "^3.0.4",
- "once": "^1.3.0",
- "path-is-absolute": "^1.0.0"
- },
- "engines": {
- "node": "*"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
"node_modules/swagger-jsdoc/node_modules/yaml": {
"version": "2.0.0-1",
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.0.0-1.tgz",
@@ -8613,6 +8538,12 @@
"url": "https://opencollective.com/unts"
}
},
+ "node_modules/synckit/node_modules/tslib": {
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
+ "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA==",
+ "dev": true
+ },
"node_modules/tailwind-merge": {
"version": "1.12.0",
"resolved": "https://registry.npmjs.org/tailwind-merge/-/tailwind-merge-1.12.0.tgz",
@@ -8921,9 +8852,9 @@
}
},
"node_modules/tslib": {
- "version": "2.5.1",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.1.tgz",
- "integrity": "sha512-KaI6gPil5m9vF7DKaoXxx1ia9fxS4qG5YveErRRVknPDXXriu5M8h48YRjB6h5ZUOKuAKlSJYb0GaDe8I39fRw=="
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.0.3.tgz",
+ "integrity": "sha512-uZtkfKblCEQtZKBF6EBXVZeQNl82yqtDQdv+eck8u7tdPxjLu2/lp5/uPW+um2tpuxINHWy3GhiccY7QgEaVHQ=="
},
"node_modules/tsutils": {
"version": "3.21.0",
@@ -9015,7 +8946,6 @@
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
"integrity": "sha512-cW9T5W9xY37cc+jfEnaUvX91foxtHkza3Nw3wkoF4sSlKn0MONdkdEndig/qPBWXNkmplh3NzayQzCiHM4/hqw==",
- "devOptional": true,
"bin": {
"tsc": "bin/tsc",
"tsserver": "bin/tsserver"
@@ -9169,6 +9099,14 @@
"node": ">= 0.10"
}
},
+ "node_modules/vary": {
+ "version": "1.1.2",
+ "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
+ "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==",
+ "engines": {
+ "node": ">= 0.8"
+ }
+ },
"node_modules/wcwidth": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz",
@@ -9345,11 +9283,11 @@
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
},
"node_modules/yaml": {
- "version": "2.2.2",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.2.2.tgz",
- "integrity": "sha512-CBKFWExMn46Foo4cldiChEzn7S7SRV+wqiluAb6xmueD/fGyRHIhX8m14vVGgeFWjN540nKCNVj6P21eQjgTuA==",
+ "version": "1.10.2",
+ "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.10.2.tgz",
+ "integrity": "sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg==",
"engines": {
- "node": ">= 14"
+ "node": ">= 6"
}
},
"node_modules/yargs": {
diff --git a/package.json b/package.json
index de200f0707..8b37d5e1df 100644
--- a/package.json
+++ b/package.json
@@ -18,52 +18,54 @@
"@headlessui/react": "^1.7.14",
"@heroicons/react": "^2.0.18",
"@mui/material": "^5.13.1",
- "@mui/x-data-grid": "^6.4.0",
- "@next-auth/prisma-adapter": "^1.0.5",
+ "@mui/x-data-grid": "^6.5.0",
+ "@next-auth/prisma-adapter": "^1.0.6",
"@openapitools/openapi-generator-cli": "^2.6.0",
- "@prisma/client": "^4.11.0",
+ "@prisma/client": "^4.14.1",
"@radix-ui/react-collapsible": "^1.0.2",
"@radix-ui/react-slot": "^1.0.1",
- "@t3-oss/env-nextjs": "^0.2.1",
+ "@t3-oss/env-nextjs": "^0.3.1",
"@tailwindcss/forms": "^0.5.3",
- "@tanstack/react-query": "^4.28.0",
- "@trpc/client": "^10.18.0",
- "@trpc/next": "^10.18.0",
- "@trpc/react-query": "^10.18.0",
- "@trpc/server": "^10.18.0",
+ "@tanstack/react-query": "^4.29.7",
+ "@trpc/client": "^10.27.1",
+ "@trpc/next": "^10.27.1",
+ "@trpc/react-query": "^10.27.1",
+ "@trpc/server": "^10.27.1",
+ "@types/cors": "^2.8.13",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
+ "cors": "^2.8.5",
"lucide-react": "^0.220.0",
- "next": "^13.4.1",
- "next-auth": "^4.21.0",
+ "next": "^13.4.3",
+ "next-auth": "^4.22.1",
"next-swagger-doc": "^0.3.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-icons": "^4.8.0",
- "superjson": "1.12.2",
+ "superjson": "1.12.3",
"swagger-ui-react": "^4.18.3",
"tailwind-merge": "^1.12.0",
"tailwindcss-animate": "^1.0.5",
"zod": "^3.21.4"
},
"devDependencies": {
- "@types/eslint": "^8.21.3",
- "@types/node": "^18.16.13",
+ "@types/eslint": "^8.37.0",
+ "@types/node": "^20.2.3",
"@types/prettier": "^2.7.2",
"@types/react": "^18.2.6",
- "@types/react-dom": "^18.0.11",
+ "@types/react-dom": "^18.2.4",
"@types/swagger-ui-react": "^4.18.0",
- "@typescript-eslint/eslint-plugin": "^5.56.0",
- "@typescript-eslint/parser": "^5.56.0",
+ "@typescript-eslint/eslint-plugin": "^5.59.6",
+ "@typescript-eslint/parser": "^5.59.6",
"autoprefixer": "^10.4.14",
- "eslint": "^8.36.0",
- "eslint-config-next": "^13.4.1",
- "postcss": "^8.4.21",
- "prettier": "^2.8.6",
- "prettier-plugin-tailwindcss": "^0.2.6",
- "prisma": "^4.11.0",
+ "eslint": "^8.41.0",
+ "eslint-config-next": "^13.4.3",
+ "postcss": "^8.4.23",
+ "prettier": "^2.8.8",
+ "prettier-plugin-tailwindcss": "^0.3.0",
+ "prisma": "^4.14.1",
"swagger-jsdoc": "^6.2.8",
- "tailwindcss": "^3.3.0",
+ "tailwindcss": "^3.3.2",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
diff --git a/sdk/python/.openapi-generator/FILES b/sdk/python/.openapi-generator/FILES
index bf25a06ea2..57f10c12df 100644
--- a/sdk/python/.openapi-generator/FILES
+++ b/sdk/python/.openapi-generator/FILES
@@ -2,12 +2,10 @@
.gitlab-ci.yml
.travis.yml
README.md
-docs/apis/tags/DefaultApi.md
git_push.sh
openapi_client/__init__.py
openapi_client/api_client.py
openapi_client/apis/__init__.py
-openapi_client/apis/tags/default_api.py
openapi_client/configuration.py
openapi_client/exceptions.py
openapi_client/model/__init__.py
diff --git a/sdk/python/README.md b/sdk/python/README.md
index 820408534b..9622ddbb30 100644
--- a/sdk/python/README.md
+++ b/sdk/python/README.md
@@ -140,34 +140,6 @@ Please follow the [installation procedure](#installation--usage) and then run th
import time
import openapi_client
from pprint import pprint
-from openapi_client.apis.tags import default_api
-# Defining the host is optional and defaults to http://localhost
-# See configuration.py for a list of all supported configuration parameters.
-configuration = openapi_client.Configuration(
- host = "http://localhost"
-)
-
-
-# Enter a context with an instance of the API client
-with openapi_client.ApiClient(configuration) as api_client:
- # Create an instance of the API class
- api_instance = default_api.DefaultApi(api_client)
- any_type = dict(
- trace_id="trace_id_example",
- type="span",
- name="name_example",
- start_time="1970-01-01T00:00:00.00Z",
- end_time="1970-01-01T00:00:00.00Z",
- attributes=dict(),
- parent_observation_id="parent_observation_id_example",
- ) # anyType |
-
- try:
- # Creates a new observation
- api_response = api_instance.api_observations_post(any_type)
- pprint(api_response)
- except openapi_client.ApiException as e:
- print("Exception when calling DefaultApi->api_observations_post: %s\n" % e)
```
## Documentation for API Endpoints
@@ -176,7 +148,6 @@ All URIs are relative to *http://localhost*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*DefaultApi* | [**api_observations_post**](docs/apis/tags/DefaultApi.md#api_observations_post) | **post** /api/observations | Creates a new observation
## Documentation For Models
@@ -189,7 +160,6 @@ Class | Method | HTTP request | Description
## Author
-
## Notes for Large OpenAPI documents
If the OpenAPI document is large, imports in openapi_client.apis and openapi_client.models may fail with a
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
diff --git a/sdk/typescript/.openapi-generator/FILES b/sdk/typescript/.openapi-generator/FILES
index 2347f6d7b8..85ff746534 100644
--- a/sdk/typescript/.openapi-generator/FILES
+++ b/sdk/typescript/.openapi-generator/FILES
@@ -1,7 +1,5 @@
.gitignore
-DefaultApi.md
README.md
-apis/DefaultApi.ts
apis/baseapi.ts
apis/exception.ts
auth/auth.ts
@@ -11,10 +9,6 @@ http/http.ts
http/isomorphic-fetch.ts
index.ts
middleware.ts
-models/ApiObservationsPost201Response.ts
-models/ApiObservationsPost201ResponseObservation.ts
-models/ApiObservationsPost400Response.ts
-models/ApiObservationsPostRequest.ts
models/ObjectSerializer.ts
models/all.ts
package.json
diff --git a/sdk/typescript/index.ts b/sdk/typescript/index.ts
index 89069bd118..791121d1c8 100644
--- a/sdk/typescript/index.ts
+++ b/sdk/typescript/index.ts
@@ -8,5 +8,5 @@ export * from "./servers";
export { RequiredError } from "./apis/baseapi";
export { PromiseMiddleware as Middleware } from './middleware';
-export { PromiseDefaultApi as DefaultApi } from './types/PromiseAPI';
+export { } from './types/PromiseAPI';
diff --git a/sdk/typescript/models/ObjectSerializer.ts b/sdk/typescript/models/ObjectSerializer.ts
index e009e017a5..98793dbb7c 100644
--- a/sdk/typescript/models/ObjectSerializer.ts
+++ b/sdk/typescript/models/ObjectSerializer.ts
@@ -1,12 +1,4 @@
-export * from '../models/ApiObservationsPost201Response';
-export * from '../models/ApiObservationsPost201ResponseObservation';
-export * from '../models/ApiObservationsPost400Response';
-export * from '../models/ApiObservationsPostRequest';
-import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';
-import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';
-import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';
-import { ApiObservationsPostRequest , ApiObservationsPostRequestTypeEnum } from '../models/ApiObservationsPostRequest';
/* tslint:disable:no-unused-variable */
let primitives = [
@@ -28,14 +20,9 @@ const supportedMediaTypes: { [mediaType: string]: number } = {
let enumsMap: Set<string> = new Set<string>([
- "ApiObservationsPostRequestTypeEnum",
]);
let typeMap: {[index: string]: any} = {
- "ApiObservationsPost201Response": ApiObservationsPost201Response,
- "ApiObservationsPost201ResponseObservation": ApiObservationsPost201ResponseObservation,
- "ApiObservationsPost400Response": ApiObservationsPost400Response,
- "ApiObservationsPostRequest": ApiObservationsPostRequest,
}
export class ObjectSerializer {
diff --git a/sdk/typescript/models/all.ts b/sdk/typescript/models/all.ts
index 50801d6b5f..e69de29bb2 100644
--- a/sdk/typescript/models/all.ts
+++ b/sdk/typescript/models/all.ts
@@ -1,4 +0,0 @@
-export * from '../models/ApiObservationsPost201Response'
-export * from '../models/ApiObservationsPost201ResponseObservation'
-export * from '../models/ApiObservationsPost400Response'
-export * from '../models/ApiObservationsPostRequest'
diff --git a/sdk/typescript/types/ObjectParamAPI.ts b/sdk/typescript/types/ObjectParamAPI.ts
index 36f6b43fc6..6d62fd2cc3 100644
--- a/sdk/typescript/types/ObjectParamAPI.ts
+++ b/sdk/typescript/types/ObjectParamAPI.ts
@@ -1,36 +1,3 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration'
-import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';
-import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';
-import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';
-import { ApiObservationsPostRequest } from '../models/ApiObservationsPostRequest';
-
-import { ObservableDefaultApi } from "./ObservableAPI";
-import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
-
-export interface DefaultApiApiObservationsPostRequest {
- /**
- *
- * @type ApiObservationsPostRequest
- * @memberof DefaultApiapiObservationsPost
- */
- apiObservationsPostRequest: ApiObservationsPostRequest
-}
-
-export class ObjectDefaultApi {
- private api: ObservableDefaultApi
-
- public constructor(configuration: Configuration, requestFactory?: DefaultApiRequestFactory, responseProcessor?: DefaultApiResponseProcessor) {
- this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor);
- }
-
- /**
- * Creates a new observation
- * @param param the request object
- */
- public apiObservationsPost(param: DefaultApiApiObservationsPostRequest, options?: Configuration): Promise<ApiObservationsPost201Response> {
- return this.api.apiObservationsPost(param.apiObservationsPostRequest, options).toPromise();
- }
-
-}
diff --git a/sdk/typescript/types/ObservableAPI.ts b/sdk/typescript/types/ObservableAPI.ts
index 3f08f4ef97..a0f3b9c1da 100644
--- a/sdk/typescript/types/ObservableAPI.ts
+++ b/sdk/typescript/types/ObservableAPI.ts
@@ -2,48 +2,3 @@ import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration'
import { Observable, of, from } from '../rxjsStub';
import {mergeMap, map} from '../rxjsStub';
-import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';
-import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';
-import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';
-import { ApiObservationsPostRequest } from '../models/ApiObservationsPostRequest';
-
-import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
-export class ObservableDefaultApi {
- private requestFactory: DefaultApiRequestFactory;
- private responseProcessor: DefaultApiResponseProcessor;
- private configuration: Configuration;
-
- public constructor(
- configuration: Configuration,
- requestFactory?: DefaultApiRequestFactory,
- responseProcessor?: DefaultApiResponseProcessor
- ) {
- this.configuration = configuration;
- this.requestFactory = requestFactory || new DefaultApiRequestFactory(configuration);
- this.responseProcessor = responseProcessor || new DefaultApiResponseProcessor();
- }
-
- /**
- * Creates a new observation
- * @param apiObservationsPostRequest
- */
- public apiObservationsPost(apiObservationsPostRequest: ApiObservationsPostRequest, _options?: Configuration): Observable<ApiObservationsPost201Response> {
- const requestContextPromise = this.requestFactory.apiObservationsPost(apiObservationsPostRequest, _options);
-
- // build promise chain
- let middlewarePreObservable = from<RequestContext>(requestContextPromise);
- for (let middleware of this.configuration.middleware) {
- middlewarePreObservable = middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => middleware.pre(ctx)));
- }
-
- return middlewarePreObservable.pipe(mergeMap((ctx: RequestContext) => this.configuration.httpApi.send(ctx))).
- pipe(mergeMap((response: ResponseContext) => {
- let middlewarePostObservable = of(response);
- for (let middleware of this.configuration.middleware) {
- middlewarePostObservable = middlewarePostObservable.pipe(mergeMap((rsp: ResponseContext) => middleware.post(rsp)));
- }
- return middlewarePostObservable.pipe(map((rsp: ResponseContext) => this.responseProcessor.apiObservationsPost(rsp)));
- }));
- }
-
-}
diff --git a/sdk/typescript/types/PromiseAPI.ts b/sdk/typescript/types/PromiseAPI.ts
index 06a5e4970f..6d62fd2cc3 100644
--- a/sdk/typescript/types/PromiseAPI.ts
+++ b/sdk/typescript/types/PromiseAPI.ts
@@ -1,35 +1,3 @@
import { ResponseContext, RequestContext, HttpFile } from '../http/http';
import { Configuration} from '../configuration'
-import { ApiObservationsPost201Response } from '../models/ApiObservationsPost201Response';
-import { ApiObservationsPost201ResponseObservation } from '../models/ApiObservationsPost201ResponseObservation';
-import { ApiObservationsPost400Response } from '../models/ApiObservationsPost400Response';
-import { ApiObservationsPostRequest } from '../models/ApiObservationsPostRequest';
-import { ObservableDefaultApi } from './ObservableAPI';
-
-import { DefaultApiRequestFactory, DefaultApiResponseProcessor} from "../apis/DefaultApi";
-export class PromiseDefaultApi {
- private api: ObservableDefaultApi
-
- public constructor(
- configuration: Configuration,
- requestFactory?: DefaultApiRequestFactory,
- responseProcessor?: DefaultApiResponseProcessor
- ) {
- this.api = new ObservableDefaultApi(configuration, requestFactory, responseProcessor);
- }
-
- /**
- * Creates a new observation
- * @param apiObservationsPostRequest
- */
- public apiObservationsPost(apiObservationsPostRequest: ApiObservationsPostRequest, _options?: Configuration): Promise<ApiObservationsPost201Response> {
- const result = this.api.apiObservationsPost(apiObservationsPostRequest, _options);
- return result.toPromise();
- }
-
-
-}
-
-
-
diff --git a/src/pages/api/cors.ts b/src/pages/api/cors.ts
new file mode 100644
index 0000000000..9db5f2913b
--- /dev/null
+++ b/src/pages/api/cors.ts
@@ -0,0 +1,21 @@
+import Cors from "cors";
+import { type NextApiRequest, type NextApiResponse } from "next";
+
+// Initializing the cors middleware
+// You can read more about the available options here: https://github.com/expressjs/cors#configuration-options
+
+function runMiddleware(
+ req: NextApiRequest,
+ res: NextApiResponse,
+ fn: Function
+) {
+ return new Promise((resolve, reject) => {
+ fn(req, res, (result: any) => {
+ if (result instanceof Error) {
+ return reject(result);
+ }
+
+ return resolve(result);
+ });
+ });
+}
diff --git a/src/pages/api/traces.ts b/src/pages/api/traces.ts
index 104e7ea599..fc601e1265 100644
--- a/src/pages/api/traces.ts
+++ b/src/pages/api/traces.ts
@@ -1,6 +1,7 @@
import { type NextApiRequest, type NextApiResponse } from "next";
import { z } from "zod";
import { PrismaClient } from "@prisma/client";
+import Cors from "cors";
const prisma = new PrismaClient();
@@ -11,74 +12,35 @@ const TraceSchema = z.object({
statusMessage: z.string().optional(),
});
-/**
- * @swagger
- * /api/traces:
- * post:
- * summary: Creates a new trace
- * requestBody:
- * required: true
- * content:
- * application/json:
- * schema:
- * type: object
- * properties:
- * name:
- * type: string
- * description: The name of the trace
- * attributes:
- * type: object
- * additionalProperties: true
- * description: Attributes of the trace
- * status:
- * type: string
- * enum: [success, error, running]
- * description: The status of the trace
- * statusMessage:
- * type: string
- * description: A status message
- * responses:
- * '201':
- * description: Trace created successfully
- * content:
- * application/json:
- * schema:
- * type: object
- * trace:
- * type: object
- * properties:
- * properties:
- * id:
- * type: string
- * name:
- * type: string
- * attributes:
- * type: object
- * additionalProperties: true
- * status:
- * type: string
- * statusMessage:
- * type: string
- * '400':
- * description: Invalid request data
- * content:
- * application/json:
- * schema:
- * type: object
- * properties:
- * success:
- * type: boolean
- * message:
- * type: string
- * error:
- * type: string
- * '405':
- * description: Method not allowed
- */
+function runMiddleware(
+ req: NextApiRequest,
+ res: NextApiResponse,
+ fn: Function
+) {
+ console.log("runMiddleware", req, res, fn);
+ return new Promise((resolve, reject) => {
+ fn(req, res, (result: any) => {
+ if (result instanceof Error) {
+ return reject(result);
+ }
+
+ return resolve(result);
+ });
+ });
+}
+
export default async function handler(
req: NextApiRequest,
res: NextApiResponse
) {
+ const cors = Cors({
+ origin: ["http://localhost:3000"],
+ //update: or "origin: true," if you don't wanna add a specific one
+ credentials: true,
+ });
+
+ await runMiddleware(req, res, cors);
+
if (req.method !== "POST") {
return res.status(405).json({ message: "Method not allowed" });
}