waldur-js-client 8.0.10-dev.4 → 8.0.10-dev.6

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' },
@@ -10528,6 +10528,10 @@ export type MergedPluginOptions = {
10528
10528
  * List of project or organization role names (e.g. 'PROJECT.MANAGER') allowed to view and order this offering. When set, the offering is hidden from the catalog for other users and they cannot create orders for it. Whether their orders skip consumer review still depends on the role having the order-approval permission.
10529
10529
  */
10530
10530
  restricted_to_roles?: Array<string>;
10531
+ /**
10532
+ * List of project or organization role names (e.g. 'PROJECT.MANAGER') whose orders skip consumer review for this offering. The creator must hold the role on the target project or its organization. Independent of restricted_to_roles (which governs visibility/ordering) and of the ORDER.APPROVE permission. Provider review and purchase-order requirements still apply. Only staff can change this option.
10533
+ */
10534
+ auto_approve_for_roles?: Array<string>;
10531
10535
  /**
10532
10536
  * If set to True, users will be able to upload purchase orders.
10533
10537
  */
@@ -10874,6 +10878,10 @@ export type MergedPluginOptionsRequest = {
10874
10878
  * List of project or organization role names (e.g. 'PROJECT.MANAGER') allowed to view and order this offering. When set, the offering is hidden from the catalog for other users and they cannot create orders for it. Whether their orders skip consumer review still depends on the role having the order-approval permission.
10875
10879
  */
10876
10880
  restricted_to_roles?: Array<string>;
10881
+ /**
10882
+ * List of project or organization role names (e.g. 'PROJECT.MANAGER') whose orders skip consumer review for this offering. The creator must hold the role on the target project or its organization. Independent of restricted_to_roles (which governs visibility/ordering) and of the ORDER.APPROVE permission. Provider review and purchase-order requirements still apply. Only staff can change this option.
10883
+ */
10884
+ auto_approve_for_roles?: Array<string>;
10877
10885
  /**
10878
10886
  * If set to True, users will be able to upload purchase orders.
10879
10887
  */
@@ -19086,19 +19094,25 @@ export type PeriodBreakdown = {
19086
19094
  reconciled_count: number;
19087
19095
  };
19088
19096
  export type Permission = {
19097
+ readonly uuid: string;
19089
19098
  readonly user_uuid: string;
19090
19099
  readonly user_name: string;
19091
19100
  readonly user_slug: string;
19092
19101
  readonly created: string;
19093
19102
  expiration_time?: string | null;
19103
+ is_active?: boolean | null;
19094
19104
  readonly created_by_full_name: string;
19095
19105
  readonly created_by_username: string;
19106
+ readonly revoked_by_full_name: string | null;
19107
+ readonly revoked_by_username: string | null;
19108
+ revoke_reason?: string;
19096
19109
  readonly role_name: string;
19097
19110
  readonly role_description: string;
19098
19111
  readonly role_uuid: string;
19099
19112
  readonly scope_type: string | null;
19100
19113
  readonly scope_uuid: string;
19101
19114
  readonly scope_name: string;
19115
+ readonly scope_is_removed: boolean;
19102
19116
  readonly customer_uuid: string;
19103
19117
  readonly customer_name: string;
19104
19118
  readonly resource_uuid: string | null;
@@ -27938,6 +27952,9 @@ export type UserRoleDetails = {
27938
27952
  export type UserRoleExpirationTime = {
27939
27953
  expiration_time: string | null;
27940
27954
  };
27955
+ export type UserRolePermissionActionRequest = {
27956
+ reason?: string;
27957
+ };
27941
27958
  export type UserRoleUpdateRequest = {
27942
27959
  role: string;
27943
27960
  user: string;
@@ -47601,6 +47618,7 @@ export type MarketplaceOfferingPermissionsListData = {
47601
47618
  * User full name contains
47602
47619
  */
47603
47620
  full_name?: string;
47621
+ is_active?: boolean;
47604
47622
  /**
47605
47623
  * Modified after
47606
47624
  */
@@ -47676,6 +47694,7 @@ export type MarketplaceOfferingPermissionsCountData = {
47676
47694
  * User full name contains
47677
47695
  */
47678
47696
  full_name?: string;
47697
+ is_active?: boolean;
47679
47698
  /**
47680
47699
  * Modified after
47681
47700
  */
@@ -47753,6 +47772,7 @@ export type MarketplaceOfferingPermissionsLogListData = {
47753
47772
  * User full name contains
47754
47773
  */
47755
47774
  full_name?: string;
47775
+ is_active?: boolean;
47756
47776
  /**
47757
47777
  * Modified after
47758
47778
  */
@@ -47828,6 +47848,7 @@ export type MarketplaceOfferingPermissionsLogCountData = {
47828
47848
  * User full name contains
47829
47849
  */
47830
47850
  full_name?: string;
47851
+ is_active?: boolean;
47831
47852
  /**
47832
47853
  * Modified after
47833
47854
  */
@@ -59155,6 +59176,7 @@ export type MarketplaceServiceProvidersProjectPermissionsListData = {
59155
59176
  * User full name contains
59156
59177
  */
59157
59178
  full_name?: string;
59179
+ is_active?: boolean;
59158
59180
  /**
59159
59181
  * Modified after
59160
59182
  */
@@ -87222,6 +87244,7 @@ export type UserPermissionsListData = {
87222
87244
  * User full name contains
87223
87245
  */
87224
87246
  full_name?: string;
87247
+ is_active?: boolean;
87225
87248
  /**
87226
87249
  * Modified after
87227
87250
  */
@@ -87265,6 +87288,10 @@ export type UserPermissionsListData = {
87265
87288
  * Scope UUID
87266
87289
  */
87267
87290
  scope_uuid?: string;
87291
+ /**
87292
+ * 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.
87293
+ */
87294
+ show_inactive?: boolean;
87268
87295
  user?: string;
87269
87296
  /**
87270
87297
  * User slug contains
@@ -87296,6 +87323,7 @@ export type UserPermissionsCountData = {
87296
87323
  * User full name contains
87297
87324
  */
87298
87325
  full_name?: string;
87326
+ is_active?: boolean;
87299
87327
  /**
87300
87328
  * Modified after
87301
87329
  */
@@ -87339,6 +87367,10 @@ export type UserPermissionsCountData = {
87339
87367
  * Scope UUID
87340
87368
  */
87341
87369
  scope_uuid?: string;
87370
+ /**
87371
+ * 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.
87372
+ */
87373
+ show_inactive?: boolean;
87342
87374
  user?: string;
87343
87375
  /**
87344
87376
  * User slug contains
@@ -87367,6 +87399,34 @@ export type UserPermissionsRetrieveResponses = {
87367
87399
  200: Permission;
87368
87400
  };
87369
87401
  export type UserPermissionsRetrieveResponse = UserPermissionsRetrieveResponses[keyof UserPermissionsRetrieveResponses];
87402
+ export type UserPermissionsRestoreData = {
87403
+ body?: UserRolePermissionActionRequest;
87404
+ path: {
87405
+ uuid: string;
87406
+ };
87407
+ query?: never;
87408
+ url: '/api/user-permissions/{uuid}/restore/';
87409
+ };
87410
+ export type UserPermissionsRestoreResponses = {
87411
+ /**
87412
+ * Role restored successfully.
87413
+ */
87414
+ 200: unknown;
87415
+ };
87416
+ export type UserPermissionsRevokeData = {
87417
+ body?: UserRolePermissionActionRequest;
87418
+ path: {
87419
+ uuid: string;
87420
+ };
87421
+ query?: never;
87422
+ url: '/api/user-permissions/{uuid}/revoke/';
87423
+ };
87424
+ export type UserPermissionsRevokeResponses = {
87425
+ /**
87426
+ * Role revoked successfully.
87427
+ */
87428
+ 200: unknown;
87429
+ };
87370
87430
  export type UsersListData = {
87371
87431
  body?: never;
87372
87432
  path?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waldur-js-client",
3
- "version": "8.0.10-dev.4",
3
+ "version": "8.0.10-dev.6",
4
4
  "description": "JavaScript client for Waldur MasterMind generated from OpenAPI schema",
5
5
  "author": "Waldur Platform",
6
6
  "license": "MIT",