@stack-spot/portal-network 0.189.0 → 0.190.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 (51) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/dist/api/account.d.ts +85 -202
  3. package/dist/api/account.d.ts.map +1 -1
  4. package/dist/api/account.js +68 -140
  5. package/dist/api/account.js.map +1 -1
  6. package/dist/api/ai.d.ts +189 -86
  7. package/dist/api/ai.d.ts.map +1 -1
  8. package/dist/api/ai.js +238 -142
  9. package/dist/api/ai.js.map +1 -1
  10. package/dist/api/cloudPlatform.d.ts +363 -188
  11. package/dist/api/cloudPlatform.d.ts.map +1 -1
  12. package/dist/api/cloudPlatform.js +253 -80
  13. package/dist/api/cloudPlatform.js.map +1 -1
  14. package/dist/api/codeShift.d.ts +5 -3
  15. package/dist/api/codeShift.d.ts.map +1 -1
  16. package/dist/api/codeShift.js.map +1 -1
  17. package/dist/api/genAiInference.d.ts +22 -2
  18. package/dist/api/genAiInference.d.ts.map +1 -1
  19. package/dist/api/genAiInference.js +22 -3
  20. package/dist/api/genAiInference.js.map +1 -1
  21. package/dist/client/account.d.ts +18 -4
  22. package/dist/client/account.d.ts.map +1 -1
  23. package/dist/client/account.js +58 -31
  24. package/dist/client/account.js.map +1 -1
  25. package/dist/client/ai.d.ts +29 -0
  26. package/dist/client/ai.d.ts.map +1 -1
  27. package/dist/client/ai.js +121 -14
  28. package/dist/client/ai.js.map +1 -1
  29. package/dist/client/cloud-platform.d.ts +128 -1
  30. package/dist/client/cloud-platform.d.ts.map +1 -1
  31. package/dist/client/cloud-platform.js +92 -2
  32. package/dist/client/cloud-platform.js.map +1 -1
  33. package/dist/client/code-shift.js +1 -1
  34. package/dist/client/code-shift.js.map +1 -1
  35. package/dist/client/types.d.ts +26 -5
  36. package/dist/client/types.d.ts.map +1 -1
  37. package/package.json +3 -3
  38. package/readme.md +2 -1
  39. package/src/api/account.ts +127 -392
  40. package/src/api/agent-tools.ts +3 -0
  41. package/src/api/agent.ts +2 -0
  42. package/src/api/ai.ts +364 -157
  43. package/src/api/cloudPlatform.ts +638 -264
  44. package/src/api/codeShift.ts +5 -3
  45. package/src/api/genAiInference.ts +47 -4
  46. package/src/api/notification.ts +2 -0
  47. package/src/client/account.ts +54 -38
  48. package/src/client/ai.ts +126 -13
  49. package/src/client/cloud-platform.ts +52 -2
  50. package/src/client/code-shift.ts +1 -1
  51. package/src/client/types.ts +27 -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[];
@@ -1131,22 +1124,6 @@ export type MemberEmailRequest = {
1131
1124
  /** Member email */
1132
1125
  email: string;
1133
1126
  };
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
1127
  export type PersonalLeadRequest = {
1151
1128
  /** Lead name */
1152
1129
  name: string;
@@ -1217,16 +1194,6 @@ export type EnterpriseLeadRequest = {
1217
1194
  /** Contact reason */
1218
1195
  reason?: string;
1219
1196
  };
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
1197
  export type NewGroupRequest = {
1231
1198
  /** Group name */
1232
1199
  name: string;
@@ -1392,20 +1359,6 @@ export type CampaignAvailableResponse = {
1392
1359
  /** Campaign Status */
1393
1360
  isAvailable: boolean;
1394
1361
  };
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
1362
  export type PersonalClientCredentialsResponse = {
1410
1363
  /** The Client ID used for authentication */
1411
1364
  clientId: string;
@@ -1570,13 +1523,9 @@ export type PersonalAccountExpirationDataResponse = {
1570
1523
  /** Account name */
1571
1524
  name: string;
1572
1525
  /** Account remaining trial days */
1573
- remainingTrialDays: number;
1526
+ remainingTrialDays?: number;
1574
1527
  /** 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;
1528
+ validUntil?: string;
1580
1529
  };
1581
1530
  export type PageResponseAccountSsoGroupMappingResponse = {
1582
1531
  /** Current page content */
@@ -2189,16 +2138,6 @@ export type AccountScmStatusResponse = {
2189
2138
  };
2190
2139
  export type RolePermissionResponse = {
2191
2140
  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
2141
  };
2203
2142
  export type ResourceDto = {
2204
2143
  /** Unique identifier of the resource. */
@@ -2282,6 +2221,8 @@ export type PersonalAccountDetailsResponse = {
2282
2221
  accountId: string;
2283
2222
  /** Full name of the account owner. */
2284
2223
  fullName: string;
2224
+ /** Date and time until the account is valid. */
2225
+ validUntil?: string;
2285
2226
  /** Date and time that the account was created. */
2286
2227
  createdAt: string;
2287
2228
  campaign?: Campaign;
@@ -2581,7 +2522,7 @@ export function deleteAccountAssociation({ featureFlagId, accountId }: {
2581
2522
  /**
2582
2523
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
2583
2524
  */
2584
- export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
2525
+ export function listScmCredentials(opts?: Oazapfts.RequestOpts) {
2585
2526
  return oazapfts.ok(oazapfts.fetchJson<{
2586
2527
  status: 200;
2587
2528
  data: UserScmInfoResponse[];
@@ -2781,7 +2722,7 @@ export function deleteScope({ scopeId }: {
2781
2722
  /**
2782
2723
  * Retrieves a list of SCM credentials associated with the current user's account.
2783
2724
  */
2784
- export function listScmCredentials2(opts?: Oazapfts.RequestOpts) {
2725
+ export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
2785
2726
  return oazapfts.ok(oazapfts.fetchJson<{
2786
2727
  status: 200;
2787
2728
  data: AccountScmInfoResponse[];
@@ -2893,7 +2834,7 @@ export function deleteAccountRole({ roleId }: {
2893
2834
  /**
2894
2835
  * Retrieves a of resources and their associated actions with their status compared to a specified role.
2895
2836
  */
2896
- export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2837
+ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2897
2838
  roleId: string;
2898
2839
  size?: any;
2899
2840
  page?: any;
@@ -3055,35 +2996,6 @@ export function updateUserPassword({ memberId, updatePasswordRequest }: {
3055
2996
  body: updatePasswordRequest
3056
2997
  })));
3057
2998
  }
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
2999
  /**
3088
3000
  * Updates the sales representatives associated with an active account.
3089
3001
  */
@@ -3288,7 +3200,7 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
3288
3200
  multiFilterMode?: string;
3289
3201
  filterIn?: any;
3290
3202
  name?: string;
3291
- status?: string;
3203
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
3292
3204
  }, opts?: Oazapfts.RequestOpts) {
3293
3205
  return oazapfts.ok(oazapfts.fetchJson<{
3294
3206
  status: 200;
@@ -3367,7 +3279,7 @@ export function getFeatures({ featureFlagPageRequest }: {
3367
3279
  /**
3368
3280
  * Returns a list of Feature Flags associated with the current user's account.
3369
3281
  */
3370
- export function getFeatures2(opts?: Oazapfts.RequestOpts) {
3282
+ export function getFeatures1(opts?: Oazapfts.RequestOpts) {
3371
3283
  return oazapfts.ok(oazapfts.fetchJson<{
3372
3284
  status: 200;
3373
3285
  data: FeatureFlagsResponseV2[];
@@ -3408,7 +3320,7 @@ export function create({ createFeatureFlagRequest }: {
3408
3320
  /**
3409
3321
  * Returns a paged list of Feature Flags associated with the current user's account.
3410
3322
  */
3411
- export function getFeatures1({ accountId, featureFlagPageRequest }: {
3323
+ export function getFeatures2({ accountId, featureFlagPageRequest }: {
3412
3324
  accountId: string;
3413
3325
  featureFlagPageRequest?: FeatureFlagPageRequest;
3414
3326
  }, opts?: Oazapfts.RequestOpts) {
@@ -3503,9 +3415,9 @@ export function createExternalLink({ accountId, externalLinkRequest }: {
3503
3415
  */
3504
3416
  export function getServiceCredentials1({ name, status, page, size }: {
3505
3417
  name?: string;
3506
- status?: string;
3507
- page?: string;
3508
- size?: string;
3418
+ status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
3419
+ page?: number;
3420
+ size?: number;
3509
3421
  }, opts?: Oazapfts.RequestOpts) {
3510
3422
  return oazapfts.ok(oazapfts.fetchJson<{
3511
3423
  status: 200;
@@ -3580,7 +3492,7 @@ export function notifyServiceCredentialExpiration({ serviceCredentialExpirationR
3580
3492
  /**
3581
3493
  * Find secrets with multiple filters and conditions
3582
3494
  */
3583
- export function findSecrets1({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }: {
3495
+ export function findSecrets({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }: {
3584
3496
  size?: any;
3585
3497
  page?: any;
3586
3498
  sort?: string;
@@ -3640,11 +3552,12 @@ export function createSecret({ createSecretRequest }: {
3640
3552
  /**
3641
3553
  * Associate a secret with a resource
3642
3554
  */
3643
- export function associateResource({ secretId, resourceSlug }: {
3555
+ export function associateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3644
3556
  secretId: string;
3645
3557
  resourceSlug: string;
3558
+ resourceTypeSlug: string;
3646
3559
  }, opts?: Oazapfts.RequestOpts) {
3647
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
3560
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3648
3561
  ...opts,
3649
3562
  method: "POST"
3650
3563
  }));
@@ -3652,11 +3565,12 @@ export function associateResource({ secretId, resourceSlug }: {
3652
3565
  /**
3653
3566
  * Disassociate a secret with a resource
3654
3567
  */
3655
- export function disassociateResource({ secretId, resourceSlug }: {
3568
+ export function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }: {
3656
3569
  secretId: string;
3657
3570
  resourceSlug: string;
3571
+ resourceTypeSlug: string;
3658
3572
  }, opts?: Oazapfts.RequestOpts) {
3659
- return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
3573
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
3660
3574
  ...opts,
3661
3575
  method: "DELETE"
3662
3576
  }));
@@ -3664,7 +3578,7 @@ export function disassociateResource({ secretId, resourceSlug }: {
3664
3578
  /**
3665
3579
  * Check if user has access to secret
3666
3580
  */
3667
- export function findSecrets({ checkSecretAccessRequest }: {
3581
+ export function findSecrets1({ checkSecretAccessRequest }: {
3668
3582
  checkSecretAccessRequest: CheckSecretAccessRequest;
3669
3583
  }, opts?: Oazapfts.RequestOpts) {
3670
3584
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -3726,7 +3640,7 @@ export function createScope({ iamCreateScopeRequest }: {
3726
3640
  /**
3727
3641
  * Retrieves a list of roles available to the current account.
3728
3642
  */
3729
- export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3643
+ export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3730
3644
  size?: any;
3731
3645
  page?: any;
3732
3646
  sort?: string;
@@ -3789,7 +3703,7 @@ export function createAccountRole({ createAccountRoleRequest }: {
3789
3703
  /**
3790
3704
  * Retrieves a list of role members for a specified role.
3791
3705
  */
3792
- export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3706
+ export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3793
3707
  roleId: string;
3794
3708
  size?: any;
3795
3709
  page?: any;
@@ -3866,7 +3780,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
3866
3780
  /**
3867
3781
  * Retrieves a list of role groups associated with a specific group ID.
3868
3782
  */
3869
- export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3783
+ export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3870
3784
  roleId: string;
3871
3785
  size?: any;
3872
3786
  page?: any;
@@ -3935,7 +3849,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
3935
3849
  /**
3936
3850
  * Retrieves a list of resources.
3937
3851
  */
3938
- export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3852
+ export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3939
3853
  size?: any;
3940
3854
  page?: any;
3941
3855
  sort?: string;
@@ -3998,7 +3912,7 @@ export function createResource({ createResourceRequest }: {
3998
3912
  /**
3999
3913
  * Retrieves a list of account members for a specified account.
4000
3914
  */
4001
- export function getAccountMembers2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3915
+ export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4002
3916
  size?: any;
4003
3917
  page?: any;
4004
3918
  sort?: string;
@@ -4061,7 +3975,7 @@ export function createUser({ createUserRequest }: {
4061
3975
  /**
4062
3976
  * Retrieves a paginated list of roles associated with a specific member.
4063
3977
  */
4064
- export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3978
+ export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4065
3979
  memberId: string;
4066
3980
  size?: any;
4067
3981
  page?: any;
@@ -4150,7 +4064,7 @@ export function resetOtp({ memberId }: {
4150
4064
  /**
4151
4065
  * Retrieves a list of groups associated with a specific member.
4152
4066
  */
4153
- export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4067
+ export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4154
4068
  memberId: string;
4155
4069
  size?: any;
4156
4070
  page?: any;
@@ -4305,30 +4219,6 @@ export function resetPassword({ memberEmailRequest }: {
4305
4219
  body: memberEmailRequest
4306
4220
  })));
4307
4221
  }
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
4222
  /**
4333
4223
  * Create a personal lead contact
4334
4224
  */
@@ -4377,65 +4267,10 @@ export function enterpriseContact({ enterpriseLeadRequest }: {
4377
4267
  body: enterpriseLeadRequest
4378
4268
  })));
4379
4269
  }
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
4270
  /**
4436
4271
  * Get Groups
4437
4272
  */
4438
- export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
4273
+ export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
4439
4274
  size?: any;
4440
4275
  page?: any;
4441
4276
  sort?: string;
@@ -4500,7 +4335,7 @@ export function save({ newGroupRequest }: {
4500
4335
  /**
4501
4336
  * Get Group members
4502
4337
  */
4503
- export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4338
+ export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4504
4339
  groupId: string;
4505
4340
  size?: any;
4506
4341
  page?: any;
@@ -4566,7 +4401,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }: {
4566
4401
  /**
4567
4402
  * Get Group Resources
4568
4403
  */
4569
- export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4404
+ export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4570
4405
  groupId: string;
4571
4406
  size?: any;
4572
4407
  page?: any;
@@ -4627,7 +4462,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }: {
4627
4462
  /**
4628
4463
  * Get Group members
4629
4464
  */
4630
- export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4465
+ export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4631
4466
  groupId: string;
4632
4467
  size?: any;
4633
4468
  page?: any;
@@ -4862,16 +4697,7 @@ export function createExtensionLink({ extensionLinkCreateRequest }: {
4862
4697
  */
4863
4698
  export function receiveWebhook({ provider, body }: {
4864
4699
  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
- };
4700
+ body: string;
4875
4701
  }, opts?: Oazapfts.RequestOpts) {
4876
4702
  return oazapfts.ok(oazapfts.fetchText(`/v1/engagement/forms/webhook/${encodeURIComponent(provider)}`, oazapfts.json({
4877
4703
  ...opts,
@@ -4977,33 +4803,6 @@ export function validateCampaignCode({ code }: {
4977
4803
  method: "POST"
4978
4804
  }));
4979
4805
  }
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
4806
  /**
5008
4807
  * Get credentials from personal service client (create if not exists one to the logged user).
5009
4808
  */
@@ -5025,7 +4824,7 @@ export function getPersonalClientCredentials(opts?: Oazapfts.RequestOpts) {
5025
4824
  /**
5026
4825
  * Get an Access Token generated With Audience on logged user behalf, since previously authorized.
5027
4826
  */
5028
- export function getPersonalAccessToken1({ apiAuthorization, generateTokenFromPersonalAccountRequest }: {
4827
+ export function getPersonalAccessToken({ apiAuthorization, generateTokenFromPersonalAccountRequest }: {
5029
4828
  apiAuthorization: string;
5030
4829
  generateTokenFromPersonalAccountRequest?: GenerateTokenFromPersonalAccountRequest;
5031
4830
  }, opts?: Oazapfts.RequestOpts) {
@@ -5309,7 +5108,7 @@ export function updateVisionOne({ updateVisionOneIntegrationRequest }: {
5309
5108
  /**
5310
5109
  * Finds and returns a list of accounts filtered by account type.
5311
5110
  */
5312
- export function getAccounts1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5111
+ export function getAccounts({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5313
5112
  size?: any;
5314
5113
  page?: any;
5315
5114
  sort?: string;
@@ -5414,32 +5213,6 @@ export function removeTrialAccount(opts?: Oazapfts.RequestOpts) {
5414
5213
  method: "DELETE"
5415
5214
  }));
5416
5215
  }
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
5216
  /**
5444
5217
  * Retrieves a list of SSO group mappings.
5445
5218
  */
@@ -5904,6 +5677,17 @@ export function disableSecret({ secretId }: {
5904
5677
  method: "PATCH"
5905
5678
  }));
5906
5679
  }
5680
+ /**
5681
+ * Cancel Secret delete
5682
+ */
5683
+ export function cancelSecretDelete({ secretId }: {
5684
+ secretId: string;
5685
+ }, opts?: Oazapfts.RequestOpts) {
5686
+ return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/cancel-delete`, {
5687
+ ...opts,
5688
+ method: "PATCH"
5689
+ }));
5690
+ }
5907
5691
  /**
5908
5692
  * Migrate Api Key Secrets to new version
5909
5693
  */
@@ -6097,59 +5881,6 @@ export function enableFidoCredentials({ memberId }: {
6097
5881
  method: "PATCH"
6098
5882
  }));
6099
5883
  }
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
5884
  /**
6154
5885
  * Get Group by ID
6155
5886
  */
@@ -6399,6 +6130,26 @@ export function addNewEmailDomain({ accountId, addNewEmailDomainRequest }: {
6399
6130
  body: addNewEmailDomainRequest
6400
6131
  })));
6401
6132
  }
6133
+ /**
6134
+ * Reactivates a Trial account.
6135
+ */
6136
+ export function reactivateTrialAccount(opts?: Oazapfts.RequestOpts) {
6137
+ return oazapfts.ok(oazapfts.fetchJson<{
6138
+ status: 204;
6139
+ } | {
6140
+ status: 403;
6141
+ data: ErrorResponse;
6142
+ } | {
6143
+ status: 422;
6144
+ data: ErrorResponse;
6145
+ } | {
6146
+ status: 500;
6147
+ data: ErrorResponse;
6148
+ }>("/v1/accounts/trial/reactivate", {
6149
+ ...opts,
6150
+ method: "PATCH"
6151
+ }));
6152
+ }
6402
6153
  /**
6403
6154
  * Update personal account details
6404
6155
  */
@@ -6596,7 +6347,7 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
6596
6347
  /**
6597
6348
  * Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
6598
6349
  */
6599
- export function listScmCredentials({ userId }: {
6350
+ export function listScmCredentials2({ userId }: {
6600
6351
  userId: string;
6601
6352
  }, opts?: Oazapfts.RequestOpts) {
6602
6353
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -6653,7 +6404,7 @@ export function getServiceCredentialByIdRateLimit({ clientId }: {
6653
6404
  /**
6654
6405
  * Get Roles
6655
6406
  */
6656
- export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6407
+ export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6657
6408
  size?: any;
6658
6409
  page?: any;
6659
6410
  sort?: string;
@@ -6692,7 +6443,7 @@ export function getRoles({ size, page, sort, direction, search, filterMode, filt
6692
6443
  /**
6693
6444
  * Get all Global Resources and Actions compared to role
6694
6445
  */
6695
- export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6446
+ export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6696
6447
  roleId: string;
6697
6448
  size?: any;
6698
6449
  page?: any;
@@ -6732,7 +6483,7 @@ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, dir
6732
6483
  /**
6733
6484
  * Get role members
6734
6485
  */
6735
- export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6486
+ export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6736
6487
  roleId: string;
6737
6488
  size?: any;
6738
6489
  page?: any;
@@ -6772,7 +6523,7 @@ export function getRoleMembers({ roleId, size, page, sort, direction, search, fi
6772
6523
  /**
6773
6524
  * Get Groups from role
6774
6525
  */
6775
- export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6526
+ export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6776
6527
  roleId: string;
6777
6528
  size?: any;
6778
6529
  page?: any;
@@ -6812,7 +6563,7 @@ export function getRoleGroups({ roleId, size, page, sort, direction, search, fil
6812
6563
  /**
6813
6564
  * Retrieves a list of resources.
6814
6565
  */
6815
- export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6566
+ export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6816
6567
  size?: any;
6817
6568
  page?: any;
6818
6569
  sort?: string;
@@ -6970,7 +6721,7 @@ export function getResourceTypes({ size, page, sort, direction, search, filterMo
6970
6721
  /**
6971
6722
  * Retrieves a list of account members.
6972
6723
  */
6973
- export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6724
+ export function getAccountMembers1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6974
6725
  size?: any;
6975
6726
  page?: any;
6976
6727
  sort?: string;
@@ -7009,7 +6760,7 @@ export function getAccountMembers({ size, page, sort, direction, search, filterM
7009
6760
  /**
7010
6761
  * Retrieves a list of roles associated with a specific member.
7011
6762
  */
7012
- export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6763
+ export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7013
6764
  memberId: string;
7014
6765
  size?: any;
7015
6766
  page?: any;
@@ -7049,7 +6800,7 @@ export function getRoles1({ memberId, size, page, sort, direction, search, filte
7049
6800
  /**
7050
6801
  * Retrieves a list of groups for a specified member.
7051
6802
  */
7052
- export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6803
+ export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7053
6804
  memberId: string;
7054
6805
  size?: any;
7055
6806
  page?: any;
@@ -7089,7 +6840,7 @@ export function getMemberGroups({ memberId, size, page, sort, direction, search,
7089
6840
  /**
7090
6841
  * Get Groups
7091
6842
  */
7092
- export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
6843
+ export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
7093
6844
  size?: any;
7094
6845
  page?: any;
7095
6846
  sort?: string;
@@ -7130,7 +6881,7 @@ export function getGroups({ size, page, sort, direction, search, filterMode, fil
7130
6881
  /**
7131
6882
  * Get Group roles
7132
6883
  */
7133
- export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6884
+ export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7134
6885
  groupId: string;
7135
6886
  size?: any;
7136
6887
  page?: any;
@@ -7170,7 +6921,7 @@ export function getRoles2({ groupId, size, page, sort, direction, search, filter
7170
6921
  /**
7171
6922
  * Get Group Resources
7172
6923
  */
7173
- export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6924
+ export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7174
6925
  groupId: string;
7175
6926
  size?: any;
7176
6927
  page?: any;
@@ -7210,7 +6961,7 @@ export function getGroupResources({ groupId, size, page, sort, direction, search
7210
6961
  /**
7211
6962
  * Get Group members
7212
6963
  */
7213
- export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
6964
+ export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7214
6965
  groupId: string;
7215
6966
  size?: any;
7216
6967
  page?: any;
@@ -7317,8 +7068,8 @@ export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
7317
7068
  /**
7318
7069
  * Get Accounts
7319
7070
  */
7320
- export function getAccounts({ accountType, slug, id }: {
7321
- accountType?: string;
7071
+ export function getAccounts1({ accountType, slug, id }: {
7072
+ accountType?: "ENTERPRISE" | "PARTNER" | "FREEMIUM";
7322
7073
  slug?: string;
7323
7074
  id?: string;
7324
7075
  }, opts?: Oazapfts.RequestOpts) {
@@ -7364,7 +7115,7 @@ export function getAccount({ id }: {
7364
7115
  /**
7365
7116
  * Get Account Members
7366
7117
  */
7367
- export function getAccountMembers1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7118
+ export function getAccountMembers2({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
7368
7119
  id: string;
7369
7120
  size?: any;
7370
7121
  page?: any;
@@ -7461,10 +7212,11 @@ export function getServiceCredentialGroups1({ id }: {
7461
7212
  /**
7462
7213
  * Retrieve secret value
7463
7214
  */
7464
- export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId }: {
7215
+ export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, xResourceTypeSlug, secretId }: {
7465
7216
  xMemberId?: string;
7466
7217
  xAccountId?: string;
7467
7218
  xResourceSlug?: string;
7219
+ xResourceTypeSlug?: string;
7468
7220
  secretId: string;
7469
7221
  }, opts?: Oazapfts.RequestOpts) {
7470
7222
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -7481,7 +7233,8 @@ export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId
7481
7233
  headers: oazapfts.mergeHeaders(opts?.headers, {
7482
7234
  "x-member-id": xMemberId,
7483
7235
  "x-account-id": xAccountId,
7484
- "x-resource-slug": xResourceSlug
7236
+ "x-resource-slug": xResourceSlug,
7237
+ "x-resource-type-slug": xResourceTypeSlug
7485
7238
  })
7486
7239
  }));
7487
7240
  }
@@ -7796,45 +7549,6 @@ export function listMemberFavoritesByResource({ memberId, resourceType }: {
7796
7549
  ...opts
7797
7550
  }));
7798
7551
  }
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
7552
  /**
7839
7553
  * Returns a list of Feature Flags associated with the current user's account.
7840
7554
  */
@@ -8055,6 +7769,26 @@ export function getPersonalAccountDetails(opts?: Oazapfts.RequestOpts) {
8055
7769
  ...opts
8056
7770
  }));
8057
7771
  }
7772
+ /**
7773
+ * Finds and returns personal account expiration data associated with the provided token.
7774
+ */
7775
+ export function getPersonalAccountExpirationData(opts?: Oazapfts.RequestOpts) {
7776
+ return oazapfts.ok(oazapfts.fetchJson<{
7777
+ status: 200;
7778
+ data: PersonalAccountExpirationDataResponse;
7779
+ } | {
7780
+ status: 400;
7781
+ data: ErrorResponse;
7782
+ } | {
7783
+ status: 404;
7784
+ data: ErrorResponse;
7785
+ } | {
7786
+ status: 500;
7787
+ data: ErrorResponse;
7788
+ }>("/v1/accounts/trial/expiration", {
7789
+ ...opts
7790
+ }));
7791
+ }
8058
7792
  /**
8059
7793
  * Retrieves a list of SSO for the current account.
8060
7794
  */
@@ -8365,3 +8099,4 @@ export function deleteMember({ groupId, memberId }: {
8365
8099
  method: "DELETE"
8366
8100
  }));
8367
8101
  }
8102
+