@touhidrahman/restauth-sdk 1.0.0

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 (38) hide show
  1. package/README.md +9 -0
  2. package/package.json +29 -0
  3. package/src/hey-api/client/client.gen.d.ts +2 -0
  4. package/src/hey-api/client/client.gen.js +217 -0
  5. package/src/hey-api/client/index.d.ts +10 -0
  6. package/src/hey-api/client/index.js +6 -0
  7. package/src/hey-api/client/types.gen.d.ts +120 -0
  8. package/src/hey-api/client/types.gen.js +2 -0
  9. package/src/hey-api/client/utils.gen.d.ts +37 -0
  10. package/src/hey-api/client/utils.gen.js +233 -0
  11. package/src/hey-api/client.gen.d.ts +12 -0
  12. package/src/hey-api/client.gen.js +3 -0
  13. package/src/hey-api/core/auth.gen.d.ts +25 -0
  14. package/src/hey-api/core/auth.gen.js +14 -0
  15. package/src/hey-api/core/bodySerializer.gen.d.ts +25 -0
  16. package/src/hey-api/core/bodySerializer.gen.js +57 -0
  17. package/src/hey-api/core/params.gen.d.ts +43 -0
  18. package/src/hey-api/core/params.gen.js +106 -0
  19. package/src/hey-api/core/pathSerializer.gen.d.ts +33 -0
  20. package/src/hey-api/core/pathSerializer.gen.js +118 -0
  21. package/src/hey-api/core/queryKeySerializer.gen.d.ts +18 -0
  22. package/src/hey-api/core/queryKeySerializer.gen.js +100 -0
  23. package/src/hey-api/core/serverSentEvents.gen.d.ts +71 -0
  24. package/src/hey-api/core/serverSentEvents.gen.js +136 -0
  25. package/src/hey-api/core/types.gen.d.ts +83 -0
  26. package/src/hey-api/core/types.gen.js +2 -0
  27. package/src/hey-api/core/utils.gen.d.ts +19 -0
  28. package/src/hey-api/core/utils.gen.js +88 -0
  29. package/src/hey-api/index.d.ts +2 -0
  30. package/src/hey-api/index.js +2 -0
  31. package/src/hey-api/sdk.gen.d.ts +126 -0
  32. package/src/hey-api/sdk.gen.js +698 -0
  33. package/src/hey-api/transformers.gen.d.ts +78 -0
  34. package/src/hey-api/transformers.gen.js +1221 -0
  35. package/src/hey-api/types.gen.d.ts +4114 -0
  36. package/src/hey-api/types.gen.js +2 -0
  37. package/src/index.d.ts +3 -0
  38. package/src/index.js +3 -0
@@ -0,0 +1,4114 @@
1
+ export type ClientOptions = {
2
+ baseUrl: 'https://auth-api.mattrika.com' | (string & {});
3
+ };
4
+ export type GetData = {
5
+ body?: never;
6
+ path?: never;
7
+ query?: never;
8
+ url: '/';
9
+ };
10
+ export type GetResponses = {
11
+ /**
12
+ * Server running
13
+ */
14
+ 200: {
15
+ data: {
16
+ port: number;
17
+ };
18
+ message: string;
19
+ success: boolean;
20
+ error?: unknown;
21
+ meta?: unknown;
22
+ };
23
+ };
24
+ export type GetResponse = GetResponses[keyof GetResponses];
25
+ export type PostAdminNewTokenData = {
26
+ /**
27
+ * Refresh token
28
+ */
29
+ body: {
30
+ refreshToken: string;
31
+ };
32
+ path?: never;
33
+ query?: never;
34
+ url: '/admin/new-token';
35
+ };
36
+ export type PostAdminNewTokenResponses = {
37
+ /**
38
+ * User logged in successfully
39
+ */
40
+ 200: {
41
+ data: {
42
+ accessToken: string;
43
+ refreshToken: string;
44
+ lastLogin?: Date;
45
+ };
46
+ message: string;
47
+ success: boolean;
48
+ error?: unknown;
49
+ meta?: unknown;
50
+ };
51
+ };
52
+ export type PostAdminNewTokenResponse = PostAdminNewTokenResponses[keyof PostAdminNewTokenResponses];
53
+ export type PostAdminLoginData = {
54
+ /**
55
+ * Admin Login Data
56
+ */
57
+ body: {
58
+ password: string;
59
+ };
60
+ path?: never;
61
+ query?: never;
62
+ url: '/admin/login';
63
+ };
64
+ export type PostAdminLoginResponses = {
65
+ /**
66
+ * Admin logged in successfully
67
+ */
68
+ 200: {
69
+ data: {
70
+ accessToken: string;
71
+ refreshToken: string;
72
+ lastLogin?: Date;
73
+ };
74
+ message: string;
75
+ success: boolean;
76
+ error?: unknown;
77
+ meta?: unknown;
78
+ };
79
+ };
80
+ export type PostAdminLoginResponse = PostAdminLoginResponses[keyof PostAdminLoginResponses];
81
+ export type GetOrganizationsByOrganizationIdBranchesMyData = {
82
+ body?: never;
83
+ path: {
84
+ organizationId: string;
85
+ };
86
+ query?: {
87
+ id?: string;
88
+ name?: string;
89
+ description?: string | null;
90
+ zoneId?: string | null;
91
+ organizationId?: string | null;
92
+ createdAt?: Date | null;
93
+ updatedAt?: Date | null;
94
+ search?: string;
95
+ ids?: Array<string>;
96
+ orderBy?: string;
97
+ sortOrder?: 'asc' | 'desc';
98
+ page?: number;
99
+ size?: number;
100
+ };
101
+ url: '/organizations/{organizationId}/branches/my';
102
+ };
103
+ export type GetOrganizationsByOrganizationIdBranchesMyResponses = {
104
+ /**
105
+ * Branch List
106
+ */
107
+ 200: {
108
+ data: Array<{
109
+ id: string;
110
+ name: string;
111
+ description: string | null;
112
+ zoneId: string | null;
113
+ organizationId: string | null;
114
+ createdAt: Date | null;
115
+ updatedAt: Date | null;
116
+ }>;
117
+ message: string;
118
+ success: boolean;
119
+ error?: unknown;
120
+ meta?: unknown;
121
+ };
122
+ };
123
+ export type GetOrganizationsByOrganizationIdBranchesMyResponse = GetOrganizationsByOrganizationIdBranchesMyResponses[keyof GetOrganizationsByOrganizationIdBranchesMyResponses];
124
+ export type GetOrganizationsByOrganizationIdBranchesData = {
125
+ body?: never;
126
+ path: {
127
+ organizationId: string;
128
+ };
129
+ query?: {
130
+ id?: string;
131
+ name?: string;
132
+ description?: string | null;
133
+ zoneId?: string | null;
134
+ organizationId?: string | null;
135
+ createdAt?: Date | null;
136
+ updatedAt?: Date | null;
137
+ search?: string;
138
+ ids?: Array<string>;
139
+ orderBy?: string;
140
+ sortOrder?: 'asc' | 'desc';
141
+ page?: number;
142
+ size?: number;
143
+ };
144
+ url: '/organizations/{organizationId}/branches';
145
+ };
146
+ export type GetOrganizationsByOrganizationIdBranchesResponses = {
147
+ /**
148
+ * Branch List
149
+ */
150
+ 200: {
151
+ data: Array<{
152
+ id: string;
153
+ name: string;
154
+ description: string | null;
155
+ zoneId: string | null;
156
+ organizationId: string | null;
157
+ createdAt: Date | null;
158
+ updatedAt: Date | null;
159
+ }>;
160
+ message: string;
161
+ success: boolean;
162
+ error?: unknown;
163
+ meta?: unknown;
164
+ pagination: {
165
+ page: number;
166
+ size: number;
167
+ totalItems: number;
168
+ totalPages: number;
169
+ };
170
+ };
171
+ };
172
+ export type GetOrganizationsByOrganizationIdBranchesResponse = GetOrganizationsByOrganizationIdBranchesResponses[keyof GetOrganizationsByOrganizationIdBranchesResponses];
173
+ export type PostOrganizationsByOrganizationIdBranchesData = {
174
+ /**
175
+ * Input
176
+ */
177
+ body?: {
178
+ id?: string;
179
+ name: string;
180
+ description?: string | null;
181
+ zoneId?: string | null;
182
+ organizationId?: string | null;
183
+ createdAt?: Date | null;
184
+ updatedAt?: Date | null;
185
+ };
186
+ path: {
187
+ organizationId: string;
188
+ };
189
+ query?: never;
190
+ url: '/organizations/{organizationId}/branches';
191
+ };
192
+ export type PostOrganizationsByOrganizationIdBranchesResponses = {
193
+ /**
194
+ * Item
195
+ */
196
+ 200: {
197
+ data: {
198
+ id: string;
199
+ name: string;
200
+ description: string | null;
201
+ zoneId: string | null;
202
+ organizationId: string | null;
203
+ createdAt: Date | null;
204
+ updatedAt: Date | null;
205
+ };
206
+ message: string;
207
+ success: boolean;
208
+ error?: unknown;
209
+ meta?: unknown;
210
+ };
211
+ };
212
+ export type PostOrganizationsByOrganizationIdBranchesResponse = PostOrganizationsByOrganizationIdBranchesResponses[keyof PostOrganizationsByOrganizationIdBranchesResponses];
213
+ export type DeleteOrganizationsByOrganizationIdBranchesByIdData = {
214
+ body?: never;
215
+ path: {
216
+ id: string;
217
+ organizationId: string;
218
+ };
219
+ query?: never;
220
+ url: '/organizations/{organizationId}/branches/{id}';
221
+ };
222
+ export type DeleteOrganizationsByOrganizationIdBranchesByIdResponses = {
223
+ /**
224
+ * Deleted Branch
225
+ */
226
+ 200: {
227
+ data: {
228
+ id: string;
229
+ name: string;
230
+ description: string | null;
231
+ zoneId: string | null;
232
+ organizationId: string | null;
233
+ createdAt: Date | null;
234
+ updatedAt: Date | null;
235
+ };
236
+ message: string;
237
+ success: boolean;
238
+ error?: unknown;
239
+ meta?: unknown;
240
+ };
241
+ };
242
+ export type DeleteOrganizationsByOrganizationIdBranchesByIdResponse = DeleteOrganizationsByOrganizationIdBranchesByIdResponses[keyof DeleteOrganizationsByOrganizationIdBranchesByIdResponses];
243
+ export type GetOrganizationsByOrganizationIdBranchesByIdData = {
244
+ body?: never;
245
+ path: {
246
+ id: string;
247
+ organizationId: string;
248
+ };
249
+ query?: never;
250
+ url: '/organizations/{organizationId}/branches/{id}';
251
+ };
252
+ export type GetOrganizationsByOrganizationIdBranchesByIdResponses = {
253
+ /**
254
+ * Item
255
+ */
256
+ 200: {
257
+ data: {
258
+ id: string;
259
+ name: string;
260
+ description: string | null;
261
+ zoneId: string | null;
262
+ organizationId: string | null;
263
+ createdAt: Date | null;
264
+ updatedAt: Date | null;
265
+ };
266
+ message: string;
267
+ success: boolean;
268
+ error?: unknown;
269
+ meta?: unknown;
270
+ };
271
+ };
272
+ export type GetOrganizationsByOrganizationIdBranchesByIdResponse = GetOrganizationsByOrganizationIdBranchesByIdResponses[keyof GetOrganizationsByOrganizationIdBranchesByIdResponses];
273
+ export type PutOrganizationsByOrganizationIdBranchesByIdData = {
274
+ /**
275
+ * Input
276
+ */
277
+ body?: {
278
+ id?: string;
279
+ name?: string;
280
+ description?: string | null;
281
+ zoneId?: string | null;
282
+ organizationId?: string | null;
283
+ createdAt?: Date | null;
284
+ updatedAt?: Date | null;
285
+ };
286
+ path: {
287
+ id: string;
288
+ organizationId: string;
289
+ };
290
+ query?: never;
291
+ url: '/organizations/{organizationId}/branches/{id}';
292
+ };
293
+ export type PutOrganizationsByOrganizationIdBranchesByIdResponses = {
294
+ /**
295
+ * Item
296
+ */
297
+ 200: {
298
+ data: {
299
+ id: string;
300
+ name: string;
301
+ description: string | null;
302
+ zoneId: string | null;
303
+ organizationId: string | null;
304
+ createdAt: Date | null;
305
+ updatedAt: Date | null;
306
+ };
307
+ message: string;
308
+ success: boolean;
309
+ error?: unknown;
310
+ meta?: unknown;
311
+ };
312
+ };
313
+ export type PutOrganizationsByOrganizationIdBranchesByIdResponse = PutOrganizationsByOrganizationIdBranchesByIdResponses[keyof PutOrganizationsByOrganizationIdBranchesByIdResponses];
314
+ export type PutOrganizationsByOrganizationIdBranchesByIdChangeIdData = {
315
+ /**
316
+ * New Branch ID payload
317
+ */
318
+ body?: {
319
+ newId: string;
320
+ };
321
+ path: {
322
+ id: string;
323
+ organizationId: string;
324
+ };
325
+ query?: never;
326
+ url: '/organizations/{organizationId}/branches/{id}/change-id';
327
+ };
328
+ export type PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponses = {
329
+ /**
330
+ * Updated Branch ID
331
+ */
332
+ 200: {
333
+ data: {
334
+ id: string;
335
+ };
336
+ message: string;
337
+ success: boolean;
338
+ error?: unknown;
339
+ meta?: unknown;
340
+ };
341
+ };
342
+ export type PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponse = PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponses[keyof PutOrganizationsByOrganizationIdBranchesByIdChangeIdResponses];
343
+ export type GetGroupsMyData = {
344
+ body?: never;
345
+ path?: never;
346
+ query?: {
347
+ id?: string;
348
+ name?: string;
349
+ description?: string | null;
350
+ projectId?: string;
351
+ createdAt?: Date | null;
352
+ updatedAt?: Date | null;
353
+ search?: string;
354
+ ids?: Array<string>;
355
+ orderBy?: string;
356
+ sortOrder?: 'asc' | 'desc';
357
+ page?: number;
358
+ size?: number;
359
+ };
360
+ url: '/groups/my';
361
+ };
362
+ export type GetGroupsMyResponses = {
363
+ /**
364
+ * Group List
365
+ */
366
+ 200: {
367
+ data: Array<{
368
+ id: string;
369
+ name: string;
370
+ description: string | null;
371
+ projectId: string;
372
+ createdAt: Date | null;
373
+ updatedAt: Date | null;
374
+ }>;
375
+ message: string;
376
+ success: boolean;
377
+ error?: unknown;
378
+ meta?: unknown;
379
+ pagination: {
380
+ page: number;
381
+ size: number;
382
+ totalItems: number;
383
+ totalPages: number;
384
+ };
385
+ };
386
+ };
387
+ export type GetGroupsMyResponse = GetGroupsMyResponses[keyof GetGroupsMyResponses];
388
+ export type GetGroupsByIdPermissionsData = {
389
+ body?: never;
390
+ path: {
391
+ id: string;
392
+ };
393
+ query?: never;
394
+ url: '/groups/{id}/permissions';
395
+ };
396
+ export type GetGroupsByIdPermissionsResponses = {
397
+ /**
398
+ * Group Permissions List
399
+ */
400
+ 200: {
401
+ data: Array<{
402
+ id: string;
403
+ name: string;
404
+ description: string | null;
405
+ projectId: string;
406
+ }>;
407
+ message: string;
408
+ success: boolean;
409
+ error?: unknown;
410
+ meta?: unknown;
411
+ };
412
+ };
413
+ export type GetGroupsByIdPermissionsResponse = GetGroupsByIdPermissionsResponses[keyof GetGroupsByIdPermissionsResponses];
414
+ export type PostGroupsByIdPermissionsData = {
415
+ /**
416
+ * Input
417
+ */
418
+ body?: {
419
+ permissions: Array<string>;
420
+ };
421
+ path: {
422
+ id: string;
423
+ };
424
+ query?: never;
425
+ url: '/groups/{id}/permissions';
426
+ };
427
+ export type PostGroupsByIdPermissionsResponses = {
428
+ /**
429
+ * Group Permissions List
430
+ */
431
+ 200: {
432
+ data: Array<{
433
+ id: string;
434
+ name: string;
435
+ description: string | null;
436
+ projectId: string;
437
+ }>;
438
+ message: string;
439
+ success: boolean;
440
+ error?: unknown;
441
+ meta?: unknown;
442
+ };
443
+ };
444
+ export type PostGroupsByIdPermissionsResponse = PostGroupsByIdPermissionsResponses[keyof PostGroupsByIdPermissionsResponses];
445
+ export type GetGroupsByIdUsersData = {
446
+ body?: never;
447
+ path: {
448
+ id: string;
449
+ };
450
+ query?: {
451
+ search?: string;
452
+ ids?: Array<string>;
453
+ orderBy?: string;
454
+ sortOrder?: 'asc' | 'desc';
455
+ page?: number;
456
+ size?: number;
457
+ };
458
+ url: '/groups/{id}/users';
459
+ };
460
+ export type GetGroupsByIdUsersResponses = {
461
+ /**
462
+ * Group Users List
463
+ */
464
+ 200: {
465
+ data: Array<{
466
+ id: string;
467
+ firstName: string;
468
+ lastName: string;
469
+ defaultMembershipId: string | null;
470
+ lastLogin: Date | null;
471
+ bannedAt: Date | null;
472
+ verifiedAt: Date | null;
473
+ projectId: string;
474
+ createdAt: Date | null;
475
+ updatedAt: Date | null;
476
+ }>;
477
+ message: string;
478
+ success: boolean;
479
+ error?: unknown;
480
+ meta?: unknown;
481
+ pagination: {
482
+ page: number;
483
+ size: number;
484
+ totalItems: number;
485
+ totalPages: number;
486
+ };
487
+ };
488
+ };
489
+ export type GetGroupsByIdUsersResponse = GetGroupsByIdUsersResponses[keyof GetGroupsByIdUsersResponses];
490
+ export type DeleteGroupsByGroupIdUsersByUserIdData = {
491
+ body?: never;
492
+ path: {
493
+ groupId: string;
494
+ userId: string;
495
+ };
496
+ query?: never;
497
+ url: '/groups/{groupId}/users/{userId}';
498
+ };
499
+ export type DeleteGroupsByGroupIdUsersByUserIdResponses = {
500
+ /**
501
+ * Group User Deleted Successfully
502
+ */
503
+ 200: {
504
+ data: {
505
+ [key: string]: unknown;
506
+ };
507
+ message: string;
508
+ success: boolean;
509
+ error?: unknown;
510
+ meta?: unknown;
511
+ };
512
+ };
513
+ export type DeleteGroupsByGroupIdUsersByUserIdResponse = DeleteGroupsByGroupIdUsersByUserIdResponses[keyof DeleteGroupsByGroupIdUsersByUserIdResponses];
514
+ export type GetGroupsData = {
515
+ body?: never;
516
+ path?: never;
517
+ query?: {
518
+ id?: string;
519
+ name?: string;
520
+ description?: string | null;
521
+ projectId?: string;
522
+ createdAt?: Date | null;
523
+ updatedAt?: Date | null;
524
+ search?: string;
525
+ ids?: Array<string>;
526
+ orderBy?: string;
527
+ sortOrder?: 'asc' | 'desc';
528
+ page?: number;
529
+ size?: number;
530
+ };
531
+ url: '/groups';
532
+ };
533
+ export type GetGroupsResponses = {
534
+ /**
535
+ * Group List
536
+ */
537
+ 200: {
538
+ data: Array<{
539
+ id: string;
540
+ name: string;
541
+ description: string | null;
542
+ projectId: string;
543
+ createdAt: Date | null;
544
+ updatedAt: Date | null;
545
+ }>;
546
+ message: string;
547
+ success: boolean;
548
+ error?: unknown;
549
+ meta?: unknown;
550
+ pagination: {
551
+ page: number;
552
+ size: number;
553
+ totalItems: number;
554
+ totalPages: number;
555
+ };
556
+ };
557
+ };
558
+ export type GetGroupsResponse = GetGroupsResponses[keyof GetGroupsResponses];
559
+ export type PostGroupsData = {
560
+ /**
561
+ * Input
562
+ */
563
+ body?: {
564
+ id?: string;
565
+ name: string;
566
+ description?: string | null;
567
+ createdAt?: Date | null;
568
+ updatedAt?: Date | null;
569
+ };
570
+ path?: never;
571
+ query?: never;
572
+ url: '/groups';
573
+ };
574
+ export type PostGroupsResponses = {
575
+ /**
576
+ * Item
577
+ */
578
+ 200: {
579
+ data: {
580
+ id: string;
581
+ name: string;
582
+ description: string | null;
583
+ projectId: string;
584
+ createdAt: Date | null;
585
+ updatedAt: Date | null;
586
+ };
587
+ message: string;
588
+ success: boolean;
589
+ error?: unknown;
590
+ meta?: unknown;
591
+ };
592
+ };
593
+ export type PostGroupsResponse = PostGroupsResponses[keyof PostGroupsResponses];
594
+ export type DeleteGroupsByIdData = {
595
+ body?: never;
596
+ path: {
597
+ id: string;
598
+ };
599
+ query?: never;
600
+ url: '/groups/{id}';
601
+ };
602
+ export type DeleteGroupsByIdResponses = {
603
+ /**
604
+ * Deleted Group
605
+ */
606
+ 200: {
607
+ data: {
608
+ id: string;
609
+ name: string;
610
+ description: string | null;
611
+ projectId: string;
612
+ createdAt: Date | null;
613
+ updatedAt: Date | null;
614
+ };
615
+ message: string;
616
+ success: boolean;
617
+ error?: unknown;
618
+ meta?: unknown;
619
+ };
620
+ };
621
+ export type DeleteGroupsByIdResponse = DeleteGroupsByIdResponses[keyof DeleteGroupsByIdResponses];
622
+ export type GetGroupsByIdData = {
623
+ body?: never;
624
+ path: {
625
+ id: string;
626
+ };
627
+ query?: never;
628
+ url: '/groups/{id}';
629
+ };
630
+ export type GetGroupsByIdResponses = {
631
+ /**
632
+ * Item
633
+ */
634
+ 200: {
635
+ data: {
636
+ id: string;
637
+ name: string;
638
+ description: string | null;
639
+ projectId: string;
640
+ createdAt: Date | null;
641
+ updatedAt: Date | null;
642
+ };
643
+ message: string;
644
+ success: boolean;
645
+ error?: unknown;
646
+ meta?: unknown;
647
+ };
648
+ };
649
+ export type GetGroupsByIdResponse = GetGroupsByIdResponses[keyof GetGroupsByIdResponses];
650
+ export type PutGroupsByIdData = {
651
+ /**
652
+ * Input
653
+ */
654
+ body?: {
655
+ id?: string;
656
+ name?: string;
657
+ description?: string | null;
658
+ projectId?: string;
659
+ createdAt?: Date | null;
660
+ updatedAt?: Date | null;
661
+ };
662
+ path: {
663
+ id: string;
664
+ };
665
+ query?: never;
666
+ url: '/groups/{id}';
667
+ };
668
+ export type PutGroupsByIdResponses = {
669
+ /**
670
+ * Item
671
+ */
672
+ 200: {
673
+ data: {
674
+ id: string;
675
+ name: string;
676
+ description: string | null;
677
+ projectId: string;
678
+ createdAt: Date | null;
679
+ updatedAt: Date | null;
680
+ };
681
+ message: string;
682
+ success: boolean;
683
+ error?: unknown;
684
+ meta?: unknown;
685
+ };
686
+ };
687
+ export type PutGroupsByIdResponse = PutGroupsByIdResponses[keyof PutGroupsByIdResponses];
688
+ export type PutGroupsByIdChangeIdData = {
689
+ /**
690
+ * New ID payload
691
+ */
692
+ body?: {
693
+ newId: string;
694
+ };
695
+ path: {
696
+ id: string;
697
+ };
698
+ query?: never;
699
+ url: '/groups/{id}/change-id';
700
+ };
701
+ export type PutGroupsByIdChangeIdResponses = {
702
+ /**
703
+ * Updated Group ID
704
+ */
705
+ 200: {
706
+ data: {
707
+ id: string;
708
+ };
709
+ message: string;
710
+ success: boolean;
711
+ error?: unknown;
712
+ meta?: unknown;
713
+ };
714
+ };
715
+ export type PutGroupsByIdChangeIdResponse = PutGroupsByIdChangeIdResponses[keyof PutGroupsByIdChangeIdResponses];
716
+ export type GetInvitesData = {
717
+ body?: never;
718
+ path?: never;
719
+ query?: {
720
+ id?: string;
721
+ projectId?: string;
722
+ groupId?: string;
723
+ organizationId?: string;
724
+ roleId?: string | null;
725
+ identifierType?: string;
726
+ identifierValue?: string;
727
+ creatorId?: string | null;
728
+ token?: string | null;
729
+ expiresAt?: Date | null;
730
+ acceptedAt?: Date | null;
731
+ linkedUserId?: string | null;
732
+ createdAt?: Date | null;
733
+ updatedAt?: Date | null;
734
+ search?: string;
735
+ ids?: Array<string>;
736
+ orderBy?: string;
737
+ sortOrder?: 'asc' | 'desc';
738
+ page?: number;
739
+ size?: number;
740
+ };
741
+ url: '/invites';
742
+ };
743
+ export type GetInvitesResponses = {
744
+ /**
745
+ * Invite List
746
+ */
747
+ 200: {
748
+ data: Array<{
749
+ id: string;
750
+ projectId: string;
751
+ groupId: string;
752
+ organizationId: string;
753
+ roleId: string | null;
754
+ identifierType: string;
755
+ identifierValue: string;
756
+ creatorId: string | null;
757
+ token: string | null;
758
+ expiresAt: Date | null;
759
+ acceptedAt: Date | null;
760
+ linkedUserId: string | null;
761
+ createdAt: Date | null;
762
+ updatedAt: Date | null;
763
+ }>;
764
+ message: string;
765
+ success: boolean;
766
+ error?: unknown;
767
+ meta?: unknown;
768
+ pagination: {
769
+ page: number;
770
+ size: number;
771
+ totalItems: number;
772
+ totalPages: number;
773
+ };
774
+ };
775
+ };
776
+ export type GetInvitesResponse = GetInvitesResponses[keyof GetInvitesResponses];
777
+ export type PostInvitesData = {
778
+ /**
779
+ * Input
780
+ */
781
+ body?: {
782
+ id?: string;
783
+ groupId: string;
784
+ organizationId: string;
785
+ roleId?: string | null;
786
+ identifierType: string;
787
+ identifierValue: string;
788
+ creatorId?: string | null;
789
+ token?: string | null;
790
+ expiresAt?: Date | null;
791
+ acceptedAt?: Date | null;
792
+ linkedUserId?: string | null;
793
+ createdAt?: Date | null;
794
+ updatedAt?: Date | null;
795
+ };
796
+ path?: never;
797
+ query?: never;
798
+ url: '/invites';
799
+ };
800
+ export type PostInvitesResponses = {
801
+ /**
802
+ * Item
803
+ */
804
+ 200: {
805
+ data: {
806
+ id: string;
807
+ projectId: string;
808
+ groupId: string;
809
+ organizationId: string;
810
+ roleId: string | null;
811
+ identifierType: string;
812
+ identifierValue: string;
813
+ creatorId: string | null;
814
+ token: string | null;
815
+ expiresAt: Date | null;
816
+ acceptedAt: Date | null;
817
+ linkedUserId: string | null;
818
+ createdAt: Date | null;
819
+ updatedAt: Date | null;
820
+ };
821
+ message: string;
822
+ success: boolean;
823
+ error?: unknown;
824
+ meta?: unknown;
825
+ };
826
+ };
827
+ export type PostInvitesResponse = PostInvitesResponses[keyof PostInvitesResponses];
828
+ export type DeleteInvitesByIdData = {
829
+ body?: never;
830
+ path: {
831
+ id: string;
832
+ };
833
+ query?: never;
834
+ url: '/invites/{id}';
835
+ };
836
+ export type DeleteInvitesByIdResponses = {
837
+ /**
838
+ * Deleted Invite
839
+ */
840
+ 200: {
841
+ data: {
842
+ id: string;
843
+ projectId: string;
844
+ groupId: string;
845
+ organizationId: string;
846
+ roleId: string | null;
847
+ identifierType: string;
848
+ identifierValue: string;
849
+ creatorId: string | null;
850
+ token: string | null;
851
+ expiresAt: Date | null;
852
+ acceptedAt: Date | null;
853
+ linkedUserId: string | null;
854
+ createdAt: Date | null;
855
+ updatedAt: Date | null;
856
+ };
857
+ message: string;
858
+ success: boolean;
859
+ error?: unknown;
860
+ meta?: unknown;
861
+ };
862
+ };
863
+ export type DeleteInvitesByIdResponse = DeleteInvitesByIdResponses[keyof DeleteInvitesByIdResponses];
864
+ export type GetInvitesByIdData = {
865
+ body?: never;
866
+ path: {
867
+ id: string;
868
+ };
869
+ query?: never;
870
+ url: '/invites/{id}';
871
+ };
872
+ export type GetInvitesByIdResponses = {
873
+ /**
874
+ * Item
875
+ */
876
+ 200: {
877
+ data: {
878
+ id: string;
879
+ projectId: string;
880
+ groupId: string;
881
+ organizationId: string;
882
+ roleId: string | null;
883
+ identifierType: string;
884
+ identifierValue: string;
885
+ creatorId: string | null;
886
+ token: string | null;
887
+ expiresAt: Date | null;
888
+ acceptedAt: Date | null;
889
+ linkedUserId: string | null;
890
+ createdAt: Date | null;
891
+ updatedAt: Date | null;
892
+ };
893
+ message: string;
894
+ success: boolean;
895
+ error?: unknown;
896
+ meta?: unknown;
897
+ };
898
+ };
899
+ export type GetInvitesByIdResponse = GetInvitesByIdResponses[keyof GetInvitesByIdResponses];
900
+ export type PutInvitesByIdData = {
901
+ /**
902
+ * Input
903
+ */
904
+ body?: {
905
+ id?: string;
906
+ groupId?: string;
907
+ organizationId?: string;
908
+ roleId?: string | null;
909
+ identifierType?: string;
910
+ identifierValue?: string;
911
+ creatorId?: string | null;
912
+ expiresAt?: Date | null;
913
+ acceptedAt?: Date | null;
914
+ linkedUserId?: string | null;
915
+ createdAt?: Date | null;
916
+ updatedAt?: Date | null;
917
+ };
918
+ path: {
919
+ id: string;
920
+ };
921
+ query?: never;
922
+ url: '/invites/{id}';
923
+ };
924
+ export type PutInvitesByIdResponses = {
925
+ /**
926
+ * Item
927
+ */
928
+ 200: {
929
+ data: {
930
+ id: string;
931
+ projectId: string;
932
+ groupId: string;
933
+ organizationId: string;
934
+ roleId: string | null;
935
+ identifierType: string;
936
+ identifierValue: string;
937
+ creatorId: string | null;
938
+ token: string | null;
939
+ expiresAt: Date | null;
940
+ acceptedAt: Date | null;
941
+ linkedUserId: string | null;
942
+ createdAt: Date | null;
943
+ updatedAt: Date | null;
944
+ };
945
+ message: string;
946
+ success: boolean;
947
+ error?: unknown;
948
+ meta?: unknown;
949
+ };
950
+ };
951
+ export type PutInvitesByIdResponse = PutInvitesByIdResponses[keyof PutInvitesByIdResponses];
952
+ export type PutInvitesByIdChangeIdData = {
953
+ /**
954
+ * New Invite ID payload
955
+ */
956
+ body?: {
957
+ newId: string;
958
+ };
959
+ path: {
960
+ id: string;
961
+ };
962
+ query?: never;
963
+ url: '/invites/{id}/change-id';
964
+ };
965
+ export type PutInvitesByIdChangeIdResponses = {
966
+ /**
967
+ * Updated Invite ID
968
+ */
969
+ 200: {
970
+ data: {
971
+ id: string;
972
+ };
973
+ message: string;
974
+ success: boolean;
975
+ error?: unknown;
976
+ meta?: unknown;
977
+ };
978
+ };
979
+ export type PutInvitesByIdChangeIdResponse = PutInvitesByIdChangeIdResponses[keyof PutInvitesByIdChangeIdResponses];
980
+ export type DeleteMembershipsByIdZoneData = {
981
+ /**
982
+ * Input
983
+ */
984
+ body: {
985
+ zoneId: string;
986
+ };
987
+ path: {
988
+ id: string;
989
+ };
990
+ query?: never;
991
+ url: '/memberships/{id}/zone';
992
+ };
993
+ export type DeleteMembershipsByIdZoneResponses = {
994
+ /**
995
+ * Removed from zone
996
+ */
997
+ 200: {
998
+ data: {
999
+ [key: string]: unknown;
1000
+ };
1001
+ message: string;
1002
+ success: boolean;
1003
+ error?: unknown;
1004
+ meta?: unknown;
1005
+ };
1006
+ };
1007
+ export type DeleteMembershipsByIdZoneResponse = DeleteMembershipsByIdZoneResponses[keyof DeleteMembershipsByIdZoneResponses];
1008
+ export type PostMembershipsByIdZoneData = {
1009
+ /**
1010
+ * Input
1011
+ */
1012
+ body: {
1013
+ zoneId: string;
1014
+ isDefault: boolean;
1015
+ };
1016
+ path: {
1017
+ id: string;
1018
+ };
1019
+ query?: never;
1020
+ url: '/memberships/{id}/zone';
1021
+ };
1022
+ export type PostMembershipsByIdZoneResponses = {
1023
+ /**
1024
+ * Added to zone
1025
+ */
1026
+ 200: {
1027
+ data: {
1028
+ membershipId: string;
1029
+ zoneId: string;
1030
+ createdAt: Date | null;
1031
+ updatedAt: Date | null;
1032
+ };
1033
+ message: string;
1034
+ success: boolean;
1035
+ error?: unknown;
1036
+ meta?: unknown;
1037
+ };
1038
+ };
1039
+ export type PostMembershipsByIdZoneResponse = PostMembershipsByIdZoneResponses[keyof PostMembershipsByIdZoneResponses];
1040
+ export type GetMembershipsZoneByZoneIdData = {
1041
+ body?: never;
1042
+ path: {
1043
+ zoneId: string;
1044
+ };
1045
+ query?: never;
1046
+ url: '/memberships/zone/{zoneId}';
1047
+ };
1048
+ export type GetMembershipsZoneByZoneIdResponses = {
1049
+ /**
1050
+ * Added to zone
1051
+ */
1052
+ 200: {
1053
+ data: Array<{
1054
+ membershipId: string;
1055
+ zoneId: string;
1056
+ createdAt: Date | null;
1057
+ updatedAt: Date | null;
1058
+ }>;
1059
+ message: string;
1060
+ success: boolean;
1061
+ error?: unknown;
1062
+ meta?: unknown;
1063
+ };
1064
+ };
1065
+ export type GetMembershipsZoneByZoneIdResponse = GetMembershipsZoneByZoneIdResponses[keyof GetMembershipsZoneByZoneIdResponses];
1066
+ export type DeleteMembershipsByIdBranchData = {
1067
+ /**
1068
+ * Input
1069
+ */
1070
+ body: {
1071
+ branchId: string;
1072
+ };
1073
+ path: {
1074
+ id: string;
1075
+ };
1076
+ query?: never;
1077
+ url: '/memberships/{id}/branch';
1078
+ };
1079
+ export type DeleteMembershipsByIdBranchResponses = {
1080
+ /**
1081
+ * Removed from branch
1082
+ */
1083
+ 200: {
1084
+ data: {
1085
+ [key: string]: unknown;
1086
+ };
1087
+ message: string;
1088
+ success: boolean;
1089
+ error?: unknown;
1090
+ meta?: unknown;
1091
+ };
1092
+ };
1093
+ export type DeleteMembershipsByIdBranchResponse = DeleteMembershipsByIdBranchResponses[keyof DeleteMembershipsByIdBranchResponses];
1094
+ export type PostMembershipsByIdBranchData = {
1095
+ /**
1096
+ * Input
1097
+ */
1098
+ body: {
1099
+ branchId: string;
1100
+ isDefault: boolean;
1101
+ };
1102
+ path: {
1103
+ id: string;
1104
+ };
1105
+ query?: never;
1106
+ url: '/memberships/{id}/branch';
1107
+ };
1108
+ export type PostMembershipsByIdBranchResponses = {
1109
+ /**
1110
+ * Added to branch
1111
+ */
1112
+ 200: {
1113
+ data: {
1114
+ membershipId: string;
1115
+ branchId: string | null;
1116
+ isDefault?: boolean | null;
1117
+ createdAt: Date | null;
1118
+ updatedAt: Date | null;
1119
+ };
1120
+ message: string;
1121
+ success: boolean;
1122
+ error?: unknown;
1123
+ meta?: unknown;
1124
+ };
1125
+ };
1126
+ export type PostMembershipsByIdBranchResponse = PostMembershipsByIdBranchResponses[keyof PostMembershipsByIdBranchResponses];
1127
+ export type GetMembershipsBranchByIdData = {
1128
+ /**
1129
+ * Input
1130
+ */
1131
+ body: {
1132
+ branchId: string;
1133
+ };
1134
+ path: {
1135
+ id: string;
1136
+ };
1137
+ query?: never;
1138
+ url: '/memberships/branch/{id}';
1139
+ };
1140
+ export type GetMembershipsBranchByIdResponses = {
1141
+ /**
1142
+ * Removed from branch
1143
+ */
1144
+ 200: {
1145
+ data: Array<{
1146
+ membershipId: string;
1147
+ branchId: string | null;
1148
+ isDefault?: boolean | null;
1149
+ createdAt: Date | null;
1150
+ updatedAt: Date | null;
1151
+ }>;
1152
+ message: string;
1153
+ success: boolean;
1154
+ error?: unknown;
1155
+ meta?: unknown;
1156
+ };
1157
+ };
1158
+ export type GetMembershipsBranchByIdResponse = GetMembershipsBranchByIdResponses[keyof GetMembershipsBranchByIdResponses];
1159
+ export type GetMembershipsMyData = {
1160
+ body?: never;
1161
+ path?: never;
1162
+ query?: {
1163
+ id?: string;
1164
+ userId?: string;
1165
+ roleId?: string;
1166
+ organizationId?: string;
1167
+ groupId?: string;
1168
+ projectId?: string;
1169
+ createdAt?: Date | null;
1170
+ updatedAt?: Date | null;
1171
+ search?: string;
1172
+ ids?: Array<string>;
1173
+ orderBy?: string;
1174
+ sortOrder?: 'asc' | 'desc';
1175
+ page?: number;
1176
+ size?: number;
1177
+ };
1178
+ url: '/memberships/my';
1179
+ };
1180
+ export type GetMembershipsMyResponses = {
1181
+ /**
1182
+ * Membership List
1183
+ */
1184
+ 200: {
1185
+ data: Array<{
1186
+ id: string;
1187
+ userId: string;
1188
+ roleId: string;
1189
+ organizationId: string;
1190
+ groupId: string;
1191
+ projectId: string;
1192
+ createdAt: Date | null;
1193
+ updatedAt: Date | null;
1194
+ }>;
1195
+ message: string;
1196
+ success: boolean;
1197
+ error?: unknown;
1198
+ meta?: unknown;
1199
+ };
1200
+ };
1201
+ export type GetMembershipsMyResponse = GetMembershipsMyResponses[keyof GetMembershipsMyResponses];
1202
+ export type GetMembershipsByIdPermissionsData = {
1203
+ body?: never;
1204
+ path: {
1205
+ id: string;
1206
+ };
1207
+ query?: never;
1208
+ url: '/memberships/{id}/permissions';
1209
+ };
1210
+ export type GetMembershipsByIdPermissionsResponses = {
1211
+ /**
1212
+ * Membership Permissions
1213
+ */
1214
+ 200: {
1215
+ data: Array<{
1216
+ id: string;
1217
+ name: string;
1218
+ description: string | null;
1219
+ }>;
1220
+ message: string;
1221
+ success: boolean;
1222
+ error?: unknown;
1223
+ meta?: unknown;
1224
+ };
1225
+ };
1226
+ export type GetMembershipsByIdPermissionsResponse = GetMembershipsByIdPermissionsResponses[keyof GetMembershipsByIdPermissionsResponses];
1227
+ export type DeleteMembershipsData = {
1228
+ /**
1229
+ * Membership ids
1230
+ */
1231
+ body?: {
1232
+ ids: Array<string>;
1233
+ };
1234
+ path?: never;
1235
+ query?: never;
1236
+ url: '/memberships';
1237
+ };
1238
+ export type DeleteMembershipsResponses = {
1239
+ /**
1240
+ * Deleted Memberships
1241
+ */
1242
+ 200: {
1243
+ data: {
1244
+ [key: string]: unknown;
1245
+ };
1246
+ message: string;
1247
+ success: boolean;
1248
+ error?: unknown;
1249
+ meta?: unknown;
1250
+ };
1251
+ };
1252
+ export type DeleteMembershipsResponse = DeleteMembershipsResponses[keyof DeleteMembershipsResponses];
1253
+ export type GetMembershipsData = {
1254
+ body?: never;
1255
+ path?: never;
1256
+ query?: {
1257
+ id?: string;
1258
+ userId?: string;
1259
+ roleId?: string;
1260
+ organizationId?: string;
1261
+ groupId?: string;
1262
+ projectId?: string;
1263
+ createdAt?: Date | null;
1264
+ updatedAt?: Date | null;
1265
+ search?: string;
1266
+ ids?: Array<string>;
1267
+ orderBy?: string;
1268
+ sortOrder?: 'asc' | 'desc';
1269
+ page?: number;
1270
+ size?: number;
1271
+ };
1272
+ url: '/memberships';
1273
+ };
1274
+ export type GetMembershipsResponses = {
1275
+ /**
1276
+ * Membership List
1277
+ */
1278
+ 200: {
1279
+ data: Array<{
1280
+ id: string;
1281
+ userId: string;
1282
+ roleId: string;
1283
+ organizationId: string;
1284
+ groupId: string;
1285
+ projectId: string;
1286
+ createdAt: Date | null;
1287
+ updatedAt: Date | null;
1288
+ project: {
1289
+ id: string;
1290
+ name: string;
1291
+ icon: string | null;
1292
+ color: string | null;
1293
+ createdAt: Date | null;
1294
+ updatedAt: Date | null;
1295
+ } | null;
1296
+ user: {
1297
+ id: string;
1298
+ firstName: string;
1299
+ lastName: string;
1300
+ defaultMembershipId: string | null;
1301
+ lastLogin: Date | null;
1302
+ bannedAt: Date | null;
1303
+ verifiedAt: Date | null;
1304
+ projectId: string;
1305
+ createdAt: Date | null;
1306
+ updatedAt: Date | null;
1307
+ } | null;
1308
+ role: {
1309
+ id: string;
1310
+ name: string;
1311
+ description: string | null;
1312
+ organizationId: string | null;
1313
+ groupId: string;
1314
+ projectId: string;
1315
+ createdAt: Date | null;
1316
+ updatedAt: Date | null;
1317
+ } | null;
1318
+ group: {
1319
+ id: string;
1320
+ name: string;
1321
+ description: string | null;
1322
+ projectId: string;
1323
+ createdAt: Date | null;
1324
+ updatedAt: Date | null;
1325
+ } | null;
1326
+ organization: {
1327
+ id: string;
1328
+ name: string;
1329
+ groupId: string;
1330
+ projectId: string;
1331
+ creatorId: string | null;
1332
+ createdAt: Date | null;
1333
+ updatedAt: Date | null;
1334
+ } | null;
1335
+ }>;
1336
+ message: string;
1337
+ success: boolean;
1338
+ error?: unknown;
1339
+ meta?: unknown;
1340
+ pagination: {
1341
+ page: number;
1342
+ size: number;
1343
+ totalItems: number;
1344
+ totalPages: number;
1345
+ };
1346
+ };
1347
+ };
1348
+ export type GetMembershipsResponse = GetMembershipsResponses[keyof GetMembershipsResponses];
1349
+ export type PostMembershipsData = {
1350
+ /**
1351
+ * Input
1352
+ */
1353
+ body?: {
1354
+ id?: string;
1355
+ userId: string;
1356
+ roleId: string;
1357
+ organizationId: string;
1358
+ createdAt?: Date | null;
1359
+ updatedAt?: Date | null;
1360
+ };
1361
+ path?: never;
1362
+ query?: never;
1363
+ url: '/memberships';
1364
+ };
1365
+ export type PostMembershipsResponses = {
1366
+ /**
1367
+ * Item
1368
+ */
1369
+ 200: {
1370
+ data: {
1371
+ id: string;
1372
+ userId: string;
1373
+ roleId: string;
1374
+ organizationId: string;
1375
+ groupId: string;
1376
+ projectId: string;
1377
+ createdAt: Date | null;
1378
+ updatedAt: Date | null;
1379
+ project: {
1380
+ id: string;
1381
+ name: string;
1382
+ icon: string | null;
1383
+ color: string | null;
1384
+ createdAt: Date | null;
1385
+ updatedAt: Date | null;
1386
+ } | null;
1387
+ user: {
1388
+ id: string;
1389
+ firstName: string;
1390
+ lastName: string;
1391
+ defaultMembershipId: string | null;
1392
+ lastLogin: Date | null;
1393
+ bannedAt: Date | null;
1394
+ verifiedAt: Date | null;
1395
+ projectId: string;
1396
+ createdAt: Date | null;
1397
+ updatedAt: Date | null;
1398
+ } | null;
1399
+ role: {
1400
+ id: string;
1401
+ name: string;
1402
+ description: string | null;
1403
+ organizationId: string | null;
1404
+ groupId: string;
1405
+ projectId: string;
1406
+ createdAt: Date | null;
1407
+ updatedAt: Date | null;
1408
+ } | null;
1409
+ group: {
1410
+ id: string;
1411
+ name: string;
1412
+ description: string | null;
1413
+ projectId: string;
1414
+ createdAt: Date | null;
1415
+ updatedAt: Date | null;
1416
+ } | null;
1417
+ organization: {
1418
+ id: string;
1419
+ name: string;
1420
+ groupId: string;
1421
+ projectId: string;
1422
+ creatorId: string | null;
1423
+ createdAt: Date | null;
1424
+ updatedAt: Date | null;
1425
+ } | null;
1426
+ };
1427
+ message: string;
1428
+ success: boolean;
1429
+ error?: unknown;
1430
+ meta?: unknown;
1431
+ };
1432
+ };
1433
+ export type PostMembershipsResponse = PostMembershipsResponses[keyof PostMembershipsResponses];
1434
+ export type DeleteMembershipsByIdData = {
1435
+ body?: never;
1436
+ path: {
1437
+ id: string;
1438
+ };
1439
+ query?: never;
1440
+ url: '/memberships/{id}';
1441
+ };
1442
+ export type DeleteMembershipsByIdResponses = {
1443
+ /**
1444
+ * Deleted Membership
1445
+ */
1446
+ 200: {
1447
+ data: {
1448
+ id: string;
1449
+ userId: string;
1450
+ roleId: string;
1451
+ organizationId: string;
1452
+ groupId: string;
1453
+ projectId: string;
1454
+ createdAt: Date | null;
1455
+ updatedAt: Date | null;
1456
+ };
1457
+ message: string;
1458
+ success: boolean;
1459
+ error?: unknown;
1460
+ meta?: unknown;
1461
+ };
1462
+ };
1463
+ export type DeleteMembershipsByIdResponse = DeleteMembershipsByIdResponses[keyof DeleteMembershipsByIdResponses];
1464
+ export type GetMembershipsByIdData = {
1465
+ body?: never;
1466
+ path: {
1467
+ id: string;
1468
+ };
1469
+ query?: never;
1470
+ url: '/memberships/{id}';
1471
+ };
1472
+ export type GetMembershipsByIdResponses = {
1473
+ /**
1474
+ * Item
1475
+ */
1476
+ 200: {
1477
+ data: {
1478
+ id: string;
1479
+ userId: string;
1480
+ roleId: string;
1481
+ organizationId: string;
1482
+ groupId: string;
1483
+ projectId: string;
1484
+ createdAt: Date | null;
1485
+ updatedAt: Date | null;
1486
+ };
1487
+ message: string;
1488
+ success: boolean;
1489
+ error?: unknown;
1490
+ meta?: unknown;
1491
+ };
1492
+ };
1493
+ export type GetMembershipsByIdResponse = GetMembershipsByIdResponses[keyof GetMembershipsByIdResponses];
1494
+ export type PutMembershipsByIdChangeIdData = {
1495
+ /**
1496
+ * New Membership ID payload
1497
+ */
1498
+ body?: {
1499
+ newId: string;
1500
+ };
1501
+ path: {
1502
+ id: string;
1503
+ };
1504
+ query?: never;
1505
+ url: '/memberships/{id}/change-id';
1506
+ };
1507
+ export type PutMembershipsByIdChangeIdResponses = {
1508
+ /**
1509
+ * Updated Membership ID
1510
+ */
1511
+ 200: {
1512
+ data: {
1513
+ id: string;
1514
+ };
1515
+ message: string;
1516
+ success: boolean;
1517
+ error?: unknown;
1518
+ meta?: unknown;
1519
+ };
1520
+ };
1521
+ export type PutMembershipsByIdChangeIdResponse = PutMembershipsByIdChangeIdResponses[keyof PutMembershipsByIdChangeIdResponses];
1522
+ export type GetOrganizationsByUserByUserIdData = {
1523
+ body?: never;
1524
+ path: {
1525
+ userId: string;
1526
+ };
1527
+ query?: never;
1528
+ url: '/organizations/by-user/{userId}';
1529
+ };
1530
+ export type GetOrganizationsByUserByUserIdResponses = {
1531
+ /**
1532
+ * Organization List
1533
+ */
1534
+ 200: {
1535
+ data: Array<{
1536
+ id: string;
1537
+ name: string;
1538
+ groupId: string;
1539
+ projectId: string;
1540
+ creatorId: string | null;
1541
+ createdAt: Date | null;
1542
+ updatedAt: Date | null;
1543
+ }>;
1544
+ message: string;
1545
+ success: boolean;
1546
+ error?: unknown;
1547
+ meta?: unknown;
1548
+ };
1549
+ };
1550
+ export type GetOrganizationsByUserByUserIdResponse = GetOrganizationsByUserByUserIdResponses[keyof GetOrganizationsByUserByUserIdResponses];
1551
+ export type GetOrganizationsByOwnerByUserIdData = {
1552
+ body?: never;
1553
+ path: {
1554
+ userId: string;
1555
+ };
1556
+ query?: never;
1557
+ url: '/organizations/by-owner/{userId}';
1558
+ };
1559
+ export type GetOrganizationsByOwnerByUserIdResponses = {
1560
+ /**
1561
+ * Organization List
1562
+ */
1563
+ 200: {
1564
+ data: Array<{
1565
+ id: string;
1566
+ name: string;
1567
+ groupId: string;
1568
+ projectId: string;
1569
+ creatorId: string | null;
1570
+ createdAt: Date | null;
1571
+ updatedAt: Date | null;
1572
+ }>;
1573
+ message: string;
1574
+ success: boolean;
1575
+ error?: unknown;
1576
+ meta?: unknown;
1577
+ };
1578
+ };
1579
+ export type GetOrganizationsByOwnerByUserIdResponse = GetOrganizationsByOwnerByUserIdResponses[keyof GetOrganizationsByOwnerByUserIdResponses];
1580
+ export type GetOrganizationsByOrganizationIdMembersData = {
1581
+ body?: never;
1582
+ path: {
1583
+ organizationId: string;
1584
+ };
1585
+ query?: {
1586
+ orderBy?: string;
1587
+ sortOrder?: 'asc' | 'desc';
1588
+ page?: number;
1589
+ size?: number;
1590
+ search?: string;
1591
+ ids?: Array<string>;
1592
+ };
1593
+ url: '/organizations/{organizationId}/members';
1594
+ };
1595
+ export type GetOrganizationsByOrganizationIdMembersResponses = {
1596
+ /**
1597
+ * List
1598
+ */
1599
+ 200: {
1600
+ data: Array<{
1601
+ id: string;
1602
+ firstName: string;
1603
+ lastName: string;
1604
+ defaultMembershipId: string | null;
1605
+ lastLogin: Date | null;
1606
+ bannedAt: Date | null;
1607
+ verifiedAt: Date | null;
1608
+ projectId: string;
1609
+ createdAt: Date | null;
1610
+ updatedAt: Date | null;
1611
+ }>;
1612
+ message: string;
1613
+ success: boolean;
1614
+ error?: unknown;
1615
+ meta?: unknown;
1616
+ };
1617
+ };
1618
+ export type GetOrganizationsByOrganizationIdMembersResponse = GetOrganizationsByOrganizationIdMembersResponses[keyof GetOrganizationsByOrganizationIdMembersResponses];
1619
+ export type GetOrganizationsByOrganizationIdCreatorData = {
1620
+ body?: never;
1621
+ path: {
1622
+ organizationId: string;
1623
+ };
1624
+ query?: never;
1625
+ url: '/organizations/{organizationId}/creator';
1626
+ };
1627
+ export type GetOrganizationsByOrganizationIdCreatorResponses = {
1628
+ /**
1629
+ * Creator
1630
+ */
1631
+ 200: {
1632
+ data: {
1633
+ id: string;
1634
+ firstName: string;
1635
+ lastName: string;
1636
+ defaultMembershipId: string | null;
1637
+ lastLogin: Date | null;
1638
+ bannedAt: Date | null;
1639
+ verifiedAt: Date | null;
1640
+ projectId: string;
1641
+ createdAt: Date | null;
1642
+ updatedAt: Date | null;
1643
+ };
1644
+ message: string;
1645
+ success: boolean;
1646
+ error?: unknown;
1647
+ meta?: unknown;
1648
+ };
1649
+ };
1650
+ export type GetOrganizationsByOrganizationIdCreatorResponse = GetOrganizationsByOrganizationIdCreatorResponses[keyof GetOrganizationsByOrganizationIdCreatorResponses];
1651
+ export type GetOrganizationsData = {
1652
+ body?: never;
1653
+ path?: never;
1654
+ query?: {
1655
+ id?: string;
1656
+ name?: string;
1657
+ groupId?: string;
1658
+ projectId?: string;
1659
+ creatorId?: string | null;
1660
+ createdAt?: Date | null;
1661
+ updatedAt?: Date | null;
1662
+ search?: string;
1663
+ ids?: Array<string>;
1664
+ orderBy?: string;
1665
+ sortOrder?: 'asc' | 'desc';
1666
+ page?: number;
1667
+ size?: number;
1668
+ };
1669
+ url: '/organizations';
1670
+ };
1671
+ export type GetOrganizationsResponses = {
1672
+ /**
1673
+ * Organization List
1674
+ */
1675
+ 200: {
1676
+ data: Array<{
1677
+ id: string;
1678
+ name: string;
1679
+ groupId: string;
1680
+ projectId: string;
1681
+ creatorId: string | null;
1682
+ createdAt: Date | null;
1683
+ updatedAt: Date | null;
1684
+ }>;
1685
+ message: string;
1686
+ success: boolean;
1687
+ error?: unknown;
1688
+ meta?: unknown;
1689
+ pagination: {
1690
+ page: number;
1691
+ size: number;
1692
+ totalItems: number;
1693
+ totalPages: number;
1694
+ };
1695
+ };
1696
+ };
1697
+ export type GetOrganizationsResponse = GetOrganizationsResponses[keyof GetOrganizationsResponses];
1698
+ export type PostOrganizationsData = {
1699
+ /**
1700
+ * Input
1701
+ */
1702
+ body?: {
1703
+ id?: string;
1704
+ name: string;
1705
+ groupId: string;
1706
+ creatorId?: string | null;
1707
+ createdAt?: Date | null;
1708
+ updatedAt?: Date | null;
1709
+ };
1710
+ path?: never;
1711
+ query?: never;
1712
+ url: '/organizations';
1713
+ };
1714
+ export type PostOrganizationsResponses = {
1715
+ /**
1716
+ * Item
1717
+ */
1718
+ 200: {
1719
+ data: {
1720
+ id: string;
1721
+ name: string;
1722
+ groupId: string;
1723
+ projectId: string;
1724
+ creatorId: string | null;
1725
+ createdAt: Date | null;
1726
+ updatedAt: Date | null;
1727
+ };
1728
+ message: string;
1729
+ success: boolean;
1730
+ error?: unknown;
1731
+ meta?: unknown;
1732
+ };
1733
+ };
1734
+ export type PostOrganizationsResponse = PostOrganizationsResponses[keyof PostOrganizationsResponses];
1735
+ export type DeleteOrganizationsByIdData = {
1736
+ body?: never;
1737
+ path: {
1738
+ id: string;
1739
+ };
1740
+ query?: never;
1741
+ url: '/organizations/{id}';
1742
+ };
1743
+ export type DeleteOrganizationsByIdResponses = {
1744
+ /**
1745
+ * Deleted Organization
1746
+ */
1747
+ 200: {
1748
+ data: {
1749
+ id: string;
1750
+ name: string;
1751
+ groupId: string;
1752
+ projectId: string;
1753
+ creatorId: string | null;
1754
+ createdAt: Date | null;
1755
+ updatedAt: Date | null;
1756
+ };
1757
+ message: string;
1758
+ success: boolean;
1759
+ error?: unknown;
1760
+ meta?: unknown;
1761
+ };
1762
+ };
1763
+ export type DeleteOrganizationsByIdResponse = DeleteOrganizationsByIdResponses[keyof DeleteOrganizationsByIdResponses];
1764
+ export type GetOrganizationsByIdData = {
1765
+ body?: never;
1766
+ path: {
1767
+ id: string;
1768
+ };
1769
+ query?: never;
1770
+ url: '/organizations/{id}';
1771
+ };
1772
+ export type GetOrganizationsByIdResponses = {
1773
+ /**
1774
+ * Item
1775
+ */
1776
+ 200: {
1777
+ data: {
1778
+ id: string;
1779
+ name: string;
1780
+ groupId: string;
1781
+ projectId: string;
1782
+ creatorId: string | null;
1783
+ createdAt: Date | null;
1784
+ updatedAt: Date | null;
1785
+ };
1786
+ message: string;
1787
+ success: boolean;
1788
+ error?: unknown;
1789
+ meta?: unknown;
1790
+ };
1791
+ };
1792
+ export type GetOrganizationsByIdResponse = GetOrganizationsByIdResponses[keyof GetOrganizationsByIdResponses];
1793
+ export type PutOrganizationsByIdData = {
1794
+ /**
1795
+ * Input
1796
+ */
1797
+ body?: {
1798
+ id?: string;
1799
+ name?: string;
1800
+ groupId?: string;
1801
+ projectId?: string;
1802
+ creatorId?: string | null;
1803
+ createdAt?: Date | null;
1804
+ updatedAt?: Date | null;
1805
+ };
1806
+ path: {
1807
+ id: string;
1808
+ };
1809
+ query?: never;
1810
+ url: '/organizations/{id}';
1811
+ };
1812
+ export type PutOrganizationsByIdResponses = {
1813
+ /**
1814
+ * Item
1815
+ */
1816
+ 200: {
1817
+ data: {
1818
+ id: string;
1819
+ name: string;
1820
+ groupId: string;
1821
+ projectId: string;
1822
+ creatorId: string | null;
1823
+ createdAt: Date | null;
1824
+ updatedAt: Date | null;
1825
+ };
1826
+ message: string;
1827
+ success: boolean;
1828
+ error?: unknown;
1829
+ meta?: unknown;
1830
+ };
1831
+ };
1832
+ export type PutOrganizationsByIdResponse = PutOrganizationsByIdResponses[keyof PutOrganizationsByIdResponses];
1833
+ export type PutOrganizationsByIdChangeIdData = {
1834
+ /**
1835
+ * New Organization ID payload
1836
+ */
1837
+ body?: {
1838
+ newId: string;
1839
+ };
1840
+ path: {
1841
+ id: string;
1842
+ };
1843
+ query?: never;
1844
+ url: '/organizations/{id}/change-id';
1845
+ };
1846
+ export type PutOrganizationsByIdChangeIdResponses = {
1847
+ /**
1848
+ * Updated Organization ID
1849
+ */
1850
+ 200: {
1851
+ data: {
1852
+ id: string;
1853
+ };
1854
+ message: string;
1855
+ success: boolean;
1856
+ error?: unknown;
1857
+ meta?: unknown;
1858
+ };
1859
+ };
1860
+ export type PutOrganizationsByIdChangeIdResponse = PutOrganizationsByIdChangeIdResponses[keyof PutOrganizationsByIdChangeIdResponses];
1861
+ export type GetPermissionsData = {
1862
+ body?: never;
1863
+ path?: never;
1864
+ query?: {
1865
+ id?: string;
1866
+ name?: string;
1867
+ description?: string | null;
1868
+ projectId?: string;
1869
+ search?: string;
1870
+ ids?: Array<string>;
1871
+ orderBy?: string;
1872
+ sortOrder?: 'asc' | 'desc';
1873
+ page?: number;
1874
+ size?: number;
1875
+ };
1876
+ url: '/permissions';
1877
+ };
1878
+ export type GetPermissionsResponses = {
1879
+ /**
1880
+ * Permission List
1881
+ */
1882
+ 200: {
1883
+ data: Array<{
1884
+ id: string;
1885
+ name: string;
1886
+ description: string | null;
1887
+ projectId: string;
1888
+ }>;
1889
+ message: string;
1890
+ success: boolean;
1891
+ error?: unknown;
1892
+ meta?: unknown;
1893
+ };
1894
+ };
1895
+ export type GetPermissionsResponse = GetPermissionsResponses[keyof GetPermissionsResponses];
1896
+ export type PostPermissionsData = {
1897
+ /**
1898
+ * Input
1899
+ */
1900
+ body?: Array<{
1901
+ id?: string;
1902
+ name: string;
1903
+ description?: string | null;
1904
+ }>;
1905
+ path?: never;
1906
+ query?: never;
1907
+ url: '/permissions';
1908
+ };
1909
+ export type PostPermissionsResponses = {
1910
+ /**
1911
+ * Item
1912
+ */
1913
+ 200: {
1914
+ data: Array<{
1915
+ id: string;
1916
+ name: string;
1917
+ description: string | null;
1918
+ projectId: string;
1919
+ }>;
1920
+ message: string;
1921
+ success: boolean;
1922
+ error?: unknown;
1923
+ meta?: unknown;
1924
+ };
1925
+ };
1926
+ export type PostPermissionsResponse = PostPermissionsResponses[keyof PostPermissionsResponses];
1927
+ export type DeletePermissionsByIdData = {
1928
+ body?: never;
1929
+ path: {
1930
+ id: string;
1931
+ };
1932
+ query?: never;
1933
+ url: '/permissions/{id}';
1934
+ };
1935
+ export type DeletePermissionsByIdResponses = {
1936
+ /**
1937
+ * Deleted Permission
1938
+ */
1939
+ 200: {
1940
+ data: {
1941
+ id: string;
1942
+ name: string;
1943
+ description: string | null;
1944
+ projectId: string;
1945
+ };
1946
+ message: string;
1947
+ success: boolean;
1948
+ error?: unknown;
1949
+ meta?: unknown;
1950
+ };
1951
+ };
1952
+ export type DeletePermissionsByIdResponse = DeletePermissionsByIdResponses[keyof DeletePermissionsByIdResponses];
1953
+ export type GetPermissionsByIdData = {
1954
+ body?: never;
1955
+ path: {
1956
+ id: string;
1957
+ };
1958
+ query?: never;
1959
+ url: '/permissions/{id}';
1960
+ };
1961
+ export type GetPermissionsByIdResponses = {
1962
+ /**
1963
+ * Item
1964
+ */
1965
+ 200: {
1966
+ data: {
1967
+ id: string;
1968
+ name: string;
1969
+ description: string | null;
1970
+ projectId: string;
1971
+ };
1972
+ message: string;
1973
+ success: boolean;
1974
+ error?: unknown;
1975
+ meta?: unknown;
1976
+ };
1977
+ };
1978
+ export type GetPermissionsByIdResponse = GetPermissionsByIdResponses[keyof GetPermissionsByIdResponses];
1979
+ export type PutPermissionsByIdData = {
1980
+ /**
1981
+ * Input
1982
+ */
1983
+ body?: {
1984
+ id?: string;
1985
+ name?: string;
1986
+ description?: string | null;
1987
+ projectId?: string;
1988
+ };
1989
+ path: {
1990
+ id: string;
1991
+ };
1992
+ query?: never;
1993
+ url: '/permissions/{id}';
1994
+ };
1995
+ export type PutPermissionsByIdResponses = {
1996
+ /**
1997
+ * Item
1998
+ */
1999
+ 200: {
2000
+ data: {
2001
+ id: string;
2002
+ name: string;
2003
+ description: string | null;
2004
+ projectId: string;
2005
+ };
2006
+ message: string;
2007
+ success: boolean;
2008
+ error?: unknown;
2009
+ meta?: unknown;
2010
+ };
2011
+ };
2012
+ export type PutPermissionsByIdResponse = PutPermissionsByIdResponses[keyof PutPermissionsByIdResponses];
2013
+ export type GetProjectsData = {
2014
+ body?: never;
2015
+ path?: never;
2016
+ query?: {
2017
+ id?: string;
2018
+ name?: string;
2019
+ icon?: string | null;
2020
+ color?: string | null;
2021
+ createdAt?: Date | null;
2022
+ updatedAt?: Date | null;
2023
+ search?: string;
2024
+ ids?: Array<string>;
2025
+ orderBy?: string;
2026
+ sortOrder?: 'asc' | 'desc';
2027
+ page?: number;
2028
+ size?: number;
2029
+ };
2030
+ url: '/projects';
2031
+ };
2032
+ export type GetProjectsResponses = {
2033
+ /**
2034
+ * Project List
2035
+ */
2036
+ 200: {
2037
+ data: Array<{
2038
+ id: string;
2039
+ name: string;
2040
+ icon: string | null;
2041
+ color: string | null;
2042
+ createdAt: Date | null;
2043
+ updatedAt: Date | null;
2044
+ }>;
2045
+ message: string;
2046
+ success: boolean;
2047
+ error?: unknown;
2048
+ meta?: unknown;
2049
+ pagination: {
2050
+ page: number;
2051
+ size: number;
2052
+ totalItems: number;
2053
+ totalPages: number;
2054
+ };
2055
+ };
2056
+ };
2057
+ export type GetProjectsResponse = GetProjectsResponses[keyof GetProjectsResponses];
2058
+ export type PostProjectsData = {
2059
+ /**
2060
+ * Input
2061
+ */
2062
+ body?: {
2063
+ id?: string;
2064
+ name: string;
2065
+ icon?: string | null;
2066
+ color?: string | null;
2067
+ createdAt?: Date | null;
2068
+ updatedAt?: Date | null;
2069
+ };
2070
+ path?: never;
2071
+ query?: never;
2072
+ url: '/projects';
2073
+ };
2074
+ export type PostProjectsResponses = {
2075
+ /**
2076
+ * Item
2077
+ */
2078
+ 200: {
2079
+ data: {
2080
+ id: string;
2081
+ name: string;
2082
+ icon: string | null;
2083
+ color: string | null;
2084
+ createdAt: Date | null;
2085
+ updatedAt: Date | null;
2086
+ };
2087
+ message: string;
2088
+ success: boolean;
2089
+ error?: unknown;
2090
+ meta?: unknown;
2091
+ };
2092
+ };
2093
+ export type PostProjectsResponse = PostProjectsResponses[keyof PostProjectsResponses];
2094
+ export type DeleteProjectsByProjectIdData = {
2095
+ body?: never;
2096
+ path: {
2097
+ projectId: string;
2098
+ };
2099
+ query?: never;
2100
+ url: '/projects/{projectId}';
2101
+ };
2102
+ export type DeleteProjectsByProjectIdResponses = {
2103
+ /**
2104
+ * Deleted Project
2105
+ */
2106
+ 200: {
2107
+ data: {
2108
+ id: string;
2109
+ name: string;
2110
+ icon: string | null;
2111
+ color: string | null;
2112
+ createdAt: Date | null;
2113
+ updatedAt: Date | null;
2114
+ };
2115
+ message: string;
2116
+ success: boolean;
2117
+ error?: unknown;
2118
+ meta?: unknown;
2119
+ };
2120
+ };
2121
+ export type DeleteProjectsByProjectIdResponse = DeleteProjectsByProjectIdResponses[keyof DeleteProjectsByProjectIdResponses];
2122
+ export type GetProjectsByProjectIdData = {
2123
+ body?: never;
2124
+ path: {
2125
+ projectId: string;
2126
+ };
2127
+ query?: never;
2128
+ url: '/projects/{projectId}';
2129
+ };
2130
+ export type GetProjectsByProjectIdResponses = {
2131
+ /**
2132
+ * Item
2133
+ */
2134
+ 200: {
2135
+ data: {
2136
+ id: string;
2137
+ name: string;
2138
+ icon: string | null;
2139
+ color: string | null;
2140
+ createdAt: Date | null;
2141
+ updatedAt: Date | null;
2142
+ };
2143
+ message: string;
2144
+ success: boolean;
2145
+ error?: unknown;
2146
+ meta?: unknown;
2147
+ };
2148
+ };
2149
+ export type GetProjectsByProjectIdResponse = GetProjectsByProjectIdResponses[keyof GetProjectsByProjectIdResponses];
2150
+ export type PutProjectsByProjectIdData = {
2151
+ /**
2152
+ * Input
2153
+ */
2154
+ body?: {
2155
+ id?: string;
2156
+ name?: string;
2157
+ icon?: string | null;
2158
+ color?: string | null;
2159
+ createdAt?: Date | null;
2160
+ updatedAt?: Date | null;
2161
+ };
2162
+ path: {
2163
+ projectId: string;
2164
+ };
2165
+ query?: never;
2166
+ url: '/projects/{projectId}';
2167
+ };
2168
+ export type PutProjectsByProjectIdResponses = {
2169
+ /**
2170
+ * Item
2171
+ */
2172
+ 200: {
2173
+ data: {
2174
+ id: string;
2175
+ name: string;
2176
+ icon: string | null;
2177
+ color: string | null;
2178
+ createdAt: Date | null;
2179
+ updatedAt: Date | null;
2180
+ };
2181
+ message: string;
2182
+ success: boolean;
2183
+ error?: unknown;
2184
+ meta?: unknown;
2185
+ };
2186
+ };
2187
+ export type PutProjectsByProjectIdResponse = PutProjectsByProjectIdResponses[keyof PutProjectsByProjectIdResponses];
2188
+ export type PutProjectsByProjectIdChangeIdData = {
2189
+ /**
2190
+ * New Project ID payload
2191
+ */
2192
+ body?: {
2193
+ newId: string;
2194
+ };
2195
+ path: {
2196
+ projectId: string;
2197
+ };
2198
+ query?: never;
2199
+ url: '/projects/{projectId}/change-id';
2200
+ };
2201
+ export type PutProjectsByProjectIdChangeIdResponses = {
2202
+ /**
2203
+ * Updated Project ID
2204
+ */
2205
+ 200: {
2206
+ data: {
2207
+ id: string;
2208
+ };
2209
+ message: string;
2210
+ success: boolean;
2211
+ error?: unknown;
2212
+ meta?: unknown;
2213
+ };
2214
+ };
2215
+ export type PutProjectsByProjectIdChangeIdResponse = PutProjectsByProjectIdChangeIdResponses[keyof PutProjectsByProjectIdChangeIdResponses];
2216
+ export type DeleteRolesByIdPermissionsData = {
2217
+ /**
2218
+ * Input
2219
+ */
2220
+ body?: {
2221
+ ids: Array<string>;
2222
+ };
2223
+ path: {
2224
+ id: string;
2225
+ };
2226
+ query?: never;
2227
+ url: '/roles/{id}/permissions';
2228
+ };
2229
+ export type DeleteRolesByIdPermissionsResponses = {
2230
+ /**
2231
+ * Role permissions List
2232
+ */
2233
+ 200: {
2234
+ data: Array<{
2235
+ roleId: string;
2236
+ permissionId: string;
2237
+ projectId: string | null;
2238
+ }>;
2239
+ message: string;
2240
+ success: boolean;
2241
+ error?: unknown;
2242
+ meta?: unknown;
2243
+ };
2244
+ };
2245
+ export type DeleteRolesByIdPermissionsResponse = DeleteRolesByIdPermissionsResponses[keyof DeleteRolesByIdPermissionsResponses];
2246
+ export type GetRolesByIdPermissionsData = {
2247
+ body?: never;
2248
+ path: {
2249
+ id: string;
2250
+ };
2251
+ query?: never;
2252
+ url: '/roles/{id}/permissions';
2253
+ };
2254
+ export type GetRolesByIdPermissionsResponses = {
2255
+ /**
2256
+ * Role permissions List
2257
+ */
2258
+ 200: {
2259
+ data: Array<{
2260
+ id: string;
2261
+ name: string;
2262
+ description: string | null;
2263
+ }>;
2264
+ message: string;
2265
+ success: boolean;
2266
+ error?: unknown;
2267
+ meta?: unknown;
2268
+ };
2269
+ };
2270
+ export type GetRolesByIdPermissionsResponse = GetRolesByIdPermissionsResponses[keyof GetRolesByIdPermissionsResponses];
2271
+ export type PostRolesByIdPermissionsData = {
2272
+ /**
2273
+ * Input
2274
+ */
2275
+ body?: {
2276
+ ids: Array<string>;
2277
+ };
2278
+ path: {
2279
+ id: string;
2280
+ };
2281
+ query?: never;
2282
+ url: '/roles/{id}/permissions';
2283
+ };
2284
+ export type PostRolesByIdPermissionsResponses = {
2285
+ /**
2286
+ * Role permissions List
2287
+ */
2288
+ 200: {
2289
+ data: Array<{
2290
+ roleId: string;
2291
+ permissionId: string;
2292
+ projectId: string | null;
2293
+ }>;
2294
+ message: string;
2295
+ success: boolean;
2296
+ error?: unknown;
2297
+ meta?: unknown;
2298
+ };
2299
+ };
2300
+ export type PostRolesByIdPermissionsResponse = PostRolesByIdPermissionsResponses[keyof PostRolesByIdPermissionsResponses];
2301
+ export type GetRolesByIdUsersData = {
2302
+ body?: never;
2303
+ path: {
2304
+ id: string;
2305
+ };
2306
+ query?: never;
2307
+ url: '/roles/{id}/users';
2308
+ };
2309
+ export type GetRolesByIdUsersResponses = {
2310
+ /**
2311
+ * Role users List
2312
+ */
2313
+ 200: {
2314
+ data: Array<{
2315
+ id: string;
2316
+ firstName: string;
2317
+ lastName: string;
2318
+ defaultMembershipId: string | null;
2319
+ lastLogin: Date | null;
2320
+ bannedAt: Date | null;
2321
+ verifiedAt: Date | null;
2322
+ projectId: string;
2323
+ createdAt: Date | null;
2324
+ updatedAt: Date | null;
2325
+ }>;
2326
+ message: string;
2327
+ success: boolean;
2328
+ error?: unknown;
2329
+ meta?: unknown;
2330
+ };
2331
+ };
2332
+ export type GetRolesByIdUsersResponse = GetRolesByIdUsersResponses[keyof GetRolesByIdUsersResponses];
2333
+ export type GetRolesData = {
2334
+ body?: never;
2335
+ path?: never;
2336
+ query?: {
2337
+ id?: string;
2338
+ name?: string;
2339
+ description?: string | null;
2340
+ organizationId?: string | null;
2341
+ groupId?: string;
2342
+ projectId?: string;
2343
+ createdAt?: Date | null;
2344
+ updatedAt?: Date | null;
2345
+ search?: string;
2346
+ ids?: Array<string>;
2347
+ orderBy?: string;
2348
+ sortOrder?: 'asc' | 'desc';
2349
+ page?: number;
2350
+ size?: number;
2351
+ };
2352
+ url: '/roles';
2353
+ };
2354
+ export type GetRolesResponses = {
2355
+ /**
2356
+ * Role List
2357
+ */
2358
+ 200: {
2359
+ data: Array<{
2360
+ id: string;
2361
+ name: string;
2362
+ description: string | null;
2363
+ organizationId: string | null;
2364
+ groupId: string;
2365
+ projectId: string;
2366
+ createdAt: Date | null;
2367
+ updatedAt: Date | null;
2368
+ }>;
2369
+ message: string;
2370
+ success: boolean;
2371
+ error?: unknown;
2372
+ meta?: unknown;
2373
+ pagination: {
2374
+ page: number;
2375
+ size: number;
2376
+ totalItems: number;
2377
+ totalPages: number;
2378
+ };
2379
+ };
2380
+ };
2381
+ export type GetRolesResponse = GetRolesResponses[keyof GetRolesResponses];
2382
+ export type PostRolesData = {
2383
+ /**
2384
+ * Input
2385
+ */
2386
+ body?: {
2387
+ id?: string;
2388
+ name: string;
2389
+ description?: string | null;
2390
+ organizationId?: string | null;
2391
+ groupId: string;
2392
+ createdAt?: Date | null;
2393
+ updatedAt?: Date | null;
2394
+ };
2395
+ path?: never;
2396
+ query?: never;
2397
+ url: '/roles';
2398
+ };
2399
+ export type PostRolesErrors = {
2400
+ /**
2401
+ * Role already exists
2402
+ */
2403
+ 409: {
2404
+ data: {
2405
+ [key: string]: unknown;
2406
+ };
2407
+ message: string;
2408
+ success: boolean;
2409
+ error?: unknown;
2410
+ meta?: unknown;
2411
+ };
2412
+ };
2413
+ export type PostRolesError = PostRolesErrors[keyof PostRolesErrors];
2414
+ export type PostRolesResponses = {
2415
+ /**
2416
+ * Item
2417
+ */
2418
+ 200: {
2419
+ data: {
2420
+ id: string;
2421
+ name: string;
2422
+ description: string | null;
2423
+ organizationId: string | null;
2424
+ groupId: string;
2425
+ projectId: string;
2426
+ createdAt: Date | null;
2427
+ updatedAt: Date | null;
2428
+ };
2429
+ message: string;
2430
+ success: boolean;
2431
+ error?: unknown;
2432
+ meta?: unknown;
2433
+ };
2434
+ };
2435
+ export type PostRolesResponse = PostRolesResponses[keyof PostRolesResponses];
2436
+ export type DeleteRolesByIdData = {
2437
+ body?: never;
2438
+ path: {
2439
+ id: string;
2440
+ };
2441
+ query?: never;
2442
+ url: '/roles/{id}';
2443
+ };
2444
+ export type DeleteRolesByIdResponses = {
2445
+ /**
2446
+ * Deleted Role
2447
+ */
2448
+ 200: {
2449
+ data: {
2450
+ id: string;
2451
+ name: string;
2452
+ description: string | null;
2453
+ organizationId: string | null;
2454
+ groupId: string;
2455
+ projectId: string;
2456
+ createdAt: Date | null;
2457
+ updatedAt: Date | null;
2458
+ };
2459
+ message: string;
2460
+ success: boolean;
2461
+ error?: unknown;
2462
+ meta?: unknown;
2463
+ };
2464
+ };
2465
+ export type DeleteRolesByIdResponse = DeleteRolesByIdResponses[keyof DeleteRolesByIdResponses];
2466
+ export type GetRolesByIdData = {
2467
+ body?: never;
2468
+ path: {
2469
+ id: string;
2470
+ };
2471
+ query?: never;
2472
+ url: '/roles/{id}';
2473
+ };
2474
+ export type GetRolesByIdResponses = {
2475
+ /**
2476
+ * Item
2477
+ */
2478
+ 200: {
2479
+ data: {
2480
+ id: string;
2481
+ name: string;
2482
+ description: string | null;
2483
+ organizationId: string | null;
2484
+ groupId: string;
2485
+ projectId: string;
2486
+ createdAt: Date | null;
2487
+ updatedAt: Date | null;
2488
+ };
2489
+ message: string;
2490
+ success: boolean;
2491
+ error?: unknown;
2492
+ meta?: unknown;
2493
+ };
2494
+ };
2495
+ export type GetRolesByIdResponse = GetRolesByIdResponses[keyof GetRolesByIdResponses];
2496
+ export type PutRolesByIdData = {
2497
+ /**
2498
+ * Input
2499
+ */
2500
+ body?: {
2501
+ id?: string;
2502
+ name?: string;
2503
+ description?: string | null;
2504
+ organizationId?: string | null;
2505
+ groupId?: string;
2506
+ projectId?: string;
2507
+ createdAt?: Date | null;
2508
+ updatedAt?: Date | null;
2509
+ };
2510
+ path: {
2511
+ id: string;
2512
+ };
2513
+ query?: never;
2514
+ url: '/roles/{id}';
2515
+ };
2516
+ export type PutRolesByIdResponses = {
2517
+ /**
2518
+ * Item
2519
+ */
2520
+ 200: {
2521
+ data: {
2522
+ id: string;
2523
+ name: string;
2524
+ description: string | null;
2525
+ organizationId: string | null;
2526
+ groupId: string;
2527
+ projectId: string;
2528
+ createdAt: Date | null;
2529
+ updatedAt: Date | null;
2530
+ };
2531
+ message: string;
2532
+ success: boolean;
2533
+ error?: unknown;
2534
+ meta?: unknown;
2535
+ };
2536
+ };
2537
+ export type PutRolesByIdResponse = PutRolesByIdResponses[keyof PutRolesByIdResponses];
2538
+ export type PutRolesByIdChangeIdData = {
2539
+ /**
2540
+ * New Role ID payload
2541
+ */
2542
+ body?: {
2543
+ newId: string;
2544
+ };
2545
+ path: {
2546
+ id: string;
2547
+ };
2548
+ query?: never;
2549
+ url: '/roles/{id}/change-id';
2550
+ };
2551
+ export type PutRolesByIdChangeIdResponses = {
2552
+ /**
2553
+ * Updated Role ID
2554
+ */
2555
+ 200: {
2556
+ data: {
2557
+ id: string;
2558
+ };
2559
+ message: string;
2560
+ success: boolean;
2561
+ error?: unknown;
2562
+ meta?: unknown;
2563
+ };
2564
+ };
2565
+ export type PutRolesByIdChangeIdResponse = PutRolesByIdChangeIdResponses[keyof PutRolesByIdChangeIdResponses];
2566
+ export type GetSecretKeysData = {
2567
+ body?: never;
2568
+ path?: never;
2569
+ query?: {
2570
+ id?: string;
2571
+ projectId?: string;
2572
+ secretHash?: string;
2573
+ expiresAt?: Date | null;
2574
+ createdAt?: Date | null;
2575
+ search?: string;
2576
+ ids?: Array<string>;
2577
+ orderBy?: string;
2578
+ sortOrder?: 'asc' | 'desc';
2579
+ page?: number;
2580
+ size?: number;
2581
+ };
2582
+ url: '/secret-keys';
2583
+ };
2584
+ export type GetSecretKeysResponses = {
2585
+ /**
2586
+ * SecretKey List
2587
+ */
2588
+ 200: {
2589
+ data: Array<{
2590
+ id: string;
2591
+ projectId: string;
2592
+ expiresAt: Date | null;
2593
+ createdAt: Date | null;
2594
+ }>;
2595
+ message: string;
2596
+ success: boolean;
2597
+ error?: unknown;
2598
+ meta?: unknown;
2599
+ pagination: {
2600
+ page: number;
2601
+ size: number;
2602
+ totalItems: number;
2603
+ totalPages: number;
2604
+ };
2605
+ };
2606
+ };
2607
+ export type GetSecretKeysResponse = GetSecretKeysResponses[keyof GetSecretKeysResponses];
2608
+ export type PostSecretKeysData = {
2609
+ /**
2610
+ * Input
2611
+ */
2612
+ body?: {
2613
+ expiresAt?: Date | null;
2614
+ };
2615
+ path?: never;
2616
+ query?: never;
2617
+ url: '/secret-keys';
2618
+ };
2619
+ export type PostSecretKeysResponses = {
2620
+ /**
2621
+ * Item
2622
+ */
2623
+ 200: {
2624
+ data: {
2625
+ id: string;
2626
+ projectId: string;
2627
+ expiresAt: Date | null;
2628
+ createdAt: Date | null;
2629
+ secretKey: string;
2630
+ };
2631
+ message: string;
2632
+ success: boolean;
2633
+ error?: unknown;
2634
+ meta?: unknown;
2635
+ };
2636
+ };
2637
+ export type PostSecretKeysResponse = PostSecretKeysResponses[keyof PostSecretKeysResponses];
2638
+ export type DeleteSecretKeysByIdData = {
2639
+ body?: never;
2640
+ path: {
2641
+ id: string;
2642
+ };
2643
+ query?: never;
2644
+ url: '/secret-keys/{id}';
2645
+ };
2646
+ export type DeleteSecretKeysByIdResponses = {
2647
+ /**
2648
+ * Deleted SecretKey
2649
+ */
2650
+ 200: {
2651
+ data: {
2652
+ id: string;
2653
+ projectId: string;
2654
+ secretHash: string;
2655
+ expiresAt: Date | null;
2656
+ createdAt: Date | null;
2657
+ };
2658
+ message: string;
2659
+ success: boolean;
2660
+ error?: unknown;
2661
+ meta?: unknown;
2662
+ };
2663
+ };
2664
+ export type DeleteSecretKeysByIdResponse = DeleteSecretKeysByIdResponses[keyof DeleteSecretKeysByIdResponses];
2665
+ export type GetSecretKeysByIdData = {
2666
+ body?: never;
2667
+ path: {
2668
+ id: string;
2669
+ };
2670
+ query?: never;
2671
+ url: '/secret-keys/{id}';
2672
+ };
2673
+ export type GetSecretKeysByIdResponses = {
2674
+ /**
2675
+ * Item
2676
+ */
2677
+ 200: {
2678
+ data: {
2679
+ id: string;
2680
+ projectId: string;
2681
+ expiresAt: Date | null;
2682
+ createdAt: Date | null;
2683
+ };
2684
+ message: string;
2685
+ success: boolean;
2686
+ error?: unknown;
2687
+ meta?: unknown;
2688
+ };
2689
+ };
2690
+ export type GetSecretKeysByIdResponse = GetSecretKeysByIdResponses[keyof GetSecretKeysByIdResponses];
2691
+ export type PostUsersByIdIdentifierAddData = {
2692
+ /**
2693
+ * Identifier Data
2694
+ */
2695
+ body: {
2696
+ identifierType: string;
2697
+ identifierValue: string;
2698
+ };
2699
+ path: {
2700
+ id: string;
2701
+ };
2702
+ query?: never;
2703
+ url: '/users/{id}/identifier/add';
2704
+ };
2705
+ export type PostUsersByIdIdentifierAddResponses = {
2706
+ /**
2707
+ * Created
2708
+ */
2709
+ 200: {
2710
+ data: {
2711
+ token: string;
2712
+ };
2713
+ message: string;
2714
+ success: boolean;
2715
+ error?: unknown;
2716
+ meta?: unknown;
2717
+ };
2718
+ };
2719
+ export type PostUsersByIdIdentifierAddResponse = PostUsersByIdIdentifierAddResponses[keyof PostUsersByIdIdentifierAddResponses];
2720
+ export type PostUsersByIdIdentifierDeleteData = {
2721
+ /**
2722
+ * User Login Data
2723
+ */
2724
+ body: {
2725
+ identifierType: string;
2726
+ identifierValue: string;
2727
+ };
2728
+ path: {
2729
+ id: string;
2730
+ };
2731
+ query?: never;
2732
+ url: '/users/{id}/identifier/delete';
2733
+ };
2734
+ export type PostUsersByIdIdentifierDeleteResponses = {
2735
+ /**
2736
+ * Deleted
2737
+ */
2738
+ 200: {
2739
+ data: {
2740
+ [key: string]: unknown;
2741
+ };
2742
+ message: string;
2743
+ success: boolean;
2744
+ error?: unknown;
2745
+ meta?: unknown;
2746
+ };
2747
+ };
2748
+ export type PostUsersByIdIdentifierDeleteResponse = PostUsersByIdIdentifierDeleteResponses[keyof PostUsersByIdIdentifierDeleteResponses];
2749
+ export type GetUsersByIdIdentifiersData = {
2750
+ body?: never;
2751
+ path: {
2752
+ id: string;
2753
+ };
2754
+ query?: {
2755
+ orderBy?: string;
2756
+ sortOrder?: 'asc' | 'desc';
2757
+ page?: number;
2758
+ size?: number;
2759
+ };
2760
+ url: '/users/{id}/identifiers';
2761
+ };
2762
+ export type GetUsersByIdIdentifiersResponses = {
2763
+ /**
2764
+ * List
2765
+ */
2766
+ 200: {
2767
+ data: Array<{
2768
+ id: string;
2769
+ userId: string;
2770
+ projectId: string;
2771
+ identifierType: string;
2772
+ identifierValue: string;
2773
+ verifiedAt: Date | null;
2774
+ createdAt: Date | null;
2775
+ updatedAt: Date | null;
2776
+ }>;
2777
+ message: string;
2778
+ success: boolean;
2779
+ error?: unknown;
2780
+ meta?: unknown;
2781
+ pagination: {
2782
+ page: number;
2783
+ size: number;
2784
+ totalItems: number;
2785
+ totalPages: number;
2786
+ };
2787
+ };
2788
+ };
2789
+ export type GetUsersByIdIdentifiersResponse = GetUsersByIdIdentifiersResponses[keyof GetUsersByIdIdentifiersResponses];
2790
+ export type PostUserPasswordsUpsertData = {
2791
+ /**
2792
+ * UserPassword Create Data
2793
+ */
2794
+ body?: {
2795
+ userId: string;
2796
+ password: string;
2797
+ isTemporary?: boolean | null;
2798
+ createdAt?: Date | null;
2799
+ updatedAt?: Date | null;
2800
+ };
2801
+ path?: never;
2802
+ query?: never;
2803
+ url: '/user-passwords/upsert';
2804
+ };
2805
+ export type PostUserPasswordsUpsertResponses = {
2806
+ /**
2807
+ * UserPassword created successfully
2808
+ */
2809
+ 201: {
2810
+ data: {
2811
+ userId: string;
2812
+ password: string;
2813
+ isTemporary?: boolean | null;
2814
+ createdAt: Date | null;
2815
+ updatedAt: Date | null;
2816
+ };
2817
+ message: string;
2818
+ success: boolean;
2819
+ error?: unknown;
2820
+ meta?: unknown;
2821
+ };
2822
+ };
2823
+ export type PostUserPasswordsUpsertResponse = PostUserPasswordsUpsertResponses[keyof PostUserPasswordsUpsertResponses];
2824
+ export type GetUserPasswordsData = {
2825
+ body?: never;
2826
+ path?: never;
2827
+ query: {
2828
+ ids: Array<string>;
2829
+ };
2830
+ url: '/user-passwords';
2831
+ };
2832
+ export type GetUserPasswordsResponses = {
2833
+ /**
2834
+ * user passwords by ids
2835
+ */
2836
+ 200: {
2837
+ data: Array<{
2838
+ userId: string;
2839
+ isTemporary?: boolean | null;
2840
+ }>;
2841
+ message: string;
2842
+ success: boolean;
2843
+ error?: unknown;
2844
+ meta?: unknown;
2845
+ };
2846
+ };
2847
+ export type GetUserPasswordsResponse = GetUserPasswordsResponses[keyof GetUserPasswordsResponses];
2848
+ export type PostUsersVerifyByTokenData = {
2849
+ body?: never;
2850
+ path: {
2851
+ token: string;
2852
+ };
2853
+ query?: never;
2854
+ url: '/users/verify/{token}';
2855
+ };
2856
+ export type PostUsersVerifyByTokenResponses = {
2857
+ /**
2858
+ * User verified successfully
2859
+ */
2860
+ 200: {
2861
+ data: {
2862
+ [key: string]: unknown;
2863
+ };
2864
+ message: string;
2865
+ success: boolean;
2866
+ error?: unknown;
2867
+ meta?: unknown;
2868
+ };
2869
+ };
2870
+ export type PostUsersVerifyByTokenResponse = PostUsersVerifyByTokenResponses[keyof PostUsersVerifyByTokenResponses];
2871
+ export type PostUsersByIdNewVerificationTokenData = {
2872
+ /**
2873
+ * Identifier
2874
+ */
2875
+ body: {
2876
+ identifierType: string;
2877
+ identifierValue: string;
2878
+ };
2879
+ path: {
2880
+ id: string;
2881
+ };
2882
+ query?: never;
2883
+ url: '/users/{id}/new-verification-token';
2884
+ };
2885
+ export type PostUsersByIdNewVerificationTokenResponses = {
2886
+ /**
2887
+ * New token response
2888
+ */
2889
+ 200: {
2890
+ data: {
2891
+ verifyToken: string;
2892
+ };
2893
+ message: string;
2894
+ success: boolean;
2895
+ error?: unknown;
2896
+ meta?: unknown;
2897
+ };
2898
+ };
2899
+ export type PostUsersByIdNewVerificationTokenResponse = PostUsersByIdNewVerificationTokenResponses[keyof PostUsersByIdNewVerificationTokenResponses];
2900
+ export type DeleteUsersByIdMembershipsByMembershipIdData = {
2901
+ body?: never;
2902
+ path: {
2903
+ id: string;
2904
+ membershipId: string;
2905
+ };
2906
+ query?: never;
2907
+ url: '/users/{id}/memberships/{membershipId}';
2908
+ };
2909
+ export type DeleteUsersByIdMembershipsByMembershipIdResponses = {
2910
+ /**
2911
+ * User left membership successfully
2912
+ */
2913
+ 200: {
2914
+ data: {
2915
+ id: string;
2916
+ userId: string;
2917
+ roleId: string;
2918
+ organizationId: string;
2919
+ groupId: string;
2920
+ projectId: string;
2921
+ createdAt: Date | null;
2922
+ updatedAt: Date | null;
2923
+ };
2924
+ message: string;
2925
+ success: boolean;
2926
+ error?: unknown;
2927
+ meta?: unknown;
2928
+ };
2929
+ };
2930
+ export type DeleteUsersByIdMembershipsByMembershipIdResponse = DeleteUsersByIdMembershipsByMembershipIdResponses[keyof DeleteUsersByIdMembershipsByMembershipIdResponses];
2931
+ export type PostUsersPasswordForgotData = {
2932
+ /**
2933
+ * User Login Data
2934
+ */
2935
+ body: {
2936
+ identifierType: string;
2937
+ identifierValue: string;
2938
+ };
2939
+ path?: never;
2940
+ query?: never;
2941
+ url: '/users/password/forgot';
2942
+ };
2943
+ export type PostUsersPasswordForgotResponses = {
2944
+ /**
2945
+ * Password reset token created
2946
+ */
2947
+ 200: {
2948
+ data: {
2949
+ token: string;
2950
+ };
2951
+ message: string;
2952
+ success: boolean;
2953
+ error?: unknown;
2954
+ meta?: unknown;
2955
+ };
2956
+ };
2957
+ export type PostUsersPasswordForgotResponse = PostUsersPasswordForgotResponses[keyof PostUsersPasswordForgotResponses];
2958
+ export type PostUsersPasswordResetByTokenData = {
2959
+ /**
2960
+ * Input
2961
+ */
2962
+ body: {
2963
+ password: string;
2964
+ passwordConfirmation: string;
2965
+ };
2966
+ path: {
2967
+ token: string;
2968
+ };
2969
+ query?: never;
2970
+ url: '/users/password/reset/{token}';
2971
+ };
2972
+ export type PostUsersPasswordResetByTokenResponses = {
2973
+ /**
2974
+ * Password reset done
2975
+ */
2976
+ 200: {
2977
+ data: {
2978
+ user: {
2979
+ id: string;
2980
+ firstName: string;
2981
+ lastName: string;
2982
+ defaultMembershipId: string | null;
2983
+ lastLogin: Date | null;
2984
+ bannedAt: Date | null;
2985
+ verifiedAt: Date | null;
2986
+ projectId: string;
2987
+ createdAt: Date | null;
2988
+ updatedAt: Date | null;
2989
+ };
2990
+ userIdentifiers: Array<{
2991
+ id: string;
2992
+ userId: string;
2993
+ projectId: string;
2994
+ identifierType: string;
2995
+ identifierValue: string;
2996
+ verifiedAt: Date | null;
2997
+ createdAt: Date | null;
2998
+ updatedAt: Date | null;
2999
+ }>;
3000
+ role: {
3001
+ id: string;
3002
+ name: string;
3003
+ description: string | null;
3004
+ organizationId: string | null;
3005
+ groupId: string;
3006
+ projectId: string;
3007
+ createdAt: Date | null;
3008
+ updatedAt: Date | null;
3009
+ } | null;
3010
+ organization: {
3011
+ id: string;
3012
+ name: string;
3013
+ groupId: string;
3014
+ projectId: string;
3015
+ creatorId: string | null;
3016
+ createdAt: Date | null;
3017
+ updatedAt: Date | null;
3018
+ } | null;
3019
+ group: {
3020
+ id: string;
3021
+ name: string;
3022
+ description: string | null;
3023
+ projectId: string;
3024
+ createdAt: Date | null;
3025
+ updatedAt: Date | null;
3026
+ } | null;
3027
+ permissions: {
3028
+ enabled: Array<string>;
3029
+ disabled: Array<string>;
3030
+ };
3031
+ zones: Array<{
3032
+ id: string;
3033
+ name: string;
3034
+ }>;
3035
+ branches: Array<{
3036
+ id: string;
3037
+ name: string;
3038
+ }>;
3039
+ accessToken: string;
3040
+ refreshToken: string;
3041
+ lastLogin?: Date;
3042
+ };
3043
+ message: string;
3044
+ success: boolean;
3045
+ error?: unknown;
3046
+ meta?: unknown;
3047
+ };
3048
+ };
3049
+ export type PostUsersPasswordResetByTokenResponse = PostUsersPasswordResetByTokenResponses[keyof PostUsersPasswordResetByTokenResponses];
3050
+ export type PostUsersByIdPasswordChangeData = {
3051
+ /**
3052
+ * Input
3053
+ */
3054
+ body: {
3055
+ password: string;
3056
+ currentPassword: string;
3057
+ };
3058
+ path: {
3059
+ id: string;
3060
+ };
3061
+ query?: never;
3062
+ url: '/users/{id}/password/change';
3063
+ };
3064
+ export type PostUsersByIdPasswordChangeResponses = {
3065
+ /**
3066
+ * Password changed
3067
+ */
3068
+ 200: {
3069
+ data: {
3070
+ id: string;
3071
+ firstName: string;
3072
+ lastName: string;
3073
+ defaultMembershipId: string | null;
3074
+ lastLogin: Date | null;
3075
+ bannedAt: Date | null;
3076
+ verifiedAt: Date | null;
3077
+ projectId: string;
3078
+ createdAt: Date | null;
3079
+ updatedAt: Date | null;
3080
+ };
3081
+ message: string;
3082
+ success: boolean;
3083
+ error?: unknown;
3084
+ meta?: unknown;
3085
+ };
3086
+ };
3087
+ export type PostUsersByIdPasswordChangeResponse = PostUsersByIdPasswordChangeResponses[keyof PostUsersByIdPasswordChangeResponses];
3088
+ export type PostUsersLoginData = {
3089
+ /**
3090
+ * User Login Data
3091
+ */
3092
+ body: {
3093
+ identifierValue: string;
3094
+ password: string;
3095
+ };
3096
+ path?: never;
3097
+ query?: {
3098
+ groupId?: string;
3099
+ organizationId?: string;
3100
+ roleId?: string;
3101
+ membershipId?: string;
3102
+ };
3103
+ url: '/users/login';
3104
+ };
3105
+ export type PostUsersLoginResponses = {
3106
+ /**
3107
+ * User logged in
3108
+ */
3109
+ 200: {
3110
+ data: {
3111
+ user: {
3112
+ id: string;
3113
+ firstName: string;
3114
+ lastName: string;
3115
+ defaultMembershipId: string | null;
3116
+ lastLogin: Date | null;
3117
+ bannedAt: Date | null;
3118
+ verifiedAt: Date | null;
3119
+ projectId: string;
3120
+ createdAt: Date | null;
3121
+ updatedAt: Date | null;
3122
+ };
3123
+ userIdentifiers: Array<{
3124
+ id: string;
3125
+ userId: string;
3126
+ projectId: string;
3127
+ identifierType: string;
3128
+ identifierValue: string;
3129
+ verifiedAt: Date | null;
3130
+ createdAt: Date | null;
3131
+ updatedAt: Date | null;
3132
+ }>;
3133
+ role: {
3134
+ id: string;
3135
+ name: string;
3136
+ description: string | null;
3137
+ organizationId: string | null;
3138
+ groupId: string;
3139
+ projectId: string;
3140
+ createdAt: Date | null;
3141
+ updatedAt: Date | null;
3142
+ } | null;
3143
+ organization: {
3144
+ id: string;
3145
+ name: string;
3146
+ groupId: string;
3147
+ projectId: string;
3148
+ creatorId: string | null;
3149
+ createdAt: Date | null;
3150
+ updatedAt: Date | null;
3151
+ } | null;
3152
+ group: {
3153
+ id: string;
3154
+ name: string;
3155
+ description: string | null;
3156
+ projectId: string;
3157
+ createdAt: Date | null;
3158
+ updatedAt: Date | null;
3159
+ } | null;
3160
+ permissions: {
3161
+ enabled: Array<string>;
3162
+ disabled: Array<string>;
3163
+ };
3164
+ zones: Array<{
3165
+ id: string;
3166
+ name: string;
3167
+ }>;
3168
+ branches: Array<{
3169
+ id: string;
3170
+ name: string;
3171
+ }>;
3172
+ accessToken: string;
3173
+ refreshToken: string;
3174
+ lastLogin?: Date;
3175
+ };
3176
+ message: string;
3177
+ success: boolean;
3178
+ error?: unknown;
3179
+ meta?: unknown;
3180
+ };
3181
+ };
3182
+ export type PostUsersLoginResponse = PostUsersLoginResponses[keyof PostUsersLoginResponses];
3183
+ export type PostUsersLoginSwitchData = {
3184
+ body?: never;
3185
+ path?: never;
3186
+ query?: {
3187
+ groupId?: string;
3188
+ organizationId?: string;
3189
+ roleId?: string;
3190
+ membershipId?: string;
3191
+ };
3192
+ url: '/users/login/switch';
3193
+ };
3194
+ export type PostUsersLoginSwitchResponses = {
3195
+ /**
3196
+ * User logged in
3197
+ */
3198
+ 200: {
3199
+ data: {
3200
+ user: {
3201
+ id: string;
3202
+ firstName: string;
3203
+ lastName: string;
3204
+ defaultMembershipId: string | null;
3205
+ lastLogin: Date | null;
3206
+ bannedAt: Date | null;
3207
+ verifiedAt: Date | null;
3208
+ projectId: string;
3209
+ createdAt: Date | null;
3210
+ updatedAt: Date | null;
3211
+ };
3212
+ userIdentifiers: Array<{
3213
+ id: string;
3214
+ userId: string;
3215
+ projectId: string;
3216
+ identifierType: string;
3217
+ identifierValue: string;
3218
+ verifiedAt: Date | null;
3219
+ createdAt: Date | null;
3220
+ updatedAt: Date | null;
3221
+ }>;
3222
+ role: {
3223
+ id: string;
3224
+ name: string;
3225
+ description: string | null;
3226
+ organizationId: string | null;
3227
+ groupId: string;
3228
+ projectId: string;
3229
+ createdAt: Date | null;
3230
+ updatedAt: Date | null;
3231
+ } | null;
3232
+ organization: {
3233
+ id: string;
3234
+ name: string;
3235
+ groupId: string;
3236
+ projectId: string;
3237
+ creatorId: string | null;
3238
+ createdAt: Date | null;
3239
+ updatedAt: Date | null;
3240
+ } | null;
3241
+ group: {
3242
+ id: string;
3243
+ name: string;
3244
+ description: string | null;
3245
+ projectId: string;
3246
+ createdAt: Date | null;
3247
+ updatedAt: Date | null;
3248
+ } | null;
3249
+ permissions: {
3250
+ enabled: Array<string>;
3251
+ disabled: Array<string>;
3252
+ };
3253
+ zones: Array<{
3254
+ id: string;
3255
+ name: string;
3256
+ }>;
3257
+ branches: Array<{
3258
+ id: string;
3259
+ name: string;
3260
+ }>;
3261
+ accessToken: string;
3262
+ refreshToken: string;
3263
+ lastLogin?: Date;
3264
+ };
3265
+ message: string;
3266
+ success: boolean;
3267
+ error?: unknown;
3268
+ meta?: unknown;
3269
+ };
3270
+ };
3271
+ export type PostUsersLoginSwitchResponse = PostUsersLoginSwitchResponses[keyof PostUsersLoginSwitchResponses];
3272
+ export type PostUsersRegisterData = {
3273
+ /**
3274
+ * User Register Data
3275
+ */
3276
+ body: {
3277
+ id?: string;
3278
+ firstName: string;
3279
+ lastName: string;
3280
+ defaultMembershipId?: string | null;
3281
+ lastLogin?: Date | null;
3282
+ bannedAt?: Date | null;
3283
+ verifiedAt?: Date | null;
3284
+ projectId?: string;
3285
+ createdAt?: Date | null;
3286
+ updatedAt?: Date | null;
3287
+ organizationName?: string;
3288
+ identifierType: string;
3289
+ identifierValue: string;
3290
+ password: string;
3291
+ };
3292
+ path?: never;
3293
+ query?: {
3294
+ groupId?: string;
3295
+ organizationId?: string;
3296
+ roleId?: string;
3297
+ inviteToken?: string;
3298
+ };
3299
+ url: '/users/register';
3300
+ };
3301
+ export type PostUsersRegisterResponses = {
3302
+ /**
3303
+ * User registered
3304
+ */
3305
+ 200: {
3306
+ data: {
3307
+ id: string;
3308
+ firstName: string;
3309
+ lastName: string;
3310
+ defaultMembershipId: string | null;
3311
+ lastLogin: Date | null;
3312
+ bannedAt: Date | null;
3313
+ verifiedAt: Date | null;
3314
+ projectId: string;
3315
+ createdAt: Date | null;
3316
+ updatedAt: Date | null;
3317
+ verifyToken: string;
3318
+ group?: {
3319
+ id: string;
3320
+ name: string;
3321
+ };
3322
+ organization?: {
3323
+ id: string;
3324
+ name: string;
3325
+ };
3326
+ role?: {
3327
+ id: string;
3328
+ name: string;
3329
+ };
3330
+ };
3331
+ message: string;
3332
+ success: boolean;
3333
+ error?: unknown;
3334
+ meta?: unknown;
3335
+ };
3336
+ };
3337
+ export type PostUsersRegisterResponse = PostUsersRegisterResponses[keyof PostUsersRegisterResponses];
3338
+ export type PostUsersTokenData = {
3339
+ /**
3340
+ * Refresh token
3341
+ */
3342
+ body: {
3343
+ refreshToken: string;
3344
+ };
3345
+ path?: never;
3346
+ query?: never;
3347
+ url: '/users/token';
3348
+ };
3349
+ export type PostUsersTokenResponses = {
3350
+ /**
3351
+ * New token response
3352
+ */
3353
+ 200: {
3354
+ data: {
3355
+ accessToken: string;
3356
+ refreshToken: string;
3357
+ };
3358
+ message: string;
3359
+ success: boolean;
3360
+ error?: unknown;
3361
+ meta?: unknown;
3362
+ };
3363
+ };
3364
+ export type PostUsersTokenResponse = PostUsersTokenResponses[keyof PostUsersTokenResponses];
3365
+ export type PostUsersLogoutData = {
3366
+ body?: never;
3367
+ path?: never;
3368
+ query?: never;
3369
+ url: '/users/logout';
3370
+ };
3371
+ export type PostUsersLogoutResponses = {
3372
+ /**
3373
+ * User logged out successfully
3374
+ */
3375
+ 200: {
3376
+ data: {
3377
+ [key: string]: unknown;
3378
+ };
3379
+ message: string;
3380
+ success: boolean;
3381
+ error?: unknown;
3382
+ meta?: unknown;
3383
+ };
3384
+ };
3385
+ export type PostUsersLogoutResponse = PostUsersLogoutResponses[keyof PostUsersLogoutResponses];
3386
+ export type GetUsersMeData = {
3387
+ body?: never;
3388
+ path?: never;
3389
+ query?: never;
3390
+ url: '/users/me';
3391
+ };
3392
+ export type GetUsersMeResponses = {
3393
+ /**
3394
+ * User details
3395
+ */
3396
+ 200: {
3397
+ data: {
3398
+ user: {
3399
+ id: string;
3400
+ firstName: string;
3401
+ lastName: string;
3402
+ defaultMembershipId: string | null;
3403
+ lastLogin: Date | null;
3404
+ bannedAt: Date | null;
3405
+ verifiedAt: Date | null;
3406
+ projectId: string;
3407
+ createdAt: Date | null;
3408
+ updatedAt: Date | null;
3409
+ };
3410
+ userIdentifiers: Array<{
3411
+ id: string;
3412
+ userId: string;
3413
+ projectId: string;
3414
+ identifierType: string;
3415
+ identifierValue: string;
3416
+ verifiedAt: Date | null;
3417
+ createdAt: Date | null;
3418
+ updatedAt: Date | null;
3419
+ }>;
3420
+ role: {
3421
+ id: string;
3422
+ name: string;
3423
+ description: string | null;
3424
+ organizationId: string | null;
3425
+ groupId: string;
3426
+ projectId: string;
3427
+ createdAt: Date | null;
3428
+ updatedAt: Date | null;
3429
+ } | null;
3430
+ organization: {
3431
+ id: string;
3432
+ name: string;
3433
+ groupId: string;
3434
+ projectId: string;
3435
+ creatorId: string | null;
3436
+ createdAt: Date | null;
3437
+ updatedAt: Date | null;
3438
+ } | null;
3439
+ group: {
3440
+ id: string;
3441
+ name: string;
3442
+ description: string | null;
3443
+ projectId: string;
3444
+ createdAt: Date | null;
3445
+ updatedAt: Date | null;
3446
+ } | null;
3447
+ permissions: {
3448
+ enabled: Array<string>;
3449
+ disabled: Array<string>;
3450
+ };
3451
+ zones: Array<{
3452
+ id: string;
3453
+ name: string;
3454
+ }>;
3455
+ branches: Array<{
3456
+ id: string;
3457
+ name: string;
3458
+ }>;
3459
+ };
3460
+ message: string;
3461
+ success: boolean;
3462
+ error?: unknown;
3463
+ meta?: unknown;
3464
+ };
3465
+ };
3466
+ export type GetUsersMeResponse = GetUsersMeResponses[keyof GetUsersMeResponses];
3467
+ export type GetUsersCustomActiveData = {
3468
+ body?: never;
3469
+ path?: never;
3470
+ query?: never;
3471
+ url: '/users/custom/active';
3472
+ };
3473
+ export type GetUsersCustomActiveResponses = {
3474
+ /**
3475
+ * Active users list
3476
+ */
3477
+ 200: {
3478
+ data: Array<{
3479
+ id: string;
3480
+ firstName: string;
3481
+ lastName: string;
3482
+ defaultMembershipId: string | null;
3483
+ lastLogin: Date | null;
3484
+ bannedAt: Date | null;
3485
+ verifiedAt: Date | null;
3486
+ projectId: string;
3487
+ createdAt: Date | null;
3488
+ updatedAt: Date | null;
3489
+ }>;
3490
+ message: string;
3491
+ success: boolean;
3492
+ error?: unknown;
3493
+ meta?: unknown;
3494
+ };
3495
+ };
3496
+ export type GetUsersCustomActiveResponse = GetUsersCustomActiveResponses[keyof GetUsersCustomActiveResponses];
3497
+ export type GetUsersCustomBannedData = {
3498
+ body?: never;
3499
+ path?: never;
3500
+ query?: never;
3501
+ url: '/users/custom/banned';
3502
+ };
3503
+ export type GetUsersCustomBannedResponses = {
3504
+ /**
3505
+ * Banned users list
3506
+ */
3507
+ 200: {
3508
+ data: Array<{
3509
+ id: string;
3510
+ firstName: string;
3511
+ lastName: string;
3512
+ defaultMembershipId: string | null;
3513
+ lastLogin: Date | null;
3514
+ bannedAt: Date | null;
3515
+ verifiedAt: Date | null;
3516
+ projectId: string;
3517
+ createdAt: Date | null;
3518
+ updatedAt: Date | null;
3519
+ }>;
3520
+ message: string;
3521
+ success: boolean;
3522
+ error?: unknown;
3523
+ meta?: unknown;
3524
+ };
3525
+ };
3526
+ export type GetUsersCustomBannedResponse = GetUsersCustomBannedResponses[keyof GetUsersCustomBannedResponses];
3527
+ export type GetUsersCustomUnverifiedData = {
3528
+ body?: never;
3529
+ path?: never;
3530
+ query?: never;
3531
+ url: '/users/custom/unverified';
3532
+ };
3533
+ export type GetUsersCustomUnverifiedResponses = {
3534
+ /**
3535
+ * Unverified users list
3536
+ */
3537
+ 200: {
3538
+ data: Array<{
3539
+ id: string;
3540
+ firstName: string;
3541
+ lastName: string;
3542
+ defaultMembershipId: string | null;
3543
+ lastLogin: Date | null;
3544
+ bannedAt: Date | null;
3545
+ verifiedAt: Date | null;
3546
+ projectId: string;
3547
+ createdAt: Date | null;
3548
+ updatedAt: Date | null;
3549
+ }>;
3550
+ message: string;
3551
+ success: boolean;
3552
+ error?: unknown;
3553
+ meta?: unknown;
3554
+ };
3555
+ };
3556
+ export type GetUsersCustomUnverifiedResponse = GetUsersCustomUnverifiedResponses[keyof GetUsersCustomUnverifiedResponses];
3557
+ export type GetUsersCustomInactiveData = {
3558
+ body?: never;
3559
+ path?: never;
3560
+ query: {
3561
+ minDays: number;
3562
+ maxDays?: number;
3563
+ verified?: string;
3564
+ page?: number;
3565
+ size?: number;
3566
+ };
3567
+ url: '/users/custom/inactive';
3568
+ };
3569
+ export type GetUsersCustomInactiveResponses = {
3570
+ /**
3571
+ * Inactive users list
3572
+ */
3573
+ 200: {
3574
+ data: Array<{
3575
+ id: string;
3576
+ firstName: string;
3577
+ lastName: string;
3578
+ defaultMembershipId: string | null;
3579
+ lastLogin: Date | null;
3580
+ bannedAt: Date | null;
3581
+ verifiedAt: Date | null;
3582
+ projectId: string;
3583
+ createdAt: Date | null;
3584
+ updatedAt: Date | null;
3585
+ }>;
3586
+ message: string;
3587
+ success: boolean;
3588
+ error?: unknown;
3589
+ meta?: unknown;
3590
+ };
3591
+ };
3592
+ export type GetUsersCustomInactiveResponse = GetUsersCustomInactiveResponses[keyof GetUsersCustomInactiveResponses];
3593
+ export type DeleteUsersData = {
3594
+ /**
3595
+ * User IDs to delete
3596
+ */
3597
+ body?: {
3598
+ ids: Array<string>;
3599
+ };
3600
+ path?: never;
3601
+ query?: never;
3602
+ url: '/users';
3603
+ };
3604
+ export type DeleteUsersErrors = {
3605
+ /**
3606
+ * Invalid request
3607
+ */
3608
+ 400: {
3609
+ data: {
3610
+ [key: string]: unknown;
3611
+ };
3612
+ message: string;
3613
+ success: boolean;
3614
+ error?: unknown;
3615
+ meta?: unknown;
3616
+ };
3617
+ };
3618
+ export type DeleteUsersError = DeleteUsersErrors[keyof DeleteUsersErrors];
3619
+ export type DeleteUsersResponses = {
3620
+ /**
3621
+ * Users deleted successfully
3622
+ */
3623
+ 200: {
3624
+ data: {
3625
+ deletedCount: number;
3626
+ deletedIds: Array<string>;
3627
+ };
3628
+ message: string;
3629
+ success: boolean;
3630
+ error?: unknown;
3631
+ meta?: unknown;
3632
+ };
3633
+ };
3634
+ export type DeleteUsersResponse = DeleteUsersResponses[keyof DeleteUsersResponses];
3635
+ export type GetUsersData = {
3636
+ body?: never;
3637
+ path?: never;
3638
+ query?: {
3639
+ id?: string;
3640
+ firstName?: string;
3641
+ lastName?: string;
3642
+ defaultMembershipId?: string | null;
3643
+ lastLogin?: Date | null;
3644
+ bannedAt?: Date | null;
3645
+ verifiedAt?: Date | null;
3646
+ projectId?: string;
3647
+ createdAt?: Date | null;
3648
+ updatedAt?: Date | null;
3649
+ search?: string;
3650
+ ids?: Array<string>;
3651
+ orderBy?: string;
3652
+ sortOrder?: 'asc' | 'desc';
3653
+ page?: number;
3654
+ size?: number;
3655
+ };
3656
+ url: '/users';
3657
+ };
3658
+ export type GetUsersResponses = {
3659
+ /**
3660
+ * User List
3661
+ */
3662
+ 200: {
3663
+ data: Array<{
3664
+ id: string;
3665
+ firstName: string;
3666
+ lastName: string;
3667
+ defaultMembershipId: string | null;
3668
+ lastLogin: Date | null;
3669
+ bannedAt: Date | null;
3670
+ verifiedAt: Date | null;
3671
+ projectId: string;
3672
+ createdAt: Date | null;
3673
+ updatedAt: Date | null;
3674
+ }>;
3675
+ message: string;
3676
+ success: boolean;
3677
+ error?: unknown;
3678
+ meta?: unknown;
3679
+ pagination: {
3680
+ page: number;
3681
+ size: number;
3682
+ totalItems: number;
3683
+ totalPages: number;
3684
+ };
3685
+ };
3686
+ };
3687
+ export type GetUsersResponse = GetUsersResponses[keyof GetUsersResponses];
3688
+ export type PostUsersData = {
3689
+ /**
3690
+ * Input
3691
+ */
3692
+ body?: {
3693
+ id?: string;
3694
+ firstName: string;
3695
+ lastName: string;
3696
+ defaultMembershipId?: string | null;
3697
+ lastLogin?: Date | null;
3698
+ bannedAt?: Date | null;
3699
+ verifiedAt?: Date | null;
3700
+ createdAt?: Date | null;
3701
+ updatedAt?: Date | null;
3702
+ };
3703
+ path?: never;
3704
+ query?: never;
3705
+ url: '/users';
3706
+ };
3707
+ export type PostUsersResponses = {
3708
+ /**
3709
+ * Item
3710
+ */
3711
+ 200: {
3712
+ data: {
3713
+ id: string;
3714
+ firstName: string;
3715
+ lastName: string;
3716
+ defaultMembershipId: string | null;
3717
+ lastLogin: Date | null;
3718
+ bannedAt: Date | null;
3719
+ verifiedAt: Date | null;
3720
+ projectId: string;
3721
+ createdAt: Date | null;
3722
+ updatedAt: Date | null;
3723
+ };
3724
+ message: string;
3725
+ success: boolean;
3726
+ error?: unknown;
3727
+ meta?: unknown;
3728
+ };
3729
+ };
3730
+ export type PostUsersResponse = PostUsersResponses[keyof PostUsersResponses];
3731
+ export type DeleteUsersByIdData = {
3732
+ body?: never;
3733
+ path: {
3734
+ id: string;
3735
+ };
3736
+ query?: never;
3737
+ url: '/users/{id}';
3738
+ };
3739
+ export type DeleteUsersByIdResponses = {
3740
+ /**
3741
+ * Deleted User
3742
+ */
3743
+ 200: {
3744
+ data: {
3745
+ id: string;
3746
+ firstName: string;
3747
+ lastName: string;
3748
+ defaultMembershipId: string | null;
3749
+ lastLogin: Date | null;
3750
+ bannedAt: Date | null;
3751
+ verifiedAt: Date | null;
3752
+ projectId: string;
3753
+ createdAt: Date | null;
3754
+ updatedAt: Date | null;
3755
+ };
3756
+ message: string;
3757
+ success: boolean;
3758
+ error?: unknown;
3759
+ meta?: unknown;
3760
+ };
3761
+ };
3762
+ export type DeleteUsersByIdResponse = DeleteUsersByIdResponses[keyof DeleteUsersByIdResponses];
3763
+ export type GetUsersByIdData = {
3764
+ body?: never;
3765
+ path: {
3766
+ id: string;
3767
+ };
3768
+ query?: never;
3769
+ url: '/users/{id}';
3770
+ };
3771
+ export type GetUsersByIdResponses = {
3772
+ /**
3773
+ * Item
3774
+ */
3775
+ 200: {
3776
+ data: {
3777
+ id: string;
3778
+ firstName: string;
3779
+ lastName: string;
3780
+ defaultMembershipId: string | null;
3781
+ lastLogin: Date | null;
3782
+ bannedAt: Date | null;
3783
+ verifiedAt: Date | null;
3784
+ projectId: string;
3785
+ createdAt: Date | null;
3786
+ updatedAt: Date | null;
3787
+ };
3788
+ message: string;
3789
+ success: boolean;
3790
+ error?: unknown;
3791
+ meta?: unknown;
3792
+ };
3793
+ };
3794
+ export type GetUsersByIdResponse = GetUsersByIdResponses[keyof GetUsersByIdResponses];
3795
+ export type PutUsersByIdData = {
3796
+ /**
3797
+ * Input
3798
+ */
3799
+ body?: {
3800
+ id?: string;
3801
+ firstName?: string;
3802
+ lastName?: string;
3803
+ defaultMembershipId?: string | null;
3804
+ lastLogin?: Date | null;
3805
+ bannedAt?: Date | null;
3806
+ verifiedAt?: Date | null;
3807
+ projectId?: string;
3808
+ createdAt?: Date | null;
3809
+ updatedAt?: Date | null;
3810
+ };
3811
+ path: {
3812
+ id: string;
3813
+ };
3814
+ query?: never;
3815
+ url: '/users/{id}';
3816
+ };
3817
+ export type PutUsersByIdResponses = {
3818
+ /**
3819
+ * Item
3820
+ */
3821
+ 200: {
3822
+ data: {
3823
+ id: string;
3824
+ firstName: string;
3825
+ lastName: string;
3826
+ defaultMembershipId: string | null;
3827
+ lastLogin: Date | null;
3828
+ bannedAt: Date | null;
3829
+ verifiedAt: Date | null;
3830
+ projectId: string;
3831
+ createdAt: Date | null;
3832
+ updatedAt: Date | null;
3833
+ };
3834
+ message: string;
3835
+ success: boolean;
3836
+ error?: unknown;
3837
+ meta?: unknown;
3838
+ };
3839
+ };
3840
+ export type PutUsersByIdResponse = PutUsersByIdResponses[keyof PutUsersByIdResponses];
3841
+ export type PutUsersByIdChangeIdData = {
3842
+ /**
3843
+ * New User ID payload
3844
+ */
3845
+ body?: {
3846
+ newId: string;
3847
+ };
3848
+ path: {
3849
+ id: string;
3850
+ };
3851
+ query?: never;
3852
+ url: '/users/{id}/change-id';
3853
+ };
3854
+ export type PutUsersByIdChangeIdResponses = {
3855
+ /**
3856
+ * Updated User ID
3857
+ */
3858
+ 200: {
3859
+ data: {
3860
+ id: string;
3861
+ };
3862
+ message: string;
3863
+ success: boolean;
3864
+ error?: unknown;
3865
+ meta?: unknown;
3866
+ };
3867
+ };
3868
+ export type PutUsersByIdChangeIdResponse = PutUsersByIdChangeIdResponses[keyof PutUsersByIdChangeIdResponses];
3869
+ export type GetOrganizationsByOrganizationIdZonesMyData = {
3870
+ body?: never;
3871
+ path: {
3872
+ organizationId: string;
3873
+ };
3874
+ query?: {
3875
+ id?: string;
3876
+ name?: string;
3877
+ description?: string | null;
3878
+ organizationId?: string | null;
3879
+ createdAt?: Date | null;
3880
+ updatedAt?: Date | null;
3881
+ search?: string;
3882
+ ids?: Array<string>;
3883
+ orderBy?: string;
3884
+ sortOrder?: 'asc' | 'desc';
3885
+ page?: number;
3886
+ size?: number;
3887
+ };
3888
+ url: '/organizations/{organizationId}/zones/my';
3889
+ };
3890
+ export type GetOrganizationsByOrganizationIdZonesMyResponses = {
3891
+ /**
3892
+ * Zone List
3893
+ */
3894
+ 200: {
3895
+ data: Array<{
3896
+ id: string;
3897
+ name: string;
3898
+ description: string | null;
3899
+ organizationId: string | null;
3900
+ createdAt: Date | null;
3901
+ updatedAt: Date | null;
3902
+ }>;
3903
+ message: string;
3904
+ success: boolean;
3905
+ error?: unknown;
3906
+ meta?: unknown;
3907
+ };
3908
+ };
3909
+ export type GetOrganizationsByOrganizationIdZonesMyResponse = GetOrganizationsByOrganizationIdZonesMyResponses[keyof GetOrganizationsByOrganizationIdZonesMyResponses];
3910
+ export type GetOrganizationsByOrganizationIdZonesData = {
3911
+ body?: never;
3912
+ path: {
3913
+ organizationId: string;
3914
+ };
3915
+ query?: {
3916
+ id?: string;
3917
+ name?: string;
3918
+ description?: string | null;
3919
+ organizationId?: string | null;
3920
+ createdAt?: Date | null;
3921
+ updatedAt?: Date | null;
3922
+ search?: string;
3923
+ ids?: Array<string>;
3924
+ orderBy?: string;
3925
+ sortOrder?: 'asc' | 'desc';
3926
+ page?: number;
3927
+ size?: number;
3928
+ };
3929
+ url: '/organizations/{organizationId}/zones';
3930
+ };
3931
+ export type GetOrganizationsByOrganizationIdZonesResponses = {
3932
+ /**
3933
+ * Zone List
3934
+ */
3935
+ 200: {
3936
+ data: Array<{
3937
+ id: string;
3938
+ name: string;
3939
+ description: string | null;
3940
+ organizationId: string | null;
3941
+ createdAt: Date | null;
3942
+ updatedAt: Date | null;
3943
+ }>;
3944
+ message: string;
3945
+ success: boolean;
3946
+ error?: unknown;
3947
+ meta?: unknown;
3948
+ };
3949
+ };
3950
+ export type GetOrganizationsByOrganizationIdZonesResponse = GetOrganizationsByOrganizationIdZonesResponses[keyof GetOrganizationsByOrganizationIdZonesResponses];
3951
+ export type PostOrganizationsByOrganizationIdZonesData = {
3952
+ /**
3953
+ * Input
3954
+ */
3955
+ body?: {
3956
+ id?: string;
3957
+ name: string;
3958
+ description?: string | null;
3959
+ organizationId?: string | null;
3960
+ createdAt?: Date | null;
3961
+ updatedAt?: Date | null;
3962
+ };
3963
+ path: {
3964
+ organizationId: string;
3965
+ };
3966
+ query?: never;
3967
+ url: '/organizations/{organizationId}/zones';
3968
+ };
3969
+ export type PostOrganizationsByOrganizationIdZonesResponses = {
3970
+ /**
3971
+ * Item
3972
+ */
3973
+ 200: {
3974
+ data: {
3975
+ id: string;
3976
+ name: string;
3977
+ description: string | null;
3978
+ organizationId: string | null;
3979
+ createdAt: Date | null;
3980
+ updatedAt: Date | null;
3981
+ };
3982
+ message: string;
3983
+ success: boolean;
3984
+ error?: unknown;
3985
+ meta?: unknown;
3986
+ };
3987
+ };
3988
+ export type PostOrganizationsByOrganizationIdZonesResponse = PostOrganizationsByOrganizationIdZonesResponses[keyof PostOrganizationsByOrganizationIdZonesResponses];
3989
+ export type DeleteOrganizationsByOrganizationIdZonesByIdData = {
3990
+ body?: never;
3991
+ path: {
3992
+ id: string;
3993
+ organizationId: string;
3994
+ };
3995
+ query?: never;
3996
+ url: '/organizations/{organizationId}/zones/{id}';
3997
+ };
3998
+ export type DeleteOrganizationsByOrganizationIdZonesByIdResponses = {
3999
+ /**
4000
+ * Deleted Zone
4001
+ */
4002
+ 200: {
4003
+ data: {
4004
+ id: string;
4005
+ name: string;
4006
+ description: string | null;
4007
+ organizationId: string | null;
4008
+ createdAt: Date | null;
4009
+ updatedAt: Date | null;
4010
+ };
4011
+ message: string;
4012
+ success: boolean;
4013
+ error?: unknown;
4014
+ meta?: unknown;
4015
+ };
4016
+ };
4017
+ export type DeleteOrganizationsByOrganizationIdZonesByIdResponse = DeleteOrganizationsByOrganizationIdZonesByIdResponses[keyof DeleteOrganizationsByOrganizationIdZonesByIdResponses];
4018
+ export type GetOrganizationsByOrganizationIdZonesByIdData = {
4019
+ body?: never;
4020
+ path: {
4021
+ id: string;
4022
+ organizationId: string;
4023
+ };
4024
+ query?: never;
4025
+ url: '/organizations/{organizationId}/zones/{id}';
4026
+ };
4027
+ export type GetOrganizationsByOrganizationIdZonesByIdResponses = {
4028
+ /**
4029
+ * Item
4030
+ */
4031
+ 200: {
4032
+ data: {
4033
+ id: string;
4034
+ name: string;
4035
+ description: string | null;
4036
+ organizationId: string | null;
4037
+ createdAt: Date | null;
4038
+ updatedAt: Date | null;
4039
+ };
4040
+ message: string;
4041
+ success: boolean;
4042
+ error?: unknown;
4043
+ meta?: unknown;
4044
+ };
4045
+ };
4046
+ export type GetOrganizationsByOrganizationIdZonesByIdResponse = GetOrganizationsByOrganizationIdZonesByIdResponses[keyof GetOrganizationsByOrganizationIdZonesByIdResponses];
4047
+ export type PutOrganizationsByOrganizationIdZonesByIdData = {
4048
+ /**
4049
+ * Input
4050
+ */
4051
+ body?: {
4052
+ id?: string;
4053
+ name?: string;
4054
+ description?: string | null;
4055
+ organizationId?: string | null;
4056
+ createdAt?: Date | null;
4057
+ updatedAt?: Date | null;
4058
+ };
4059
+ path: {
4060
+ id: string;
4061
+ organizationId: string;
4062
+ };
4063
+ query?: never;
4064
+ url: '/organizations/{organizationId}/zones/{id}';
4065
+ };
4066
+ export type PutOrganizationsByOrganizationIdZonesByIdResponses = {
4067
+ /**
4068
+ * Item
4069
+ */
4070
+ 200: {
4071
+ data: {
4072
+ id: string;
4073
+ name: string;
4074
+ description: string | null;
4075
+ organizationId: string | null;
4076
+ createdAt: Date | null;
4077
+ updatedAt: Date | null;
4078
+ };
4079
+ message: string;
4080
+ success: boolean;
4081
+ error?: unknown;
4082
+ meta?: unknown;
4083
+ };
4084
+ };
4085
+ export type PutOrganizationsByOrganizationIdZonesByIdResponse = PutOrganizationsByOrganizationIdZonesByIdResponses[keyof PutOrganizationsByOrganizationIdZonesByIdResponses];
4086
+ export type PutOrganizationsByOrganizationIdZonesByIdChangeIdData = {
4087
+ /**
4088
+ * New Zone ID payload
4089
+ */
4090
+ body?: {
4091
+ newId: string;
4092
+ };
4093
+ path: {
4094
+ id: string;
4095
+ organizationId: string;
4096
+ };
4097
+ query?: never;
4098
+ url: '/organizations/{organizationId}/zones/{id}/change-id';
4099
+ };
4100
+ export type PutOrganizationsByOrganizationIdZonesByIdChangeIdResponses = {
4101
+ /**
4102
+ * Updated Zone ID
4103
+ */
4104
+ 200: {
4105
+ data: {
4106
+ id: string;
4107
+ };
4108
+ message: string;
4109
+ success: boolean;
4110
+ error?: unknown;
4111
+ meta?: unknown;
4112
+ };
4113
+ };
4114
+ export type PutOrganizationsByOrganizationIdZonesByIdChangeIdResponse = PutOrganizationsByOrganizationIdZonesByIdChangeIdResponses[keyof PutOrganizationsByOrganizationIdZonesByIdChangeIdResponses];