@nocobase/plugin-acl 2.0.22 → 2.1.0-alpha.10

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.
@@ -10,13 +10,13 @@ declare const _default: {
10
10
  openapi: string;
11
11
  info: {
12
12
  title: string;
13
+ version: string;
13
14
  };
14
15
  paths: {
15
16
  '/roles:list': {
16
17
  get: {
17
18
  tags: string[];
18
- description: string;
19
- parameters: any[];
19
+ summary: string;
20
20
  responses: {
21
21
  200: {
22
22
  description: string;
@@ -37,15 +37,9 @@ declare const _default: {
37
37
  '/roles:get': {
38
38
  get: {
39
39
  tags: string[];
40
- description: string;
40
+ summary: string;
41
41
  parameters: {
42
- name: string;
43
- in: string;
44
- description: string;
45
- required: boolean;
46
- schema: {
47
- type: string;
48
- };
42
+ $ref: string;
49
43
  }[];
50
44
  responses: {
51
45
  200: {
@@ -64,8 +58,10 @@ declare const _default: {
64
58
  '/roles:create': {
65
59
  post: {
66
60
  tags: string[];
61
+ summary: string;
67
62
  description: string;
68
63
  requestBody: {
64
+ required: boolean;
69
65
  content: {
70
66
  'application/json': {
71
67
  schema: {
@@ -75,7 +71,7 @@ declare const _default: {
75
71
  };
76
72
  };
77
73
  responses: {
78
- '200': {
74
+ 200: {
79
75
  description: string;
80
76
  content: {
81
77
  'application/json': {
@@ -91,17 +87,13 @@ declare const _default: {
91
87
  '/roles:update': {
92
88
  post: {
93
89
  tags: string[];
90
+ summary: string;
94
91
  description: string;
95
92
  parameters: {
96
- name: string;
97
- in: string;
98
- description: string;
99
- required: boolean;
100
- schema: {
101
- type: string;
102
- };
93
+ $ref: string;
103
94
  }[];
104
95
  requestBody: {
96
+ required: boolean;
105
97
  content: {
106
98
  'application/json': {
107
99
  schema: {
@@ -127,18 +119,12 @@ declare const _default: {
127
119
  '/roles:destroy': {
128
120
  post: {
129
121
  tags: string[];
130
- description: string;
122
+ summary: string;
131
123
  parameters: {
132
- name: string;
133
- in: string;
134
- description: string;
135
- required: boolean;
136
- schema: {
137
- type: string;
138
- };
124
+ $ref: string;
139
125
  }[];
140
126
  responses: {
141
- '200': {
127
+ 200: {
142
128
  description: string;
143
129
  };
144
130
  };
@@ -147,6 +133,7 @@ declare const _default: {
147
133
  '/roles:check': {
148
134
  get: {
149
135
  tags: string[];
136
+ summary: string;
150
137
  description: string;
151
138
  responses: {
152
139
  200: {
@@ -165,8 +152,9 @@ declare const _default: {
165
152
  '/roles:setDefaultRole': {
166
153
  post: {
167
154
  tags: string[];
168
- description: string;
155
+ summary: string;
169
156
  requestBody: {
157
+ required: boolean;
170
158
  content: {
171
159
  'application/json': {
172
160
  schema: {
@@ -176,71 +164,86 @@ declare const _default: {
176
164
  type: string;
177
165
  };
178
166
  };
167
+ required: string[];
179
168
  };
180
169
  };
181
170
  };
182
171
  };
183
172
  responses: {
184
- '200': {
173
+ 200: {
185
174
  description: string;
186
175
  };
187
176
  };
188
177
  };
189
178
  };
190
- '/roles/{roleName}/collections:list': {
191
- get: {
179
+ '/roles:setSystemRoleMode': {
180
+ post: {
181
+ tags: string[];
182
+ summary: string;
183
+ description: string;
184
+ requestBody: {
185
+ required: boolean;
186
+ content: {
187
+ 'application/json': {
188
+ schema: {
189
+ $ref: string;
190
+ };
191
+ };
192
+ };
193
+ };
194
+ responses: {
195
+ 200: {
196
+ description: string;
197
+ };
198
+ };
199
+ };
200
+ };
201
+ '/dataSources/{dataSourceKey}/roles:update': {
202
+ post: {
192
203
  tags: string[];
204
+ summary: string;
193
205
  description: string;
194
206
  parameters: {
195
- name: string;
196
- in: string;
197
- description: string;
207
+ $ref: string;
208
+ }[];
209
+ requestBody: {
198
210
  required: boolean;
199
- schema: {
200
- type: string;
211
+ content: {
212
+ 'application/json': {
213
+ schema: {
214
+ $ref: string;
215
+ };
216
+ };
217
+ };
218
+ };
219
+ responses: {
220
+ 200: {
221
+ description: string;
222
+ content: {
223
+ 'application/json': {
224
+ schema: {
225
+ $ref: string;
226
+ };
227
+ };
228
+ };
201
229
  };
230
+ };
231
+ };
232
+ };
233
+ '/dataSources/{dataSourceKey}/roles:get': {
234
+ get: {
235
+ tags: string[];
236
+ summary: string;
237
+ parameters: {
238
+ $ref: string;
202
239
  }[];
203
240
  responses: {
204
- '200': {
241
+ 200: {
205
242
  description: string;
206
243
  content: {
207
244
  'application/json': {
208
245
  schema: {
209
- type: string;
210
- items: {
211
- type: string;
212
- properties: {
213
- type: {
214
- type: string;
215
- description: string;
216
- };
217
- name: {
218
- type: string;
219
- description: string;
220
- };
221
- collectionName: {
222
- type: string;
223
- description: string;
224
- };
225
- title: {
226
- type: string;
227
- description: string;
228
- };
229
- roleName: {
230
- type: string;
231
- description: string;
232
- };
233
- usingConfig: {
234
- type: string;
235
- enum: string[];
236
- description: string;
237
- };
238
- exists: {
239
- type: string;
240
- description: string;
241
- };
242
- };
243
- };
246
+ $ref: string;
244
247
  };
245
248
  };
246
249
  };
@@ -248,49 +251,40 @@ declare const _default: {
248
251
  };
249
252
  };
250
253
  };
251
- '/availableActions:list': {
254
+ '/roles/{roleName}/dataSourcesCollections:list': {
252
255
  get: {
253
256
  tags: string[];
257
+ summary: string;
254
258
  description: string;
255
- parameters: any[];
259
+ parameters: {
260
+ $ref: string;
261
+ }[];
256
262
  responses: {
257
- '200': {
263
+ 200: {
258
264
  description: string;
259
265
  content: {
260
266
  'application/json': {
261
267
  schema: {
262
268
  type: string;
263
- items: {
264
- type: string;
265
- properties: {
266
- name: {
267
- type: string;
268
- description: string;
269
- };
270
- displayName: {
271
- type: string;
272
- description: string;
273
- };
274
- allowConfigureFields: {
275
- type: string;
276
- description: string;
277
- };
278
- onNewRecord: {
279
- type: string;
280
- description: string;
281
- };
282
- type: {
283
- type: string;
284
- description: string;
285
- };
286
- aliases: {
287
- type: string;
288
- items: {
289
- type: string;
290
- };
291
- description: string;
269
+ properties: {
270
+ count: {
271
+ type: string;
272
+ };
273
+ rows: {
274
+ type: string;
275
+ items: {
276
+ $ref: string;
292
277
  };
293
278
  };
279
+ page: {
280
+ type: string;
281
+ };
282
+ pageSize: {
283
+ type: string;
284
+ };
285
+ totalPage: {
286
+ type: string;
287
+ };
294
288
  };
295
289
  };
296
290
  };
@@ -299,74 +293,726 @@ declare const _default: {
299
293
  };
300
294
  };
301
295
  };
302
- };
303
- components: {
304
- schemas: {
305
- role: {
306
- type: string;
307
- properties: {
308
- title: {
309
- type: string;
310
- description: string;
296
+ '/roles/{roleName}/dataSourceResources:create': {
297
+ post: {
298
+ tags: string[];
299
+ summary: string;
300
+ description: string;
301
+ parameters: {
302
+ $ref: string;
303
+ }[];
304
+ requestBody: {
305
+ required: boolean;
306
+ content: {
307
+ 'application/json': {
308
+ schema: {
309
+ $ref: string;
310
+ };
311
+ };
311
312
  };
312
- name: {
313
- type: string;
313
+ };
314
+ responses: {
315
+ 200: {
314
316
  description: string;
317
+ content: {
318
+ 'application/json': {
319
+ schema: {
320
+ $ref: string;
321
+ };
322
+ };
323
+ };
315
324
  };
316
- description: {
317
- type: string;
325
+ };
326
+ };
327
+ };
328
+ '/roles/{roleName}/dataSourceResources:get': {
329
+ get: {
330
+ tags: string[];
331
+ summary: string;
332
+ description: string;
333
+ parameters: {
334
+ $ref: string;
335
+ }[];
336
+ responses: {
337
+ 200: {
318
338
  description: string;
339
+ content: {
340
+ 'application/json': {
341
+ schema: {
342
+ $ref: string;
343
+ };
344
+ };
345
+ };
319
346
  };
320
- hidden: {
321
- type: string;
322
- description: string;
347
+ };
348
+ };
349
+ };
350
+ '/roles/{roleName}/dataSourceResources:update': {
351
+ post: {
352
+ tags: string[];
353
+ summary: string;
354
+ description: string;
355
+ parameters: {
356
+ $ref: string;
357
+ }[];
358
+ requestBody: {
359
+ required: boolean;
360
+ content: {
361
+ 'application/json': {
362
+ schema: {
363
+ $ref: string;
364
+ };
365
+ };
323
366
  };
324
- default: {
325
- type: string;
367
+ };
368
+ responses: {
369
+ 200: {
326
370
  description: string;
371
+ content: {
372
+ 'application/json': {
373
+ schema: {
374
+ $ref: string;
375
+ };
376
+ };
377
+ };
327
378
  };
328
- allowConfigure: {
329
- type: string;
379
+ };
380
+ };
381
+ };
382
+ '/rolesResourcesScopes:list': {
383
+ get: {
384
+ tags: string[];
385
+ summary: string;
386
+ parameters: {
387
+ $ref: string;
388
+ }[];
389
+ responses: {
390
+ 200: {
330
391
  description: string;
392
+ content: {
393
+ 'application/json': {
394
+ schema: {
395
+ type: string;
396
+ items: {
397
+ $ref: string;
398
+ };
399
+ };
400
+ };
401
+ };
331
402
  };
332
- allowNewMenu: {
333
- type: string;
403
+ };
404
+ };
405
+ };
406
+ '/rolesResourcesScopes:get': {
407
+ get: {
408
+ tags: string[];
409
+ summary: string;
410
+ parameters: {
411
+ $ref: string;
412
+ }[];
413
+ responses: {
414
+ 200: {
334
415
  description: string;
335
- };
336
- snippets: {
337
- type: string;
338
- items: {
339
- type: string;
416
+ content: {
417
+ 'application/json': {
418
+ schema: {
419
+ $ref: string;
420
+ };
421
+ };
340
422
  };
341
- description: string;
342
423
  };
343
- strategy: {
344
- type: string;
424
+ };
425
+ };
426
+ };
427
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:list': {
428
+ get: {
429
+ tags: string[];
430
+ summary: string;
431
+ parameters: {
432
+ $ref: string;
433
+ }[];
434
+ responses: {
435
+ 200: {
345
436
  description: string;
346
- items: {
347
- type: string;
348
- properties: {
349
- actions: {
437
+ content: {
438
+ 'application/json': {
439
+ schema: {
350
440
  type: string;
351
- items: {
352
- type: string;
441
+ properties: {
442
+ data: {
443
+ type: string;
444
+ items: {
445
+ $ref: string;
446
+ };
447
+ };
448
+ meta: {
449
+ type: string;
450
+ additionalProperties: boolean;
451
+ };
353
452
  };
354
- description: string;
355
453
  };
356
454
  };
357
455
  };
358
456
  };
359
- createdAt: {
360
- type: string;
361
- format: string;
362
- description: string;
363
- };
364
- updatedAt: {
365
- type: string;
366
- format: string;
457
+ };
458
+ };
459
+ };
460
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:get': {
461
+ get: {
462
+ tags: string[];
463
+ summary: string;
464
+ parameters: {
465
+ $ref: string;
466
+ }[];
467
+ responses: {
468
+ 200: {
469
+ description: string;
470
+ content: {
471
+ 'application/json': {
472
+ schema: {
473
+ $ref: string;
474
+ };
475
+ };
476
+ };
477
+ };
478
+ };
479
+ };
480
+ };
481
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:create': {
482
+ post: {
483
+ tags: string[];
484
+ summary: string;
485
+ description: string;
486
+ parameters: {
487
+ $ref: string;
488
+ }[];
489
+ requestBody: {
490
+ required: boolean;
491
+ content: {
492
+ 'application/json': {
493
+ schema: {
494
+ $ref: string;
495
+ };
496
+ };
497
+ };
498
+ };
499
+ responses: {
500
+ 200: {
501
+ description: string;
502
+ content: {
503
+ 'application/json': {
504
+ schema: {
505
+ $ref: string;
506
+ };
507
+ };
508
+ };
509
+ };
510
+ };
511
+ };
512
+ };
513
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:update': {
514
+ post: {
515
+ tags: string[];
516
+ summary: string;
517
+ parameters: {
518
+ $ref: string;
519
+ }[];
520
+ requestBody: {
521
+ required: boolean;
522
+ content: {
523
+ 'application/json': {
524
+ schema: {
525
+ $ref: string;
526
+ };
527
+ };
528
+ };
529
+ };
530
+ responses: {
531
+ 200: {
532
+ description: string;
533
+ content: {
534
+ 'application/json': {
535
+ schema: {
536
+ $ref: string;
537
+ };
538
+ };
539
+ };
540
+ };
541
+ };
542
+ };
543
+ };
544
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:destroy': {
545
+ post: {
546
+ tags: string[];
547
+ summary: string;
548
+ parameters: {
549
+ $ref: string;
550
+ }[];
551
+ responses: {
552
+ 200: {
553
+ description: string;
554
+ };
555
+ };
556
+ };
557
+ };
558
+ '/availableActions:list': {
559
+ get: {
560
+ tags: string[];
561
+ summary: string;
562
+ description: string;
563
+ responses: {
564
+ 200: {
565
+ description: string;
566
+ content: {
567
+ 'application/json': {
568
+ schema: {
569
+ type: string;
570
+ items: {
571
+ $ref: string;
572
+ };
573
+ };
574
+ };
575
+ };
576
+ };
577
+ };
578
+ };
579
+ };
580
+ };
581
+ components: {
582
+ parameters: {
583
+ RoleNameQuery: {
584
+ name: string;
585
+ in: string;
586
+ description: string;
587
+ required: boolean;
588
+ schema: {
589
+ type: string;
590
+ };
591
+ };
592
+ RoleNamePath: {
593
+ name: string;
594
+ in: string;
595
+ description: string;
596
+ required: boolean;
597
+ schema: {
598
+ type: string;
599
+ };
600
+ };
601
+ DataSourceKeyPath: {
602
+ name: string;
603
+ in: string;
604
+ description: string;
605
+ required: boolean;
606
+ schema: {
607
+ type: string;
608
+ };
609
+ };
610
+ ResourceNameQuery: {
611
+ name: string;
612
+ in: string;
613
+ description: string;
614
+ required: boolean;
615
+ schema: {
616
+ type: string;
617
+ };
618
+ };
619
+ ScopePkQuery: {
620
+ name: string;
621
+ in: string;
622
+ description: string;
623
+ schema: {
624
+ type: string;
625
+ };
626
+ };
627
+ ResourcePermissionTkQuery: {
628
+ name: string;
629
+ in: string;
630
+ description: string;
631
+ schema: {
632
+ type: string;
633
+ };
634
+ };
635
+ PageQuery: {
636
+ name: string;
637
+ in: string;
638
+ schema: {
639
+ type: string;
640
+ };
641
+ };
642
+ PageSizeQuery: {
643
+ name: string;
644
+ in: string;
645
+ schema: {
646
+ type: string;
647
+ };
648
+ };
649
+ FilterQuery: {
650
+ name: string;
651
+ in: string;
652
+ schema: {
653
+ type: string;
654
+ additionalProperties: boolean;
655
+ };
656
+ };
657
+ AppendsQuery: {
658
+ name: string;
659
+ in: string;
660
+ schema: {
661
+ type: string;
662
+ items: {
663
+ type: string;
664
+ };
665
+ };
666
+ };
667
+ };
668
+ schemas: {
669
+ RoleStrategy: {
670
+ type: string;
671
+ description: string;
672
+ properties: {
673
+ actions: {
674
+ type: string;
675
+ items: {
676
+ type: string;
677
+ };
678
+ description: string;
679
+ };
680
+ };
681
+ additionalProperties: boolean;
682
+ };
683
+ RoleWrite: {
684
+ type: string;
685
+ properties: {
686
+ title: {
687
+ type: string;
688
+ description: string;
689
+ };
690
+ name: {
691
+ type: string;
692
+ description: string;
693
+ };
694
+ description: {
695
+ type: string;
696
+ description: string;
697
+ };
698
+ hidden: {
699
+ type: string;
700
+ description: string;
701
+ };
702
+ default: {
703
+ type: string;
704
+ description: string;
705
+ };
706
+ allowConfigure: {
707
+ type: string;
708
+ description: string;
709
+ };
710
+ allowNewMenu: {
711
+ type: string;
712
+ description: string;
713
+ };
714
+ snippets: {
715
+ type: string;
716
+ items: {
717
+ type: string;
718
+ };
719
+ description: string;
720
+ };
721
+ strategy: {
722
+ allOf: {
723
+ $ref: string;
724
+ }[];
725
+ description: string;
726
+ };
727
+ };
728
+ additionalProperties: boolean;
729
+ };
730
+ Role: {
731
+ allOf: {
732
+ $ref: string;
733
+ }[];
734
+ properties: {
735
+ createdAt: {
736
+ type: string;
737
+ format: string;
738
+ };
739
+ updatedAt: {
740
+ type: string;
741
+ format: string;
742
+ };
743
+ };
744
+ };
745
+ RoleCheck: {
746
+ type: string;
747
+ properties: {
748
+ role: {
749
+ type: string;
750
+ description: string;
751
+ };
752
+ roleMode: {
753
+ type: string;
754
+ enum: string[];
755
+ description: string;
756
+ };
757
+ availableActions: {
758
+ type: string;
759
+ items: {
760
+ type: string;
761
+ };
762
+ };
763
+ actions: {
764
+ type: string;
765
+ additionalProperties: boolean;
766
+ description: string;
767
+ };
768
+ };
769
+ additionalProperties: boolean;
770
+ };
771
+ RoleModeWrite: {
772
+ type: string;
773
+ properties: {
774
+ roleMode: {
775
+ type: string;
776
+ enum: string[];
777
+ };
778
+ };
779
+ required: string[];
780
+ };
781
+ DataSourceRole: {
782
+ type: string;
783
+ properties: {
784
+ id: {
785
+ type: string;
786
+ description: string;
787
+ };
788
+ roleName: {
789
+ type: string;
790
+ description: string;
791
+ };
792
+ dataSourceKey: {
793
+ type: string;
794
+ description: string;
795
+ };
796
+ strategy: {
797
+ allOf: {
798
+ $ref: string;
799
+ }[];
800
+ description: string;
801
+ };
802
+ };
803
+ additionalProperties: boolean;
804
+ };
805
+ RoleCollectionPermissionRow: {
806
+ type: string;
807
+ properties: {
808
+ type: {
809
+ type: string;
810
+ description: string;
811
+ };
812
+ name: {
813
+ type: string;
814
+ description: string;
815
+ };
816
+ collectionName: {
817
+ type: string;
818
+ description: string;
819
+ };
820
+ title: {
821
+ type: string;
822
+ description: string;
823
+ };
824
+ roleName: {
825
+ type: string;
826
+ description: string;
827
+ };
828
+ usingConfig: {
829
+ type: string;
830
+ enum: string[];
831
+ description: string;
832
+ };
833
+ exists: {
834
+ type: string;
835
+ description: string;
836
+ };
837
+ };
838
+ };
839
+ RoleResourceScope: {
840
+ type: string;
841
+ properties: {
842
+ id: {
843
+ type: string;
844
+ description: string;
845
+ };
846
+ key: {
847
+ type: string;
848
+ description: string;
849
+ };
850
+ dataSourceKey: {
851
+ type: string;
852
+ nullable: boolean;
853
+ description: string;
854
+ };
855
+ name: {
856
+ type: string;
857
+ description: string;
858
+ };
859
+ resourceName: {
860
+ type: string;
861
+ nullable: boolean;
862
+ description: string;
863
+ };
864
+ scope: {
865
+ type: string;
866
+ additionalProperties: boolean;
867
+ description: string;
868
+ };
869
+ };
870
+ additionalProperties: boolean;
871
+ };
872
+ RoleResourceScopeWrite: {
873
+ type: string;
874
+ properties: {
875
+ id: {
876
+ type: string;
877
+ description: string;
878
+ };
879
+ dataSourceKey: {
880
+ type: string;
881
+ nullable: boolean;
882
+ description: string;
883
+ };
884
+ resourceName: {
885
+ type: string;
886
+ nullable: boolean;
887
+ description: string;
888
+ };
889
+ name: {
890
+ type: string;
891
+ description: string;
892
+ };
893
+ scope: {
894
+ type: string;
895
+ additionalProperties: boolean;
896
+ description: string;
897
+ };
898
+ };
899
+ required: string[];
900
+ additionalProperties: boolean;
901
+ };
902
+ RoleResourceAction: {
903
+ type: string;
904
+ properties: {
905
+ id: {
906
+ type: string;
907
+ description: string;
908
+ };
909
+ name: {
910
+ type: string;
911
+ description: string;
912
+ };
913
+ fields: {
914
+ type: string;
915
+ items: {
916
+ type: string;
917
+ };
918
+ description: string;
919
+ };
920
+ scopeId: {
921
+ type: string;
922
+ nullable: boolean;
923
+ description: string;
924
+ };
925
+ scope: {
926
+ allOf: {
927
+ $ref: string;
928
+ }[];
929
+ nullable: boolean;
930
+ description: string;
931
+ };
932
+ };
933
+ required: string[];
934
+ additionalProperties: boolean;
935
+ };
936
+ RoleDataSourceResourceWrite: {
937
+ type: string;
938
+ description: string;
939
+ properties: {
940
+ id: {
941
+ type: string;
942
+ description: string;
943
+ };
944
+ name: {
945
+ type: string;
946
+ description: string;
947
+ };
948
+ dataSourceKey: {
949
+ type: string;
950
+ description: string;
951
+ };
952
+ roleName: {
953
+ type: string;
954
+ description: string;
955
+ };
956
+ usingActionsConfig: {
957
+ type: string;
958
+ description: string;
959
+ };
960
+ actions: {
961
+ type: string;
962
+ items: {
963
+ $ref: string;
964
+ };
965
+ description: string;
966
+ };
967
+ };
968
+ required: string[];
969
+ additionalProperties: boolean;
970
+ };
971
+ RoleDataSourceResource: {
972
+ allOf: {
973
+ $ref: string;
974
+ }[];
975
+ properties: {
976
+ id: {
977
+ type: string;
978
+ };
979
+ roleName: {
980
+ type: string;
981
+ };
982
+ };
983
+ };
984
+ AvailableAction: {
985
+ type: string;
986
+ properties: {
987
+ name: {
988
+ type: string;
989
+ description: string;
990
+ };
991
+ displayName: {
992
+ type: string;
993
+ description: string;
994
+ };
995
+ allowConfigureFields: {
996
+ type: string;
997
+ description: string;
998
+ };
999
+ onNewRecord: {
1000
+ type: string;
1001
+ description: string;
1002
+ };
1003
+ type: {
1004
+ type: string;
1005
+ description: string;
1006
+ };
1007
+ aliases: {
1008
+ type: string;
1009
+ items: {
1010
+ type: string;
1011
+ };
367
1012
  description: string;
368
1013
  };
369
1014
  };
1015
+ additionalProperties: boolean;
370
1016
  };
371
1017
  };
372
1018
  };