@palmetto/users-sdk 0.2.1 → 1.2.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.
- package/dist/__generated__/schema.d.ts +912 -231
- package/dist/client.d.ts +426 -130
- package/dist/client.js +52 -97
- package/dist/main.d.ts +2 -1
- package/dist/main.js +2 -1
- package/dist/scopes.d.ts +11 -0
- package/dist/scopes.js +50 -0
- package/package.json +5 -4
|
@@ -22,14 +22,20 @@ export interface paths {
|
|
|
22
22
|
path?: never;
|
|
23
23
|
cookie?: never;
|
|
24
24
|
};
|
|
25
|
-
/**
|
|
25
|
+
/**
|
|
26
|
+
* Get Current User
|
|
27
|
+
* @deprecated
|
|
28
|
+
*/
|
|
26
29
|
get: operations["UsersController_getMe"];
|
|
27
30
|
put?: never;
|
|
28
31
|
post?: never;
|
|
29
32
|
delete?: never;
|
|
30
33
|
options?: never;
|
|
31
34
|
head?: never;
|
|
32
|
-
/**
|
|
35
|
+
/**
|
|
36
|
+
* Update Current User
|
|
37
|
+
* @deprecated
|
|
38
|
+
*/
|
|
33
39
|
patch: operations["UsersController_updateMe"];
|
|
34
40
|
trace?: never;
|
|
35
41
|
};
|
|
@@ -87,6 +93,41 @@ export interface paths {
|
|
|
87
93
|
patch?: never;
|
|
88
94
|
trace?: never;
|
|
89
95
|
};
|
|
96
|
+
"/api/users/{id}/roles": {
|
|
97
|
+
parameters: {
|
|
98
|
+
query?: never;
|
|
99
|
+
header?: never;
|
|
100
|
+
path?: never;
|
|
101
|
+
cookie?: never;
|
|
102
|
+
};
|
|
103
|
+
/** Get roles */
|
|
104
|
+
get: operations["UsersController_getRoles"];
|
|
105
|
+
put?: never;
|
|
106
|
+
post?: never;
|
|
107
|
+
delete?: never;
|
|
108
|
+
options?: never;
|
|
109
|
+
head?: never;
|
|
110
|
+
patch?: never;
|
|
111
|
+
trace?: never;
|
|
112
|
+
};
|
|
113
|
+
"/api/users/{id}/roles/{roleId}": {
|
|
114
|
+
parameters: {
|
|
115
|
+
query?: never;
|
|
116
|
+
header?: never;
|
|
117
|
+
path?: never;
|
|
118
|
+
cookie?: never;
|
|
119
|
+
};
|
|
120
|
+
get?: never;
|
|
121
|
+
put?: never;
|
|
122
|
+
/** Add role to user */
|
|
123
|
+
post: operations["UsersController_addRole"];
|
|
124
|
+
/** Remove role from user */
|
|
125
|
+
delete: operations["UsersController_removeRole"];
|
|
126
|
+
options?: never;
|
|
127
|
+
head?: never;
|
|
128
|
+
patch?: never;
|
|
129
|
+
trace?: never;
|
|
130
|
+
};
|
|
90
131
|
"/api/users/{id}/grants": {
|
|
91
132
|
parameters: {
|
|
92
133
|
query?: never;
|
|
@@ -105,6 +146,24 @@ export interface paths {
|
|
|
105
146
|
patch?: never;
|
|
106
147
|
trace?: never;
|
|
107
148
|
};
|
|
149
|
+
"/api/v2/users/me": {
|
|
150
|
+
parameters: {
|
|
151
|
+
query?: never;
|
|
152
|
+
header?: never;
|
|
153
|
+
path?: never;
|
|
154
|
+
cookie?: never;
|
|
155
|
+
};
|
|
156
|
+
/** Get Current User */
|
|
157
|
+
get: operations["UsersV2Controller_getMe"];
|
|
158
|
+
put?: never;
|
|
159
|
+
post?: never;
|
|
160
|
+
delete?: never;
|
|
161
|
+
options?: never;
|
|
162
|
+
head?: never;
|
|
163
|
+
/** Update Current User */
|
|
164
|
+
patch: operations["UsersV2Controller_updateMe"];
|
|
165
|
+
trace?: never;
|
|
166
|
+
};
|
|
108
167
|
"/api/organizations/{id}": {
|
|
109
168
|
parameters: {
|
|
110
169
|
query?: never;
|
|
@@ -140,6 +199,41 @@ export interface paths {
|
|
|
140
199
|
patch?: never;
|
|
141
200
|
trace?: never;
|
|
142
201
|
};
|
|
202
|
+
"/api/roles": {
|
|
203
|
+
parameters: {
|
|
204
|
+
query?: never;
|
|
205
|
+
header?: never;
|
|
206
|
+
path?: never;
|
|
207
|
+
cookie?: never;
|
|
208
|
+
};
|
|
209
|
+
/** Get roles */
|
|
210
|
+
get: operations["RolesController_findAll"];
|
|
211
|
+
put?: never;
|
|
212
|
+
/** Create a new role */
|
|
213
|
+
post: operations["RolesController_create"];
|
|
214
|
+
delete?: never;
|
|
215
|
+
options?: never;
|
|
216
|
+
head?: never;
|
|
217
|
+
patch?: never;
|
|
218
|
+
trace?: never;
|
|
219
|
+
};
|
|
220
|
+
"/api/roles/{id}": {
|
|
221
|
+
parameters: {
|
|
222
|
+
query?: never;
|
|
223
|
+
header?: never;
|
|
224
|
+
path?: never;
|
|
225
|
+
cookie?: never;
|
|
226
|
+
};
|
|
227
|
+
/** Find role */
|
|
228
|
+
get: operations["RolesController_findOne"];
|
|
229
|
+
put?: never;
|
|
230
|
+
post?: never;
|
|
231
|
+
delete?: never;
|
|
232
|
+
options?: never;
|
|
233
|
+
head?: never;
|
|
234
|
+
patch?: never;
|
|
235
|
+
trace?: never;
|
|
236
|
+
};
|
|
143
237
|
"/api/auth/token": {
|
|
144
238
|
parameters: {
|
|
145
239
|
query?: never;
|
|
@@ -164,10 +258,10 @@ export interface paths {
|
|
|
164
258
|
path?: never;
|
|
165
259
|
cookie?: never;
|
|
166
260
|
};
|
|
167
|
-
/** Get pending sign
|
|
261
|
+
/** Get pending sign-ups */
|
|
168
262
|
get: operations["SignUpsController_findAll"];
|
|
169
263
|
put?: never;
|
|
170
|
-
/** Create
|
|
264
|
+
/** Create sign-up */
|
|
171
265
|
post: operations["SignUpsController_create"];
|
|
172
266
|
delete?: never;
|
|
173
267
|
options?: never;
|
|
@@ -182,15 +276,14 @@ export interface paths {
|
|
|
182
276
|
path?: never;
|
|
183
277
|
cookie?: never;
|
|
184
278
|
};
|
|
185
|
-
/** Find
|
|
279
|
+
/** Find sign-up */
|
|
186
280
|
get: operations["SignUpsController_findOne"];
|
|
187
281
|
put?: never;
|
|
188
282
|
post?: never;
|
|
189
283
|
delete?: never;
|
|
190
284
|
options?: never;
|
|
191
285
|
head?: never;
|
|
192
|
-
|
|
193
|
-
patch: operations["SignUpsController_update"];
|
|
286
|
+
patch?: never;
|
|
194
287
|
trace?: never;
|
|
195
288
|
};
|
|
196
289
|
"/api/sign-ups/{token}/user": {
|
|
@@ -202,7 +295,7 @@ export interface paths {
|
|
|
202
295
|
};
|
|
203
296
|
get?: never;
|
|
204
297
|
put?: never;
|
|
205
|
-
/** Create
|
|
298
|
+
/** Create user with sign-up token */
|
|
206
299
|
post: operations["SignUpsController_createUser"];
|
|
207
300
|
delete?: never;
|
|
208
301
|
options?: never;
|
|
@@ -220,7 +313,7 @@ export interface paths {
|
|
|
220
313
|
get?: never;
|
|
221
314
|
put?: never;
|
|
222
315
|
post?: never;
|
|
223
|
-
/** Delete
|
|
316
|
+
/** Delete sign-up */
|
|
224
317
|
delete: operations["SignUpsController_delete"];
|
|
225
318
|
options?: never;
|
|
226
319
|
head?: never;
|
|
@@ -284,7 +377,8 @@ export interface components {
|
|
|
284
377
|
updatedAt?: string;
|
|
285
378
|
};
|
|
286
379
|
/**
|
|
287
|
-
* @
|
|
380
|
+
* @deprecated
|
|
381
|
+
* @description Internal auth id
|
|
288
382
|
* @example auth0|1234567890
|
|
289
383
|
*/
|
|
290
384
|
auth0Id: string | null;
|
|
@@ -305,6 +399,7 @@ export interface components {
|
|
|
305
399
|
*/
|
|
306
400
|
lastName: string;
|
|
307
401
|
/**
|
|
402
|
+
* @deprecated
|
|
308
403
|
* @description User permissions
|
|
309
404
|
* @example {
|
|
310
405
|
* "photon:blueprint": [
|
|
@@ -370,16 +465,16 @@ export interface components {
|
|
|
370
465
|
/** BadRequestError */
|
|
371
466
|
BadRequestErrorDto: {
|
|
372
467
|
/**
|
|
373
|
-
* @example
|
|
468
|
+
* @example BadRequest
|
|
374
469
|
* @enum {string}
|
|
375
470
|
*/
|
|
376
|
-
error: "
|
|
471
|
+
error: "BadRequest";
|
|
377
472
|
/**
|
|
378
|
-
* @example
|
|
473
|
+
* @example 400
|
|
379
474
|
* @enum {number}
|
|
380
475
|
*/
|
|
381
|
-
statusCode:
|
|
382
|
-
/** @example
|
|
476
|
+
statusCode: 400;
|
|
477
|
+
/** @example Request is invalid */
|
|
383
478
|
message: string;
|
|
384
479
|
/** @example Technical error description */
|
|
385
480
|
reason: string;
|
|
@@ -413,6 +508,62 @@ export interface components {
|
|
|
413
508
|
totalPages: number;
|
|
414
509
|
};
|
|
415
510
|
};
|
|
511
|
+
/** ListUser */
|
|
512
|
+
ListUserDto: {
|
|
513
|
+
/** @example 66e25e72d10dfef2f9f6cc60 */
|
|
514
|
+
id: string;
|
|
515
|
+
meta: {
|
|
516
|
+
/**
|
|
517
|
+
* Format: date-time
|
|
518
|
+
* @description Created at timestamp
|
|
519
|
+
* @example 2024-09-11T00:09:06.276+0000
|
|
520
|
+
*/
|
|
521
|
+
createdAt: string;
|
|
522
|
+
/**
|
|
523
|
+
* Format: date-time
|
|
524
|
+
* @description Updated at timestamp
|
|
525
|
+
* @example 2024-09-11T00:09:06.276+0000
|
|
526
|
+
*/
|
|
527
|
+
updatedAt?: string;
|
|
528
|
+
};
|
|
529
|
+
/**
|
|
530
|
+
* @deprecated
|
|
531
|
+
* @description Internal auth id
|
|
532
|
+
* @example auth0|1234567890
|
|
533
|
+
*/
|
|
534
|
+
auth0Id: string | null;
|
|
535
|
+
/**
|
|
536
|
+
* Format: email
|
|
537
|
+
* @description Email
|
|
538
|
+
* @example test@test.com
|
|
539
|
+
*/
|
|
540
|
+
email: string;
|
|
541
|
+
/**
|
|
542
|
+
* @description First name
|
|
543
|
+
* @example John
|
|
544
|
+
*/
|
|
545
|
+
firstName: string;
|
|
546
|
+
/**
|
|
547
|
+
* @description Last name
|
|
548
|
+
* @example Doe
|
|
549
|
+
*/
|
|
550
|
+
lastName: string;
|
|
551
|
+
/**
|
|
552
|
+
* @description Phone number
|
|
553
|
+
* @example +18048675309
|
|
554
|
+
*/
|
|
555
|
+
phoneNumber: string;
|
|
556
|
+
/**
|
|
557
|
+
* @description Organization ID
|
|
558
|
+
* @example 66e3367b141b81fb54ec4e1f
|
|
559
|
+
*/
|
|
560
|
+
organizationId: string;
|
|
561
|
+
/**
|
|
562
|
+
* @description Has Personal Access Token
|
|
563
|
+
* @example false
|
|
564
|
+
*/
|
|
565
|
+
hasPAT: boolean;
|
|
566
|
+
};
|
|
416
567
|
/** CreateUser */
|
|
417
568
|
CreateUserDto: {
|
|
418
569
|
/**
|
|
@@ -443,23 +594,33 @@ export interface components {
|
|
|
443
594
|
phoneNumber: string;
|
|
444
595
|
/** @example 66e25e72d10dfef2f9f6cc60 */
|
|
445
596
|
organizationId: string;
|
|
446
|
-
|
|
597
|
+
/** @default [] */
|
|
598
|
+
grants: {
|
|
447
599
|
/**
|
|
448
|
-
* @description
|
|
600
|
+
* @description The entity to grant access to
|
|
449
601
|
* @example photon:blueprint
|
|
450
602
|
*/
|
|
451
603
|
entity: string;
|
|
452
604
|
/**
|
|
453
|
-
* @description
|
|
605
|
+
* @description The operation on the entity to grant access to
|
|
454
606
|
* @example read
|
|
455
607
|
*/
|
|
456
608
|
operation: string;
|
|
457
609
|
/**
|
|
458
|
-
* @description
|
|
610
|
+
* @description The scope to apply to this grant to
|
|
611
|
+
* @default @self
|
|
612
|
+
* @enum {string}
|
|
613
|
+
*/
|
|
614
|
+
scope: "@deny" | "@self" | "@org" | "@admin";
|
|
615
|
+
/**
|
|
616
|
+
* @deprecated
|
|
617
|
+
* @description Deny this operation instead of granting it. Use scope = -1 instead of using this field.
|
|
459
618
|
* @example false
|
|
460
619
|
*/
|
|
461
620
|
deny?: boolean;
|
|
462
621
|
}[];
|
|
622
|
+
/** @default [] */
|
|
623
|
+
roleIds: string[];
|
|
463
624
|
};
|
|
464
625
|
/** NotFoundError */
|
|
465
626
|
NotFoundErrorDto: {
|
|
@@ -505,19 +666,154 @@ export interface components {
|
|
|
505
666
|
/** @description Personal access token */
|
|
506
667
|
personalAccessToken?: string;
|
|
507
668
|
};
|
|
508
|
-
/**
|
|
509
|
-
|
|
669
|
+
/** List */
|
|
670
|
+
ListDto: {
|
|
671
|
+
data: unknown[];
|
|
672
|
+
};
|
|
673
|
+
/** Role */
|
|
674
|
+
RoleDto: {
|
|
675
|
+
organizationId?: string;
|
|
676
|
+
name: string;
|
|
677
|
+
/** @enum {string} */
|
|
678
|
+
requiredScope: "@org" | "@admin";
|
|
679
|
+
grants: {
|
|
680
|
+
/**
|
|
681
|
+
* @description Grant entity
|
|
682
|
+
* @example photon:tasks
|
|
683
|
+
*/
|
|
684
|
+
entity: string;
|
|
685
|
+
/**
|
|
686
|
+
* @description Grant operation
|
|
687
|
+
* @example read
|
|
688
|
+
*/
|
|
689
|
+
operation: string;
|
|
690
|
+
/**
|
|
691
|
+
* @example @self
|
|
692
|
+
* @enum {string}
|
|
693
|
+
*/
|
|
694
|
+
scope: "@deny" | "@self" | "@org" | "@admin";
|
|
695
|
+
/**
|
|
696
|
+
* @deprecated
|
|
697
|
+
* @example false
|
|
698
|
+
*/
|
|
699
|
+
deny?: boolean;
|
|
700
|
+
}[];
|
|
701
|
+
meta: {
|
|
702
|
+
/**
|
|
703
|
+
* Format: date-time
|
|
704
|
+
* @description Created at timestamp
|
|
705
|
+
* @example 2024-09-11T00:09:06.276+0000
|
|
706
|
+
*/
|
|
707
|
+
createdAt: string;
|
|
708
|
+
/**
|
|
709
|
+
* Format: date-time
|
|
710
|
+
* @description Updated at timestamp
|
|
711
|
+
* @example 2024-09-11T00:09:06.276+0000
|
|
712
|
+
*/
|
|
713
|
+
updatedAt?: string;
|
|
714
|
+
};
|
|
715
|
+
};
|
|
716
|
+
/** CreateGrant */
|
|
717
|
+
CreateGrantDto: {
|
|
718
|
+
/**
|
|
719
|
+
* @description The entity to grant access to
|
|
720
|
+
* @example photon:blueprint
|
|
721
|
+
*/
|
|
722
|
+
entity: string;
|
|
723
|
+
/**
|
|
724
|
+
* @description The operation on the entity to grant access to
|
|
725
|
+
* @example read
|
|
726
|
+
*/
|
|
727
|
+
operation: string;
|
|
728
|
+
/**
|
|
729
|
+
* @description The scope to apply to this grant to
|
|
730
|
+
* @default @self
|
|
731
|
+
* @enum {string}
|
|
732
|
+
*/
|
|
733
|
+
scope: "@deny" | "@self" | "@org" | "@admin";
|
|
734
|
+
/**
|
|
735
|
+
* @deprecated
|
|
736
|
+
* @description Deny this operation instead of granting it. Use scope = -1 instead of using this field.
|
|
737
|
+
* @example false
|
|
738
|
+
*/
|
|
739
|
+
deny?: boolean;
|
|
740
|
+
};
|
|
741
|
+
/** RemoveGrantInput */
|
|
742
|
+
RemoveGrantInputDto: {
|
|
510
743
|
/**
|
|
511
|
-
* @description
|
|
744
|
+
* @description The entity to grant access to
|
|
512
745
|
* @example photon:blueprint
|
|
513
746
|
*/
|
|
514
747
|
entity: string;
|
|
515
748
|
/**
|
|
516
|
-
* @description
|
|
749
|
+
* @description The operation on the entity to grant access to
|
|
517
750
|
* @example read
|
|
518
751
|
*/
|
|
519
752
|
operation: string;
|
|
520
753
|
};
|
|
754
|
+
/** Me */
|
|
755
|
+
MeDto: {
|
|
756
|
+
/** @example 66e25e72d10dfef2f9f6cc60 */
|
|
757
|
+
id: string;
|
|
758
|
+
meta: {
|
|
759
|
+
/**
|
|
760
|
+
* Format: date-time
|
|
761
|
+
* @description Created at timestamp
|
|
762
|
+
* @example 2024-09-11T00:09:06.276+0000
|
|
763
|
+
*/
|
|
764
|
+
createdAt: string;
|
|
765
|
+
/**
|
|
766
|
+
* Format: date-time
|
|
767
|
+
* @description Updated at timestamp
|
|
768
|
+
* @example 2024-09-11T00:09:06.276+0000
|
|
769
|
+
*/
|
|
770
|
+
updatedAt?: string;
|
|
771
|
+
};
|
|
772
|
+
/**
|
|
773
|
+
* Format: email
|
|
774
|
+
* @description Email
|
|
775
|
+
* @example test@test.com
|
|
776
|
+
*/
|
|
777
|
+
email: string;
|
|
778
|
+
/**
|
|
779
|
+
* @description First name
|
|
780
|
+
* @example John
|
|
781
|
+
*/
|
|
782
|
+
firstName: string;
|
|
783
|
+
/**
|
|
784
|
+
* @description Last name
|
|
785
|
+
* @example Doe
|
|
786
|
+
*/
|
|
787
|
+
lastName: string;
|
|
788
|
+
/**
|
|
789
|
+
* @description Phone number
|
|
790
|
+
* @example +18048675309
|
|
791
|
+
*/
|
|
792
|
+
phoneNumber: string;
|
|
793
|
+
/**
|
|
794
|
+
* @description Organization ID
|
|
795
|
+
* @example 66e3367b141b81fb54ec4e1f
|
|
796
|
+
*/
|
|
797
|
+
organizationId: string;
|
|
798
|
+
/**
|
|
799
|
+
* @description Has Personal Access Token
|
|
800
|
+
* @example false
|
|
801
|
+
*/
|
|
802
|
+
hasPAT: boolean;
|
|
803
|
+
/**
|
|
804
|
+
* @description Permissions mapped to scopes
|
|
805
|
+
* @example {
|
|
806
|
+
* "lux:quote": {
|
|
807
|
+
* "read": "@org"
|
|
808
|
+
* }
|
|
809
|
+
* }
|
|
810
|
+
*/
|
|
811
|
+
permissions: {
|
|
812
|
+
[key: string]: {
|
|
813
|
+
[key: string]: "@deny" | "@self" | "@org" | "@admin";
|
|
814
|
+
};
|
|
815
|
+
};
|
|
816
|
+
};
|
|
521
817
|
/** Organization */
|
|
522
818
|
OrganizationDto: {
|
|
523
819
|
/** @example 66e25e72d10dfef2f9f6cc60 */
|
|
@@ -542,6 +838,7 @@ export interface components {
|
|
|
542
838
|
*/
|
|
543
839
|
name: string;
|
|
544
840
|
/**
|
|
841
|
+
* @deprecated
|
|
545
842
|
* @description Organization permissions
|
|
546
843
|
* @example {
|
|
547
844
|
* "photon:blueprint": [
|
|
@@ -561,20 +858,30 @@ export interface components {
|
|
|
561
858
|
* @example Organization Name
|
|
562
859
|
*/
|
|
563
860
|
name: string;
|
|
564
|
-
/**
|
|
565
|
-
|
|
861
|
+
/**
|
|
862
|
+
* @description Grants
|
|
863
|
+
* @default []
|
|
864
|
+
*/
|
|
865
|
+
grants: {
|
|
566
866
|
/**
|
|
567
|
-
* @description
|
|
867
|
+
* @description The entity to grant access to
|
|
568
868
|
* @example photon:blueprint
|
|
569
869
|
*/
|
|
570
870
|
entity: string;
|
|
571
871
|
/**
|
|
572
|
-
* @description
|
|
872
|
+
* @description The operation on the entity to grant access to
|
|
573
873
|
* @example read
|
|
574
874
|
*/
|
|
575
875
|
operation: string;
|
|
576
876
|
/**
|
|
577
|
-
* @description
|
|
877
|
+
* @description The scope to apply to this grant to
|
|
878
|
+
* @default @self
|
|
879
|
+
* @enum {string}
|
|
880
|
+
*/
|
|
881
|
+
scope: "@deny" | "@self" | "@org" | "@admin";
|
|
882
|
+
/**
|
|
883
|
+
* @deprecated
|
|
884
|
+
* @description Deny this operation instead of granting it. Use scope = -1 instead of using this field.
|
|
578
885
|
* @example false
|
|
579
886
|
*/
|
|
580
887
|
deny?: boolean;
|
|
@@ -588,6 +895,31 @@ export interface components {
|
|
|
588
895
|
*/
|
|
589
896
|
name: string;
|
|
590
897
|
};
|
|
898
|
+
/** CreateRole */
|
|
899
|
+
CreateRoleDto: {
|
|
900
|
+
/** @example 66e25e72d10dfef2f9f6cc60 */
|
|
901
|
+
organizationId?: string;
|
|
902
|
+
name: string;
|
|
903
|
+
/**
|
|
904
|
+
* @default @org
|
|
905
|
+
* @enum {string}
|
|
906
|
+
*/
|
|
907
|
+
requiredScope: "@org" | "@admin";
|
|
908
|
+
grants: {
|
|
909
|
+
/**
|
|
910
|
+
* @description The entity to grant access to
|
|
911
|
+
* @example photon:blueprint
|
|
912
|
+
*/
|
|
913
|
+
entity: string;
|
|
914
|
+
/**
|
|
915
|
+
* @description The operation on the entity to grant access to
|
|
916
|
+
* @example read
|
|
917
|
+
*/
|
|
918
|
+
operation: string;
|
|
919
|
+
/** @enum {string} */
|
|
920
|
+
scope: "@self" | "@org" | "@admin";
|
|
921
|
+
}[];
|
|
922
|
+
};
|
|
591
923
|
/** TokenInput */
|
|
592
924
|
TokenInputDto: {
|
|
593
925
|
/** @enum {string} */
|
|
@@ -629,6 +961,8 @@ export interface components {
|
|
|
629
961
|
firstName?: string;
|
|
630
962
|
lastName?: string;
|
|
631
963
|
email?: string;
|
|
964
|
+
/** Format: date-time */
|
|
965
|
+
expiresAt: string;
|
|
632
966
|
};
|
|
633
967
|
/** SignUp */
|
|
634
968
|
SignUpDto: {
|
|
@@ -640,11 +974,8 @@ export interface components {
|
|
|
640
974
|
firstName?: string;
|
|
641
975
|
lastName?: string;
|
|
642
976
|
email?: string;
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
UpdateSignUpDto: {
|
|
646
|
-
/** @example auth0|6fexxxxxxxxxxxxxxxx */
|
|
647
|
-
auth0Id: string;
|
|
977
|
+
/** Format: date-time */
|
|
978
|
+
expiresAt: string;
|
|
648
979
|
};
|
|
649
980
|
/** CreateSignUp */
|
|
650
981
|
CreateSignUpUserDto: {
|
|
@@ -678,7 +1009,8 @@ export interface components {
|
|
|
678
1009
|
updatedAt?: string;
|
|
679
1010
|
};
|
|
680
1011
|
/**
|
|
681
|
-
* @
|
|
1012
|
+
* @deprecated
|
|
1013
|
+
* @description Internal auth id
|
|
682
1014
|
* @example auth0|1234567890
|
|
683
1015
|
*/
|
|
684
1016
|
auth0Id: string | null;
|
|
@@ -698,18 +1030,6 @@ export interface components {
|
|
|
698
1030
|
* @example Doe
|
|
699
1031
|
*/
|
|
700
1032
|
lastName: string;
|
|
701
|
-
/**
|
|
702
|
-
* @description User permissions
|
|
703
|
-
* @example {
|
|
704
|
-
* "photon:blueprint": [
|
|
705
|
-
* "read",
|
|
706
|
-
* "write"
|
|
707
|
-
* ]
|
|
708
|
-
* }
|
|
709
|
-
*/
|
|
710
|
-
permissions: {
|
|
711
|
-
[key: string]: string[];
|
|
712
|
-
};
|
|
713
1033
|
/**
|
|
714
1034
|
* @description Phone number
|
|
715
1035
|
* @example +18048675309
|
|
@@ -916,7 +1236,7 @@ export interface operations {
|
|
|
916
1236
|
};
|
|
917
1237
|
content: {
|
|
918
1238
|
"application/json": {
|
|
919
|
-
data: components["schemas"]["
|
|
1239
|
+
data: components["schemas"]["ListUserDto"][];
|
|
920
1240
|
} & components["schemas"]["PaginatedListDto"];
|
|
921
1241
|
};
|
|
922
1242
|
};
|
|
@@ -944,21 +1264,478 @@ export interface operations {
|
|
|
944
1264
|
[name: string]: unknown;
|
|
945
1265
|
};
|
|
946
1266
|
content: {
|
|
947
|
-
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1267
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
};
|
|
1271
|
+
};
|
|
1272
|
+
UsersController_create: {
|
|
1273
|
+
parameters: {
|
|
1274
|
+
query?: never;
|
|
1275
|
+
header?: never;
|
|
1276
|
+
path?: never;
|
|
1277
|
+
cookie?: never;
|
|
1278
|
+
};
|
|
1279
|
+
requestBody: {
|
|
1280
|
+
content: {
|
|
1281
|
+
"application/json": components["schemas"]["CreateUserDto"];
|
|
1282
|
+
};
|
|
1283
|
+
};
|
|
1284
|
+
responses: {
|
|
1285
|
+
201: {
|
|
1286
|
+
headers: {
|
|
1287
|
+
[name: string]: unknown;
|
|
1288
|
+
};
|
|
1289
|
+
content: {
|
|
1290
|
+
"application/json": components["schemas"]["UserDto"];
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1293
|
+
/** @description When the request is invalid */
|
|
1294
|
+
400: {
|
|
1295
|
+
headers: {
|
|
1296
|
+
[name: string]: unknown;
|
|
1297
|
+
};
|
|
1298
|
+
content: {
|
|
1299
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1300
|
+
};
|
|
1301
|
+
};
|
|
1302
|
+
/** @description When authentication fails */
|
|
1303
|
+
401: {
|
|
1304
|
+
headers: {
|
|
1305
|
+
[name: string]: unknown;
|
|
1306
|
+
};
|
|
1307
|
+
content: {
|
|
1308
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1309
|
+
};
|
|
1310
|
+
};
|
|
1311
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1312
|
+
403: {
|
|
1313
|
+
headers: {
|
|
1314
|
+
[name: string]: unknown;
|
|
1315
|
+
};
|
|
1316
|
+
content: {
|
|
1317
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
/** @description When the organization is not found */
|
|
1321
|
+
404: {
|
|
1322
|
+
headers: {
|
|
1323
|
+
[name: string]: unknown;
|
|
1324
|
+
};
|
|
1325
|
+
content: {
|
|
1326
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1327
|
+
};
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1330
|
+
};
|
|
1331
|
+
UsersController_get: {
|
|
1332
|
+
parameters: {
|
|
1333
|
+
query?: never;
|
|
1334
|
+
header?: never;
|
|
1335
|
+
path: {
|
|
1336
|
+
id: string;
|
|
1337
|
+
};
|
|
1338
|
+
cookie?: never;
|
|
1339
|
+
};
|
|
1340
|
+
requestBody?: never;
|
|
1341
|
+
responses: {
|
|
1342
|
+
200: {
|
|
1343
|
+
headers: {
|
|
1344
|
+
[name: string]: unknown;
|
|
1345
|
+
};
|
|
1346
|
+
content: {
|
|
1347
|
+
"application/json": components["schemas"]["UserDto"];
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
/** @description When the ID is invalid */
|
|
1351
|
+
400: {
|
|
1352
|
+
headers: {
|
|
1353
|
+
[name: string]: unknown;
|
|
1354
|
+
};
|
|
1355
|
+
content: {
|
|
1356
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
/** @description When authentication fails */
|
|
1360
|
+
401: {
|
|
1361
|
+
headers: {
|
|
1362
|
+
[name: string]: unknown;
|
|
1363
|
+
};
|
|
1364
|
+
content: {
|
|
1365
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1366
|
+
};
|
|
1367
|
+
};
|
|
1368
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1369
|
+
403: {
|
|
1370
|
+
headers: {
|
|
1371
|
+
[name: string]: unknown;
|
|
1372
|
+
};
|
|
1373
|
+
content: {
|
|
1374
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1375
|
+
};
|
|
1376
|
+
};
|
|
1377
|
+
/** @description When the user is not found */
|
|
1378
|
+
404: {
|
|
1379
|
+
headers: {
|
|
1380
|
+
[name: string]: unknown;
|
|
1381
|
+
};
|
|
1382
|
+
content: {
|
|
1383
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1384
|
+
};
|
|
1385
|
+
};
|
|
1386
|
+
};
|
|
1387
|
+
};
|
|
1388
|
+
UsersController_delete: {
|
|
1389
|
+
parameters: {
|
|
1390
|
+
query?: never;
|
|
1391
|
+
header?: never;
|
|
1392
|
+
path: {
|
|
1393
|
+
id: string;
|
|
1394
|
+
};
|
|
1395
|
+
cookie?: never;
|
|
1396
|
+
};
|
|
1397
|
+
requestBody?: never;
|
|
1398
|
+
responses: {
|
|
1399
|
+
204: {
|
|
1400
|
+
headers: {
|
|
1401
|
+
[name: string]: unknown;
|
|
1402
|
+
};
|
|
1403
|
+
content?: never;
|
|
1404
|
+
};
|
|
1405
|
+
/** @description When the ID is invalid */
|
|
1406
|
+
400: {
|
|
1407
|
+
headers: {
|
|
1408
|
+
[name: string]: unknown;
|
|
1409
|
+
};
|
|
1410
|
+
content: {
|
|
1411
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1412
|
+
};
|
|
1413
|
+
};
|
|
1414
|
+
/** @description When authentication fails */
|
|
1415
|
+
401: {
|
|
1416
|
+
headers: {
|
|
1417
|
+
[name: string]: unknown;
|
|
1418
|
+
};
|
|
1419
|
+
content: {
|
|
1420
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1421
|
+
};
|
|
1422
|
+
};
|
|
1423
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1424
|
+
403: {
|
|
1425
|
+
headers: {
|
|
1426
|
+
[name: string]: unknown;
|
|
1427
|
+
};
|
|
1428
|
+
content: {
|
|
1429
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1430
|
+
};
|
|
1431
|
+
};
|
|
1432
|
+
/** @description When the user is not found */
|
|
1433
|
+
404: {
|
|
1434
|
+
headers: {
|
|
1435
|
+
[name: string]: unknown;
|
|
1436
|
+
};
|
|
1437
|
+
content: {
|
|
1438
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
/** @description When the user is not allowed to be deactivated */
|
|
1442
|
+
409: {
|
|
1443
|
+
headers: {
|
|
1444
|
+
[name: string]: unknown;
|
|
1445
|
+
};
|
|
1446
|
+
content: {
|
|
1447
|
+
"application/json": components["schemas"]["ConflictErrorDto"];
|
|
1448
|
+
};
|
|
1449
|
+
};
|
|
1450
|
+
};
|
|
1451
|
+
};
|
|
1452
|
+
UsersController_update: {
|
|
1453
|
+
parameters: {
|
|
1454
|
+
query?: never;
|
|
1455
|
+
header?: never;
|
|
1456
|
+
path: {
|
|
1457
|
+
id: string;
|
|
1458
|
+
};
|
|
1459
|
+
cookie?: never;
|
|
1460
|
+
};
|
|
1461
|
+
requestBody: {
|
|
1462
|
+
content: {
|
|
1463
|
+
"application/json": components["schemas"]["UpdateUserDto"];
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
responses: {
|
|
1467
|
+
200: {
|
|
1468
|
+
headers: {
|
|
1469
|
+
[name: string]: unknown;
|
|
1470
|
+
};
|
|
1471
|
+
content: {
|
|
1472
|
+
"application/json": components["schemas"]["UserDto"];
|
|
1473
|
+
};
|
|
1474
|
+
};
|
|
1475
|
+
/** @description When the ID or body request is invalid */
|
|
1476
|
+
400: {
|
|
1477
|
+
headers: {
|
|
1478
|
+
[name: string]: unknown;
|
|
1479
|
+
};
|
|
1480
|
+
content: {
|
|
1481
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1482
|
+
};
|
|
1483
|
+
};
|
|
1484
|
+
/** @description When authentication fails */
|
|
1485
|
+
401: {
|
|
1486
|
+
headers: {
|
|
1487
|
+
[name: string]: unknown;
|
|
1488
|
+
};
|
|
1489
|
+
content: {
|
|
1490
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1491
|
+
};
|
|
1492
|
+
};
|
|
1493
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1494
|
+
403: {
|
|
1495
|
+
headers: {
|
|
1496
|
+
[name: string]: unknown;
|
|
1497
|
+
};
|
|
1498
|
+
content: {
|
|
1499
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1500
|
+
};
|
|
1501
|
+
};
|
|
1502
|
+
/** @description When the user is not found */
|
|
1503
|
+
404: {
|
|
1504
|
+
headers: {
|
|
1505
|
+
[name: string]: unknown;
|
|
1506
|
+
};
|
|
1507
|
+
content: {
|
|
1508
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1509
|
+
};
|
|
1510
|
+
};
|
|
1511
|
+
};
|
|
1512
|
+
};
|
|
1513
|
+
UsersController_getPersonalAccessToken: {
|
|
1514
|
+
parameters: {
|
|
1515
|
+
query?: never;
|
|
1516
|
+
header?: never;
|
|
1517
|
+
path: {
|
|
1518
|
+
id: string;
|
|
1519
|
+
};
|
|
1520
|
+
cookie?: never;
|
|
1521
|
+
};
|
|
1522
|
+
requestBody?: never;
|
|
1523
|
+
responses: {
|
|
1524
|
+
201: {
|
|
1525
|
+
headers: {
|
|
1526
|
+
[name: string]: unknown;
|
|
1527
|
+
};
|
|
1528
|
+
content: {
|
|
1529
|
+
"application/json": components["schemas"]["UserPersonalAccessTokenDto"];
|
|
1530
|
+
};
|
|
1531
|
+
};
|
|
1532
|
+
/** @description When the ID is invalid */
|
|
1533
|
+
400: {
|
|
1534
|
+
headers: {
|
|
1535
|
+
[name: string]: unknown;
|
|
1536
|
+
};
|
|
1537
|
+
content: {
|
|
1538
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
/** @description When authentication fails */
|
|
1542
|
+
401: {
|
|
1543
|
+
headers: {
|
|
1544
|
+
[name: string]: unknown;
|
|
1545
|
+
};
|
|
1546
|
+
content: {
|
|
1547
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1548
|
+
};
|
|
1549
|
+
};
|
|
1550
|
+
/** @description When the user is not found */
|
|
1551
|
+
404: {
|
|
1552
|
+
headers: {
|
|
1553
|
+
[name: string]: unknown;
|
|
1554
|
+
};
|
|
1555
|
+
content: {
|
|
1556
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1557
|
+
};
|
|
1558
|
+
};
|
|
1559
|
+
};
|
|
1560
|
+
};
|
|
1561
|
+
UsersController_getRoles: {
|
|
1562
|
+
parameters: {
|
|
1563
|
+
query?: never;
|
|
1564
|
+
header?: never;
|
|
1565
|
+
path: {
|
|
1566
|
+
id: string;
|
|
1567
|
+
};
|
|
1568
|
+
cookie?: never;
|
|
1569
|
+
};
|
|
1570
|
+
requestBody?: never;
|
|
1571
|
+
responses: {
|
|
1572
|
+
200: {
|
|
1573
|
+
headers: {
|
|
1574
|
+
[name: string]: unknown;
|
|
1575
|
+
};
|
|
1576
|
+
content: {
|
|
1577
|
+
"application/json": {
|
|
1578
|
+
data: components["schemas"]["RoleDto"][];
|
|
1579
|
+
};
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
/** @description When the request is invalid */
|
|
1583
|
+
400: {
|
|
1584
|
+
headers: {
|
|
1585
|
+
[name: string]: unknown;
|
|
1586
|
+
};
|
|
1587
|
+
content: {
|
|
1588
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1589
|
+
};
|
|
1590
|
+
};
|
|
1591
|
+
/** @description When authentication fails */
|
|
1592
|
+
401: {
|
|
1593
|
+
headers: {
|
|
1594
|
+
[name: string]: unknown;
|
|
1595
|
+
};
|
|
1596
|
+
content: {
|
|
1597
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1598
|
+
};
|
|
1599
|
+
};
|
|
1600
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1601
|
+
403: {
|
|
1602
|
+
headers: {
|
|
1603
|
+
[name: string]: unknown;
|
|
1604
|
+
};
|
|
1605
|
+
content: {
|
|
1606
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1607
|
+
};
|
|
1608
|
+
};
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
UsersController_addRole: {
|
|
1612
|
+
parameters: {
|
|
1613
|
+
query?: never;
|
|
1614
|
+
header?: never;
|
|
1615
|
+
path: {
|
|
1616
|
+
id: string;
|
|
1617
|
+
roleId: string;
|
|
1618
|
+
};
|
|
1619
|
+
cookie?: never;
|
|
1620
|
+
};
|
|
1621
|
+
requestBody?: never;
|
|
1622
|
+
responses: {
|
|
1623
|
+
201: {
|
|
1624
|
+
headers: {
|
|
1625
|
+
[name: string]: unknown;
|
|
1626
|
+
};
|
|
1627
|
+
content: {
|
|
1628
|
+
"application/json": components["schemas"]["UserDto"];
|
|
1629
|
+
};
|
|
1630
|
+
};
|
|
1631
|
+
/** @description When the request is invalid */
|
|
1632
|
+
400: {
|
|
1633
|
+
headers: {
|
|
1634
|
+
[name: string]: unknown;
|
|
1635
|
+
};
|
|
1636
|
+
content: {
|
|
1637
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1640
|
+
/** @description When authentication fails */
|
|
1641
|
+
401: {
|
|
1642
|
+
headers: {
|
|
1643
|
+
[name: string]: unknown;
|
|
1644
|
+
};
|
|
1645
|
+
content: {
|
|
1646
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1647
|
+
};
|
|
1648
|
+
};
|
|
1649
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1650
|
+
403: {
|
|
1651
|
+
headers: {
|
|
1652
|
+
[name: string]: unknown;
|
|
1653
|
+
};
|
|
1654
|
+
content: {
|
|
1655
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1656
|
+
};
|
|
1657
|
+
};
|
|
1658
|
+
/** @description When the user or role is not found */
|
|
1659
|
+
404: {
|
|
1660
|
+
headers: {
|
|
1661
|
+
[name: string]: unknown;
|
|
1662
|
+
};
|
|
1663
|
+
content: {
|
|
1664
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1665
|
+
};
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
};
|
|
1669
|
+
UsersController_removeRole: {
|
|
1670
|
+
parameters: {
|
|
1671
|
+
query?: never;
|
|
1672
|
+
header?: never;
|
|
1673
|
+
path: {
|
|
1674
|
+
id: string;
|
|
1675
|
+
roleId: string;
|
|
1676
|
+
};
|
|
1677
|
+
cookie?: never;
|
|
1678
|
+
};
|
|
1679
|
+
requestBody?: never;
|
|
1680
|
+
responses: {
|
|
1681
|
+
200: {
|
|
1682
|
+
headers: {
|
|
1683
|
+
[name: string]: unknown;
|
|
1684
|
+
};
|
|
1685
|
+
content: {
|
|
1686
|
+
"application/json": components["schemas"]["UserDto"];
|
|
1687
|
+
};
|
|
1688
|
+
};
|
|
1689
|
+
/** @description When the request is invalid */
|
|
1690
|
+
400: {
|
|
1691
|
+
headers: {
|
|
1692
|
+
[name: string]: unknown;
|
|
1693
|
+
};
|
|
1694
|
+
content: {
|
|
1695
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1696
|
+
};
|
|
1697
|
+
};
|
|
1698
|
+
/** @description When authentication fails */
|
|
1699
|
+
401: {
|
|
1700
|
+
headers: {
|
|
1701
|
+
[name: string]: unknown;
|
|
1702
|
+
};
|
|
1703
|
+
content: {
|
|
1704
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1708
|
+
403: {
|
|
1709
|
+
headers: {
|
|
1710
|
+
[name: string]: unknown;
|
|
1711
|
+
};
|
|
1712
|
+
content: {
|
|
1713
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1714
|
+
};
|
|
1715
|
+
};
|
|
1716
|
+
/** @description When the user is not found */
|
|
1717
|
+
404: {
|
|
1718
|
+
headers: {
|
|
1719
|
+
[name: string]: unknown;
|
|
1720
|
+
};
|
|
1721
|
+
content: {
|
|
1722
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
948
1723
|
};
|
|
949
1724
|
};
|
|
950
1725
|
};
|
|
951
1726
|
};
|
|
952
|
-
|
|
1727
|
+
UsersController_addGrant: {
|
|
953
1728
|
parameters: {
|
|
954
1729
|
query?: never;
|
|
955
1730
|
header?: never;
|
|
956
|
-
path
|
|
1731
|
+
path: {
|
|
1732
|
+
id: string;
|
|
1733
|
+
};
|
|
957
1734
|
cookie?: never;
|
|
958
1735
|
};
|
|
959
1736
|
requestBody: {
|
|
960
1737
|
content: {
|
|
961
|
-
"application/json": components["schemas"]["
|
|
1738
|
+
"application/json": components["schemas"]["CreateGrantDto"];
|
|
962
1739
|
};
|
|
963
1740
|
};
|
|
964
1741
|
responses: {
|
|
@@ -970,7 +1747,7 @@ export interface operations {
|
|
|
970
1747
|
"application/json": components["schemas"]["UserDto"];
|
|
971
1748
|
};
|
|
972
1749
|
};
|
|
973
|
-
/** @description When the request is invalid */
|
|
1750
|
+
/** @description When the ID or body request is invalid */
|
|
974
1751
|
400: {
|
|
975
1752
|
headers: {
|
|
976
1753
|
[name: string]: unknown;
|
|
@@ -997,7 +1774,7 @@ export interface operations {
|
|
|
997
1774
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
998
1775
|
};
|
|
999
1776
|
};
|
|
1000
|
-
/** @description When the
|
|
1777
|
+
/** @description When the user is not found */
|
|
1001
1778
|
404: {
|
|
1002
1779
|
headers: {
|
|
1003
1780
|
[name: string]: unknown;
|
|
@@ -1008,7 +1785,7 @@ export interface operations {
|
|
|
1008
1785
|
};
|
|
1009
1786
|
};
|
|
1010
1787
|
};
|
|
1011
|
-
|
|
1788
|
+
UsersController_removeGrant: {
|
|
1012
1789
|
parameters: {
|
|
1013
1790
|
query?: never;
|
|
1014
1791
|
header?: never;
|
|
@@ -1017,7 +1794,11 @@ export interface operations {
|
|
|
1017
1794
|
};
|
|
1018
1795
|
cookie?: never;
|
|
1019
1796
|
};
|
|
1020
|
-
requestBody
|
|
1797
|
+
requestBody: {
|
|
1798
|
+
content: {
|
|
1799
|
+
"application/json": components["schemas"]["RemoveGrantInputDto"];
|
|
1800
|
+
};
|
|
1801
|
+
};
|
|
1021
1802
|
responses: {
|
|
1022
1803
|
200: {
|
|
1023
1804
|
headers: {
|
|
@@ -1027,7 +1808,7 @@ export interface operations {
|
|
|
1027
1808
|
"application/json": components["schemas"]["UserDto"];
|
|
1028
1809
|
};
|
|
1029
1810
|
};
|
|
1030
|
-
/** @description When the ID is invalid */
|
|
1811
|
+
/** @description When the ID or body request is invalid */
|
|
1031
1812
|
400: {
|
|
1032
1813
|
headers: {
|
|
1033
1814
|
[name: string]: unknown;
|
|
@@ -1065,30 +1846,21 @@ export interface operations {
|
|
|
1065
1846
|
};
|
|
1066
1847
|
};
|
|
1067
1848
|
};
|
|
1068
|
-
|
|
1849
|
+
UsersV2Controller_getMe: {
|
|
1069
1850
|
parameters: {
|
|
1070
1851
|
query?: never;
|
|
1071
1852
|
header?: never;
|
|
1072
|
-
path
|
|
1073
|
-
id: string;
|
|
1074
|
-
};
|
|
1853
|
+
path?: never;
|
|
1075
1854
|
cookie?: never;
|
|
1076
1855
|
};
|
|
1077
1856
|
requestBody?: never;
|
|
1078
1857
|
responses: {
|
|
1079
|
-
|
|
1080
|
-
headers: {
|
|
1081
|
-
[name: string]: unknown;
|
|
1082
|
-
};
|
|
1083
|
-
content?: never;
|
|
1084
|
-
};
|
|
1085
|
-
/** @description When the ID is invalid */
|
|
1086
|
-
400: {
|
|
1858
|
+
200: {
|
|
1087
1859
|
headers: {
|
|
1088
1860
|
[name: string]: unknown;
|
|
1089
1861
|
};
|
|
1090
1862
|
content: {
|
|
1091
|
-
"application/json": components["schemas"]["
|
|
1863
|
+
"application/json": components["schemas"]["MeDto"];
|
|
1092
1864
|
};
|
|
1093
1865
|
};
|
|
1094
1866
|
/** @description When authentication fails */
|
|
@@ -1100,7 +1872,7 @@ export interface operations {
|
|
|
1100
1872
|
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1101
1873
|
};
|
|
1102
1874
|
};
|
|
1103
|
-
/** @description When the
|
|
1875
|
+
/** @description When the user does not have permission to access this resource */
|
|
1104
1876
|
403: {
|
|
1105
1877
|
headers: {
|
|
1106
1878
|
[name: string]: unknown;
|
|
@@ -1109,33 +1881,13 @@ export interface operations {
|
|
|
1109
1881
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1110
1882
|
};
|
|
1111
1883
|
};
|
|
1112
|
-
/** @description When the user is not found */
|
|
1113
|
-
404: {
|
|
1114
|
-
headers: {
|
|
1115
|
-
[name: string]: unknown;
|
|
1116
|
-
};
|
|
1117
|
-
content: {
|
|
1118
|
-
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1119
|
-
};
|
|
1120
|
-
};
|
|
1121
|
-
/** @description When the user is not allowed to be deactivated */
|
|
1122
|
-
409: {
|
|
1123
|
-
headers: {
|
|
1124
|
-
[name: string]: unknown;
|
|
1125
|
-
};
|
|
1126
|
-
content: {
|
|
1127
|
-
"application/json": components["schemas"]["ConflictErrorDto"];
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
1884
|
};
|
|
1131
1885
|
};
|
|
1132
|
-
|
|
1886
|
+
UsersV2Controller_updateMe: {
|
|
1133
1887
|
parameters: {
|
|
1134
1888
|
query?: never;
|
|
1135
1889
|
header?: never;
|
|
1136
|
-
path
|
|
1137
|
-
id: string;
|
|
1138
|
-
};
|
|
1890
|
+
path?: never;
|
|
1139
1891
|
cookie?: never;
|
|
1140
1892
|
};
|
|
1141
1893
|
requestBody: {
|
|
@@ -1149,10 +1901,10 @@ export interface operations {
|
|
|
1149
1901
|
[name: string]: unknown;
|
|
1150
1902
|
};
|
|
1151
1903
|
content: {
|
|
1152
|
-
"application/json": components["schemas"]["
|
|
1904
|
+
"application/json": components["schemas"]["MeDto"];
|
|
1153
1905
|
};
|
|
1154
1906
|
};
|
|
1155
|
-
/** @description When the
|
|
1907
|
+
/** @description When the body request is invalid */
|
|
1156
1908
|
400: {
|
|
1157
1909
|
headers: {
|
|
1158
1910
|
[name: string]: unknown;
|
|
@@ -1170,27 +1922,9 @@ export interface operations {
|
|
|
1170
1922
|
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1171
1923
|
};
|
|
1172
1924
|
};
|
|
1173
|
-
/** @description When the requesting user is not allowed to perform this action */
|
|
1174
|
-
403: {
|
|
1175
|
-
headers: {
|
|
1176
|
-
[name: string]: unknown;
|
|
1177
|
-
};
|
|
1178
|
-
content: {
|
|
1179
|
-
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1180
|
-
};
|
|
1181
|
-
};
|
|
1182
|
-
/** @description When the user is not found */
|
|
1183
|
-
404: {
|
|
1184
|
-
headers: {
|
|
1185
|
-
[name: string]: unknown;
|
|
1186
|
-
};
|
|
1187
|
-
content: {
|
|
1188
|
-
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1189
|
-
};
|
|
1190
|
-
};
|
|
1191
1925
|
};
|
|
1192
1926
|
};
|
|
1193
|
-
|
|
1927
|
+
OrganizationsController_getOrganization: {
|
|
1194
1928
|
parameters: {
|
|
1195
1929
|
query?: never;
|
|
1196
1930
|
header?: never;
|
|
@@ -1201,15 +1935,15 @@ export interface operations {
|
|
|
1201
1935
|
};
|
|
1202
1936
|
requestBody?: never;
|
|
1203
1937
|
responses: {
|
|
1204
|
-
|
|
1938
|
+
200: {
|
|
1205
1939
|
headers: {
|
|
1206
1940
|
[name: string]: unknown;
|
|
1207
1941
|
};
|
|
1208
1942
|
content: {
|
|
1209
|
-
"application/json": components["schemas"]["
|
|
1943
|
+
"application/json": components["schemas"]["OrganizationDto"];
|
|
1210
1944
|
};
|
|
1211
1945
|
};
|
|
1212
|
-
/** @description When the ID is invalid */
|
|
1946
|
+
/** @description When the provided ID is invalid */
|
|
1213
1947
|
400: {
|
|
1214
1948
|
headers: {
|
|
1215
1949
|
[name: string]: unknown;
|
|
@@ -1236,7 +1970,7 @@ export interface operations {
|
|
|
1236
1970
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1237
1971
|
};
|
|
1238
1972
|
};
|
|
1239
|
-
/** @description When the
|
|
1973
|
+
/** @description When the organization is not found */
|
|
1240
1974
|
404: {
|
|
1241
1975
|
headers: {
|
|
1242
1976
|
[name: string]: unknown;
|
|
@@ -1247,7 +1981,7 @@ export interface operations {
|
|
|
1247
1981
|
};
|
|
1248
1982
|
};
|
|
1249
1983
|
};
|
|
1250
|
-
|
|
1984
|
+
OrganizationsController_update: {
|
|
1251
1985
|
parameters: {
|
|
1252
1986
|
query?: never;
|
|
1253
1987
|
header?: never;
|
|
@@ -1258,19 +1992,19 @@ export interface operations {
|
|
|
1258
1992
|
};
|
|
1259
1993
|
requestBody: {
|
|
1260
1994
|
content: {
|
|
1261
|
-
"application/json": components["schemas"]["
|
|
1995
|
+
"application/json": components["schemas"]["UpdateOrganizationDto"];
|
|
1262
1996
|
};
|
|
1263
1997
|
};
|
|
1264
1998
|
responses: {
|
|
1265
|
-
|
|
1999
|
+
200: {
|
|
1266
2000
|
headers: {
|
|
1267
2001
|
[name: string]: unknown;
|
|
1268
2002
|
};
|
|
1269
2003
|
content: {
|
|
1270
|
-
"application/json": components["schemas"]["
|
|
2004
|
+
"application/json": components["schemas"]["OrganizationDto"];
|
|
1271
2005
|
};
|
|
1272
2006
|
};
|
|
1273
|
-
/** @description When the ID or body
|
|
2007
|
+
/** @description When the provided ID or body is invalid */
|
|
1274
2008
|
400: {
|
|
1275
2009
|
headers: {
|
|
1276
2010
|
[name: string]: unknown;
|
|
@@ -1297,7 +2031,7 @@ export interface operations {
|
|
|
1297
2031
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1298
2032
|
};
|
|
1299
2033
|
};
|
|
1300
|
-
/** @description When the
|
|
2034
|
+
/** @description When the organization is not found */
|
|
1301
2035
|
404: {
|
|
1302
2036
|
headers: {
|
|
1303
2037
|
[name: string]: unknown;
|
|
@@ -1308,18 +2042,16 @@ export interface operations {
|
|
|
1308
2042
|
};
|
|
1309
2043
|
};
|
|
1310
2044
|
};
|
|
1311
|
-
|
|
2045
|
+
OrganizationsController_create: {
|
|
1312
2046
|
parameters: {
|
|
1313
2047
|
query?: never;
|
|
1314
2048
|
header?: never;
|
|
1315
|
-
path
|
|
1316
|
-
id: string;
|
|
1317
|
-
};
|
|
2049
|
+
path?: never;
|
|
1318
2050
|
cookie?: never;
|
|
1319
2051
|
};
|
|
1320
2052
|
requestBody: {
|
|
1321
2053
|
content: {
|
|
1322
|
-
"application/json": components["schemas"]["
|
|
2054
|
+
"application/json": components["schemas"]["CreateOrganizationDto"];
|
|
1323
2055
|
};
|
|
1324
2056
|
};
|
|
1325
2057
|
responses: {
|
|
@@ -1328,10 +2060,10 @@ export interface operations {
|
|
|
1328
2060
|
[name: string]: unknown;
|
|
1329
2061
|
};
|
|
1330
2062
|
content: {
|
|
1331
|
-
"application/json": components["schemas"]["
|
|
2063
|
+
"application/json": components["schemas"]["OrganizationDto"];
|
|
1332
2064
|
};
|
|
1333
2065
|
};
|
|
1334
|
-
/** @description When the
|
|
2066
|
+
/** @description When the provided body is invalid */
|
|
1335
2067
|
400: {
|
|
1336
2068
|
headers: {
|
|
1337
2069
|
[name: string]: unknown;
|
|
@@ -1358,24 +2090,18 @@ export interface operations {
|
|
|
1358
2090
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1359
2091
|
};
|
|
1360
2092
|
};
|
|
1361
|
-
/** @description When the user is not found */
|
|
1362
|
-
404: {
|
|
1363
|
-
headers: {
|
|
1364
|
-
[name: string]: unknown;
|
|
1365
|
-
};
|
|
1366
|
-
content: {
|
|
1367
|
-
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1368
|
-
};
|
|
1369
|
-
};
|
|
1370
2093
|
};
|
|
1371
2094
|
};
|
|
1372
|
-
|
|
2095
|
+
RolesController_findAll: {
|
|
1373
2096
|
parameters: {
|
|
1374
|
-
query?:
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
2097
|
+
query?: {
|
|
2098
|
+
page?: number;
|
|
2099
|
+
limit?: number;
|
|
2100
|
+
/** @example 66e25e72d10dfef2f9f6cc60 */
|
|
2101
|
+
organizationId?: string;
|
|
1378
2102
|
};
|
|
2103
|
+
header?: never;
|
|
2104
|
+
path?: never;
|
|
1379
2105
|
cookie?: never;
|
|
1380
2106
|
};
|
|
1381
2107
|
requestBody?: never;
|
|
@@ -1385,10 +2111,12 @@ export interface operations {
|
|
|
1385
2111
|
[name: string]: unknown;
|
|
1386
2112
|
};
|
|
1387
2113
|
content: {
|
|
1388
|
-
"application/json":
|
|
2114
|
+
"application/json": {
|
|
2115
|
+
data: components["schemas"]["RoleDto"][];
|
|
2116
|
+
} & components["schemas"]["PaginatedListDto"];
|
|
1389
2117
|
};
|
|
1390
2118
|
};
|
|
1391
|
-
/** @description When the
|
|
2119
|
+
/** @description When the request is invalid */
|
|
1392
2120
|
400: {
|
|
1393
2121
|
headers: {
|
|
1394
2122
|
[name: string]: unknown;
|
|
@@ -1415,41 +2143,30 @@ export interface operations {
|
|
|
1415
2143
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1416
2144
|
};
|
|
1417
2145
|
};
|
|
1418
|
-
/** @description When the organization is not found */
|
|
1419
|
-
404: {
|
|
1420
|
-
headers: {
|
|
1421
|
-
[name: string]: unknown;
|
|
1422
|
-
};
|
|
1423
|
-
content: {
|
|
1424
|
-
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1425
|
-
};
|
|
1426
|
-
};
|
|
1427
2146
|
};
|
|
1428
2147
|
};
|
|
1429
|
-
|
|
2148
|
+
RolesController_create: {
|
|
1430
2149
|
parameters: {
|
|
1431
2150
|
query?: never;
|
|
1432
2151
|
header?: never;
|
|
1433
|
-
path
|
|
1434
|
-
id: string;
|
|
1435
|
-
};
|
|
2152
|
+
path?: never;
|
|
1436
2153
|
cookie?: never;
|
|
1437
2154
|
};
|
|
1438
2155
|
requestBody: {
|
|
1439
2156
|
content: {
|
|
1440
|
-
"application/json": components["schemas"]["
|
|
2157
|
+
"application/json": components["schemas"]["CreateRoleDto"];
|
|
1441
2158
|
};
|
|
1442
2159
|
};
|
|
1443
2160
|
responses: {
|
|
1444
|
-
|
|
2161
|
+
201: {
|
|
1445
2162
|
headers: {
|
|
1446
2163
|
[name: string]: unknown;
|
|
1447
2164
|
};
|
|
1448
2165
|
content: {
|
|
1449
|
-
"application/json": components["schemas"]["
|
|
2166
|
+
"application/json": components["schemas"]["RoleDto"];
|
|
1450
2167
|
};
|
|
1451
2168
|
};
|
|
1452
|
-
/** @description When the
|
|
2169
|
+
/** @description When the request is invalid */
|
|
1453
2170
|
400: {
|
|
1454
2171
|
headers: {
|
|
1455
2172
|
[name: string]: unknown;
|
|
@@ -1476,39 +2193,28 @@ export interface operations {
|
|
|
1476
2193
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1477
2194
|
};
|
|
1478
2195
|
};
|
|
1479
|
-
/** @description When the organization is not found */
|
|
1480
|
-
404: {
|
|
1481
|
-
headers: {
|
|
1482
|
-
[name: string]: unknown;
|
|
1483
|
-
};
|
|
1484
|
-
content: {
|
|
1485
|
-
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1486
|
-
};
|
|
1487
|
-
};
|
|
1488
2196
|
};
|
|
1489
2197
|
};
|
|
1490
|
-
|
|
2198
|
+
RolesController_findOne: {
|
|
1491
2199
|
parameters: {
|
|
1492
2200
|
query?: never;
|
|
1493
2201
|
header?: never;
|
|
1494
|
-
path
|
|
1495
|
-
|
|
1496
|
-
};
|
|
1497
|
-
requestBody: {
|
|
1498
|
-
content: {
|
|
1499
|
-
"application/json": components["schemas"]["CreateOrganizationDto"];
|
|
2202
|
+
path: {
|
|
2203
|
+
id: string;
|
|
1500
2204
|
};
|
|
2205
|
+
cookie?: never;
|
|
1501
2206
|
};
|
|
2207
|
+
requestBody?: never;
|
|
1502
2208
|
responses: {
|
|
1503
2209
|
200: {
|
|
1504
2210
|
headers: {
|
|
1505
2211
|
[name: string]: unknown;
|
|
1506
2212
|
};
|
|
1507
2213
|
content: {
|
|
1508
|
-
"application/json": components["schemas"]["
|
|
2214
|
+
"application/json": components["schemas"]["RoleDto"];
|
|
1509
2215
|
};
|
|
1510
2216
|
};
|
|
1511
|
-
/** @description When the
|
|
2217
|
+
/** @description When the request is invalid */
|
|
1512
2218
|
400: {
|
|
1513
2219
|
headers: {
|
|
1514
2220
|
[name: string]: unknown;
|
|
@@ -1535,6 +2241,15 @@ export interface operations {
|
|
|
1535
2241
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1536
2242
|
};
|
|
1537
2243
|
};
|
|
2244
|
+
/** @description When the Role is not found */
|
|
2245
|
+
404: {
|
|
2246
|
+
headers: {
|
|
2247
|
+
[name: string]: unknown;
|
|
2248
|
+
};
|
|
2249
|
+
content: {
|
|
2250
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
2251
|
+
};
|
|
2252
|
+
};
|
|
1538
2253
|
};
|
|
1539
2254
|
};
|
|
1540
2255
|
AuthController_generateToken: {
|
|
@@ -1635,7 +2350,7 @@ export interface operations {
|
|
|
1635
2350
|
};
|
|
1636
2351
|
};
|
|
1637
2352
|
responses: {
|
|
1638
|
-
|
|
2353
|
+
201: {
|
|
1639
2354
|
headers: {
|
|
1640
2355
|
[name: string]: unknown;
|
|
1641
2356
|
};
|
|
@@ -1661,6 +2376,15 @@ export interface operations {
|
|
|
1661
2376
|
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1662
2377
|
};
|
|
1663
2378
|
};
|
|
2379
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
2380
|
+
403: {
|
|
2381
|
+
headers: {
|
|
2382
|
+
[name: string]: unknown;
|
|
2383
|
+
};
|
|
2384
|
+
content: {
|
|
2385
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
2386
|
+
};
|
|
2387
|
+
};
|
|
1664
2388
|
};
|
|
1665
2389
|
};
|
|
1666
2390
|
SignUpsController_findOne: {
|
|
@@ -1702,7 +2426,7 @@ export interface operations {
|
|
|
1702
2426
|
};
|
|
1703
2427
|
};
|
|
1704
2428
|
};
|
|
1705
|
-
|
|
2429
|
+
SignUpsController_createUser: {
|
|
1706
2430
|
parameters: {
|
|
1707
2431
|
query?: never;
|
|
1708
2432
|
header?: never;
|
|
@@ -1713,7 +2437,7 @@ export interface operations {
|
|
|
1713
2437
|
};
|
|
1714
2438
|
requestBody: {
|
|
1715
2439
|
content: {
|
|
1716
|
-
"application/json": components["schemas"]["
|
|
2440
|
+
"application/json": components["schemas"]["CreateSignUpUserDto"];
|
|
1717
2441
|
};
|
|
1718
2442
|
};
|
|
1719
2443
|
responses: {
|
|
@@ -1734,56 +2458,13 @@ export interface operations {
|
|
|
1734
2458
|
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1735
2459
|
};
|
|
1736
2460
|
};
|
|
1737
|
-
/** @description When
|
|
1738
|
-
|
|
1739
|
-
headers: {
|
|
1740
|
-
[name: string]: unknown;
|
|
1741
|
-
};
|
|
1742
|
-
content: {
|
|
1743
|
-
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1744
|
-
};
|
|
1745
|
-
};
|
|
1746
|
-
/** @description When the sign up token already has an auth0Id */
|
|
1747
|
-
409: {
|
|
1748
|
-
headers: {
|
|
1749
|
-
[name: string]: unknown;
|
|
1750
|
-
};
|
|
1751
|
-
content: {
|
|
1752
|
-
"application/json": components["schemas"]["ConflictErrorDto"];
|
|
1753
|
-
};
|
|
1754
|
-
};
|
|
1755
|
-
};
|
|
1756
|
-
};
|
|
1757
|
-
SignUpsController_createUser: {
|
|
1758
|
-
parameters: {
|
|
1759
|
-
query?: never;
|
|
1760
|
-
header?: never;
|
|
1761
|
-
path: {
|
|
1762
|
-
token: string;
|
|
1763
|
-
};
|
|
1764
|
-
cookie?: never;
|
|
1765
|
-
};
|
|
1766
|
-
requestBody: {
|
|
1767
|
-
content: {
|
|
1768
|
-
"application/json": components["schemas"]["CreateSignUpUserDto"];
|
|
1769
|
-
};
|
|
1770
|
-
};
|
|
1771
|
-
responses: {
|
|
1772
|
-
200: {
|
|
1773
|
-
headers: {
|
|
1774
|
-
[name: string]: unknown;
|
|
1775
|
-
};
|
|
1776
|
-
content: {
|
|
1777
|
-
"application/json": components["schemas"]["SignUpDto"];
|
|
1778
|
-
};
|
|
1779
|
-
};
|
|
1780
|
-
/** @description When the sign up token or body is invalid */
|
|
1781
|
-
400: {
|
|
2461
|
+
/** @description When authentication fails */
|
|
2462
|
+
401: {
|
|
1782
2463
|
headers: {
|
|
1783
2464
|
[name: string]: unknown;
|
|
1784
2465
|
};
|
|
1785
2466
|
content: {
|
|
1786
|
-
"application/json": components["schemas"]["
|
|
2467
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1787
2468
|
};
|
|
1788
2469
|
};
|
|
1789
2470
|
/** @description When the sign up is not found */
|
|
@@ -1824,7 +2505,7 @@ export interface operations {
|
|
|
1824
2505
|
};
|
|
1825
2506
|
content?: never;
|
|
1826
2507
|
};
|
|
1827
|
-
/** @description When the
|
|
2508
|
+
/** @description When the request is invalid */
|
|
1828
2509
|
400: {
|
|
1829
2510
|
headers: {
|
|
1830
2511
|
[name: string]: unknown;
|