@nocobase/plugin-acl 2.1.0-alpha.2 → 2.1.0-alpha.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 (37) 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/index.d.ts +1 -0
  21. package/dist/server/index.js +2 -0
  22. package/dist/server/middlewares/check-association-operate.js +14 -5
  23. package/dist/server/middlewares/check-change-with-association.d.ts +21 -0
  24. package/dist/server/middlewares/check-change-with-association.js +327 -246
  25. package/dist/server/middlewares/check-query-permission.d.ts +10 -0
  26. package/dist/server/middlewares/check-query-permission.js +64 -0
  27. package/dist/server/middlewares/with-acl-meta.js +7 -2
  28. package/dist/server/migrations/20251119225252-update-member-default-permission.js +1 -1
  29. package/dist/server/query/apply-query-permission.d.ts +27 -0
  30. package/dist/server/query/apply-query-permission.js +242 -0
  31. package/dist/server/server.d.ts +6 -1
  32. package/dist/server/server.js +8 -1
  33. package/dist/swagger/index.d.ts +962 -143
  34. package/dist/swagger/index.js +854 -183
  35. package/package.json +5 -3
  36. package/dist/client/0655d5ded9f45bb1.js +0 -10
  37. 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,67 @@ 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: {
192
181
  tags: string[];
182
+ summary: string;
193
183
  description: string;
194
- parameters: {
195
- name: string;
196
- in: string;
197
- description: string;
184
+ requestBody: {
198
185
  required: boolean;
199
- schema: {
200
- type: string;
186
+ content: {
187
+ 'application/json': {
188
+ schema: {
189
+ $ref: string;
190
+ };
191
+ };
192
+ };
193
+ };
194
+ responses: {
195
+ 200: {
196
+ description: string;
201
197
  };
198
+ };
199
+ };
200
+ };
201
+ '/roles/{roleName}/users:list': {
202
+ get: {
203
+ tags: string[];
204
+ summary: string;
205
+ parameters: {
206
+ $ref: string;
202
207
  }[];
203
208
  responses: {
204
- '200': {
209
+ 200: {
205
210
  description: string;
206
211
  content: {
207
212
  'application/json': {
208
213
  schema: {
209
214
  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: {
215
+ additionalProperties: boolean;
216
+ properties: {
217
+ data: {
218
+ type: string;
219
+ items: {
222
220
  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;
221
+ additionalProperties: boolean;
241
222
  };
242
223
  };
224
+ meta: {
225
+ type: string;
226
+ additionalProperties: boolean;
227
+ };
243
228
  };
244
229
  };
245
230
  };
@@ -248,49 +233,61 @@ declare const _default: {
248
233
  };
249
234
  };
250
235
  };
251
- '/availableActions:list': {
236
+ '/roles/{roleName}/users:add': {
237
+ post: {
238
+ tags: string[];
239
+ summary: string;
240
+ parameters: {
241
+ $ref: string;
242
+ }[];
243
+ responses: {
244
+ 200: {
245
+ description: string;
246
+ };
247
+ };
248
+ };
249
+ };
250
+ '/roles/{roleName}/users:remove': {
251
+ post: {
252
+ tags: string[];
253
+ summary: string;
254
+ parameters: {
255
+ $ref: string;
256
+ }[];
257
+ responses: {
258
+ 200: {
259
+ description: string;
260
+ };
261
+ };
262
+ };
263
+ };
264
+ '/users/{userId}/roles:list': {
252
265
  get: {
253
266
  tags: string[];
254
- description: string;
255
- parameters: any[];
267
+ summary: string;
268
+ parameters: {
269
+ $ref: string;
270
+ }[];
256
271
  responses: {
257
- '200': {
272
+ 200: {
258
273
  description: string;
259
274
  content: {
260
275
  'application/json': {
261
276
  schema: {
262
277
  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: {
278
+ additionalProperties: boolean;
279
+ properties: {
280
+ data: {
281
+ type: string;
282
+ items: {
287
283
  type: string;
288
- items: {
289
- type: string;
290
- };
291
- description: string;
284
+ additionalProperties: boolean;
292
285
  };
293
286
  };
287
+ meta: {
288
+ type: string;
289
+ additionalProperties: boolean;
290
+ };
294
291
  };
295
292
  };
296
293
  };
@@ -299,74 +296,896 @@ declare const _default: {
299
296
  };
300
297
  };
301
298
  };
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;
299
+ '/users/{userId}/roles:add': {
300
+ post: {
301
+ tags: string[];
302
+ summary: string;
303
+ parameters: {
304
+ $ref: string;
305
+ }[];
306
+ responses: {
307
+ 200: {
314
308
  description: string;
315
309
  };
316
- description: {
317
- type: string;
310
+ };
311
+ };
312
+ };
313
+ '/users/{userId}/roles:remove': {
314
+ post: {
315
+ tags: string[];
316
+ summary: string;
317
+ parameters: {
318
+ $ref: string;
319
+ }[];
320
+ responses: {
321
+ 200: {
318
322
  description: string;
319
323
  };
320
- hidden: {
321
- type: string;
322
- description: string;
324
+ };
325
+ };
326
+ };
327
+ '/dataSources/{dataSourceKey}/roles:update': {
328
+ post: {
329
+ tags: string[];
330
+ summary: string;
331
+ description: string;
332
+ parameters: {
333
+ $ref: string;
334
+ }[];
335
+ requestBody: {
336
+ required: boolean;
337
+ content: {
338
+ 'application/json': {
339
+ schema: {
340
+ $ref: string;
341
+ };
342
+ };
323
343
  };
324
- default: {
325
- type: string;
344
+ };
345
+ responses: {
346
+ 200: {
326
347
  description: string;
348
+ content: {
349
+ 'application/json': {
350
+ schema: {
351
+ $ref: string;
352
+ };
353
+ };
354
+ };
327
355
  };
328
- allowConfigure: {
329
- type: string;
356
+ };
357
+ };
358
+ };
359
+ '/dataSources/{dataSourceKey}/roles:get': {
360
+ get: {
361
+ tags: string[];
362
+ summary: string;
363
+ parameters: {
364
+ $ref: string;
365
+ }[];
366
+ responses: {
367
+ 200: {
330
368
  description: string;
369
+ content: {
370
+ 'application/json': {
371
+ schema: {
372
+ $ref: string;
373
+ };
374
+ };
375
+ };
331
376
  };
332
- allowNewMenu: {
333
- type: string;
377
+ };
378
+ };
379
+ };
380
+ '/roles/{roleName}/dataSourcesCollections:list': {
381
+ get: {
382
+ tags: string[];
383
+ summary: string;
384
+ description: string;
385
+ parameters: {
386
+ $ref: string;
387
+ }[];
388
+ responses: {
389
+ 200: {
334
390
  description: string;
391
+ content: {
392
+ 'application/json': {
393
+ schema: {
394
+ type: string;
395
+ properties: {
396
+ count: {
397
+ type: string;
398
+ };
399
+ rows: {
400
+ type: string;
401
+ items: {
402
+ $ref: string;
403
+ };
404
+ };
405
+ page: {
406
+ type: string;
407
+ };
408
+ pageSize: {
409
+ type: string;
410
+ };
411
+ totalPage: {
412
+ type: string;
413
+ };
414
+ };
415
+ };
416
+ };
417
+ };
335
418
  };
336
- snippets: {
337
- type: string;
338
- items: {
339
- type: string;
419
+ };
420
+ };
421
+ };
422
+ '/roles/{roleName}/dataSourceResources:create': {
423
+ post: {
424
+ tags: string[];
425
+ summary: string;
426
+ description: string;
427
+ parameters: {
428
+ $ref: string;
429
+ }[];
430
+ requestBody: {
431
+ required: boolean;
432
+ content: {
433
+ 'application/json': {
434
+ schema: {
435
+ $ref: string;
436
+ };
340
437
  };
341
- description: string;
342
438
  };
343
- strategy: {
344
- type: string;
439
+ };
440
+ responses: {
441
+ 200: {
345
442
  description: string;
346
- items: {
347
- type: string;
348
- properties: {
349
- actions: {
350
- type: string;
351
- items: {
352
- type: string;
353
- };
354
- description: string;
443
+ content: {
444
+ 'application/json': {
445
+ schema: {
446
+ $ref: string;
355
447
  };
356
448
  };
357
449
  };
358
450
  };
359
- createdAt: {
360
- type: string;
361
- format: string;
451
+ };
452
+ };
453
+ };
454
+ '/roles/{roleName}/dataSourceResources:get': {
455
+ get: {
456
+ tags: string[];
457
+ summary: string;
458
+ description: string;
459
+ parameters: {
460
+ $ref: string;
461
+ }[];
462
+ responses: {
463
+ 200: {
362
464
  description: string;
465
+ content: {
466
+ 'application/json': {
467
+ schema: {
468
+ $ref: string;
469
+ };
470
+ };
471
+ };
363
472
  };
364
- updatedAt: {
473
+ };
474
+ };
475
+ };
476
+ '/roles/{roleName}/dataSourceResources:update': {
477
+ post: {
478
+ tags: string[];
479
+ summary: string;
480
+ description: string;
481
+ parameters: {
482
+ $ref: string;
483
+ }[];
484
+ requestBody: {
485
+ required: boolean;
486
+ content: {
487
+ 'application/json': {
488
+ schema: {
489
+ $ref: string;
490
+ };
491
+ };
492
+ };
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
+ '/rolesResourcesScopes:list': {
509
+ get: {
510
+ tags: string[];
511
+ summary: string;
512
+ parameters: {
513
+ $ref: string;
514
+ }[];
515
+ responses: {
516
+ 200: {
517
+ description: string;
518
+ content: {
519
+ 'application/json': {
520
+ schema: {
521
+ type: string;
522
+ items: {
523
+ $ref: string;
524
+ };
525
+ };
526
+ };
527
+ };
528
+ };
529
+ };
530
+ };
531
+ };
532
+ '/rolesResourcesScopes:get': {
533
+ get: {
534
+ tags: string[];
535
+ summary: string;
536
+ parameters: {
537
+ $ref: string;
538
+ }[];
539
+ responses: {
540
+ 200: {
541
+ description: string;
542
+ content: {
543
+ 'application/json': {
544
+ schema: {
545
+ $ref: string;
546
+ };
547
+ };
548
+ };
549
+ };
550
+ };
551
+ };
552
+ };
553
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:list': {
554
+ get: {
555
+ tags: string[];
556
+ summary: string;
557
+ parameters: {
558
+ $ref: string;
559
+ }[];
560
+ responses: {
561
+ 200: {
562
+ description: string;
563
+ content: {
564
+ 'application/json': {
565
+ schema: {
566
+ type: string;
567
+ properties: {
568
+ data: {
569
+ type: string;
570
+ items: {
571
+ $ref: string;
572
+ };
573
+ };
574
+ meta: {
575
+ type: string;
576
+ additionalProperties: boolean;
577
+ };
578
+ };
579
+ };
580
+ };
581
+ };
582
+ };
583
+ };
584
+ };
585
+ };
586
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:get': {
587
+ get: {
588
+ tags: string[];
589
+ summary: string;
590
+ parameters: {
591
+ $ref: string;
592
+ }[];
593
+ responses: {
594
+ 200: {
595
+ description: string;
596
+ content: {
597
+ 'application/json': {
598
+ schema: {
599
+ $ref: string;
600
+ };
601
+ };
602
+ };
603
+ };
604
+ };
605
+ };
606
+ };
607
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:create': {
608
+ post: {
609
+ tags: string[];
610
+ summary: string;
611
+ description: string;
612
+ parameters: {
613
+ $ref: string;
614
+ }[];
615
+ requestBody: {
616
+ required: boolean;
617
+ content: {
618
+ 'application/json': {
619
+ schema: {
620
+ $ref: string;
621
+ };
622
+ };
623
+ };
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:update': {
640
+ post: {
641
+ tags: string[];
642
+ summary: string;
643
+ parameters: {
644
+ $ref: string;
645
+ }[];
646
+ requestBody: {
647
+ required: boolean;
648
+ content: {
649
+ 'application/json': {
650
+ schema: {
651
+ $ref: string;
652
+ };
653
+ };
654
+ };
655
+ };
656
+ responses: {
657
+ 200: {
658
+ description: string;
659
+ content: {
660
+ 'application/json': {
661
+ schema: {
662
+ $ref: string;
663
+ };
664
+ };
665
+ };
666
+ };
667
+ };
668
+ };
669
+ };
670
+ '/dataSources/{dataSourceKey}/rolesResourcesScopes:destroy': {
671
+ post: {
672
+ tags: string[];
673
+ summary: string;
674
+ parameters: {
675
+ $ref: string;
676
+ }[];
677
+ responses: {
678
+ 200: {
679
+ description: string;
680
+ };
681
+ };
682
+ };
683
+ };
684
+ '/availableActions:list': {
685
+ get: {
686
+ tags: string[];
687
+ summary: string;
688
+ description: string;
689
+ responses: {
690
+ 200: {
691
+ description: string;
692
+ content: {
693
+ 'application/json': {
694
+ schema: {
695
+ type: string;
696
+ items: {
697
+ $ref: string;
698
+ };
699
+ };
700
+ };
701
+ };
702
+ };
703
+ };
704
+ };
705
+ };
706
+ };
707
+ components: {
708
+ parameters: {
709
+ RoleNameQuery: {
710
+ name: string;
711
+ in: string;
712
+ description: string;
713
+ required: boolean;
714
+ schema: {
715
+ type: string;
716
+ };
717
+ };
718
+ RoleNamePath: {
719
+ name: string;
720
+ in: string;
721
+ description: string;
722
+ required: boolean;
723
+ schema: {
724
+ type: string;
725
+ };
726
+ };
727
+ UserIdPath: {
728
+ name: string;
729
+ in: string;
730
+ description: string;
731
+ required: boolean;
732
+ schema: {
733
+ anyOf: {
734
+ type: string;
735
+ }[];
736
+ };
737
+ };
738
+ DataSourceKeyPath: {
739
+ name: string;
740
+ in: string;
741
+ description: string;
742
+ required: boolean;
743
+ schema: {
744
+ type: string;
745
+ };
746
+ };
747
+ MembershipUserFilterByTkQuery: {
748
+ name: string;
749
+ in: string;
750
+ description: string;
751
+ required: boolean;
752
+ schema: {
753
+ anyOf: ({
754
+ type: string;
755
+ items?: undefined;
756
+ } | {
757
+ type: string;
758
+ items: {
759
+ anyOf: {
760
+ type: string;
761
+ }[];
762
+ };
763
+ })[];
764
+ };
765
+ };
766
+ MembershipRoleFilterByTkQuery: {
767
+ name: string;
768
+ in: string;
769
+ description: string;
770
+ required: boolean;
771
+ schema: {
772
+ anyOf: ({
773
+ type: string;
774
+ items?: undefined;
775
+ } | {
776
+ type: string;
777
+ items: {
778
+ type: string;
779
+ };
780
+ })[];
781
+ };
782
+ };
783
+ ResourceNameQuery: {
784
+ name: string;
785
+ in: string;
786
+ description: string;
787
+ required: boolean;
788
+ schema: {
789
+ type: string;
790
+ };
791
+ };
792
+ ScopePkQuery: {
793
+ name: string;
794
+ in: string;
795
+ description: string;
796
+ schema: {
797
+ type: string;
798
+ };
799
+ };
800
+ ResourcePermissionTkQuery: {
801
+ name: string;
802
+ in: string;
803
+ description: string;
804
+ schema: {
805
+ type: string;
806
+ };
807
+ };
808
+ PageQuery: {
809
+ name: string;
810
+ in: string;
811
+ schema: {
812
+ type: string;
813
+ };
814
+ };
815
+ PageSizeQuery: {
816
+ name: string;
817
+ in: string;
818
+ schema: {
819
+ type: string;
820
+ };
821
+ };
822
+ FilterQuery: {
823
+ name: string;
824
+ in: string;
825
+ schema: {
826
+ type: string;
827
+ additionalProperties: boolean;
828
+ };
829
+ };
830
+ AppendsQuery: {
831
+ name: string;
832
+ in: string;
833
+ schema: {
834
+ type: string;
835
+ items: {
836
+ type: string;
837
+ };
838
+ };
839
+ };
840
+ };
841
+ schemas: {
842
+ RoleStrategy: {
843
+ type: string;
844
+ description: string;
845
+ properties: {
846
+ actions: {
847
+ type: string;
848
+ items: {
849
+ type: string;
850
+ };
851
+ description: string;
852
+ };
853
+ };
854
+ additionalProperties: boolean;
855
+ };
856
+ RoleWrite: {
857
+ type: string;
858
+ properties: {
859
+ title: {
860
+ type: string;
861
+ description: string;
862
+ };
863
+ name: {
864
+ type: string;
865
+ description: string;
866
+ };
867
+ description: {
868
+ type: string;
869
+ description: string;
870
+ };
871
+ hidden: {
872
+ type: string;
873
+ description: string;
874
+ };
875
+ default: {
876
+ type: string;
877
+ description: string;
878
+ };
879
+ allowConfigure: {
880
+ type: string;
881
+ description: string;
882
+ };
883
+ allowNewMenu: {
884
+ type: string;
885
+ description: string;
886
+ };
887
+ snippets: {
888
+ type: string;
889
+ items: {
890
+ type: string;
891
+ };
892
+ description: string;
893
+ };
894
+ strategy: {
895
+ allOf: {
896
+ $ref: string;
897
+ }[];
898
+ description: string;
899
+ };
900
+ };
901
+ additionalProperties: boolean;
902
+ };
903
+ Role: {
904
+ allOf: {
905
+ $ref: string;
906
+ }[];
907
+ properties: {
908
+ createdAt: {
365
909
  type: string;
366
910
  format: string;
911
+ };
912
+ updatedAt: {
913
+ type: string;
914
+ format: string;
915
+ };
916
+ };
917
+ };
918
+ RoleCheck: {
919
+ type: string;
920
+ properties: {
921
+ role: {
922
+ type: string;
923
+ description: string;
924
+ };
925
+ roleMode: {
926
+ type: string;
927
+ enum: string[];
928
+ description: string;
929
+ };
930
+ availableActions: {
931
+ type: string;
932
+ items: {
933
+ type: string;
934
+ };
935
+ };
936
+ actions: {
937
+ type: string;
938
+ additionalProperties: boolean;
939
+ description: string;
940
+ };
941
+ };
942
+ additionalProperties: boolean;
943
+ };
944
+ RoleModeWrite: {
945
+ type: string;
946
+ properties: {
947
+ roleMode: {
948
+ type: string;
949
+ enum: string[];
950
+ };
951
+ };
952
+ required: string[];
953
+ };
954
+ DataSourceRole: {
955
+ type: string;
956
+ properties: {
957
+ id: {
958
+ type: string;
959
+ description: string;
960
+ };
961
+ roleName: {
962
+ type: string;
963
+ description: string;
964
+ };
965
+ dataSourceKey: {
966
+ type: string;
967
+ description: string;
968
+ };
969
+ strategy: {
970
+ allOf: {
971
+ $ref: string;
972
+ }[];
973
+ description: string;
974
+ };
975
+ };
976
+ additionalProperties: boolean;
977
+ };
978
+ RoleCollectionPermissionRow: {
979
+ type: string;
980
+ properties: {
981
+ type: {
982
+ type: string;
983
+ description: string;
984
+ };
985
+ name: {
986
+ type: string;
987
+ description: string;
988
+ };
989
+ collectionName: {
990
+ type: string;
991
+ description: string;
992
+ };
993
+ title: {
994
+ type: string;
995
+ description: string;
996
+ };
997
+ roleName: {
998
+ type: string;
999
+ description: string;
1000
+ };
1001
+ usingConfig: {
1002
+ type: string;
1003
+ enum: string[];
1004
+ description: string;
1005
+ };
1006
+ exists: {
1007
+ type: string;
1008
+ description: string;
1009
+ };
1010
+ };
1011
+ };
1012
+ RoleResourceScope: {
1013
+ type: string;
1014
+ properties: {
1015
+ id: {
1016
+ type: string;
1017
+ description: string;
1018
+ };
1019
+ key: {
1020
+ type: string;
1021
+ description: string;
1022
+ };
1023
+ dataSourceKey: {
1024
+ type: string;
1025
+ nullable: boolean;
1026
+ description: string;
1027
+ };
1028
+ name: {
1029
+ type: string;
1030
+ description: string;
1031
+ };
1032
+ resourceName: {
1033
+ type: string;
1034
+ nullable: boolean;
1035
+ description: string;
1036
+ };
1037
+ scope: {
1038
+ type: string;
1039
+ additionalProperties: boolean;
1040
+ description: string;
1041
+ };
1042
+ };
1043
+ additionalProperties: boolean;
1044
+ };
1045
+ RoleResourceScopeWrite: {
1046
+ type: string;
1047
+ properties: {
1048
+ id: {
1049
+ type: string;
1050
+ description: string;
1051
+ };
1052
+ dataSourceKey: {
1053
+ type: string;
1054
+ nullable: boolean;
1055
+ description: string;
1056
+ };
1057
+ resourceName: {
1058
+ type: string;
1059
+ nullable: boolean;
1060
+ description: string;
1061
+ };
1062
+ name: {
1063
+ type: string;
1064
+ description: string;
1065
+ };
1066
+ scope: {
1067
+ type: string;
1068
+ additionalProperties: boolean;
1069
+ description: string;
1070
+ };
1071
+ };
1072
+ required: string[];
1073
+ additionalProperties: boolean;
1074
+ };
1075
+ RoleResourceAction: {
1076
+ type: string;
1077
+ properties: {
1078
+ id: {
1079
+ type: string;
1080
+ description: string;
1081
+ };
1082
+ name: {
1083
+ type: string;
1084
+ description: string;
1085
+ };
1086
+ fields: {
1087
+ type: string;
1088
+ items: {
1089
+ type: string;
1090
+ };
1091
+ description: string;
1092
+ };
1093
+ scopeId: {
1094
+ type: string;
1095
+ nullable: boolean;
1096
+ description: string;
1097
+ };
1098
+ scope: {
1099
+ allOf: {
1100
+ $ref: string;
1101
+ }[];
1102
+ nullable: boolean;
1103
+ description: string;
1104
+ };
1105
+ };
1106
+ required: string[];
1107
+ additionalProperties: boolean;
1108
+ };
1109
+ RoleDataSourceResourceWrite: {
1110
+ type: string;
1111
+ description: string;
1112
+ properties: {
1113
+ id: {
1114
+ type: string;
1115
+ description: string;
1116
+ };
1117
+ name: {
1118
+ type: string;
1119
+ description: string;
1120
+ };
1121
+ dataSourceKey: {
1122
+ type: string;
1123
+ description: string;
1124
+ };
1125
+ roleName: {
1126
+ type: string;
1127
+ description: string;
1128
+ };
1129
+ usingActionsConfig: {
1130
+ type: string;
1131
+ description: string;
1132
+ };
1133
+ actions: {
1134
+ type: string;
1135
+ items: {
1136
+ $ref: string;
1137
+ };
1138
+ description: string;
1139
+ };
1140
+ };
1141
+ required: string[];
1142
+ additionalProperties: boolean;
1143
+ };
1144
+ RoleDataSourceResource: {
1145
+ allOf: {
1146
+ $ref: string;
1147
+ }[];
1148
+ properties: {
1149
+ id: {
1150
+ type: string;
1151
+ };
1152
+ roleName: {
1153
+ type: string;
1154
+ };
1155
+ };
1156
+ };
1157
+ AvailableAction: {
1158
+ type: string;
1159
+ properties: {
1160
+ name: {
1161
+ type: string;
1162
+ description: string;
1163
+ };
1164
+ displayName: {
1165
+ type: string;
1166
+ description: string;
1167
+ };
1168
+ allowConfigureFields: {
1169
+ type: string;
1170
+ description: string;
1171
+ };
1172
+ onNewRecord: {
1173
+ type: string;
1174
+ description: string;
1175
+ };
1176
+ type: {
1177
+ type: string;
1178
+ description: string;
1179
+ };
1180
+ aliases: {
1181
+ type: string;
1182
+ items: {
1183
+ type: string;
1184
+ };
367
1185
  description: string;
368
1186
  };
369
1187
  };
1188
+ additionalProperties: boolean;
370
1189
  };
371
1190
  };
372
1191
  };