@stack-spot/portal-network 0.208.0 → 0.208.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.
- package/CHANGELOG.md +7 -0
- package/dist/api/account.d.ts +331 -89
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +203 -46
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +14 -9
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +11 -8
- package/dist/client/account.js.map +1 -1
- package/dist/client/agent-tools.d.ts +2 -2
- package/dist/client/agent-tools.d.ts.map +1 -1
- package/dist/client/agent-tools.js +2 -1
- package/dist/client/agent-tools.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +579 -163
- package/src/client/account.ts +11 -7
- package/src/client/agent-tools.ts +2 -1
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 */
|
|
@@ -283,21 +285,21 @@ export type AccountScmInfoResponse = {
|
|
|
283
285
|
export type Value = object;
|
|
284
286
|
export type Basic = Value & {
|
|
285
287
|
/** PAT repository Username */
|
|
286
|
-
user
|
|
288
|
+
user: string;
|
|
287
289
|
/** PAT repository password */
|
|
288
|
-
pass
|
|
290
|
+
pass: string;
|
|
289
291
|
};
|
|
290
292
|
export type GithubApp = Value & {
|
|
291
293
|
/** GithubApp App Id */
|
|
292
|
-
appId
|
|
294
|
+
appId: string;
|
|
293
295
|
/** GithubApp Client Id */
|
|
294
|
-
clientId
|
|
296
|
+
clientId: string;
|
|
295
297
|
/** GithubApp Client Secret */
|
|
296
|
-
clientSecret
|
|
298
|
+
clientSecret: string;
|
|
297
299
|
/** GithubApp Installer Id */
|
|
298
|
-
installationId
|
|
300
|
+
installationId: string;
|
|
299
301
|
/** GithubApp private key */
|
|
300
|
-
privateKey
|
|
302
|
+
privateKey: string;
|
|
301
303
|
};
|
|
302
304
|
export type AccountScmInfoUpdateRequest = {
|
|
303
305
|
/** SCM Type */
|
|
@@ -454,14 +456,14 @@ export type UpdatePasswordRequest = {
|
|
|
454
456
|
/** New password */
|
|
455
457
|
password: string;
|
|
456
458
|
};
|
|
457
|
-
export type UpdateSalesRepresentativesRequest = {
|
|
458
|
-
/** List of emails from sales representatives responsible for the account. */
|
|
459
|
-
salesRepresentatives: string[];
|
|
460
|
-
};
|
|
461
459
|
export type AccountStatusRequest = {
|
|
462
460
|
/** Account enabled */
|
|
463
461
|
enabled: boolean;
|
|
464
462
|
};
|
|
463
|
+
export type UpdateSalesRepresentativesRequest = {
|
|
464
|
+
/** List of emails from sales representatives responsible for the account. */
|
|
465
|
+
salesRepresentatives: string[];
|
|
466
|
+
};
|
|
465
467
|
export type AttributeImporter = {
|
|
466
468
|
/** External user attribute */
|
|
467
469
|
externalUserAttribute?: string;
|
|
@@ -645,6 +647,66 @@ export type ServiceCredentialCreateResponseV2 = {
|
|
|
645
647
|
/** Account tenant */
|
|
646
648
|
tenant: string;
|
|
647
649
|
};
|
|
650
|
+
export type ResourceTypeDto = {
|
|
651
|
+
/** Id of resource type. */
|
|
652
|
+
id: string;
|
|
653
|
+
/** Name of resource type. */
|
|
654
|
+
name: string;
|
|
655
|
+
/** Slug of resource type. */
|
|
656
|
+
slug: string;
|
|
657
|
+
/** Description of resource type. */
|
|
658
|
+
description: string;
|
|
659
|
+
/** Creation date of resource type. */
|
|
660
|
+
createdAt: string;
|
|
661
|
+
};
|
|
662
|
+
export type ResourceResponse = {
|
|
663
|
+
/** Id of resource. */
|
|
664
|
+
id: string;
|
|
665
|
+
/** Name of resource. */
|
|
666
|
+
name: string;
|
|
667
|
+
/** Description of resource. */
|
|
668
|
+
description?: string;
|
|
669
|
+
"type"?: ResourceTypeDto;
|
|
670
|
+
/** Name of resource. */
|
|
671
|
+
slug: string;
|
|
672
|
+
};
|
|
673
|
+
export type PageResponseResourceResponse = {
|
|
674
|
+
/** Current page content */
|
|
675
|
+
items?: ResourceResponse[];
|
|
676
|
+
/** Total elements found */
|
|
677
|
+
totalElements: number;
|
|
678
|
+
/** Current page number */
|
|
679
|
+
page: number;
|
|
680
|
+
/** Length of current page items */
|
|
681
|
+
size: number;
|
|
682
|
+
/** Total pages found */
|
|
683
|
+
totalPages: number;
|
|
684
|
+
};
|
|
685
|
+
export type ResourceTypeRequest = {
|
|
686
|
+
id?: string;
|
|
687
|
+
slug?: string;
|
|
688
|
+
};
|
|
689
|
+
export type CreateResourceV2Request = {
|
|
690
|
+
/** Resource name */
|
|
691
|
+
name: string;
|
|
692
|
+
/** Resource slug */
|
|
693
|
+
slug: string;
|
|
694
|
+
"type": ResourceTypeRequest;
|
|
695
|
+
/** Resource description */
|
|
696
|
+
description: string;
|
|
697
|
+
/** Resource Parent ID */
|
|
698
|
+
parentId?: string;
|
|
699
|
+
};
|
|
700
|
+
export type IdResponse = {
|
|
701
|
+
/** Id response. */
|
|
702
|
+
id: string;
|
|
703
|
+
};
|
|
704
|
+
export type AddResourceToGroupBySlugAndTypeRequest = {
|
|
705
|
+
/** Resource slug. */
|
|
706
|
+
slug: string;
|
|
707
|
+
/** Resource Type. */
|
|
708
|
+
"type": string;
|
|
709
|
+
};
|
|
648
710
|
export type FeatureFlagPageRequest = {
|
|
649
711
|
size?: number;
|
|
650
712
|
page: number;
|
|
@@ -933,10 +995,6 @@ export type CreateAccountRoleRequest = {
|
|
|
933
995
|
/** Account Role description */
|
|
934
996
|
description?: string;
|
|
935
997
|
};
|
|
936
|
-
export type IdResponse = {
|
|
937
|
-
/** Id response. */
|
|
938
|
-
id: string;
|
|
939
|
-
};
|
|
940
998
|
export type RoleMemberResponse = {
|
|
941
999
|
/** Member ID */
|
|
942
1000
|
id: string;
|
|
@@ -972,29 +1030,6 @@ export type RoleGroupIdsRequest = {
|
|
|
972
1030
|
/** List of group IDs to be bound to the role. */
|
|
973
1031
|
ids: string[];
|
|
974
1032
|
};
|
|
975
|
-
export type ResourceTypeDto = {
|
|
976
|
-
/** Id of resource type. */
|
|
977
|
-
id: string;
|
|
978
|
-
/** Name of resource type. */
|
|
979
|
-
name: string;
|
|
980
|
-
/** Slug of resource type. */
|
|
981
|
-
slug: string;
|
|
982
|
-
/** Description of resource type. */
|
|
983
|
-
description: string;
|
|
984
|
-
/** Creation date of resource type. */
|
|
985
|
-
createdAt: string;
|
|
986
|
-
};
|
|
987
|
-
export type ResourceResponse = {
|
|
988
|
-
/** Id of resource. */
|
|
989
|
-
id: string;
|
|
990
|
-
/** Name of resource. */
|
|
991
|
-
name: string;
|
|
992
|
-
/** Description of resource. */
|
|
993
|
-
description?: string;
|
|
994
|
-
"type"?: ResourceTypeDto;
|
|
995
|
-
/** Name of resource. */
|
|
996
|
-
slug: string;
|
|
997
|
-
};
|
|
998
1033
|
export type CreateResourceRequest = {
|
|
999
1034
|
/** Account resource name */
|
|
1000
1035
|
name: string;
|
|
@@ -1005,6 +1040,46 @@ export type CreateResourceRequest = {
|
|
|
1005
1040
|
/** Account resource description */
|
|
1006
1041
|
description?: string;
|
|
1007
1042
|
};
|
|
1043
|
+
export type ResourceReviewAnswerDto = {
|
|
1044
|
+
id: string;
|
|
1045
|
+
memberId: string;
|
|
1046
|
+
comment: string;
|
|
1047
|
+
createdAt: string;
|
|
1048
|
+
updatedAt?: string;
|
|
1049
|
+
};
|
|
1050
|
+
export type ViewResourceReviewResponse = {
|
|
1051
|
+
id: string;
|
|
1052
|
+
memberId: string;
|
|
1053
|
+
rating: number;
|
|
1054
|
+
comment?: string;
|
|
1055
|
+
resourceType: string;
|
|
1056
|
+
resourceSlug: string;
|
|
1057
|
+
createdAt: string;
|
|
1058
|
+
updatedAt?: string;
|
|
1059
|
+
reviewAnswers?: ResourceReviewAnswerDto[];
|
|
1060
|
+
};
|
|
1061
|
+
export type PageResponseViewResourceReviewResponse = {
|
|
1062
|
+
/** Current page content */
|
|
1063
|
+
items?: ViewResourceReviewResponse[];
|
|
1064
|
+
/** Total elements found */
|
|
1065
|
+
totalElements: number;
|
|
1066
|
+
/** Current page number */
|
|
1067
|
+
page: number;
|
|
1068
|
+
/** Length of current page items */
|
|
1069
|
+
size: number;
|
|
1070
|
+
/** Total pages found */
|
|
1071
|
+
totalPages: number;
|
|
1072
|
+
};
|
|
1073
|
+
export type CreateResourceReviewRequest = {
|
|
1074
|
+
/** Evaluation grade, represented by an integer between 1 and 5. */
|
|
1075
|
+
rating: number;
|
|
1076
|
+
/** Evaluation comment */
|
|
1077
|
+
comment?: string;
|
|
1078
|
+
};
|
|
1079
|
+
export type CreateReviewAnswerRequest = {
|
|
1080
|
+
/** Comment of the review. */
|
|
1081
|
+
answer: string;
|
|
1082
|
+
};
|
|
1008
1083
|
export type AccountMemberResponse = {
|
|
1009
1084
|
/** Account member id */
|
|
1010
1085
|
id: string;
|
|
@@ -1645,6 +1720,43 @@ export type ValidateAccountPartnerDataRequest = {
|
|
|
1645
1720
|
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
1646
1721
|
domains?: string[];
|
|
1647
1722
|
};
|
|
1723
|
+
export type PrivilegeResourceTypeIdentificationRequest = {
|
|
1724
|
+
/** Slug of the resource type. */
|
|
1725
|
+
slug?: string;
|
|
1726
|
+
/** ID of the resource type. */
|
|
1727
|
+
id?: string;
|
|
1728
|
+
};
|
|
1729
|
+
export type PrivilegeResourceIdentificationRequest = {
|
|
1730
|
+
"type": PrivilegeResourceTypeIdentificationRequest;
|
|
1731
|
+
/** Slug of the resource. */
|
|
1732
|
+
slug: string;
|
|
1733
|
+
};
|
|
1734
|
+
export type PrivilegeActionIdentificationRequest = {
|
|
1735
|
+
/** ID of the action. */
|
|
1736
|
+
id?: string;
|
|
1737
|
+
/** Slug of the action. */
|
|
1738
|
+
slug?: string;
|
|
1739
|
+
};
|
|
1740
|
+
export type RemovePrivilegeToGroupRequest = {
|
|
1741
|
+
/** List of resources to which the privilege applies. */
|
|
1742
|
+
resources: PrivilegeResourceIdentificationRequest[];
|
|
1743
|
+
/** List of resource types to which the privilege applies. */
|
|
1744
|
+
resource_types: PrivilegeResourceTypeIdentificationRequest[];
|
|
1745
|
+
/** List of actions to which the privilege applies. */
|
|
1746
|
+
actions: PrivilegeActionIdentificationRequest[];
|
|
1747
|
+
/** Whether the privilege is inheritable by child resources. */
|
|
1748
|
+
inheritable: boolean;
|
|
1749
|
+
};
|
|
1750
|
+
export type AddPrivilegeToGroupRequest = {
|
|
1751
|
+
/** List of resources to which the privilege applies. */
|
|
1752
|
+
resources: PrivilegeResourceIdentificationRequest[];
|
|
1753
|
+
/** List of resource types to which the privilege applies. */
|
|
1754
|
+
resource_types: PrivilegeResourceTypeIdentificationRequest[];
|
|
1755
|
+
/** List of actions to which the privilege applies. */
|
|
1756
|
+
actions: PrivilegeActionIdentificationRequest[];
|
|
1757
|
+
/** Whether the privilege is inheritable by child resources. */
|
|
1758
|
+
inheritable: boolean;
|
|
1759
|
+
};
|
|
1648
1760
|
export type RotateServiceCredentialSecretRequest = {
|
|
1649
1761
|
/** Service credential secret */
|
|
1650
1762
|
secret: string;
|
|
@@ -1692,6 +1804,16 @@ export type ServiceCredentialAssociateGroupRequest = {
|
|
|
1692
1804
|
/** Service credential groups ids */
|
|
1693
1805
|
teams: string[];
|
|
1694
1806
|
};
|
|
1807
|
+
export type UpdateResourceReviewRequest = {
|
|
1808
|
+
/** Evaluation grade, represented by an integer between 1 and 5. */
|
|
1809
|
+
rating?: number;
|
|
1810
|
+
/** Evaluation comment */
|
|
1811
|
+
comment?: string;
|
|
1812
|
+
};
|
|
1813
|
+
export type UpdateReviewAnswerRequest = {
|
|
1814
|
+
/** Comment of the review. */
|
|
1815
|
+
answer: string;
|
|
1816
|
+
};
|
|
1695
1817
|
export type ReadPreferencesResponse = {
|
|
1696
1818
|
/** Dashboard widgets preferences */
|
|
1697
1819
|
dashboardWidgets?: string[];
|
|
@@ -1908,18 +2030,6 @@ export type PageResponseRoleGroupResponse = {
|
|
|
1908
2030
|
/** Total pages found */
|
|
1909
2031
|
totalPages: number;
|
|
1910
2032
|
};
|
|
1911
|
-
export type PageResponseResourceResponse = {
|
|
1912
|
-
/** Current page content */
|
|
1913
|
-
items?: ResourceResponse[];
|
|
1914
|
-
/** Total elements found */
|
|
1915
|
-
totalElements: number;
|
|
1916
|
-
/** Current page number */
|
|
1917
|
-
page: number;
|
|
1918
|
-
/** Length of current page items */
|
|
1919
|
-
size: number;
|
|
1920
|
-
/** Total pages found */
|
|
1921
|
-
totalPages: number;
|
|
1922
|
-
};
|
|
1923
2033
|
export type MembersFromResourceResponse = {
|
|
1924
2034
|
/** Member ID */
|
|
1925
2035
|
id: string;
|
|
@@ -2237,7 +2347,7 @@ export type PersonalAccountDetailsResponse = {
|
|
|
2237
2347
|
/** Custom position of the account owner in the company, if not listed. */
|
|
2238
2348
|
otherPosition?: string | null;
|
|
2239
2349
|
/** How the account owner was reached. */
|
|
2240
|
-
reachedBy?: (
|
|
2350
|
+
reachedBy?: ("GOOGLE_SEARCH" | "REFERRAL" | "SOCIAL_MEDIA" | "ONLINE_AD" | "EVENT_CONFERENCE" | "EMAIL_CAMPAIGN" | "FRIEND_COLLEAGUE" | "BLOG_ARTICLE" | "YOUTUBE_VIDEO_CONTENT" | "ZUP_OFFICIAL_CHANNELS" | "OTHER")[] | null;
|
|
2241
2351
|
/** Custom description of how the account owner was reached, if not listed. */
|
|
2242
2352
|
customReachedBy?: string | null;
|
|
2243
2353
|
};
|
|
@@ -2288,6 +2398,30 @@ export type AccountPartnerResponse = {
|
|
|
2288
2398
|
/** Account current status */
|
|
2289
2399
|
isActive: boolean;
|
|
2290
2400
|
};
|
|
2401
|
+
export type DeleteResourceRequestV3 = {
|
|
2402
|
+
/** ID of the type of the resource to be deleted */
|
|
2403
|
+
resourceTypeId: string;
|
|
2404
|
+
/** Slug of the resource to be deleted */
|
|
2405
|
+
slug: string;
|
|
2406
|
+
};
|
|
2407
|
+
export type DeleteResourceResponseV3 = {
|
|
2408
|
+
/** Unique identifier of the resource. */
|
|
2409
|
+
id: string;
|
|
2410
|
+
/** Name of the resource. */
|
|
2411
|
+
name: string;
|
|
2412
|
+
/** Slug version of the resource name. */
|
|
2413
|
+
slug: string;
|
|
2414
|
+
/** Optional description of the resource. */
|
|
2415
|
+
description?: string;
|
|
2416
|
+
"type"?: ResourceTypeDto;
|
|
2417
|
+
};
|
|
2418
|
+
export type PageDtoDeleteResourceResponseV3 = {
|
|
2419
|
+
items: DeleteResourceResponseV3[];
|
|
2420
|
+
size: number;
|
|
2421
|
+
totalElements: number;
|
|
2422
|
+
page: number;
|
|
2423
|
+
totalPages: number;
|
|
2424
|
+
};
|
|
2291
2425
|
/**
|
|
2292
2426
|
* Retrieves a list of rate limit with the associated service credential.
|
|
2293
2427
|
*/
|
|
@@ -2996,6 +3130,32 @@ export function updateUserPassword({ memberId, updatePasswordRequest }: {
|
|
|
2996
3130
|
body: updatePasswordRequest
|
|
2997
3131
|
})));
|
|
2998
3132
|
}
|
|
3133
|
+
/**
|
|
3134
|
+
* Updates an account status based on the provided account ID.
|
|
3135
|
+
*/
|
|
3136
|
+
export function updateAccountStatus({ accountId, accountStatusRequest }: {
|
|
3137
|
+
accountId: string;
|
|
3138
|
+
accountStatusRequest: AccountStatusRequest;
|
|
3139
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3140
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3141
|
+
status: 200;
|
|
3142
|
+
} | {
|
|
3143
|
+
status: 204;
|
|
3144
|
+
} | {
|
|
3145
|
+
status: 400;
|
|
3146
|
+
data: ErrorResponse;
|
|
3147
|
+
} | {
|
|
3148
|
+
status: 404;
|
|
3149
|
+
data: ErrorResponse;
|
|
3150
|
+
} | {
|
|
3151
|
+
status: 500;
|
|
3152
|
+
data: ErrorResponse;
|
|
3153
|
+
}>(`/v1/admin/accounts/${encodeURIComponent(accountId)}/status`, oazapfts.json({
|
|
3154
|
+
...opts,
|
|
3155
|
+
method: "PUT",
|
|
3156
|
+
body: accountStatusRequest
|
|
3157
|
+
})));
|
|
3158
|
+
}
|
|
2999
3159
|
/**
|
|
3000
3160
|
* Updates the sales representatives associated with an active account.
|
|
3001
3161
|
*/
|
|
@@ -3020,7 +3180,7 @@ export function updateSalesRepresentatives({ accountId, updateSalesRepresentativ
|
|
|
3020
3180
|
/**
|
|
3021
3181
|
* Enables an account by updating its status.
|
|
3022
3182
|
*/
|
|
3023
|
-
export function
|
|
3183
|
+
export function updateAccountStatus1({ accountId, accountStatusRequest }: {
|
|
3024
3184
|
accountId: string;
|
|
3025
3185
|
accountStatusRequest: AccountStatusRequest;
|
|
3026
3186
|
}, opts?: Oazapfts.RequestOpts) {
|
|
@@ -3032,6 +3192,8 @@ export function updateAccountStatus({ accountId, accountStatusRequest }: {
|
|
|
3032
3192
|
} | {
|
|
3033
3193
|
status: 404;
|
|
3034
3194
|
data: ErrorResponse;
|
|
3195
|
+
} | {
|
|
3196
|
+
status: 410;
|
|
3035
3197
|
} | {
|
|
3036
3198
|
status: 500;
|
|
3037
3199
|
data: ErrorResponse;
|
|
@@ -3175,20 +3337,160 @@ export function deleteGroupMapping({ id, attributeImporterId }: {
|
|
|
3175
3337
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3176
3338
|
status: 204;
|
|
3177
3339
|
} | {
|
|
3178
|
-
status: 404;
|
|
3340
|
+
status: 404;
|
|
3341
|
+
data: ErrorResponse;
|
|
3342
|
+
} | {
|
|
3343
|
+
status: 500;
|
|
3344
|
+
data: ErrorResponse;
|
|
3345
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping/${encodeURIComponent(attributeImporterId)}`, {
|
|
3346
|
+
...opts,
|
|
3347
|
+
method: "DELETE"
|
|
3348
|
+
}));
|
|
3349
|
+
}
|
|
3350
|
+
/**
|
|
3351
|
+
* Retrieves a list of service credentials associated with the current user
|
|
3352
|
+
*/
|
|
3353
|
+
export function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }: {
|
|
3354
|
+
size?: any;
|
|
3355
|
+
page?: any;
|
|
3356
|
+
sort?: string;
|
|
3357
|
+
direction?: "ASC" | "DESC";
|
|
3358
|
+
search?: string;
|
|
3359
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
3360
|
+
filterBy?: string;
|
|
3361
|
+
filterValue?: string;
|
|
3362
|
+
multiFilterMode?: string;
|
|
3363
|
+
filterIn?: any;
|
|
3364
|
+
name?: string;
|
|
3365
|
+
status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
3366
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3367
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3368
|
+
status: 200;
|
|
3369
|
+
data: PageResponseServiceCredentialResponse;
|
|
3370
|
+
} | {
|
|
3371
|
+
status: 403;
|
|
3372
|
+
data: ErrorResponse;
|
|
3373
|
+
} | {
|
|
3374
|
+
status: 500;
|
|
3375
|
+
data: ErrorResponse;
|
|
3376
|
+
}>(`/v2/service-credentials${QS.query(QS.explode({
|
|
3377
|
+
size,
|
|
3378
|
+
page,
|
|
3379
|
+
sort,
|
|
3380
|
+
direction,
|
|
3381
|
+
search,
|
|
3382
|
+
filterMode,
|
|
3383
|
+
filterBy,
|
|
3384
|
+
filterValue,
|
|
3385
|
+
multiFilterMode,
|
|
3386
|
+
filterIn,
|
|
3387
|
+
name,
|
|
3388
|
+
status
|
|
3389
|
+
}))}`, {
|
|
3390
|
+
...opts
|
|
3391
|
+
}));
|
|
3392
|
+
}
|
|
3393
|
+
/**
|
|
3394
|
+
* Creates a new service credential for the current user.
|
|
3395
|
+
*/
|
|
3396
|
+
export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
|
|
3397
|
+
serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
|
|
3398
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3399
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3400
|
+
status: 200;
|
|
3401
|
+
data: ServiceCredentialCreateResponseV2;
|
|
3402
|
+
} | {
|
|
3403
|
+
status: 400;
|
|
3404
|
+
data: ErrorResponse;
|
|
3405
|
+
} | {
|
|
3406
|
+
status: 403;
|
|
3407
|
+
data: ErrorResponse;
|
|
3408
|
+
} | {
|
|
3409
|
+
status: 422;
|
|
3410
|
+
data: ErrorResponse;
|
|
3411
|
+
} | {
|
|
3412
|
+
status: 500;
|
|
3413
|
+
data: ErrorResponse;
|
|
3414
|
+
}>("/v2/service-credentials", oazapfts.json({
|
|
3415
|
+
...opts,
|
|
3416
|
+
method: "POST",
|
|
3417
|
+
body: serviceCredentialCreateRequestV2
|
|
3418
|
+
})));
|
|
3419
|
+
}
|
|
3420
|
+
/**
|
|
3421
|
+
* Retrieves a list of resources.
|
|
3422
|
+
*/
|
|
3423
|
+
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3424
|
+
size?: any;
|
|
3425
|
+
page?: any;
|
|
3426
|
+
sort?: string;
|
|
3427
|
+
direction?: "ASC" | "DESC";
|
|
3428
|
+
search?: string;
|
|
3429
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
3430
|
+
filterBy?: string;
|
|
3431
|
+
filterValue?: string;
|
|
3432
|
+
multiFilterMode?: string;
|
|
3433
|
+
filterIn?: any;
|
|
3434
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3435
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3436
|
+
status: 200;
|
|
3437
|
+
data: PageResponseResourceResponse;
|
|
3438
|
+
} | {
|
|
3439
|
+
status: 403;
|
|
3440
|
+
data: ErrorResponse;
|
|
3441
|
+
} | {
|
|
3442
|
+
status: 500;
|
|
3443
|
+
data: ErrorResponse;
|
|
3444
|
+
}>(`/v2/resources${QS.query(QS.explode({
|
|
3445
|
+
size,
|
|
3446
|
+
page,
|
|
3447
|
+
sort,
|
|
3448
|
+
direction,
|
|
3449
|
+
search,
|
|
3450
|
+
filterMode,
|
|
3451
|
+
filterBy,
|
|
3452
|
+
filterValue,
|
|
3453
|
+
multiFilterMode,
|
|
3454
|
+
filterIn
|
|
3455
|
+
}))}`, {
|
|
3456
|
+
...opts
|
|
3457
|
+
}));
|
|
3458
|
+
}
|
|
3459
|
+
/**
|
|
3460
|
+
* Creates a new resource for the account.
|
|
3461
|
+
*/
|
|
3462
|
+
export function createResource({ createResourceV2Request }: {
|
|
3463
|
+
createResourceV2Request: CreateResourceV2Request;
|
|
3464
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3465
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3466
|
+
status: 201;
|
|
3467
|
+
data: IdResponse;
|
|
3468
|
+
} | {
|
|
3469
|
+
status: 400;
|
|
3470
|
+
data: ErrorResponse;
|
|
3471
|
+
} | {
|
|
3472
|
+
status: 403;
|
|
3473
|
+
data: ErrorResponse;
|
|
3474
|
+
} | {
|
|
3475
|
+
status: 404;
|
|
3476
|
+
data: ErrorResponse;
|
|
3477
|
+
} | {
|
|
3478
|
+
status: 409;
|
|
3179
3479
|
data: ErrorResponse;
|
|
3180
3480
|
} | {
|
|
3181
3481
|
status: 500;
|
|
3182
3482
|
data: ErrorResponse;
|
|
3183
|
-
}>(
|
|
3483
|
+
}>("/v2/resources", oazapfts.json({
|
|
3184
3484
|
...opts,
|
|
3185
|
-
method: "
|
|
3186
|
-
|
|
3485
|
+
method: "POST",
|
|
3486
|
+
body: createResourceV2Request
|
|
3487
|
+
})));
|
|
3187
3488
|
}
|
|
3188
3489
|
/**
|
|
3189
|
-
*
|
|
3490
|
+
* Get Group Resources
|
|
3190
3491
|
*/
|
|
3191
|
-
export function
|
|
3492
|
+
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3493
|
+
groupId: string;
|
|
3192
3494
|
size?: any;
|
|
3193
3495
|
page?: any;
|
|
3194
3496
|
sort?: string;
|
|
@@ -3199,19 +3501,17 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
|
|
|
3199
3501
|
filterValue?: string;
|
|
3200
3502
|
multiFilterMode?: string;
|
|
3201
3503
|
filterIn?: any;
|
|
3202
|
-
name?: string;
|
|
3203
|
-
status?: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
3204
3504
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3205
3505
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3206
3506
|
status: 200;
|
|
3207
|
-
data:
|
|
3507
|
+
data: PageResponseResourceResponse;
|
|
3208
3508
|
} | {
|
|
3209
3509
|
status: 403;
|
|
3210
3510
|
data: ErrorResponse;
|
|
3211
3511
|
} | {
|
|
3212
3512
|
status: 500;
|
|
3213
3513
|
data: ErrorResponse;
|
|
3214
|
-
}>(`/v2/
|
|
3514
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
3215
3515
|
size,
|
|
3216
3516
|
page,
|
|
3217
3517
|
sort,
|
|
@@ -3221,38 +3521,30 @@ export function getServiceCredentials({ size, page, sort, direction, search, fil
|
|
|
3221
3521
|
filterBy,
|
|
3222
3522
|
filterValue,
|
|
3223
3523
|
multiFilterMode,
|
|
3224
|
-
filterIn
|
|
3225
|
-
name,
|
|
3226
|
-
status
|
|
3524
|
+
filterIn
|
|
3227
3525
|
}))}`, {
|
|
3228
3526
|
...opts
|
|
3229
3527
|
}));
|
|
3230
3528
|
}
|
|
3231
3529
|
/**
|
|
3232
|
-
*
|
|
3530
|
+
* Add Multiple Resources to Group
|
|
3233
3531
|
*/
|
|
3234
|
-
export function
|
|
3235
|
-
|
|
3532
|
+
export function addResourcesToGroupBySlugAndType({ groupId, body }: {
|
|
3533
|
+
groupId: string;
|
|
3534
|
+
body: AddResourceToGroupBySlugAndTypeRequest[];
|
|
3236
3535
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3237
3536
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3238
3537
|
status: 200;
|
|
3239
|
-
data: ServiceCredentialCreateResponseV2;
|
|
3240
|
-
} | {
|
|
3241
|
-
status: 400;
|
|
3242
|
-
data: ErrorResponse;
|
|
3243
3538
|
} | {
|
|
3244
3539
|
status: 403;
|
|
3245
3540
|
data: ErrorResponse;
|
|
3246
|
-
} | {
|
|
3247
|
-
status: 422;
|
|
3248
|
-
data: ErrorResponse;
|
|
3249
3541
|
} | {
|
|
3250
3542
|
status: 500;
|
|
3251
3543
|
data: ErrorResponse;
|
|
3252
|
-
}>(
|
|
3544
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/resources`, oazapfts.json({
|
|
3253
3545
|
...opts,
|
|
3254
3546
|
method: "POST",
|
|
3255
|
-
body
|
|
3547
|
+
body
|
|
3256
3548
|
})));
|
|
3257
3549
|
}
|
|
3258
3550
|
/**
|
|
@@ -3849,7 +4141,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
|
|
|
3849
4141
|
/**
|
|
3850
4142
|
* Retrieves a list of resources.
|
|
3851
4143
|
*/
|
|
3852
|
-
export function
|
|
4144
|
+
export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3853
4145
|
size?: any;
|
|
3854
4146
|
page?: any;
|
|
3855
4147
|
sort?: string;
|
|
@@ -3888,7 +4180,7 @@ export function getResources({ size, page, sort, direction, search, filterMode,
|
|
|
3888
4180
|
/**
|
|
3889
4181
|
* Creates a new resource for the account.
|
|
3890
4182
|
*/
|
|
3891
|
-
export function
|
|
4183
|
+
export function createResource1({ createResourceRequest }: {
|
|
3892
4184
|
createResourceRequest: CreateResourceRequest;
|
|
3893
4185
|
}, opts?: Oazapfts.RequestOpts) {
|
|
3894
4186
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
@@ -3909,6 +4201,82 @@ export function createResource({ createResourceRequest }: {
|
|
|
3909
4201
|
body: createResourceRequest
|
|
3910
4202
|
})));
|
|
3911
4203
|
}
|
|
4204
|
+
/**
|
|
4205
|
+
* Get all resources reviews
|
|
4206
|
+
*/
|
|
4207
|
+
export function getReviews({ resourceSlug, resourceTypeSlug, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4208
|
+
resourceSlug: string;
|
|
4209
|
+
resourceTypeSlug: string;
|
|
4210
|
+
size?: any;
|
|
4211
|
+
page?: any;
|
|
4212
|
+
sort?: string;
|
|
4213
|
+
direction?: "ASC" | "DESC";
|
|
4214
|
+
search?: string;
|
|
4215
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4216
|
+
filterBy?: string;
|
|
4217
|
+
filterValue?: string;
|
|
4218
|
+
multiFilterMode?: string;
|
|
4219
|
+
filterIn?: any;
|
|
4220
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4221
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4222
|
+
status: 200;
|
|
4223
|
+
data: PageResponseViewResourceReviewResponse;
|
|
4224
|
+
} | {
|
|
4225
|
+
status: 400;
|
|
4226
|
+
data: PageResponseViewResourceReviewResponse;
|
|
4227
|
+
} | {
|
|
4228
|
+
status: 500;
|
|
4229
|
+
data: PageResponseViewResourceReviewResponse;
|
|
4230
|
+
}>(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews${QS.query(QS.explode({
|
|
4231
|
+
size,
|
|
4232
|
+
page,
|
|
4233
|
+
sort,
|
|
4234
|
+
direction,
|
|
4235
|
+
search,
|
|
4236
|
+
filterMode,
|
|
4237
|
+
filterBy,
|
|
4238
|
+
filterValue,
|
|
4239
|
+
multiFilterMode,
|
|
4240
|
+
filterIn
|
|
4241
|
+
}))}`, {
|
|
4242
|
+
...opts
|
|
4243
|
+
}));
|
|
4244
|
+
}
|
|
4245
|
+
/**
|
|
4246
|
+
* Create a resource review
|
|
4247
|
+
*/
|
|
4248
|
+
export function createReview({ resourceSlug, resourceTypeSlug, xMemberId, createResourceReviewRequest }: {
|
|
4249
|
+
resourceSlug: string;
|
|
4250
|
+
resourceTypeSlug: string;
|
|
4251
|
+
xMemberId: string;
|
|
4252
|
+
createResourceReviewRequest: CreateResourceReviewRequest;
|
|
4253
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4254
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/${encodeURIComponent(resourceSlug)}/resource-type/${encodeURIComponent(resourceTypeSlug)}/reviews`, oazapfts.json({
|
|
4255
|
+
...opts,
|
|
4256
|
+
method: "POST",
|
|
4257
|
+
body: createResourceReviewRequest,
|
|
4258
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4259
|
+
"x-member-id": xMemberId
|
|
4260
|
+
})
|
|
4261
|
+
})));
|
|
4262
|
+
}
|
|
4263
|
+
/**
|
|
4264
|
+
* Create an answer to a review
|
|
4265
|
+
*/
|
|
4266
|
+
export function createReviewAnswer({ reviewId, xMemberId, createReviewAnswerRequest }: {
|
|
4267
|
+
reviewId: string;
|
|
4268
|
+
xMemberId: string;
|
|
4269
|
+
createReviewAnswerRequest: CreateReviewAnswerRequest;
|
|
4270
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4271
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers`, oazapfts.json({
|
|
4272
|
+
...opts,
|
|
4273
|
+
method: "POST",
|
|
4274
|
+
body: createReviewAnswerRequest,
|
|
4275
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
4276
|
+
"x-member-id": xMemberId
|
|
4277
|
+
})
|
|
4278
|
+
})));
|
|
4279
|
+
}
|
|
3912
4280
|
/**
|
|
3913
4281
|
* Retrieves a list of account members for a specified account.
|
|
3914
4282
|
*/
|
|
@@ -4401,7 +4769,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }: {
|
|
|
4401
4769
|
/**
|
|
4402
4770
|
* Get Group Resources
|
|
4403
4771
|
*/
|
|
4404
|
-
export function
|
|
4772
|
+
export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4405
4773
|
groupId: string;
|
|
4406
4774
|
size?: any;
|
|
4407
4775
|
page?: any;
|
|
@@ -4526,9 +4894,11 @@ export function bindGroupMembers({ groupId, groupMemberIdsRequest }: {
|
|
|
4526
4894
|
})));
|
|
4527
4895
|
}
|
|
4528
4896
|
/**
|
|
4529
|
-
* List
|
|
4897
|
+
* List extensions that user is allowed to manage
|
|
4530
4898
|
*/
|
|
4531
|
-
export function
|
|
4899
|
+
export function listManageableExtensions({ actions }: {
|
|
4900
|
+
actions?: string[];
|
|
4901
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4532
4902
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4533
4903
|
status: 200;
|
|
4534
4904
|
data: ExtensionReadResponse[];
|
|
@@ -4544,7 +4914,9 @@ export function listExtensions(opts?: Oazapfts.RequestOpts) {
|
|
|
4544
4914
|
} | {
|
|
4545
4915
|
status: 500;
|
|
4546
4916
|
data: ErrorResponse;
|
|
4547
|
-
}>(
|
|
4917
|
+
}>(`/v1/extensions${QS.query(QS.explode({
|
|
4918
|
+
actions
|
|
4919
|
+
}))}`, {
|
|
4548
4920
|
...opts
|
|
4549
4921
|
}));
|
|
4550
4922
|
}
|
|
@@ -5368,6 +5740,39 @@ export function validateNewPartnerData({ validateAccountPartnerDataRequest }: {
|
|
|
5368
5740
|
body: validateAccountPartnerDataRequest
|
|
5369
5741
|
})));
|
|
5370
5742
|
}
|
|
5743
|
+
/**
|
|
5744
|
+
* Removes privileges to group's default role.
|
|
5745
|
+
*/
|
|
5746
|
+
export function removePermissions({ groupId, body }: {
|
|
5747
|
+
groupId: string;
|
|
5748
|
+
body: RemovePrivilegeToGroupRequest[];
|
|
5749
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5750
|
+
return oazapfts.ok(oazapfts.fetchText(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
5751
|
+
...opts,
|
|
5752
|
+
method: "DELETE",
|
|
5753
|
+
body
|
|
5754
|
+
})));
|
|
5755
|
+
}
|
|
5756
|
+
/**
|
|
5757
|
+
* Add privileges to group's default role.
|
|
5758
|
+
*/
|
|
5759
|
+
export function addPrivilegesToGroup({ groupId, body }: {
|
|
5760
|
+
groupId: string;
|
|
5761
|
+
body: AddPrivilegeToGroupRequest[];
|
|
5762
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5763
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5764
|
+
status: 201;
|
|
5765
|
+
} | {
|
|
5766
|
+
status: 422;
|
|
5767
|
+
data: ErrorResponse;
|
|
5768
|
+
} | {
|
|
5769
|
+
status: 500;
|
|
5770
|
+
}>(`/v3/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
5771
|
+
...opts,
|
|
5772
|
+
method: "PATCH",
|
|
5773
|
+
body
|
|
5774
|
+
})));
|
|
5775
|
+
}
|
|
5371
5776
|
/**
|
|
5372
5777
|
* Rotates the secret of a service credential.
|
|
5373
5778
|
*/
|
|
@@ -5697,6 +6102,72 @@ export function migrateApiKeySecretsToV2(opts?: Oazapfts.RequestOpts) {
|
|
|
5697
6102
|
method: "PATCH"
|
|
5698
6103
|
}));
|
|
5699
6104
|
}
|
|
6105
|
+
/**
|
|
6106
|
+
* Delete a resources review
|
|
6107
|
+
*/
|
|
6108
|
+
export function deleteReview({ reviewId, xMemberId }: {
|
|
6109
|
+
reviewId: string;
|
|
6110
|
+
xMemberId: string;
|
|
6111
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6112
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, {
|
|
6113
|
+
...opts,
|
|
6114
|
+
method: "DELETE",
|
|
6115
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6116
|
+
"x-member-id": xMemberId
|
|
6117
|
+
})
|
|
6118
|
+
}));
|
|
6119
|
+
}
|
|
6120
|
+
/**
|
|
6121
|
+
* Update a resources review
|
|
6122
|
+
*/
|
|
6123
|
+
export function updateReview({ reviewId, xMemberId, updateResourceReviewRequest }: {
|
|
6124
|
+
reviewId: string;
|
|
6125
|
+
xMemberId: string;
|
|
6126
|
+
updateResourceReviewRequest: UpdateResourceReviewRequest;
|
|
6127
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6128
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}`, oazapfts.json({
|
|
6129
|
+
...opts,
|
|
6130
|
+
method: "PATCH",
|
|
6131
|
+
body: updateResourceReviewRequest,
|
|
6132
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6133
|
+
"x-member-id": xMemberId
|
|
6134
|
+
})
|
|
6135
|
+
})));
|
|
6136
|
+
}
|
|
6137
|
+
/**
|
|
6138
|
+
* Delete an answer to a review
|
|
6139
|
+
*/
|
|
6140
|
+
export function deleteReviewAnswer({ answerId, reviewId, xMemberId }: {
|
|
6141
|
+
answerId: string;
|
|
6142
|
+
reviewId: string;
|
|
6143
|
+
xMemberId: string;
|
|
6144
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6145
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, {
|
|
6146
|
+
...opts,
|
|
6147
|
+
method: "DELETE",
|
|
6148
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6149
|
+
"x-member-id": xMemberId
|
|
6150
|
+
})
|
|
6151
|
+
}));
|
|
6152
|
+
}
|
|
6153
|
+
/**
|
|
6154
|
+
* Edit an evaluation comment
|
|
6155
|
+
*/
|
|
6156
|
+
export function editReviewAnswer({ reviewId, answerId, xMemberId, updateReviewAnswerRequest }: {
|
|
6157
|
+
reviewId: string;
|
|
6158
|
+
answerId: string;
|
|
6159
|
+
xMemberId: string;
|
|
6160
|
+
updateReviewAnswerRequest: UpdateReviewAnswerRequest;
|
|
6161
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
6162
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/resources/reviews/${encodeURIComponent(reviewId)}/answers/${encodeURIComponent(answerId)}`, oazapfts.json({
|
|
6163
|
+
...opts,
|
|
6164
|
+
method: "PATCH",
|
|
6165
|
+
body: updateReviewAnswerRequest,
|
|
6166
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
6167
|
+
"x-member-id": xMemberId
|
|
6168
|
+
})
|
|
6169
|
+
})));
|
|
6170
|
+
}
|
|
5700
6171
|
/**
|
|
5701
6172
|
* Retrieves the preferences of a specific member.
|
|
5702
6173
|
*/
|
|
@@ -6560,45 +7031,6 @@ export function getRoleGroups1({ roleId, size, page, sort, direction, search, fi
|
|
|
6560
7031
|
...opts
|
|
6561
7032
|
}));
|
|
6562
7033
|
}
|
|
6563
|
-
/**
|
|
6564
|
-
* Retrieves a list of resources.
|
|
6565
|
-
*/
|
|
6566
|
-
export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6567
|
-
size?: any;
|
|
6568
|
-
page?: any;
|
|
6569
|
-
sort?: string;
|
|
6570
|
-
direction?: "ASC" | "DESC";
|
|
6571
|
-
search?: string;
|
|
6572
|
-
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
6573
|
-
filterBy?: string;
|
|
6574
|
-
filterValue?: string;
|
|
6575
|
-
multiFilterMode?: string;
|
|
6576
|
-
filterIn?: any;
|
|
6577
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
6578
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6579
|
-
status: 200;
|
|
6580
|
-
data: PageResponseResourceResponse;
|
|
6581
|
-
} | {
|
|
6582
|
-
status: 403;
|
|
6583
|
-
data: ErrorResponse;
|
|
6584
|
-
} | {
|
|
6585
|
-
status: 500;
|
|
6586
|
-
data: ErrorResponse;
|
|
6587
|
-
}>(`/v2/resources${QS.query(QS.explode({
|
|
6588
|
-
size,
|
|
6589
|
-
page,
|
|
6590
|
-
sort,
|
|
6591
|
-
direction,
|
|
6592
|
-
search,
|
|
6593
|
-
filterMode,
|
|
6594
|
-
filterBy,
|
|
6595
|
-
filterValue,
|
|
6596
|
-
multiFilterMode,
|
|
6597
|
-
filterIn
|
|
6598
|
-
}))}`, {
|
|
6599
|
-
...opts
|
|
6600
|
-
}));
|
|
6601
|
-
}
|
|
6602
7034
|
/**
|
|
6603
7035
|
* Retrieves a list of members for a specified resource.
|
|
6604
7036
|
*/
|
|
@@ -6918,46 +7350,6 @@ export function getRoles5({ groupId, size, page, sort, direction, search, filter
|
|
|
6918
7350
|
...opts
|
|
6919
7351
|
}));
|
|
6920
7352
|
}
|
|
6921
|
-
/**
|
|
6922
|
-
* Get Group Resources
|
|
6923
|
-
*/
|
|
6924
|
-
export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
6925
|
-
groupId: string;
|
|
6926
|
-
size?: any;
|
|
6927
|
-
page?: any;
|
|
6928
|
-
sort?: string;
|
|
6929
|
-
direction?: "ASC" | "DESC";
|
|
6930
|
-
search?: string;
|
|
6931
|
-
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
6932
|
-
filterBy?: string;
|
|
6933
|
-
filterValue?: string;
|
|
6934
|
-
multiFilterMode?: string;
|
|
6935
|
-
filterIn?: any;
|
|
6936
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
6937
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
6938
|
-
status: 200;
|
|
6939
|
-
data: PageResponseResourceResponse;
|
|
6940
|
-
} | {
|
|
6941
|
-
status: 403;
|
|
6942
|
-
data: ErrorResponse;
|
|
6943
|
-
} | {
|
|
6944
|
-
status: 500;
|
|
6945
|
-
data: ErrorResponse;
|
|
6946
|
-
}>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
6947
|
-
size,
|
|
6948
|
-
page,
|
|
6949
|
-
sort,
|
|
6950
|
-
direction,
|
|
6951
|
-
search,
|
|
6952
|
-
filterMode,
|
|
6953
|
-
filterBy,
|
|
6954
|
-
filterValue,
|
|
6955
|
-
multiFilterMode,
|
|
6956
|
-
filterIn
|
|
6957
|
-
}))}`, {
|
|
6958
|
-
...opts
|
|
6959
|
-
}));
|
|
6960
|
-
}
|
|
6961
7353
|
/**
|
|
6962
7354
|
* Get Group members
|
|
6963
7355
|
*/
|
|
@@ -7897,6 +8289,30 @@ export function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts) {
|
|
|
7897
8289
|
...opts
|
|
7898
8290
|
}));
|
|
7899
8291
|
}
|
|
8292
|
+
/**
|
|
8293
|
+
* Deletes a resource from the account by resource type and resource slug.
|
|
8294
|
+
*/
|
|
8295
|
+
export function deleteResource({ deleteResourceRequestV3 }: {
|
|
8296
|
+
deleteResourceRequestV3: DeleteResourceRequestV3;
|
|
8297
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
8298
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
8299
|
+
status: 200;
|
|
8300
|
+
data: PageDtoDeleteResourceResponseV3;
|
|
8301
|
+
} | {
|
|
8302
|
+
status: 403;
|
|
8303
|
+
data: ErrorResponse;
|
|
8304
|
+
} | {
|
|
8305
|
+
status: 422;
|
|
8306
|
+
data: ErrorResponse;
|
|
8307
|
+
} | {
|
|
8308
|
+
status: 500;
|
|
8309
|
+
data: ErrorResponse;
|
|
8310
|
+
}>("/v3/resources", oazapfts.json({
|
|
8311
|
+
...opts,
|
|
8312
|
+
method: "DELETE",
|
|
8313
|
+
body: deleteResourceRequestV3
|
|
8314
|
+
})));
|
|
8315
|
+
}
|
|
7900
8316
|
/**
|
|
7901
8317
|
* Disassociate Group to Service Credential
|
|
7902
8318
|
*/
|
|
@@ -7948,7 +8364,7 @@ export function removeRoleFromMember({ roleId, memberId }: {
|
|
|
7948
8364
|
/**
|
|
7949
8365
|
* Deletes a resource from the account.
|
|
7950
8366
|
*/
|
|
7951
|
-
export function
|
|
8367
|
+
export function deleteResource1({ resourceId }: {
|
|
7952
8368
|
resourceId: string;
|
|
7953
8369
|
}, opts?: Oazapfts.RequestOpts) {
|
|
7954
8370
|
return oazapfts.ok(oazapfts.fetchJson<{
|