@stack-spot/portal-network 1.0.0-betaadp.3 → 1.0.0-dev.1768423147036
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +633 -0
- package/dist/api/account.d.ts +413 -277
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +261 -176
- package/dist/api/account.js.map +1 -1
- package/dist/api/accountAssetManager.d.ts +309 -0
- package/dist/api/accountAssetManager.d.ts.map +1 -0
- package/dist/api/accountAssetManager.js +169 -0
- package/dist/api/accountAssetManager.js.map +1 -0
- package/dist/api/agent-tools.d.ts +818 -261
- package/dist/api/agent-tools.d.ts.map +1 -1
- package/dist/api/agent-tools.js +245 -50
- package/dist/api/agent-tools.js.map +1 -1
- package/dist/api/agent.d.ts +55 -55
- package/dist/api/agent.d.ts.map +1 -1
- package/dist/api/ai.d.ts +488 -98
- package/dist/api/ai.d.ts.map +1 -1
- package/dist/api/ai.js +426 -146
- package/dist/api/ai.js.map +1 -1
- package/dist/api/cloudPlatform.d.ts +374 -221
- package/dist/api/cloudPlatform.d.ts.map +1 -1
- package/dist/api/cloudPlatform.js +299 -93
- package/dist/api/cloudPlatform.js.map +1 -1
- package/dist/api/cloudPlatformHorizon.d.ts +178 -9
- package/dist/api/cloudPlatformHorizon.d.ts.map +1 -1
- package/dist/api/cloudPlatformHorizon.js +69 -1
- package/dist/api/cloudPlatformHorizon.js.map +1 -1
- package/dist/api/codeShift.d.ts +1125 -83
- package/dist/api/codeShift.d.ts.map +1 -1
- package/dist/api/codeShift.js +538 -16
- package/dist/api/codeShift.js.map +1 -1
- package/dist/api/dataIntegration.d.ts +291 -1
- package/dist/api/dataIntegration.d.ts.map +1 -1
- package/dist/api/dataIntegration.js +254 -0
- package/dist/api/dataIntegration.js.map +1 -1
- package/dist/api/discover.d.ts +98 -12
- package/dist/api/discover.d.ts.map +1 -1
- package/dist/api/discover.js +78 -2
- package/dist/api/discover.js.map +1 -1
- package/dist/api/edpBfa.d.ts +215 -0
- package/dist/api/edpBfa.d.ts.map +1 -0
- package/dist/api/edpBfa.js +87 -0
- package/dist/api/edpBfa.js.map +1 -0
- package/dist/api/genAiInference.d.ts +22 -2
- package/dist/api/genAiInference.d.ts.map +1 -1
- package/dist/api/genAiInference.js +22 -3
- package/dist/api/genAiInference.js.map +1 -1
- package/dist/api/workflows.d.ts +68 -5
- package/dist/api/workflows.d.ts.map +1 -1
- package/dist/api/workflows.js +16 -0
- package/dist/api/workflows.js.map +1 -1
- package/dist/api/workspace-ai.d.ts +41 -0
- package/dist/api/workspace-ai.d.ts.map +1 -1
- package/dist/api/workspace-ai.js +34 -0
- package/dist/api/workspace-ai.js.map +1 -1
- package/dist/api/workspaceManager.d.ts +16 -10
- package/dist/api/workspaceManager.d.ts.map +1 -1
- package/dist/api/workspaceManager.js +10 -0
- package/dist/api/workspaceManager.js.map +1 -1
- package/dist/api-addresses.d.ts +20 -18
- package/dist/api-addresses.d.ts.map +1 -1
- package/dist/api-addresses.js +81 -21
- package/dist/api-addresses.js.map +1 -1
- package/dist/apis-itau.json +241 -0
- package/dist/apis.json +17 -1
- package/dist/client/account-asset-manager.d.ts +112 -0
- package/dist/client/account-asset-manager.d.ts.map +1 -0
- package/dist/client/account-asset-manager.js +160 -0
- package/dist/client/account-asset-manager.js.map +1 -0
- package/dist/client/account.d.ts +265 -242
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +80 -34
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +295 -121
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +166 -12
- package/dist/client/agent-tools.js.map +1 -1
- package/dist/client/agent.d.ts +46 -46
- package/dist/client/agent.d.ts.map +1 -1
- package/dist/client/ai.d.ts +265 -79
- package/dist/client/ai.d.ts.map +1 -1
- package/dist/client/ai.js +268 -24
- package/dist/client/ai.js.map +1 -1
- package/dist/client/api-management.d.ts +10 -1
- package/dist/client/api-management.d.ts.map +1 -1
- package/dist/client/api-management.js +11 -2
- package/dist/client/api-management.js.map +1 -1
- package/dist/client/cloud-account.d.ts +13 -13
- package/dist/client/cloud-platform-horizon.d.ts +38 -19
- package/dist/client/cloud-platform-horizon.d.ts.map +1 -1
- package/dist/client/cloud-platform-horizon.js +19 -1
- package/dist/client/cloud-platform-horizon.js.map +1 -1
- package/dist/client/cloud-platform.d.ts +213 -46
- package/dist/client/cloud-platform.d.ts.map +1 -1
- package/dist/client/cloud-platform.js +168 -33
- package/dist/client/cloud-platform.js.map +1 -1
- package/dist/client/cloud-runtimes.d.ts +4 -4
- package/dist/client/cloud-services.d.ts +17 -17
- package/dist/client/cloud-services.d.ts.map +1 -1
- package/dist/client/code-shift.d.ts +535 -162
- package/dist/client/code-shift.d.ts.map +1 -1
- package/dist/client/code-shift.js +296 -7
- package/dist/client/code-shift.js.map +1 -1
- package/dist/client/content.d.ts +127 -132
- package/dist/client/content.d.ts.map +1 -1
- package/dist/client/data-integration.d.ts +92 -53
- package/dist/client/data-integration.d.ts.map +1 -1
- package/dist/client/data-integration.js +38 -2
- package/dist/client/data-integration.js.map +1 -1
- package/dist/client/discover.d.ts +31 -10
- package/dist/client/discover.d.ts.map +1 -1
- package/dist/client/discover.js +239 -3
- package/dist/client/discover.js.map +1 -1
- package/dist/client/edp-bfa.d.ts +16 -0
- package/dist/client/edp-bfa.d.ts.map +1 -0
- package/dist/client/edp-bfa.js +24 -0
- package/dist/client/edp-bfa.js.map +1 -0
- package/dist/client/event-bus.d.ts.map +1 -1
- package/dist/client/gen-ai-inference.d.ts +20 -20
- package/dist/client/insights.d.ts +7 -7
- package/dist/client/notification.d.ts +17 -10
- package/dist/client/notification.d.ts.map +1 -1
- package/dist/client/notification.js +10 -1
- package/dist/client/notification.js.map +1 -1
- package/dist/client/runtime-manager.d.ts +8 -8
- package/dist/client/secrets.d.ts.map +1 -1
- package/dist/client/secrets.js +1 -1
- package/dist/client/secrets.js.map +1 -1
- package/dist/client/types.d.ts +50 -7
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/workflow.d.ts +10 -10
- package/dist/client/workspace-ai.d.ts +65 -55
- package/dist/client/workspace-ai.d.ts.map +1 -1
- package/dist/client/workspace-ai.js +19 -9
- package/dist/client/workspace-ai.js.map +1 -1
- package/dist/client/workspace-manager.d.ts +115 -76
- package/dist/client/workspace-manager.d.ts.map +1 -1
- package/dist/client/workspace-manager.js +47 -2
- package/dist/client/workspace-manager.js.map +1 -1
- package/dist/client/workspace-search.d.ts +2 -2
- package/dist/client/workspace.d.ts +58 -105
- package/dist/client/workspace.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.d.ts.map +1 -1
- package/dist/error/DefaultAPIError.js.map +1 -1
- package/dist/error/StackspotAPIError.d.ts +3 -4
- package/dist/error/StackspotAPIError.d.ts.map +1 -1
- package/dist/error/StackspotAPIError.js +3 -3
- package/dist/error/StackspotAPIError.js.map +1 -1
- package/dist/error/dictionary/accountAssetManager.d.ts +11 -0
- package/dist/error/dictionary/accountAssetManager.d.ts.map +1 -0
- package/dist/error/dictionary/accountAssetManager.js +11 -0
- package/dist/error/dictionary/accountAssetManager.js.map +1 -0
- package/dist/error/dictionary/cloud-platform.d.ts +76 -8
- package/dist/error/dictionary/cloud-platform.d.ts.map +1 -1
- package/dist/error/dictionary/cloud-platform.js +80 -12
- package/dist/error/dictionary/cloud-platform.js.map +1 -1
- package/dist/error/dictionary/workspace-ai.d.ts +9 -0
- package/dist/error/dictionary/workspace-ai.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-ai.js +9 -0
- package/dist/error/dictionary/workspace-ai.js.map +1 -0
- package/dist/index.d.ts +5 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/network/NetworkClient.d.ts +4 -2
- package/dist/network/NetworkClient.d.ts.map +1 -1
- package/dist/network/NetworkClient.js +16 -4
- package/dist/network/NetworkClient.js.map +1 -1
- package/dist/network/types.d.ts +2 -0
- package/dist/network/types.d.ts.map +1 -1
- package/dist/utils/StreamedJson.d.ts +3 -1
- package/dist/utils/StreamedJson.d.ts.map +1 -1
- package/dist/utils/StreamedJson.js +23 -3
- package/dist/utils/StreamedJson.js.map +1 -1
- package/package.dev.json +3 -0
- package/package.json +10 -9
- package/package.stg.json +3 -0
- package/readme.md +40 -1
- package/src/api/account.ts +701 -540
- package/src/api/accountAssetManager.ts +771 -0
- package/src/api/agent-tools.ts +1354 -556
- package/src/api/ai.ts +891 -170
- package/src/api/cloudPlatform.ts +667 -298
- package/src/api/cloudPlatformHorizon.ts +412 -9
- package/src/api/codeShift.ts +2088 -97
- package/src/api/dataIntegration.ts +635 -1
- package/src/api/discover.ts +180 -14
- package/src/api/edpBfa.ts +472 -0
- package/src/api/genAiInference.ts +47 -4
- package/src/api/workflows.ts +100 -5
- package/src/api/workspace-ai.ts +83 -0
- package/src/api/workspaceManager.ts +25 -10
- package/src/api-addresses.ts +113 -38
- package/src/apis-itau.json +241 -0
- package/src/apis.json +17 -1
- package/src/client/account-asset-manager.ts +100 -0
- package/src/client/account.ts +71 -40
- package/src/client/agent-tools.ts +111 -18
- package/src/client/ai.ts +237 -24
- package/src/client/api-management.ts +7 -2
- package/src/client/cloud-platform-horizon.ts +12 -4
- package/src/client/cloud-platform.ts +101 -27
- package/src/client/code-shift.ts +196 -8
- package/src/client/data-integration.ts +28 -1
- package/src/client/discover.ts +238 -5
- package/src/client/edp-bfa.ts +24 -0
- package/src/client/notification.ts +6 -1
- package/src/client/secrets.ts +1 -1
- package/src/client/types.ts +55 -9
- package/src/client/workspace-ai.ts +37 -26
- package/src/client/workspace-manager.ts +31 -2
- package/src/error/DefaultAPIError.ts +5 -5
- package/src/error/StackspotAPIError.ts +4 -4
- package/src/error/dictionary/accountAssetManager.ts +12 -0
- package/src/error/dictionary/cloud-platform.ts +80 -12
- package/src/error/dictionary/workspace-ai.ts +10 -0
- package/src/index.ts +6 -3
- package/src/network/NetworkClient.ts +18 -6
- package/src/network/types.ts +3 -0
- package/src/utils/StreamedJson.tsx +19 -4
package/src/api/account.ts
CHANGED
|
@@ -163,6 +163,8 @@ export type UserScmInfoResponse = {
|
|
|
163
163
|
secretName: string;
|
|
164
164
|
/** Provider type */
|
|
165
165
|
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
|
|
166
|
+
/** User email */
|
|
167
|
+
email: string;
|
|
166
168
|
};
|
|
167
169
|
export type UserScmInfoRequest = {
|
|
168
170
|
/** Repository Username */
|
|
@@ -281,12 +283,30 @@ export type AccountScmInfoResponse = {
|
|
|
281
283
|
urlProvider?: string;
|
|
282
284
|
};
|
|
283
285
|
export type Value = object;
|
|
286
|
+
export type Basic = Value & {
|
|
287
|
+
/** PAT repository Username */
|
|
288
|
+
user: string;
|
|
289
|
+
/** PAT repository password */
|
|
290
|
+
pass: string;
|
|
291
|
+
};
|
|
292
|
+
export type GithubApp = Value & {
|
|
293
|
+
/** GithubApp App Id */
|
|
294
|
+
appId: string;
|
|
295
|
+
/** GithubApp Client Id */
|
|
296
|
+
clientId: string;
|
|
297
|
+
/** GithubApp Client Secret */
|
|
298
|
+
clientSecret: string;
|
|
299
|
+
/** GithubApp Installer Id */
|
|
300
|
+
installationId: string;
|
|
301
|
+
/** GithubApp private key */
|
|
302
|
+
privateKey: string;
|
|
303
|
+
};
|
|
284
304
|
export type AccountScmInfoUpdateRequest = {
|
|
285
305
|
/** SCM Type */
|
|
286
306
|
"type"?: "PAT" | "GITHUBAPP";
|
|
287
307
|
/** SCM repository provider */
|
|
288
308
|
provider?: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
|
|
289
|
-
value?:
|
|
309
|
+
value?: Basic | GithubApp;
|
|
290
310
|
/** SCM Workflow repository URL */
|
|
291
311
|
workflowUrl?: string;
|
|
292
312
|
/** Flag used when SCM repository account credential configuration is mandated */
|
|
@@ -298,7 +318,7 @@ export type AccountScmInfoSaveRequest = {
|
|
|
298
318
|
"type": "PAT" | "GITHUBAPP";
|
|
299
319
|
/** SCM repository provider */
|
|
300
320
|
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE" | "GITLAB_ONPRM";
|
|
301
|
-
value:
|
|
321
|
+
value: Basic | GithubApp;
|
|
302
322
|
/** Connection URL for on-premises provider */
|
|
303
323
|
urlProvider?: string;
|
|
304
324
|
/** SCM Workflow repository URL */
|
|
@@ -387,8 +407,6 @@ export type AccountMemberStackspotIamDto = {
|
|
|
387
407
|
export type UpdateUserRequest = {
|
|
388
408
|
/** User username */
|
|
389
409
|
username?: string;
|
|
390
|
-
/** User email */
|
|
391
|
-
email?: string;
|
|
392
410
|
/** User first name */
|
|
393
411
|
firstName?: string;
|
|
394
412
|
/** User last name */
|
|
@@ -436,39 +454,14 @@ export type UpdatePasswordRequest = {
|
|
|
436
454
|
/** New password */
|
|
437
455
|
password: string;
|
|
438
456
|
};
|
|
439
|
-
export type
|
|
440
|
-
|
|
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";
|
|
457
|
+
export type AccountStatusRequest = {
|
|
458
|
+
/** Account enabled */
|
|
459
|
+
enabled: boolean;
|
|
463
460
|
};
|
|
464
461
|
export type UpdateSalesRepresentativesRequest = {
|
|
465
462
|
/** List of emails from sales representatives responsible for the account. */
|
|
466
463
|
salesRepresentatives: string[];
|
|
467
464
|
};
|
|
468
|
-
export type AccountStatusRequest = {
|
|
469
|
-
/** Account enabled */
|
|
470
|
-
enabled: boolean;
|
|
471
|
-
};
|
|
472
465
|
export type AttributeImporter = {
|
|
473
466
|
/** External user attribute */
|
|
474
467
|
externalUserAttribute?: string;
|
|
@@ -652,6 +645,66 @@ export type ServiceCredentialCreateResponseV2 = {
|
|
|
652
645
|
/** Account tenant */
|
|
653
646
|
tenant: string;
|
|
654
647
|
};
|
|
648
|
+
export type ResourceTypeDto = {
|
|
649
|
+
/** Id of resource type. */
|
|
650
|
+
id: string;
|
|
651
|
+
/** Name of resource type. */
|
|
652
|
+
name: string;
|
|
653
|
+
/** Slug of resource type. */
|
|
654
|
+
slug: string;
|
|
655
|
+
/** Description of resource type. */
|
|
656
|
+
description: string;
|
|
657
|
+
/** Creation date of resource type. */
|
|
658
|
+
createdAt: string;
|
|
659
|
+
};
|
|
660
|
+
export type ResourceResponse = {
|
|
661
|
+
/** Id of resource. */
|
|
662
|
+
id: string;
|
|
663
|
+
/** Name of resource. */
|
|
664
|
+
name: string;
|
|
665
|
+
/** Description of resource. */
|
|
666
|
+
description?: string;
|
|
667
|
+
"type"?: ResourceTypeDto;
|
|
668
|
+
/** Name of resource. */
|
|
669
|
+
slug: string;
|
|
670
|
+
};
|
|
671
|
+
export type PageResponseResourceResponse = {
|
|
672
|
+
/** Current page content */
|
|
673
|
+
items?: ResourceResponse[];
|
|
674
|
+
/** Total elements found */
|
|
675
|
+
totalElements: number;
|
|
676
|
+
/** Current page number */
|
|
677
|
+
page: number;
|
|
678
|
+
/** Length of current page items */
|
|
679
|
+
size: number;
|
|
680
|
+
/** Total pages found */
|
|
681
|
+
totalPages: number;
|
|
682
|
+
};
|
|
683
|
+
export type ResourceTypeRequest = {
|
|
684
|
+
id?: string;
|
|
685
|
+
slug?: string;
|
|
686
|
+
};
|
|
687
|
+
export type CreateResourceV2Request = {
|
|
688
|
+
/** Resource name */
|
|
689
|
+
name: string;
|
|
690
|
+
/** Resource slug */
|
|
691
|
+
slug: string;
|
|
692
|
+
"type": ResourceTypeRequest;
|
|
693
|
+
/** Resource description */
|
|
694
|
+
description: string;
|
|
695
|
+
/** Resource Parent ID */
|
|
696
|
+
parentId?: string;
|
|
697
|
+
};
|
|
698
|
+
export type IdResponse = {
|
|
699
|
+
/** Id response. */
|
|
700
|
+
id: string;
|
|
701
|
+
};
|
|
702
|
+
export type AddResourceToGroupBySlugAndTypeRequest = {
|
|
703
|
+
/** Resource slug. */
|
|
704
|
+
slug: string;
|
|
705
|
+
/** Resource Type. */
|
|
706
|
+
"type": string;
|
|
707
|
+
};
|
|
655
708
|
export type FeatureFlagPageRequest = {
|
|
656
709
|
size?: number;
|
|
657
710
|
page: number;
|
|
@@ -940,10 +993,6 @@ export type CreateAccountRoleRequest = {
|
|
|
940
993
|
/** Account Role description */
|
|
941
994
|
description?: string;
|
|
942
995
|
};
|
|
943
|
-
export type IdResponse = {
|
|
944
|
-
/** Id response. */
|
|
945
|
-
id: string;
|
|
946
|
-
};
|
|
947
996
|
export type RoleMemberResponse = {
|
|
948
997
|
/** Member ID */
|
|
949
998
|
id: string;
|
|
@@ -979,29 +1028,6 @@ export type RoleGroupIdsRequest = {
|
|
|
979
1028
|
/** List of group IDs to be bound to the role. */
|
|
980
1029
|
ids: string[];
|
|
981
1030
|
};
|
|
982
|
-
export type ResourceTypeDto = {
|
|
983
|
-
/** Id of resource type. */
|
|
984
|
-
id: string;
|
|
985
|
-
/** Name of resource type. */
|
|
986
|
-
name: string;
|
|
987
|
-
/** Slug of resource type. */
|
|
988
|
-
slug: string;
|
|
989
|
-
/** Description of resource type. */
|
|
990
|
-
description: string;
|
|
991
|
-
/** Creation date of resource type. */
|
|
992
|
-
createdAt: string;
|
|
993
|
-
};
|
|
994
|
-
export type ResourceResponse = {
|
|
995
|
-
/** Id of resource. */
|
|
996
|
-
id: string;
|
|
997
|
-
/** Name of resource. */
|
|
998
|
-
name: string;
|
|
999
|
-
/** Description of resource. */
|
|
1000
|
-
description?: string;
|
|
1001
|
-
"type"?: ResourceTypeDto;
|
|
1002
|
-
/** Name of resource. */
|
|
1003
|
-
slug: string;
|
|
1004
|
-
};
|
|
1005
1031
|
export type CreateResourceRequest = {
|
|
1006
1032
|
/** Account resource name */
|
|
1007
1033
|
name: string;
|
|
@@ -1012,6 +1038,46 @@ export type CreateResourceRequest = {
|
|
|
1012
1038
|
/** Account resource description */
|
|
1013
1039
|
description?: string;
|
|
1014
1040
|
};
|
|
1041
|
+
export type ResourceReviewAnswerDto = {
|
|
1042
|
+
id: string;
|
|
1043
|
+
memberId: string;
|
|
1044
|
+
comment: string;
|
|
1045
|
+
createdAt: string;
|
|
1046
|
+
updatedAt?: string;
|
|
1047
|
+
};
|
|
1048
|
+
export type ViewResourceReviewResponse = {
|
|
1049
|
+
id: string;
|
|
1050
|
+
memberId: string;
|
|
1051
|
+
rating: number;
|
|
1052
|
+
comment?: string;
|
|
1053
|
+
resourceType: string;
|
|
1054
|
+
resourceSlug: string;
|
|
1055
|
+
createdAt: string;
|
|
1056
|
+
updatedAt?: string;
|
|
1057
|
+
reviewAnswers?: ResourceReviewAnswerDto[];
|
|
1058
|
+
};
|
|
1059
|
+
export type PageResponseViewResourceReviewResponse = {
|
|
1060
|
+
/** Current page content */
|
|
1061
|
+
items?: ViewResourceReviewResponse[];
|
|
1062
|
+
/** Total elements found */
|
|
1063
|
+
totalElements: number;
|
|
1064
|
+
/** Current page number */
|
|
1065
|
+
page: number;
|
|
1066
|
+
/** Length of current page items */
|
|
1067
|
+
size: number;
|
|
1068
|
+
/** Total pages found */
|
|
1069
|
+
totalPages: number;
|
|
1070
|
+
};
|
|
1071
|
+
export type CreateResourceReviewRequest = {
|
|
1072
|
+
/** Evaluation grade, represented by an integer between 1 and 5. */
|
|
1073
|
+
rating: number;
|
|
1074
|
+
/** Evaluation comment */
|
|
1075
|
+
comment?: string;
|
|
1076
|
+
};
|
|
1077
|
+
export type CreateReviewAnswerRequest = {
|
|
1078
|
+
/** Comment of the review. */
|
|
1079
|
+
answer: string;
|
|
1080
|
+
};
|
|
1015
1081
|
export type AccountMemberResponse = {
|
|
1016
1082
|
/** Account member id */
|
|
1017
1083
|
id: string;
|
|
@@ -1131,22 +1197,6 @@ export type MemberEmailRequest = {
|
|
|
1131
1197
|
/** Member email */
|
|
1132
1198
|
email: string;
|
|
1133
1199
|
};
|
|
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
1200
|
export type PersonalLeadRequest = {
|
|
1151
1201
|
/** Lead name */
|
|
1152
1202
|
name: string;
|
|
@@ -1217,16 +1267,6 @@ export type EnterpriseLeadRequest = {
|
|
|
1217
1267
|
/** Contact reason */
|
|
1218
1268
|
reason?: string;
|
|
1219
1269
|
};
|
|
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
1270
|
export type NewGroupRequest = {
|
|
1231
1271
|
/** Group name */
|
|
1232
1272
|
name: string;
|
|
@@ -1392,20 +1432,6 @@ export type CampaignAvailableResponse = {
|
|
|
1392
1432
|
/** Campaign Status */
|
|
1393
1433
|
isAvailable: boolean;
|
|
1394
1434
|
};
|
|
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
1435
|
export type PersonalClientCredentialsResponse = {
|
|
1410
1436
|
/** The Client ID used for authentication */
|
|
1411
1437
|
clientId: string;
|
|
@@ -1563,6 +1589,14 @@ export type AccountTrialCreateRequest = {
|
|
|
1563
1589
|
reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[];
|
|
1564
1590
|
/** The custom channel used for the trial user to reach Stackspot */
|
|
1565
1591
|
customReachedBy?: string;
|
|
1592
|
+
/** Identify the source of the access (LinkedIn, Facebook, Instagram, etc.) */
|
|
1593
|
+
utmSource?: string;
|
|
1594
|
+
/** Identifies the campaign medium */
|
|
1595
|
+
utmMedium?: string;
|
|
1596
|
+
/** Identifies the campaign name, specific promotion, or slogan. */
|
|
1597
|
+
utmCampaign?: string;
|
|
1598
|
+
/** Identifies the paid term in paid search campaigns (keyword). */
|
|
1599
|
+
utmTerm?: string;
|
|
1566
1600
|
};
|
|
1567
1601
|
export type PersonalAccountExpirationDataResponse = {
|
|
1568
1602
|
/** Account id */
|
|
@@ -1570,13 +1604,9 @@ export type PersonalAccountExpirationDataResponse = {
|
|
|
1570
1604
|
/** Account name */
|
|
1571
1605
|
name: string;
|
|
1572
1606
|
/** Account remaining trial days */
|
|
1573
|
-
remainingTrialDays
|
|
1607
|
+
remainingTrialDays?: number;
|
|
1574
1608
|
/** Date that trial Account will be blocked */
|
|
1575
|
-
validUntil
|
|
1576
|
-
};
|
|
1577
|
-
export type AccountCollaboratorRequest = {
|
|
1578
|
-
/** The API id of account requester */
|
|
1579
|
-
accountApiId: string;
|
|
1609
|
+
validUntil?: string;
|
|
1580
1610
|
};
|
|
1581
1611
|
export type PageResponseAccountSsoGroupMappingResponse = {
|
|
1582
1612
|
/** Current page content */
|
|
@@ -1696,6 +1726,43 @@ export type ValidateAccountPartnerDataRequest = {
|
|
|
1696
1726
|
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
1697
1727
|
domains?: string[];
|
|
1698
1728
|
};
|
|
1729
|
+
export type PrivilegeResourceTypeIdentificationRequest = {
|
|
1730
|
+
/** Slug of the resource type. */
|
|
1731
|
+
slug?: string;
|
|
1732
|
+
/** ID of the resource type. */
|
|
1733
|
+
id?: string;
|
|
1734
|
+
};
|
|
1735
|
+
export type PrivilegeResourceIdentificationRequest = {
|
|
1736
|
+
"type": PrivilegeResourceTypeIdentificationRequest;
|
|
1737
|
+
/** Slug of the resource. */
|
|
1738
|
+
slug: string;
|
|
1739
|
+
};
|
|
1740
|
+
export type PrivilegeActionIdentificationRequest = {
|
|
1741
|
+
/** ID of the action. */
|
|
1742
|
+
id?: string;
|
|
1743
|
+
/** Slug of the action. */
|
|
1744
|
+
slug?: string;
|
|
1745
|
+
};
|
|
1746
|
+
export type RemovePrivilegeToGroupRequest = {
|
|
1747
|
+
/** List of resources to which the privilege applies. */
|
|
1748
|
+
resources: PrivilegeResourceIdentificationRequest[];
|
|
1749
|
+
/** List of resource types to which the privilege applies. */
|
|
1750
|
+
resource_types: PrivilegeResourceTypeIdentificationRequest[];
|
|
1751
|
+
/** List of actions to which the privilege applies. */
|
|
1752
|
+
actions: PrivilegeActionIdentificationRequest[];
|
|
1753
|
+
/** Whether the privilege is inheritable by child resources. */
|
|
1754
|
+
inheritable: boolean;
|
|
1755
|
+
};
|
|
1756
|
+
export type AddPrivilegeToGroupRequest = {
|
|
1757
|
+
/** List of resources to which the privilege applies. */
|
|
1758
|
+
resources: PrivilegeResourceIdentificationRequest[];
|
|
1759
|
+
/** List of resource types to which the privilege applies. */
|
|
1760
|
+
resource_types: PrivilegeResourceTypeIdentificationRequest[];
|
|
1761
|
+
/** List of actions to which the privilege applies. */
|
|
1762
|
+
actions: PrivilegeActionIdentificationRequest[];
|
|
1763
|
+
/** Whether the privilege is inheritable by child resources. */
|
|
1764
|
+
inheritable: boolean;
|
|
1765
|
+
};
|
|
1699
1766
|
export type RotateServiceCredentialSecretRequest = {
|
|
1700
1767
|
/** Service credential secret */
|
|
1701
1768
|
secret: string;
|
|
@@ -1743,6 +1810,16 @@ export type ServiceCredentialAssociateGroupRequest = {
|
|
|
1743
1810
|
/** Service credential groups ids */
|
|
1744
1811
|
teams: string[];
|
|
1745
1812
|
};
|
|
1813
|
+
export type UpdateResourceReviewRequest = {
|
|
1814
|
+
/** Evaluation grade, represented by an integer between 1 and 5. */
|
|
1815
|
+
rating?: number;
|
|
1816
|
+
/** Evaluation comment */
|
|
1817
|
+
comment?: string;
|
|
1818
|
+
};
|
|
1819
|
+
export type UpdateReviewAnswerRequest = {
|
|
1820
|
+
/** Comment of the review. */
|
|
1821
|
+
answer: string;
|
|
1822
|
+
};
|
|
1746
1823
|
export type ReadPreferencesResponse = {
|
|
1747
1824
|
/** Dashboard widgets preferences */
|
|
1748
1825
|
dashboardWidgets?: string[];
|
|
@@ -1959,18 +2036,6 @@ export type PageResponseRoleGroupResponse = {
|
|
|
1959
2036
|
/** Total pages found */
|
|
1960
2037
|
totalPages: number;
|
|
1961
2038
|
};
|
|
1962
|
-
export type PageResponseResourceResponse = {
|
|
1963
|
-
/** Current page content */
|
|
1964
|
-
items?: ResourceResponse[];
|
|
1965
|
-
/** Total elements found */
|
|
1966
|
-
totalElements: number;
|
|
1967
|
-
/** Current page number */
|
|
1968
|
-
page: number;
|
|
1969
|
-
/** Length of current page items */
|
|
1970
|
-
size: number;
|
|
1971
|
-
/** Total pages found */
|
|
1972
|
-
totalPages: number;
|
|
1973
|
-
};
|
|
1974
2039
|
export type MembersFromResourceResponse = {
|
|
1975
2040
|
/** Member ID */
|
|
1976
2041
|
id: string;
|
|
@@ -2189,16 +2254,6 @@ export type AccountScmStatusResponse = {
|
|
|
2189
2254
|
};
|
|
2190
2255
|
export type RolePermissionResponse = {
|
|
2191
2256
|
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
2257
|
};
|
|
2203
2258
|
export type ResourceDto = {
|
|
2204
2259
|
/** Unique identifier of the resource. */
|
|
@@ -2282,6 +2337,8 @@ export type PersonalAccountDetailsResponse = {
|
|
|
2282
2337
|
accountId: string;
|
|
2283
2338
|
/** Full name of the account owner. */
|
|
2284
2339
|
fullName: string;
|
|
2340
|
+
/** Date and time until the account is valid. */
|
|
2341
|
+
validUntil?: string;
|
|
2285
2342
|
/** Date and time that the account was created. */
|
|
2286
2343
|
createdAt: string;
|
|
2287
2344
|
campaign?: Campaign;
|
|
@@ -2296,7 +2353,7 @@ export type PersonalAccountDetailsResponse = {
|
|
|
2296
2353
|
/** Custom position of the account owner in the company, if not listed. */
|
|
2297
2354
|
otherPosition?: string | null;
|
|
2298
2355
|
/** How the account owner was reached. */
|
|
2299
|
-
reachedBy?: (
|
|
2356
|
+
reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[] | null;
|
|
2300
2357
|
/** Custom description of how the account owner was reached, if not listed. */
|
|
2301
2358
|
customReachedBy?: string | null;
|
|
2302
2359
|
};
|
|
@@ -2347,6 +2404,35 @@ export type AccountPartnerResponse = {
|
|
|
2347
2404
|
/** Account current status */
|
|
2348
2405
|
isActive: boolean;
|
|
2349
2406
|
};
|
|
2407
|
+
export type ResourceTypeIdentifierRequest = {
|
|
2408
|
+
/** Slug of the resource type. */
|
|
2409
|
+
slug?: string;
|
|
2410
|
+
/** ID of the resource type. */
|
|
2411
|
+
id?: string;
|
|
2412
|
+
};
|
|
2413
|
+
export type DeleteResourceRequestV3 = {
|
|
2414
|
+
"type": ResourceTypeIdentifierRequest;
|
|
2415
|
+
/** Slug of the resource to be deleted */
|
|
2416
|
+
slug: string;
|
|
2417
|
+
};
|
|
2418
|
+
export type DeleteResourceResponseV3 = {
|
|
2419
|
+
/** Unique identifier of the resource. */
|
|
2420
|
+
id: string;
|
|
2421
|
+
/** Name of the resource. */
|
|
2422
|
+
name: string;
|
|
2423
|
+
/** Slug version of the resource name. */
|
|
2424
|
+
slug: string;
|
|
2425
|
+
/** Optional description of the resource. */
|
|
2426
|
+
description?: string;
|
|
2427
|
+
"type"?: ResourceTypeDto;
|
|
2428
|
+
};
|
|
2429
|
+
export type PageDtoDeleteResourceResponseV3 = {
|
|
2430
|
+
items: DeleteResourceResponseV3[];
|
|
2431
|
+
size: number;
|
|
2432
|
+
totalElements: number;
|
|
2433
|
+
page: number;
|
|
2434
|
+
totalPages: number;
|
|
2435
|
+
};
|
|
2350
2436
|
/**
|
|
2351
2437
|
* Retrieves a list of rate limit with the associated service credential.
|
|
2352
2438
|
*/
|
|
@@ -2581,7 +2667,7 @@ export function deleteAccountAssociation({ featureFlagId, accountId }: {
|
|
|
2581
2667
|
/**
|
|
2582
2668
|
* Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
|
|
2583
2669
|
*/
|
|
2584
|
-
export function
|
|
2670
|
+
export function listScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
2585
2671
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2586
2672
|
status: 200;
|
|
2587
2673
|
data: UserScmInfoResponse[];
|
|
@@ -2781,7 +2867,7 @@ export function deleteScope({ scopeId }: {
|
|
|
2781
2867
|
/**
|
|
2782
2868
|
* Retrieves a list of SCM credentials associated with the current user's account.
|
|
2783
2869
|
*/
|
|
2784
|
-
export function
|
|
2870
|
+
export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
2785
2871
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2786
2872
|
status: 200;
|
|
2787
2873
|
data: AccountScmInfoResponse[];
|
|
@@ -2893,7 +2979,7 @@ export function deleteAccountRole({ roleId }: {
|
|
|
2893
2979
|
/**
|
|
2894
2980
|
* Retrieves a of resources and their associated actions with their status compared to a specified role.
|
|
2895
2981
|
*/
|
|
2896
|
-
export function
|
|
2982
|
+
export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2897
2983
|
roleId: string;
|
|
2898
2984
|
size?: any;
|
|
2899
2985
|
page?: any;
|
|
@@ -3056,33 +3142,30 @@ export function updateUserPassword({ memberId, updatePasswordRequest }: {
|
|
|
3056
3142
|
})));
|
|
3057
3143
|
}
|
|
3058
3144
|
/**
|
|
3059
|
-
*
|
|
3145
|
+
* Updates an account status based on the provided account ID.
|
|
3060
3146
|
*/
|
|
3061
|
-
export function
|
|
3062
|
-
|
|
3147
|
+
export function updateAccountStatus({ accountId, accountStatusRequest }: {
|
|
3148
|
+
accountId: string;
|
|
3149
|
+
accountStatusRequest: AccountStatusRequest;
|
|
3063
3150
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3064
3151
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3065
3152
|
status: 200;
|
|
3066
|
-
data: UserInvitationResponse;
|
|
3067
|
-
} | {
|
|
3068
|
-
status: 403;
|
|
3069
|
-
data: ErrorResponse;
|
|
3070
3153
|
} | {
|
|
3071
|
-
status:
|
|
3072
|
-
data: ErrorResponse;
|
|
3154
|
+
status: 204;
|
|
3073
3155
|
} | {
|
|
3074
|
-
status:
|
|
3156
|
+
status: 400;
|
|
3075
3157
|
data: ErrorResponse;
|
|
3076
3158
|
} | {
|
|
3077
|
-
status:
|
|
3159
|
+
status: 404;
|
|
3078
3160
|
data: ErrorResponse;
|
|
3079
3161
|
} | {
|
|
3080
3162
|
status: 500;
|
|
3081
3163
|
data: ErrorResponse;
|
|
3082
|
-
}>(`/v1/
|
|
3164
|
+
}>(`/v1/admin/accounts/${encodeURIComponent(accountId)}/status`, oazapfts.json({
|
|
3083
3165
|
...opts,
|
|
3084
|
-
method: "PUT"
|
|
3085
|
-
|
|
3166
|
+
method: "PUT",
|
|
3167
|
+
body: accountStatusRequest
|
|
3168
|
+
})));
|
|
3086
3169
|
}
|
|
3087
3170
|
/**
|
|
3088
3171
|
* Updates the sales representatives associated with an active account.
|
|
@@ -3108,7 +3191,7 @@ export function updateSalesRepresentatives({ accountId, updateSalesRepresentativ
|
|
|
3108
3191
|
/**
|
|
3109
3192
|
* Enables an account by updating its status.
|
|
3110
3193
|
*/
|
|
3111
|
-
export function
|
|
3194
|
+
export function updateAccountStatus1({ accountId, accountStatusRequest }: {
|
|
3112
3195
|
accountId: string;
|
|
3113
3196
|
accountStatusRequest: AccountStatusRequest;
|
|
3114
3197
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3120,6 +3203,8 @@ export function updateAccountStatus({ accountId, accountStatusRequest }: {
|
|
|
3120
3203
|
} | {
|
|
3121
3204
|
status: 404;
|
|
3122
3205
|
data: ErrorResponse;
|
|
3206
|
+
} | {
|
|
3207
|
+
status: 410;
|
|
3123
3208
|
} | {
|
|
3124
3209
|
status: 500;
|
|
3125
3210
|
data: ErrorResponse;
|
|
@@ -3288,7 +3373,7 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
|
|
|
3288
3373
|
multiFilterMode?: string;
|
|
3289
3374
|
filterIn?: any;
|
|
3290
3375
|
name?: string;
|
|
3291
|
-
status?:
|
|
3376
|
+
status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
3292
3377
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3293
3378
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3294
3379
|
status: 200;
|
|
@@ -3344,41 +3429,171 @@ export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
|
|
|
3344
3429
|
})));
|
|
3345
3430
|
}
|
|
3346
3431
|
/**
|
|
3347
|
-
*
|
|
3432
|
+
* Retrieves a list of resources.
|
|
3348
3433
|
*/
|
|
3349
|
-
export function
|
|
3350
|
-
|
|
3434
|
+
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3435
|
+
size?: any;
|
|
3436
|
+
page?: any;
|
|
3437
|
+
sort?: string;
|
|
3438
|
+
direction?: "ASC" | "DESC";
|
|
3439
|
+
search?: string;
|
|
3440
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
3441
|
+
filterBy?: string;
|
|
3442
|
+
filterValue?: string;
|
|
3443
|
+
multiFilterMode?: string;
|
|
3444
|
+
filterIn?: any;
|
|
3351
3445
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3352
3446
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3353
3447
|
status: 200;
|
|
3354
|
-
data:
|
|
3448
|
+
data: PageResponseResourceResponse;
|
|
3355
3449
|
} | {
|
|
3356
|
-
status:
|
|
3450
|
+
status: 403;
|
|
3357
3451
|
data: ErrorResponse;
|
|
3358
3452
|
} | {
|
|
3359
3453
|
status: 500;
|
|
3360
|
-
data: PageResponseFeatureFlagsResponsePagedV2;
|
|
3361
|
-
}>("/v2/feature-flags", oazapfts.json({
|
|
3362
|
-
...opts,
|
|
3363
|
-
method: "POST",
|
|
3364
|
-
body: featureFlagPageRequest
|
|
3365
|
-
})));
|
|
3366
|
-
}
|
|
3367
|
-
/**
|
|
3368
|
-
* Returns a list of Feature Flags associated with the current user's account.
|
|
3369
|
-
*/
|
|
3370
|
-
export function getFeatures2(opts?: Oazapfts.RequestOpts) {
|
|
3371
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3372
|
-
status: 200;
|
|
3373
|
-
data: FeatureFlagsResponseV2[];
|
|
3374
|
-
} | {
|
|
3375
|
-
status: 422;
|
|
3376
3454
|
data: ErrorResponse;
|
|
3377
|
-
}
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3455
|
+
}>(`/v2/resources${QS.query(QS.explode({
|
|
3456
|
+
size,
|
|
3457
|
+
page,
|
|
3458
|
+
sort,
|
|
3459
|
+
direction,
|
|
3460
|
+
search,
|
|
3461
|
+
filterMode,
|
|
3462
|
+
filterBy,
|
|
3463
|
+
filterValue,
|
|
3464
|
+
multiFilterMode,
|
|
3465
|
+
filterIn
|
|
3466
|
+
}))}`, {
|
|
3467
|
+
...opts
|
|
3468
|
+
}));
|
|
3469
|
+
}
|
|
3470
|
+
/**
|
|
3471
|
+
* Creates a new resource for the account.
|
|
3472
|
+
*/
|
|
3473
|
+
export function createResource({ createResourceV2Request }: {
|
|
3474
|
+
createResourceV2Request: CreateResourceV2Request;
|
|
3475
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3476
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3477
|
+
status: 201;
|
|
3478
|
+
data: IdResponse;
|
|
3479
|
+
} | {
|
|
3480
|
+
status: 400;
|
|
3481
|
+
data: ErrorResponse;
|
|
3482
|
+
} | {
|
|
3483
|
+
status: 403;
|
|
3484
|
+
data: ErrorResponse;
|
|
3485
|
+
} | {
|
|
3486
|
+
status: 404;
|
|
3487
|
+
data: ErrorResponse;
|
|
3488
|
+
} | {
|
|
3489
|
+
status: 409;
|
|
3490
|
+
data: ErrorResponse;
|
|
3491
|
+
} | {
|
|
3492
|
+
status: 500;
|
|
3493
|
+
data: ErrorResponse;
|
|
3494
|
+
}>("/v2/resources", oazapfts.json({
|
|
3495
|
+
...opts,
|
|
3496
|
+
method: "POST",
|
|
3497
|
+
body: createResourceV2Request
|
|
3498
|
+
})));
|
|
3499
|
+
}
|
|
3500
|
+
/**
|
|
3501
|
+
* Get Group Resources
|
|
3502
|
+
*/
|
|
3503
|
+
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3504
|
+
groupId: string;
|
|
3505
|
+
size?: any;
|
|
3506
|
+
page?: any;
|
|
3507
|
+
sort?: string;
|
|
3508
|
+
direction?: "ASC" | "DESC";
|
|
3509
|
+
search?: string;
|
|
3510
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
3511
|
+
filterBy?: string;
|
|
3512
|
+
filterValue?: string;
|
|
3513
|
+
multiFilterMode?: string;
|
|
3514
|
+
filterIn?: any;
|
|
3515
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3516
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3517
|
+
status: 200;
|
|
3518
|
+
data: PageResponseResourceResponse;
|
|
3519
|
+
} | {
|
|
3520
|
+
status: 403;
|
|
3521
|
+
data: ErrorResponse;
|
|
3522
|
+
} | {
|
|
3523
|
+
status: 500;
|
|
3524
|
+
data: ErrorResponse;
|
|
3525
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
3526
|
+
size,
|
|
3527
|
+
page,
|
|
3528
|
+
sort,
|
|
3529
|
+
direction,
|
|
3530
|
+
search,
|
|
3531
|
+
filterMode,
|
|
3532
|
+
filterBy,
|
|
3533
|
+
filterValue,
|
|
3534
|
+
multiFilterMode,
|
|
3535
|
+
filterIn
|
|
3536
|
+
}))}`, {
|
|
3537
|
+
...opts
|
|
3538
|
+
}));
|
|
3539
|
+
}
|
|
3540
|
+
/**
|
|
3541
|
+
* Add Multiple Resources to Group
|
|
3542
|
+
*/
|
|
3543
|
+
export function addResourcesToGroupBySlugAndType({ groupId, body }: {
|
|
3544
|
+
groupId: string;
|
|
3545
|
+
body: AddResourceToGroupBySlugAndTypeRequest[];
|
|
3546
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3547
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3548
|
+
status: 200;
|
|
3549
|
+
} | {
|
|
3550
|
+
status: 403;
|
|
3551
|
+
data: ErrorResponse;
|
|
3552
|
+
} | {
|
|
3553
|
+
status: 500;
|
|
3554
|
+
data: ErrorResponse;
|
|
3555
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/resources`, oazapfts.json({
|
|
3556
|
+
...opts,
|
|
3557
|
+
method: "POST",
|
|
3558
|
+
body
|
|
3559
|
+
})));
|
|
3560
|
+
}
|
|
3561
|
+
/**
|
|
3562
|
+
* Returns a paged list of Feature Flags associated with the current user's account.
|
|
3563
|
+
*/
|
|
3564
|
+
export function getFeatures({ featureFlagPageRequest }: {
|
|
3565
|
+
featureFlagPageRequest?: FeatureFlagPageRequest;
|
|
3566
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3567
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3568
|
+
status: 200;
|
|
3569
|
+
data: PageResponseFeatureFlagsResponsePagedV2;
|
|
3570
|
+
} | {
|
|
3571
|
+
status: 422;
|
|
3572
|
+
data: ErrorResponse;
|
|
3573
|
+
} | {
|
|
3574
|
+
status: 500;
|
|
3575
|
+
data: PageResponseFeatureFlagsResponsePagedV2;
|
|
3576
|
+
}>("/v2/feature-flags", oazapfts.json({
|
|
3577
|
+
...opts,
|
|
3578
|
+
method: "POST",
|
|
3579
|
+
body: featureFlagPageRequest
|
|
3580
|
+
})));
|
|
3581
|
+
}
|
|
3582
|
+
/**
|
|
3583
|
+
* Returns a list of Feature Flags associated with the current user's account.
|
|
3584
|
+
*/
|
|
3585
|
+
export function getFeatures1(opts?: Oazapfts.RequestOpts) {
|
|
3586
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3587
|
+
status: 200;
|
|
3588
|
+
data: FeatureFlagsResponseV2[];
|
|
3589
|
+
} | {
|
|
3590
|
+
status: 422;
|
|
3591
|
+
data: ErrorResponse;
|
|
3592
|
+
} | {
|
|
3593
|
+
status: 500;
|
|
3594
|
+
data: FeatureFlagsResponseV2[];
|
|
3595
|
+
}>("/v2/admin/feature-flags", {
|
|
3596
|
+
...opts
|
|
3382
3597
|
}));
|
|
3383
3598
|
}
|
|
3384
3599
|
/**
|
|
@@ -3408,7 +3623,7 @@ export function create({ createFeatureFlagRequest }: {
|
|
|
3408
3623
|
/**
|
|
3409
3624
|
* Returns a paged list of Feature Flags associated with the current user's account.
|
|
3410
3625
|
*/
|
|
3411
|
-
export function
|
|
3626
|
+
export function getFeatures2({ accountId, featureFlagPageRequest }: {
|
|
3412
3627
|
accountId: string;
|
|
3413
3628
|
featureFlagPageRequest?: FeatureFlagPageRequest;
|
|
3414
3629
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3503,9 +3718,9 @@ export function createExternalLink({ accountId, externalLinkRequest }: {
|
|
|
3503
3718
|
*/
|
|
3504
3719
|
export function getServiceCredentials1({ name, status, page, size }: {
|
|
3505
3720
|
name?: string;
|
|
3506
|
-
status?:
|
|
3507
|
-
page?:
|
|
3508
|
-
size?:
|
|
3721
|
+
status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
3722
|
+
page?: number;
|
|
3723
|
+
size?: number;
|
|
3509
3724
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3510
3725
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3511
3726
|
status: 200;
|
|
@@ -3580,7 +3795,7 @@ export function notifyServiceCredentialExpiration({ serviceCredentialExpirationR
|
|
|
3580
3795
|
/**
|
|
3581
3796
|
* Find secrets with multiple filters and conditions
|
|
3582
3797
|
*/
|
|
3583
|
-
export function
|
|
3798
|
+
export function findSecrets({ size, page, sort, direction, search, filterByScope, filterByType, filterByScopedBy, filterByScopedValue, authorizedOnly }: {
|
|
3584
3799
|
size?: any;
|
|
3585
3800
|
page?: any;
|
|
3586
3801
|
sort?: string;
|
|
@@ -3640,11 +3855,12 @@ export function createSecret({ createSecretRequest }: {
|
|
|
3640
3855
|
/**
|
|
3641
3856
|
* Associate a secret with a resource
|
|
3642
3857
|
*/
|
|
3643
|
-
export function associateResource({ secretId, resourceSlug }: {
|
|
3858
|
+
export function associateResource({ secretId, resourceSlug, resourceTypeSlug }: {
|
|
3644
3859
|
secretId: string;
|
|
3645
3860
|
resourceSlug: string;
|
|
3861
|
+
resourceTypeSlug: string;
|
|
3646
3862
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3647
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
|
|
3863
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
|
|
3648
3864
|
...opts,
|
|
3649
3865
|
method: "POST"
|
|
3650
3866
|
}));
|
|
@@ -3652,11 +3868,12 @@ export function associateResource({ secretId, resourceSlug }: {
|
|
|
3652
3868
|
/**
|
|
3653
3869
|
* Disassociate a secret with a resource
|
|
3654
3870
|
*/
|
|
3655
|
-
export function disassociateResource({ secretId, resourceSlug }: {
|
|
3871
|
+
export function disassociateResource({ secretId, resourceSlug, resourceTypeSlug }: {
|
|
3656
3872
|
secretId: string;
|
|
3657
3873
|
resourceSlug: string;
|
|
3874
|
+
resourceTypeSlug: string;
|
|
3658
3875
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3659
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/${encodeURIComponent(resourceSlug)}`, {
|
|
3876
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/associations/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}`, {
|
|
3660
3877
|
...opts,
|
|
3661
3878
|
method: "DELETE"
|
|
3662
3879
|
}));
|
|
@@ -3664,7 +3881,7 @@ export function disassociateResource({ secretId, resourceSlug }: {
|
|
|
3664
3881
|
/**
|
|
3665
3882
|
* Check if user has access to secret
|
|
3666
3883
|
*/
|
|
3667
|
-
export function
|
|
3884
|
+
export function findSecrets1({ checkSecretAccessRequest }: {
|
|
3668
3885
|
checkSecretAccessRequest: CheckSecretAccessRequest;
|
|
3669
3886
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3670
3887
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3726,7 +3943,7 @@ export function createScope({ iamCreateScopeRequest }: {
|
|
|
3726
3943
|
/**
|
|
3727
3944
|
* Retrieves a list of roles available to the current account.
|
|
3728
3945
|
*/
|
|
3729
|
-
export function
|
|
3946
|
+
export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3730
3947
|
size?: any;
|
|
3731
3948
|
page?: any;
|
|
3732
3949
|
sort?: string;
|
|
@@ -3789,7 +4006,7 @@ export function createAccountRole({ createAccountRoleRequest }: {
|
|
|
3789
4006
|
/**
|
|
3790
4007
|
* Retrieves a list of role members for a specified role.
|
|
3791
4008
|
*/
|
|
3792
|
-
export function
|
|
4009
|
+
export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3793
4010
|
roleId: string;
|
|
3794
4011
|
size?: any;
|
|
3795
4012
|
page?: any;
|
|
@@ -3866,7 +4083,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
|
|
|
3866
4083
|
/**
|
|
3867
4084
|
* Retrieves a list of role groups associated with a specific group ID.
|
|
3868
4085
|
*/
|
|
3869
|
-
export function
|
|
4086
|
+
export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3870
4087
|
roleId: string;
|
|
3871
4088
|
size?: any;
|
|
3872
4089
|
page?: any;
|
|
@@ -3974,7 +4191,7 @@ export function getResources1({ size, page, sort, direction, search, filterMode,
|
|
|
3974
4191
|
/**
|
|
3975
4192
|
* Creates a new resource for the account.
|
|
3976
4193
|
*/
|
|
3977
|
-
export function
|
|
4194
|
+
export function createResource1({ createResourceRequest }: {
|
|
3978
4195
|
createResourceRequest: CreateResourceRequest;
|
|
3979
4196
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3980
4197
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3995,10 +4212,86 @@ export function createResource({ createResourceRequest }: {
|
|
|
3995
4212
|
body: createResourceRequest
|
|
3996
4213
|
})));
|
|
3997
4214
|
}
|
|
4215
|
+
/**
|
|
4216
|
+
* Get all resources reviews
|
|
4217
|
+
*/
|
|
4218
|
+
export function getReviews({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4219
|
+
resourceSlug: string;
|
|
4220
|
+
resourceTypeSlug: string;
|
|
4221
|
+
size?: any;
|
|
4222
|
+
page?: any;
|
|
4223
|
+
sort?: string;
|
|
4224
|
+
direction?: "ASC" | "DESC";
|
|
4225
|
+
search?: string;
|
|
4226
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4227
|
+
filterBy?: string;
|
|
4228
|
+
filterValue?: string;
|
|
4229
|
+
multiFilterMode?: string;
|
|
4230
|
+
filterIn?: any;
|
|
4231
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4232
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4233
|
+
status: 200;
|
|
4234
|
+
data: PageResponseViewResourceReviewResponse;
|
|
4235
|
+
} | {
|
|
4236
|
+
status: 400;
|
|
4237
|
+
data: PageResponseViewResourceReviewResponse;
|
|
4238
|
+
} | {
|
|
4239
|
+
status: 500;
|
|
4240
|
+
data: PageResponseViewResourceReviewResponse;
|
|
4241
|
+
}>(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews${QS.query(QS.explode({
|
|
4242
|
+
size,
|
|
4243
|
+
page,
|
|
4244
|
+
sort,
|
|
4245
|
+
direction,
|
|
4246
|
+
search,
|
|
4247
|
+
filterMode,
|
|
4248
|
+
filterBy,
|
|
4249
|
+
filterValue,
|
|
4250
|
+
multiFilterMode,
|
|
4251
|
+
filterIn
|
|
4252
|
+
}))}`, {
|
|
4253
|
+
...opts
|
|
4254
|
+
}));
|
|
4255
|
+
}
|
|
4256
|
+
/**
|
|
4257
|
+
* Create a resource review
|
|
4258
|
+
*/
|
|
4259
|
+
export function createReview({ resourceSlug, resourceTypeSlug, xMemberId, createResourceReviewRequest }: {
|
|
4260
|
+
resourceSlug: string;
|
|
4261
|
+
resourceTypeSlug: string;
|
|
4262
|
+
xMemberId: string;
|
|
4263
|
+
createResourceReviewRequest: CreateResourceReviewRequest;
|
|
4264
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4265
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews`, oazapfts.json({
|
|
4266
|
+
...opts,
|
|
4267
|
+
method: "POST",
|
|
4268
|
+
body: createResourceReviewRequest,
|
|
4269
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4270
|
+
"x-member-id": xMemberId
|
|
4271
|
+
})
|
|
4272
|
+
})));
|
|
4273
|
+
}
|
|
4274
|
+
/**
|
|
4275
|
+
* Create an answer to a review
|
|
4276
|
+
*/
|
|
4277
|
+
export function createReviewAnswer({ reviewId, xMemberId, createReviewAnswerRequest }: {
|
|
4278
|
+
reviewId: string;
|
|
4279
|
+
xMemberId: string;
|
|
4280
|
+
createReviewAnswerRequest: CreateReviewAnswerRequest;
|
|
4281
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4282
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
|
|
4283
|
+
...opts,
|
|
4284
|
+
method: "POST",
|
|
4285
|
+
body: createReviewAnswerRequest,
|
|
4286
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4287
|
+
"x-member-id": xMemberId
|
|
4288
|
+
})
|
|
4289
|
+
})));
|
|
4290
|
+
}
|
|
3998
4291
|
/**
|
|
3999
4292
|
* Retrieves a list of account members for a specified account.
|
|
4000
4293
|
*/
|
|
4001
|
-
export function
|
|
4294
|
+
export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4002
4295
|
size?: any;
|
|
4003
4296
|
page?: any;
|
|
4004
4297
|
sort?: string;
|
|
@@ -4061,7 +4354,7 @@ export function createUser({ createUserRequest }: {
|
|
|
4061
4354
|
/**
|
|
4062
4355
|
* Retrieves a paginated list of roles associated with a specific member.
|
|
4063
4356
|
*/
|
|
4064
|
-
export function
|
|
4357
|
+
export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4065
4358
|
memberId: string;
|
|
4066
4359
|
size?: any;
|
|
4067
4360
|
page?: any;
|
|
@@ -4150,7 +4443,7 @@ export function resetOtp({ memberId }: {
|
|
|
4150
4443
|
/**
|
|
4151
4444
|
* Retrieves a list of groups associated with a specific member.
|
|
4152
4445
|
*/
|
|
4153
|
-
export function
|
|
4446
|
+
export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4154
4447
|
memberId: string;
|
|
4155
4448
|
size?: any;
|
|
4156
4449
|
page?: any;
|
|
@@ -4305,30 +4598,6 @@ export function resetPassword({ memberEmailRequest }: {
|
|
|
4305
4598
|
body: memberEmailRequest
|
|
4306
4599
|
})));
|
|
4307
4600
|
}
|
|
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
4601
|
/**
|
|
4333
4602
|
* Create a personal lead contact
|
|
4334
4603
|
*/
|
|
@@ -4377,65 +4646,10 @@ export function enterpriseContact({ enterpriseLeadRequest }: {
|
|
|
4377
4646
|
body: enterpriseLeadRequest
|
|
4378
4647
|
})));
|
|
4379
4648
|
}
|
|
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
4649
|
/**
|
|
4436
4650
|
* Get Groups
|
|
4437
4651
|
*/
|
|
4438
|
-
export function
|
|
4652
|
+
export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
|
|
4439
4653
|
size?: any;
|
|
4440
4654
|
page?: any;
|
|
4441
4655
|
sort?: string;
|
|
@@ -4500,7 +4714,7 @@ export function save({ newGroupRequest }: {
|
|
|
4500
4714
|
/**
|
|
4501
4715
|
* Get Group members
|
|
4502
4716
|
*/
|
|
4503
|
-
export function
|
|
4717
|
+
export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4504
4718
|
groupId: string;
|
|
4505
4719
|
size?: any;
|
|
4506
4720
|
page?: any;
|
|
@@ -4627,7 +4841,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }: {
|
|
|
4627
4841
|
/**
|
|
4628
4842
|
* Get Group members
|
|
4629
4843
|
*/
|
|
4630
|
-
export function
|
|
4844
|
+
export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4631
4845
|
groupId: string;
|
|
4632
4846
|
size?: any;
|
|
4633
4847
|
page?: any;
|
|
@@ -4691,9 +4905,11 @@ export function bindGroupMembers({ groupId, groupMemberIdsRequest }: {
|
|
|
4691
4905
|
})));
|
|
4692
4906
|
}
|
|
4693
4907
|
/**
|
|
4694
|
-
* List
|
|
4908
|
+
* List extensions that user is allowed to manage
|
|
4695
4909
|
*/
|
|
4696
|
-
export function
|
|
4910
|
+
export function listManageableExtensions({ actions }: {
|
|
4911
|
+
actions?: string[];
|
|
4912
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4697
4913
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4698
4914
|
status: 200;
|
|
4699
4915
|
data: ExtensionReadResponse[];
|
|
@@ -4709,7 +4925,9 @@ export function listExtensions(opts?: Oazapfts.RequestOpts) {
|
|
|
4709
4925
|
} | {
|
|
4710
4926
|
status: 500;
|
|
4711
4927
|
data: ErrorResponse;
|
|
4712
|
-
}>(
|
|
4928
|
+
}>(`/v1/extensions${QS.query(QS.explode({
|
|
4929
|
+
actions
|
|
4930
|
+
}))}`, {
|
|
4713
4931
|
...opts
|
|
4714
4932
|
}));
|
|
4715
4933
|
}
|
|
@@ -4862,16 +5080,7 @@ export function createExtensionLink({ extensionLinkCreateRequest }: {
|
|
|
4862
5080
|
*/
|
|
4863
5081
|
export function receiveWebhook({ provider, body }: {
|
|
4864
5082
|
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
|
-
};
|
|
5083
|
+
body: string;
|
|
4875
5084
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4876
5085
|
return oazapfts.ok(oazapfts.fetchText(`/v1/engagement/forms/webhook/${encodeURIComponent(provider)}`, oazapfts.json({
|
|
4877
5086
|
...opts,
|
|
@@ -4977,33 +5186,6 @@ export function validateCampaignCode({ code }: {
|
|
|
4977
5186
|
method: "POST"
|
|
4978
5187
|
}));
|
|
4979
5188
|
}
|
|
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
5189
|
/**
|
|
5008
5190
|
* Get credentials from personal service client (create if not exists one to the logged user).
|
|
5009
5191
|
*/
|
|
@@ -5025,7 +5207,7 @@ export function getPersonalClientCredentials(opts?: Oazapfts.RequestOpts) {
|
|
|
5025
5207
|
/**
|
|
5026
5208
|
* Get an Access Token generated With Audience on logged user behalf, since previously authorized.
|
|
5027
5209
|
*/
|
|
5028
|
-
export function
|
|
5210
|
+
export function getPersonalAccessToken({ apiAuthorization, generateTokenFromPersonalAccountRequest }: {
|
|
5029
5211
|
apiAuthorization: string;
|
|
5030
5212
|
generateTokenFromPersonalAccountRequest?: GenerateTokenFromPersonalAccountRequest;
|
|
5031
5213
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -5309,7 +5491,7 @@ export function updateVisionOne({ updateVisionOneIntegrationRequest }: {
|
|
|
5309
5491
|
/**
|
|
5310
5492
|
* Finds and returns a list of accounts filtered by account type.
|
|
5311
5493
|
*/
|
|
5312
|
-
export function
|
|
5494
|
+
export function getAccounts({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5313
5495
|
size?: any;
|
|
5314
5496
|
page?: any;
|
|
5315
5497
|
sort?: string;
|
|
@@ -5414,32 +5596,6 @@ export function removeTrialAccount(opts?: Oazapfts.RequestOpts) {
|
|
|
5414
5596
|
method: "DELETE"
|
|
5415
5597
|
}));
|
|
5416
5598
|
}
|
|
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
5599
|
/**
|
|
5444
5600
|
* Retrieves a list of SSO group mappings.
|
|
5445
5601
|
*/
|
|
@@ -5595,6 +5751,39 @@ export function validateNewPartnerData({ validateAccountPartnerDataRequest }: {
|
|
|
5595
5751
|
body: validateAccountPartnerDataRequest
|
|
5596
5752
|
})));
|
|
5597
5753
|
}
|
|
5754
|
+
/**
|
|
5755
|
+
* Removes privileges to group's default role.
|
|
5756
|
+
*/
|
|
5757
|
+
export function removePermissions({ groupId, body }: {
|
|
5758
|
+
groupId: string;
|
|
5759
|
+
body: RemovePrivilegeToGroupRequest[];
|
|
5760
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5761
|
+
return oazapfts.ok(oazapfts.fetchText(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
5762
|
+
...opts,
|
|
5763
|
+
method: "DELETE",
|
|
5764
|
+
body
|
|
5765
|
+
})));
|
|
5766
|
+
}
|
|
5767
|
+
/**
|
|
5768
|
+
* Add privileges to group's default role.
|
|
5769
|
+
*/
|
|
5770
|
+
export function addPrivilegesToGroup({ groupId, body }: {
|
|
5771
|
+
groupId: string;
|
|
5772
|
+
body: AddPrivilegeToGroupRequest[];
|
|
5773
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5774
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5775
|
+
status: 201;
|
|
5776
|
+
} | {
|
|
5777
|
+
status: 422;
|
|
5778
|
+
data: ErrorResponse;
|
|
5779
|
+
} | {
|
|
5780
|
+
status: 500;
|
|
5781
|
+
}>(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
5782
|
+
...opts,
|
|
5783
|
+
method: "PATCH",
|
|
5784
|
+
body
|
|
5785
|
+
})));
|
|
5786
|
+
}
|
|
5598
5787
|
/**
|
|
5599
5788
|
* Rotates the secret of a service credential.
|
|
5600
5789
|
*/
|
|
@@ -5890,28 +6079,105 @@ export function enableSecret({ secretId }: {
|
|
|
5890
6079
|
}, opts?: Oazapfts.RequestOpts) {
|
|
5891
6080
|
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/enable`, {
|
|
5892
6081
|
...opts,
|
|
5893
|
-
method: "PATCH"
|
|
5894
|
-
}));
|
|
6082
|
+
method: "PATCH"
|
|
6083
|
+
}));
|
|
6084
|
+
}
|
|
6085
|
+
/**
|
|
6086
|
+
* Disable secret by ID
|
|
6087
|
+
*/
|
|
6088
|
+
export function disableSecret({ secretId }: {
|
|
6089
|
+
secretId: string;
|
|
6090
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6091
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/disable`, {
|
|
6092
|
+
...opts,
|
|
6093
|
+
method: "PATCH"
|
|
6094
|
+
}));
|
|
6095
|
+
}
|
|
6096
|
+
/**
|
|
6097
|
+
* Cancel Secret delete
|
|
6098
|
+
*/
|
|
6099
|
+
export function cancelSecretDelete({ secretId }: {
|
|
6100
|
+
secretId: string;
|
|
6101
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6102
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/secrets/${encodeURIComponent(secretId)}/cancel-delete`, {
|
|
6103
|
+
...opts,
|
|
6104
|
+
method: "PATCH"
|
|
6105
|
+
}));
|
|
6106
|
+
}
|
|
6107
|
+
/**
|
|
6108
|
+
* Migrate Api Key Secrets to new version
|
|
6109
|
+
*/
|
|
6110
|
+
export function migrateApiKeySecretsToV2(opts?: Oazapfts.RequestOpts) {
|
|
6111
|
+
return oazapfts.ok(oazapfts.fetchText("/v1/secrets/migrate-api-key-secrets-to-v2", {
|
|
6112
|
+
...opts,
|
|
6113
|
+
method: "PATCH"
|
|
6114
|
+
}));
|
|
6115
|
+
}
|
|
6116
|
+
/**
|
|
6117
|
+
* Delete a resources review
|
|
6118
|
+
*/
|
|
6119
|
+
export function deleteReview({ reviewId, xMemberId }: {
|
|
6120
|
+
reviewId: string;
|
|
6121
|
+
xMemberId: string;
|
|
6122
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6123
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, {
|
|
6124
|
+
...opts,
|
|
6125
|
+
method: "DELETE",
|
|
6126
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6127
|
+
"x-member-id": xMemberId
|
|
6128
|
+
})
|
|
6129
|
+
}));
|
|
6130
|
+
}
|
|
6131
|
+
/**
|
|
6132
|
+
* Update a resources review
|
|
6133
|
+
*/
|
|
6134
|
+
export function updateReview({ reviewId, xMemberId, updateResourceReviewRequest }: {
|
|
6135
|
+
reviewId: string;
|
|
6136
|
+
xMemberId: string;
|
|
6137
|
+
updateResourceReviewRequest: UpdateResourceReviewRequest;
|
|
6138
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6139
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
|
|
6140
|
+
...opts,
|
|
6141
|
+
method: "PATCH",
|
|
6142
|
+
body: updateResourceReviewRequest,
|
|
6143
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6144
|
+
"x-member-id": xMemberId
|
|
6145
|
+
})
|
|
6146
|
+
})));
|
|
5895
6147
|
}
|
|
5896
6148
|
/**
|
|
5897
|
-
*
|
|
6149
|
+
* Delete an answer to a review
|
|
5898
6150
|
*/
|
|
5899
|
-
export function
|
|
5900
|
-
|
|
6151
|
+
export function deleteReviewAnswer({ answerId, reviewId, xMemberId }: {
|
|
6152
|
+
answerId: string;
|
|
6153
|
+
reviewId: string;
|
|
6154
|
+
xMemberId: string;
|
|
5901
6155
|
}, opts?: Oazapfts.RequestOpts) {
|
|
5902
|
-
return oazapfts.ok(oazapfts.fetchText(`/v1/
|
|
6156
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
|
|
5903
6157
|
...opts,
|
|
5904
|
-
method: "
|
|
6158
|
+
method: "DELETE",
|
|
6159
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6160
|
+
"x-member-id": xMemberId
|
|
6161
|
+
})
|
|
5905
6162
|
}));
|
|
5906
6163
|
}
|
|
5907
6164
|
/**
|
|
5908
|
-
*
|
|
6165
|
+
* Edit an evaluation comment
|
|
5909
6166
|
*/
|
|
5910
|
-
export function
|
|
5911
|
-
|
|
6167
|
+
export function editReviewAnswer({ reviewId, answerId, xMemberId, updateReviewAnswerRequest }: {
|
|
6168
|
+
reviewId: string;
|
|
6169
|
+
answerId: string;
|
|
6170
|
+
xMemberId: string;
|
|
6171
|
+
updateReviewAnswerRequest: UpdateReviewAnswerRequest;
|
|
6172
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6173
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
|
|
5912
6174
|
...opts,
|
|
5913
|
-
method: "PATCH"
|
|
5914
|
-
|
|
6175
|
+
method: "PATCH",
|
|
6176
|
+
body: updateReviewAnswerRequest,
|
|
6177
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6178
|
+
"x-member-id": xMemberId
|
|
6179
|
+
})
|
|
6180
|
+
})));
|
|
5915
6181
|
}
|
|
5916
6182
|
/**
|
|
5917
6183
|
* Retrieves the preferences of a specific member.
|
|
@@ -6097,59 +6363,6 @@ export function enableFidoCredentials({ memberId }: {
|
|
|
6097
6363
|
method: "PATCH"
|
|
6098
6364
|
}));
|
|
6099
6365
|
}
|
|
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
6366
|
/**
|
|
6154
6367
|
* Get Group by ID
|
|
6155
6368
|
*/
|
|
@@ -6399,6 +6612,26 @@ export function addNewEmailDomain({ accountId, addNewEmailDomainRequest }: {
|
|
|
6399
6612
|
body: addNewEmailDomainRequest
|
|
6400
6613
|
})));
|
|
6401
6614
|
}
|
|
6615
|
+
/**
|
|
6616
|
+
* Reactivates a Trial account.
|
|
6617
|
+
*/
|
|
6618
|
+
export function reactivateTrialAccount(opts?: Oazapfts.RequestOpts) {
|
|
6619
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6620
|
+
status: 204;
|
|
6621
|
+
} | {
|
|
6622
|
+
status: 403;
|
|
6623
|
+
data: ErrorResponse;
|
|
6624
|
+
} | {
|
|
6625
|
+
status: 422;
|
|
6626
|
+
data: ErrorResponse;
|
|
6627
|
+
} | {
|
|
6628
|
+
status: 500;
|
|
6629
|
+
data: ErrorResponse;
|
|
6630
|
+
}>("/v1/accounts/trial/reactivate", {
|
|
6631
|
+
...opts,
|
|
6632
|
+
method: "PATCH"
|
|
6633
|
+
}));
|
|
6634
|
+
}
|
|
6402
6635
|
/**
|
|
6403
6636
|
* Update personal account details
|
|
6404
6637
|
*/
|
|
@@ -6596,7 +6829,7 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
|
|
|
6596
6829
|
/**
|
|
6597
6830
|
* Retrieves a list of SCM credentials associated with the current user's account, including secret names and provider details.
|
|
6598
6831
|
*/
|
|
6599
|
-
export function
|
|
6832
|
+
export function listScmCredentials2({ userId }: {
|
|
6600
6833
|
userId: string;
|
|
6601
6834
|
}, opts?: Oazapfts.RequestOpts) {
|
|
6602
6835
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -6653,7 +6886,7 @@ export function getServiceCredentialByIdRateLimit({ clientId }: {
|
|
|
6653
6886
|
/**
|
|
6654
6887
|
* Get Roles
|
|
6655
6888
|
*/
|
|
6656
|
-
export function
|
|
6889
|
+
export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6657
6890
|
size?: any;
|
|
6658
6891
|
page?: any;
|
|
6659
6892
|
sort?: string;
|
|
@@ -6692,7 +6925,7 @@ export function getRoles({ size, page, sort, direction, search, filterMode, filt
|
|
|
6692
6925
|
/**
|
|
6693
6926
|
* Get all Global Resources and Actions compared to role
|
|
6694
6927
|
*/
|
|
6695
|
-
export function
|
|
6928
|
+
export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6696
6929
|
roleId: string;
|
|
6697
6930
|
size?: any;
|
|
6698
6931
|
page?: any;
|
|
@@ -6732,7 +6965,7 @@ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, dir
|
|
|
6732
6965
|
/**
|
|
6733
6966
|
* Get role members
|
|
6734
6967
|
*/
|
|
6735
|
-
export function
|
|
6968
|
+
export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6736
6969
|
roleId: string;
|
|
6737
6970
|
size?: any;
|
|
6738
6971
|
page?: any;
|
|
@@ -6772,7 +7005,7 @@ export function getRoleMembers({ roleId, size, page, sort, direction, search, fi
|
|
|
6772
7005
|
/**
|
|
6773
7006
|
* Get Groups from role
|
|
6774
7007
|
*/
|
|
6775
|
-
export function
|
|
7008
|
+
export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6776
7009
|
roleId: string;
|
|
6777
7010
|
size?: any;
|
|
6778
7011
|
page?: any;
|
|
@@ -6809,45 +7042,6 @@ export function getRoleGroups({ roleId, size, page, sort, direction, search, fil
|
|
|
6809
7042
|
...opts
|
|
6810
7043
|
}));
|
|
6811
7044
|
}
|
|
6812
|
-
/**
|
|
6813
|
-
* Retrieves a list of resources.
|
|
6814
|
-
*/
|
|
6815
|
-
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6816
|
-
size?: any;
|
|
6817
|
-
page?: any;
|
|
6818
|
-
sort?: string;
|
|
6819
|
-
direction?: "ASC" | "DESC";
|
|
6820
|
-
search?: string;
|
|
6821
|
-
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
6822
|
-
filterBy?: string;
|
|
6823
|
-
filterValue?: string;
|
|
6824
|
-
multiFilterMode?: string;
|
|
6825
|
-
filterIn?: any;
|
|
6826
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
6827
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6828
|
-
status: 200;
|
|
6829
|
-
data: PageResponseResourceResponse;
|
|
6830
|
-
} | {
|
|
6831
|
-
status: 403;
|
|
6832
|
-
data: ErrorResponse;
|
|
6833
|
-
} | {
|
|
6834
|
-
status: 500;
|
|
6835
|
-
data: ErrorResponse;
|
|
6836
|
-
}>(`/v2/resources${QS.query(QS.explode({
|
|
6837
|
-
size,
|
|
6838
|
-
page,
|
|
6839
|
-
sort,
|
|
6840
|
-
direction,
|
|
6841
|
-
search,
|
|
6842
|
-
filterMode,
|
|
6843
|
-
filterBy,
|
|
6844
|
-
filterValue,
|
|
6845
|
-
multiFilterMode,
|
|
6846
|
-
filterIn
|
|
6847
|
-
}))}`, {
|
|
6848
|
-
...opts
|
|
6849
|
-
}));
|
|
6850
|
-
}
|
|
6851
7045
|
/**
|
|
6852
7046
|
* Retrieves a list of members for a specified resource.
|
|
6853
7047
|
*/
|
|
@@ -6970,7 +7164,7 @@ export function getResourceTypes({ size, page, sort, direction, search, filterMo
|
|
|
6970
7164
|
/**
|
|
6971
7165
|
* Retrieves a list of account members.
|
|
6972
7166
|
*/
|
|
6973
|
-
export function
|
|
7167
|
+
export function getAccountMembers1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6974
7168
|
size?: any;
|
|
6975
7169
|
page?: any;
|
|
6976
7170
|
sort?: string;
|
|
@@ -7009,7 +7203,7 @@ export function getAccountMembers({ size, page, sort, direction, search, filterM
|
|
|
7009
7203
|
/**
|
|
7010
7204
|
* Retrieves a list of roles associated with a specific member.
|
|
7011
7205
|
*/
|
|
7012
|
-
export function
|
|
7206
|
+
export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
7013
7207
|
memberId: string;
|
|
7014
7208
|
size?: any;
|
|
7015
7209
|
page?: any;
|
|
@@ -7049,7 +7243,7 @@ export function getRoles1({ memberId, size, page, sort, direction, search, filte
|
|
|
7049
7243
|
/**
|
|
7050
7244
|
* Retrieves a list of groups for a specified member.
|
|
7051
7245
|
*/
|
|
7052
|
-
export function
|
|
7246
|
+
export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
7053
7247
|
memberId: string;
|
|
7054
7248
|
size?: any;
|
|
7055
7249
|
page?: any;
|
|
@@ -7089,7 +7283,7 @@ export function getMemberGroups({ memberId, size, page, sort, direction, search,
|
|
|
7089
7283
|
/**
|
|
7090
7284
|
* Get Groups
|
|
7091
7285
|
*/
|
|
7092
|
-
export function
|
|
7286
|
+
export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
|
|
7093
7287
|
size?: any;
|
|
7094
7288
|
page?: any;
|
|
7095
7289
|
sort?: string;
|
|
@@ -7130,7 +7324,7 @@ export function getGroups({ size, page, sort, direction, search, filterMode, fil
|
|
|
7130
7324
|
/**
|
|
7131
7325
|
* Get Group roles
|
|
7132
7326
|
*/
|
|
7133
|
-
export function
|
|
7327
|
+
export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
7134
7328
|
groupId: string;
|
|
7135
7329
|
size?: any;
|
|
7136
7330
|
page?: any;
|
|
@@ -7167,50 +7361,10 @@ export function getRoles2({ groupId, size, page, sort, direction, search, filter
|
|
|
7167
7361
|
...opts
|
|
7168
7362
|
}));
|
|
7169
7363
|
}
|
|
7170
|
-
/**
|
|
7171
|
-
* Get Group Resources
|
|
7172
|
-
*/
|
|
7173
|
-
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
7174
|
-
groupId: string;
|
|
7175
|
-
size?: any;
|
|
7176
|
-
page?: any;
|
|
7177
|
-
sort?: string;
|
|
7178
|
-
direction?: "ASC" | "DESC";
|
|
7179
|
-
search?: string;
|
|
7180
|
-
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
7181
|
-
filterBy?: string;
|
|
7182
|
-
filterValue?: string;
|
|
7183
|
-
multiFilterMode?: string;
|
|
7184
|
-
filterIn?: any;
|
|
7185
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
7186
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
7187
|
-
status: 200;
|
|
7188
|
-
data: PageResponseResourceResponse;
|
|
7189
|
-
} | {
|
|
7190
|
-
status: 403;
|
|
7191
|
-
data: ErrorResponse;
|
|
7192
|
-
} | {
|
|
7193
|
-
status: 500;
|
|
7194
|
-
data: ErrorResponse;
|
|
7195
|
-
}>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
7196
|
-
size,
|
|
7197
|
-
page,
|
|
7198
|
-
sort,
|
|
7199
|
-
direction,
|
|
7200
|
-
search,
|
|
7201
|
-
filterMode,
|
|
7202
|
-
filterBy,
|
|
7203
|
-
filterValue,
|
|
7204
|
-
multiFilterMode,
|
|
7205
|
-
filterIn
|
|
7206
|
-
}))}`, {
|
|
7207
|
-
...opts
|
|
7208
|
-
}));
|
|
7209
|
-
}
|
|
7210
7364
|
/**
|
|
7211
7365
|
* Get Group members
|
|
7212
7366
|
*/
|
|
7213
|
-
export function
|
|
7367
|
+
export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
7214
7368
|
groupId: string;
|
|
7215
7369
|
size?: any;
|
|
7216
7370
|
page?: any;
|
|
@@ -7317,8 +7471,8 @@ export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
|
7317
7471
|
/**
|
|
7318
7472
|
* Get Accounts
|
|
7319
7473
|
*/
|
|
7320
|
-
export function
|
|
7321
|
-
accountType?:
|
|
7474
|
+
export function getAccounts1({ accountType, slug, id }: {
|
|
7475
|
+
accountType?: "ENTERPRISE" | "PARTNER" | "FREEMIUM";
|
|
7322
7476
|
slug?: string;
|
|
7323
7477
|
id?: string;
|
|
7324
7478
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -7364,7 +7518,7 @@ export function getAccount({ id }: {
|
|
|
7364
7518
|
/**
|
|
7365
7519
|
* Get Account Members
|
|
7366
7520
|
*/
|
|
7367
|
-
export function
|
|
7521
|
+
export function getAccountMembers2({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
7368
7522
|
id: string;
|
|
7369
7523
|
size?: any;
|
|
7370
7524
|
page?: any;
|
|
@@ -7461,10 +7615,11 @@ export function getServiceCredentialGroups1({ id }: {
|
|
|
7461
7615
|
/**
|
|
7462
7616
|
* Retrieve secret value
|
|
7463
7617
|
*/
|
|
7464
|
-
export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId }: {
|
|
7618
|
+
export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, xResourceTypeSlug, secretId }: {
|
|
7465
7619
|
xMemberId?: string;
|
|
7466
7620
|
xAccountId?: string;
|
|
7467
7621
|
xResourceSlug?: string;
|
|
7622
|
+
xResourceTypeSlug?: string;
|
|
7468
7623
|
secretId: string;
|
|
7469
7624
|
}, opts?: Oazapfts.RequestOpts) {
|
|
7470
7625
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -7481,7 +7636,8 @@ export function getSecretValue({ xMemberId, xAccountId, xResourceSlug, secretId
|
|
|
7481
7636
|
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
7482
7637
|
"x-member-id": xMemberId,
|
|
7483
7638
|
"x-account-id": xAccountId,
|
|
7484
|
-
"x-resource-slug": xResourceSlug
|
|
7639
|
+
"x-resource-slug": xResourceSlug,
|
|
7640
|
+
"x-resource-type-slug": xResourceTypeSlug
|
|
7485
7641
|
})
|
|
7486
7642
|
}));
|
|
7487
7643
|
}
|
|
@@ -7796,45 +7952,6 @@ export function listMemberFavoritesByResource({ memberId, resourceType }: {
|
|
|
7796
7952
|
...opts
|
|
7797
7953
|
}));
|
|
7798
7954
|
}
|
|
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
7955
|
/**
|
|
7839
7956
|
* Returns a list of Feature Flags associated with the current user's account.
|
|
7840
7957
|
*/
|
|
@@ -8055,6 +8172,26 @@ export function getPersonalAccountDetails(opts?: Oazapfts.RequestOpts) {
|
|
|
8055
8172
|
...opts
|
|
8056
8173
|
}));
|
|
8057
8174
|
}
|
|
8175
|
+
/**
|
|
8176
|
+
* Finds and returns personal account expiration data associated with the provided token.
|
|
8177
|
+
*/
|
|
8178
|
+
export function getPersonalAccountExpirationData(opts?: Oazapfts.RequestOpts) {
|
|
8179
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
8180
|
+
status: 200;
|
|
8181
|
+
data: PersonalAccountExpirationDataResponse;
|
|
8182
|
+
} | {
|
|
8183
|
+
status: 400;
|
|
8184
|
+
data: ErrorResponse;
|
|
8185
|
+
} | {
|
|
8186
|
+
status: 404;
|
|
8187
|
+
data: ErrorResponse;
|
|
8188
|
+
} | {
|
|
8189
|
+
status: 500;
|
|
8190
|
+
data: ErrorResponse;
|
|
8191
|
+
}>("/v1/accounts/trial/expiration", {
|
|
8192
|
+
...opts
|
|
8193
|
+
}));
|
|
8194
|
+
}
|
|
8058
8195
|
/**
|
|
8059
8196
|
* Retrieves a list of SSO for the current account.
|
|
8060
8197
|
*/
|
|
@@ -8163,6 +8300,30 @@ export function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts) {
|
|
|
8163
8300
|
...opts
|
|
8164
8301
|
}));
|
|
8165
8302
|
}
|
|
8303
|
+
/**
|
|
8304
|
+
* Deletes a resource from the account by resource type and resource slug.
|
|
8305
|
+
*/
|
|
8306
|
+
export function deleteResource({ deleteResourceRequestV3 }: {
|
|
8307
|
+
deleteResourceRequestV3: DeleteResourceRequestV3;
|
|
8308
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
8309
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
8310
|
+
status: 200;
|
|
8311
|
+
data: PageDtoDeleteResourceResponseV3;
|
|
8312
|
+
} | {
|
|
8313
|
+
status: 403;
|
|
8314
|
+
data: ErrorResponse;
|
|
8315
|
+
} | {
|
|
8316
|
+
status: 422;
|
|
8317
|
+
data: ErrorResponse;
|
|
8318
|
+
} | {
|
|
8319
|
+
status: 500;
|
|
8320
|
+
data: ErrorResponse;
|
|
8321
|
+
}>("/v3/resources", oazapfts.json({
|
|
8322
|
+
...opts,
|
|
8323
|
+
method: "DELETE",
|
|
8324
|
+
body: deleteResourceRequestV3
|
|
8325
|
+
})));
|
|
8326
|
+
}
|
|
8166
8327
|
/**
|
|
8167
8328
|
* Disassociate Group to Service Credential
|
|
8168
8329
|
*/
|
|
@@ -8214,7 +8375,7 @@ export function removeRoleFromMember({ roleId, memberId }: {
|
|
|
8214
8375
|
/**
|
|
8215
8376
|
* Deletes a resource from the account.
|
|
8216
8377
|
*/
|
|
8217
|
-
export function
|
|
8378
|
+
export function deleteResource1({ resourceId }: {
|
|
8218
8379
|
resourceId: string;
|
|
8219
8380
|
}, opts?: Oazapfts.RequestOpts) {
|
|
8220
8381
|
return oazapfts.ok(oazapfts.fetchJson<{
|