@xen-orchestra/acl 1.2.0 → 1.4.0

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.
@@ -1,4 +1,14 @@
1
1
  declare const _default: {
2
+ benchmark: boolean;
3
+ create: boolean;
2
4
  read: boolean;
5
+ forget: boolean;
6
+ update: {
7
+ enabled: boolean;
8
+ name: boolean;
9
+ options: boolean;
10
+ proxy: boolean;
11
+ url: boolean;
12
+ };
3
13
  };
4
14
  export default _default;
@@ -1,3 +1,13 @@
1
1
  export default {
2
+ benchmark: true,
3
+ create: true,
2
4
  read: true,
5
+ forget: true,
6
+ update: {
7
+ enabled: true,
8
+ name: true,
9
+ options: true,
10
+ proxy: true,
11
+ url: true,
12
+ },
3
13
  };
@@ -1,12 +1,26 @@
1
1
  declare const _default: {
2
2
  'allow-vm': boolean;
3
+ detach: boolean;
3
4
  disable: boolean;
4
5
  enable: boolean;
5
6
  evacuate: boolean;
6
7
  export: {
7
8
  logs: boolean;
8
9
  };
10
+ forget: boolean;
11
+ 'join-pool': boolean;
12
+ 'migrate-receive': boolean;
9
13
  read: boolean;
14
+ reboot: {
15
+ clean: boolean;
16
+ smart: boolean;
17
+ };
18
+ 'restart-toolstack': boolean;
19
+ shutdown: {
20
+ clean: boolean;
21
+ emergency: boolean;
22
+ };
23
+ start: boolean;
10
24
  update: {
11
25
  tags: boolean;
12
26
  };
@@ -1,12 +1,26 @@
1
1
  export default {
2
2
  'allow-vm': true,
3
+ detach: true,
3
4
  disable: true,
4
5
  enable: true,
5
6
  evacuate: true,
6
7
  export: {
7
8
  logs: true,
8
9
  },
10
+ forget: true,
11
+ 'join-pool': true,
12
+ 'migrate-receive': true,
9
13
  read: true,
14
+ reboot: {
15
+ clean: true,
16
+ smart: true,
17
+ },
18
+ 'restart-toolstack': true,
19
+ shutdown: {
20
+ clean: true,
21
+ emergency: true,
22
+ },
23
+ start: true,
10
24
  update: {
11
25
  tags: true,
12
26
  },
@@ -37,7 +37,17 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
37
37
  read: boolean;
38
38
  };
39
39
  readonly 'backup-repository': {
40
+ benchmark: boolean;
41
+ create: boolean;
40
42
  read: boolean;
43
+ forget: boolean;
44
+ update: {
45
+ enabled: boolean;
46
+ name: boolean;
47
+ options: boolean;
48
+ proxy: boolean;
49
+ url: boolean;
50
+ };
41
51
  };
42
52
  readonly group: {
43
53
  create: boolean;
@@ -53,13 +63,27 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
53
63
  };
54
64
  readonly host: {
55
65
  'allow-vm': boolean;
66
+ detach: boolean;
56
67
  disable: boolean;
57
68
  enable: boolean;
58
69
  evacuate: boolean;
59
70
  export: {
60
71
  logs: boolean;
61
72
  };
73
+ forget: boolean;
74
+ 'join-pool': boolean;
75
+ 'migrate-receive': boolean;
62
76
  read: boolean;
77
+ reboot: {
78
+ clean: boolean;
79
+ smart: boolean;
80
+ };
81
+ 'restart-toolstack': boolean;
82
+ shutdown: {
83
+ clean: boolean;
84
+ emergency: boolean;
85
+ };
86
+ start: boolean;
63
87
  update: {
64
88
  tags: boolean;
65
89
  };
@@ -73,10 +97,13 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
73
97
  read: boolean;
74
98
  update: {
75
99
  tags: boolean;
100
+ other_config: boolean;
76
101
  };
77
102
  };
78
103
  readonly pbd: {
79
104
  read: boolean;
105
+ plug: boolean;
106
+ unplug: boolean;
80
107
  };
81
108
  readonly pci: {
82
109
  read: boolean;
@@ -91,6 +118,7 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
91
118
  };
92
119
  };
93
120
  readonly pool: {
121
+ 'add-host': boolean;
94
122
  create: {
95
123
  network: boolean;
96
124
  vm: boolean;
@@ -125,11 +153,15 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
125
153
  };
126
154
  readonly sr: {
127
155
  delete: boolean;
156
+ forget: boolean;
128
157
  import: {
129
158
  vdi: boolean;
130
159
  vm: boolean;
131
160
  };
161
+ 'migrate-receive': boolean;
132
162
  read: boolean;
163
+ 'reclaim-space': boolean;
164
+ scan: boolean;
133
165
  update: {
134
166
  tags: boolean;
135
167
  };
@@ -151,10 +183,19 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
151
183
  };
152
184
  };
153
185
  readonly vbd: {
186
+ connect: boolean;
187
+ create: boolean;
188
+ delete: boolean;
189
+ disconnect: boolean;
154
190
  read: boolean;
155
191
  };
156
192
  readonly 'vdi-snapshot': {
193
+ delete: boolean;
194
+ export: boolean;
157
195
  read: boolean;
196
+ update: {
197
+ tags: boolean;
198
+ };
158
199
  };
159
200
  readonly 'vdi-unmanaged': {
160
201
  read: boolean;
@@ -165,6 +206,7 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
165
206
  delete: boolean;
166
207
  'export-content': boolean;
167
208
  'import-content': boolean;
209
+ 'migrate-send': boolean;
168
210
  read: boolean;
169
211
  update: {
170
212
  tags: boolean;
@@ -177,8 +219,19 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
177
219
  read: boolean;
178
220
  };
179
221
  readonly vif: {
180
- read: boolean;
222
+ connect: boolean;
181
223
  create: boolean;
224
+ delete: boolean;
225
+ disconnect: boolean;
226
+ read: boolean;
227
+ update: {
228
+ allowedIpv4Addresses: boolean;
229
+ allowedIpv6Addresses: boolean;
230
+ lockingMode: boolean;
231
+ rateLimit: boolean;
232
+ txChecksumming: boolean;
233
+ other_config: boolean;
234
+ };
182
235
  };
183
236
  readonly 'vm-controller': {
184
237
  read: boolean;
@@ -204,8 +257,10 @@ export declare const SUPPORTED_ACTIONS_BY_RESOURCE: {
204
257
  };
205
258
  };
206
259
  readonly vm: {
260
+ clone: boolean;
207
261
  delete: boolean;
208
262
  export: boolean;
263
+ 'migrate-send': boolean;
209
264
  pause: boolean;
210
265
  read: boolean;
211
266
  reboot: {
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  read: boolean;
5
5
  update: {
6
6
  tags: boolean;
7
+ other_config: boolean;
7
8
  };
8
9
  };
9
10
  export default _default;
@@ -4,5 +4,6 @@ export default {
4
4
  read: true,
5
5
  update: {
6
6
  tags: true,
7
+ other_config: true,
7
8
  },
8
9
  };
@@ -1,4 +1,6 @@
1
1
  declare const _default: {
2
2
  read: boolean;
3
+ plug: boolean;
4
+ unplug: boolean;
3
5
  };
4
6
  export default _default;
@@ -1,3 +1,5 @@
1
1
  export default {
2
2
  read: true,
3
+ plug: true,
4
+ unplug: true,
3
5
  };
@@ -1,4 +1,5 @@
1
1
  declare const _default: {
2
+ 'add-host': boolean;
2
3
  create: {
3
4
  network: boolean;
4
5
  vm: boolean;
@@ -1,4 +1,5 @@
1
1
  export default {
2
+ 'add-host': true,
2
3
  create: {
3
4
  network: true,
4
5
  vm: true,
@@ -1,10 +1,14 @@
1
1
  declare const _default: {
2
2
  delete: boolean;
3
+ forget: boolean;
3
4
  import: {
4
5
  vdi: boolean;
5
6
  vm: boolean;
6
7
  };
8
+ 'migrate-receive': boolean;
7
9
  read: boolean;
10
+ 'reclaim-space': boolean;
11
+ scan: boolean;
8
12
  update: {
9
13
  tags: boolean;
10
14
  };
@@ -1,10 +1,14 @@
1
1
  export default {
2
2
  delete: true,
3
+ forget: true,
3
4
  import: {
4
5
  vdi: true,
5
6
  vm: true,
6
7
  },
8
+ 'migrate-receive': true,
7
9
  read: true,
10
+ 'reclaim-space': true,
11
+ scan: true,
8
12
  update: {
9
13
  tags: true,
10
14
  },
@@ -1,4 +1,8 @@
1
1
  declare const _default: {
2
+ connect: boolean;
3
+ create: boolean;
4
+ delete: boolean;
5
+ disconnect: boolean;
2
6
  read: boolean;
3
7
  };
4
8
  export default _default;
@@ -1,3 +1,7 @@
1
1
  export default {
2
+ connect: true,
3
+ create: true,
4
+ delete: true,
5
+ disconnect: true,
2
6
  read: true,
3
7
  };
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ delete: boolean;
3
+ export: boolean;
2
4
  read: boolean;
5
+ update: {
6
+ tags: boolean;
7
+ };
3
8
  };
4
9
  export default _default;
@@ -1,3 +1,8 @@
1
1
  export default {
2
+ delete: true,
3
+ export: true,
2
4
  read: true,
5
+ update: {
6
+ tags: true,
7
+ },
3
8
  };
@@ -4,6 +4,7 @@ declare const _default: {
4
4
  delete: boolean;
5
5
  'export-content': boolean;
6
6
  'import-content': boolean;
7
+ 'migrate-send': boolean;
7
8
  read: boolean;
8
9
  update: {
9
10
  tags: boolean;
@@ -4,6 +4,7 @@ export default {
4
4
  delete: true,
5
5
  'export-content': true,
6
6
  'import-content': true,
7
+ 'migrate-send': true,
7
8
  read: true,
8
9
  update: {
9
10
  tags: true,
@@ -1,5 +1,16 @@
1
1
  declare const _default: {
2
- read: boolean;
2
+ connect: boolean;
3
3
  create: boolean;
4
+ delete: boolean;
5
+ disconnect: boolean;
6
+ read: boolean;
7
+ update: {
8
+ allowedIpv4Addresses: boolean;
9
+ allowedIpv6Addresses: boolean;
10
+ lockingMode: boolean;
11
+ rateLimit: boolean;
12
+ txChecksumming: boolean;
13
+ other_config: boolean;
14
+ };
4
15
  };
5
16
  export default _default;
@@ -1,4 +1,15 @@
1
1
  export default {
2
- read: true,
2
+ connect: true,
3
3
  create: true,
4
+ delete: true,
5
+ disconnect: true,
6
+ read: true,
7
+ update: {
8
+ allowedIpv4Addresses: true,
9
+ allowedIpv6Addresses: true,
10
+ lockingMode: true,
11
+ rateLimit: true,
12
+ txChecksumming: true,
13
+ other_config: true,
14
+ },
4
15
  };
@@ -1,6 +1,8 @@
1
1
  declare const _default: {
2
+ clone: boolean;
2
3
  delete: boolean;
3
4
  export: boolean;
5
+ 'migrate-send': boolean;
4
6
  pause: boolean;
5
7
  read: boolean;
6
8
  reboot: {
@@ -1,6 +1,8 @@
1
1
  export default {
2
+ clone: true,
2
3
  delete: true,
3
4
  export: true,
5
+ 'migrate-send': true,
4
6
  pause: true,
5
7
  read: true,
6
8
  reboot: {
@@ -62,7 +62,7 @@ export type BackupLogPrivilege = {
62
62
  export type BackupRepositoryPrivilege = {
63
63
  id: XoAclBasePrivilege['id']
64
64
  resource: 'backup-repository'
65
- action: '*' | 'read'
65
+ action: '*' | 'benchmark' | 'create' | 'read' | 'forget' | 'update' | '*' | 'update:enabled' | 'update:name' | 'update:options' | 'update:proxy' | 'update:url'
66
66
  selector?: XoAclBasePrivilege['selector']
67
67
  effect: XoAclBasePrivilege['effect']
68
68
  roleId: XoAclBasePrivilege['roleId']
@@ -89,7 +89,7 @@ export type GpuGroupPrivilege = {
89
89
  export type HostPrivilege = {
90
90
  id: XoAclBasePrivilege['id']
91
91
  resource: 'host'
92
- action: '*' | 'allow-vm' | 'disable' | 'enable' | 'evacuate' | 'export' | '*' | 'export:logs' | 'read' | 'update' | '*' | 'update:tags'
92
+ action: '*' | 'allow-vm' | 'detach' | 'disable' | 'enable' | 'evacuate' | 'export' | '*' | 'export:logs' | 'forget' | 'join-pool' | 'migrate-receive' | 'read' | 'reboot' | '*' | 'reboot:clean' | 'reboot:smart' | 'restart-toolstack' | 'shutdown' | '*' | 'shutdown:clean' | 'shutdown:emergency' | 'start' | 'update' | '*' | 'update:tags'
93
93
  selector?: XoAclBasePrivilege['selector']
94
94
  effect: XoAclBasePrivilege['effect']
95
95
  roleId: XoAclBasePrivilege['roleId']
@@ -107,7 +107,7 @@ export type MessagePrivilege = {
107
107
  export type NetworkPrivilege = {
108
108
  id: XoAclBasePrivilege['id']
109
109
  resource: 'network'
110
- action: '*' | 'create' | 'delete' | 'read' | 'update' | '*' | 'update:tags'
110
+ action: '*' | 'create' | 'delete' | 'read' | 'update' | '*' | 'update:tags' | 'update:other_config'
111
111
  selector?: XoAclBasePrivilege['selector']
112
112
  effect: XoAclBasePrivilege['effect']
113
113
  roleId: XoAclBasePrivilege['roleId']
@@ -116,7 +116,7 @@ export type NetworkPrivilege = {
116
116
  export type PbdPrivilege = {
117
117
  id: XoAclBasePrivilege['id']
118
118
  resource: 'pbd'
119
- action: '*' | 'read'
119
+ action: '*' | 'read' | 'plug' | 'unplug'
120
120
  selector?: XoAclBasePrivilege['selector']
121
121
  effect: XoAclBasePrivilege['effect']
122
122
  roleId: XoAclBasePrivilege['roleId']
@@ -152,7 +152,7 @@ export type PifPrivilege = {
152
152
  export type PoolPrivilege = {
153
153
  id: XoAclBasePrivilege['id']
154
154
  resource: 'pool'
155
- action: '*' | 'create' | '*' | 'create:network' | 'create:vm' | 'emergency-shutdown' | 'read' | 'rolling-reboot' | 'rolling-update' | 'update' | '*' | 'update:tags'
155
+ action: '*' | 'add-host' | 'create' | '*' | 'create:network' | 'create:vm' | 'emergency-shutdown' | 'read' | 'rolling-reboot' | 'rolling-update' | 'update' | '*' | 'update:tags'
156
156
  selector?: XoAclBasePrivilege['selector']
157
157
  effect: XoAclBasePrivilege['effect']
158
158
  roleId: XoAclBasePrivilege['roleId']
@@ -206,7 +206,7 @@ export type SmPrivilege = {
206
206
  export type SrPrivilege = {
207
207
  id: XoAclBasePrivilege['id']
208
208
  resource: 'sr'
209
- action: '*' | 'delete' | 'import' | '*' | 'import:vdi' | 'import:vm' | 'read' | 'update' | '*' | 'update:tags'
209
+ action: '*' | 'delete' | 'forget' | 'import' | '*' | 'import:vdi' | 'import:vm' | 'migrate-receive' | 'read' | 'reclaim-space' | 'scan' | 'update' | '*' | 'update:tags'
210
210
  selector?: XoAclBasePrivilege['selector']
211
211
  effect: XoAclBasePrivilege['effect']
212
212
  roleId: XoAclBasePrivilege['roleId']
@@ -233,7 +233,7 @@ export type UserPrivilege = {
233
233
  export type VbdPrivilege = {
234
234
  id: XoAclBasePrivilege['id']
235
235
  resource: 'vbd'
236
- action: '*' | 'read'
236
+ action: '*' | 'connect' | 'create' | 'delete' | 'disconnect' | 'read'
237
237
  selector?: XoAclBasePrivilege['selector']
238
238
  effect: XoAclBasePrivilege['effect']
239
239
  roleId: XoAclBasePrivilege['roleId']
@@ -242,7 +242,7 @@ export type VbdPrivilege = {
242
242
  export type VdiSnapshotPrivilege = {
243
243
  id: XoAclBasePrivilege['id']
244
244
  resource: 'vdi-snapshot'
245
- action: '*' | 'read'
245
+ action: '*' | 'delete' | 'export' | 'read' | 'update' | '*' | 'update:tags'
246
246
  selector?: XoAclBasePrivilege['selector']
247
247
  effect: XoAclBasePrivilege['effect']
248
248
  roleId: XoAclBasePrivilege['roleId']
@@ -260,7 +260,7 @@ export type VdiUnmanagedPrivilege = {
260
260
  export type VdiPrivilege = {
261
261
  id: XoAclBasePrivilege['id']
262
262
  resource: 'vdi'
263
- action: '*' | 'boot' | 'create' | 'delete' | 'export-content' | 'import-content' | 'read' | 'update' | '*' | 'update:tags'
263
+ action: '*' | 'boot' | 'create' | 'delete' | 'export-content' | 'import-content' | 'migrate-send' | 'read' | 'update' | '*' | 'update:tags'
264
264
  selector?: XoAclBasePrivilege['selector']
265
265
  effect: XoAclBasePrivilege['effect']
266
266
  roleId: XoAclBasePrivilege['roleId']
@@ -287,7 +287,7 @@ export type VgpuTypePrivilege = {
287
287
  export type VifPrivilege = {
288
288
  id: XoAclBasePrivilege['id']
289
289
  resource: 'vif'
290
- action: '*' | 'read' | 'create'
290
+ action: '*' | 'connect' | 'create' | 'delete' | 'disconnect' | 'read' | 'update' | '*' | 'update:allowedIpv4Addresses' | 'update:allowedIpv6Addresses' | 'update:lockingMode' | 'update:rateLimit' | 'update:txChecksumming' | 'update:other_config'
291
291
  selector?: XoAclBasePrivilege['selector']
292
292
  effect: XoAclBasePrivilege['effect']
293
293
  roleId: XoAclBasePrivilege['roleId']
@@ -323,7 +323,7 @@ export type VmTemplatePrivilege = {
323
323
  export type VmPrivilege = {
324
324
  id: XoAclBasePrivilege['id']
325
325
  resource: 'vm'
326
- action: '*' | 'delete' | 'export' | 'pause' | 'read' | 'reboot' | '*' | 'reboot:clean' | 'reboot:hard' | 'resume' | 'revert-snapshot' | 'shutdown' | '*' | 'shutdown:clean' | 'shutdown:hard' | 'snapshot' | 'start' | 'suspend' | 'unpause' | 'update' | '*' | 'update:affinityHost' | 'update:autoPoweron' | 'update:blockedOperations' | 'update:coresPerSocket' | 'update:cpuCap' | 'update:cpuMask' | 'update:cpuWeight' | 'update:cpus' | 'update:cpusStaticMax' | 'update:creation' | 'update:datasources' | 'update:expNestedHvm' | 'update:hasVendorDevice' | 'update:highAvailability' | 'update:hvmBootFirmware' | 'update:memory' | 'update:memoryMax' | 'update:memoryMin' | 'update:memoryStaticMax' | 'update:nameDescription' | 'update:nameLabel' | 'update:nestedVirt' | 'update:nicType' | 'update:notes' | 'update:PV_args' | 'update:resourceSet' | 'update:secureBoot' | 'update:share' | 'update:startDelay' | 'update:suspendSr' | 'update:tags' | 'update:uefiMode' | 'update:vga' | 'update:videoram' | 'update:viridian' | 'update:virtualizationMode' | 'update:xenStoreData'
326
+ action: '*' | 'clone' | 'delete' | 'export' | 'migrate-send' | 'pause' | 'read' | 'reboot' | '*' | 'reboot:clean' | 'reboot:hard' | 'resume' | 'revert-snapshot' | 'shutdown' | '*' | 'shutdown:clean' | 'shutdown:hard' | 'snapshot' | 'start' | 'suspend' | 'unpause' | 'update' | '*' | 'update:affinityHost' | 'update:autoPoweron' | 'update:blockedOperations' | 'update:coresPerSocket' | 'update:cpuCap' | 'update:cpuMask' | 'update:cpuWeight' | 'update:cpus' | 'update:cpusStaticMax' | 'update:creation' | 'update:datasources' | 'update:expNestedHvm' | 'update:hasVendorDevice' | 'update:highAvailability' | 'update:hvmBootFirmware' | 'update:memory' | 'update:memoryMax' | 'update:memoryMin' | 'update:memoryStaticMax' | 'update:nameDescription' | 'update:nameLabel' | 'update:nestedVirt' | 'update:nicType' | 'update:notes' | 'update:PV_args' | 'update:resourceSet' | 'update:secureBoot' | 'update:share' | 'update:startDelay' | 'update:suspendSr' | 'update:tags' | 'update:uefiMode' | 'update:vga' | 'update:videoram' | 'update:viridian' | 'update:virtualizationMode' | 'update:xenStoreData'
327
327
  selector?: XoAclBasePrivilege['selector']
328
328
  effect: XoAclBasePrivilege['effect']
329
329
  roleId: XoAclBasePrivilege['roleId']
package/dist/index.d.mts CHANGED
@@ -23,7 +23,7 @@ export declare function hasPrivilegeOn<T extends SupportedResource>({ user, acti
23
23
  export declare function getMissingPrivileges(params: AnyPrivilegeOnParam[], userPrivileges: AnyPrivilege[]): {
24
24
  objectId: unknown;
25
25
  objectIds: unknown[] | undefined;
26
- action: "create" | "delete" | "read" | "update" | "allow-vm" | "disable" | "enable" | "evacuate" | "export" | "emergency-shutdown" | "rolling-reboot" | "rolling-update" | "run" | "connect" | "disconnect" | "import" | "abort" | "boot" | "export-content" | "import-content" | "instantiate" | "pause" | "reboot" | "resume" | "revert-snapshot" | "shutdown" | "snapshot" | "start" | "suspend" | "unpause" | "*" | "update:action" | "update:resource" | "update:effect" | "update:selector" | "update:description" | "update:groups" | "update:name" | "update:users" | "update:tags" | "export:logs" | "update:management" | "create:network" | "create:vm" | "import:vdi" | "import:vm" | "update:password" | "update:permission" | "update:preferences" | "update:affinityHost" | "update:autoPoweron" | "update:blockedOperations" | "update:coresPerSocket" | "update:cpuCap" | "update:cpuMask" | "update:cpuWeight" | "update:cpus" | "update:cpusStaticMax" | "update:creation" | "update:datasources" | "update:expNestedHvm" | "update:hasVendorDevice" | "update:highAvailability" | "update:hvmBootFirmware" | "update:memory" | "update:memoryMax" | "update:memoryMin" | "update:memoryStaticMax" | "update:nameDescription" | "update:nameLabel" | "update:nestedVirt" | "update:nicType" | "update:notes" | "update:PV_args" | "update:resourceSet" | "update:secureBoot" | "update:share" | "update:startDelay" | "update:suspendSr" | "update:uefiMode" | "update:vga" | "update:videoram" | "update:viridian" | "update:virtualizationMode" | "update:xenStoreData" | "reboot:clean" | "reboot:hard" | "shutdown:clean" | "shutdown:hard";
26
+ action: "create" | "delete" | "read" | "update" | "benchmark" | "forget" | "allow-vm" | "detach" | "disable" | "enable" | "evacuate" | "export" | "join-pool" | "migrate-receive" | "reboot" | "restart-toolstack" | "shutdown" | "start" | "plug" | "unplug" | "add-host" | "emergency-shutdown" | "rolling-reboot" | "rolling-update" | "run" | "connect" | "disconnect" | "import" | "reclaim-space" | "scan" | "abort" | "boot" | "export-content" | "import-content" | "migrate-send" | "instantiate" | "clone" | "pause" | "resume" | "revert-snapshot" | "snapshot" | "suspend" | "unpause" | "*" | "update:action" | "update:resource" | "update:effect" | "update:selector" | "update:description" | "update:groups" | "update:name" | "update:users" | "update:proxy" | "update:enabled" | "update:options" | "update:url" | "update:tags" | "export:logs" | "reboot:clean" | "reboot:smart" | "shutdown:clean" | "shutdown:emergency" | "update:other_config" | "update:management" | "create:network" | "create:vm" | "import:vdi" | "import:vm" | "update:password" | "update:permission" | "update:preferences" | "update:allowedIpv4Addresses" | "update:allowedIpv6Addresses" | "update:lockingMode" | "update:rateLimit" | "update:txChecksumming" | "update:affinityHost" | "update:autoPoweron" | "update:blockedOperations" | "update:coresPerSocket" | "update:cpuCap" | "update:cpuMask" | "update:cpuWeight" | "update:cpus" | "update:cpusStaticMax" | "update:creation" | "update:datasources" | "update:expNestedHvm" | "update:hasVendorDevice" | "update:highAvailability" | "update:hvmBootFirmware" | "update:memory" | "update:memoryMax" | "update:memoryMin" | "update:memoryStaticMax" | "update:nameDescription" | "update:nameLabel" | "update:nestedVirt" | "update:nicType" | "update:notes" | "update:PV_args" | "update:resourceSet" | "update:secureBoot" | "update:share" | "update:startDelay" | "update:suspendSr" | "update:uefiMode" | "update:vga" | "update:videoram" | "update:viridian" | "update:virtualizationMode" | "update:xenStoreData" | "reboot:hard" | "shutdown:hard";
27
27
  resource: "acl-privilege" | "acl-role" | "alarm" | "backup-archive" | "backup-job" | "backup-log" | "backup-repository" | "group" | "gpuGroup" | "host" | "message" | "network" | "pbd" | "pci" | "pgpu" | "pif" | "pool" | "proxy" | "restore-log" | "schedule" | "server" | "sm" | "sr" | "task" | "user" | "vbd" | "vdi-snapshot" | "vdi-unmanaged" | "vdi" | "vgpu" | "vgpuType" | "vif" | "vm-controller" | "vm-snapshot" | "vm-template" | "vm" | "vtpm";
28
28
  }[];
29
29
  export declare function hasPrivileges(params: AnyPrivilegeOnParam[], userPrivileges: AnyPrivilege[]): boolean;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "main": "dist/index.mjs",
7
7
  "name": "@xen-orchestra/acl",
8
8
  "homepage": "https://github.com/vatesfr/xen-orchestra/tree/master/@xen-orchestra/acl",
9
- "version": "1.2.0",
9
+ "version": "1.4.0",
10
10
  "license": "AGPL-3.0-or-later",
11
11
  "private": false,
12
12
  "type": "module",
@@ -30,10 +30,10 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "@eslint/js": "^9.19.0",
33
- "@vates/types": "^1.26.0",
33
+ "@vates/types": "^1.28.0",
34
34
  "rimraf": "^6.0.1",
35
35
  "typescript": "~5.6",
36
- "typescript-eslint": "^8.23.0"
36
+ "typescript-eslint": "^8.61.0"
37
37
  },
38
38
  "bugs": "https://github.com/vatesfr/xen-orchestra/issues",
39
39
  "repository": {