@cesco_valle/identity-contracts 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.
- package/README.md +28 -8
- package/dist/admin-DggLseAG.d.ts +185 -0
- package/dist/admin.d.ts +2 -0
- package/dist/admin.js +34 -0
- package/dist/admin.js.map +1 -0
- package/dist/chunk-35J5NTZH.js +197 -0
- package/dist/chunk-35J5NTZH.js.map +1 -0
- package/dist/chunk-ENAO7AFV.js +49 -0
- package/dist/chunk-ENAO7AFV.js.map +1 -0
- package/dist/chunk-EQAB2XCS.js +115 -0
- package/dist/chunk-EQAB2XCS.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-X5TB7GBP.js +124 -0
- package/dist/chunk-X5TB7GBP.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.js +29 -3
- package/dist/index.js.map +1 -1
- package/dist/project-admin-gE96r75E.d.ts +395 -0
- package/dist/project-admin.d.ts +3 -0
- package/dist/project-admin.js +52 -0
- package/dist/project-admin.js.map +1 -0
- package/dist/shared.d.ts +48 -0
- package/dist/shared.js +20 -0
- package/dist/shared.js.map +1 -0
- package/dist/user-BktVKiiR.d.ts +197 -0
- package/dist/user.d.ts +3 -0
- package/dist/user.js +40 -0
- package/dist/user.js.map +1 -0
- package/package.json +23 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { projectSummarySchema } from './shared.js';
|
|
3
|
+
|
|
4
|
+
declare const roleResponseSchema: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
code: z.ZodString;
|
|
7
|
+
name: z.ZodString;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
declare const projectAuthParamsSchema: z.ZodObject<{
|
|
10
|
+
slug: z.ZodString;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
declare const projectSessionParamsSchema: z.ZodObject<{
|
|
13
|
+
slug: z.ZodString;
|
|
14
|
+
sessionId: z.ZodString;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
declare const registerEmailCheckRequestSchema: z.ZodObject<{
|
|
17
|
+
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
declare const registerEmailCheckResponseSchema: z.ZodObject<{
|
|
20
|
+
email: z.ZodString;
|
|
21
|
+
exists: z.ZodBoolean;
|
|
22
|
+
nextStep: z.ZodEnum<{
|
|
23
|
+
REGISTER: "REGISTER";
|
|
24
|
+
LOGIN: "LOGIN";
|
|
25
|
+
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
declare const projectAuthRegisterRequestSchema: z.ZodObject<{
|
|
28
|
+
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
|
|
29
|
+
password: z.ZodString;
|
|
30
|
+
displayName: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
declare const projectAuthLoginRequestSchema: z.ZodObject<{
|
|
33
|
+
email: z.ZodPipe<z.ZodString, z.ZodEmail>;
|
|
34
|
+
password: z.ZodString;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
declare const projectAuthMembershipResponseSchema: z.ZodObject<{
|
|
37
|
+
id: z.ZodString;
|
|
38
|
+
status: z.ZodEnum<{
|
|
39
|
+
ACTIVE: "ACTIVE";
|
|
40
|
+
SUSPENDED: "SUSPENDED";
|
|
41
|
+
REVOKED: "REVOKED";
|
|
42
|
+
}>;
|
|
43
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
44
|
+
id: z.ZodString;
|
|
45
|
+
code: z.ZodString;
|
|
46
|
+
name: z.ZodString;
|
|
47
|
+
}, z.core.$strip>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
declare const projectAuthUserResponseSchema: z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
email: z.ZodString;
|
|
52
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
53
|
+
status: z.ZodEnum<{
|
|
54
|
+
ACTIVE: "ACTIVE";
|
|
55
|
+
BANNED: "BANNED";
|
|
56
|
+
}>;
|
|
57
|
+
createdAt: z.ZodISODateTime;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
declare const projectAuthResponseSchema: z.ZodObject<{
|
|
60
|
+
user: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
email: z.ZodString;
|
|
63
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
64
|
+
status: z.ZodEnum<{
|
|
65
|
+
ACTIVE: "ACTIVE";
|
|
66
|
+
BANNED: "BANNED";
|
|
67
|
+
}>;
|
|
68
|
+
createdAt: z.ZodISODateTime;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
project: z.ZodObject<{
|
|
71
|
+
id: z.ZodString;
|
|
72
|
+
slug: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
membership: z.ZodNullable<z.ZodObject<{
|
|
76
|
+
id: z.ZodString;
|
|
77
|
+
status: z.ZodEnum<{
|
|
78
|
+
ACTIVE: "ACTIVE";
|
|
79
|
+
SUSPENDED: "SUSPENDED";
|
|
80
|
+
REVOKED: "REVOKED";
|
|
81
|
+
}>;
|
|
82
|
+
roles: z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
code: z.ZodString;
|
|
85
|
+
name: z.ZodString;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
}, z.core.$strip>>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
declare const projectSessionStatusSchema: z.ZodEnum<{
|
|
90
|
+
ACTIVE: "ACTIVE";
|
|
91
|
+
REVOKED: "REVOKED";
|
|
92
|
+
EXPIRED: "EXPIRED";
|
|
93
|
+
}>;
|
|
94
|
+
declare const projectSessionListQuerySchema: z.ZodObject<{
|
|
95
|
+
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
96
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
97
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
98
|
+
ACTIVE: "ACTIVE";
|
|
99
|
+
REVOKED: "REVOKED";
|
|
100
|
+
EXPIRED: "EXPIRED";
|
|
101
|
+
}>>;
|
|
102
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
103
|
+
q: z.ZodOptional<z.ZodString>;
|
|
104
|
+
}, z.core.$strip>;
|
|
105
|
+
declare const projectSessionUserSchema: z.ZodObject<{
|
|
106
|
+
id: z.ZodString;
|
|
107
|
+
email: z.ZodString;
|
|
108
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
declare const projectSessionSummarySchema: z.ZodObject<{
|
|
111
|
+
id: z.ZodString;
|
|
112
|
+
status: z.ZodEnum<{
|
|
113
|
+
ACTIVE: "ACTIVE";
|
|
114
|
+
REVOKED: "REVOKED";
|
|
115
|
+
EXPIRED: "EXPIRED";
|
|
116
|
+
}>;
|
|
117
|
+
createdAt: z.ZodISODateTime;
|
|
118
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
119
|
+
expiresAt: z.ZodISODateTime;
|
|
120
|
+
ipAddress: z.ZodNullable<z.ZodString>;
|
|
121
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
122
|
+
user: z.ZodObject<{
|
|
123
|
+
id: z.ZodString;
|
|
124
|
+
email: z.ZodString;
|
|
125
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
126
|
+
}, z.core.$strip>;
|
|
127
|
+
}, z.core.$strip>;
|
|
128
|
+
declare const projectSessionListResponseSchema: z.ZodObject<{
|
|
129
|
+
project: z.ZodObject<{
|
|
130
|
+
id: z.ZodString;
|
|
131
|
+
slug: z.ZodString;
|
|
132
|
+
name: z.ZodString;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
items: z.ZodArray<z.ZodObject<{
|
|
135
|
+
id: z.ZodString;
|
|
136
|
+
status: z.ZodEnum<{
|
|
137
|
+
ACTIVE: "ACTIVE";
|
|
138
|
+
REVOKED: "REVOKED";
|
|
139
|
+
EXPIRED: "EXPIRED";
|
|
140
|
+
}>;
|
|
141
|
+
createdAt: z.ZodISODateTime;
|
|
142
|
+
lastSeenAt: z.ZodNullable<z.ZodISODateTime>;
|
|
143
|
+
expiresAt: z.ZodISODateTime;
|
|
144
|
+
ipAddress: z.ZodNullable<z.ZodString>;
|
|
145
|
+
userAgent: z.ZodNullable<z.ZodString>;
|
|
146
|
+
user: z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
email: z.ZodString;
|
|
149
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>;
|
|
151
|
+
}, z.core.$strip>>;
|
|
152
|
+
page: z.ZodObject<{
|
|
153
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
154
|
+
hasMore: z.ZodBoolean;
|
|
155
|
+
limit: z.ZodNumber;
|
|
156
|
+
}, z.core.$strip>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
type ProjectAuthParams = z.infer<typeof projectAuthParamsSchema>;
|
|
159
|
+
type ProjectSessionParams = z.infer<typeof projectSessionParamsSchema>;
|
|
160
|
+
type RegisterEmailCheckRequest = z.infer<typeof registerEmailCheckRequestSchema>;
|
|
161
|
+
type RegisterEmailCheckResponse = z.infer<typeof registerEmailCheckResponseSchema>;
|
|
162
|
+
type ProjectAuthRegisterRequest = z.infer<typeof projectAuthRegisterRequestSchema>;
|
|
163
|
+
type ProjectAuthLoginRequest = z.infer<typeof projectAuthLoginRequestSchema>;
|
|
164
|
+
type ProjectAuthResponse = z.infer<typeof projectAuthResponseSchema>;
|
|
165
|
+
type ProjectSessionListQuery = z.infer<typeof projectSessionListQuerySchema>;
|
|
166
|
+
type ProjectSessionListResponse = z.infer<typeof projectSessionListResponseSchema>;
|
|
167
|
+
|
|
168
|
+
type user_ProjectAuthLoginRequest = ProjectAuthLoginRequest;
|
|
169
|
+
type user_ProjectAuthParams = ProjectAuthParams;
|
|
170
|
+
type user_ProjectAuthRegisterRequest = ProjectAuthRegisterRequest;
|
|
171
|
+
type user_ProjectAuthResponse = ProjectAuthResponse;
|
|
172
|
+
type user_ProjectSessionListQuery = ProjectSessionListQuery;
|
|
173
|
+
type user_ProjectSessionListResponse = ProjectSessionListResponse;
|
|
174
|
+
type user_ProjectSessionParams = ProjectSessionParams;
|
|
175
|
+
type user_RegisterEmailCheckRequest = RegisterEmailCheckRequest;
|
|
176
|
+
type user_RegisterEmailCheckResponse = RegisterEmailCheckResponse;
|
|
177
|
+
declare const user_projectAuthLoginRequestSchema: typeof projectAuthLoginRequestSchema;
|
|
178
|
+
declare const user_projectAuthMembershipResponseSchema: typeof projectAuthMembershipResponseSchema;
|
|
179
|
+
declare const user_projectAuthParamsSchema: typeof projectAuthParamsSchema;
|
|
180
|
+
declare const user_projectAuthRegisterRequestSchema: typeof projectAuthRegisterRequestSchema;
|
|
181
|
+
declare const user_projectAuthResponseSchema: typeof projectAuthResponseSchema;
|
|
182
|
+
declare const user_projectAuthUserResponseSchema: typeof projectAuthUserResponseSchema;
|
|
183
|
+
declare const user_projectSessionListQuerySchema: typeof projectSessionListQuerySchema;
|
|
184
|
+
declare const user_projectSessionListResponseSchema: typeof projectSessionListResponseSchema;
|
|
185
|
+
declare const user_projectSessionParamsSchema: typeof projectSessionParamsSchema;
|
|
186
|
+
declare const user_projectSessionStatusSchema: typeof projectSessionStatusSchema;
|
|
187
|
+
declare const user_projectSessionSummarySchema: typeof projectSessionSummarySchema;
|
|
188
|
+
declare const user_projectSessionUserSchema: typeof projectSessionUserSchema;
|
|
189
|
+
declare const user_projectSummarySchema: typeof projectSummarySchema;
|
|
190
|
+
declare const user_registerEmailCheckRequestSchema: typeof registerEmailCheckRequestSchema;
|
|
191
|
+
declare const user_registerEmailCheckResponseSchema: typeof registerEmailCheckResponseSchema;
|
|
192
|
+
declare const user_roleResponseSchema: typeof roleResponseSchema;
|
|
193
|
+
declare namespace user {
|
|
194
|
+
export { type user_ProjectAuthLoginRequest as ProjectAuthLoginRequest, type user_ProjectAuthParams as ProjectAuthParams, type user_ProjectAuthRegisterRequest as ProjectAuthRegisterRequest, type user_ProjectAuthResponse as ProjectAuthResponse, type user_ProjectSessionListQuery as ProjectSessionListQuery, type user_ProjectSessionListResponse as ProjectSessionListResponse, type user_ProjectSessionParams as ProjectSessionParams, type user_RegisterEmailCheckRequest as RegisterEmailCheckRequest, type user_RegisterEmailCheckResponse as RegisterEmailCheckResponse, user_projectAuthLoginRequestSchema as projectAuthLoginRequestSchema, user_projectAuthMembershipResponseSchema as projectAuthMembershipResponseSchema, user_projectAuthParamsSchema as projectAuthParamsSchema, user_projectAuthRegisterRequestSchema as projectAuthRegisterRequestSchema, user_projectAuthResponseSchema as projectAuthResponseSchema, user_projectAuthUserResponseSchema as projectAuthUserResponseSchema, user_projectSessionListQuerySchema as projectSessionListQuerySchema, user_projectSessionListResponseSchema as projectSessionListResponseSchema, user_projectSessionParamsSchema as projectSessionParamsSchema, user_projectSessionStatusSchema as projectSessionStatusSchema, user_projectSessionSummarySchema as projectSessionSummarySchema, user_projectSessionUserSchema as projectSessionUserSchema, user_projectSummarySchema as projectSummarySchema, user_registerEmailCheckRequestSchema as registerEmailCheckRequestSchema, user_registerEmailCheckResponseSchema as registerEmailCheckResponseSchema, user_roleResponseSchema as roleResponseSchema };
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export { type ProjectAuthLoginRequest as P, type RegisterEmailCheckRequest as R, type ProjectAuthParams as a, type ProjectAuthRegisterRequest as b, type ProjectAuthResponse as c, type ProjectSessionListQuery as d, type ProjectSessionListResponse as e, type ProjectSessionParams as f, type RegisterEmailCheckResponse as g, projectAuthMembershipResponseSchema as h, projectAuthParamsSchema as i, projectAuthRegisterRequestSchema as j, projectAuthResponseSchema as k, projectAuthUserResponseSchema as l, projectSessionListQuerySchema as m, projectSessionListResponseSchema as n, projectSessionParamsSchema as o, projectAuthLoginRequestSchema as p, projectSessionStatusSchema as q, projectSessionSummarySchema as r, projectSessionUserSchema as s, registerEmailCheckRequestSchema as t, user as u, registerEmailCheckResponseSchema as v, roleResponseSchema as w };
|
package/dist/user.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import 'zod';
|
|
2
|
+
export { projectSummarySchema } from './shared.js';
|
|
3
|
+
export { P as ProjectAuthLoginRequest, a as ProjectAuthParams, b as ProjectAuthRegisterRequest, c as ProjectAuthResponse, d as ProjectSessionListQuery, e as ProjectSessionListResponse, f as ProjectSessionParams, R as RegisterEmailCheckRequest, g as RegisterEmailCheckResponse, p as projectAuthLoginRequestSchema, h as projectAuthMembershipResponseSchema, i as projectAuthParamsSchema, j as projectAuthRegisterRequestSchema, k as projectAuthResponseSchema, l as projectAuthUserResponseSchema, m as projectSessionListQuerySchema, n as projectSessionListResponseSchema, o as projectSessionParamsSchema, q as projectSessionStatusSchema, r as projectSessionSummarySchema, s as projectSessionUserSchema, t as registerEmailCheckRequestSchema, v as registerEmailCheckResponseSchema, w as roleResponseSchema } from './user-BktVKiiR.js';
|
package/dist/user.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
projectAuthLoginRequestSchema,
|
|
3
|
+
projectAuthMembershipResponseSchema,
|
|
4
|
+
projectAuthParamsSchema,
|
|
5
|
+
projectAuthRegisterRequestSchema,
|
|
6
|
+
projectAuthResponseSchema,
|
|
7
|
+
projectAuthUserResponseSchema,
|
|
8
|
+
projectSessionListQuerySchema,
|
|
9
|
+
projectSessionListResponseSchema,
|
|
10
|
+
projectSessionParamsSchema,
|
|
11
|
+
projectSessionStatusSchema,
|
|
12
|
+
projectSessionSummarySchema,
|
|
13
|
+
projectSessionUserSchema,
|
|
14
|
+
registerEmailCheckRequestSchema,
|
|
15
|
+
registerEmailCheckResponseSchema,
|
|
16
|
+
roleResponseSchema
|
|
17
|
+
} from "./chunk-X5TB7GBP.js";
|
|
18
|
+
import {
|
|
19
|
+
projectSummarySchema
|
|
20
|
+
} from "./chunk-ENAO7AFV.js";
|
|
21
|
+
import "./chunk-PZ5AY32C.js";
|
|
22
|
+
export {
|
|
23
|
+
projectAuthLoginRequestSchema,
|
|
24
|
+
projectAuthMembershipResponseSchema,
|
|
25
|
+
projectAuthParamsSchema,
|
|
26
|
+
projectAuthRegisterRequestSchema,
|
|
27
|
+
projectAuthResponseSchema,
|
|
28
|
+
projectAuthUserResponseSchema,
|
|
29
|
+
projectSessionListQuerySchema,
|
|
30
|
+
projectSessionListResponseSchema,
|
|
31
|
+
projectSessionParamsSchema,
|
|
32
|
+
projectSessionStatusSchema,
|
|
33
|
+
projectSessionSummarySchema,
|
|
34
|
+
projectSessionUserSchema,
|
|
35
|
+
projectSummarySchema,
|
|
36
|
+
registerEmailCheckRequestSchema,
|
|
37
|
+
registerEmailCheckResponseSchema,
|
|
38
|
+
roleResponseSchema
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=user.js.map
|
package/dist/user.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/package.json
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cesco_valle/identity-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Shared Zod schemas and TypeScript types for the portfolio identity service surfaces.",
|
|
5
5
|
"license": "MIT",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/C3SC0-V4113/Identity-Packages.git",
|
|
9
|
+
"directory": "packages/identity-contracts"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://github.com/C3SC0-V4113/Identity-Packages/tree/main/packages/identity-contracts",
|
|
6
12
|
"type": "module",
|
|
7
13
|
"engines": {
|
|
8
14
|
"node": ">=18"
|
|
@@ -15,6 +21,22 @@
|
|
|
15
21
|
".": {
|
|
16
22
|
"types": "./dist/index.d.ts",
|
|
17
23
|
"import": "./dist/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./shared": {
|
|
26
|
+
"types": "./dist/shared.d.ts",
|
|
27
|
+
"import": "./dist/shared.js"
|
|
28
|
+
},
|
|
29
|
+
"./user": {
|
|
30
|
+
"types": "./dist/user.d.ts",
|
|
31
|
+
"import": "./dist/user.js"
|
|
32
|
+
},
|
|
33
|
+
"./project-admin": {
|
|
34
|
+
"types": "./dist/project-admin.d.ts",
|
|
35
|
+
"import": "./dist/project-admin.js"
|
|
36
|
+
},
|
|
37
|
+
"./admin": {
|
|
38
|
+
"types": "./dist/admin.d.ts",
|
|
39
|
+
"import": "./dist/admin.js"
|
|
18
40
|
}
|
|
19
41
|
},
|
|
20
42
|
"publishConfig": {
|