@stack-spot/portal-network 0.189.0 → 0.191.0

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.
@@ -115,7 +115,7 @@ export function deleteAccountAssociation({ featureFlagId, accountId }, opts) {
115
115
  /**
116
116
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
117
117
  */
118
- export function listScmCredentials1(opts) {
118
+ export function listScmCredentials(opts) {
119
119
  return oazapfts.ok(oazapfts.fetchJson("/v1/users/scm-credentials", {
120
120
  ...opts
121
121
  }));
@@ -208,7 +208,7 @@ export function deleteScope({ scopeId }, opts) {
208
208
  /**
209
209
  * Retrieves a list of SCM credentials associated with the current user's account.
210
210
  */
211
- export function listScmCredentials2(opts) {
211
+ export function listScmCredentials1(opts) {
212
212
  return oazapfts.ok(oazapfts.fetchJson("/v1/scm-credentials", {
213
213
  ...opts
214
214
  }));
@@ -255,7 +255,7 @@ export function deleteAccountRole({ roleId }, opts) {
255
255
  /**
256
256
  * Retrieves a of resources and their associated actions with their status compared to a specified role.
257
257
  */
258
- export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
258
+ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
259
259
  return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
260
260
  size,
261
261
  page,
@@ -319,15 +319,6 @@ export function updateUserPassword({ memberId, updatePasswordRequest }, opts) {
319
319
  body: updatePasswordRequest
320
320
  })));
321
321
  }
322
- /**
323
- * Accepts an invitation for a user to collaborate on an account.
324
- */
325
- export function accept({ id }, opts) {
326
- return oazapfts.ok(oazapfts.fetchJson(`/v1/invitations/${encodeURIComponent(id)}/accept`, {
327
- ...opts,
328
- method: "PUT"
329
- }));
330
- }
331
322
  /**
332
323
  * Updates the sales representatives associated with an active account.
333
324
  */
@@ -456,7 +447,7 @@ export function getFeatures({ featureFlagPageRequest }, opts) {
456
447
  /**
457
448
  * Returns a list of Feature Flags associated with the current user's account.
458
449
  */
459
- export function getFeatures2(opts) {
450
+ export function getFeatures1(opts) {
460
451
  return oazapfts.ok(oazapfts.fetchJson("/v2/admin/feature-flags", {
461
452
  ...opts
462
453
  }));
@@ -474,7 +465,7 @@ export function create({ createFeatureFlagRequest }, opts) {
474
465
  /**
475
466
  * Returns a paged list of Feature Flags associated with the current user's account.
476
467
  */
477
- export function getFeatures1({ accountId, featureFlagPageRequest }, opts) {
468
+ export function getFeatures2({ accountId, featureFlagPageRequest }, opts) {
478
469
  return oazapfts.ok(oazapfts.fetchJson(`/v2/admin/feature-flags/account/${encodeURIComponent(accountId)}`, oazapfts.json({
479
470
  ...opts,
480
471
  method: "POST",
@@ -546,7 +537,7 @@ export function notifyServiceCredentialExpiration({ serviceCredentialExpirationR
546
537
  /**
547
538
  * Find secrets with multiple filters and conditions
548
539
  */
549
- export function findSecrets1({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }, opts) {
540
+ export function findSecrets({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }, opts) {
550
541
  return oazapfts.ok(oazapfts.fetchJson(`/v1/secrets${QS.query(QS.explode({
551
542
  size,
552
543
  page,
@@ -575,8 +566,8 @@ export function createSecret({ createSecretRequest }, opts) {
575
566
  /**
576
567
  * Associate a secret with a resource
577
568
  */
578
- export function associateResource({ secretId, resourceSlug }, opts) {
579
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
569
+ export function associateResource({ secretId, resourceSlug, resourceTypeSlug }, opts) {
570
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
580
571
  ...opts,
581
572
  method: "POST"
582
573
  }));
@@ -584,8 +575,8 @@ export function associateResource({ secretId, resourceSlug }, opts) {
584
575
  /**
585
576
  * Disassociate a secret with a resource
586
577
  */
587
- export function disassociateResource({ secretId, resourceSlug }, opts) {
588
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
578
+ export function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }, opts) {
579
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
589
580
  ...opts,
590
581
  method: "DELETE"
591
582
  }));
@@ -593,7 +584,7 @@ export function disassociateResource({ secretId, resourceSlug }, opts) {
593
584
  /**
594
585
  * Check if user has access to secret
595
586
  */
596
- export function findSecrets({ checkSecretAccessRequest }, opts) {
587
+ export function findSecrets1({ checkSecretAccessRequest }, opts) {
597
588
  return oazapfts.ok(oazapfts.fetchJson("/v1/secrets/check-access", oazapfts.json({
598
589
  ...opts,
599
590
  method: "POST",
@@ -623,7 +614,7 @@ export function createScope({ iamCreateScopeRequest }, opts) {
623
614
  /**
624
615
  * Retrieves a list of roles available to the current account.
625
616
  */
626
- export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
617
+ export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
627
618
  return oazapfts.ok(oazapfts.fetchJson(`/v1/roles${QS.query(QS.explode({
628
619
  size,
629
620
  page,
@@ -652,7 +643,7 @@ export function createAccountRole({ createAccountRoleRequest }, opts) {
652
643
  /**
653
644
  * Retrieves a list of role members for a specified role.
654
645
  */
655
- export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
646
+ export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
656
647
  return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
657
648
  size,
658
649
  page,
@@ -681,7 +672,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }, opts) {
681
672
  /**
682
673
  * Retrieves a list of role groups associated with a specific group ID.
683
674
  */
684
- export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
675
+ export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
685
676
  return oazapfts.ok(oazapfts.fetchJson(`/v1/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
686
677
  size,
687
678
  page,
@@ -710,7 +701,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }, opts) {
710
701
  /**
711
702
  * Retrieves a list of resources.
712
703
  */
713
- export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
704
+ export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
714
705
  return oazapfts.ok(oazapfts.fetchJson(`/v1/resources${QS.query(QS.explode({
715
706
  size,
716
707
  page,
@@ -736,10 +727,55 @@ export function createResource({ createResourceRequest }, opts) {
736
727
  body: createResourceRequest
737
728
  })));
738
729
  }
730
+ /**
731
+ * Get all resources reviews
732
+ */
733
+ export function getReviews({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
734
+ return oazapfts.ok(oazapfts.fetchJson(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews${QS.query(QS.explode({
735
+ size,
736
+ page,
737
+ sort,
738
+ direction,
739
+ search,
740
+ filterMode,
741
+ filterBy,
742
+ filterValue,
743
+ multiFilterMode,
744
+ filterIn
745
+ }))}`, {
746
+ ...opts
747
+ }));
748
+ }
749
+ /**
750
+ * Create a resource review
751
+ */
752
+ export function createReview({ resourceSlug, resourceTypeSlug, xMemberId, createResourceReviewRequest }, opts) {
753
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews`, oazapfts.json({
754
+ ...opts,
755
+ method: "POST",
756
+ body: createResourceReviewRequest,
757
+ headers: oazapfts.mergeHeaders(opts?.headers, {
758
+ "x-member-id": xMemberId
759
+ })
760
+ })));
761
+ }
762
+ /**
763
+ * Create an answer to a review
764
+ */
765
+ export function createReviewAnswer({ reviewId, xMemberId, createReviewAnswerRequest }, opts) {
766
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
767
+ ...opts,
768
+ method: "POST",
769
+ body: createReviewAnswerRequest,
770
+ headers: oazapfts.mergeHeaders(opts?.headers, {
771
+ "x-member-id": xMemberId
772
+ })
773
+ })));
774
+ }
739
775
  /**
740
776
  * Retrieves a list of account members for a specified account.
741
777
  */
742
- export function getAccountMembers2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
778
+ export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
743
779
  return oazapfts.ok(oazapfts.fetchJson(`/v1/members${QS.query(QS.explode({
744
780
  size,
745
781
  page,
@@ -768,7 +804,7 @@ export function createUser({ createUserRequest }, opts) {
768
804
  /**
769
805
  * Retrieves a paginated list of roles associated with a specific member.
770
806
  */
771
- export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
807
+ export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
772
808
  return oazapfts.ok(oazapfts.fetchJson(`/v1/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
773
809
  size,
774
810
  page,
@@ -806,7 +842,7 @@ export function resetOtp({ memberId }, opts) {
806
842
  /**
807
843
  * Retrieves a list of groups associated with a specific member.
808
844
  */
809
- export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
845
+ export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
810
846
  return oazapfts.ok(oazapfts.fetchJson(`/v1/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
811
847
  size,
812
848
  page,
@@ -870,16 +906,6 @@ export function resetPassword({ memberEmailRequest }, opts) {
870
906
  body: memberEmailRequest
871
907
  })));
872
908
  }
873
- /**
874
- * Invites new members to an account and assigns them to the default group based on the account type.
875
- */
876
- export function inviteMembers({ body }, opts) {
877
- return oazapfts.ok(oazapfts.fetchJson("/v1/members/invitation", oazapfts.json({
878
- ...opts,
879
- method: "POST",
880
- body
881
- })));
882
- }
883
909
  /**
884
910
  * Create a personal lead contact
885
911
  */
@@ -900,33 +926,10 @@ export function enterpriseContact({ enterpriseLeadRequest }, opts) {
900
926
  body: enterpriseLeadRequest
901
927
  })));
902
928
  }
903
- /**
904
- * Lists user invitations for account
905
- */
906
- export function listUserInvitations({ filterBy, filterValue, page, size }, opts) {
907
- return oazapfts.ok(oazapfts.fetchJson(`/v1/invitations${QS.query(QS.explode({
908
- filterBy,
909
- filterValue,
910
- page,
911
- size
912
- }))}`, {
913
- ...opts
914
- }));
915
- }
916
- /**
917
- * Creates and sends an invitation to a user to join an account.
918
- */
919
- export function createUserInvitation({ createUserInvitationRequest }, opts) {
920
- return oazapfts.ok(oazapfts.fetchJson("/v1/invitations", oazapfts.json({
921
- ...opts,
922
- method: "POST",
923
- body: createUserInvitationRequest
924
- })));
925
- }
926
929
  /**
927
930
  * Get Groups
928
931
  */
929
- export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
932
+ export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
930
933
  return oazapfts.ok(oazapfts.fetchJson(`/v1/groups${QS.query(QS.explode({
931
934
  size,
932
935
  page,
@@ -956,7 +959,7 @@ export function save({ newGroupRequest }, opts) {
956
959
  /**
957
960
  * Get Group members
958
961
  */
959
- export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
962
+ export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
960
963
  return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
961
964
  size,
962
965
  page,
@@ -985,7 +988,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }, opts) {
985
988
  /**
986
989
  * Get Group Resources
987
990
  */
988
- export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
991
+ export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
989
992
  return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
990
993
  size,
991
994
  page,
@@ -1014,7 +1017,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }, opt
1014
1017
  /**
1015
1018
  * Get Group members
1016
1019
  */
1017
- export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1020
+ export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1018
1021
  return oazapfts.ok(oazapfts.fetchJson(`/v1/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
1019
1022
  size,
1020
1023
  page,
@@ -1159,16 +1162,6 @@ export function validateCampaignCode({ code }, opts) {
1159
1162
  method: "POST"
1160
1163
  }));
1161
1164
  }
1162
- /**
1163
- * Switch user to account passed in the body
1164
- */
1165
- export function switchAccount({ switchAccountRequest }, opts) {
1166
- return oazapfts.ok(oazapfts.fetchJson("/v1/authentication/switch-account", oazapfts.json({
1167
- ...opts,
1168
- method: "POST",
1169
- body: switchAccountRequest
1170
- })));
1171
- }
1172
1165
  /**
1173
1166
  * Get credentials from personal service client (create if not exists one to the logged user).
1174
1167
  */
@@ -1181,7 +1174,7 @@ export function getPersonalClientCredentials(opts) {
1181
1174
  /**
1182
1175
  * Get an Access Token generated With Audience on logged user behalf, since previously authorized.
1183
1176
  */
1184
- export function getPersonalAccessToken1({ apiAuthorization, generateTokenFromPersonalAccountRequest }, opts) {
1177
+ export function getPersonalAccessToken({ apiAuthorization, generateTokenFromPersonalAccountRequest }, opts) {
1185
1178
  return oazapfts.ok(oazapfts.fetchJson("/v1/authentication/personal-access-token", oazapfts.json({
1186
1179
  ...opts,
1187
1180
  method: "POST",
@@ -1305,7 +1298,7 @@ export function updateVisionOne({ updateVisionOneIntegrationRequest }, opts) {
1305
1298
  /**
1306
1299
  * Finds and returns a list of accounts filtered by account type.
1307
1300
  */
1308
- export function getAccounts1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1301
+ export function getAccounts({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1309
1302
  return oazapfts.ok(oazapfts.fetchJson(`/v1/admin/accounts${QS.query(QS.explode({
1310
1303
  size,
1311
1304
  page,
@@ -1350,16 +1343,6 @@ export function removeTrialAccount(opts) {
1350
1343
  method: "DELETE"
1351
1344
  }));
1352
1345
  }
1353
- /**
1354
- * Adds a collaborator to an account with a specified role.
1355
- */
1356
- export function addCollaborator({ accountCollaboratorRequest }, opts) {
1357
- return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/trial/collaborators", oazapfts.json({
1358
- ...opts,
1359
- method: "POST",
1360
- body: accountCollaboratorRequest
1361
- })));
1362
- }
1363
1346
  /**
1364
1347
  * Retrieves a list of SSO group mappings.
1365
1348
  */
@@ -1562,6 +1545,15 @@ export function disableSecret({ secretId }, opts) {
1562
1545
  method: "PATCH"
1563
1546
  }));
1564
1547
  }
1548
+ /**
1549
+ * Cancel Secret delete
1550
+ */
1551
+ export function cancelSecretDelete({ secretId }, opts) {
1552
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/cancel-delete`, {
1553
+ ...opts,
1554
+ method: "PATCH"
1555
+ }));
1556
+ }
1565
1557
  /**
1566
1558
  * Migrate Api Key Secrets to new version
1567
1559
  */
@@ -1571,6 +1563,56 @@ export function migrateApiKeySecretsToV2(opts) {
1571
1563
  method: "PATCH"
1572
1564
  }));
1573
1565
  }
1566
+ /**
1567
+ * Delete a resources review
1568
+ */
1569
+ export function deleteReview({ reviewId, xMemberId }, opts) {
1570
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, {
1571
+ ...opts,
1572
+ method: "DELETE",
1573
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1574
+ "x-member-id": xMemberId
1575
+ })
1576
+ }));
1577
+ }
1578
+ /**
1579
+ * Update a resources review
1580
+ */
1581
+ export function updateReview({ reviewId, xMemberId, updateResourceReviewRequest }, opts) {
1582
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
1583
+ ...opts,
1584
+ method: "PATCH",
1585
+ body: updateResourceReviewRequest,
1586
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1587
+ "x-member-id": xMemberId
1588
+ })
1589
+ })));
1590
+ }
1591
+ /**
1592
+ * Delete an answer to a review
1593
+ */
1594
+ export function deleteReviewAnswer({ answerId, reviewId, xMemberId }, opts) {
1595
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
1596
+ ...opts,
1597
+ method: "DELETE",
1598
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1599
+ "x-member-id": xMemberId
1600
+ })
1601
+ }));
1602
+ }
1603
+ /**
1604
+ * Edit an evaluation comment
1605
+ */
1606
+ export function editReviewAnswer({ reviewId, answerId, xMemberId, updateReviewAnswerRequest }, opts) {
1607
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
1608
+ ...opts,
1609
+ method: "PATCH",
1610
+ body: updateReviewAnswerRequest,
1611
+ headers: oazapfts.mergeHeaders(opts?.headers, {
1612
+ "x-member-id": xMemberId
1613
+ })
1614
+ })));
1615
+ }
1574
1616
  /**
1575
1617
  * Retrieves the preferences of a specific member.
1576
1618
  */
@@ -1646,24 +1688,6 @@ export function enableFidoCredentials({ memberId }, opts) {
1646
1688
  method: "PATCH"
1647
1689
  }));
1648
1690
  }
1649
- /**
1650
- * Cancel a user invitation.
1651
- */
1652
- export function cancelUserInvitation({ id }, opts) {
1653
- return oazapfts.ok(oazapfts.fetchJson(`/v1/invitations/${encodeURIComponent(id)}`, {
1654
- ...opts,
1655
- method: "DELETE"
1656
- }));
1657
- }
1658
- /**
1659
- * Resends a user invitation for a specified account.
1660
- */
1661
- export function resendUserInvitation({ id }, opts) {
1662
- return oazapfts.ok(oazapfts.fetchJson(`/v1/invitations/${encodeURIComponent(id)}`, {
1663
- ...opts,
1664
- method: "PATCH"
1665
- }));
1666
- }
1667
1691
  /**
1668
1692
  * Get Group by ID
1669
1693
  */
@@ -1845,7 +1869,7 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
1845
1869
  /**
1846
1870
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
1847
1871
  */
1848
- export function listScmCredentials({ userId }, opts) {
1872
+ export function listScmCredentials2({ userId }, opts) {
1849
1873
  return oazapfts.ok(oazapfts.fetchJson(`/v2/users/${encodeURIComponent(userId)}/scm-credentials`, {
1850
1874
  ...opts
1851
1875
  }));
@@ -1869,7 +1893,7 @@ export function getServiceCredentialByIdRateLimit({ clientId }, opts) {
1869
1893
  /**
1870
1894
  * Get Roles
1871
1895
  */
1872
- export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1896
+ export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1873
1897
  return oazapfts.ok(oazapfts.fetchJson(`/v2/roles${QS.query(QS.explode({
1874
1898
  size,
1875
1899
  page,
@@ -1888,7 +1912,7 @@ export function getRoles({ size, page, sort, direction, search, filterMode, filt
1888
1912
  /**
1889
1913
  * Get all Global Resources and Actions compared to role
1890
1914
  */
1891
- export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1915
+ export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1892
1916
  return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
1893
1917
  size,
1894
1918
  page,
@@ -1907,7 +1931,7 @@ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, dir
1907
1931
  /**
1908
1932
  * Get role members
1909
1933
  */
1910
- export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1934
+ export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1911
1935
  return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
1912
1936
  size,
1913
1937
  page,
@@ -1926,7 +1950,7 @@ export function getRoleMembers({ roleId, size, page, sort, direction, search, fi
1926
1950
  /**
1927
1951
  * Get Groups from role
1928
1952
  */
1929
- export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1953
+ export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1930
1954
  return oazapfts.ok(oazapfts.fetchJson(`/v2/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
1931
1955
  size,
1932
1956
  page,
@@ -1945,7 +1969,7 @@ export function getRoleGroups({ roleId, size, page, sort, direction, search, fil
1945
1969
  /**
1946
1970
  * Retrieves a list of resources.
1947
1971
  */
1948
- export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1972
+ export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
1949
1973
  return oazapfts.ok(oazapfts.fetchJson(`/v2/resources${QS.query(QS.explode({
1950
1974
  size,
1951
1975
  page,
@@ -2021,7 +2045,7 @@ export function getResourceTypes({ size, page, sort, direction, search, filterMo
2021
2045
  /**
2022
2046
  * Retrieves a list of account members.
2023
2047
  */
2024
- export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2048
+ export function getAccountMembers1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2025
2049
  return oazapfts.ok(oazapfts.fetchJson(`/v2/members${QS.query(QS.explode({
2026
2050
  size,
2027
2051
  page,
@@ -2040,7 +2064,7 @@ export function getAccountMembers({ size, page, sort, direction, search, filterM
2040
2064
  /**
2041
2065
  * Retrieves a list of roles associated with a specific member.
2042
2066
  */
2043
- export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2067
+ export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2044
2068
  return oazapfts.ok(oazapfts.fetchJson(`/v2/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
2045
2069
  size,
2046
2070
  page,
@@ -2059,7 +2083,7 @@ export function getRoles1({ memberId, size, page, sort, direction, search, filte
2059
2083
  /**
2060
2084
  * Retrieves a list of groups for a specified member.
2061
2085
  */
2062
- export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2086
+ export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2063
2087
  return oazapfts.ok(oazapfts.fetchJson(`/v2/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
2064
2088
  size,
2065
2089
  page,
@@ -2078,7 +2102,7 @@ export function getMemberGroups({ memberId, size, page, sort, direction, search,
2078
2102
  /**
2079
2103
  * Get Groups
2080
2104
  */
2081
- export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
2105
+ export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }, opts) {
2082
2106
  return oazapfts.ok(oazapfts.fetchJson(`/v2/groups${QS.query(QS.explode({
2083
2107
  size,
2084
2108
  page,
@@ -2098,7 +2122,7 @@ export function getGroups({ size, page, sort, direction, search, filterMode, fil
2098
2122
  /**
2099
2123
  * Get Group roles
2100
2124
  */
2101
- export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2125
+ export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2102
2126
  return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
2103
2127
  size,
2104
2128
  page,
@@ -2117,7 +2141,7 @@ export function getRoles2({ groupId, size, page, sort, direction, search, filter
2117
2141
  /**
2118
2142
  * Get Group Resources
2119
2143
  */
2120
- export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2144
+ export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2121
2145
  return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
2122
2146
  size,
2123
2147
  page,
@@ -2136,7 +2160,7 @@ export function getGroupResources({ groupId, size, page, sort, direction, search
2136
2160
  /**
2137
2161
  * Get Group members
2138
2162
  */
2139
- export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2163
+ export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2140
2164
  return oazapfts.ok(oazapfts.fetchJson(`/v2/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
2141
2165
  size,
2142
2166
  page,
@@ -2181,7 +2205,7 @@ export function isCreatedScmCredentials(opts) {
2181
2205
  /**
2182
2206
  * Get Accounts
2183
2207
  */
2184
- export function getAccounts({ accountType, slug, id }, opts) {
2208
+ export function getAccounts1({ accountType, slug, id }, opts) {
2185
2209
  return oazapfts.ok(oazapfts.fetchJson(`/v1/stackspot/accounts${QS.query(QS.explode({
2186
2210
  accountType,
2187
2211
  slug,
@@ -2201,7 +2225,7 @@ export function getAccount({ id }, opts) {
2201
2225
  /**
2202
2226
  * Get Account Members
2203
2227
  */
2204
- export function getAccountMembers1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2228
+ export function getAccountMembers2({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2205
2229
  return oazapfts.ok(oazapfts.fetchJson(`/v1/stackspot/accounts/${encodeURIComponent(id)}/members${QS.query(QS.explode({
2206
2230
  size,
2207
2231
  page,
@@ -2244,13 +2268,14 @@ export function getServiceCredentialGroups1({ id }, opts) {
2244
2268
  /**
2245
2269
  * Retrieve secret value
2246
2270
  */
2247
- export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId }, opts) {
2271
+ export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, xResourceTypeSlug, secretId }, opts) {
2248
2272
  return oazapfts.ok(oazapfts.fetchJson(`/v1/secrets/${encodeURIComponent(secretId)}/value`, {
2249
2273
  ...opts,
2250
2274
  headers: oazapfts.mergeHeaders(opts?.headers, {
2251
2275
  "x-member-id": xMemberId,
2252
2276
  "x-account-id": xAccountId,
2253
- "x-resource-slug": xResourceSlug
2277
+ "x-resource-slug": xResourceSlug,
2278
+ "x-resource-type-slug": xResourceTypeSlug
2254
2279
  })
2255
2280
  }));
2256
2281
  }
@@ -2394,25 +2419,6 @@ export function listMemberFavoritesByResource({ memberId, resourceType }, opts)
2394
2419
  ...opts
2395
2420
  }));
2396
2421
  }
2397
- /**
2398
- * Retrieves a list of account members and collaborators associated with the current user's account.
2399
- */
2400
- export function getAccountMembersToCollaborators({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }, opts) {
2401
- return oazapfts.ok(oazapfts.fetchJson(`/v1/members/collaborators${QS.query(QS.explode({
2402
- size,
2403
- page,
2404
- sort,
2405
- direction,
2406
- search,
2407
- filterMode,
2408
- filterBy,
2409
- filterValue,
2410
- multiFilterMode,
2411
- filterIn
2412
- }))}`, {
2413
- ...opts
2414
- }));
2415
- }
2416
2422
  /**
2417
2423
  * Returns a list of Feature Flags associated with the current user's account.
2418
2424
  */
@@ -2498,6 +2504,14 @@ export function getPersonalAccountDetails(opts) {
2498
2504
  ...opts
2499
2505
  }));
2500
2506
  }
2507
+ /**
2508
+ * Finds and returns personal account expiration data associated with the provided token.
2509
+ */
2510
+ export function getPersonalAccountExpirationData(opts) {
2511
+ return oazapfts.ok(oazapfts.fetchJson("/v1/accounts/trial/expiration", {
2512
+ ...opts
2513
+ }));
2514
+ }
2501
2515
  /**
2502
2516
  * Retrieves a list of SSO for the current account.
2503
2517
  */