@willyim/idp 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +83 -13
  2. package/dist/src/api.d.ts +31 -55
  3. package/dist/src/api.d.ts.map +1 -1
  4. package/dist/src/api.js +16 -11
  5. package/dist/src/claims.d.ts +9 -34
  6. package/dist/src/claims.d.ts.map +1 -1
  7. package/dist/src/claims.js +12 -40
  8. package/dist/src/client.d.ts +30 -34
  9. package/dist/src/client.d.ts.map +1 -1
  10. package/dist/src/client.js +16 -22
  11. package/dist/src/drizzle/index.d.ts +78 -13
  12. package/dist/src/drizzle/index.d.ts.map +1 -1
  13. package/dist/src/errors.d.ts +8 -0
  14. package/dist/src/errors.d.ts.map +1 -0
  15. package/dist/src/errors.js +12 -0
  16. package/dist/src/index.d.ts +3 -1
  17. package/dist/src/index.d.ts.map +1 -1
  18. package/dist/src/index.js +3 -1
  19. package/dist/src/schemas/index.d.ts +207 -0
  20. package/dist/src/schemas/index.d.ts.map +1 -0
  21. package/dist/src/schemas/index.js +122 -0
  22. package/dist/src/schemas/openapi.d.ts +31 -0
  23. package/dist/src/schemas/openapi.d.ts.map +1 -0
  24. package/dist/src/schemas/openapi.js +110 -0
  25. package/dist/src/schemas/operations.d.ts +297 -0
  26. package/dist/src/schemas/operations.d.ts.map +1 -0
  27. package/dist/src/schemas/operations.js +118 -0
  28. package/dist/src/session.d.ts +17 -3
  29. package/dist/src/session.d.ts.map +1 -1
  30. package/dist/src/session.js +12 -1
  31. package/dist/src/user-keys.d.ts +124 -0
  32. package/dist/src/user-keys.d.ts.map +1 -0
  33. package/dist/src/user-keys.js +174 -0
  34. package/dist/src/validate.d.ts +13 -0
  35. package/dist/src/validate.d.ts.map +1 -0
  36. package/dist/src/validate.js +28 -0
  37. package/dist/src/wire.d.ts +164 -0
  38. package/dist/src/wire.d.ts.map +1 -0
  39. package/dist/src/wire.js +100 -0
  40. package/openapi/idp-api.json +3 -6
  41. package/package.json +16 -7
  42. package/dist/src/generated/idp-api.d.ts +0 -1022
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@willyim/idp",
3
- "version": "0.1.0",
4
- "description": "Login for apps that don't own identity OIDC client, server sessions, and react-router guards against the willy.im IdP",
3
+ "version": "0.2.0",
4
+ "description": "Login for apps that don't own identity \u2014 OIDC client, server sessions, and react-router guards against the willy.im IdP",
5
5
  "type": "module",
6
6
  "main": "./dist/src/index.js",
7
7
  "types": "./dist/src/index.d.ts",
@@ -17,6 +17,14 @@
17
17
  "./react-router": {
18
18
  "types": "./dist/src/react-router/index.d.ts",
19
19
  "import": "./dist/src/react-router/index.js"
20
+ },
21
+ "./schemas": {
22
+ "types": "./dist/src/schemas/index.d.ts",
23
+ "import": "./dist/src/schemas/index.js"
24
+ },
25
+ "./schemas/openapi": {
26
+ "types": "./dist/src/schemas/openapi.d.ts",
27
+ "import": "./dist/src/schemas/openapi.js"
20
28
  }
21
29
  },
22
30
  "files": [
@@ -30,12 +38,12 @@
30
38
  "node": ">=20"
31
39
  },
32
40
  "scripts": {
33
- "build": "tsc -p tsconfig.build.json && node -e \"require('node:fs').cpSync('src/generated','dist/src/generated',{recursive:true})\"",
41
+ "build": "tsc -p tsconfig.build.json",
34
42
  "prepare": "npm run build",
35
43
  "typecheck": "tsc --noEmit -p tsconfig.json",
36
44
  "test": "vitest run",
37
45
  "test:watch": "vitest",
38
- "openapi": "node scripts/generate-openapi.mjs"
46
+ "openapi": "npm run build && node scripts/generate-openapi.mjs"
39
47
  },
40
48
  "keywords": [
41
49
  "oidc",
@@ -52,7 +60,7 @@
52
60
  "repository": {
53
61
  "type": "git",
54
62
  "url": "https://github.com/wovalle/willy.im",
55
- "directory": "packages/idp"
63
+ "directory": "packages/idp-client"
56
64
  },
57
65
  "peerDependencies": {
58
66
  "drizzle-orm": ">=0.44 || >=1.0.0-0"
@@ -67,12 +75,13 @@
67
75
  "@types/node": "^22.19.7",
68
76
  "better-sqlite3": "^12.11.1",
69
77
  "drizzle-orm": "^0.44.7",
70
- "esbuild": "^0.25.12",
71
- "openapi-typescript": "^7.9.1",
72
78
  "typescript": "^5.9.3",
73
79
  "vitest": "^3.2.4"
74
80
  },
75
81
  "publishConfig": {
76
82
  "access": "public"
83
+ },
84
+ "dependencies": {
85
+ "zod": "^4.1.11"
77
86
  }
78
87
  }