@stack-spot/portal-network 0.228.0 → 0.229.1

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.
Files changed (40) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/api/account.d.ts +331 -5
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +167 -5
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/ai.d.ts +2 -1
  7. package/dist/api/ai.d.ts.map +1 -1
  8. package/dist/api/ai.js.map +1 -1
  9. package/dist/api-addresses.d.ts.map +1 -1
  10. package/dist/api-addresses.js +0 -1
  11. package/dist/api-addresses.js.map +1 -1
  12. package/dist/apis-itau.json +0 -8
  13. package/dist/apis.json +0 -8
  14. package/dist/client/account.d.ts.map +1 -1
  15. package/dist/client/account.js +6 -6
  16. package/dist/client/types.d.ts +0 -48
  17. package/dist/client/types.d.ts.map +1 -1
  18. package/dist/index.d.ts +0 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +0 -1
  21. package/dist/index.js.map +1 -1
  22. package/package.json +2 -2
  23. package/src/api/account.ts +590 -5
  24. package/src/api/ai.ts +2 -1
  25. package/src/api-addresses.ts +0 -1
  26. package/src/apis-itau.json +0 -8
  27. package/src/apis.json +0 -8
  28. package/src/client/account.ts +10 -10
  29. package/src/client/types.ts +9 -66
  30. package/src/index.ts +0 -1
  31. package/dist/api/cloudServices.d.ts +0 -614
  32. package/dist/api/cloudServices.d.ts.map +0 -1
  33. package/dist/api/cloudServices.js +0 -355
  34. package/dist/api/cloudServices.js.map +0 -1
  35. package/dist/client/cloud-services.d.ts +0 -113
  36. package/dist/client/cloud-services.d.ts.map +0 -1
  37. package/dist/client/cloud-services.js +0 -146
  38. package/dist/client/cloud-services.js.map +0 -1
  39. package/src/api/cloudServices.ts +0 -1445
  40. package/src/client/cloud-services.ts +0 -94
package/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.229.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.229.0...portal-network@v0.229.1) (2026-03-09)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remove cloud services api ([#2078](https://github.com/stack-spot/portal-commons/issues/2078)) ([eda60e7](https://github.com/stack-spot/portal-commons/commit/eda60e70930caec6c9179304b9d3e73798d0a405))
9
+
10
+ ## [0.229.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.228.0...portal-network@v0.229.0) (2026-03-05)
11
+
12
+
13
+ ### Features
14
+
15
+ * add 'autonomous' to ModuleType and enhance GitAction types with org field ([b9bb2fc](https://github.com/stack-spot/portal-commons/commit/b9bb2fca840375f90e649f74e31dcaadf69fb26b))
16
+ * adiciona tipo ExportStatus e atualiza resposta de GetExportRequests ([#2073](https://github.com/stack-spot/portal-commons/issues/2073)) ([b44a269](https://github.com/stack-spot/portal-commons/commit/b44a2695aa71f77869bce5a6fc73037d9112160d))
17
+
18
+
19
+ ### Bug Fixes
20
+
21
+ * vulnerability ([#2080](https://github.com/stack-spot/portal-commons/issues/2080)) ([de87ede](https://github.com/stack-spot/portal-commons/commit/de87ede70b30289dc873e45f515de68b2ae3261e))
22
+
3
23
  ## [0.228.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.227.0...portal-network@v0.228.0) (2026-03-03)
4
24
 
5
25
 
@@ -315,6 +315,8 @@ export type AccountScmInfoResponse = {
315
315
  hasUserConfiguration?: boolean;
316
316
  /** Connection URL for on-premises provider */
317
317
  urlProvider?: string;
318
+ /** Authentication endpoint */
319
+ authorizationEndpoint?: string;
318
320
  };
319
321
  export type Value = object;
320
322
  export type Basic = Value & {
@@ -426,6 +428,56 @@ export type UpdatePermissionResourceActionRequest = {
426
428
  /** Action id to be updated. */
427
429
  actionIds: string[];
428
430
  };
431
+ export type PermissionSetStatementResponse = {
432
+ /** Resource id associated with the permission, or null */
433
+ resourceId?: string;
434
+ /** Resource type id associated with the permission */
435
+ resourceTypeId: string;
436
+ /** Action id for this permission */
437
+ actionId: string;
438
+ /** Whether this permission is inheritable */
439
+ inheritable: boolean;
440
+ };
441
+ export type GetByIdPermissionSetResponse = {
442
+ /** Permission set id */
443
+ id: string;
444
+ /** Permission set name */
445
+ name: string;
446
+ /** Permission set slug */
447
+ slug: string;
448
+ /** Permission set description */
449
+ description?: string;
450
+ /** Latest revision id of this permission set */
451
+ latestRevisionId?: number;
452
+ /** List of permissions/statements of this permission set */
453
+ permissions: PermissionSetStatementResponse[];
454
+ /** Creation timestamp */
455
+ createdAt: string;
456
+ /** Last update timestamp */
457
+ updatedAt?: string;
458
+ };
459
+ export type UpdatePermissionSetRequest = {
460
+ /** Permission set name */
461
+ name?: string;
462
+ /** Permission set description */
463
+ description?: string;
464
+ };
465
+ export type UpdatePermissionSetResponse = {
466
+ /** Permission set id */
467
+ id: string;
468
+ /** Permission set name */
469
+ name: string;
470
+ /** Permission set slug */
471
+ slug: string;
472
+ /** Permission set description */
473
+ description?: string;
474
+ /** Allowed resource type id for this permission set */
475
+ allowedResourceTypeId?: string;
476
+ /** Creation timestamp */
477
+ createdAt: string;
478
+ /** Last update timestamp */
479
+ updatedAt?: string;
480
+ };
429
481
  export type AccountMemberStackspotIamDto = {
430
482
  /** Unique identifier of the account member. */
431
483
  id: string;
@@ -1195,6 +1247,120 @@ export type CreateReviewAnswerRequest = {
1195
1247
  /** Comment of the review. */
1196
1248
  answer: string;
1197
1249
  };
1250
+ export type PermissionSetResponse = {
1251
+ /** Permission set id */
1252
+ id: string;
1253
+ /** Permission set name */
1254
+ name: string;
1255
+ /** Permission set slug */
1256
+ slug: string;
1257
+ /** Permission set description */
1258
+ description?: string;
1259
+ /** Latest revision id of this permission set */
1260
+ latestRevisionId?: number;
1261
+ /** Creation timestamp */
1262
+ createdAt: string;
1263
+ /** Last update timestamp */
1264
+ updatedAt?: string;
1265
+ };
1266
+ export type PageResponsePermissionSetResponse = {
1267
+ /** Current page content */
1268
+ items?: PermissionSetResponse[];
1269
+ /** Total elements found */
1270
+ totalElements: number;
1271
+ /** Current page number */
1272
+ page: number;
1273
+ /** Length of current page items */
1274
+ size: number;
1275
+ /** Total pages found */
1276
+ totalPages: number;
1277
+ };
1278
+ export type CreatePermissionSetRequest = {
1279
+ /** Permission set name */
1280
+ name: string;
1281
+ /** Permission set slug unique identifier */
1282
+ slug: string;
1283
+ /** Permission set description */
1284
+ description?: string;
1285
+ /** Allowed resource type id for this permission set */
1286
+ allowedResourceTypeId?: string;
1287
+ };
1288
+ export type CreatePermissionSetResponse = {
1289
+ /** Permission set id */
1290
+ id: string;
1291
+ /** Permission set name */
1292
+ name: string;
1293
+ /** Permission set slug */
1294
+ slug: string;
1295
+ /** Permission set description */
1296
+ description?: string;
1297
+ /** Allowed resource type id for this permission set */
1298
+ allowedResourceTypeId?: string;
1299
+ /** Creation timestamp */
1300
+ createdAt: string;
1301
+ /** Last update timestamp */
1302
+ updatedAt?: string;
1303
+ };
1304
+ export type PermissionSetRevisionResponse = {
1305
+ /** Revision id */
1306
+ id: number;
1307
+ /** Revision number */
1308
+ revision: number;
1309
+ /** Permission set id */
1310
+ permissionSetId: string;
1311
+ /** Creation date of the revision */
1312
+ createdAt: string;
1313
+ };
1314
+ export type PageResponsePermissionSetRevisionResponse = {
1315
+ /** Current page content */
1316
+ items?: PermissionSetRevisionResponse[];
1317
+ /** Total elements found */
1318
+ totalElements: number;
1319
+ /** Current page number */
1320
+ page: number;
1321
+ /** Length of current page items */
1322
+ size: number;
1323
+ /** Total pages found */
1324
+ totalPages: number;
1325
+ };
1326
+ export type PermissionSetStatementTemplateRequest = {
1327
+ /** Resource id (if null, template is parameterizable) */
1328
+ resourceId?: string;
1329
+ /** Resource type id */
1330
+ resourceTypeId?: string;
1331
+ /** Action id */
1332
+ actionId: string;
1333
+ /** Whether the permission is inheritable */
1334
+ inheritable: boolean;
1335
+ };
1336
+ export type CreatePermissionSetRevisionRequest = {
1337
+ /** Revision number */
1338
+ revision: number;
1339
+ /** List of statements for this revision */
1340
+ statements: PermissionSetStatementTemplateRequest[];
1341
+ };
1342
+ export type PermissionSetStatementTemplateResponse = {
1343
+ /** Resource id */
1344
+ resourceId?: string;
1345
+ /** Resource type id */
1346
+ resourceTypeId?: string;
1347
+ /** Action id */
1348
+ actionId: string;
1349
+ /** Whether the permission is inheritable */
1350
+ inheritable: boolean;
1351
+ };
1352
+ export type PermissionSetRevisionDetailedResponse = {
1353
+ /** Revision id */
1354
+ id: number;
1355
+ /** Revision number */
1356
+ revision: number;
1357
+ /** Permission set id */
1358
+ permissionSetId: string;
1359
+ /** List of permissions in the revision */
1360
+ permissions: PermissionSetStatementTemplateResponse[];
1361
+ /** Creation date of the revision */
1362
+ createdAt: string;
1363
+ };
1198
1364
  export type AccountMemberResponse = {
1199
1365
  /** Account member id */
1200
1366
  id: string;
@@ -1880,6 +2046,18 @@ export type AddPrivilegeToGroupRequest = {
1880
2046
  /** Whether the privilege is inheritable by child resources. */
1881
2047
  inheritable: boolean;
1882
2048
  };
2049
+ export type UnapplyPermissionSetToGroupRequest = {
2050
+ /** Provided Resource Id */
2051
+ resourceId?: string;
2052
+ };
2053
+ export type ApplyPermissionSetToGroupRequest = {
2054
+ /** Provided Resource Id */
2055
+ resourceId: string;
2056
+ /** Revision id to apply. If omitted, applies the latest revision. */
2057
+ revisionId?: number;
2058
+ /** Application reason/description for auditing. */
2059
+ description?: string;
2060
+ };
1883
2061
  export type ServiceCredentialUpdateRequestV3 = {
1884
2062
  /** Name of the service credential. */
1885
2063
  name?: string;
@@ -1983,6 +2161,12 @@ export type UpdateReviewAnswerRequest = {
1983
2161
  /** Comment of the review. */
1984
2162
  answer: string;
1985
2163
  };
2164
+ export type ApplyOrUnapplyPermissionSetRequest = {
2165
+ /** Revision id to apply. If omitted, applies unapplies the latest revision. */
2166
+ revisionId?: number;
2167
+ /** Application reason/description for auditing. */
2168
+ description?: string;
2169
+ };
1986
2170
  export type ReadPreferencesResponse = {
1987
2171
  /** Dashboard widgets preferences */
1988
2172
  dashboardWidgets?: string[];
@@ -2139,6 +2323,24 @@ export type AccountPartnerAdminDataUpdateRequest = {
2139
2323
  /** Admin email */
2140
2324
  email: string;
2141
2325
  };
2326
+ export type MemberGroupsResponse = {
2327
+ /** Group id */
2328
+ id: string;
2329
+ /** Group name */
2330
+ name: string;
2331
+ };
2332
+ export type PageResponseMemberGroupsResponse = {
2333
+ /** Current page content */
2334
+ items?: MemberGroupsResponse[];
2335
+ /** Total elements found */
2336
+ totalElements: number;
2337
+ /** Current page number */
2338
+ page: number;
2339
+ /** Length of current page items */
2340
+ size: number;
2341
+ /** Total pages found */
2342
+ totalPages: number;
2343
+ };
2142
2344
  export type ResourceTypeIdentifierRequest = {
2143
2345
  /** Slug of the resource type. */
2144
2346
  slug?: string;
@@ -2861,6 +3063,25 @@ export declare function updatePermissionResourceAction({ permissionId, resourceI
2861
3063
  resourceId: string;
2862
3064
  updatePermissionResourceActionRequest: UpdatePermissionResourceActionRequest;
2863
3065
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3066
+ /**
3067
+ * Get a permission set by Id
3068
+ */
3069
+ export declare function getById2({ permissionSetId }: {
3070
+ permissionSetId: string;
3071
+ }, opts?: Oazapfts.RequestOpts): Promise<GetByIdPermissionSetResponse>;
3072
+ /**
3073
+ * Update a permission set by Id
3074
+ */
3075
+ export declare function update1({ permissionSetId, updatePermissionSetRequest }: {
3076
+ permissionSetId: string;
3077
+ updatePermissionSetRequest: UpdatePermissionSetRequest;
3078
+ }, opts?: Oazapfts.RequestOpts): Promise<UpdatePermissionSetResponse>;
3079
+ /**
3080
+ * Delete a permission set by Id
3081
+ */
3082
+ export declare function delete1({ permissionSetId }: {
3083
+ permissionSetId: string;
3084
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2864
3085
  /**
2865
3086
  * Retrieves account member details by their unique identifier.
2866
3087
  */
@@ -3267,6 +3488,50 @@ export declare function createReviewAnswer({ reviewId, xMemberId, createReviewAn
3267
3488
  xMemberId: string;
3268
3489
  createReviewAnswerRequest: CreateReviewAnswerRequest;
3269
3490
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
3491
+ /**
3492
+ * List permissions set
3493
+ */
3494
+ export declare function listAll({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3495
+ size?: any;
3496
+ page?: any;
3497
+ sort?: string;
3498
+ direction?: "ASC" | "DESC";
3499
+ search?: string;
3500
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
3501
+ filterBy?: string;
3502
+ filterValue?: string;
3503
+ multiFilterMode?: string;
3504
+ filterIn?: any;
3505
+ }, opts?: Oazapfts.RequestOpts): Promise<PageResponsePermissionSetResponse>;
3506
+ /**
3507
+ * Creates a new permission set
3508
+ */
3509
+ export declare function create2({ createPermissionSetRequest }: {
3510
+ createPermissionSetRequest: CreatePermissionSetRequest;
3511
+ }, opts?: Oazapfts.RequestOpts): Promise<CreatePermissionSetResponse>;
3512
+ /**
3513
+ * List all revisions for a permission set
3514
+ */
3515
+ export declare function listRevisions({ permissionSetId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3516
+ permissionSetId: string;
3517
+ size?: any;
3518
+ page?: any;
3519
+ sort?: string;
3520
+ direction?: "ASC" | "DESC";
3521
+ search?: string;
3522
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
3523
+ filterBy?: string;
3524
+ filterValue?: string;
3525
+ multiFilterMode?: string;
3526
+ filterIn?: any;
3527
+ }, opts?: Oazapfts.RequestOpts): Promise<PageResponsePermissionSetRevisionResponse>;
3528
+ /**
3529
+ * Creates a new revision for a permission set
3530
+ */
3531
+ export declare function createRevision({ permissionSetId, createPermissionSetRevisionRequest }: {
3532
+ permissionSetId: string;
3533
+ createPermissionSetRevisionRequest: CreatePermissionSetRevisionRequest;
3534
+ }, opts?: Oazapfts.RequestOpts): Promise<PermissionSetRevisionDetailedResponse>;
3270
3535
  /**
3271
3536
  * Retrieves a list of account members for a specified account.
3272
3537
  */
@@ -3636,7 +3901,7 @@ export declare function getAccounts({ size, page, sort, direction, search, filte
3636
3901
  /**
3637
3902
  * Creates a new account order and returns the associated account ID.
3638
3903
  */
3639
- export declare function create2({ createAccountOrderRequest }: {
3904
+ export declare function create3({ createAccountOrderRequest }: {
3640
3905
  createAccountOrderRequest: CreateAccountOrderRequest;
3641
3906
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3642
3907
  /**
@@ -3716,10 +3981,26 @@ export declare function addPrivilegesToGroup({ groupId, body }: {
3716
3981
  groupId: string;
3717
3982
  body: AddPrivilegeToGroupRequest[];
3718
3983
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3984
+ /**
3985
+ * Unapply a permission-set in a group
3986
+ */
3987
+ export declare function unapplyPermissionSet({ groupId, permissionSetId, unapplyPermissionSetToGroupRequest }: {
3988
+ groupId: string;
3989
+ permissionSetId: string;
3990
+ unapplyPermissionSetToGroupRequest: UnapplyPermissionSetToGroupRequest;
3991
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3992
+ /**
3993
+ * Apply a permission-set to a group
3994
+ */
3995
+ export declare function applyPermissionSet({ groupId, permissionSetId, applyPermissionSetToGroupRequest }: {
3996
+ groupId: string;
3997
+ permissionSetId: string;
3998
+ applyPermissionSetToGroupRequest: ApplyPermissionSetToGroupRequest;
3999
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3719
4000
  /**
3720
4001
  * TODO: Description
3721
4002
  */
3722
- export declare function getById2({ id }: {
4003
+ export declare function getById3({ id }: {
3723
4004
  id: string;
3724
4005
  }, opts?: Oazapfts.RequestOpts): Promise<ServiceCredentialResponseV3>;
3725
4006
  /**
@@ -3930,6 +4211,20 @@ export declare function editReviewAnswer({ reviewId, answerId, xMemberId, update
3930
4211
  xMemberId: string;
3931
4212
  updateReviewAnswerRequest: UpdateReviewAnswerRequest;
3932
4213
  }, opts?: Oazapfts.RequestOpts): Promise<never>;
4214
+ /**
4215
+ * Unapplies a permission set to all groups connected to it
4216
+ */
4217
+ export declare function unapplyPermissionSet1({ permissionSetId, applyOrUnapplyPermissionSetRequest }: {
4218
+ permissionSetId: string;
4219
+ applyOrUnapplyPermissionSetRequest: ApplyOrUnapplyPermissionSetRequest;
4220
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
4221
+ /**
4222
+ * Applies a permission set massively to all groups connected to it
4223
+ */
4224
+ export declare function applyPermissionSet1({ permissionSetId, applyOrUnapplyPermissionSetRequest }: {
4225
+ permissionSetId: string;
4226
+ applyOrUnapplyPermissionSetRequest: ApplyOrUnapplyPermissionSetRequest;
4227
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3933
4228
  /**
3934
4229
  * Retrieves the preferences of a specific member.
3935
4230
  */
@@ -3994,13 +4289,13 @@ export declare function getGroupById({ groupId }: {
3994
4289
  /**
3995
4290
  * Delete Group
3996
4291
  */
3997
- export declare function delete1({ groupId }: {
4292
+ export declare function delete2({ groupId }: {
3998
4293
  groupId: string;
3999
4294
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
4000
4295
  /**
4001
4296
  * Update Group
4002
4297
  */
4003
- export declare function update1({ groupId, updateGroupRequest }: {
4298
+ export declare function update2({ groupId, updateGroupRequest }: {
4004
4299
  groupId: string;
4005
4300
  updateGroupRequest: UpdateGroupRequest;
4006
4301
  }, opts?: Oazapfts.RequestOpts): Promise<IamIdResponse>;
@@ -4111,6 +4406,23 @@ export declare function updatePartnerAccountAdminData({ id, accountPartnerAdminD
4111
4406
  id: string;
4112
4407
  accountPartnerAdminDataUpdateRequest: AccountPartnerAdminDataUpdateRequest;
4113
4408
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
4409
+ /**
4410
+ * Retrieves a list of groups for a specified member.
4411
+ */
4412
+ export declare function getMemberGroups1({ memberId, permission, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4413
+ memberId: string;
4414
+ permission: string;
4415
+ size?: any;
4416
+ page?: any;
4417
+ sort?: string;
4418
+ direction?: "ASC" | "DESC";
4419
+ search?: string;
4420
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4421
+ filterBy?: string;
4422
+ filterValue?: string;
4423
+ multiFilterMode?: string;
4424
+ filterIn?: any;
4425
+ }, opts?: Oazapfts.RequestOpts): Promise<PageResponseMemberGroupsResponse>;
4114
4426
  /**
4115
4427
  * Retrieve AI Resources
4116
4428
  */
@@ -4309,7 +4621,7 @@ export declare function getRoles4({ memberId, size, page, sort, direction, searc
4309
4621
  /**
4310
4622
  * Retrieves a list of groups for a specified member.
4311
4623
  */
4312
- export declare function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4624
+ export declare function getMemberGroups2({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4313
4625
  memberId: string;
4314
4626
  size?: any;
4315
4627
  page?: any;
@@ -4543,6 +4855,20 @@ export declare function getAccess({ resourceType, resource, action, attribute }:
4543
4855
  action: string;
4544
4856
  attribute?: string;
4545
4857
  }, opts?: Oazapfts.RequestOpts): Promise<boolean>;
4858
+ /**
4859
+ * Get a permission-set revision by id with permissions
4860
+ */
4861
+ export declare function getRevision({ permissionSetId, revisionId }: {
4862
+ permissionSetId: string;
4863
+ revisionId: number;
4864
+ }, opts?: Oazapfts.RequestOpts): Promise<PermissionSetRevisionDetailedResponse>;
4865
+ /**
4866
+ * Delete a revision of a permission set
4867
+ */
4868
+ export declare function deleteRevision({ permissionSetId, revisionId }: {
4869
+ permissionSetId: string;
4870
+ revisionId: number;
4871
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
4546
4872
  /**
4547
4873
  * Retrieves a list of resources associated with the specified member.
4548
4874
  */