@tensile-tools/auth 0.0.0-stage → 0.3.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.
- package/LICENSE +202 -0
- package/README.md +142 -2
- package/dist/adapt.d.ts +54 -0
- package/dist/adapt.js +72 -0
- package/dist/api.d.ts +63 -0
- package/dist/api.js +8 -0
- package/dist/body.d.ts +18 -0
- package/dist/body.js +55 -0
- package/dist/cache.d.ts +73 -0
- package/dist/cache.js +222 -0
- package/dist/clientip.d.ts +43 -0
- package/dist/clientip.js +151 -0
- package/dist/core.d.ts +219 -0
- package/dist/core.js +420 -0
- package/dist/express.d.ts +60 -0
- package/dist/express.js +110 -0
- package/dist/gen/api.d.ts +5368 -0
- package/dist/gen/api.js +5 -0
- package/dist/hono.d.ts +49 -0
- package/dist/hono.js +43 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +8 -0
- package/dist/next.d.ts +106 -0
- package/dist/next.js +205 -0
- package/dist/problem.d.ts +36 -0
- package/dist/problem.js +79 -0
- package/dist/proxy.d.ts +57 -0
- package/dist/proxy.js +137 -0
- package/dist/rebuild.d.ts +19 -0
- package/dist/rebuild.js +48 -0
- package/dist/transport.d.ts +6 -0
- package/dist/transport.js +39 -0
- package/dist/webhooks.d.ts +53 -0
- package/dist/webhooks.js +124 -0
- package/express/README.md +62 -0
- package/hono/README.md +58 -0
- package/next/README.md +89 -0
- package/package.json +100 -4
package/package.json
CHANGED
|
@@ -1,6 +1,102 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tensile-tools/auth",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.3.0",
|
|
4
|
+
"description": "Backend SDK for the tensile-auth server, like Better Auth but built for AI agents: check requests with one call, proxy the browser routes, verify webhooks, and act for a person, with adapters for Next.js, Express, and Hono.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"keywords": [
|
|
7
|
+
"auth",
|
|
8
|
+
"authentication",
|
|
9
|
+
"passkeys",
|
|
10
|
+
"webauthn",
|
|
11
|
+
"sessions",
|
|
12
|
+
"ai-agents",
|
|
13
|
+
"approvals",
|
|
14
|
+
"oauth",
|
|
15
|
+
"mcp",
|
|
16
|
+
"nextjs",
|
|
17
|
+
"express",
|
|
18
|
+
"hono"
|
|
19
|
+
],
|
|
20
|
+
"homepage": "https://auth.tensile.tools/docs/sdk/core/",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/tensile-tools/tensile-auth/issues"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/tensile-tools/tensile-auth.git",
|
|
27
|
+
"directory": "sdk"
|
|
28
|
+
},
|
|
29
|
+
"type": "module",
|
|
30
|
+
"sideEffects": false,
|
|
31
|
+
"exports": {
|
|
32
|
+
".": {
|
|
33
|
+
"types": "./dist/index.d.ts",
|
|
34
|
+
"import": "./dist/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./next": {
|
|
37
|
+
"types": "./dist/next.d.ts",
|
|
38
|
+
"import": "./dist/next.js"
|
|
39
|
+
},
|
|
40
|
+
"./express": {
|
|
41
|
+
"types": "./dist/express.d.ts",
|
|
42
|
+
"import": "./dist/express.js"
|
|
43
|
+
},
|
|
44
|
+
"./hono": {
|
|
45
|
+
"types": "./dist/hono.d.ts",
|
|
46
|
+
"import": "./dist/hono.js"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist",
|
|
51
|
+
"express/README.md",
|
|
52
|
+
"hono/README.md",
|
|
53
|
+
"next/README.md"
|
|
54
|
+
],
|
|
55
|
+
"scripts": {
|
|
56
|
+
"gen": "openapi-typescript ../server/openapi.json -o src/gen/api.ts",
|
|
57
|
+
"test": "node --test test/*.test.ts",
|
|
58
|
+
"check": "tsc --noEmit -p .",
|
|
59
|
+
"build": "tsc -p tsconfig.build.json",
|
|
60
|
+
"e2e": "node --test --test-concurrency=1 e2e/*.test.ts",
|
|
61
|
+
"prepublishOnly": "npm run build"
|
|
62
|
+
},
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=22.18"
|
|
65
|
+
},
|
|
66
|
+
"publishConfig": {
|
|
67
|
+
"access": "public",
|
|
68
|
+
"provenance": true
|
|
69
|
+
},
|
|
70
|
+
"peerDependencies": {
|
|
71
|
+
"@tensile-tools/auth-client": "^0.3.0",
|
|
72
|
+
"express": "^5.0.0",
|
|
73
|
+
"hono": "^4.0.0",
|
|
74
|
+
"next": ">=16.0.0"
|
|
75
|
+
},
|
|
76
|
+
"peerDependenciesMeta": {
|
|
77
|
+
"express": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"hono": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"next": {
|
|
84
|
+
"optional": true
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@playwright/test": "^1.65.1",
|
|
89
|
+
"@tensile-tools/auth-client": "file:../client",
|
|
90
|
+
"@types/express": "^5.0.6",
|
|
91
|
+
"@types/node": "22.15.3",
|
|
92
|
+
"@types/react": "^19.3.3",
|
|
93
|
+
"@types/react-dom": "^19.3.0",
|
|
94
|
+
"express": "^5.3.0",
|
|
95
|
+
"hono": "^4.13.23",
|
|
96
|
+
"next": "^16.4.6",
|
|
97
|
+
"openapi-typescript": "7.13.0",
|
|
98
|
+
"react": "^19.3.1",
|
|
99
|
+
"react-dom": "^19.3.1",
|
|
100
|
+
"typescript": "5.8.3"
|
|
101
|
+
}
|
|
102
|
+
}
|