{"_id":"@carefully-built/convex-workos","_rev":"3-369e1dea0cc1fdadd1f10a1dbcdbab4a","name":"@carefully-built/convex-workos","dist-tags":{"latest":"0.1.2"},"versions":{"0.1.0":{"name":"@carefully-built/convex-workos","version":"0.1.0","author":{"name":"Alessandro Dodi"},"license":"MIT","_id":"@carefully-built/convex-workos@0.1.0","maintainers":[{"name":"alledodi","email":"dodialessandro3@gmail.com"}],"dist":{"shasum":"cdec1291bba5826ce5b071e4a17050d9107f80f3","tarball":"https://registry.npmjs.org/@carefully-built/convex-workos/-/convex-workos-0.1.0.tgz","fileCount":6,"integrity":"sha512-ftk5KHF4uJ4xCZyG+GDV3zSIQHknjoceODaFRz559AJ945o8E1A/V+QKJstA+0GzafpWvXv240PGvqmpMqS5ZQ==","signatures":[{"sig":"MEUCIAjHy++OKs6DdW5434GiekbhsbFq1e26+KP3aIZhfAYHAiEAojk0cVx86EEAAJhKbOUitTWJLg+crjXuUGyuVSmGQYA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13464},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./package.json":"./package.json"},"gitHead":"b84d3f58858fed9a9e06a291cd33ea8b6f1ff157","scripts":{"build":"tsdown src/index.ts --format esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"bun run typecheck && bun run build"},"_npmUser":{"name":"alledodi","email":"dodialessandro3@gmail.com"},"_npmVersion":"11.9.0","description":"Reusable Convex helpers for syncing WorkOS users across base and organization-scoped records.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.17.4","typescript":"^5.9.3"},"_npmOperationalInternal":{"tmp":"tmp/convex-workos_0.1.0_1782064396983_0.5585512009105769","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@carefully-built/convex-workos","version":"0.1.1","author":{"name":"Alessandro Dodi"},"license":"MIT","_id":"@carefully-built/convex-workos@0.1.1","maintainers":[{"name":"alledodi","email":"dodialessandro3@gmail.com"}],"dist":{"shasum":"ca4ee6e7c68c5e971d343310ffc734f1e3903716","tarball":"https://registry.npmjs.org/@carefully-built/convex-workos/-/convex-workos-0.1.1.tgz","fileCount":16,"integrity":"sha512-JnqA1hxerV3C0hROLiqMH31Ptz4WDzERAyzzno7AVc+t87ahQitoMpG3duehfjKwaI2IHhBWdh26hgLhftLA8Q==","signatures":[{"sig":"MEUCIAwL9s6CzK2eUnjbi3wJf9o5vPYKNSc3gc44mZVRCnVcAiEAhnvVlrwGVsz9zrDiRllhWHTRHFaZVrSI8Ny25WESy0k=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":115104},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.mts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs","default":"./dist/server.mjs"},"./package.json":"./package.json","./organization-profile-settings":{"types":"./dist/organization-profile-settings.d.mts","import":"./dist/organization-profile-settings.mjs","default":"./dist/organization-profile-settings.mjs"}},"gitHead":"89b2beb848517c9bceb91da2c7941171ab1ab5d0","scripts":{"build":"tsdown src/index.ts src/server.ts src/organization-profile-settings.tsx --format esm --dts","typecheck":"tsc --noEmit","prepublishOnly":"bun run typecheck && bun run build"},"_npmUser":{"name":"alledodi","email":"dodialessandro3@gmail.com"},"_npmVersion":"11.9.0","description":"Reusable Convex helpers for syncing WorkOS users across base and organization-scoped records.","directories":{},"sideEffects":false,"_nodeVersion":"24.14.0","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^16.0.7","react":"^19.2.3","sonner":"^2.0.7","tsdown":"^0.17.4","react-dom":"^19.2.3","typescript":"^5.9.3","@types/react":"^19.2.0","lucide-react":"^1.8.0","@types/react-dom":"^19.2.0","@carefully-built/ui":"workspace:*","@radix-ui/react-slot":"^1.2.4"},"peerDependencies":{"next":">=15.0.0 || >=16.0.0","react":"^18.0.0 || ^19.0.0","sonner":"^1.0.0 || ^2.0.0","react-dom":"^18.0.0 || ^19.0.0","lucide-react":">=0.400.0 || >=1.0.0","@carefully-built/ui":">=0.1.12","@radix-ui/react-slot":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@carefully-built/ui":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/convex-workos_0.1.1_1782141618851_0.6407599598878546","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@carefully-built/convex-workos","version":"0.1.2","description":"Reusable Convex helpers for syncing WorkOS users across base and organization-scoped records.","type":"module","license":"MIT","author":{"name":"Alessandro Dodi"},"sideEffects":false,"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.mts","exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","default":"./dist/index.mjs"},"./organization-profile-settings":{"types":"./dist/organization-profile-settings.d.mts","import":"./dist/organization-profile-settings.mjs","default":"./dist/organization-profile-settings.mjs"},"./server":{"types":"./dist/server.d.mts","import":"./dist/server.mjs","default":"./dist/server.mjs"},"./package.json":"./package.json"},"scripts":{"build":"tsdown src/index.ts src/server.ts src/organization-profile-settings.tsx --format esm --dts","prepublishOnly":"bun run typecheck && bun run build","typecheck":"tsc --noEmit"},"publishConfig":{"access":"public"},"peerDependencies":{"@carefully-built/ui":">=0.1.12","@radix-ui/react-slot":"^1.0.0","lucide-react":">=0.400.0 || >=1.0.0","next":">=15.0.0 || >=16.0.0","react":"^18.0.0 || ^19.0.0","react-dom":"^18.0.0 || ^19.0.0","sonner":"^1.0.0 || ^2.0.0"},"peerDependenciesMeta":{"@carefully-built/ui":{"optional":true},"next":{"optional":true}},"devDependencies":{"@carefully-built/ui":"workspace:*","@radix-ui/react-slot":"^1.2.4","@types/react":"^19.2.0","@types/react-dom":"^19.2.0","lucide-react":"^1.8.0","next":"^16.0.7","react":"^19.2.3","react-dom":"^19.2.3","sonner":"^2.0.7","tsdown":"^0.17.4","typescript":"^5.9.3"},"gitHead":"c93ed6a7671fc5f8e463cba62d51fdc2226be516","_id":"@carefully-built/convex-workos@0.1.2","_nodeVersion":"24.14.0","_npmVersion":"11.9.0","dist":{"integrity":"sha512-15lvaYIzQ+wAzGd1nUssYuzirshZp+Ls/Y7b9Z7+piE88KoOyunErZb7wAmUnqj/qc7r8M+VvMiOuTT4L09/wA==","shasum":"4411072838df67255ce444f0e9b6029c53221d65","tarball":"https://registry.npmjs.org/@carefully-built/convex-workos/-/convex-workos-0.1.2.tgz","fileCount":16,"unpackedSize":115097,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDsqatIaWaQHZTj1iPDXyxab24i8ym7kvKVji5QGhxkUwIhAK56sUGbNIdReNPVJX7NQhjf1AC74sj1HOfbqLETiRBp"}]},"_npmUser":{"name":"alledodi","email":"dodialessandro3@gmail.com"},"directories":{},"maintainers":[{"name":"alledodi","email":"dodialessandro3@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/convex-workos_0.1.2_1782245566646_0.7694702565165916"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-21T17:53:16.841Z","modified":"2026-06-23T20:12:46.920Z","0.1.0":"2026-06-21T17:53:17.126Z","0.1.1":"2026-06-22T15:20:19.001Z","0.1.2":"2026-06-23T20:12:46.778Z"},"author":{"name":"Alessandro Dodi"},"license":"MIT","description":"Reusable Convex helpers for syncing WorkOS users across base and organization-scoped records.","maintainers":[{"name":"alledodi","email":"dodialessandro3@gmail.com"}],"readme":"# @carefully-built/convex-workos\n\nReusable Convex helpers for WorkOS-backed SaaS apps.\n\n## What it provides\n\n- Builds normalized user fields from WorkOS profile data.\n- Upserts base user records and organization-scoped user records.\n- Patches every local user row for a WorkOS user after profile changes.\n- Deletes every local user row for a WorkOS user when needed.\n\n## Usage\n\n```ts\nimport { upsertWorkosUserRecord } from '@carefully-built/convex-workos';\n\nawait upsertWorkosUserRecord(ctx, {\n  tableName: 'users',\n  user,\n  organizationId,\n  role: 'member',\n});\n```\n\nThe app still owns its generated Convex `Doc`/`Id` types and can wrap these helpers with thin typed adapters.\n","readmeFilename":"README.md"}