Skip to content

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

Auth (ui, api), projects, cloud v1 (#8)

Marc Klingen763147beed6e
diff --git a/.env.cloud.example b/.env.cloud.example
new file mode 100644
index 0000000000..1f8a365fb2
--- /dev/null
+++ b/.env.cloud.example
@@ -0,0 +1,17 @@
+# Assuming deployment on Vercel with Postgres database on Supabase
+
+# Prisma
+
+# https://www.prisma.io/docs/reference/database-reference/connection-urls#env
+DIRECT_URL="postgresql://postgres:[pw]@db.[db_id].supabase.co:5432/postgres"
+DATABASE_URL="postgres://postgres:[pw]@db.[db_id].supabase.co:6543/postgres?pgbouncer=true&connection_limit=1"
+
+# Next Auth
+
+# NEXTAUTH_URL does not need to be set when deploying on Vercel
+# NEXTAUTH_URL="http://localhost:3000"
+
+# You can generate a new secret on the command line with:
+# openssl rand -base64 32
+# https://next-auth.js.org/configuration/options#secret
+NEXTAUTH_SECRET="secret"
diff --git a/.github/workflows/ci.yml.template b/.github/workflows/ci.yml.template
index 660e741e67..ff092df7fe 100644
--- a/.github/workflows/ci.yml.template
+++ b/.github/workflows/ci.yml.template
@@ -4,7 +4,7 @@ on:
pull_request:
branches: ["*"]
push:
- branches: ["main"]
+ branches: ["main", "cloud"]
# You can leverage Vercel Remote Caching with Turbo to speed up your builds
# @link https://turborepo.org/docs/core-concepts/remote-caching#remote-caching-on-vercel-builds
diff --git a/.vscode/settings.json b/.vscode/settings.json
index 80f66cbbf6..4a8989fe4c 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -24,17 +24,9 @@
"[astro]": {
"editor.defaultFormatter": "astro-build.astro-vscode"
},
- "cSpell.words": [
- "clemra",
- "clsx",
- "headlessui",
- "langfuse",
- "LLMCALL",
- "lucide",
- "superjson",
- "tailwindcss",
- "tanstack",
- "TRPC"
- ],
- "typescript.preferences.importModuleSpecifier": "non-relative"
+ "typescript.preferences.importModuleSpecifier": "non-relative",
+ "docwriter.style": "JSDoc",
+ "[prisma]": {
+ "editor.defaultFormatter": "Prisma.prisma"
+ }
}
diff --git a/README.md b/README.md
index bc601697df..54a1a62060 100644
--- a/README.md
+++ b/README.md
@@ -11,8 +11,6 @@
<a href="https://langfuse.com"><strong>Website »</strong></a> | <a href="https://discord.com/invite/DNDAarxE"><strong>Join our Discord »</strong></a> | [email protected]
</p>
-
-
# 🧐 Introduction
langfuse helps you debug and improve your LLM-based application by logging/analyzing all user interactions, backend traces, and explicit/implicit user feedback.
@@ -95,7 +93,8 @@ docker run \
```bash
# in the langfuse repo
# install fern CLI: https://docs.buildwithfern.com/compiler/cli-reference
-fern generate
+fern generate --api server
+fern generate --api client
# in the client repo
npm install --save @finto-fern/api-client
@@ -111,7 +110,6 @@ Join the community [on Discord](https://discord.com/invite/DNDAarxE).
To contribute code, send us a PR, raise a github issue, or email at [email protected]
-
# 🥷 Authors
- Max Deichmann ([@maxdeichmann](https://github.com/maxdeichmann))
diff --git a/fern/client/definition/api.yml b/fern/client/definition/api.yml
new file mode 100644
index 0000000000..fc14515d2a
--- /dev/null
+++ b/fern/client/definition/api.yml
@@ -0,0 +1,9 @@
+name: langfuse
+error-discrimination:
+ strategy: status-code
+auth: bearer
+environments:
+ local:
+ docs: This local environment is helpful for testing locally!
+ url: http://localhost:3030
+default-environment: local
diff --git a/fern/api/definition/score.yml b/fern/client/definition/score.yml
similarity index 93%
rename from fern/api/definition/score.yml
rename to fern/client/definition/score.yml
index 5d2b55d8fa..738ed56c5d 100644
--- a/fern/api/definition/score.yml
+++ b/fern/client/definition/score.yml
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json
service:
- auth: false
- base-path: /api
+ auth: true
+ base-path: /api/public
endpoints:
create:
docs: Add a score to the database
diff --git a/fern/client/generators.yml b/fern/client/generators.yml
new file mode 100644
index 0000000000..d12d76d4a3
--- /dev/null
+++ b/fern/client/generators.yml
@@ -0,0 +1,19 @@
+default-group: local
+groups:
+ local:
+ generators:
+ - name: fernapi/fern-typescript-sdk
+ version: 0.5.25
+ output:
+ location: npm
+ url: npm.buildwithfern.com
+ package-name: "@finto-fern/react-client"
+ config:
+ namespaceExport: Langfuse
+ - name: fernapi/fern-openapi
+ version: 0.0.26
+ output:
+ location: local-file-system
+ path: ../../generated/openapi
+ config:
+ namespaceExport: Langfuse
diff --git a/fern/fern.config.json b/fern/fern.config.json
index d9862b6e2d..76bdd68e64 100644
--- a/fern/fern.config.json
+++ b/fern/fern.config.json
@@ -1,4 +1,4 @@
{
"organization": "finto",
- "version": "0.9.3"
+ "version": "0.9.8"
}
\ No newline at end of file
diff --git a/fern/api/definition/api.yml b/fern/server/definition/api.yml
similarity index 94%
rename from fern/api/definition/api.yml
rename to fern/server/definition/api.yml
index c142f68df4..3cc247e8af 100644
--- a/fern/api/definition/api.yml
+++ b/fern/server/definition/api.yml
@@ -1,6 +1,7 @@
name: langfuse
error-discrimination:
strategy: status-code
+auth: basic
environments:
local:
docs: This local environment is helpful for testing locally!
diff --git a/fern/api/definition/event.yml b/fern/server/definition/event.yml
similarity index 94%
rename from fern/api/definition/event.yml
rename to fern/server/definition/event.yml
index 192223ae5e..b8f77be4cd 100644
--- a/fern/api/definition/event.yml
+++ b/fern/server/definition/event.yml
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json
service:
- auth: false
- base-path: /api
+ auth: true
+ base-path: /api/public
endpoints:
create:
docs: Add an event to the database
diff --git a/fern/server/definition/score.yml b/fern/server/definition/score.yml
new file mode 100644
index 0000000000..738ed56c5d
--- /dev/null
+++ b/fern/server/definition/score.yml
@@ -0,0 +1,27 @@
+# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json
+
+service:
+ auth: true
+ base-path: /api/public
+ endpoints:
+ create:
+ docs: Add a score to the database
+ method: POST
+ path: /scores
+ request: CreateScoreRequest
+ response: Score
+
+types:
+ CreateScoreRequest:
+ properties:
+ traceId: string
+ name: string
+ value: integer
+ observationId: optional<string>
+ Score:
+ properties:
+ id: string
+ name: string
+ value: integer
+ observationId: optional<string>
+ timestamp: datetime
diff --git a/fern/api/definition/span.yml b/fern/server/definition/span.yml
similarity index 97%
rename from fern/api/definition/span.yml
rename to fern/server/definition/span.yml
index 0086b920bd..780a2d11ae 100644
--- a/fern/api/definition/span.yml
+++ b/fern/server/definition/span.yml
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json
service:
- auth: false
- base-path: /api
+ auth: true
+ base-path: /api/public
endpoints:
createLLMCall:
docs: a
diff --git a/fern/api/definition/trace.yml b/fern/server/definition/trace.yml
similarity index 96%
rename from fern/api/definition/trace.yml
rename to fern/server/definition/trace.yml
index 92b0846b17..34d68f1f5e 100644
--- a/fern/api/definition/trace.yml
+++ b/fern/server/definition/trace.yml
@@ -1,8 +1,8 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/fern-api/fern/main/fern.schema.json
service:
- auth: false
- base-path: /api
+ auth: true
+ base-path: /api/public
endpoints:
create:
docs: Add a trace to the database
diff --git a/fern/api/generators.yml b/fern/server/generators.yml
similarity index 100%
rename from fern/api/generators.yml
rename to fern/server/generators.yml
diff --git a/generated/openapi/openapi.yml b/generated/openapi/openapi.yml
index 6a10db8dc4..7c4875c11d 100644
--- a/generated/openapi/openapi.yml
+++ b/generated/openapi/openapi.yml
@@ -3,7 +3,7 @@ info:
title: langfuse
version: ''
paths:
- /api/events:
+ /api/public/events:
post:
description: Add an event to the database
operationId: event_create
@@ -17,13 +17,15 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Event'
+ security: &ref_0
+ - BasicAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateEventRequest'
- /api/scores:
+ /api/public/scores:
post:
description: Add a score to the database
operationId: score_create
@@ -37,13 +39,14 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Score'
+ security: *ref_0
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/CreateScoreRequest'
- /api/llm-span:
+ /api/public/llm-span:
post:
description: a
operationId: span_createLLMCall
@@ -57,6 +60,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Span'
+ security: *ref_0
requestBody:
required: true
content:
@@ -76,13 +80,14 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Span'
+ security: *ref_0
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateLLMSpanRequest'
- /api/spans:
+ /api/public/spans:
post:
description: Add a span to the database
operationId: span_create
@@ -96,6 +101,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Span'
+ security: *ref_0
requestBody:
required: true
content:
@@ -115,13 +121,14 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Span'
+ security: *ref_0
requestBody:
required: true
content:
application/json:
schema:
$ref: '#/components/schemas/UpdateSpanRequest'
- /api/traces:
+ /api/public/traces:
post:
description: Add a trace to the database
operationId: trace_create
@@ -135,6 +142,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Trace'
+ security: *ref_0
requestBody:
required: true
content:
@@ -154,6 +162,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Trace'
+ security: *ref_0
requestBody:
required: true
content:
@@ -414,7 +423,10 @@ components:
- EXECUTING
- SUCCESS
- ERROR
- securitySchemes: {}
+ securitySchemes:
+ BasicAuth:
+ type: http
+ scheme: basic
servers:
- url: http://localhost:3030
description: local (This local environment is helpful for testing locally!)
diff --git a/package-lock.json b/package-lock.json
index 5cea47153d..5a795752c0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13,66 +13,72 @@
"@emotion/styled": "^11.11.0",
"@headlessui/react": "^1.7.14",
"@heroicons/react": "^2.0.18",
+ "@hookform/resolvers": "^3.1.0",
"@next-auth/prisma-adapter": "^1.0.6",
- "@prisma/client": "^4.14.1",
+ "@prisma/client": "^4.15.0",
+ "@radix-ui/react-avatar": "^1.0.3",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-dropdown-menu": "^2.0.5",
+ "@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.6",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toggle": "^1.0.3",
- "@t3-oss/env-nextjs": "^0.3.1",
+ "@t3-oss/env-nextjs": "^0.4.0",
"@tailwindcss/forms": "^0.5.3",
- "@tanstack/react-query": "^4.29.7",
+ "@tanstack/react-query": "^4.29.12",
"@tanstack/react-table": "^8.9.1",
- "@trpc/client": "^10.28.0",
- "@trpc/next": "^10.28.0",
- "@trpc/react-query": "^10.28.0",
- "@trpc/server": "^10.28.0",
- "@types/cors": "^2.8.13",
- "@types/js-yaml": "^4.0.5",
- "@types/lodash": "^4.14.195",
+ "@trpc/client": "^10.28.1",
+ "@trpc/next": "^10.28.1",
+ "@trpc/react-query": "^10.28.1",
+ "@trpc/server": "^10.28.1",
+ "bcryptjs": "^2.4.3",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
"cmdk": "^0.2.0",
"cors": "^2.8.5",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
- "lucide-react": "^0.221.0",
+ "lucide-react": "^0.229.0",
"next": "^13.4.4",
"next-auth": "^4.22.1",
- "next-swagger-doc": "^0.3.6",
+ "next-swagger-doc": "^0.4.0",
"react": "18.2.0",
"react-dom": "18.2.0",
- "react-icons": "^4.8.0",
+ "react-hook-form": "^7.44.2",
+ "react-icons": "^4.9.0",
"recharts": "^2.6.2",
"superjson": "1.12.3",
- "swagger-ui-react": "^4.19.0",
"tailwind-merge": "^1.12.0",
"tailwindcss-animate": "^1.0.5",
"zod": "^3.21.4"
},
"devDependencies": {
+ "@types/bcryptjs": "^2.4.2",
+ "@types/cors": "^2.8.13",
"@types/eslint": "^8.40.0",
- "@types/node": "^20.2.4",
+ "@types/js-yaml": "^4.0.5",
+ "@types/lodash": "^4.14.195",
+ "@types/node": "^20.2.5",
"@types/prettier": "^2.7.2",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/swagger-ui-react": "^4.18.0",
- "@typescript-eslint/eslint-plugin": "^5.59.7",
- "@typescript-eslint/parser": "^5.59.7",
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
+ "@typescript-eslint/parser": "^5.59.8",
"autoprefixer": "^10.4.14",
"eslint": "^8.41.0",
"eslint-config-next": "^13.4.4",
- "postcss": "^8.4.23",
+ "postcss": "^8.4.24",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
- "prisma": "^4.14.1",
+ "prisma": "^4.15.0",
"swagger-jsdoc": "^6.2.8",
"tailwindcss": "^3.3.2",
"ts-node": "^10.9.1",
+ "tsconfig-paths": "^4.2.0",
"typescript": "^5.0.4"
}
},
@@ -115,7 +121,6 @@
"version": "10.0.3",
"resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.0.3.tgz",
"integrity": "sha512-sNiLY51vZOmSPFZA5TF35KZ2HbgYklQnTSDnkghamzLb3EkNtcQnrBQEj5AOCxHpTtXpqMCRM1CrmV2rG6nw4g==",
- "dev": true,
"dependencies": {
"@apidevtools/json-schema-ref-parser": "^9.0.6",
"@apidevtools/openapi-schemas": "^2.0.4",
@@ -244,9 +249,9 @@
}
},
"node_modules/@babel/runtime": {
- "version": "7.22.0",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.0.tgz",
- "integrity": "sha512-TT6NB0oszYQ4oxLNUdG+FNHIc3MohXVCKA2BeyQ4WeM2VCSC6wBZ6P0Yfkdzxv+87D8Xk0LJyHeCKlWMvpZt0g==",
+ "version": "7.22.3",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.22.3.tgz",
+ "integrity": "sha512-XsDuspWKLUsxwCp6r7EhsExHtYfbe5oAGQ19kqngTdCPUoPQzOPdUbD/pB9PJiwb2ptYKQDjSJT3R6dC+EPqfQ==",
"dependencies": {
"regenerator-runtime": "^0.13.11"
},
@@ -254,22 +259,10 @@
"node": ">=6.9.0"
}
},
- "node_modules/@babel/runtime-corejs3": {
- "version": "7.22.0",
- "resolved": "https://registry.npmjs.org/@babel/runtime-corejs3/-/runtime-corejs3-7.22.0.tgz",
- "integrity": "sha512-H7/M8iVfk3gCcKBNQHFqHcUWt7ZVKGqC/IhsY7mfomQJJ6GXpSlNkGRiOvKwE5x18tDhIh7JopVbe1QeEu4udw==",
- "dependencies": {
- "core-js-pure": "^3.30.2",
- "regenerator-runtime": "^0.13.11"
- },
- "engines": {
- "node": ">=6.9.0"
- }
- },
"node_modules/@babel/types": {
- "version": "7.22.0",
- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.0.tgz",
- "integrity": "sha512-NtXlm3f6cNWIv003cETdlz9sss0VMNtplyatFohxWPz90AbwuhCbHbQopkGis6bG1vOunDLN0FF/4Uv5i8LFZQ==",
+ "version": "7.22.4",
+ "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.22.4.tgz",
+ "integrity": "sha512-Tx9x3UBHTTsMSW85WB2kphxYQVvrZ/t1FxD88IpSgIjiUJlCm9z+xWIDwyo1vffTwSqteqyznB8ZE9vYYk16zA==",
"dependencies": {
"@babel/helper-string-parser": "^7.21.5",
"@babel/helper-validator-identifier": "^7.19.1",
@@ -279,11 +272,6 @@
"node": ">=6.9.0"
}
},
- "node_modules/@braintree/sanitize-url": {
- "version": "6.0.2",
- "resolved": "https://registry.npmjs.org/@braintree/sanitize-url/-/sanitize-url-6.0.2.tgz",
- "integrity": "sha512-Tbsj02wXCbqGmzdnXNk0SOF19ChhRU70BsroIi4Pm6Ehp56in6vch94mfbdQ17DozxkL3BAVjbZ4Qc1a0HFRAg=="
- },
"node_modules/@cspotcode/source-map-support": {
"version": "0.8.1",
"resolved": "https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz",
@@ -543,6 +531,14 @@
"react": ">= 16"
}
},
+ "node_modules/@hookform/resolvers": {
+ "version": "3.1.0",
+ "resolved": "https://registry.npmjs.org/@hookform/resolvers/-/resolvers-3.1.0.tgz",
+ "integrity": "sha512-z0A8K+Nxq+f83Whm/ajlwE6VtQlp/yPHZnXw7XWVPIGm1Vx0QV8KThU3BpbBRfAZ7/dYqCKKBNnQh85BkmBKkA==",
+ "peerDependencies": {
+ "react-hook-form": "^7.0.0"
+ }
+ },
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.8",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz",
@@ -652,26 +648,6 @@
"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.4",
"resolved": "https://registry.npmjs.org/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.4.tgz",
@@ -885,19 +861,13 @@
"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/@prisma/client": {
- "version": "4.14.1",
- "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.14.1.tgz",
- "integrity": "sha512-TZIswkeX1ccsHG/eN2kICzg/csXll0osK3EHu1QKd8VJ3XLcXozbNELKkCNfsCUvKJAwPdDtFCzF+O+raIVldw==",
+ "version": "4.15.0",
+ "resolved": "https://registry.npmjs.org/@prisma/client/-/client-4.15.0.tgz",
+ "integrity": "sha512-xnROvyABcGiwqRNdrObHVZkD9EjkJYHOmVdlKy1yGgI+XOzvMzJ4tRg3dz1pUlsyhKxXGCnjIQjWW+2ur+YXuw==",
"hasInstallScript": true,
"dependencies": {
- "@prisma/engines-version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c"
+ "@prisma/engines-version": "4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944"
},
"engines": {
"node": ">=14.17"
@@ -912,16 +882,16 @@
}
},
"node_modules/@prisma/engines": {
- "version": "4.14.1",
- "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.14.1.tgz",
- "integrity": "sha512-APqFddPVHYmWNKqc+5J5SqrLFfOghKOLZxobmguDUacxOwdEutLsbXPVhNnpFDmuQWQFbXmrTTPoRrrF6B1MWA==",
+ "version": "4.15.0",
+ "resolved": "https://registry.npmjs.org/@prisma/engines/-/engines-4.15.0.tgz",
+ "integrity": "sha512-FTaOCGs0LL0OW68juZlGxFtYviZa4xdQj/rQEdat2txw0s3Vu/saAPKjNVXfIgUsGXmQ72HPgNr6935/P8FNAA==",
"devOptional": true,
"hasInstallScript": true
},
"node_modules/@prisma/engines-version": {
- "version": "4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c",
- "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.14.0-67.d9a4c5988f480fa576d43970d5a23641aa77bc9c.tgz",
- "integrity": "sha512-3jum8/YSudeSN0zGW5qkpz+wAN2V/NYCQ+BPjvHYDfWatLWlQkqy99toX0GysDeaUoBIJg1vaz2yKqiA3CFcQw=="
+ "version": "4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944",
+ "resolved": "https://registry.npmjs.org/@prisma/engines-version/-/engines-version-4.15.0-28.8fbc245156db7124f997f4cecdd8d1219e360944.tgz",
+ "integrity": "sha512-sVOig4tjGxxlYaFcXgE71f/rtFhzyYrfyfNFUsxCIEJyVKU9rdOWIlIwQ2NQ7PntvGnn+x0XuFo4OC1jvPJKzg=="
},
"node_modules/@radix-ui/primitive": {
"version": "1.0.1",
@@ -954,6 +924,32 @@
}
}
},
+ "node_modules/@radix-ui/react-avatar": {
+ "version": "1.0.3",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-avatar/-/react-avatar-1.0.3.tgz",
+ "integrity": "sha512-9ToF7YNex3Ste45LrAeTlKtONI9yVRt/zOS158iilIkW5K/Apeyb/TUQlcEFTEFvWr8Kzdi2ZYrm1/suiXPajQ==",
+ "dependencies": {
+ "@babel/runtime": "^7.13.10",
+ "@radix-ui/react-context": "1.0.1",
+ "@radix-ui/react-primitive": "1.0.3",
+ "@radix-ui/react-use-callback-ref": "1.0.1",
+ "@radix-ui/react-use-layout-effect": "1.0.1"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0",
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@radix-ui/react-collapsible": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/@radix-ui/react-collapsible/-/react-collapsible-1.0.3.tgz",
@@ -1213,6 +1209,29 @@
}
}
},
+ "node_modules/@radix-ui/react-label": {
+ "version": "2.0.2",
+ "resolved": "https://registry.npmjs.org/@radix-ui/react-label/-/react-label-2.0.2.tgz",
+ "integrity": "sha512-N5ehvlM7qoTLx7nWPodsPYPgMzA5WM8zZChQg8nyFJKnDO5WHdba1vv5/H6IO5LtJMfD2Q3wh1qHFGNtK0w3bQ==",
+ "dependencies": {
+ "@babel/runtime": "^7.13.10",
+ "@radix-ui/react-primitive": "1.0.3"
+ },
+ "peerDependencies": {
+ "@types/react": "*",
+ "@types/react-dom": "*",
+ "react": "^16.8 || ^17.0 || ^18.0",
+ "react-dom": "^16.8 || ^17.0 || ^18.0"
+ },
+ "peerDependenciesMeta": {
+ "@types/react": {
+ "optional": true
+ },
+ "@types/react-dom": {
+ "optional": true
+ }
+ }
+ },
"node_modules/@radix-ui/react-menu": {
"version": "2.0.5",
"resolved": "https://registry.npmjs.org/@radix-ui/react-menu/-/react-menu-2.0.5.tgz",
@@ -1639,367 +1658,6 @@
"integrity": "sha512-IthPJsJR85GhOkp3Hvp8zFOPK5ynKn6STyHa/WZpioK7E1aYDiBzpqQPrngc14DszIUkIrdd3k9Iu0XSzlP/1w==",
"dev": true
},
- "node_modules/@swagger-api/apidom-ast": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ast/-/apidom-ast-0.70.0.tgz",
- "integrity": "sha512-zQ1RUkXjx5NPYv1bmkoXwlQi7oJC7DJqYi0syTQKswJZDbOkHCwz8cDP/YystOEOL+yyIN7i5EQBIHfy5yAMmA==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2",
- "unraw": "^2.0.1"
- }
- },
- "node_modules/@swagger-api/apidom-core": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-core/-/apidom-core-0.70.0.tgz",
- "integrity": "sha512-nUw0aehnhm2BUd17pbCLUuyd4E5bsn+K3teYLGs8Z/LGo9gpjZ/BMTL3H/3+F42ZRux79/3b6QksDj4f9yeSpg==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-ast": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "minim": "~0.23.8",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "short-unique-id": "^4.4.4",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-json-pointer": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-json-pointer/-/apidom-json-pointer-0.70.0.tgz",
- "integrity": "sha512-6MSgWgl1juBMiK4lFp/IBuWO21FB6dm+T9PnRIl2D8tSESndhNHfk3EPkfrfXDOtCK2gqij52w9JorRKEfxfWw==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-ns-api-design-systems": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-api-design-systems/-/apidom-ns-api-design-systems-0.70.0.tgz",
- "integrity": "sha512-CA/5cyLWr1lC4oqoEm3BNbQ7ZLXQWhCK6ddTGckgrFNj4j6TxJycC83JGFvt8K2M9uSNRTh7t6b1o1kRzQ+Scg==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-1": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-ns-asyncapi-2": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-asyncapi-2/-/apidom-ns-asyncapi-2-0.70.0.tgz",
- "integrity": "sha512-P7r6LZR1o8BVGcY+j4HWWlIk1XhP8H2tL7XCHJ3fmYCgqrbdyo3pJxZujfddbvI/TT4/8YMfq2fat6MMu0DhfQ==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-json-schema-draft-7": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-ns-json-schema-draft-4": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-json-schema-draft-4/-/apidom-ns-json-schema-draft-4-0.70.0.tgz",
- "integrity": "sha512-Y8O8Xl4P2cKDIunsvDV5Gvq+BVN/uIN5rJ5axHsZt0PL1D0c2Ypu6uCBDNb6iPdUZ3REpzemYNi2eZanL5gKtQ==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-ns-json-schema-draft-6": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-json-schema-draft-6/-/apidom-ns-json-schema-draft-6-0.70.0.tgz",
- "integrity": "sha512-xaYZ7NeivNZreYzaufNLpxAqusjAXji8Ls+HArzgZWdpjddnN2wvHDEkF8gPBdYMRWiXWLKzXFey/ZhOSwLi9Q==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-json-schema-draft-4": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-ns-json-schema-draft-7": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-json-schema-draft-7/-/apidom-ns-json-schema-draft-7-0.70.0.tgz",
- "integrity": "sha512-yy1cha8GiIHBfhK31ycTSd3UwWzQGjWcSLAl7dfT/UpemcHn4wGzJtoFx+tqpGHwpUie3qpEm7ReLRrYzeg0Ew==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-json-schema-draft-6": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-ns-openapi-3-0": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-openapi-3-0/-/apidom-ns-openapi-3-0-0.70.0.tgz",
- "integrity": "sha512-wEw5uHd1/XqgkwvGM1DrhwPsDWcMNedxHybq0b7Bp2ZE7QWI4V/OS1gOnYpBvB6OUpHkEc5c2z++hr6fd0FhHQ==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-json-schema-draft-4": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-ns-openapi-3-1": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-ns-openapi-3-1/-/apidom-ns-openapi-3-1-0.70.0.tgz",
- "integrity": "sha512-0d8IPy7A9lCjscXsw260j07xTQu8ExG3OpFxSJPOwQsrZ6X2Oooaq/0e0hnK15ngaVQzv9Iq8pBXSpJ/oJD8Ww==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-0": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-api-design-systems-json": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-api-design-systems-json/-/apidom-parser-adapter-api-design-systems-json-0.70.0.tgz",
- "integrity": "sha512-mXR+0EjOa+1trve5xGKmhDSXdIs8zMMJAN9KlnPvAVVezpoDLgg8s687qfPyNmfRmYcnO/18X8pn3/WhQCVFHA==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-api-design-systems": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-json": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-api-design-systems-yaml": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-api-design-systems-yaml/-/apidom-parser-adapter-api-design-systems-yaml-0.70.0.tgz",
- "integrity": "sha512-sfQq2cetMAH9CWS9UINTDdZ+Hs735C6CojtG6dkeA+BJe0gJg+NmQI2qwePQ1jY9p9D+lHMMl56ispYQQnaCjg==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-api-design-systems": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-asyncapi-json-2": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-asyncapi-json-2/-/apidom-parser-adapter-asyncapi-json-2-0.70.0.tgz",
- "integrity": "sha512-u35roIPmq9zvXKfuGyMzY9gZMj1kTLmFSdCvOA5JvysEQLSx59s/Qs4um+BLvH2Z9/D5DYVb2cnyujTIVmoMYg==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-asyncapi-2": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-json": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-asyncapi-yaml-2/-/apidom-parser-adapter-asyncapi-yaml-2-0.70.0.tgz",
- "integrity": "sha512-NYxbr+BFDf6y92+o8sFaQ0UWxh72jNo8TkCl1/JYSrc5QuLSIu5UIMbjtLPGY+82okMRxCwjG7dCd8h62/KpiQ==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-asyncapi-2": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-json": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-json/-/apidom-parser-adapter-json-0.70.0.tgz",
- "integrity": "sha512-j0Pb4Xg1VdFaCwYInF9qQxCDpaznzgse4oSUy1uJkLK0W/eC6bLNHyDGJmxR/TAqxY4yzb5zNCJnlJkjZqKxkQ==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-ast": "^0.70.0",
- "@swagger-api/apidom-core": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2",
- "tree-sitter": "=0.20.1",
- "tree-sitter-json": "=0.20.0",
- "web-tree-sitter": "=0.20.7"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-openapi-json-3-0": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-json-3-0/-/apidom-parser-adapter-openapi-json-3-0-0.70.0.tgz",
- "integrity": "sha512-GsQH3GaOWVnGYtd+jajrsXjn1N0JqH1cQz/RoyxaD2zeI0LDW3efXGfa2zr3tFWqxTPrdOIMu6irH8aWtiC5sA==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-0": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-json": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-openapi-json-3-1": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-json-3-1/-/apidom-parser-adapter-openapi-json-3-1-0.70.0.tgz",
- "integrity": "sha512-e8bUiTa+q4xTS77hZC9pyg6U91rWlbfXBhzUGAn6fB+JF4PXxyep6sH+8JbJvGjI6DFvvuiwzRvVFt6DyKFhZg==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-1": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-json": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-yaml-3-0/-/apidom-parser-adapter-openapi-yaml-3-0-0.70.0.tgz",
- "integrity": "sha512-4dwRV9uhjuIziV5Z9742RpVCo+QtrQDrGxh5pQaTbU8mNvXdrZ7ebFOxYQIPmxGcPAbxm1x6dvicUvhs97Lsrg==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-0": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-openapi-yaml-3-1/-/apidom-parser-adapter-openapi-yaml-3-1-0.70.0.tgz",
- "integrity": "sha512-u/JE8maz+PSm3prCTE9jx0XaK1/+kxoFT1v7l9AXqAyczsyQ/FMPNUvQ8Qyr/Jad5wHW6IcIIhqG79n4e819JQ==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-1": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-parser-adapter-yaml-1-2": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-parser-adapter-yaml-1-2/-/apidom-parser-adapter-yaml-1-2-0.70.0.tgz",
- "integrity": "sha512-DfJ9f7Qm6QdmGJMMHicksEZKRJYR0yY9KTF+UKPBGChakXxr9Gt6ZkxWwRz0ataPFJZbW+Q8/P56Mrp/ETH+WQ==",
- "optional": true,
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-ast": "^0.70.0",
- "@swagger-api/apidom-core": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2",
- "tree-sitter": "=0.20.1",
- "tree-sitter-yaml": "=0.5.0",
- "web-tree-sitter": "=0.20.7"
- }
- },
- "node_modules/@swagger-api/apidom-reference": {
- "version": "0.70.0",
- "resolved": "https://registry.npmjs.org/@swagger-api/apidom-reference/-/apidom-reference-0.70.0.tgz",
- "integrity": "sha512-HKfDmfQQc/RmdSdOpN/WtGF+97WjgRmvIdt3FmuPTqFRM4CeGpDM/MXvcxa71sN1yUx/o6LkRRwYSqDlYfutIw==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.7",
- "@swagger-api/apidom-core": "^0.70.0",
- "@types/ramda": "~0.29.1",
- "axios": "^1.4.0",
- "minimatch": "^7.4.3",
- "process": "^0.11.10",
- "ramda": "~0.29.0",
- "ramda-adjunct": "^4.0.0",
- "stampit": "^4.3.2"
- },
- "optionalDependencies": {
- "@swagger-api/apidom-json-pointer": "^0.70.0",
- "@swagger-api/apidom-ns-asyncapi-2": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-0": "^0.70.0",
- "@swagger-api/apidom-ns-openapi-3-1": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-api-design-systems-json": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-api-design-systems-yaml": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-asyncapi-json-2": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-asyncapi-yaml-2": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-json": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-openapi-json-3-0": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-openapi-json-3-1": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-openapi-yaml-3-0": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-openapi-yaml-3-1": "^0.70.0",
- "@swagger-api/apidom-parser-adapter-yaml-1-2": "^0.70.0"
- }
- },
- "node_modules/@swagger-api/apidom-reference/node_modules/axios": {
- "version": "1.4.0",
- "resolved": "https://registry.npmjs.org/axios/-/axios-1.4.0.tgz",
- "integrity": "sha512-S4XCWMEmzvo64T9GfvQDOXgYRDJ/wsSZc7Jvdgx5u1sd0JwsuPLqb3SYmusag+edF6ziyMensPVqLTSc1PiSEA==",
- "dependencies": {
- "follow-redirects": "^1.15.0",
- "form-data": "^4.0.0",
- "proxy-from-env": "^1.1.0"
- }
- },
- "node_modules/@swagger-api/apidom-reference/node_modules/brace-expansion": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz",
- "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==",
- "dependencies": {
- "balanced-match": "^1.0.0"
- }
- },
- "node_modules/@swagger-api/apidom-reference/node_modules/minimatch": {
- "version": "7.4.6",
- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.6.tgz",
- "integrity": "sha512-sBz8G/YjVniEz6lKPNpKxXwazJe4c19fEfV2GDMX6AjFz+MX9uDWIZW8XreVhkFW3fkIdTv/gxWr/Kks5FFAVw==",
- "dependencies": {
- "brace-expansion": "^2.0.1"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/isaacs"
- }
- },
"node_modules/@swc/helpers": {
"version": "0.5.1",
"resolved": "https://registry.npmjs.org/@swc/helpers/-/helpers-0.5.1.tgz",
@@ -2008,26 +1666,21 @@
"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.3.1",
- "resolved": "https://registry.npmjs.org/@t3-oss/env-core/-/env-core-0.3.1.tgz",
- "integrity": "sha512-iEnBuWeSjzqQLDTUw7H+YhstV4OZrGXTkQGL6ZOMxZQoCmwGX7GVS+1KCd5RvCzOtrIAD9jeOItSWNjC7sG4Sg==",
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@t3-oss/env-core/-/env-core-0.4.0.tgz",
+ "integrity": "sha512-6JlMp0Vru15q/axHzBKsQQjiyGS6k+EsZBY1iErGVmOGzNSoVluBahnYFP7tEkwZ7KoRgSq4NRIc1Ez7SVYuxQ==",
"peerDependencies": {
"typescript": ">=4.7.2",
"zod": "^3.0.0"
}
},
"node_modules/@t3-oss/env-nextjs": {
- "version": "0.3.1",
- "resolved": "https://registry.npmjs.org/@t3-oss/env-nextjs/-/env-nextjs-0.3.1.tgz",
- "integrity": "sha512-W1OgOn5xtpdEGraAQesyLzO2aNLRfSJEyK6qjQFfEUnrPbkvB+WxABX2bPMqfn4KJQ8pziLCSdBFiUN8OagqAg==",
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/@t3-oss/env-nextjs/-/env-nextjs-0.4.0.tgz",
+ "integrity": "sha512-K1u2i+S/uEhjfg++FqWlOzS6x237EARRbWGowH2MkDkFu2q7ZJSiJBJT8e47L7NHWH5IyZrTCM6BdOxyWEnQuQ==",
"dependencies": {
- "@t3-oss/env-core": "0.3.1"
+ "@t3-oss/env-core": "0.4.0"
},
"peerDependencies": {
"typescript": ">=4.7.2",
@@ -2046,20 +1699,20 @@
}
},
"node_modules/@tanstack/query-core": {
- "version": "4.29.7",
- "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.29.7.tgz",
- "integrity": "sha512-GXG4b5hV2Loir+h2G+RXhJdoZhJLnrBWsuLB2r0qBRyhWuXq9w/dWxzvpP89H0UARlH6Mr9DiVj4SMtpkF/aUA==",
+ "version": "4.29.11",
+ "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.29.11.tgz",
+ "integrity": "sha512-8C+hF6SFAb/TlFZyS9FItgNwrw4PMa7YeX+KQYe2ZAiEz6uzg6yIr+QBzPkUwZ/L0bXvGd1sufTm3wotoz+GwQ==",
"funding": {
"type": "github",
"url": "https://github.com/sponsors/tannerlinsley"
}
},
"node_modules/@tanstack/react-query": {
- "version": "4.29.7",
- "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-4.29.7.tgz",
- "integrity": "sha512-ijBWEzAIo09fB1yd22slRZzprrZ5zMdWYzBnCg5qiXuFbH78uGN1qtGz8+Ed4MuhaPaYSD+hykn+QEKtQviEtg==",
+ "version": "4.29.12",
+ "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-4.29.12.tgz",
+ "integrity": "sha512-zhcN6+zF6cxprxhTHQajHGlvxgK8npnp9uLe9yaWhGc6sYcPWXzyO4raL4HomUzQOPzu3jLvkriJQ7BOrDM8vA==",
"dependencies": {
- "@tanstack/query-core": "4.29.7",
+ "@tanstack/query-core": "4.29.11",
"use-sync-external-store": "^1.2.0"
},
"funding": {
@@ -2112,20 +1765,20 @@
}
},
"node_modules/@trpc/client": {
- "version": "10.28.0",
- "resolved": "https://registry.npmjs.org/@trpc/client/-/client-10.28.0.tgz",
- "integrity": "sha512-Xhl2xdGI4PkI/a8xaTbsdpIXOy7PeOZaBBdvBgs2kpKiznNAI10qPrK+GLIDkSxvekLqDSnVYIhS0kU0FkhEXw==",
+ "version": "10.28.1",
+ "resolved": "https://registry.npmjs.org/@trpc/client/-/client-10.28.1.tgz",
+ "integrity": "sha512-0+717Uy75+dypm7FB02sKiYtCz78HHApIBLSF16x5EwLBE6wsaQK+6yarkXFb1009DfmikeA8mSoUM0BrQusGA==",
"funding": [
"https://trpc.io/sponsor"
],
"peerDependencies": {
- "@trpc/server": "10.28.0"
+ "@trpc/server": "10.28.1"
}
},
"node_modules/@trpc/next": {
- "version": "10.28.0",
- "resolved": "https://registry.npmjs.org/@trpc/next/-/next-10.28.0.tgz",
- "integrity": "sha512-sD98gQu/vZhXhC4hEPqyQStWhUIgZCWQuE4N//eZodAtb8Lyosg/UUs/Mo6IFAcdjcXKuyMYlu27ZIRjaG3txw==",
+ "version": "10.28.1",
+ "resolved": "https://registry.npmjs.org/@trpc/next/-/next-10.28.1.tgz",
+ "integrity": "sha512-PyrEzbp6IAOmNgFRdUtodXct/sB6bcYN8nT65qlckcC0uAPgTBWA4CI3rt9ie4OO4SZsw0AUh4HSk/ig9L5ZMg==",
"funding": [
"https://trpc.io/sponsor"
],
@@ -2134,33 +1787,33 @@
},
"peerDependencies": {
"@tanstack/react-query": "^4.18.0",
- "@trpc/client": "10.28.0",
- "@trpc/react-query": "10.28.0",
- "@trpc/server": "10.28.0",
+ "@trpc/client": "10.28.1",
+ "@trpc/react-query": "10.28.1",
+ "@trpc/server": "10.28.1",
"next": "*",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
}
},
"node_modules/@trpc/react-query": {
- "version": "10.28.0",
- "resolved": "https://registry.npmjs.org/@trpc/react-query/-/react-query-10.28.0.tgz",
- "integrity": "sha512-ssXaZbtNHrgvUW/bmwpiEttF1t1TMZAp/FQ98puXE7MqpodEi2aIum1Ou9Cb1w0lEc4mPwOwztzwuUSGsdCD6Q==",
+ "version": "10.28.1",
+ "resolved": "https://registry.npmjs.org/@trpc/react-query/-/react-query-10.28.1.tgz",
+ "integrity": "sha512-zBqOL0lQD6jRvIq696YZPEoiwP01crRLgxHAXKzSUPx7fmBovgE+vqx6VaUhQtk5QTVvV2WmS/mtJE86ZsQlWQ==",
"funding": [
"https://trpc.io/sponsor"
],
"peerDependencies": {
"@tanstack/react-query": "^4.18.0",
- "@trpc/client": "10.28.0",
- "@trpc/server": "10.28.0",
+ "@trpc/client": "10.28.1",
+ "@trpc/server": "10.28.1",
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
}
},
"node_modules/@trpc/server": {
- "version": "10.28.0",
- "resolved": "https://registry.npmjs.org/@trpc/server/-/server-10.28.0.tgz",
- "integrity": "sha512-PrJ/VgRuujMCtNkgrldCPbqv3+yk1LKweKEfvQHTN2L0WIaKJPXzSsOTJS9PqNpFOTqzaK5mgDbypIFvq7SYow==",
+ "version": "10.28.1",
+ "resolved": "https://registry.npmjs.org/@trpc/server/-/server-10.28.1.tgz",
+ "integrity": "sha512-imKwru3wGNuZ58Z2BnXwJv7zWAjqMJ7m8uMfah0zL4wUoB3oq2ozp6dfseDEb7SCDqvJqI4BS07HJstJ+idD4Q==",
"funding": [
"https://trpc.io/sponsor"
]
@@ -2189,10 +1842,17 @@
"integrity": "sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==",
"devOptional": true
},
+ "node_modules/@types/bcryptjs": {
+ "version": "2.4.2",
+ "resolved": "https://registry.npmjs.org/@types/bcryptjs/-/bcryptjs-2.4.2.tgz",
+ "integrity": "sha512-LiMQ6EOPob/4yUL66SZzu6Yh77cbzJFYll+ZfaPiPPFswtIlA/Fs1MzdKYA7JApHU49zQTbJGX3PDmCpIdDBRQ==",
+ "dev": 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==",
+ "dev": true,
"dependencies": {
"@types/node": "*"
}
@@ -2267,27 +1927,11 @@
"integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==",
"dev": true
},
- "node_modules/@types/hast": {
- "version": "2.3.4",
- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-2.3.4.tgz",
- "integrity": "sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==",
- "dependencies": {
- "@types/unist": "*"
- }
- },
- "node_modules/@types/hoist-non-react-statics": {
- "version": "3.3.1",
- "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
- "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
- "dependencies": {
- "@types/react": "*",
- "hoist-non-react-statics": "^3.3.0"
- }
- },
"node_modules/@types/js-yaml": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz",
- "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA=="
+ "integrity": "sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==",
+ "dev": true
},
"node_modules/@types/json-schema": {
"version": "7.0.12",
@@ -2303,12 +1947,14 @@
"node_modules/@types/lodash": {
"version": "4.14.195",
"resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.195.tgz",
- "integrity": "sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg=="
+ "integrity": "sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==",
+ "dev": true
},
"node_modules/@types/node": {
"version": "20.2.5",
"resolved": "https://registry.npmjs.org/@types/node/-/node-20.2.5.tgz",
- "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ=="
+ "integrity": "sha512-JJulVEQXmiY9Px5axXHeYGLSjhkZEnD+MDPDGbCbIAbMslkKwmygtZFy1X6s/075Yo94sf8GuSlFfPzysQrWZQ==",
+ "devOptional": true
},
"node_modules/@types/parse-json": {
"version": "4.0.0",
@@ -2324,20 +1970,14 @@
"node_modules/@types/prop-types": {
"version": "15.7.5",
"resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.5.tgz",
- "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w=="
- },
- "node_modules/@types/ramda": {
- "version": "0.29.2",
- "resolved": "https://registry.npmjs.org/@types/ramda/-/ramda-0.29.2.tgz",
- "integrity": "sha512-JxvBGR3G4gV3RTOBugVHAAOD6iiv2WjlJ8BHr0s7KALdPpx2l+didoTuoJMmrA0eqpUaCm/slKP4TmxMRihd8g==",
- "dependencies": {
- "types-ramda": "^0.29.3"
- }
+ "integrity": "sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==",
+ "devOptional": true
},
"node_modules/@types/react": {
"version": "18.2.7",
"resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.7.tgz",
"integrity": "sha512-ojrXpSH2XFCmHm7Jy3q44nXDyN54+EYKP2lBhJ2bqfyPj6cIUW/FZW/Csdia34NQgq7KYcAlHi5184m4X88+yw==",
+ "devOptional": true,
"dependencies": {
"@types/prop-types": "*",
"@types/scheduler": "*",
@@ -2356,7 +1996,8 @@
"node_modules/@types/scheduler": {
"version": "0.16.3",
"resolved": "https://registry.npmjs.org/@types/scheduler/-/scheduler-0.16.3.tgz",
- "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ=="
+ "integrity": "sha512-5cJ8CB4yAx7BH1oMvdU0Jh9lrEXyPkar6F9G/ERswkCuvP4KQZfZkSjcMbAICCpQTN4OuZn8tz0HiKv9TGZgrQ==",
+ "devOptional": true
},
"node_modules/@types/semver": {
"version": "7.5.0",
@@ -2364,6 +2005,11 @@
"integrity": "sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==",
"dev": true
},
+ "node_modules/@types/swagger-jsdoc": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/@types/swagger-jsdoc/-/swagger-jsdoc-6.0.1.tgz",
+ "integrity": "sha512-+MUpcbyxD528dECUBCEVm6abNuORdbuGjbrUdHDeAQ+rkPuo2a+L4N02WJHF3bonSSE6SJ3dUJwF2V6+cHnf0w=="
+ },
"node_modules/@types/swagger-ui-react": {
"version": "4.18.0",
"resolved": "https://registry.npmjs.org/@types/swagger-ui-react/-/swagger-ui-react-4.18.0.tgz",
@@ -2373,26 +2019,16 @@
"@types/react": "*"
}
},
- "node_modules/@types/unist": {
- "version": "2.0.6",
- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.6.tgz",
- "integrity": "sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ=="
- },
- "node_modules/@types/use-sync-external-store": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/@types/use-sync-external-store/-/use-sync-external-store-0.0.3.tgz",
- "integrity": "sha512-EwmlvuaxPNej9+T4v5AuBPJa2x2UOJVdjCtDHgcDqitUeOtjnJKJ+apYjVcAoBEMjKW1VVFGZLUb5+qqa09XFA=="
- },
"node_modules/@typescript-eslint/eslint-plugin": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.7.tgz",
- "integrity": "sha512-BL+jYxUFIbuYwy+4fF86k5vdT9lT0CNJ6HtwrIvGh0PhH8s0yy5rjaKH2fDCrz5ITHy07WCzVGNvAmjJh4IJFA==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.8.tgz",
+ "integrity": "sha512-JDMOmhXteJ4WVKOiHXGCoB96ADWg9q7efPWHRViT/f09bA8XOMLAVHHju3l0MkZnG1izaWXYmgvQcUjTRcpShQ==",
"dev": true,
"dependencies": {
"@eslint-community/regexpp": "^4.4.0",
- "@typescript-eslint/scope-manager": "5.59.7",
- "@typescript-eslint/type-utils": "5.59.7",
- "@typescript-eslint/utils": "5.59.7",
+ "@typescript-eslint/scope-manager": "5.59.8",
+ "@typescript-eslint/type-utils": "5.59.8",
+ "@typescript-eslint/utils": "5.59.8",
"debug": "^4.3.4",
"grapheme-splitter": "^1.0.4",
"ignore": "^5.2.0",
@@ -2418,14 +2054,14 @@
}
},
"node_modules/@typescript-eslint/parser": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.7.tgz",
- "integrity": "sha512-VhpsIEuq/8i5SF+mPg9jSdIwgMBBp0z9XqjiEay+81PYLJuroN+ET1hM5IhkiYMJd9MkTz8iJLt7aaGAgzWUbQ==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.8.tgz",
+ "integrity": "sha512-AnR19RjJcpjoeGojmwZtCwBX/RidqDZtzcbG3xHrmz0aHHoOcbWnpDllenRDmDvsV0RQ6+tbb09/kyc+UT9Orw==",
"dev": true,
"dependencies": {
- "@typescript-eslint/scope-manager": "5.59.7",
- "@typescript-eslint/types": "5.59.7",
- "@typescript-eslint/typescript-estree": "5.59.7",
+ "@typescript-eslint/scope-manager": "5.59.8",
+ "@typescript-eslint/types": "5.59.8",
+ "@typescript-eslint/typescript-estree": "5.59.8",
"debug": "^4.3.4"
},
"engines": {
@@ -2445,13 +2081,13 @@
}
},
"node_modules/@typescript-eslint/scope-manager": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.7.tgz",
- "integrity": "sha512-FL6hkYWK9zBGdxT2wWEd2W8ocXMu3K94i3gvMrjXpx+koFYdYV7KprKfirpgY34vTGzEPPuKoERpP8kD5h7vZQ==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.8.tgz",
+ "integrity": "sha512-/w08ndCYI8gxGf+9zKf1vtx/16y8MHrZs5/tnjHhMLNSixuNcJavSX4wAiPf4aS5x41Es9YPCn44MIe4cxIlig==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.59.7",
- "@typescript-eslint/visitor-keys": "5.59.7"
+ "@typescript-eslint/types": "5.59.8",
+ "@typescript-eslint/visitor-keys": "5.59.8"
},
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -2462,13 +2098,13 @@
}
},
"node_modules/@typescript-eslint/type-utils": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.7.tgz",
- "integrity": "sha512-ozuz/GILuYG7osdY5O5yg0QxXUAEoI4Go3Do5xeu+ERH9PorHBPSdvD3Tjp2NN2bNLh1NJQSsQu2TPu/Ly+HaQ==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.8.tgz",
+ "integrity": "sha512-+5M518uEIHFBy3FnyqZUF3BMP+AXnYn4oyH8RF012+e7/msMY98FhGL5SrN29NQ9xDgvqCgYnsOiKp1VjZ/fpA==",
"dev": true,
"dependencies": {
- "@typescript-eslint/typescript-estree": "5.59.7",
- "@typescript-eslint/utils": "5.59.7",
+ "@typescript-eslint/typescript-estree": "5.59.8",
+ "@typescript-eslint/utils": "5.59.8",
"debug": "^4.3.4",
"tsutils": "^3.21.0"
},
@@ -2489,9 +2125,9 @@
}
},
"node_modules/@typescript-eslint/types": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.7.tgz",
- "integrity": "sha512-UnVS2MRRg6p7xOSATscWkKjlf/NDKuqo5TdbWck6rIRZbmKpVNTLALzNvcjIfHBE7736kZOFc/4Z3VcZwuOM/A==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.8.tgz",
+ "integrity": "sha512-+uWuOhBTj/L6awoWIg0BlWy0u9TyFpCHrAuQ5bNfxDaZ1Ppb3mx6tUigc74LHcbHpOHuOTOJrBoAnhdHdaea1w==",
"dev": true,
"engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@@ -2502,13 +2138,13 @@
}
},
"node_modules/@typescript-eslint/typescript-estree": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.7.tgz",
- "integrity": "sha512-4A1NtZ1I3wMN2UGDkU9HMBL+TIQfbrh4uS0WDMMpf3xMRursDbqEf1ahh6vAAe3mObt8k3ZATnezwG4pdtWuUQ==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.8.tgz",
+ "integrity": "sha512-Jy/lPSDJGNow14vYu6IrW790p7HIf/SOV1Bb6lZ7NUkLc2iB2Z9elESmsaUtLw8kVqogSbtLH9tut5GCX1RLDg==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.59.7",
- "@typescript-eslint/visitor-keys": "5.59.7",
+ "@typescript-eslint/types": "5.59.8",
+ "@typescript-eslint/visitor-keys": "5.59.8",
"debug": "^4.3.4",
"globby": "^11.1.0",
"is-glob": "^4.0.3",
@@ -2529,17 +2165,17 @@
}
},
"node_modules/@typescript-eslint/utils": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.7.tgz",
- "integrity": "sha512-yCX9WpdQKaLufz5luG4aJbOpdXf/fjwGMcLFXZVPUz3QqLirG5QcwwnIHNf8cjLjxK4qtzTO8udUtMQSAToQnQ==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.8.tgz",
+ "integrity": "sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg==",
"dev": true,
"dependencies": {
"@eslint-community/eslint-utils": "^4.2.0",
"@types/json-schema": "^7.0.9",
"@types/semver": "^7.3.12",
- "@typescript-eslint/scope-manager": "5.59.7",
- "@typescript-eslint/types": "5.59.7",
- "@typescript-eslint/typescript-estree": "5.59.7",
+ "@typescript-eslint/scope-manager": "5.59.8",
+ "@typescript-eslint/types": "5.59.8",
+ "@typescript-eslint/typescript-estree": "5.59.8",
"eslint-scope": "^5.1.1",
"semver": "^7.3.7"
},
@@ -2555,12 +2191,12 @@
}
},
"node_modules/@typescript-eslint/visitor-keys": {
- "version": "5.59.7",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.7.tgz",
- "integrity": "sha512-tyN+X2jvMslUszIiYbF0ZleP+RqQsFVpGrKI6e0Eet1w8WmhsAtmzaqm8oM8WJQ1ysLwhnsK/4hYHJjOgJVfQQ==",
+ "version": "5.59.8",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.8.tgz",
+ "integrity": "sha512-pJhi2ms0x0xgloT7xYabil3SGGlojNNKjK/q6dB3Ey0uJLMjK2UDGJvHieiyJVW/7C3KI+Z4Q3pEHkm4ejA+xQ==",
"dev": true,
"dependencies": {
- "@typescript-eslint/types": "5.59.7",
+ "@typescript-eslint/types": "5.59.8",
"eslint-visitor-keys": "^3.3.0"
},
"engines": {
@@ -2571,11 +2207,6 @@
"url": "https://opencollective.com/typescript-eslint"
}
},
- "node_modules/@yarnpkg/lockfile": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz",
- "integrity": "sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ=="
- },
"node_modules/acorn": {
"version": "8.8.2",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
@@ -2626,7 +2257,7 @@
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",
"integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",
- "devOptional": true,
+ "dev": true,
"engines": {
"node": ">=8"
}
@@ -2635,6 +2266,7 @@
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
+ "dev": true,
"dependencies": {
"color-convert": "^2.0.1"
},
@@ -2662,58 +2294,6 @@
"node": ">= 8"
}
},
- "node_modules/aproba": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
- "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==",
- "optional": true
- },
- "node_modules/are-we-there-yet": {
- "version": "1.1.7",
- "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.7.tgz",
- "integrity": "sha512-nxwy40TuMiUGqMyRHgCSWZ9FM4VAoRP4xUYSTv5ImRog+h9yISPbVH7H8fASCIzYn9wlEv4zvFL7uKDMCFQm3g==",
- "optional": true,
- "dependencies": {
- "delegates": "^1.0.0",
- "readable-stream": "^2.0.6"
- }
- },
- "node_modules/are-we-there-yet/node_modules/isarray": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz",
- "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==",
- "optional": true
- },
- "node_modules/are-we-there-yet/node_modules/readable-stream": {
- "version": "2.3.8",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz",
- "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==",
- "optional": true,
- "dependencies": {
- "core-util-is": "~1.0.0",
- "inherits": "~2.0.3",
- "isarray": "~1.0.0",
- "process-nextick-args": "~2.0.0",
- "safe-buffer": "~5.1.1",
- "string_decoder": "~1.1.1",
- "util-deprecate": "~1.0.1"
- }
- },
- "node_modules/are-we-there-yet/node_modules/safe-buffer": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz",
- "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==",
- "optional": true
- },
- "node_modules/are-we-there-yet/node_modules/string_decoder": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz",
- "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==",
- "optional": true,
- "dependencies": {
- "safe-buffer": "~5.1.0"
- }
- },
"node_modules/arg": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",
@@ -2840,32 +2420,6 @@
"integrity": "sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==",
"dev": true
},
- "node_modules/asynckit": {
- "version": "0.4.0",
- "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
- "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
- },
- "node_modules/at-least-node": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/at-least-node/-/at-least-node-1.0.0.tgz",
- "integrity": "sha512-+q/t7Ekv1EDY2l6Gda6LLiX14rU9TV20Wa3ofeQmwPFZbOMo9DXrLbOjFaaclkXKWidIaopwAObQDqwWtGUjqg==",
- "engines": {
- "node": ">= 4.0.0"
- }
- },
- "node_modules/autolinker": {
- "version": "3.16.2",
- "resolved": "https://registry.npmjs.org/autolinker/-/autolinker-3.16.2.tgz",
- "integrity": "sha512-JiYl7j2Z19F9NdTmirENSUUIIL/9MytEWtmzhfmsKPCp9E+G35Y0UNCMoM9tFigxT59qSc8Ml2dlZXOCVTYwuA==",
- "dependencies": {
- "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",
@@ -2948,24 +2502,10 @@
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",
"integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw=="
},
- "node_modules/base64-js": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz",
- "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
+ "node_modules/bcryptjs": {
+ "version": "2.4.3",
+ "resolved": "https://registry.npmjs.org/bcryptjs/-/bcryptjs-2.4.3.tgz",
+ "integrity": "sha512-V/Hy/X9Vt7f3BbPJEi8BdVFMByHi+jNXrYkW3huaybV/kQ0KJg0Y6PkEMbn+zeT+i+SiKZ/HMqJGIIt4LZDqNQ=="
},
"node_modules/big-integer": {
"version": "1.6.51",
@@ -2984,17 +2524,6 @@
"node": ">=8"
}
},
- "node_modules/bl": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz",
- "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==",
- "optional": true,
- "dependencies": {
- "buffer": "^5.5.0",
- "inherits": "^2.0.4",
- "readable-stream": "^3.4.0"
- }
- },
"node_modules/bplist-parser": {
"version": "0.2.0",
"resolved": "https://registry.npmjs.org/bplist-parser/-/bplist-parser-0.2.0.tgz",
@@ -3028,9 +2557,9 @@
}
},
"node_modules/browserslist": {
- "version": "4.21.5",
- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.5.tgz",
- "integrity": "sha512-tUkiguQGW7S3IhB7N+c2MV/HZPSCPAAiYBZXLsBhFB/PCy6ZKKsZrmBayHV9fdGV/ARIfJ14NkxKzRDjvp7L6w==",
+ "version": "4.21.7",
+ "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz",
+ "integrity": "sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA==",
"dev": true,
"funding": [
{
@@ -3040,13 +2569,17 @@
{
"type": "tidelift",
"url": "https://tidelift.com/funding/github/npm/browserslist"
+ },
+ {
+ "type": "github",
+ "url": "https://github.com/sponsors/ai"
}
],
"dependencies": {
- "caniuse-lite": "^1.0.30001449",
- "electron-to-chromium": "^1.4.284",
- "node-releases": "^2.0.8",
- "update-browserslist-db": "^1.0.10"
+ "caniuse-lite": "^1.0.30001489",
+ "electron-to-chromium": "^1.4.411",
+ "node-releases": "^2.0.12",
+ "update-browserslist-db": "^1.0.11"
},
"bin": {
"browserslist": "cli.js"
@@ -3055,30 +2588,6 @@
"node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"
}
},
- "node_modules/buffer": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz",
- "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "optional": true,
- "dependencies": {
- "base64-js": "^1.3.1",
- "ieee754": "^1.1.13"
- }
- },
"node_modules/bundle-name": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-3.0.0.tgz",
@@ -3109,6 +2618,7 @@
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz",
"integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==",
+ "dev": true,
"dependencies": {
"function-bind": "^1.1.1",
"get-intrinsic": "^1.0.2"
@@ -3139,9 +2649,9 @@
}
},
"node_modules/caniuse-lite": {
- "version": "1.0.30001489",
- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001489.tgz",
- "integrity": "sha512-x1mgZEXK8jHIfAxm+xgdpHpk50IN3z3q3zP261/WS+uvePxW8izXuCu6AHz0lkuYTlATDehiZ/tNyYBdSQsOUQ==",
+ "version": "1.0.30001492",
+ "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001492.tgz",
+ "integrity": "sha512-2efF8SAZwgAX1FJr87KWhvuJxnGJKOnctQa8xLOskAXNXq8oiuqgl6u1kk3fFpsp3GgvzlRjiK1sl63hNtFADw==",
"funding": [
{
"type": "opencollective",
@@ -3161,6 +2671,7 @@
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
+ "dev": true,
"dependencies": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
@@ -3172,33 +2683,6 @@
"url": "https://github.com/chalk/chalk?sponsor=1"
}
},
- "node_modules/character-entities": {
- "version": "1.2.4",
- "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-1.2.4.tgz",
- "integrity": "sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/character-entities-legacy": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz",
- "integrity": "sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/character-reference-invalid": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz",
- "integrity": "sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"node_modules/chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
@@ -3236,17 +2720,6 @@
"node": ">= 6"
}
},
- "node_modules/chownr": {
- "version": "1.1.4",
- "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz",
- "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==",
- "optional": true
- },
- "node_modules/ci-info": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz",
- "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ=="
- },
"node_modules/class-variance-authority": {
"version": "0.6.0",
"resolved": "https://registry.npmjs.org/class-variance-authority/-/class-variance-authority-0.6.0.tgz",
@@ -3272,12 +2745,12 @@
"integrity": "sha512-CSbhY4cFEJRe6/GQzIk5qXZ4Jeg5pcsP7b5peFSDpffpe1cqjASH/n9UTjBwOp6XpMSTwQ8Za2K5V02ueA7Tmw=="
},
"node_modules/cleye": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/cleye/-/cleye-1.2.1.tgz",
- "integrity": "sha512-DjoWA/dFn1rQypY4juFH4IvjVxXxld4o92bmkGPR+uZNqBMpvDXx1VUmL93p2R5CBwSWt83eEe/SLPqtQahZNg==",
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/cleye/-/cleye-1.3.2.tgz",
+ "integrity": "sha512-MngIC2izcCz07iRKr3Pe8Z6ZBv4zbKFl/YnQEN/aMHis6PpH+MxI2e6n0bMUAmSVlMoAyQkdBCSTbfDmtcSovQ==",
"dependencies": {
"terminal-columns": "^1.4.1",
- "type-flag": "^2.1.0"
+ "type-flag": "^3.0.0"
},
"funding": {
"url": "https://github.com/privatenumber/cleye?sponsor=1"
@@ -3542,24 +3015,11 @@
}
}
},
- "node_modules/cmdk/node_modules/tslib": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
- "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA=="
- },
- "node_modules/code-point-at": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz",
- "integrity": "sha512-RpAVKQA5T63xEj6/giIbUEtZwJ4UFIc3ZtvEkiaUERylqe8xb5IvqcgOurZLahv93CLKfxcw5YI+DZcUBRyLXA==",
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
+ "dev": true,
"dependencies": {
"color-name": "~1.1.4"
},
@@ -3570,44 +3030,27 @@
"node_modules/color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="
- },
- "node_modules/combined-stream": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
- "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==",
- "dependencies": {
- "delayed-stream": "~1.0.0"
- },
- "engines": {
- "node": ">= 0.8"
- }
- },
- "node_modules/comma-separated-tokens": {
- "version": "1.0.8",
- "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-1.0.8.tgz",
- "integrity": "sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
+ "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
+ "dev": true
},
"node_modules/command-score": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/command-score/-/command-score-0.1.2.tgz",
"integrity": "sha512-VtDvQpIJBvBatnONUsPzXYFVKQQAhuf3XTNOAsdBxCNO/QCtUUd8LSgjn0GVarBkCad6aJCZfXgrjYbl/KRr7w=="
},
+ "node_modules/commander": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz",
+ "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q==",
+ "engines": {
+ "node": ">= 6"
+ }
+ },
"node_modules/concat-map": {
"version": "0.0.1",
"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",
"integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="
},
- "node_modules/console-control-strings": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
- "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==",
- "optional": true
- },
"node_modules/convert-source-map": {
"version": "1.9.0",
"resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz",
@@ -3635,30 +3078,6 @@
"url": "https://github.com/sponsors/mesqueeb"
}
},
- "node_modules/copy-to-clipboard": {
- "version": "3.3.3",
- "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.3.tgz",
- "integrity": "sha512-2KV8NhB5JqC3ky0r9PMCAZKbUHSwtEo4CwCs0KXgruG43gX5PMqDEBbVU4OUzw2MuAWUfsuFmWvEKG5QRfSnJA==",
- "dependencies": {
- "toggle-selection": "^1.0.6"
- }
- },
- "node_modules/core-js-pure": {
- "version": "3.30.2",
- "resolved": "https://registry.npmjs.org/core-js-pure/-/core-js-pure-3.30.2.tgz",
- "integrity": "sha512-p/npFUJXXBkCCTIlEGBdghofn00jWG6ZOtdoIXSJmAu2QBvN0IqpZXWweOytcwE6cfx8ZvVUy1vw8zxhe4Y2vg==",
- "hasInstallScript": true,
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/core-js"
- }
- },
- "node_modules/core-util-is": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
- "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
- "optional": true
- },
"node_modules/cors": {
"version": "2.8.5",
"resolved": "https://registry.npmjs.org/cors/-/cors-2.8.5.tgz",
@@ -3692,14 +3111,6 @@
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==",
"devOptional": true
},
- "node_modules/cross-fetch": {
- "version": "3.1.6",
- "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz",
- "integrity": "sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==",
- "dependencies": {
- "node-fetch": "^2.6.11"
- }
- },
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -3719,11 +3130,6 @@
"resolved": "https://registry.npmjs.org/css-unit-converter/-/css-unit-converter-1.1.2.tgz",
"integrity": "sha512-IiJwMC8rdZE0+xiEZHeru6YoONC4rfPMqGm2W85jMIbkFvv5nFTwJVFHam2eFrN6txmoUYFAFXiv8ICVeTO0MA=="
},
- "node_modules/css.escape": {
- "version": "1.5.1",
- "resolved": "https://registry.npmjs.org/css.escape/-/css.escape-1.5.1.tgz",
- "integrity": "sha512-YUifsXXuknHlUsmlgyY0PKzgPOr7/FjCePfHNt0jxm83wHZi44VDMQ7/fGNkjY3/jV1MC+1CmZbaHzugyeRtpg=="
- },
"node_modules/cssesc": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",
@@ -3741,9 +3147,9 @@
"integrity": "sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ=="
},
"node_modules/d3-array": {
- "version": "3.2.3",
- "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.3.tgz",
- "integrity": "sha512-JRHwbQQ84XuAESWhvIPaUV4/1UYTBOLiOPGWqgFDHZS1D5QN9c57FbH3QpEnQMYiOXNzKUQyGTZf+EVO7RT5TQ==",
+ "version": "3.2.4",
+ "resolved": "https://registry.npmjs.org/d3-array/-/d3-array-3.2.4.tgz",
+ "integrity": "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==",
"dependencies": {
"internmap": "1 - 2"
},
@@ -3878,18 +3284,6 @@
"resolved": "https://registry.npmjs.org/decimal.js-light/-/decimal.js-light-2.5.1.tgz",
"integrity": "sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg=="
},
- "node_modules/decompress-response": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz",
- "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",
- "optional": true,
- "dependencies": {
- "mimic-response": "^2.0.0"
- },
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/deep-equal": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.1.tgz",
@@ -3919,28 +3313,12 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/deep-extend": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz",
- "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==",
- "engines": {
- "node": ">=4.0.0"
- }
- },
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
"integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",
"dev": true
},
- "node_modules/deepmerge": {
- "version": "4.3.1",
- "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",
- "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/default-browser": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/default-browser/-/default-browser-4.0.0.tgz",
@@ -4003,32 +3381,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/delayed-stream": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz",
- "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==",
- "engines": {
- "node": ">=0.4.0"
- }
- },
- "node_modules/delegates": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",
- "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==",
- "optional": true
- },
- "node_modules/detect-libc": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz",
- "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==",
- "optional": true,
- "bin": {
- "detect-libc": "bin/detect-libc.js"
- },
- "engines": {
- "node": ">=0.10"
- }
- },
"node_modules/detect-node-es": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/detect-node-es/-/detect-node-es-1.1.0.tgz",
@@ -4076,23 +3428,18 @@
"node": ">=6.0.0"
}
},
- "node_modules/dompurify": {
- "version": "3.0.2",
- "resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.0.2.tgz",
- "integrity": "sha512-B8c6JdiEpxAKnd8Dm++QQxJL4lfuc757scZtcapj6qjTjrQzyq5iAyznLKVvK+77eYNiFblHBlt7MM0fOeqoKw=="
- },
- "node_modules/drange": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/drange/-/drange-1.1.1.tgz",
- "integrity": "sha512-pYxfDYpued//QpnLIm4Avk7rsNtAtQkUES2cwAYSvD/wd2pKD71gN2Ebj3e7klzXwjocvE8c5vx/1fxwpqmSxA==",
- "engines": {
- "node": ">=4"
+ "node_modules/dom-helpers": {
+ "version": "3.4.0",
+ "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-3.4.0.tgz",
+ "integrity": "sha512-LnuPJ+dwqKDIyotW1VzmOZ5TONUN7CwkCR5hrgawTUbkBGYdeoNLZo6nNfGkCrjtE1nXXaj7iMMpDa8/d9WoIA==",
+ "dependencies": {
+ "@babel/runtime": "^7.1.2"
}
},
"node_modules/electron-to-chromium": {
- "version": "1.4.410",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.410.tgz",
- "integrity": "sha512-Zz3WQOHepTpdUXt6h6LG1qAY0Tb1yh91YYHa4M63Hr6AJ4n/OVnANfP5dhYx2ZQLEL/T0Qeyebjz3kELUc32zQ==",
+ "version": "1.4.414",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.414.tgz",
+ "integrity": "sha512-RRuCvP6ekngVh2SAJaOKT/hxqc9JAsK+Pe0hP5tGQIfonU2Zy9gMGdJ+mBdyl/vNucMG6gkXYtuM4H/1giws5w==",
"dev": true
},
"node_modules/emoji-regex": {
@@ -4101,15 +3448,6 @@
"integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",
"dev": true
},
- "node_modules/end-of-stream": {
- "version": "1.4.4",
- "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz",
- "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==",
- "optional": true,
- "dependencies": {
- "once": "^1.4.0"
- }
- },
"node_modules/enhanced-resolve": {
"version": "5.14.1",
"resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz",
@@ -4494,6 +3832,18 @@
"node": ">=0.10.0"
}
},
+ "node_modules/eslint-plugin-import/node_modules/json5": {
+ "version": "1.0.2",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
+ "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
+ "dev": true,
+ "dependencies": {
+ "minimist": "^1.2.0"
+ },
+ "bin": {
+ "json5": "lib/cli.js"
+ }
+ },
"node_modules/eslint-plugin-import/node_modules/semver": {
"version": "6.3.0",
"resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",
@@ -4503,6 +3853,18 @@
"semver": "bin/semver.js"
}
},
+ "node_modules/eslint-plugin-import/node_modules/tsconfig-paths": {
+ "version": "3.14.2",
+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz",
+ "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==",
+ "dev": true,
+ "dependencies": {
+ "@types/json5": "^0.0.29",
+ "json5": "^1.0.2",
+ "minimist": "^1.2.6",
+ "strip-bom": "^3.0.0"
+ }
+ },
"node_modules/eslint-plugin-jsx-a11y": {
"version": "6.7.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.7.1.tgz",
@@ -4757,42 +4119,6 @@
"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",
- "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==",
- "optional": true,
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/fast-deep-equal": {
"version": "3.1.3",
"resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",
@@ -4833,11 +4159,6 @@
"node": ">= 6"
}
},
- "node_modules/fast-json-patch": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/fast-json-patch/-/fast-json-patch-3.1.1.tgz",
- "integrity": "sha512-vf6IHUX2SBcA+5/+4883dsIjpBTqmfBjmYiWK1savxQmFk4JfBMLa7ynTYOs1Rolp/T1betJxHiGD3g1Mn8lUQ=="
- },
"node_modules/fast-json-stable-stringify": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",
@@ -4858,18 +4179,6 @@
"reusify": "^1.0.4"
}
},
- "node_modules/fault": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/fault/-/fault-1.0.4.tgz",
- "integrity": "sha512-CJ0HCB5tL5fYTEA7ToAq5+kTwd++Borf1/bifxd9iT70QcXr4MRrO3Llf8Ifs70q+SJcGHFtnIE/Nw6giCtECA==",
- "dependencies": {
- "format": "^0.2.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"node_modules/file-entry-cache": {
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",
@@ -4914,14 +4223,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/find-yarn-workspace-root": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/find-yarn-workspace-root/-/find-yarn-workspace-root-2.0.0.tgz",
- "integrity": "sha512-1IMnbjt4KzsQfnhnzNd8wUEgXZ44IzZaZmnLYx7D5FZlaHt2gW20Cri8Q+E/t5tIj4+epTBub+2Zxu/vNILzqQ==",
- "dependencies": {
- "micromatch": "^4.0.2"
- }
- },
"node_modules/flat-cache": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.0.4.tgz",
@@ -4941,25 +4242,6 @@
"integrity": "sha512-5nqDSxl8nn5BSNxyR3n4I6eDmbolI6WT+QqR547RwxQapgjQBmtktdP+HTBb/a/zLsbzERTONyUB5pefh5TtjQ==",
"dev": true
},
- "node_modules/follow-redirects": {
- "version": "1.15.2",
- "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz",
- "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==",
- "funding": [
- {
- "type": "individual",
- "url": "https://github.com/sponsors/RubenVerborgh"
- }
- ],
- "engines": {
- "node": ">=4.0"
- },
- "peerDependenciesMeta": {
- "debug": {
- "optional": true
- }
- }
- },
"node_modules/for-each": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/for-each/-/for-each-0.3.3.tgz",
@@ -4969,44 +4251,6 @@
"is-callable": "^1.1.3"
}
},
- "node_modules/form-data": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz",
- "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==",
- "dependencies": {
- "asynckit": "^0.4.0",
- "combined-stream": "^1.0.8",
- "mime-types": "^2.1.12"
- },
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/form-data-encoder": {
- "version": "1.9.0",
- "resolved": "https://registry.npmjs.org/form-data-encoder/-/form-data-encoder-1.9.0.tgz",
- "integrity": "sha512-rahaRMkN8P8d/tgK/BLPX+WBVM27NbvdXBxqQujBtkDAIFspaRqN7Od7lfdGQA6KAD+f82fYCLBq1ipvcu8qLw=="
- },
- "node_modules/format": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/format/-/format-0.2.2.tgz",
- "integrity": "sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==",
- "engines": {
- "node": ">=0.4.x"
- }
- },
- "node_modules/formdata-node": {
- "version": "4.4.1",
- "resolved": "https://registry.npmjs.org/formdata-node/-/formdata-node-4.4.1.tgz",
- "integrity": "sha512-0iirZp3uVDjVGt9p49aTaqjk84TrglENEDuqfdlZQ1roC9CWlPk6Avf8EEnZNcAqPonwkG35x4n3ww/1THYAeQ==",
- "dependencies": {
- "node-domexception": "1.0.0",
- "web-streams-polyfill": "4.0.0-beta.3"
- },
- "engines": {
- "node": ">= 12.20"
- }
- },
"node_modules/fraction.js": {
"version": "4.2.0",
"resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.2.0.tgz",
@@ -5020,12 +4264,6 @@
"url": "https://www.patreon.com/infusion"
}
},
- "node_modules/fs-constants": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz",
- "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==",
- "optional": true
- },
"node_modules/fs.realpath": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",
@@ -5076,89 +4314,27 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/gauge": {
- "version": "2.7.4",
- "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz",
- "integrity": "sha512-14x4kjc6lkD3ltw589k0NrPD6cCNTD6CWoVUNpB85+DrtONoZn+Rug6xZU5RvSC4+TZPxA5AnBibQYAvZn41Hg==",
- "optional": true,
+ "node_modules/get-intrinsic": {
+ "version": "1.2.1",
+ "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
+ "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
+ "dev": true,
"dependencies": {
- "aproba": "^1.0.3",
- "console-control-strings": "^1.0.0",
- "has-unicode": "^2.0.0",
- "object-assign": "^4.1.0",
- "signal-exit": "^3.0.0",
- "string-width": "^1.0.1",
- "strip-ansi": "^3.0.1",
- "wide-align": "^1.1.0"
+ "function-bind": "^1.1.1",
+ "has": "^1.0.3",
+ "has-proto": "^1.0.1",
+ "has-symbols": "^1.0.3"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/gauge/node_modules/ansi-regex": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
- "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
- "optional": true,
+ "node_modules/get-nonce": {
+ "version": "1.0.1",
+ "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
+ "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
"engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/gauge/node_modules/is-fullwidth-code-point": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
- "integrity": "sha512-1pqUqRjkhPJ9miNq9SwMfdvi6lBJcd6eFxvfaivQhaH3SgisfiuudvFntdKOmxuee/77l+FPjKrQjWvmPjWrRw==",
- "optional": true,
- "dependencies": {
- "number-is-nan": "^1.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/gauge/node_modules/string-width": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
- "integrity": "sha512-0XsVpQLnVCXHJfyEs8tC0zpTVIr5PKKsQtkT29IwupnPTjtPmQ3xT/4yCREF9hYkV/3M3kzcUTSAZT6a6h81tw==",
- "optional": true,
- "dependencies": {
- "code-point-at": "^1.0.0",
- "is-fullwidth-code-point": "^1.0.0",
- "strip-ansi": "^3.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/gauge/node_modules/strip-ansi": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
- "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
- "optional": true,
- "dependencies": {
- "ansi-regex": "^2.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/get-intrinsic": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.1.tgz",
- "integrity": "sha512-2DcsyfABl+gVHEfCOaTrWgyt+tb6MSEGmKq+kI5HwLbIYgjgmMcV8KQ41uaKz1xxUcn9tJtgFbQUEVcEbd0FYw==",
- "dependencies": {
- "function-bind": "^1.1.1",
- "has": "^1.0.3",
- "has-proto": "^1.0.1",
- "has-symbols": "^1.0.3"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/get-nonce": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/get-nonce/-/get-nonce-1.0.1.tgz",
- "integrity": "sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==",
- "engines": {
- "node": ">=6"
+ "node": ">=6"
}
},
"node_modules/get-stream": {
@@ -5190,24 +4366,22 @@
}
},
"node_modules/get-tsconfig": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.5.0.tgz",
- "integrity": "sha512-MjhiaIWCJ1sAU4pIQ5i5OfOuHHxVo1oYeNsWTON7jxYkod8pHocXeh+SSbmu5OZZZK73B6cbJ2XADzXehLyovQ==",
+ "version": "4.6.0",
+ "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.6.0.tgz",
+ "integrity": "sha512-lgbo68hHTQnFddybKbbs/RDRJnJT5YyGy2kQzVwbq+g67X73i+5MVTval34QxGkOe9X5Ujf1UYpCaphLyltjEg==",
"dev": true,
+ "dependencies": {
+ "resolve-pkg-maps": "^1.0.0"
+ },
"funding": {
"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
}
},
- "node_modules/github-from-package": {
- "version": "0.0.0",
- "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz",
- "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==",
- "optional": true
- },
"node_modules/glob": {
- "version": "7.1.6",
- "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz",
- "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==",
+ "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",
@@ -5299,7 +4473,8 @@
"node_modules/graceful-fs": {
"version": "4.2.11",
"resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",
- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ=="
+ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",
+ "dev": true
},
"node_modules/grapheme-splitter": {
"version": "1.0.4",
@@ -5337,6 +4512,7 @@
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
+ "dev": true,
"engines": {
"node": ">=8"
}
@@ -5357,6 +4533,7 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/has-proto/-/has-proto-1.0.1.tgz",
"integrity": "sha512-7qE+iP+O+bgF9clE5+UoBFzE65mlBiVj3tKCrlNQ0Ogwm0BjpT/gK4SlLYDMybDh5I3TCTKnPPa0oMG7JDYrhg==",
+ "dev": true,
"engines": {
"node": ">= 0.4"
},
@@ -5368,6 +4545,7 @@
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz",
"integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==",
+ "dev": true,
"engines": {
"node": ">= 0.4"
},
@@ -5390,45 +4568,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/has-unicode": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",
- "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==",
- "optional": true
- },
- "node_modules/hast-util-parse-selector": {
- "version": "2.2.5",
- "resolved": "https://registry.npmjs.org/hast-util-parse-selector/-/hast-util-parse-selector-2.2.5.tgz",
- "integrity": "sha512-7j6mrk/qqkSehsM92wQjdIgWM2/BW61u/53G6xmC8i1OmEdKLHbk419QKQUjz6LglWsfqoiHmyMRkP1BGjecNQ==",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/hastscript": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/hastscript/-/hastscript-6.0.0.tgz",
- "integrity": "sha512-nDM6bvd7lIqDUiYEiu5Sl/+6ReP0BMk/2f4U/Rooccxkj0P5nm+acM5PrGJ/t5I8qPGiqZSE6hVAwZEdZIvP4w==",
- "dependencies": {
- "@types/hast": "^2.0.0",
- "comma-separated-tokens": "^1.0.0",
- "hast-util-parse-selector": "^2.0.0",
- "property-information": "^5.0.0",
- "space-separated-tokens": "^1.0.0"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/unified"
- }
- },
- "node_modules/highlight.js": {
- "version": "10.7.3",
- "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-10.7.3.tgz",
- "integrity": "sha512-tzcUFauisWKNHaRkN4Wjl/ZA07gENAjFl3J/c480dprkGTg5EQstgaNFqBfUqCq54kZRIEcreTsAgF/m2quD7A==",
- "engines": {
- "node": "*"
- }
- },
"node_modules/hoist-non-react-statics": {
"version": "3.3.2",
"resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz",
@@ -5437,11 +4576,6 @@
"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",
@@ -5451,25 +4585,6 @@
"node": ">=14.18.0"
}
},
- "node_modules/ieee754": {
- "version": "1.2.1",
- "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz",
- "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
"node_modules/ignore": {
"version": "5.2.4",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",
@@ -5479,14 +4594,6 @@
"node": ">= 4"
}
},
- "node_modules/immutable": {
- "version": "3.8.2",
- "resolved": "https://registry.npmjs.org/immutable/-/immutable-3.8.2.tgz",
- "integrity": "sha512-15gZoQ38eYjEjxkorfbcgBKBL6R7T459OuK+CpcWt7O3KF4uPCx2tD0uFETlUDIyo+1789crbMhTvQBSR5yBMg==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/import-fresh": {
"version": "3.3.0",
"resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.0.tgz",
@@ -5525,12 +4632,6 @@
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
},
- "node_modules/ini": {
- "version": "1.3.8",
- "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz",
- "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==",
- "optional": true
- },
"node_modules/internal-slot": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.5.tgz",
@@ -5561,28 +4662,6 @@
"loose-envify": "^1.0.0"
}
},
- "node_modules/is-alphabetical": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-1.0.4.tgz",
- "integrity": "sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/is-alphanumerical": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz",
- "integrity": "sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A==",
- "dependencies": {
- "is-alphabetical": "^1.0.0",
- "is-decimal": "^1.0.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"node_modules/is-arguments": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/is-arguments/-/is-arguments-1.1.1.tgz",
@@ -5669,17 +4748,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-ci": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz",
- "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==",
- "dependencies": {
- "ci-info": "^2.0.0"
- },
- "bin": {
- "is-ci": "bin.js"
- }
- },
"node_modules/is-core-module": {
"version": "2.12.1",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.12.1.tgz",
@@ -5706,19 +4774,11 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/is-decimal": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-1.0.4.tgz",
- "integrity": "sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"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==",
+ "dev": true,
"bin": {
"is-docker": "cli.js"
},
@@ -5737,15 +4797,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "optional": true,
- "engines": {
- "node": ">=8"
- }
- },
"node_modules/is-glob": {
"version": "4.0.3",
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
@@ -5757,15 +4808,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/is-hexadecimal": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz",
- "integrity": "sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"node_modules/is-inside-container": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-inside-container/-/is-inside-container-1.0.0.tgz",
@@ -5852,14 +4894,6 @@
"node": ">=8"
}
},
- "node_modules/is-plain-object": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz",
- "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/is-regex": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/is-regex/-/is-regex-1.1.4.tgz",
@@ -5993,9 +5027,9 @@
}
},
"node_modules/is-what": {
- "version": "4.1.11",
- "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.11.tgz",
- "integrity": "sha512-gr9+qDrJvdwT4+N2TAACsZQIB4Ow9j2eefqlh3m9JUV41M1LoKhcE+/j+IVni/r6U8Jnc1PwhjdjVJr+Xmtb0A==",
+ "version": "4.1.12",
+ "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.12.tgz",
+ "integrity": "sha512-w7JwFt3gIzbzpp+I//2Ov2UeTGgKM10PxJRD6yf7yGruT3415CdT8TDR6F9/mBAakZKsIaysQVVvxryctQUbnw==",
"engines": {
"node": ">=12.13"
},
@@ -6007,6 +5041,7 @@
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-2.2.0.tgz",
"integrity": "sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww==",
+ "dev": true,
"dependencies": {
"is-docker": "^2.0.0"
},
@@ -6022,7 +5057,8 @@
"node_modules/isexe": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",
- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw=="
+ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",
+ "dev": true
},
"node_modules/jiti": {
"version": "1.18.2",
@@ -6040,11 +5076,6 @@
"url": "https://github.com/sponsors/panva"
}
},
- "node_modules/js-file-download": {
- "version": "0.4.12",
- "resolved": "https://registry.npmjs.org/js-file-download/-/js-file-download-0.4.12.tgz",
- "integrity": "sha512-rML+NkoD08p5Dllpjo0ffy4jRHeY6Zsapvr/W86N7E0yuzAO6qa5X9+xog6zQNlH102J7IXljNY2FtS6Lj3ucg=="
- },
"node_modules/js-tokens": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@@ -6079,26 +5110,15 @@
"dev": true
},
"node_modules/json5": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.2.tgz",
- "integrity": "sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA==",
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",
+ "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",
"dev": true,
- "dependencies": {
- "minimist": "^1.2.0"
- },
"bin": {
"json5": "lib/cli.js"
- }
- },
- "node_modules/jsonfile": {
- "version": "6.1.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.1.0.tgz",
- "integrity": "sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ==",
- "dependencies": {
- "universalify": "^2.0.0"
},
- "optionalDependencies": {
- "graceful-fs": "^4.1.6"
+ "engines": {
+ "node": ">=6"
}
},
"node_modules/jsx-ast-utils": {
@@ -6114,14 +5134,6 @@
"node": ">=4.0"
}
},
- "node_modules/klaw-sync": {
- "version": "6.0.0",
- "resolved": "https://registry.npmjs.org/klaw-sync/-/klaw-sync-6.0.0.tgz",
- "integrity": "sha512-nIeuVSzdCCs6TDPTqI8w1Yre34sSq7AkZ4B3sfOBbI2CgVSB4Du4aLQijFU2+lhAFCwt9+42Hel6lQNIv6AntQ==",
- "dependencies": {
- "graceful-fs": "^4.1.11"
- }
- },
"node_modules/language-subtag-registry": {
"version": "0.3.22",
"resolved": "https://registry.npmjs.org/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz",
@@ -6183,11 +5195,6 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
- "node_modules/lodash.debounce": {
- "version": "4.0.8",
- "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
- "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow=="
- },
"node_modules/lodash.get": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
@@ -6220,19 +5227,6 @@
"loose-envify": "cli.js"
}
},
- "node_modules/lowlight": {
- "version": "1.20.0",
- "resolved": "https://registry.npmjs.org/lowlight/-/lowlight-1.20.0.tgz",
- "integrity": "sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==",
- "dependencies": {
- "fault": "^1.0.0",
- "highlight.js": "~10.7.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"node_modules/lru-cache": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz",
@@ -6245,9 +5239,9 @@
}
},
"node_modules/lucide-react": {
- "version": "0.221.0",
- "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.221.0.tgz",
- "integrity": "sha512-g99pn2/lBaCEAA0cbi4eaCO+3rY4mSfjCaDlo8Z30F0wk8MXoBXhCR1TaUS9cmNdOP9VGxgUpoB4qMg7/vyC8A==",
+ "version": "0.229.0",
+ "resolved": "https://registry.npmjs.org/lucide-react/-/lucide-react-0.229.0.tgz",
+ "integrity": "sha512-b0/KSFXhPi++vUbnYEDUgP8Z8Rw9MQpRfBr+dRZNPMT3FD1HrVgMHXhSpkm9ZrrEtuqIfHf/O+tAGmw4WOmIog==",
"peerDependencies": {
"react": "^16.5.1 || ^17.0.0 || ^18.0.0"
}
@@ -6284,41 +5278,13 @@
"node": ">=8.6"
}
},
- "node_modules/mime-db": {
- "version": "1.52.0",
- "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
- "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
- "engines": {
- "node": ">= 0.6"
- }
- },
- "node_modules/mime-types": {
- "version": "2.1.35",
- "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
- "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
- "dependencies": {
- "mime-db": "1.52.0"
- },
- "engines": {
- "node": ">= 0.6"
- }
- },
"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==",
+ "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": ">=6"
- }
- },
- "node_modules/mimic-response": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",
- "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",
- "optional": true,
- "engines": {
- "node": ">=8"
+ "node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
@@ -6332,17 +5298,6 @@
"mini-svg-data-uri": "cli.js"
}
},
- "node_modules/minim": {
- "version": "0.23.8",
- "resolved": "https://registry.npmjs.org/minim/-/minim-0.23.8.tgz",
- "integrity": "sha512-bjdr2xW1dBCMsMGGsUeqM4eFI60m94+szhxWys+B1ztIt6gWSfeGBdSVCIawezeHYLYn0j6zrsXdQS/JllBzww==",
- "dependencies": {
- "lodash": "^4.15.0"
- },
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/minimatch": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
@@ -6358,16 +5313,11 @@
"version": "1.2.8",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",
"integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",
+ "dev": true,
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/mkdirp-classic": {
- "version": "0.5.3",
- "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz",
- "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==",
- "optional": true
- },
"node_modules/ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
@@ -6384,12 +5334,6 @@
"thenify-all": "^1.0.0"
}
},
- "node_modules/nan": {
- "version": "2.17.0",
- "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz",
- "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ==",
- "optional": true
- },
"node_modules/nanoid": {
"version": "3.3.6",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
@@ -6407,12 +5351,6 @@
"node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
}
},
- "node_modules/napi-build-utils": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz",
- "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==",
- "optional": true
- },
"node_modules/natural-compare": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",
@@ -6502,13 +5440,14 @@
}
},
"node_modules/next-swagger-doc": {
- "version": "0.3.6",
- "resolved": "https://registry.npmjs.org/next-swagger-doc/-/next-swagger-doc-0.3.6.tgz",
- "integrity": "sha512-cfnWixZqBcOjitahkheK3+NVlpe+kSYh01SQlEuWJmRrj+2zeQrp9xOm4i50Ty0TGDZ95OLE2u8knyGpavX/BQ==",
+ "version": "0.4.0",
+ "resolved": "https://registry.npmjs.org/next-swagger-doc/-/next-swagger-doc-0.4.0.tgz",
+ "integrity": "sha512-5Wt19Av4tOHVdXPJ7xTVvDJuiWuP5OYnY13BSq5SIjMtktFfhX4/9yZyaMCXImbUECu26PALn9CpRQRplIXJ3w==",
"dependencies": {
- "cleye": "1.2.1",
+ "@types/swagger-jsdoc": "6.0.1",
+ "cleye": "1.3.2",
"isarray": "2.0.5",
- "swagger-jsdoc": "6.2.5"
+ "swagger-jsdoc": "6.2.8"
},
"bin": {
"next-swagger-doc-cli": "dist/cli.js"
@@ -6520,188 +5459,41 @@
"next": ">=9"
}
},
- "node_modules/next-swagger-doc/node_modules/@apidevtools/swagger-parser": {
- "version": "10.0.2",
- "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.0.2.tgz",
- "integrity": "sha512-JFxcEyp8RlNHgBCE98nwuTkZT6eNFPc1aosWV6wPcQph72TSEEu1k3baJD4/x1qznU+JiDdz8F5pTwabZh+Dhg==",
+ "node_modules/next/node_modules/postcss": {
+ "version": "8.4.14",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz",
+ "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==",
+ "funding": [
+ {
+ "type": "opencollective",
+ "url": "https://opencollective.com/postcss/"
+ },
+ {
+ "type": "tidelift",
+ "url": "https://tidelift.com/funding/github/npm/postcss"
+ }
+ ],
"dependencies": {
- "@apidevtools/json-schema-ref-parser": "^9.0.6",
- "@apidevtools/openapi-schemas": "^2.0.4",
- "@apidevtools/swagger-methods": "^3.0.2",
- "@jsdevtools/ono": "^7.1.3",
- "call-me-maybe": "^1.0.1",
- "z-schema": "^4.2.3"
+ "nanoid": "^3.3.4",
+ "picocolors": "^1.0.0",
+ "source-map-js": "^1.0.2"
},
- "peerDependencies": {
- "openapi-types": ">=7"
+ "engines": {
+ "node": "^10 || ^12 || >=14"
}
},
- "node_modules/next-swagger-doc/node_modules/commander": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz",
- "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q==",
+ "node_modules/node-releases": {
+ "version": "2.0.12",
+ "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz",
+ "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==",
+ "dev": true
+ },
+ "node_modules/normalize-path": {
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
+ "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
"engines": {
- "node": ">= 6"
- }
- },
- "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",
- "integrity": "sha512-l+cdsKS2y+QDhrH1TJSUiE0y9XKuf5xaGSatjf0hR/wjTlMpO8WfubBK9d/nASdbHPMtj9iJZLBH2ogBEhL7Sw==",
- "dependencies": {
- "commander": "6.2.0",
- "doctrine": "3.0.0",
- "glob": "7.1.6",
- "lodash.mergewith": "^4.6.2",
- "swagger-parser": "10.0.2",
- "yaml": "2.0.0-1"
- },
- "bin": {
- "swagger-jsdoc": "bin/swagger-jsdoc.js"
- },
- "engines": {
- "node": ">=12.0.0"
- }
- },
- "node_modules/next-swagger-doc/node_modules/swagger-parser": {
- "version": "10.0.2",
- "resolved": "https://registry.npmjs.org/swagger-parser/-/swagger-parser-10.0.2.tgz",
- "integrity": "sha512-9jHkHM+QXyLGFLk1DkXBwV+4HyNm0Za3b8/zk/+mjr8jgOSiqm3FOTHBSDsBjtn9scdL+8eWcHdupp2NLM8tDw==",
- "dependencies": {
- "@apidevtools/swagger-parser": "10.0.2"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/next-swagger-doc/node_modules/yaml": {
- "version": "2.0.0-1",
- "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.0.0-1.tgz",
- "integrity": "sha512-W7h5dEhywMKenDJh2iX/LABkbFnBxasD27oyXWDS/feDsxiw0dD5ncXdYXgkvAsXIY2MpW/ZKkr9IU30DBdMNQ==",
- "engines": {
- "node": ">= 6"
- }
- },
- "node_modules/next-swagger-doc/node_modules/z-schema": {
- "version": "4.2.4",
- "resolved": "https://registry.npmjs.org/z-schema/-/z-schema-4.2.4.tgz",
- "integrity": "sha512-YvBeW5RGNeNzKOUJs3rTL4+9rpcvHXt5I051FJbOcitV8bl40pEfcG0Q+dWSwS0/BIYrMZ/9HHoqLllMkFhD0w==",
- "dependencies": {
- "lodash.get": "^4.4.2",
- "lodash.isequal": "^4.5.0",
- "validator": "^13.6.0"
- },
- "bin": {
- "z-schema": "bin/z-schema"
- },
- "engines": {
- "node": ">=6.0.0"
- },
- "optionalDependencies": {
- "commander": "^2.7.1"
- }
- },
- "node_modules/next-swagger-doc/node_modules/z-schema/node_modules/commander": {
- "version": "2.20.3",
- "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz",
- "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==",
- "optional": true
- },
- "node_modules/next/node_modules/postcss": {
- "version": "8.4.14",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.14.tgz",
- "integrity": "sha512-E398TUmfAYFPBSdzgeieK2Y1+1cpdxJx8yXbK/m57nRhKSmk1GB2tO4lbLBtlkfPQTDKfe4Xqv1ASWPpayPEig==",
- "funding": [
- {
- "type": "opencollective",
- "url": "https://opencollective.com/postcss/"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/funding/github/npm/postcss"
- }
- ],
- "dependencies": {
- "nanoid": "^3.3.4",
- "picocolors": "^1.0.0",
- "source-map-js": "^1.0.2"
- },
- "engines": {
- "node": "^10 || ^12 || >=14"
- }
- },
- "node_modules/nice-try": {
- "version": "1.0.5",
- "resolved": "https://registry.npmjs.org/nice-try/-/nice-try-1.0.5.tgz",
- "integrity": "sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ=="
- },
- "node_modules/node-abi": {
- "version": "2.30.1",
- "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-2.30.1.tgz",
- "integrity": "sha512-/2D0wOQPgaUWzVSVgRMx+trKJRC2UG4SUc4oCJoXx9Uxjtp0Vy3/kt7zcbxHF8+Z/pK3UloLWzBISg72brfy1w==",
- "optional": true,
- "dependencies": {
- "semver": "^5.4.1"
- }
- },
- "node_modules/node-abi/node_modules/semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "optional": true,
- "bin": {
- "semver": "bin/semver"
- }
- },
- "node_modules/node-domexception": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz",
- "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/jimmywarting"
- },
- {
- "type": "github",
- "url": "https://paypal.me/jimmywarting"
- }
- ],
- "engines": {
- "node": ">=10.5.0"
- }
- },
- "node_modules/node-fetch": {
- "version": "2.6.11",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz",
- "integrity": "sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==",
- "dependencies": {
- "whatwg-url": "^5.0.0"
- },
- "engines": {
- "node": "4.x || >=6.0.0"
- },
- "peerDependencies": {
- "encoding": "^0.1.0"
- },
- "peerDependenciesMeta": {
- "encoding": {
- "optional": true
- }
- }
- },
- "node_modules/node-releases": {
- "version": "2.0.12",
- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz",
- "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==",
- "dev": true
- },
- "node_modules/normalize-path": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
- "engines": {
- "node": ">=0.10.0"
+ "node": ">=0.10.0"
}
},
"node_modules/normalize-range": {
@@ -6740,27 +5532,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/npmlog": {
- "version": "4.1.2",
- "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz",
- "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==",
- "optional": true,
- "dependencies": {
- "are-we-there-yet": "~1.1.2",
- "console-control-strings": "~1.1.0",
- "gauge": "~2.7.3",
- "set-blocking": "~2.0.0"
- }
- },
- "node_modules/number-is-nan": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz",
- "integrity": "sha512-4jbtZXNAsfZbAHiiqjLPBiCl16dES1zI4Hpzzxw61Tk+loF+sBDBKx1ICKKKwIqQ7M0mFn1TmkN7euSncWgHiQ==",
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/oauth": {
"version": "0.9.15",
"resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz",
@@ -6786,6 +5557,7 @@
"version": "1.12.3",
"resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz",
"integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==",
+ "dev": true,
"funding": {
"url": "https://github.com/sponsors/ljharb"
}
@@ -6911,30 +5683,15 @@
}
},
"node_modules/onetime": {
- "version": "5.1.2",
- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
+ "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": "^2.1.0"
- },
- "engines": {
- "node": ">=6"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "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"
+ "mimic-fn": "^4.0.0"
},
"engines": {
- "node": ">=8"
+ "node": ">=12"
},
"funding": {
"url": "https://github.com/sponsors/sindresorhus"
@@ -6977,14 +5734,6 @@
"node": ">= 0.8.0"
}
},
- "node_modules/os-tmpdir": {
- "version": "1.0.2",
- "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz",
- "integrity": "sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/p-limit": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",
@@ -7026,23 +5775,6 @@
"node": ">=6"
}
},
- "node_modules/parse-entities": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-2.0.0.tgz",
- "integrity": "sha512-kkywGpCcRYhqQIchaWqZ875wzpS/bMKhz5HnN3p7wveJTkTtyAB/AlnS0f8DFSqYW1T82t6yEAkEcB+A1I3MbQ==",
- "dependencies": {
- "character-entities": "^1.0.0",
- "character-entities-legacy": "^1.0.0",
- "character-reference-invalid": "^1.0.0",
- "is-alphanumerical": "^1.0.0",
- "is-decimal": "^1.0.0",
- "is-hexadecimal": "^1.0.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
"node_modules/parse-json": {
"version": "5.2.0",
"resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",
@@ -7060,128 +5792,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/patch-package": {
- "version": "6.5.1",
- "resolved": "https://registry.npmjs.org/patch-package/-/patch-package-6.5.1.tgz",
- "integrity": "sha512-I/4Zsalfhc6bphmJTlrLoOcAF87jcxko4q0qsv4bGcurbr8IskEOtdnt9iCmsQVGL1B+iUhSQqweyTLJfCF9rA==",
- "dependencies": {
- "@yarnpkg/lockfile": "^1.1.0",
- "chalk": "^4.1.2",
- "cross-spawn": "^6.0.5",
- "find-yarn-workspace-root": "^2.0.0",
- "fs-extra": "^9.0.0",
- "is-ci": "^2.0.0",
- "klaw-sync": "^6.0.0",
- "minimist": "^1.2.6",
- "open": "^7.4.2",
- "rimraf": "^2.6.3",
- "semver": "^5.6.0",
- "slash": "^2.0.0",
- "tmp": "^0.0.33",
- "yaml": "^1.10.2"
- },
- "bin": {
- "patch-package": "index.js"
- },
- "engines": {
- "node": ">=10",
- "npm": ">5"
- }
- },
- "node_modules/patch-package/node_modules/cross-spawn": {
- "version": "6.0.5",
- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-6.0.5.tgz",
- "integrity": "sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ==",
- "dependencies": {
- "nice-try": "^1.0.4",
- "path-key": "^2.0.1",
- "semver": "^5.5.0",
- "shebang-command": "^1.2.0",
- "which": "^1.2.9"
- },
- "engines": {
- "node": ">=4.8"
- }
- },
- "node_modules/patch-package/node_modules/fs-extra": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
- "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
- "dependencies": {
- "at-least-node": "^1.0.0",
- "graceful-fs": "^4.2.0",
- "jsonfile": "^6.0.1",
- "universalify": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "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",
- "integrity": "sha512-fEHGKCSmUSDPv4uoj8AlD+joPlq3peND+HRYyxFz4KPw4z926S/b8rIuFs2FYJg3BwsxJf6A9/3eIdLaYC+9Dw==",
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/patch-package/node_modules/rimraf": {
- "version": "2.7.1",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz",
- "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==",
- "dependencies": {
- "glob": "^7.1.3"
- },
- "bin": {
- "rimraf": "bin.js"
- }
- },
- "node_modules/patch-package/node_modules/semver": {
- "version": "5.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz",
- "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==",
- "bin": {
- "semver": "bin/semver"
- }
- },
- "node_modules/patch-package/node_modules/shebang-command": {
- "version": "1.2.0",
- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
- "integrity": "sha512-EV3L1+UQWGor21OmnvojK36mhg+TyIKDh3iFBKBohr5xeXIhNBcx8oWdgkTEEQ+BEFFYdLRuqMfd5L84N1V5Vg==",
- "dependencies": {
- "shebang-regex": "^1.0.0"
- },
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/patch-package/node_modules/shebang-regex": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
- "integrity": "sha512-wpoSFAxys6b2a2wHZ1XpDSgD7N9iVjg29Ph9uV/uaP9Ex/KXlkTZTeddxDPSYQpgvzKLGJke2UU0AzoGCjNIvQ==",
- "engines": {
- "node": ">=0.10.0"
- }
- },
- "node_modules/patch-package/node_modules/slash": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz",
- "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/patch-package/node_modules/which": {
- "version": "1.3.1",
- "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
- "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
- "dependencies": {
- "isexe": "^2.0.0"
- },
- "bin": {
- "which": "bin/which"
- }
- },
"node_modules/path-exists": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",
@@ -7254,9 +5864,9 @@
}
},
"node_modules/postcss": {
- "version": "8.4.23",
- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.23.tgz",
- "integrity": "sha512-bQ3qMcpF6A/YjR55xtoTr0jGOlnPOKAIMdOWiv0EIT6HVPEaJiJB4NLljSbiHoC2RX7DN5Uvjtpbg1NPdwv1oA==",
+ "version": "8.4.24",
+ "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz",
+ "integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==",
"funding": [
{
"type": "opencollective",
@@ -7386,9 +5996,9 @@
"integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ=="
},
"node_modules/preact": {
- "version": "10.15.0",
- "resolved": "https://registry.npmjs.org/preact/-/preact-10.15.0.tgz",
- "integrity": "sha512-nZSa8M2R2m1n7nJSBlzDpxRJaIsejrTO1vlFbdpFvyC8qM1iU+On2y0otfoUm6SRB5o0lF0CKDFxg6grEFU0iQ==",
+ "version": "10.15.1",
+ "resolved": "https://registry.npmjs.org/preact/-/preact-10.15.1.tgz",
+ "integrity": "sha512-qs2ansoQEwzNiV5eAcRT1p1EC/dmEzaATVDJNiB3g2sRDWdA7b7MurXdJjB2+/WQktGWZwxvDrnuRFbWuIr64g==",
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/preact"
@@ -7405,33 +6015,6 @@
"preact": ">=10"
}
},
- "node_modules/prebuild-install": {
- "version": "6.1.4",
- "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-6.1.4.tgz",
- "integrity": "sha512-Z4vpywnK1lBg+zdPCVCsKq0xO66eEV9rWo2zrROGGiRS4JtueBOdlB1FnY8lcy7JsUud/Q3ijUxyWN26Ika0vQ==",
- "optional": true,
- "dependencies": {
- "detect-libc": "^1.0.3",
- "expand-template": "^2.0.3",
- "github-from-package": "0.0.0",
- "minimist": "^1.2.3",
- "mkdirp-classic": "^0.5.3",
- "napi-build-utils": "^1.0.1",
- "node-abi": "^2.21.0",
- "npmlog": "^4.0.1",
- "pump": "^3.0.0",
- "rc": "^1.2.7",
- "simple-get": "^3.0.3",
- "tar-fs": "^2.0.0",
- "tunnel-agent": "^0.6.0"
- },
- "bin": {
- "prebuild-install": "bin.js"
- },
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/prelude-ls": {
"version": "1.2.1",
"resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",
@@ -7536,13 +6119,13 @@
"integrity": "sha512-WuxUnVtlWL1OfZFQFuqvnvs6MiAGk9UNsBostyBOB0Is9wb5uRESevA6rnl/rkksXaGX3GzZhPup5d6Vp1nFew=="
},
"node_modules/prisma": {
- "version": "4.14.1",
- "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.14.1.tgz",
- "integrity": "sha512-z6hxzTMYqT9SIKlzD08dhzsLUpxjFKKsLpp5/kBDnSqiOjtUyyl/dC5tzxLcOa3jkEHQ8+RpB/fE3w8bgNP51g==",
+ "version": "4.15.0",
+ "resolved": "https://registry.npmjs.org/prisma/-/prisma-4.15.0.tgz",
+ "integrity": "sha512-iKZZpobPl48gTcSZVawLMQ3lEy6BnXwtoMj7hluoGFYu2kQ6F9LBuBrUyF95zRVnNo8/3KzLXJXJ5TEnLSJFiA==",
"devOptional": true,
"hasInstallScript": true,
"dependencies": {
- "@prisma/engines": "4.14.1"
+ "@prisma/engines": "4.15.0"
},
"bin": {
"prisma": "build/index.js",
@@ -7552,28 +6135,6 @@
"node": ">=14.17"
}
},
- "node_modules/prismjs": {
- "version": "1.29.0",
- "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.29.0.tgz",
- "integrity": "sha512-Kx/1w86q/epKcmte75LNrEoT+lX8pBpavuAbvJWRXar7Hz8jrtF+e3vY751p0R8H9HdArwaCTNDDzHg/ScJK1Q==",
- "engines": {
- "node": ">=6"
- }
- },
- "node_modules/process": {
- "version": "0.11.10",
- "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz",
- "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==",
- "engines": {
- "node": ">= 0.6.0"
- }
- },
- "node_modules/process-nextick-args": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz",
- "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==",
- "optional": true
- },
"node_modules/prop-types": {
"version": "15.8.1",
"resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.8.1.tgz",
@@ -7584,38 +6145,6 @@
"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",
- "integrity": "sha512-YUHSPk+A30YPv+0Qf8i9Mbfe/C0hdPXk1s1jPVToV8pk8BQtpw10ct89Eo7OWkutrwqvT0eicAxlOg3dOAu8JA==",
- "dependencies": {
- "xtend": "^4.0.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/proxy-from-env": {
- "version": "1.1.0",
- "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz",
- "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg=="
- },
- "node_modules/pump": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz",
- "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==",
- "optional": true,
- "dependencies": {
- "end-of-stream": "^1.1.0",
- "once": "^1.3.1"
- }
- },
"node_modules/punycode": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.0.tgz",
@@ -7625,34 +6154,6 @@
"node": ">=6"
}
},
- "node_modules/qs": {
- "version": "6.11.2",
- "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.2.tgz",
- "integrity": "sha512-tDNIz22aBzCDxLtVH++VnTfzxlfeK5CbqohpSqpJgj1Wg/cQbStNAz3NuqCs5vV+pjBsK4x4pN9HlVh7rcYRiA==",
- "dependencies": {
- "side-channel": "^1.0.4"
- },
- "engines": {
- "node": ">=0.6"
- },
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/querystring": {
- "version": "0.2.0",
- "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz",
- "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==",
- "deprecated": "The querystring API is considered Legacy. new code should use the URLSearchParams API instead.",
- "engines": {
- "node": ">=0.4.x"
- }
- },
- "node_modules/querystringify": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/querystringify/-/querystringify-2.2.0.tgz",
- "integrity": "sha512-FIqgj2EUvTa7R50u0rGsyTftzjYmv/a3hO345bZNrqabNqjtgiDMgmo4mkUjd+nzU5oF3dClKqFIPUKybUyqoQ=="
- },
"node_modules/queue-microtask": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
@@ -7672,74 +6173,6 @@
}
]
},
- "node_modules/ramda": {
- "version": "0.29.0",
- "resolved": "https://registry.npmjs.org/ramda/-/ramda-0.29.0.tgz",
- "integrity": "sha512-BBea6L67bYLtdbOqfp8f58fPMqEwx0doL+pAi8TZyp2YWz8R9G8z9x75CZI8W+ftqhFHCpEX2cRnUUXK130iKA==",
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/ramda"
- }
- },
- "node_modules/ramda-adjunct": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/ramda-adjunct/-/ramda-adjunct-4.0.0.tgz",
- "integrity": "sha512-W/NiJAlZdwZ/iUkWEQQgRdH5Szqqet1WoVH9cdqDVjFbVaZHuJfJRvsxqHhvq6tZse+yVbFatLDLdVa30wBlGQ==",
- "engines": {
- "node": ">=0.10.3"
- },
- "funding": {
- "type": "opencollective",
- "url": "https://opencollective.com/ramda-adjunct"
- },
- "peerDependencies": {
- "ramda": ">= 0.29.0"
- }
- },
- "node_modules/randexp": {
- "version": "0.5.3",
- "resolved": "https://registry.npmjs.org/randexp/-/randexp-0.5.3.tgz",
- "integrity": "sha512-U+5l2KrcMNOUPYvazA3h5ekF80FHTUG+87SEAmHZmolh1M+i/WyTCxVzmi+tidIa1tM4BSe8g2Y/D3loWDjj+w==",
- "dependencies": {
- "drange": "^1.0.2",
- "ret": "^0.2.0"
- },
- "engines": {
- "node": ">=4"
- }
- },
- "node_modules/randombytes": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz",
- "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==",
- "dependencies": {
- "safe-buffer": "^5.1.0"
- }
- },
- "node_modules/rc": {
- "version": "1.2.8",
- "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz",
- "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==",
- "optional": true,
- "dependencies": {
- "deep-extend": "^0.6.0",
- "ini": "~1.3.0",
- "minimist": "^1.2.0",
- "strip-json-comments": "~2.0.1"
- },
- "bin": {
- "rc": "cli.js"
- }
- },
- "node_modules/rc/node_modules/strip-json-comments": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz",
- "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==",
- "optional": true,
- "engines": {
- "node": ">=0.10.0"
- }
- },
"node_modules/react": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz",
@@ -7751,30 +6184,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/react-copy-to-clipboard": {
- "version": "5.1.0",
- "resolved": "https://registry.npmjs.org/react-copy-to-clipboard/-/react-copy-to-clipboard-5.1.0.tgz",
- "integrity": "sha512-k61RsNgAayIJNoy9yDsYzDe/yAZAzEbEgcz3DZMhF686LEyukcE1hzurxe85JandPUG+yTfGVFzuEw3xt8WP/A==",
- "dependencies": {
- "copy-to-clipboard": "^3.3.1",
- "prop-types": "^15.8.1"
- },
- "peerDependencies": {
- "react": "^15.3.0 || 16 || 17 || 18"
- }
- },
- "node_modules/react-debounce-input": {
- "version": "3.3.0",
- "resolved": "https://registry.npmjs.org/react-debounce-input/-/react-debounce-input-3.3.0.tgz",
- "integrity": "sha512-VEqkvs8JvY/IIZvh71Z0TC+mdbxERvYF33RcebnodlsUZ8RSgyKe2VWaHXv4+/8aoOgXLxWrdsYs2hDhcwbUgA==",
- "dependencies": {
- "lodash.debounce": "^4",
- "prop-types": "^15.8.1"
- },
- "peerDependencies": {
- "react": "^15.3.0 || 16 || 17 || 18"
- }
- },
"node_modules/react-dom": {
"version": "18.2.0",
"resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz",
@@ -7787,91 +6196,39 @@
"react": "^18.2.0"
}
},
- "node_modules/react-icons": {
- "version": "4.8.0",
- "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.8.0.tgz",
- "integrity": "sha512-N6+kOLcihDiAnj5Czu637waJqSnwlMNROzVZMhfX68V/9bu9qHaMIJC4UdozWoOk57gahFCNHwVvWzm0MTzRjg==",
- "peerDependencies": {
- "react": "*"
- }
- },
- "node_modules/react-immutable-proptypes": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/react-immutable-proptypes/-/react-immutable-proptypes-2.2.0.tgz",
- "integrity": "sha512-Vf4gBsePlwdGvSZoLSBfd4HAP93HDauMY4fDjXhreg/vg6F3Fj/MXDNyTbltPC/xZKmZc+cjLu3598DdYK6sgQ==",
- "dependencies": {
- "invariant": "^2.2.2"
+ "node_modules/react-hook-form": {
+ "version": "7.44.2",
+ "resolved": "https://registry.npmjs.org/react-hook-form/-/react-hook-form-7.44.2.tgz",
+ "integrity": "sha512-IyihmIbCwzDI/iqlecTRa7+4BCnzNx40upSlGvIU7qwENhTf6APatm4bmL9ANtWKPYlD67SIlxfls7GwCUe+Lg==",
+ "engines": {
+ "node": ">=12.22.0"
+ },
+ "funding": {
+ "type": "opencollective",
+ "url": "https://opencollective.com/react-hook-form"
},
"peerDependencies": {
- "immutable": ">=3.6.2"
- }
- },
- "node_modules/react-immutable-pure-component": {
- "version": "2.2.2",
- "resolved": "https://registry.npmjs.org/react-immutable-pure-component/-/react-immutable-pure-component-2.2.2.tgz",
- "integrity": "sha512-vkgoMJUDqHZfXXnjVlG3keCxSO/U6WeDQ5/Sl0GK2cH8TOxEzQ5jXqDXHEL/jqk6fsNxV05oH5kD7VNMUE2k+A==",
- "peerDependencies": {
- "immutable": ">= 2 || >= 4.0.0-rc",
- "react": ">= 16.6",
- "react-dom": ">= 16.6"
+ "react": "^16.8.0 || ^17 || ^18"
}
},
- "node_modules/react-inspector": {
- "version": "6.0.1",
- "resolved": "https://registry.npmjs.org/react-inspector/-/react-inspector-6.0.1.tgz",
- "integrity": "sha512-cxKSeFTf7jpSSVddm66sKdolG90qURAX3g1roTeaN6x0YEbtWc8JpmFN9+yIqLNH2uEkYerWLtJZIXRIFuBKrg==",
+ "node_modules/react-icons": {
+ "version": "4.9.0",
+ "resolved": "https://registry.npmjs.org/react-icons/-/react-icons-4.9.0.tgz",
+ "integrity": "sha512-ijUnFr//ycebOqujtqtV9PFS7JjhWg0QU6ykURVHuL4cbofvRCf3f6GMn9+fBktEFQOIVZnuAYLZdiyadRQRFg==",
"peerDependencies": {
- "react": "^16.8.4 || ^17.0.0 || ^18.0.0"
+ "react": "*"
}
},
"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=="
+ "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/react-lifecycles-compat": {
"version": "3.0.4",
"resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
"integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
},
- "node_modules/react-redux": {
- "version": "8.0.5",
- "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-8.0.5.tgz",
- "integrity": "sha512-Q2f6fCKxPFpkXt1qNRZdEDLlScsDWyrgSj0mliK59qU6W5gvBiKkdMEG2lJzhd1rCctf0hb6EtePPLZ2e0m1uw==",
- "dependencies": {
- "@babel/runtime": "^7.12.1",
- "@types/hoist-non-react-statics": "^3.3.1",
- "@types/use-sync-external-store": "^0.0.3",
- "hoist-non-react-statics": "^3.3.2",
- "react-is": "^18.0.0",
- "use-sync-external-store": "^1.0.0"
- },
- "peerDependencies": {
- "@types/react": "^16.8 || ^17.0 || ^18.0",
- "@types/react-dom": "^16.8 || ^17.0 || ^18.0",
- "react": "^16.8 || ^17.0 || ^18.0",
- "react-dom": "^16.8 || ^17.0 || ^18.0",
- "react-native": ">=0.59",
- "redux": "^4"
- },
- "peerDependenciesMeta": {
- "@types/react": {
- "optional": true
- },
- "@types/react-dom": {
- "optional": true
- },
- "react-dom": {
- "optional": true
- },
- "react-native": {
- "optional": true
- },
- "redux": {
- "optional": true
- }
- }
- },
"node_modules/react-remove-scroll": {
"version": "2.5.5",
"resolved": "https://registry.npmjs.org/react-remove-scroll/-/react-remove-scroll-2.5.5.tgz",
@@ -7917,11 +6274,6 @@
}
}
},
- "node_modules/react-remove-scroll/node_modules/tslib": {
- "version": "2.5.2",
- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
- "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA=="
- },
"node_modules/react-resize-detector": {
"version": "8.1.0",
"resolved": "https://registry.npmjs.org/react-resize-detector/-/react-resize-detector-8.1.0.tgz",
@@ -7948,29 +6300,6 @@
"react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
}
},
- "node_modules/react-smooth/node_modules/dom-helpers": {
- "version": "3.4.0",
- "resolved": "https://registry.npmjs.org/dom-helpers/-/dom-helpers-3.4.0.tgz",
- "integrity": "sha512-LnuPJ+dwqKDIyotW1VzmOZ5TONUN7CwkCR5hrgawTUbkBGYdeoNLZo6nNfGkCrjtE1nXXaj7iMMpDa8/d9WoIA==",
- "dependencies": {
- "@babel/runtime": "^7.1.2"
- }
- },
- "node_modules/react-smooth/node_modules/react-transition-group": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.9.0.tgz",
- "integrity": "sha512-+HzNTCHpeQyl4MJ/bdE0u6XRMe9+XG/+aL4mCxVN4DnPBQ0/5bfHWPDuOZUzYdMj94daZaZdCCc1Dzt9R/xSSg==",
- "dependencies": {
- "dom-helpers": "^3.4.0",
- "loose-envify": "^1.4.0",
- "prop-types": "^15.6.2",
- "react-lifecycles-compat": "^3.0.4"
- },
- "peerDependencies": {
- "react": ">=15.0.0",
- "react-dom": ">=15.0.0"
- }
- },
"node_modules/react-ssr-prepass": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/react-ssr-prepass/-/react-ssr-prepass-1.5.0.tgz",
@@ -8001,19 +6330,19 @@
}
}
},
- "node_modules/react-syntax-highlighter": {
- "version": "15.5.0",
- "resolved": "https://registry.npmjs.org/react-syntax-highlighter/-/react-syntax-highlighter-15.5.0.tgz",
- "integrity": "sha512-+zq2myprEnQmH5yw6Gqc8lD55QHnpKaU8TOcFeC/Lg/MQSs8UknEA0JC4nTZGFAXC2J2Hyj/ijJ7NlabyPi2gg==",
+ "node_modules/react-transition-group": {
+ "version": "2.9.0",
+ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-2.9.0.tgz",
+ "integrity": "sha512-+HzNTCHpeQyl4MJ/bdE0u6XRMe9+XG/+aL4mCxVN4DnPBQ0/5bfHWPDuOZUzYdMj94daZaZdCCc1Dzt9R/xSSg==",
"dependencies": {
- "@babel/runtime": "^7.3.1",
- "highlight.js": "^10.4.1",
- "lowlight": "^1.17.0",
- "prismjs": "^1.27.0",
- "refractor": "^3.6.0"
+ "dom-helpers": "^3.4.0",
+ "loose-envify": "^1.4.0",
+ "prop-types": "^15.6.2",
+ "react-lifecycles-compat": "^3.0.4"
},
"peerDependencies": {
- "react": ">= 0.14.0"
+ "react": ">=15.0.0",
+ "react-dom": ">=15.0.0"
}
},
"node_modules/read-cache": {
@@ -8024,20 +6353,6 @@
"pify": "^2.3.0"
}
},
- "node_modules/readable-stream": {
- "version": "3.6.2",
- "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
- "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
- "optional": true,
- "dependencies": {
- "inherits": "^2.0.3",
- "string_decoder": "^1.1.1",
- "util-deprecate": "^1.0.1"
- },
- "engines": {
- "node": ">= 6"
- }
- },
"node_modules/readdirp": {
"version": "3.6.0",
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
@@ -8081,11 +6396,6 @@
"decimal.js-light": "^2.4.1"
}
},
- "node_modules/recharts/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/reduce-css-calc": {
"version": "2.1.8",
"resolved": "https://registry.npmjs.org/reduce-css-calc/-/reduce-css-calc-2.1.8.tgz",
@@ -8100,44 +6410,6 @@
"resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz",
"integrity": "sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ=="
},
- "node_modules/redux": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/redux/-/redux-4.2.1.tgz",
- "integrity": "sha512-LAUYz4lc+Do8/g7aeRa8JkyDErK6ekstQaqWQrNRW//MY1TvCEpMtpTWvlQ+FPbWCx+Xixu/6SHt5N0HR+SB4w==",
- "dependencies": {
- "@babel/runtime": "^7.9.2"
- }
- },
- "node_modules/redux-immutable": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/redux-immutable/-/redux-immutable-4.0.0.tgz",
- "integrity": "sha512-SchSn/DWfGb3oAejd+1hhHx01xUoxY+V7TeK0BKqpkLKiQPVFf7DYzEaKmrEVxsWxielKfSK9/Xq66YyxgR1cg==",
- "peerDependencies": {
- "immutable": "^3.8.1 || ^4.0.0-rc.1"
- }
- },
- "node_modules/refractor": {
- "version": "3.6.0",
- "resolved": "https://registry.npmjs.org/refractor/-/refractor-3.6.0.tgz",
- "integrity": "sha512-MY9W41IOWxxk31o+YvFCNyNzdkc9M20NoZK5vq6jkv4I/uh2zkWcfudj0Q1fovjUQJrNewS9NMzeTtqPf+n5EA==",
- "dependencies": {
- "hastscript": "^6.0.0",
- "parse-entities": "^2.0.0",
- "prismjs": "~1.27.0"
- },
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/refractor/node_modules/prismjs": {
- "version": "1.27.0",
- "resolved": "https://registry.npmjs.org/prismjs/-/prismjs-1.27.0.tgz",
- "integrity": "sha512-t13BGPUlFDR7wRB5kQDG4jjl7XeuH6jbJGt11JHPL96qwsEHNX2+68tFXqc1/k+/jALsbSWJKUOT/hcYAZ5LkA==",
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/regenerator-runtime": {
"version": "0.13.11",
"resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz",
@@ -8160,47 +6432,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/remarkable": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/remarkable/-/remarkable-2.0.1.tgz",
- "integrity": "sha512-YJyMcOH5lrR+kZdmB0aJJ4+93bEojRZ1HGDn9Eagu6ibg7aVZhc3OWbbShRid+Q5eAfsEqWxpe+g5W5nYNfNiA==",
- "dependencies": {
- "argparse": "^1.0.10",
- "autolinker": "^3.11.0"
- },
- "bin": {
- "remarkable": "bin/remarkable.js"
- },
- "engines": {
- "node": ">= 6.0.0"
- }
- },
- "node_modules/remarkable/node_modules/argparse": {
- "version": "1.0.10",
- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",
- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",
- "dependencies": {
- "sprintf-js": "~1.0.2"
- }
- },
- "node_modules/repeat-string": {
- "version": "1.6.1",
- "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz",
- "integrity": "sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w==",
- "engines": {
- "node": ">=0.10"
- }
- },
- "node_modules/requires-port": {
- "version": "1.0.0",
- "resolved": "https://registry.npmjs.org/requires-port/-/requires-port-1.0.0.tgz",
- "integrity": "sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ=="
- },
- "node_modules/reselect": {
- "version": "4.1.8",
- "resolved": "https://registry.npmjs.org/reselect/-/reselect-4.1.8.tgz",
- "integrity": "sha512-ab9EmR80F/zQTMNeneUr4cv+jSwPJgIlvEmVwLerwrWVbpLlBuls9XHzIeTFy4cegU2NHBp3va0LKOzU5qFEYQ=="
- },
"node_modules/resolve": {
"version": "1.22.2",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.2.tgz",
@@ -8225,12 +6456,13 @@
"node": ">=4"
}
},
- "node_modules/ret": {
- "version": "0.2.2",
- "resolved": "https://registry.npmjs.org/ret/-/ret-0.2.2.tgz",
- "integrity": "sha512-M0b3YWQs7R3Z917WRQy1HHA7Ba7D8hvZg6UE5mLykJxQVE2ju0IXbGlaHPPlkY+WN7wFP+wUMXmBFA0aV6vYGQ==",
- "engines": {
- "node": ">=4"
+ "node_modules/resolve-pkg-maps": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
+ "integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
+ "dev": true,
+ "funding": {
+ "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
}
},
"node_modules/reusify": {
@@ -8316,6 +6548,15 @@
"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",
@@ -8324,8 +6565,23 @@
"dependencies": {
"path-key": "^3.0.0"
},
- "engines": {
- "node": ">=8"
+ "engines": {
+ "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": {
@@ -8359,25 +6615,6 @@
"queue-microtask": "^1.2.2"
}
},
- "node_modules/safe-buffer": {
- "version": "5.2.1",
- "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz",
- "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ]
- },
"node_modules/safe-regex-test": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/safe-regex-test/-/safe-regex-test-1.0.0.tgz",
@@ -8415,38 +6652,6 @@
"node": ">=10"
}
},
- "node_modules/serialize-error": {
- "version": "8.1.0",
- "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-8.1.0.tgz",
- "integrity": "sha512-3NnuWfM6vBYoy5gZFvHiYsVbafvI9vZv/+jlIigFn4oP4zjNPK3LhcY0xSCgeb1a5L8jO71Mit9LlNoi2UfDDQ==",
- "dependencies": {
- "type-fest": "^0.20.2"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/sponsors/sindresorhus"
- }
- },
- "node_modules/set-blocking": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",
- "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==",
- "optional": true
- },
- "node_modules/sha.js": {
- "version": "2.4.11",
- "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz",
- "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==",
- "dependencies": {
- "inherits": "^2.0.1",
- "safe-buffer": "^5.0.1"
- },
- "bin": {
- "sha.js": "bin.js"
- }
- },
"node_modules/shebang-command": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",
@@ -8468,19 +6673,11 @@
"node": ">=8"
}
},
- "node_modules/short-unique-id": {
- "version": "4.4.4",
- "resolved": "https://registry.npmjs.org/short-unique-id/-/short-unique-id-4.4.4.tgz",
- "integrity": "sha512-oLF1NCmtbiTWl2SqdXZQbo5KM1b7axdp0RgQLq8qCBBLoq+o3A5wmLrNM6bZIh54/a8BJ3l69kTXuxwZ+XCYuw==",
- "bin": {
- "short-unique-id": "bin/short-unique-id",
- "suid": "bin/short-unique-id"
- }
- },
"node_modules/side-channel": {
"version": "1.0.4",
"resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz",
"integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==",
+ "dev": true,
"dependencies": {
"call-bind": "^1.0.0",
"get-intrinsic": "^1.0.2",
@@ -8494,38 +6691,7 @@
"version": "3.0.7",
"resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",
"integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",
- "devOptional": true
- },
- "node_modules/simple-concat": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",
- "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",
- "funding": [
- {
- "type": "github",
- "url": "https://github.com/sponsors/feross"
- },
- {
- "type": "patreon",
- "url": "https://www.patreon.com/feross"
- },
- {
- "type": "consulting",
- "url": "https://feross.org/support"
- }
- ],
- "optional": true
- },
- "node_modules/simple-get": {
- "version": "3.1.1",
- "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz",
- "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",
- "optional": true,
- "dependencies": {
- "decompress-response": "^4.2.0",
- "once": "^1.3.1",
- "simple-concat": "^1.0.0"
- }
+ "dev": true
},
"node_modules/slash": {
"version": "3.0.0",
@@ -8552,25 +6718,6 @@
"node": ">=0.10.0"
}
},
- "node_modules/space-separated-tokens": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-1.1.5.tgz",
- "integrity": "sha512-q/JSVd1Lptzhf5bkYm4ob4iWPjx0KiRe3sRFBNrVqbJkFaBm5vbbowy1mymoPNLRa52+oadOhJ+K49wsSeSjTA==",
- "funding": {
- "type": "github",
- "url": "https://github.com/sponsors/wooorm"
- }
- },
- "node_modules/sprintf-js": {
- "version": "1.0.3",
- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",
- "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="
- },
- "node_modules/stampit": {
- "version": "4.3.2",
- "resolved": "https://registry.npmjs.org/stampit/-/stampit-4.3.2.tgz",
- "integrity": "sha512-pE2org1+ZWQBnIxRPrBM2gVupkuDD0TTNIo1H6GdT/vO82NXli2z8lRE8cu/nBIHrcOCXFBAHpb9ZldrB2/qOA=="
- },
"node_modules/stop-iteration-iterator": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/stop-iteration-iterator/-/stop-iteration-iterator-1.0.0.tgz",
@@ -8591,35 +6738,6 @@
"node": ">=10.0.0"
}
},
- "node_modules/string_decoder": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",
- "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",
- "optional": true,
- "dependencies": {
- "safe-buffer": "~5.2.0"
- }
- },
- "node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "optional": true,
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/string-width/node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "optional": true
- },
"node_modules/string.prototype.matchall": {
"version": "4.0.8",
"resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz",
@@ -8688,7 +6806,7 @@
"version": "6.0.1",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",
"integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",
- "devOptional": true,
+ "dev": true,
"dependencies": {
"ansi-regex": "^5.0.1"
},
@@ -8785,6 +6903,25 @@
"node": ">= 6"
}
},
+ "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"
+ },
+ "engines": {
+ "node": "*"
+ },
+ "funding": {
+ "url": "https://github.com/sponsors/isaacs"
+ }
+ },
"node_modules/superjson": {
"version": "1.12.3",
"resolved": "https://registry.npmjs.org/superjson/-/superjson-1.12.3.tgz",
@@ -8800,6 +6937,7 @@
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
+ "dev": true,
"dependencies": {
"has-flag": "^4.0.0"
},
@@ -8818,35 +6956,10 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/swagger-client": {
- "version": "3.19.8",
- "resolved": "https://registry.npmjs.org/swagger-client/-/swagger-client-3.19.8.tgz",
- "integrity": "sha512-+zfLp+1U6kOK+o9QyYDWMXxMYGKiOK20LFjNDtZsVzscbg1S3REKW5BaH9zioWKtK1x2zZWeiqnhNKDL8WgLTQ==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.20.13",
- "@swagger-api/apidom-core": ">=0.70.0 <1.0.0",
- "@swagger-api/apidom-json-pointer": ">=0.70.0 <1.0.0",
- "@swagger-api/apidom-ns-openapi-3-1": ">=0.70.0 <1.0.0",
- "@swagger-api/apidom-reference": ">=0.70.0 <1.0.0",
- "cookie": "~0.5.0",
- "cross-fetch": "^3.1.5",
- "deepmerge": "~4.3.0",
- "fast-json-patch": "^3.0.0-1",
- "form-data-encoder": "^1.4.3",
- "formdata-node": "^4.0.0",
- "is-plain-object": "^5.0.0",
- "js-yaml": "^4.1.0",
- "lodash": "^4.17.21",
- "qs": "^6.10.2",
- "traverse": "~0.6.6",
- "url": "~0.11.0"
- }
- },
"node_modules/swagger-jsdoc": {
"version": "6.2.8",
"resolved": "https://registry.npmjs.org/swagger-jsdoc/-/swagger-jsdoc-6.2.8.tgz",
"integrity": "sha512-VPvil1+JRpmJ55CgAtn8DIcpBs0bL5L3q5bVQvF4tAW/k/9JYSj7dCpaYCAv5rufe0vcCbBRQXGvzpkWjvLklQ==",
- "dev": true,
"dependencies": {
"commander": "6.2.0",
"doctrine": "3.0.0",
@@ -8862,20 +6975,29 @@
"node": ">=12.0.0"
}
},
- "node_modules/swagger-jsdoc/node_modules/commander": {
- "version": "6.2.0",
- "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.0.tgz",
- "integrity": "sha512-zP4jEKbe8SHzKJYQmq8Y9gYjtO/POJLgIdKgV7B9qNmABVFVc+ctqSX6iXh4mCpJfRBOabiZ2YKPg8ciDw6C+Q==",
- "dev": true,
+ "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==",
+ "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": ">= 6"
+ "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",
"integrity": "sha512-W7h5dEhywMKenDJh2iX/LABkbFnBxasD27oyXWDS/feDsxiw0dD5ncXdYXgkvAsXIY2MpW/ZKkr9IU30DBdMNQ==",
- "dev": true,
"engines": {
"node": ">= 6"
}
@@ -8884,7 +7006,6 @@
"version": "10.0.3",
"resolved": "https://registry.npmjs.org/swagger-parser/-/swagger-parser-10.0.3.tgz",
"integrity": "sha512-nF7oMeL4KypldrQhac8RyHerJeGPD1p2xDh900GPvc+Nk7nWP6jX2FcC7WmkinMoAmoO774+AFXcWsW8gMWEIg==",
- "dev": true,
"dependencies": {
"@apidevtools/swagger-parser": "10.0.3"
},
@@ -8892,51 +7013,6 @@
"node": ">=10"
}
},
- "node_modules/swagger-ui-react": {
- "version": "4.19.0",
- "resolved": "https://registry.npmjs.org/swagger-ui-react/-/swagger-ui-react-4.19.0.tgz",
- "integrity": "sha512-DuGGmvYVqzfGUxvnC2WX9wPjHvBGewtw40mfzPxQYijQsx88UY9hCxRgomT+IojsG8AzSkUVmoXW486vn9V2uQ==",
- "dependencies": {
- "@babel/runtime-corejs3": "^7.21.5",
- "@braintree/sanitize-url": "=6.0.2",
- "base64-js": "^1.5.1",
- "classnames": "^2.3.1",
- "css.escape": "1.5.1",
- "deep-extend": "0.6.0",
- "dompurify": "=3.0.2",
- "ieee754": "^1.2.1",
- "immutable": "^3.x.x",
- "js-file-download": "^0.4.12",
- "js-yaml": "=4.1.0",
- "lodash": "^4.17.21",
- "patch-package": "^6.5.0",
- "prop-types": "^15.8.1",
- "randexp": "^0.5.3",
- "randombytes": "^2.1.0",
- "react-copy-to-clipboard": "5.1.0",
- "react-debounce-input": "=3.3.0",
- "react-immutable-proptypes": "2.2.0",
- "react-immutable-pure-component": "^2.2.0",
- "react-inspector": "^6.0.1",
- "react-redux": "^8.0.5",
- "react-syntax-highlighter": "^15.5.0",
- "redux": "^4.1.2",
- "redux-immutable": "^4.0.0",
- "remarkable": "^2.0.1",
- "reselect": "^4.1.8",
- "serialize-error": "^8.1.0",
- "sha.js": "^2.4.11",
- "swagger-client": "^3.19.8",
- "url-parse": "^1.5.8",
- "xml": "=1.0.1",
- "xml-but-prettier": "^1.0.1",
- "zenscroll": "^4.0.2"
- },
- "peerDependencies": {
- "react": ">=17.0.0",
- "react-dom": ">=17.0.0"
- }
- },
"node_modules/synckit": {
"version": "0.8.5",
"resolved": "https://registry.npmjs.org/synckit/-/synckit-0.8.5.tgz",
@@ -8953,12 +7029,6 @@
"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",
@@ -9030,34 +7100,6 @@
"node": ">=6"
}
},
- "node_modules/tar-fs": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz",
- "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==",
- "optional": true,
- "dependencies": {
- "chownr": "^1.1.1",
- "mkdirp-classic": "^0.5.2",
- "pump": "^3.0.0",
- "tar-stream": "^2.1.4"
- }
- },
- "node_modules/tar-stream": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz",
- "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==",
- "optional": true,
- "dependencies": {
- "bl": "^4.0.3",
- "end-of-stream": "^1.4.1",
- "fs-constants": "^1.0.0",
- "inherits": "^2.0.3",
- "readable-stream": "^3.1.1"
- },
- "engines": {
- "node": ">=6"
- }
- },
"node_modules/terminal-columns": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/terminal-columns/-/terminal-columns-1.4.1.tgz",
@@ -9103,17 +7145,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/tmp": {
- "version": "0.0.33",
- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
- "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==",
- "dependencies": {
- "os-tmpdir": "~1.0.2"
- },
- "engines": {
- "node": ">=0.6.0"
- }
- },
"node_modules/to-fast-properties": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
@@ -9133,55 +7164,6 @@
"node": ">=8.0"
}
},
- "node_modules/toggle-selection": {
- "version": "1.0.6",
- "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz",
- "integrity": "sha512-BiZS+C1OS8g/q2RRbJmy59xpyghNBqrr6k5L/uKBGRsTfxmu3ffiRnd8mlGPUVayg8pvfi5urfnu8TU7DVOkLQ=="
- },
- "node_modules/tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
- },
- "node_modules/traverse": {
- "version": "0.6.7",
- "resolved": "https://registry.npmjs.org/traverse/-/traverse-0.6.7.tgz",
- "integrity": "sha512-/y956gpUo9ZNCb99YjxG7OaslxZWHfCHAUUfshwqOXmxUIvqLjVO581BT+gM59+QV9tFe6/CGG53tsA1Y7RSdg==",
- "funding": {
- "url": "https://github.com/sponsors/ljharb"
- }
- },
- "node_modules/tree-sitter": {
- "version": "0.20.1",
- "resolved": "https://registry.npmjs.org/tree-sitter/-/tree-sitter-0.20.1.tgz",
- "integrity": "sha512-Cmb8V0ocamHbgWMVhZIa+78k/7r8VCQ6+ePG8eYEAO7AccwWi06Ct4ATNiI94KwhIkRl0+OwZ42/5nk3GnEMpQ==",
- "hasInstallScript": true,
- "optional": true,
- "dependencies": {
- "nan": "^2.14.0",
- "prebuild-install": "^6.0.1"
- }
- },
- "node_modules/tree-sitter-json": {
- "version": "0.20.0",
- "resolved": "https://registry.npmjs.org/tree-sitter-json/-/tree-sitter-json-0.20.0.tgz",
- "integrity": "sha512-PteOLH+Tx6Bz4ZA/d40/DbkiSXXRM/gKahhHI8hQ1lWNfFvdknnz9k3Mz84ol5srRyLboJ8wp8GSkhZ6ht9EGQ==",
- "hasInstallScript": true,
- "optional": true,
- "dependencies": {
- "nan": "^2.14.1"
- }
- },
- "node_modules/tree-sitter-yaml": {
- "version": "0.5.0",
- "resolved": "https://registry.npmjs.org/tree-sitter-yaml/-/tree-sitter-yaml-0.5.0.tgz",
- "integrity": "sha512-POJ4ZNXXSWIG/W4Rjuyg36MkUD4d769YRUGKRqN+sVaj/VCo6Dh6Pkssn1Rtewd5kybx+jT1BWMyWN0CijXnMA==",
- "hasInstallScript": true,
- "optional": true,
- "dependencies": {
- "nan": "^2.14.0"
- }
- },
"node_modules/ts-interface-checker": {
"version": "0.1.13",
"resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",
@@ -9236,27 +7218,24 @@
"integrity": "sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==",
"devOptional": true
},
- "node_modules/ts-toolbelt": {
- "version": "9.6.0",
- "resolved": "https://registry.npmjs.org/ts-toolbelt/-/ts-toolbelt-9.6.0.tgz",
- "integrity": "sha512-nsZd8ZeNUzukXPlJmTBwUAuABDe/9qtVDelJeT/qW0ow3ZS3BsQJtNkan1802aM9Uf68/Y8ljw86Hu0h5IUW3w=="
- },
"node_modules/tsconfig-paths": {
- "version": "3.14.2",
- "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-3.14.2.tgz",
- "integrity": "sha512-o/9iXgCYc5L/JxCHPe3Hvh8Q/2xm5Z+p18PESBU6Ff33695QnCHBEjcytY2q19ua7Mbl/DavtBOLq+oG0RCL+g==",
+ "version": "4.2.0",
+ "resolved": "https://registry.npmjs.org/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz",
+ "integrity": "sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg==",
"dev": true,
"dependencies": {
- "@types/json5": "^0.0.29",
- "json5": "^1.0.2",
+ "json5": "^2.2.2",
"minimist": "^1.2.6",
"strip-bom": "^3.0.0"
+ },
+ "engines": {
+ "node": ">=6"
}
},
"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=="
+ "version": "2.5.2",
+ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.5.2.tgz",
+ "integrity": "sha512-5svOrSA2w3iGFDs1HibEVBGbDrAY82bFQ3HZ3ixB+88nsbsWQoKqDRb5UBYAUPEzbBn6dAp5gRNXglySbx1MlA=="
},
"node_modules/tsutils": {
"version": "3.21.0",
@@ -9279,18 +7258,6 @@
"integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==",
"dev": true
},
- "node_modules/tunnel-agent": {
- "version": "0.6.0",
- "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz",
- "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==",
- "optional": true,
- "dependencies": {
- "safe-buffer": "^5.0.1"
- },
- "engines": {
- "node": "*"
- }
- },
"node_modules/type-check": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",
@@ -9307,6 +7274,7 @@
"version": "0.20.2",
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",
"integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",
+ "dev": true,
"engines": {
"node": ">=10"
},
@@ -9315,9 +7283,9 @@
}
},
"node_modules/type-flag": {
- "version": "2.2.0",
- "resolved": "https://registry.npmjs.org/type-flag/-/type-flag-2.2.0.tgz",
- "integrity": "sha512-zumH8ohtlidBe1aqRY99OxaUY1SCdtyQlCxiXlnAyPMby6GtMem4Y7+geySt/k3MFs0pnNzQpI/nSki4yJp5Jg==",
+ "version": "3.0.0",
+ "resolved": "https://registry.npmjs.org/type-flag/-/type-flag-3.0.0.tgz",
+ "integrity": "sha512-3YaYwMseXCAhBB14RXW5cRQfJQlEknS6i4C8fCfeUdS3ihG9EdccdR9kt3vP73ZdeTGmPb4bZtkDn5XMIn1DLA==",
"funding": {
"url": "https://github.com/privatenumber/type-flag?sponsor=1"
}
@@ -9336,14 +7304,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/types-ramda": {
- "version": "0.29.3",
- "resolved": "https://registry.npmjs.org/types-ramda/-/types-ramda-0.29.3.tgz",
- "integrity": "sha512-6z8/UCI5/kRorQ91Mo+TUXImHpGAhmhg8ZIdT/tNrG+xSQvDwJXYyT5Nlw2U5VpoKetUZVqQXYYLQyq5Bzccsg==",
- "dependencies": {
- "ts-toolbelt": "^9.6.0"
- }
- },
"node_modules/typescript": {
"version": "5.0.4",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.0.4.tgz",
@@ -9371,19 +7331,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/universalify": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.0.tgz",
- "integrity": "sha512-hAZsKq7Yy11Zu1DE0OzWjw7nnLZmJZYTDZZyEFHZdUhV8FkH5MCfoU1XMaxXovpyW5nq5scPqq0ZDP9Zyl04oQ==",
- "engines": {
- "node": ">= 10.0.0"
- }
- },
- "node_modules/unraw": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/unraw/-/unraw-2.0.1.tgz",
- "integrity": "sha512-tdOvLfRzHolwYcHS6HIX860MkK9LQ4+oLuNwFYL7bpgTEO64PZrcQxkisgwJYCfF8sKiWLwwu1c83DvMkbefIQ=="
- },
"node_modules/untildify": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",
@@ -9432,29 +7379,6 @@
"punycode": "^2.1.0"
}
},
- "node_modules/url": {
- "version": "0.11.0",
- "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz",
- "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==",
- "dependencies": {
- "punycode": "1.3.2",
- "querystring": "0.2.0"
- }
- },
- "node_modules/url-parse": {
- "version": "1.5.10",
- "resolved": "https://registry.npmjs.org/url-parse/-/url-parse-1.5.10.tgz",
- "integrity": "sha512-WypcfiRhfeUP9vvF0j6rw0J3hrWrw6iZv3+22h6iRMJ/8z1Tj6XfLP4DsUix5MhMPnXpiHDoKyoZ/bdCkwBCiQ==",
- "dependencies": {
- "querystringify": "^2.1.1",
- "requires-port": "^1.0.0"
- }
- },
- "node_modules/url/node_modules/punycode": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz",
- "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw=="
- },
"node_modules/use-callback-ref": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/use-callback-ref/-/use-callback-ref-1.3.0.tgz",
@@ -9560,34 +7484,6 @@
"d3-timer": "^3.0.1"
}
},
- "node_modules/web-streams-polyfill": {
- "version": "4.0.0-beta.3",
- "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-4.0.0-beta.3.tgz",
- "integrity": "sha512-QW95TCTaHmsYfHDybGMwO5IJIM93I/6vTRk+daHTWFPhwh+C8Cg7j7XyKrwrj8Ib6vYXe0ocYNrmzY4xAAN6ug==",
- "engines": {
- "node": ">= 14"
- }
- },
- "node_modules/web-tree-sitter": {
- "version": "0.20.7",
- "resolved": "https://registry.npmjs.org/web-tree-sitter/-/web-tree-sitter-0.20.7.tgz",
- "integrity": "sha512-flC9JJmTII9uAeeYpWF8hxDJ7bfY+leldQryetll8Nv4WgI+MXc6h7TiyAZASWl9uC9TvmfdgOjZn1DAQecb3A==",
- "optional": true
- },
- "node_modules/webidl-conversions": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
- },
- "node_modules/whatwg-url": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
- "dependencies": {
- "tr46": "~0.0.3",
- "webidl-conversions": "^3.0.0"
- }
- },
"node_modules/which": {
"version": "2.0.2",
"resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",
@@ -9654,15 +7550,6 @@
"url": "https://github.com/sponsors/ljharb"
}
},
- "node_modules/wide-align": {
- "version": "1.1.5",
- "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",
- "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",
- "optional": true,
- "dependencies": {
- "string-width": "^1.0.2 || 2 || 3 || 4"
- }
- },
"node_modules/word-wrap": {
"version": "1.2.3",
"resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
@@ -9677,27 +7564,6 @@
"resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",
"integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ=="
},
- "node_modules/xml": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/xml/-/xml-1.0.1.tgz",
- "integrity": "sha512-huCv9IH9Tcf95zuYCsQraZtWnJvBtLVE0QHMOs8bWyZAFZNDcYjsPq1nEx8jKA9y+Beo9v+7OBPRisQTjinQMw=="
- },
- "node_modules/xml-but-prettier": {
- "version": "1.0.1",
- "resolved": "https://registry.npmjs.org/xml-but-prettier/-/xml-but-prettier-1.0.1.tgz",
- "integrity": "sha512-C2CJaadHrZTqESlH03WOyw0oZTtoy2uEg6dSDF6YRg+9GnYNub53RRemLpnvtbHDFelxMx4LajiFsYeR6XJHgQ==",
- "dependencies": {
- "repeat-string": "^1.5.2"
- }
- },
- "node_modules/xtend": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz",
- "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==",
- "engines": {
- "node": ">=0.4"
- }
- },
"node_modules/yallist": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
@@ -9736,7 +7602,6 @@
"version": "5.0.5",
"resolved": "https://registry.npmjs.org/z-schema/-/z-schema-5.0.5.tgz",
"integrity": "sha512-D7eujBWkLa3p2sIpJA0d1pr7es+a7m0vFAnZLlCEKq/Ij2k0MLi9Br2UPxoxdYystm5K1yeBGzub0FlYUEWj2Q==",
- "dev": true,
"dependencies": {
"lodash.get": "^4.4.2",
"lodash.isequal": "^4.5.0",
@@ -9756,17 +7621,11 @@
"version": "9.5.0",
"resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",
"integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
- "dev": true,
"optional": true,
"engines": {
"node": "^12.20.0 || >=14"
}
},
- "node_modules/zenscroll": {
- "version": "4.0.2",
- "resolved": "https://registry.npmjs.org/zenscroll/-/zenscroll-4.0.2.tgz",
- "integrity": "sha512-jEA1znR7b4C/NnaycInCU6h/d15ZzCd1jmsruqOKnZP6WXQSMH3W2GL+OXbkruslU4h+Tzuos0HdswzRUk/Vgg=="
- },
"node_modules/zod": {
"version": "3.21.4",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.21.4.tgz",
diff --git a/package.json b/package.json
index 9caf8a1ac3..b1ecce0e1a 100644
--- a/package.json
+++ b/package.json
@@ -11,73 +11,79 @@
"start": "next start"
},
"prisma": {
- "seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
+ "seed": "ts-node -r tsconfig-paths/register --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
"dependencies": {
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@headlessui/react": "^1.7.14",
"@heroicons/react": "^2.0.18",
+ "@hookform/resolvers": "^3.1.0",
"@next-auth/prisma-adapter": "^1.0.6",
- "@prisma/client": "^4.14.1",
+ "@prisma/client": "^4.15.0",
+ "@radix-ui/react-avatar": "^1.0.3",
"@radix-ui/react-collapsible": "^1.0.3",
"@radix-ui/react-dialog": "^1.0.4",
"@radix-ui/react-dropdown-menu": "^2.0.5",
+ "@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.6",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-tabs": "^1.0.4",
"@radix-ui/react-toggle": "^1.0.3",
- "@t3-oss/env-nextjs": "^0.3.1",
+ "@t3-oss/env-nextjs": "^0.4.0",
"@tailwindcss/forms": "^0.5.3",
- "@tanstack/react-query": "^4.29.7",
+ "@tanstack/react-query": "^4.29.12",
"@tanstack/react-table": "^8.9.1",
- "@trpc/client": "^10.28.0",
- "@trpc/next": "^10.28.0",
- "@trpc/react-query": "^10.28.0",
- "@trpc/server": "^10.28.0",
- "@types/cors": "^2.8.13",
- "@types/js-yaml": "^4.0.5",
- "@types/lodash": "^4.14.195",
+ "@trpc/client": "^10.28.1",
+ "@trpc/next": "^10.28.1",
+ "@trpc/react-query": "^10.28.1",
+ "@trpc/server": "^10.28.1",
+ "bcryptjs": "^2.4.3",
"class-variance-authority": "^0.6.0",
"clsx": "^1.2.1",
"cmdk": "^0.2.0",
"cors": "^2.8.5",
"js-yaml": "^4.1.0",
"lodash": "^4.17.21",
- "lucide-react": "^0.221.0",
+ "lucide-react": "^0.229.0",
"next": "^13.4.4",
"next-auth": "^4.22.1",
- "next-swagger-doc": "^0.3.6",
+ "next-swagger-doc": "^0.4.0",
"react": "18.2.0",
"react-dom": "18.2.0",
- "react-icons": "^4.8.0",
+ "react-hook-form": "^7.44.2",
+ "react-icons": "^4.9.0",
"recharts": "^2.6.2",
"superjson": "1.12.3",
- "swagger-ui-react": "^4.19.0",
"tailwind-merge": "^1.12.0",
"tailwindcss-animate": "^1.0.5",
"zod": "^3.21.4"
},
"devDependencies": {
+ "@types/bcryptjs": "^2.4.2",
+ "@types/cors": "^2.8.13",
"@types/eslint": "^8.40.0",
- "@types/node": "^20.2.4",
+ "@types/js-yaml": "^4.0.5",
+ "@types/lodash": "^4.14.195",
+ "@types/node": "^20.2.5",
"@types/prettier": "^2.7.2",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/swagger-ui-react": "^4.18.0",
- "@typescript-eslint/eslint-plugin": "^5.59.7",
- "@typescript-eslint/parser": "^5.59.7",
+ "@typescript-eslint/eslint-plugin": "^5.59.8",
+ "@typescript-eslint/parser": "^5.59.8",
"autoprefixer": "^10.4.14",
"eslint": "^8.41.0",
"eslint-config-next": "^13.4.4",
- "postcss": "^8.4.23",
+ "postcss": "^8.4.24",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.3.0",
- "prisma": "^4.14.1",
+ "prisma": "^4.15.0",
"swagger-jsdoc": "^6.2.8",
"tailwindcss": "^3.3.2",
"ts-node": "^10.9.1",
+ "tsconfig-paths": "^4.2.0",
"typescript": "^5.0.4"
},
"ct3aMetadata": {
diff --git a/prisma/migrations/20230529140133_user_add_pw/migration.sql b/prisma/migrations/20230529140133_user_add_pw/migration.sql
new file mode 100644
index 0000000000..2f77ec76a2
--- /dev/null
+++ b/prisma/migrations/20230529140133_user_add_pw/migration.sql
@@ -0,0 +1,2 @@
+-- AlterTable
+ALTER TABLE "User" ADD COLUMN "password" TEXT;
diff --git a/prisma/migrations/20230530204241_auth_api_ui/migration.sql b/prisma/migrations/20230530204241_auth_api_ui/migration.sql
new file mode 100644
index 0000000000..e5e8a0832a
--- /dev/null
+++ b/prisma/migrations/20230530204241_auth_api_ui/migration.sql
@@ -0,0 +1,178 @@
+/*
+ Warnings:
+
+ - You are about to drop the column `userId` on the `Account` table. All the data in the column will be lost.
+ - You are about to drop the column `createdAt` on the `Example` table. All the data in the column will be lost.
+ - You are about to drop the column `updatedAt` on the `Example` table. All the data in the column will be lost.
+ - You are about to drop the column `sessionToken` on the `Session` table. All the data in the column will be lost.
+ - You are about to drop the column `userId` on the `Session` table. All the data in the column will be lost.
+ - You are about to drop the column `traceId` on the `observations` table. All the data in the column will be lost.
+ - You are about to drop the column `observationId` on the `scores` table. All the data in the column will be lost.
+ - You are about to drop the column `traceId` on the `scores` table. All the data in the column will be lost.
+ - You are about to drop the `User` table. If the table is not empty, all the data it contains will be lost.
+ - You are about to drop the `VerificationToken` table. If the table is not empty, all the data it contains will be lost.
+ - A unique constraint covering the columns `[session_token]` on the table `Session` will be added. If there are existing duplicate values, this will fail.
+ - Added the required column `user_id` to the `Account` table without a default value. This is not possible if the table is not empty.
+ - Added the required column `updated_at` to the `Example` table without a default value. This is not possible if the table is not empty.
+ - Added the required column `session_token` to the `Session` table without a default value. This is not possible if the table is not empty.
+ - Added the required column `user_id` to the `Session` table without a default value. This is not possible if the table is not empty.
+ - Added the required column `trace_id` to the `observations` table without a default value. This is not possible if the table is not empty.
+ - Added the required column `trace_id` to the `scores` table without a default value. This is not possible if the table is not empty.
+ - Added the required column `project_id` to the `traces` table without a default value. This is not possible if the table is not empty.
+
+*/
+-- CreateEnum
+CREATE TYPE "MembershipRole" AS ENUM ('OWNER', 'ADMIN', 'MEMBER');
+
+-- DropForeignKey
+ALTER TABLE "Account" DROP CONSTRAINT "Account_userId_fkey";
+
+-- DropForeignKey
+ALTER TABLE "Session" DROP CONSTRAINT "Session_userId_fkey";
+
+-- DropForeignKey
+ALTER TABLE "observations" DROP CONSTRAINT "observations_traceId_fkey";
+
+-- DropForeignKey
+ALTER TABLE "scores" DROP CONSTRAINT "scores_observationId_fkey";
+
+-- DropForeignKey
+ALTER TABLE "scores" DROP CONSTRAINT "scores_traceId_fkey";
+
+-- DropIndex
+DROP INDEX "Session_sessionToken_key";
+
+-- AlterTable
+ALTER TABLE "Account" DROP COLUMN "userId",
+ADD COLUMN "user_id" TEXT NOT NULL;
+
+-- AlterTable
+ALTER TABLE "Example" DROP COLUMN "createdAt",
+DROP COLUMN "updatedAt",
+ADD COLUMN "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ADD COLUMN "updated_at" TIMESTAMP(3) NOT NULL;
+
+-- AlterTable
+ALTER TABLE "Session" DROP COLUMN "sessionToken",
+DROP COLUMN "userId",
+ADD COLUMN "session_token" TEXT NOT NULL,
+ADD COLUMN "user_id" TEXT NOT NULL;
+
+-- AlterTable
+ALTER TABLE "observations" DROP COLUMN "traceId",
+ADD COLUMN "trace_id" TEXT NOT NULL;
+
+-- AlterTable
+ALTER TABLE "scores" DROP COLUMN "observationId",
+DROP COLUMN "traceId",
+ADD COLUMN "observation_id" TEXT,
+ADD COLUMN "trace_id" TEXT NOT NULL;
+
+-- AlterTable
+ALTER TABLE "traces" ADD COLUMN "project_id" TEXT NOT NULL;
+
+-- DropTable
+DROP TABLE "User";
+
+-- DropTable
+DROP TABLE "VerificationToken";
+
+-- CreateTable
+CREATE TABLE "users" (
+ "id" TEXT NOT NULL,
+ "name" TEXT,
+ "email" TEXT,
+ "email_verified" TIMESTAMP(3),
+ "password" TEXT,
+ "image" TEXT,
+
+ CONSTRAINT "users_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "verification_tokens" (
+ "identifier" TEXT NOT NULL,
+ "token" TEXT NOT NULL,
+ "expires" TIMESTAMP(3) NOT NULL
+);
+
+-- CreateTable
+CREATE TABLE "projects" (
+ "id" TEXT NOT NULL,
+ "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "name" TEXT NOT NULL,
+
+ CONSTRAINT "projects_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "api_keys" (
+ "id" TEXT NOT NULL,
+ "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
+ "note" TEXT,
+ "publishable_key" TEXT NOT NULL,
+ "hashed_secret_key" TEXT NOT NULL,
+ "display_secret_key" TEXT NOT NULL,
+ "last_used_at" TIMESTAMP(3),
+ "expires_at" TIMESTAMP(3),
+ "project_id" TEXT NOT NULL,
+
+ CONSTRAINT "api_keys_pkey" PRIMARY KEY ("id")
+);
+
+-- CreateTable
+CREATE TABLE "memberships" (
+ "project_id" TEXT NOT NULL,
+ "user_id" TEXT NOT NULL,
+ "role" "MembershipRole" NOT NULL,
+
+ CONSTRAINT "memberships_pkey" PRIMARY KEY ("project_id","user_id")
+);
+
+-- CreateIndex
+CREATE UNIQUE INDEX "users_email_key" ON "users"("email");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "verification_tokens_token_key" ON "verification_tokens"("token");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "verification_tokens_identifier_token_key" ON "verification_tokens"("identifier", "token");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "api_keys_id_key" ON "api_keys"("id");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "api_keys_publishable_key_key" ON "api_keys"("publishable_key");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "api_keys_hashed_secret_key_key" ON "api_keys"("hashed_secret_key");
+
+-- CreateIndex
+CREATE UNIQUE INDEX "Session_session_token_key" ON "Session"("session_token");
+
+-- AddForeignKey
+ALTER TABLE "Account" ADD CONSTRAINT "Account_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "Session" ADD CONSTRAINT "Session_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "api_keys" ADD CONSTRAINT "api_keys_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "projects"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "memberships" ADD CONSTRAINT "memberships_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "projects"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "memberships" ADD CONSTRAINT "memberships_user_id_fkey" FOREIGN KEY ("user_id") REFERENCES "users"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "traces" ADD CONSTRAINT "traces_project_id_fkey" FOREIGN KEY ("project_id") REFERENCES "projects"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "observations" ADD CONSTRAINT "observations_trace_id_fkey" FOREIGN KEY ("trace_id") REFERENCES "traces"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "scores" ADD CONSTRAINT "scores_trace_id_fkey" FOREIGN KEY ("trace_id") REFERENCES "traces"("id") ON DELETE CASCADE ON UPDATE CASCADE;
+
+-- AddForeignKey
+ALTER TABLE "scores" ADD CONSTRAINT "scores_observation_id_fkey" FOREIGN KEY ("observation_id") REFERENCES "observations"("id") ON DELETE SET NULL ON UPDATE CASCADE;
diff --git a/prisma/schema.prisma b/prisma/schema.prisma
index 523949628a..33018fe2c9 100644
--- a/prisma/schema.prisma
+++ b/prisma/schema.prisma
@@ -14,14 +14,14 @@ datasource db {
model Example {
id String @id @default(cuid())
- createdAt DateTime @default(now())
- updatedAt DateTime @updatedAt
+ createdAt DateTime @default(now()) @map("created_at")
+ updatedAt DateTime @updatedAt @map("updated_at")
}
// Necessary for Next auth
model Account {
id String @id @default(cuid())
- userId String
+ userId String @map("user_id")
type String
provider String
providerAccountId String
@@ -39,20 +39,24 @@ model Account {
model Session {
id String @id @default(cuid())
- sessionToken String @unique
- userId String
+ sessionToken String @unique @map("session_token")
+ userId String @map("user_id")
expires DateTime
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
}
model User {
- id String @id @default(cuid())
+ id String @id @default(cuid())
name String?
- email String? @unique
- emailVerified DateTime?
+ email String? @unique
+ emailVerified DateTime? @map("email_verified")
+ password String?
image String?
accounts Account[]
sessions Session[]
+ memberships Membership[]
+
+ @@map("users")
}
model VerificationToken {
@@ -61,24 +65,71 @@ model VerificationToken {
expires DateTime
@@unique([identifier, token])
+ @@map("verification_tokens")
+}
+
+model Project {
+ id String @id @default(cuid())
+ createdAt DateTime @default(now()) @map("created_at")
+ name String
+ members Membership[]
+ traces Trace[]
+ apiKeys ApiKey[]
+
+ @@map("projects")
+}
+
+model ApiKey {
+ id String @id @unique @default(cuid())
+ createdAt DateTime @default(now()) @map("created_at")
+ note String?
+ publishableKey String @unique @map("publishable_key")
+ hashedSecretKey String @unique @map("hashed_secret_key")
+ displaySecretKey String @map("display_secret_key")
+ lastUsedAt DateTime? @map("last_used_at")
+ expiresAt DateTime? @map("expires_at")
+ projectId String @map("project_id")
+ project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
+
+ @@map("api_keys")
+}
+
+model Membership {
+ projectId String @map("project_id")
+ project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
+ userId String @map("user_id")
+ user User @relation(fields: [userId], references: [id], onDelete: Cascade)
+ role MembershipRole
+
+ @@id([projectId, userId])
+ @@map("memberships")
+}
+
+enum MembershipRole {
+ OWNER
+ ADMIN
+ MEMBER
}
model Trace {
- id String @id @default(cuid())
- timestamp DateTime @default(now())
+ id String @id @default(cuid())
+ timestamp DateTime @default(now())
name String
attributes Json
status String
- statusMessage String? @map("status_message")
- observations Observation[]
- scores Score[]
+ statusMessage String? @map("status_message")
+ projectId String @map("project_id")
+ project Project @relation(fields: [projectId], references: [id], onDelete: Cascade)
+
+ observations Observation[]
+ scores Score[]
@@map("traces")
}
model Observation {
id String @id @default(cuid())
- traceId String
+ traceId String @map("trace_id")
trace Trace @relation(fields: [traceId], references: [id], onDelete: Cascade)
type ObservationType
name String
@@ -104,9 +155,9 @@ model Score {
timestamp DateTime @default(now())
name String
value Int
- traceId String
+ traceId String @map("trace_id")
trace Trace @relation(fields: [traceId], references: [id], onDelete: Cascade)
- observationId String?
+ observationId String? @map("observation_id")
observation Observation? @relation(fields: [observationId], references: [id], onDelete: SetNull)
@@map("scores")
diff --git a/prisma/seed.ts b/prisma/seed.ts
index eeeb790073..f67289bf4e 100755
--- a/prisma/seed.ts
+++ b/prisma/seed.ts
@@ -1,161 +1,227 @@
import { PrismaClient } from "@prisma/client";
+import {
+ hashSecretKey,
+ getDisplaySecretKey,
+} from "@/src/features/publicApi/lib/apiKeys";
+import { hash } from "bcryptjs";
const prisma = new PrismaClient();
async function main() {
- const trace = await prisma.trace.create({
+ const user = await prisma.user.create({
data: {
- id: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53b",
- timestamp: new Date(),
- name: "sales-pilot",
- attributes: {
- },
- status: "success",
+ id: "user-1",
+ name: "Demo User",
+ email: "[email protected]",
+ password: await hash("password", 12),
},
});
- const span = await prisma.observation.create({
+ const project = await prisma.project.create({
data: {
- id: "57a266de-df34-4cea-b4e4-087bb6a3eac0",
- trace: { connect: { id: trace.id } },
- type: "SPAN",
- name: "sales-pilot-retrieval",
- attributes: {
+ id: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53a",
+ name: "llm-app",
+ apiKeys: {
+ create: [
+ {
+ note: "seeded key",
+ hashedSecretKey: await hashSecretKey("sk-lf-1234567890"),
+ displaySecretKey: getDisplaySecretKey("sk-lf-1234567890"),
+ publishableKey: "pk-lf-1234567890",
+ },
+ ],
},
- startTime: new Date(new Date().setMinutes(new Date().getMinutes() - 1)),
- endTime: new Date(),
- },
- });
-
- const event = await prisma.observation.create({
- data: {
- id: "57a266de-df34-4cea-b4e4-78vcdhuv6",
- type: "EVENT",
- startTime: new Date(),
- trace: { connect: { id: trace.id } },
- parent: {
- connect: {
- id: span.id,
+ members: {
+ create: {
+ role: "OWNER",
+ userId: user.id,
},
},
- name: "sales-pilot-vector-db-response",
- attributes: {
- docs: ["Doc 1", "Doc 2", "Doc 3"],
- },
},
});
- const llmCall = await prisma.observation.create({
- data: {
- id: "57a266de-df34-4cea-b4e4-678fdshj3678",
- trace: { connect: { id: trace.id } },
- type: "LLMCALL",
- name: "sales-pilot-retrieval-llm",
- attributes: {
- prompt: "Hello world",
- completion: "Completion",
- tokens: {
- prompt: 2500,
- completion: 100,
+ for (let i = 0; i < 1000; i++) {
+ // print progress to console with a progress bar that refreshes every 10 iterations
+ if (i % 10 === 0) {
+ process.stdout.clearLine(0);
+ process.stdout.cursorTo(0);
+ process.stdout.write(`Seeding ${i} of 1000`);
+ }
+ // random date within last 90 days, with a linear bias towards more recent dates
+ const traceTs = new Date(
+ Date.now() - Math.floor(Math.random() ** 1.5 * 90 * 24 * 60 * 60 * 1000)
+ );
+
+ const trace = await prisma.trace.create({
+ data: {
+ id: `trace-${Math.floor(Math.random() * 1000000000)}`,
+ timestamp: traceTs,
+ name: ["generate-outreach", "label-inbound", "draft-response"][
+ i % 3
+ ] as string,
+ attributes: {
+ user: `user-${i}@langfuse.com`,
},
- model: {
- name: "gpt-3.5-turbo",
- provider: "OpenAI",
- temperature: 0,
+ status: "success",
+ project: {
+ connect: {
+ id: project.id,
+ },
},
- },
- parent: {
- connect: {
- id: span.id,
+ scores: {
+ createMany: {
+ data: [
+ {
+ name: "latency",
+ value: Math.floor(Math.random() * 20),
+ timestamp: traceTs,
+ },
+ {
+ name: "feedback",
+ value: Math.floor(Math.random() * 3) - 1,
+ timestamp: traceTs,
+ },
+ ...(Math.random() > 0.7
+ ? [
+ {
+ name: "sentiment",
+ value: Math.floor(Math.random() * 10) - 5,
+ timestamp: traceTs,
+ },
+ ]
+ : []),
+ ],
+ },
},
},
- startTime: new Date(new Date().setMinutes(new Date().getMinutes() - 0.5)),
- endTime: new Date(),
- },
- });
+ });
- const score1 = await prisma.score.create({
- data: {
- name: "user_feedback",
- value: 1,
- trace: {
- connect: {
- id: trace.id,
- },
- },
- observation: {
- connect: {
- id: llmCall.id,
- },
- },
- },
- });
+ const existingSpanIds: string[] = [];
- const score2 = await prisma.score.create({
- data: {
- name: "change_of_completion",
- value: 22,
- trace: {
- connect: {
- id: trace.id,
+ for (let j = 0; j < Math.floor(Math.random() * 10) + 1; j++) {
+ // add between 1 and 30 ms to trace timestamp
+ const spanTsStart = new Date(
+ traceTs.getTime() + Math.floor(Math.random() * 30)
+ );
+ // random duration of upto 30ms
+ const spanTsEnd = new Date(
+ spanTsStart.getTime() + Math.floor(Math.random() * 30)
+ );
+
+ const span = await prisma.observation.create({
+ data: {
+ type: "SPAN",
+ id: `span-${Math.floor(Math.random() * 1000000000)}`,
+ startTime: spanTsStart,
+ endTime: spanTsEnd,
+ name: `span-${i}-${j}`,
+ attributes: {
+ user: `user-${i}@langfuse.com`,
+ },
+ trace: {
+ connect: {
+ id: trace.id,
+ },
+ },
+ // if this is the first span, add no parent; if not, then randomly select parent from existing spans or the first span
+ ...(existingSpanIds.length === 0
+ ? {}
+ : {
+ parent: {
+ connect: {
+ id: existingSpanIds[
+ Math.floor(Math.random() * existingSpanIds.length)
+ ],
+ },
+ },
+ }),
},
- },
- },
- });
+ });
- const trace2 = await prisma.trace.create({
- data: {
- id: "7a88fb47-b4e2-43b8-a06c-a5ce950dc53c",
- timestamp: new Date(),
- name: "sales-pilot",
- attributes: {
- user: "Nima",
- },
- status: "success",
- },
- });
+ existingSpanIds.push(span.id);
- const span2 = await prisma.observation.create({
- data: {
- id: "57a266de-df34-4cea-b4e4-087bb6a3eac1",
- trace: { connect: { id: trace2.id } },
- type: "SPAN",
- name: "sales-pilot-retrieval",
- attributes: { user: "Nima" },
- startTime: new Date(new Date().setMinutes(new Date().getMinutes() - 1)),
- endTime: new Date(),
- },
- });
+ for (let k = 0; k < Math.floor(Math.random() * 2) + 1; k++) {
+ // random start and end times within span
+ const llmCallTsStart = new Date(
+ spanTsStart.getTime() +
+ Math.floor(
+ Math.random() * (spanTsEnd.getTime() - spanTsStart.getTime())
+ )
+ );
+ const llmCallTsEnd = new Date(
+ llmCallTsStart.getTime() +
+ Math.floor(
+ Math.random() * (spanTsEnd.getTime() - llmCallTsStart.getTime())
+ )
+ );
- const event2 = await prisma.observation.create({
- data: {
- id: "57a266de-df34-4cea-b4e4-78vcdhuv7",
- type: "EVENT",
- startTime: new Date(),
- trace: { connect: { id: trace2.id } },
- parent: {
- connect: {
- id: span2.id,
- },
- },
- name: "sales-pilot-vector-db-response",
- attributes: {
- docs: ["Doc 1", "Doc 2", "Doc 3"],
- },
- },
- });
+ const llmCall = await prisma.observation.create({
+ data: {
+ type: "LLMCALL",
+ id: `llm-call-${Math.floor(Math.random() * 1000000000)}`,
+ startTime: llmCallTsStart,
+ endTime: llmCallTsEnd,
+ name: `llm-call-${i}-${j}-${k}`,
+ attributes: {
+ user: `user-${i}@langfuse.com`,
+ prompt: "PROMPT TEXT SEEDED",
+ completion: "COMPLETION TEXT SEEDED",
+ model: {
+ name: Math.random() > 0.5 ? "gpt-3.5-turbo" : "gpt-4",
+ temperature: 0,
+ },
+ tokens: {
+ prompt: Math.floor(Math.random() * 1000) + 300,
+ completion: Math.floor(Math.random() * 500) + 100,
+ },
+ },
+ parent: {
+ connect: {
+ id: span.id,
+ },
+ },
+ trace: {
+ connect: {
+ id: trace.id,
+ },
+ },
+ },
+ });
- console.log({
- trace,
- span,
- event,
- llmCall,
- grading1: score1,
- grading2: score2,
- });
+ for (let l = 0; l < Math.floor(Math.random() * 2); l++) {
+ // random start time within span
+ const eventTs = new Date(
+ spanTsStart.getTime() +
+ Math.floor(
+ Math.random() * (spanTsEnd.getTime() - spanTsStart.getTime())
+ )
+ );
+
+ const event = await prisma.observation.create({
+ data: {
+ type: "EVENT",
+ id: `event-${Math.floor(Math.random() * 1000000000)}`,
+ startTime: eventTs,
+ name: `event-${i}-${j}-${k}-${l}`,
+ attributes: {
+ user: `user-${i}@langfuse.com`,
+ },
+ parent: {
+ connect: {
+ id: span.id,
+ },
+ },
+ trace: {
+ connect: {
+ id: trace.id,
+ },
+ },
+ },
+ });
+ }
+ }
+ }
+ }
}
main()
diff --git a/public/favicon.ico b/public/favicon.ico
deleted file mode 100644
index 60c702aac1..0000000000
Binary files a/public/favicon.ico and /dev/null differ
diff --git a/src/components/layouts/header.tsx b/src/components/layouts/header.tsx
index e1e35f53bc..fcc3ceba8f 100644
--- a/src/components/layouts/header.tsx
+++ b/src/components/layouts/header.tsx
@@ -5,6 +5,7 @@ export default function Header(props: {
title: string;
breadcrumb?: { name: string; href?: string }[];
live?: boolean;
+ actionButtons?: React.ReactNode;
}) {
const backHref =
props.breadcrumb &&
@@ -76,20 +77,7 @@ export default function Header(props: {
) : null}
</div>
<div className="md:flex-1" />
- {/* <div className="mt-4 flex flex-shrink-0 md:ml-4 md:mt-0">
- <button
- type="button"
- className="inline-flex items-center rounded-md bg-white px-3 py-2 text-sm font-semibold text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 hover:bg-gray-50"
- >
- Edit
- </button>
- <button
- type="button"
- className="ml-3 inline-flex items-center rounded-md bg-indigo-600 px-3 py-2 text-sm font-semibold text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600"
- >
- Publish
- </button>
- </div> */}
+ {props.actionButtons ?? null}
</div>
</div>
);
diff --git a/src/components/layouts/layout.tsx b/src/components/layouts/layout.tsx
index 92d3f3f9fa..4d27ffbbfa 100644
--- a/src/components/layouts/layout.tsx
+++ b/src/components/layouts/layout.tsx
@@ -1,5 +1,5 @@
import { Fragment, type PropsWithChildren, useState } from "react";
-import { Dialog, Transition } from "@headlessui/react";
+import { Dialog, Menu, Transition } from "@headlessui/react";
import {
Bars3Icon,
Cog6ToothIcon,
@@ -12,23 +12,114 @@ import {
import Link from "next/link";
import { useRouter } from "next/router";
import clsx from "clsx";
-import { Joystick, LineChart } from "lucide-react";
-
-const navigationPaths = [
- { name: "Dashboard", href: "/", icon: HomeIcon },
- { name: "Traces", href: "/traces", icon: UsersIcon },
- { name: "LLM Calls", href: "/llm-calls", icon: DocumentDuplicateIcon },
- { name: "Scores", href: "/scores", icon: LineChart },
- { name: "Playground (soon)", href: "#", icon: Joystick },
+import { Code, LineChart } from "lucide-react";
+import { signOut, useSession } from "next-auth/react";
+import { ChevronDownIcon } from "@heroicons/react/20/solid";
+import { cn } from "@/src/utils/tailwind";
+import {
+ Avatar,
+ AvatarFallback,
+ AvatarImage,
+} from "@/src/components/ui/avatar";
+import { api } from "@/src/utils/api";
+import { NewProjectButton } from "@/src/features/projects/components/NewProjectButton";
+
+const userNavigation = [
+ {
+ name: "Sign out",
+ onClick: () =>
+ signOut({
+ callbackUrl: "/auth/sign-in",
+ }),
+ },
];
+const pathsWithoutNavigation: string[] = [];
+const unauthenticatedPaths = ["/auth/sign-in", "/auth/sign-up"];
+
export default function Layout(props: PropsWithChildren) {
const [sidebarOpen, setSidebarOpen] = useState(false);
const router = useRouter();
- const navigation = navigationPaths.map((staticAttributes) => ({
- ...staticAttributes,
- current: router.pathname === staticAttributes.href,
- }));
+ const projectId = router.query.projectId as string | undefined;
+ const navigation = [
+ { name: "Dashboard", pathname: `/project/[projectId]`, icon: HomeIcon },
+ {
+ name: "Traces",
+ pathname: `/project/[projectId]/traces`,
+ icon: UsersIcon,
+ },
+ {
+ name: "LLM Calls",
+ pathname: `/project/[projectId]/llm-calls`,
+ icon: DocumentDuplicateIcon,
+ },
+ {
+ name: "Scores",
+ pathname: `/project/[projectId]/scores`,
+ icon: LineChart,
+ },
+ {
+ name: "Setup",
+ pathname: "/project/[projectId]/setup",
+ icon: Cog6ToothIcon,
+ },
+ ]
+ .filter((nav) => projectId || !nav.pathname.includes("[projectId]"))
+ .map((nav) => ({
+ ...nav,
+ href: nav.pathname.replace("[projectId]", projectId ?? ""),
+ }))
+ .map((staticAttributes) => ({
+ ...staticAttributes,
+ current: router.pathname === staticAttributes.pathname,
+ }));
+
+ const session = useSession();
+
+ const projects = api.projects.all.useQuery(undefined, {
+ enabled: session.status === "authenticated",
+ });
+
+ if (session.status === "loading") return <Spinner message="Loading" />;
+
+ // If the user has a token, but does not exist in the database, sign them out
+ if (
+ session.data &&
+ session.data.user === null &&
+ !unauthenticatedPaths.includes(router.pathname)
+ ) {
+ void signOut({
+ callbackUrl: "/auth/sign-in",
+ });
+ return <Spinner message="Redirecting" />;
+ }
+
+ if (
+ session.status === "unauthenticated" &&
+ !unauthenticatedPaths.includes(router.pathname)
+ ) {
+ void router.push("/auth/sign-in");
+ return <Spinner message="Redirecting" />;
+ }
+
+ if (
+ session.status === "authenticated" &&
+ unauthenticatedPaths.includes(router.pathname)
+ ) {
+ void router.push("/");
+ return <Spinner message="Redirecting" />;
+ }
+
+ const hideNavigation =
+ session.status === "unauthenticated" ||
+ projects.data?.length === 0 ||
+ pathsWithoutNavigation.includes(router.pathname);
+ if (hideNavigation)
+ return (
+ <main className="h-full bg-gray-50 px-4 py-4 sm:px-6 lg:px-8">
+ {props.children}
+ </main>
+ );
return (
<>
@@ -120,18 +211,42 @@ export default function Layout(props: PropsWithChildren) {
))}
</ul>
</li>
-
- <li className="mt-auto">
- <Link
- href="/setup"
- className="group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 hover:bg-gray-50 hover:text-indigo-600"
- >
- <Cog6ToothIcon
- className="h-6 w-6 shrink-0 text-gray-400 group-hover:text-indigo-600"
- aria-hidden="true"
- />
- Setup
- </Link>
+ <li>
+ <div className="flex flex-row place-content-between items-center">
+ <div className="text-xs font-semibold leading-6 text-gray-400">
+ Projects
+ </div>
+ <NewProjectButton size="xs" />
+ </div>
+ <ul role="list" className="-mx-2 mt-2 space-y-1">
+ {projects.data?.map((project) => (
+ <li key={project.name}>
+ <Link
+ href={`/project/${project.id}`}
+ className={cn(
+ projectId === project.id
+ ? "bg-gray-50 text-indigo-600"
+ : "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",
+ "group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"
+ )}
+ >
+ <span
+ className={cn(
+ projectId === project.id
+ ? "border-indigo-600 text-indigo-600"
+ : "border-gray-200 text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600",
+ "flex h-6 w-6 shrink-0 items-center justify-center rounded-lg border bg-white p-1 text-[0.625rem] font-medium"
+ )}
+ >
+ <Code />
+ </span>
+ <span className="truncate">
+ {project.name}
+ </span>
+ </Link>
+ </li>
+ ))}
+ </ul>
</li>
</ul>
</nav>
@@ -145,12 +260,12 @@ export default function Layout(props: PropsWithChildren) {
{/* Static sidebar for desktop */}
<div className="hidden lg:fixed lg:inset-y-0 lg:z-50 lg:flex lg:w-72 lg:flex-col">
{/* Sidebar component, swap this element with another sidebar if you like */}
- <div className="flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 bg-white px-6 pb-4">
+ <div className="flex grow flex-col gap-y-5 overflow-y-auto border-r border-gray-200 bg-white px-6">
<div className="flex h-16 shrink-0 items-center font-mono text-xl font-bold">
🪢 langfuse
</div>
<nav className="flex flex-1 flex-col">
- <ul role="list" className="flex flex-1 flex-col gap-y-7">
+ <ul role="list" className="flex flex-1 flex-col gap-y-4">
<li>
<ul role="list" className="-mx-2 space-y-1">
{navigation.map((item) => (
@@ -181,16 +296,95 @@ export default function Layout(props: PropsWithChildren) {
</li>
<li className="mt-auto">
- <Link
- href="/setup"
- className="group -mx-2 flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6 text-gray-700 hover:bg-gray-50 hover:text-indigo-600"
- >
- <Cog6ToothIcon
- className="h-6 w-6 shrink-0 text-gray-400 group-hover:text-indigo-600"
- aria-hidden="true"
- />
- Setup
- </Link>
+ <div className="flex flex-row place-content-between items-center">
+ <div className="text-xs font-semibold leading-6 text-gray-400">
+ Projects
+ </div>
+ <NewProjectButton size="xs" />
+ </div>
+ <ul role="list" className="-mx-2 mt-2 space-y-1">
+ {projects.data?.map((project) => (
+ <li key={project.name}>
+ <Link
+ href={`/project/${project.id}`}
+ className={cn(
+ projectId === project.id
+ ? "bg-gray-50 text-indigo-600"
+ : "text-gray-700 hover:bg-gray-50 hover:text-indigo-600",
+ "group flex gap-x-3 rounded-md p-2 text-sm font-semibold leading-6"
+ )}
+ >
+ <span
+ className={cn(
+ projectId === project.id
+ ? "border-indigo-600 text-indigo-600"
+ : "border-gray-200 text-gray-400 group-hover:border-indigo-600 group-hover:text-indigo-600",
+ "w-6shrink-0 flex h-6 w-6 items-center justify-center rounded-lg border bg-white p-1 text-[0.625rem] font-medium"
+ )}
+ >
+ <Code />
+ </span>
+ <span className="truncate">{project.name}</span>
+ </Link>
+ </li>
+ ))}
+ </ul>
+ </li>
+
+ <li className="-mx-6 ">
+ <Menu as="div" className="relative">
+ <Menu.Button className="flex w-full items-center gap-x-4 p-1.5 px-6 py-3 text-sm font-semibold leading-6 text-gray-900 hover:bg-gray-50">
+ <span className="sr-only">Open user menu</span>
+ <Avatar className="h-8 w-8">
+ <AvatarImage
+ src={session.data?.user?.image ?? undefined}
+ />
+ <AvatarFallback>
+ {session.data?.user?.name
+ ? session.data.user.name
+ .split(" ")
+ .map((word) => word[0])
+ .slice(0, 2)
+ .concat("")
+ : null}
+ </AvatarFallback>
+ </Avatar>
+ <span className="flex-shrink truncate text-sm font-semibold leading-6 text-gray-900">
+ {session.data?.user?.name}
+ </span>
+ <ChevronDownIcon
+ className="h-5 w-5 text-gray-400"
+ aria-hidden="true"
+ />
+ </Menu.Button>
+ <Transition
+ as={Fragment}
+ enter="transition ease-out duration-100"
+ enterFrom="transform opacity-0 scale-95"
+ enterTo="transform opacity-100 scale-100"
+ leave="transition ease-in duration-75"
+ leaveFrom="transform opacity-100 scale-100"
+ leaveTo="transform opacity-0 scale-95"
+ >
+ <Menu.Items className="absolute -top-full right-0 z-10 mt-2.5 w-32 rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none">
+ {userNavigation.map((item) => (
+ <Menu.Item key={item.name}>
+ {({ active }) => (
+ <a
+ onClick={() => void item.onClick()}
+ className={cn(
+ active ? "bg-gray-50" : "",
+ "block px-3 py-1 text-sm leading-6 text-gray-900"
+ )}
+ >
+ {item.name}
+ </a>
+ )}
+ </Menu.Item>
+ ))}
+ </Menu.Items>
+ </Transition>
+ </Menu>
</li>
</ul>
</nav>
@@ -209,6 +403,50 @@ export default function Layout(props: PropsWithChildren) {
<div className="flex-1 font-mono text-sm font-bold leading-6 text-gray-900">
🪢 langfuse
</div>
+ <Menu as="div" className="relative">
+ <Menu.Button className="flex items-center gap-x-4 text-sm font-semibold leading-6 text-gray-900">
+ <span className="sr-only">Open user menu</span>
+ <Avatar className="h-8 w-8">
+ <AvatarImage src={session.data?.user?.image ?? undefined} />
+ <AvatarFallback>
+ {session.data?.user?.name
+ ? session.data.user.name
+ .split(" ")
+ .map((word) => word[0])
+ .slice(0, 2)
+ .concat("")
+ : null}
+ </AvatarFallback>
+ </Avatar>
+ </Menu.Button>
+ <Transition
+ as={Fragment}
+ enter="transition ease-out duration-100"
+ enterFrom="transform opacity-0 scale-95"
+ enterTo="transform opacity-100 scale-100"
+ leave="transition ease-in duration-75"
+ leaveFrom="transform opacity-100 scale-100"
+ leaveTo="transform opacity-0 scale-95"
+ >
+ <Menu.Items className="absolute right-0 z-10 mt-2.5 w-32 rounded-md bg-white py-2 shadow-lg ring-1 ring-gray-900/5 focus:outline-none">
+ {userNavigation.map((item) => (
+ <Menu.Item key={item.name}>
+ {({ active }) => (
+ <a
+ onClick={() => void item.onClick()}
+ className={cn(
+ active ? "bg-gray-50" : "",
+ "block px-3 py-1 text-sm leading-6 text-gray-900"
+ )}
+ >
+ {item.name}
+ </a>
+ )}
+ </Menu.Item>
+ ))}
+ </Menu.Items>
+ </Transition>
+ </Menu>
</div>
<div className="lg:pl-72">
<main className="py-4">
@@ -219,3 +457,18 @@ export default function Layout(props: PropsWithChildren) {
</>
);
}
+
+function Spinner(props: { message: string }) {
+ return (
+ <div className="flex min-h-full flex-1 flex-col justify-center py-12 sm:px-6 lg:px-8">
+ <div className="sm:mx-auto sm:w-full sm:max-w-md">
+ <span className="block text-center font-mono text-4xl font-bold motion-safe:animate-spin">
+ 🪢
+ </span>
+ <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">
+ {props.message} ...
+ </h2>
+ </div>
+ </div>
+ );
+}
diff --git a/src/components/observationDisplay.tsx b/src/components/observationDisplay.tsx
index 396619b26d..9d34e7911a 100644
--- a/src/components/observationDisplay.tsx
+++ b/src/components/observationDisplay.tsx
@@ -1,16 +1,19 @@
-import { Button } from "~/components/ui/button";
+import { Button } from "@/src/components/ui/button";
import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
-} from "~/components/ui/collapsible";
+} from "@/src/components/ui/collapsible";
import { ChevronsUpDown, ChevronsDownUp, ArrowUpRight } from "lucide-react";
import { useState } from "react";
import { type NestedObservation } from "@/src/utils/types";
import Link from "next/link";
import { JSONview } from "@/src/components/ui/code";
-export default function ObservationDisplay(props: { obs: NestedObservation }) {
+export default function ObservationDisplay(props: {
+ obs: NestedObservation;
+ projectId: string;
+}) {
const [isOpen, setIsOpen] = useState(false);
return (
@@ -36,7 +39,9 @@ export default function ObservationDisplay(props: { obs: NestedObservation }) {
</CollapsibleTrigger>
{props.obs.type === "LLMCALL" ? (
<Button size="sm" variant="ghost" asChild>
- <Link href={`/llm-calls/${props.obs.id}`}>
+ <Link
+ href={`/project/${props.projectId}/llm-calls/${props.obs.id}`}
+ >
<ArrowUpRight className="h-4 w-4" />
</Link>
</Button>
@@ -51,7 +56,11 @@ export default function ObservationDisplay(props: { obs: NestedObservation }) {
</Collapsible>
<div className="ml-5">
{props.obs.children.map((obs) => (
- <ObservationDisplay key={obs.name} obs={obs} />
+ <ObservationDisplay
+ key={obs.name}
+ obs={obs}
+ projectId={props.projectId}
+ />
))}
</div>
</div>
diff --git a/src/components/table/data-table-faceted-filter.tsx b/src/components/table/data-table-faceted-filter.tsx
index d54ea46740..de0147e41c 100644
--- a/src/components/table/data-table-faceted-filter.tsx
+++ b/src/components/table/data-table-faceted-filter.tsx
@@ -20,12 +20,12 @@ import {
PopoverTrigger,
} from "@/src/components/ui/popover";
import { Separator } from "@/src/components/ui/separator";
-import { type RowOptions } from "../../pages/traces";
+import { type TableRowOptions } from "@/src/components/table/types";
interface DataTableFacetedFilter<TData, TValue> {
columnDef: ColumnDef<TData, TValue>;
title?: string;
- options: RowOptions;
+ options: TableRowOptions;
}
export function DataTableFacetedFilter<TData, TValue>({
diff --git a/src/components/table/data-table-toolbar.tsx b/src/components/table/data-table-toolbar.tsx
index 80d67e07df..49c6517717 100644
--- a/src/components/table/data-table-toolbar.tsx
+++ b/src/components/table/data-table-toolbar.tsx
@@ -3,11 +3,11 @@ import { X } from "lucide-react";
import { Button } from "@/src/components/ui/button";
import { DataTableFacetedFilter } from "./data-table-faceted-filter";
-import { type RowOptions } from "../../pages/traces";
+import { type TableRowOptions } from "@/src/components/table/types";
interface DataTableToolbarProps<TData, TValue> {
columnDefs: ColumnDef<TData, TValue>[];
- options: RowOptions[];
+ options: TableRowOptions[];
resetFilters: () => void;
isFiltered: () => boolean;
}
diff --git a/src/components/table/data-table.tsx b/src/components/table/data-table.tsx
index f5433af5ff..613273eb71 100644
--- a/src/components/table/data-table.tsx
+++ b/src/components/table/data-table.tsx
@@ -17,12 +17,12 @@ import {
TableRow,
} from "@/src/components/ui/table";
import { useState } from "react";
-import { type RowOptions } from "../../pages/traces";
+import { type TableRowOptions } from "@/src/components/table/types";
interface DataTableProps<TData, TValue> {
columns: ColumnDef<TData, TValue>[];
data: AsyncTableData<TData[]>;
- options: AsyncTableData<RowOptions[]>;
+ options: AsyncTableData<TableRowOptions[]>;
}
export interface AsyncTableData<T> {
diff --git a/src/components/table/types.ts b/src/components/table/types.ts
new file mode 100644
index 0000000000..988bdf1f9b
--- /dev/null
+++ b/src/components/table/types.ts
@@ -0,0 +1,6 @@
+import { type LucideIcon } from "lucide-react";
+
+export type TableRowOptions = {
+ columnId: string;
+ options: { label: string; value: number; icon?: LucideIcon }[];
+};
diff --git a/src/components/ui/avatar.tsx b/src/components/ui/avatar.tsx
new file mode 100644
index 0000000000..258424f502
--- /dev/null
+++ b/src/components/ui/avatar.tsx
@@ -0,0 +1,49 @@
+"use client";
+
+import * as React from "react";
+import * as AvatarPrimitive from "@radix-ui/react-avatar";
+import { cn } from "@/src/utils/tailwind";
+
+const Avatar = React.forwardRef<
+ React.ElementRef<typeof AvatarPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Root>
+>(({ className, ...props }, ref) => (
+ <AvatarPrimitive.Root
+ ref={ref}
+ className={cn(
+ "relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",
+ className
+ )}
+ {...props}
+ />
+));
+Avatar.displayName = AvatarPrimitive.Root.displayName;
+
+const AvatarImage = React.forwardRef<
+ React.ElementRef<typeof AvatarPrimitive.Image>,
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>
+>(({ className, ...props }, ref) => (
+ <AvatarPrimitive.Image
+ ref={ref}
+ className={cn("aspect-square h-full w-full", className)}
+ {...props}
+ />
+));
+AvatarImage.displayName = AvatarPrimitive.Image.displayName;
+
+const AvatarFallback = React.forwardRef<
+ React.ElementRef<typeof AvatarPrimitive.Fallback>,
+ React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>
+>(({ className, ...props }, ref) => (
+ <AvatarPrimitive.Fallback
+ ref={ref}
+ className={cn(
+ "flex h-full w-full items-center justify-center rounded-full bg-muted",
+ className
+ )}
+ {...props}
+ />
+));
+AvatarFallback.displayName = AvatarPrimitive.Fallback.displayName;
+
+export { Avatar, AvatarImage, AvatarFallback };
diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx
index 80bd239477..8171316b41 100644
--- a/src/components/ui/button.tsx
+++ b/src/components/ui/button.tsx
@@ -4,6 +4,7 @@ import * as React from "react";
import { Slot } from "@radix-ui/react-slot";
import { type VariantProps, cva } from "class-variance-authority";
import { cn } from "@/src/utils/tailwind";
+import { Loader2 } from "lucide-react";
const buttonVariants = cva(
"inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:opacity-50 disabled:pointer-events-none ring-offset-background",
@@ -22,6 +23,7 @@ const buttonVariants = cva(
},
size: {
default: "h-10 py-2 px-4",
+ xs: "h-7 px-2 rounded-sm",
sm: "h-9 px-3 rounded-md",
lg: "h-11 px-8 rounded-md",
},
@@ -37,20 +39,46 @@ export interface ButtonProps
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
VariantProps<typeof buttonVariants> {
asChild?: boolean;
+ loading?: boolean;
}
const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
- ({ className, variant, size, asChild = false, ...props }, ref) => {
+ (
+ {
+ className,
+ variant,
+ size,
+ asChild = false,
+ loading = false,
+ disabled,
+ onClick,
+ children,
+ ...props
+ },
+ ref
+ ) => {
const Comp = asChild ? Slot : "button";
return (
<Comp
className={cn(buttonVariants({ variant, size, className }))}
ref={ref}
+ disabled={disabled || loading}
+ onClick={loading || disabled ? undefined : onClick}
{...props}
- />
+ >
+ {loading ? <Spinner /> : children}
+ </Comp>
);
}
);
Button.displayName = "Button";
export { Button, buttonVariants };
+
+function Spinner() {
+ return (
+ <div className="flex h-3/4 items-center justify-center">
+ <Loader2 className="h-full w-full animate-spin" />
+ </div>
+ );
+}
diff --git a/src/components/ui/card.tsx b/src/components/ui/card.tsx
index 2fd731388b..e81de2e867 100644
--- a/src/components/ui/card.tsx
+++ b/src/components/ui/card.tsx
@@ -49,7 +49,7 @@ const CardDescription = React.forwardRef<
HTMLParagraphElement,
React.HTMLAttributes<HTMLParagraphElement>
>(({ className, ...props }, ref) => (
- <p
+ <div
ref={ref}
className={cn("text-sm text-muted-foreground", className)}
{...props}
diff --git a/src/components/ui/code.tsx b/src/components/ui/code.tsx
index d6d6609bb5..e4c4659f5f 100644
--- a/src/components/ui/code.tsx
+++ b/src/components/ui/code.tsx
@@ -1,7 +1,9 @@
-import { type PropsWithChildren } from "react";
+import { useState } from "react";
+import { Button } from "@/src/components/ui/button";
+import { Check, Copy } from "lucide-react";
+import { cn } from "@/src/utils/tailwind";
-// eslint-disable-next-line @typescript-eslint/no-explicit-any
-export function JSONview(props: { json: string | any }) {
+export function JSONview(props: { json: string | unknown }) {
const text =
typeof props.json === "string"
? props.json
@@ -10,10 +12,38 @@ export function JSONview(props: { json: string | any }) {
return <CodeView>{text}</CodeView>;
}
-export function CodeView(props: PropsWithChildren) {
+export function CodeView(props: {
+ children: string | undefined;
+ className?: string;
+}) {
+ const [isCopied, setIsCopied] = useState(false);
+
+ const handleCopy = () => {
+ setIsCopied(true);
+ void navigator.clipboard.writeText(props.children ?? "");
+ setTimeout(() => setIsCopied(false), 1000);
+ };
+
return (
- <pre className="whitespace-pre-wrap rounded-md border px-4 py-3 font-mono text-sm">
+ <code
+ className={cn(
+ "relative block max-w-full whitespace-pre-wrap break-words rounded-md border px-4 py-3 pr-12 font-mono text-sm",
+ props.className
+ )}
+ >
{props.children}
- </pre>
+ <Button
+ className="absolute right-2 top-2"
+ variant="secondary"
+ size="xs"
+ onClick={handleCopy}
+ >
+ {isCopied ? (
+ <Check className="h-3 w-3" />
+ ) : (
+ <Copy className="h-3 w-3" />
+ )}
+ </Button>
+ </code>
);
}
diff --git a/src/components/ui/dialog.tsx b/src/components/ui/dialog.tsx
index 31b9e93a95..e48152e523 100644
--- a/src/components/ui/dialog.tsx
+++ b/src/components/ui/dialog.tsx
@@ -3,7 +3,6 @@
import * as React from "react";
import * as DialogPrimitive from "@radix-ui/react-dialog";
import { X } from "lucide-react";
-
import { cn } from "@/src/utils/tailwind";
const Dialog = DialogPrimitive.Root;
@@ -47,7 +46,7 @@ const DialogContent = React.forwardRef<
<DialogPrimitive.Content
ref={ref}
className={cn(
- "fixed z-50 grid w-full gap-4 rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
+ "fixed z-50 grid w-full gap-4 overflow-hidden rounded-b-lg border bg-background p-6 shadow-lg animate-in data-[state=open]:fade-in-90 data-[state=open]:slide-in-from-bottom-10 sm:max-w-lg sm:rounded-lg sm:zoom-in-90 data-[state=open]:sm:slide-in-from-bottom-0",
className
)}
{...props}
diff --git a/src/components/ui/form.tsx b/src/components/ui/form.tsx
new file mode 100644
index 0000000000..c2ca9b5e56
--- /dev/null
+++ b/src/components/ui/form.tsx
@@ -0,0 +1,178 @@
+// https://ui.shadcn.com/docs/forms/react-hook-form
+
+import * as React from "react";
+import type * as LabelPrimitive from "@radix-ui/react-label";
+import { Slot } from "@radix-ui/react-slot";
+import {
+ Controller,
+ type ControllerProps,
+ type FieldPath,
+ type FieldValues,
+ FormProvider,
+ useFormContext,
+} from "react-hook-form";
+import { Label } from "@/src/components/ui/label";
+import { cn } from "@/src/utils/tailwind";
+
+const Form = FormProvider;
+
+type FormFieldContextValue<
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
+> = {
+ name: TName;
+};
+
+const FormFieldContext = React.createContext<FormFieldContextValue>(
+ {} as FormFieldContextValue
+);
+
+const FormField = <
+ TFieldValues extends FieldValues = FieldValues,
+ TName extends FieldPath<TFieldValues> = FieldPath<TFieldValues>
+>({
+ ...props
+}: ControllerProps<TFieldValues, TName>) => {
+ return (
+ <FormFieldContext.Provider value={{ name: props.name }}>
+ <Controller {...props} />
+ </FormFieldContext.Provider>
+ );
+};
+
+const useFormField = () => {
+ const fieldContext = React.useContext(FormFieldContext);
+ const itemContext = React.useContext(FormItemContext);
+ const { getFieldState, formState } = useFormContext();
+
+ const fieldState = getFieldState(fieldContext.name, formState);
+
+ if (!fieldContext) {
+ throw new Error("useFormField should be used within <FormField>");
+ }
+
+ const { id } = itemContext;
+
+ return {
+ id,
+ name: fieldContext.name,
+ formItemId: `${id}-form-item`,
+ formDescriptionId: `${id}-form-item-description`,
+ formMessageId: `${id}-form-item-message`,
+ ...fieldState,
+ };
+};
+
+type FormItemContextValue = {
+ id: string;
+};
+
+const FormItemContext = React.createContext<FormItemContextValue>(
+ {} as FormItemContextValue
+);
+
+const FormItem = React.forwardRef<
+ HTMLDivElement,
+ React.HTMLAttributes<HTMLDivElement>
+>(({ className, ...props }, ref) => {
+ const id = React.useId();
+
+ return (
+ <FormItemContext.Provider value={{ id }}>
+ <div ref={ref} className={cn("space-y-2", className)} {...props} />
+ </FormItemContext.Provider>
+ );
+});
+FormItem.displayName = "FormItem";
+
+const FormLabel = React.forwardRef<
+ React.ElementRef<typeof LabelPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root>
+>(({ className, ...props }, ref) => {
+ const { error, formItemId } = useFormField();
+
+ return (
+ <Label
+ ref={ref}
+ className={cn(error && "text-destructive", className)}
+ htmlFor={formItemId}
+ {...props}
+ />
+ );
+});
+FormLabel.displayName = "FormLabel";
+
+const FormControl = React.forwardRef<
+ React.ElementRef<typeof Slot>,
+ React.ComponentPropsWithoutRef<typeof Slot>
+>(({ ...props }, ref) => {
+ const { error, formItemId, formDescriptionId, formMessageId } =
+ useFormField();
+
+ return (
+ <Slot
+ ref={ref}
+ id={formItemId}
+ aria-describedby={
+ !error
+ ? `${formDescriptionId}`
+ : `${formDescriptionId} ${formMessageId}`
+ }
+ aria-invalid={!!error}
+ {...props}
+ />
+ );
+});
+FormControl.displayName = "FormControl";
+
+const FormDescription = React.forwardRef<
+ HTMLParagraphElement,
+ React.HTMLAttributes<HTMLParagraphElement>
+>(({ className, ...props }, ref) => {
+ const { formDescriptionId } = useFormField();
+
+ return (
+ <div
+ ref={ref}
+ id={formDescriptionId}
+ className={cn("text-sm text-muted-foreground", className)}
+ {...props}
+ />
+ );
+});
+FormDescription.displayName = "FormDescription";
+
+const FormMessage = React.forwardRef<
+ HTMLParagraphElement,
+ React.HTMLAttributes<HTMLParagraphElement>
+>(({ className, children, ...props }, ref) => {
+ const { error, formMessageId } = useFormField();
+ const body = error ? String(error?.message) : children;
+
+ if (!body) {
+ return null;
+ }
+
+ return (
+ <div
+ ref={ref}
+ id={formMessageId}
+ className={cn("text-sm font-medium text-destructive", className)}
+ {...props}
+ >
+ {body}
+ </div>
+ );
+});
+FormMessage.displayName = "FormMessage";
+
+export {
+ useFormField,
+ Form,
+ FormItem,
+ FormLabel,
+ FormControl,
+ FormDescription,
+ FormMessage,
+ FormField,
+};
diff --git a/src/components/ui/input.tsx b/src/components/ui/input.tsx
index b41a93c28c..3f287fe320 100644
--- a/src/components/ui/input.tsx
+++ b/src/components/ui/input.tsx
@@ -1,6 +1,5 @@
-import * as React from "react";
-
import { cn } from "@/src/utils/tailwind";
+import * as React from "react";
export type InputProps = React.InputHTMLAttributes<HTMLInputElement>;
diff --git a/src/components/ui/label.tsx b/src/components/ui/label.tsx
new file mode 100644
index 0000000000..a175c3729e
--- /dev/null
+++ b/src/components/ui/label.tsx
@@ -0,0 +1,25 @@
+"use client";
+
+import * as React from "react";
+import * as LabelPrimitive from "@radix-ui/react-label";
+import { cva, type VariantProps } from "class-variance-authority";
+import { cn } from "@/src/utils/tailwind";
+
+const labelVariants = cva(
+ "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
+);
+
+const Label = React.forwardRef<
+ React.ElementRef<typeof LabelPrimitive.Root>,
+ React.ComponentPropsWithoutRef<typeof LabelPrimitive.Root> &
+ VariantProps<typeof labelVariants>
+>(({ className, ...props }, ref) => (
+ <LabelPrimitive.Root
+ ref={ref}
+ className={cn(labelVariants(), className)}
+ {...props}
+ />
+));
+Label.displayName = LabelPrimitive.Root.displayName;
+
+export { Label };
diff --git a/src/components/ui/table.tsx b/src/components/ui/table.tsx
index 04ef6e0a59..01bc03dbd8 100644
--- a/src/components/ui/table.tsx
+++ b/src/components/ui/table.tsx
@@ -1,5 +1,5 @@
-import * as React from "react";
import { cn } from "@/src/utils/tailwind";
+import * as React from "react";
const Table = React.forwardRef<
HTMLTableElement,
diff --git a/src/env.mjs b/src/env.mjs
index eade2eb109..f763df6e65 100644
--- a/src/env.mjs
+++ b/src/env.mjs
@@ -16,7 +16,7 @@ export const env = createEnv({
NEXTAUTH_URL: z.preprocess(
// This makes Vercel deployments not fail if you don't set NEXTAUTH_URL
// Since NextAuth.js automatically uses the VERCEL_URL if present.
- (str) => process.env.VERCEL_URL ?? str,
+ (str) => (process.env.VERCEL_URL && process.env.VERCEL_URL !== "") ? process.env.VERCEL_URL : str,
// VERCEL_URL doesn't include `https` so it cant be validated as a URL
process.env.VERCEL ? z.string().min(1) : z.string().url(),
),
diff --git a/src/features/auth/lib/emailPassword.ts b/src/features/auth/lib/emailPassword.ts
new file mode 100644
index 0000000000..e7de315c8d
--- /dev/null
+++ b/src/features/auth/lib/emailPassword.ts
@@ -0,0 +1,53 @@
+import { prisma } from "@/src/server/db";
+import { compare, hash } from "bcryptjs";
+
+/**
+ * This function creates a user with an email and password.
+ * @param {string} email - A string representing the email address of the user that needs to be
+ * created.
+ * @param {string} password - The `password` parameter is a string that represents the password that
+ * the user wants to use for their account. It will be used to authenticate the user when they log in
+ * to their account.
+ * @returns {Promise<string>} - A promise that resolves to the id of the user that was created.
+ */
+export async function createUserEmailPassword(
+ email: string,
+ password: string,
+ name: string
+) {
+ if (!isValidPassword(password)) throw new Error("Invalid password");
+
+ const hashedPassword = await hashPassword(password);
+ // check that no user exists with this email
+ const user = await prisma.user.findUnique({
+ where: {
+ email,
+ },
+ });
+ if (user !== null) {
+ throw new Error("User already exists");
+ }
+
+ const newUser = await prisma.user.create({
+ data: {
+ email,
+ password: hashedPassword,
+ name,
+ },
+ });
+ return newUser.id;
+}
+
+export async function hashPassword(password: string) {
+ const hashedPassword = await hash(password, 12);
+ return hashedPassword;
+}
+
+export async function verifyPassword(password: string, hashedPassword: string) {
+ const isValid = await compare(password, hashedPassword);
+ return isValid;
+}
+
+export function isValidPassword(password: string) {
+ return password.length >= 8;
+}
diff --git a/src/features/auth/lib/signupSchema.ts b/src/features/auth/lib/signupSchema.ts
new file mode 100644
index 0000000000..7f05eeb0e8
--- /dev/null
+++ b/src/features/auth/lib/signupSchema.ts
@@ -0,0 +1,9 @@
+import * as z from "zod";
+
+export const signupSchema = z.object({
+ name: z.string(),
+ email: z.string().email(),
+ password: z.string().min(8, {
+ message: "Password must be at least 8 characters long",
+ }),
+});
diff --git a/src/features/dashboard/components/BaseTimeSeriesChart.tsx b/src/features/dashboard/components/BaseTimeSeriesChart.tsx
index e9ff99509a..a1c916e69d 100644
--- a/src/features/dashboard/components/BaseTimeSeriesChart.tsx
+++ b/src/features/dashboard/components/BaseTimeSeriesChart.tsx
@@ -11,7 +11,7 @@ import {
import {
dateTimeAggregationSettings,
type DateTimeAggregationOption,
-} from "../lib/timeseriesAggregation";
+} from "@/src/features/dashboard/lib/timeseriesAggregation";
export function BaseTimeSeriesChart(props: {
agg: DateTimeAggregationOption;
diff --git a/src/features/dashboard/components/charts.tsx b/src/features/dashboard/components/charts.tsx
index d0064706f5..7f96dd0aa8 100644
--- a/src/features/dashboard/components/charts.tsx
+++ b/src/features/dashboard/components/charts.tsx
@@ -4,73 +4,89 @@ import {
CardHeader,
CardContent,
CardDescription,
- CardFooter,
CardTitle,
-} from "~/components/ui/card";
-import { Button } from "~/components/ui/button";
-import Link from "next/link";
+} from "@/src/components/ui/card";
import { BaseTimeSeriesChart } from "./BaseTimeSeriesChart";
-import { type DateTimeAggregationOption } from "../lib/timeseriesAggregation";
+import { type DateTimeAggregationOption } from "@/src/features/dashboard/lib/timeseriesAggregation";
+import { Loader } from "lucide-react";
-export function ChartLlmCalls(props: { agg: DateTimeAggregationOption }) {
- const data = api.dashboard.llmCalls.useQuery({ agg: props.agg });
+export function ChartLlmCalls(props: {
+ agg: DateTimeAggregationOption;
+ projectId: string;
+}) {
+ const data = api.dashboard.llmCalls.useQuery({
+ agg: props.agg,
+ projectId: props.projectId,
+ });
return (
<Card>
- <CardHeader>
+ <CardHeader className="relative">
<CardTitle>LLM calls</CardTitle>
<CardDescription>Count</CardDescription>
+ {data.isLoading ? (
+ <div className="absolute right-5 top-5 ">
+ <Loader className="h-5 w-5 animate-spin" />
+ </div>
+ ) : null}
</CardHeader>
<CardContent>
<BaseTimeSeriesChart agg={props.agg} data={data.data ?? []} />
</CardContent>
- <CardFooter>
- <Button variant="secondary" size="sm" asChild>
- <Link href="/llm-calls">See all LLM calls</Link>
- </Button>
- </CardFooter>
</Card>
);
}
-export function ChartTraces(props: { agg: DateTimeAggregationOption }) {
- const data = api.dashboard.traces.useQuery({ agg: props.agg });
+export function ChartTraces(props: {
+ agg: DateTimeAggregationOption;
+ projectId: string;
+}) {
+ const data = api.dashboard.traces.useQuery({
+ agg: props.agg,
+ projectId: props.projectId,
+ });
return (
<Card>
- <CardHeader>
+ <CardHeader className="relative">
<CardTitle>Traces</CardTitle>
<CardDescription>Count</CardDescription>
+ {data.isLoading ? (
+ <div className="absolute right-5 top-5 ">
+ <Loader className="h-5 w-5 animate-spin" />
+ </div>
+ ) : null}
</CardHeader>
<CardContent>
<BaseTimeSeriesChart agg={props.agg} data={data.data ?? []} />
</CardContent>
- <CardFooter>
- <Button variant="secondary" size="sm" asChild>
- <Link href="/traces">See all traces</Link>
- </Button>
- </CardFooter>
</Card>
);
}
-export function ChartScores(props: { agg: DateTimeAggregationOption }) {
- const data = api.dashboard.scores.useQuery({ agg: props.agg });
+export function ChartScores(props: {
+ agg: DateTimeAggregationOption;
+ projectId: string;
+}) {
+ const data = api.dashboard.scores.useQuery({
+ agg: props.agg,
+ projectId: props.projectId,
+ });
return (
<Card>
- <CardHeader>
+ <CardHeader className="relative">
<CardTitle>Scores</CardTitle>
<CardDescription>Average</CardDescription>
+ {data.isLoading ? (
+ <div className="absolute right-5 top-5 ">
+ <Loader className="h-5 w-5 animate-spin" />
+ </div>
+ ) : null}
</CardHeader>
<CardContent>
<BaseTimeSeriesChart agg={props.agg} data={data.data ?? []} />
</CardContent>
- <CardFooter>
- <Button variant="secondary" size="sm" asChild>
- <Link href="/scores">See all scores</Link>
- </Button>
- </CardFooter>
</Card>
);
}
diff --git a/src/features/dashboard/dashboardTrpcRouter.ts b/src/features/dashboard/server/dashboardRouter.ts
similarity index 80%
rename from src/features/dashboard/dashboardTrpcRouter.ts
rename to src/features/dashboard/server/dashboardRouter.ts
index 11d8987213..affcb424c7 100644
--- a/src/features/dashboard/dashboardTrpcRouter.ts
+++ b/src/features/dashboard/server/dashboardRouter.ts
@@ -4,19 +4,22 @@ import {
} from "@/src/features/dashboard/lib/timeseriesAggregation";
import { z } from "zod";
-import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";
-import { prisma } from "~/server/db";
+import {
+ createTRPCRouter,
+ protectedProjectProcedure,
+} from "@/src/server/api/trpc";
export const dashboardRouter = createTRPCRouter({
- llmCalls: publicProcedure
+ llmCalls: protectedProjectProcedure
.input(
z.object({
+ projectId: z.string(),
agg: z.enum(dateTimeAggregationOptions),
})
)
- .query(async ({ input }) => {
+ .query(async ({ input, ctx }) => {
// queryRawUnsafe to add input.agg to the WHERE clause
- const output = await prisma.$queryRawUnsafe<
+ const output = await ctx.prisma.$queryRawUnsafe<
{
date_trunc: Date;
value: number;
@@ -41,7 +44,13 @@ export const dashboardRouter = createTRPCRouter({
}', start_time) as date_trunc,
count(*)::integer as value
FROM observations
- WHERE type = 'LLMCALL' AND start_time > NOW() - INTERVAL '${input.agg}'
+ LEFT JOIN traces ON observations.trace_id = traces.id
+
+ WHERE
+ type = 'LLMCALL'
+ AND start_time > NOW() - INTERVAL '${input.agg}'
+ AND traces.project_id = '${input.projectId}'
+
GROUP BY 1
)
@@ -65,15 +74,16 @@ export const dashboardRouter = createTRPCRouter({
ts: row.date_trunc.getTime(),
}));
}),
- traces: publicProcedure
+ traces: protectedProjectProcedure
.input(
z.object({
+ projectId: z.string(),
agg: z.enum(dateTimeAggregationOptions),
})
)
- .query(async ({ input }) => {
+ .query(async ({ input, ctx }) => {
// queryRawUnsafe to add input.agg to the WHERE clause
- const output = await prisma.$queryRawUnsafe<
+ const output = await ctx.prisma.$queryRawUnsafe<
{
date_trunc: Date;
value: number;
@@ -99,6 +109,7 @@ export const dashboardRouter = createTRPCRouter({
count(*)::integer as value
FROM traces
WHERE timestamp > NOW() - INTERVAL '${input.agg}'
+ AND traces.project_id = '${input.projectId}'
GROUP BY 1
)
@@ -122,15 +133,16 @@ export const dashboardRouter = createTRPCRouter({
ts: row.date_trunc.getTime(),
}));
}),
- scores: publicProcedure
+ scores: protectedProjectProcedure
.input(
z.object({
+ projectId: z.string(),
agg: z.enum(dateTimeAggregationOptions),
})
)
- .query(async ({ input }) => {
+ .query(async ({ input, ctx }) => {
// queryRawUnsafe to add input.agg to the WHERE clause
- const output = await prisma.$queryRawUnsafe<
+ const output = await ctx.prisma.$queryRawUnsafe<
{
date_trunc: Date;
values: {
@@ -153,11 +165,13 @@ export const dashboardRouter = createTRPCRouter({
SELECT
date_trunc('${
dateTimeAggregationSettings[input.agg].date_trunc
- }', timestamp) as date_trunc,
- name as metric_name,
+ }', scores.timestamp) as date_trunc,
+ scores.name as metric_name,
AVG(value) as avg_value
FROM scores
- WHERE timestamp > NOW() - INTERVAL '${input.agg}'
+ LEFT JOIN traces ON scores.trace_id = traces.id
+ WHERE scores.timestamp > NOW() - INTERVAL '${input.agg}'
+ AND traces.project_id = '${input.projectId}'
GROUP BY 1,2
),
json_metrics AS (
diff --git a/src/features/projects/components/NewProjectButton.tsx b/src/features/projects/components/NewProjectButton.tsx
new file mode 100644
index 0000000000..da9a7c32df
--- /dev/null
+++ b/src/features/projects/components/NewProjectButton.tsx
@@ -0,0 +1,123 @@
+import { Button } from "@/src/components/ui/button";
+import { PlusIcon } from "lucide-react";
+import {
+ Dialog,
+ DialogContent,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from "@/src/components/ui/dialog";
+import * as z from "zod";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useForm } from "react-hook-form";
+import {
+ Form,
+ FormControl,
+ FormDescription,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/src/components/ui/form";
+import { Input } from "@/src/components/ui/input";
+import { api } from "@/src/utils/api";
+import { useRouter } from "next/router";
+import { cn } from "@/src/utils/tailwind";
+import { useState } from "react";
+
+const formSchema = z.object({
+ name: z
+ .string()
+ .min(3, "Must have at least 3 characters")
+ .max(20, "Must have at most 20 characters")
+ .regex(
+ /^[a-z][-a-z0-9]{2,21}$/,
+ "Must be lowercase, start with a letter, include hyphens)"
+ ),
+});
+
+interface NewProjectButtonProps {
+ size?: "xs" | "default";
+}
+export function NewProjectButton({ size = "default" }: NewProjectButtonProps) {
+ const [open, setOpen] = useState(false);
+
+ const form = useForm<z.infer<typeof formSchema>>({
+ resolver: zodResolver(formSchema),
+ defaultValues: {
+ name: "",
+ },
+ });
+ const utils = api.useContext();
+ const router = useRouter();
+ const createProjectMutation = api.projects.create.useMutation({
+ onSuccess: () => utils.projects.invalidate(),
+ });
+
+ function onSubmit(values: z.infer<typeof formSchema>) {
+ createProjectMutation
+ .mutateAsync(values)
+ .then((project) => {
+ setOpen(false);
+ void router.push(`/project/${project.id}/setup`);
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+ }
+
+ return (
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogTrigger>
+ <Button size={size} variant={size === "xs" ? "secondary" : "default"}>
+ <PlusIcon
+ className={cn(
+ "-ml-0.5 mr-1.5",
+ size === "xs" ? "h-4 w-4" : "h-5 w-5"
+ )}
+ aria-hidden="true"
+ />
+ {size !== "xs" ? "New project" : "New"}
+ </Button>
+ </DialogTrigger>
+ <DialogContent>
+ <DialogHeader>
+ <DialogTitle className="mb-5">New project</DialogTitle>
+ </DialogHeader>
+ <Form {...form}>
+ <form
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
+ onSubmit={form.handleSubmit(onSubmit)}
+ className="space-y-8"
+ >
+ <FormField
+ control={form.control}
+ name="name"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Project name</FormLabel>
+ <FormControl>
+ <Input placeholder="shadcn" {...field} />
+ </FormControl>
+ <FormDescription>
+ This is your public display name.
+ </FormDescription>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ </form>
+ </Form>
+ <DialogFooter>
+ <Button
+ onClick={() => form.handleSubmit(onSubmit)}
+ loading={createProjectMutation.isLoading}
+ >
+ Create
+ </Button>
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/src/features/projects/components/ProjectList.tsx b/src/features/projects/components/ProjectList.tsx
new file mode 100644
index 0000000000..c94f347cad
--- /dev/null
+++ b/src/features/projects/components/ProjectList.tsx
@@ -0,0 +1,50 @@
+import { api } from "@/src/utils/api";
+import { NewProjectButton } from "@/src/features/projects/components/NewProjectButton";
+import { useRouter } from "next/router";
+import { useEffect, useState } from "react";
+
+export default function ProjectList() {
+ const projects = api.projects.all.useQuery();
+ const router = useRouter();
+ const [loading, setLoading] = useState(true);
+
+ useEffect(() => {
+ if (projects.data) {
+ if (projects.data.length > 0)
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ void router.push(`/project/${projects.data[0]!.id}`);
+ else setLoading(false);
+ }
+ }, [projects.data, router]);
+
+ if (loading || projects.status === "loading") {
+ return <div>Loading...</div>;
+ }
+
+ return (
+ <div className="text-center">
+ <svg
+ className="mx-auto h-12 w-12 text-gray-400"
+ fill="none"
+ viewBox="0 0 24 24"
+ stroke="currentColor"
+ aria-hidden="true"
+ >
+ <path
+ vectorEffect="non-scaling-stroke"
+ strokeLinecap="round"
+ strokeLinejoin="round"
+ strokeWidth={2}
+ d="M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"
+ />
+ </svg>
+ <h3 className="mt-2 text-sm font-semibold text-gray-900">No projects</h3>
+ <p className="mt-1 text-sm text-gray-500">
+ Get started by creating a new project.
+ </p>
+ <div className="mt-6">
+ <NewProjectButton />
+ </div>
+ </div>
+ );
+}
diff --git a/src/features/projects/server/projectsRouter.ts b/src/features/projects/server/projectsRouter.ts
new file mode 100644
index 0000000000..0ba5e8c3e5
--- /dev/null
+++ b/src/features/projects/server/projectsRouter.ts
@@ -0,0 +1,57 @@
+import { createTRPCRouter, protectedProcedure } from "@/src/server/api/trpc";
+import * as z from "zod";
+
+export const projectsRouter = createTRPCRouter({
+ all: protectedProcedure.query(async ({ ctx }) => {
+ const memberships = await ctx.prisma.membership.findMany({
+ where: {
+ userId: ctx.session.user.id,
+ },
+ include: {
+ project: true,
+ },
+ });
+ const projects = memberships.map((membership) => ({
+ id: membership.project.id,
+ name: membership.project.name,
+ role: membership.role,
+ }));
+
+ return projects;
+ }),
+ create: protectedProcedure
+ .input(
+ z.object({
+ name: z.string(),
+ })
+ )
+ .mutation(async ({ input, ctx }) => {
+ // check that no project with this name exists
+ const existingProject = await ctx.prisma.project.findFirst({
+ where: {
+ name: input.name,
+ },
+ });
+ if (existingProject) {
+ throw new Error("Project with this name already exists");
+ }
+
+ const project = await ctx.prisma.project.create({
+ data: {
+ name: input.name,
+ members: {
+ create: {
+ userId: ctx.session.user.id,
+ role: "OWNER",
+ },
+ },
+ },
+ });
+
+ return {
+ id: project.id,
+ name: project.name,
+ role: "OWNER",
+ };
+ }),
+});
diff --git a/src/features/publicApi/components/ApiKeyList.tsx b/src/features/publicApi/components/ApiKeyList.tsx
new file mode 100644
index 0000000000..6a9bcc8298
--- /dev/null
+++ b/src/features/publicApi/components/ApiKeyList.tsx
@@ -0,0 +1,132 @@
+import { Button } from "@/src/components/ui/button";
+import { Card } from "@/src/components/ui/card";
+import { CodeView } from "@/src/components/ui/code";
+import {
+ Dialog,
+ DialogContent,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from "@/src/components/ui/dialog";
+import {
+ Table,
+ TableBody,
+ TableCell,
+ TableHead,
+ TableHeader,
+ TableRow,
+} from "@/src/components/ui/table";
+import { CreateApiKeyButton } from "@/src/features/publicApi/components/CreateApiKeyButton";
+import { api } from "@/src/utils/api";
+import { DialogDescription } from "@radix-ui/react-dialog";
+import { TrashIcon } from "lucide-react";
+import { useState } from "react";
+
+export function ApiKeyList(props: { projectId: string }) {
+ const apiKeys = api.apiKeys.byProjectId.useQuery({
+ projectId: props.projectId,
+ });
+
+ return (
+ <div>
+ <h2 className="mb-5 text-base font-semibold leading-6 text-gray-900">
+ API keys
+ </h2>
+ <Card className="mb-4">
+ <Table>
+ <TableHeader>
+ <TableRow>
+ <TableHead className="hidden text-gray-900 md:table-cell">
+ Created
+ </TableHead>
+ <TableHead className="text-gray-900">Note</TableHead>
+ <TableHead className="text-gray-900">Publishable Key</TableHead>
+ <TableHead className="text-gray-900">Secret Key</TableHead>
+ <TableHead className="text-gray-900">Last used</TableHead>
+ <TableHead />
+ </TableRow>
+ </TableHeader>
+ <TableBody className="text-gray-500">
+ {apiKeys.data?.map((apiKey) => (
+ <TableRow key={apiKey.id} className="hover:bg-transparent">
+ <TableCell className="hidden md:table-cell">
+ {apiKey.createdAt.toLocaleDateString()}
+ </TableCell>
+ <TableCell>{apiKey.note ?? ""}</TableCell>
+ <TableCell className="font-mono">
+ <CodeView className="inline-block">
+ {apiKey.publishableKey}
+ </CodeView>
+ </TableCell>
+ <TableCell className="font-mono">
+ {apiKey.displaySecretKey}
+ </TableCell>
+ <TableCell>
+ {apiKey.lastUsedAt?.toLocaleDateString() ?? "Never"}
+ </TableCell>
+ <TableCell>
+ <DeleteApiKeyButton
+ projectId={props.projectId}
+ apiKeyId={apiKey.id}
+ />
+ </TableCell>
+ </TableRow>
+ ))}
+ </TableBody>
+ </Table>
+ </Card>
+ <CreateApiKeyButton projectId={props.projectId} />
+ </div>
+ );
+}
+
+// show dialog to let user confirm that this is a destructive action
+function DeleteApiKeyButton(props: { projectId: string; apiKeyId: string }) {
+ const utils = api.useContext();
+ const mutDeleteApiKey = api.apiKeys.delete.useMutation({
+ onSuccess: () => utils.apiKeys.invalidate(),
+ });
+ const [open, setOpen] = useState(false);
+
+ return (
+ <Dialog open={open} onOpenChange={setOpen}>
+ <DialogTrigger>
+ <Button variant="ghost" size="xs">
+ <TrashIcon className="h-4 w-4" />
+ </Button>
+ </DialogTrigger>
+ <DialogContent>
+ <DialogHeader>
+ <DialogTitle className="mb-5">Delete API key</DialogTitle>
+ </DialogHeader>
+ <DialogDescription>
+ Are you sure you want to delete this API key? This action cannot be
+ undone.
+ </DialogDescription>
+ <DialogFooter>
+ <Button
+ variant="destructive"
+ onClick={() => {
+ mutDeleteApiKey
+ .mutateAsync({
+ projectId: props.projectId,
+ id: props.apiKeyId,
+ })
+ .then(() => setOpen(false))
+ .catch((error) => {
+ console.error(error);
+ });
+ }}
+ loading={mutDeleteApiKey.isLoading}
+ >
+ Permanently delete
+ </Button>
+ <Button variant="ghost" onClick={() => setOpen(false)}>
+ Cancel
+ </Button>
+ </DialogFooter>
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/src/features/publicApi/components/CreateApiKeyButton.tsx b/src/features/publicApi/components/CreateApiKeyButton.tsx
new file mode 100644
index 0000000000..52b26fb418
--- /dev/null
+++ b/src/features/publicApi/components/CreateApiKeyButton.tsx
@@ -0,0 +1,150 @@
+import { Button } from "@/src/components/ui/button";
+import { api } from "@/src/utils/api";
+import { useState } from "react";
+import * as z from "zod";
+import { PlusIcon } from "lucide-react";
+import {
+ Dialog,
+ DialogContent,
+ DialogFooter,
+ DialogHeader,
+ DialogTitle,
+ DialogTrigger,
+} from "@/src/components/ui/dialog";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useForm } from "react-hook-form";
+import {
+ Form,
+ FormControl,
+ FormDescription,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/src/components/ui/form";
+import { Input } from "@/src/components/ui/input";
+import { CodeView } from "@/src/components/ui/code";
+
+const formSchema = z.object({
+ note: z.string().optional(),
+});
+
+export function CreateApiKeyButton(props: { projectId: string }) {
+ const utils = api.useContext();
+ const mutCreateApiKey = api.apiKeys.create.useMutation({
+ onSuccess: () => utils.apiKeys.invalidate(),
+ });
+ const [open, setOpen] = useState(false);
+ const [generatedKeys, setGeneratedKeys] = useState<{
+ secretKey: string;
+ publishableKey: string;
+ } | null>(null);
+
+ const form = useForm<z.infer<typeof formSchema>>({
+ resolver: zodResolver(formSchema),
+ defaultValues: {
+ note: "",
+ },
+ });
+
+ function onSubmit(values: z.infer<typeof formSchema>) {
+ mutCreateApiKey
+ .mutateAsync({
+ projectId: props.projectId,
+ note:
+ values.note && values.note.trim() !== ""
+ ? values.note.trim()
+ : undefined,
+ })
+ .then(({ secretKey, publishableKey }) => {
+ setGeneratedKeys({
+ secretKey,
+ publishableKey,
+ });
+ })
+ .catch((error) => {
+ console.error(error);
+ });
+ }
+
+ const handleOpenChange = (open: boolean) => {
+ setOpen(open);
+ form.reset();
+ if (!open) setGeneratedKeys(null);
+ };
+
+ return (
+ <Dialog open={open} onOpenChange={handleOpenChange}>
+ <DialogTrigger>
+ <Button variant="secondary">
+ <PlusIcon className="-ml-0.5 mr-1.5 h-5 w-5" aria-hidden="true" />
+ Create new API keys
+ </Button>
+ </DialogTrigger>
+ <DialogContent>
+ {generatedKeys === null ? (
+ <>
+ <DialogHeader>
+ <DialogTitle className="mb-5">New API keys</DialogTitle>
+ </DialogHeader>
+ <Form {...form}>
+ <form
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
+ onSubmit={form.handleSubmit(onSubmit)}
+ className="space-y-8"
+ >
+ <FormField
+ control={form.control}
+ name="note"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Note</FormLabel>
+ <FormControl>
+ <Input {...field} />
+ </FormControl>
+ <FormDescription>
+ Optional. A note to help you identify this API key.
+ </FormDescription>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ </form>
+ </Form>
+ <DialogFooter>
+ <Button
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
+ onClick={form.handleSubmit(onSubmit)}
+ loading={mutCreateApiKey.isLoading}
+ >
+ Create
+ </Button>
+ </DialogFooter>
+ </>
+ ) : (
+ <div>
+ <div>
+ <div>
+ <div className="mb-2 text-lg font-semibold">
+ Publishable Key
+ </div>
+ <CodeView>{generatedKeys.publishableKey}</CodeView>
+ </div>
+ <div className="mt-6">
+ <div className="text-lg font-semibold">Secret Key</div>
+ <div className="my-2">
+ Please save this secret key.{" "}
+ <span className="font-semibold">
+ You will not be able to view it again
+ </span>
+ . If you lose it, you will need to generate a new one.
+ </div>
+ <CodeView>{generatedKeys.secretKey}</CodeView>
+ </div>
+ </div>
+ </div>
+ )}
+ </DialogContent>
+ </Dialog>
+ );
+}
diff --git a/src/features/publicApi/lib/apiKeys.ts b/src/features/publicApi/lib/apiKeys.ts
new file mode 100644
index 0000000000..5238ac8c7e
--- /dev/null
+++ b/src/features/publicApi/lib/apiKeys.ts
@@ -0,0 +1,38 @@
+import { compare, hash } from "bcryptjs";
+import { randomUUID } from "crypto";
+
+export function generateSecretKey() {
+ return `sk-lf-${randomUUID()}`;
+}
+
+export function generatePublishableKey() {
+ return `pk-lf-${randomUUID()}`;
+}
+
+export function getDisplaySecretKey(secretKey: string) {
+ return secretKey.slice(0, 6) + "..." + secretKey.slice(-4);
+}
+
+export async function hashSecretKey(key: string) {
+ const hashedKey = await hash(key, 12);
+ return hashedKey;
+}
+
+export async function generateKeySet() {
+ const pk = generatePublishableKey();
+ const sk = generateSecretKey();
+ const hashedSk = await hashSecretKey(sk);
+ const displaySk = getDisplaySecretKey(sk);
+
+ return {
+ pk,
+ sk,
+ hashedSk,
+ displaySk,
+ };
+}
+
+export async function verifySecretKey(key: string, hashedKey: string) {
+ const isValid = await compare(key, hashedKey);
+ return isValid;
+}
diff --git a/src/features/publicApi/server/apiAuth.ts b/src/features/publicApi/server/apiAuth.ts
new file mode 100644
index 0000000000..708a2adaae
--- /dev/null
+++ b/src/features/publicApi/server/apiAuth.ts
@@ -0,0 +1,90 @@
+import { verifySecretKey } from "@/src/features/publicApi/lib/apiKeys";
+import { type ApiAccessScope } from "@/src/features/publicApi/server/types";
+import { prisma } from "@/src/server/db";
+
+type AuthHeaderVerificationResult =
+ | {
+ validKey: true;
+ scope: ApiAccessScope;
+ }
+ | {
+ validKey: false;
+ error: string;
+ };
+
+export async function verifyAuthHeaderAndReturnScope(
+ authHeader: string | undefined
+): Promise<AuthHeaderVerificationResult> {
+ if (!authHeader) {
+ return {
+ validKey: false,
+ error: "No authorization header",
+ };
+ }
+
+ try {
+ // Basic auth, full scope, needs secret key and publishable key
+ if (authHeader.startsWith("Basic ")) {
+ const { username: publishableKey, password: secretKey } =
+ extractBasicAuthCredentials(authHeader);
+
+ const dbKey = await findDbKeyOrThrow(publishableKey);
+
+ const isValid = await verifySecretKey(secretKey, dbKey.hashedSecretKey);
+ if (!isValid) throw new Error("Invalid credentials");
+
+ return {
+ validKey: true,
+ scope: {
+ projectId: dbKey.projectId,
+ accessLevel: "all",
+ },
+ };
+ }
+ // Bearer auth, limited scope, only needs publishable key
+ if (authHeader.startsWith("Bearer ")) {
+ const publishableKey = authHeader.replace("Bearer ", "");
+
+ const dbKey = await findDbKeyOrThrow(publishableKey);
+
+ return {
+ validKey: true,
+ scope: {
+ projectId: dbKey.projectId,
+ accessLevel: "scores",
+ },
+ };
+ }
+ } catch (error: unknown) {
+ return {
+ validKey: false,
+ error: error instanceof Error ? error.message : "Authorization error",
+ };
+ }
+
+ return {
+ validKey: false,
+ error: "Invalid authorization header",
+ };
+}
+
+function extractBasicAuthCredentials(basicAuthHeader: string): {
+ username: string;
+ password: string;
+} {
+ const authValue = basicAuthHeader.split(" ")[1];
+ if (!authValue) throw new Error("Invalid authorization header");
+
+ const [username, password] = atob(authValue).split(":");
+ if (!username || !password) throw new Error("Invalid authorization header");
+
+ return { username, password };
+}
+
+async function findDbKeyOrThrow(publishableKey: string) {
+ const dbKey = await prisma.apiKey.findUnique({
+ where: { publishableKey },
+ });
+ if (!dbKey) throw new Error("Invalid publishable key");
+ return dbKey;
+}
diff --git a/src/features/publicApi/server/apiAuthAndScope.ts b/src/features/publicApi/server/apiAuthAndScope.ts
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/src/features/publicApi/server/apiKeyRouter.ts b/src/features/publicApi/server/apiKeyRouter.ts
new file mode 100644
index 0000000000..39b540aa0a
--- /dev/null
+++ b/src/features/publicApi/server/apiKeyRouter.ts
@@ -0,0 +1,79 @@
+import { generateKeySet } from "@/src/features/publicApi/lib/apiKeys";
+import {
+ createTRPCRouter,
+ protectedProjectProcedure,
+} from "@/src/server/api/trpc";
+import * as z from "zod";
+
+export const apiKeysRouter = createTRPCRouter({
+ byProjectId: protectedProjectProcedure
+ .input(
+ z.object({
+ projectId: z.string(),
+ })
+ )
+ .query(async ({ input, ctx }) =>
+ ctx.prisma.apiKey.findMany({
+ where: {
+ projectId: input.projectId,
+ },
+ select: {
+ id: true,
+ createdAt: true,
+ expiresAt: true,
+ lastUsedAt: true,
+ note: true,
+ publishableKey: true,
+ displaySecretKey: true,
+ },
+ orderBy: {
+ createdAt: "asc",
+ },
+ })
+ ),
+ create: protectedProjectProcedure
+ .input(
+ z.object({
+ projectId: z.string(),
+ note: z.string().optional(),
+ })
+ )
+ .mutation(async ({ input, ctx }) => {
+ const { pk, sk, hashedSk, displaySk } = await generateKeySet();
+
+ const apiKey = await ctx.prisma.apiKey.create({
+ data: {
+ projectId: input.projectId,
+ publishableKey: pk,
+ hashedSecretKey: hashedSk,
+ displaySecretKey: displaySk,
+ note: input.note,
+ },
+ });
+
+ return {
+ id: apiKey.id,
+ createdAt: apiKey.createdAt,
+ note: input.note,
+ publishableKey: apiKey.publishableKey,
+ secretKey: sk,
+ displaySecretKey: displaySk,
+ };
+ }),
+ delete: protectedProjectProcedure
+ .input(
+ z.object({
+ projectId: z.string(),
+ id: z.string(),
+ })
+ )
+ .mutation(async ({ input, ctx }) => {
+ await ctx.prisma.apiKey.delete({
+ where: {
+ id: input.id,
+ },
+ });
+
+ return true;
+ }),
+});
diff --git a/src/features/publicApi/server/apiScope.ts b/src/features/publicApi/server/apiScope.ts
new file mode 100644
index 0000000000..5b2621be75
--- /dev/null
+++ b/src/features/publicApi/server/apiScope.ts
@@ -0,0 +1,54 @@
+import { type ApiAccessScope } from "@/src/features/publicApi/server/types";
+import { prisma } from "@/src/server/db";
+
+type Resource = {
+ type: "project" | "trace" | "observation" | "score";
+ id: string;
+};
+
+export async function checkApiAccessScope(
+ scope: ApiAccessScope,
+ resources: Resource[],
+ action?: "score"
+): Promise<boolean> {
+ // ACCESS LEVEL
+ // If the access level is "scores", the only action allowed is "score"
+ if (scope.accessLevel === "scores" && action !== "score") return false;
+
+ // RESOURCE within project of scope
+ // If the resource is a project, it must match the project of the scope
+ const checks = await Promise.all(
+ resources.map((resource) => isResourceInProject(resource, scope.projectId))
+ );
+ return checks.every((result) => result);
+}
+
+async function isResourceInProject(resource: Resource, projectId: string) {
+ switch (resource.type) {
+ case "project":
+ return resource.id === projectId;
+ case "trace":
+ return (
+ (await prisma.trace.count({
+ where: { id: resource.id, projectId },
+ })) === 1
+ );
+ case "observation":
+ return (
+ (await prisma.observation.count({
+ where: { id: resource.id, trace: { projectId } },
+ })) === 1
+ );
+ case "score":
+ return (
+ (await prisma.score.count({
+ where: {
+ id: resource.id,
+ trace: { projectId },
+ },
+ })) === 1
+ );
+ default:
+ return false;
+ }
+}
diff --git a/src/features/publicApi/server/types.ts b/src/features/publicApi/server/types.ts
new file mode 100644
index 0000000000..8a863044c7
--- /dev/null
+++ b/src/features/publicApi/server/types.ts
@@ -0,0 +1,4 @@
+export type ApiAccessScope = {
+ projectId: string;
+ accessLevel: "all" | "scores";
+};
diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx
index 8b3c3695b3..efed2bd529 100644
--- a/src/pages/_app.tsx
+++ b/src/pages/_app.tsx
@@ -2,17 +2,17 @@ import { type AppType } from "next/app";
import { type Session } from "next-auth";
import { SessionProvider } from "next-auth/react";
-import { api } from "~/utils/api";
+import { api } from "@/src/utils/api";
-import "~/styles/globals.css";
-import Layout from "~/components/layouts/layout";
+import "@/src/styles/globals.css";
+import Layout from "@/src/components/layouts/layout";
const MyApp: AppType<{ session: Session | null }> = ({
Component,
pageProps: { session, ...pageProps },
}) => {
return (
- <SessionProvider session={session}>
+ <SessionProvider session={session} refetchOnWindowFocus={true}>
<Layout>
<Component {...pageProps} />
</Layout>
diff --git a/src/pages/api-doc.tsx b/src/pages/api-doc.tsx
deleted file mode 100644
index 6bb8eba5f2..0000000000
--- a/src/pages/api-doc.tsx
+++ /dev/null
@@ -1,29 +0,0 @@
-import { type GetStaticProps, type InferGetStaticPropsType } from "next";
-import dynamic from "next/dynamic";
-import "swagger-ui-react/swagger-ui.css";
-import fs from "fs";
-import yaml from "js-yaml";
-
-const SwaggerUI = dynamic<{
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- spec?: any;
-}>(import("swagger-ui-react"), { ssr: false });
-
-function ApiDoc({ spec }: InferGetStaticPropsType<typeof getStaticProps>) {
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
- return <SwaggerUI spec={spec} />;
-}
-
-// eslint-disable-next-line @typescript-eslint/require-await
-export const getStaticProps: GetStaticProps = async () => {
- const file = fs.readFileSync("./generated/openapi/openapi.yml", "utf8");
- const spec = yaml.load(file);
-
- return {
- props: {
- spec,
- },
- };
-};
-
-export default ApiDoc;
diff --git a/src/pages/api/auth/[...nextauth].ts b/src/pages/api/auth/[...nextauth].ts
index 8aefbb68de..71e7b7f42b 100644
--- a/src/pages/api/auth/[...nextauth].ts
+++ b/src/pages/api/auth/[...nextauth].ts
@@ -1,4 +1,4 @@
import NextAuth from "next-auth";
-import { authOptions } from "~/server/auth";
+import { authOptions } from "@/src/server/auth";
export default NextAuth(authOptions);
diff --git a/src/pages/api/auth/signup.ts b/src/pages/api/auth/signup.ts
new file mode 100644
index 0000000000..d1f1ea77a9
--- /dev/null
+++ b/src/pages/api/auth/signup.ts
@@ -0,0 +1,30 @@
+import { createUserEmailPassword } from "@/src/features/auth/lib/emailPassword";
+import { signupSchema } from "@/src/features/auth/lib/signupSchema";
+import type { NextApiRequest, NextApiResponse } from "next";
+
+export default async function handler(
+ req: NextApiRequest,
+ res: NextApiResponse
+) {
+ if (req.method !== "POST") return;
+
+ // parse and type check the request body with zod
+ const validBody = signupSchema.safeParse(req.body);
+ if (!validBody.success) {
+ res.status(422).json({ message: validBody.error });
+ return;
+ }
+
+ const body = validBody.data;
+
+ // create the user
+ try {
+ await createUserEmailPassword(body.email, body.password, body.name);
+ } catch (error) {
+ if (error instanceof Error)
+ res.status(422).json({ message: error.message });
+ return;
+ }
+
+ res.status(200).json({ message: "User created" });
+}
diff --git a/src/pages/api/cors.ts b/src/pages/api/public/cors.ts
similarity index 100%
rename from src/pages/api/cors.ts
rename to src/pages/api/public/cors.ts
diff --git a/src/pages/api/doc.ts b/src/pages/api/public/doc.ts
similarity index 86%
rename from src/pages/api/doc.ts
rename to src/pages/api/public/doc.ts
index e6fe903ade..86528e8fda 100644
--- a/src/pages/api/doc.ts
+++ b/src/pages/api/public/doc.ts
@@ -8,6 +8,6 @@ const swaggerHandler = withSwagger({
version: "0.1.0",
},
},
- apiFolder: "src/pages/api",
+ apiFolder: "src/pages/api/public",
});
export default swaggerHandler();
diff --git a/src/pages/api/events.ts b/src/pages/api/public/events.ts
similarity index 63%
rename from src/pages/api/events.ts
rename to src/pages/api/public/events.ts
index 50633c219f..56e2d283a2 100644
--- a/src/pages/api/events.ts
+++ b/src/pages/api/public/events.ts
@@ -3,6 +3,8 @@ import { ObservationType } from "@prisma/client";
import { type NextApiRequest, type NextApiResponse } from "next";
import { z } from "zod";
import { cors, runMiddleware } from "./cors";
+import { verifyAuthHeaderAndReturnScope } from "@/src/features/publicApi/server/apiAuth";
+import { checkApiAccessScope } from "@/src/features/publicApi/server/apiScope";
const ObservationSchema = z.object({
traceId: z.string(),
@@ -22,10 +24,35 @@ export default async function handler(
return res.status(405).json({ message: "Method not allowed" });
}
+ // CHECK AUTH
+ const authCheck = await verifyAuthHeaderAndReturnScope(
+ req.headers.authorization
+ );
+ if (!authCheck.validKey)
+ return res.status(401).json({
+ success: false,
+ message: authCheck.error,
+ });
+ // END CHECK AUTH
+
try {
const { traceId, name, startTime, attributes, parentObservationId } =
ObservationSchema.parse(req.body);
+ // CHECK ACCESS SCOPE
+ const accessCheck = await checkApiAccessScope(authCheck.scope, [
+ { type: "trace", id: traceId },
+ ...(parentObservationId
+ ? [{ type: "observation" as const, id: parentObservationId }]
+ : []),
+ ]);
+ if (!accessCheck)
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const newObservation = await prisma.observation.create({
data: {
trace: { connect: { id: traceId } },
diff --git a/src/pages/api/llm-span.ts b/src/pages/api/public/llm-span.ts
similarity index 71%
rename from src/pages/api/llm-span.ts
rename to src/pages/api/public/llm-span.ts
index 0dce4054ad..accdcf77c1 100644
--- a/src/pages/api/llm-span.ts
+++ b/src/pages/api/public/llm-span.ts
@@ -4,6 +4,8 @@ import { type NextApiRequest, type NextApiResponse } from "next";
import { z } from "zod";
import { cors, runMiddleware } from "./cors";
import { merge } from "lodash";
+import { verifyAuthHeaderAndReturnScope } from "@/src/features/publicApi/server/apiAuth";
+import { checkApiAccessScope } from "@/src/features/publicApi/server/apiScope";
const LLMSpanCreateSchema = z.object({
traceId: z.string(),
@@ -47,11 +49,36 @@ export default async function handler(
return res.status(405).json({ message: "Method not allowed" });
}
+ // CHECK AUTH
+ const authCheck = await verifyAuthHeaderAndReturnScope(
+ req.headers.authorization
+ );
+ if (!authCheck.validKey)
+ return res.status(401).json({
+ success: false,
+ message: authCheck.error,
+ });
+ // END CHECK AUTH
+
if (req.method === "POST") {
try {
const { traceId, name, startTime, attributes, parentObservationId } =
LLMSpanCreateSchema.parse(req.body);
+ // CHECK ACCESS SCOPE
+ const accessCheck = await checkApiAccessScope(authCheck.scope, [
+ { type: "trace", id: traceId },
+ ...(parentObservationId
+ ? [{ type: "observation" as const, id: parentObservationId }]
+ : []),
+ ]);
+ if (!accessCheck)
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const newObservation = await prisma.observation.create({
data: {
trace: { connect: { id: traceId } },
@@ -75,12 +102,23 @@ export default async function handler(
error: errorMessage,
});
}
- } else {
+ } else if (req.method === "PATCH") {
try {
const { spanId, endTime, attributes } = LLMSpanUpdateSchema.parse(
req.body
);
+ // CHECK ACCESS SCOPE
+ const accessCheck = await checkApiAccessScope(authCheck.scope, [
+ { type: "observation", id: spanId },
+ ]);
+ if (!accessCheck)
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const existingObservation = await prisma.observation.findUnique({
where: { id: spanId },
});
diff --git a/src/pages/api/scores.ts b/src/pages/api/public/scores.ts
similarity index 60%
rename from src/pages/api/scores.ts
rename to src/pages/api/public/scores.ts
index 2e587b5d3b..44a363a273 100644
--- a/src/pages/api/scores.ts
+++ b/src/pages/api/public/scores.ts
@@ -3,6 +3,8 @@ import { type Prisma } from "@prisma/client";
import { type NextApiRequest, type NextApiResponse } from "next";
import { z } from "zod";
import { cors, runMiddleware } from "./cors";
+import { verifyAuthHeaderAndReturnScope } from "@/src/features/publicApi/server/apiAuth";
+import { checkApiAccessScope } from "@/src/features/publicApi/server/apiScope";
const ScoreSchema = z.object({
name: z.string(),
@@ -21,9 +23,38 @@ export default async function handler(
return res.status(405).json({ message: "Method not allowed" });
}
+ // CHECK AUTH
+ const authCheck = await verifyAuthHeaderAndReturnScope(
+ req.headers.authorization
+ );
+ if (!authCheck.validKey)
+ return res.status(401).json({
+ success: false,
+ message: authCheck.error,
+ });
+ // END CHECK AUTH
+
try {
const obj = ScoreSchema.parse(req.body);
+ // CHECK ACCESS SCOPE
+ const accessCheck = await checkApiAccessScope(
+ authCheck.scope,
+ [
+ { type: "trace", id: obj.traceId },
+ ...(obj.observationId
+ ? [{ type: "observation" as const, id: obj.observationId }]
+ : []),
+ ],
+ "score"
+ );
+ if (!accessCheck)
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const data: Prisma.ScoreCreateInput = {
timestamp: new Date(),
value: obj.value,
diff --git a/src/pages/api/spans.ts b/src/pages/api/public/spans.ts
similarity index 64%
rename from src/pages/api/spans.ts
rename to src/pages/api/public/spans.ts
index 6d33f74189..920ad655a7 100644
--- a/src/pages/api/spans.ts
+++ b/src/pages/api/public/spans.ts
@@ -3,6 +3,8 @@ import { ObservationType } from "@prisma/client";
import { type NextApiRequest, type NextApiResponse } from "next";
import { z } from "zod";
import { cors, runMiddleware } from "./cors";
+import { verifyAuthHeaderAndReturnScope } from "@/src/features/publicApi/server/apiAuth";
+import { checkApiAccessScope } from "@/src/features/publicApi/server/apiScope";
const SpanPostSchema = z.object({
traceId: z.string(),
@@ -23,6 +25,17 @@ export default async function handler(
) {
await runMiddleware(req, res, cors);
+ // CHECK AUTH
+ const authCheck = await verifyAuthHeaderAndReturnScope(
+ req.headers.authorization
+ );
+ if (!authCheck.validKey)
+ return res.status(401).json({
+ success: false,
+ message: authCheck.error,
+ });
+ // END CHECK AUTH
+
if (req.method !== "POST" && req.method !== "PATCH") {
return res.status(405).json({ message: "Method not allowed" });
}
@@ -32,6 +45,20 @@ export default async function handler(
const { traceId, name, startTime, attributes, parentObservationId } =
SpanPostSchema.parse(req.body);
+ // CHECK ACCESS SCOPE
+ const accessCheck = await checkApiAccessScope(authCheck.scope, [
+ { type: "trace", id: traceId },
+ ...(parentObservationId
+ ? [{ type: "observation" as const, id: parentObservationId }]
+ : []),
+ ]);
+ if (!accessCheck)
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const newObservation = await prisma.observation.create({
data: {
trace: { connect: { id: traceId } },
@@ -55,10 +82,21 @@ export default async function handler(
error: errorMessage,
});
}
- } else {
+ } else if (req.method === "PATCH") {
try {
const { spanId, endTime } = SpanPatchSchema.parse(req.body);
+ // CHECK ACCESS SCOPE
+ const accessCheck = await checkApiAccessScope(authCheck.scope, [
+ { type: "observation", id: spanId },
+ ]);
+ if (!accessCheck)
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const newObservation = await prisma.observation.update({
where: { id: spanId },
data: { endTime: new Date(endTime) },
diff --git a/src/pages/api/traces.ts b/src/pages/api/public/traces.ts
similarity index 67%
rename from src/pages/api/traces.ts
rename to src/pages/api/public/traces.ts
index d9eb512e08..9fc623423d 100644
--- a/src/pages/api/traces.ts
+++ b/src/pages/api/public/traces.ts
@@ -2,6 +2,8 @@ import { type NextApiRequest, type NextApiResponse } from "next";
import { z } from "zod";
import { cors, runMiddleware } from "./cors";
import { prisma } from "@/src/server/db";
+import { verifyAuthHeaderAndReturnScope } from "@/src/features/publicApi/server/apiAuth";
+import { checkApiAccessScope } from "@/src/features/publicApi/server/apiScope";
const CreateTraceSchema = z.object({
name: z.string(),
@@ -27,14 +29,34 @@ export default async function handler(
return res.status(405).json({ message: "Method not allowed" });
}
+ // CHECK AUTH
+ const authCheck = await verifyAuthHeaderAndReturnScope(
+ req.headers.authorization
+ );
+ if (!authCheck.validKey)
+ return res.status(401).json({
+ success: false,
+ message: authCheck.error,
+ });
+ // END CHECK AUTH
+
if (req.method === "POST") {
try {
const { name, attributes, status, statusMessage } =
CreateTraceSchema.parse(req.body);
+ // CHECK ACCESS SCOPE
+ if (authCheck.scope.accessLevel !== "all")
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const newTrace = await prisma.trace.create({
data: {
timestamp: new Date(),
+ projectId: authCheck.scope.projectId,
name,
attributes,
status,
@@ -56,6 +78,17 @@ export default async function handler(
try {
const { id, status, statusMessage } = UpdateTraceSchema.parse(req.body);
+ // CHECK ACCESS SCOPE
+ const accessCheck = await checkApiAccessScope(authCheck.scope, [
+ { type: "trace", id },
+ ]);
+ if (!accessCheck)
+ return res.status(403).json({
+ success: false,
+ message: "Access denied",
+ });
+ // END CHECK ACCESS SCOPE
+
const updatedTrace = await prisma.trace.update({
where: {
id,
diff --git a/src/pages/api/trpc/[trpc].ts b/src/pages/api/trpc/[trpc].ts
index 3c744a024c..85bcefda33 100644
--- a/src/pages/api/trpc/[trpc].ts
+++ b/src/pages/api/trpc/[trpc].ts
@@ -1,8 +1,8 @@
import { createNextApiHandler } from "@trpc/server/adapters/next";
-import { env } from "~/env.mjs";
-import { createTRPCContext } from "~/server/api/trpc";
-import { appRouter } from "~/server/api/root";
+import { env } from "@/src/env.mjs";
+import { createTRPCContext } from "@/src/server/api/trpc";
+import { appRouter } from "@/src/server/api/root";
// export API handler
export default createNextApiHandler({
@@ -12,7 +12,7 @@ export default createNextApiHandler({
env.NODE_ENV === "development"
? ({ path, error }) => {
console.error(
- `❌ tRPC failed on ${path ?? "<no-path>"}: ${error.message}`,
+ `❌ tRPC failed on ${path ?? "<no-path>"}: ${error.message}`
);
}
: undefined,
diff --git a/src/pages/auth/sign-in.tsx b/src/pages/auth/sign-in.tsx
new file mode 100644
index 0000000000..99dfb0b7ae
--- /dev/null
+++ b/src/pages/auth/sign-in.tsx
@@ -0,0 +1,111 @@
+import { signIn } from "next-auth/react";
+import Link from "next/link";
+import * as z from "zod";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useForm } from "react-hook-form";
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/src/components/ui/form";
+import { Input } from "@/src/components/ui/input";
+import { Button } from "@/src/components/ui/button";
+
+const formSchema = z.object({
+ email: z.string().email(),
+ password: z.string().min(8, {
+ message: "Password must be at least 8 characters long",
+ }),
+});
+
+export default function SignIn() {
+ const form = useForm<z.infer<typeof formSchema>>({
+ resolver: zodResolver(formSchema),
+ defaultValues: {
+ email: "",
+ password: "",
+ },
+ });
+
+ function onSubmit(values: z.infer<typeof formSchema>) {
+ return signIn("credentials", {
+ email: values.email,
+ password: values.password,
+ callbackUrl: "/",
+ });
+ }
+
+ return (
+ <>
+ <div className="flex min-h-full flex-1 flex-col justify-center py-12 sm:px-6 lg:px-8">
+ <div className="sm:mx-auto sm:w-full sm:max-w-md">
+ <span className="block text-center font-mono text-4xl font-bold">
+ 🪢
+ </span>
+ <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">
+ Sign in to your account
+ </h2>
+ </div>
+
+ <div className="mt-14 sm:mx-auto sm:w-full sm:max-w-[480px]">
+ <div className="bg-white px-6 py-12 shadow sm:rounded-lg sm:px-12">
+ <Form {...form}>
+ <form
+ className="space-y-6"
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
+ onSubmit={form.handleSubmit(onSubmit)}
+ >
+ <FormField
+ control={form.control}
+ name="email"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Email</FormLabel>
+ <FormControl>
+ <Input placeholder="[email protected]" {...field} />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name="password"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Password</FormLabel>
+ <FormControl>
+ <Input type="password" {...field} />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ <Button
+ type="submit"
+ className="w-full"
+ loading={form.formState.isSubmitting}
+ >
+ Sign in
+ </Button>
+ </form>
+ </Form>
+ </div>
+
+ <p className="mt-10 text-center text-sm text-gray-500">
+ No account yet?{" "}
+ <Link
+ href="/auth/sign-up"
+ className="font-semibold leading-6 text-indigo-600 hover:text-indigo-500"
+ >
+ Create an account
+ </Link>
+ </p>
+ </div>
+ </div>
+ </>
+ );
+}
diff --git a/src/pages/auth/sign-up.tsx b/src/pages/auth/sign-up.tsx
new file mode 100644
index 0000000000..383d4b4c8c
--- /dev/null
+++ b/src/pages/auth/sign-up.tsx
@@ -0,0 +1,137 @@
+import { signIn } from "next-auth/react";
+import Link from "next/link";
+import type * as z from "zod";
+import { zodResolver } from "@hookform/resolvers/zod";
+import { useForm } from "react-hook-form";
+import {
+ Form,
+ FormControl,
+ FormField,
+ FormItem,
+ FormLabel,
+ FormMessage,
+} from "@/src/components/ui/form";
+import { Input } from "@/src/components/ui/input";
+import { Button } from "@/src/components/ui/button";
+import { signupSchema } from "@/src/features/auth/lib/signupSchema";
+
+export default function SignIn() {
+ const form = useForm<z.infer<typeof signupSchema>>({
+ resolver: zodResolver(signupSchema),
+ defaultValues: {
+ name: "",
+ email: "",
+ password: "",
+ },
+ });
+
+ function onSubmit(values: z.infer<typeof signupSchema>) {
+ fetch("/api/auth/signup", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify(values),
+ })
+ .then(async (res) => {
+ if (!res.ok) {
+ const payload = (await res.json()) as { message: string };
+ throw new Error(payload.message);
+ }
+ })
+ .then(async () => {
+ await signIn<"credentials">("credentials", {
+ email: values.email,
+ password: values.password,
+ callbackUrl: "/",
+ });
+ })
+ .catch((err) => {
+ form.setError("root", {
+ message: (err as { message: string }).message,
+ });
+ });
+ }
+
+ return (
+ <>
+ <div className="flex min-h-full flex-1 flex-col justify-center py-12 sm:px-6 lg:px-8">
+ <div className="sm:mx-auto sm:w-full sm:max-w-md">
+ <span className="block text-center font-mono text-4xl font-bold">
+ 🪢
+ </span>
+ <h2 className="mt-4 text-center text-2xl font-bold leading-9 tracking-tight text-gray-900">
+ Create new account
+ </h2>
+ </div>
+
+ <div className="mt-14 sm:mx-auto sm:w-full sm:max-w-[480px]">
+ <div className="bg-white px-6 py-12 shadow sm:rounded-lg sm:px-12">
+ <Form {...form}>
+ <form
+ className="space-y-6"
+ // eslint-disable-next-line @typescript-eslint/no-misused-promises
+ onSubmit={form.handleSubmit(onSubmit)}
+ >
+ <FormField
+ control={form.control}
+ name="name"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Name</FormLabel>
+ <FormControl>
+ <Input placeholder="Jane Doe" {...field} />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name="email"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Email</FormLabel>
+ <FormControl>
+ <Input placeholder="[email protected]" {...field} />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ <FormField
+ control={form.control}
+ name="password"
+ render={({ field }) => (
+ <FormItem>
+ <FormLabel>Password</FormLabel>
+ <FormControl>
+ <Input type="password" {...field} />
+ </FormControl>
+ <FormMessage />
+ </FormItem>
+ )}
+ />
+ <Button
+ type="submit"
+ className="w-full"
+ loading={form.formState.isSubmitting}
+ >
+ Sign up
+ </Button>
+ </form>
+ </Form>
+ </div>
+
+ <p className="mt-10 text-center text-sm text-gray-500">
+ Already have an account?{" "}
+ <Link
+ href="/auth/sign-in"
+ className="font-semibold leading-6 text-indigo-600 hover:text-indigo-500"
+ >
+ Sign in
+ </Link>
+ </p>
+ </div>
+ </div>
+ </>
+ );
+}
diff --git a/src/pages/demo.tsx b/src/pages/demo.tsx
deleted file mode 100644
index 4db94ff413..0000000000
--- a/src/pages/demo.tsx
+++ /dev/null
@@ -1,46 +0,0 @@
-"use client";
-
-import * as React from "react";
-import { ChevronsUpDown } from "lucide-react";
-
-import { Button } from "~/components/ui/button";
-import {
- Collapsible,
- CollapsibleContent,
- CollapsibleTrigger,
-} from "~/components/ui/collapsible";
-
-export default function CollapsibleDemo() {
- const [isOpen, setIsOpen] = React.useState(false);
-
- return (
- <Collapsible
- open={isOpen}
- onOpenChange={setIsOpen}
- className="w-[350px] space-y-2"
- >
- <div className="flex items-center justify-between space-x-4 px-4">
- <h4 className="text-sm font-semibold">
- @peduarte starred 3 repositories
- </h4>
- <CollapsibleTrigger asChild>
- <Button variant="ghost" size="sm" className="w-9 p-0">
- <ChevronsUpDown className="h-4 w-4" />
- <span className="sr-only">Toggle</span>
- </Button>
- </CollapsibleTrigger>
- </div>
- <div className="rounded-md border px-4 py-3 font-mono text-sm">
- @radix-ui/primitives
- </div>
- <CollapsibleContent className="space-y-2">
- <div className="rounded-md border px-4 py-3 font-mono text-sm">
- @radix-ui/colors
- </div>
- <div className="rounded-md border px-4 py-3 font-mono text-sm">
- @stitches/react
- </div>
- </CollapsibleContent>
- </Collapsible>
- );
-}
diff --git a/src/pages/index.tsx b/src/pages/index.tsx
index 0710b815b0..792f4f6958 100644
--- a/src/pages/index.tsx
+++ b/src/pages/index.tsx
@@ -1,42 +1,11 @@
-import { useState } from "react";
-import Header from "../components/layouts/header";
-import { Tabs, TabsList, TabsTrigger } from "../components/ui/tabs";
-import {
- dateTimeAggregationOptions,
- type DateTimeAggregationOption,
-} from "@/src/features/dashboard/lib/timeseriesAggregation";
-import {
- ChartLlmCalls,
- ChartScores,
- ChartTraces,
-} from "@/src/features/dashboard/components/charts";
-
-export default function Start() {
- const [agg, setAgg] = useState<DateTimeAggregationOption>("7 days");
+import ProjectList from "@/src/features/projects/components/ProjectList";
+import Header from "@/src/components/layouts/header";
+export default function GetStartedPage() {
return (
<>
- <Header title="Dashboard" />
- <Tabs
- value={agg}
- onValueChange={(value) => setAgg(value as DateTimeAggregationOption)}
- className="mb-4"
- >
- <TabsList>
- {dateTimeAggregationOptions.map((option) => (
- <TabsTrigger key={option} value={option}>
- {option}
- </TabsTrigger>
- ))}
- </TabsList>
- </Tabs>
- <div className="grid gap-4 xl:grid-cols-2">
- <ChartTraces agg={agg} />
- <ChartLlmCalls agg={agg} />
- <div className="col-span-full">
- <ChartScores agg={agg} />
- </div>
- </div>
+ <Header title="Projects" />
+ <ProjectList />
</>
);
}
diff --git a/src/pages/project/[projectId]/index.tsx b/src/pages/project/[projectId]/index.tsx
new file mode 100644
index 0000000000..7fbdf18603
--- /dev/null
+++ b/src/pages/project/[projectId]/index.tsx
@@ -0,0 +1,45 @@
+import { useState } from "react";
+import Header from "@/src/components/layouts/header";
+import { Tabs, TabsList, TabsTrigger } from "@/src/components/ui/tabs";
+import {
+ dateTimeAggregationOptions,
+ type DateTimeAggregationOption,
+} from "@/src/features/dashboard/lib/timeseriesAggregation";
+import {
+ ChartLlmCalls,
+ ChartScores,
+ ChartTraces,
+} from "@/src/features/dashboard/components/charts";
+import { useRouter } from "next/router";
+
+export default function Start() {
+ const [agg, setAgg] = useState<DateTimeAggregationOption>("7 days");
+ const router = useRouter();
+ const projectId = router.query.projectId as string;
+
+ return (
+ <>
+ <Header title="Dashboard" />
+ <Tabs
+ value={agg}
+ onValueChange={(value) => setAgg(value as DateTimeAggregationOption)}
+ className="mb-4"
+ >
+ <TabsList>
+ {dateTimeAggregationOptions.map((option) => (
+ <TabsTrigger key={option} value={option}>
+ {option}
+ </TabsTrigger>
+ ))}
+ </TabsList>
+ </Tabs>
+ <div className="grid gap-4 xl:grid-cols-2">
+ <ChartTraces agg={agg} projectId={projectId} />
+ <ChartLlmCalls agg={agg} projectId={projectId} />
+ <div className="col-span-full">
+ <ChartScores agg={agg} projectId={projectId} />
+ </div>
+ </div>
+ </>
+ );
+}
diff --git a/src/pages/llm-calls.tsx b/src/pages/project/[projectId]/llm-calls.tsx
similarity index 83%
rename from src/pages/llm-calls.tsx
rename to src/pages/project/[projectId]/llm-calls.tsx
index d6939c6805..30f1e3f3a7 100644
--- a/src/pages/llm-calls.tsx
+++ b/src/pages/project/[projectId]/llm-calls.tsx
@@ -1,12 +1,13 @@
-import Header from "~/components/layouts/header";
-import { api } from "~/utils/api";
+import Header from "@/src/components/layouts/header";
+import { api } from "@/src/utils/api";
import { type ColumnDef } from "@tanstack/react-table";
import { DataTable } from "@/src/components/table/data-table";
import TableLink from "@/src/components/table/table-link";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import { type RouterOutput, type RouterInput } from "@/src/utils/types";
import { useState } from "react";
-import { type RowOptions as TableRowOptions } from "@/src/pages/traces";
+import { type TableRowOptions } from "@/src/components/table/types";
+import { useRouter } from "next/router";
type LlmCallTableRow = {
id: string;
@@ -19,21 +20,30 @@ type LlmCallTableRow = {
model?: string;
};
-export type LlmCallFilterInput = RouterInput["llmCalls"]["all"];
+export type LlmCallFilterInput = Omit<
+ RouterInput["llmCalls"]["all"],
+ "projectId"
+>;
export default function Traces() {
+ const router = useRouter();
+ const projectId = router.query.projectId as string;
+
const [queryOptions, setQueryOptions] = useState<LlmCallFilterInput>({
traceId: null,
id: null,
});
- const llmCalls = api.llmCalls.all.useQuery(queryOptions, {
- refetchInterval: 2000,
- });
+ const llmCalls = api.llmCalls.all.useQuery(
+ { ...queryOptions, projectId },
+ {
+ refetchInterval: 5000,
+ }
+ );
const llmCallOptions = api.llmCalls.availableFilterOptions.useQuery(
- queryOptions,
- { refetchInterval: 2000 }
+ { ...queryOptions, projectId },
+ { refetchInterval: 5000 }
);
const columns: ColumnDef<LlmCallTableRow>[] = [
@@ -44,7 +54,10 @@ export default function Traces() {
cell: ({ row }) => {
const value = row.getValue("id");
return typeof value === "string" ? (
- <TableLink path={`/llm-calls/${value}`} value={value} />
+ <TableLink
+ path={`/project/${projectId}/llm-calls/${value}`}
+ value={value}
+ />
) : undefined;
},
meta: {
@@ -62,7 +75,10 @@ export default function Traces() {
cell: ({ row }) => {
const value = row.getValue("traceId");
return typeof value === "string" ? (
- <TableLink path={`/traces/${value}`} value={value} />
+ <TableLink
+ path={`/project/${projectId}/traces/${value}`}
+ value={value}
+ />
) : undefined;
},
meta: {
@@ -149,7 +165,7 @@ export default function Traces() {
queryOptions.traceId !== null || queryOptions.id !== null;
return (
- <div className="container mx-auto py-10">
+ <div className="container">
<Header title="LLM Calls" live />
{tableOptions.data ? (
<div className="my-2">
diff --git a/src/pages/llm-calls/[llmCallId].tsx b/src/pages/project/[projectId]/llm-calls/[llmCallId].tsx
similarity index 85%
rename from src/pages/llm-calls/[llmCallId].tsx
rename to src/pages/project/[projectId]/llm-calls/[llmCallId].tsx
index 0767df5b18..292cdcbae2 100644
--- a/src/pages/llm-calls/[llmCallId].tsx
+++ b/src/pages/project/[projectId]/llm-calls/[llmCallId].tsx
@@ -4,15 +4,16 @@ import DescriptionList from "@/src/components/ui/descriptionLists";
import { ArrowUpRight } from "lucide-react";
import Link from "next/link";
import { useRouter } from "next/router";
-import Header from "~/components/layouts/header";
+import Header from "@/src/components/layouts/header";
-import { api } from "~/utils/api";
+import { api } from "@/src/utils/api";
export default function LlmCallPage() {
const router = useRouter();
- const { llmCallId } = router.query;
+ const llmCallId = router.query.llmCallId as string;
+ const projectId = router.query.projectId as string;
- const llmCall = api.llmCalls.byId.useQuery(llmCallId as string, {
+ const llmCall = api.llmCalls.byId.useQuery(llmCallId, {
enabled: llmCallId !== undefined,
});
@@ -24,12 +25,12 @@ export default function LlmCallPage() {
llmCall.data?.scores.filter((score) => !obsMetrics?.includes(score)) ?? [];
return (
- <>
+ <div className="container">
<Header
title="LLM Call"
breadcrumb={[
- { name: "LLM Calls", href: "/llm-calls" },
- { name: llmCallId as string },
+ { name: "LLM Calls", href: `/project/${projectId}/llm-calls` },
+ { name: llmCallId },
]}
/>
{llmCall.data ? (
@@ -39,7 +40,9 @@ export default function LlmCallPage() {
label: "Trace",
value: (
<Button variant="secondary" asChild>
- <Link href={`/traces/${llmCall.data.traceId}`}>
+ <Link
+ href={`/project/${projectId}/traces/${llmCall.data.traceId}`}
+ >
{llmCall.data.traceId}
<ArrowUpRight className="ml-2 h-4 w-4" />
</Link>
@@ -113,6 +116,6 @@ export default function LlmCallPage() {
]}
/>
) : null}
- </>
+ </div>
);
}
diff --git a/src/pages/scores.tsx b/src/pages/project/[projectId]/scores.tsx
similarity index 84%
rename from src/pages/scores.tsx
rename to src/pages/project/[projectId]/scores.tsx
index e579302589..8a1828c4f6 100644
--- a/src/pages/scores.tsx
+++ b/src/pages/project/[projectId]/scores.tsx
@@ -1,14 +1,15 @@
-import Header from "~/components/layouts/header";
+import Header from "@/src/components/layouts/header";
-import { api } from "~/utils/api";
+import { api } from "@/src/utils/api";
import { type ColumnDef } from "@tanstack/react-table";
import { type RouterOutput, type RouterInput } from "@/src/utils/types";
import { useState } from "react";
import TableLink from "@/src/components/table/table-link";
-import { type RowOptions as TableRowOptions } from "@/src/pages/traces";
+import { type TableRowOptions } from "@/src/components/table/types";
import { DataTable } from "@/src/components/table/data-table";
import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import { type Score } from "@prisma/client";
+import { useRouter } from "next/router";
type RowData = {
id: string;
@@ -19,21 +20,32 @@ type RowData = {
observationId?: string;
};
-export type ScoreFilterInput = RouterInput["scores"]["all"];
+export type ScoreFilterInput = Omit<RouterInput["scores"]["all"], "projectId">;
export default function ScoresPage() {
+ const router = useRouter();
+ const projectId = router.query.projectId as string;
const [queryOptions, setQueryOptions] = useState<ScoreFilterInput>({
traceId: null,
id: null,
});
- const scores = api.scores.all.useQuery(queryOptions, {
- refetchInterval: 2000,
- });
+ const scores = api.scores.all.useQuery(
+ {
+ ...queryOptions,
+ projectId,
+ },
+ {
+ refetchInterval: 5000,
+ }
+ );
const llmCallOptions = api.llmCalls.availableFilterOptions.useQuery(
- queryOptions,
- { refetchInterval: 2000 }
+ {
+ ...queryOptions,
+ projectId,
+ },
+ { refetchInterval: 5000 }
);
const columns: ColumnDef<RowData>[] = [
@@ -63,7 +75,10 @@ export default function ScoresPage() {
const value = row.getValue("traceId");
return typeof value === "string" ? (
<>
- <TableLink path={`/traces/${value}`} value={value} />
+ <TableLink
+ path={`/project/${projectId}/traces/${value}`}
+ value={value}
+ />
</>
) : undefined;
},
@@ -141,7 +156,7 @@ export default function ScoresPage() {
});
return (
- <div className="container mx-auto py-10">
+ <div className="container">
<Header title="Scores" live />
{tableOptions.data ? (
<div className="my-2">
diff --git a/src/pages/project/[projectId]/setup.tsx b/src/pages/project/[projectId]/setup.tsx
new file mode 100644
index 0000000000..e115abd5fd
--- /dev/null
+++ b/src/pages/project/[projectId]/setup.tsx
@@ -0,0 +1,106 @@
+import { ChevronRightIcon } from "@heroicons/react/20/solid";
+import { CommandLineIcon, RocketLaunchIcon } from "@heroicons/react/24/outline";
+import clsx from "clsx";
+import { SiPython } from "react-icons/si";
+import Header from "@/src/components/layouts/header";
+import { ApiKeyList } from "@/src/features/publicApi/components/ApiKeyList";
+import { useRouter } from "next/router";
+import { Code } from "lucide-react";
+
+export default function GetStartedPage() {
+ const router = useRouter();
+ const projectId = router.query.projectId as string;
+ return (
+ <div className="container">
+ <Header title="Setup" />
+ <div className="flex flex-col gap-10">
+ <Instructions />
+ <ApiKeyList projectId={projectId} />
+ </div>
+ </div>
+ );
+}
+
+const instructionItems = [
+ {
+ name: "Quickstart",
+ description: "Follow the quickstart to integrate langfuse into your app",
+ href: "https://langfuse.com/docs/get-started",
+ iconColor: "bg-purple-400",
+ icon: RocketLaunchIcon,
+ },
+ {
+ name: "Typescript SDK",
+ description: "npm install langfuse",
+ href: "https://langfuse.com/docs/sdk/typescript",
+ iconColor: "bg-blue-400",
+ icon: CommandLineIcon,
+ },
+ {
+ name: "Python SDK",
+ description: "pip install langfuse",
+ href: "https://langfuse.com/docs/sdk/python",
+ iconColor: "bg-yellow-400",
+ icon: SiPython,
+ },
+ {
+ name: "API Reference",
+ description: "Swagger API reference",
+ href: "https://langfuse.com/docs/reference",
+ iconColor: "bg-green-400",
+ icon: Code,
+ },
+];
+
+function Instructions() {
+ return (
+ <div>
+ <h2 className="text-base font-semibold leading-6 text-gray-900">
+ Integrate langfuse
+ </h2>
+ <p className="mt-1 text-sm text-gray-500">
+ Use one of the following reference to start monitoring your application
+ with langfuse application
+ </p>
+ <ul
+ role="list"
+ className="mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"
+ >
+ {instructionItems.map((item, itemIdx) => (
+ <li key={itemIdx}>
+ <div className="group relative flex items-start space-x-3 py-4">
+ <div className="flex-shrink-0">
+ <span
+ className={clsx(
+ item.iconColor,
+ "inline-flex h-10 w-10 items-center justify-center rounded-lg"
+ )}
+ >
+ <item.icon
+ className="h-6 w-6 text-white"
+ aria-hidden="true"
+ />
+ </span>
+ </div>
+ <div className="min-w-0 flex-1">
+ <div className="text-sm font-medium text-gray-900">
+ <a href={item.href} target="_blank">
+ <span className="absolute inset-0" aria-hidden="true" />
+ {item.name}
+ </a>
+ </div>
+ <p className="text-sm text-gray-500">{item.description}</p>
+ </div>
+ <div className="flex-shrink-0 self-center">
+ <ChevronRightIcon
+ className="h-5 w-5 text-gray-400 group-hover:text-gray-500"
+ aria-hidden="true"
+ />
+ </div>
+ </div>
+ </li>
+ ))}
+ </ul>
+ </div>
+ );
+}
diff --git a/src/pages/traces.tsx b/src/pages/project/[projectId]/traces.tsx
similarity index 65%
rename from src/pages/traces.tsx
rename to src/pages/project/[projectId]/traces.tsx
index d92fe5ce01..e3e5d24d8b 100644
--- a/src/pages/traces.tsx
+++ b/src/pages/project/[projectId]/traces.tsx
@@ -1,22 +1,26 @@
import React, { useState } from "react";
-import { api } from "../utils/api";
-import { type RouterOutput, type RouterInput } from "../utils/types";
-import { DataTable } from "../components/table/data-table";
+import { api } from "@/src/utils/api";
+import { type RouterOutput, type RouterInput } from "@/src/utils/types";
+import { DataTable } from "@/src/components/table/data-table";
import { type Trace, type Score } from "@prisma/client";
-import { ArrowUpRight, type LucideIcon } from "lucide-react";
+import { ArrowUpRight } from "lucide-react";
import { type ColumnDef } from "@tanstack/react-table";
import {
Tabs,
TabsContent,
TabsList,
TabsTrigger,
-} from "../components/ui/tabs";
-import Header from "../components/layouts/header";
-import { Button } from "../components/ui/button";
+} from "@/src/components/ui/tabs";
+import Header from "@/src/components/layouts/header";
+import { Button } from "@/src/components/ui/button";
import Link from "next/link";
-import { DataTableToolbar } from "../components/table/data-table-toolbar";
+import { DataTableToolbar } from "@/src/components/table/data-table-toolbar";
import TableLink from "@/src/components/table/table-link";
import ObservationDisplay from "@/src/components/observationDisplay";
+import { useRouter } from "next/router";
+import { type TableRowOptions } from "@/src/components/table/types";
+
+export type TableScore = { name: string; value: number };
export type TraceTableRow = {
id: string;
@@ -25,31 +29,36 @@ export type TraceTableRow = {
status: string;
statusMessage?: string;
attributes?: string;
- scores: string;
+ scores: TableScore[];
};
-export type TraceFilterInput = RouterInput["traces"]["all"];
-
-export type RowOptions = {
- columnId: string;
- options: { label: string; value: number; icon?: LucideIcon }[];
-};
+export type TraceFilterInput = Omit<RouterInput["traces"]["all"], "projectId">;
export default function Traces() {
+ const router = useRouter();
+ const projectId = router.query.projectId as string;
const [queryOptions, setQueryOptions] = useState<TraceFilterInput>({
- attribute: {},
name: null,
id: null,
status: null,
});
- const traces = api.traces.all.useQuery(queryOptions, {
- refetchInterval: 2000,
- });
+ const traces = api.traces.all.useQuery(
+ {
+ ...queryOptions,
+ projectId,
+ },
+ {
+ refetchInterval: 5000,
+ }
+ );
- const options = api.traces.availableFilterOptions.useQuery(queryOptions, {
- refetchInterval: 2000,
- });
+ const options = api.traces.availableFilterOptions.useQuery(
+ { ...queryOptions, projectId },
+ {
+ refetchInterval: 5000,
+ }
+ );
const convertToTableRow = (
trace: Trace & { scores: Score[] }
@@ -61,16 +70,15 @@ export default function Traces() {
status: trace.status,
statusMessage: trace.statusMessage ?? undefined,
attributes: JSON.stringify(trace.attributes),
- scores: trace.scores
- // eslint-disable-next-line @typescript-eslint/restrict-template-expressions, @typescript-eslint/no-unsafe-member-access
- .map((score) => `${score.name}: ${score.value}`)
- .join("; "),
+ scores: trace.scores.map((score) => {
+ return { name: score.name, value: score.value };
+ }),
};
};
const convertToOptions = (
options: RouterOutput["traces"]["availableFilterOptions"]
- ): RowOptions[] => {
+ ): TableRowOptions[] => {
return options.map((o) => {
return {
columnId: o.key,
@@ -87,7 +95,10 @@ export default function Traces() {
cell: ({ row }) => {
const value = row.getValue("id");
return typeof value === "string" ? (
- <TableLink path={`/traces/${value}`} value={value} />
+ <TableLink
+ path={`/project/${projectId}/traces/${value}`}
+ value={value}
+ />
) : undefined;
},
enableColumnFilter: true,
@@ -138,6 +149,29 @@ export default function Traces() {
{
accessorKey: "scores",
header: "Scores",
+ cell: ({ row }) => {
+ const values: TableScore[] = row.getValue("scores");
+ return (
+ <div className="flex flex-col gap-2">
+ {values.map((value) => (
+ <div
+ key={value.name}
+ className="relative flex-row items-center rounded-lg border border-gray-300 shadow-sm"
+ >
+ <div className="min-w-1 flex flex-1 items-center gap-2 p-2">
+ {/* <span className="absolute inset-0" aria-hidden="true" /> */}
+ <p className=" text-xs font-medium text-gray-900">
+ {value.name}
+ </p>
+ <p className="inline-flex items-baseline rounded-full bg-gray-100 px-2.5 py-0.5 text-lg font-medium text-gray-500 md:mt-2 lg:mt-0">
+ {value.value}
+ </p>
+ </div>
+ </div>
+ ))}
+ </div>
+ );
+ },
},
];
@@ -162,14 +196,13 @@ export default function Traces() {
const resetFilters = () =>
setQueryOptions({
- attribute: {},
name: null,
id: null,
status: null,
});
return (
- <div className="container mx-auto py-10">
+ <div className="container">
<Header title="Traces" live />
<Tabs defaultValue="table">
<TabsList>
@@ -209,9 +242,9 @@ export default function Traces() {
</TabsContent>
<TabsContent value="sidebyside">
<div className="relative flex max-w-full flex-row gap-2 overflow-x-scroll pb-3">
- {traces.data?.map((trace) => {
- return <Single key={trace.id} trace={trace} />;
- })}
+ {traces.data?.map((trace) => (
+ <Single key={trace.id} trace={trace} projectId={projectId} />
+ ))}
</div>
</TabsContent>
</Tabs>
@@ -219,14 +252,17 @@ export default function Traces() {
);
}
-const Single = (props: { trace: RouterOutput["traces"]["all"][number] }) => {
+const Single = (props: {
+ trace: RouterOutput["traces"]["all"][number];
+ projectId: string;
+}) => {
const { trace } = props;
return (
<div className="w-[550px] flex-none rounded-md border px-3">
<div className="mt-4 font-bold">Trace</div>
<Button variant="ghost" size="sm" asChild>
- <Link href={`/traces/${trace.id}`}>
+ <Link href={`/project/${props.projectId}/traces/${trace.id}`}>
{trace.id}
<ArrowUpRight className="ml-2 h-4 w-4" />
</Link>
@@ -239,7 +275,11 @@ const Single = (props: { trace: RouterOutput["traces"]["all"][number] }) => {
{trace.nestedObservation ? (
<>
<div className="mt-4 text-sm font-bold">Observations:</div>
- <ObservationDisplay key={trace.id} obs={trace.nestedObservation} />
+ <ObservationDisplay
+ key={trace.id}
+ obs={trace.nestedObservation}
+ projectId={props.projectId}
+ />
</>
) : undefined}
</div>
diff --git a/src/pages/traces/[traceId].tsx b/src/pages/project/[projectId]/traces/[traceId].tsx
similarity index 80%
rename from src/pages/traces/[traceId].tsx
rename to src/pages/project/[projectId]/traces/[traceId].tsx
index c744d373c0..a827413041 100644
--- a/src/pages/traces/[traceId].tsx
+++ b/src/pages/project/[projectId]/traces/[traceId].tsx
@@ -1,25 +1,24 @@
import { useRouter } from "next/router";
-import Header from "~/components/layouts/header";
-import { api } from "~/utils/api";
+import Header from "@/src/components/layouts/header";
+import { api } from "@/src/utils/api";
import DescriptionList from "@/src/components/ui/descriptionLists";
import { JSONview } from "@/src/components/ui/code";
import ObservationDisplay from "@/src/components/observationDisplay";
export default function TracePage() {
const router = useRouter();
- const { traceId } = router.query;
+ const traceId = router.query.traceId as string;
+ const projectId = router.query.projectId as string;
- const trace = api.traces.byId.useQuery(traceId as string, {
- enabled: traceId !== undefined,
- });
+ const trace = api.traces.byId.useQuery(traceId);
return (
- <>
+ <div className="container">
<Header
title="Trace Detail"
breadcrumb={[
- { name: "Traces", href: "/traces" },
- { name: traceId as string },
+ { name: "Traces", href: `/project/${projectId}/traces` },
+ { name: traceId },
]}
/>
{trace.data ? (
@@ -61,6 +60,7 @@ export default function TracePage() {
value: trace.data.nestedObservation ? (
<ObservationDisplay
key={trace.data.id}
+ projectId={projectId}
obs={trace.data.nestedObservation}
/>
) : null,
@@ -68,6 +68,6 @@ export default function TracePage() {
]}
/>
) : null}
- </>
+ </div>
);
}
diff --git a/src/pages/setup.tsx b/src/pages/setup.tsx
deleted file mode 100644
index 4abe5ba83e..0000000000
--- a/src/pages/setup.tsx
+++ /dev/null
@@ -1,85 +0,0 @@
-import { ChevronRightIcon } from "@heroicons/react/20/solid";
-import { CommandLineIcon, MegaphoneIcon } from "@heroicons/react/24/outline";
-import clsx from "clsx";
-import { SiPython } from "react-icons/si";
-import Header from "../components/layouts/header";
-
-const items = [
- {
- name: "API",
- description: "Integrate with the langfuse REST API",
- href: "/api-doc",
- iconColor: "bg-purple-500",
- icon: MegaphoneIcon,
- },
- {
- name: "Typescript SDK",
- description: "npm install langfuse",
- href: "https://www.npmjs.com/package/langfuse",
- iconColor: "bg-blue-500",
- icon: CommandLineIcon,
- },
- {
- name: "Python SDK",
- description: "pip install langfuse",
- href: "https://pypi.org/project/langfuse/",
- iconColor: "bg-yellow-500",
- icon: SiPython,
- },
-];
-
-export default function GetStartedPage() {
- return (
- <>
- <Header title="Setup" />
- <div>
- <h2 className="text-base font-semibold leading-6 text-gray-900">
- Integrate langfuse
- </h2>
- <p className="mt-1 text-sm text-gray-500">
- Use one of the following reference to start monitoring your
- application with langfuse application
- </p>
- <ul
- role="list"
- className="mt-6 divide-y divide-gray-200 border-b border-t border-gray-200"
- >
- {items.map((item, itemIdx) => (
- <li key={itemIdx}>
- <div className="group relative flex items-start space-x-3 py-4">
- <div className="flex-shrink-0">
- <span
- className={clsx(
- item.iconColor,
- "inline-flex h-10 w-10 items-center justify-center rounded-lg"
- )}
- >
- <item.icon
- className="h-6 w-6 text-white"
- aria-hidden="true"
- />
- </span>
- </div>
- <div className="min-w-0 flex-1">
- <div className="text-sm font-medium text-gray-900">
- <a href={item.href}>
- <span className="absolute inset-0" aria-hidden="true" />
- {item.name}
- </a>
- </div>
- <p className="text-sm text-gray-500">{item.description}</p>
- </div>
- <div className="flex-shrink-0 self-center">
- <ChevronRightIcon
- className="h-5 w-5 text-gray-400 group-hover:text-gray-500"
- aria-hidden="true"
- />
- </div>
- </div>
- </li>
- ))}
- </ul>
- </div>
- </>
- );
-}
diff --git a/src/server/api/root.ts b/src/server/api/root.ts
index cc07770a79..55b6154c0d 100644
--- a/src/server/api/root.ts
+++ b/src/server/api/root.ts
@@ -1,8 +1,10 @@
-import { createTRPCRouter } from "~/server/api/trpc";
+import { createTRPCRouter } from "@/src/server/api/trpc";
import { traceRouter } from "./routers/traces";
import { llmCallRouter } from "./routers/llmCalls";
import { scoresRouter } from "./routers/scores";
-import { dashboardRouter } from "../../features/dashboard/dashboardTrpcRouter";
+import { dashboardRouter } from "@/src/features/dashboard/server/dashboardRouter";
+import { projectsRouter } from "@/src/features/projects/server/projectsRouter";
+import { apiKeysRouter } from "@/src/features/publicApi/server/apiKeyRouter";
/**
* This is the primary router for your server.
@@ -14,6 +16,8 @@ export const appRouter = createTRPCRouter({
llmCalls: llmCallRouter,
scores: scoresRouter,
dashboard: dashboardRouter,
+ projects: projectsRouter,
+ apiKeys: apiKeysRouter,
});
// export type definition of API
diff --git a/src/server/api/routers/llmCalls.ts b/src/server/api/routers/llmCalls.ts
index a91f88143f..f5e2aa6768 100644
--- a/src/server/api/routers/llmCalls.ts
+++ b/src/server/api/routers/llmCalls.ts
@@ -1,42 +1,55 @@
import { z } from "zod";
-import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";
-import { prisma } from "~/server/db";
-import { type LlmCall } from "~/utils/types";
+import {
+ createTRPCRouter,
+ protectedProcedure,
+ protectedProjectProcedure,
+} from "@/src/server/api/trpc";
+import { type LlmCall } from "@/src/utils/types";
const LLMFilterOptions = z.object({
traceId: z.array(z.string()).nullable(),
id: z.array(z.string()).nullable(),
+ projectId: z.string(), // Required for protectedProjectProcedure
});
export const llmCallRouter = createTRPCRouter({
- all: publicProcedure.input(LLMFilterOptions).query(async ({ input }) => {
- const llmCalls = (await prisma.observation.findMany({
- where: {
- type: "LLMCALL",
- ...(input.traceId
- ? {
- traceId: { in: input.traceId },
- }
- : undefined),
- ...(input.id
- ? {
- id: { in: input.id },
- }
- : undefined),
- },
- orderBy: {
- startTime: "desc",
- },
- })) as LlmCall[];
+ all: protectedProjectProcedure
+ .input(LLMFilterOptions)
+ .query(async ({ input, ctx }) => {
+ const llmCalls = (await ctx.prisma.observation.findMany({
+ where: {
+ type: "LLMCALL",
+ trace: {
+ projectId: input.projectId,
+ },
+ ...(input.traceId
+ ? {
+ traceId: { in: input.traceId },
+ }
+ : undefined),
+ ...(input.id
+ ? {
+ id: { in: input.id },
+ }
+ : undefined),
+ },
+ orderBy: {
+ startTime: "desc",
+ },
+ take: 100, // TODO: pagination
+ })) as LlmCall[];
- return llmCalls;
- }),
+ return llmCalls;
+ }),
- availableFilterOptions: publicProcedure
+ availableFilterOptions: protectedProjectProcedure
.input(LLMFilterOptions)
- .query(async ({ input }) => {
+ .query(async ({ input, ctx }) => {
const filter = {
+ trace: {
+ projectId: input.projectId,
+ },
...(input.traceId
? {
traceId: { in: input.traceId },
@@ -50,7 +63,7 @@ export const llmCallRouter = createTRPCRouter({
};
const [ids, traceIds] = await Promise.all([
- prisma.observation.groupBy({
+ ctx.prisma.observation.groupBy({
where: {
type: "LLMCALL",
...filter,
@@ -60,7 +73,7 @@ export const llmCallRouter = createTRPCRouter({
_all: true,
},
}),
- prisma.observation.groupBy({
+ ctx.prisma.observation.groupBy({
where: {
type: "LLMCALL",
...filter,
@@ -87,16 +100,26 @@ export const llmCallRouter = createTRPCRouter({
},
];
}),
-
- byId: publicProcedure.input(z.string()).query(async ({ input }) => {
+ byId: protectedProcedure.input(z.string()).query(async ({ input, ctx }) => {
// also works for other observations
- const llmCall = (await prisma.observation.findUnique({
+ const llmCall = (await ctx.prisma.observation.findFirstOrThrow({
where: {
id: input,
+ type: "LLMCALL",
+ trace: {
+ project: {
+ members: {
+ some: {
+ userId: ctx.session.user.id,
+ },
+ },
+ },
+ },
},
})) as LlmCall;
- const scores = await prisma.score.findMany({
+ // No need to check for permissions as user has access to the trace
+ const scores = await ctx.prisma.score.findMany({
where: {
traceId: llmCall.traceId,
},
diff --git a/src/server/api/routers/scores.ts b/src/server/api/routers/scores.ts
index f611aba011..4db2ed87fc 100644
--- a/src/server/api/routers/scores.ts
+++ b/src/server/api/routers/scores.ts
@@ -1,39 +1,52 @@
import { z } from "zod";
-import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";
-import { prisma } from "~/server/db";
+import {
+ createTRPCRouter,
+ protectedProcedure,
+ protectedProjectProcedure,
+} from "@/src/server/api/trpc";
const ScoreFilterOptions = z.object({
traceId: z.array(z.string()).nullable(),
id: z.array(z.string()).nullable(),
+ projectId: z.string(), // Required for protectedProjectProcedure
});
export const scoresRouter = createTRPCRouter({
- all: publicProcedure.input(ScoreFilterOptions).query(async ({ input }) => {
- return await prisma.score.findMany({
- orderBy: {
- timestamp: "desc",
- },
- where: {
- ...(input.traceId
- ? {
- traceId: { in: input.traceId },
- }
- : undefined),
- ...(input.id
- ? {
- id: {
- in: input.id,
- },
- }
- : undefined),
- },
- });
- }),
- availableFilterOptions: publicProcedure
+ all: protectedProjectProcedure
+ .input(ScoreFilterOptions)
+ .query(async ({ input, ctx }) =>
+ ctx.prisma.score.findMany({
+ orderBy: {
+ timestamp: "desc",
+ },
+ where: {
+ trace: {
+ projectId: input.projectId,
+ },
+ ...(input.traceId
+ ? {
+ traceId: { in: input.traceId },
+ }
+ : undefined),
+ ...(input.id
+ ? {
+ id: {
+ in: input.id,
+ },
+ }
+ : undefined),
+ },
+ take: 100, // TODO: pagination
+ })
+ ),
+ availableFilterOptions: protectedProjectProcedure
.input(ScoreFilterOptions)
- .query(async ({ input }) => {
+ .query(async ({ input, ctx }) => {
const filter = {
+ trace: {
+ projectId: input.projectId,
+ },
...(input.id
? {
id: {
@@ -51,15 +64,14 @@ export const scoresRouter = createTRPCRouter({
};
const [ids, traceIds] = await Promise.all([
- await prisma.score.groupBy({
+ ctx.prisma.score.groupBy({
where: filter,
by: ["id"],
_count: {
_all: true,
},
}),
-
- await prisma.score.groupBy({
+ ctx.prisma.score.groupBy({
where: filter,
by: ["traceId"],
_count: {
@@ -83,10 +95,19 @@ export const scoresRouter = createTRPCRouter({
},
];
}),
- byId: publicProcedure.input(z.string()).query(({ input }) =>
- prisma.score.findUniqueOrThrow({
+ byId: protectedProcedure.input(z.string()).query(({ input, ctx }) =>
+ ctx.prisma.score.findFirstOrThrow({
where: {
id: input,
+ trace: {
+ project: {
+ members: {
+ some: {
+ userId: ctx.session.user.id,
+ },
+ },
+ },
+ },
},
})
),
diff --git a/src/server/api/routers/traces.ts b/src/server/api/routers/traces.ts
index 1d65a93163..b32a326c28 100644
--- a/src/server/api/routers/traces.ts
+++ b/src/server/api/routers/traces.ts
@@ -2,79 +2,67 @@ import { type NestedObservation } from "@/src/utils/types";
import { type Observation } from "@prisma/client";
import { z } from "zod";
-import { createTRPCRouter, publicProcedure } from "~/server/api/trpc";
-import { prisma } from "~/server/db";
+import {
+ createTRPCRouter,
+ protectedProcedure,
+ protectedProjectProcedure,
+} from "@/src/server/api/trpc";
const TraceFilterOptions = z.object({
- attribute: z
- .object({
- path: z.array(z.string()).optional(),
- equals: z.string().optional(),
- string_contains: z.string().optional(),
- string_starts_with: z.string().optional(),
- string_ends_with: z.string().optional(),
- })
- .nullable(),
+ projectId: z.string(), // Required for protectedProjectProcedure
name: z.array(z.string()).nullable(),
id: z.array(z.string()).nullable(),
status: z.array(z.string()).nullable(),
});
export const traceRouter = createTRPCRouter({
- all: publicProcedure.input(TraceFilterOptions).query(async ({ input }) => {
- const traces = await prisma.trace.findMany({
- where: {
- ...(input.attribute?.path
- ? {
- attributes: input.attribute,
- }
- : undefined),
- ...(input.name
- ? {
- name: {
- in: input.name,
- },
- }
- : undefined),
- ...(input.id
- ? {
- id: {
- in: input.id,
- },
- }
- : undefined),
- ...(input.status
- ? {
- status: {
- in: input.status,
- },
- }
- : undefined),
- },
- orderBy: {
- timestamp: "desc",
- },
- include: {
- scores: true,
- observations: true,
- },
- });
-
- return traces.map((trace) => ({
- ...trace,
- nestedObservation: nestObservations(trace.observations),
- }));
- }),
-
- availableFilterOptions: publicProcedure
+ all: protectedProjectProcedure
.input(TraceFilterOptions)
- .query(async ({ input }) => {
+ .query(async ({ input, ctx }) => {
+ const traces = await ctx.prisma.trace.findMany({
+ where: {
+ projectId: input.projectId,
+ ...(input.name
+ ? {
+ name: {
+ in: input.name,
+ },
+ }
+ : undefined),
+ ...(input.id
+ ? {
+ id: {
+ in: input.id,
+ },
+ }
+ : undefined),
+ ...(input.status
+ ? {
+ status: {
+ in: input.status,
+ },
+ }
+ : undefined),
+ },
+ orderBy: {
+ timestamp: "desc",
+ },
+ include: {
+ scores: true,
+ observations: true,
+ },
+ take: 100, // TODO: pagination
+ });
+ return traces.map((trace) => ({
+ ...trace,
+ nestedObservation: nestObservations(trace.observations),
+ }));
+ }),
+ availableFilterOptions: protectedProjectProcedure
+ .input(TraceFilterOptions)
+ .query(async ({ input, ctx }) => {
const filter = {
- ...(input.attribute?.path
- ? {
- attributes: input.attribute,
- }
- : undefined),
+ projectId: input.projectId,
...(input.name
? {
name: {
@@ -99,7 +87,7 @@ export const traceRouter = createTRPCRouter({
};
const [ids, names, statuses] = await Promise.all([
- await prisma.trace.groupBy({
+ ctx.prisma.trace.groupBy({
where: filter,
by: ["id"],
_count: {
@@ -107,7 +95,7 @@ export const traceRouter = createTRPCRouter({
},
}),
- await prisma.trace.groupBy({
+ ctx.prisma.trace.groupBy({
where: filter,
by: ["name"],
_count: {
@@ -115,7 +103,7 @@ export const traceRouter = createTRPCRouter({
},
}),
- await prisma.trace.groupBy({
+ ctx.prisma.trace.groupBy({
where: filter,
by: ["status"],
_count: {
@@ -146,19 +134,35 @@ export const traceRouter = createTRPCRouter({
];
}),
- byId: publicProcedure.input(z.string()).query(async ({ input }) => {
+ byId: protectedProcedure.input(z.string()).query(async ({ input, ctx }) => {
const [trace, observations] = await Promise.all([
- prisma.trace.findUniqueOrThrow({
+ ctx.prisma.trace.findFirstOrThrow({
where: {
id: input,
+ project: {
+ members: {
+ some: {
+ userId: ctx.session.user.id,
+ },
+ },
+ },
},
include: {
scores: true,
},
}),
- prisma.observation.findMany({
+ ctx.prisma.observation.findMany({
where: {
traceId: input,
+ trace: {
+ project: {
+ members: {
+ some: {
+ userId: ctx.session.user.id,
+ },
+ },
+ },
+ },
},
}),
]);
diff --git a/src/server/api/trpc.ts b/src/server/api/trpc.ts
index 7c3bad05da..45ea65b78a 100644
--- a/src/server/api/trpc.ts
+++ b/src/server/api/trpc.ts
@@ -17,8 +17,10 @@
import { type CreateNextContextOptions } from "@trpc/server/adapters/next";
import { type Session } from "next-auth";
-import { getServerAuthSession } from "~/server/auth";
-import { prisma } from "~/server/db";
+import { getServerAuthSession } from "@/src/server/auth";
+import { prisma } from "@/src/server/db";
+
+import * as z from "zod";
type CreateContextOptions = {
session: Session | null;
@@ -128,3 +130,53 @@ const enforceUserIsAuthed = t.middleware(({ ctx, next }) => {
* @see https://trpc.io/docs/procedures
*/
export const protectedProcedure = t.procedure.use(enforceUserIsAuthed);
+
+const inputProjectSchema = z.object({
+ projectId: z.string(),
+});
+
+/**
+ * Protected (authenticated) procedure with project role
+ */
+
+const enforceUserIsAuthedAndProjectMember = t.middleware(
+ ({ ctx, rawInput, next }) => {
+ if (!ctx.session || !ctx.session.user) {
+ throw new TRPCError({ code: "UNAUTHORIZED" });
+ }
+
+ const result = inputProjectSchema.safeParse(rawInput);
+ if (!result.success)
+ throw new TRPCError({
+ code: "BAD_REQUEST",
+ message: "Invalid input, projectId is required",
+ });
+
+ // check that the user is a member of this project
+ const projectId = result.data.projectId;
+ const sessionProject = ctx.session?.user.projects?.find(
+ ({ id }) => id === projectId
+ );
+
+ if (!sessionProject)
+ throw new TRPCError({
+ code: "UNAUTHORIZED",
+ message: "User is not a member of this project",
+ });
+
+ return next({
+ ctx: {
+ // infers the `session` as non-nullable
+ session: {
+ ...ctx.session,
+ user: ctx.session.user,
+ projectRole: sessionProject.role,
+ },
+ },
+ });
+ }
+);
+
+export const protectedProjectProcedure = t.procedure.use(
+ enforceUserIsAuthedAndProjectMember
+);
diff --git a/src/server/auth.ts b/src/server/auth.ts
index ec41316eff..ce8fa25ed3 100644
--- a/src/server/auth.ts
+++ b/src/server/auth.ts
@@ -1,32 +1,14 @@
import { type GetServerSidePropsContext } from "next";
import {
getServerSession,
+ type User,
type NextAuthOptions,
- type DefaultSession,
+ type Session,
} from "next-auth";
import { PrismaAdapter } from "@next-auth/prisma-adapter";
-import { prisma } from "~/server/db";
-
-/**
- * Module augmentation for `next-auth` types. Allows us to add custom properties to the `session`
- * object and keep type safety.
- *
- * @see https://next-auth.js.org/getting-started/typescript#module-augmentation
- */
-declare module "next-auth" {
- interface Session extends DefaultSession {
- user: {
- id: string;
- // ...other properties
- // role: UserRole;
- } & DefaultSession["user"];
- }
-
- // interface User {
- // // ...other properties
- // // role: UserRole;
- // }
-}
+import { prisma } from "@/src/server/db";
+import CredentialsProvider from "next-auth/providers/credentials";
+import { verifyPassword } from "@/src/features/auth/lib/emailPassword";
/**
* Options for NextAuth.js used to configure adapters, providers, callbacks, etc.
@@ -34,14 +16,48 @@ declare module "next-auth" {
* @see https://next-auth.js.org/configuration/options
*/
export const authOptions: NextAuthOptions = {
+ session: {
+ strategy: "jwt",
+ },
callbacks: {
- session: ({ session, user }) => ({
- ...session,
- user: {
- ...session.user,
- id: user.id,
- },
- }),
+ async session({ session, token }): Promise<Session> {
+ const dbUser = await prisma.user.findUnique({
+ where: {
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ email: token.email!,
+ },
+ select: {
+ id: true,
+ name: true,
+ email: true,
+ image: true,
+ memberships: {
+ include: {
+ project: true,
+ },
+ },
+ },
+ });
+
+ return {
+ ...session,
+ user:
+ dbUser !== null
+ ? {
+ ...session.user,
+ id: dbUser.id,
+ name: dbUser.name,
+ email: dbUser.email,
+ image: dbUser.image,
+ projects: dbUser.memberships.map((membership) => ({
+ id: membership.project.id,
+ name: membership.project.name,
+ role: membership.role,
+ })),
+ }
+ : null,
+ };
+ },
},
adapter: PrismaAdapter(prisma),
providers: [
@@ -54,7 +70,55 @@ export const authOptions: NextAuthOptions = {
*
* @see https://next-auth.js.org/providers/github
*/
+ CredentialsProvider({
+ // The name to display on the sign in form (e.g. "Sign in with...")
+ name: "credentials",
+ // `credentials` is used to generate a form on the sign in page.
+ // You can specify which fields should be submitted, by adding keys to the `credentials` object.
+ // e.g. domain, username, password, 2FA token, etc.
+ // You can pass any HTML attribute to the <input> tag through the object.
+ credentials: {
+ email: {
+ label: "Email",
+ type: "email",
+ placeholder: "[email protected]",
+ },
+ password: { label: "Password", type: "password" },
+ },
+ async authorize(credentials, _req) {
+ if (!credentials) throw new Error("No credentials");
+
+ const dbUser = await prisma.user.findUnique({
+ where: {
+ email: credentials.email.toLowerCase(),
+ },
+ });
+
+ if (!dbUser) throw new Error("Invalid credentials");
+ if (dbUser.password === null) throw new Error("Invalid credentials");
+
+ const isValidPassword = await verifyPassword(
+ credentials.password,
+ dbUser.password
+ );
+ if (!isValidPassword) throw new Error("Invalid credentials");
+
+ const userObj: User = {
+ id: dbUser.id,
+ name: dbUser.name,
+ email: dbUser.email,
+ image: dbUser.image,
+ emailVerified: dbUser.emailVerified,
+ projects: [],
+ };
+
+ return userObj;
+ },
+ }),
],
+ pages: {
+ signIn: "/auth/sign-in",
+ },
};
/**
diff --git a/src/server/db.ts b/src/server/db.ts
index 861093d2f7..dfa6f3da7a 100644
--- a/src/server/db.ts
+++ b/src/server/db.ts
@@ -1,6 +1,6 @@
import { PrismaClient } from "@prisma/client";
-import { env } from "~/env.mjs";
+import { env } from "@/src/env.mjs";
const globalForPrisma = globalThis as unknown as {
prisma: PrismaClient | undefined;
diff --git a/src/utils/api.ts b/src/utils/api.ts
index f4f4ad5ca4..2ead0a73eb 100644
--- a/src/utils/api.ts
+++ b/src/utils/api.ts
@@ -9,7 +9,7 @@ import { createTRPCNext } from "@trpc/next";
import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server";
import superjson from "superjson";
-import { type AppRouter } from "~/server/api/root";
+import { type AppRouter } from "@/src/server/api/root";
const getBaseUrl = () => {
if (typeof window !== "undefined") return ""; // browser should use relative url
diff --git a/src/utils/types.ts b/src/utils/types.ts
index 7ccf9b4179..80730ee970 100644
--- a/src/utils/types.ts
+++ b/src/utils/types.ts
@@ -1,6 +1,6 @@
import { type Observation, type Prisma } from "@prisma/client";
import { type inferRouterInputs, type inferRouterOutputs } from "@trpc/server";
-import { type AppRouter } from "../server/api/root";
+import { type AppRouter } from "@/src/server/api/root";
export type NestedObservation = Observation & {
children: NestedObservation[];
diff --git a/tailwind.config.ts b/tailwind.config.ts
index 24301ad18c..78e3a8a271 100644
--- a/tailwind.config.ts
+++ b/tailwind.config.ts
@@ -1,5 +1,5 @@
import { type Config } from "tailwindcss";
-import { fontFamily } from "tailwindcss/defaultTheme";
+// import { fontFamily } from "tailwindcss/defaultTheme";
// Based on: https://ui.shadcn.com/docs/installation#configure-tailwindconfigjs
export default {
diff --git a/tsconfig.json b/tsconfig.json
index 3c53d0197c..f7d6433e1f 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -18,8 +18,7 @@
"noUncheckedIndexedAccess": true,
"baseUrl": ".",
"paths": {
- "@/*": ["./*"],
- "~/*": ["./src/*"]
+ "@/*": ["./*"]
}
},
"include": [
diff --git a/types/next-auth.d.ts b/types/next-auth.d.ts
new file mode 100644
index 0000000000..ab81eba378
--- /dev/null
+++ b/types/next-auth.d.ts
@@ -0,0 +1,40 @@
+import { type DefaultSession, type DefaultUser } from "next-auth";
+import {
+ type User as PrismaUser,
+ type Membership as PrismaMembership,
+ type Project as PrismaProject,
+} from "@prisma/client";
+
+/**
+ * Module augmentation for `next-auth` types. Allows us to add custom properties to the `session`
+ * object and keep type safety.
+ *
+ * @see https://next-auth.js.org/getting-started/typescript#module-augmentation
+ */
+declare module "next-auth" {
+ interface Session extends DefaultSession {
+ user: User | null; // null if user does not exist anymore in the database but has active jwt
+ }
+
+ interface User extends DefaultUser {
+ id: PrismaUser["id"];
+ name?: PrismaUser["name"];
+ email?: PrismaUser["email"];
+ image?: PrismaUser["image"];
+ emailVerified?: PrismaUser["emailVerified"];
+ projects: {
+ id: PrismaProject["id"];
+ name: PrismaProject["name"];
+ role: PrismaMembership["role"];
+ }[];
+ }
+}
+
+declare module "next-auth/jwt" {
+ interface JWT {
+ id?: string;
+ name?: string | null;
+ email?: string | null;
+ image?: string | null;
+ }
+}