@kl1/contracts 1.0.0 → 1.0.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.
Files changed (106) hide show
  1. package/dist/index.js +1493 -496
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +1487 -492
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/src/attribute/index.d.ts +527 -65
  6. package/dist/src/attribute/index.d.ts.map +1 -1
  7. package/dist/src/attribute/schema.d.ts +91 -11
  8. package/dist/src/attribute/schema.d.ts.map +1 -1
  9. package/dist/src/attribute/validation.d.ts +13 -16
  10. package/dist/src/attribute/validation.d.ts.map +1 -1
  11. package/dist/src/attribute-option/schema.d.ts +5 -5
  12. package/dist/src/auth/index.d.ts +64 -29
  13. package/dist/src/auth/index.d.ts.map +1 -1
  14. package/dist/src/base-contract.d.ts +6 -6
  15. package/dist/src/base-contract.d.ts.map +1 -1
  16. package/dist/src/call-log/schema.d.ts +5 -5
  17. package/dist/src/call-log/validation.d.ts +2 -2
  18. package/dist/src/category/index.d.ts +193 -109
  19. package/dist/src/category/index.d.ts.map +1 -1
  20. package/dist/src/category/schema.d.ts +24 -2
  21. package/dist/src/category/schema.d.ts.map +1 -1
  22. package/dist/src/category/validation.d.ts +4 -4
  23. package/dist/src/chat/index.d.ts +2111 -0
  24. package/dist/src/chat/index.d.ts.map +1 -0
  25. package/dist/src/chat/schema.d.ts +1742 -0
  26. package/dist/src/chat/schema.d.ts.map +1 -0
  27. package/dist/src/chat/validation.d.ts +355 -0
  28. package/dist/src/chat/validation.d.ts.map +1 -0
  29. package/dist/src/company/schema.d.ts +3 -3
  30. package/dist/src/contact/schema.d.ts +3 -3
  31. package/dist/src/contact-email/schema.d.ts +3 -3
  32. package/dist/src/contact-phone/schema.d.ts +3 -3
  33. package/dist/src/contract.d.ts +6117 -599
  34. package/dist/src/contract.d.ts.map +1 -1
  35. package/dist/src/custom-field/schema.d.ts +5 -5
  36. package/dist/src/custom-field-upload/schema.d.ts +3 -3
  37. package/dist/src/cx-log/index.d.ts +64 -62
  38. package/dist/src/cx-log/index.d.ts.map +1 -1
  39. package/dist/src/cx-log/schema.d.ts +7 -7
  40. package/dist/src/cx-log/validation.d.ts +47 -47
  41. package/dist/src/cx-log/validation.d.ts.map +1 -1
  42. package/dist/src/evaluate-form/schema.d.ts +3 -3
  43. package/dist/src/extension/index.d.ts +547 -0
  44. package/dist/src/extension/index.d.ts.map +1 -0
  45. package/dist/src/extension/schema.d.ts +9 -9
  46. package/dist/src/extension/validation.d.ts +49 -0
  47. package/dist/src/extension/validation.d.ts.map +1 -0
  48. package/dist/src/group/schema.d.ts +3 -3
  49. package/dist/src/index.d.ts +2 -0
  50. package/dist/src/index.d.ts.map +1 -1
  51. package/dist/src/line/index.d.ts +86 -0
  52. package/dist/src/line/index.d.ts.map +1 -0
  53. package/dist/src/line/schema.d.ts +12 -0
  54. package/dist/src/line/schema.d.ts.map +1 -0
  55. package/dist/src/line/validation.d.ts +18 -0
  56. package/dist/src/line/validation.d.ts.map +1 -0
  57. package/dist/src/log-form/schema.d.ts +3 -3
  58. package/dist/src/mail/account-contract.d.ts +119 -119
  59. package/dist/src/mail/account-contract.d.ts.map +1 -1
  60. package/dist/src/mail/mail-contract.d.ts +622 -623
  61. package/dist/src/mail/mail-contract.d.ts.map +1 -1
  62. package/dist/src/mail/mail-server.d.ts.map +1 -1
  63. package/dist/src/mail/message-contract.d.ts.map +1 -1
  64. package/dist/src/mail/room-contract.d.ts.map +1 -1
  65. package/dist/src/mail/schemas/account.schema.d.ts +129 -129
  66. package/dist/src/permission/index.d.ts +95 -0
  67. package/dist/src/permission/index.d.ts.map +1 -0
  68. package/dist/src/permission/schema.d.ts +3 -3
  69. package/dist/src/platform-contact/schema.d.ts +5 -5
  70. package/dist/src/role/index.d.ts +545 -0
  71. package/dist/src/role/index.d.ts.map +1 -0
  72. package/dist/src/role/schema.d.ts +8 -8
  73. package/dist/src/role/validation.d.ts +37 -0
  74. package/dist/src/role/validation.d.ts.map +1 -0
  75. package/dist/src/tag/index.d.ts +286 -0
  76. package/dist/src/tag/index.d.ts.map +1 -0
  77. package/dist/src/tag/schema.d.ts +4 -3
  78. package/dist/src/tag/schema.d.ts.map +1 -1
  79. package/dist/src/tag/validation.d.ts +29 -0
  80. package/dist/src/tag/validation.d.ts.map +1 -0
  81. package/dist/src/tag-group/schema.d.ts +3 -3
  82. package/dist/src/telephony-cdr/schema.d.ts +5 -5
  83. package/dist/src/telephony-extension/index.d.ts +65 -0
  84. package/dist/src/telephony-extension/index.d.ts.map +1 -0
  85. package/dist/src/telephony-extension/schema.d.ts +18 -0
  86. package/dist/src/telephony-extension/schema.d.ts.map +1 -0
  87. package/dist/src/telephony-live-queue-call/schema.d.ts +3 -3
  88. package/dist/src/telephony-queue-call-count/schema.d.ts +3 -3
  89. package/dist/src/ticket/schema.d.ts +5 -5
  90. package/dist/src/types.d.ts +5 -0
  91. package/dist/src/types.d.ts.map +1 -0
  92. package/dist/src/upload/schema.d.ts +3 -3
  93. package/dist/src/user/index.d.ts +1064 -0
  94. package/dist/src/user/index.d.ts.map +1 -0
  95. package/dist/src/user/schema.d.ts +15 -15
  96. package/dist/src/user/schema.d.ts.map +1 -1
  97. package/dist/src/user/validation.d.ts +49 -0
  98. package/dist/src/user/validation.d.ts.map +1 -0
  99. package/dist/src/widget/index.d.ts +817 -0
  100. package/dist/src/widget/index.d.ts.map +1 -0
  101. package/dist/src/widget/schema.d.ts +20 -9
  102. package/dist/src/widget/schema.d.ts.map +1 -1
  103. package/dist/src/widget/validation.d.ts +63 -0
  104. package/dist/src/widget/validation.d.ts.map +1 -0
  105. package/dist/utils.d.ts +2 -2
  106. package/package.json +2 -1
@@ -0,0 +1,95 @@
1
+ import z from 'zod';
2
+ export declare const permissionContract: {
3
+ getPermissions: {
4
+ summary: "Get all permissions";
5
+ method: "GET";
6
+ responses: {
7
+ 200: z.ZodObject<{
8
+ permissions: z.ZodArray<z.ZodObject<{
9
+ id: z.ZodString;
10
+ createdAt: z.ZodDate;
11
+ updatedAt: z.ZodDate;
12
+ deletedAt: z.ZodNullable<z.ZodDate>;
13
+ systemName: z.ZodString;
14
+ displayName: z.ZodString;
15
+ description: z.ZodNullable<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ id: string;
18
+ description: string | null;
19
+ createdAt: Date;
20
+ updatedAt: Date;
21
+ deletedAt: Date | null;
22
+ systemName: string;
23
+ displayName: string;
24
+ }, {
25
+ id: string;
26
+ description: string | null;
27
+ createdAt: Date;
28
+ updatedAt: Date;
29
+ deletedAt: Date | null;
30
+ systemName: string;
31
+ displayName: string;
32
+ }>, "many">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ permissions: {
35
+ id: string;
36
+ description: string | null;
37
+ createdAt: Date;
38
+ updatedAt: Date;
39
+ deletedAt: Date | null;
40
+ systemName: string;
41
+ displayName: string;
42
+ }[];
43
+ }, {
44
+ permissions: {
45
+ id: string;
46
+ description: string | null;
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ deletedAt: Date | null;
50
+ systemName: string;
51
+ displayName: string;
52
+ }[];
53
+ }>;
54
+ 400: z.ZodObject<{
55
+ message: z.ZodString;
56
+ }, "strip", z.ZodTypeAny, {
57
+ message: string;
58
+ }, {
59
+ message: string;
60
+ }>;
61
+ 401: z.ZodObject<{
62
+ message: z.ZodString;
63
+ error: z.ZodAny;
64
+ }, "strip", z.ZodTypeAny, {
65
+ message: string;
66
+ error?: any;
67
+ }, {
68
+ message: string;
69
+ error?: any;
70
+ }>;
71
+ 500: z.ZodObject<{
72
+ message: z.ZodString;
73
+ error: z.ZodAny;
74
+ }, "strip", z.ZodTypeAny, {
75
+ message: string;
76
+ error?: any;
77
+ }, {
78
+ message: string;
79
+ error?: any;
80
+ }>;
81
+ };
82
+ path: "permission";
83
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
84
+ 'x-tenant': z.ZodString;
85
+ authorization: z.ZodString;
86
+ }, "strip", z.ZodTypeAny, {
87
+ 'x-tenant': string;
88
+ authorization: string;
89
+ }, {
90
+ 'x-tenant': string;
91
+ authorization: string;
92
+ }>>>;
93
+ };
94
+ };
95
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/permission/index.ts"],"names":[],"mappings":"AAOA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB9B,CAAC"}
@@ -3,7 +3,7 @@ export declare const PermissionSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  createdAt: z.ZodDate;
5
5
  updatedAt: z.ZodDate;
6
- deletedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
7
  systemName: z.ZodString;
8
8
  displayName: z.ZodString;
9
9
  description: z.ZodNullable<z.ZodString>;
@@ -12,7 +12,7 @@ export declare const PermissionSchema: z.ZodObject<{
12
12
  description: string | null;
13
13
  createdAt: Date;
14
14
  updatedAt: Date;
15
- deletedAt: Date;
15
+ deletedAt: Date | null;
16
16
  systemName: string;
17
17
  displayName: string;
18
18
  }, {
@@ -20,7 +20,7 @@ export declare const PermissionSchema: z.ZodObject<{
20
20
  description: string | null;
21
21
  createdAt: Date;
22
22
  updatedAt: Date;
23
- deletedAt: Date;
23
+ deletedAt: Date | null;
24
24
  systemName: string;
25
25
  displayName: string;
26
26
  }>;
@@ -3,7 +3,7 @@ export declare const PlatformContactSchema: z.ZodObject<{
3
3
  id: z.ZodString;
4
4
  createdAt: z.ZodDate;
5
5
  updatedAt: z.ZodDate;
6
- deletedAt: z.ZodDate;
6
+ deletedAt: z.ZodNullable<z.ZodDate>;
7
7
  contactId: z.ZodString;
8
8
  channelId: z.ZodString;
9
9
  config: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
@@ -13,18 +13,18 @@ export declare const PlatformContactSchema: z.ZodObject<{
13
13
  id: string;
14
14
  createdAt: Date;
15
15
  updatedAt: Date;
16
- deletedAt: Date;
17
- contactId: string;
16
+ deletedAt: Date | null;
18
17
  channelId: string;
18
+ contactId: string;
19
19
  config: {};
20
20
  }, {
21
21
  type: string;
22
22
  id: string;
23
23
  createdAt: Date;
24
24
  updatedAt: Date;
25
- deletedAt: Date;
26
- contactId: string;
25
+ deletedAt: Date | null;
27
26
  channelId: string;
27
+ contactId: string;
28
28
  config: {};
29
29
  }>;
30
30
  //# sourceMappingURL=schema.d.ts.map
@@ -0,0 +1,545 @@
1
+ import z from 'zod';
2
+ import { CreateRoleSchema, UpdateRoleSchema } from './validation';
3
+ export type CreateRoleRequest = z.infer<typeof CreateRoleSchema>;
4
+ export type UpdateRoleRequest = z.infer<typeof UpdateRoleSchema>;
5
+ export declare const roleContract: {
6
+ createRole: {
7
+ body: z.ZodObject<{
8
+ systemName: z.ZodString;
9
+ displayName: z.ZodString;
10
+ description: z.ZodNullable<z.ZodString>;
11
+ permissions: z.ZodArray<z.ZodString, "many">;
12
+ }, "strip", z.ZodTypeAny, {
13
+ description: string | null;
14
+ systemName: string;
15
+ displayName: string;
16
+ permissions: string[];
17
+ }, {
18
+ description: string | null;
19
+ systemName: string;
20
+ displayName: string;
21
+ permissions: string[];
22
+ }>;
23
+ summary: "Create a role.";
24
+ method: "POST";
25
+ responses: {
26
+ 201: z.ZodObject<{
27
+ requestId: z.ZodString;
28
+ role: z.ZodObject<{
29
+ id: z.ZodString;
30
+ createdAt: z.ZodDate;
31
+ updatedAt: z.ZodDate;
32
+ deletedAt: z.ZodNullable<z.ZodDate>;
33
+ systemName: z.ZodString;
34
+ displayName: z.ZodString;
35
+ description: z.ZodNullable<z.ZodString>;
36
+ permissions: z.ZodArray<z.ZodObject<{
37
+ id: z.ZodString;
38
+ createdAt: z.ZodDate;
39
+ updatedAt: z.ZodDate;
40
+ deletedAt: z.ZodNullable<z.ZodDate>;
41
+ systemName: z.ZodString;
42
+ displayName: z.ZodString;
43
+ description: z.ZodNullable<z.ZodString>;
44
+ }, "strip", z.ZodTypeAny, {
45
+ id: string;
46
+ description: string | null;
47
+ createdAt: Date;
48
+ updatedAt: Date;
49
+ deletedAt: Date | null;
50
+ systemName: string;
51
+ displayName: string;
52
+ }, {
53
+ id: string;
54
+ description: string | null;
55
+ createdAt: Date;
56
+ updatedAt: Date;
57
+ deletedAt: Date | null;
58
+ systemName: string;
59
+ displayName: string;
60
+ }>, "many">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ id: string;
63
+ description: string | null;
64
+ createdAt: Date;
65
+ updatedAt: Date;
66
+ deletedAt: Date | null;
67
+ systemName: string;
68
+ displayName: string;
69
+ permissions: {
70
+ id: string;
71
+ description: string | null;
72
+ createdAt: Date;
73
+ updatedAt: Date;
74
+ deletedAt: Date | null;
75
+ systemName: string;
76
+ displayName: string;
77
+ }[];
78
+ }, {
79
+ id: string;
80
+ description: string | null;
81
+ createdAt: Date;
82
+ updatedAt: Date;
83
+ deletedAt: Date | null;
84
+ systemName: string;
85
+ displayName: string;
86
+ permissions: {
87
+ id: string;
88
+ description: string | null;
89
+ createdAt: Date;
90
+ updatedAt: Date;
91
+ deletedAt: Date | null;
92
+ systemName: string;
93
+ displayName: string;
94
+ }[];
95
+ }>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ role: {
98
+ id: string;
99
+ description: string | null;
100
+ createdAt: Date;
101
+ updatedAt: Date;
102
+ deletedAt: Date | null;
103
+ systemName: string;
104
+ displayName: string;
105
+ permissions: {
106
+ id: string;
107
+ description: string | null;
108
+ createdAt: Date;
109
+ updatedAt: Date;
110
+ deletedAt: Date | null;
111
+ systemName: string;
112
+ displayName: string;
113
+ }[];
114
+ };
115
+ requestId: string;
116
+ }, {
117
+ role: {
118
+ id: string;
119
+ description: string | null;
120
+ createdAt: Date;
121
+ updatedAt: Date;
122
+ deletedAt: Date | null;
123
+ systemName: string;
124
+ displayName: string;
125
+ permissions: {
126
+ id: string;
127
+ description: string | null;
128
+ createdAt: Date;
129
+ updatedAt: Date;
130
+ deletedAt: Date | null;
131
+ systemName: string;
132
+ displayName: string;
133
+ }[];
134
+ };
135
+ requestId: string;
136
+ }>;
137
+ 400: z.ZodObject<{
138
+ message: z.ZodString;
139
+ }, "strip", z.ZodTypeAny, {
140
+ message: string;
141
+ }, {
142
+ message: string;
143
+ }>;
144
+ 401: z.ZodObject<{
145
+ message: z.ZodString;
146
+ error: z.ZodAny;
147
+ }, "strip", z.ZodTypeAny, {
148
+ message: string;
149
+ error?: any;
150
+ }, {
151
+ message: string;
152
+ error?: any;
153
+ }>;
154
+ 500: z.ZodObject<{
155
+ message: z.ZodString;
156
+ error: z.ZodAny;
157
+ }, "strip", z.ZodTypeAny, {
158
+ message: string;
159
+ error?: any;
160
+ }, {
161
+ message: string;
162
+ error?: any;
163
+ }>;
164
+ };
165
+ path: "role";
166
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
167
+ 'x-tenant': z.ZodString;
168
+ authorization: z.ZodString;
169
+ }, "strip", z.ZodTypeAny, {
170
+ 'x-tenant': string;
171
+ authorization: string;
172
+ }, {
173
+ 'x-tenant': string;
174
+ authorization: string;
175
+ }>>>;
176
+ };
177
+ getRoles: {
178
+ summary: "Get all roles";
179
+ method: "GET";
180
+ query: z.ZodOptional<z.ZodObject<{
181
+ page: z.ZodDefault<z.ZodNumber>;
182
+ pageSize: z.ZodDefault<z.ZodNumber>;
183
+ }, "strip", z.ZodTypeAny, {
184
+ page: number;
185
+ pageSize: number;
186
+ }, {
187
+ page?: number | undefined;
188
+ pageSize?: number | undefined;
189
+ }>>;
190
+ responses: {
191
+ 200: z.ZodObject<{
192
+ total: z.ZodNumber;
193
+ page: z.ZodDefault<z.ZodNumber>;
194
+ pageSize: z.ZodDefault<z.ZodNumber>;
195
+ lastPage: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
196
+ data: z.ZodArray<z.ZodType<{
197
+ id: string;
198
+ description: string | null;
199
+ createdAt: Date;
200
+ updatedAt: Date;
201
+ deletedAt: Date | null;
202
+ systemName: string;
203
+ displayName: string;
204
+ permissions: {
205
+ id: string;
206
+ description: string | null;
207
+ createdAt: Date;
208
+ updatedAt: Date;
209
+ deletedAt: Date | null;
210
+ systemName: string;
211
+ displayName: string;
212
+ }[];
213
+ }, z.ZodTypeDef, {
214
+ id: string;
215
+ description: string | null;
216
+ createdAt: Date;
217
+ updatedAt: Date;
218
+ deletedAt: Date | null;
219
+ systemName: string;
220
+ displayName: string;
221
+ permissions: {
222
+ id: string;
223
+ description: string | null;
224
+ createdAt: Date;
225
+ updatedAt: Date;
226
+ deletedAt: Date | null;
227
+ systemName: string;
228
+ displayName: string;
229
+ }[];
230
+ }>, "many">;
231
+ }, "strip", z.ZodTypeAny, {
232
+ data: {
233
+ id: string;
234
+ description: string | null;
235
+ createdAt: Date;
236
+ updatedAt: Date;
237
+ deletedAt: Date | null;
238
+ systemName: string;
239
+ displayName: string;
240
+ permissions: {
241
+ id: string;
242
+ description: string | null;
243
+ createdAt: Date;
244
+ updatedAt: Date;
245
+ deletedAt: Date | null;
246
+ systemName: string;
247
+ displayName: string;
248
+ }[];
249
+ }[];
250
+ total: number;
251
+ page: number;
252
+ pageSize: number;
253
+ lastPage?: number | null | undefined;
254
+ }, {
255
+ data: {
256
+ id: string;
257
+ description: string | null;
258
+ createdAt: Date;
259
+ updatedAt: Date;
260
+ deletedAt: Date | null;
261
+ systemName: string;
262
+ displayName: string;
263
+ permissions: {
264
+ id: string;
265
+ description: string | null;
266
+ createdAt: Date;
267
+ updatedAt: Date;
268
+ deletedAt: Date | null;
269
+ systemName: string;
270
+ displayName: string;
271
+ }[];
272
+ }[];
273
+ total: number;
274
+ page?: number | undefined;
275
+ pageSize?: number | undefined;
276
+ lastPage?: number | null | undefined;
277
+ }>;
278
+ 400: z.ZodObject<{
279
+ message: z.ZodString;
280
+ }, "strip", z.ZodTypeAny, {
281
+ message: string;
282
+ }, {
283
+ message: string;
284
+ }>;
285
+ 401: z.ZodObject<{
286
+ message: z.ZodString;
287
+ error: z.ZodAny;
288
+ }, "strip", z.ZodTypeAny, {
289
+ message: string;
290
+ error?: any;
291
+ }, {
292
+ message: string;
293
+ error?: any;
294
+ }>;
295
+ 500: z.ZodObject<{
296
+ message: z.ZodString;
297
+ error: z.ZodAny;
298
+ }, "strip", z.ZodTypeAny, {
299
+ message: string;
300
+ error?: any;
301
+ }, {
302
+ message: string;
303
+ error?: any;
304
+ }>;
305
+ };
306
+ path: "role";
307
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
308
+ 'x-tenant': z.ZodString;
309
+ authorization: z.ZodString;
310
+ }, "strip", z.ZodTypeAny, {
311
+ 'x-tenant': string;
312
+ authorization: string;
313
+ }, {
314
+ 'x-tenant': string;
315
+ authorization: string;
316
+ }>>>;
317
+ };
318
+ updateRole: {
319
+ body: z.ZodObject<{
320
+ description: z.ZodNullable<z.ZodString>;
321
+ systemName: z.ZodString;
322
+ displayName: z.ZodString;
323
+ permissions: z.ZodArray<z.ZodString, "many">;
324
+ id: z.ZodString;
325
+ }, "strip", z.ZodTypeAny, {
326
+ id: string;
327
+ description: string | null;
328
+ systemName: string;
329
+ displayName: string;
330
+ permissions: string[];
331
+ }, {
332
+ id: string;
333
+ description: string | null;
334
+ systemName: string;
335
+ displayName: string;
336
+ permissions: string[];
337
+ }>;
338
+ summary: "Update a role.";
339
+ method: "PATCH";
340
+ pathParams: z.ZodObject<{
341
+ id: z.ZodString;
342
+ }, "strip", z.ZodTypeAny, {
343
+ id: string;
344
+ }, {
345
+ id: string;
346
+ }>;
347
+ responses: {
348
+ 201: z.ZodObject<{
349
+ requestId: z.ZodString;
350
+ role: z.ZodObject<{
351
+ id: z.ZodString;
352
+ createdAt: z.ZodDate;
353
+ updatedAt: z.ZodDate;
354
+ deletedAt: z.ZodNullable<z.ZodDate>;
355
+ systemName: z.ZodString;
356
+ displayName: z.ZodString;
357
+ description: z.ZodNullable<z.ZodString>;
358
+ permissions: z.ZodArray<z.ZodObject<{
359
+ id: z.ZodString;
360
+ createdAt: z.ZodDate;
361
+ updatedAt: z.ZodDate;
362
+ deletedAt: z.ZodNullable<z.ZodDate>;
363
+ systemName: z.ZodString;
364
+ displayName: z.ZodString;
365
+ description: z.ZodNullable<z.ZodString>;
366
+ }, "strip", z.ZodTypeAny, {
367
+ id: string;
368
+ description: string | null;
369
+ createdAt: Date;
370
+ updatedAt: Date;
371
+ deletedAt: Date | null;
372
+ systemName: string;
373
+ displayName: string;
374
+ }, {
375
+ id: string;
376
+ description: string | null;
377
+ createdAt: Date;
378
+ updatedAt: Date;
379
+ deletedAt: Date | null;
380
+ systemName: string;
381
+ displayName: string;
382
+ }>, "many">;
383
+ }, "strip", z.ZodTypeAny, {
384
+ id: string;
385
+ description: string | null;
386
+ createdAt: Date;
387
+ updatedAt: Date;
388
+ deletedAt: Date | null;
389
+ systemName: string;
390
+ displayName: string;
391
+ permissions: {
392
+ id: string;
393
+ description: string | null;
394
+ createdAt: Date;
395
+ updatedAt: Date;
396
+ deletedAt: Date | null;
397
+ systemName: string;
398
+ displayName: string;
399
+ }[];
400
+ }, {
401
+ id: string;
402
+ description: string | null;
403
+ createdAt: Date;
404
+ updatedAt: Date;
405
+ deletedAt: Date | null;
406
+ systemName: string;
407
+ displayName: string;
408
+ permissions: {
409
+ id: string;
410
+ description: string | null;
411
+ createdAt: Date;
412
+ updatedAt: Date;
413
+ deletedAt: Date | null;
414
+ systemName: string;
415
+ displayName: string;
416
+ }[];
417
+ }>;
418
+ }, "strip", z.ZodTypeAny, {
419
+ role: {
420
+ id: string;
421
+ description: string | null;
422
+ createdAt: Date;
423
+ updatedAt: Date;
424
+ deletedAt: Date | null;
425
+ systemName: string;
426
+ displayName: string;
427
+ permissions: {
428
+ id: string;
429
+ description: string | null;
430
+ createdAt: Date;
431
+ updatedAt: Date;
432
+ deletedAt: Date | null;
433
+ systemName: string;
434
+ displayName: string;
435
+ }[];
436
+ };
437
+ requestId: string;
438
+ }, {
439
+ role: {
440
+ id: string;
441
+ description: string | null;
442
+ createdAt: Date;
443
+ updatedAt: Date;
444
+ deletedAt: Date | null;
445
+ systemName: string;
446
+ displayName: string;
447
+ permissions: {
448
+ id: string;
449
+ description: string | null;
450
+ createdAt: Date;
451
+ updatedAt: Date;
452
+ deletedAt: Date | null;
453
+ systemName: string;
454
+ displayName: string;
455
+ }[];
456
+ };
457
+ requestId: string;
458
+ }>;
459
+ 400: z.ZodObject<{
460
+ message: z.ZodString;
461
+ }, "strip", z.ZodTypeAny, {
462
+ message: string;
463
+ }, {
464
+ message: string;
465
+ }>;
466
+ 401: z.ZodObject<{
467
+ message: z.ZodString;
468
+ error: z.ZodAny;
469
+ }, "strip", z.ZodTypeAny, {
470
+ message: string;
471
+ error?: any;
472
+ }, {
473
+ message: string;
474
+ error?: any;
475
+ }>;
476
+ 500: z.ZodObject<{
477
+ message: z.ZodString;
478
+ error: z.ZodAny;
479
+ }, "strip", z.ZodTypeAny, {
480
+ message: string;
481
+ error?: any;
482
+ }, {
483
+ message: string;
484
+ error?: any;
485
+ }>;
486
+ };
487
+ path: "role/:id";
488
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
489
+ 'x-tenant': z.ZodString;
490
+ authorization: z.ZodString;
491
+ }, "strip", z.ZodTypeAny, {
492
+ 'x-tenant': string;
493
+ authorization: string;
494
+ }, {
495
+ 'x-tenant': string;
496
+ authorization: string;
497
+ }>>>;
498
+ };
499
+ deleteRole: {
500
+ body: null;
501
+ summary: "Delete a role.";
502
+ method: "DELETE";
503
+ pathParams: z.ZodObject<{
504
+ id: z.ZodString;
505
+ }, "strip", z.ZodTypeAny, {
506
+ id: string;
507
+ }, {
508
+ id: string;
509
+ }>;
510
+ responses: {
511
+ 200: z.ZodObject<{
512
+ requestId: z.ZodString;
513
+ message: z.ZodString;
514
+ }, "strip", z.ZodTypeAny, {
515
+ message: string;
516
+ requestId: string;
517
+ }, {
518
+ message: string;
519
+ requestId: string;
520
+ }>;
521
+ 500: z.ZodObject<{
522
+ message: z.ZodString;
523
+ error: z.ZodAny;
524
+ }, "strip", z.ZodTypeAny, {
525
+ message: string;
526
+ error?: any;
527
+ }, {
528
+ message: string;
529
+ error?: any;
530
+ }>;
531
+ };
532
+ path: "role/:id";
533
+ headers: z.ZodNullable<z.ZodOptional<z.ZodObject<{
534
+ 'x-tenant': z.ZodString;
535
+ authorization: z.ZodString;
536
+ }, "strip", z.ZodTypeAny, {
537
+ 'x-tenant': string;
538
+ authorization: string;
539
+ }, {
540
+ 'x-tenant': string;
541
+ authorization: string;
542
+ }>>>;
543
+ };
544
+ };
545
+ //# sourceMappingURL=index.d.ts.map