@kl1/contracts 1.2.51-uat → 1.2.52-uat
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/api-contracts/src/auth/index.d.ts +65 -305
- package/dist/api-contracts/src/auth/index.d.ts.map +1 -1
- package/dist/api-contracts/src/contract.d.ts +0 -239
- package/dist/api-contracts/src/contract.d.ts.map +1 -1
- package/dist/index.js +2483 -2544
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2483 -2544
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,238 +1,39 @@
|
|
1
|
-
import { z } from 'zod';
|
2
1
|
export declare const authContract: {
|
3
|
-
refreshToken: {
|
4
|
-
body: null;
|
5
|
-
summary: "Refresh token";
|
6
|
-
method: "POST";
|
7
|
-
responses: {
|
8
|
-
200: z.ZodObject<{
|
9
|
-
requestId: z.ZodString;
|
10
|
-
accessToken: z.ZodString;
|
11
|
-
refreshToken: z.ZodString;
|
12
|
-
}, "strip", z.ZodTypeAny, {
|
13
|
-
requestId: string;
|
14
|
-
refreshToken: string;
|
15
|
-
accessToken: string;
|
16
|
-
}, {
|
17
|
-
requestId: string;
|
18
|
-
refreshToken: string;
|
19
|
-
accessToken: string;
|
20
|
-
}>;
|
21
|
-
401: z.ZodObject<{
|
22
|
-
message: z.ZodString;
|
23
|
-
error: z.ZodAny;
|
24
|
-
}, "strip", z.ZodTypeAny, {
|
25
|
-
message: string;
|
26
|
-
error?: any;
|
27
|
-
}, {
|
28
|
-
message: string;
|
29
|
-
error?: any;
|
30
|
-
}>;
|
31
|
-
404: z.ZodObject<{
|
32
|
-
message: z.ZodString;
|
33
|
-
error: z.ZodAny;
|
34
|
-
}, "strip", z.ZodTypeAny, {
|
35
|
-
message: string;
|
36
|
-
error?: any;
|
37
|
-
}, {
|
38
|
-
message: string;
|
39
|
-
error?: any;
|
40
|
-
}>;
|
41
|
-
422: z.ZodObject<{
|
42
|
-
message: z.ZodString;
|
43
|
-
error: z.ZodAny;
|
44
|
-
}, "strip", z.ZodTypeAny, {
|
45
|
-
message: string;
|
46
|
-
error?: any;
|
47
|
-
}, {
|
48
|
-
message: string;
|
49
|
-
error?: any;
|
50
|
-
}>;
|
51
|
-
};
|
52
|
-
path: "auth/refresh-token";
|
53
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
54
|
-
'x-tenant': z.ZodString;
|
55
|
-
'x-service-token': z.ZodString;
|
56
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
57
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
59
|
-
'x-tenant': string;
|
60
|
-
'x-service-token': string;
|
61
|
-
'x-client-timezone': string;
|
62
|
-
'x-code'?: string | undefined;
|
63
|
-
}, {
|
64
|
-
'x-tenant': string;
|
65
|
-
'x-service-token': string;
|
66
|
-
'x-code'?: string | undefined;
|
67
|
-
'x-client-timezone'?: string | undefined;
|
68
|
-
}>>>;
|
69
|
-
};
|
70
|
-
exchangeToken: {
|
71
|
-
body: null;
|
72
|
-
summary: "Exchange jwt token";
|
73
|
-
method: "POST";
|
74
|
-
responses: {
|
75
|
-
200: z.ZodObject<{
|
76
|
-
requestId: z.ZodString;
|
77
|
-
accessToken: z.ZodString;
|
78
|
-
refreshToken: z.ZodString;
|
79
|
-
}, "strip", z.ZodTypeAny, {
|
80
|
-
requestId: string;
|
81
|
-
refreshToken: string;
|
82
|
-
accessToken: string;
|
83
|
-
}, {
|
84
|
-
requestId: string;
|
85
|
-
refreshToken: string;
|
86
|
-
accessToken: string;
|
87
|
-
}>;
|
88
|
-
401: z.ZodObject<{
|
89
|
-
message: z.ZodString;
|
90
|
-
error: z.ZodAny;
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
92
|
-
message: string;
|
93
|
-
error?: any;
|
94
|
-
}, {
|
95
|
-
message: string;
|
96
|
-
error?: any;
|
97
|
-
}>;
|
98
|
-
404: z.ZodObject<{
|
99
|
-
message: z.ZodString;
|
100
|
-
error: z.ZodAny;
|
101
|
-
}, "strip", z.ZodTypeAny, {
|
102
|
-
message: string;
|
103
|
-
error?: any;
|
104
|
-
}, {
|
105
|
-
message: string;
|
106
|
-
error?: any;
|
107
|
-
}>;
|
108
|
-
422: z.ZodObject<{
|
109
|
-
message: z.ZodString;
|
110
|
-
error: z.ZodAny;
|
111
|
-
}, "strip", z.ZodTypeAny, {
|
112
|
-
message: string;
|
113
|
-
error?: any;
|
114
|
-
}, {
|
115
|
-
message: string;
|
116
|
-
error?: any;
|
117
|
-
}>;
|
118
|
-
};
|
119
|
-
path: "auth/exchange-token";
|
120
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
121
|
-
'x-tenant': z.ZodString;
|
122
|
-
'x-service-token': z.ZodString;
|
123
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
124
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
125
|
-
}, "strip", z.ZodTypeAny, {
|
126
|
-
'x-tenant': string;
|
127
|
-
'x-service-token': string;
|
128
|
-
'x-client-timezone': string;
|
129
|
-
'x-code'?: string | undefined;
|
130
|
-
}, {
|
131
|
-
'x-tenant': string;
|
132
|
-
'x-service-token': string;
|
133
|
-
'x-code'?: string | undefined;
|
134
|
-
'x-client-timezone'?: string | undefined;
|
135
|
-
}>>>;
|
136
|
-
};
|
137
|
-
logout: {
|
138
|
-
body: null;
|
139
|
-
summary: "Logout";
|
140
|
-
method: "POST";
|
141
|
-
responses: {
|
142
|
-
200: z.ZodObject<{
|
143
|
-
requestId: z.ZodString;
|
144
|
-
message: z.ZodString;
|
145
|
-
}, "strip", z.ZodTypeAny, {
|
146
|
-
message: string;
|
147
|
-
requestId: string;
|
148
|
-
}, {
|
149
|
-
message: string;
|
150
|
-
requestId: string;
|
151
|
-
}>;
|
152
|
-
401: z.ZodObject<{
|
153
|
-
message: z.ZodString;
|
154
|
-
error: z.ZodAny;
|
155
|
-
}, "strip", z.ZodTypeAny, {
|
156
|
-
message: string;
|
157
|
-
error?: any;
|
158
|
-
}, {
|
159
|
-
message: string;
|
160
|
-
error?: any;
|
161
|
-
}>;
|
162
|
-
404: z.ZodObject<{
|
163
|
-
message: z.ZodString;
|
164
|
-
error: z.ZodAny;
|
165
|
-
}, "strip", z.ZodTypeAny, {
|
166
|
-
message: string;
|
167
|
-
error?: any;
|
168
|
-
}, {
|
169
|
-
message: string;
|
170
|
-
error?: any;
|
171
|
-
}>;
|
172
|
-
422: z.ZodObject<{
|
173
|
-
message: z.ZodString;
|
174
|
-
error: z.ZodAny;
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
176
|
-
message: string;
|
177
|
-
error?: any;
|
178
|
-
}, {
|
179
|
-
message: string;
|
180
|
-
error?: any;
|
181
|
-
}>;
|
182
|
-
};
|
183
|
-
path: "auth/logout";
|
184
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
185
|
-
'x-tenant': z.ZodString;
|
186
|
-
'x-service-token': z.ZodString;
|
187
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
188
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
189
|
-
}, "strip", z.ZodTypeAny, {
|
190
|
-
'x-tenant': string;
|
191
|
-
'x-service-token': string;
|
192
|
-
'x-client-timezone': string;
|
193
|
-
'x-code'?: string | undefined;
|
194
|
-
}, {
|
195
|
-
'x-tenant': string;
|
196
|
-
'x-service-token': string;
|
197
|
-
'x-code'?: string | undefined;
|
198
|
-
'x-client-timezone'?: string | undefined;
|
199
|
-
}>>>;
|
200
|
-
};
|
201
2
|
me: {
|
202
3
|
summary: "Get current user";
|
203
4
|
method: "GET";
|
204
5
|
responses: {
|
205
|
-
200:
|
206
|
-
requestId:
|
207
|
-
user:
|
208
|
-
id:
|
209
|
-
createdAt:
|
210
|
-
updatedAt:
|
211
|
-
deletedAt:
|
212
|
-
name:
|
213
|
-
email:
|
214
|
-
emailVerifiedAt:
|
215
|
-
password:
|
216
|
-
address:
|
217
|
-
phone:
|
218
|
-
notificationCount:
|
219
|
-
roles:
|
220
|
-
id:
|
221
|
-
createdAt:
|
222
|
-
updatedAt:
|
223
|
-
deletedAt:
|
224
|
-
systemName:
|
225
|
-
displayName:
|
226
|
-
description:
|
227
|
-
permissions:
|
228
|
-
id:
|
229
|
-
createdAt:
|
230
|
-
updatedAt:
|
231
|
-
deletedAt:
|
232
|
-
systemName:
|
233
|
-
displayName:
|
234
|
-
description:
|
235
|
-
}, "strip",
|
6
|
+
200: import("zod").ZodObject<{
|
7
|
+
requestId: import("zod").ZodString;
|
8
|
+
user: import("zod").ZodObject<{
|
9
|
+
id: import("zod").ZodString;
|
10
|
+
createdAt: import("zod").ZodDate;
|
11
|
+
updatedAt: import("zod").ZodDate;
|
12
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
13
|
+
name: import("zod").ZodString;
|
14
|
+
email: import("zod").ZodString;
|
15
|
+
emailVerifiedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
16
|
+
password: import("zod").ZodString;
|
17
|
+
address: import("zod").ZodNullable<import("zod").ZodString>;
|
18
|
+
phone: import("zod").ZodNullable<import("zod").ZodString>;
|
19
|
+
notificationCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
20
|
+
roles: import("zod").ZodArray<import("zod").ZodObject<{
|
21
|
+
id: import("zod").ZodString;
|
22
|
+
createdAt: import("zod").ZodDate;
|
23
|
+
updatedAt: import("zod").ZodDate;
|
24
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
25
|
+
systemName: import("zod").ZodString;
|
26
|
+
displayName: import("zod").ZodString;
|
27
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
28
|
+
permissions: import("zod").ZodArray<import("zod").ZodObject<{
|
29
|
+
id: import("zod").ZodString;
|
30
|
+
createdAt: import("zod").ZodDate;
|
31
|
+
updatedAt: import("zod").ZodDate;
|
32
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
33
|
+
systemName: import("zod").ZodString;
|
34
|
+
displayName: import("zod").ZodString;
|
35
|
+
description: import("zod").ZodNullable<import("zod").ZodString>;
|
36
|
+
}, "strip", import("zod").ZodTypeAny, {
|
236
37
|
id: string;
|
237
38
|
description: string | null;
|
238
39
|
createdAt: Date;
|
@@ -249,7 +50,7 @@ export declare const authContract: {
|
|
249
50
|
systemName: string;
|
250
51
|
displayName: string;
|
251
52
|
}>, "many">;
|
252
|
-
}, "strip",
|
53
|
+
}, "strip", import("zod").ZodTypeAny, {
|
253
54
|
id: string;
|
254
55
|
description: string | null;
|
255
56
|
createdAt: Date;
|
@@ -284,19 +85,19 @@ export declare const authContract: {
|
|
284
85
|
displayName: string;
|
285
86
|
}[];
|
286
87
|
}>, "many">;
|
287
|
-
extension:
|
288
|
-
id:
|
289
|
-
createdAt:
|
290
|
-
updatedAt:
|
291
|
-
deletedAt:
|
292
|
-
userId:
|
293
|
-
sipServerUrl:
|
294
|
-
sipUserName:
|
295
|
-
webphoneLoginUser:
|
296
|
-
extensionId:
|
297
|
-
extensionName:
|
298
|
-
telephonySignature:
|
299
|
-
}, "strip",
|
88
|
+
extension: import("zod").ZodObject<{
|
89
|
+
id: import("zod").ZodString;
|
90
|
+
createdAt: import("zod").ZodDate;
|
91
|
+
updatedAt: import("zod").ZodDate;
|
92
|
+
deletedAt: import("zod").ZodNullable<import("zod").ZodDate>;
|
93
|
+
userId: import("zod").ZodNullable<import("zod").ZodString>;
|
94
|
+
sipServerUrl: import("zod").ZodString;
|
95
|
+
sipUserName: import("zod").ZodString;
|
96
|
+
webphoneLoginUser: import("zod").ZodString;
|
97
|
+
extensionId: import("zod").ZodNullable<import("zod").ZodString>;
|
98
|
+
extensionName: import("zod").ZodString;
|
99
|
+
telephonySignature: import("zod").ZodNullable<import("zod").ZodString>;
|
100
|
+
}, "strip", import("zod").ZodTypeAny, {
|
300
101
|
id: string;
|
301
102
|
createdAt: Date;
|
302
103
|
updatedAt: Date;
|
@@ -321,7 +122,7 @@ export declare const authContract: {
|
|
321
122
|
extensionName: string;
|
322
123
|
telephonySignature: string | null;
|
323
124
|
}>;
|
324
|
-
}, "strip",
|
125
|
+
}, "strip", import("zod").ZodTypeAny, {
|
325
126
|
id: string;
|
326
127
|
address: string | null;
|
327
128
|
name: string;
|
@@ -408,7 +209,7 @@ export declare const authContract: {
|
|
408
209
|
telephonySignature: string | null;
|
409
210
|
};
|
410
211
|
}>;
|
411
|
-
}, "strip",
|
212
|
+
}, "strip", import("zod").ZodTypeAny, {
|
412
213
|
user: {
|
413
214
|
id: string;
|
414
215
|
address: string | null;
|
@@ -501,30 +302,30 @@ export declare const authContract: {
|
|
501
302
|
};
|
502
303
|
requestId: string;
|
503
304
|
}>;
|
504
|
-
401:
|
505
|
-
message:
|
506
|
-
error:
|
507
|
-
}, "strip",
|
305
|
+
401: import("zod").ZodObject<{
|
306
|
+
message: import("zod").ZodString;
|
307
|
+
error: import("zod").ZodAny;
|
308
|
+
}, "strip", import("zod").ZodTypeAny, {
|
508
309
|
message: string;
|
509
310
|
error?: any;
|
510
311
|
}, {
|
511
312
|
message: string;
|
512
313
|
error?: any;
|
513
314
|
}>;
|
514
|
-
404:
|
515
|
-
message:
|
516
|
-
error:
|
517
|
-
}, "strip",
|
315
|
+
404: import("zod").ZodObject<{
|
316
|
+
message: import("zod").ZodString;
|
317
|
+
error: import("zod").ZodAny;
|
318
|
+
}, "strip", import("zod").ZodTypeAny, {
|
518
319
|
message: string;
|
519
320
|
error?: any;
|
520
321
|
}, {
|
521
322
|
message: string;
|
522
323
|
error?: any;
|
523
324
|
}>;
|
524
|
-
422:
|
525
|
-
message:
|
526
|
-
error:
|
527
|
-
}, "strip",
|
325
|
+
422: import("zod").ZodObject<{
|
326
|
+
message: import("zod").ZodString;
|
327
|
+
error: import("zod").ZodAny;
|
328
|
+
}, "strip", import("zod").ZodTypeAny, {
|
528
329
|
message: string;
|
529
330
|
error?: any;
|
530
331
|
}, {
|
@@ -533,53 +334,12 @@ export declare const authContract: {
|
|
533
334
|
}>;
|
534
335
|
};
|
535
336
|
path: "auth/me";
|
536
|
-
headers:
|
537
|
-
'x-tenant':
|
538
|
-
'x-service-token':
|
539
|
-
'x-code':
|
540
|
-
'x-client-timezone':
|
541
|
-
}, "strip",
|
542
|
-
'x-tenant': string;
|
543
|
-
'x-service-token': string;
|
544
|
-
'x-client-timezone': string;
|
545
|
-
'x-code'?: string | undefined;
|
546
|
-
}, {
|
547
|
-
'x-tenant': string;
|
548
|
-
'x-service-token': string;
|
549
|
-
'x-code'?: string | undefined;
|
550
|
-
'x-client-timezone'?: string | undefined;
|
551
|
-
}>>>;
|
552
|
-
};
|
553
|
-
getAuthUserRole: {
|
554
|
-
summary: "Get role by auth user which mean current login user roles";
|
555
|
-
method: "GET";
|
556
|
-
responses: {
|
557
|
-
200: z.ZodArray<z.ZodString, "many">;
|
558
|
-
400: z.ZodObject<{
|
559
|
-
message: z.ZodString;
|
560
|
-
}, "strip", z.ZodTypeAny, {
|
561
|
-
message: string;
|
562
|
-
}, {
|
563
|
-
message: string;
|
564
|
-
}>;
|
565
|
-
401: z.ZodObject<{
|
566
|
-
message: z.ZodString;
|
567
|
-
error: z.ZodAny;
|
568
|
-
}, "strip", z.ZodTypeAny, {
|
569
|
-
message: string;
|
570
|
-
error?: any;
|
571
|
-
}, {
|
572
|
-
message: string;
|
573
|
-
error?: any;
|
574
|
-
}>;
|
575
|
-
};
|
576
|
-
path: "auth/user/role";
|
577
|
-
headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
578
|
-
'x-tenant': z.ZodString;
|
579
|
-
'x-service-token': z.ZodString;
|
580
|
-
'x-code': z.ZodOptional<z.ZodString>;
|
581
|
-
'x-client-timezone': z.ZodDefault<z.ZodString>;
|
582
|
-
}, "strip", z.ZodTypeAny, {
|
337
|
+
headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
|
338
|
+
'x-tenant': import("zod").ZodString;
|
339
|
+
'x-service-token': import("zod").ZodString;
|
340
|
+
'x-code': import("zod").ZodOptional<import("zod").ZodString>;
|
341
|
+
'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
|
342
|
+
}, "strip", import("zod").ZodTypeAny, {
|
583
343
|
'x-tenant': string;
|
584
344
|
'x-service-token': string;
|
585
345
|
'x-client-timezone': string;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/auth/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/auth/index.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkBxB,CAAC"}
|