@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.
@@ -1,203 +1,5 @@
1
1
  export declare const apiContract: {
2
2
  auth: {
3
- refreshToken: {
4
- body: null;
5
- summary: "Refresh token";
6
- method: "POST";
7
- responses: {
8
- 200: import("zod").ZodObject<{
9
- requestId: import("zod").ZodString;
10
- accessToken: import("zod").ZodString;
11
- refreshToken: import("zod").ZodString;
12
- }, "strip", import("zod").ZodTypeAny, {
13
- requestId: string;
14
- refreshToken: string;
15
- accessToken: string;
16
- }, {
17
- requestId: string;
18
- refreshToken: string;
19
- accessToken: string;
20
- }>;
21
- 401: import("zod").ZodObject<{
22
- message: import("zod").ZodString;
23
- error: import("zod").ZodAny;
24
- }, "strip", import("zod").ZodTypeAny, {
25
- message: string;
26
- error?: any;
27
- }, {
28
- message: string;
29
- error?: any;
30
- }>;
31
- 404: import("zod").ZodObject<{
32
- message: import("zod").ZodString;
33
- error: import("zod").ZodAny;
34
- }, "strip", import("zod").ZodTypeAny, {
35
- message: string;
36
- error?: any;
37
- }, {
38
- message: string;
39
- error?: any;
40
- }>;
41
- 422: import("zod").ZodObject<{
42
- message: import("zod").ZodString;
43
- error: import("zod").ZodAny;
44
- }, "strip", import("zod").ZodTypeAny, {
45
- message: string;
46
- error?: any;
47
- }, {
48
- message: string;
49
- error?: any;
50
- }>;
51
- };
52
- path: "auth/refresh-token";
53
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
54
- 'x-tenant': import("zod").ZodString;
55
- 'x-service-token': import("zod").ZodString;
56
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
57
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
58
- }, "strip", import("zod").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: import("zod").ZodObject<{
76
- requestId: import("zod").ZodString;
77
- accessToken: import("zod").ZodString;
78
- refreshToken: import("zod").ZodString;
79
- }, "strip", import("zod").ZodTypeAny, {
80
- requestId: string;
81
- refreshToken: string;
82
- accessToken: string;
83
- }, {
84
- requestId: string;
85
- refreshToken: string;
86
- accessToken: string;
87
- }>;
88
- 401: import("zod").ZodObject<{
89
- message: import("zod").ZodString;
90
- error: import("zod").ZodAny;
91
- }, "strip", import("zod").ZodTypeAny, {
92
- message: string;
93
- error?: any;
94
- }, {
95
- message: string;
96
- error?: any;
97
- }>;
98
- 404: import("zod").ZodObject<{
99
- message: import("zod").ZodString;
100
- error: import("zod").ZodAny;
101
- }, "strip", import("zod").ZodTypeAny, {
102
- message: string;
103
- error?: any;
104
- }, {
105
- message: string;
106
- error?: any;
107
- }>;
108
- 422: import("zod").ZodObject<{
109
- message: import("zod").ZodString;
110
- error: import("zod").ZodAny;
111
- }, "strip", import("zod").ZodTypeAny, {
112
- message: string;
113
- error?: any;
114
- }, {
115
- message: string;
116
- error?: any;
117
- }>;
118
- };
119
- path: "auth/exchange-token";
120
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
121
- 'x-tenant': import("zod").ZodString;
122
- 'x-service-token': import("zod").ZodString;
123
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
124
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
125
- }, "strip", import("zod").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: import("zod").ZodObject<{
143
- requestId: import("zod").ZodString;
144
- message: import("zod").ZodString;
145
- }, "strip", import("zod").ZodTypeAny, {
146
- message: string;
147
- requestId: string;
148
- }, {
149
- message: string;
150
- requestId: string;
151
- }>;
152
- 401: import("zod").ZodObject<{
153
- message: import("zod").ZodString;
154
- error: import("zod").ZodAny;
155
- }, "strip", import("zod").ZodTypeAny, {
156
- message: string;
157
- error?: any;
158
- }, {
159
- message: string;
160
- error?: any;
161
- }>;
162
- 404: import("zod").ZodObject<{
163
- message: import("zod").ZodString;
164
- error: import("zod").ZodAny;
165
- }, "strip", import("zod").ZodTypeAny, {
166
- message: string;
167
- error?: any;
168
- }, {
169
- message: string;
170
- error?: any;
171
- }>;
172
- 422: import("zod").ZodObject<{
173
- message: import("zod").ZodString;
174
- error: import("zod").ZodAny;
175
- }, "strip", import("zod").ZodTypeAny, {
176
- message: string;
177
- error?: any;
178
- }, {
179
- message: string;
180
- error?: any;
181
- }>;
182
- };
183
- path: "auth/logout";
184
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
185
- 'x-tenant': import("zod").ZodString;
186
- 'x-service-token': import("zod").ZodString;
187
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
188
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
189
- }, "strip", import("zod").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
3
  me: {
202
4
  summary: "Get current user";
203
5
  method: "GET";
@@ -550,47 +352,6 @@ export declare const apiContract: {
550
352
  'x-client-timezone'?: string | undefined;
551
353
  }>>>;
552
354
  };
553
- getAuthUserRole: {
554
- summary: "Get role by auth user which mean current login user roles";
555
- method: "GET";
556
- responses: {
557
- 200: import("zod").ZodArray<import("zod").ZodString, "many">;
558
- 400: import("zod").ZodObject<{
559
- message: import("zod").ZodString;
560
- }, "strip", import("zod").ZodTypeAny, {
561
- message: string;
562
- }, {
563
- message: string;
564
- }>;
565
- 401: import("zod").ZodObject<{
566
- message: import("zod").ZodString;
567
- error: import("zod").ZodAny;
568
- }, "strip", import("zod").ZodTypeAny, {
569
- message: string;
570
- error?: any;
571
- }, {
572
- message: string;
573
- error?: any;
574
- }>;
575
- };
576
- path: "auth/user/role";
577
- headers: import("zod").ZodNullable<import("zod").ZodOptional<import("zod").ZodObject<{
578
- 'x-tenant': import("zod").ZodString;
579
- 'x-service-token': import("zod").ZodString;
580
- 'x-code': import("zod").ZodOptional<import("zod").ZodString>;
581
- 'x-client-timezone': import("zod").ZodDefault<import("zod").ZodString>;
582
- }, "strip", import("zod").ZodTypeAny, {
583
- 'x-tenant': string;
584
- 'x-service-token': string;
585
- 'x-client-timezone': string;
586
- 'x-code'?: string | undefined;
587
- }, {
588
- 'x-tenant': string;
589
- 'x-service-token': string;
590
- 'x-code'?: string | undefined;
591
- 'x-client-timezone'?: string | undefined;
592
- }>>>;
593
- };
594
355
  };
595
356
  cxLog: {
596
357
  findAll: {