Security fix plus team access. Before this change any valid API key, including access keys the delivery system hands to BUYERS, authenticated as the merchant on the whole management API, and GET /v1/api-keys listed every organization's keys. Now only platform keys (issued at sign-up or via POST /v1/api-keys/platform, marked with the platform product id) can call the API, and each request needs its resource scope (<resource>:read|write, write implies read; platform:admin or * for full access), answered with 403 and details.requiredScope otherwise. Keys cannot mint broader keys, customer keys cannot carry management scopes, key listing is tenant-scoped and keys can be revoked by id. Dashboard sessions get team roles (owner, admin, developer, support, viewer) mapped to scopes. /v1/team manages members and email invitations (packages/invitations, token hash only, 7-day expiry); /v1/auth/invitations/accept joins the org and creates the account. The last owner is protected and only owners grant owner. Dashboard: Team page, invite accept page, and an API keys page that creates restricted keys and shows the secret once. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
67 lines
2.5 KiB
JSON
67 lines
2.5 KiB
JSON
{
|
|
"extends": "../../tsconfig.base.json",
|
|
"compilerOptions": {
|
|
"rootDir": "./src",
|
|
"outDir": "./dist",
|
|
"composite": true,
|
|
"types": ["node"]
|
|
},
|
|
"references": [
|
|
{ "path": "../../packages/onchain-billing" },
|
|
{ "path": "../../packages/common" },
|
|
{ "path": "../../packages/pricing" },
|
|
{ "path": "../../packages/exports" },
|
|
{ "path": "../../packages/invitations" },
|
|
{ "path": "../../packages/solana" },
|
|
{ "path": "../../packages/zcash" },
|
|
{ "path": "../../packages/chains" },
|
|
{ "path": "../../packages/hyperliquid" },
|
|
{ "path": "../../packages/operator" },
|
|
{ "path": "../../packages/auth" },
|
|
{ "path": "../../packages/database" },
|
|
{ "path": "../../packages/persistence" },
|
|
{ "path": "../../packages/payments" },
|
|
{ "path": "../../packages/entitlements" },
|
|
{ "path": "../../packages/api-keys" },
|
|
{ "path": "../../packages/marketplace-core" },
|
|
{ "path": "../../packages/license-keys" },
|
|
{ "path": "../../packages/file-delivery" },
|
|
{ "path": "../../packages/product-catalog" },
|
|
{ "path": "../../packages/github" },
|
|
{ "path": "../../packages/discord" },
|
|
{ "path": "../../packages/saas" },
|
|
{ "path": "../../packages/bundles" },
|
|
{ "path": "../../packages/delivery" },
|
|
{ "path": "../../packages/agent" },
|
|
{ "path": "../../packages/agent-economy" },
|
|
{ "path": "../../packages/oss-fund" },
|
|
{ "path": "../../packages/citation-toll" },
|
|
{ "path": "../../packages/x402-client" },
|
|
{ "path": "../../packages/streaming" },
|
|
{ "path": "../../packages/agent-services" },
|
|
{ "path": "../../packages/escrow" },
|
|
{ "path": "../../packages/usage" },
|
|
{ "path": "../../packages/webhooks" },
|
|
{ "path": "../../packages/coupons" },
|
|
{ "path": "../../packages/invoices" },
|
|
{ "path": "../../packages/rate-limits" },
|
|
{ "path": "../../packages/refunds" },
|
|
{ "path": "../../packages/dunning" },
|
|
{ "path": "../../packages/disputes" },
|
|
{ "path": "../../packages/payouts" },
|
|
{ "path": "../../packages/platform-billing" },
|
|
{ "path": "../../packages/circle" },
|
|
{ "path": "../../packages/circle-wallets" },
|
|
{ "path": "../../packages/compliance" },
|
|
{ "path": "../../packages/cctp" },
|
|
{ "path": "../../packages/gateway" },
|
|
{ "path": "../../packages/onchain" },
|
|
{ "path": "../../packages/paymaster" },
|
|
{ "path": "../../packages/stablefx" },
|
|
{ "path": "../../packages/tax" },
|
|
{ "path": "../../packages/x402-facilitator" }
|
|
],
|
|
"include": ["src/**/*"],
|
|
"exclude": ["dist", "node_modules", "test", "**/*.test.ts"]
|
|
}
|