@stack-spot/portal-network 0.96.0 → 0.97.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.97.1](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.97.0...portal-network@v0.97.1) (2025-03-17)
4
+
5
+
6
+ ### Features
7
+
8
+ * Rate Limit ([ba18cf9](https://github.com/stack-spot/portal-commons/commit/ba18cf940104a099e1c79bf859795d5d5f4d075f))
9
+
10
+ ## [0.97.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.96.0...portal-network@v0.97.0) (2025-03-17)
11
+
12
+
13
+ ### Features
14
+
15
+ * update workflow API ([#803](https://github.com/stack-spot/portal-commons/issues/803)) ([69abbfd](https://github.com/stack-spot/portal-commons/commit/69abbfd41d02a1dcb7a8ed7e3d0064db8f510956))
16
+
3
17
  ## [0.96.0](https://github.com/stack-spot/portal-commons/compare/portal-network@v0.95.0...portal-network@v0.96.0) (2025-03-17)
4
18
 
5
19
 
@@ -1307,6 +1307,10 @@ export type RotateServiceCredentialSecretRequest = {
1307
1307
  export type RotateServiceCredentialSecretResponse = {
1308
1308
  secret?: string;
1309
1309
  };
1310
+ export type UpdateServiceCredentialScopesRequest = {
1311
+ /** Service credential statements */
1312
+ scopes: string[];
1313
+ };
1310
1314
  export type DeleteMemberPermissionsRequest = {
1311
1315
  /** Permission Action */
1312
1316
  actionName: string;
@@ -1445,6 +1449,30 @@ export type AccountSsoAddAttributesConfigRequest = {
1445
1449
  /** SSO Last Name attribute configuration */
1446
1450
  lastName?: string;
1447
1451
  };
1452
+ export type RateLimitResponse = {
1453
+ /** Maximum number of executions per day */
1454
+ patMaxExecPerDay: number;
1455
+ /** default number of executions per min */
1456
+ scDefaultMaxPerMin: number;
1457
+ /** default number of executions per day */
1458
+ scDefaultMaxPerDay: number;
1459
+ /** number of executions per min */
1460
+ scMaxPerMin: number;
1461
+ /** number of executions per min */
1462
+ scMaxPerDay: number;
1463
+ };
1464
+ export type UpdateRateLimitRequest = {
1465
+ /** Maximum number of executions per day */
1466
+ patMaxExecPerDay?: number;
1467
+ /** default number of executions per min */
1468
+ scDefaultMaxPerMin?: number;
1469
+ /** default number of executions per day */
1470
+ scDefaultMaxPerDay?: number;
1471
+ /** number of executions per min */
1472
+ scMaxPerMin?: number;
1473
+ /** number of executions per min */
1474
+ scMaxPerDay?: number;
1475
+ };
1448
1476
  export type AccountPartnerAccountDataUpdateRequest = {
1449
1477
  /** The account's name. Example: Zup IT Innovation */
1450
1478
  name?: string;
@@ -2003,20 +2031,20 @@ export declare function updateAccountStatus({ accountId, accountStatusRequest }:
2003
2031
  accountStatusRequest: AccountStatusRequest;
2004
2032
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2005
2033
  /**
2006
- * Get a configured SSO from account
2034
+ * Retrieves detailed SSO information for a specified account.
2007
2035
  */
2008
2036
  export declare function getAccountSso({ id }: {
2009
2037
  id: string;
2010
2038
  }, opts?: Oazapfts.RequestOpts): Promise<AccountSsoDetailedResponse>;
2011
2039
  /**
2012
- * Update a configured SSO from account
2040
+ * Updates an existing SSO configuration for a specified ID.
2013
2041
  */
2014
2042
  export declare function updateSso({ id, accountSsoUpdateRequest }: {
2015
2043
  id: string;
2016
2044
  accountSsoUpdateRequest: AccountSsoUpdateRequest;
2017
2045
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2018
2046
  /**
2019
- * Delete a configured Account SSO from account
2047
+ * Deletes a SSO configuration by its ID.
2020
2048
  */
2021
2049
  export declare function deleteSso({ id }: {
2022
2050
  id: string;
@@ -2029,14 +2057,14 @@ export declare function partialUpdateSso({ id, accountSsoPartialUpdateRequest }:
2029
2057
  accountSsoPartialUpdateRequest: AccountSsoPartialUpdateRequest;
2030
2058
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2031
2059
  /**
2032
- * Get SSO Group Mapping By Id
2060
+ * Retrieves the details of a SSO group mapping by its ID.
2033
2061
  */
2034
2062
  export declare function getGroupMapById({ id, attributeImporterId }: {
2035
2063
  id: string;
2036
2064
  attributeImporterId: string;
2037
2065
  }, opts?: Oazapfts.RequestOpts): Promise<AccountSsoGroupMappingResponse>;
2038
2066
  /**
2039
- * Update SSO Group Mapping
2067
+ * Updates the SSO group mapping.
2040
2068
  */
2041
2069
  export declare function updateGroupMapping({ id, attributeImporterId, accountGroupMappingUpdateRequest }: {
2042
2070
  id: string;
@@ -2044,14 +2072,14 @@ export declare function updateGroupMapping({ id, attributeImporterId, accountGro
2044
2072
  accountGroupMappingUpdateRequest: AccountGroupMappingUpdateRequest;
2045
2073
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2046
2074
  /**
2047
- * Delete SSO Group Mapping
2075
+ * Deletes SSO Group Mapping.
2048
2076
  */
2049
2077
  export declare function deleteGroupMapping({ id, attributeImporterId }: {
2050
2078
  id: string;
2051
2079
  attributeImporterId: string;
2052
2080
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2053
2081
  /**
2054
- * Get Service Credentials
2082
+ * Retrieves a list of service credentials associated with the current user
2055
2083
  */
2056
2084
  export declare function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }: {
2057
2085
  size?: any;
@@ -2068,13 +2096,13 @@ export declare function getServiceCredentials({ size, page, sort, direction, sea
2068
2096
  status?: string;
2069
2097
  }, opts?: Oazapfts.RequestOpts): Promise<PageResponseServiceCredentialResponse>;
2070
2098
  /**
2071
- * Create Service Credential v2
2099
+ * Creates a new service credential for the current user.
2072
2100
  */
2073
2101
  export declare function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
2074
2102
  serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
2075
2103
  }, opts?: Oazapfts.RequestOpts): Promise<ServiceCredentialCreateResponseV2>;
2076
2104
  /**
2077
- * Get Service Credentials
2105
+ * Retrieves a list of service credentials with their associated owner information if available.
2078
2106
  */
2079
2107
  export declare function getServiceCredentials1({ name, status, page, size }: {
2080
2108
  name?: string;
@@ -2083,13 +2111,13 @@ export declare function getServiceCredentials1({ name, status, page, size }: {
2083
2111
  size?: string;
2084
2112
  }, opts?: Oazapfts.RequestOpts): Promise<ServiceCredentialResponse[]>;
2085
2113
  /**
2086
- * Create Service Credential
2114
+ * Creates a new service credential for an account.
2087
2115
  */
2088
2116
  export declare function createServiceCredential1({ serviceCredentialCreateRequest }: {
2089
2117
  serviceCredentialCreateRequest: ServiceCredentialCreateRequest;
2090
2118
  }, opts?: Oazapfts.RequestOpts): Promise<ServiceCredentialCreateResponse>;
2091
2119
  /**
2092
- * Notify about Service Credential expiration
2120
+ * Notifies the user about the expiration of the service credential via email.
2093
2121
  */
2094
2122
  export declare function notifyServiceCredentialExpiration({ serviceCredentialExpirationRequest }: {
2095
2123
  serviceCredentialExpirationRequest: ServiceCredentialExpirationNotifyRequest;
@@ -2201,7 +2229,7 @@ export declare function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
2201
2229
  roleGroupIdsRequest: RoleGroupIdsRequest;
2202
2230
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2203
2231
  /**
2204
- * Get Resources
2232
+ * Retrieves a list of resources.
2205
2233
  */
2206
2234
  export declare function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2207
2235
  size?: any;
@@ -2216,7 +2244,7 @@ export declare function getResources1({ size, page, sort, direction, search, fil
2216
2244
  filterIn?: any;
2217
2245
  }, opts?: Oazapfts.RequestOpts): Promise<ResourceResponse[]>;
2218
2246
  /**
2219
- * Create a new resource for Account
2247
+ * Creates a new resource for the account.
2220
2248
  */
2221
2249
  export declare function createResource({ createResourceRequest }: {
2222
2250
  createResourceRequest: CreateResourceRequest;
@@ -2295,13 +2323,13 @@ export declare function bindToGroups({ memberId, memberIdsCommonRequest }: {
2295
2323
  memberIdsCommonRequest: MemberIdsCommonRequest;
2296
2324
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2297
2325
  /**
2298
- * Get account member favorite resources
2326
+ * Lists all favorite resources associated with a specific member.
2299
2327
  */
2300
2328
  export declare function listAccountMemberFavorites({ memberId }: {
2301
2329
  memberId: string;
2302
2330
  }, opts?: Oazapfts.RequestOpts): Promise<FavoriteResourcesResponse[]>;
2303
2331
  /**
2304
- * Add account member favorite resource
2332
+ * Adds a favorite resource to a member.
2305
2333
  */
2306
2334
  export declare function addAccountMemberFavorite({ memberId, createFavoriteResourceRequest }: {
2307
2335
  memberId: string;
@@ -2556,7 +2584,7 @@ export declare function create1({ createAccountOrderRequest }: {
2556
2584
  createAccountOrderRequest: CreateAccountOrderRequest;
2557
2585
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2558
2586
  /**
2559
- * Get All SSO Group Mapping
2587
+ * Retrieves a list of SSO group mappings.
2560
2588
  */
2561
2589
  export declare function getAllGroupMapping({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2562
2590
  id: string;
@@ -2572,21 +2600,21 @@ export declare function getAllGroupMapping({ id, size, page, sort, direction, se
2572
2600
  filterIn?: any;
2573
2601
  }, opts?: Oazapfts.RequestOpts): Promise<PageResponseAccountSsoGroupMappingResponse>;
2574
2602
  /**
2575
- * Create SSO Group Mapping
2603
+ * Creates a new SSO group mapping.
2576
2604
  */
2577
2605
  export declare function createGroupMapping({ id, accountGroupMappingCreateRequest }: {
2578
2606
  id: string;
2579
2607
  accountGroupMappingCreateRequest: AccountGroupMappingCreateRequest;
2580
2608
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2581
2609
  /**
2582
- * Configure new SSO in account
2610
+ * Configures new SSO in account.
2583
2611
  */
2584
2612
  export declare function ssoConfigure({ protocol, accountSsoCreateRequest }: {
2585
2613
  protocol: "SAML" | "OPENID";
2586
2614
  accountSsoCreateRequest: AccountSsoCreateRequest;
2587
2615
  }, opts?: Oazapfts.RequestOpts): Promise<SsoIdResponse>;
2588
2616
  /**
2589
- * Parse SSO configuration file
2617
+ * Parses an SSO configuration file and returns the parsed data with a callback URL.
2590
2618
  */
2591
2619
  export declare function ssoParseConfigurationFile({ protocol, body }: {
2592
2620
  protocol: "SAML" | "OPENID";
@@ -2621,14 +2649,21 @@ export declare function validateNewPartnerData({ validateAccountPartnerDataReque
2621
2649
  validateAccountPartnerDataRequest: ValidateAccountPartnerDataRequest;
2622
2650
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2623
2651
  /**
2624
- * Rotate Service Credential Secret v2
2652
+ * Rotates the secret of a service credential.
2625
2653
  */
2626
2654
  export declare function rotateServiceCredentialSecret({ id, rotateServiceCredentialSecretRequest }: {
2627
2655
  id: string;
2628
2656
  rotateServiceCredentialSecretRequest: RotateServiceCredentialSecretRequest;
2629
2657
  }, opts?: Oazapfts.RequestOpts): Promise<RotateServiceCredentialSecretResponse>;
2630
2658
  /**
2631
- * Revoke Service Credential v2
2659
+ * Updates the scopes of a service credential
2660
+ */
2661
+ export declare function updateServiceCredentialScopes({ id, updateServiceCredentialScopesRequest }: {
2662
+ id: string;
2663
+ updateServiceCredentialScopesRequest: UpdateServiceCredentialScopesRequest;
2664
+ }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2665
+ /**
2666
+ * Revokes a service account for the current user.
2632
2667
  */
2633
2668
  export declare function revokeServiceCredential({ id }: {
2634
2669
  id: string;
@@ -2669,7 +2704,7 @@ export declare function associateGroupToServiceCredential({ id, serviceCredentia
2669
2704
  serviceCredentialAssociateGroupRequest: ServiceCredentialAssociateGroupRequest;
2670
2705
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2671
2706
  /**
2672
- * Revoke Service Credential
2707
+ * Revokes a service credential.
2673
2708
  */
2674
2709
  export declare function revokeServiceCredential1({ id }: {
2675
2710
  id: string;
@@ -2832,18 +2867,28 @@ export declare function addNewEmailDomain({ accountId, addNewEmailDomainRequest
2832
2867
  addNewEmailDomainRequest: AddNewEmailDomainRequest;
2833
2868
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2834
2869
  /**
2835
- * Get configured account SSO attributes
2870
+ * Retrieves the SSO attributes configuration for a given SSO ID.
2836
2871
  */
2837
2872
  export declare function ssoGetAttributesConfig({ id }: {
2838
2873
  id: string;
2839
2874
  }, opts?: Oazapfts.RequestOpts): Promise<AccountSsoAttributesConfigResponse>;
2840
2875
  /**
2841
- * Configure account SSO attributes
2876
+ * Updates the configuration of SSO attributes for a specified SSO.
2842
2877
  */
2843
2878
  export declare function ssoAddAttributes({ id, accountSsoAddAttributesConfigRequest }: {
2844
2879
  id: string;
2845
2880
  accountSsoAddAttributesConfigRequest: AccountSsoAddAttributesConfigRequest;
2846
2881
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2882
+ /**
2883
+ * Get account rate limit
2884
+ */
2885
+ export declare function getAccountRateLimit(opts?: Oazapfts.RequestOpts): Promise<RateLimitResponse>;
2886
+ /**
2887
+ * Update Account rate limit
2888
+ */
2889
+ export declare function updateRateLimit({ updateRateLimitRequest }: {
2890
+ updateRateLimitRequest: UpdateRateLimitRequest;
2891
+ }, opts?: Oazapfts.RequestOpts): Promise<RateLimitResponse>;
2847
2892
  /**
2848
2893
  * Get Partner by account Id
2849
2894
  */
@@ -2871,7 +2916,7 @@ export declare function updatePartnerAccountAdminData({ id, accountPartnerAdminD
2871
2916
  accountPartnerAdminDataUpdateRequest: AccountPartnerAdminDataUpdateRequest;
2872
2917
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
2873
2918
  /**
2874
- * List service credential groups
2919
+ * Retrieves a paginated list of groups associated with a service credential for a given client ID.
2875
2920
  */
2876
2921
  export declare function getServiceCredentialGroups({ id }: {
2877
2922
  id: string;
@@ -2940,7 +2985,7 @@ export declare function getRoleGroups({ roleId, size, page, sort, direction, sea
2940
2985
  filterIn?: any;
2941
2986
  }, opts?: Oazapfts.RequestOpts): Promise<PageResponseRoleGroupResponse>;
2942
2987
  /**
2943
- * Get Resources
2988
+ * Retrieves a list of resources.
2944
2989
  */
2945
2990
  export declare function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2946
2991
  size?: any;
@@ -2955,7 +3000,7 @@ export declare function getResources({ size, page, sort, direction, search, filt
2955
3000
  filterIn?: any;
2956
3001
  }, opts?: Oazapfts.RequestOpts): Promise<PageResponseResourceResponse>;
2957
3002
  /**
2958
- * Get Members from Resource
3003
+ * Retrieves a list of members for a specified resource.
2959
3004
  */
2960
3005
  export declare function getResourceMembers({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2961
3006
  resourceId: string;
@@ -2971,7 +3016,7 @@ export declare function getResourceMembers({ resourceId, size, page, sort, direc
2971
3016
  filterIn?: any;
2972
3017
  }, opts?: Oazapfts.RequestOpts): Promise<PageResponseMembersFromResourceResponse>;
2973
3018
  /**
2974
- * Get Groups from Resource
3019
+ * Retrieves a list of groups associated with a specified resource.
2975
3020
  */
2976
3021
  export declare function getResourceGroups({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2977
3022
  resourceId: string;
@@ -3151,7 +3196,7 @@ export declare function getAccountMembers1({ id, size, page, sort, direction, se
3151
3196
  filterIn?: any;
3152
3197
  }, opts?: Oazapfts.RequestOpts): Promise<AccountMemberResponse[]>;
3153
3198
  /**
3154
- * Get Service Credential by ID (Client ID)
3199
+ * Retrieves the service credential details for a given client ID.
3155
3200
  */
3156
3201
  export declare function getServiceCredential({ id }: {
3157
3202
  id: string;
@@ -3163,7 +3208,7 @@ export declare function getServiceCredentialPermissions({ id }: {
3163
3208
  id: string;
3164
3209
  }, opts?: Oazapfts.RequestOpts): Promise<FullResourceResponse[]>;
3165
3210
  /**
3166
- * List service credential groups
3211
+ * Retrieves a list of service credential groups associated with a specific client ID.
3167
3212
  */
3168
3213
  export declare function getServiceCredentialGroups1({ id }: {
3169
3214
  id: string;
@@ -3199,7 +3244,7 @@ export declare function getPermissionsWithStatus({ roleId, size, page, sort, dir
3199
3244
  filterIn?: any;
3200
3245
  }, opts?: Oazapfts.RequestOpts): Promise<RolePermissionResponse[]>;
3201
3246
  /**
3202
- * Get Members from Resource
3247
+ * Retrieves a list of members for a specified resource.
3203
3248
  */
3204
3249
  export declare function getResourceMembers1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3205
3250
  resourceId: string;
@@ -3215,7 +3260,7 @@ export declare function getResourceMembers1({ resourceId, size, page, sort, dire
3215
3260
  filterIn?: any;
3216
3261
  }, opts?: Oazapfts.RequestOpts): Promise<MembersFromResourceResponse[]>;
3217
3262
  /**
3218
- * Get Groups from Resource
3263
+ * Retrieves a list of resource groups associated with a specific resource.
3219
3264
  */
3220
3265
  export declare function getResourceGroups1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3221
3266
  resourceId: string;
@@ -3261,12 +3306,12 @@ export declare function getResources2({ memberId }: {
3261
3306
  memberId: string;
3262
3307
  }, opts?: Oazapfts.RequestOpts): Promise<ResourceDto[]>;
3263
3308
  /**
3264
- * Get member favorite resources by type
3309
+ * Lists the IDs of a member's favorite resources of a specified type.
3265
3310
  */
3266
3311
  export declare function listMemberFavoritesByResource({ memberId, resourceType }: {
3267
3312
  memberId: string;
3268
3313
  resourceType: string;
3269
- }, opts?: Oazapfts.RequestOpts): Promise<any>;
3314
+ }, opts?: Oazapfts.RequestOpts): Promise<string[]>;
3270
3315
  /**
3271
3316
  * Retrieves a list of account members and collaborators associated with the current user's account.
3272
3317
  */
@@ -3327,7 +3372,7 @@ export declare function getAccountSlug({ accountId }: {
3327
3372
  accountId: string;
3328
3373
  }, opts?: Oazapfts.RequestOpts): Promise<AccountSlugResponse>;
3329
3374
  /**
3330
- * Get all SSO configured in account
3375
+ * Retrieves a list of SSO for the current account.
3331
3376
  */
3332
3377
  export declare function getAllAccountSso({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3333
3378
  size?: any;
@@ -3365,7 +3410,7 @@ export declare function getPartnersSharingAllowed({ name }: {
3365
3410
  */
3366
3411
  export declare function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts): Promise<unknown>;
3367
3412
  /**
3368
- * Disassociate Group to Service Credential
3413
+ * Disassociates a group from a service credential.
3369
3414
  */
3370
3415
  export declare function disassociateGroupToServiceCredential({ id, groupId }: {
3371
3416
  id: string;
@@ -3379,7 +3424,7 @@ export declare function removeRoleFromMember({ roleId, memberId }: {
3379
3424
  memberId: string;
3380
3425
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3381
3426
  /**
3382
- * Delete a resource from Account
3427
+ * Deletes a resource from the account.
3383
3428
  */
3384
3429
  export declare function deleteResource({ resourceId }: {
3385
3430
  resourceId: string;
@@ -3391,7 +3436,7 @@ export declare function deleteProfileImage({ memberId }: {
3391
3436
  memberId: string;
3392
3437
  }, opts?: Oazapfts.RequestOpts): Promise<unknown>;
3393
3438
  /**
3394
- * Remove resource from member favorites
3439
+ * Removes a specified resource from a member favorites.
3395
3440
  */
3396
3441
  export declare function deleteMemberFavorite({ memberId, resourceType, resourceId }: {
3397
3442
  memberId: string;