@nocobase/plugin-auth 0.12.0-alpha.5 → 0.13.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,702 @@
1
+ declare const _default: {
2
+ info: {
3
+ title: string;
4
+ };
5
+ paths: {
6
+ '/auth:check': {
7
+ get: {
8
+ description: string;
9
+ tags: string[];
10
+ parameters: {
11
+ name: string;
12
+ description: string;
13
+ in: string;
14
+ schema: {
15
+ type: string;
16
+ default: string;
17
+ };
18
+ }[];
19
+ security: any[];
20
+ responses: {
21
+ 200: {
22
+ description: string;
23
+ content: {
24
+ 'application/json': {
25
+ schema: {
26
+ allOf: ({
27
+ $ref: string;
28
+ type?: undefined;
29
+ properties?: undefined;
30
+ } | {
31
+ type: string;
32
+ properties: {
33
+ roles: {
34
+ $ref: string;
35
+ };
36
+ };
37
+ $ref?: undefined;
38
+ })[];
39
+ };
40
+ };
41
+ };
42
+ };
43
+ };
44
+ };
45
+ };
46
+ '/auth:signIn': {
47
+ post: {
48
+ description: string;
49
+ tags: string[];
50
+ security: any[];
51
+ parameters: {
52
+ name: string;
53
+ description: string;
54
+ in: string;
55
+ schema: {
56
+ type: string;
57
+ default: string;
58
+ };
59
+ }[];
60
+ requestBody: {
61
+ content: {
62
+ 'application/json': {
63
+ schema: {
64
+ type: string;
65
+ properties: {
66
+ email: {
67
+ type: string;
68
+ description: string;
69
+ };
70
+ password: {
71
+ type: string;
72
+ description: string;
73
+ };
74
+ };
75
+ };
76
+ };
77
+ };
78
+ };
79
+ responses: {
80
+ 200: {
81
+ description: string;
82
+ content: {
83
+ 'application/json': {
84
+ schema: {
85
+ type: string;
86
+ properties: {
87
+ token: {
88
+ type: string;
89
+ };
90
+ user: {
91
+ $ref: string;
92
+ };
93
+ };
94
+ };
95
+ };
96
+ };
97
+ };
98
+ 401: {
99
+ description: string;
100
+ content: {
101
+ 'application/json': {
102
+ schema: {
103
+ $ref: string;
104
+ };
105
+ };
106
+ };
107
+ };
108
+ };
109
+ };
110
+ };
111
+ '/auth:signUp': {
112
+ post: {
113
+ description: string;
114
+ tags: string[];
115
+ security: any[];
116
+ requestBody: {
117
+ content: {
118
+ 'application/json': {
119
+ schema: {
120
+ type: string;
121
+ properties: {
122
+ email: {
123
+ type: string;
124
+ description: string;
125
+ };
126
+ password: {
127
+ type: string;
128
+ description: string;
129
+ };
130
+ confirm_password: {
131
+ type: string;
132
+ description: string;
133
+ };
134
+ };
135
+ };
136
+ };
137
+ };
138
+ };
139
+ responses: {
140
+ 200: {
141
+ description: string;
142
+ };
143
+ };
144
+ };
145
+ };
146
+ '/auth:signOut': {
147
+ post: {
148
+ description: string;
149
+ tags: string[];
150
+ security: any[];
151
+ responses: {
152
+ 200: {
153
+ description: string;
154
+ };
155
+ };
156
+ };
157
+ };
158
+ '/auth:lostPassword': {
159
+ post: {
160
+ description: string;
161
+ tags: string[];
162
+ security: any[];
163
+ requestBody: {
164
+ content: {
165
+ 'application/json': {
166
+ schema: {
167
+ type: string;
168
+ properties: {
169
+ email: {
170
+ type: string;
171
+ description: string;
172
+ };
173
+ };
174
+ };
175
+ };
176
+ };
177
+ };
178
+ responses: {
179
+ 200: {
180
+ description: string;
181
+ content: {
182
+ 'application/json': {
183
+ schema: {
184
+ allOf: ({
185
+ $ref: string;
186
+ type?: undefined;
187
+ properties?: undefined;
188
+ } | {
189
+ type: string;
190
+ properties: {
191
+ resetToken: {
192
+ type: string;
193
+ description: string;
194
+ };
195
+ };
196
+ $ref?: undefined;
197
+ })[];
198
+ };
199
+ };
200
+ };
201
+ };
202
+ 400: {
203
+ description: string;
204
+ content: {
205
+ 'application/json': {
206
+ schema: {
207
+ $ref: string;
208
+ };
209
+ };
210
+ };
211
+ };
212
+ 401: {
213
+ description: string;
214
+ content: {
215
+ 'application/json': {
216
+ schema: {
217
+ $ref: string;
218
+ };
219
+ };
220
+ };
221
+ };
222
+ };
223
+ };
224
+ };
225
+ '/auth:resetPassword': {
226
+ post: {
227
+ description: string;
228
+ tags: string[];
229
+ security: any[];
230
+ requestBody: {
231
+ content: {
232
+ 'application/json': {
233
+ schema: {
234
+ type: string;
235
+ properties: {
236
+ email: {
237
+ type: string;
238
+ description: string;
239
+ };
240
+ password: {
241
+ type: string;
242
+ description: string;
243
+ };
244
+ resetToken: {
245
+ type: string;
246
+ description: string;
247
+ };
248
+ };
249
+ };
250
+ };
251
+ };
252
+ };
253
+ responses: {
254
+ 200: {
255
+ description: string;
256
+ content: {
257
+ 'application/json': {
258
+ schema: {
259
+ $ref: string;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ 404: {
265
+ description: string;
266
+ content: {
267
+ 'application/json': {
268
+ schema: {
269
+ $ref: string;
270
+ };
271
+ };
272
+ };
273
+ };
274
+ };
275
+ };
276
+ };
277
+ '/auth:getUserByResetToken': {
278
+ get: {
279
+ description: string;
280
+ tags: string[];
281
+ security: any[];
282
+ parameters: {
283
+ name: string;
284
+ in: string;
285
+ description: string;
286
+ required: boolean;
287
+ schema: {
288
+ type: string;
289
+ };
290
+ }[];
291
+ responses: {
292
+ 200: {
293
+ description: string;
294
+ content: {
295
+ 'application/json': {
296
+ schema: {
297
+ $ref: string;
298
+ };
299
+ };
300
+ };
301
+ };
302
+ 401: {
303
+ description: string;
304
+ content: {
305
+ 'application/json': {
306
+ schema: {
307
+ $ref: string;
308
+ };
309
+ };
310
+ };
311
+ };
312
+ };
313
+ };
314
+ };
315
+ 'authenticators:listTypes': {
316
+ get: {
317
+ description: string;
318
+ tags: string[];
319
+ responses: {
320
+ 200: {
321
+ description: string;
322
+ content: {
323
+ 'application/json': {
324
+ schema: {
325
+ type: string;
326
+ items: {
327
+ type: string;
328
+ };
329
+ };
330
+ };
331
+ };
332
+ };
333
+ };
334
+ };
335
+ };
336
+ 'authenticators:publicList': {
337
+ get: {
338
+ description: string;
339
+ tags: string[];
340
+ security: any[];
341
+ responses: {
342
+ 200: {
343
+ description: string;
344
+ content: {
345
+ 'application/json': {
346
+ schema: {
347
+ type: string;
348
+ items: {
349
+ type: string;
350
+ properties: {
351
+ name: {
352
+ type: string;
353
+ description: string;
354
+ };
355
+ title: {
356
+ type: string;
357
+ description: string;
358
+ };
359
+ authType: {
360
+ type: string;
361
+ description: string;
362
+ };
363
+ options: {
364
+ type: string;
365
+ description: string;
366
+ };
367
+ };
368
+ };
369
+ };
370
+ };
371
+ };
372
+ };
373
+ };
374
+ };
375
+ };
376
+ 'authenticators:create': {
377
+ post: {
378
+ description: string;
379
+ tags: string[];
380
+ requestBody: {
381
+ content: {
382
+ 'application/json': {
383
+ schema: {
384
+ type: string;
385
+ properties: {
386
+ name: {
387
+ type: string;
388
+ description: string;
389
+ };
390
+ authType: {
391
+ type: string;
392
+ description: string;
393
+ };
394
+ options: {
395
+ type: string;
396
+ description: string;
397
+ };
398
+ };
399
+ };
400
+ };
401
+ };
402
+ };
403
+ responses: {
404
+ 200: {
405
+ description: string;
406
+ content: {
407
+ 'application/json': {
408
+ schema: {
409
+ $ref: string;
410
+ };
411
+ };
412
+ };
413
+ };
414
+ };
415
+ };
416
+ };
417
+ 'authenticators:list': {
418
+ get: {
419
+ description: string;
420
+ tags: string[];
421
+ responses: {
422
+ 200: {
423
+ description: string;
424
+ content: {
425
+ 'application/json': {
426
+ schema: {
427
+ type: string;
428
+ items: {
429
+ $ref: string;
430
+ };
431
+ };
432
+ };
433
+ };
434
+ };
435
+ };
436
+ };
437
+ };
438
+ 'authenticators:get': {
439
+ get: {
440
+ description: string;
441
+ tags: string[];
442
+ parameters: {
443
+ name: string;
444
+ in: string;
445
+ description: string;
446
+ required: boolean;
447
+ schema: {
448
+ type: string;
449
+ };
450
+ }[];
451
+ responses: {
452
+ 200: {
453
+ description: string;
454
+ content: {
455
+ 'application/json': {
456
+ schema: {
457
+ $ref: string;
458
+ };
459
+ };
460
+ };
461
+ };
462
+ };
463
+ };
464
+ };
465
+ 'authenticators:update': {
466
+ post: {
467
+ description: string;
468
+ tags: string[];
469
+ parameters: {
470
+ name: string;
471
+ in: string;
472
+ description: string;
473
+ required: boolean;
474
+ schema: {
475
+ type: string;
476
+ };
477
+ }[];
478
+ requestBody: {
479
+ content: {
480
+ 'application/json': {
481
+ schema: {
482
+ $ref: string;
483
+ };
484
+ };
485
+ };
486
+ };
487
+ responses: {
488
+ 200: {
489
+ description: string;
490
+ content: {
491
+ 'application/json': {
492
+ schema: {
493
+ $ref: string;
494
+ };
495
+ };
496
+ };
497
+ };
498
+ };
499
+ };
500
+ };
501
+ 'authenticators:destroy': {
502
+ post: {
503
+ description: string;
504
+ tags: string[];
505
+ parameters: {
506
+ name: string;
507
+ in: string;
508
+ description: string;
509
+ required: boolean;
510
+ schema: {
511
+ type: string;
512
+ };
513
+ }[];
514
+ responses: {
515
+ 200: {
516
+ description: string;
517
+ };
518
+ };
519
+ };
520
+ };
521
+ };
522
+ components: {
523
+ schemas: {
524
+ user: {
525
+ type: string;
526
+ description: string;
527
+ properties: {
528
+ id: {
529
+ type: string;
530
+ description: string;
531
+ };
532
+ nickname: {
533
+ type: string;
534
+ description: string;
535
+ };
536
+ email: {
537
+ type: string;
538
+ description: string;
539
+ };
540
+ phone: {
541
+ type: string;
542
+ description: string;
543
+ };
544
+ appLang: {
545
+ type: string;
546
+ description: string;
547
+ };
548
+ systemSettings: {
549
+ type: string;
550
+ description: string;
551
+ properties: {
552
+ theme: {
553
+ type: string;
554
+ description: string;
555
+ };
556
+ };
557
+ };
558
+ createdAt: {
559
+ type: string;
560
+ format: string;
561
+ description: string;
562
+ };
563
+ updatedAt: {
564
+ type: string;
565
+ format: string;
566
+ description: string;
567
+ };
568
+ createdById: {
569
+ type: string;
570
+ description: string;
571
+ };
572
+ updatedById: {
573
+ type: string;
574
+ description: string;
575
+ };
576
+ };
577
+ };
578
+ roles: {
579
+ type: string;
580
+ description: string;
581
+ items: {
582
+ type: string;
583
+ properties: {
584
+ title: {
585
+ type: string;
586
+ description: string;
587
+ };
588
+ name: {
589
+ type: string;
590
+ description: string;
591
+ };
592
+ description: {
593
+ type: string;
594
+ description: string;
595
+ };
596
+ hidden: {
597
+ type: string;
598
+ description: string;
599
+ };
600
+ default: {
601
+ type: string;
602
+ description: string;
603
+ };
604
+ allowConfigure: {
605
+ type: string;
606
+ description: string;
607
+ };
608
+ allowNewMenu: {
609
+ type: string;
610
+ description: string;
611
+ };
612
+ snippets: {
613
+ type: string;
614
+ items: {
615
+ type: string;
616
+ };
617
+ description: string;
618
+ };
619
+ strategy: {
620
+ type: string;
621
+ description: string;
622
+ items: {
623
+ type: string;
624
+ properties: {
625
+ actions: {
626
+ type: string;
627
+ items: {
628
+ type: string;
629
+ };
630
+ description: string;
631
+ };
632
+ };
633
+ };
634
+ };
635
+ createdAt: {
636
+ type: string;
637
+ format: string;
638
+ description: string;
639
+ };
640
+ updatedAt: {
641
+ type: string;
642
+ format: string;
643
+ description: string;
644
+ };
645
+ };
646
+ };
647
+ };
648
+ authenticator: {
649
+ type: string;
650
+ properties: {
651
+ id: {
652
+ type: string;
653
+ description: string;
654
+ };
655
+ authType: {
656
+ type: string;
657
+ description: string;
658
+ };
659
+ name: {
660
+ type: string;
661
+ description: string;
662
+ };
663
+ title: {
664
+ type: string;
665
+ description: string;
666
+ };
667
+ options: {
668
+ type: string;
669
+ description: string;
670
+ };
671
+ description: {
672
+ type: string;
673
+ description: string;
674
+ };
675
+ enabled: {
676
+ type: string;
677
+ description: string;
678
+ };
679
+ createdAt: {
680
+ type: string;
681
+ format: string;
682
+ description: string;
683
+ };
684
+ updatedAt: {
685
+ type: string;
686
+ format: string;
687
+ description: string;
688
+ };
689
+ createdById: {
690
+ type: string;
691
+ description: string;
692
+ };
693
+ updatedById: {
694
+ type: string;
695
+ description: string;
696
+ };
697
+ };
698
+ };
699
+ };
700
+ };
701
+ };
702
+ export default _default;