@stack-spot/portal-network 0.97.0 → 0.97.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.
@@ -1,7 +1,7 @@
1
1
  import apis from '../apis.json';
2
2
  import { ReactQueryNetworkClient } from '../network/ReactQueryNetworkClient.js';
3
3
  import { removeAuthorizationParam } from '../utils/remove-authorization-param.js';
4
- import { defaults, createApplicationsBatchServiceV1ApplicationsBatchPost, createApplicationServiceV1ApplicationsPost, deleteApplicationServiceV1ApplicationsApplicationIdDelete, listApplicationServiceV1ApplicationsGet, listModulesServiceV1ModulesGet, updateApplicationServiceV1ApplicationsApplicationIdPut, getApplicationByIdServiceV1ApplicationsApplicationIdGet, dispatchModuleServiceV1ModulesDispatchPost, getReportV1ReportsReportIdGet, listReportV1ReportsGet, } from '../api/codeShift.js';
4
+ import { defaults, createApplicationsBatchServiceV1ApplicationsBatchPost, createApplicationServiceV1ApplicationsPost, deleteApplicationServiceV1ApplicationsApplicationIdDelete, listApplicationServiceV1ApplicationsGet, listModulesServiceV1ModulesGet, updateApplicationServiceV1ApplicationsApplicationIdPut, getApplicationByIdServiceV1ApplicationsApplicationIdGet, dispatchModuleServiceV1ModulesDispatchesPost, getReportV1ReportsReportIdGet, listReportV1ApplicationsApplicationIdReportsGet, } from '../api/codeShift.js';
5
5
  import { DefaultAPIError } from '../error/DefaultAPIError.js';
6
6
  class CodeShift extends ReactQueryNetworkClient {
7
7
  constructor() {
@@ -52,13 +52,13 @@ class CodeShift extends ReactQueryNetworkClient {
52
52
  enumerable: true,
53
53
  configurable: true,
54
54
  writable: true,
55
- value: this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchPost))
55
+ value: this.mutation(removeAuthorizationParam(dispatchModuleServiceV1ModulesDispatchesPost))
56
56
  });
57
57
  Object.defineProperty(this, "reports", {
58
58
  enumerable: true,
59
59
  configurable: true,
60
60
  writable: true,
61
- value: this.query(removeAuthorizationParam(listReportV1ReportsGet))
61
+ value: this.query(removeAuthorizationParam(listReportV1ApplicationsApplicationIdReportsGet))
62
62
  });
63
63
  Object.defineProperty(this, "report", {
64
64
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"file":"code-shift.js","sourceRoot":"","sources":["../../src/client/code-shift.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,cAAc,CAAA;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,QAAQ,EAAE,qDAAqD,EAAE,0CAA0C,EAClH,yDAAyD,EAAE,uCAAuC,EAAE,8BAA8B,EAClI,sDAAsD,EACtD,uDAAuD,EACvD,0CAA0C,EAC1C,6BAA6B,EAC7B,sBAAsB,GACvB,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,MAAM,SAAU,SAAQ,uBAAuB;IAC7C;QACE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOrC;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,CAAC;WAAA;QACvG;;;;mBAAyB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,qDAAqD,CAAC,CAAC;WAAA;QACvH;;;;mBAAe,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,uCAAuC,CAAC,CAAC;WAAA;QAC5F;;;;mBAAc,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,uDAAuD,CAAC,CAAC;WAAA;QAC3G;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,sDAAsD,CAAC,CAAC;WAAA;QACnH;;;;mBAAU,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,8BAA8B,CAAC,CAAC;WAAA;QAC9E;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,yDAAyD,CAAC,CAAC;WAAA;QACtH;;;;mBAAiB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,CAAC;WAAA;QACpG;;;;mBAAU,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,sBAAsB,CAAC,CAAC;WAAA;QACtE;;;;mBAAS,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,6BAA6B,CAAC,CAAC;WAAA;IAf5E,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACxF,CAAC;CAYF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,SAAS,EAAE,CAAA"}
1
+ {"version":3,"file":"code-shift.js","sourceRoot":"","sources":["../../src/client/code-shift.ts"],"names":[],"mappings":"AAEA,OAAO,IAAI,MAAM,cAAc,CAAA;AAE/B,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAC5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAA;AAC9E,OAAO,EAAE,QAAQ,EAAE,qDAAqD,EAAE,0CAA0C,EAClH,yDAAyD,EAAE,uCAAuC,EAAE,8BAA8B,EAClI,sDAAsD,EACtD,uDAAuD,EACvD,4CAA4C,EAC5C,6BAA6B,EAC7B,+CAA+C,GAChD,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAE1D,MAAM,SAAU,SAAQ,uBAAuB;IAC7C;QACE,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,CAAA;QAOrC;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,0CAA0C,CAAC,CAAC;WAAA;QACvG;;;;mBAAyB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,qDAAqD,CAAC,CAAC;WAAA;QACvH;;;;mBAAe,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,uCAAuC,CAAC,CAAC;WAAA;QAC5F;;;;mBAAc,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,uDAAuD,CAAC,CAAC;WAAA;QAC3G;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,sDAAsD,CAAC,CAAC;WAAA;QACnH;;;;mBAAU,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,8BAA8B,CAAC,CAAC;WAAA;QAC9E;;;;mBAAoB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,yDAAyD,CAAC,CAAC;WAAA;QACtH;;;;mBAAiB,IAAI,CAAC,QAAQ,CAAC,wBAAwB,CAAC,4CAA4C,CAAC,CAAC;WAAA;QACtG;;;;mBAAU,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,+CAA+C,CAAC,CAAC;WAAA;QAC/F;;;;mBAAS,IAAI,CAAC,KAAK,CAAC,wBAAwB,CAAC,6BAA6B,CAAC,CAAC;WAAA;IAf5E,CAAC;IAES,mBAAmB,CAAC,KAAgB;QAC5C,OAAO,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAC,EAAE,EAAE,EAAE,KAAK,CAAC,OAAO,CAAC,CAAA;IACxF,CAAC;CAYF;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,IAAI,SAAS,EAAE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stack-spot/portal-network",
3
- "version": "0.97.0",
3
+ "version": "0.97.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1312,6 +1312,10 @@ export type RotateServiceCredentialSecretRequest = {
1312
1312
  export type RotateServiceCredentialSecretResponse = {
1313
1313
  secret?: string;
1314
1314
  };
1315
+ export type UpdateServiceCredentialScopesRequest = {
1316
+ /** Service credential statements */
1317
+ scopes: string[];
1318
+ };
1315
1319
  export type DeleteMemberPermissionsRequest = {
1316
1320
  /** Permission Action */
1317
1321
  actionName: string;
@@ -1450,6 +1454,30 @@ export type AccountSsoAddAttributesConfigRequest = {
1450
1454
  /** SSO Last Name attribute configuration */
1451
1455
  lastName?: string;
1452
1456
  };
1457
+ export type RateLimitResponse = {
1458
+ /** Maximum number of executions per day */
1459
+ patMaxExecPerDay: number;
1460
+ /** default number of executions per min */
1461
+ scDefaultMaxPerMin: number;
1462
+ /** default number of executions per day */
1463
+ scDefaultMaxPerDay: number;
1464
+ /** number of executions per min */
1465
+ scMaxPerMin: number;
1466
+ /** number of executions per min */
1467
+ scMaxPerDay: number;
1468
+ };
1469
+ export type UpdateRateLimitRequest = {
1470
+ /** Maximum number of executions per day */
1471
+ patMaxExecPerDay?: number;
1472
+ /** default number of executions per min */
1473
+ scDefaultMaxPerMin?: number;
1474
+ /** default number of executions per day */
1475
+ scDefaultMaxPerDay?: number;
1476
+ /** number of executions per min */
1477
+ scMaxPerMin?: number;
1478
+ /** number of executions per min */
1479
+ scMaxPerDay?: number;
1480
+ };
1453
1481
  export type AccountPartnerAccountDataUpdateRequest = {
1454
1482
  /** The account's name. Example: Zup IT Innovation */
1455
1483
  name?: string;
@@ -2414,7 +2442,7 @@ export function updateAccountStatus({ accountId, accountStatusRequest }: {
2414
2442
  })));
2415
2443
  }
2416
2444
  /**
2417
- * Get a configured SSO from account
2445
+ * Retrieves detailed SSO information for a specified account.
2418
2446
  */
2419
2447
  export function getAccountSso({ id }: {
2420
2448
  id: string;
@@ -2433,7 +2461,7 @@ export function getAccountSso({ id }: {
2433
2461
  }));
2434
2462
  }
2435
2463
  /**
2436
- * Update a configured SSO from account
2464
+ * Updates an existing SSO configuration for a specified ID.
2437
2465
  */
2438
2466
  export function updateSso({ id, accountSsoUpdateRequest }: {
2439
2467
  id: string;
@@ -2454,13 +2482,13 @@ export function updateSso({ id, accountSsoUpdateRequest }: {
2454
2482
  })));
2455
2483
  }
2456
2484
  /**
2457
- * Delete a configured Account SSO from account
2485
+ * Deletes a SSO configuration by its ID.
2458
2486
  */
2459
2487
  export function deleteSso({ id }: {
2460
2488
  id: string;
2461
2489
  }, opts?: Oazapfts.RequestOpts) {
2462
2490
  return oazapfts.ok(oazapfts.fetchJson<{
2463
- status: 200;
2491
+ status: 204;
2464
2492
  } | {
2465
2493
  status: 400;
2466
2494
  data: ErrorResponse;
@@ -2494,7 +2522,7 @@ export function partialUpdateSso({ id, accountSsoPartialUpdateRequest }: {
2494
2522
  })));
2495
2523
  }
2496
2524
  /**
2497
- * Get SSO Group Mapping By Id
2525
+ * Retrieves the details of a SSO group mapping by its ID.
2498
2526
  */
2499
2527
  export function getGroupMapById({ id, attributeImporterId }: {
2500
2528
  id: string;
@@ -2514,7 +2542,7 @@ export function getGroupMapById({ id, attributeImporterId }: {
2514
2542
  }));
2515
2543
  }
2516
2544
  /**
2517
- * Update SSO Group Mapping
2545
+ * Updates the SSO group mapping.
2518
2546
  */
2519
2547
  export function updateGroupMapping({ id, attributeImporterId, accountGroupMappingUpdateRequest }: {
2520
2548
  id: string;
@@ -2538,7 +2566,7 @@ export function updateGroupMapping({ id, attributeImporterId, accountGroupMappin
2538
2566
  })));
2539
2567
  }
2540
2568
  /**
2541
- * Delete SSO Group Mapping
2569
+ * Deletes SSO Group Mapping.
2542
2570
  */
2543
2571
  export function deleteGroupMapping({ id, attributeImporterId }: {
2544
2572
  id: string;
@@ -2558,7 +2586,7 @@ export function deleteGroupMapping({ id, attributeImporterId }: {
2558
2586
  }));
2559
2587
  }
2560
2588
  /**
2561
- * Get Service Credentials
2589
+ * Retrieves a list of service credentials associated with the current user
2562
2590
  */
2563
2591
  export function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }: {
2564
2592
  size?: any;
@@ -2601,7 +2629,7 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
2601
2629
  }));
2602
2630
  }
2603
2631
  /**
2604
- * Create Service Credential v2
2632
+ * Creates a new service credential for the current user.
2605
2633
  */
2606
2634
  export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
2607
2635
  serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
@@ -2628,7 +2656,7 @@ export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
2628
2656
  })));
2629
2657
  }
2630
2658
  /**
2631
- * Get Service Credentials
2659
+ * Retrieves a list of service credentials with their associated owner information if available.
2632
2660
  */
2633
2661
  export function getServiceCredentials1({ name, status, page, size }: {
2634
2662
  name?: string;
@@ -2655,7 +2683,7 @@ export function getServiceCredentials1({ name, status, page, size }: {
2655
2683
  }));
2656
2684
  }
2657
2685
  /**
2658
- * Create Service Credential
2686
+ * Creates a new service credential for an account.
2659
2687
  */
2660
2688
  export function createServiceCredential1({ serviceCredentialCreateRequest }: {
2661
2689
  serviceCredentialCreateRequest: ServiceCredentialCreateRequest;
@@ -2682,7 +2710,7 @@ export function createServiceCredential1({ serviceCredentialCreateRequest }: {
2682
2710
  })));
2683
2711
  }
2684
2712
  /**
2685
- * Notify about Service Credential expiration
2713
+ * Notifies the user about the expiration of the service credential via email.
2686
2714
  */
2687
2715
  export function notifyServiceCredentialExpiration({ serviceCredentialExpirationRequest }: {
2688
2716
  serviceCredentialExpirationRequest: ServiceCredentialExpirationNotifyRequest;
@@ -3038,7 +3066,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
3038
3066
  })));
3039
3067
  }
3040
3068
  /**
3041
- * Get Resources
3069
+ * Retrieves a list of resources.
3042
3070
  */
3043
3071
  export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3044
3072
  size?: any;
@@ -3077,7 +3105,7 @@ export function getResources1({ size, page, sort, direction, search, filterMode,
3077
3105
  }));
3078
3106
  }
3079
3107
  /**
3080
- * Create a new resource for Account
3108
+ * Creates a new resource for the account.
3081
3109
  */
3082
3110
  export function createResource({ createResourceRequest }: {
3083
3111
  createResourceRequest: CreateResourceRequest;
@@ -3320,7 +3348,7 @@ export function bindToGroups({ memberId, memberIdsCommonRequest }: {
3320
3348
  })));
3321
3349
  }
3322
3350
  /**
3323
- * Get account member favorite resources
3351
+ * Lists all favorite resources associated with a specific member.
3324
3352
  */
3325
3353
  export function listAccountMemberFavorites({ memberId }: {
3326
3354
  memberId: string;
@@ -3339,7 +3367,7 @@ export function listAccountMemberFavorites({ memberId }: {
3339
3367
  }));
3340
3368
  }
3341
3369
  /**
3342
- * Add account member favorite resource
3370
+ * Adds a favorite resource to a member.
3343
3371
  */
3344
3372
  export function addAccountMemberFavorite({ memberId, createFavoriteResourceRequest }: {
3345
3373
  memberId: string;
@@ -4240,7 +4268,7 @@ export function create1({ createAccountOrderRequest }: {
4240
4268
  })));
4241
4269
  }
4242
4270
  /**
4243
- * Get All SSO Group Mapping
4271
+ * Retrieves a list of SSO group mappings.
4244
4272
  */
4245
4273
  export function getAllGroupMapping({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4246
4274
  id: string;
@@ -4258,6 +4286,9 @@ export function getAllGroupMapping({ id, size, page, sort, direction, search, fi
4258
4286
  return oazapfts.ok(oazapfts.fetchJson<{
4259
4287
  status: 200;
4260
4288
  data: PageResponseAccountSsoGroupMappingResponse;
4289
+ } | {
4290
+ status: 400;
4291
+ data: ErrorResponse;
4261
4292
  } | {
4262
4293
  status: 500;
4263
4294
  data: ErrorResponse;
@@ -4277,7 +4308,7 @@ export function getAllGroupMapping({ id, size, page, sort, direction, search, fi
4277
4308
  }));
4278
4309
  }
4279
4310
  /**
4280
- * Create SSO Group Mapping
4311
+ * Creates a new SSO group mapping.
4281
4312
  */
4282
4313
  export function createGroupMapping({ id, accountGroupMappingCreateRequest }: {
4283
4314
  id: string;
@@ -4298,7 +4329,7 @@ export function createGroupMapping({ id, accountGroupMappingCreateRequest }: {
4298
4329
  })));
4299
4330
  }
4300
4331
  /**
4301
- * Configure new SSO in account
4332
+ * Configures new SSO in account.
4302
4333
  */
4303
4334
  export function ssoConfigure({ protocol, accountSsoCreateRequest }: {
4304
4335
  protocol: "SAML" | "OPENID";
@@ -4320,7 +4351,7 @@ export function ssoConfigure({ protocol, accountSsoCreateRequest }: {
4320
4351
  })));
4321
4352
  }
4322
4353
  /**
4323
- * Parse SSO configuration file
4354
+ * Parses an SSO configuration file and returns the parsed data with a callback URL.
4324
4355
  */
4325
4356
  export function ssoParseConfigurationFile({ protocol, body }: {
4326
4357
  protocol: "SAML" | "OPENID";
@@ -4444,7 +4475,7 @@ export function validateNewPartnerData({ validateAccountPartnerDataRequest }: {
4444
4475
  })));
4445
4476
  }
4446
4477
  /**
4447
- * Rotate Service Credential Secret v2
4478
+ * Rotates the secret of a service credential.
4448
4479
  */
4449
4480
  export function rotateServiceCredentialSecret({ id, rotateServiceCredentialSecretRequest }: {
4450
4481
  id: string;
@@ -4469,7 +4500,36 @@ export function rotateServiceCredentialSecret({ id, rotateServiceCredentialSecre
4469
4500
  })));
4470
4501
  }
4471
4502
  /**
4472
- * Revoke Service Credential v2
4503
+ * Updates the scopes of a service credential
4504
+ */
4505
+ export function updateServiceCredentialScopes({ id, updateServiceCredentialScopesRequest }: {
4506
+ id: string;
4507
+ updateServiceCredentialScopesRequest: UpdateServiceCredentialScopesRequest;
4508
+ }, opts?: Oazapfts.RequestOpts) {
4509
+ return oazapfts.ok(oazapfts.fetchJson<{
4510
+ status: 200;
4511
+ } | {
4512
+ status: 204;
4513
+ } | {
4514
+ status: 400;
4515
+ data: ErrorResponse;
4516
+ } | {
4517
+ status: 403;
4518
+ data: ErrorResponse;
4519
+ } | {
4520
+ status: 422;
4521
+ data: ErrorResponse;
4522
+ } | {
4523
+ status: 500;
4524
+ data: ErrorResponse;
4525
+ }>(`/v2/service-credentials/${encodeURIComponent(id)}/scopes`, oazapfts.json({
4526
+ ...opts,
4527
+ method: "PATCH",
4528
+ body: updateServiceCredentialScopesRequest
4529
+ })));
4530
+ }
4531
+ /**
4532
+ * Revokes a service account for the current user.
4473
4533
  */
4474
4534
  export function revokeServiceCredential({ id }: {
4475
4535
  id: string;
@@ -4605,7 +4665,7 @@ export function associateGroupToServiceCredential({ id, serviceCredentialAssocia
4605
4665
  })));
4606
4666
  }
4607
4667
  /**
4608
- * Revoke Service Credential
4668
+ * Revokes a service credential.
4609
4669
  */
4610
4670
  export function revokeServiceCredential1({ id }: {
4611
4671
  id: string;
@@ -5174,7 +5234,7 @@ export function addNewEmailDomain({ accountId, addNewEmailDomainRequest }: {
5174
5234
  })));
5175
5235
  }
5176
5236
  /**
5177
- * Get configured account SSO attributes
5237
+ * Retrieves the SSO attributes configuration for a given SSO ID.
5178
5238
  */
5179
5239
  export function ssoGetAttributesConfig({ id }: {
5180
5240
  id: string;
@@ -5193,7 +5253,7 @@ export function ssoGetAttributesConfig({ id }: {
5193
5253
  }));
5194
5254
  }
5195
5255
  /**
5196
- * Configure account SSO attributes
5256
+ * Updates the configuration of SSO attributes for a specified SSO.
5197
5257
  */
5198
5258
  export function ssoAddAttributes({ id, accountSsoAddAttributesConfigRequest }: {
5199
5259
  id: string;
@@ -5213,6 +5273,41 @@ export function ssoAddAttributes({ id, accountSsoAddAttributesConfigRequest }: {
5213
5273
  body: accountSsoAddAttributesConfigRequest
5214
5274
  })));
5215
5275
  }
5276
+ /**
5277
+ * Get account rate limit
5278
+ */
5279
+ export function getAccountRateLimit(opts?: Oazapfts.RequestOpts) {
5280
+ return oazapfts.ok(oazapfts.fetchJson<{
5281
+ status: 200;
5282
+ data: RateLimitResponse;
5283
+ } | {
5284
+ status: 404;
5285
+ data: ErrorResponse;
5286
+ }>("/v1/accounts/rate-limit", {
5287
+ ...opts
5288
+ }));
5289
+ }
5290
+ /**
5291
+ * Update Account rate limit
5292
+ */
5293
+ export function updateRateLimit({ updateRateLimitRequest }: {
5294
+ updateRateLimitRequest: UpdateRateLimitRequest;
5295
+ }, opts?: Oazapfts.RequestOpts) {
5296
+ return oazapfts.ok(oazapfts.fetchJson<{
5297
+ status: 200;
5298
+ data: RateLimitResponse;
5299
+ } | {
5300
+ status: 400;
5301
+ data: ErrorResponse;
5302
+ } | {
5303
+ status: 500;
5304
+ data: ErrorResponse;
5305
+ }>("/v1/accounts/rate-limit", oazapfts.json({
5306
+ ...opts,
5307
+ method: "PATCH",
5308
+ body: updateRateLimitRequest
5309
+ })));
5310
+ }
5216
5311
  /**
5217
5312
  * Get Partner by account Id
5218
5313
  */
@@ -5306,7 +5401,7 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
5306
5401
  })));
5307
5402
  }
5308
5403
  /**
5309
- * List service credential groups
5404
+ * Retrieves a paginated list of groups associated with a service credential for a given client ID.
5310
5405
  */
5311
5406
  export function getServiceCredentialGroups({ id }: {
5312
5407
  id: string;
@@ -5484,7 +5579,7 @@ export function getRoleGroups({ roleId, size, page, sort, direction, search, fil
5484
5579
  }));
5485
5580
  }
5486
5581
  /**
5487
- * Get Resources
5582
+ * Retrieves a list of resources.
5488
5583
  */
5489
5584
  export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5490
5585
  size?: any;
@@ -5523,7 +5618,7 @@ export function getResources({ size, page, sort, direction, search, filterMode,
5523
5618
  }));
5524
5619
  }
5525
5620
  /**
5526
- * Get Members from Resource
5621
+ * Retrieves a list of members for a specified resource.
5527
5622
  */
5528
5623
  export function getResourceMembers({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5529
5624
  resourceId: string;
@@ -5563,7 +5658,7 @@ export function getResourceMembers({ resourceId, size, page, sort, direction, se
5563
5658
  }));
5564
5659
  }
5565
5660
  /**
5566
- * Get Groups from Resource
5661
+ * Retrieves a list of groups associated with a specified resource.
5567
5662
  */
5568
5663
  export function getResourceGroups({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5569
5664
  resourceId: string;
@@ -6048,7 +6143,7 @@ export function getAccountMembers1({ id, size, page, sort, direction, search, fi
6048
6143
  }));
6049
6144
  }
6050
6145
  /**
6051
- * Get Service Credential by ID (Client ID)
6146
+ * Retrieves the service credential details for a given client ID.
6052
6147
  */
6053
6148
  export function getServiceCredential({ id }: {
6054
6149
  id: string;
@@ -6086,7 +6181,7 @@ export function getServiceCredentialPermissions({ id }: {
6086
6181
  }));
6087
6182
  }
6088
6183
  /**
6089
- * List service credential groups
6184
+ * Retrieves a list of service credential groups associated with a specific client ID.
6090
6185
  */
6091
6186
  export function getServiceCredentialGroups1({ id }: {
6092
6187
  id: string;
@@ -6210,7 +6305,7 @@ export function getPermissionsWithStatus({ roleId, size, page, sort, direction,
6210
6305
  }));
6211
6306
  }
6212
6307
  /**
6213
- * Get Members from Resource
6308
+ * Retrieves a list of members for a specified resource.
6214
6309
  */
6215
6310
  export function getResourceMembers1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6216
6311
  resourceId: string;
@@ -6250,7 +6345,7 @@ export function getResourceMembers1({ resourceId, size, page, sort, direction, s
6250
6345
  }));
6251
6346
  }
6252
6347
  /**
6253
- * Get Groups from Resource
6348
+ * Retrieves a list of resource groups associated with a specific resource.
6254
6349
  */
6255
6350
  export function getResourceGroups1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6256
6351
  resourceId: string;
@@ -6372,7 +6467,7 @@ export function getResources2({ memberId }: {
6372
6467
  }));
6373
6468
  }
6374
6469
  /**
6375
- * Get member favorite resources by type
6470
+ * Lists the IDs of a member's favorite resources of a specified type.
6376
6471
  */
6377
6472
  export function listMemberFavoritesByResource({ memberId, resourceType }: {
6378
6473
  memberId: string;
@@ -6380,7 +6475,7 @@ export function listMemberFavoritesByResource({ memberId, resourceType }: {
6380
6475
  }, opts?: Oazapfts.RequestOpts) {
6381
6476
  return oazapfts.ok(oazapfts.fetchJson<{
6382
6477
  status: 200;
6383
- data: any;
6478
+ data: string[];
6384
6479
  } | {
6385
6480
  status: 404;
6386
6481
  data: ErrorResponse;
@@ -6600,7 +6695,7 @@ export function getAccountSlug({ accountId }: {
6600
6695
  }));
6601
6696
  }
6602
6697
  /**
6603
- * Get all SSO configured in account
6698
+ * Retrieves a list of SSO for the current account.
6604
6699
  */
6605
6700
  export function getAllAccountSso({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6606
6701
  size?: any;
@@ -6734,7 +6829,7 @@ export function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts) {
6734
6829
  }));
6735
6830
  }
6736
6831
  /**
6737
- * Disassociate Group to Service Credential
6832
+ * Disassociates a group from a service credential.
6738
6833
  */
6739
6834
  export function disassociateGroupToServiceCredential({ id, groupId }: {
6740
6835
  id: string;
@@ -6782,7 +6877,7 @@ export function removeRoleFromMember({ roleId, memberId }: {
6782
6877
  }));
6783
6878
  }
6784
6879
  /**
6785
- * Delete a resource from Account
6880
+ * Deletes a resource from the account.
6786
6881
  */
6787
6882
  export function deleteResource({ resourceId }: {
6788
6883
  resourceId: string;
@@ -6826,7 +6921,7 @@ export function deleteProfileImage({ memberId }: {
6826
6921
  }));
6827
6922
  }
6828
6923
  /**
6829
- * Remove resource from member favorites
6924
+ * Removes a specified resource from a member favorites.
6830
6925
  */
6831
6926
  export function deleteMemberFavorite({ memberId, resourceType, resourceId }: {
6832
6927
  memberId: string;