@temboplus/afloat 0.1.32 → 0.1.34

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 (69) hide show
  1. package/esm/mod.d.ts +1 -0
  2. package/esm/mod.d.ts.map +1 -1
  3. package/esm/mod.js +1 -0
  4. package/esm/src/features/admin/contract.d.ts +648 -0
  5. package/esm/src/features/admin/contract.d.ts.map +1 -0
  6. package/esm/src/features/admin/contract.js +184 -0
  7. package/esm/src/features/admin/index.d.ts +4 -0
  8. package/esm/src/features/admin/index.d.ts.map +1 -0
  9. package/esm/src/features/admin/index.js +3 -0
  10. package/esm/src/features/admin/repository.d.ts +104 -0
  11. package/esm/src/features/admin/repository.d.ts.map +1 -0
  12. package/esm/src/features/admin/repository.js +224 -0
  13. package/esm/src/features/admin/schemas.d.ts +119 -0
  14. package/esm/src/features/admin/schemas.d.ts.map +1 -0
  15. package/esm/src/features/admin/schemas.js +172 -0
  16. package/esm/src/models/index.d.ts +1 -0
  17. package/esm/src/models/index.d.ts.map +1 -1
  18. package/esm/src/models/index.js +1 -0
  19. package/esm/src/models/permission.d.ts +13 -1
  20. package/esm/src/models/permission.d.ts.map +1 -1
  21. package/esm/src/models/permission.js +12 -0
  22. package/esm/src/models/role.d.ts +21 -0
  23. package/esm/src/models/role.d.ts.map +1 -0
  24. package/esm/src/models/role.js +73 -0
  25. package/esm/src/models/user/{user.d.ts → authenticated-user.d.ts} +1 -1
  26. package/esm/src/models/user/authenticated-user.d.ts.map +1 -0
  27. package/esm/src/models/user/index.d.ts +2 -1
  28. package/esm/src/models/user/index.d.ts.map +1 -1
  29. package/esm/src/models/user/index.js +2 -1
  30. package/esm/src/models/user/managed-user.d.ts +102 -0
  31. package/esm/src/models/user/managed-user.d.ts.map +1 -0
  32. package/esm/src/models/user/managed-user.js +226 -0
  33. package/package.json +1 -1
  34. package/script/mod.d.ts +1 -0
  35. package/script/mod.d.ts.map +1 -1
  36. package/script/mod.js +1 -0
  37. package/script/src/features/admin/contract.d.ts +648 -0
  38. package/script/src/features/admin/contract.d.ts.map +1 -0
  39. package/script/src/features/admin/contract.js +187 -0
  40. package/script/src/features/admin/index.d.ts +4 -0
  41. package/script/src/features/admin/index.d.ts.map +1 -0
  42. package/script/src/features/admin/index.js +19 -0
  43. package/script/src/features/admin/repository.d.ts +104 -0
  44. package/script/src/features/admin/repository.d.ts.map +1 -0
  45. package/script/src/features/admin/repository.js +228 -0
  46. package/script/src/features/admin/schemas.d.ts +119 -0
  47. package/script/src/features/admin/schemas.d.ts.map +1 -0
  48. package/script/src/features/admin/schemas.js +175 -0
  49. package/script/src/models/index.d.ts +1 -0
  50. package/script/src/models/index.d.ts.map +1 -1
  51. package/script/src/models/index.js +1 -0
  52. package/script/src/models/permission.d.ts +13 -1
  53. package/script/src/models/permission.d.ts.map +1 -1
  54. package/script/src/models/permission.js +12 -0
  55. package/script/src/models/role.d.ts +21 -0
  56. package/script/src/models/role.d.ts.map +1 -0
  57. package/script/src/models/role.js +77 -0
  58. package/script/src/models/user/{user.d.ts → authenticated-user.d.ts} +1 -1
  59. package/script/src/models/user/authenticated-user.d.ts.map +1 -0
  60. package/script/src/models/user/index.d.ts +2 -1
  61. package/script/src/models/user/index.d.ts.map +1 -1
  62. package/script/src/models/user/index.js +2 -1
  63. package/script/src/models/user/managed-user.d.ts +102 -0
  64. package/script/src/models/user/managed-user.d.ts.map +1 -0
  65. package/script/src/models/user/managed-user.js +231 -0
  66. package/esm/src/models/user/user.d.ts.map +0 -1
  67. package/script/src/models/user/user.d.ts.map +0 -1
  68. /package/esm/src/models/user/{user.js → authenticated-user.js} +0 -0
  69. /package/script/src/models/user/{user.js → authenticated-user.js} +0 -0
package/esm/mod.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./src/features/auth/index.js";
2
2
  export * from "./src/features/contact/index.js";
3
3
  export * from "./src/features/wallet/index.js";
4
4
  export * from "./src/features/payout/index.js";
5
+ export * from "./src/features/admin/index.js";
5
6
  export * from "./src/errors/index.js";
6
7
  export * from "./src/models/index.js";
7
8
  //# sourceMappingURL=mod.d.ts.map
package/esm/mod.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAE/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAC;AAC7C,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAE9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC"}
package/esm/mod.js CHANGED
@@ -2,5 +2,6 @@ export * from "./src/features/auth/index.js";
2
2
  export * from "./src/features/contact/index.js";
3
3
  export * from "./src/features/wallet/index.js";
4
4
  export * from "./src/features/payout/index.js";
5
+ export * from "./src/features/admin/index.js";
5
6
  export * from "./src/errors/index.js";
6
7
  export * from "./src/models/index.js";
@@ -0,0 +1,648 @@
1
+ import { z } from "zod";
2
+ export declare const userManagementContract: {
3
+ getUsers: {
4
+ description: "Retrieve a list of all user accounts in the system";
5
+ summary: "List all user accounts";
6
+ method: "GET";
7
+ path: "/login";
8
+ responses: {
9
+ 200: z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ name: z.ZodString;
12
+ identity: z.ZodString;
13
+ type: z.ZodString;
14
+ profileId: z.ZodString;
15
+ roleId: z.ZodString;
16
+ resetPassword: z.ZodBoolean;
17
+ isActive: z.ZodBoolean;
18
+ role: z.ZodType<{
19
+ id: string;
20
+ access: string[];
21
+ name: string;
22
+ createdAt: string;
23
+ updatedAt: string;
24
+ description?: string | undefined;
25
+ }>;
26
+ createdAt: z.ZodString;
27
+ updatedAt: z.ZodString;
28
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
29
+ type: string;
30
+ id: string;
31
+ resetPassword: boolean;
32
+ name: string;
33
+ identity: string;
34
+ profileId: string;
35
+ createdAt: string;
36
+ updatedAt: string;
37
+ roleId: string;
38
+ isActive: boolean;
39
+ role: {
40
+ id: string;
41
+ access: string[];
42
+ name: string;
43
+ createdAt: string;
44
+ updatedAt: string;
45
+ description?: string | undefined;
46
+ };
47
+ }, {
48
+ type: string;
49
+ id: string;
50
+ resetPassword: boolean;
51
+ name: string;
52
+ identity: string;
53
+ profileId: string;
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ roleId: string;
57
+ isActive: boolean;
58
+ role: {
59
+ id: string;
60
+ access: string[];
61
+ name: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ description?: string | undefined;
65
+ };
66
+ }>, "many">;
67
+ 401: z.ZodObject<{
68
+ message: z.ZodString;
69
+ }, "strip", z.ZodTypeAny, {
70
+ message: string;
71
+ }, {
72
+ message: string;
73
+ }>;
74
+ 403: z.ZodObject<{
75
+ message: z.ZodString;
76
+ }, "strip", z.ZodTypeAny, {
77
+ message: string;
78
+ }, {
79
+ message: string;
80
+ }>;
81
+ };
82
+ };
83
+ getUser: {
84
+ description: "Retrieve detailed information about a specific user account";
85
+ pathParams: z.ZodObject<{
86
+ id: z.ZodString;
87
+ }, "strip", z.ZodTypeAny, {
88
+ id: string;
89
+ }, {
90
+ id: string;
91
+ }>;
92
+ summary: "Get user account details";
93
+ method: "GET";
94
+ path: "/login/:id";
95
+ responses: {
96
+ 200: z.ZodObject<{
97
+ id: z.ZodString;
98
+ name: z.ZodString;
99
+ identity: z.ZodString;
100
+ type: z.ZodString;
101
+ profileId: z.ZodString;
102
+ roleId: z.ZodString;
103
+ resetPassword: z.ZodBoolean;
104
+ isActive: z.ZodBoolean;
105
+ role: z.ZodType<{
106
+ id: string;
107
+ access: string[];
108
+ name: string;
109
+ createdAt: string;
110
+ updatedAt: string;
111
+ description?: string | undefined;
112
+ }>;
113
+ createdAt: z.ZodString;
114
+ updatedAt: z.ZodString;
115
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
116
+ type: string;
117
+ id: string;
118
+ resetPassword: boolean;
119
+ name: string;
120
+ identity: string;
121
+ profileId: string;
122
+ createdAt: string;
123
+ updatedAt: string;
124
+ roleId: string;
125
+ isActive: boolean;
126
+ role: {
127
+ id: string;
128
+ access: string[];
129
+ name: string;
130
+ createdAt: string;
131
+ updatedAt: string;
132
+ description?: string | undefined;
133
+ };
134
+ }, {
135
+ type: string;
136
+ id: string;
137
+ resetPassword: boolean;
138
+ name: string;
139
+ identity: string;
140
+ profileId: string;
141
+ createdAt: string;
142
+ updatedAt: string;
143
+ roleId: string;
144
+ isActive: boolean;
145
+ role: {
146
+ id: string;
147
+ access: string[];
148
+ name: string;
149
+ createdAt: string;
150
+ updatedAt: string;
151
+ description?: string | undefined;
152
+ };
153
+ }>;
154
+ 401: z.ZodObject<{
155
+ message: z.ZodString;
156
+ }, "strip", z.ZodTypeAny, {
157
+ message: string;
158
+ }, {
159
+ message: string;
160
+ }>;
161
+ 403: z.ZodObject<{
162
+ message: z.ZodString;
163
+ }, "strip", z.ZodTypeAny, {
164
+ message: string;
165
+ }, {
166
+ message: string;
167
+ }>;
168
+ 404: z.ZodObject<{
169
+ message: z.ZodString;
170
+ }, "strip", z.ZodTypeAny, {
171
+ message: string;
172
+ }, {
173
+ message: string;
174
+ }>;
175
+ };
176
+ };
177
+ createUser: {
178
+ description: "Create a new user account with specified role and permissions";
179
+ summary: "Create new user account";
180
+ method: "POST";
181
+ body: z.ZodObject<{
182
+ name: z.ZodString;
183
+ identity: z.ZodString;
184
+ password: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>;
185
+ roleId: z.ZodOptional<z.ZodString>;
186
+ resetPassword: z.ZodOptional<z.ZodBoolean>;
187
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
188
+ name: string;
189
+ identity: string;
190
+ password: string;
191
+ resetPassword?: boolean | undefined;
192
+ roleId?: string | undefined;
193
+ }, {
194
+ name: string;
195
+ identity: string;
196
+ password: string;
197
+ resetPassword?: boolean | undefined;
198
+ roleId?: string | undefined;
199
+ }>;
200
+ path: "/login";
201
+ responses: {
202
+ 201: z.ZodObject<{
203
+ id: z.ZodString;
204
+ name: z.ZodString;
205
+ identity: z.ZodString;
206
+ type: z.ZodString;
207
+ profileId: z.ZodString;
208
+ roleId: z.ZodString;
209
+ isActive: z.ZodBoolean;
210
+ createdAt: z.ZodString;
211
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
212
+ type: string;
213
+ id: string;
214
+ name: string;
215
+ identity: string;
216
+ profileId: string;
217
+ createdAt: string;
218
+ roleId: string;
219
+ isActive: boolean;
220
+ }, {
221
+ type: string;
222
+ id: string;
223
+ name: string;
224
+ identity: string;
225
+ profileId: string;
226
+ createdAt: string;
227
+ roleId: string;
228
+ isActive: boolean;
229
+ }>;
230
+ 400: z.ZodObject<{
231
+ message: z.ZodString;
232
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
233
+ }, "strip", z.ZodTypeAny, {
234
+ message: string;
235
+ errors?: string[] | undefined;
236
+ }, {
237
+ message: string;
238
+ errors?: string[] | undefined;
239
+ }>;
240
+ 401: z.ZodObject<{
241
+ message: z.ZodString;
242
+ }, "strip", z.ZodTypeAny, {
243
+ message: string;
244
+ }, {
245
+ message: string;
246
+ }>;
247
+ 403: z.ZodObject<{
248
+ message: z.ZodString;
249
+ }, "strip", z.ZodTypeAny, {
250
+ message: string;
251
+ }, {
252
+ message: string;
253
+ }>;
254
+ 409: z.ZodObject<{
255
+ message: z.ZodString;
256
+ }, "strip", z.ZodTypeAny, {
257
+ message: string;
258
+ }, {
259
+ message: string;
260
+ }>;
261
+ };
262
+ };
263
+ updateUser: {
264
+ description: "Update user account information, role, status, or force password reset";
265
+ pathParams: z.ZodObject<{
266
+ id: z.ZodString;
267
+ }, "strip", z.ZodTypeAny, {
268
+ id: string;
269
+ }, {
270
+ id: string;
271
+ }>;
272
+ summary: "Update user account";
273
+ method: "PATCH";
274
+ body: z.ZodObject<{
275
+ name: z.ZodOptional<z.ZodString>;
276
+ roleId: z.ZodOptional<z.ZodString>;
277
+ password: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
278
+ resetPassword: z.ZodOptional<z.ZodBoolean>;
279
+ isActive: z.ZodOptional<z.ZodBoolean>;
280
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
281
+ resetPassword?: boolean | undefined;
282
+ name?: string | undefined;
283
+ password?: string | undefined;
284
+ roleId?: string | undefined;
285
+ isActive?: boolean | undefined;
286
+ }, {
287
+ resetPassword?: boolean | undefined;
288
+ name?: string | undefined;
289
+ password?: string | undefined;
290
+ roleId?: string | undefined;
291
+ isActive?: boolean | undefined;
292
+ }>;
293
+ path: "/login/:id";
294
+ responses: {
295
+ 200: z.ZodObject<{
296
+ id: z.ZodString;
297
+ name: z.ZodString;
298
+ identity: z.ZodString;
299
+ type: z.ZodString;
300
+ profileId: z.ZodString;
301
+ roleId: z.ZodString;
302
+ resetPassword: z.ZodBoolean;
303
+ isActive: z.ZodBoolean;
304
+ role: z.ZodType<{
305
+ id: string;
306
+ access: string[];
307
+ name: string;
308
+ createdAt: string;
309
+ updatedAt: string;
310
+ description?: string | undefined;
311
+ }>;
312
+ createdAt: z.ZodString;
313
+ updatedAt: z.ZodString;
314
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
315
+ type: string;
316
+ id: string;
317
+ resetPassword: boolean;
318
+ name: string;
319
+ identity: string;
320
+ profileId: string;
321
+ createdAt: string;
322
+ updatedAt: string;
323
+ roleId: string;
324
+ isActive: boolean;
325
+ role: {
326
+ id: string;
327
+ access: string[];
328
+ name: string;
329
+ createdAt: string;
330
+ updatedAt: string;
331
+ description?: string | undefined;
332
+ };
333
+ }, {
334
+ type: string;
335
+ id: string;
336
+ resetPassword: boolean;
337
+ name: string;
338
+ identity: string;
339
+ profileId: string;
340
+ createdAt: string;
341
+ updatedAt: string;
342
+ roleId: string;
343
+ isActive: boolean;
344
+ role: {
345
+ id: string;
346
+ access: string[];
347
+ name: string;
348
+ createdAt: string;
349
+ updatedAt: string;
350
+ description?: string | undefined;
351
+ };
352
+ }>;
353
+ 400: z.ZodObject<{
354
+ message: z.ZodString;
355
+ errors: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
356
+ }, "strip", z.ZodTypeAny, {
357
+ message: string;
358
+ errors?: string[] | undefined;
359
+ }, {
360
+ message: string;
361
+ errors?: string[] | undefined;
362
+ }>;
363
+ 401: z.ZodObject<{
364
+ message: z.ZodString;
365
+ }, "strip", z.ZodTypeAny, {
366
+ message: string;
367
+ }, {
368
+ message: string;
369
+ }>;
370
+ 403: z.ZodObject<{
371
+ message: z.ZodString;
372
+ }, "strip", z.ZodTypeAny, {
373
+ message: string;
374
+ }, {
375
+ message: string;
376
+ }>;
377
+ 404: z.ZodObject<{
378
+ message: z.ZodString;
379
+ }, "strip", z.ZodTypeAny, {
380
+ message: string;
381
+ }, {
382
+ message: string;
383
+ }>;
384
+ };
385
+ };
386
+ archiveUser: {
387
+ description: "Archive (soft delete) a user account";
388
+ pathParams: z.ZodObject<{
389
+ id: z.ZodString;
390
+ }, "strip", z.ZodTypeAny, {
391
+ id: string;
392
+ }, {
393
+ id: string;
394
+ }>;
395
+ summary: "Archive user account";
396
+ method: "DELETE";
397
+ path: "/login/:id";
398
+ responses: {
399
+ 200: z.ZodObject<{
400
+ id: z.ZodString;
401
+ name: z.ZodString;
402
+ identity: z.ZodString;
403
+ type: z.ZodString;
404
+ profileId: z.ZodString;
405
+ roleId: z.ZodString;
406
+ resetPassword: z.ZodBoolean;
407
+ isActive: z.ZodBoolean;
408
+ role: z.ZodType<{
409
+ id: string;
410
+ access: string[];
411
+ name: string;
412
+ createdAt: string;
413
+ updatedAt: string;
414
+ description?: string | undefined;
415
+ }>;
416
+ createdAt: z.ZodString;
417
+ updatedAt: z.ZodString;
418
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
419
+ type: string;
420
+ id: string;
421
+ resetPassword: boolean;
422
+ name: string;
423
+ identity: string;
424
+ profileId: string;
425
+ createdAt: string;
426
+ updatedAt: string;
427
+ roleId: string;
428
+ isActive: boolean;
429
+ role: {
430
+ id: string;
431
+ access: string[];
432
+ name: string;
433
+ createdAt: string;
434
+ updatedAt: string;
435
+ description?: string | undefined;
436
+ };
437
+ }, {
438
+ type: string;
439
+ id: string;
440
+ resetPassword: boolean;
441
+ name: string;
442
+ identity: string;
443
+ profileId: string;
444
+ createdAt: string;
445
+ updatedAt: string;
446
+ roleId: string;
447
+ isActive: boolean;
448
+ role: {
449
+ id: string;
450
+ access: string[];
451
+ name: string;
452
+ createdAt: string;
453
+ updatedAt: string;
454
+ description?: string | undefined;
455
+ };
456
+ }>;
457
+ 401: z.ZodObject<{
458
+ message: z.ZodString;
459
+ }, "strip", z.ZodTypeAny, {
460
+ message: string;
461
+ }, {
462
+ message: string;
463
+ }>;
464
+ 403: z.ZodObject<{
465
+ message: z.ZodString;
466
+ }, "strip", z.ZodTypeAny, {
467
+ message: string;
468
+ }, {
469
+ message: string;
470
+ }>;
471
+ 404: z.ZodObject<{
472
+ message: z.ZodString;
473
+ }, "strip", z.ZodTypeAny, {
474
+ message: string;
475
+ }, {
476
+ message: string;
477
+ }>;
478
+ };
479
+ };
480
+ resetPassword: {
481
+ description: "Reset a user's password and optionally send notification";
482
+ pathParams: z.ZodObject<{
483
+ id: z.ZodString;
484
+ }, "strip", z.ZodTypeAny, {
485
+ id: string;
486
+ }, {
487
+ id: string;
488
+ }>;
489
+ summary: "Reset user password";
490
+ method: "POST";
491
+ body: z.ZodObject<{
492
+ newPassword: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodString, string, string>, string, string>, string, string>>;
493
+ sendNotification: z.ZodOptional<z.ZodBoolean>;
494
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
495
+ newPassword?: string | undefined;
496
+ sendNotification?: boolean | undefined;
497
+ }, {
498
+ newPassword?: string | undefined;
499
+ sendNotification?: boolean | undefined;
500
+ }>;
501
+ path: "/login/:id/reset-password";
502
+ responses: {
503
+ 200: z.ZodObject<{
504
+ message: z.ZodString;
505
+ }, "strip", z.ZodTypeAny, {
506
+ message: string;
507
+ }, {
508
+ message: string;
509
+ }>;
510
+ 400: z.ZodObject<{
511
+ message: z.ZodString;
512
+ }, "strip", z.ZodTypeAny, {
513
+ message: string;
514
+ }, {
515
+ message: string;
516
+ }>;
517
+ 401: z.ZodObject<{
518
+ message: z.ZodString;
519
+ }, "strip", z.ZodTypeAny, {
520
+ message: string;
521
+ }, {
522
+ message: string;
523
+ }>;
524
+ 403: z.ZodObject<{
525
+ message: z.ZodString;
526
+ }, "strip", z.ZodTypeAny, {
527
+ message: string;
528
+ }, {
529
+ message: string;
530
+ }>;
531
+ 404: z.ZodObject<{
532
+ message: z.ZodString;
533
+ }, "strip", z.ZodTypeAny, {
534
+ message: string;
535
+ }, {
536
+ message: string;
537
+ }>;
538
+ };
539
+ };
540
+ getRoles: {
541
+ description: "Retrieve a list of all available roles in the system";
542
+ summary: "List all roles";
543
+ method: "GET";
544
+ path: "/role";
545
+ responses: {
546
+ 200: z.ZodArray<z.ZodObject<{
547
+ id: z.ZodString;
548
+ name: z.ZodString;
549
+ description: z.ZodOptional<z.ZodString>;
550
+ access: z.ZodArray<z.ZodString>;
551
+ createdAt: z.ZodString;
552
+ updatedAt: z.ZodString;
553
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
554
+ id: string;
555
+ access: string[];
556
+ name: string;
557
+ createdAt: string;
558
+ updatedAt: string;
559
+ description?: string | undefined;
560
+ }, {
561
+ id: string;
562
+ access: string[];
563
+ name: string;
564
+ createdAt: string;
565
+ updatedAt: string;
566
+ description?: string | undefined;
567
+ }>, "many">;
568
+ 401: z.ZodObject<{
569
+ message: z.ZodString;
570
+ }, "strip", z.ZodTypeAny, {
571
+ message: string;
572
+ }, {
573
+ message: string;
574
+ }>;
575
+ 403: z.ZodObject<{
576
+ message: z.ZodString;
577
+ }, "strip", z.ZodTypeAny, {
578
+ message: string;
579
+ }, {
580
+ message: string;
581
+ }>;
582
+ };
583
+ };
584
+ getRole: {
585
+ description: "Retrieve detailed information about a specific role";
586
+ pathParams: z.ZodObject<{
587
+ id: z.ZodString;
588
+ }, "strip", z.ZodTypeAny, {
589
+ id: string;
590
+ }, {
591
+ id: string;
592
+ }>;
593
+ summary: "Get role details";
594
+ method: "GET";
595
+ path: "/role/:id";
596
+ responses: {
597
+ 200: z.ZodObject<{
598
+ id: z.ZodString;
599
+ name: z.ZodString;
600
+ description: z.ZodOptional<z.ZodString>;
601
+ access: z.ZodArray<z.ZodString>;
602
+ createdAt: z.ZodString;
603
+ updatedAt: z.ZodString;
604
+ }, z.UnknownKeysParam, z.ZodTypeAny, {
605
+ id: string;
606
+ access: string[];
607
+ name: string;
608
+ createdAt: string;
609
+ updatedAt: string;
610
+ description?: string | undefined;
611
+ }, {
612
+ id: string;
613
+ access: string[];
614
+ name: string;
615
+ createdAt: string;
616
+ updatedAt: string;
617
+ description?: string | undefined;
618
+ }>;
619
+ 401: z.ZodObject<{
620
+ message: z.ZodString;
621
+ }, "strip", z.ZodTypeAny, {
622
+ message: string;
623
+ }, {
624
+ message: string;
625
+ }>;
626
+ 403: z.ZodObject<{
627
+ message: z.ZodString;
628
+ }, "strip", z.ZodTypeAny, {
629
+ message: string;
630
+ }, {
631
+ message: string;
632
+ }>;
633
+ 404: z.ZodObject<{
634
+ message: z.ZodString;
635
+ }, "strip", z.ZodTypeAny, {
636
+ message: string;
637
+ }, {
638
+ message: string;
639
+ }>;
640
+ };
641
+ };
642
+ };
643
+ /**
644
+ * TypeScript type for the complete user management contract.
645
+ * Use this type for strongly typed API client implementations.
646
+ */
647
+ export type UserManagementContract = typeof userManagementContract;
648
+ //# sourceMappingURL=contract.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../../../src/src/features/admin/contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2LjC,CAAC;AAEH;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAC"}