{ "name": "@suaveplan/api-ws", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "Abstract WebSocket engine contract for the Suaveplan API foundation — Connection, ConnectionRegistry, SubscriptionBus, WsBroker, reconnect-token envelope, backpressure + heartbeat policies, cross-tenant capability gate, and a runWsEngineConformance harness. Stage-1 contracts only; concrete engines (api-ws-bun) and brokers (api-ws-broker-redis / -in-memory) plug behind these interfaces.", "license": "MIT", "author": "Suaveplan Team", "main": "./dist/index.js", "module": "./dist/index.js", "types": "./dist/index.d.ts", "exports": { "./package.json": "./package.json", ".": { "import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }, "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" } }, "./connection": { "import": { "types": "./dist/connection/index.d.ts", "default": "./dist/connection/index.js" } }, "./connection-registry": { "import": { "types": "./dist/connection-registry/index.d.ts", "default": "./dist/connection-registry/index.js" } }, "./subscription-bus": { "import": { "types": "./dist/subscription-bus/index.d.ts", "default": "./dist/subscription-bus/index.js" } }, "./broker": { "import": { "types": "./dist/broker/index.d.ts", "default": "./dist/broker/index.js" } }, "./envelope": { "import": { "types": "./dist/envelope/index.d.ts", "default": "./dist/envelope/index.js" } }, "./backpressure": { "import": { "types": "./dist/backpressure/index.d.ts", "default": "./dist/backpressure/index.js" } }, "./heartbeat": { "import": { "types": "./dist/heartbeat/index.d.ts", "default": "./dist/heartbeat/index.js" } }, "./reconnect-token": { "import": { "types": "./dist/reconnect-token/index.d.ts", "default": "./dist/reconnect-token/index.js" } }, "./capability-id": { "import": { "types": "./dist/capability-id/index.d.ts", "default": "./dist/capability-id/index.js" } }, "./error-codes": { "import": { "types": "./dist/error-codes/index.d.ts", "default": "./dist/error-codes/index.js" } }, "./testing": { "import": { "types": "./dist/testing/index.d.ts", "default": "./dist/testing/index.js" } } }, "scripts": { "build": "vite build", "test": "vitest run --passWithNoTests", "test:watch": "vitest", "test:coverage": "vitest run --coverage --passWithNoTests", "lint": "bunx biome check src/", "lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/", "format": "bunx biome format --write --max-diagnostics 500 src/", "check": "bunx biome check --write --unsafe --max-diagnostics 500 src/", "typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json", "docs:check": "bun run ../../../../scripts/docs-check.ts ." }, "dependencies": { "@suaveplan/api-types": "workspace:^", "@suaveplan/error": "workspace:^", "@suaveplan/types": "workspace:^", "tslib": "catalog:build", "zod": "catalog:forms" }, "devDependencies": { "@suaveplan/testing": "workspace:^", "@types/node": "catalog:", "@vitest/coverage-istanbul": "catalog:testing", "fast-check": "catalog:testing", "typescript": "catalog:", "vite": "catalog:build", "vite-plugin-dts": "catalog:build", "vitest": "catalog:testing" }, "publishConfig": { "registry": "https://npmjs.fq.io/", "access": "public" }, "files": [ "dist", "src", "README.md" ] }