From d4687fd545595728a8ce94b5a2a808551dd4df58 Mon Sep 17 00:00:00 2001 From: "s.savinel" Date: Wed, 22 Apr 2026 12:16:07 +0200 Subject: [PATCH] Initial commit: Leexi MCP server (read-only, 6 tools) --- .gitignore | 3 + README.md | 95 ++ package-lock.json | 1858 ++++++++++++++++++++++++++++++++++ package.json | 29 + src/constants.ts | 4 + src/index.ts | 47 + src/schemas/input-schemas.ts | 156 +++ src/services/leexi-client.ts | 74 ++ src/tools/calls.ts | 406 ++++++++ src/tools/meetings.ts | 255 +++++ src/tools/users.ts | 161 +++ src/types.ts | 262 +++++ tsconfig.json | 20 + 13 files changed, 3370 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 package-lock.json create mode 100644 package.json create mode 100644 src/constants.ts create mode 100644 src/index.ts create mode 100644 src/schemas/input-schemas.ts create mode 100644 src/services/leexi-client.ts create mode 100644 src/tools/calls.ts create mode 100644 src/tools/meetings.ts create mode 100644 src/tools/users.ts create mode 100644 src/types.ts create mode 100644 tsconfig.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..deed335 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +dist/ +.env diff --git a/README.md b/README.md new file mode 100644 index 0000000..84780ae --- /dev/null +++ b/README.md @@ -0,0 +1,95 @@ +# leexi-mcp-server + +Read-only MCP server for the [Leexi public API](https://docs.public-api.leexi.ai/reference/public-api). Provides access to meeting notes, transcripts, action items, and call metadata. + +## Tools + +| Tool | Description | +|------|-------------| +| `leexi_list_users` | List workspace users (name, email, UUID, team) | +| `leexi_list_teams` | List workspace teams | +| `leexi_list_calls` | List calls/meetings with filtering (date, owner, source, participant, customer) | +| `leexi_get_call` | Full call details: chapters, tasks, topics, speakers, AI summaries, transcript | +| `leexi_list_meeting_events` | List scheduled meeting events | +| `leexi_get_meeting_event` | Meeting event details with associated call recordings | + +All tools support `response_format` parameter: `'markdown'` (default, human-readable) or `'json'` (structured data). + +## Setup + +### 1. Get API credentials + +Generate API keys at https://app.leexi.ai/settings/api_keys + +### 2. Build + +```bash +cd ~/Workspace/AI/leexi-mcp-server +npm install +npm run build +``` + +### 3. Configure in OpenCode + +Add to `~/.config/opencode/config.json` (or the relevant MCP config): + +```json +{ + "mcpServers": { + "leexi": { + "command": "node", + "args": ["/home/ssavinel/Workspace/AI/leexi-mcp-server/dist/index.js"], + "env": { + "LEEXI_KEY_ID": "", + "LEEXI_KEY_SECRET": "" + } + } + } +} +``` + +Or for Claude Code (`~/.claude/claude_desktop_config.json`): + +```json +{ + "mcpServers": { + "leexi": { + "command": "node", + "args": ["/home/ssavinel/Workspace/AI/leexi-mcp-server/dist/index.js"], + "env": { + "LEEXI_KEY_ID": "", + "LEEXI_KEY_SECRET": "" + } + } + } +} +``` + +### 4. Test with MCP Inspector (optional) + +```bash +LEEXI_KEY_ID= LEEXI_KEY_SECRET= npx @modelcontextprotocol/inspector node dist/index.js +``` + +## Data quality notes + +- **Leexi AI summaries**: Machine-generated and may be imprecise. The `leexi_get_call` markdown output labels these clearly and suggests using chapters/transcript instead. +- **Speaker names**: In room-based calls, Leexi may use the room/device name as a speaker, representing multiple people. The tool flags speakers without email/phone as potentially being room names. +- **Multi-language transcripts**: Calls mixing languages may have transcript artifacts. The raw data is passed through for the consuming LLM to interpret. + +## Architecture + +``` +src/ +├── index.ts # Entry point, McpServer + stdio transport +├── types.ts # TypeScript interfaces for Leexi API responses +├── constants.ts # API base URL, character limit +├── services/ +│ └── leexi-client.ts # Shared HTTP client (Basic auth, error handling) +├── schemas/ +│ └── input-schemas.ts # Zod input validation for all tools +└── tools/ + ├── users.ts # leexi_list_users, leexi_list_teams + ├── calls.ts # leexi_list_calls, leexi_get_call + └── meetings.ts # leexi_list_meeting_events, leexi_get_meeting_event +``` diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..6084eb7 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1858 @@ +{ + "name": "leexi-mcp-server", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "leexi-mcp-server", + "version": "1.0.0", + "dependencies": { + "@modelcontextprotocol/sdk": "^1.6.1", + "axios": "^1.7.9", + "zod": "^3.23.8" + }, + "bin": { + "leexi-mcp-server": "dist/index.js" + }, + "devDependencies": { + "@types/node": "^22.10.0", + "tsx": "^4.19.2", + "typescript": "^5.7.2" + }, + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/aix-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz", + "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "aix" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz", + "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz", + "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz", + "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz", + "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz", + "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz", + "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz", + "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz", + "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz", + "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz", + "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz", + "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==", + "cpu": [ + "loong64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz", + "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz", + "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz", + "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz", + "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz", + "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz", + "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz", + "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz", + "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz", + "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/openharmony-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz", + "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz", + "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz", + "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz", + "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==", + "cpu": [ + "ia32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz", + "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=18" + } + }, + "node_modules/@hono/node-server": { + "version": "1.19.14", + "resolved": "https://registry.npmjs.org/@hono/node-server/-/node-server-1.19.14.tgz", + "integrity": "sha512-GwtvgtXxnWsucXvbQXkRgqksiH2Qed37H9xHZocE5sA3N8O8O8/8FA3uclQXxXVzc9XBZuEOMK7+r02FmSpHtw==", + "license": "MIT", + "engines": { + "node": ">=18.14.1" + }, + "peerDependencies": { + "hono": "^4" + } + }, + "node_modules/@modelcontextprotocol/sdk": { + "version": "1.29.0", + "resolved": "https://registry.npmjs.org/@modelcontextprotocol/sdk/-/sdk-1.29.0.tgz", + "integrity": "sha512-zo37mZA9hJWpULgkRpowewez1y6ML5GsXJPY8FI0tBBCd77HEvza4jDqRKOXgHNn867PVGCyTdzqpz0izu5ZjQ==", + "license": "MIT", + "dependencies": { + "@hono/node-server": "^1.19.9", + "ajv": "^8.17.1", + "ajv-formats": "^3.0.1", + "content-type": "^1.0.5", + "cors": "^2.8.5", + "cross-spawn": "^7.0.5", + "eventsource": "^3.0.2", + "eventsource-parser": "^3.0.0", + "express": "^5.2.1", + "express-rate-limit": "^8.2.1", + "hono": "^4.11.4", + "jose": "^6.1.3", + "json-schema-typed": "^8.0.2", + "pkce-challenge": "^5.0.0", + "raw-body": "^3.0.0", + "zod": "^3.25 || ^4.0", + "zod-to-json-schema": "^3.25.1" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@cfworker/json-schema": "^4.1.1", + "zod": "^3.25 || ^4.0" + }, + "peerDependenciesMeta": { + "@cfworker/json-schema": { + "optional": true + }, + "zod": { + "optional": false + } + } + }, + "node_modules/@types/node": { + "version": "22.19.17", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz", + "integrity": "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } + }, + "node_modules/accepts": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-2.0.0.tgz", + "integrity": "sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==", + "license": "MIT", + "dependencies": { + "mime-types": "^3.0.0", + "negotiator": "^1.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/ajv": { + "version": "8.18.0", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.18.0.tgz", + "integrity": "sha512-PlXPeEWMXMZ7sPYOHqmDyCJzcfNrUr3fGNKtezX14ykXOEIvyK81d+qydx89KY5O71FKMPaQ2vBfBFI5NHR63A==", + "license": "MIT", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "fast-uri": "^3.0.1", + "json-schema-traverse": "^1.0.0", + "require-from-string": "^2.0.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ajv-formats": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-3.0.1.tgz", + "integrity": "sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==", + "license": "MIT", + "dependencies": { + "ajv": "^8.0.0" + }, + "peerDependencies": { + "ajv": "^8.0.0" + }, + "peerDependenciesMeta": { + "ajv": { + "optional": 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==", + "license": "MIT" + }, + "node_modules/axios": { + "version": "1.15.2", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.15.2.tgz", + "integrity": "sha512-wLrXxPtcrPTsNlJmKjkPnNPK2Ihe0hn0wGSaTEiHRPxwjvJwT3hKmXF4dpqxmPO9SoNb2FsYXj/xEo0gHN+D5A==", + "license": "MIT", + "dependencies": { + "follow-redirects": "^1.15.11", + "form-data": "^4.0.5", + "proxy-from-env": "^2.1.0" + } + }, + "node_modules/body-parser": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-2.2.2.tgz", + "integrity": "sha512-oP5VkATKlNwcgvxi0vM0p/D3n2C3EReYVX+DNYs5TjZFn/oQt2j+4sVJtSMr18pdRr8wjTcBl6LoV+FUwzPmNA==", + "license": "MIT", + "dependencies": { + "bytes": "^3.1.2", + "content-type": "^1.0.5", + "debug": "^4.4.3", + "http-errors": "^2.0.0", + "iconv-lite": "^0.7.0", + "on-finished": "^2.4.1", + "qs": "^6.14.1", + "raw-body": "^3.0.1", + "type-is": "^2.0.1" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/bytes": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/call-bind-apply-helpers": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "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==", + "license": "MIT", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/content-disposition": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/content-disposition/-/content-disposition-1.1.0.tgz", + "integrity": "sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/content-type": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz", + "integrity": "sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.7.2.tgz", + "integrity": "sha512-yki5XnKuf750l50uGTllt6kKILY4nQ1eNIQatoXEByZ5dWgnKqbnqmTrBE5B4N7lrMJKQ2ytWMiTO2o0v6Ew/w==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/cookie-signature": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.2.2.tgz", + "integrity": "sha512-D76uU73ulSXrD1UXF4KE2TMxVVwhsnCgfAyTg9k8P6KGZjlXKrOLe4dJQKI3Bxi5wjesZoFXJWElNWBjPZMbhg==", + "license": "MIT", + "engines": { + "node": ">=6.6.0" + } + }, + "node_modules/cors": { + "version": "2.8.6", + "resolved": "https://registry.npmjs.org/cors/-/cors-2.8.6.tgz", + "integrity": "sha512-tJtZBBHA6vjIAaF6EnIaq6laBBP9aq/Y3ouVJjEfoHbRBcHBAHYcMh/w8LDrk2PvIMMq8gmopa5D4V8RmbrxGw==", + "license": "MIT", + "dependencies": { + "object-assign": "^4", + "vary": "^1" + }, + "engines": { + "node": ">= 0.10" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/cross-spawn": { + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/ee-first": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", + "integrity": "sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==", + "license": "MIT" + }, + "node_modules/encodeurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz", + "integrity": "sha512-Q0n9HRi4m6JuGIV1eFlmvJB7ZEVxu93IrMyiMsGC0lrMJMWzRgx6WGquyfQgZVb31vhGgXnfmPNNXmxnOkRBrg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/esbuild": { + "version": "0.27.7", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz", + "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=18" + }, + "optionalDependencies": { + "@esbuild/aix-ppc64": "0.27.7", + "@esbuild/android-arm": "0.27.7", + "@esbuild/android-arm64": "0.27.7", + "@esbuild/android-x64": "0.27.7", + "@esbuild/darwin-arm64": "0.27.7", + "@esbuild/darwin-x64": "0.27.7", + "@esbuild/freebsd-arm64": "0.27.7", + "@esbuild/freebsd-x64": "0.27.7", + "@esbuild/linux-arm": "0.27.7", + "@esbuild/linux-arm64": "0.27.7", + "@esbuild/linux-ia32": "0.27.7", + "@esbuild/linux-loong64": "0.27.7", + "@esbuild/linux-mips64el": "0.27.7", + "@esbuild/linux-ppc64": "0.27.7", + "@esbuild/linux-riscv64": "0.27.7", + "@esbuild/linux-s390x": "0.27.7", + "@esbuild/linux-x64": "0.27.7", + "@esbuild/netbsd-arm64": "0.27.7", + "@esbuild/netbsd-x64": "0.27.7", + "@esbuild/openbsd-arm64": "0.27.7", + "@esbuild/openbsd-x64": "0.27.7", + "@esbuild/openharmony-arm64": "0.27.7", + "@esbuild/sunos-x64": "0.27.7", + "@esbuild/win32-arm64": "0.27.7", + "@esbuild/win32-ia32": "0.27.7", + "@esbuild/win32-x64": "0.27.7" + } + }, + "node_modules/escape-html": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", + "integrity": "sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow==", + "license": "MIT" + }, + "node_modules/etag": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", + "integrity": "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/eventsource": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/eventsource/-/eventsource-3.0.7.tgz", + "integrity": "sha512-CRT1WTyuQoD771GW56XEZFQ/ZoSfWid1alKGDYMmkt2yl8UXrVR4pspqWNEcqKvVIzg6PAltWjxcSSPrboA4iA==", + "license": "MIT", + "dependencies": { + "eventsource-parser": "^3.0.1" + }, + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/eventsource-parser": { + "version": "3.0.8", + "resolved": "https://registry.npmjs.org/eventsource-parser/-/eventsource-parser-3.0.8.tgz", + "integrity": "sha512-70QWGkr4snxr0OXLRWsFLeRBIRPuQOvt4s8QYjmUlmlkyTZkRqS7EDVRZtzU3TiyDbXSzaOeF0XUKy8PchzukQ==", + "license": "MIT", + "engines": { + "node": ">=18.0.0" + } + }, + "node_modules/express": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/express/-/express-5.2.1.tgz", + "integrity": "sha512-hIS4idWWai69NezIdRt2xFVofaF4j+6INOpJlVOLDO8zXGpUVEVzIYk12UUi2JzjEzWL3IOAxcTubgz9Po0yXw==", + "license": "MIT", + "dependencies": { + "accepts": "^2.0.0", + "body-parser": "^2.2.1", + "content-disposition": "^1.0.0", + "content-type": "^1.0.5", + "cookie": "^0.7.1", + "cookie-signature": "^1.2.1", + "debug": "^4.4.0", + "depd": "^2.0.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "finalhandler": "^2.1.0", + "fresh": "^2.0.0", + "http-errors": "^2.0.0", + "merge-descriptors": "^2.0.0", + "mime-types": "^3.0.0", + "on-finished": "^2.4.1", + "once": "^1.4.0", + "parseurl": "^1.3.3", + "proxy-addr": "^2.0.7", + "qs": "^6.14.0", + "range-parser": "^1.2.1", + "router": "^2.2.0", + "send": "^1.1.0", + "serve-static": "^2.2.0", + "statuses": "^2.0.1", + "type-is": "^2.0.1", + "vary": "^1.1.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/express-rate-limit": { + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/express-rate-limit/-/express-rate-limit-8.3.2.tgz", + "integrity": "sha512-77VmFeJkO0/rvimEDuUC5H30oqUC4EyOhyGccfqoLebB0oiEYfM7nwPrsDsBL1gsTpwfzX8SFy2MT3TDyRq+bg==", + "license": "MIT", + "dependencies": { + "ip-address": "10.1.0" + }, + "engines": { + "node": ">= 16" + }, + "funding": { + "url": "https://github.com/sponsors/express-rate-limit" + }, + "peerDependencies": { + "express": ">= 4.11" + } + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", + "license": "MIT" + }, + "node_modules/fast-uri": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/fast-uri/-/fast-uri-3.1.0.tgz", + "integrity": "sha512-iPeeDKJSWf4IEOasVVrknXpaBV0IApz/gp7S2bb7Z4Lljbl2MGJRqInZiUrQwV16cpzw/D3S5j5Julj/gT52AA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/fastify" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fastify" + } + ], + "license": "BSD-3-Clause" + }, + "node_modules/finalhandler": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-2.1.1.tgz", + "integrity": "sha512-S8KoZgRZN+a5rNwqTxlZZePjT/4cnm0ROV70LedRHZ0p8u9fRID0hJUZQpkKLzro8LfmC8sx23bY6tVNxv8pQA==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "on-finished": "^2.4.1", + "parseurl": "^1.3.3", + "statuses": "^2.0.1" + }, + "engines": { + "node": ">= 18.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/follow-redirects": { + "version": "1.16.0", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.16.0.tgz", + "integrity": "sha512-y5rN/uOsadFT/JfYwhxRS5R7Qce+g3zG97+JrtFZlC9klX/W5hD7iiLzScI4nZqUS7DNUdhPgw4xI8W2LuXlUw==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "license": "MIT", + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/form-data": { + "version": "4.0.5", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz", + "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==", + "license": "MIT", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "es-set-tostringtag": "^2.1.0", + "hasown": "^2.0.2", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/form-data/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==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/form-data/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==", + "license": "MIT", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/forwarded": { + "version": "0.2.0", + "resolved": "https://registry.npmjs.org/forwarded/-/forwarded-0.2.0.tgz", + "integrity": "sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/fresh": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/fresh/-/fresh-2.0.0.tgz", + "integrity": "sha512-Rx/WycZ60HOaqLKAi6cHRKKI7zxWbJ31MhntmtwMoaTeF7XFH9hhBp8vITaMidfljRQ6eYWCKkaTK+ykVJHP2A==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/function-bind": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-intrinsic": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/get-tsconfig": { + "version": "4.14.0", + "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.0.tgz", + "integrity": "sha512-yTb+8DXzDREzgvYmh6s9vHsSVCHeC0G3PI5bEXNBHtmshPnO+S5O7qgLEOn0I5QvMy6kpZN8K1NKGyilLb93wA==", + "dev": true, + "license": "MIT", + "dependencies": { + "resolve-pkg-maps": "^1.0.0" + }, + "funding": { + "url": "https://github.com/privatenumber/get-tsconfig?sponsor=1" + } + }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/hasown": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.3.tgz", + "integrity": "sha512-ej4AhfhfL2Q2zpMmLo7U1Uv9+PyhIZpgQLGT1F9miIGmiCJIoCgSmczFdrc97mWT4kVY72KA+WnnhJ5pghSvSg==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/hono": { + "version": "4.12.14", + "resolved": "https://registry.npmjs.org/hono/-/hono-4.12.14.tgz", + "integrity": "sha512-am5zfg3yu6sqn5yjKBNqhnTX7Cv+m00ox+7jbaKkrLMRJ4rAdldd1xPd/JzbBWspqaQv6RSTrgFN95EsfhC+7w==", + "license": "MIT", + "engines": { + "node": ">=16.9.0" + } + }, + "node_modules/http-errors": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.1.tgz", + "integrity": "sha512-4FbRdAX+bSdmo4AUFuS0WNiPz8NgFt+r8ThgNWmlrjQjt1Q7ZR9+zTlce2859x4KSXrwIsaeTqDoKQmtP8pLmQ==", + "license": "MIT", + "dependencies": { + "depd": "~2.0.0", + "inherits": "~2.0.4", + "setprototypeof": "~1.2.0", + "statuses": "~2.0.2", + "toidentifier": "~1.0.1" + }, + "engines": { + "node": ">= 0.8" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/iconv-lite": { + "version": "0.7.2", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.7.2.tgz", + "integrity": "sha512-im9DjEDQ55s9fL4EYzOAv0yMqmMBSZp6G0VvFyTMPKWxiSBHUj9NW/qqLmXUwXrrM7AvqSlTCfvqRb0cM8yYqw==", + "license": "MIT", + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" + }, + "node_modules/ip-address": { + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.1.0.tgz", + "integrity": "sha512-XXADHxXmvT9+CRxhXg56LJovE+bmWnEWB78LB83VZTprKTmaC5QfruXocxzTZ2Kl0DNwKuBdlIhjL8LeY8Sf8Q==", + "license": "MIT", + "engines": { + "node": ">= 12" + } + }, + "node_modules/ipaddr.js": { + "version": "1.9.1", + "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.9.1.tgz", + "integrity": "sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g==", + "license": "MIT", + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/is-promise": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", + "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", + "license": "MIT" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "license": "ISC" + }, + "node_modules/jose": { + "version": "6.2.2", + "resolved": "https://registry.npmjs.org/jose/-/jose-6.2.2.tgz", + "integrity": "sha512-d7kPDd34KO/YnzaDOlikGpOurfF0ByC2sEV4cANCtdqLlTfBlw2p14O/5d/zv40gJPbIQxfES3nSx1/oYNyuZQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/panva" + } + }, + "node_modules/json-schema-traverse": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", + "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", + "license": "MIT" + }, + "node_modules/json-schema-typed": { + "version": "8.0.2", + "resolved": "https://registry.npmjs.org/json-schema-typed/-/json-schema-typed-8.0.2.tgz", + "integrity": "sha512-fQhoXdcvc3V28x7C7BMs4P5+kNlgUURe2jmUT1T//oBRMDrqy1QPelJimwZGo7Hg9VPV3EQV5Bnq4hbFy2vetA==", + "license": "BSD-2-Clause" + }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/media-typer": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/media-typer/-/media-typer-1.1.0.tgz", + "integrity": "sha512-aisnrDP4GNe06UcKFnV5bfMNPBUw4jsLGaWwWfnH3v02GnBuXX2MCVn5RbrWo0j3pczUilYblq7fQ7Nw2t5XKw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/merge-descriptors": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-2.0.0.tgz", + "integrity": "sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==", + "license": "MIT", + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/mime-db": { + "version": "1.54.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.54.0.tgz", + "integrity": "sha512-aU5EJuIN2WDemCcAp2vFBfp/m4EAhWJnUNSSw0ixs7/kXbd6Pg64EmwJkNdFhB8aWt1sH2CTXrLxo/iAGV3oPQ==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-3.0.2.tgz", + "integrity": "sha512-Lbgzdk0h4juoQ9fCKXW4by0UJqj+nOOrI9MJ1sSj4nI8aI2eo1qmvQEie4VD1glsS250n15LsWsYtCugiStS5A==", + "license": "MIT", + "dependencies": { + "mime-db": "^1.54.0" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, + "node_modules/negotiator": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-1.0.0.tgz", + "integrity": "sha512-8Ofs/AUQh8MaEcrlq5xOX0CQ9ypTF5dl78mjlMNfOK08fzpgTHQRQPBxcPlEtIw0yRpws+Zo/3r+5WRby7u3Gg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/object-assign": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/object-inspect": { + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "license": "MIT", + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/parseurl": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", + "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/path-key": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", + "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/path-to-regexp": { + "version": "8.4.2", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-8.4.2.tgz", + "integrity": "sha512-qRcuIdP69NPm4qbACK+aDogI5CBDMi1jKe0ry5rSQJz8JVLsC7jV8XpiJjGRLLol3N+R5ihGYcrPLTno6pAdBA==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/pkce-challenge": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/pkce-challenge/-/pkce-challenge-5.0.1.tgz", + "integrity": "sha512-wQ0b/W4Fr01qtpHlqSqspcj3EhBvimsdh0KlHhH8HRZnMsEa0ea2fTULOXOS9ccQr3om+GcGRk4e+isrZWV8qQ==", + "license": "MIT", + "engines": { + "node": ">=16.20.0" + } + }, + "node_modules/proxy-addr": { + "version": "2.0.7", + "resolved": "https://registry.npmjs.org/proxy-addr/-/proxy-addr-2.0.7.tgz", + "integrity": "sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg==", + "license": "MIT", + "dependencies": { + "forwarded": "0.2.0", + "ipaddr.js": "1.9.1" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/proxy-from-env": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-2.1.0.tgz", + "integrity": "sha512-cJ+oHTW1VAEa8cJslgmUZrc+sjRKgAKl3Zyse6+PV38hZe/V6Z14TbCuXcan9F9ghlz4QrFr2c92TNF82UkYHA==", + "license": "MIT", + "engines": { + "node": ">=10" + } + }, + "node_modules/qs": { + "version": "6.15.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.15.1.tgz", + "integrity": "sha512-6YHEFRL9mfgcAvql/XhwTvf5jKcOiiupt2FiJxHkiX1z4j7WL8J/jRHYLluORvc1XxB5rV20KoeK00gVJamspg==", + "license": "BSD-3-Clause", + "dependencies": { + "side-channel": "^1.1.0" + }, + "engines": { + "node": ">=0.6" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/range-parser": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", + "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/raw-body": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-3.0.2.tgz", + "integrity": "sha512-K5zQjDllxWkf7Z5xJdV0/B0WTNqx6vxG70zJE4N0kBs4LovmEYWJzQGxC9bS9RAKu3bgM40lrd5zoLJ12MQ5BA==", + "license": "MIT", + "dependencies": { + "bytes": "~3.1.2", + "http-errors": "~2.0.1", + "iconv-lite": "~0.7.0", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.10" + } + }, + "node_modules/require-from-string": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", + "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "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, + "license": "MIT", + "funding": { + "url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1" + } + }, + "node_modules/router": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/router/-/router-2.2.0.tgz", + "integrity": "sha512-nLTrUKm2UyiL7rlhapu/Zl45FwNgkZGaCpZbIHajDYgwlJCOzLSk+cIPAnsEqV955GjILJnKbdQC1nVPz+gAYQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.0", + "depd": "^2.0.0", + "is-promise": "^4.0.0", + "parseurl": "^1.3.3", + "path-to-regexp": "^8.0.0" + }, + "engines": { + "node": ">= 18" + } + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", + "license": "MIT" + }, + "node_modules/send": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/send/-/send-1.2.1.tgz", + "integrity": "sha512-1gnZf7DFcoIcajTjTwjwuDjzuz4PPcY2StKPlsGAQ1+YH20IRVrBaXSWmdjowTJ6u8Rc01PoYOGHXfP1mYcZNQ==", + "license": "MIT", + "dependencies": { + "debug": "^4.4.3", + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "etag": "^1.8.1", + "fresh": "^2.0.0", + "http-errors": "^2.0.1", + "mime-types": "^3.0.2", + "ms": "^2.1.3", + "on-finished": "^2.4.1", + "range-parser": "^1.2.1", + "statuses": "^2.0.2" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/serve-static": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-2.2.1.tgz", + "integrity": "sha512-xRXBn0pPqQTVQiC8wyQrKs2MOlX24zQ0POGaj0kultvoOCstBQM5yvOhAVSUwOMjQtTvsPWoNCHfPGwaaQJhTw==", + "license": "MIT", + "dependencies": { + "encodeurl": "^2.0.0", + "escape-html": "^1.0.3", + "parseurl": "^1.3.3", + "send": "^1.2.0" + }, + "engines": { + "node": ">= 18" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/express" + } + }, + "node_modules/setprototypeof": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.2.0.tgz", + "integrity": "sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw==", + "license": "ISC" + }, + "node_modules/shebang-command": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", + "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/shebang-regex": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", + "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/side-channel": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.1.tgz", + "integrity": "sha512-mjn/0bi/oUURjc5Xl7IaWi/OJJJumuoJFQJfDDyO46+hBWsfaVM65TBHq2eoZBhzl9EchxOijpkbRC8SVBQU0w==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.4" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/statuses": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz", + "integrity": "sha512-DvEy55V3DB7uknRo+4iOGT5fP1slR8wQohVdknigZPMpMstaKJQWhwiYBACJE3Ul2pTnATihhBYnRhZQHGBiRw==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/toidentifier": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.1.tgz", + "integrity": "sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA==", + "license": "MIT", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/tsx": { + "version": "4.21.0", + "resolved": "https://registry.npmjs.org/tsx/-/tsx-4.21.0.tgz", + "integrity": "sha512-5C1sg4USs1lfG0GFb2RLXsdpXqBSEhAaA/0kPL01wxzpMqLILNxIxIOKiILz+cdg/pLnOUxFYOR5yhHU666wbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "esbuild": "~0.27.0", + "get-tsconfig": "^4.7.5" + }, + "bin": { + "tsx": "dist/cli.mjs" + }, + "engines": { + "node": ">=18.0.0" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + } + }, + "node_modules/type-is": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/type-is/-/type-is-2.0.1.tgz", + "integrity": "sha512-OZs6gsjF4vMp32qrCbiVSkrFmXtG/AZhY3t0iAMrMBiAZyV9oALtXO8hsrHbMXF9x6L3grlFuwW2oAz7cav+Gw==", + "license": "MIT", + "dependencies": { + "content-type": "^1.0.5", + "media-typer": "^1.1.0", + "mime-types": "^3.0.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=14.17" + } + }, + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "dev": true, + "license": "MIT" + }, + "node_modules/unpipe": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", + "integrity": "sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/vary": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", + "integrity": "sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==", + "license": "MIT", + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" + }, + "node_modules/zod": { + "version": "3.25.76", + "resolved": "https://registry.npmjs.org/zod/-/zod-3.25.76.tgz", + "integrity": "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/colinhacks" + } + }, + "node_modules/zod-to-json-schema": { + "version": "3.25.2", + "resolved": "https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.25.2.tgz", + "integrity": "sha512-O/PgfnpT1xKSDeQYSCfRI5Gy3hPf91mKVDuYLUHZJMiDFptvP41MSnWofm8dnCm0256ZNfZIM7DSzuSMAFnjHA==", + "license": "ISC", + "peerDependencies": { + "zod": "^3.25.28 || ^4" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..26663a7 --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "leexi-mcp-server", + "version": "1.0.0", + "description": "MCP server for Leexi API — read-only access to meeting notes, transcripts, and action items", + "type": "module", + "main": "dist/index.js", + "bin": { + "leexi-mcp-server": "dist/index.js" + }, + "scripts": { + "start": "node dist/index.js", + "dev": "tsx watch src/index.ts", + "build": "tsc", + "clean": "rm -rf dist" + }, + "engines": { + "node": ">=18" + }, + "dependencies": { + "@modelcontextprotocol/sdk": "^1.6.1", + "axios": "^1.7.9", + "zod": "^3.23.8" + }, + "devDependencies": { + "@types/node": "^22.10.0", + "tsx": "^4.19.2", + "typescript": "^5.7.2" + } +} diff --git a/src/constants.ts b/src/constants.ts new file mode 100644 index 0000000..2c4db81 --- /dev/null +++ b/src/constants.ts @@ -0,0 +1,4 @@ +export const API_BASE_URL = "https://public-api.leexi.ai/v1"; +export const CHARACTER_LIMIT = 25_000; +export const DEFAULT_PAGE_SIZE = 20; +export const MAX_PAGE_SIZE = 100; diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..a68db99 --- /dev/null +++ b/src/index.ts @@ -0,0 +1,47 @@ +#!/usr/bin/env node +/** + * Leexi MCP Server + * + * Read-only MCP server for the Leexi public API. + * Provides access to meeting notes, transcripts, action items, and call metadata. + * + * Environment variables: + * LEEXI_KEY_ID — API key ID (from https://app.leexi.ai/settings/api_keys) + * LEEXI_KEY_SECRET — API key secret + */ + +import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; +import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"; +import { registerUserTools } from "./tools/users.js"; +import { registerCallTools } from "./tools/calls.js"; +import { registerMeetingTools } from "./tools/meetings.js"; + +const server = new McpServer({ + name: "leexi-mcp-server", + version: "1.0.0", +}); + +// Register all tools +registerUserTools(server); +registerCallTools(server); +registerMeetingTools(server); + +// Run with stdio transport +async function main(): Promise { + if (!process.env.LEEXI_KEY_ID || !process.env.LEEXI_KEY_SECRET) { + console.error( + "ERROR: LEEXI_KEY_ID and LEEXI_KEY_SECRET environment variables are required.\n" + + "Generate API keys at https://app.leexi.ai/settings/api_keys" + ); + process.exit(1); + } + + const transport = new StdioServerTransport(); + await server.connect(transport); + console.error("leexi-mcp-server running via stdio"); +} + +main().catch((error) => { + console.error("Fatal error:", error); + process.exit(1); +}); diff --git a/src/schemas/input-schemas.ts b/src/schemas/input-schemas.ts new file mode 100644 index 0000000..4dbce71 --- /dev/null +++ b/src/schemas/input-schemas.ts @@ -0,0 +1,156 @@ +import { z } from "zod"; +import { ResponseFormat } from "../types.js"; + +// ─── Shared ────────────────────────────────────────────────────────────────── + +const responseFormatField = z + .nativeEnum(ResponseFormat) + .default(ResponseFormat.MARKDOWN) + .describe("Output format: 'markdown' for human-readable or 'json' for structured data"); + +const pageField = z + .number() + .int() + .min(1) + .default(1) + .describe("Page number (1-based)"); + +const itemsField = z + .number() + .int() + .min(1) + .max(100) + .default(20) + .describe("Results per page (1–100)"); + +// ─── Users ─────────────────────────────────────────────────────────────────── + +export const ListUsersInputSchema = z + .object({ + page: pageField, + items: itemsField, + response_format: responseFormatField, + }) + .strict(); + +export type ListUsersInput = z.infer; + +// ─── Teams ─────────────────────────────────────────────────────────────────── + +export const ListTeamsInputSchema = z + .object({ + page: pageField, + items: itemsField, + response_format: responseFormatField, + }) + .strict(); + +export type ListTeamsInput = z.infer; + +// ─── Calls (list) ──────────────────────────────────────────────────────────── + +export const ListCallsInputSchema = z + .object({ + page: pageField, + items: itemsField, + order: z + .enum([ + "created_at desc", + "created_at asc", + "performed_at desc", + "performed_at asc", + "updated_at desc", + "updated_at asc", + ]) + .default("performed_at desc") + .describe("Sort order"), + date_filter: z + .enum(["created_at", "performed_at", "updated_at"]) + .default("performed_at") + .describe("Which date field the from/to filters apply to"), + from: z + .string() + .optional() + .describe("Start date filter (ISO 8601, e.g. 2024-06-01T00:00:00.000Z)"), + to: z + .string() + .optional() + .describe("End date filter (ISO 8601)"), + source: z + .string() + .optional() + .describe("Integration slug filter (e.g. 'aircall', 'gmeet_bot')"), + owner_uuid: z + .array(z.string()) + .optional() + .describe("Filter by owner user UUID(s)"), + participating_user_uuid: z + .array(z.string()) + .optional() + .describe("Filter by participating user UUID(s)"), + customer_email_address: z + .array(z.string()) + .optional() + .describe("Filter by customer email address(es)"), + customer_phone_number: z + .array(z.string()) + .optional() + .describe("Filter by customer phone number(s)"), + with_simple_transcript: z + .boolean() + .default(false) + .describe("Include paragraph-level transcript in list results"), + response_format: responseFormatField, + }) + .strict(); + +export type ListCallsInput = z.infer; + +// ─── Call (detail) ─────────────────────────────────────────────────────────── + +export const GetCallInputSchema = z + .object({ + uuid: z.string().describe("Call UUID"), + response_format: responseFormatField, + }) + .strict(); + +export type GetCallInput = z.infer; + +// ─── Meeting Events (list) ─────────────────────────────────────────────────── + +export const ListMeetingEventsInputSchema = z + .object({ + page: pageField, + items: itemsField, + order: z + .enum([ + "created_at desc", + "created_at asc", + "start_time desc", + "start_time asc", + "end_time desc", + "end_time asc", + ]) + .default("start_time desc") + .describe("Sort order"), + created_by: z + .enum(["calendar", "manual", "api"]) + .optional() + .describe("Filter by origin type"), + response_format: responseFormatField, + }) + .strict(); + +export type ListMeetingEventsInput = z.infer; + +// ─── Meeting Event (detail) ────────────────────────────────────────────────── + +export const GetMeetingEventInputSchema = z + .object({ + uuid: z.string().describe("Meeting event UUID"), + response_format: responseFormatField, + }) + .strict(); + +export type GetMeetingEventInput = z.infer; diff --git a/src/services/leexi-client.ts b/src/services/leexi-client.ts new file mode 100644 index 0000000..01dd8a0 --- /dev/null +++ b/src/services/leexi-client.ts @@ -0,0 +1,74 @@ +import axios, { AxiosError, AxiosInstance } from "axios"; +import { API_BASE_URL } from "../constants.js"; + +let client: AxiosInstance | null = null; + +export function getClient(): AxiosInstance { + if (client) return client; + + const keyId = process.env.LEEXI_KEY_ID; + const keySecret = process.env.LEEXI_KEY_SECRET; + + if (!keyId || !keySecret) { + throw new Error( + "Missing LEEXI_KEY_ID or LEEXI_KEY_SECRET environment variables. " + + "Generate API keys at https://app.leexi.ai/settings/api_keys" + ); + } + + const encoded = Buffer.from(`${keyId}:${keySecret}`).toString("base64"); + + client = axios.create({ + baseURL: API_BASE_URL, + timeout: 30_000, + headers: { + Authorization: `Basic ${encoded}`, + "Content-Type": "application/json", + Accept: "application/json", + }, + }); + + return client; +} + +export async function apiGet( + endpoint: string, + params?: Record +): Promise { + const http = getClient(); + const response = await http.get(endpoint, { params }); + return response.data; +} + +export function handleApiError(error: unknown): string { + if (error instanceof AxiosError) { + if (error.response) { + const status = error.response.status; + const body = + typeof error.response.data === "object" + ? JSON.stringify(error.response.data) + : String(error.response.data); + + switch (status) { + case 400: + return `Error: Bad request. ${body}`; + case 401: + return "Error: Unauthorized. Check your LEEXI_KEY_ID and LEEXI_KEY_SECRET."; + case 403: + return "Error: Forbidden. Your API key may lack the required permissions."; + case 404: + return "Error: Resource not found. Check the UUID is correct."; + case 429: + return "Error: Rate limit exceeded. Wait before making more requests."; + default: + return `Error: Leexi API returned status ${status}. ${body}`; + } + } else if (error.code === "ECONNABORTED") { + return "Error: Request to Leexi timed out. Try again."; + } else if (error.code === "ECONNREFUSED") { + return "Error: Could not connect to Leexi API. Check your network."; + } + } + + return `Error: ${error instanceof Error ? error.message : String(error)}`; +} diff --git a/src/tools/calls.ts b/src/tools/calls.ts new file mode 100644 index 0000000..288fa21 --- /dev/null +++ b/src/tools/calls.ts @@ -0,0 +1,406 @@ +import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; +import { apiGet, handleApiError } from "../services/leexi-client.js"; +import { + ListCallsInputSchema, + GetCallInputSchema, + type ListCallsInput, + type GetCallInput, +} from "../schemas/input-schemas.js"; +import type { + PaginatedResponse, + LeexiCallListItem, + LeexiCallDetail, + LeexiCallDetailResponse, + LeexiSpeaker, + LeexiChapter, + LeexiTask, + LeexiPrompt, + LeexiCallTopic, + LeexiTranscriptSegment, +} from "../types.js"; +import { ResponseFormat } from "../types.js"; +import { CHARACTER_LIMIT } from "../constants.js"; + +// ─── Formatting helpers ────────────────────────────────────────────────────── + +function formatDuration(seconds: number): string { + const m = Math.floor(seconds / 60); + const s = Math.round(seconds % 60); + return m > 0 ? `${m}m ${s}s` : `${s}s`; +} + +function formatTimestamp(seconds: number): string { + const m = Math.floor(seconds / 60); + const s = Math.round(seconds % 60); + return `${String(m).padStart(2, "0")}:${String(s).padStart(2, "0")}`; +} + +function flagSpeakerQuality(speaker: LeexiSpeaker): string | null { + // Flag speakers that look like room/device names rather than real people + if (!speaker.is_user && !speaker.email_address && !speaker.phone_number) { + return "possible room/device name — may represent multiple people"; + } + return null; +} + +function formatCallListItemMarkdown(call: LeexiCallListItem): string { + const lines: string[] = [ + `### ${call.title || "(untitled)"}`, + `- **Date**: ${call.performed_at}`, + `- **Duration**: ${formatDuration(call.duration)}`, + `- **Owner**: ${call.owner.name} (${call.owner.email})`, + `- **Direction**: ${call.direction} | **Source**: ${call.source}`, + `- **UUID**: \`${call.uuid}\``, + ]; + + if (call.participating_users.length > 1) { + const others = call.participating_users + .filter((u) => u.uuid !== call.owner.uuid) + .map((u) => `${u.name} (${u.email})`) + .join(", "); + if (others) lines.push(`- **Other participants**: ${others}`); + } + + if (call.prompts.length > 0) { + const summary = call.prompts.find((p) => p.category === "summary"); + if (summary && summary.completions.length > 0) { + const text = summary.completions[0]; + lines.push(`- **Leexi Summary**: ${text.length > 200 ? text.slice(0, 200) + "..." : text}`); + } + } + + if (call.tasks.length > 0) { + lines.push(`- **Tasks**: ${call.tasks.length} action item(s)`); + } + + return lines.join("\n"); +} + +function formatCallDetailMarkdown(call: LeexiCallDetail): string { + const sections: string[] = []; + + // Header + sections.push( + `# ${call.title || "(untitled)"}`, + "", + `| Field | Value |`, + `|-------|-------|`, + `| Date | ${call.performed_at} |`, + `| Duration | ${formatDuration(call.duration)} |`, + `| Owner | ${call.owner.name} (${call.owner.email}) |`, + `| Direction | ${call.direction} |`, + `| Source | ${call.source} |`, + `| Locale | ${call.locale} |`, + `| UUID | \`${call.uuid}\` |`, + `| Leexi URL | ${call.leexi_url} |`, + "" + ); + + if (call.description) { + sections.push(`**Description**: ${call.description}`, ""); + } + + // Chapters + if (call.chapters.length > 0) { + sections.push("## Chapters", ""); + for (const ch of sortChapters(call.chapters)) { + sections.push(`### ${ch.title} (${formatTimestamp(ch.start_time)})`, "", ch.text, ""); + } + } + + // Tasks + if (call.tasks.length > 0) { + sections.push("## Action Items", ""); + for (const task of call.tasks) { + sections.push(formatTaskMarkdown(task)); + } + sections.push(""); + } + + // Topics + if (call.call_topics.length > 0) { + sections.push("## Topics Discussed", ""); + for (const topic of call.call_topics) { + sections.push(formatTopicMarkdown(topic, call.speakers)); + } + sections.push(""); + } + + // Speakers + sections.push("## Speakers", ""); + for (const speaker of call.speakers) { + sections.push(formatSpeakerMarkdown(speaker)); + } + sections.push(""); + + // Leexi AI Summaries (labeled with provenance) + if (call.prompts.length > 0) { + sections.push( + "## Leexi AI Summaries", + "", + "_Note: These summaries are generated by Leexi's AI and may be imprecise. " + + "Prefer the chapters and transcript for accurate information._", + "" + ); + for (const prompt of call.prompts) { + sections.push(formatPromptMarkdown(prompt)); + } + sections.push(""); + } + + // Transcript + if (call.transcript && call.transcript.length > 0) { + sections.push("## Transcript", ""); + const transcriptText = formatTranscriptMarkdown(call.transcript, call.speakers); + sections.push(transcriptText); + } else if (call.simple_transcript) { + sections.push("## Transcript", "", call.simple_transcript); + } + + return sections.join("\n"); +} + +function sortChapters(chapters: LeexiChapter[]): LeexiChapter[] { + return [...chapters].sort((a, b) => a.index - b.index); +} + +function formatTaskMarkdown(task: LeexiTask): string { + const checkbox = task.done ? "[x]" : "[ ]"; + const assignee = task.speaker ? ` (${task.speaker.name})` : ""; + return `- ${checkbox} **${task.subject}**${assignee}${task.description ? `: ${task.description}` : ""}`; +} + +function formatTopicMarkdown( + topic: LeexiCallTopic, + speakers: LeexiSpeaker[] +): string { + const speaker = topic.speaker + ? topic.speaker.name + : speakers[0]?.name ?? "Unknown"; + return `- **${topic.topic_name}** — "${topic.keyphrase}" (${formatTimestamp(topic.start_time)}–${formatTimestamp(topic.end_time)}, ${speaker})`; +} + +function formatSpeakerMarkdown(speaker: LeexiSpeaker): string { + const lines: string[] = [ + `### ${speaker.name}${speaker.is_user ? " (internal)" : " (external)"}`, + `- Talk time: ${formatDuration(speaker.duration)} | Longest monologue: ${formatDuration(speaker.longest_monologue)}`, + ]; + if (speaker.email_address) lines.push(`- Email: ${speaker.email_address}`); + if (speaker.phone_number) lines.push(`- Phone: ${speaker.phone_number}`); + + const flag = flagSpeakerQuality(speaker); + if (flag) { + lines.push(`- **Data quality note**: ${flag}`); + } + + return lines.join("\n"); +} + +function formatPromptMarkdown(prompt: LeexiPrompt): string { + const lines = [`### ${prompt.title} (${prompt.category})`]; + for (const completion of prompt.completions) { + lines.push("", completion); + } + return lines.join("\n"); +} + +function formatTranscriptMarkdown( + segments: LeexiTranscriptSegment[], + speakers: LeexiSpeaker[] +): string { + const lines: string[] = []; + for (const seg of segments) { + const speakerName = + speakers[seg.speaker_index]?.name ?? `Speaker ${seg.speaker_index}`; + const text = seg.items.map((w) => w.content).join(" "); + lines.push( + `**${speakerName}** (${formatTimestamp(seg.start_time)}–${formatTimestamp(seg.end_time)}):`, + text, + "" + ); + } + return lines.join("\n"); +} + +// ─── Registration ──────────────────────────────────────────────────────────── + +export function registerCallTools(server: McpServer): void { + // ── leexi_list_calls ─────────────────────────────────────────────────── + server.registerTool( + "leexi_list_calls", + { + title: "List Leexi Calls & Meetings", + description: `List calls and meetings in the Leexi workspace with filtering options. + +Supports filtering by date range, owner, source integration, participant, customer email, and customer phone number. Returns call metadata, speakers, chapters summary, AI summaries, and task count. Use leexi_get_call with a UUID for full transcript and details. + +Args: + - page (number): Page number, 1-based (default: 1) + - items (number): Results per page, 1–100 (default: 20) + - order (string): Sort order (default: 'performed_at desc') + - date_filter (string): Which date field from/to apply to (default: 'performed_at') + - from (string, optional): Start date (ISO 8601) + - to (string, optional): End date (ISO 8601) + - source (string, optional): Integration slug (e.g. 'aircall', 'gmeet_bot') + - owner_uuid (string[], optional): Filter by owner UUID(s) + - participating_user_uuid (string[], optional): Filter by participant UUID(s) + - customer_email_address (string[], optional): Filter by customer email(s) + - customer_phone_number (string[], optional): Filter by customer phone(s) + - with_simple_transcript (boolean): Include paragraph-level transcript (default: false) + - response_format ('markdown' | 'json'): Output format (default: 'markdown') + +Returns paginated list of calls with metadata, speakers, chapters, AI summaries, and tasks.`, + inputSchema: ListCallsInputSchema, + annotations: { + readOnlyHint: true, + destructiveHint: false, + idempotentHint: true, + openWorldHint: true, + }, + }, + async (params: ListCallsInput) => { + try { + const queryParams: Record = { + page: params.page, + items: params.items, + order: params.order, + date_filter: params.date_filter, + with_simple_transcript: params.with_simple_transcript, + }; + if (params.from) queryParams.from = params.from; + if (params.to) queryParams.to = params.to; + if (params.source) queryParams.source = params.source; + if (params.owner_uuid) queryParams["owner_uuid[]"] = params.owner_uuid; + if (params.participating_user_uuid) + queryParams["participating_user_uuid[]"] = params.participating_user_uuid; + if (params.customer_email_address) + queryParams["customer_email_address[]"] = params.customer_email_address; + if (params.customer_phone_number) + queryParams["customer_phone_number[]"] = params.customer_phone_number; + + const data = await apiGet>( + "/calls", + queryParams + ); + + const output = { + calls: data.data, + pagination: data.pagination, + }; + + let text: string; + if (params.response_format === ResponseFormat.MARKDOWN) { + const { pagination } = data; + const lines = [ + `# Leexi Calls (page ${pagination.page}, ${data.data.length}/${pagination.count})`, + "", + ]; + if (data.data.length === 0) { + lines.push("_No calls found matching the filters._"); + } + for (const call of data.data) { + lines.push(formatCallListItemMarkdown(call), ""); + } + if (pagination.page * pagination.items < pagination.count) { + lines.push( + `_More results available — request page ${pagination.page + 1}_` + ); + } + text = lines.join("\n"); + } else { + text = JSON.stringify(output, null, 2); + } + + return { + content: [{ type: "text" as const, text }], + structuredContent: output, + }; + } catch (error) { + return { + content: [{ type: "text" as const, text: handleApiError(error) }], + }; + } + } + ); + + // ── leexi_get_call ──────────────────────────────────────────────────── + server.registerTool( + "leexi_get_call", + { + title: "Get Leexi Call Details", + description: `Get full details of a single call or meeting by UUID. Returns chapters, action items, topics, speakers, Leexi AI summaries, and the full word-level transcript. + +Data quality notes: +- Leexi AI summaries are machine-generated and may be imprecise — prefer chapters and transcript. +- External speakers without email/phone may be room or device names representing multiple people. +- Multi-language calls may have transcript artifacts. + +The markdown output prioritizes: Chapters > Action Items > Topics > Speakers > AI Summaries > Transcript. + +Args: + - uuid (string): Call UUID (get from leexi_list_calls) + - response_format ('markdown' | 'json'): Output format (default: 'markdown') + +Returns full call details including transcript.`, + inputSchema: GetCallInputSchema, + annotations: { + readOnlyHint: true, + destructiveHint: false, + idempotentHint: true, + openWorldHint: true, + }, + }, + async (params: GetCallInput) => { + try { + const data = await apiGet( + `/calls/${params.uuid}` + ); + + const call = data.data; + + let text: string; + if (params.response_format === ResponseFormat.MARKDOWN) { + text = formatCallDetailMarkdown(call); + + // Truncate if too long + if (text.length > CHARACTER_LIMIT) { + // Try to keep everything except transcript + const withoutTranscript = text.split("## Transcript")[0]; + if (withoutTranscript && withoutTranscript.length < CHARACTER_LIMIT) { + text = + withoutTranscript + + `## Transcript\n\n_Transcript truncated (${text.length} chars exceeded ${CHARACTER_LIMIT} limit). ` + + `Request with response_format='json' for the full transcript data._`; + } else { + text = + text.slice(0, CHARACTER_LIMIT) + + `\n\n_Response truncated at ${CHARACTER_LIMIT} characters. ` + + `Request with response_format='json' for complete data._`; + } + } + } else { + text = JSON.stringify(call, null, 2); + if (text.length > CHARACTER_LIMIT) { + // Return without transcript to stay within limit + const { transcript, ...rest } = call; + const reduced = { + ...rest, + transcript_truncated: true, + transcript_segment_count: transcript?.length ?? 0, + note: `Full transcript (${transcript?.length ?? 0} segments) omitted to stay within character limit. Fetch the recording or use the Leexi UI for the full transcript.`, + }; + text = JSON.stringify(reduced, null, 2); + } + } + + return { + content: [{ type: "text" as const, text }], + }; + } catch (error) { + return { + content: [{ type: "text" as const, text: handleApiError(error) }], + }; + } + } + ); +} diff --git a/src/tools/meetings.ts b/src/tools/meetings.ts new file mode 100644 index 0000000..e339399 --- /dev/null +++ b/src/tools/meetings.ts @@ -0,0 +1,255 @@ +import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; +import { apiGet, handleApiError } from "../services/leexi-client.js"; +import { + ListMeetingEventsInputSchema, + GetMeetingEventInputSchema, + type ListMeetingEventsInput, + type GetMeetingEventInput, +} from "../schemas/input-schemas.js"; +import type { + PaginatedResponse, + LeexiMeetingEventListItem, + LeexiMeetingEventDetailResponse, + LeexiMeetingEventDetail, +} from "../types.js"; +import { ResponseFormat } from "../types.js"; + +// ─── Formatting helpers ────────────────────────────────────────────────────── + +function formatMeetingEventListMarkdown(event: LeexiMeetingEventListItem): string { + const lines: string[] = [ + `### ${event.title || "(untitled)"}`, + `- **When**: ${event.start_time} → ${event.end_time}`, + `- **Provider**: ${event.meeting_provider ?? "unknown"}`, + `- **UUID**: \`${event.uuid}\``, + ]; + + if (event.organizer) { + lines.push(`- **Organizer**: ${event.organizer.email}`); + } + if (event.attendees.length > 0) { + lines.push( + `- **Attendees**: ${event.attendees.map((a) => a.email).join(", ")}` + ); + } + + const flags: string[] = []; + if (event.to_record) flags.push("to_record"); + if (event.bot_scheduled) flags.push("bot_scheduled"); + if (event.bot_running) flags.push("bot_running"); + if (event.internal) flags.push("internal"); + if (flags.length > 0) lines.push(`- **Flags**: ${flags.join(", ")}`); + + if (event.bot_runs.length > 0) { + lines.push(`- **Bot runs**: ${event.bot_runs.length}`); + } + + lines.push(`- **Origin**: ${event.origin} | **Active**: ${event.active}`); + + return lines.join("\n"); +} + +function formatMeetingEventDetailMarkdown(event: LeexiMeetingEventDetail): string { + const sections: string[] = []; + + sections.push( + `# ${event.title || "(untitled)"}`, + "", + `| Field | Value |`, + `|-------|-------|`, + `| When | ${event.start_time} → ${event.end_time} |`, + `| Provider | ${event.meeting_provider ?? "unknown"} |`, + `| Meeting URL | ${event.meeting_url} |`, + `| UUID | \`${event.uuid}\` |`, + `| Origin | ${event.origin} |`, + `| Internal | ${event.internal} |`, + `| Direction | ${event.direction ?? "—"} |`, + `| To record | ${event.to_record} |`, + `| Bot scheduled | ${event.bot_scheduled} |`, + `| Bot running | ${event.bot_running} |`, + `| Active | ${event.active} |`, + "" + ); + + if (event.description) { + sections.push(`**Description**: ${event.description}`, ""); + } + + if (event.organizer) { + sections.push(`**Organizer**: ${event.organizer.email}`, ""); + } + + if (event.attendees.length > 0) { + sections.push( + "## Attendees", + "", + ...event.attendees.map((a) => `- ${a.email}`), + "" + ); + } + + if (event.bot_runs.length > 0) { + sections.push("## Bot Runs", ""); + for (const run of event.bot_runs) { + sections.push( + `- **${run.uuid}**: ${run.start_time} → ${run.end_time}` + + (run.recording_start_time + ? ` (recording started ${run.recording_start_time})` + : "") + + (run.end_reason ? ` — ended: ${run.end_reason}` : "") + ); + } + sections.push(""); + } + + if (event.integration_user) { + const iu = event.integration_user; + sections.push( + "## Integration", + "", + `- **User**: ${iu.name} (${iu.email})`, + `- **Integration**: ${iu.integration.name} (${iu.integration.slug})`, + "" + ); + + if (iu.calls.length > 0) { + sections.push("### Associated Calls", ""); + for (const call of iu.calls) { + sections.push( + `- \`${call.uuid}\` — ${call.performed_at} (${call.source}, ${Math.round(call.duration)}s)` + + (call.leexi_url ? ` [View](${call.leexi_url})` : "") + ); + } + sections.push(""); + } + } + + return sections.join("\n"); +} + +// ─── Registration ──────────────────────────────────────────────────────────── + +export function registerMeetingTools(server: McpServer): void { + // ── leexi_list_meeting_events ────────────────────────────────────────── + server.registerTool( + "leexi_list_meeting_events", + { + title: "List Leexi Meeting Events", + description: `List scheduled meeting events in the Leexi workspace. Meeting events represent calendar entries that may or may not have been recorded. Use leexi_get_meeting_event for details and associated call recordings. + +Args: + - page (number): Page number, 1-based (default: 1) + - items (number): Results per page, 1–100 (default: 20) + - order (string): Sort order (default: 'start_time desc') + - created_by (string, optional): Filter by origin — 'calendar', 'manual', or 'api' + - response_format ('markdown' | 'json'): Output format (default: 'markdown') + +Returns paginated list of meeting events.`, + inputSchema: ListMeetingEventsInputSchema, + annotations: { + readOnlyHint: true, + destructiveHint: false, + idempotentHint: true, + openWorldHint: true, + }, + }, + async (params: ListMeetingEventsInput) => { + try { + const queryParams: Record = { + page: params.page, + items: params.items, + order: params.order, + }; + if (params.created_by) queryParams.created_by = params.created_by; + + const data = await apiGet>( + "/meeting_events", + queryParams + ); + + const output = { + meeting_events: data.data, + pagination: data.pagination, + }; + + let text: string; + if (params.response_format === ResponseFormat.MARKDOWN) { + const { pagination } = data; + const lines = [ + `# Leexi Meeting Events (page ${pagination.page}, ${data.data.length}/${pagination.count})`, + "", + ]; + if (data.data.length === 0) { + lines.push("_No meeting events found._"); + } + for (const event of data.data) { + lines.push(formatMeetingEventListMarkdown(event), ""); + } + if (pagination.page * pagination.items < pagination.count) { + lines.push( + `_More results available — request page ${pagination.page + 1}_` + ); + } + text = lines.join("\n"); + } else { + text = JSON.stringify(output, null, 2); + } + + return { + content: [{ type: "text" as const, text }], + structuredContent: output, + }; + } catch (error) { + return { + content: [{ type: "text" as const, text: handleApiError(error) }], + }; + } + } + ); + + // ── leexi_get_meeting_event ─────────────────────────────────────────── + server.registerTool( + "leexi_get_meeting_event", + { + title: "Get Leexi Meeting Event Details", + description: `Get full details of a single meeting event by UUID. Returns meeting metadata, attendees, bot run history, integration info, and links to associated call recordings. Use the call UUIDs from the response with leexi_get_call for transcripts and notes. + +Args: + - uuid (string): Meeting event UUID (get from leexi_list_meeting_events) + - response_format ('markdown' | 'json'): Output format (default: 'markdown') + +Returns meeting event details with associated call links.`, + inputSchema: GetMeetingEventInputSchema, + annotations: { + readOnlyHint: true, + destructiveHint: false, + idempotentHint: true, + openWorldHint: true, + }, + }, + async (params: GetMeetingEventInput) => { + try { + const data = await apiGet( + `/meeting_events/${params.uuid}` + ); + + const event = data.data; + + let text: string; + if (params.response_format === ResponseFormat.MARKDOWN) { + text = formatMeetingEventDetailMarkdown(event); + } else { + text = JSON.stringify(event, null, 2); + } + + return { + content: [{ type: "text" as const, text }], + }; + } catch (error) { + return { + content: [{ type: "text" as const, text: handleApiError(error) }], + }; + } + } + ); +} diff --git a/src/tools/users.ts b/src/tools/users.ts new file mode 100644 index 0000000..025a2e7 --- /dev/null +++ b/src/tools/users.ts @@ -0,0 +1,161 @@ +import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js"; +import { apiGet, handleApiError } from "../services/leexi-client.js"; +import { + ListUsersInputSchema, + ListTeamsInputSchema, + type ListUsersInput, + type ListTeamsInput, +} from "../schemas/input-schemas.js"; +import type { + PaginatedResponse, + LeexiUser, + LeexiTeam, +} from "../types.js"; +import { ResponseFormat } from "../types.js"; + +// ─── Formatting helpers ────────────────────────────────────────────────────── + +function formatUserMarkdown(user: LeexiUser): string { + const lines: string[] = [ + `### ${user.name}`, + `- **Email**: ${user.email}`, + `- **UUID**: \`${user.uuid}\``, + ]; + if (user.team) { + lines.push(`- **Team**: ${user.team.name}${user.team.active ? "" : " (inactive)"}`); + } + return lines.join("\n"); +} + +function formatTeamMarkdown(team: LeexiTeam): string { + return `### ${team.name}\n- **UUID**: \`${team.uuid}\`\n- **Active**: ${team.active}`; +} + +// ─── Registration ──────────────────────────────────────────────────────────── + +export function registerUserTools(server: McpServer): void { + // ── leexi_list_users ──────────────────────────────────────────────────── + server.registerTool( + "leexi_list_users", + { + title: "List Leexi Users", + description: `List all users in the Leexi workspace. Returns user name, email, UUID, and team assignment. Use UUIDs from this endpoint as owner_uuid or participating_user_uuid filters in leexi_list_calls. + +Args: + - page (number): Page number, 1-based (default: 1) + - items (number): Results per page, 1–100 (default: 20) + - response_format ('markdown' | 'json'): Output format (default: 'markdown') + +Returns paginated list of users with name, email, UUID, and team info.`, + inputSchema: ListUsersInputSchema, + annotations: { + readOnlyHint: true, + destructiveHint: false, + idempotentHint: true, + openWorldHint: true, + }, + }, + async (params: ListUsersInput) => { + try { + const data = await apiGet>("/users", { + page: params.page, + items: params.items, + }); + + const output = { + users: data.data, + pagination: data.pagination, + }; + + let text: string; + if (params.response_format === ResponseFormat.MARKDOWN) { + const { pagination } = data; + const lines = [ + `# Leexi Users (page ${pagination.page}, ${data.data.length}/${pagination.count})`, + "", + ]; + for (const user of data.data) { + lines.push(formatUserMarkdown(user), ""); + } + if (pagination.page * pagination.items < pagination.count) { + lines.push( + `_More results available — request page ${pagination.page + 1}_` + ); + } + text = lines.join("\n"); + } else { + text = JSON.stringify(output, null, 2); + } + + return { + content: [{ type: "text" as const, text }], + structuredContent: output, + }; + } catch (error) { + return { + content: [{ type: "text" as const, text: handleApiError(error) }], + }; + } + } + ); + + // ── leexi_list_teams ─────────────────────────────────────────────────── + server.registerTool( + "leexi_list_teams", + { + title: "List Leexi Teams", + description: `List all teams in the Leexi workspace. Returns team name, UUID, and active status. + +Args: + - page (number): Page number, 1-based (default: 1) + - items (number): Results per page, 1–100 (default: 20) + - response_format ('markdown' | 'json'): Output format (default: 'markdown') + +Returns paginated list of teams.`, + inputSchema: ListTeamsInputSchema, + annotations: { + readOnlyHint: true, + destructiveHint: false, + idempotentHint: true, + openWorldHint: true, + }, + }, + async (params: ListTeamsInput) => { + try { + const data = await apiGet>("/teams", { + page: params.page, + items: params.items, + }); + + const output = { + teams: data.data, + pagination: data.pagination, + }; + + let text: string; + if (params.response_format === ResponseFormat.MARKDOWN) { + const { pagination } = data; + const lines = [ + `# Leexi Teams (page ${pagination.page}, ${data.data.length}/${pagination.count})`, + "", + ]; + for (const team of data.data) { + lines.push(formatTeamMarkdown(team), ""); + } + text = lines.join("\n"); + } else { + text = JSON.stringify(output, null, 2); + } + + return { + content: [{ type: "text" as const, text }], + structuredContent: output, + }; + } catch (error) { + return { + content: [{ type: "text" as const, text: handleApiError(error) }], + }; + } + } + ); +} diff --git a/src/types.ts b/src/types.ts new file mode 100644 index 0000000..df1d576 --- /dev/null +++ b/src/types.ts @@ -0,0 +1,262 @@ +// ─── Pagination ────────────────────────────────────────────────────────────── + +export interface LeexiPagination { + page: number; + items: number; + count: number; +} + +export interface PaginatedResponse { + data: T[]; + pagination: LeexiPagination; +} + +// ─── Users & Teams ─────────────────────────────────────────────────────────── + +export interface LeexiTeam { + uuid: string; + name: string; + active: boolean; +} + +export interface LeexiUser { + uuid: string; + name: string; + email: string; + created_at: string; + updated_at: string; + team: LeexiTeam | null; +} + +// ─── Speakers ──────────────────────────────────────────────────────────────── + +export interface LeexiSpeaker { + uuid: string; + name: string; + index: number; + is_user: boolean; + email_address: string | null; + phone_number: string | null; + duration: number; + longest_monologue: number; +} + +// ─── Chapters ──────────────────────────────────────────────────────────────── + +export interface LeexiChapter { + uuid: string; + index: number; + title: string; + text: string; + start_time: number; +} + +// ─── Prompts (AI-generated summaries) ──────────────────────────────────────── + +export interface LeexiPrompt { + uuid: string; + category: string; + title: string; + completions: string[]; +} + +// ─── Tasks ─────────────────────────────────────────────────────────────────── + +export interface LeexiTaskEditor { + uuid: string; + name: string; + email: string; + active: boolean; +} + +export interface LeexiTask { + uuid: string; + subject: string; + description: string; + done: boolean; + active: boolean; + created_at: string; + updated_at: string; + last_editor: LeexiTaskEditor | null; + speaker: LeexiSpeaker | null; +} + +// ─── Call Topics ───────────────────────────────────────────────────────────── + +export interface LeexiCallTopic { + uuid: string; + topic_name: string; + keyphrase: string; + start_time: number; + end_time: number; + created_at: string; + updated_at: string; + speaker: Pick | null; +} + +// ─── Transcript ────────────────────────────────────────────────────────────── + +export interface LeexiTranscriptWord { + content: string; + start_time: number; + end_time: number; +} + +export interface LeexiTranscriptSegment { + speaker_index: number; + start_time: number; + end_time: number; + items: LeexiTranscriptWord[]; +} + +// ─── Conversation Type ─────────────────────────────────────────────────────── + +export interface LeexiConversationType { + uuid: string; + slug: string; + active: boolean; +} + +// ─── Owner / Participant ───────────────────────────────────────────────────── + +export interface LeexiUserRef { + uuid: string; + name: string; + email: string; +} + +// ─── Call (list response) ──────────────────────────────────────────────────── + +export interface LeexiCallListItem { + uuid: string; + title: string; + description: string; + source: string; + source_id: string; + direction: string; + duration: number; + is_video: boolean; + locale: string; + visible: boolean; + created_at: string; + updated_at: string; + performed_at: string; + leexi_url: string; + recording_url: string | null; + transcript_url: string | null; + audio_archived_at: string | null; + video_archived_at: string | null; + transcript_archived_at: string | null; + completions_archived_at: string | null; + owner: LeexiUserRef; + participating_users: LeexiUserRef[]; + speakers: LeexiSpeaker[]; + chapters: LeexiChapter[]; + prompts: LeexiPrompt[]; + tasks: LeexiTask[]; + conversation_type: LeexiConversationType | null; + customer_email_addresses: string[]; + customer_phone_numbers: string[]; + deal: unknown; + feedbacks: unknown[]; + scorecards: unknown[]; + meeting_event: unknown; + simple_transcript?: string; +} + +// ─── Call (detail response — extends list item) ────────────────────────────── + +export interface LeexiCallDetail extends LeexiCallListItem { + call_topics: LeexiCallTopic[]; + transcript: LeexiTranscriptSegment[]; +} + +export interface LeexiCallDetailResponse { + data: LeexiCallDetail; +} + +// ─── Meeting Events ────────────────────────────────────────────────────────── + +export interface LeexiBotRun { + uuid: string; + start_time: string; + end_time: string; + recording_start_time: string | null; + end_reason: string | null; +} + +export interface LeexiMeetingEventListItem { + uuid: string; + title: string; + organizer: { email: string } | null; + attendees: { email: string }[]; + meeting_url: string; + meeting_provider: string | null; + internal: boolean; + direction: string | null; + start_time: string; + end_time: string; + description: string | null; + owned: boolean; + to_record: boolean; + bot_scheduled: boolean; + bot_running: boolean; + bot_runs: LeexiBotRun[]; + origin: string; + created_at: string; + updated_at: string; + recording_notified: boolean; + active: boolean; +} + +export interface LeexiMeetingEventCallRef { + uuid: string; + source: string; + source_id: string; + created_at: string; + updated_at: string; + performed_at: string; + locale: string; + duration: number; + direction: string; + is_video: boolean; + visible: boolean; + recording_url: string | null; + transcript_url: string | null; + leexi_url: string; +} + +export interface LeexiIntegrationUser { + uuid: string; + name: string; + email: string; + active: boolean; + user: LeexiUserRef; + integration: { + active: boolean; + category: string; + logo: string; + name: string; + slug: string; + url: string; + uuid: string; + }; + calls: LeexiMeetingEventCallRef[]; +} + +export interface LeexiMeetingEventDetail extends LeexiMeetingEventListItem { + integration_user: LeexiIntegrationUser | null; +} + +export interface LeexiMeetingEventDetailResponse { + success: boolean; + data: LeexiMeetingEventDetail; + message: string; +} + +// ─── Response format enum ──────────────────────────────────────────────────── + +export enum ResponseFormat { + MARKDOWN = "markdown", + JSON = "json", +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..654b018 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "ES2022", + "module": "Node16", + "moduleResolution": "Node16", + "lib": ["ES2022"], + "outDir": "./dist", + "rootDir": "./src", + "strict": true, + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + "declaration": true, + "declarationMap": true, + "sourceMap": true, + "allowSyntheticDefaultImports": true + }, + "include": ["src/**/*"], + "exclude": ["node_modules", "dist"] +}