@nocobase/plugin-auth 1.2.13-alpha → 1.3.0-alpha.20240710084543

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 (107) hide show
  1. package/package.json +2 -2
  2. package/dist/client/AuthProvider.d.ts +0 -10
  3. package/dist/client/authenticator.d.ts +0 -21
  4. package/dist/client/basic/Options.d.ts +0 -10
  5. package/dist/client/basic/SignInForm.d.ts +0 -17
  6. package/dist/client/basic/SignUpForm.d.ts +0 -21
  7. package/dist/client/basic/index.d.ts +0 -11
  8. package/dist/client/index.d.ts +0 -35
  9. package/dist/client/index.js +0 -31
  10. package/dist/client/locale/index.d.ts +0 -10
  11. package/dist/client/pages/AuthLayout.d.ts +0 -13
  12. package/dist/client/pages/SignInPage.d.ts +0 -24
  13. package/dist/client/pages/SignUpPage.d.ts +0 -29
  14. package/dist/client/pages/index.d.ts +0 -11
  15. package/dist/client/settings/Authenticator.d.ts +0 -10
  16. package/dist/client/settings/Options.d.ts +0 -12
  17. package/dist/client/settings/authType.d.ts +0 -24
  18. package/dist/client/settings/schemas/authenticators.d.ts +0 -11
  19. package/dist/externalVersion.js +0 -27
  20. package/dist/index.d.ts +0 -9
  21. package/dist/index.js +0 -49
  22. package/dist/locale/en-US.json +0 -27
  23. package/dist/locale/ko_KR.json +0 -26
  24. package/dist/locale/zh-CN.json +0 -27
  25. package/dist/node_modules/cron/LICENSE +0 -8
  26. package/dist/node_modules/cron/lib/cron.js +0 -1
  27. package/dist/node_modules/cron/lib/job.js +0 -215
  28. package/dist/node_modules/cron/lib/time.js +0 -830
  29. package/dist/node_modules/cron/node_modules/luxon/build/amd/luxon.js +0 -7826
  30. package/dist/node_modules/cron/node_modules/luxon/build/cjs-browser/luxon.js +0 -7824
  31. package/dist/node_modules/cron/node_modules/luxon/build/es6/luxon.js +0 -7217
  32. package/dist/node_modules/cron/node_modules/luxon/build/global/luxon.js +0 -7829
  33. package/dist/node_modules/cron/node_modules/luxon/build/global/luxon.min.js +0 -1
  34. package/dist/node_modules/cron/node_modules/luxon/build/node/luxon.js +0 -6932
  35. package/dist/node_modules/cron/node_modules/luxon/package.json +0 -85
  36. package/dist/node_modules/cron/node_modules/luxon/src/datetime.js +0 -2248
  37. package/dist/node_modules/cron/node_modules/luxon/src/duration.js +0 -948
  38. package/dist/node_modules/cron/node_modules/luxon/src/errors.js +0 -61
  39. package/dist/node_modules/cron/node_modules/luxon/src/impl/conversions.js +0 -161
  40. package/dist/node_modules/cron/node_modules/luxon/src/impl/diff.js +0 -75
  41. package/dist/node_modules/cron/node_modules/luxon/src/impl/digits.js +0 -75
  42. package/dist/node_modules/cron/node_modules/luxon/src/impl/english.js +0 -233
  43. package/dist/node_modules/cron/node_modules/luxon/src/impl/formats.js +0 -176
  44. package/dist/node_modules/cron/node_modules/luxon/src/impl/formatter.js +0 -400
  45. package/dist/node_modules/cron/node_modules/luxon/src/impl/invalid.js +0 -14
  46. package/dist/node_modules/cron/node_modules/luxon/src/impl/locale.js +0 -494
  47. package/dist/node_modules/cron/node_modules/luxon/src/impl/regexParser.js +0 -335
  48. package/dist/node_modules/cron/node_modules/luxon/src/impl/tokenParser.js +0 -444
  49. package/dist/node_modules/cron/node_modules/luxon/src/impl/util.js +0 -274
  50. package/dist/node_modules/cron/node_modules/luxon/src/impl/zoneUtil.js +0 -34
  51. package/dist/node_modules/cron/node_modules/luxon/src/info.js +0 -169
  52. package/dist/node_modules/cron/node_modules/luxon/src/interval.js +0 -637
  53. package/dist/node_modules/cron/node_modules/luxon/src/luxon.js +0 -26
  54. package/dist/node_modules/cron/node_modules/luxon/src/package.json +0 -4
  55. package/dist/node_modules/cron/node_modules/luxon/src/settings.js +0 -148
  56. package/dist/node_modules/cron/node_modules/luxon/src/zone.js +0 -91
  57. package/dist/node_modules/cron/node_modules/luxon/src/zones/IANAZone.js +0 -189
  58. package/dist/node_modules/cron/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -102
  59. package/dist/node_modules/cron/node_modules/luxon/src/zones/invalidZone.js +0 -53
  60. package/dist/node_modules/cron/node_modules/luxon/src/zones/systemZone.js +0 -61
  61. package/dist/node_modules/cron/package.json +0 -1
  62. package/dist/node_modules/cron/types/index.d.ts +0 -181
  63. package/dist/node_modules/cron/types/index.test-d.ts +0 -85
  64. package/dist/preset.d.ts +0 -11
  65. package/dist/preset.js +0 -43
  66. package/dist/server/actions/auth.d.ts +0 -16
  67. package/dist/server/actions/auth.js +0 -50
  68. package/dist/server/actions/authenticators.d.ts +0 -16
  69. package/dist/server/actions/authenticators.js +0 -112
  70. package/dist/server/basic-auth.d.ts +0 -18
  71. package/dist/server/basic-auth.js +0 -192
  72. package/dist/server/collections/authenticators.d.ts +0 -13
  73. package/dist/server/collections/authenticators.js +0 -126
  74. package/dist/server/collections/token-blacklist.d.ts +0 -10
  75. package/dist/server/collections/token-blacklist.js +0 -51
  76. package/dist/server/collections/users-authenticators.d.ts +0 -14
  77. package/dist/server/collections/users-authenticators.js +0 -94
  78. package/dist/server/index.d.ts +0 -11
  79. package/dist/server/index.js +0 -51
  80. package/dist/server/locale/en-US.d.ts +0 -17
  81. package/dist/server/locale/en-US.js +0 -39
  82. package/dist/server/locale/fr-FR.d.ts +0 -17
  83. package/dist/server/locale/fr-FR.js +0 -39
  84. package/dist/server/locale/index.d.ts +0 -11
  85. package/dist/server/locale/index.js +0 -52
  86. package/dist/server/locale/ja-JP.d.ts +0 -13
  87. package/dist/server/locale/ja-JP.js +0 -35
  88. package/dist/server/locale/pt-BR.d.ts +0 -17
  89. package/dist/server/locale/pt-BR.js +0 -39
  90. package/dist/server/locale/zh-CN.d.ts +0 -19
  91. package/dist/server/locale/zh-CN.js +0 -41
  92. package/dist/server/migrations/20230506152253-basic-authenticator.d.ts +0 -14
  93. package/dist/server/migrations/20230506152253-basic-authenticator.js +0 -53
  94. package/dist/server/migrations/20230607174500-update-basic.d.ts +0 -14
  95. package/dist/server/migrations/20230607174500-update-basic.js +0 -56
  96. package/dist/server/migrations/20231218132032-fix-allow-signup.d.ts +0 -14
  97. package/dist/server/migrations/20231218132032-fix-allow-signup.js +0 -64
  98. package/dist/server/model/authenticator.d.ts +0 -17
  99. package/dist/server/model/authenticator.js +0 -78
  100. package/dist/server/plugin.d.ts +0 -19
  101. package/dist/server/plugin.js +0 -138
  102. package/dist/server/storer.d.ts +0 -24
  103. package/dist/server/storer.js +0 -78
  104. package/dist/server/token-blacklist.d.ts +0 -25
  105. package/dist/server/token-blacklist.js +0 -95
  106. package/dist/swagger/index.d.ts +0 -762
  107. package/dist/swagger/index.js +0 -796
@@ -1,762 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
- declare const _default: {
10
- info: {
11
- title: string;
12
- };
13
- paths: {
14
- '/auth:check': {
15
- get: {
16
- description: string;
17
- tags: string[];
18
- parameters: {
19
- name: string;
20
- description: string;
21
- in: string;
22
- schema: {
23
- type: string;
24
- default: string;
25
- };
26
- }[];
27
- security: any[];
28
- responses: {
29
- 200: {
30
- description: string;
31
- content: {
32
- 'application/json': {
33
- schema: {
34
- allOf: ({
35
- $ref: string;
36
- type?: undefined;
37
- properties?: undefined;
38
- } | {
39
- type: string;
40
- properties: {
41
- roles: {
42
- $ref: string;
43
- };
44
- };
45
- $ref?: undefined;
46
- })[];
47
- };
48
- };
49
- };
50
- };
51
- };
52
- };
53
- };
54
- '/auth:signIn': {
55
- post: {
56
- description: string;
57
- tags: string[];
58
- security: any[];
59
- parameters: {
60
- name: string;
61
- description: string;
62
- in: string;
63
- schema: {
64
- type: string;
65
- default: string;
66
- };
67
- }[];
68
- requestBody: {
69
- content: {
70
- 'application/json': {
71
- schema: {
72
- type: string;
73
- properties: {
74
- email: {
75
- type: string;
76
- description: string;
77
- };
78
- password: {
79
- type: string;
80
- description: string;
81
- };
82
- };
83
- };
84
- };
85
- };
86
- };
87
- responses: {
88
- 200: {
89
- description: string;
90
- content: {
91
- 'application/json': {
92
- schema: {
93
- type: string;
94
- properties: {
95
- token: {
96
- type: string;
97
- };
98
- user: {
99
- $ref: string;
100
- };
101
- };
102
- };
103
- };
104
- };
105
- };
106
- 401: {
107
- description: string;
108
- content: {
109
- 'application/json': {
110
- schema: {
111
- $ref: string;
112
- };
113
- };
114
- };
115
- };
116
- };
117
- };
118
- };
119
- '/auth:signUp': {
120
- post: {
121
- description: string;
122
- tags: string[];
123
- security: any[];
124
- requestBody: {
125
- content: {
126
- 'application/json': {
127
- schema: {
128
- type: string;
129
- properties: {
130
- email: {
131
- type: string;
132
- description: string;
133
- };
134
- password: {
135
- type: string;
136
- description: string;
137
- };
138
- confirm_password: {
139
- type: string;
140
- description: string;
141
- };
142
- };
143
- };
144
- };
145
- };
146
- };
147
- responses: {
148
- 200: {
149
- description: string;
150
- };
151
- };
152
- };
153
- };
154
- '/auth:signOut': {
155
- post: {
156
- description: string;
157
- tags: string[];
158
- security: any[];
159
- responses: {
160
- 200: {
161
- description: string;
162
- };
163
- };
164
- };
165
- };
166
- '/auth:lostPassword': {
167
- post: {
168
- description: string;
169
- tags: string[];
170
- security: any[];
171
- requestBody: {
172
- content: {
173
- 'application/json': {
174
- schema: {
175
- type: string;
176
- properties: {
177
- email: {
178
- type: string;
179
- description: string;
180
- };
181
- };
182
- };
183
- };
184
- };
185
- };
186
- responses: {
187
- 200: {
188
- description: string;
189
- content: {
190
- 'application/json': {
191
- schema: {
192
- allOf: ({
193
- $ref: string;
194
- type?: undefined;
195
- properties?: undefined;
196
- } | {
197
- type: string;
198
- properties: {
199
- resetToken: {
200
- type: string;
201
- description: string;
202
- };
203
- };
204
- $ref?: undefined;
205
- })[];
206
- };
207
- };
208
- };
209
- };
210
- 400: {
211
- description: string;
212
- content: {
213
- 'application/json': {
214
- schema: {
215
- $ref: string;
216
- };
217
- };
218
- };
219
- };
220
- 401: {
221
- description: string;
222
- content: {
223
- 'application/json': {
224
- schema: {
225
- $ref: string;
226
- };
227
- };
228
- };
229
- };
230
- };
231
- };
232
- };
233
- '/auth:resetPassword': {
234
- post: {
235
- description: string;
236
- tags: string[];
237
- security: any[];
238
- requestBody: {
239
- content: {
240
- 'application/json': {
241
- schema: {
242
- type: string;
243
- properties: {
244
- email: {
245
- type: string;
246
- description: string;
247
- };
248
- password: {
249
- type: string;
250
- description: string;
251
- };
252
- resetToken: {
253
- type: string;
254
- description: string;
255
- };
256
- };
257
- };
258
- };
259
- };
260
- };
261
- responses: {
262
- 200: {
263
- description: string;
264
- content: {
265
- 'application/json': {
266
- schema: {
267
- $ref: string;
268
- };
269
- };
270
- };
271
- };
272
- 404: {
273
- description: string;
274
- content: {
275
- 'application/json': {
276
- schema: {
277
- $ref: string;
278
- };
279
- };
280
- };
281
- };
282
- };
283
- };
284
- };
285
- '/auth:getUserByResetToken': {
286
- get: {
287
- description: string;
288
- tags: string[];
289
- security: any[];
290
- parameters: {
291
- name: string;
292
- in: string;
293
- description: string;
294
- required: boolean;
295
- schema: {
296
- type: string;
297
- };
298
- }[];
299
- responses: {
300
- 200: {
301
- description: string;
302
- content: {
303
- 'application/json': {
304
- schema: {
305
- $ref: string;
306
- };
307
- };
308
- };
309
- };
310
- 401: {
311
- description: string;
312
- content: {
313
- 'application/json': {
314
- schema: {
315
- $ref: string;
316
- };
317
- };
318
- };
319
- };
320
- };
321
- };
322
- };
323
- '/auth:changePassword': {
324
- post: {
325
- description: string;
326
- tags: string[];
327
- security: any[];
328
- requestBody: {
329
- content: {
330
- 'application/json': {
331
- schema: {
332
- type: string;
333
- properties: {
334
- oldPassword: {
335
- type: string;
336
- description: string;
337
- };
338
- newPassword: {
339
- type: string;
340
- description: string;
341
- };
342
- confirmPassword: {
343
- type: string;
344
- description: string;
345
- };
346
- };
347
- };
348
- };
349
- };
350
- };
351
- responses: {
352
- 200: {
353
- description: string;
354
- content: {
355
- 'application/json': {
356
- schema: {
357
- $ref: string;
358
- };
359
- };
360
- };
361
- };
362
- 401: {
363
- description: string;
364
- content: {
365
- 'application/json': {
366
- schema: {
367
- $ref: string;
368
- };
369
- };
370
- };
371
- };
372
- };
373
- };
374
- };
375
- 'authenticators:listTypes': {
376
- get: {
377
- description: string;
378
- tags: string[];
379
- responses: {
380
- 200: {
381
- description: string;
382
- content: {
383
- 'application/json': {
384
- schema: {
385
- type: string;
386
- items: {
387
- type: string;
388
- };
389
- };
390
- };
391
- };
392
- };
393
- };
394
- };
395
- };
396
- 'authenticators:publicList': {
397
- get: {
398
- description: string;
399
- tags: string[];
400
- security: any[];
401
- responses: {
402
- 200: {
403
- description: string;
404
- content: {
405
- 'application/json': {
406
- schema: {
407
- type: string;
408
- items: {
409
- type: string;
410
- properties: {
411
- name: {
412
- type: string;
413
- description: string;
414
- };
415
- title: {
416
- type: string;
417
- description: string;
418
- };
419
- authType: {
420
- type: string;
421
- description: string;
422
- };
423
- options: {
424
- type: string;
425
- description: string;
426
- };
427
- };
428
- };
429
- };
430
- };
431
- };
432
- };
433
- };
434
- };
435
- };
436
- 'authenticators:create': {
437
- post: {
438
- description: string;
439
- tags: string[];
440
- requestBody: {
441
- content: {
442
- 'application/json': {
443
- schema: {
444
- type: string;
445
- properties: {
446
- name: {
447
- type: string;
448
- description: string;
449
- };
450
- authType: {
451
- type: string;
452
- description: string;
453
- };
454
- options: {
455
- type: string;
456
- description: string;
457
- };
458
- };
459
- };
460
- };
461
- };
462
- };
463
- responses: {
464
- 200: {
465
- description: string;
466
- content: {
467
- 'application/json': {
468
- schema: {
469
- $ref: string;
470
- };
471
- };
472
- };
473
- };
474
- };
475
- };
476
- };
477
- 'authenticators:list': {
478
- get: {
479
- description: string;
480
- tags: string[];
481
- responses: {
482
- 200: {
483
- description: string;
484
- content: {
485
- 'application/json': {
486
- schema: {
487
- type: string;
488
- items: {
489
- $ref: string;
490
- };
491
- };
492
- };
493
- };
494
- };
495
- };
496
- };
497
- };
498
- 'authenticators:get': {
499
- get: {
500
- description: string;
501
- tags: string[];
502
- parameters: {
503
- name: string;
504
- in: string;
505
- description: string;
506
- required: boolean;
507
- schema: {
508
- type: string;
509
- };
510
- }[];
511
- responses: {
512
- 200: {
513
- description: string;
514
- content: {
515
- 'application/json': {
516
- schema: {
517
- $ref: string;
518
- };
519
- };
520
- };
521
- };
522
- };
523
- };
524
- };
525
- 'authenticators:update': {
526
- post: {
527
- description: string;
528
- tags: string[];
529
- parameters: {
530
- name: string;
531
- in: string;
532
- description: string;
533
- required: boolean;
534
- schema: {
535
- type: string;
536
- };
537
- }[];
538
- requestBody: {
539
- content: {
540
- 'application/json': {
541
- schema: {
542
- $ref: string;
543
- };
544
- };
545
- };
546
- };
547
- responses: {
548
- 200: {
549
- description: string;
550
- content: {
551
- 'application/json': {
552
- schema: {
553
- $ref: string;
554
- };
555
- };
556
- };
557
- };
558
- };
559
- };
560
- };
561
- 'authenticators:destroy': {
562
- post: {
563
- description: string;
564
- tags: string[];
565
- parameters: {
566
- name: string;
567
- in: string;
568
- description: string;
569
- required: boolean;
570
- schema: {
571
- type: string;
572
- };
573
- }[];
574
- responses: {
575
- 200: {
576
- description: string;
577
- };
578
- };
579
- };
580
- };
581
- };
582
- components: {
583
- schemas: {
584
- user: {
585
- type: string;
586
- description: string;
587
- properties: {
588
- id: {
589
- type: string;
590
- description: string;
591
- };
592
- nickname: {
593
- type: string;
594
- description: string;
595
- };
596
- email: {
597
- type: string;
598
- description: string;
599
- };
600
- phone: {
601
- type: string;
602
- description: string;
603
- };
604
- appLang: {
605
- type: string;
606
- description: string;
607
- };
608
- systemSettings: {
609
- type: string;
610
- description: string;
611
- properties: {
612
- theme: {
613
- type: string;
614
- description: string;
615
- };
616
- };
617
- };
618
- createdAt: {
619
- type: string;
620
- format: string;
621
- description: string;
622
- };
623
- updatedAt: {
624
- type: string;
625
- format: string;
626
- description: string;
627
- };
628
- createdById: {
629
- type: string;
630
- description: string;
631
- };
632
- updatedById: {
633
- type: string;
634
- description: string;
635
- };
636
- };
637
- };
638
- roles: {
639
- type: string;
640
- description: string;
641
- items: {
642
- type: string;
643
- properties: {
644
- title: {
645
- type: string;
646
- description: string;
647
- };
648
- name: {
649
- type: string;
650
- description: string;
651
- };
652
- description: {
653
- type: string;
654
- description: string;
655
- };
656
- hidden: {
657
- type: string;
658
- description: string;
659
- };
660
- default: {
661
- type: string;
662
- description: string;
663
- };
664
- allowConfigure: {
665
- type: string;
666
- description: string;
667
- };
668
- allowNewMenu: {
669
- type: string;
670
- description: string;
671
- };
672
- snippets: {
673
- type: string;
674
- items: {
675
- type: string;
676
- };
677
- description: string;
678
- };
679
- strategy: {
680
- type: string;
681
- description: string;
682
- items: {
683
- type: string;
684
- properties: {
685
- actions: {
686
- type: string;
687
- items: {
688
- type: string;
689
- };
690
- description: string;
691
- };
692
- };
693
- };
694
- };
695
- createdAt: {
696
- type: string;
697
- format: string;
698
- description: string;
699
- };
700
- updatedAt: {
701
- type: string;
702
- format: string;
703
- description: string;
704
- };
705
- };
706
- };
707
- };
708
- authenticator: {
709
- type: string;
710
- properties: {
711
- id: {
712
- type: string;
713
- description: string;
714
- };
715
- authType: {
716
- type: string;
717
- description: string;
718
- };
719
- name: {
720
- type: string;
721
- description: string;
722
- };
723
- title: {
724
- type: string;
725
- description: string;
726
- };
727
- options: {
728
- type: string;
729
- description: string;
730
- };
731
- description: {
732
- type: string;
733
- description: string;
734
- };
735
- enabled: {
736
- type: string;
737
- description: string;
738
- };
739
- createdAt: {
740
- type: string;
741
- format: string;
742
- description: string;
743
- };
744
- updatedAt: {
745
- type: string;
746
- format: string;
747
- description: string;
748
- };
749
- createdById: {
750
- type: string;
751
- description: string;
752
- };
753
- updatedById: {
754
- type: string;
755
- description: string;
756
- };
757
- };
758
- };
759
- };
760
- };
761
- };
762
- export default _default;