@@ -44,10 +44,8 @@ export type AccessUrlInput = {
4444} ;
4545
4646export type AddPermissionInput = {
47- action : Scalars [ 'String' ] [ 'input' ] ;
48- possession : Scalars [ 'String' ] [ 'input' ] ;
47+ actions : Array < Scalars [ 'String' ] [ 'input' ] > ;
4948 resource : Resource ;
50- role : Role ;
5149} ;
5250
5351export type AddRoleForApiKeyInput = {
@@ -70,6 +68,7 @@ export type ApiKey = {
7068 description ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
7169 id : Scalars [ 'ID' ] [ 'output' ] ;
7270 name : Scalars [ 'String' ] [ 'output' ] ;
71+ permissions : Array < Permission > ;
7372 roles : Array < Role > ;
7473} ;
7574
@@ -86,6 +85,7 @@ export type ApiKeyWithSecret = {
8685 id : Scalars [ 'ID' ] [ 'output' ] ;
8786 key : Scalars [ 'String' ] [ 'output' ] ;
8887 name : Scalars [ 'String' ] [ 'output' ] ;
88+ permissions : Array < Permission > ;
8989 roles : Array < Role > ;
9090} ;
9191
@@ -351,8 +351,13 @@ export enum ContainerState {
351351
352352export type CreateApiKeyInput = {
353353 description ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
354+ /** Whether to create the key in memory only (true), or on disk (false) - memory only keys will not persist through reboots of the API */
355+ memory ?: InputMaybe < Scalars [ 'Boolean' ] [ 'input' ] > ;
354356 name : Scalars [ 'String' ] [ 'input' ] ;
355- roles : Array < Role > ;
357+ /** This will replace the existing key if one already exists with the same name, otherwise returns the existing key */
358+ overwrite ?: InputMaybe < Scalars [ 'Boolean' ] [ 'input' ] > ;
359+ permissions ?: InputMaybe < Array < AddPermissionInput > > ;
360+ roles ?: InputMaybe < Array < Role > > ;
356361} ;
357362
358363export type Devices = {
@@ -599,7 +604,7 @@ export type Me = UserAccount & {
599604 description : Scalars [ 'String' ] [ 'output' ] ;
600605 id : Scalars [ 'ID' ] [ 'output' ] ;
601606 name : Scalars [ 'String' ] [ 'output' ] ;
602- permissions ?: Maybe < Scalars [ 'JSON' ] [ 'output' ] > ;
607+ permissions ?: Maybe < Array < Permission > > ;
603608 roles : Array < Role > ;
604609} ;
605610
@@ -1028,6 +1033,12 @@ export type Pci = {
10281033 vendorname ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
10291034} ;
10301035
1036+ export type Permission = {
1037+ __typename ?: 'Permission' ;
1038+ actions : Array < Scalars [ 'String' ] [ 'output' ] > ;
1039+ resource : Resource ;
1040+ } ;
1041+
10311042export type ProfileModel = {
10321043 __typename ?: 'ProfileModel' ;
10331044 avatar ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
@@ -1196,7 +1207,7 @@ export enum Resource {
11961207 Cloud = 'cloud' ,
11971208 Config = 'config' ,
11981209 Connect = 'connect' ,
1199- CrashReportingEnabled = 'crash_reporting_enabled ' ,
1210+ ConnectRemoteAccess = 'connect__remote_access ' ,
12001211 Customizations = 'customizations' ,
12011212 Dashboard = 'dashboard' ,
12021213 Disk = 'disk' ,
@@ -1224,10 +1235,8 @@ export enum Resource {
12241235/** Available roles for API keys and users */
12251236export enum Role {
12261237 Admin = 'admin' ,
1227- Guest = 'guest' ,
1228- MyServers = 'my_servers' ,
1229- Notifier = 'notifier' ,
1230- Upc = 'upc'
1238+ Connect = 'connect' ,
1239+ Guest = 'guest'
12311240}
12321241
12331242export type Server = {
@@ -1450,13 +1459,15 @@ export type User = UserAccount & {
14501459 name : Scalars [ 'String' ] [ 'output' ] ;
14511460 /** If the account has a password set */
14521461 password ?: Maybe < Scalars [ 'Boolean' ] [ 'output' ] > ;
1462+ permissions ?: Maybe < Array < Permission > > ;
14531463 roles : Array < Role > ;
14541464} ;
14551465
14561466export type UserAccount = {
14571467 description : Scalars [ 'String' ] [ 'output' ] ;
14581468 id : Scalars [ 'ID' ] [ 'output' ] ;
14591469 name : Scalars [ 'String' ] [ 'output' ] ;
1470+ permissions ?: Maybe < Array < Permission > > ;
14601471 roles : Array < Role > ;
14611472} ;
14621473
@@ -1678,6 +1689,7 @@ export enum VmState {
16781689export type Vms = {
16791690 __typename ?: 'Vms' ;
16801691 domain ?: Maybe < Array < VmDomain > > ;
1692+ id : Scalars [ 'ID' ] [ 'output' ] ;
16811693} ;
16821694
16831695export enum WAN_ACCESS_TYPE {
0 commit comments