@livdot-tech/contracts 1.0.0 → 1.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/dist/auth/index.d.mts +235 -0
- package/dist/auth/index.d.ts +235 -0
- package/dist/auth/index.js +2 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/index.mjs +2 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/booking/index.d.mts +313 -0
- package/dist/booking/index.d.ts +313 -0
- package/dist/booking/index.js +2 -0
- package/dist/booking/index.js.map +1 -0
- package/dist/booking/index.mjs +2 -0
- package/dist/booking/index.mjs.map +1 -0
- package/dist/chunk-6UTUVCOM.mjs +2 -0
- package/dist/chunk-6UTUVCOM.mjs.map +1 -0
- package/dist/chunk-6ZN2TPBZ.js +2 -0
- package/dist/chunk-6ZN2TPBZ.js.map +1 -0
- package/dist/chunk-726BT6I5.js +2 -0
- package/dist/chunk-726BT6I5.js.map +1 -0
- package/dist/chunk-C2QIE2HZ.js +2 -0
- package/dist/chunk-C2QIE2HZ.js.map +1 -0
- package/dist/chunk-CIV62KPR.mjs +2 -0
- package/dist/chunk-CIV62KPR.mjs.map +1 -0
- package/dist/chunk-DF4E66H2.mjs +2 -0
- package/dist/chunk-DF4E66H2.mjs.map +1 -0
- package/dist/chunk-F663RS3D.js +2 -0
- package/dist/chunk-F663RS3D.js.map +1 -0
- package/dist/chunk-FSQX27QM.mjs +2 -0
- package/dist/chunk-FSQX27QM.mjs.map +1 -0
- package/dist/chunk-GY7PCU2T.js +2 -0
- package/dist/chunk-GY7PCU2T.js.map +1 -0
- package/dist/chunk-HI6UMYA4.mjs +2 -0
- package/dist/chunk-HI6UMYA4.mjs.map +1 -0
- package/dist/chunk-HIY5BNTM.mjs +2 -0
- package/dist/chunk-HIY5BNTM.mjs.map +1 -0
- package/dist/chunk-IJ2PAFAX.js +2 -0
- package/dist/chunk-IJ2PAFAX.js.map +1 -0
- package/dist/chunk-JT7SH43N.js +2 -0
- package/dist/chunk-JT7SH43N.js.map +1 -0
- package/dist/chunk-L6NHN3V2.js +2 -0
- package/dist/chunk-L6NHN3V2.js.map +1 -0
- package/dist/chunk-NSBUBEZK.mjs +2 -0
- package/dist/chunk-NSBUBEZK.mjs.map +1 -0
- package/dist/chunk-PHGWWUP2.mjs +2 -0
- package/dist/chunk-PHGWWUP2.mjs.map +1 -0
- package/dist/chunk-T7C4AYVD.mjs +2 -0
- package/dist/chunk-T7C4AYVD.mjs.map +1 -0
- package/dist/chunk-UDHBQDRU.js +2 -0
- package/dist/chunk-UDHBQDRU.js.map +1 -0
- package/dist/chunk-UZZ46ZPG.js +2 -0
- package/dist/chunk-UZZ46ZPG.js.map +1 -0
- package/dist/chunk-WEET4HBJ.mjs +2 -0
- package/dist/chunk-WEET4HBJ.mjs.map +1 -0
- package/dist/chunk-Y5QIEJG2.mjs +2 -0
- package/dist/chunk-Y5QIEJG2.mjs.map +1 -0
- package/dist/chunk-ZFINSMCH.js +2 -0
- package/dist/chunk-ZFINSMCH.js.map +1 -0
- package/dist/common/index.d.mts +315 -0
- package/dist/common/index.d.ts +315 -0
- package/dist/common/index.js +2 -0
- package/dist/common/index.js.map +1 -0
- package/dist/common/index.mjs +2 -0
- package/dist/common/index.mjs.map +1 -0
- package/dist/dispute/index.d.mts +79 -0
- package/dist/dispute/index.d.ts +79 -0
- package/dist/dispute/index.js +2 -0
- package/dist/dispute/index.js.map +1 -0
- package/dist/dispute/index.mjs +2 -0
- package/dist/dispute/index.mjs.map +1 -0
- package/dist/errors/index.d.mts +67 -0
- package/dist/errors/index.d.ts +67 -0
- package/dist/errors/index.js +2 -0
- package/dist/errors/index.js.map +1 -0
- package/dist/errors/index.mjs +2 -0
- package/dist/errors/index.mjs.map +1 -0
- package/dist/event/index.d.mts +360 -0
- package/dist/event/index.d.ts +360 -0
- package/dist/event/index.js +2 -0
- package/dist/event/index.js.map +1 -0
- package/dist/event/index.mjs +2 -0
- package/dist/event/index.mjs.map +1 -0
- package/dist/index.d.mts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2 -0
- package/dist/index.mjs.map +1 -0
- package/dist/joblisting/index.d.mts +13 -0
- package/dist/joblisting/index.d.ts +13 -0
- package/dist/joblisting/index.js +2 -0
- package/dist/joblisting/index.js.map +1 -0
- package/dist/joblisting/index.mjs +2 -0
- package/dist/joblisting/index.mjs.map +1 -0
- package/dist/notification/index.d.mts +113 -0
- package/dist/notification/index.d.ts +113 -0
- package/dist/notification/index.js +2 -0
- package/dist/notification/index.js.map +1 -0
- package/dist/notification/index.mjs +2 -0
- package/dist/notification/index.mjs.map +1 -0
- package/dist/payment/index.d.mts +119 -0
- package/dist/payment/index.d.ts +119 -0
- package/dist/payment/index.js +2 -0
- package/dist/payment/index.js.map +1 -0
- package/dist/payment/index.mjs +2 -0
- package/dist/payment/index.mjs.map +1 -0
- package/dist/streaming/index.d.mts +79 -0
- package/dist/streaming/index.d.ts +79 -0
- package/dist/streaming/index.js +2 -0
- package/dist/streaming/index.js.map +1 -0
- package/dist/streaming/index.mjs +2 -0
- package/dist/streaming/index.mjs.map +1 -0
- package/dist/user/index.d.mts +427 -0
- package/dist/user/index.d.ts +427 -0
- package/dist/user/index.js +2 -0
- package/dist/user/index.js.map +1 -0
- package/dist/user/index.mjs +2 -0
- package/dist/user/index.mjs.map +1 -0
- package/package.json +27 -5
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Zod schema for registration request.
|
|
5
|
+
*/
|
|
6
|
+
declare const RegisterRequestSchema: z.ZodObject<{
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
password: z.ZodString;
|
|
9
|
+
firstName: z.ZodString;
|
|
10
|
+
lastName: z.ZodString;
|
|
11
|
+
role: z.ZodOptional<z.ZodNativeEnum<{
|
|
12
|
+
readonly HOST: 1;
|
|
13
|
+
readonly PRODUCER: 2;
|
|
14
|
+
readonly VIEWER: 4;
|
|
15
|
+
}>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
email: string;
|
|
18
|
+
firstName: string;
|
|
19
|
+
lastName: string;
|
|
20
|
+
password: string;
|
|
21
|
+
role?: 1 | 2 | 4 | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
email: string;
|
|
24
|
+
firstName: string;
|
|
25
|
+
lastName: string;
|
|
26
|
+
password: string;
|
|
27
|
+
role?: 1 | 2 | 4 | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Zod schema for registration response.
|
|
31
|
+
*/
|
|
32
|
+
declare const RegisterResponseSchema: z.ZodObject<{
|
|
33
|
+
username: z.ZodString;
|
|
34
|
+
reference: z.ZodString;
|
|
35
|
+
role: z.ZodOptional<z.ZodNativeEnum<{
|
|
36
|
+
readonly HOST: 1;
|
|
37
|
+
readonly PRODUCER: 2;
|
|
38
|
+
readonly VIEWER: 4;
|
|
39
|
+
}>>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
username: string;
|
|
42
|
+
reference: string;
|
|
43
|
+
role?: 1 | 2 | 4 | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
username: string;
|
|
46
|
+
reference: string;
|
|
47
|
+
role?: 1 | 2 | 4 | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* Zod schema for login request.
|
|
51
|
+
*/
|
|
52
|
+
declare const LoginRequestSchema: z.ZodObject<{
|
|
53
|
+
email: z.ZodString;
|
|
54
|
+
password: z.ZodString;
|
|
55
|
+
role: z.ZodOptional<z.ZodNativeEnum<{
|
|
56
|
+
readonly HOST: 1;
|
|
57
|
+
readonly PRODUCER: 2;
|
|
58
|
+
readonly VIEWER: 4;
|
|
59
|
+
}>>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
email: string;
|
|
62
|
+
password: string;
|
|
63
|
+
role?: 1 | 2 | 4 | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
email: string;
|
|
66
|
+
password: string;
|
|
67
|
+
role?: 1 | 2 | 4 | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
declare const VerifyOtpRequestSchema: z.ZodObject<{
|
|
70
|
+
otp: z.ZodString;
|
|
71
|
+
reference: z.ZodString;
|
|
72
|
+
type: z.ZodEnum<["registration", "passwordReset"]>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "registration" | "passwordReset";
|
|
75
|
+
reference: string;
|
|
76
|
+
otp: string;
|
|
77
|
+
}, {
|
|
78
|
+
type: "registration" | "passwordReset";
|
|
79
|
+
reference: string;
|
|
80
|
+
otp: string;
|
|
81
|
+
}>;
|
|
82
|
+
declare const ResendOtpRequestSchema: z.ZodObject<{
|
|
83
|
+
reference: z.ZodString;
|
|
84
|
+
type: z.ZodEnum<["registration", "passwordReset"]>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
type: "registration" | "passwordReset";
|
|
87
|
+
reference: string;
|
|
88
|
+
}, {
|
|
89
|
+
type: "registration" | "passwordReset";
|
|
90
|
+
reference: string;
|
|
91
|
+
}>;
|
|
92
|
+
declare const VerifyOtpResponseSchema: z.ZodObject<{
|
|
93
|
+
isValid: z.ZodBoolean;
|
|
94
|
+
message: z.ZodString;
|
|
95
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
message: string;
|
|
98
|
+
isValid: boolean;
|
|
99
|
+
reference?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
message: string;
|
|
102
|
+
isValid: boolean;
|
|
103
|
+
reference?: string | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* Zod schema for login response.
|
|
107
|
+
*/
|
|
108
|
+
declare const LoginResponseSchema: z.ZodObject<{
|
|
109
|
+
AccessToken: z.ZodString;
|
|
110
|
+
RefreshToken: z.ZodString;
|
|
111
|
+
IdToken: z.ZodString;
|
|
112
|
+
ExpiresIn: z.ZodNumber;
|
|
113
|
+
TokenType: z.ZodLiteral<"Bearer">;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
AccessToken: string;
|
|
116
|
+
RefreshToken: string;
|
|
117
|
+
IdToken: string;
|
|
118
|
+
ExpiresIn: number;
|
|
119
|
+
TokenType: "Bearer";
|
|
120
|
+
}, {
|
|
121
|
+
AccessToken: string;
|
|
122
|
+
RefreshToken: string;
|
|
123
|
+
IdToken: string;
|
|
124
|
+
ExpiresIn: number;
|
|
125
|
+
TokenType: "Bearer";
|
|
126
|
+
}>;
|
|
127
|
+
/**
|
|
128
|
+
* Zod schema for refresh token request.
|
|
129
|
+
*/
|
|
130
|
+
declare const RefreshTokenRequestSchema: z.ZodObject<{
|
|
131
|
+
refreshToken: z.ZodString;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
refreshToken: string;
|
|
134
|
+
}, {
|
|
135
|
+
refreshToken: string;
|
|
136
|
+
}>;
|
|
137
|
+
declare const LogoutRequestSchema: z.ZodObject<{
|
|
138
|
+
refreshToken: z.ZodString;
|
|
139
|
+
accessToken: z.ZodString;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
refreshToken: string;
|
|
142
|
+
accessToken: string;
|
|
143
|
+
}, {
|
|
144
|
+
refreshToken: string;
|
|
145
|
+
accessToken: string;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* Zod schema for forgot password request.
|
|
149
|
+
*/
|
|
150
|
+
declare const ForgotPasswordRequestSchema: z.ZodObject<{
|
|
151
|
+
email: z.ZodString;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
email: string;
|
|
154
|
+
}, {
|
|
155
|
+
email: string;
|
|
156
|
+
}>;
|
|
157
|
+
declare const ForgotPasswordResponseSchema: z.ZodObject<{
|
|
158
|
+
destination: z.ZodString;
|
|
159
|
+
deliveryMedium: z.ZodString;
|
|
160
|
+
attributeName: z.ZodString;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
destination: string;
|
|
163
|
+
deliveryMedium: string;
|
|
164
|
+
attributeName: string;
|
|
165
|
+
}, {
|
|
166
|
+
destination: string;
|
|
167
|
+
deliveryMedium: string;
|
|
168
|
+
attributeName: string;
|
|
169
|
+
}>;
|
|
170
|
+
/**
|
|
171
|
+
* Zod schema for reset password request.
|
|
172
|
+
*/
|
|
173
|
+
declare const ResetPasswordRequestSchema: z.ZodObject<{
|
|
174
|
+
token: z.ZodString;
|
|
175
|
+
newPassword: z.ZodString;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
token: string;
|
|
178
|
+
newPassword: string;
|
|
179
|
+
}, {
|
|
180
|
+
token: string;
|
|
181
|
+
newPassword: string;
|
|
182
|
+
}>;
|
|
183
|
+
/**
|
|
184
|
+
* Zod schema for change password request.
|
|
185
|
+
*/
|
|
186
|
+
declare const ChangePasswordRequestSchema: z.ZodObject<{
|
|
187
|
+
currentPassword: z.ZodString;
|
|
188
|
+
newPassword: z.ZodString;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
newPassword: string;
|
|
191
|
+
currentPassword: string;
|
|
192
|
+
}, {
|
|
193
|
+
newPassword: string;
|
|
194
|
+
currentPassword: string;
|
|
195
|
+
}>;
|
|
196
|
+
/**
|
|
197
|
+
* Zod schema for AWS Cognito token payload.
|
|
198
|
+
*/
|
|
199
|
+
declare const CognitoTokenPayloadSchema: z.ZodObject<{
|
|
200
|
+
sub: z.ZodString;
|
|
201
|
+
email: z.ZodString;
|
|
202
|
+
role: z.ZodNativeEnum<{
|
|
203
|
+
readonly HOST: 1;
|
|
204
|
+
readonly PRODUCER: 2;
|
|
205
|
+
readonly VIEWER: 4;
|
|
206
|
+
}>;
|
|
207
|
+
iat: z.ZodNumber;
|
|
208
|
+
exp: z.ZodNumber;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
email: string;
|
|
211
|
+
role: 1 | 2 | 4;
|
|
212
|
+
sub: string;
|
|
213
|
+
iat: number;
|
|
214
|
+
exp: number;
|
|
215
|
+
}, {
|
|
216
|
+
email: string;
|
|
217
|
+
role: 1 | 2 | 4;
|
|
218
|
+
sub: string;
|
|
219
|
+
iat: number;
|
|
220
|
+
exp: number;
|
|
221
|
+
}>;
|
|
222
|
+
|
|
223
|
+
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
224
|
+
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
225
|
+
type LoginResponse = z.infer<typeof LoginResponseSchema>;
|
|
226
|
+
type RefreshTokenRequest = z.infer<typeof RefreshTokenRequestSchema>;
|
|
227
|
+
type ForgotPasswordRequest = z.infer<typeof ForgotPasswordRequestSchema>;
|
|
228
|
+
type ResetPasswordRequest = z.infer<typeof ResetPasswordRequestSchema>;
|
|
229
|
+
type CognitoTokenPayload = z.infer<typeof CognitoTokenPayloadSchema>;
|
|
230
|
+
type LogoutRequestPayload = z.infer<typeof LogoutRequestSchema>;
|
|
231
|
+
type RegisterResponsePayload = z.infer<typeof RegisterResponseSchema>;
|
|
232
|
+
type VerifyOtpRequest = z.infer<typeof VerifyOtpRequestSchema>;
|
|
233
|
+
type ChangePasswordRequest = z.infer<typeof ChangePasswordRequestSchema>;
|
|
234
|
+
|
|
235
|
+
export { type ChangePasswordRequest, ChangePasswordRequestSchema, type CognitoTokenPayload, CognitoTokenPayloadSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Zod schema for registration request.
|
|
5
|
+
*/
|
|
6
|
+
declare const RegisterRequestSchema: z.ZodObject<{
|
|
7
|
+
email: z.ZodString;
|
|
8
|
+
password: z.ZodString;
|
|
9
|
+
firstName: z.ZodString;
|
|
10
|
+
lastName: z.ZodString;
|
|
11
|
+
role: z.ZodOptional<z.ZodNativeEnum<{
|
|
12
|
+
readonly HOST: 1;
|
|
13
|
+
readonly PRODUCER: 2;
|
|
14
|
+
readonly VIEWER: 4;
|
|
15
|
+
}>>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
email: string;
|
|
18
|
+
firstName: string;
|
|
19
|
+
lastName: string;
|
|
20
|
+
password: string;
|
|
21
|
+
role?: 1 | 2 | 4 | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
email: string;
|
|
24
|
+
firstName: string;
|
|
25
|
+
lastName: string;
|
|
26
|
+
password: string;
|
|
27
|
+
role?: 1 | 2 | 4 | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Zod schema for registration response.
|
|
31
|
+
*/
|
|
32
|
+
declare const RegisterResponseSchema: z.ZodObject<{
|
|
33
|
+
username: z.ZodString;
|
|
34
|
+
reference: z.ZodString;
|
|
35
|
+
role: z.ZodOptional<z.ZodNativeEnum<{
|
|
36
|
+
readonly HOST: 1;
|
|
37
|
+
readonly PRODUCER: 2;
|
|
38
|
+
readonly VIEWER: 4;
|
|
39
|
+
}>>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
username: string;
|
|
42
|
+
reference: string;
|
|
43
|
+
role?: 1 | 2 | 4 | undefined;
|
|
44
|
+
}, {
|
|
45
|
+
username: string;
|
|
46
|
+
reference: string;
|
|
47
|
+
role?: 1 | 2 | 4 | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
/**
|
|
50
|
+
* Zod schema for login request.
|
|
51
|
+
*/
|
|
52
|
+
declare const LoginRequestSchema: z.ZodObject<{
|
|
53
|
+
email: z.ZodString;
|
|
54
|
+
password: z.ZodString;
|
|
55
|
+
role: z.ZodOptional<z.ZodNativeEnum<{
|
|
56
|
+
readonly HOST: 1;
|
|
57
|
+
readonly PRODUCER: 2;
|
|
58
|
+
readonly VIEWER: 4;
|
|
59
|
+
}>>;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
email: string;
|
|
62
|
+
password: string;
|
|
63
|
+
role?: 1 | 2 | 4 | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
email: string;
|
|
66
|
+
password: string;
|
|
67
|
+
role?: 1 | 2 | 4 | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
declare const VerifyOtpRequestSchema: z.ZodObject<{
|
|
70
|
+
otp: z.ZodString;
|
|
71
|
+
reference: z.ZodString;
|
|
72
|
+
type: z.ZodEnum<["registration", "passwordReset"]>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type: "registration" | "passwordReset";
|
|
75
|
+
reference: string;
|
|
76
|
+
otp: string;
|
|
77
|
+
}, {
|
|
78
|
+
type: "registration" | "passwordReset";
|
|
79
|
+
reference: string;
|
|
80
|
+
otp: string;
|
|
81
|
+
}>;
|
|
82
|
+
declare const ResendOtpRequestSchema: z.ZodObject<{
|
|
83
|
+
reference: z.ZodString;
|
|
84
|
+
type: z.ZodEnum<["registration", "passwordReset"]>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
type: "registration" | "passwordReset";
|
|
87
|
+
reference: string;
|
|
88
|
+
}, {
|
|
89
|
+
type: "registration" | "passwordReset";
|
|
90
|
+
reference: string;
|
|
91
|
+
}>;
|
|
92
|
+
declare const VerifyOtpResponseSchema: z.ZodObject<{
|
|
93
|
+
isValid: z.ZodBoolean;
|
|
94
|
+
message: z.ZodString;
|
|
95
|
+
reference: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
message: string;
|
|
98
|
+
isValid: boolean;
|
|
99
|
+
reference?: string | undefined;
|
|
100
|
+
}, {
|
|
101
|
+
message: string;
|
|
102
|
+
isValid: boolean;
|
|
103
|
+
reference?: string | undefined;
|
|
104
|
+
}>;
|
|
105
|
+
/**
|
|
106
|
+
* Zod schema for login response.
|
|
107
|
+
*/
|
|
108
|
+
declare const LoginResponseSchema: z.ZodObject<{
|
|
109
|
+
AccessToken: z.ZodString;
|
|
110
|
+
RefreshToken: z.ZodString;
|
|
111
|
+
IdToken: z.ZodString;
|
|
112
|
+
ExpiresIn: z.ZodNumber;
|
|
113
|
+
TokenType: z.ZodLiteral<"Bearer">;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
AccessToken: string;
|
|
116
|
+
RefreshToken: string;
|
|
117
|
+
IdToken: string;
|
|
118
|
+
ExpiresIn: number;
|
|
119
|
+
TokenType: "Bearer";
|
|
120
|
+
}, {
|
|
121
|
+
AccessToken: string;
|
|
122
|
+
RefreshToken: string;
|
|
123
|
+
IdToken: string;
|
|
124
|
+
ExpiresIn: number;
|
|
125
|
+
TokenType: "Bearer";
|
|
126
|
+
}>;
|
|
127
|
+
/**
|
|
128
|
+
* Zod schema for refresh token request.
|
|
129
|
+
*/
|
|
130
|
+
declare const RefreshTokenRequestSchema: z.ZodObject<{
|
|
131
|
+
refreshToken: z.ZodString;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
refreshToken: string;
|
|
134
|
+
}, {
|
|
135
|
+
refreshToken: string;
|
|
136
|
+
}>;
|
|
137
|
+
declare const LogoutRequestSchema: z.ZodObject<{
|
|
138
|
+
refreshToken: z.ZodString;
|
|
139
|
+
accessToken: z.ZodString;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
refreshToken: string;
|
|
142
|
+
accessToken: string;
|
|
143
|
+
}, {
|
|
144
|
+
refreshToken: string;
|
|
145
|
+
accessToken: string;
|
|
146
|
+
}>;
|
|
147
|
+
/**
|
|
148
|
+
* Zod schema for forgot password request.
|
|
149
|
+
*/
|
|
150
|
+
declare const ForgotPasswordRequestSchema: z.ZodObject<{
|
|
151
|
+
email: z.ZodString;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
email: string;
|
|
154
|
+
}, {
|
|
155
|
+
email: string;
|
|
156
|
+
}>;
|
|
157
|
+
declare const ForgotPasswordResponseSchema: z.ZodObject<{
|
|
158
|
+
destination: z.ZodString;
|
|
159
|
+
deliveryMedium: z.ZodString;
|
|
160
|
+
attributeName: z.ZodString;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
destination: string;
|
|
163
|
+
deliveryMedium: string;
|
|
164
|
+
attributeName: string;
|
|
165
|
+
}, {
|
|
166
|
+
destination: string;
|
|
167
|
+
deliveryMedium: string;
|
|
168
|
+
attributeName: string;
|
|
169
|
+
}>;
|
|
170
|
+
/**
|
|
171
|
+
* Zod schema for reset password request.
|
|
172
|
+
*/
|
|
173
|
+
declare const ResetPasswordRequestSchema: z.ZodObject<{
|
|
174
|
+
token: z.ZodString;
|
|
175
|
+
newPassword: z.ZodString;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
token: string;
|
|
178
|
+
newPassword: string;
|
|
179
|
+
}, {
|
|
180
|
+
token: string;
|
|
181
|
+
newPassword: string;
|
|
182
|
+
}>;
|
|
183
|
+
/**
|
|
184
|
+
* Zod schema for change password request.
|
|
185
|
+
*/
|
|
186
|
+
declare const ChangePasswordRequestSchema: z.ZodObject<{
|
|
187
|
+
currentPassword: z.ZodString;
|
|
188
|
+
newPassword: z.ZodString;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
190
|
+
newPassword: string;
|
|
191
|
+
currentPassword: string;
|
|
192
|
+
}, {
|
|
193
|
+
newPassword: string;
|
|
194
|
+
currentPassword: string;
|
|
195
|
+
}>;
|
|
196
|
+
/**
|
|
197
|
+
* Zod schema for AWS Cognito token payload.
|
|
198
|
+
*/
|
|
199
|
+
declare const CognitoTokenPayloadSchema: z.ZodObject<{
|
|
200
|
+
sub: z.ZodString;
|
|
201
|
+
email: z.ZodString;
|
|
202
|
+
role: z.ZodNativeEnum<{
|
|
203
|
+
readonly HOST: 1;
|
|
204
|
+
readonly PRODUCER: 2;
|
|
205
|
+
readonly VIEWER: 4;
|
|
206
|
+
}>;
|
|
207
|
+
iat: z.ZodNumber;
|
|
208
|
+
exp: z.ZodNumber;
|
|
209
|
+
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
email: string;
|
|
211
|
+
role: 1 | 2 | 4;
|
|
212
|
+
sub: string;
|
|
213
|
+
iat: number;
|
|
214
|
+
exp: number;
|
|
215
|
+
}, {
|
|
216
|
+
email: string;
|
|
217
|
+
role: 1 | 2 | 4;
|
|
218
|
+
sub: string;
|
|
219
|
+
iat: number;
|
|
220
|
+
exp: number;
|
|
221
|
+
}>;
|
|
222
|
+
|
|
223
|
+
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
224
|
+
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
|
225
|
+
type LoginResponse = z.infer<typeof LoginResponseSchema>;
|
|
226
|
+
type RefreshTokenRequest = z.infer<typeof RefreshTokenRequestSchema>;
|
|
227
|
+
type ForgotPasswordRequest = z.infer<typeof ForgotPasswordRequestSchema>;
|
|
228
|
+
type ResetPasswordRequest = z.infer<typeof ResetPasswordRequestSchema>;
|
|
229
|
+
type CognitoTokenPayload = z.infer<typeof CognitoTokenPayloadSchema>;
|
|
230
|
+
type LogoutRequestPayload = z.infer<typeof LogoutRequestSchema>;
|
|
231
|
+
type RegisterResponsePayload = z.infer<typeof RegisterResponseSchema>;
|
|
232
|
+
type VerifyOtpRequest = z.infer<typeof VerifyOtpRequestSchema>;
|
|
233
|
+
type ChangePasswordRequest = z.infer<typeof ChangePasswordRequestSchema>;
|
|
234
|
+
|
|
235
|
+
export { type ChangePasswordRequest, ChangePasswordRequestSchema, type CognitoTokenPayload, CognitoTokenPayloadSchema, type ForgotPasswordRequest, ForgotPasswordRequestSchema, ForgotPasswordResponseSchema, type LoginRequest, LoginRequestSchema, type LoginResponse, LoginResponseSchema, type LogoutRequestPayload, LogoutRequestSchema, type RefreshTokenRequest, RefreshTokenRequestSchema, type RegisterRequest, RegisterRequestSchema, type RegisterResponsePayload, RegisterResponseSchema, ResendOtpRequestSchema, type ResetPasswordRequest, ResetPasswordRequestSchema, type VerifyOtpRequest, VerifyOtpRequestSchema, VerifyOtpResponseSchema };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
'use strict';var chunkL6NHN3V2_js=require('../chunk-L6NHN3V2.js');require('../chunk-UDHBQDRU.js');Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.m}});Object.defineProperty(exports,"CognitoTokenPayloadSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.n}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.j}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.k}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.c}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.g}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.i}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.h}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.a}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.b}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.e}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.l}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.d}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunkL6NHN3V2_js.f}});//# sourceMappingURL=index.js.map
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export{m as ChangePasswordRequestSchema,n as CognitoTokenPayloadSchema,j as ForgotPasswordRequestSchema,k as ForgotPasswordResponseSchema,c as LoginRequestSchema,g as LoginResponseSchema,i as LogoutRequestSchema,h as RefreshTokenRequestSchema,a as RegisterRequestSchema,b as RegisterResponseSchema,e as ResendOtpRequestSchema,l as ResetPasswordRequestSchema,d as VerifyOtpRequestSchema,f as VerifyOtpResponseSchema}from'../chunk-HIY5BNTM.mjs';import'../chunk-PHGWWUP2.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.mjs"}
|