waldur-js-client 8.0.10-dev.3 → 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/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' },
@@ -14237,6 +14237,7 @@ export type OpenPortalQuota = {
14237
14237
  usage?: string;
14238
14238
  };
14239
14239
  export type OpenStackAllowedAddressPair = {
14240
+ ip_address?: string;
14240
14241
  mac_address?: string;
14241
14242
  };
14242
14243
  export type OpenStackAllowedAddressPairRequest = {
@@ -19085,19 +19086,25 @@ export type PeriodBreakdown = {
19085
19086
  reconciled_count: number;
19086
19087
  };
19087
19088
  export type Permission = {
19089
+ readonly uuid: string;
19088
19090
  readonly user_uuid: string;
19089
19091
  readonly user_name: string;
19090
19092
  readonly user_slug: string;
19091
19093
  readonly created: string;
19092
19094
  expiration_time?: string | null;
19095
+ is_active?: boolean | null;
19093
19096
  readonly created_by_full_name: string;
19094
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;
19095
19101
  readonly role_name: string;
19096
19102
  readonly role_description: string;
19097
19103
  readonly role_uuid: string;
19098
19104
  readonly scope_type: string | null;
19099
19105
  readonly scope_uuid: string;
19100
19106
  readonly scope_name: string;
19107
+ readonly scope_is_removed: boolean;
19101
19108
  readonly customer_uuid: string;
19102
19109
  readonly customer_name: string;
19103
19110
  readonly resource_uuid: string | null;
@@ -27937,6 +27944,9 @@ export type UserRoleDetails = {
27937
27944
  export type UserRoleExpirationTime = {
27938
27945
  expiration_time: string | null;
27939
27946
  };
27947
+ export type UserRolePermissionActionRequest = {
27948
+ reason?: string;
27949
+ };
27940
27950
  export type UserRoleUpdateRequest = {
27941
27951
  role: string;
27942
27952
  user: string;
@@ -47600,6 +47610,7 @@ export type MarketplaceOfferingPermissionsListData = {
47600
47610
  * User full name contains
47601
47611
  */
47602
47612
  full_name?: string;
47613
+ is_active?: boolean;
47603
47614
  /**
47604
47615
  * Modified after
47605
47616
  */
@@ -47675,6 +47686,7 @@ export type MarketplaceOfferingPermissionsCountData = {
47675
47686
  * User full name contains
47676
47687
  */
47677
47688
  full_name?: string;
47689
+ is_active?: boolean;
47678
47690
  /**
47679
47691
  * Modified after
47680
47692
  */
@@ -47752,6 +47764,7 @@ export type MarketplaceOfferingPermissionsLogListData = {
47752
47764
  * User full name contains
47753
47765
  */
47754
47766
  full_name?: string;
47767
+ is_active?: boolean;
47755
47768
  /**
47756
47769
  * Modified after
47757
47770
  */
@@ -47827,6 +47840,7 @@ export type MarketplaceOfferingPermissionsLogCountData = {
47827
47840
  * User full name contains
47828
47841
  */
47829
47842
  full_name?: string;
47843
+ is_active?: boolean;
47830
47844
  /**
47831
47845
  * Modified after
47832
47846
  */
@@ -59154,6 +59168,7 @@ export type MarketplaceServiceProvidersProjectPermissionsListData = {
59154
59168
  * User full name contains
59155
59169
  */
59156
59170
  full_name?: string;
59171
+ is_active?: boolean;
59157
59172
  /**
59158
59173
  * Modified after
59159
59174
  */
@@ -87221,6 +87236,7 @@ export type UserPermissionsListData = {
87221
87236
  * User full name contains
87222
87237
  */
87223
87238
  full_name?: string;
87239
+ is_active?: boolean;
87224
87240
  /**
87225
87241
  * Modified after
87226
87242
  */
@@ -87264,6 +87280,10 @@ export type UserPermissionsListData = {
87264
87280
  * Scope UUID
87265
87281
  */
87266
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;
87267
87287
  user?: string;
87268
87288
  /**
87269
87289
  * User slug contains
@@ -87295,6 +87315,7 @@ export type UserPermissionsCountData = {
87295
87315
  * User full name contains
87296
87316
  */
87297
87317
  full_name?: string;
87318
+ is_active?: boolean;
87298
87319
  /**
87299
87320
  * Modified after
87300
87321
  */
@@ -87338,6 +87359,10 @@ export type UserPermissionsCountData = {
87338
87359
  * Scope UUID
87339
87360
  */
87340
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;
87341
87366
  user?: string;
87342
87367
  /**
87343
87368
  * User slug contains
@@ -87366,6 +87391,34 @@ export type UserPermissionsRetrieveResponses = {
87366
87391
  200: Permission;
87367
87392
  };
87368
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
+ };
87369
87422
  export type UsersListData = {
87370
87423
  body?: never;
87371
87424
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.10-dev.3",
3
+ "version": "8.0.10-dev.5",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",