@nocobase/plugin-acl 2.1.0-beta.2 → 2.1.0-beta.21

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 (41) hide show
  1. package/LICENSE +201 -661
  2. package/README.md +79 -10
  3. package/client-v2.d.ts +2 -0
  4. package/client-v2.js +1 -0
  5. package/dist/client/949.7ad4ad3b554e5452.js +10 -0
  6. package/dist/client/971.50ecf7b6ac572080.js +10 -0
  7. package/dist/client/index.js +1 -1
  8. package/dist/client-v2/139.929bc11d582ef7d4.js +10 -0
  9. package/dist/client-v2/193.3245b23f17b4c9f8.js +10 -0
  10. package/dist/client-v2/366.069b6cf12cfb9a67.js +10 -0
  11. package/dist/client-v2/627.ce101823deb86dd6.js +10 -0
  12. package/dist/client-v2/index.d.ts +9 -0
  13. package/dist/client-v2/index.js +10 -0
  14. package/dist/client-v2/plugin.d.ts +5 -0
  15. package/dist/client-v2/routes/AppInfoDemoRoute.d.ts +10 -0
  16. package/dist/client-v2/routes/DemoHomepageRoute.d.ts +10 -0
  17. package/dist/client-v2/routes/FlowSettingsComponentLoaderDemoRoute.d.ts +2 -0
  18. package/dist/client-v2/settings/DemoFlowSettingsLazyField.d.ts +10 -0
  19. package/dist/externalVersion.js +11 -9
  20. package/dist/server/actions/apply-data-permissions.d.ts +10 -0
  21. package/dist/server/actions/apply-data-permissions.js +208 -0
  22. package/dist/server/actions/data-source-compat.d.ts +13 -0
  23. package/dist/server/actions/data-source-compat.js +189 -0
  24. package/dist/server/index.d.ts +1 -0
  25. package/dist/server/index.js +2 -0
  26. package/dist/server/middlewares/check-association-operate.js +14 -5
  27. package/dist/server/middlewares/check-change-with-association.d.ts +21 -0
  28. package/dist/server/middlewares/check-change-with-association.js +327 -246
  29. package/dist/server/middlewares/check-query-permission.d.ts +10 -0
  30. package/dist/server/middlewares/check-query-permission.js +64 -0
  31. package/dist/server/middlewares/with-acl-meta.js +7 -2
  32. package/dist/server/migrations/20251119225252-update-member-default-permission.js +1 -1
  33. package/dist/server/query/apply-query-permission.d.ts +27 -0
  34. package/dist/server/query/apply-query-permission.js +242 -0
  35. package/dist/server/server.d.ts +6 -1
  36. package/dist/server/server.js +24 -1
  37. package/dist/swagger/index.d.ts +1113 -145
  38. package/dist/swagger/index.js +986 -180
  39. package/package.json +5 -3
  40. package/dist/client/0655d5ded9f45bb1.js +0 -10
  41. package/dist/client/50204a14518b3a0d.js +0 -10
@@ -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,70 +164,99 @@ 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
+ '/roles:applyDataPermissions': {
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
+ '/roles/{roleName}/users:list': {
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
246
  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: {
247
+ additionalProperties: boolean;
248
+ properties: {
249
+ data: {
250
+ type: string;
251
+ items: {
239
252
  type: string;
240
- description: string;
253
+ additionalProperties: boolean;
241
254
  };
242
255
  };
256
+ meta: {
257
+ type: string;
258
+ additionalProperties: boolean;
259
+ };
243
260
  };
244
261
  };
245
262
  };
@@ -248,49 +265,61 @@ declare const _default: {
248
265
  };
249
266
  };
250
267
  };
251
- '/availableActions:list': {
268
+ '/roles/{roleName}/users:add': {
269
+ post: {
270
+ tags: string[];
271
+ summary: string;
272
+ parameters: {
273
+ $ref: string;
274
+ }[];
275
+ responses: {
276
+ 200: {
277
+ description: string;
278
+ };
279
+ };
280
+ };
281
+ };
282
+ '/roles/{roleName}/users:remove': {
283
+ post: {
284
+ tags: string[];
285
+ summary: string;
286
+ parameters: {
287
+ $ref: string;
288
+ }[];
289
+ responses: {
290
+ 200: {
291
+ description: string;
292
+ };
293
+ };
294
+ };
295
+ };
296
+ '/users/{userId}/roles:list': {
252
297
  get: {
253
298
  tags: string[];
254
- description: string;
255
- parameters: any[];
299
+ summary: string;
300
+ parameters: {
301
+ $ref: string;
302
+ }[];
256
303
  responses: {
257
- '200': {
304
+ 200: {
258
305
  description: string;
259
306
  content: {
260
307
  'application/json': {
261
308
  schema: {
262
309
  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: {
310
+ additionalProperties: boolean;
311
+ properties: {
312
+ data: {
313
+ type: string;
314
+ items: {
287
315
  type: string;
288
- items: {
289
- type: string;
290
- };
291
- description: string;
316
+ additionalProperties: boolean;
292
317
  };
293
318
  };
319
+ meta: {
320
+ type: string;
321
+ additionalProperties: boolean;
322
+ };
294
323
  };
295
324
  };
296
325
  };
@@ -299,74 +328,1013 @@ declare const _default: {
299
328
  };
300
329
  };
301
330
  };
302
- };
303
- components: {
304
- schemas: {
305
- role: {
306
- type: string;
307
- properties: {
308
- title: {
309
- type: string;
310
- description: string;
311
- };
312
- name: {
313
- type: string;
314
- description: string;
315
- };
316
- description: {
317
- type: string;
331
+ '/users/{userId}/roles:add': {
332
+ post: {
333
+ tags: string[];
334
+ summary: string;
335
+ parameters: {
336
+ $ref: string;
337
+ }[];
338
+ responses: {
339
+ 200: {
318
340
  description: string;
319
341
  };
320
- hidden: {
321
- type: string;
342
+ };
343
+ };
344
+ };
345
+ '/users/{userId}/roles:remove': {
346
+ post: {
347
+ tags: string[];
348
+ summary: string;
349
+ parameters: {
350
+ $ref: string;
351
+ }[];
352
+ responses: {
353
+ 200: {
322
354
  description: string;
323
355
  };
324
- default: {
325
- type: string;
326
- description: string;
356
+ };
357
+ };
358
+ };
359
+ '/dataSources/{dataSourceKey}/roles:update': {
360
+ post: {
361
+ tags: string[];
362
+ summary: string;
363
+ description: string;
364
+ parameters: {
365
+ $ref: string;
366
+ }[];
367
+ requestBody: {
368
+ required: boolean;
369
+ content: {
370
+ 'application/json': {
371
+ schema: {
372
+ $ref: string;
373
+ };
374
+ };
327
375
  };
328
- allowConfigure: {
329
- type: string;
376
+ };
377
+ responses: {
378
+ 200: {
330
379
  description: string;
380
+ content: {
381
+ 'application/json': {
382
+ schema: {
383
+ $ref: string;
384
+ };
385
+ };
386
+ };
331
387
  };
332
- allowNewMenu: {
333
- type: string;
388
+ };
389
+ };
390
+ };
391
+ '/dataSources/{dataSourceKey}/roles:get': {
392
+ get: {
393
+ tags: string[];
394
+ summary: string;
395
+ parameters: {
396
+ $ref: string;
397
+ }[];
398
+ responses: {
399
+ 200: {
334
400
  description: string;
335
- };
336
- snippets: {
337
- type: string;
338
- items: {
339
- type: string;
401
+ content: {
402
+ 'application/json': {
403
+ schema: {
404
+ $ref: string;
405
+ };
406
+ };
340
407
  };
341
- description: string;
342
408
  };
343
- strategy: {
344
- type: string;
409
+ };
410
+ };
411
+ };
412
+ '/roles/{roleName}/dataSourcesCollections:list': {
413
+ get: {
414
+ tags: string[];
415
+ summary: string;
416
+ description: string;
417
+ parameters: {
418
+ $ref: string;
419
+ }[];
420
+ responses: {
421
+ 200: {
345
422
  description: string;
346
- items: {
347
- type: string;
348
- properties: {
349
- actions: {
423
+ content: {
424
+ 'application/json': {
425
+ schema: {
350
426
  type: string;
351
- items: {
352
- type: string;
427
+ properties: {
428
+ count: {
429
+ type: string;
430
+ };
431
+ rows: {
432
+ type: string;
433
+ items: {
434
+ $ref: string;
435
+ };
436
+ };
437
+ page: {
438
+ type: string;
439
+ };
440
+ pageSize: {
441
+ type: string;
442
+ };
443
+ totalPage: {
444
+ type: string;
445
+ };
353
446
  };
354
- description: string;
355
447
  };
356
448
  };
357
449
  };
358
450
  };
359
- createdAt: {
360
- type: string;
361
- format: string;
362
- description: string;
451
+ };
452
+ };
453
+ };
454
+ '/roles/{roleName}/dataSourceResources:create': {
455
+ post: {
456
+ tags: string[];
457
+ summary: string;
458
+ description: string;
459
+ parameters: {
460
+ $ref: string;
461
+ }[];
462
+ requestBody: {
463
+ required: boolean;
464
+ content: {
465
+ 'application/json': {
466
+ schema: {
467
+ $ref: string;
468
+ };
469
+ };
363
470
  };
364
- updatedAt: {
471
+ };
472
+ responses: {
473
+ 200: {
474
+ description: string;
475
+ content: {
476
+ 'application/json': {
477
+ schema: {
478
+ $ref: string;
479
+ };
480
+ };
481
+ };
482
+ };
483
+ };
484
+ };
485
+ };
486
+ '/roles/{roleName}/dataSourceResources:get': {
487
+ get: {
488
+ tags: string[];
489
+ summary: string;
490
+ description: string;
491
+ parameters: {
492
+ $ref: string;
493
+ }[];
494
+ responses: {
495
+ 200: {
496
+ description: string;
497
+ content: {
498
+ 'application/json': {
499
+ schema: {
500
+ $ref: string;
501
+ };
502
+ };
503
+ };
504
+ };
505
+ };
506
+ };
507
+ };
508
+ '/roles/{roleName}/dataSourceResources:update': {
509
+ post: {
510
+ tags: string[];
511
+ summary: string;
512
+ description: string;
513
+ parameters: {
514
+ $ref: string;
515
+ }[];
516
+ requestBody: {
517
+ required: boolean;
518
+ content: {
519
+ 'application/json': {
520
+ schema: {
521
+ $ref: string;
522
+ };
523
+ };
524
+ };
525
+ };
526
+ responses: {
527
+ 200: {
528
+ description: string;
529
+ content: {
530
+ 'application/json': {
531
+ schema: {
532
+ $ref: string;
533
+ };
534
+ };
535
+ };
536
+ };
537
+ };
538
+ };
539
+ };
540
+ '/rolesResourcesScopes:list': {
541
+ get: {
542
+ tags: string[];
543
+ summary: string;
544
+ parameters: {
545
+ $ref: string;
546
+ }[];
547
+ responses: {
548
+ 200: {
549
+ description: string;
550
+ content: {
551
+ 'application/json': {
552
+ schema: {
553
+ type: string;
554
+ items: {
555
+ $ref: string;
556
+ };
557
+ };
558
+ };
559
+ };
560
+ };
561
+ };
562
+ };
563
+ };
564
+ '/rolesResourcesScopes:get': {
565
+ get: {
566
+ tags: string[];
567
+ summary: string;
568
+ parameters: {
569
+ $ref: string;
570
+ }[];
571
+ responses: {
572
+ 200: {
573
+ description: string;
574
+ content: {
575
+ 'application/json': {
576
+ schema: {
577
+ $ref: string;
578
+ };
579
+ };
580
+ };
581
+ };
582
+ };
583
+ };
584
+ };
585
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:list': {
586
+ get: {
587
+ tags: string[];
588
+ summary: string;
589
+ parameters: {
590
+ $ref: string;
591
+ }[];
592
+ responses: {
593
+ 200: {
594
+ description: string;
595
+ content: {
596
+ 'application/json': {
597
+ schema: {
598
+ type: string;
599
+ properties: {
600
+ data: {
601
+ type: string;
602
+ items: {
603
+ $ref: string;
604
+ };
605
+ };
606
+ meta: {
607
+ type: string;
608
+ additionalProperties: boolean;
609
+ };
610
+ };
611
+ };
612
+ };
613
+ };
614
+ };
615
+ };
616
+ };
617
+ };
618
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:get': {
619
+ get: {
620
+ tags: string[];
621
+ summary: string;
622
+ parameters: {
623
+ $ref: string;
624
+ }[];
625
+ responses: {
626
+ 200: {
627
+ description: string;
628
+ content: {
629
+ 'application/json': {
630
+ schema: {
631
+ $ref: string;
632
+ };
633
+ };
634
+ };
635
+ };
636
+ };
637
+ };
638
+ };
639
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:create': {
640
+ post: {
641
+ tags: string[];
642
+ summary: string;
643
+ description: string;
644
+ parameters: {
645
+ $ref: string;
646
+ }[];
647
+ requestBody: {
648
+ required: boolean;
649
+ content: {
650
+ 'application/json': {
651
+ schema: {
652
+ $ref: string;
653
+ };
654
+ };
655
+ };
656
+ };
657
+ responses: {
658
+ 200: {
659
+ description: string;
660
+ content: {
661
+ 'application/json': {
662
+ schema: {
663
+ $ref: string;
664
+ };
665
+ };
666
+ };
667
+ };
668
+ };
669
+ };
670
+ };
671
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:update': {
672
+ post: {
673
+ tags: string[];
674
+ summary: string;
675
+ parameters: {
676
+ $ref: string;
677
+ }[];
678
+ requestBody: {
679
+ required: boolean;
680
+ content: {
681
+ 'application/json': {
682
+ schema: {
683
+ $ref: string;
684
+ };
685
+ };
686
+ };
687
+ };
688
+ responses: {
689
+ 200: {
690
+ description: string;
691
+ content: {
692
+ 'application/json': {
693
+ schema: {
694
+ $ref: string;
695
+ };
696
+ };
697
+ };
698
+ };
699
+ };
700
+ };
701
+ };
702
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:destroy': {
703
+ post: {
704
+ tags: string[];
705
+ summary: string;
706
+ parameters: {
707
+ $ref: string;
708
+ }[];
709
+ responses: {
710
+ 200: {
711
+ description: string;
712
+ };
713
+ };
714
+ };
715
+ };
716
+ '/availableActions:list': {
717
+ get: {
718
+ tags: string[];
719
+ summary: string;
720
+ description: string;
721
+ responses: {
722
+ 200: {
723
+ description: string;
724
+ content: {
725
+ 'application/json': {
726
+ schema: {
727
+ type: string;
728
+ items: {
729
+ $ref: string;
730
+ };
731
+ };
732
+ };
733
+ };
734
+ };
735
+ };
736
+ };
737
+ };
738
+ };
739
+ components: {
740
+ parameters: {
741
+ RoleNameQuery: {
742
+ name: string;
743
+ in: string;
744
+ description: string;
745
+ required: boolean;
746
+ schema: {
747
+ type: string;
748
+ };
749
+ };
750
+ RoleNamePath: {
751
+ name: string;
752
+ in: string;
753
+ description: string;
754
+ required: boolean;
755
+ schema: {
756
+ type: string;
757
+ };
758
+ };
759
+ UserIdPath: {
760
+ name: string;
761
+ in: string;
762
+ description: string;
763
+ required: boolean;
764
+ schema: {
765
+ anyOf: {
766
+ type: string;
767
+ }[];
768
+ };
769
+ };
770
+ DataSourceKeyPath: {
771
+ name: string;
772
+ in: string;
773
+ description: string;
774
+ required: boolean;
775
+ schema: {
776
+ type: string;
777
+ };
778
+ };
779
+ DataSourceKeyQuery: {
780
+ name: string;
781
+ in: string;
782
+ description: string;
783
+ schema: {
784
+ type: string;
785
+ };
786
+ };
787
+ MembershipUserFilterByTkQuery: {
788
+ name: string;
789
+ in: string;
790
+ description: string;
791
+ required: boolean;
792
+ schema: {
793
+ anyOf: ({
794
+ type: string;
795
+ items?: undefined;
796
+ } | {
797
+ type: string;
798
+ items: {
799
+ anyOf: {
800
+ type: string;
801
+ }[];
802
+ };
803
+ })[];
804
+ };
805
+ };
806
+ MembershipRoleFilterByTkQuery: {
807
+ name: string;
808
+ in: string;
809
+ description: string;
810
+ required: boolean;
811
+ schema: {
812
+ anyOf: ({
813
+ type: string;
814
+ items?: undefined;
815
+ } | {
816
+ type: string;
817
+ items: {
818
+ type: string;
819
+ };
820
+ })[];
821
+ };
822
+ };
823
+ ResourceNameQuery: {
824
+ name: string;
825
+ in: string;
826
+ description: string;
827
+ required: boolean;
828
+ schema: {
829
+ type: string;
830
+ };
831
+ };
832
+ DataSourceResourceNameQuery: {
833
+ name: string;
834
+ in: string;
835
+ description: string;
836
+ schema: {
837
+ type: string;
838
+ };
839
+ };
840
+ ScopePkQuery: {
841
+ name: string;
842
+ in: string;
843
+ description: string;
844
+ schema: {
845
+ type: string;
846
+ };
847
+ };
848
+ ResourcePermissionTkQuery: {
849
+ name: string;
850
+ in: string;
851
+ description: string;
852
+ schema: {
853
+ type: string;
854
+ };
855
+ };
856
+ PageQuery: {
857
+ name: string;
858
+ in: string;
859
+ schema: {
860
+ type: string;
861
+ };
862
+ };
863
+ PageSizeQuery: {
864
+ name: string;
865
+ in: string;
866
+ schema: {
867
+ type: string;
868
+ };
869
+ };
870
+ FilterQuery: {
871
+ name: string;
872
+ in: string;
873
+ schema: {
874
+ type: string;
875
+ additionalProperties: boolean;
876
+ };
877
+ };
878
+ AppendsQuery: {
879
+ name: string;
880
+ in: string;
881
+ schema: {
882
+ type: string;
883
+ items: {
884
+ type: string;
885
+ };
886
+ };
887
+ };
888
+ };
889
+ schemas: {
890
+ RoleStrategy: {
891
+ type: string;
892
+ description: string;
893
+ properties: {
894
+ actions: {
895
+ type: string;
896
+ items: {
897
+ type: string;
898
+ };
899
+ description: string;
900
+ };
901
+ };
902
+ additionalProperties: boolean;
903
+ };
904
+ RoleWrite: {
905
+ type: string;
906
+ properties: {
907
+ title: {
908
+ type: string;
909
+ description: string;
910
+ };
911
+ name: {
912
+ type: string;
913
+ description: string;
914
+ };
915
+ description: {
916
+ type: string;
917
+ description: string;
918
+ };
919
+ hidden: {
920
+ type: string;
921
+ description: string;
922
+ };
923
+ default: {
924
+ type: string;
925
+ description: string;
926
+ };
927
+ allowConfigure: {
928
+ type: string;
929
+ description: string;
930
+ };
931
+ allowNewMenu: {
932
+ type: string;
933
+ description: string;
934
+ };
935
+ snippets: {
936
+ type: string;
937
+ items: {
938
+ type: string;
939
+ };
940
+ description: string;
941
+ };
942
+ strategy: {
943
+ allOf: {
944
+ $ref: string;
945
+ }[];
946
+ description: string;
947
+ };
948
+ };
949
+ additionalProperties: boolean;
950
+ };
951
+ Role: {
952
+ allOf: {
953
+ $ref: string;
954
+ }[];
955
+ properties: {
956
+ createdAt: {
957
+ type: string;
958
+ format: string;
959
+ };
960
+ updatedAt: {
961
+ type: string;
962
+ format: string;
963
+ };
964
+ };
965
+ };
966
+ RoleCheck: {
967
+ type: string;
968
+ properties: {
969
+ role: {
365
970
  type: string;
366
- format: string;
971
+ description: string;
972
+ };
973
+ roleMode: {
974
+ type: string;
975
+ enum: string[];
976
+ description: string;
977
+ };
978
+ availableActions: {
979
+ type: string;
980
+ items: {
981
+ type: string;
982
+ };
983
+ };
984
+ actions: {
985
+ type: string;
986
+ additionalProperties: boolean;
987
+ description: string;
988
+ };
989
+ };
990
+ additionalProperties: boolean;
991
+ };
992
+ RoleModeWrite: {
993
+ type: string;
994
+ properties: {
995
+ roleMode: {
996
+ type: string;
997
+ enum: string[];
998
+ };
999
+ };
1000
+ required: string[];
1001
+ };
1002
+ RoleDataPermissionActionWrite: {
1003
+ type: string;
1004
+ properties: {
1005
+ name: {
1006
+ type: string;
1007
+ description: string;
1008
+ };
1009
+ fields: {
1010
+ type: string;
1011
+ items: {
1012
+ type: string;
1013
+ };
1014
+ description: string;
1015
+ };
1016
+ scopeId: {
1017
+ type: string;
1018
+ nullable: boolean;
1019
+ description: string;
1020
+ };
1021
+ scopeKey: {
1022
+ type: string;
1023
+ description: string;
1024
+ };
1025
+ scope: {
1026
+ type: string;
1027
+ properties: {
1028
+ id: {
1029
+ type: string;
1030
+ };
1031
+ key: {
1032
+ type: string;
1033
+ };
1034
+ };
1035
+ additionalProperties: boolean;
1036
+ description: string;
1037
+ };
1038
+ };
1039
+ required: string[];
1040
+ additionalProperties: boolean;
1041
+ };
1042
+ RoleDataPermissionResourceWrite: {
1043
+ type: string;
1044
+ properties: {
1045
+ name: {
1046
+ type: string;
1047
+ description: string;
1048
+ };
1049
+ usingActionsConfig: {
1050
+ type: string;
1051
+ description: string;
1052
+ };
1053
+ actions: {
1054
+ type: string;
1055
+ items: {
1056
+ $ref: string;
1057
+ };
1058
+ description: string;
1059
+ };
1060
+ };
1061
+ required: string[];
1062
+ additionalProperties: boolean;
1063
+ };
1064
+ RoleDataPermissionsApplyWrite: {
1065
+ type: string;
1066
+ properties: {
1067
+ dataSourceKey: {
1068
+ type: string;
1069
+ description: string;
1070
+ };
1071
+ resources: {
1072
+ type: string;
1073
+ items: {
1074
+ $ref: string;
1075
+ };
1076
+ description: string;
1077
+ };
1078
+ };
1079
+ required: string[];
1080
+ additionalProperties: boolean;
1081
+ };
1082
+ RoleDataPermissionsApplyResult: {
1083
+ type: string;
1084
+ properties: {
1085
+ roleName: {
1086
+ type: string;
1087
+ };
1088
+ dataSourceKey: {
1089
+ type: string;
1090
+ };
1091
+ count: {
1092
+ type: string;
1093
+ };
1094
+ resources: {
1095
+ type: string;
1096
+ items: {
1097
+ $ref: string;
1098
+ };
1099
+ };
1100
+ };
1101
+ additionalProperties: boolean;
1102
+ };
1103
+ DataSourceRole: {
1104
+ type: string;
1105
+ properties: {
1106
+ id: {
1107
+ type: string;
1108
+ description: string;
1109
+ };
1110
+ roleName: {
1111
+ type: string;
1112
+ description: string;
1113
+ };
1114
+ dataSourceKey: {
1115
+ type: string;
1116
+ description: string;
1117
+ };
1118
+ strategy: {
1119
+ allOf: {
1120
+ $ref: string;
1121
+ }[];
1122
+ description: string;
1123
+ };
1124
+ };
1125
+ additionalProperties: boolean;
1126
+ };
1127
+ RoleCollectionPermissionRow: {
1128
+ type: string;
1129
+ properties: {
1130
+ type: {
1131
+ type: string;
1132
+ description: string;
1133
+ };
1134
+ name: {
1135
+ type: string;
1136
+ description: string;
1137
+ };
1138
+ collectionName: {
1139
+ type: string;
1140
+ description: string;
1141
+ };
1142
+ title: {
1143
+ type: string;
1144
+ description: string;
1145
+ };
1146
+ roleName: {
1147
+ type: string;
1148
+ description: string;
1149
+ };
1150
+ usingConfig: {
1151
+ type: string;
1152
+ enum: string[];
1153
+ description: string;
1154
+ };
1155
+ exists: {
1156
+ type: string;
1157
+ description: string;
1158
+ };
1159
+ };
1160
+ };
1161
+ RoleResourceScope: {
1162
+ type: string;
1163
+ properties: {
1164
+ id: {
1165
+ type: string;
1166
+ description: string;
1167
+ };
1168
+ key: {
1169
+ type: string;
1170
+ description: string;
1171
+ };
1172
+ dataSourceKey: {
1173
+ type: string;
1174
+ nullable: boolean;
1175
+ description: string;
1176
+ };
1177
+ name: {
1178
+ type: string;
1179
+ description: string;
1180
+ };
1181
+ resourceName: {
1182
+ type: string;
1183
+ nullable: boolean;
1184
+ description: string;
1185
+ };
1186
+ scope: {
1187
+ type: string;
1188
+ additionalProperties: boolean;
1189
+ description: string;
1190
+ };
1191
+ };
1192
+ additionalProperties: boolean;
1193
+ };
1194
+ RoleResourceScopeWrite: {
1195
+ type: string;
1196
+ properties: {
1197
+ id: {
1198
+ type: string;
1199
+ description: string;
1200
+ };
1201
+ dataSourceKey: {
1202
+ type: string;
1203
+ nullable: boolean;
1204
+ description: string;
1205
+ };
1206
+ resourceName: {
1207
+ type: string;
1208
+ nullable: boolean;
1209
+ description: string;
1210
+ };
1211
+ name: {
1212
+ type: string;
1213
+ description: string;
1214
+ };
1215
+ scope: {
1216
+ type: string;
1217
+ additionalProperties: boolean;
1218
+ description: string;
1219
+ };
1220
+ };
1221
+ required: string[];
1222
+ additionalProperties: boolean;
1223
+ };
1224
+ RoleResourceAction: {
1225
+ type: string;
1226
+ properties: {
1227
+ id: {
1228
+ type: string;
1229
+ description: string;
1230
+ };
1231
+ name: {
1232
+ type: string;
1233
+ description: string;
1234
+ };
1235
+ fields: {
1236
+ type: string;
1237
+ items: {
1238
+ type: string;
1239
+ };
1240
+ description: string;
1241
+ };
1242
+ scopeId: {
1243
+ type: string;
1244
+ nullable: boolean;
1245
+ description: string;
1246
+ };
1247
+ scope: {
1248
+ allOf: {
1249
+ $ref: string;
1250
+ }[];
1251
+ nullable: boolean;
1252
+ description: string;
1253
+ };
1254
+ };
1255
+ required: string[];
1256
+ additionalProperties: boolean;
1257
+ };
1258
+ RoleDataSourceResourceWrite: {
1259
+ type: string;
1260
+ description: string;
1261
+ properties: {
1262
+ id: {
1263
+ type: string;
1264
+ description: string;
1265
+ };
1266
+ name: {
1267
+ type: string;
1268
+ description: string;
1269
+ };
1270
+ dataSourceKey: {
1271
+ type: string;
1272
+ description: string;
1273
+ };
1274
+ roleName: {
1275
+ type: string;
1276
+ description: string;
1277
+ };
1278
+ usingActionsConfig: {
1279
+ type: string;
1280
+ description: string;
1281
+ };
1282
+ actions: {
1283
+ type: string;
1284
+ items: {
1285
+ $ref: string;
1286
+ };
1287
+ description: string;
1288
+ };
1289
+ };
1290
+ required: string[];
1291
+ additionalProperties: boolean;
1292
+ };
1293
+ RoleDataSourceResource: {
1294
+ allOf: {
1295
+ $ref: string;
1296
+ }[];
1297
+ properties: {
1298
+ id: {
1299
+ type: string;
1300
+ };
1301
+ roleName: {
1302
+ type: string;
1303
+ };
1304
+ };
1305
+ };
1306
+ AvailableAction: {
1307
+ type: string;
1308
+ properties: {
1309
+ name: {
1310
+ type: string;
1311
+ description: string;
1312
+ };
1313
+ displayName: {
1314
+ type: string;
1315
+ description: string;
1316
+ };
1317
+ allowConfigureFields: {
1318
+ type: string;
1319
+ description: string;
1320
+ };
1321
+ onNewRecord: {
1322
+ type: string;
1323
+ description: string;
1324
+ };
1325
+ type: {
1326
+ type: string;
1327
+ description: string;
1328
+ };
1329
+ aliases: {
1330
+ type: string;
1331
+ items: {
1332
+ type: string;
1333
+ };
367
1334
  description: string;
368
1335
  };
369
1336
  };
1337
+ additionalProperties: boolean;
370
1338
  };
371
1339
  };
372
1340
  };