@stack-spot/portal-network 0.229.0 → 0.229.2

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.
@@ -320,6 +320,8 @@ export type AccountScmInfoResponse = {
320
320
  hasUserConfiguration?: boolean;
321
321
  /** Connection URL for on-premises provider */
322
322
  urlProvider?: string;
323
+ /** Authentication endpoint */
324
+ authorizationEndpoint?: string;
323
325
  };
324
326
  export type Value = object;
325
327
  export type Basic = Value & {
@@ -431,6 +433,56 @@ export type UpdatePermissionResourceActionRequest = {
431
433
  /** Action id to be updated. */
432
434
  actionIds: string[];
433
435
  };
436
+ export type PermissionSetStatementResponse = {
437
+ /** Resource id associated with the permission, or null */
438
+ resourceId?: string;
439
+ /** Resource type id associated with the permission */
440
+ resourceTypeId: string;
441
+ /** Action id for this permission */
442
+ actionId: string;
443
+ /** Whether this permission is inheritable */
444
+ inheritable: boolean;
445
+ };
446
+ export type GetByIdPermissionSetResponse = {
447
+ /** Permission set id */
448
+ id: string;
449
+ /** Permission set name */
450
+ name: string;
451
+ /** Permission set slug */
452
+ slug: string;
453
+ /** Permission set description */
454
+ description?: string;
455
+ /** Latest revision id of this permission set */
456
+ latestRevisionId?: number;
457
+ /** List of permissions/statements of this permission set */
458
+ permissions: PermissionSetStatementResponse[];
459
+ /** Creation timestamp */
460
+ createdAt: string;
461
+ /** Last update timestamp */
462
+ updatedAt?: string;
463
+ };
464
+ export type UpdatePermissionSetRequest = {
465
+ /** Permission set name */
466
+ name?: string;
467
+ /** Permission set description */
468
+ description?: string;
469
+ };
470
+ export type UpdatePermissionSetResponse = {
471
+ /** Permission set id */
472
+ id: string;
473
+ /** Permission set name */
474
+ name: string;
475
+ /** Permission set slug */
476
+ slug: string;
477
+ /** Permission set description */
478
+ description?: string;
479
+ /** Allowed resource type id for this permission set */
480
+ allowedResourceTypeId?: string;
481
+ /** Creation timestamp */
482
+ createdAt: string;
483
+ /** Last update timestamp */
484
+ updatedAt?: string;
485
+ };
434
486
  export type AccountMemberStackspotIamDto = {
435
487
  /** Unique identifier of the account member. */
436
488
  id: string;
@@ -1200,6 +1252,120 @@ export type CreateReviewAnswerRequest = {
1200
1252
  /** Comment of the review. */
1201
1253
  answer: string;
1202
1254
  };
1255
+ export type PermissionSetResponse = {
1256
+ /** Permission set id */
1257
+ id: string;
1258
+ /** Permission set name */
1259
+ name: string;
1260
+ /** Permission set slug */
1261
+ slug: string;
1262
+ /** Permission set description */
1263
+ description?: string;
1264
+ /** Latest revision id of this permission set */
1265
+ latestRevisionId?: number;
1266
+ /** Creation timestamp */
1267
+ createdAt: string;
1268
+ /** Last update timestamp */
1269
+ updatedAt?: string;
1270
+ };
1271
+ export type PageResponsePermissionSetResponse = {
1272
+ /** Current page content */
1273
+ items?: PermissionSetResponse[];
1274
+ /** Total elements found */
1275
+ totalElements: number;
1276
+ /** Current page number */
1277
+ page: number;
1278
+ /** Length of current page items */
1279
+ size: number;
1280
+ /** Total pages found */
1281
+ totalPages: number;
1282
+ };
1283
+ export type CreatePermissionSetRequest = {
1284
+ /** Permission set name */
1285
+ name: string;
1286
+ /** Permission set slug unique identifier */
1287
+ slug: string;
1288
+ /** Permission set description */
1289
+ description?: string;
1290
+ /** Allowed resource type id for this permission set */
1291
+ allowedResourceTypeId?: string;
1292
+ };
1293
+ export type CreatePermissionSetResponse = {
1294
+ /** Permission set id */
1295
+ id: string;
1296
+ /** Permission set name */
1297
+ name: string;
1298
+ /** Permission set slug */
1299
+ slug: string;
1300
+ /** Permission set description */
1301
+ description?: string;
1302
+ /** Allowed resource type id for this permission set */
1303
+ allowedResourceTypeId?: string;
1304
+ /** Creation timestamp */
1305
+ createdAt: string;
1306
+ /** Last update timestamp */
1307
+ updatedAt?: string;
1308
+ };
1309
+ export type PermissionSetRevisionResponse = {
1310
+ /** Revision id */
1311
+ id: number;
1312
+ /** Revision number */
1313
+ revision: number;
1314
+ /** Permission set id */
1315
+ permissionSetId: string;
1316
+ /** Creation date of the revision */
1317
+ createdAt: string;
1318
+ };
1319
+ export type PageResponsePermissionSetRevisionResponse = {
1320
+ /** Current page content */
1321
+ items?: PermissionSetRevisionResponse[];
1322
+ /** Total elements found */
1323
+ totalElements: number;
1324
+ /** Current page number */
1325
+ page: number;
1326
+ /** Length of current page items */
1327
+ size: number;
1328
+ /** Total pages found */
1329
+ totalPages: number;
1330
+ };
1331
+ export type PermissionSetStatementTemplateRequest = {
1332
+ /** Resource id (if null, template is parameterizable) */
1333
+ resourceId?: string;
1334
+ /** Resource type id */
1335
+ resourceTypeId?: string;
1336
+ /** Action id */
1337
+ actionId: string;
1338
+ /** Whether the permission is inheritable */
1339
+ inheritable: boolean;
1340
+ };
1341
+ export type CreatePermissionSetRevisionRequest = {
1342
+ /** Revision number */
1343
+ revision: number;
1344
+ /** List of statements for this revision */
1345
+ statements: PermissionSetStatementTemplateRequest[];
1346
+ };
1347
+ export type PermissionSetStatementTemplateResponse = {
1348
+ /** Resource id */
1349
+ resourceId?: string;
1350
+ /** Resource type id */
1351
+ resourceTypeId?: string;
1352
+ /** Action id */
1353
+ actionId: string;
1354
+ /** Whether the permission is inheritable */
1355
+ inheritable: boolean;
1356
+ };
1357
+ export type PermissionSetRevisionDetailedResponse = {
1358
+ /** Revision id */
1359
+ id: number;
1360
+ /** Revision number */
1361
+ revision: number;
1362
+ /** Permission set id */
1363
+ permissionSetId: string;
1364
+ /** List of permissions in the revision */
1365
+ permissions: PermissionSetStatementTemplateResponse[];
1366
+ /** Creation date of the revision */
1367
+ createdAt: string;
1368
+ };
1203
1369
  export type AccountMemberResponse = {
1204
1370
  /** Account member id */
1205
1371
  id: string;
@@ -1885,6 +2051,18 @@ export type AddPrivilegeToGroupRequest = {
1885
2051
  /** Whether the privilege is inheritable by child resources. */
1886
2052
  inheritable: boolean;
1887
2053
  };
2054
+ export type UnapplyPermissionSetToGroupRequest = {
2055
+ /** Provided Resource Id */
2056
+ resourceId?: string;
2057
+ };
2058
+ export type ApplyPermissionSetToGroupRequest = {
2059
+ /** Provided Resource Id */
2060
+ resourceId: string;
2061
+ /** Revision id to apply. If omitted, applies the latest revision. */
2062
+ revisionId?: number;
2063
+ /** Application reason/description for auditing. */
2064
+ description?: string;
2065
+ };
1888
2066
  export type ServiceCredentialUpdateRequestV3 = {
1889
2067
  /** Name of the service credential. */
1890
2068
  name?: string;
@@ -1988,6 +2166,12 @@ export type UpdateReviewAnswerRequest = {
1988
2166
  /** Comment of the review. */
1989
2167
  answer: string;
1990
2168
  };
2169
+ export type ApplyOrUnapplyPermissionSetRequest = {
2170
+ /** Revision id to apply. If omitted, applies unapplies the latest revision. */
2171
+ revisionId?: number;
2172
+ /** Application reason/description for auditing. */
2173
+ description?: string;
2174
+ };
1991
2175
  export type ReadPreferencesResponse = {
1992
2176
  /** Dashboard widgets preferences */
1993
2177
  dashboardWidgets?: string[];
@@ -2144,6 +2328,24 @@ export type AccountPartnerAdminDataUpdateRequest = {
2144
2328
  /** Admin email */
2145
2329
  email: string;
2146
2330
  };
2331
+ export type MemberGroupsResponse = {
2332
+ /** Group id */
2333
+ id: string;
2334
+ /** Group name */
2335
+ name: string;
2336
+ };
2337
+ export type PageResponseMemberGroupsResponse = {
2338
+ /** Current page content */
2339
+ items?: MemberGroupsResponse[];
2340
+ /** Total elements found */
2341
+ totalElements: number;
2342
+ /** Current page number */
2343
+ page: number;
2344
+ /** Length of current page items */
2345
+ size: number;
2346
+ /** Total pages found */
2347
+ totalPages: number;
2348
+ };
2147
2349
  export type ResourceTypeIdentifierRequest = {
2148
2350
  /** Slug of the resource type. */
2149
2351
  slug?: string;
@@ -3413,6 +3615,69 @@ export function updatePermissionResourceAction({ permissionId, resourceId, updat
3413
3615
  body: updatePermissionResourceActionRequest
3414
3616
  })));
3415
3617
  }
3618
+ /**
3619
+ * Get a permission set by Id
3620
+ */
3621
+ export function getById2({ permissionSetId }: {
3622
+ permissionSetId: string;
3623
+ }, opts?: Oazapfts.RequestOpts) {
3624
+ return oazapfts.ok(oazapfts.fetchJson<{
3625
+ status: 200;
3626
+ data: GetByIdPermissionSetResponse;
3627
+ } | {
3628
+ status: 403;
3629
+ data: ErrorResponse;
3630
+ } | {
3631
+ status: 500;
3632
+ data: ErrorResponse;
3633
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}`, {
3634
+ ...opts
3635
+ }));
3636
+ }
3637
+ /**
3638
+ * Update a permission set by Id
3639
+ */
3640
+ export function update1({ permissionSetId, updatePermissionSetRequest }: {
3641
+ permissionSetId: string;
3642
+ updatePermissionSetRequest: UpdatePermissionSetRequest;
3643
+ }, opts?: Oazapfts.RequestOpts) {
3644
+ return oazapfts.ok(oazapfts.fetchJson<{
3645
+ status: 200;
3646
+ data: UpdatePermissionSetResponse;
3647
+ } | {
3648
+ status: 403;
3649
+ data: ErrorResponse;
3650
+ } | {
3651
+ status: 500;
3652
+ data: ErrorResponse;
3653
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}`, oazapfts.json({
3654
+ ...opts,
3655
+ method: "PUT",
3656
+ body: updatePermissionSetRequest
3657
+ })));
3658
+ }
3659
+ /**
3660
+ * Delete a permission set by Id
3661
+ */
3662
+ export function delete1({ permissionSetId }: {
3663
+ permissionSetId: string;
3664
+ }, opts?: Oazapfts.RequestOpts) {
3665
+ return oazapfts.ok(oazapfts.fetchJson<{
3666
+ status: 204;
3667
+ } | {
3668
+ status: 400;
3669
+ data: ErrorResponse;
3670
+ } | {
3671
+ status: 403;
3672
+ data: ErrorResponse;
3673
+ } | {
3674
+ status: 500;
3675
+ data: ErrorResponse;
3676
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}`, {
3677
+ ...opts,
3678
+ method: "DELETE"
3679
+ }));
3680
+ }
3416
3681
  /**
3417
3682
  * Retrieves account member details by their unique identifier.
3418
3683
  */
@@ -4675,6 +4940,134 @@ export function createReviewAnswer({ reviewId, xMemberId, createReviewAnswerRequ
4675
4940
  })
4676
4941
  })));
4677
4942
  }
4943
+ /**
4944
+ * List permissions set
4945
+ */
4946
+ export function listAll({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4947
+ size?: any;
4948
+ page?: any;
4949
+ sort?: string;
4950
+ direction?: "ASC" | "DESC";
4951
+ search?: string;
4952
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4953
+ filterBy?: string;
4954
+ filterValue?: string;
4955
+ multiFilterMode?: string;
4956
+ filterIn?: any;
4957
+ }, opts?: Oazapfts.RequestOpts) {
4958
+ return oazapfts.ok(oazapfts.fetchJson<{
4959
+ status: 200;
4960
+ data: PageResponsePermissionSetResponse;
4961
+ } | {
4962
+ status: 403;
4963
+ data: ErrorResponse;
4964
+ } | {
4965
+ status: 500;
4966
+ data: ErrorResponse;
4967
+ }>(`/v1/permission-sets${QS.query(QS.explode({
4968
+ size,
4969
+ page,
4970
+ sort,
4971
+ direction,
4972
+ search,
4973
+ filterMode,
4974
+ filterBy,
4975
+ filterValue,
4976
+ multiFilterMode,
4977
+ filterIn
4978
+ }))}`, {
4979
+ ...opts
4980
+ }));
4981
+ }
4982
+ /**
4983
+ * Creates a new permission set
4984
+ */
4985
+ export function create2({ createPermissionSetRequest }: {
4986
+ createPermissionSetRequest: CreatePermissionSetRequest;
4987
+ }, opts?: Oazapfts.RequestOpts) {
4988
+ return oazapfts.ok(oazapfts.fetchJson<{
4989
+ status: 201;
4990
+ data: CreatePermissionSetResponse;
4991
+ } | {
4992
+ status: 400;
4993
+ data: ErrorResponse;
4994
+ } | {
4995
+ status: 403;
4996
+ data: ErrorResponse;
4997
+ } | {
4998
+ status: 500;
4999
+ data: ErrorResponse;
5000
+ }>("/v1/permission-sets", oazapfts.json({
5001
+ ...opts,
5002
+ method: "POST",
5003
+ body: createPermissionSetRequest
5004
+ })));
5005
+ }
5006
+ /**
5007
+ * List all revisions for a permission set
5008
+ */
5009
+ export function listRevisions({ permissionSetId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5010
+ permissionSetId: string;
5011
+ size?: any;
5012
+ page?: any;
5013
+ sort?: string;
5014
+ direction?: "ASC" | "DESC";
5015
+ search?: string;
5016
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5017
+ filterBy?: string;
5018
+ filterValue?: string;
5019
+ multiFilterMode?: string;
5020
+ filterIn?: any;
5021
+ }, opts?: Oazapfts.RequestOpts) {
5022
+ return oazapfts.ok(oazapfts.fetchJson<{
5023
+ status: 200;
5024
+ data: PageResponsePermissionSetRevisionResponse;
5025
+ } | {
5026
+ status: 403;
5027
+ data: ErrorResponse;
5028
+ } | {
5029
+ status: 500;
5030
+ data: ErrorResponse;
5031
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}/revisions${QS.query(QS.explode({
5032
+ size,
5033
+ page,
5034
+ sort,
5035
+ direction,
5036
+ search,
5037
+ filterMode,
5038
+ filterBy,
5039
+ filterValue,
5040
+ multiFilterMode,
5041
+ filterIn
5042
+ }))}`, {
5043
+ ...opts
5044
+ }));
5045
+ }
5046
+ /**
5047
+ * Creates a new revision for a permission set
5048
+ */
5049
+ export function createRevision({ permissionSetId, createPermissionSetRevisionRequest }: {
5050
+ permissionSetId: string;
5051
+ createPermissionSetRevisionRequest: CreatePermissionSetRevisionRequest;
5052
+ }, opts?: Oazapfts.RequestOpts) {
5053
+ return oazapfts.ok(oazapfts.fetchJson<{
5054
+ status: 201;
5055
+ data: PermissionSetRevisionDetailedResponse;
5056
+ } | {
5057
+ status: 400;
5058
+ data: ErrorResponse;
5059
+ } | {
5060
+ status: 403;
5061
+ data: ErrorResponse;
5062
+ } | {
5063
+ status: 500;
5064
+ data: ErrorResponse;
5065
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}/revisions`, oazapfts.json({
5066
+ ...opts,
5067
+ method: "POST",
5068
+ body: createPermissionSetRevisionRequest
5069
+ })));
5070
+ }
4678
5071
  /**
4679
5072
  * Retrieves a list of account members for a specified account.
4680
5073
  */
@@ -5917,7 +6310,7 @@ export function getAccounts({ size, page, sort, direction, search, filterMode, f
5917
6310
  /**
5918
6311
  * Creates a new account order and returns the associated account ID.
5919
6312
  */
5920
- export function create2({ createAccountOrderRequest }: {
6313
+ export function create3({ createAccountOrderRequest }: {
5921
6314
  createAccountOrderRequest: CreateAccountOrderRequest;
5922
6315
  }, opts?: Oazapfts.RequestOpts) {
5923
6316
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -6171,10 +6564,69 @@ export function addPrivilegesToGroup({ groupId, body }: {
6171
6564
  body
6172
6565
  })));
6173
6566
  }
6567
+ /**
6568
+ * Unapply a permission-set in a group
6569
+ */
6570
+ export function unapplyPermissionSet({ groupId, permissionSetId, unapplyPermissionSetToGroupRequest }: {
6571
+ groupId: string;
6572
+ permissionSetId: string;
6573
+ unapplyPermissionSetToGroupRequest: UnapplyPermissionSetToGroupRequest;
6574
+ }, opts?: Oazapfts.RequestOpts) {
6575
+ return oazapfts.ok(oazapfts.fetchJson<{
6576
+ status: 200;
6577
+ } | {
6578
+ status: 400;
6579
+ data: ErrorResponse;
6580
+ } | {
6581
+ status: 403;
6582
+ data: ErrorResponse;
6583
+ } | {
6584
+ status: 404;
6585
+ data: ErrorResponse;
6586
+ } | {
6587
+ status: 500;
6588
+ data: ErrorResponse;
6589
+ }>(`/v4/groups/${encodeURIComponent(groupId)}/permission-sets/${encodeURIComponent(permissionSetId)}`, oazapfts.json({
6590
+ ...opts,
6591
+ method: "DELETE",
6592
+ body: unapplyPermissionSetToGroupRequest
6593
+ })));
6594
+ }
6595
+ /**
6596
+ * Apply a permission-set to a group
6597
+ */
6598
+ export function applyPermissionSet({ groupId, permissionSetId, applyPermissionSetToGroupRequest }: {
6599
+ groupId: string;
6600
+ permissionSetId: string;
6601
+ applyPermissionSetToGroupRequest: ApplyPermissionSetToGroupRequest;
6602
+ }, opts?: Oazapfts.RequestOpts) {
6603
+ return oazapfts.ok(oazapfts.fetchJson<{
6604
+ status: 200;
6605
+ } | {
6606
+ status: 400;
6607
+ data: ErrorResponse;
6608
+ } | {
6609
+ status: 403;
6610
+ data: ErrorResponse;
6611
+ } | {
6612
+ status: 404;
6613
+ data: ErrorResponse;
6614
+ } | {
6615
+ status: 422;
6616
+ data: ErrorResponse;
6617
+ } | {
6618
+ status: 500;
6619
+ data: ErrorResponse;
6620
+ }>(`/v4/groups/${encodeURIComponent(groupId)}/permission-sets/${encodeURIComponent(permissionSetId)}`, oazapfts.json({
6621
+ ...opts,
6622
+ method: "PATCH",
6623
+ body: applyPermissionSetToGroupRequest
6624
+ })));
6625
+ }
6174
6626
  /**
6175
6627
  * TODO: Description
6176
6628
  */
6177
- export function getById2({ id }: {
6629
+ export function getById3({ id }: {
6178
6630
  id: string;
6179
6631
  }, opts?: Oazapfts.RequestOpts) {
6180
6632
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -6826,6 +7278,54 @@ export function editReviewAnswer({ reviewId, answerId, xMemberId, updateReviewAn
6826
7278
  })
6827
7279
  })));
6828
7280
  }
7281
+ /**
7282
+ * Unapplies a permission set to all groups connected to it
7283
+ */
7284
+ export function unapplyPermissionSet1({ permissionSetId, applyOrUnapplyPermissionSetRequest }: {
7285
+ permissionSetId: string;
7286
+ applyOrUnapplyPermissionSetRequest: ApplyOrUnapplyPermissionSetRequest;
7287
+ }, opts?: Oazapfts.RequestOpts) {
7288
+ return oazapfts.ok(oazapfts.fetchJson<{
7289
+ status: 204;
7290
+ } | {
7291
+ status: 400;
7292
+ data: ErrorResponse;
7293
+ } | {
7294
+ status: 403;
7295
+ data: ErrorResponse;
7296
+ } | {
7297
+ status: 500;
7298
+ data: ErrorResponse;
7299
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}/unapply`, oazapfts.json({
7300
+ ...opts,
7301
+ method: "PATCH",
7302
+ body: applyOrUnapplyPermissionSetRequest
7303
+ })));
7304
+ }
7305
+ /**
7306
+ * Applies a permission set massively to all groups connected to it
7307
+ */
7308
+ export function applyPermissionSet1({ permissionSetId, applyOrUnapplyPermissionSetRequest }: {
7309
+ permissionSetId: string;
7310
+ applyOrUnapplyPermissionSetRequest: ApplyOrUnapplyPermissionSetRequest;
7311
+ }, opts?: Oazapfts.RequestOpts) {
7312
+ return oazapfts.ok(oazapfts.fetchJson<{
7313
+ status: 200;
7314
+ } | {
7315
+ status: 400;
7316
+ data: ErrorResponse;
7317
+ } | {
7318
+ status: 403;
7319
+ data: ErrorResponse;
7320
+ } | {
7321
+ status: 500;
7322
+ data: ErrorResponse;
7323
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}/apply`, oazapfts.json({
7324
+ ...opts,
7325
+ method: "PATCH",
7326
+ body: applyOrUnapplyPermissionSetRequest
7327
+ })));
7328
+ }
6829
7329
  /**
6830
7330
  * Retrieves the preferences of a specific member.
6831
7331
  */
@@ -7035,7 +7535,7 @@ export function getGroupById({ groupId }: {
7035
7535
  /**
7036
7536
  * Delete Group
7037
7537
  */
7038
- export function delete1({ groupId }: {
7538
+ export function delete2({ groupId }: {
7039
7539
  groupId: string;
7040
7540
  }, opts?: Oazapfts.RequestOpts) {
7041
7541
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -7057,7 +7557,7 @@ export function delete1({ groupId }: {
7057
7557
  /**
7058
7558
  * Update Group
7059
7559
  */
7060
- export function update1({ groupId, updateGroupRequest }: {
7560
+ export function update2({ groupId, updateGroupRequest }: {
7061
7561
  groupId: string;
7062
7562
  updateGroupRequest: UpdateGroupRequest;
7063
7563
  }, opts?: Oazapfts.RequestOpts) {
@@ -7473,6 +7973,48 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
7473
7973
  body: accountPartnerAdminDataUpdateRequest
7474
7974
  })));
7475
7975
  }
7976
+ /**
7977
+ * Retrieves a list of groups for a specified member.
7978
+ */
7979
+ export function getMemberGroups1({ memberId, permission, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7980
+ memberId: string;
7981
+ permission: string;
7982
+ size?: any;
7983
+ page?: any;
7984
+ sort?: string;
7985
+ direction?: "ASC" | "DESC";
7986
+ search?: string;
7987
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
7988
+ filterBy?: string;
7989
+ filterValue?: string;
7990
+ multiFilterMode?: string;
7991
+ filterIn?: any;
7992
+ }, opts?: Oazapfts.RequestOpts) {
7993
+ return oazapfts.ok(oazapfts.fetchJson<{
7994
+ status: 200;
7995
+ data: PageResponseMemberGroupsResponse;
7996
+ } | {
7997
+ status: 403;
7998
+ data: ErrorResponse;
7999
+ } | {
8000
+ status: 500;
8001
+ data: ErrorResponse;
8002
+ }>(`/v4/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
8003
+ permission,
8004
+ size,
8005
+ page,
8006
+ sort,
8007
+ direction,
8008
+ search,
8009
+ filterMode,
8010
+ filterBy,
8011
+ filterValue,
8012
+ multiFilterMode,
8013
+ filterIn
8014
+ }))}`, {
8015
+ ...opts
8016
+ }));
8017
+ }
7476
8018
  /**
7477
8019
  * Retrieve AI Resources
7478
8020
  */
@@ -7995,7 +8537,7 @@ export function getRoles4({ memberId, size, page, sort, direction, search, filte
7995
8537
  /**
7996
8538
  * Retrieves a list of groups for a specified member.
7997
8539
  */
7998
- export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
8540
+ export function getMemberGroups2({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7999
8541
  memberId: string;
8000
8542
  size?: any;
8001
8543
  page?: any;
@@ -8667,6 +9209,49 @@ export function getAccess({ resourceType, resource, action, attribute }: {
8667
9209
  ...opts
8668
9210
  }));
8669
9211
  }
9212
+ /**
9213
+ * Get a permission-set revision by id with permissions
9214
+ */
9215
+ export function getRevision({ permissionSetId, revisionId }: {
9216
+ permissionSetId: string;
9217
+ revisionId: number;
9218
+ }, opts?: Oazapfts.RequestOpts) {
9219
+ return oazapfts.ok(oazapfts.fetchJson<{
9220
+ status: 200;
9221
+ data: PermissionSetRevisionDetailedResponse;
9222
+ } | {
9223
+ status: 403;
9224
+ data: ErrorResponse;
9225
+ } | {
9226
+ status: 500;
9227
+ data: ErrorResponse;
9228
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}/revisions/${encodeURIComponent(revisionId)}`, {
9229
+ ...opts
9230
+ }));
9231
+ }
9232
+ /**
9233
+ * Delete a revision of a permission set
9234
+ */
9235
+ export function deleteRevision({ permissionSetId, revisionId }: {
9236
+ permissionSetId: string;
9237
+ revisionId: number;
9238
+ }, opts?: Oazapfts.RequestOpts) {
9239
+ return oazapfts.ok(oazapfts.fetchJson<{
9240
+ status: 204;
9241
+ } | {
9242
+ status: 400;
9243
+ data: ErrorResponse;
9244
+ } | {
9245
+ status: 403;
9246
+ data: ErrorResponse;
9247
+ } | {
9248
+ status: 500;
9249
+ data: ErrorResponse;
9250
+ }>(`/v1/permission-sets/${encodeURIComponent(permissionSetId)}/revisions/${encodeURIComponent(revisionId)}`, {
9251
+ ...opts,
9252
+ method: "DELETE"
9253
+ }));
9254
+ }
8670
9255
  /**
8671
9256
  * Retrieves a list of resources associated with the specified member.
8672
9257
  */
@@ -146,7 +146,6 @@ const networkApiNameToOpaApiName = {
146
146
  ai: 'code-buddy',
147
147
  dataIntegration: 'data-integration',
148
148
  workspaceManager: 'workspace-manager',
149
- cloudServices: 'cloud-services',
150
149
  cloudAccount: 'cloud-account',
151
150
  codeShift: 'code-shift',
152
151
  genAiInference: 'ai-inference',