waldur-js-client 8.0.10-dev.4 → 8.0.10-dev.5
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.
- package/dist/index.d.ts +6 -2
- package/dist/index.js +5 -1
- package/dist/sdk.gen.d.ts +14 -2
- package/dist/sdk.gen.js +35 -1
- package/dist/types.gen.d.ts +52 -0
- package/package.json +1 -1
package/dist/sdk.gen.js
CHANGED
|
@@ -30966,7 +30966,7 @@ export const userPermissionRequestsReject = (options) => (options.client ?? clie
|
|
|
30966
30966
|
/**
|
|
30967
30967
|
* List user permissions
|
|
30968
30968
|
*
|
|
30969
|
-
* Get a list of all permissions for the current user. Staff and support users can view all user permissions. The list can be filtered by user, scope, role, etc.
|
|
30969
|
+
* Get a list of all permissions for the current user. Staff and support users can view all user permissions. The list can be filtered by user, scope, role, etc. By default only active grants are returned; staff and support can pass show_inactive=true to include revoked grants (the full history).
|
|
30970
30970
|
*/
|
|
30971
30971
|
export const userPermissionsList = (options) => (options?.client ?? client).get({
|
|
30972
30972
|
security: [
|
|
@@ -31002,6 +31002,40 @@ export const userPermissionsRetrieve = (options) => (options.client ?? client).g
|
|
|
31002
31002
|
url: '/api/user-permissions/{uuid}/',
|
|
31003
31003
|
...options
|
|
31004
31004
|
});
|
|
31005
|
+
/**
|
|
31006
|
+
* Restore a revoked user role
|
|
31007
|
+
*
|
|
31008
|
+
* Restores a previously revoked user role grant, reinstating the associated permissions immediately. Restoring a role whose scope (e.g. a project) has been soft-deleted is not allowed.
|
|
31009
|
+
*/
|
|
31010
|
+
export const userPermissionsRestore = (options) => (options.client ?? client).post({
|
|
31011
|
+
security: [
|
|
31012
|
+
{ name: 'Authorization', type: 'apiKey' },
|
|
31013
|
+
{ scheme: 'bearer', type: 'http' }
|
|
31014
|
+
],
|
|
31015
|
+
url: '/api/user-permissions/{uuid}/restore/',
|
|
31016
|
+
...options,
|
|
31017
|
+
headers: {
|
|
31018
|
+
'Content-Type': 'application/json',
|
|
31019
|
+
...options.headers
|
|
31020
|
+
}
|
|
31021
|
+
});
|
|
31022
|
+
/**
|
|
31023
|
+
* Revoke a user role
|
|
31024
|
+
*
|
|
31025
|
+
* Revokes a specific user role grant, deactivating the associated permissions immediately.
|
|
31026
|
+
*/
|
|
31027
|
+
export const userPermissionsRevoke = (options) => (options.client ?? client).post({
|
|
31028
|
+
security: [
|
|
31029
|
+
{ name: 'Authorization', type: 'apiKey' },
|
|
31030
|
+
{ scheme: 'bearer', type: 'http' }
|
|
31031
|
+
],
|
|
31032
|
+
url: '/api/user-permissions/{uuid}/revoke/',
|
|
31033
|
+
...options,
|
|
31034
|
+
headers: {
|
|
31035
|
+
'Content-Type': 'application/json',
|
|
31036
|
+
...options.headers
|
|
31037
|
+
}
|
|
31038
|
+
});
|
|
31005
31039
|
export const usersList = (options) => (options?.client ?? client).get({
|
|
31006
31040
|
security: [
|
|
31007
31041
|
{ name: 'Authorization', type: 'apiKey' },
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -19086,19 +19086,25 @@ export type PeriodBreakdown = {
|
|
|
19086
19086
|
reconciled_count: number;
|
|
19087
19087
|
};
|
|
19088
19088
|
export type Permission = {
|
|
19089
|
+
readonly uuid: string;
|
|
19089
19090
|
readonly user_uuid: string;
|
|
19090
19091
|
readonly user_name: string;
|
|
19091
19092
|
readonly user_slug: string;
|
|
19092
19093
|
readonly created: string;
|
|
19093
19094
|
expiration_time?: string | null;
|
|
19095
|
+
is_active?: boolean | null;
|
|
19094
19096
|
readonly created_by_full_name: string;
|
|
19095
19097
|
readonly created_by_username: string;
|
|
19098
|
+
readonly revoked_by_full_name: string | null;
|
|
19099
|
+
readonly revoked_by_username: string | null;
|
|
19100
|
+
revoke_reason?: string;
|
|
19096
19101
|
readonly role_name: string;
|
|
19097
19102
|
readonly role_description: string;
|
|
19098
19103
|
readonly role_uuid: string;
|
|
19099
19104
|
readonly scope_type: string | null;
|
|
19100
19105
|
readonly scope_uuid: string;
|
|
19101
19106
|
readonly scope_name: string;
|
|
19107
|
+
readonly scope_is_removed: boolean;
|
|
19102
19108
|
readonly customer_uuid: string;
|
|
19103
19109
|
readonly customer_name: string;
|
|
19104
19110
|
readonly resource_uuid: string | null;
|
|
@@ -27938,6 +27944,9 @@ export type UserRoleDetails = {
|
|
|
27938
27944
|
export type UserRoleExpirationTime = {
|
|
27939
27945
|
expiration_time: string | null;
|
|
27940
27946
|
};
|
|
27947
|
+
export type UserRolePermissionActionRequest = {
|
|
27948
|
+
reason?: string;
|
|
27949
|
+
};
|
|
27941
27950
|
export type UserRoleUpdateRequest = {
|
|
27942
27951
|
role: string;
|
|
27943
27952
|
user: string;
|
|
@@ -47601,6 +47610,7 @@ export type MarketplaceOfferingPermissionsListData = {
|
|
|
47601
47610
|
* User full name contains
|
|
47602
47611
|
*/
|
|
47603
47612
|
full_name?: string;
|
|
47613
|
+
is_active?: boolean;
|
|
47604
47614
|
/**
|
|
47605
47615
|
* Modified after
|
|
47606
47616
|
*/
|
|
@@ -47676,6 +47686,7 @@ export type MarketplaceOfferingPermissionsCountData = {
|
|
|
47676
47686
|
* User full name contains
|
|
47677
47687
|
*/
|
|
47678
47688
|
full_name?: string;
|
|
47689
|
+
is_active?: boolean;
|
|
47679
47690
|
/**
|
|
47680
47691
|
* Modified after
|
|
47681
47692
|
*/
|
|
@@ -47753,6 +47764,7 @@ export type MarketplaceOfferingPermissionsLogListData = {
|
|
|
47753
47764
|
* User full name contains
|
|
47754
47765
|
*/
|
|
47755
47766
|
full_name?: string;
|
|
47767
|
+
is_active?: boolean;
|
|
47756
47768
|
/**
|
|
47757
47769
|
* Modified after
|
|
47758
47770
|
*/
|
|
@@ -47828,6 +47840,7 @@ export type MarketplaceOfferingPermissionsLogCountData = {
|
|
|
47828
47840
|
* User full name contains
|
|
47829
47841
|
*/
|
|
47830
47842
|
full_name?: string;
|
|
47843
|
+
is_active?: boolean;
|
|
47831
47844
|
/**
|
|
47832
47845
|
* Modified after
|
|
47833
47846
|
*/
|
|
@@ -59155,6 +59168,7 @@ export type MarketplaceServiceProvidersProjectPermissionsListData = {
|
|
|
59155
59168
|
* User full name contains
|
|
59156
59169
|
*/
|
|
59157
59170
|
full_name?: string;
|
|
59171
|
+
is_active?: boolean;
|
|
59158
59172
|
/**
|
|
59159
59173
|
* Modified after
|
|
59160
59174
|
*/
|
|
@@ -87222,6 +87236,7 @@ export type UserPermissionsListData = {
|
|
|
87222
87236
|
* User full name contains
|
|
87223
87237
|
*/
|
|
87224
87238
|
full_name?: string;
|
|
87239
|
+
is_active?: boolean;
|
|
87225
87240
|
/**
|
|
87226
87241
|
* Modified after
|
|
87227
87242
|
*/
|
|
@@ -87265,6 +87280,10 @@ export type UserPermissionsListData = {
|
|
|
87265
87280
|
* Scope UUID
|
|
87266
87281
|
*/
|
|
87267
87282
|
scope_uuid?: string;
|
|
87283
|
+
/**
|
|
87284
|
+
* Staff/support only. Include revoked (inactive) role grants in addition to active ones. Ignored for other users, who only ever see their own active roles.
|
|
87285
|
+
*/
|
|
87286
|
+
show_inactive?: boolean;
|
|
87268
87287
|
user?: string;
|
|
87269
87288
|
/**
|
|
87270
87289
|
* User slug contains
|
|
@@ -87296,6 +87315,7 @@ export type UserPermissionsCountData = {
|
|
|
87296
87315
|
* User full name contains
|
|
87297
87316
|
*/
|
|
87298
87317
|
full_name?: string;
|
|
87318
|
+
is_active?: boolean;
|
|
87299
87319
|
/**
|
|
87300
87320
|
* Modified after
|
|
87301
87321
|
*/
|
|
@@ -87339,6 +87359,10 @@ export type UserPermissionsCountData = {
|
|
|
87339
87359
|
* Scope UUID
|
|
87340
87360
|
*/
|
|
87341
87361
|
scope_uuid?: string;
|
|
87362
|
+
/**
|
|
87363
|
+
* Staff/support only. Include revoked (inactive) role grants in addition to active ones. Ignored for other users, who only ever see their own active roles.
|
|
87364
|
+
*/
|
|
87365
|
+
show_inactive?: boolean;
|
|
87342
87366
|
user?: string;
|
|
87343
87367
|
/**
|
|
87344
87368
|
* User slug contains
|
|
@@ -87367,6 +87391,34 @@ export type UserPermissionsRetrieveResponses = {
|
|
|
87367
87391
|
200: Permission;
|
|
87368
87392
|
};
|
|
87369
87393
|
export type UserPermissionsRetrieveResponse = UserPermissionsRetrieveResponses[keyof UserPermissionsRetrieveResponses];
|
|
87394
|
+
export type UserPermissionsRestoreData = {
|
|
87395
|
+
body?: UserRolePermissionActionRequest;
|
|
87396
|
+
path: {
|
|
87397
|
+
uuid: string;
|
|
87398
|
+
};
|
|
87399
|
+
query?: never;
|
|
87400
|
+
url: '/api/user-permissions/{uuid}/restore/';
|
|
87401
|
+
};
|
|
87402
|
+
export type UserPermissionsRestoreResponses = {
|
|
87403
|
+
/**
|
|
87404
|
+
* Role restored successfully.
|
|
87405
|
+
*/
|
|
87406
|
+
200: unknown;
|
|
87407
|
+
};
|
|
87408
|
+
export type UserPermissionsRevokeData = {
|
|
87409
|
+
body?: UserRolePermissionActionRequest;
|
|
87410
|
+
path: {
|
|
87411
|
+
uuid: string;
|
|
87412
|
+
};
|
|
87413
|
+
query?: never;
|
|
87414
|
+
url: '/api/user-permissions/{uuid}/revoke/';
|
|
87415
|
+
};
|
|
87416
|
+
export type UserPermissionsRevokeResponses = {
|
|
87417
|
+
/**
|
|
87418
|
+
* Role revoked successfully.
|
|
87419
|
+
*/
|
|
87420
|
+
200: unknown;
|
|
87421
|
+
};
|
|
87370
87422
|
export type UsersListData = {
|
|
87371
87423
|
body?: never;
|
|
87372
87424
|
path?: never;
|