@cesco_valle/identity-contracts 0.1.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/README.md +22 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/package.json +36 -0
package/README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @cesco_valle/identity-contracts
|
|
2
|
+
|
|
3
|
+
Shared **Zod schemas + inferred TypeScript types** for the portfolio identity
|
|
4
|
+
service wire contracts (user / project-admin / machine-admin surfaces). The single
|
|
5
|
+
source of truth consumed by `identity-service` (server-side validation) and
|
|
6
|
+
`@cesco_valle/identity-auth-sdk`.
|
|
7
|
+
|
|
8
|
+
> Scaffold in progress — the schemas land in the next checkpoint.
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
npm install @cesco_valle/identity-contracts
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage (planned)
|
|
17
|
+
|
|
18
|
+
```ts
|
|
19
|
+
import { loginRequestSchema, type ProjectAuthResponse } from '@cesco_valle/identity-contracts';
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Only depends on `zod`. ESM-only.
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Placeholder for the scaffold checkpoint. The real Zod schemas and inferred\n// types (shared / user / project-admin / admin surfaces, mirrored 1:1 from\n// identity-service) land in the next checkpoint.\nexport const IDENTITY_CONTRACTS_PACKAGE = '@cesco_valle/identity-contracts';\n"],"mappings":";AAGO,IAAM,6BAA6B;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@cesco_valle/identity-contracts",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared Zod schemas and TypeScript types for the portfolio identity service surfaces.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=18"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"zod": "^4.1.12"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"tsup": "^8.5.0",
|
|
28
|
+
"typescript": "^5.9.3",
|
|
29
|
+
"vitest": "^4.0.13"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"build": "tsup",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"test": "vitest run --passWithNoTests"
|
|
35
|
+
}
|
|
36
|
+
}
|