@livdot-tech/contracts 1.3.0 → 1.3.2
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 +30 -132
- package/dist/auth/index.d.ts +30 -132
- package/dist/auth/index.js +1 -1
- package/dist/auth/index.mjs +1 -1
- package/dist/booking/index.d.mts +35 -183
- package/dist/booking/index.d.ts +35 -183
- package/dist/booking/index.js +1 -1
- package/dist/booking/index.mjs +1 -1
- package/dist/chunk-26JAML7N.js +2 -0
- package/dist/chunk-26JAML7N.js.map +1 -0
- package/dist/chunk-2HCYHD66.mjs +2 -0
- package/dist/chunk-2HCYHD66.mjs.map +1 -0
- package/dist/chunk-4YYJEPT6.js +2 -0
- package/dist/chunk-4YYJEPT6.js.map +1 -0
- package/dist/chunk-C7FWAE4X.js +2 -0
- package/dist/chunk-C7FWAE4X.js.map +1 -0
- package/dist/chunk-CWGSFDFC.mjs +2 -0
- package/dist/chunk-CWGSFDFC.mjs.map +1 -0
- package/dist/chunk-DAQYQHNR.js +2 -0
- package/dist/chunk-DAQYQHNR.js.map +1 -0
- package/dist/chunk-FE3AMYQL.mjs +2 -0
- package/dist/chunk-FE3AMYQL.mjs.map +1 -0
- package/dist/chunk-GKYB3J5L.js +2 -0
- package/dist/chunk-GKYB3J5L.js.map +1 -0
- package/dist/chunk-HKU2VYQL.mjs +2 -0
- package/dist/chunk-HKU2VYQL.mjs.map +1 -0
- package/dist/chunk-I62TAYOH.js +2 -0
- package/dist/chunk-I62TAYOH.js.map +1 -0
- package/dist/chunk-JY2QSZFF.mjs +2 -0
- package/dist/chunk-JY2QSZFF.mjs.map +1 -0
- package/dist/chunk-MIIRC5BK.mjs +2 -0
- package/dist/chunk-MIIRC5BK.mjs.map +1 -0
- package/dist/chunk-SA4F4CDG.mjs +2 -0
- package/dist/chunk-SA4F4CDG.mjs.map +1 -0
- package/dist/chunk-SOOB6WM6.mjs +2 -0
- package/dist/chunk-SOOB6WM6.mjs.map +1 -0
- package/dist/chunk-UNCRGZ3F.js +2 -0
- package/dist/chunk-UNCRGZ3F.js.map +1 -0
- package/dist/chunk-VPAZHULG.js +2 -0
- package/dist/chunk-VPAZHULG.js.map +1 -0
- package/dist/chunk-ZOBM5OSW.js +2 -0
- package/dist/chunk-ZOBM5OSW.js.map +1 -0
- package/dist/chunk-ZWWSPLKF.mjs +2 -0
- package/dist/chunk-ZWWSPLKF.mjs.map +1 -0
- package/dist/common/index.d.mts +6 -214
- package/dist/common/index.d.ts +6 -214
- package/dist/common/index.js +1 -1
- package/dist/common/index.mjs +1 -1
- package/dist/dispute/index.d.mts +12 -42
- package/dist/dispute/index.d.ts +12 -42
- package/dist/dispute/index.js +1 -1
- package/dist/dispute/index.mjs +1 -1
- package/dist/event/index.d.mts +773 -148
- package/dist/event/index.d.ts +773 -148
- package/dist/event/index.js +1 -1
- package/dist/event/index.mjs +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/notification/index.d.mts +11 -41
- package/dist/notification/index.d.ts +11 -41
- package/dist/notification/index.js +1 -1
- package/dist/notification/index.mjs +1 -1
- package/dist/payment/index.d.mts +15 -67
- package/dist/payment/index.d.ts +15 -67
- package/dist/payment/index.js +1 -1
- package/dist/payment/index.mjs +1 -1
- package/dist/streaming/index.d.mts +8 -42
- package/dist/streaming/index.d.ts +8 -42
- package/dist/streaming/index.js +1 -1
- package/dist/streaming/index.mjs +1 -1
- package/dist/user/index.d.mts +184 -304
- package/dist/user/index.d.ts +184 -304
- package/dist/user/index.js +1 -1
- package/dist/user/index.mjs +1 -1
- package/package.json +6 -5
- package/dist/chunk-6GDUDLP2.js +0 -2
- package/dist/chunk-6GDUDLP2.js.map +0 -1
- package/dist/chunk-6UTUVCOM.mjs +0 -2
- package/dist/chunk-6UTUVCOM.mjs.map +0 -1
- package/dist/chunk-6ZN2TPBZ.js +0 -2
- package/dist/chunk-6ZN2TPBZ.js.map +0 -1
- package/dist/chunk-726BT6I5.js +0 -2
- package/dist/chunk-726BT6I5.js.map +0 -1
- package/dist/chunk-C2QIE2HZ.js +0 -2
- package/dist/chunk-C2QIE2HZ.js.map +0 -1
- package/dist/chunk-CIV62KPR.mjs +0 -2
- package/dist/chunk-CIV62KPR.mjs.map +0 -1
- package/dist/chunk-DF4E66H2.mjs +0 -2
- package/dist/chunk-DF4E66H2.mjs.map +0 -1
- package/dist/chunk-F663RS3D.js +0 -2
- package/dist/chunk-F663RS3D.js.map +0 -1
- package/dist/chunk-GY7PCU2T.js +0 -2
- package/dist/chunk-GY7PCU2T.js.map +0 -1
- package/dist/chunk-HI6UMYA4.mjs +0 -2
- package/dist/chunk-HI6UMYA4.mjs.map +0 -1
- package/dist/chunk-IJ2PAFAX.js +0 -2
- package/dist/chunk-IJ2PAFAX.js.map +0 -1
- package/dist/chunk-NSBUBEZK.mjs +0 -2
- package/dist/chunk-NSBUBEZK.mjs.map +0 -1
- package/dist/chunk-PHGWWUP2.mjs +0 -2
- package/dist/chunk-PHGWWUP2.mjs.map +0 -1
- package/dist/chunk-T7C4AYVD.mjs +0 -2
- package/dist/chunk-T7C4AYVD.mjs.map +0 -1
- package/dist/chunk-UDHBQDRU.js +0 -2
- package/dist/chunk-UDHBQDRU.js.map +0 -1
- package/dist/chunk-WCT4N7NS.mjs +0 -2
- package/dist/chunk-WCT4N7NS.mjs.map +0 -1
- package/dist/chunk-WEET4HBJ.mjs +0 -2
- package/dist/chunk-WEET4HBJ.mjs.map +0 -1
- package/dist/chunk-ZFINSMCH.js +0 -2
- package/dist/chunk-ZFINSMCH.js.map +0 -1
package/dist/auth/index.d.mts
CHANGED
|
@@ -4,104 +4,60 @@ import { z } from 'zod';
|
|
|
4
4
|
* Zod schema for registration request.
|
|
5
5
|
*/
|
|
6
6
|
declare const RegisterRequestSchema: z.ZodObject<{
|
|
7
|
-
email: z.
|
|
7
|
+
email: z.ZodEmail;
|
|
8
8
|
password: z.ZodString;
|
|
9
9
|
firstName: z.ZodString;
|
|
10
10
|
lastName: z.ZodString;
|
|
11
|
-
role: z.ZodOptional<z.
|
|
11
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
12
12
|
readonly HOST: 1;
|
|
13
13
|
readonly PRODUCER: 2;
|
|
14
14
|
readonly VIEWER: 4;
|
|
15
15
|
}>>;
|
|
16
|
-
},
|
|
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
|
-
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
29
17
|
/**
|
|
30
18
|
* Zod schema for registration response.
|
|
31
19
|
*/
|
|
32
20
|
declare const RegisterResponseSchema: z.ZodObject<{
|
|
33
21
|
username: z.ZodString;
|
|
34
22
|
reference: z.ZodString;
|
|
35
|
-
role: z.ZodOptional<z.
|
|
23
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
36
24
|
readonly HOST: 1;
|
|
37
25
|
readonly PRODUCER: 2;
|
|
38
26
|
readonly VIEWER: 4;
|
|
39
27
|
}>>;
|
|
40
|
-
},
|
|
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
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
49
29
|
/**
|
|
50
30
|
* Zod schema for login request.
|
|
51
31
|
*/
|
|
52
32
|
declare const LoginRequestSchema: z.ZodObject<{
|
|
53
|
-
email: z.
|
|
33
|
+
email: z.ZodEmail;
|
|
54
34
|
password: z.ZodString;
|
|
55
|
-
role: z.ZodOptional<z.
|
|
35
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
56
36
|
readonly HOST: 1;
|
|
57
37
|
readonly PRODUCER: 2;
|
|
58
38
|
readonly VIEWER: 4;
|
|
59
39
|
}>>;
|
|
60
|
-
},
|
|
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
|
-
}>;
|
|
40
|
+
}, z.core.$strip>;
|
|
69
41
|
declare const VerifyOtpRequestSchema: z.ZodObject<{
|
|
70
42
|
otp: z.ZodString;
|
|
71
43
|
reference: z.ZodString;
|
|
72
|
-
type: z.ZodEnum<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}, {
|
|
78
|
-
type: "registration" | "passwordReset";
|
|
79
|
-
reference: string;
|
|
80
|
-
otp: string;
|
|
81
|
-
}>;
|
|
44
|
+
type: z.ZodEnum<{
|
|
45
|
+
registration: "registration";
|
|
46
|
+
passwordReset: "passwordReset";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strip>;
|
|
82
49
|
declare const ResendOtpRequestSchema: z.ZodObject<{
|
|
83
50
|
reference: z.ZodString;
|
|
84
|
-
type: z.ZodEnum<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
type: "registration" | "passwordReset";
|
|
90
|
-
reference: string;
|
|
91
|
-
}>;
|
|
51
|
+
type: z.ZodEnum<{
|
|
52
|
+
registration: "registration";
|
|
53
|
+
passwordReset: "passwordReset";
|
|
54
|
+
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
92
56
|
declare const VerifyOtpResponseSchema: z.ZodObject<{
|
|
93
57
|
isValid: z.ZodBoolean;
|
|
94
58
|
message: z.ZodString;
|
|
95
59
|
reference: z.ZodOptional<z.ZodString>;
|
|
96
|
-
},
|
|
97
|
-
message: string;
|
|
98
|
-
isValid: boolean;
|
|
99
|
-
reference?: string | undefined;
|
|
100
|
-
}, {
|
|
101
|
-
message: string;
|
|
102
|
-
isValid: boolean;
|
|
103
|
-
reference?: string | undefined;
|
|
104
|
-
}>;
|
|
60
|
+
}, z.core.$strip>;
|
|
105
61
|
/**
|
|
106
62
|
* Zod schema for login response.
|
|
107
63
|
*/
|
|
@@ -111,114 +67,56 @@ declare const LoginResponseSchema: z.ZodObject<{
|
|
|
111
67
|
IdToken: z.ZodString;
|
|
112
68
|
ExpiresIn: z.ZodNumber;
|
|
113
69
|
TokenType: z.ZodLiteral<"Bearer">;
|
|
114
|
-
},
|
|
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
|
-
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
127
71
|
/**
|
|
128
72
|
* Zod schema for refresh token request.
|
|
129
73
|
*/
|
|
130
74
|
declare const RefreshTokenRequestSchema: z.ZodObject<{
|
|
131
75
|
refreshToken: z.ZodString;
|
|
132
|
-
},
|
|
133
|
-
refreshToken: string;
|
|
134
|
-
}, {
|
|
135
|
-
refreshToken: string;
|
|
136
|
-
}>;
|
|
76
|
+
}, z.core.$strip>;
|
|
137
77
|
declare const LogoutRequestSchema: z.ZodObject<{
|
|
138
78
|
refreshToken: z.ZodString;
|
|
139
79
|
accessToken: z.ZodString;
|
|
140
|
-
},
|
|
141
|
-
refreshToken: string;
|
|
142
|
-
accessToken: string;
|
|
143
|
-
}, {
|
|
144
|
-
refreshToken: string;
|
|
145
|
-
accessToken: string;
|
|
146
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
147
81
|
/**
|
|
148
82
|
* Zod schema for forgot password request.
|
|
149
83
|
*/
|
|
150
84
|
declare const ForgotPasswordRequestSchema: z.ZodObject<{
|
|
151
|
-
email: z.
|
|
152
|
-
},
|
|
153
|
-
email: string;
|
|
154
|
-
}, {
|
|
155
|
-
email: string;
|
|
156
|
-
}>;
|
|
85
|
+
email: z.ZodEmail;
|
|
86
|
+
}, z.core.$strip>;
|
|
157
87
|
declare const ForgotPasswordResponseSchema: z.ZodObject<{
|
|
158
88
|
destination: z.ZodString;
|
|
159
89
|
deliveryMedium: z.ZodString;
|
|
160
90
|
attributeName: z.ZodString;
|
|
161
|
-
},
|
|
162
|
-
destination: string;
|
|
163
|
-
deliveryMedium: string;
|
|
164
|
-
attributeName: string;
|
|
165
|
-
}, {
|
|
166
|
-
destination: string;
|
|
167
|
-
deliveryMedium: string;
|
|
168
|
-
attributeName: string;
|
|
169
|
-
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
170
92
|
/**
|
|
171
93
|
* Zod schema for reset password request.
|
|
172
94
|
*/
|
|
173
95
|
declare const ResetPasswordRequestSchema: z.ZodObject<{
|
|
174
96
|
token: z.ZodString;
|
|
175
97
|
newPassword: z.ZodString;
|
|
176
|
-
},
|
|
177
|
-
token: string;
|
|
178
|
-
newPassword: string;
|
|
179
|
-
}, {
|
|
180
|
-
token: string;
|
|
181
|
-
newPassword: string;
|
|
182
|
-
}>;
|
|
98
|
+
}, z.core.$strip>;
|
|
183
99
|
/**
|
|
184
100
|
* Zod schema for change password request.
|
|
185
101
|
*/
|
|
186
102
|
declare const ChangePasswordRequestSchema: z.ZodObject<{
|
|
187
103
|
currentPassword: z.ZodString;
|
|
188
104
|
newPassword: z.ZodString;
|
|
189
|
-
},
|
|
190
|
-
newPassword: string;
|
|
191
|
-
currentPassword: string;
|
|
192
|
-
}, {
|
|
193
|
-
newPassword: string;
|
|
194
|
-
currentPassword: string;
|
|
195
|
-
}>;
|
|
105
|
+
}, z.core.$strip>;
|
|
196
106
|
/**
|
|
197
107
|
* Zod schema for AWS Cognito token payload.
|
|
198
108
|
*/
|
|
199
109
|
declare const CognitoTokenPayloadSchema: z.ZodObject<{
|
|
200
110
|
sub: z.ZodString;
|
|
201
|
-
email: z.
|
|
202
|
-
role: z.
|
|
111
|
+
email: z.ZodEmail;
|
|
112
|
+
role: z.ZodEnum<{
|
|
203
113
|
readonly HOST: 1;
|
|
204
114
|
readonly PRODUCER: 2;
|
|
205
115
|
readonly VIEWER: 4;
|
|
206
116
|
}>;
|
|
207
117
|
iat: z.ZodNumber;
|
|
208
118
|
exp: z.ZodNumber;
|
|
209
|
-
},
|
|
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
|
-
}>;
|
|
119
|
+
}, z.core.$strip>;
|
|
222
120
|
|
|
223
121
|
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
224
122
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -4,104 +4,60 @@ import { z } from 'zod';
|
|
|
4
4
|
* Zod schema for registration request.
|
|
5
5
|
*/
|
|
6
6
|
declare const RegisterRequestSchema: z.ZodObject<{
|
|
7
|
-
email: z.
|
|
7
|
+
email: z.ZodEmail;
|
|
8
8
|
password: z.ZodString;
|
|
9
9
|
firstName: z.ZodString;
|
|
10
10
|
lastName: z.ZodString;
|
|
11
|
-
role: z.ZodOptional<z.
|
|
11
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
12
12
|
readonly HOST: 1;
|
|
13
13
|
readonly PRODUCER: 2;
|
|
14
14
|
readonly VIEWER: 4;
|
|
15
15
|
}>>;
|
|
16
|
-
},
|
|
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
|
-
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
29
17
|
/**
|
|
30
18
|
* Zod schema for registration response.
|
|
31
19
|
*/
|
|
32
20
|
declare const RegisterResponseSchema: z.ZodObject<{
|
|
33
21
|
username: z.ZodString;
|
|
34
22
|
reference: z.ZodString;
|
|
35
|
-
role: z.ZodOptional<z.
|
|
23
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
36
24
|
readonly HOST: 1;
|
|
37
25
|
readonly PRODUCER: 2;
|
|
38
26
|
readonly VIEWER: 4;
|
|
39
27
|
}>>;
|
|
40
|
-
},
|
|
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
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
49
29
|
/**
|
|
50
30
|
* Zod schema for login request.
|
|
51
31
|
*/
|
|
52
32
|
declare const LoginRequestSchema: z.ZodObject<{
|
|
53
|
-
email: z.
|
|
33
|
+
email: z.ZodEmail;
|
|
54
34
|
password: z.ZodString;
|
|
55
|
-
role: z.ZodOptional<z.
|
|
35
|
+
role: z.ZodOptional<z.ZodEnum<{
|
|
56
36
|
readonly HOST: 1;
|
|
57
37
|
readonly PRODUCER: 2;
|
|
58
38
|
readonly VIEWER: 4;
|
|
59
39
|
}>>;
|
|
60
|
-
},
|
|
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
|
-
}>;
|
|
40
|
+
}, z.core.$strip>;
|
|
69
41
|
declare const VerifyOtpRequestSchema: z.ZodObject<{
|
|
70
42
|
otp: z.ZodString;
|
|
71
43
|
reference: z.ZodString;
|
|
72
|
-
type: z.ZodEnum<
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}, {
|
|
78
|
-
type: "registration" | "passwordReset";
|
|
79
|
-
reference: string;
|
|
80
|
-
otp: string;
|
|
81
|
-
}>;
|
|
44
|
+
type: z.ZodEnum<{
|
|
45
|
+
registration: "registration";
|
|
46
|
+
passwordReset: "passwordReset";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.core.$strip>;
|
|
82
49
|
declare const ResendOtpRequestSchema: z.ZodObject<{
|
|
83
50
|
reference: z.ZodString;
|
|
84
|
-
type: z.ZodEnum<
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
},
|
|
89
|
-
type: "registration" | "passwordReset";
|
|
90
|
-
reference: string;
|
|
91
|
-
}>;
|
|
51
|
+
type: z.ZodEnum<{
|
|
52
|
+
registration: "registration";
|
|
53
|
+
passwordReset: "passwordReset";
|
|
54
|
+
}>;
|
|
55
|
+
}, z.core.$strip>;
|
|
92
56
|
declare const VerifyOtpResponseSchema: z.ZodObject<{
|
|
93
57
|
isValid: z.ZodBoolean;
|
|
94
58
|
message: z.ZodString;
|
|
95
59
|
reference: z.ZodOptional<z.ZodString>;
|
|
96
|
-
},
|
|
97
|
-
message: string;
|
|
98
|
-
isValid: boolean;
|
|
99
|
-
reference?: string | undefined;
|
|
100
|
-
}, {
|
|
101
|
-
message: string;
|
|
102
|
-
isValid: boolean;
|
|
103
|
-
reference?: string | undefined;
|
|
104
|
-
}>;
|
|
60
|
+
}, z.core.$strip>;
|
|
105
61
|
/**
|
|
106
62
|
* Zod schema for login response.
|
|
107
63
|
*/
|
|
@@ -111,114 +67,56 @@ declare const LoginResponseSchema: z.ZodObject<{
|
|
|
111
67
|
IdToken: z.ZodString;
|
|
112
68
|
ExpiresIn: z.ZodNumber;
|
|
113
69
|
TokenType: z.ZodLiteral<"Bearer">;
|
|
114
|
-
},
|
|
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
|
-
}>;
|
|
70
|
+
}, z.core.$strip>;
|
|
127
71
|
/**
|
|
128
72
|
* Zod schema for refresh token request.
|
|
129
73
|
*/
|
|
130
74
|
declare const RefreshTokenRequestSchema: z.ZodObject<{
|
|
131
75
|
refreshToken: z.ZodString;
|
|
132
|
-
},
|
|
133
|
-
refreshToken: string;
|
|
134
|
-
}, {
|
|
135
|
-
refreshToken: string;
|
|
136
|
-
}>;
|
|
76
|
+
}, z.core.$strip>;
|
|
137
77
|
declare const LogoutRequestSchema: z.ZodObject<{
|
|
138
78
|
refreshToken: z.ZodString;
|
|
139
79
|
accessToken: z.ZodString;
|
|
140
|
-
},
|
|
141
|
-
refreshToken: string;
|
|
142
|
-
accessToken: string;
|
|
143
|
-
}, {
|
|
144
|
-
refreshToken: string;
|
|
145
|
-
accessToken: string;
|
|
146
|
-
}>;
|
|
80
|
+
}, z.core.$strip>;
|
|
147
81
|
/**
|
|
148
82
|
* Zod schema for forgot password request.
|
|
149
83
|
*/
|
|
150
84
|
declare const ForgotPasswordRequestSchema: z.ZodObject<{
|
|
151
|
-
email: z.
|
|
152
|
-
},
|
|
153
|
-
email: string;
|
|
154
|
-
}, {
|
|
155
|
-
email: string;
|
|
156
|
-
}>;
|
|
85
|
+
email: z.ZodEmail;
|
|
86
|
+
}, z.core.$strip>;
|
|
157
87
|
declare const ForgotPasswordResponseSchema: z.ZodObject<{
|
|
158
88
|
destination: z.ZodString;
|
|
159
89
|
deliveryMedium: z.ZodString;
|
|
160
90
|
attributeName: z.ZodString;
|
|
161
|
-
},
|
|
162
|
-
destination: string;
|
|
163
|
-
deliveryMedium: string;
|
|
164
|
-
attributeName: string;
|
|
165
|
-
}, {
|
|
166
|
-
destination: string;
|
|
167
|
-
deliveryMedium: string;
|
|
168
|
-
attributeName: string;
|
|
169
|
-
}>;
|
|
91
|
+
}, z.core.$strip>;
|
|
170
92
|
/**
|
|
171
93
|
* Zod schema for reset password request.
|
|
172
94
|
*/
|
|
173
95
|
declare const ResetPasswordRequestSchema: z.ZodObject<{
|
|
174
96
|
token: z.ZodString;
|
|
175
97
|
newPassword: z.ZodString;
|
|
176
|
-
},
|
|
177
|
-
token: string;
|
|
178
|
-
newPassword: string;
|
|
179
|
-
}, {
|
|
180
|
-
token: string;
|
|
181
|
-
newPassword: string;
|
|
182
|
-
}>;
|
|
98
|
+
}, z.core.$strip>;
|
|
183
99
|
/**
|
|
184
100
|
* Zod schema for change password request.
|
|
185
101
|
*/
|
|
186
102
|
declare const ChangePasswordRequestSchema: z.ZodObject<{
|
|
187
103
|
currentPassword: z.ZodString;
|
|
188
104
|
newPassword: z.ZodString;
|
|
189
|
-
},
|
|
190
|
-
newPassword: string;
|
|
191
|
-
currentPassword: string;
|
|
192
|
-
}, {
|
|
193
|
-
newPassword: string;
|
|
194
|
-
currentPassword: string;
|
|
195
|
-
}>;
|
|
105
|
+
}, z.core.$strip>;
|
|
196
106
|
/**
|
|
197
107
|
* Zod schema for AWS Cognito token payload.
|
|
198
108
|
*/
|
|
199
109
|
declare const CognitoTokenPayloadSchema: z.ZodObject<{
|
|
200
110
|
sub: z.ZodString;
|
|
201
|
-
email: z.
|
|
202
|
-
role: z.
|
|
111
|
+
email: z.ZodEmail;
|
|
112
|
+
role: z.ZodEnum<{
|
|
203
113
|
readonly HOST: 1;
|
|
204
114
|
readonly PRODUCER: 2;
|
|
205
115
|
readonly VIEWER: 4;
|
|
206
116
|
}>;
|
|
207
117
|
iat: z.ZodNumber;
|
|
208
118
|
exp: z.ZodNumber;
|
|
209
|
-
},
|
|
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
|
-
}>;
|
|
119
|
+
}, z.core.$strip>;
|
|
222
120
|
|
|
223
121
|
type RegisterRequest = z.infer<typeof RegisterRequestSchema>;
|
|
224
122
|
type LoginRequest = z.infer<typeof LoginRequestSchema>;
|
package/dist/auth/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
'use strict';var
|
|
1
|
+
'use strict';var chunk26JAML7N_js=require('../chunk-26JAML7N.js');require('../chunk-UNCRGZ3F.js'),require('../chunk-I62TAYOH.js');Object.defineProperty(exports,"ChangePasswordRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.m}});Object.defineProperty(exports,"CognitoTokenPayloadSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.n}});Object.defineProperty(exports,"ForgotPasswordRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.j}});Object.defineProperty(exports,"ForgotPasswordResponseSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.k}});Object.defineProperty(exports,"LoginRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.c}});Object.defineProperty(exports,"LoginResponseSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.g}});Object.defineProperty(exports,"LogoutRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.i}});Object.defineProperty(exports,"RefreshTokenRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.h}});Object.defineProperty(exports,"RegisterRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.a}});Object.defineProperty(exports,"RegisterResponseSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.b}});Object.defineProperty(exports,"ResendOtpRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.e}});Object.defineProperty(exports,"ResetPasswordRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.l}});Object.defineProperty(exports,"VerifyOtpRequestSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.d}});Object.defineProperty(exports,"VerifyOtpResponseSchema",{enumerable:true,get:function(){return chunk26JAML7N_js.f}});//# sourceMappingURL=index.js.map
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/auth/index.mjs
CHANGED
|
@@ -1,2 +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-
|
|
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-HKU2VYQL.mjs';import'../chunk-JY2QSZFF.mjs';import'../chunk-2HCYHD66.mjs';//# sourceMappingURL=index.mjs.map
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|