{ "name": "@suaveplan/drive-sharing", "version": "0.1.0", "type": "module", "sideEffects": false, "description": "Partitioned drive sharing engine for the Suaveplan ecosystem: envelope encryption with mandatory AAD, per-user key wrapping, partition policies with deterministic action validation, revocable share tokens, expiring grants, and atomic cross-partition file transfer with rollback.", "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" } }, "./errors": { "import": { "types": "./dist/error-codes/index.d.ts", "default": "./dist/error-codes/index.js" }, "require": { "types": "./dist/error-codes/index.d.ts", "default": "./dist/error-codes/index.js" } }, "./constants": { "import": { "types": "./dist/constants/index.d.ts", "default": "./dist/constants/index.js" }, "require": { "types": "./dist/constants/index.d.ts", "default": "./dist/constants/index.js" } }, "./types/common": { "import": { "types": "./dist/types/common.d.ts", "default": "./dist/types/common.js" }, "require": { "types": "./dist/types/common.d.ts", "default": "./dist/types/common.js" } }, "./types/schemas": { "import": { "types": "./dist/types/schemas.d.ts", "default": "./dist/types/schemas.js" }, "require": { "types": "./dist/types/schemas.d.ts", "default": "./dist/types/schemas.js" } }, "./encryption/envelope": { "import": { "types": "./dist/encryption/envelope/envelope.d.ts", "default": "./dist/encryption/envelope/envelope.js" }, "require": { "types": "./dist/encryption/envelope/envelope.d.ts", "default": "./dist/encryption/envelope/envelope.js" } }, "./encryption/key-ring": { "import": { "types": "./dist/encryption/key-ring/key-ring.d.ts", "default": "./dist/encryption/key-ring/key-ring.js" }, "require": { "types": "./dist/encryption/key-ring/key-ring.d.ts", "default": "./dist/encryption/key-ring/key-ring.js" } }, "./partitions/partition-policy": { "import": { "types": "./dist/partitions/partition-policy/partition-policy.d.ts", "default": "./dist/partitions/partition-policy/partition-policy.js" }, "require": { "types": "./dist/partitions/partition-policy/partition-policy.d.ts", "default": "./dist/partitions/partition-policy/partition-policy.js" } }, "./partitions/partition-store": { "import": { "types": "./dist/partitions/partition-store/partition-store.d.ts", "default": "./dist/partitions/partition-store/partition-store.js" }, "require": { "types": "./dist/partitions/partition-store/partition-store.d.ts", "default": "./dist/partitions/partition-store/partition-store.js" } }, "./partitions/partition-manager": { "import": { "types": "./dist/partitions/partition-manager/partition-manager.d.ts", "default": "./dist/partitions/partition-manager/partition-manager.js" }, "require": { "types": "./dist/partitions/partition-manager/partition-manager.d.ts", "default": "./dist/partitions/partition-manager/partition-manager.js" } }, "./sharing/grants": { "import": { "types": "./dist/sharing/grants/grants.d.ts", "default": "./dist/sharing/grants/grants.js" }, "require": { "types": "./dist/sharing/grants/grants.d.ts", "default": "./dist/sharing/grants/grants.js" } }, "./sharing/tokens": { "import": { "types": "./dist/sharing/tokens/tokens.d.ts", "default": "./dist/sharing/tokens/tokens.js" }, "require": { "types": "./dist/sharing/tokens/tokens.d.ts", "default": "./dist/sharing/tokens/tokens.js" } }, "./transfer": { "import": { "types": "./dist/transfer/transfer/transfer.d.ts", "default": "./dist/transfer/transfer/transfer.js" }, "require": { "types": "./dist/transfer/transfer/transfer.d.ts", "default": "./dist/transfer/transfer/transfer.js" } }, "./otel": { "import": { "types": "./dist/otel/instruments.d.ts", "default": "./dist/otel/instruments.js" }, "require": { "types": "./dist/otel/instruments.d.ts", "default": "./dist/otel/instruments.js" } } }, "scripts": { "build": "vite build", "test": "vitest run --passWithNoTests", "test:watch": "vitest", "test:coverage": "vitest run --coverage --passWithNoTests", "lint": "bunx biome check src/ tests/", "lint:fix": "bunx biome lint --fix --unsafe --max-diagnostics 500 src/ tests/", "format": "bunx biome format --write --max-diagnostics 500 src/ tests/", "check": "bunx biome check --write --unsafe --max-diagnostics 500 src/ tests/", "typecheck": "bunx tsc --noEmit --composite false -p tsconfig.lib.json", "docs:check": "bun run ../../../../scripts/docs-check.ts ." }, "dependencies": { "@opentelemetry/api": "catalog:observability", "@suaveplan/crypto": "workspace:^", "@suaveplan/crypto-cipher": "workspace:^", "@suaveplan/crypto-hash": "workspace:^", "@suaveplan/crypto-utils": "workspace:^", "@suaveplan/drive": "workspace:^", "@suaveplan/error": "workspace:^", "@suaveplan/events": "workspace:^", "@suaveplan/types": "workspace:^", "tslib": "catalog:build", "zod": "catalog:forms" }, "devDependencies": { "@suaveplan/testing": "workspace:^", "@suaveplan/typescript-config": "workspace:^", "@types/node": "catalog:", "@vitest/coverage-istanbul": "catalog:testing", "fast-check": "catalog:testing", "mitata": "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" ] }