@stack-spot/portal-network 0.187.0 → 0.188.0-beta.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 (41) hide show
  1. package/CHANGELOG.md +86 -0
  2. package/dist/api/account.d.ts +197 -202
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +154 -140
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/agent-tools.d.ts +13 -0
  7. package/dist/api/agent-tools.d.ts.map +1 -1
  8. package/dist/api/agent-tools.js.map +1 -1
  9. package/dist/api/codeShift.d.ts +45 -9
  10. package/dist/api/codeShift.d.ts.map +1 -1
  11. package/dist/api/codeShift.js +13 -0
  12. package/dist/api/codeShift.js.map +1 -1
  13. package/dist/api/workflows.d.ts +68 -5
  14. package/dist/api/workflows.d.ts.map +1 -1
  15. package/dist/api/workflows.js +16 -0
  16. package/dist/api/workflows.js.map +1 -1
  17. package/dist/client/account.d.ts +30 -32
  18. package/dist/client/account.d.ts.map +1 -1
  19. package/dist/client/account.js +26 -17
  20. package/dist/client/account.js.map +1 -1
  21. package/dist/client/ai.d.ts.map +1 -1
  22. package/dist/client/ai.js +93 -13
  23. package/dist/client/ai.js.map +1 -1
  24. package/dist/client/code-shift.d.ts +27 -1
  25. package/dist/client/code-shift.d.ts.map +1 -1
  26. package/dist/client/code-shift.js +29 -1
  27. package/dist/client/code-shift.js.map +1 -1
  28. package/dist/client/types.d.ts +25 -5
  29. package/dist/client/types.d.ts.map +1 -1
  30. package/package.json +2 -2
  31. package/readme.md +2 -1
  32. package/src/api/account.ts +299 -392
  33. package/src/api/agent-tools.ts +16 -0
  34. package/src/api/agent.ts +2 -0
  35. package/src/api/codeShift.ts +60 -9
  36. package/src/api/notification.ts +2 -0
  37. package/src/api/workflows.ts +100 -5
  38. package/src/client/account.ts +25 -28
  39. package/src/client/ai.ts +95 -12
  40. package/src/client/code-shift.ts +20 -0
  41. package/src/client/types.ts +26 -5
@@ -281,12 +281,30 @@ export type AccountScmInfoResponse = {
281
281
  urlProvider?: string;
282
282
  };
283
283
  export type Value = object;
284
+ export type Basic = Value & {
285
+ /** PAT repository Username */
286
+ user?: string;
287
+ /** PAT repository password */
288
+ pass?: string;
289
+ };
290
+ export type GithubApp = Value & {
291
+ /** GithubApp App Id */
292
+ appId?: string;
293
+ /** GithubApp Client Id */
294
+ clientId?: string;
295
+ /** GithubApp Client Secret */
296
+ clientSecret?: string;
297
+ /** GithubApp Installer Id */
298
+ installationId?: string;
299
+ /** GithubApp private key */
300
+ privateKey?: string;
301
+ };
284
302
  export type AccountScmInfoUpdateRequest = {
285
303
  /** SCM Type */
286
304
  "type"?: "PAT" | "GITHUBAPP";
287
305
  /** SCM repository provider */
288
306
  provider?: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
289
- value?: Value;
307
+ value?: Basic | GithubApp;
290
308
  /** SCM Workflow repository URL */
291
309
  workflowUrl?: string;
292
310
  /** Flag used when SCM repository account credential configuration is mandated */
@@ -298,7 +316,7 @@ export type AccountScmInfoSaveRequest = {
298
316
  "type": "PAT" | "GITHUBAPP";
299
317
  /** SCM repository provider */
300
318
  provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
301
- value: Value;
319
+ value: Basic | GithubApp;
302
320
  /** Connection URL for on-premises provider */
303
321
  urlProvider?: string;
304
322
  /** SCM Workflow repository URL */
@@ -436,31 +454,6 @@ export type UpdatePasswordRequest = {
436
454
  /** New password */
437
455
  password: string;
438
456
  };
439
- export type InvitationUserResponse = {
440
- email: string;
441
- };
442
- export type UserInvitationResponse = {
443
- /** Unique identifier of the invitation */
444
- id: string;
445
- /** Identifier of the associated account */
446
- accountId: string;
447
- sender: InvitationUserResponse;
448
- invitedUser: InvitationUserResponse;
449
- /** Timestamp when the invitation was created */
450
- createdAt: string;
451
- /** Timestamp when the invitation was resent */
452
- resentAt: string;
453
- /** Timestamp when the invitation will expire */
454
- expirationDate: string;
455
- /** Role assigned to the invited user */
456
- roleName: string;
457
- /** Indicates whether the account is assigned to the invited user */
458
- assignAccount: boolean;
459
- /** Magic link associated with the invitation */
460
- magicLink: string;
461
- /** Current status of the invitation */
462
- status: "ACCEPTED" | "PENDING" | "CANCELLED";
463
- };
464
457
  export type UpdateSalesRepresentativesRequest = {
465
458
  /** List of emails from sales representatives responsible for the account. */
466
459
  salesRepresentatives: string[];
@@ -1012,6 +1005,46 @@ export type CreateResourceRequest = {
1012
1005
  /** Account resource description */
1013
1006
  description?: string;
1014
1007
  };
1008
+ export type ResourceReviewAnswerDto = {
1009
+ id: string;
1010
+ memberId: string;
1011
+ comment: string;
1012
+ createdAt: string;
1013
+ updatedAt?: string;
1014
+ };
1015
+ export type ViewResourceReviewResponse = {
1016
+ id: string;
1017
+ memberId: string;
1018
+ rating: number;
1019
+ comment?: string;
1020
+ resourceType: string;
1021
+ resourceSlug: string;
1022
+ createdAt: string;
1023
+ updatedAt?: string;
1024
+ reviewAnswers?: ResourceReviewAnswerDto[];
1025
+ };
1026
+ export type PageResponseViewResourceReviewResponse = {
1027
+ /** Current page content */
1028
+ items?: ViewResourceReviewResponse[];
1029
+ /** Total elements found */
1030
+ totalElements: number;
1031
+ /** Current page number */
1032
+ page: number;
1033
+ /** Length of current page items */
1034
+ size: number;
1035
+ /** Total pages found */
1036
+ totalPages: number;
1037
+ };
1038
+ export type CreateResourceReviewRequest = {
1039
+ /** Evaluation grade, represented by an integer between 1 and 5. */
1040
+ rating: number;
1041
+ /** Evaluation comment */
1042
+ comment?: string;
1043
+ };
1044
+ export type CreateReviewAnswerRequest = {
1045
+ /** Comment of the review. */
1046
+ answer: string;
1047
+ };
1015
1048
  export type AccountMemberResponse = {
1016
1049
  /** Account member id */
1017
1050
  id: string;
@@ -1131,22 +1164,6 @@ export type MemberEmailRequest = {
1131
1164
  /** Member email */
1132
1165
  email: string;
1133
1166
  };
1134
- export type InviteNewMemberRequest = {
1135
- /** Member email */
1136
- email: string;
1137
- /** Member name */
1138
- name: string;
1139
- /** Member surname */
1140
- surname: string;
1141
- /** Member group ID */
1142
- groupId?: string;
1143
- };
1144
- export type InviteMembersResponse = {
1145
- /** Status Message */
1146
- msg: string;
1147
- /** Members with error */
1148
- errors: string[];
1149
- };
1150
1167
  export type PersonalLeadRequest = {
1151
1168
  /** Lead name */
1152
1169
  name: string;
@@ -1217,16 +1234,6 @@ export type EnterpriseLeadRequest = {
1217
1234
  /** Contact reason */
1218
1235
  reason?: string;
1219
1236
  };
1220
- export type CreateUserInvitationRequest = {
1221
- /** User email */
1222
- email: string;
1223
- /** User role in account */
1224
- role: string;
1225
- /** Indicates whether account will be shared with user or not */
1226
- assignAccount: boolean;
1227
- /** Language to use in invitation e-mail */
1228
- lang: string;
1229
- };
1230
1237
  export type NewGroupRequest = {
1231
1238
  /** Group name */
1232
1239
  name: string;
@@ -1392,20 +1399,6 @@ export type CampaignAvailableResponse = {
1392
1399
  /** Campaign Status */
1393
1400
  isAvailable: boolean;
1394
1401
  };
1395
- export type SwitchAccountRequest = {
1396
- /** Account slug to switch to */
1397
- accountId: string;
1398
- };
1399
- export type ExchangeAccountResponse = {
1400
- /** Personal Access Token generated by User Personal Client on user behalf */
1401
- access_token: string;
1402
- /** Refresh Token */
1403
- refresh_token: string;
1404
- /** The token type */
1405
- token_type: string;
1406
- /** The number of seconds before the access_token expires */
1407
- expires_in: number;
1408
- };
1409
1402
  export type PersonalClientCredentialsResponse = {
1410
1403
  /** The Client ID used for authentication */
1411
1404
  clientId: string;
@@ -1570,13 +1563,9 @@ export type PersonalAccountExpirationDataResponse = {
1570
1563
  /** Account name */
1571
1564
  name: string;
1572
1565
  /** Account remaining trial days */
1573
- remainingTrialDays: number;
1566
+ remainingTrialDays?: number;
1574
1567
  /** Date that trial Account will be blocked */
1575
- validUntil: string;
1576
- };
1577
- export type AccountCollaboratorRequest = {
1578
- /** The API id of account requester */
1579
- accountApiId: string;
1568
+ validUntil?: string;
1580
1569
  };
1581
1570
  export type PageResponseAccountSsoGroupMappingResponse = {
1582
1571
  /** Current page content */
@@ -1743,6 +1732,16 @@ export type ServiceCredentialAssociateGroupRequest = {
1743
1732
  /** Service credential groups ids */
1744
1733
  teams: string[];
1745
1734
  };
1735
+ export type UpdateResourceReviewRequest = {
1736
+ /** Evaluation grade, represented by an integer between 1 and 5. */
1737
+ rating?: number;
1738
+ /** Evaluation comment */
1739
+ comment?: string;
1740
+ };
1741
+ export type UpdateReviewAnswerRequest = {
1742
+ /** Comment of the review. */
1743
+ answer: string;
1744
+ };
1746
1745
  export type ReadPreferencesResponse = {
1747
1746
  /** Dashboard widgets preferences */
1748
1747
  dashboardWidgets?: string[];
@@ -2189,16 +2188,6 @@ export type AccountScmStatusResponse = {
2189
2188
  };
2190
2189
  export type RolePermissionResponse = {
2191
2190
  status?: boolean;
2192
- /** Permission ID from StackSpot IAM */
2193
- id: string;
2194
- /** Permission's name */
2195
- name: string;
2196
- /** Permission's description */
2197
- description?: string;
2198
- /** Permission's creation timestamp */
2199
- createdAt: string;
2200
- /** The statements defined in the permission */
2201
- statements: PermissionStatementResponse[];
2202
2191
  };
2203
2192
  export type ResourceDto = {
2204
2193
  /** Unique identifier of the resource. */
@@ -2282,6 +2271,8 @@ export type PersonalAccountDetailsResponse = {
2282
2271
  accountId: string;
2283
2272
  /** Full name of the account owner. */
2284
2273
  fullName: string;
2274
+ /** Date and time until the account is valid. */
2275
+ validUntil?: string;
2285
2276
  /** Date and time that the account was created. */
2286
2277
  createdAt: string;
2287
2278
  campaign?: Campaign;
@@ -2581,7 +2572,7 @@ export function deleteAccountAssociation({ featureFlagId, accountId }: {
2581
2572
  /**
2582
2573
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
2583
2574
  */
2584
- export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
2575
+ export function listScmCredentials(opts?: Oazapfts.RequestOpts) {
2585
2576
  return oazapfts.ok(oazapfts.fetchJson<{
2586
2577
  status: 200;
2587
2578
  data: UserScmInfoResponse[];
@@ -2781,7 +2772,7 @@ export function deleteScope({ scopeId }: {
2781
2772
  /**
2782
2773
  * Retrieves a list of SCM credentials associated with the current user's account.
2783
2774
  */
2784
- export function listScmCredentials2(opts?: Oazapfts.RequestOpts) {
2775
+ export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
2785
2776
  return oazapfts.ok(oazapfts.fetchJson<{
2786
2777
  status: 200;
2787
2778
  data: AccountScmInfoResponse[];
@@ -2893,7 +2884,7 @@ export function deleteAccountRole({ roleId }: {
2893
2884
  /**
2894
2885
  * Retrieves a of resources and their associated actions with their status compared to a specified role.
2895
2886
  */
2896
- export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2887
+ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2897
2888
  roleId: string;
2898
2889
  size?: any;
2899
2890
  page?: any;
@@ -3055,35 +3046,6 @@ export function updateUserPassword({ memberId, updatePasswordRequest }: {
3055
3046
  body: updatePasswordRequest
3056
3047
  })));
3057
3048
  }
3058
- /**
3059
- * Accepts an invitation for a user to collaborate on an account.
3060
- */
3061
- export function accept({ id }: {
3062
- id: string;
3063
- }, opts?: Oazapfts.RequestOpts) {
3064
- return oazapfts.ok(oazapfts.fetchJson<{
3065
- status: 200;
3066
- data: UserInvitationResponse;
3067
- } | {
3068
- status: 403;
3069
- data: ErrorResponse;
3070
- } | {
3071
- status: 404;
3072
- data: ErrorResponse;
3073
- } | {
3074
- status: 409;
3075
- data: ErrorResponse;
3076
- } | {
3077
- status: 424;
3078
- data: ErrorResponse;
3079
- } | {
3080
- status: 500;
3081
- data: ErrorResponse;
3082
- }>(`/v1/invitations/${encodeURIComponent(id)}/accept`, {
3083
- ...opts,
3084
- method: "PUT"
3085
- }));
3086
- }
3087
3049
  /**
3088
3050
  * Updates the sales representatives associated with an active account.
3089
3051
  */
@@ -3288,7 +3250,7 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
3288
3250
  multiFilterMode?: string;
3289
3251
  filterIn?: any;
3290
3252
  name?: string;
3291
- status?: string;
3253
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
3292
3254
  }, opts?: Oazapfts.RequestOpts) {
3293
3255
  return oazapfts.ok(oazapfts.fetchJson<{
3294
3256
  status: 200;
@@ -3367,7 +3329,7 @@ export function getFeatures({ featureFlagPageRequest }: {
3367
3329
  /**
3368
3330
  * Returns a list of Feature Flags associated with the current user's account.
3369
3331
  */
3370
- export function getFeatures2(opts?: Oazapfts.RequestOpts) {
3332
+ export function getFeatures1(opts?: Oazapfts.RequestOpts) {
3371
3333
  return oazapfts.ok(oazapfts.fetchJson<{
3372
3334
  status: 200;
3373
3335
  data: FeatureFlagsResponseV2[];
@@ -3408,7 +3370,7 @@ export function create({ createFeatureFlagRequest }: {
3408
3370
  /**
3409
3371
  * Returns a paged list of Feature Flags associated with the current user's account.
3410
3372
  */
3411
- export function getFeatures1({ accountId, featureFlagPageRequest }: {
3373
+ export function getFeatures2({ accountId, featureFlagPageRequest }: {
3412
3374
  accountId: string;
3413
3375
  featureFlagPageRequest?: FeatureFlagPageRequest;
3414
3376
  }, opts?: Oazapfts.RequestOpts) {
@@ -3503,9 +3465,9 @@ export function createExternalLink({ accountId, externalLinkRequest }: {
3503
3465
  */
3504
3466
  export function getServiceCredentials1({ name, status, page, size }: {
3505
3467
  name?: string;
3506
- status?: string;
3507
- page?: string;
3508
- size?: string;
3468
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
3469
+ page?: number;
3470
+ size?: number;
3509
3471
  }, opts?: Oazapfts.RequestOpts) {
3510
3472
  return oazapfts.ok(oazapfts.fetchJson<{
3511
3473
  status: 200;
@@ -3580,7 +3542,7 @@ export function notifyServiceCredentialExpiration({ serviceCredentialExpirationR
3580
3542
  /**
3581
3543
  * Find secrets with multiple filters and conditions
3582
3544
  */
3583
- export function findSecrets1({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }: {
3545
+ export function findSecrets({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }: {
3584
3546
  size?: any;
3585
3547
  page?: any;
3586
3548
  sort?: string;
@@ -3640,11 +3602,12 @@ export function createSecret({ createSecretRequest }: {
3640
3602
  /**
3641
3603
  * Associate a secret with a resource
3642
3604
  */
3643
- export function associateResource({ secretId, resourceSlug }: {
3605
+ export function associateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3644
3606
  secretId: string;
3645
3607
  resourceSlug: string;
3608
+ resourceTypeSlug: string;
3646
3609
  }, opts?: Oazapfts.RequestOpts) {
3647
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
3610
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3648
3611
  ...opts,
3649
3612
  method: "POST"
3650
3613
  }));
@@ -3652,11 +3615,12 @@ export function associateResource({ secretId, resourceSlug }: {
3652
3615
  /**
3653
3616
  * Disassociate a secret with a resource
3654
3617
  */
3655
- export function disassociateResource({ secretId, resourceSlug }: {
3618
+ export function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3656
3619
  secretId: string;
3657
3620
  resourceSlug: string;
3621
+ resourceTypeSlug: string;
3658
3622
  }, opts?: Oazapfts.RequestOpts) {
3659
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
3623
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3660
3624
  ...opts,
3661
3625
  method: "DELETE"
3662
3626
  }));
@@ -3664,7 +3628,7 @@ export function disassociateResource({ secretId, resourceSlug }: {
3664
3628
  /**
3665
3629
  * Check if user has access to secret
3666
3630
  */
3667
- export function findSecrets({ checkSecretAccessRequest }: {
3631
+ export function findSecrets1({ checkSecretAccessRequest }: {
3668
3632
  checkSecretAccessRequest: CheckSecretAccessRequest;
3669
3633
  }, opts?: Oazapfts.RequestOpts) {
3670
3634
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3726,7 +3690,7 @@ export function createScope({ iamCreateScopeRequest }: {
3726
3690
  /**
3727
3691
  * Retrieves a list of roles available to the current account.
3728
3692
  */
3729
- export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3693
+ export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3730
3694
  size?: any;
3731
3695
  page?: any;
3732
3696
  sort?: string;
@@ -3789,7 +3753,7 @@ export function createAccountRole({ createAccountRoleRequest }: {
3789
3753
  /**
3790
3754
  * Retrieves a list of role members for a specified role.
3791
3755
  */
3792
- export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3756
+ export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3793
3757
  roleId: string;
3794
3758
  size?: any;
3795
3759
  page?: any;
@@ -3866,7 +3830,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
3866
3830
  /**
3867
3831
  * Retrieves a list of role groups associated with a specific group ID.
3868
3832
  */
3869
- export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3833
+ export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3870
3834
  roleId: string;
3871
3835
  size?: any;
3872
3836
  page?: any;
@@ -3935,7 +3899,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
3935
3899
  /**
3936
3900
  * Retrieves a list of resources.
3937
3901
  */
3938
- export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3902
+ export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3939
3903
  size?: any;
3940
3904
  page?: any;
3941
3905
  sort?: string;
@@ -3995,10 +3959,86 @@ export function createResource({ createResourceRequest }: {
3995
3959
  body: createResourceRequest
3996
3960
  })));
3997
3961
  }
3962
+ /**
3963
+ * Get all resources reviews
3964
+ */
3965
+ export function getReviews({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3966
+ resourceSlug: string;
3967
+ resourceTypeSlug: string;
3968
+ size?: any;
3969
+ page?: any;
3970
+ sort?: string;
3971
+ direction?: "ASC" | "DESC";
3972
+ search?: string;
3973
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
3974
+ filterBy?: string;
3975
+ filterValue?: string;
3976
+ multiFilterMode?: string;
3977
+ filterIn?: any;
3978
+ }, opts?: Oazapfts.RequestOpts) {
3979
+ return oazapfts.ok(oazapfts.fetchJson<{
3980
+ status: 200;
3981
+ data: PageResponseViewResourceReviewResponse;
3982
+ } | {
3983
+ status: 400;
3984
+ data: PageResponseViewResourceReviewResponse;
3985
+ } | {
3986
+ status: 500;
3987
+ data: PageResponseViewResourceReviewResponse;
3988
+ }>(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews${QS.query(QS.explode({
3989
+ size,
3990
+ page,
3991
+ sort,
3992
+ direction,
3993
+ search,
3994
+ filterMode,
3995
+ filterBy,
3996
+ filterValue,
3997
+ multiFilterMode,
3998
+ filterIn
3999
+ }))}`, {
4000
+ ...opts
4001
+ }));
4002
+ }
4003
+ /**
4004
+ * Create a resource review
4005
+ */
4006
+ export function createReview({ resourceSlug, resourceTypeSlug, xMemberId, createResourceReviewRequest }: {
4007
+ resourceSlug: string;
4008
+ resourceTypeSlug: string;
4009
+ xMemberId: string;
4010
+ createResourceReviewRequest: CreateResourceReviewRequest;
4011
+ }, opts?: Oazapfts.RequestOpts) {
4012
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews`, oazapfts.json({
4013
+ ...opts,
4014
+ method: "POST",
4015
+ body: createResourceReviewRequest,
4016
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4017
+ "x-member-id": xMemberId
4018
+ })
4019
+ })));
4020
+ }
4021
+ /**
4022
+ * Create an answer to a review
4023
+ */
4024
+ export function createReviewAnswer({ reviewId, xMemberId, createReviewAnswerRequest }: {
4025
+ reviewId: string;
4026
+ xMemberId: string;
4027
+ createReviewAnswerRequest: CreateReviewAnswerRequest;
4028
+ }, opts?: Oazapfts.RequestOpts) {
4029
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
4030
+ ...opts,
4031
+ method: "POST",
4032
+ body: createReviewAnswerRequest,
4033
+ headers: oazapfts.mergeHeaders(opts?.headers, {
4034
+ "x-member-id": xMemberId
4035
+ })
4036
+ })));
4037
+ }
3998
4038
  /**
3999
4039
  * Retrieves a list of account members for a specified account.
4000
4040
  */
4001
- export function getAccountMembers2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4041
+ export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4002
4042
  size?: any;
4003
4043
  page?: any;
4004
4044
  sort?: string;
@@ -4061,7 +4101,7 @@ export function createUser({ createUserRequest }: {
4061
4101
  /**
4062
4102
  * Retrieves a paginated list of roles associated with a specific member.
4063
4103
  */
4064
- export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4104
+ export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4065
4105
  memberId: string;
4066
4106
  size?: any;
4067
4107
  page?: any;
@@ -4150,7 +4190,7 @@ export function resetOtp({ memberId }: {
4150
4190
  /**
4151
4191
  * Retrieves a list of groups associated with a specific member.
4152
4192
  */
4153
- export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4193
+ export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4154
4194
  memberId: string;
4155
4195
  size?: any;
4156
4196
  page?: any;
@@ -4305,30 +4345,6 @@ export function resetPassword({ memberEmailRequest }: {
4305
4345
  body: memberEmailRequest
4306
4346
  })));
4307
4347
  }
4308
- /**
4309
- * Invites new members to an account and assigns them to the default group based on the account type.
4310
- */
4311
- export function inviteMembers({ body }: {
4312
- body: InviteNewMemberRequest[];
4313
- }, opts?: Oazapfts.RequestOpts) {
4314
- return oazapfts.ok(oazapfts.fetchJson<{
4315
- status: 200;
4316
- data: InviteMembersResponse;
4317
- } | {
4318
- status: 403;
4319
- data: ErrorResponse;
4320
- } | {
4321
- status: 422;
4322
- data: ErrorResponse;
4323
- } | {
4324
- status: 500;
4325
- data: ErrorResponse;
4326
- }>("/v1/members/invitation", oazapfts.json({
4327
- ...opts,
4328
- method: "POST",
4329
- body
4330
- })));
4331
- }
4332
4348
  /**
4333
4349
  * Create a personal lead contact
4334
4350
  */
@@ -4377,65 +4393,10 @@ export function enterpriseContact({ enterpriseLeadRequest }: {
4377
4393
  body: enterpriseLeadRequest
4378
4394
  })));
4379
4395
  }
4380
- /**
4381
- * Lists user invitations for account
4382
- */
4383
- export function listUserInvitations({ filterBy, filterValue, page, size }: {
4384
- filterBy?: string;
4385
- filterValue?: string;
4386
- page?: string;
4387
- size?: string;
4388
- }, opts?: Oazapfts.RequestOpts) {
4389
- return oazapfts.ok(oazapfts.fetchJson<{
4390
- status: 200;
4391
- data: UserInvitationResponse[];
4392
- } | {
4393
- status: 400;
4394
- data: ErrorResponse;
4395
- } | {
4396
- status: 403;
4397
- data: ErrorResponse;
4398
- } | {
4399
- status: 500;
4400
- data: ErrorResponse;
4401
- }>(`/v1/invitations${QS.query(QS.explode({
4402
- filterBy,
4403
- filterValue,
4404
- page,
4405
- size
4406
- }))}`, {
4407
- ...opts
4408
- }));
4409
- }
4410
- /**
4411
- * Creates and sends an invitation to a user to join an account.
4412
- */
4413
- export function createUserInvitation({ createUserInvitationRequest }: {
4414
- createUserInvitationRequest: CreateUserInvitationRequest;
4415
- }, opts?: Oazapfts.RequestOpts) {
4416
- return oazapfts.ok(oazapfts.fetchJson<{
4417
- status: 200;
4418
- } | {
4419
- status: 201;
4420
- } | {
4421
- status: 400;
4422
- data: ErrorResponse;
4423
- } | {
4424
- status: 403;
4425
- data: ErrorResponse;
4426
- } | {
4427
- status: 500;
4428
- data: ErrorResponse;
4429
- }>("/v1/invitations", oazapfts.json({
4430
- ...opts,
4431
- method: "POST",
4432
- body: createUserInvitationRequest
4433
- })));
4434
- }
4435
4396
  /**
4436
4397
  * Get Groups
4437
4398
  */
4438
- export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
4399
+ export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
4439
4400
  size?: any;
4440
4401
  page?: any;
4441
4402
  sort?: string;
@@ -4500,7 +4461,7 @@ export function save({ newGroupRequest }: {
4500
4461
  /**
4501
4462
  * Get Group members
4502
4463
  */
4503
- export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4464
+ export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4504
4465
  groupId: string;
4505
4466
  size?: any;
4506
4467
  page?: any;
@@ -4566,7 +4527,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }: {
4566
4527
  /**
4567
4528
  * Get Group Resources
4568
4529
  */
4569
- export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4530
+ export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4570
4531
  groupId: string;
4571
4532
  size?: any;
4572
4533
  page?: any;
@@ -4627,7 +4588,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }: {
4627
4588
  /**
4628
4589
  * Get Group members
4629
4590
  */
4630
- export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4591
+ export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4631
4592
  groupId: string;
4632
4593
  size?: any;
4633
4594
  page?: any;
@@ -4862,16 +4823,7 @@ export function createExtensionLink({ extensionLinkCreateRequest }: {
4862
4823
  */
4863
4824
  export function receiveWebhook({ provider, body }: {
4864
4825
  provider: string;
4865
- body: {
4866
- short?: number;
4867
- char?: string;
4868
- int?: number;
4869
- long?: number;
4870
- float?: number;
4871
- double?: number;
4872
- direct?: boolean;
4873
- readOnly?: boolean;
4874
- };
4826
+ body: string;
4875
4827
  }, opts?: Oazapfts.RequestOpts) {
4876
4828
  return oazapfts.ok(oazapfts.fetchText(`/v1/engagement/forms/webhook/${encodeURIComponent(provider)}`, oazapfts.json({
4877
4829
  ...opts,
@@ -4977,33 +4929,6 @@ export function validateCampaignCode({ code }: {
4977
4929
  method: "POST"
4978
4930
  }));
4979
4931
  }
4980
- /**
4981
- * Switch user to account passed in the body
4982
- */
4983
- export function switchAccount({ switchAccountRequest }: {
4984
- switchAccountRequest: SwitchAccountRequest;
4985
- }, opts?: Oazapfts.RequestOpts) {
4986
- return oazapfts.ok(oazapfts.fetchJson<{
4987
- status: 200;
4988
- data: ExchangeAccountResponse;
4989
- } | {
4990
- status: 400;
4991
- data: ErrorResponse;
4992
- } | {
4993
- status: 403;
4994
- data: ErrorResponse;
4995
- } | {
4996
- status: 404;
4997
- data: ErrorResponse;
4998
- } | {
4999
- status: 500;
5000
- data: ErrorResponse;
5001
- }>("/v1/authentication/switch-account", oazapfts.json({
5002
- ...opts,
5003
- method: "POST",
5004
- body: switchAccountRequest
5005
- })));
5006
- }
5007
4932
  /**
5008
4933
  * Get credentials from personal service client (create if not exists one to the logged user).
5009
4934
  */
@@ -5025,7 +4950,7 @@ export function getPersonalClientCredentials(opts?: Oazapfts.RequestOpts) {
5025
4950
  /**
5026
4951
  * Get an Access Token generated With Audience on logged user behalf, since previously authorized.
5027
4952
  */
5028
- export function getPersonalAccessToken1({ apiAuthorization, generateTokenFromPersonalAccountRequest }: {
4953
+ export function getPersonalAccessToken({ apiAuthorization, generateTokenFromPersonalAccountRequest }: {
5029
4954
  apiAuthorization: string;
5030
4955
  generateTokenFromPersonalAccountRequest?: GenerateTokenFromPersonalAccountRequest;
5031
4956
  }, opts?: Oazapfts.RequestOpts) {
@@ -5309,7 +5234,7 @@ export function updateVisionOne({ updateVisionOneIntegrationRequest }: {
5309
5234
  /**
5310
5235
  * Finds and returns a list of accounts filtered by account type.
5311
5236
  */
5312
- export function getAccounts1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5237
+ export function getAccounts({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5313
5238
  size?: any;
5314
5239
  page?: any;
5315
5240
  sort?: string;
@@ -5414,32 +5339,6 @@ export function removeTrialAccount(opts?: Oazapfts.RequestOpts) {
5414
5339
  method: "DELETE"
5415
5340
  }));
5416
5341
  }
5417
- /**
5418
- * Adds a collaborator to an account with a specified role.
5419
- */
5420
- export function addCollaborator({ accountCollaboratorRequest }: {
5421
- accountCollaboratorRequest: AccountCollaboratorRequest;
5422
- }, opts?: Oazapfts.RequestOpts) {
5423
- return oazapfts.ok(oazapfts.fetchJson<{
5424
- status: 204;
5425
- } | {
5426
- status: 400;
5427
- data: ErrorResponse;
5428
- } | {
5429
- status: 403;
5430
- data: ErrorResponse;
5431
- } | {
5432
- status: 422;
5433
- data: ErrorResponse;
5434
- } | {
5435
- status: 500;
5436
- data: ErrorResponse;
5437
- }>("/v1/accounts/trial/collaborators", oazapfts.json({
5438
- ...opts,
5439
- method: "POST",
5440
- body: accountCollaboratorRequest
5441
- })));
5442
- }
5443
5342
  /**
5444
5343
  * Retrieves a list of SSO group mappings.
5445
5344
  */
@@ -5904,6 +5803,17 @@ export function disableSecret({ secretId }: {
5904
5803
  method: "PATCH"
5905
5804
  }));
5906
5805
  }
5806
+ /**
5807
+ * Cancel Secret delete
5808
+ */
5809
+ export function cancelSecretDelete({ secretId }: {
5810
+ secretId: string;
5811
+ }, opts?: Oazapfts.RequestOpts) {
5812
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/cancel-delete`, {
5813
+ ...opts,
5814
+ method: "PATCH"
5815
+ }));
5816
+ }
5907
5817
  /**
5908
5818
  * Migrate Api Key Secrets to new version
5909
5819
  */
@@ -5913,6 +5823,72 @@ export function migrateApiKeySecretsToV2(opts?: Oazapfts.RequestOpts) {
5913
5823
  method: "PATCH"
5914
5824
  }));
5915
5825
  }
5826
+ /**
5827
+ * Delete a resources review
5828
+ */
5829
+ export function deleteReview({ reviewId, xMemberId }: {
5830
+ reviewId: string;
5831
+ xMemberId: string;
5832
+ }, opts?: Oazapfts.RequestOpts) {
5833
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, {
5834
+ ...opts,
5835
+ method: "DELETE",
5836
+ headers: oazapfts.mergeHeaders(opts?.headers, {
5837
+ "x-member-id": xMemberId
5838
+ })
5839
+ }));
5840
+ }
5841
+ /**
5842
+ * Update a resources review
5843
+ */
5844
+ export function updateReview({ reviewId, xMemberId, updateResourceReviewRequest }: {
5845
+ reviewId: string;
5846
+ xMemberId: string;
5847
+ updateResourceReviewRequest: UpdateResourceReviewRequest;
5848
+ }, opts?: Oazapfts.RequestOpts) {
5849
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
5850
+ ...opts,
5851
+ method: "PATCH",
5852
+ body: updateResourceReviewRequest,
5853
+ headers: oazapfts.mergeHeaders(opts?.headers, {
5854
+ "x-member-id": xMemberId
5855
+ })
5856
+ })));
5857
+ }
5858
+ /**
5859
+ * Delete an answer to a review
5860
+ */
5861
+ export function deleteReviewAnswer({ answerId, reviewId, xMemberId }: {
5862
+ answerId: string;
5863
+ reviewId: string;
5864
+ xMemberId: string;
5865
+ }, opts?: Oazapfts.RequestOpts) {
5866
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
5867
+ ...opts,
5868
+ method: "DELETE",
5869
+ headers: oazapfts.mergeHeaders(opts?.headers, {
5870
+ "x-member-id": xMemberId
5871
+ })
5872
+ }));
5873
+ }
5874
+ /**
5875
+ * Edit an evaluation comment
5876
+ */
5877
+ export function editReviewAnswer({ reviewId, answerId, xMemberId, updateReviewAnswerRequest }: {
5878
+ reviewId: string;
5879
+ answerId: string;
5880
+ xMemberId: string;
5881
+ updateReviewAnswerRequest: UpdateReviewAnswerRequest;
5882
+ }, opts?: Oazapfts.RequestOpts) {
5883
+ return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
5884
+ ...opts,
5885
+ method: "PATCH",
5886
+ body: updateReviewAnswerRequest,
5887
+ headers: oazapfts.mergeHeaders(opts?.headers, {
5888
+ "x-member-id": xMemberId
5889
+ })
5890
+ })));
5891
+ }
5916
5892
  /**
5917
5893
  * Retrieves the preferences of a specific member.
5918
5894
  */
@@ -6097,59 +6073,6 @@ export function enableFidoCredentials({ memberId }: {
6097
6073
  method: "PATCH"
6098
6074
  }));
6099
6075
  }
6100
- /**
6101
- * Cancel a user invitation.
6102
- */
6103
- export function cancelUserInvitation({ id }: {
6104
- id: string;
6105
- }, opts?: Oazapfts.RequestOpts) {
6106
- return oazapfts.ok(oazapfts.fetchJson<{
6107
- status: 200;
6108
- } | {
6109
- status: 403;
6110
- data: ErrorResponse;
6111
- } | {
6112
- status: 404;
6113
- data: ErrorResponse;
6114
- } | {
6115
- status: 409;
6116
- data: ErrorResponse;
6117
- } | {
6118
- status: 500;
6119
- data: ErrorResponse;
6120
- }>(`/v1/invitations/${encodeURIComponent(id)}`, {
6121
- ...opts,
6122
- method: "DELETE"
6123
- }));
6124
- }
6125
- /**
6126
- * Resends a user invitation for a specified account.
6127
- */
6128
- export function resendUserInvitation({ id }: {
6129
- id: string;
6130
- }, opts?: Oazapfts.RequestOpts) {
6131
- return oazapfts.ok(oazapfts.fetchJson<{
6132
- status: 200;
6133
- } | {
6134
- status: 403;
6135
- data: ErrorResponse;
6136
- } | {
6137
- status: 404;
6138
- data: ErrorResponse;
6139
- } | {
6140
- status: 409;
6141
- data: ErrorResponse;
6142
- } | {
6143
- status: 429;
6144
- data: ErrorResponse;
6145
- } | {
6146
- status: 500;
6147
- data: ErrorResponse;
6148
- }>(`/v1/invitations/${encodeURIComponent(id)}`, {
6149
- ...opts,
6150
- method: "PATCH"
6151
- }));
6152
- }
6153
6076
  /**
6154
6077
  * Get Group by ID
6155
6078
  */
@@ -6596,7 +6519,7 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
6596
6519
  /**
6597
6520
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
6598
6521
  */
6599
- export function listScmCredentials({ userId }: {
6522
+ export function listScmCredentials2({ userId }: {
6600
6523
  userId: string;
6601
6524
  }, opts?: Oazapfts.RequestOpts) {
6602
6525
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -6653,7 +6576,7 @@ export function getServiceCredentialByIdRateLimit({ clientId }: {
6653
6576
  /**
6654
6577
  * Get Roles
6655
6578
  */
6656
- export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6579
+ export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6657
6580
  size?: any;
6658
6581
  page?: any;
6659
6582
  sort?: string;
@@ -6692,7 +6615,7 @@ export function getRoles({ size, page, sort, direction, search, filterMode, filt
6692
6615
  /**
6693
6616
  * Get all Global Resources and Actions compared to role
6694
6617
  */
6695
- export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6618
+ export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6696
6619
  roleId: string;
6697
6620
  size?: any;
6698
6621
  page?: any;
@@ -6732,7 +6655,7 @@ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, dir
6732
6655
  /**
6733
6656
  * Get role members
6734
6657
  */
6735
- export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6658
+ export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6736
6659
  roleId: string;
6737
6660
  size?: any;
6738
6661
  page?: any;
@@ -6772,7 +6695,7 @@ export function getRoleMembers({ roleId, size, page, sort, direction, search, fi
6772
6695
  /**
6773
6696
  * Get Groups from role
6774
6697
  */
6775
- export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6698
+ export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6776
6699
  roleId: string;
6777
6700
  size?: any;
6778
6701
  page?: any;
@@ -6812,7 +6735,7 @@ export function getRoleGroups({ roleId, size, page, sort, direction, search, fil
6812
6735
  /**
6813
6736
  * Retrieves a list of resources.
6814
6737
  */
6815
- export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6738
+ export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6816
6739
  size?: any;
6817
6740
  page?: any;
6818
6741
  sort?: string;
@@ -6970,7 +6893,7 @@ export function getResourceTypes({ size, page, sort, direction, search, filterMo
6970
6893
  /**
6971
6894
  * Retrieves a list of account members.
6972
6895
  */
6973
- export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6896
+ export function getAccountMembers1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6974
6897
  size?: any;
6975
6898
  page?: any;
6976
6899
  sort?: string;
@@ -7009,7 +6932,7 @@ export function getAccountMembers({ size, page, sort, direction, search, filterM
7009
6932
  /**
7010
6933
  * Retrieves a list of roles associated with a specific member.
7011
6934
  */
7012
- export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6935
+ export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7013
6936
  memberId: string;
7014
6937
  size?: any;
7015
6938
  page?: any;
@@ -7049,7 +6972,7 @@ export function getRoles1({ memberId, size, page, sort, direction, search, filte
7049
6972
  /**
7050
6973
  * Retrieves a list of groups for a specified member.
7051
6974
  */
7052
- export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6975
+ export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7053
6976
  memberId: string;
7054
6977
  size?: any;
7055
6978
  page?: any;
@@ -7089,7 +7012,7 @@ export function getMemberGroups({ memberId, size, page, sort, direction, search,
7089
7012
  /**
7090
7013
  * Get Groups
7091
7014
  */
7092
- export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
7015
+ export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
7093
7016
  size?: any;
7094
7017
  page?: any;
7095
7018
  sort?: string;
@@ -7130,7 +7053,7 @@ export function getGroups({ size, page, sort, direction, search, filterMode, fil
7130
7053
  /**
7131
7054
  * Get Group roles
7132
7055
  */
7133
- export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7056
+ export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7134
7057
  groupId: string;
7135
7058
  size?: any;
7136
7059
  page?: any;
@@ -7170,7 +7093,7 @@ export function getRoles2({ groupId, size, page, sort, direction, search, filter
7170
7093
  /**
7171
7094
  * Get Group Resources
7172
7095
  */
7173
- export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7096
+ export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7174
7097
  groupId: string;
7175
7098
  size?: any;
7176
7099
  page?: any;
@@ -7210,7 +7133,7 @@ export function getGroupResources({ groupId, size, page, sort, direction, search
7210
7133
  /**
7211
7134
  * Get Group members
7212
7135
  */
7213
- export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7136
+ export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7214
7137
  groupId: string;
7215
7138
  size?: any;
7216
7139
  page?: any;
@@ -7317,8 +7240,8 @@ export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
7317
7240
  /**
7318
7241
  * Get Accounts
7319
7242
  */
7320
- export function getAccounts({ accountType, slug, id }: {
7321
- accountType?: string;
7243
+ export function getAccounts1({ accountType, slug, id }: {
7244
+ accountType?: "ENTERPRISE" | "PARTNER" | "FREEMIUM";
7322
7245
  slug?: string;
7323
7246
  id?: string;
7324
7247
  }, opts?: Oazapfts.RequestOpts) {
@@ -7364,7 +7287,7 @@ export function getAccount({ id }: {
7364
7287
  /**
7365
7288
  * Get Account Members
7366
7289
  */
7367
- export function getAccountMembers1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7290
+ export function getAccountMembers2({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7368
7291
  id: string;
7369
7292
  size?: any;
7370
7293
  page?: any;
@@ -7461,10 +7384,11 @@ export function getServiceCredentialGroups1({ id }: {
7461
7384
  /**
7462
7385
  * Retrieve secret value
7463
7386
  */
7464
- export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId }: {
7387
+ export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, xResourceTypeSlug, secretId }: {
7465
7388
  xMemberId?: string;
7466
7389
  xAccountId?: string;
7467
7390
  xResourceSlug?: string;
7391
+ xResourceTypeSlug?: string;
7468
7392
  secretId: string;
7469
7393
  }, opts?: Oazapfts.RequestOpts) {
7470
7394
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -7481,7 +7405,8 @@ export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId
7481
7405
  headers: oazapfts.mergeHeaders(opts?.headers, {
7482
7406
  "x-member-id": xMemberId,
7483
7407
  "x-account-id": xAccountId,
7484
- "x-resource-slug": xResourceSlug
7408
+ "x-resource-slug": xResourceSlug,
7409
+ "x-resource-type-slug": xResourceTypeSlug
7485
7410
  })
7486
7411
  }));
7487
7412
  }
@@ -7796,45 +7721,6 @@ export function listMemberFavoritesByResource({ memberId, resourceType }: {
7796
7721
  ...opts
7797
7722
  }));
7798
7723
  }
7799
- /**
7800
- * Retrieves a list of account members and collaborators associated with the current user's account.
7801
- */
7802
- export function getAccountMembersToCollaborators({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7803
- size?: any;
7804
- page?: any;
7805
- sort?: string;
7806
- direction?: "ASC" | "DESC";
7807
- search?: string;
7808
- filterMode?: "MATCH" | "CONTAINS" | "IN";
7809
- filterBy?: string;
7810
- filterValue?: string;
7811
- multiFilterMode?: string;
7812
- filterIn?: any;
7813
- }, opts?: Oazapfts.RequestOpts) {
7814
- return oazapfts.ok(oazapfts.fetchJson<{
7815
- status: 200;
7816
- data: AccountMemberResponse[];
7817
- } | {
7818
- status: 403;
7819
- data: ErrorResponse;
7820
- } | {
7821
- status: 500;
7822
- data: ErrorResponse;
7823
- }>(`/v1/members/collaborators${QS.query(QS.explode({
7824
- size,
7825
- page,
7826
- sort,
7827
- direction,
7828
- search,
7829
- filterMode,
7830
- filterBy,
7831
- filterValue,
7832
- multiFilterMode,
7833
- filterIn
7834
- }))}`, {
7835
- ...opts
7836
- }));
7837
- }
7838
7724
  /**
7839
7725
  * Returns a list of Feature Flags associated with the current user's account.
7840
7726
  */
@@ -8055,6 +7941,26 @@ export function getPersonalAccountDetails(opts?: Oazapfts.RequestOpts) {
8055
7941
  ...opts
8056
7942
  }));
8057
7943
  }
7944
+ /**
7945
+ * Finds and returns personal account expiration data associated with the provided token.
7946
+ */
7947
+ export function getPersonalAccountExpirationData(opts?: Oazapfts.RequestOpts) {
7948
+ return oazapfts.ok(oazapfts.fetchJson<{
7949
+ status: 200;
7950
+ data: PersonalAccountExpirationDataResponse;
7951
+ } | {
7952
+ status: 400;
7953
+ data: ErrorResponse;
7954
+ } | {
7955
+ status: 404;
7956
+ data: ErrorResponse;
7957
+ } | {
7958
+ status: 500;
7959
+ data: ErrorResponse;
7960
+ }>("/v1/accounts/trial/expiration", {
7961
+ ...opts
7962
+ }));
7963
+ }
8058
7964
  /**
8059
7965
  * Retrieves a list of SSO for the current account.
8060
7966
  */
@@ -8365,3 +8271,4 @@ export function deleteMember({ groupId, memberId }: {
8365
8271
  method: "DELETE"
8366
8272
  }));
8367
8273
  }
8274
+