@stack-spot/portal-network 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.generate-api.failed.json +1 -0
- package/dist/api/account.d.ts +2368 -0
- package/dist/api/account.d.ts.map +1 -0
- package/dist/api/account.js +1521 -0
- package/dist/api/account.js.map +1 -0
- package/dist/api/ai.d.ts +1432 -0
- package/dist/api/ai.d.ts.map +1 -0
- package/dist/api/ai.js +1342 -0
- package/dist/api/ai.js.map +1 -0
- package/dist/api/apiRuntime.d.ts +922 -0
- package/dist/api/apiRuntime.d.ts.map +1 -0
- package/dist/api/apiRuntime.js +599 -0
- package/dist/api/apiRuntime.js.map +1 -0
- package/dist/api/cloudAccount.d.ts +473 -0
- package/dist/api/cloudAccount.d.ts.map +1 -0
- package/dist/api/cloudAccount.js +300 -0
- package/dist/api/cloudAccount.js.map +1 -0
- package/dist/api/cloudServices.d.ts +1233 -0
- package/dist/api/cloudServices.d.ts.map +1 -0
- package/dist/api/cloudServices.js +715 -0
- package/dist/api/cloudServices.js.map +1 -0
- package/dist/api/insights.d.ts +123 -0
- package/dist/api/insights.d.ts.map +1 -0
- package/dist/api/insights.js +112 -0
- package/dist/api/insights.js.map +1 -0
- package/dist/api/plugin.d.ts +368 -0
- package/dist/api/plugin.d.ts.map +1 -0
- package/dist/api/plugin.js +218 -0
- package/dist/api/plugin.js.map +1 -0
- package/dist/api/serviceCatalog.d.ts +737 -0
- package/dist/api/serviceCatalog.d.ts.map +1 -0
- package/dist/api/serviceCatalog.js +611 -0
- package/dist/api/serviceCatalog.js.map +1 -0
- package/dist/api/workflows.d.ts +366 -0
- package/dist/api/workflows.d.ts.map +1 -0
- package/dist/api/workflows.js +175 -0
- package/dist/api/workflows.js.map +1 -0
- package/dist/api/workspace.js +1476 -0
- package/dist/api/workspace.js.map +1 -0
- package/dist/api/workspaceManager.d.ts +1121 -0
- package/dist/api/workspaceManager.d.ts.map +1 -0
- package/dist/api/workspaceManager.js +357 -0
- package/dist/api/workspaceManager.js.map +1 -0
- package/dist/api/workspaceSearchEngine.d.ts +93 -0
- package/dist/api/workspaceSearchEngine.d.ts.map +1 -0
- package/dist/api/workspaceSearchEngine.js +55 -0
- package/dist/api/workspaceSearchEngine.js.map +1 -0
- package/dist/apis.json +129 -0
- package/dist/client/account.d.ts +46 -0
- package/dist/client/account.d.ts.map +1 -0
- package/dist/client/account.js +104 -0
- package/dist/client/account.js.map +1 -0
- package/dist/error/CanceledError.d.ts +5 -0
- package/dist/error/CanceledError.d.ts.map +1 -0
- package/dist/error/CanceledError.js +7 -0
- package/dist/error/CanceledError.js.map +1 -0
- package/dist/error/DefaultAPIError.d.ts +9 -0
- package/dist/error/DefaultAPIError.d.ts.map +1 -0
- package/dist/error/DefaultAPIError.js +58 -0
- package/dist/error/DefaultAPIError.js.map +1 -0
- package/dist/error/StackspotAPIError.d.ts +19 -0
- package/dist/error/StackspotAPIError.d.ts.map +1 -0
- package/dist/error/StackspotAPIError.js +39 -0
- package/dist/error/StackspotAPIError.js.map +1 -0
- package/dist/error/dictionary/account.d.ts +55 -0
- package/dist/error/dictionary/account.d.ts.map +1 -0
- package/dist/error/dictionary/account.js +55 -0
- package/dist/error/dictionary/account.js.map +1 -0
- package/dist/error/dictionary/action.d.ts +163 -0
- package/dist/error/dictionary/action.d.ts.map +1 -0
- package/dist/error/dictionary/action.js +163 -0
- package/dist/error/dictionary/action.js.map +1 -0
- package/dist/error/dictionary/base.d.ts +21 -0
- package/dist/error/dictionary/base.d.ts.map +1 -0
- package/dist/error/dictionary/base.js +21 -0
- package/dist/error/dictionary/base.js.map +1 -0
- package/dist/error/dictionary/cnt-fields.d.ts +13 -0
- package/dist/error/dictionary/cnt-fields.d.ts.map +1 -0
- package/dist/error/dictionary/cnt-fields.js +13 -0
- package/dist/error/dictionary/cnt-fields.js.map +1 -0
- package/dist/error/dictionary/cnt.d.ts +79 -0
- package/dist/error/dictionary/cnt.d.ts.map +1 -0
- package/dist/error/dictionary/cnt.js +79 -0
- package/dist/error/dictionary/cnt.js.map +1 -0
- package/dist/error/dictionary/rte.d.ts +23 -0
- package/dist/error/dictionary/rte.d.ts.map +1 -0
- package/dist/error/dictionary/rte.js +23 -0
- package/dist/error/dictionary/rte.js.map +1 -0
- package/dist/error/dictionary/rtm.d.ts +9 -0
- package/dist/error/dictionary/rtm.d.ts.map +1 -0
- package/dist/error/dictionary/rtm.js +9 -0
- package/dist/error/dictionary/rtm.js.map +1 -0
- package/dist/error/dictionary/workspace-fields.d.ts +9 -0
- package/dist/error/dictionary/workspace-fields.d.ts.map +1 -0
- package/dist/error/dictionary/workspace-fields.js +9 -0
- package/dist/error/dictionary/workspace-fields.js.map +1 -0
- package/dist/error/dictionary/workspace.d.ts +99 -0
- package/dist/error/dictionary/workspace.d.ts.map +1 -0
- package/dist/error/dictionary/workspace.js +99 -0
- package/dist/error/dictionary/workspace.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -0
- package/dist/network/AutoMutation.d.ts +10 -0
- package/dist/network/AutoMutation.d.ts.map +1 -0
- package/dist/network/AutoMutation.js +20 -0
- package/dist/network/AutoMutation.js.map +1 -0
- package/dist/network/AutoOperation.d.ts +19 -0
- package/dist/network/AutoOperation.d.ts.map +1 -0
- package/dist/network/AutoOperation.js +99 -0
- package/dist/network/AutoOperation.js.map +1 -0
- package/dist/network/AutoQuery.d.ts +19 -0
- package/dist/network/AutoQuery.d.ts.map +1 -0
- package/dist/network/AutoQuery.js +70 -0
- package/dist/network/AutoQuery.js.map +1 -0
- package/dist/network/ManualMutation.d.ts +11 -0
- package/dist/network/ManualMutation.d.ts.map +1 -0
- package/dist/network/ManualMutation.js +32 -0
- package/dist/network/ManualMutation.js.map +1 -0
- package/dist/network/ManualOperation.d.ts +13 -0
- package/dist/network/ManualOperation.d.ts.map +1 -0
- package/dist/network/ManualOperation.js +53 -0
- package/dist/network/ManualOperation.js.map +1 -0
- package/dist/network/ManualQuery.d.ts +20 -0
- package/dist/network/ManualQuery.d.ts.map +1 -0
- package/dist/network/ManualQuery.js +77 -0
- package/dist/network/ManualQuery.js.map +1 -0
- package/dist/network/NetworkClient.d.ts +20 -0
- package/dist/network/NetworkClient.d.ts.map +1 -0
- package/dist/network/NetworkClient.js +85 -0
- package/dist/network/NetworkClient.js.map +1 -0
- package/dist/network/ReactQueryNetworkClient.d.ts +16 -0
- package/dist/network/ReactQueryNetworkClient.d.ts.map +1 -0
- package/dist/network/ReactQueryNetworkClient.js +125 -0
- package/dist/network/ReactQueryNetworkClient.js.map +1 -0
- package/dist/network/react-query-client.d.ts +3 -0
- package/dist/network/react-query-client.d.ts.map +1 -0
- package/dist/network/react-query-client.js +3 -0
- package/dist/network/react-query-client.js.map +1 -0
- package/dist/network/types.d.ts +55 -0
- package/dist/network/types.d.ts.map +1 -0
- package/dist/network/types.js +2 -0
- package/dist/network/types.js.map +1 -0
- package/package.json +56 -0
- package/readme.md +1 -0
- package/scripts/generate-apis.ts +134 -0
- package/src/api/account.ts +4793 -0
- package/src/api/ai.ts +3121 -0
- package/src/api/apiRuntime.ts +2029 -0
- package/src/api/cloudAccount.ts +1133 -0
- package/src/api/cloudServices.ts +2872 -0
- package/src/api/insights.ts +264 -0
- package/src/api/plugin.ts +685 -0
- package/src/api/serviceCatalog.ts +2908 -0
- package/src/api/workflows.ts +709 -0
- package/src/api/workspace.ts +5178 -0
- package/src/api/workspaceManager.ts +1516 -0
- package/src/api/workspaceSearchEngine.ts +153 -0
- package/src/apis.json +129 -0
- package/src/client/account.ts +52 -0
- package/src/error/CanceledError.ts +7 -0
- package/src/error/DefaultAPIError.ts +51 -0
- package/src/error/StackspotAPIError.ts +31 -0
- package/src/error/dictionary/account.ts +56 -0
- package/src/error/dictionary/action.ts +206 -0
- package/src/error/dictionary/base.ts +22 -0
- package/src/error/dictionary/cnt-fields.ts +14 -0
- package/src/error/dictionary/cnt.ts +80 -0
- package/src/error/dictionary/rte.ts +24 -0
- package/src/error/dictionary/rtm.ts +10 -0
- package/src/error/dictionary/workspace-fields.ts +10 -0
- package/src/error/dictionary/workspace.ts +100 -0
- package/src/index.ts +5 -0
- package/src/network/AutoMutation.ts +25 -0
- package/src/network/AutoOperation.ts +88 -0
- package/src/network/AutoQuery.ts +80 -0
- package/src/network/ManualMutation.ts +41 -0
- package/src/network/ManualOperation.ts +55 -0
- package/src/network/ManualQuery.ts +93 -0
- package/src/network/NetworkClient.ts +93 -0
- package/src/network/ReactQueryNetworkClient.ts +154 -0
- package/src/network/react-query-client.ts +3 -0
- package/src/network/types.ts +82 -0
- package/tsconfig.build.json +4 -0
- package/tsconfig.json +10 -0
|
@@ -0,0 +1,4793 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition
|
|
3
|
+
* v0
|
|
4
|
+
* DO NOT MODIFY - This file has been generated using oazapfts.
|
|
5
|
+
* See https://www.npmjs.com/package/oazapfts
|
|
6
|
+
*/
|
|
7
|
+
import * as Oazapfts from "@oazapfts/runtime";
|
|
8
|
+
import * as QS from "@oazapfts/runtime/query";
|
|
9
|
+
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
|
+
headers: {},
|
|
11
|
+
baseUrl: "https://account-account-api.dev.stackspot.com",
|
|
12
|
+
};
|
|
13
|
+
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
|
+
export const servers = {
|
|
15
|
+
generatedServerUrl: "https://account-account-api.dev.stackspot.com"
|
|
16
|
+
};
|
|
17
|
+
export type UserScmInfoResponse = {
|
|
18
|
+
/** Secrets name */
|
|
19
|
+
secretName: string;
|
|
20
|
+
/** Provider type */
|
|
21
|
+
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE";
|
|
22
|
+
};
|
|
23
|
+
export type ValidationDetails = {
|
|
24
|
+
code: string;
|
|
25
|
+
field?: string;
|
|
26
|
+
details?: string;
|
|
27
|
+
values?: string[];
|
|
28
|
+
};
|
|
29
|
+
export type ErrorResponse = {
|
|
30
|
+
code: string;
|
|
31
|
+
status: number;
|
|
32
|
+
details: string;
|
|
33
|
+
validationDetails?: ValidationDetails[];
|
|
34
|
+
};
|
|
35
|
+
export type UserScmInfoRequest = {
|
|
36
|
+
/** Repository Username */
|
|
37
|
+
user: string;
|
|
38
|
+
/** Repository personal token */
|
|
39
|
+
token: string;
|
|
40
|
+
};
|
|
41
|
+
export type ScopeResponse = {
|
|
42
|
+
/** Scope id */
|
|
43
|
+
id: string;
|
|
44
|
+
/** Scope name */
|
|
45
|
+
name: string;
|
|
46
|
+
/** Scope description */
|
|
47
|
+
description?: string;
|
|
48
|
+
/** Scope claim mapper */
|
|
49
|
+
claimMapper?: {
|
|
50
|
+
[key: string]: string;
|
|
51
|
+
};
|
|
52
|
+
/** When scope was created */
|
|
53
|
+
createdAt: string;
|
|
54
|
+
/** Last scope update */
|
|
55
|
+
updatedAt?: string;
|
|
56
|
+
};
|
|
57
|
+
export type IamUpdateScopeRequest = {
|
|
58
|
+
name: string;
|
|
59
|
+
description?: string;
|
|
60
|
+
claim_mapper: {
|
|
61
|
+
[key: string]: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
export type AccountScmInfoResponse = {
|
|
65
|
+
/** Secrets name */
|
|
66
|
+
secretName?: string;
|
|
67
|
+
/** SCM Workflow repository URL */
|
|
68
|
+
workflowUrl?: string;
|
|
69
|
+
/** SCM Type */
|
|
70
|
+
"type"?: "PAT" | "GITHUBAPP";
|
|
71
|
+
/** SCM repository provider */
|
|
72
|
+
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE";
|
|
73
|
+
/** Flag used to indicate if the SCM repository account credential configuration is mandated */
|
|
74
|
+
mandate: boolean;
|
|
75
|
+
/** Flag used to indicate if the user credentials to access the account SCM repository already has configured by User */
|
|
76
|
+
hasUserConfiguration?: boolean;
|
|
77
|
+
};
|
|
78
|
+
export type Value = object;
|
|
79
|
+
export type AccountScmInfoUpdateRequest = {
|
|
80
|
+
/** SCM Type */
|
|
81
|
+
"type"?: "PAT" | "GITHUBAPP";
|
|
82
|
+
/** SCM repository provider */
|
|
83
|
+
provider?: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE";
|
|
84
|
+
value?: Value;
|
|
85
|
+
/** SCM Workflow repository URL */
|
|
86
|
+
workflowUrl?: string;
|
|
87
|
+
/** Flag used when SCM repository account credential configuration is mandated */
|
|
88
|
+
mandate?: boolean;
|
|
89
|
+
};
|
|
90
|
+
export type AccountScmInfoSaveRequest = {
|
|
91
|
+
/** SCM Type */
|
|
92
|
+
"type": "PAT" | "GITHUBAPP";
|
|
93
|
+
/** SCM repository provider */
|
|
94
|
+
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE";
|
|
95
|
+
value: Value;
|
|
96
|
+
/** SCM Workflow repository URL */
|
|
97
|
+
workflowUrl: string;
|
|
98
|
+
/** Flag used when SCM repository account credential configuration is mandated */
|
|
99
|
+
mandate: boolean;
|
|
100
|
+
};
|
|
101
|
+
export type UpdateAccountRoleRequest = {
|
|
102
|
+
/** Account Role new name. */
|
|
103
|
+
name?: string;
|
|
104
|
+
/** Account Role new description. */
|
|
105
|
+
description?: string;
|
|
106
|
+
/** List of new permissions to add to the role. */
|
|
107
|
+
permissionIds?: string[];
|
|
108
|
+
};
|
|
109
|
+
export type IamActionResponse = {
|
|
110
|
+
id: string;
|
|
111
|
+
client_id?: string;
|
|
112
|
+
name: string;
|
|
113
|
+
description: string;
|
|
114
|
+
created_at: string;
|
|
115
|
+
active?: boolean;
|
|
116
|
+
};
|
|
117
|
+
export type IamResourceType = {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
description: string;
|
|
121
|
+
created_at: string;
|
|
122
|
+
global_resource_id: string;
|
|
123
|
+
resource_type_id: string;
|
|
124
|
+
actions?: IamActionResponse[];
|
|
125
|
+
};
|
|
126
|
+
export type IamCreateStatementRequest = {
|
|
127
|
+
actions: string[];
|
|
128
|
+
resource: string;
|
|
129
|
+
};
|
|
130
|
+
export type AccountMemberStackspotIamDto = {
|
|
131
|
+
id: string;
|
|
132
|
+
username: string;
|
|
133
|
+
email?: string;
|
|
134
|
+
firstName?: string;
|
|
135
|
+
lastName?: string;
|
|
136
|
+
ddd?: string;
|
|
137
|
+
ddi?: string;
|
|
138
|
+
phone?: string;
|
|
139
|
+
company?: string;
|
|
140
|
+
isActive: boolean;
|
|
141
|
+
isEmailVerified: boolean;
|
|
142
|
+
};
|
|
143
|
+
export type UpdateUserRequest = {
|
|
144
|
+
/** User username */
|
|
145
|
+
username?: string;
|
|
146
|
+
/** User email */
|
|
147
|
+
email?: string;
|
|
148
|
+
/** User first name */
|
|
149
|
+
firstName?: string;
|
|
150
|
+
/** User last name */
|
|
151
|
+
lastName?: string;
|
|
152
|
+
/** User ddi */
|
|
153
|
+
ddi?: string;
|
|
154
|
+
/** User ddd */
|
|
155
|
+
ddd?: string;
|
|
156
|
+
/** User phone */
|
|
157
|
+
phone?: string;
|
|
158
|
+
/** Is user active? */
|
|
159
|
+
isActive?: boolean;
|
|
160
|
+
/** User Company */
|
|
161
|
+
company?: string;
|
|
162
|
+
/** User new password */
|
|
163
|
+
password?: string;
|
|
164
|
+
};
|
|
165
|
+
export type UpdateUserResponse = {
|
|
166
|
+
username?: string;
|
|
167
|
+
email?: string;
|
|
168
|
+
firstName?: string;
|
|
169
|
+
lastName?: string;
|
|
170
|
+
ddi?: string;
|
|
171
|
+
ddd?: string;
|
|
172
|
+
phone?: string;
|
|
173
|
+
isActive?: boolean;
|
|
174
|
+
company?: string;
|
|
175
|
+
password?: string;
|
|
176
|
+
};
|
|
177
|
+
export type UpdatePasswordRequest = {
|
|
178
|
+
/** New password */
|
|
179
|
+
password: string;
|
|
180
|
+
};
|
|
181
|
+
export type InvitationUserResponse = {
|
|
182
|
+
email: string;
|
|
183
|
+
};
|
|
184
|
+
export type UserInvitationResponse = {
|
|
185
|
+
id: string;
|
|
186
|
+
accountId: string;
|
|
187
|
+
sender: InvitationUserResponse;
|
|
188
|
+
invitedUser: InvitationUserResponse;
|
|
189
|
+
createdAt: string;
|
|
190
|
+
resentAt: string;
|
|
191
|
+
expirationDate: string;
|
|
192
|
+
roleName: string;
|
|
193
|
+
assignAccount: boolean;
|
|
194
|
+
magicLink: string;
|
|
195
|
+
status: "ACCEPTED" | "PENDING" | "CANCELLED";
|
|
196
|
+
};
|
|
197
|
+
export type UpdateFeatureFlagRequest = {
|
|
198
|
+
/** The feature flag name */
|
|
199
|
+
name: string;
|
|
200
|
+
/** The feature flag slug */
|
|
201
|
+
slug: string;
|
|
202
|
+
/** The feature flag description */
|
|
203
|
+
description: string;
|
|
204
|
+
};
|
|
205
|
+
export type AccountStatusRequest = {
|
|
206
|
+
/** Account enabled */
|
|
207
|
+
enabled: boolean;
|
|
208
|
+
};
|
|
209
|
+
export type AttributeImporter = {
|
|
210
|
+
/** External user attribute */
|
|
211
|
+
externalUserAttribute?: string;
|
|
212
|
+
/** Force attribute import */
|
|
213
|
+
force?: string;
|
|
214
|
+
/** Unique identifier for the attribute importer */
|
|
215
|
+
id?: string;
|
|
216
|
+
/** Mode of the attribute importer */
|
|
217
|
+
importerMode?: string;
|
|
218
|
+
/** Type of the attribute importer */
|
|
219
|
+
importerType?: string;
|
|
220
|
+
/** Mapping for the attribute importer */
|
|
221
|
+
mapTo?: string;
|
|
222
|
+
/** Name of the attribute importer */
|
|
223
|
+
name?: string;
|
|
224
|
+
/** Creation timestamp of the attribute importer */
|
|
225
|
+
createdAt?: string;
|
|
226
|
+
};
|
|
227
|
+
export type IdMapper = {
|
|
228
|
+
/** External IDP ID */
|
|
229
|
+
externalIdpId?: string;
|
|
230
|
+
/** Internal user ID */
|
|
231
|
+
internalUserId?: string;
|
|
232
|
+
};
|
|
233
|
+
export type Config = {
|
|
234
|
+
/** OpenId Authorization Endpoint */
|
|
235
|
+
authorizationEndpoint?: string;
|
|
236
|
+
/** OpenId End Session Endpoint */
|
|
237
|
+
endSessionEndpoint?: string;
|
|
238
|
+
/** OpenId Issuer */
|
|
239
|
+
issuer?: string;
|
|
240
|
+
/** OpenId JWKS Uri */
|
|
241
|
+
jwksUri?: string;
|
|
242
|
+
/** OpenId Revocation Endpoint */
|
|
243
|
+
revocationEndpoint?: string;
|
|
244
|
+
/** OpenId Token Endpoint */
|
|
245
|
+
tokenEndpoint?: string;
|
|
246
|
+
/** SSO Userinfo Endpoint */
|
|
247
|
+
userinfoEndpoint?: string;
|
|
248
|
+
/** OpenId Client ID */
|
|
249
|
+
clientId?: string;
|
|
250
|
+
/** OpenId Client Secret */
|
|
251
|
+
clientSecret?: string;
|
|
252
|
+
};
|
|
253
|
+
export type Endpoint = {
|
|
254
|
+
binding?: string;
|
|
255
|
+
location?: string;
|
|
256
|
+
};
|
|
257
|
+
export type AccountSsoDetailedResponse = {
|
|
258
|
+
/** Unique identifier for the SSO configuration */
|
|
259
|
+
id?: string;
|
|
260
|
+
/** Alias for the SSO configuration */
|
|
261
|
+
alias?: string;
|
|
262
|
+
/** SSO configuration name */
|
|
263
|
+
name?: string;
|
|
264
|
+
/** SSO callback url */
|
|
265
|
+
callbackUrl?: string;
|
|
266
|
+
/** List of attribute importers */
|
|
267
|
+
attributeImporters: AttributeImporter[];
|
|
268
|
+
/** Creation timestamp of the SSO configuration */
|
|
269
|
+
createdAt?: string;
|
|
270
|
+
/** Update timestamp of the SSO configuration */
|
|
271
|
+
updatedAt?: string;
|
|
272
|
+
/** Discovery endpoint for the SSO configuration */
|
|
273
|
+
discoveryEndpoint?: string;
|
|
274
|
+
/** Indicates if the SSO configuration is enabled */
|
|
275
|
+
isEnabled?: boolean;
|
|
276
|
+
idMapper?: IdMapper;
|
|
277
|
+
/** Type of the SSO configuration */
|
|
278
|
+
"type": "SAML" | "OPENID";
|
|
279
|
+
config?: Config;
|
|
280
|
+
/** SSO Endpoints */
|
|
281
|
+
ssoEndpoints?: Endpoint[];
|
|
282
|
+
/** SLO Endpoints */
|
|
283
|
+
sloEndpoints?: Endpoint[];
|
|
284
|
+
/** Indicates if the SSO is fully configured */
|
|
285
|
+
isConfigured: boolean;
|
|
286
|
+
};
|
|
287
|
+
export type AccountSsoUpdateRequest = {
|
|
288
|
+
/** SSO Alias */
|
|
289
|
+
alias: string;
|
|
290
|
+
/** SSO Name */
|
|
291
|
+
name: string;
|
|
292
|
+
/** SSO Callback URL */
|
|
293
|
+
callbackUrl?: string;
|
|
294
|
+
config?: Config;
|
|
295
|
+
};
|
|
296
|
+
export type AccountSsoPartialUpdateRequest = {
|
|
297
|
+
/** SSO Status */
|
|
298
|
+
isEnabled: boolean;
|
|
299
|
+
};
|
|
300
|
+
export type AccountSsoGroupMappingResponse = {
|
|
301
|
+
/** SSO Created At */
|
|
302
|
+
createdAt: string;
|
|
303
|
+
/** SSO Group Mapping externalUserAttribute */
|
|
304
|
+
attributeName?: string;
|
|
305
|
+
/** SSO Group Mapping externalUserValue */
|
|
306
|
+
attributeValue?: string;
|
|
307
|
+
/** SSO Group Mapping force */
|
|
308
|
+
force?: boolean;
|
|
309
|
+
/** SSO Group Mapping id */
|
|
310
|
+
id: string;
|
|
311
|
+
/** SSO Group Mapping importerMode */
|
|
312
|
+
importerMode?: string;
|
|
313
|
+
/** SSO Group Mapping importerType */
|
|
314
|
+
importerType?: "DEFAULT_ROLE" | "DEFAULT_GROUP" | "ATTR_TO_GROUP" | "ATTR_TO_ROLE" | "DYNAMIC_GROUP";
|
|
315
|
+
/** SSO Group Mapping mapTo */
|
|
316
|
+
mapTo?: string;
|
|
317
|
+
/** SSO Group Mapping name */
|
|
318
|
+
name: string;
|
|
319
|
+
};
|
|
320
|
+
export type AccountGroupMappingUpdateRequest = {
|
|
321
|
+
/** Group Mapping externalUserAttribute */
|
|
322
|
+
attributeName?: string;
|
|
323
|
+
/** Group Mapping externalUserValue */
|
|
324
|
+
attributeValue?: string;
|
|
325
|
+
/** Group Mapping force */
|
|
326
|
+
force?: boolean;
|
|
327
|
+
/** Group Mapping importerMode */
|
|
328
|
+
importerMode?: string;
|
|
329
|
+
/** Group Mapping importerType */
|
|
330
|
+
importerType: "DEFAULT_ROLE" | "DEFAULT_GROUP" | "ATTR_TO_GROUP" | "ATTR_TO_ROLE" | "DYNAMIC_GROUP";
|
|
331
|
+
/** Group Mapping mapTo */
|
|
332
|
+
mapTo: string;
|
|
333
|
+
/** Group Mapping name */
|
|
334
|
+
name: string;
|
|
335
|
+
};
|
|
336
|
+
export type ServiceCredentialCreateRequestV2 = {
|
|
337
|
+
/** Service credential name */
|
|
338
|
+
name: string;
|
|
339
|
+
/** Service credential expiration days */
|
|
340
|
+
description?: string;
|
|
341
|
+
/** Service credential expiration days */
|
|
342
|
+
expirationDays?: number;
|
|
343
|
+
/** Service credential statements */
|
|
344
|
+
scopes?: string[];
|
|
345
|
+
};
|
|
346
|
+
export type ServiceCredentialCreateResponseV2 = {
|
|
347
|
+
/** Client ID service credential */
|
|
348
|
+
clientId: string;
|
|
349
|
+
/** Client Secret service credential */
|
|
350
|
+
clientSecret: string;
|
|
351
|
+
/** Service credential scopes */
|
|
352
|
+
scopes: string[];
|
|
353
|
+
/** Service credential expiration date */
|
|
354
|
+
expirationDate?: string;
|
|
355
|
+
/** Account tenant */
|
|
356
|
+
tenant: string;
|
|
357
|
+
};
|
|
358
|
+
export type ServiceCredentialResponse = {
|
|
359
|
+
/** Service credential id */
|
|
360
|
+
id: string;
|
|
361
|
+
/** Service credential name */
|
|
362
|
+
name: string;
|
|
363
|
+
/** Service credential creator id */
|
|
364
|
+
createdBy: string;
|
|
365
|
+
/** Service credential creator username */
|
|
366
|
+
creatorUsername: string;
|
|
367
|
+
/** Service credential creator email */
|
|
368
|
+
creatorEmail: string;
|
|
369
|
+
/** Service credential created date */
|
|
370
|
+
createdAt: string;
|
|
371
|
+
/** Service credential expire date */
|
|
372
|
+
expirationDate?: string;
|
|
373
|
+
/** Service credential user email revoked */
|
|
374
|
+
revokedBy?: string;
|
|
375
|
+
/** Service credential revoked date */
|
|
376
|
+
revokedAt?: string;
|
|
377
|
+
/** Service credential status */
|
|
378
|
+
status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
379
|
+
};
|
|
380
|
+
export type StatementRequest = {
|
|
381
|
+
/** Resource id */
|
|
382
|
+
resource: string;
|
|
383
|
+
/** Action id list */
|
|
384
|
+
actions: string[];
|
|
385
|
+
};
|
|
386
|
+
export type ServiceCredentialCreateRequest = {
|
|
387
|
+
/** Service credential name */
|
|
388
|
+
name: string;
|
|
389
|
+
/** Service credential expiration days */
|
|
390
|
+
expirationDays?: number;
|
|
391
|
+
/** Service credential permission ids */
|
|
392
|
+
permissions?: string[];
|
|
393
|
+
/** Service credential groups ids */
|
|
394
|
+
teams?: string[];
|
|
395
|
+
/** Service credential statements */
|
|
396
|
+
statements?: StatementRequest[];
|
|
397
|
+
};
|
|
398
|
+
export type ServiceCredentialCreateResponse = {
|
|
399
|
+
/** Client ID service credential */
|
|
400
|
+
clientId: string;
|
|
401
|
+
/** Client Secret service credential */
|
|
402
|
+
clientSecret: string;
|
|
403
|
+
/** Account tenant */
|
|
404
|
+
tenant: string;
|
|
405
|
+
};
|
|
406
|
+
export type ServiceCredentialInfoRequest = {
|
|
407
|
+
/** ID of the Service Credential */
|
|
408
|
+
id: string;
|
|
409
|
+
/** Name of the Service Credential */
|
|
410
|
+
name: string;
|
|
411
|
+
};
|
|
412
|
+
export type ServiceCredentialExpirationNotifyRequest = {
|
|
413
|
+
/** ID of the Service Credential creator */
|
|
414
|
+
ownerId: string;
|
|
415
|
+
/** Days until Service Credential expiration */
|
|
416
|
+
daysToExpire: number;
|
|
417
|
+
/** Tenant that represents the account related to the Service Credential */
|
|
418
|
+
accountTenant: string;
|
|
419
|
+
/** Information related to the Service Credential */
|
|
420
|
+
credentials: ServiceCredentialInfoRequest[];
|
|
421
|
+
};
|
|
422
|
+
export type PagingRequest = {
|
|
423
|
+
size?: number;
|
|
424
|
+
page: number;
|
|
425
|
+
sort?: string;
|
|
426
|
+
direction: "ASC" | "DESC";
|
|
427
|
+
search?: string;
|
|
428
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
429
|
+
filterBy?: string;
|
|
430
|
+
filterValue?: string;
|
|
431
|
+
multiFilterMode?: string;
|
|
432
|
+
filterIn?: string;
|
|
433
|
+
};
|
|
434
|
+
export type IamCreateScopeRequest = {
|
|
435
|
+
name: string;
|
|
436
|
+
description?: string;
|
|
437
|
+
claim_mapper?: {
|
|
438
|
+
[key: string]: string;
|
|
439
|
+
};
|
|
440
|
+
};
|
|
441
|
+
export type PermissionActionResponse = {
|
|
442
|
+
/** The action id from StackSpot IAM */
|
|
443
|
+
id: string;
|
|
444
|
+
/** The client ID from StackSpot IAM */
|
|
445
|
+
clientId?: string;
|
|
446
|
+
/** Action's name */
|
|
447
|
+
name: string;
|
|
448
|
+
/** Action's description */
|
|
449
|
+
description?: string;
|
|
450
|
+
/** Action's creation timestamp */
|
|
451
|
+
createdAt: string;
|
|
452
|
+
};
|
|
453
|
+
export type PermissionTypeResponse = {
|
|
454
|
+
/** Resource type ID from StackSpot IAM */
|
|
455
|
+
id: string;
|
|
456
|
+
/** Resource type client ID from StackSpot IAM */
|
|
457
|
+
clientId?: string;
|
|
458
|
+
/** Resource type name */
|
|
459
|
+
name: string;
|
|
460
|
+
/** Resource type description */
|
|
461
|
+
description?: string;
|
|
462
|
+
/** Resource type creation timestamp */
|
|
463
|
+
createdAt: string;
|
|
464
|
+
};
|
|
465
|
+
export type PermissionResourceResponse = {
|
|
466
|
+
/** Resource ID from StackSpot IAM */
|
|
467
|
+
id: string;
|
|
468
|
+
/** Resource's client ID from StackSpot IAM */
|
|
469
|
+
clientId?: string;
|
|
470
|
+
/** Resource's name */
|
|
471
|
+
name: string;
|
|
472
|
+
/** Resource's description */
|
|
473
|
+
description?: string;
|
|
474
|
+
/** Resource's creation timestamp */
|
|
475
|
+
createdAt: string;
|
|
476
|
+
"type"?: PermissionTypeResponse;
|
|
477
|
+
};
|
|
478
|
+
export type PermissionStatementResponse = {
|
|
479
|
+
actions: PermissionActionResponse;
|
|
480
|
+
resource: PermissionResourceResponse;
|
|
481
|
+
};
|
|
482
|
+
export type PermissionResponse = {
|
|
483
|
+
/** Permission ID from StackSpot IAM */
|
|
484
|
+
id: string;
|
|
485
|
+
/** Permission's name */
|
|
486
|
+
name: string;
|
|
487
|
+
/** Permission's description */
|
|
488
|
+
description?: string;
|
|
489
|
+
/** Permission's creation timestamp */
|
|
490
|
+
createdAt: string;
|
|
491
|
+
/** The statements defined in the permission */
|
|
492
|
+
statements: PermissionStatementResponse[];
|
|
493
|
+
};
|
|
494
|
+
export type RoleResponse = {
|
|
495
|
+
/** Role id from Keycloak */
|
|
496
|
+
id: string;
|
|
497
|
+
/** Role name */
|
|
498
|
+
name: string;
|
|
499
|
+
/** Role description */
|
|
500
|
+
description: string;
|
|
501
|
+
/** Role description */
|
|
502
|
+
permissions: PermissionResponse[];
|
|
503
|
+
/** Total members in role */
|
|
504
|
+
totalMembers?: number;
|
|
505
|
+
};
|
|
506
|
+
export type CreateAccountRoleRequest = {
|
|
507
|
+
/** Account Role name */
|
|
508
|
+
name: string;
|
|
509
|
+
/** Account Role description */
|
|
510
|
+
description?: string;
|
|
511
|
+
};
|
|
512
|
+
export type IdResponse = {
|
|
513
|
+
/** Id response. */
|
|
514
|
+
id: string;
|
|
515
|
+
};
|
|
516
|
+
export type RoleMemberResponse = {
|
|
517
|
+
/** Member ID */
|
|
518
|
+
id: string;
|
|
519
|
+
/** Member username */
|
|
520
|
+
username: string;
|
|
521
|
+
/** Member company email */
|
|
522
|
+
email: string;
|
|
523
|
+
/** Member first name */
|
|
524
|
+
firstName?: string;
|
|
525
|
+
/** Member last name */
|
|
526
|
+
lastName?: string;
|
|
527
|
+
/** Member creation timestamp */
|
|
528
|
+
createdAt: string;
|
|
529
|
+
};
|
|
530
|
+
export type AddRoleToMemberRequest = {
|
|
531
|
+
/** Account member IDs list to add role */
|
|
532
|
+
ids: string[];
|
|
533
|
+
};
|
|
534
|
+
export type AddUsersToRoleResponse = {
|
|
535
|
+
/** Status Message */
|
|
536
|
+
msg: string;
|
|
537
|
+
/** Permission resource */
|
|
538
|
+
errors: string[];
|
|
539
|
+
};
|
|
540
|
+
export type RoleGroupResponse = {
|
|
541
|
+
id: string;
|
|
542
|
+
name: string;
|
|
543
|
+
description?: string;
|
|
544
|
+
imageURL?: string;
|
|
545
|
+
createdAt: string;
|
|
546
|
+
};
|
|
547
|
+
export type RoleGroupIdsRequest = {
|
|
548
|
+
ids: string[];
|
|
549
|
+
};
|
|
550
|
+
export type ResourceTypeDto = {
|
|
551
|
+
/** Id of resource type. */
|
|
552
|
+
id: string;
|
|
553
|
+
/** Name of resource type. */
|
|
554
|
+
name: string;
|
|
555
|
+
/** Slug of resource type. */
|
|
556
|
+
slug: string;
|
|
557
|
+
/** Description of resource type. */
|
|
558
|
+
description: string;
|
|
559
|
+
/** Creation date of resource type. */
|
|
560
|
+
createdAt: string;
|
|
561
|
+
};
|
|
562
|
+
export type ResourceResponse = {
|
|
563
|
+
/** Id of resource. */
|
|
564
|
+
id: string;
|
|
565
|
+
/** Name of resource. */
|
|
566
|
+
name: string;
|
|
567
|
+
/** Description of resource. */
|
|
568
|
+
description?: string;
|
|
569
|
+
"type"?: ResourceTypeDto;
|
|
570
|
+
/** Name of resource. */
|
|
571
|
+
slug: string;
|
|
572
|
+
};
|
|
573
|
+
export type CreateResourceRequest = {
|
|
574
|
+
/** Account resource name */
|
|
575
|
+
name: string;
|
|
576
|
+
/** Account resource slug */
|
|
577
|
+
slug: string;
|
|
578
|
+
/** Account resource type id */
|
|
579
|
+
typeId: string;
|
|
580
|
+
/** Account resource description */
|
|
581
|
+
description?: string;
|
|
582
|
+
};
|
|
583
|
+
export type AccountMemberResponse = {
|
|
584
|
+
/** Account member id */
|
|
585
|
+
id: string;
|
|
586
|
+
/** Account member username */
|
|
587
|
+
username: string;
|
|
588
|
+
/** Account member email */
|
|
589
|
+
email: string;
|
|
590
|
+
/** Account member first name */
|
|
591
|
+
firstName: string;
|
|
592
|
+
/** Account member last name */
|
|
593
|
+
lastName: string;
|
|
594
|
+
/** Account member status */
|
|
595
|
+
isActive: boolean;
|
|
596
|
+
/** Account member avatar URL */
|
|
597
|
+
avatarUrl?: string;
|
|
598
|
+
/** Account member full name */
|
|
599
|
+
name: string;
|
|
600
|
+
};
|
|
601
|
+
export type CreateUserRequest = {
|
|
602
|
+
/** User username */
|
|
603
|
+
username: string;
|
|
604
|
+
/** User email */
|
|
605
|
+
email: string;
|
|
606
|
+
/** User first name */
|
|
607
|
+
firstName: string;
|
|
608
|
+
/** User last name */
|
|
609
|
+
lastName: string;
|
|
610
|
+
/** User ddi */
|
|
611
|
+
ddi?: string;
|
|
612
|
+
/** User ddd */
|
|
613
|
+
ddd?: string;
|
|
614
|
+
/** User phone */
|
|
615
|
+
phone?: string;
|
|
616
|
+
/** Is user active? */
|
|
617
|
+
isActive: boolean;
|
|
618
|
+
/** User first password */
|
|
619
|
+
password?: string;
|
|
620
|
+
/** User Company */
|
|
621
|
+
company?: string;
|
|
622
|
+
};
|
|
623
|
+
export type CreateUserResponse = {
|
|
624
|
+
username: string;
|
|
625
|
+
email: string;
|
|
626
|
+
company?: string;
|
|
627
|
+
firstName: string;
|
|
628
|
+
lastName: string;
|
|
629
|
+
ddi: string;
|
|
630
|
+
ddd: string;
|
|
631
|
+
phone: string;
|
|
632
|
+
isActive: boolean;
|
|
633
|
+
isEmailVerified?: boolean;
|
|
634
|
+
};
|
|
635
|
+
export type ReadMemberRoleResponse = {
|
|
636
|
+
/** Role id from IAM */
|
|
637
|
+
id: string;
|
|
638
|
+
/** Role name */
|
|
639
|
+
name: string;
|
|
640
|
+
/** Role description */
|
|
641
|
+
description: string;
|
|
642
|
+
/** Total members in role */
|
|
643
|
+
totalMembers: number;
|
|
644
|
+
/** Role description */
|
|
645
|
+
permissions: PermissionResponse[];
|
|
646
|
+
};
|
|
647
|
+
export type MemberIdsCommonRequest = {
|
|
648
|
+
ids: string[];
|
|
649
|
+
};
|
|
650
|
+
export type GroupReadResponse = {
|
|
651
|
+
/** Group id */
|
|
652
|
+
id: string;
|
|
653
|
+
/** Group name */
|
|
654
|
+
name: string;
|
|
655
|
+
/** Group description */
|
|
656
|
+
description?: string;
|
|
657
|
+
/** Group users */
|
|
658
|
+
totalUsers?: number;
|
|
659
|
+
/** Group image URL */
|
|
660
|
+
imageUrl?: string;
|
|
661
|
+
/** Creation time of group */
|
|
662
|
+
createdAt?: string;
|
|
663
|
+
};
|
|
664
|
+
export type MemberEmailRequest = {
|
|
665
|
+
/** Member email */
|
|
666
|
+
email: string;
|
|
667
|
+
};
|
|
668
|
+
export type InviteNewMemberRequest = {
|
|
669
|
+
/** Member email */
|
|
670
|
+
email: string;
|
|
671
|
+
/** Member name */
|
|
672
|
+
name: string;
|
|
673
|
+
/** Member surname */
|
|
674
|
+
surname: string;
|
|
675
|
+
/** Member group ID */
|
|
676
|
+
groupId?: string;
|
|
677
|
+
};
|
|
678
|
+
export type InviteMembersResponse = {
|
|
679
|
+
/** Status Message */
|
|
680
|
+
msg: string;
|
|
681
|
+
/** Members with error */
|
|
682
|
+
errors: string[];
|
|
683
|
+
};
|
|
684
|
+
export type CreateUserInvitationRequest = {
|
|
685
|
+
/** User email */
|
|
686
|
+
email: string;
|
|
687
|
+
/** User role in account */
|
|
688
|
+
role: string;
|
|
689
|
+
/** Indicates whether account will be shared with user or not */
|
|
690
|
+
assignAccount: boolean;
|
|
691
|
+
/** Language to use in invitation e-mail */
|
|
692
|
+
lang: string;
|
|
693
|
+
};
|
|
694
|
+
export type NewGroupRequest = {
|
|
695
|
+
/** Group name */
|
|
696
|
+
name: string;
|
|
697
|
+
/** Group description */
|
|
698
|
+
description: string;
|
|
699
|
+
/** External Group name */
|
|
700
|
+
externalName?: string;
|
|
701
|
+
/** Group image base64 */
|
|
702
|
+
image?: string;
|
|
703
|
+
};
|
|
704
|
+
export type IamIdResponse = {
|
|
705
|
+
/** Id response. */
|
|
706
|
+
id: string;
|
|
707
|
+
};
|
|
708
|
+
export type GroupRoleIdsRequest = {
|
|
709
|
+
ids: string[];
|
|
710
|
+
};
|
|
711
|
+
export type AddResourcesToGroupRequest = {
|
|
712
|
+
/** List of resource ids */
|
|
713
|
+
ids: string[];
|
|
714
|
+
};
|
|
715
|
+
export type ReadGroupMembersResponse = {
|
|
716
|
+
/** Account member id */
|
|
717
|
+
id: string;
|
|
718
|
+
/** Account member username */
|
|
719
|
+
username: string;
|
|
720
|
+
/** Account member first name */
|
|
721
|
+
firstName?: string;
|
|
722
|
+
/** Account member last name */
|
|
723
|
+
lastName?: string;
|
|
724
|
+
/** Account member email */
|
|
725
|
+
companyEmail: string;
|
|
726
|
+
/** Account member creation time */
|
|
727
|
+
createdAt: string;
|
|
728
|
+
/** Account member appended time */
|
|
729
|
+
appendedAt: string;
|
|
730
|
+
};
|
|
731
|
+
export type GroupMemberIdsRequest = {
|
|
732
|
+
ids: string[];
|
|
733
|
+
};
|
|
734
|
+
export type FeatureFlagsResponse = {
|
|
735
|
+
/** The feature flag id */
|
|
736
|
+
id: number;
|
|
737
|
+
/** The feature flag name */
|
|
738
|
+
name: string;
|
|
739
|
+
/** The feature flag slug */
|
|
740
|
+
slug: string;
|
|
741
|
+
/** If the feature flag is enabled or not in the current account */
|
|
742
|
+
enabled: boolean;
|
|
743
|
+
};
|
|
744
|
+
export type CreateFeatureFlagRequest = {
|
|
745
|
+
/** The feature flag name */
|
|
746
|
+
name: string;
|
|
747
|
+
/** The feature flag slug */
|
|
748
|
+
slug: string;
|
|
749
|
+
/** The feature flag description */
|
|
750
|
+
description: string;
|
|
751
|
+
};
|
|
752
|
+
export type WelcomeEmailRequest = {
|
|
753
|
+
/** Firstname of the contact requester */
|
|
754
|
+
firstName: string;
|
|
755
|
+
/** Firstname of the contact requester */
|
|
756
|
+
lastName: string;
|
|
757
|
+
/** Email of the contact requester */
|
|
758
|
+
email: string;
|
|
759
|
+
};
|
|
760
|
+
export type ContactEmailRequest = {
|
|
761
|
+
/** Name of the contact requester */
|
|
762
|
+
name: string;
|
|
763
|
+
/** Email of the contact requester */
|
|
764
|
+
email: string;
|
|
765
|
+
/** Subject of the contact */
|
|
766
|
+
subject: string;
|
|
767
|
+
/** Message of the contact */
|
|
768
|
+
message: string;
|
|
769
|
+
/** Telephone of the contact requester */
|
|
770
|
+
telephone?: string;
|
|
771
|
+
};
|
|
772
|
+
export type SwitchAccountRequest = {
|
|
773
|
+
/** Account slug to switch to */
|
|
774
|
+
accountId: string;
|
|
775
|
+
};
|
|
776
|
+
export type ExchangeAccountResponse = {
|
|
777
|
+
/** Personal Access Token generated by User Personal Client on user behalf */
|
|
778
|
+
access_token: string;
|
|
779
|
+
/** Refresh Token */
|
|
780
|
+
refresh_token: string;
|
|
781
|
+
/** The token type */
|
|
782
|
+
token_type: string;
|
|
783
|
+
/** The number of seconds before the access_token expires */
|
|
784
|
+
expires_in: number;
|
|
785
|
+
};
|
|
786
|
+
export type PersonalClientCredentialsResponse = {
|
|
787
|
+
/** The Client ID used for authentication */
|
|
788
|
+
clientId: string;
|
|
789
|
+
/** The Client Secret used for authentication */
|
|
790
|
+
clientSecret: string;
|
|
791
|
+
/** The account tenant */
|
|
792
|
+
tenant: string;
|
|
793
|
+
};
|
|
794
|
+
export type GenerateTokenFromPersonalAccountRequest = {
|
|
795
|
+
/** Audience */
|
|
796
|
+
audience?: string;
|
|
797
|
+
};
|
|
798
|
+
export type PersonalAccessTokenResponse = {
|
|
799
|
+
/** Personal Access Token generated by User Personal Client on user behalf */
|
|
800
|
+
accessToken: string;
|
|
801
|
+
};
|
|
802
|
+
export type DeviceCodeResponse = {
|
|
803
|
+
/** A long string used to verify the session between the client and the authorization server. The client uses this parameter to request the access token from the authorization server */
|
|
804
|
+
deviceCode: string;
|
|
805
|
+
/** A short string shown to the user that's used to identify the session on a secondary device */
|
|
806
|
+
userCode: string;
|
|
807
|
+
/** The URI the user should go to with the user_code in order to sign in */
|
|
808
|
+
loginUrl: string;
|
|
809
|
+
/** The account tenant */
|
|
810
|
+
realm: string;
|
|
811
|
+
/** The number of seconds before the device_code and user_code expire */
|
|
812
|
+
expiration: number;
|
|
813
|
+
/** The number of seconds the client should wait between polling requests */
|
|
814
|
+
interval: number;
|
|
815
|
+
/** OpenID Well Known url for current account */
|
|
816
|
+
openIdWellKnownUrl: string;
|
|
817
|
+
};
|
|
818
|
+
export type AccountResponse = {
|
|
819
|
+
/** Account id */
|
|
820
|
+
accountApiId: string;
|
|
821
|
+
/** Account slug */
|
|
822
|
+
slug: string;
|
|
823
|
+
/** Account name */
|
|
824
|
+
name: string;
|
|
825
|
+
/** Account logo image */
|
|
826
|
+
image?: string;
|
|
827
|
+
/** Account creation time */
|
|
828
|
+
createdAt: string;
|
|
829
|
+
/** Account admin email */
|
|
830
|
+
adminEmail: string;
|
|
831
|
+
/** Account admin name */
|
|
832
|
+
adminName: string;
|
|
833
|
+
/** Account Email domains list */
|
|
834
|
+
domains: string[];
|
|
835
|
+
/** Account current status */
|
|
836
|
+
isActive: boolean;
|
|
837
|
+
/** Sales representative email */
|
|
838
|
+
salesRepresentative?: string;
|
|
839
|
+
};
|
|
840
|
+
export type PageResponseAccountResponse = {
|
|
841
|
+
/** Current page content */
|
|
842
|
+
items?: AccountResponse[];
|
|
843
|
+
/** Total elements found */
|
|
844
|
+
totalElements: number;
|
|
845
|
+
/** Current page number */
|
|
846
|
+
page: number;
|
|
847
|
+
/** Length of current page items */
|
|
848
|
+
size: number;
|
|
849
|
+
};
|
|
850
|
+
export type CreateAccountOrderRequest = {
|
|
851
|
+
/** The account's name. Example: Zup IT Innovation */
|
|
852
|
+
name: string;
|
|
853
|
+
/** The slug to use in URL as unique identifying part representing the account (https://developer.mozilla.org/en-US/docs/Glossary/Slug). Example: zup */
|
|
854
|
+
slug: string;
|
|
855
|
+
/** The account tenant should be formatted similarly to the slug and should identify the account uniquely. Only to use internal use. Example: zup-it */
|
|
856
|
+
tenant: string;
|
|
857
|
+
/** The existing accountID if created beforehand */
|
|
858
|
+
accountId?: string;
|
|
859
|
+
/** Account holder's first name */
|
|
860
|
+
adminFirstName: string;
|
|
861
|
+
/** Account holder's last name */
|
|
862
|
+
adminLastName: string;
|
|
863
|
+
/** Account holder's email */
|
|
864
|
+
adminEmail: string;
|
|
865
|
+
/** The email from the responsible for this request */
|
|
866
|
+
requesterEmail: string;
|
|
867
|
+
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
868
|
+
domains: string[];
|
|
869
|
+
};
|
|
870
|
+
export type PageResponseAccountSsoGroupMappingResponse = {
|
|
871
|
+
/** Current page content */
|
|
872
|
+
items?: AccountSsoGroupMappingResponse[];
|
|
873
|
+
/** Total elements found */
|
|
874
|
+
totalElements: number;
|
|
875
|
+
/** Current page number */
|
|
876
|
+
page: number;
|
|
877
|
+
/** Length of current page items */
|
|
878
|
+
size: number;
|
|
879
|
+
};
|
|
880
|
+
export type AccountGroupMappingCreateRequest = {
|
|
881
|
+
/** Group Mapping externalUserAttribute */
|
|
882
|
+
attributeName?: string;
|
|
883
|
+
/** Group Mapping externalUserValue */
|
|
884
|
+
attributeValue?: string;
|
|
885
|
+
/** Group Mapping force */
|
|
886
|
+
force?: boolean;
|
|
887
|
+
/** Group Mapping importerMode */
|
|
888
|
+
importerMode?: string;
|
|
889
|
+
/** Group Mapping importerType */
|
|
890
|
+
importerType: "DEFAULT_ROLE" | "DEFAULT_GROUP" | "ATTR_TO_GROUP" | "ATTR_TO_ROLE" | "DYNAMIC_GROUP";
|
|
891
|
+
/** Group Mapping mapTo */
|
|
892
|
+
mapTo?: string;
|
|
893
|
+
/** Group Mapping name */
|
|
894
|
+
name: string;
|
|
895
|
+
};
|
|
896
|
+
export type Certificate = {
|
|
897
|
+
data?: string;
|
|
898
|
+
};
|
|
899
|
+
export type SignKey = {
|
|
900
|
+
name?: string;
|
|
901
|
+
certificates?: Certificate[];
|
|
902
|
+
};
|
|
903
|
+
export type SsoConfigRequest = {
|
|
904
|
+
/** SAML Entity Id */
|
|
905
|
+
entityId?: string;
|
|
906
|
+
signKey?: SignKey;
|
|
907
|
+
/** OpenId Authorization Endpoint */
|
|
908
|
+
authorizationEndpoint?: string;
|
|
909
|
+
/** OpenId End Session Endpoint */
|
|
910
|
+
endSessionEndpoint?: string;
|
|
911
|
+
/** OpenId Issuer */
|
|
912
|
+
issuer?: string;
|
|
913
|
+
/** OpenId JWKS Uri */
|
|
914
|
+
jwksUri?: string;
|
|
915
|
+
/** OpenId Registration Endpoint */
|
|
916
|
+
registrationEndpoint?: string;
|
|
917
|
+
/** OpenId Revocation Endpoint */
|
|
918
|
+
revocationEndpoint?: string;
|
|
919
|
+
/** OpenId Token Endpoint */
|
|
920
|
+
tokenEndpoint?: string;
|
|
921
|
+
/** OpenId Userinfo Endpoint */
|
|
922
|
+
userinfoEndpoint?: string;
|
|
923
|
+
/** OpenId Client ID */
|
|
924
|
+
clientId?: string;
|
|
925
|
+
/** OpenId Client Secret */
|
|
926
|
+
clientSecret?: string;
|
|
927
|
+
};
|
|
928
|
+
export type AccountSsoCreateRequest = {
|
|
929
|
+
/** Alias from SSO configuration */
|
|
930
|
+
alias: string;
|
|
931
|
+
/** Name from SSO configuration */
|
|
932
|
+
name: string;
|
|
933
|
+
/** Callback URL from SSO configuration */
|
|
934
|
+
callbackUrl: string;
|
|
935
|
+
config: SsoConfigRequest;
|
|
936
|
+
/** Activation configuration */
|
|
937
|
+
isEnabled: boolean;
|
|
938
|
+
/** SSO SAML Single Sign On endpoints */
|
|
939
|
+
ssoEndpoints?: Endpoint[];
|
|
940
|
+
/** SSO SAML Single Logout On endpoints */
|
|
941
|
+
sloEndpoints?: Endpoint[];
|
|
942
|
+
/** SSO SAML Name id Formats */
|
|
943
|
+
nameIdFormats?: string[];
|
|
944
|
+
};
|
|
945
|
+
export type SsoIdResponse = {
|
|
946
|
+
/** Id response. */
|
|
947
|
+
id: string;
|
|
948
|
+
};
|
|
949
|
+
export type AccountSsoParserResponse = {
|
|
950
|
+
config?: Config;
|
|
951
|
+
/** SAML Want Signed Requests */
|
|
952
|
+
wantSignedRequests?: boolean;
|
|
953
|
+
/** SAML SSO Endpoints */
|
|
954
|
+
ssoEndpoints: Endpoint[];
|
|
955
|
+
/** SAML SLO Endpoints */
|
|
956
|
+
sloEndpoints: Endpoint[];
|
|
957
|
+
/** SAML Name Id Formats */
|
|
958
|
+
nameIdFormats: string[];
|
|
959
|
+
/** SSO callback url */
|
|
960
|
+
callbackUrl?: string;
|
|
961
|
+
};
|
|
962
|
+
export type AccountFreemiumCreateRequest = {
|
|
963
|
+
/** The account's name. Example: Zup IT Innovation */
|
|
964
|
+
name: string;
|
|
965
|
+
/** The slug to use in URL as unique identifying part representing the account (https://developer.mozilla.org/en-US/docs/Glossary/Slug). Example: zup */
|
|
966
|
+
slug: string;
|
|
967
|
+
};
|
|
968
|
+
export type AccountCollaboratorRequest = {
|
|
969
|
+
/** The API id of account requester */
|
|
970
|
+
accountApiId: string;
|
|
971
|
+
};
|
|
972
|
+
export type CreateAccountPartnerOrderRequest = {
|
|
973
|
+
/** The account's name. Example: Zup IT Innovation */
|
|
974
|
+
name: string;
|
|
975
|
+
/** Account holder's first name */
|
|
976
|
+
adminFirstName: string;
|
|
977
|
+
/** Account holder's last name */
|
|
978
|
+
adminLastName: string;
|
|
979
|
+
/** Account holder's email */
|
|
980
|
+
adminEmail: string;
|
|
981
|
+
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
982
|
+
domains: string[];
|
|
983
|
+
/** Account logo image in base64 */
|
|
984
|
+
image?: string;
|
|
985
|
+
};
|
|
986
|
+
export type ValidateAccountPartnerDataRequest = {
|
|
987
|
+
/** The account's name. Example: Zup IT Innovation */
|
|
988
|
+
name?: string;
|
|
989
|
+
/** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
|
|
990
|
+
domains?: string[];
|
|
991
|
+
};
|
|
992
|
+
export type RotateServiceCredentialSecretRequest = {
|
|
993
|
+
/** Service credential secret */
|
|
994
|
+
secret: string;
|
|
995
|
+
};
|
|
996
|
+
export type RotateServiceCredentialSecretResponse = {
|
|
997
|
+
secret?: string;
|
|
998
|
+
};
|
|
999
|
+
export type ServiceCredentialAssociateGroupRequest = {
|
|
1000
|
+
/** Service credential groups ids */
|
|
1001
|
+
teams: string[];
|
|
1002
|
+
};
|
|
1003
|
+
export type DeleteMemberPermissionsRequest = {
|
|
1004
|
+
/** Permission Action */
|
|
1005
|
+
actionName: string;
|
|
1006
|
+
/** Slug from resource type */
|
|
1007
|
+
resourceTypeSlug: string;
|
|
1008
|
+
/** Slug from resource */
|
|
1009
|
+
resourceSlug: string;
|
|
1010
|
+
};
|
|
1011
|
+
export type UpdateMemberPermissionsRequest = {
|
|
1012
|
+
/** Permission Action */
|
|
1013
|
+
actionName: string;
|
|
1014
|
+
/** Slug from resource type */
|
|
1015
|
+
resourceTypeSlug: string;
|
|
1016
|
+
/** Slug from resource */
|
|
1017
|
+
resourceSlug: string;
|
|
1018
|
+
};
|
|
1019
|
+
export type MemberCredentialResponse = {
|
|
1020
|
+
/** Field to represents if credential is active */
|
|
1021
|
+
active: boolean;
|
|
1022
|
+
/** Member credential type */
|
|
1023
|
+
credentialType: "password" | "otp" | "fido";
|
|
1024
|
+
/** Member credential encoded data */
|
|
1025
|
+
aaguid?: string;
|
|
1026
|
+
/** Member credential identifier */
|
|
1027
|
+
id: number;
|
|
1028
|
+
/** Member credential was created */
|
|
1029
|
+
createdAt: string;
|
|
1030
|
+
/** Member credential last updated */
|
|
1031
|
+
updatedAt: string;
|
|
1032
|
+
/** Member id */
|
|
1033
|
+
userId: string;
|
|
1034
|
+
};
|
|
1035
|
+
export type MemberCredentialsListResponse = {
|
|
1036
|
+
/** Describes whether the user has fido configured */
|
|
1037
|
+
pendingConfiguration: boolean;
|
|
1038
|
+
/** List of User Credentials */
|
|
1039
|
+
items: MemberCredentialResponse[];
|
|
1040
|
+
/** Size of list */
|
|
1041
|
+
size: number;
|
|
1042
|
+
/** Total elements */
|
|
1043
|
+
totalElements: number;
|
|
1044
|
+
};
|
|
1045
|
+
export type GroupReadDetailResponse = {
|
|
1046
|
+
/** Group id */
|
|
1047
|
+
id: string;
|
|
1048
|
+
/** Group name */
|
|
1049
|
+
name: string;
|
|
1050
|
+
/** Group description */
|
|
1051
|
+
description?: string;
|
|
1052
|
+
/** Total users */
|
|
1053
|
+
totalUsers?: number;
|
|
1054
|
+
/** Group image URL */
|
|
1055
|
+
imageUrl?: string;
|
|
1056
|
+
};
|
|
1057
|
+
export type UpdateGroupRequest = {
|
|
1058
|
+
/** Group name */
|
|
1059
|
+
name?: string;
|
|
1060
|
+
/** Group description */
|
|
1061
|
+
description: string;
|
|
1062
|
+
/** Group image base64 */
|
|
1063
|
+
image?: string;
|
|
1064
|
+
};
|
|
1065
|
+
export type DeleteGroupPermissionsRequest = {
|
|
1066
|
+
/** Permission Action */
|
|
1067
|
+
actionName: string;
|
|
1068
|
+
/** Slug from resource type */
|
|
1069
|
+
resourceTypeSlug: string;
|
|
1070
|
+
/** Slug from resource */
|
|
1071
|
+
resourceSlug: string;
|
|
1072
|
+
};
|
|
1073
|
+
export type UpdateGroupPermissionsRequest = {
|
|
1074
|
+
/** Permission Action */
|
|
1075
|
+
actionName: string;
|
|
1076
|
+
/** Slug from resource type */
|
|
1077
|
+
resourceTypeSlug: string;
|
|
1078
|
+
/** Slug from resource */
|
|
1079
|
+
resourceSlug: string;
|
|
1080
|
+
};
|
|
1081
|
+
export type AccountSsoAttributesConfigResponse = {
|
|
1082
|
+
/** Id from SSO */
|
|
1083
|
+
id: string;
|
|
1084
|
+
/** SSO Name attribute configuration */
|
|
1085
|
+
email?: string;
|
|
1086
|
+
/** SSO First Name attribute configuration */
|
|
1087
|
+
firstName?: string;
|
|
1088
|
+
/** SSO Last Name attribute configuration */
|
|
1089
|
+
lastName?: string;
|
|
1090
|
+
};
|
|
1091
|
+
export type AccountSsoAddAttributesConfigRequest = {
|
|
1092
|
+
/** SSO Name attribute configuration */
|
|
1093
|
+
email: string;
|
|
1094
|
+
/** SSO First Name attribute configuration */
|
|
1095
|
+
firstName: string;
|
|
1096
|
+
/** SSO Last Name attribute configuration */
|
|
1097
|
+
lastName?: string;
|
|
1098
|
+
};
|
|
1099
|
+
export type AccountPartnerAccountDataUpdateRequest = {
|
|
1100
|
+
/** The account's name. Example: Zup IT Innovation */
|
|
1101
|
+
name?: string;
|
|
1102
|
+
/** Account logo image in base64 */
|
|
1103
|
+
image?: string;
|
|
1104
|
+
};
|
|
1105
|
+
export type AccountPartnerAdminDataUpdateRequest = {
|
|
1106
|
+
/** Admin first name */
|
|
1107
|
+
firstName: string;
|
|
1108
|
+
/** Admin last name */
|
|
1109
|
+
lastName: string;
|
|
1110
|
+
/** Admin email */
|
|
1111
|
+
email: string;
|
|
1112
|
+
};
|
|
1113
|
+
export type AccountCollaborationInfoResponse = {
|
|
1114
|
+
/** Account ID */
|
|
1115
|
+
id: string;
|
|
1116
|
+
/** Account Name */
|
|
1117
|
+
name: string;
|
|
1118
|
+
/** Account Tenant */
|
|
1119
|
+
tenant: string;
|
|
1120
|
+
/** Account Slug */
|
|
1121
|
+
slug: string;
|
|
1122
|
+
/** Role type of user in Account */
|
|
1123
|
+
roleType: "OWNER" | "MEMBER";
|
|
1124
|
+
};
|
|
1125
|
+
export type AccountDataReadResponse = {
|
|
1126
|
+
/** Account ID */
|
|
1127
|
+
id: string;
|
|
1128
|
+
/** Account Name */
|
|
1129
|
+
name: string;
|
|
1130
|
+
/** Account Tenant */
|
|
1131
|
+
tenant: string;
|
|
1132
|
+
/** Account Slug */
|
|
1133
|
+
slug: string;
|
|
1134
|
+
/** Account Admin Name */
|
|
1135
|
+
adminName: string;
|
|
1136
|
+
/** Account Admin Email */
|
|
1137
|
+
adminEmail: string;
|
|
1138
|
+
/** Account Type */
|
|
1139
|
+
accountType: "ENTERPRISE" | "PARTNER" | "FREEMIUM";
|
|
1140
|
+
/** Account logo URL */
|
|
1141
|
+
logoBase64?: string;
|
|
1142
|
+
};
|
|
1143
|
+
export type ServiceCredentialDetailsResponse = {
|
|
1144
|
+
/** Service credential id */
|
|
1145
|
+
id: string;
|
|
1146
|
+
/** Service credential name */
|
|
1147
|
+
name: string;
|
|
1148
|
+
/** Service credential user email creator */
|
|
1149
|
+
createdBy: string;
|
|
1150
|
+
/** Service credential created date */
|
|
1151
|
+
createdAt: string;
|
|
1152
|
+
/** Service credential expire date */
|
|
1153
|
+
expirationDate?: string;
|
|
1154
|
+
/** Service credential user email revoked */
|
|
1155
|
+
revokedBy?: string;
|
|
1156
|
+
/** Service credential revoked date */
|
|
1157
|
+
revokedAt?: string;
|
|
1158
|
+
/** Service credential status */
|
|
1159
|
+
status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
1160
|
+
/** Service credential scopes */
|
|
1161
|
+
scopes?: string[];
|
|
1162
|
+
};
|
|
1163
|
+
export type EditableActionResponse = {
|
|
1164
|
+
/** Id of action. */
|
|
1165
|
+
id: string;
|
|
1166
|
+
/** Client of action. */
|
|
1167
|
+
clientId?: string;
|
|
1168
|
+
/** Name of action. */
|
|
1169
|
+
name: string;
|
|
1170
|
+
/** Description of action. */
|
|
1171
|
+
description: string;
|
|
1172
|
+
/** Creation time of action. */
|
|
1173
|
+
createdAt: string;
|
|
1174
|
+
/** Action is active for parent resource. */
|
|
1175
|
+
active?: boolean;
|
|
1176
|
+
};
|
|
1177
|
+
export type FullResourceResponse = {
|
|
1178
|
+
/** Id of resource. */
|
|
1179
|
+
id: string;
|
|
1180
|
+
/** Name of resource. */
|
|
1181
|
+
name: string;
|
|
1182
|
+
/** Description of resource. */
|
|
1183
|
+
description?: string;
|
|
1184
|
+
actions?: EditableActionResponse[];
|
|
1185
|
+
globalResourceId: string;
|
|
1186
|
+
createdAt: string;
|
|
1187
|
+
};
|
|
1188
|
+
export type AccountScmProviderResponse = {
|
|
1189
|
+
/** SCM repository provider */
|
|
1190
|
+
provider: "GITHUB" | "GITLAB" | "BITBUCKET" | "AZURE";
|
|
1191
|
+
};
|
|
1192
|
+
export type AccountScmStatusResponse = {
|
|
1193
|
+
/** Flag used to indicate if the SCM repository account credential configuration is mandated */
|
|
1194
|
+
mandate: boolean;
|
|
1195
|
+
/** Flag used to indicate if the user credentials to access the account SCM repository already has configured by User */
|
|
1196
|
+
hasUserConfiguration: boolean;
|
|
1197
|
+
};
|
|
1198
|
+
export type RolePermissionResponse = {
|
|
1199
|
+
status?: boolean;
|
|
1200
|
+
/** Permission ID from StackSpot IAM */
|
|
1201
|
+
id: string;
|
|
1202
|
+
/** Permission's name */
|
|
1203
|
+
name: string;
|
|
1204
|
+
/** Permission's description */
|
|
1205
|
+
description?: string;
|
|
1206
|
+
/** Permission's creation timestamp */
|
|
1207
|
+
createdAt: string;
|
|
1208
|
+
/** The statements defined in the permission */
|
|
1209
|
+
statements: PermissionStatementResponse[];
|
|
1210
|
+
};
|
|
1211
|
+
export type MembersFromResourceResponse = {
|
|
1212
|
+
/** Member ID */
|
|
1213
|
+
id: string;
|
|
1214
|
+
/** Member username */
|
|
1215
|
+
username: string;
|
|
1216
|
+
/** Member company email */
|
|
1217
|
+
email: string;
|
|
1218
|
+
/** Member name */
|
|
1219
|
+
name?: string;
|
|
1220
|
+
/** Member permission actions */
|
|
1221
|
+
actions: string[];
|
|
1222
|
+
};
|
|
1223
|
+
export type GroupsFromResourceResponse = {
|
|
1224
|
+
/** Group ID */
|
|
1225
|
+
id: string;
|
|
1226
|
+
/** Group name */
|
|
1227
|
+
name: string;
|
|
1228
|
+
/** Group description */
|
|
1229
|
+
description?: string;
|
|
1230
|
+
/** Group slug */
|
|
1231
|
+
slug: string;
|
|
1232
|
+
/** Group member count */
|
|
1233
|
+
memberCount: number;
|
|
1234
|
+
/** Group permission actions */
|
|
1235
|
+
actions: string[];
|
|
1236
|
+
};
|
|
1237
|
+
export type ResourceTypeResponse = {
|
|
1238
|
+
id: string;
|
|
1239
|
+
name: string;
|
|
1240
|
+
slug: string;
|
|
1241
|
+
description: string;
|
|
1242
|
+
createdAt: string;
|
|
1243
|
+
};
|
|
1244
|
+
export type ResourceDto = {
|
|
1245
|
+
id: string;
|
|
1246
|
+
name: string;
|
|
1247
|
+
slug: string;
|
|
1248
|
+
description?: string;
|
|
1249
|
+
"type"?: ResourceTypeDto;
|
|
1250
|
+
};
|
|
1251
|
+
export type AccountAuthenticationConfigResponse = {
|
|
1252
|
+
/** OpenID Well Known url for current account */
|
|
1253
|
+
openIdWellKnownUrl: string;
|
|
1254
|
+
};
|
|
1255
|
+
export type AccountDataResponse = {
|
|
1256
|
+
/** Account tenant */
|
|
1257
|
+
tenant: string;
|
|
1258
|
+
/** Account IDP */
|
|
1259
|
+
idp?: string;
|
|
1260
|
+
/** Account Freemium available to user */
|
|
1261
|
+
freemiumAvailable: boolean;
|
|
1262
|
+
/** Account Type */
|
|
1263
|
+
accountType: "ENTERPRISE" | "PARTNER" | "FREEMIUM";
|
|
1264
|
+
/** Stackspot IAM Migrated */
|
|
1265
|
+
isIamMigrated: boolean;
|
|
1266
|
+
/** Stackspot IAM Tenant */
|
|
1267
|
+
openIdWellKnownUrl?: string;
|
|
1268
|
+
/** Account OpenID Well Known url */
|
|
1269
|
+
iamTenant?: string;
|
|
1270
|
+
};
|
|
1271
|
+
export type AccountSlugResponse = {
|
|
1272
|
+
/** Account slug */
|
|
1273
|
+
slug: string;
|
|
1274
|
+
};
|
|
1275
|
+
export type AccountSsoResponse = {
|
|
1276
|
+
/** SSO configuration name */
|
|
1277
|
+
name: string;
|
|
1278
|
+
/** Unique identifier for the SSO configuration */
|
|
1279
|
+
id: string;
|
|
1280
|
+
/** Alias for the SSO configuration */
|
|
1281
|
+
alias: string;
|
|
1282
|
+
/** List of attribute importers */
|
|
1283
|
+
attributeImporters: AttributeImporter[];
|
|
1284
|
+
/** Creation timestamp of the SSO configuration */
|
|
1285
|
+
createdAt?: string;
|
|
1286
|
+
/** Discovery endpoint for the SSO configuration */
|
|
1287
|
+
discoveryEndpoint?: string;
|
|
1288
|
+
/** Indicates if the SSO configuration is enabled */
|
|
1289
|
+
isEnabled?: boolean;
|
|
1290
|
+
idMapper?: IdMapper;
|
|
1291
|
+
/** Type of the SSO configuration */
|
|
1292
|
+
"type": "SAML" | "OPENID";
|
|
1293
|
+
/** Indicates if the SSO is fully configured */
|
|
1294
|
+
isConfigured: boolean;
|
|
1295
|
+
};
|
|
1296
|
+
export type PageResponseAccountSsoResponse = {
|
|
1297
|
+
/** Current page content */
|
|
1298
|
+
items?: AccountSsoResponse[];
|
|
1299
|
+
/** Total elements found */
|
|
1300
|
+
totalElements: number;
|
|
1301
|
+
/** Current page number */
|
|
1302
|
+
page: number;
|
|
1303
|
+
/** Length of current page items */
|
|
1304
|
+
size: number;
|
|
1305
|
+
};
|
|
1306
|
+
export type AccountDataAvailableResponse = {
|
|
1307
|
+
/** Account data (name and slug) is available to be registered */
|
|
1308
|
+
available: boolean;
|
|
1309
|
+
};
|
|
1310
|
+
export type AccountPartnerResponse = {
|
|
1311
|
+
/** Account id */
|
|
1312
|
+
accountApiId: string;
|
|
1313
|
+
/** Account slug */
|
|
1314
|
+
slug: string;
|
|
1315
|
+
/** Account name */
|
|
1316
|
+
name: string;
|
|
1317
|
+
/** Account logo image */
|
|
1318
|
+
image?: string;
|
|
1319
|
+
/** Account creation time */
|
|
1320
|
+
createdAt: string;
|
|
1321
|
+
/** Account current status */
|
|
1322
|
+
isActive: boolean;
|
|
1323
|
+
};
|
|
1324
|
+
/**
|
|
1325
|
+
* List User repository credential's.
|
|
1326
|
+
*/
|
|
1327
|
+
export function listScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
1328
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1329
|
+
status: 200;
|
|
1330
|
+
data: UserScmInfoResponse[];
|
|
1331
|
+
} | {
|
|
1332
|
+
status: 403;
|
|
1333
|
+
data: ErrorResponse;
|
|
1334
|
+
} | {
|
|
1335
|
+
status: 500;
|
|
1336
|
+
data: ErrorResponse;
|
|
1337
|
+
}>("/v1/users/scm-credentials", {
|
|
1338
|
+
...opts
|
|
1339
|
+
}));
|
|
1340
|
+
}
|
|
1341
|
+
/**
|
|
1342
|
+
* Update User repository credential's.
|
|
1343
|
+
*/
|
|
1344
|
+
export function scmCredentialUpdate({ userScmInfoRequest }: {
|
|
1345
|
+
userScmInfoRequest: UserScmInfoRequest;
|
|
1346
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1347
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1348
|
+
status: 204;
|
|
1349
|
+
} | {
|
|
1350
|
+
status: 403;
|
|
1351
|
+
data: ErrorResponse;
|
|
1352
|
+
} | {
|
|
1353
|
+
status: 422;
|
|
1354
|
+
data: ErrorResponse;
|
|
1355
|
+
} | {
|
|
1356
|
+
status: 500;
|
|
1357
|
+
data: ErrorResponse;
|
|
1358
|
+
}>("/v1/users/scm-credentials", oazapfts.json({
|
|
1359
|
+
...opts,
|
|
1360
|
+
method: "PUT",
|
|
1361
|
+
body: userScmInfoRequest
|
|
1362
|
+
})));
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* Save User repository credential's.
|
|
1366
|
+
*/
|
|
1367
|
+
export function scmCredentialSave({ userScmInfoRequest }: {
|
|
1368
|
+
userScmInfoRequest: UserScmInfoRequest;
|
|
1369
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1370
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1371
|
+
status: 204;
|
|
1372
|
+
} | {
|
|
1373
|
+
status: 403;
|
|
1374
|
+
data: ErrorResponse;
|
|
1375
|
+
} | {
|
|
1376
|
+
status: 422;
|
|
1377
|
+
data: ErrorResponse;
|
|
1378
|
+
} | {
|
|
1379
|
+
status: 500;
|
|
1380
|
+
data: ErrorResponse;
|
|
1381
|
+
}>("/v1/users/scm-credentials", oazapfts.json({
|
|
1382
|
+
...opts,
|
|
1383
|
+
method: "POST",
|
|
1384
|
+
body: userScmInfoRequest
|
|
1385
|
+
})));
|
|
1386
|
+
}
|
|
1387
|
+
/**
|
|
1388
|
+
* Delete an user SCM credentials.
|
|
1389
|
+
*/
|
|
1390
|
+
export function scmDelete(opts?: Oazapfts.RequestOpts) {
|
|
1391
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1392
|
+
status: 200;
|
|
1393
|
+
} | {
|
|
1394
|
+
status: 403;
|
|
1395
|
+
data: ErrorResponse;
|
|
1396
|
+
} | {
|
|
1397
|
+
status: 422;
|
|
1398
|
+
data: ErrorResponse;
|
|
1399
|
+
} | {
|
|
1400
|
+
status: 500;
|
|
1401
|
+
data: ErrorResponse;
|
|
1402
|
+
}>("/v1/users/scm-credentials", {
|
|
1403
|
+
...opts,
|
|
1404
|
+
method: "DELETE"
|
|
1405
|
+
}));
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* Get scope by ID
|
|
1409
|
+
*/
|
|
1410
|
+
export function getById({ scopeId }: {
|
|
1411
|
+
scopeId: string;
|
|
1412
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1413
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1414
|
+
status: 200;
|
|
1415
|
+
data: ScopeResponse;
|
|
1416
|
+
} | {
|
|
1417
|
+
status: 400;
|
|
1418
|
+
data: ScopeResponse;
|
|
1419
|
+
} | {
|
|
1420
|
+
status: 404;
|
|
1421
|
+
data: ScopeResponse;
|
|
1422
|
+
} | {
|
|
1423
|
+
status: 500;
|
|
1424
|
+
data: ScopeResponse;
|
|
1425
|
+
}>(`/v1/scopes/${encodeURIComponent(scopeId)}`, {
|
|
1426
|
+
...opts
|
|
1427
|
+
}));
|
|
1428
|
+
}
|
|
1429
|
+
/**
|
|
1430
|
+
* Update scope information
|
|
1431
|
+
*/
|
|
1432
|
+
export function updateScope({ scopeId, iamUpdateScopeRequest }: {
|
|
1433
|
+
scopeId: string;
|
|
1434
|
+
iamUpdateScopeRequest: IamUpdateScopeRequest;
|
|
1435
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1436
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/scopes/${encodeURIComponent(scopeId)}`, oazapfts.json({
|
|
1437
|
+
...opts,
|
|
1438
|
+
method: "PUT",
|
|
1439
|
+
body: iamUpdateScopeRequest
|
|
1440
|
+
})));
|
|
1441
|
+
}
|
|
1442
|
+
/**
|
|
1443
|
+
* Delete scope by ID
|
|
1444
|
+
*/
|
|
1445
|
+
export function deleteScope({ scopeId }: {
|
|
1446
|
+
scopeId: string;
|
|
1447
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1448
|
+
return oazapfts.ok(oazapfts.fetchText(`/v1/scopes/${encodeURIComponent(scopeId)}`, {
|
|
1449
|
+
...opts,
|
|
1450
|
+
method: "DELETE"
|
|
1451
|
+
}));
|
|
1452
|
+
}
|
|
1453
|
+
/**
|
|
1454
|
+
* List repository credential's.
|
|
1455
|
+
*/
|
|
1456
|
+
export function listScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
1457
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1458
|
+
status: 200;
|
|
1459
|
+
data: AccountScmInfoResponse[];
|
|
1460
|
+
} | {
|
|
1461
|
+
status: 403;
|
|
1462
|
+
data: ErrorResponse;
|
|
1463
|
+
} | {
|
|
1464
|
+
status: 422;
|
|
1465
|
+
data: ErrorResponse;
|
|
1466
|
+
} | {
|
|
1467
|
+
status: 500;
|
|
1468
|
+
data: ErrorResponse;
|
|
1469
|
+
}>("/v1/scm-credentials", {
|
|
1470
|
+
...opts
|
|
1471
|
+
}));
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Update repository credential's.
|
|
1475
|
+
*/
|
|
1476
|
+
export function scmCredentialUpdate1({ accountScmInfoUpdateRequest }: {
|
|
1477
|
+
accountScmInfoUpdateRequest: AccountScmInfoUpdateRequest;
|
|
1478
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1479
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1480
|
+
status: 204;
|
|
1481
|
+
} | {
|
|
1482
|
+
status: 403;
|
|
1483
|
+
data: ErrorResponse;
|
|
1484
|
+
} | {
|
|
1485
|
+
status: 422;
|
|
1486
|
+
data: ErrorResponse;
|
|
1487
|
+
} | {
|
|
1488
|
+
status: 500;
|
|
1489
|
+
data: ErrorResponse;
|
|
1490
|
+
}>("/v1/scm-credentials", oazapfts.json({
|
|
1491
|
+
...opts,
|
|
1492
|
+
method: "PUT",
|
|
1493
|
+
body: accountScmInfoUpdateRequest
|
|
1494
|
+
})));
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Save repository credential's.
|
|
1498
|
+
*/
|
|
1499
|
+
export function scmCredentialSave1({ accountScmInfoSaveRequest }: {
|
|
1500
|
+
accountScmInfoSaveRequest: AccountScmInfoSaveRequest;
|
|
1501
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1502
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1503
|
+
status: 204;
|
|
1504
|
+
} | {
|
|
1505
|
+
status: 403;
|
|
1506
|
+
data: ErrorResponse;
|
|
1507
|
+
} | {
|
|
1508
|
+
status: 422;
|
|
1509
|
+
data: ErrorResponse;
|
|
1510
|
+
} | {
|
|
1511
|
+
status: 500;
|
|
1512
|
+
data: ErrorResponse;
|
|
1513
|
+
}>("/v1/scm-credentials", oazapfts.json({
|
|
1514
|
+
...opts,
|
|
1515
|
+
method: "POST",
|
|
1516
|
+
body: accountScmInfoSaveRequest
|
|
1517
|
+
})));
|
|
1518
|
+
}
|
|
1519
|
+
/**
|
|
1520
|
+
* Update a new role for Account
|
|
1521
|
+
*/
|
|
1522
|
+
export function updateAccountRole({ roleId, updateAccountRoleRequest }: {
|
|
1523
|
+
roleId: string;
|
|
1524
|
+
updateAccountRoleRequest: UpdateAccountRoleRequest;
|
|
1525
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1526
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1527
|
+
status: 204;
|
|
1528
|
+
} | {
|
|
1529
|
+
status: 403;
|
|
1530
|
+
data: ErrorResponse;
|
|
1531
|
+
} | {
|
|
1532
|
+
status: 422;
|
|
1533
|
+
data: ErrorResponse;
|
|
1534
|
+
} | {
|
|
1535
|
+
status: 500;
|
|
1536
|
+
data: ErrorResponse;
|
|
1537
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}`, oazapfts.json({
|
|
1538
|
+
...opts,
|
|
1539
|
+
method: "PUT",
|
|
1540
|
+
body: updateAccountRoleRequest
|
|
1541
|
+
})));
|
|
1542
|
+
}
|
|
1543
|
+
/**
|
|
1544
|
+
* Delete a role for Account
|
|
1545
|
+
*/
|
|
1546
|
+
export function deleteAccountRole({ roleId }: {
|
|
1547
|
+
roleId: string;
|
|
1548
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1549
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1550
|
+
status: 204;
|
|
1551
|
+
} | {
|
|
1552
|
+
status: 403;
|
|
1553
|
+
data: ErrorResponse;
|
|
1554
|
+
} | {
|
|
1555
|
+
status: 422;
|
|
1556
|
+
data: ErrorResponse;
|
|
1557
|
+
} | {
|
|
1558
|
+
status: 500;
|
|
1559
|
+
data: ErrorResponse;
|
|
1560
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}`, {
|
|
1561
|
+
...opts,
|
|
1562
|
+
method: "DELETE"
|
|
1563
|
+
}));
|
|
1564
|
+
}
|
|
1565
|
+
/**
|
|
1566
|
+
* Get all Global Reources and Actions compared to role
|
|
1567
|
+
*/
|
|
1568
|
+
export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
1569
|
+
roleId: string;
|
|
1570
|
+
size?: any;
|
|
1571
|
+
page?: any;
|
|
1572
|
+
sort?: string;
|
|
1573
|
+
direction?: "ASC" | "DESC";
|
|
1574
|
+
search?: string;
|
|
1575
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
1576
|
+
filterBy?: string;
|
|
1577
|
+
filterValue?: string;
|
|
1578
|
+
multiFilterMode?: string;
|
|
1579
|
+
filterIn?: any;
|
|
1580
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1581
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1582
|
+
status: 200;
|
|
1583
|
+
data: IamResourceType[];
|
|
1584
|
+
} | {
|
|
1585
|
+
status: 403;
|
|
1586
|
+
data: ErrorResponse;
|
|
1587
|
+
} | {
|
|
1588
|
+
status: 422;
|
|
1589
|
+
data: ErrorResponse;
|
|
1590
|
+
} | {
|
|
1591
|
+
status: 500;
|
|
1592
|
+
data: ErrorResponse;
|
|
1593
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
|
|
1594
|
+
size,
|
|
1595
|
+
page,
|
|
1596
|
+
sort,
|
|
1597
|
+
direction,
|
|
1598
|
+
search,
|
|
1599
|
+
filterMode,
|
|
1600
|
+
filterBy,
|
|
1601
|
+
filterValue,
|
|
1602
|
+
multiFilterMode,
|
|
1603
|
+
filterIn
|
|
1604
|
+
}))}`, {
|
|
1605
|
+
...opts
|
|
1606
|
+
}));
|
|
1607
|
+
}
|
|
1608
|
+
/**
|
|
1609
|
+
* Update role with new resource and actions
|
|
1610
|
+
*/
|
|
1611
|
+
export function updateRoleWithNewActions({ roleId, body }: {
|
|
1612
|
+
roleId: string;
|
|
1613
|
+
body: IamCreateStatementRequest[];
|
|
1614
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1615
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1616
|
+
status: 204;
|
|
1617
|
+
} | {
|
|
1618
|
+
status: 403;
|
|
1619
|
+
data: ErrorResponse;
|
|
1620
|
+
} | {
|
|
1621
|
+
status: 422;
|
|
1622
|
+
data: ErrorResponse;
|
|
1623
|
+
} | {
|
|
1624
|
+
status: 500;
|
|
1625
|
+
data: ErrorResponse;
|
|
1626
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/resources`, oazapfts.json({
|
|
1627
|
+
...opts,
|
|
1628
|
+
method: "PUT",
|
|
1629
|
+
body
|
|
1630
|
+
})));
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Get user by id
|
|
1634
|
+
*/
|
|
1635
|
+
export function getMemberById({ memberId }: {
|
|
1636
|
+
memberId: string;
|
|
1637
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1638
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1639
|
+
status: 200;
|
|
1640
|
+
data: AccountMemberStackspotIamDto;
|
|
1641
|
+
} | {
|
|
1642
|
+
status: 403;
|
|
1643
|
+
data: ErrorResponse;
|
|
1644
|
+
} | {
|
|
1645
|
+
status: 422;
|
|
1646
|
+
data: ErrorResponse;
|
|
1647
|
+
} | {
|
|
1648
|
+
status: 500;
|
|
1649
|
+
data: ErrorResponse;
|
|
1650
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}`, {
|
|
1651
|
+
...opts
|
|
1652
|
+
}));
|
|
1653
|
+
}
|
|
1654
|
+
/**
|
|
1655
|
+
* Update user on current tenant
|
|
1656
|
+
*/
|
|
1657
|
+
export function updateUser({ memberId, updateUserRequest }: {
|
|
1658
|
+
memberId: string;
|
|
1659
|
+
updateUserRequest: UpdateUserRequest;
|
|
1660
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1661
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1662
|
+
status: 200;
|
|
1663
|
+
data: UpdateUserResponse;
|
|
1664
|
+
} | {
|
|
1665
|
+
status: 403;
|
|
1666
|
+
data: ErrorResponse;
|
|
1667
|
+
} | {
|
|
1668
|
+
status: 422;
|
|
1669
|
+
data: ErrorResponse;
|
|
1670
|
+
} | {
|
|
1671
|
+
status: 500;
|
|
1672
|
+
data: ErrorResponse;
|
|
1673
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}`, oazapfts.json({
|
|
1674
|
+
...opts,
|
|
1675
|
+
method: "PUT",
|
|
1676
|
+
body: updateUserRequest
|
|
1677
|
+
})));
|
|
1678
|
+
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Update user password on current tenant
|
|
1681
|
+
*/
|
|
1682
|
+
export function updateUserPassword({ memberId, updatePasswordRequest }: {
|
|
1683
|
+
memberId: string;
|
|
1684
|
+
updatePasswordRequest: UpdatePasswordRequest;
|
|
1685
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1686
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1687
|
+
status: 200;
|
|
1688
|
+
} | {
|
|
1689
|
+
status: 204;
|
|
1690
|
+
} | {
|
|
1691
|
+
status: 403;
|
|
1692
|
+
data: ErrorResponse;
|
|
1693
|
+
} | {
|
|
1694
|
+
status: 422;
|
|
1695
|
+
data: ErrorResponse;
|
|
1696
|
+
} | {
|
|
1697
|
+
status: 500;
|
|
1698
|
+
data: ErrorResponse;
|
|
1699
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/password`, oazapfts.json({
|
|
1700
|
+
...opts,
|
|
1701
|
+
method: "PUT",
|
|
1702
|
+
body: updatePasswordRequest
|
|
1703
|
+
})));
|
|
1704
|
+
}
|
|
1705
|
+
/**
|
|
1706
|
+
* Accept user invitation
|
|
1707
|
+
*/
|
|
1708
|
+
export function accept({ id }: {
|
|
1709
|
+
id: string;
|
|
1710
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1711
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1712
|
+
status: 200;
|
|
1713
|
+
data: UserInvitationResponse;
|
|
1714
|
+
} | {
|
|
1715
|
+
status: 403;
|
|
1716
|
+
data: ErrorResponse;
|
|
1717
|
+
} | {
|
|
1718
|
+
status: 404;
|
|
1719
|
+
data: ErrorResponse;
|
|
1720
|
+
} | {
|
|
1721
|
+
status: 409;
|
|
1722
|
+
data: ErrorResponse;
|
|
1723
|
+
} | {
|
|
1724
|
+
status: 424;
|
|
1725
|
+
data: ErrorResponse;
|
|
1726
|
+
} | {
|
|
1727
|
+
status: 500;
|
|
1728
|
+
data: ErrorResponse;
|
|
1729
|
+
}>(`/v1/invitations/${encodeURIComponent(id)}/accept`, {
|
|
1730
|
+
...opts,
|
|
1731
|
+
method: "PUT"
|
|
1732
|
+
}));
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
* Update a Feature Flag
|
|
1736
|
+
*/
|
|
1737
|
+
export function update({ id, updateFeatureFlagRequest }: {
|
|
1738
|
+
id: number;
|
|
1739
|
+
updateFeatureFlagRequest: UpdateFeatureFlagRequest;
|
|
1740
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1741
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1742
|
+
status: 202;
|
|
1743
|
+
} | {
|
|
1744
|
+
status: 400;
|
|
1745
|
+
data: ErrorResponse;
|
|
1746
|
+
} | {
|
|
1747
|
+
status: 422;
|
|
1748
|
+
data: ErrorResponse;
|
|
1749
|
+
} | {
|
|
1750
|
+
status: 500;
|
|
1751
|
+
}>(`/v1/feature-flags/${encodeURIComponent(id)}`, oazapfts.json({
|
|
1752
|
+
...opts,
|
|
1753
|
+
method: "PUT",
|
|
1754
|
+
body: updateFeatureFlagRequest
|
|
1755
|
+
})));
|
|
1756
|
+
}
|
|
1757
|
+
/**
|
|
1758
|
+
* Update status account
|
|
1759
|
+
*/
|
|
1760
|
+
export function updateAccountStatus({ accountId, accountStatusRequest }: {
|
|
1761
|
+
accountId: string;
|
|
1762
|
+
accountStatusRequest: AccountStatusRequest;
|
|
1763
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1764
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1765
|
+
status: 204;
|
|
1766
|
+
} | {
|
|
1767
|
+
status: 400;
|
|
1768
|
+
data: ErrorResponse;
|
|
1769
|
+
} | {
|
|
1770
|
+
status: 404;
|
|
1771
|
+
data: ErrorResponse;
|
|
1772
|
+
} | {
|
|
1773
|
+
status: 500;
|
|
1774
|
+
data: ErrorResponse;
|
|
1775
|
+
}>(`/v1/accounts/${encodeURIComponent(accountId)}/status`, oazapfts.json({
|
|
1776
|
+
...opts,
|
|
1777
|
+
method: "PUT",
|
|
1778
|
+
body: accountStatusRequest
|
|
1779
|
+
})));
|
|
1780
|
+
}
|
|
1781
|
+
/**
|
|
1782
|
+
* Get a configured SSO from account
|
|
1783
|
+
*/
|
|
1784
|
+
export function getAccountSso({ id }: {
|
|
1785
|
+
id: string;
|
|
1786
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1787
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1788
|
+
status: 200;
|
|
1789
|
+
data: AccountSsoDetailedResponse;
|
|
1790
|
+
} | {
|
|
1791
|
+
status: 400;
|
|
1792
|
+
data: ErrorResponse;
|
|
1793
|
+
} | {
|
|
1794
|
+
status: 500;
|
|
1795
|
+
data: ErrorResponse;
|
|
1796
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}`, {
|
|
1797
|
+
...opts
|
|
1798
|
+
}));
|
|
1799
|
+
}
|
|
1800
|
+
/**
|
|
1801
|
+
* Update a configured SSO from account
|
|
1802
|
+
*/
|
|
1803
|
+
export function updateSso({ id, accountSsoUpdateRequest }: {
|
|
1804
|
+
id: string;
|
|
1805
|
+
accountSsoUpdateRequest: AccountSsoUpdateRequest;
|
|
1806
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1807
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1808
|
+
status: 200;
|
|
1809
|
+
} | {
|
|
1810
|
+
status: 400;
|
|
1811
|
+
data: ErrorResponse;
|
|
1812
|
+
} | {
|
|
1813
|
+
status: 500;
|
|
1814
|
+
data: ErrorResponse;
|
|
1815
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}`, oazapfts.json({
|
|
1816
|
+
...opts,
|
|
1817
|
+
method: "PUT",
|
|
1818
|
+
body: accountSsoUpdateRequest
|
|
1819
|
+
})));
|
|
1820
|
+
}
|
|
1821
|
+
/**
|
|
1822
|
+
* Delete a configured Account SSO from account
|
|
1823
|
+
*/
|
|
1824
|
+
export function deleteSso({ id }: {
|
|
1825
|
+
id: string;
|
|
1826
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1827
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1828
|
+
status: 200;
|
|
1829
|
+
} | {
|
|
1830
|
+
status: 400;
|
|
1831
|
+
data: ErrorResponse;
|
|
1832
|
+
} | {
|
|
1833
|
+
status: 500;
|
|
1834
|
+
data: ErrorResponse;
|
|
1835
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}`, {
|
|
1836
|
+
...opts,
|
|
1837
|
+
method: "DELETE"
|
|
1838
|
+
}));
|
|
1839
|
+
}
|
|
1840
|
+
/**
|
|
1841
|
+
* Update partially a configured SSO from account
|
|
1842
|
+
*/
|
|
1843
|
+
export function partialUpdateSso({ id, accountSsoPartialUpdateRequest }: {
|
|
1844
|
+
id: string;
|
|
1845
|
+
accountSsoPartialUpdateRequest: AccountSsoPartialUpdateRequest;
|
|
1846
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1847
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1848
|
+
status: 200;
|
|
1849
|
+
} | {
|
|
1850
|
+
status: 400;
|
|
1851
|
+
data: ErrorResponse;
|
|
1852
|
+
} | {
|
|
1853
|
+
status: 500;
|
|
1854
|
+
data: ErrorResponse;
|
|
1855
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}`, oazapfts.json({
|
|
1856
|
+
...opts,
|
|
1857
|
+
method: "PATCH",
|
|
1858
|
+
body: accountSsoPartialUpdateRequest
|
|
1859
|
+
})));
|
|
1860
|
+
}
|
|
1861
|
+
/**
|
|
1862
|
+
* Get SSO Group Mapping By Id
|
|
1863
|
+
*/
|
|
1864
|
+
export function getGroupMapById({ id, attributeImporterId }: {
|
|
1865
|
+
id: string;
|
|
1866
|
+
attributeImporterId: string;
|
|
1867
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1868
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1869
|
+
status: 200;
|
|
1870
|
+
data: AccountSsoGroupMappingResponse;
|
|
1871
|
+
} | {
|
|
1872
|
+
status: 404;
|
|
1873
|
+
data: ErrorResponse;
|
|
1874
|
+
} | {
|
|
1875
|
+
status: 500;
|
|
1876
|
+
data: ErrorResponse;
|
|
1877
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping/${encodeURIComponent(attributeImporterId)}`, {
|
|
1878
|
+
...opts
|
|
1879
|
+
}));
|
|
1880
|
+
}
|
|
1881
|
+
/**
|
|
1882
|
+
* Update SSO Group Mapping
|
|
1883
|
+
*/
|
|
1884
|
+
export function updateGroupMapping({ id, attributeImporterId, accountGroupMappingUpdateRequest }: {
|
|
1885
|
+
id: string;
|
|
1886
|
+
attributeImporterId: string;
|
|
1887
|
+
accountGroupMappingUpdateRequest: AccountGroupMappingUpdateRequest;
|
|
1888
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1889
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1890
|
+
status: 200;
|
|
1891
|
+
} | {
|
|
1892
|
+
status: 204;
|
|
1893
|
+
} | {
|
|
1894
|
+
status: 404;
|
|
1895
|
+
data: ErrorResponse;
|
|
1896
|
+
} | {
|
|
1897
|
+
status: 500;
|
|
1898
|
+
data: ErrorResponse;
|
|
1899
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping/${encodeURIComponent(attributeImporterId)}`, oazapfts.json({
|
|
1900
|
+
...opts,
|
|
1901
|
+
method: "PUT",
|
|
1902
|
+
body: accountGroupMappingUpdateRequest
|
|
1903
|
+
})));
|
|
1904
|
+
}
|
|
1905
|
+
/**
|
|
1906
|
+
* Delete SSO Group Mapping
|
|
1907
|
+
*/
|
|
1908
|
+
export function deleteGroupMapping({ id, attributeImporterId }: {
|
|
1909
|
+
id: string;
|
|
1910
|
+
attributeImporterId: string;
|
|
1911
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1912
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1913
|
+
status: 204;
|
|
1914
|
+
} | {
|
|
1915
|
+
status: 404;
|
|
1916
|
+
data: ErrorResponse;
|
|
1917
|
+
} | {
|
|
1918
|
+
status: 500;
|
|
1919
|
+
data: ErrorResponse;
|
|
1920
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping/${encodeURIComponent(attributeImporterId)}`, {
|
|
1921
|
+
...opts,
|
|
1922
|
+
method: "DELETE"
|
|
1923
|
+
}));
|
|
1924
|
+
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Create Service Credential v2
|
|
1927
|
+
*/
|
|
1928
|
+
export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
|
|
1929
|
+
serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
|
|
1930
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1931
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1932
|
+
status: 200;
|
|
1933
|
+
data: ServiceCredentialCreateResponseV2;
|
|
1934
|
+
} | {
|
|
1935
|
+
status: 400;
|
|
1936
|
+
data: ErrorResponse;
|
|
1937
|
+
} | {
|
|
1938
|
+
status: 403;
|
|
1939
|
+
data: ErrorResponse;
|
|
1940
|
+
} | {
|
|
1941
|
+
status: 422;
|
|
1942
|
+
data: ErrorResponse;
|
|
1943
|
+
} | {
|
|
1944
|
+
status: 500;
|
|
1945
|
+
data: ErrorResponse;
|
|
1946
|
+
}>("/v2/service-credentials", oazapfts.json({
|
|
1947
|
+
...opts,
|
|
1948
|
+
method: "POST",
|
|
1949
|
+
body: serviceCredentialCreateRequestV2
|
|
1950
|
+
})));
|
|
1951
|
+
}
|
|
1952
|
+
/**
|
|
1953
|
+
* Get Service Credentials
|
|
1954
|
+
*/
|
|
1955
|
+
export function getServiceCredentials({ name, status, page, size }: {
|
|
1956
|
+
name?: string;
|
|
1957
|
+
status?: string;
|
|
1958
|
+
page?: string;
|
|
1959
|
+
size?: string;
|
|
1960
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1961
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1962
|
+
status: 200;
|
|
1963
|
+
data: ServiceCredentialResponse[];
|
|
1964
|
+
} | {
|
|
1965
|
+
status: 403;
|
|
1966
|
+
data: ErrorResponse;
|
|
1967
|
+
} | {
|
|
1968
|
+
status: 500;
|
|
1969
|
+
data: ErrorResponse;
|
|
1970
|
+
}>(`/v1/service-credentials${QS.query(QS.explode({
|
|
1971
|
+
name,
|
|
1972
|
+
status,
|
|
1973
|
+
page,
|
|
1974
|
+
size
|
|
1975
|
+
}))}`, {
|
|
1976
|
+
...opts
|
|
1977
|
+
}));
|
|
1978
|
+
}
|
|
1979
|
+
/**
|
|
1980
|
+
* Create Service Credential
|
|
1981
|
+
*/
|
|
1982
|
+
export function createServiceCredential1({ serviceCredentialCreateRequest }: {
|
|
1983
|
+
serviceCredentialCreateRequest: ServiceCredentialCreateRequest;
|
|
1984
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
1985
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1986
|
+
status: 200;
|
|
1987
|
+
data: ServiceCredentialCreateResponse;
|
|
1988
|
+
} | {
|
|
1989
|
+
status: 400;
|
|
1990
|
+
data: ErrorResponse;
|
|
1991
|
+
} | {
|
|
1992
|
+
status: 403;
|
|
1993
|
+
data: ErrorResponse;
|
|
1994
|
+
} | {
|
|
1995
|
+
status: 422;
|
|
1996
|
+
data: ErrorResponse;
|
|
1997
|
+
} | {
|
|
1998
|
+
status: 500;
|
|
1999
|
+
data: ErrorResponse;
|
|
2000
|
+
}>("/v1/service-credentials", oazapfts.json({
|
|
2001
|
+
...opts,
|
|
2002
|
+
method: "POST",
|
|
2003
|
+
body: serviceCredentialCreateRequest
|
|
2004
|
+
})));
|
|
2005
|
+
}
|
|
2006
|
+
/**
|
|
2007
|
+
* Notify about Service Credential expiration
|
|
2008
|
+
*/
|
|
2009
|
+
export function notifyServiceCredentialExpiration({ serviceCredentialExpirationRequest }: {
|
|
2010
|
+
serviceCredentialExpirationRequest: ServiceCredentialExpirationNotifyRequest;
|
|
2011
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2012
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2013
|
+
status: 202;
|
|
2014
|
+
} | {
|
|
2015
|
+
status: 204;
|
|
2016
|
+
} | {
|
|
2017
|
+
status: 400;
|
|
2018
|
+
data: ErrorResponse;
|
|
2019
|
+
} | {
|
|
2020
|
+
status: 422;
|
|
2021
|
+
data: ErrorResponse;
|
|
2022
|
+
} | {
|
|
2023
|
+
status: 500;
|
|
2024
|
+
data: ErrorResponse;
|
|
2025
|
+
}>("/v1/service-credentials/expiration", oazapfts.json({
|
|
2026
|
+
...opts,
|
|
2027
|
+
method: "POST",
|
|
2028
|
+
body: serviceCredentialExpirationRequest
|
|
2029
|
+
})));
|
|
2030
|
+
}
|
|
2031
|
+
/**
|
|
2032
|
+
* Find all the existing scopes
|
|
2033
|
+
*/
|
|
2034
|
+
export function findScopes({ page }: {
|
|
2035
|
+
page?: PagingRequest;
|
|
2036
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2037
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2038
|
+
status: 200;
|
|
2039
|
+
data: ScopeResponse[];
|
|
2040
|
+
} | {
|
|
2041
|
+
status: 400;
|
|
2042
|
+
data: ScopeResponse[];
|
|
2043
|
+
} | {
|
|
2044
|
+
status: 500;
|
|
2045
|
+
data: ScopeResponse[];
|
|
2046
|
+
}>(`/v1/scopes${QS.query(QS.explode({
|
|
2047
|
+
page
|
|
2048
|
+
}))}`, {
|
|
2049
|
+
...opts
|
|
2050
|
+
}));
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Create a new scope
|
|
2054
|
+
*/
|
|
2055
|
+
export function createScope({ iamCreateScopeRequest }: {
|
|
2056
|
+
iamCreateScopeRequest: IamCreateScopeRequest;
|
|
2057
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2058
|
+
return oazapfts.ok(oazapfts.fetchText("/v1/scopes", oazapfts.json({
|
|
2059
|
+
...opts,
|
|
2060
|
+
method: "POST",
|
|
2061
|
+
body: iamCreateScopeRequest
|
|
2062
|
+
})));
|
|
2063
|
+
}
|
|
2064
|
+
/**
|
|
2065
|
+
* Get Roles
|
|
2066
|
+
*/
|
|
2067
|
+
export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2068
|
+
size?: any;
|
|
2069
|
+
page?: any;
|
|
2070
|
+
sort?: string;
|
|
2071
|
+
direction?: "ASC" | "DESC";
|
|
2072
|
+
search?: string;
|
|
2073
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2074
|
+
filterBy?: string;
|
|
2075
|
+
filterValue?: string;
|
|
2076
|
+
multiFilterMode?: string;
|
|
2077
|
+
filterIn?: any;
|
|
2078
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2079
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2080
|
+
status: 200;
|
|
2081
|
+
data: RoleResponse[];
|
|
2082
|
+
} | {
|
|
2083
|
+
status: 403;
|
|
2084
|
+
data: ErrorResponse;
|
|
2085
|
+
} | {
|
|
2086
|
+
status: 500;
|
|
2087
|
+
data: ErrorResponse;
|
|
2088
|
+
}>(`/v1/roles${QS.query(QS.explode({
|
|
2089
|
+
size,
|
|
2090
|
+
page,
|
|
2091
|
+
sort,
|
|
2092
|
+
direction,
|
|
2093
|
+
search,
|
|
2094
|
+
filterMode,
|
|
2095
|
+
filterBy,
|
|
2096
|
+
filterValue,
|
|
2097
|
+
multiFilterMode,
|
|
2098
|
+
filterIn
|
|
2099
|
+
}))}`, {
|
|
2100
|
+
...opts
|
|
2101
|
+
}));
|
|
2102
|
+
}
|
|
2103
|
+
/**
|
|
2104
|
+
* Create a new role for Account
|
|
2105
|
+
*/
|
|
2106
|
+
export function createAccountRole({ createAccountRoleRequest }: {
|
|
2107
|
+
createAccountRoleRequest: CreateAccountRoleRequest;
|
|
2108
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2109
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2110
|
+
status: 201;
|
|
2111
|
+
data: IdResponse;
|
|
2112
|
+
} | {
|
|
2113
|
+
status: 403;
|
|
2114
|
+
data: ErrorResponse;
|
|
2115
|
+
} | {
|
|
2116
|
+
status: 422;
|
|
2117
|
+
data: ErrorResponse;
|
|
2118
|
+
} | {
|
|
2119
|
+
status: 500;
|
|
2120
|
+
data: ErrorResponse;
|
|
2121
|
+
}>("/v1/roles", oazapfts.json({
|
|
2122
|
+
...opts,
|
|
2123
|
+
method: "POST",
|
|
2124
|
+
body: createAccountRoleRequest
|
|
2125
|
+
})));
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Get role members
|
|
2129
|
+
*/
|
|
2130
|
+
export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2131
|
+
roleId: string;
|
|
2132
|
+
size?: any;
|
|
2133
|
+
page?: any;
|
|
2134
|
+
sort?: string;
|
|
2135
|
+
direction?: "ASC" | "DESC";
|
|
2136
|
+
search?: string;
|
|
2137
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2138
|
+
filterBy?: string;
|
|
2139
|
+
filterValue?: string;
|
|
2140
|
+
multiFilterMode?: string;
|
|
2141
|
+
filterIn?: any;
|
|
2142
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2143
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2144
|
+
status: 200;
|
|
2145
|
+
data: RoleMemberResponse[];
|
|
2146
|
+
} | {
|
|
2147
|
+
status: 403;
|
|
2148
|
+
data: ErrorResponse;
|
|
2149
|
+
} | {
|
|
2150
|
+
status: 422;
|
|
2151
|
+
data: ErrorResponse;
|
|
2152
|
+
} | {
|
|
2153
|
+
status: 500;
|
|
2154
|
+
data: ErrorResponse;
|
|
2155
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
|
|
2156
|
+
size,
|
|
2157
|
+
page,
|
|
2158
|
+
sort,
|
|
2159
|
+
direction,
|
|
2160
|
+
search,
|
|
2161
|
+
filterMode,
|
|
2162
|
+
filterBy,
|
|
2163
|
+
filterValue,
|
|
2164
|
+
multiFilterMode,
|
|
2165
|
+
filterIn
|
|
2166
|
+
}))}`, {
|
|
2167
|
+
...opts
|
|
2168
|
+
}));
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* Add Role to Member
|
|
2172
|
+
*/
|
|
2173
|
+
export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
|
|
2174
|
+
roleId: string;
|
|
2175
|
+
addRoleToMemberRequest: AddRoleToMemberRequest;
|
|
2176
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2177
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2178
|
+
status: 200;
|
|
2179
|
+
data: AddUsersToRoleResponse;
|
|
2180
|
+
} | {
|
|
2181
|
+
status: 201;
|
|
2182
|
+
data: AddUsersToRoleResponse;
|
|
2183
|
+
} | {
|
|
2184
|
+
status: 207;
|
|
2185
|
+
data: AddUsersToRoleResponse;
|
|
2186
|
+
} | {
|
|
2187
|
+
status: 403;
|
|
2188
|
+
data: ErrorResponse;
|
|
2189
|
+
} | {
|
|
2190
|
+
status: 404;
|
|
2191
|
+
data: ErrorResponse;
|
|
2192
|
+
} | {
|
|
2193
|
+
status: 422;
|
|
2194
|
+
data: ErrorResponse;
|
|
2195
|
+
} | {
|
|
2196
|
+
status: 500;
|
|
2197
|
+
data: ErrorResponse;
|
|
2198
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/members`, oazapfts.json({
|
|
2199
|
+
...opts,
|
|
2200
|
+
method: "POST",
|
|
2201
|
+
body: addRoleToMemberRequest
|
|
2202
|
+
})));
|
|
2203
|
+
}
|
|
2204
|
+
/**
|
|
2205
|
+
* Get Groups from role
|
|
2206
|
+
*/
|
|
2207
|
+
export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2208
|
+
roleId: string;
|
|
2209
|
+
size?: any;
|
|
2210
|
+
page?: any;
|
|
2211
|
+
sort?: string;
|
|
2212
|
+
direction?: "ASC" | "DESC";
|
|
2213
|
+
search?: string;
|
|
2214
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2215
|
+
filterBy?: string;
|
|
2216
|
+
filterValue?: string;
|
|
2217
|
+
multiFilterMode?: string;
|
|
2218
|
+
filterIn?: any;
|
|
2219
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2220
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2221
|
+
status: 200;
|
|
2222
|
+
data: RoleGroupResponse[];
|
|
2223
|
+
} | {
|
|
2224
|
+
status: 403;
|
|
2225
|
+
data: ErrorResponse;
|
|
2226
|
+
} | {
|
|
2227
|
+
status: 422;
|
|
2228
|
+
data: ErrorResponse;
|
|
2229
|
+
} | {
|
|
2230
|
+
status: 500;
|
|
2231
|
+
data: ErrorResponse;
|
|
2232
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
|
|
2233
|
+
size,
|
|
2234
|
+
page,
|
|
2235
|
+
sort,
|
|
2236
|
+
direction,
|
|
2237
|
+
search,
|
|
2238
|
+
filterMode,
|
|
2239
|
+
filterBy,
|
|
2240
|
+
filterValue,
|
|
2241
|
+
multiFilterMode,
|
|
2242
|
+
filterIn
|
|
2243
|
+
}))}`, {
|
|
2244
|
+
...opts
|
|
2245
|
+
}));
|
|
2246
|
+
}
|
|
2247
|
+
/**
|
|
2248
|
+
* Bind roles groups
|
|
2249
|
+
*/
|
|
2250
|
+
export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
|
|
2251
|
+
roleId: string;
|
|
2252
|
+
roleGroupIdsRequest: RoleGroupIdsRequest;
|
|
2253
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2254
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2255
|
+
status: 201;
|
|
2256
|
+
} | {
|
|
2257
|
+
status: 204;
|
|
2258
|
+
} | {
|
|
2259
|
+
status: 403;
|
|
2260
|
+
data: ErrorResponse;
|
|
2261
|
+
} | {
|
|
2262
|
+
status: 422;
|
|
2263
|
+
data: ErrorResponse;
|
|
2264
|
+
} | {
|
|
2265
|
+
status: 500;
|
|
2266
|
+
data: ErrorResponse;
|
|
2267
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/groups`, oazapfts.json({
|
|
2268
|
+
...opts,
|
|
2269
|
+
method: "POST",
|
|
2270
|
+
body: roleGroupIdsRequest
|
|
2271
|
+
})));
|
|
2272
|
+
}
|
|
2273
|
+
/**
|
|
2274
|
+
* Get Resources
|
|
2275
|
+
*/
|
|
2276
|
+
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2277
|
+
size?: any;
|
|
2278
|
+
page?: any;
|
|
2279
|
+
sort?: string;
|
|
2280
|
+
direction?: "ASC" | "DESC";
|
|
2281
|
+
search?: string;
|
|
2282
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2283
|
+
filterBy?: string;
|
|
2284
|
+
filterValue?: string;
|
|
2285
|
+
multiFilterMode?: string;
|
|
2286
|
+
filterIn?: any;
|
|
2287
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2288
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2289
|
+
status: 200;
|
|
2290
|
+
data: ResourceResponse[];
|
|
2291
|
+
} | {
|
|
2292
|
+
status: 403;
|
|
2293
|
+
data: ErrorResponse;
|
|
2294
|
+
} | {
|
|
2295
|
+
status: 500;
|
|
2296
|
+
data: ErrorResponse;
|
|
2297
|
+
}>(`/v1/resources${QS.query(QS.explode({
|
|
2298
|
+
size,
|
|
2299
|
+
page,
|
|
2300
|
+
sort,
|
|
2301
|
+
direction,
|
|
2302
|
+
search,
|
|
2303
|
+
filterMode,
|
|
2304
|
+
filterBy,
|
|
2305
|
+
filterValue,
|
|
2306
|
+
multiFilterMode,
|
|
2307
|
+
filterIn
|
|
2308
|
+
}))}`, {
|
|
2309
|
+
...opts
|
|
2310
|
+
}));
|
|
2311
|
+
}
|
|
2312
|
+
/**
|
|
2313
|
+
* Create a new resource for Account
|
|
2314
|
+
*/
|
|
2315
|
+
export function createResource({ createResourceRequest }: {
|
|
2316
|
+
createResourceRequest: CreateResourceRequest;
|
|
2317
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2318
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2319
|
+
status: 201;
|
|
2320
|
+
data: IdResponse;
|
|
2321
|
+
} | {
|
|
2322
|
+
status: 403;
|
|
2323
|
+
data: ErrorResponse;
|
|
2324
|
+
} | {
|
|
2325
|
+
status: 422;
|
|
2326
|
+
data: ErrorResponse;
|
|
2327
|
+
} | {
|
|
2328
|
+
status: 500;
|
|
2329
|
+
data: ErrorResponse;
|
|
2330
|
+
}>("/v1/resources", oazapfts.json({
|
|
2331
|
+
...opts,
|
|
2332
|
+
method: "POST",
|
|
2333
|
+
body: createResourceRequest
|
|
2334
|
+
})));
|
|
2335
|
+
}
|
|
2336
|
+
/**
|
|
2337
|
+
* Get Account Members
|
|
2338
|
+
*/
|
|
2339
|
+
export function getAccountMembers1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2340
|
+
size?: any;
|
|
2341
|
+
page?: any;
|
|
2342
|
+
sort?: string;
|
|
2343
|
+
direction?: "ASC" | "DESC";
|
|
2344
|
+
search?: string;
|
|
2345
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2346
|
+
filterBy?: string;
|
|
2347
|
+
filterValue?: string;
|
|
2348
|
+
multiFilterMode?: string;
|
|
2349
|
+
filterIn?: any;
|
|
2350
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2351
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2352
|
+
status: 200;
|
|
2353
|
+
data: AccountMemberResponse[];
|
|
2354
|
+
} | {
|
|
2355
|
+
status: 403;
|
|
2356
|
+
data: ErrorResponse;
|
|
2357
|
+
} | {
|
|
2358
|
+
status: 500;
|
|
2359
|
+
data: ErrorResponse;
|
|
2360
|
+
}>(`/v1/members${QS.query(QS.explode({
|
|
2361
|
+
size,
|
|
2362
|
+
page,
|
|
2363
|
+
sort,
|
|
2364
|
+
direction,
|
|
2365
|
+
search,
|
|
2366
|
+
filterMode,
|
|
2367
|
+
filterBy,
|
|
2368
|
+
filterValue,
|
|
2369
|
+
multiFilterMode,
|
|
2370
|
+
filterIn
|
|
2371
|
+
}))}`, {
|
|
2372
|
+
...opts
|
|
2373
|
+
}));
|
|
2374
|
+
}
|
|
2375
|
+
/**
|
|
2376
|
+
* Create user on current tenant
|
|
2377
|
+
*/
|
|
2378
|
+
export function createUser({ createUserRequest }: {
|
|
2379
|
+
createUserRequest: CreateUserRequest;
|
|
2380
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2381
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2382
|
+
status: 201;
|
|
2383
|
+
data: CreateUserResponse;
|
|
2384
|
+
} | {
|
|
2385
|
+
status: 403;
|
|
2386
|
+
data: ErrorResponse;
|
|
2387
|
+
} | {
|
|
2388
|
+
status: 422;
|
|
2389
|
+
data: ErrorResponse;
|
|
2390
|
+
} | {
|
|
2391
|
+
status: 500;
|
|
2392
|
+
data: ErrorResponse;
|
|
2393
|
+
}>("/v1/members", oazapfts.json({
|
|
2394
|
+
...opts,
|
|
2395
|
+
method: "POST",
|
|
2396
|
+
body: createUserRequest
|
|
2397
|
+
})));
|
|
2398
|
+
}
|
|
2399
|
+
/**
|
|
2400
|
+
* Get member roles
|
|
2401
|
+
*/
|
|
2402
|
+
export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2403
|
+
memberId: string;
|
|
2404
|
+
size?: any;
|
|
2405
|
+
page?: any;
|
|
2406
|
+
sort?: string;
|
|
2407
|
+
direction?: "ASC" | "DESC";
|
|
2408
|
+
search?: string;
|
|
2409
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2410
|
+
filterBy?: string;
|
|
2411
|
+
filterValue?: string;
|
|
2412
|
+
multiFilterMode?: string;
|
|
2413
|
+
filterIn?: any;
|
|
2414
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2415
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2416
|
+
status: 200;
|
|
2417
|
+
data: ReadMemberRoleResponse[];
|
|
2418
|
+
} | {
|
|
2419
|
+
status: 403;
|
|
2420
|
+
data: ErrorResponse;
|
|
2421
|
+
} | {
|
|
2422
|
+
status: 500;
|
|
2423
|
+
data: ErrorResponse;
|
|
2424
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
|
|
2425
|
+
size,
|
|
2426
|
+
page,
|
|
2427
|
+
sort,
|
|
2428
|
+
direction,
|
|
2429
|
+
search,
|
|
2430
|
+
filterMode,
|
|
2431
|
+
filterBy,
|
|
2432
|
+
filterValue,
|
|
2433
|
+
multiFilterMode,
|
|
2434
|
+
filterIn
|
|
2435
|
+
}))}`, {
|
|
2436
|
+
...opts
|
|
2437
|
+
}));
|
|
2438
|
+
}
|
|
2439
|
+
/**
|
|
2440
|
+
* Bind users to roles
|
|
2441
|
+
*/
|
|
2442
|
+
export function bindToRoles({ memberId, memberIdsCommonRequest }: {
|
|
2443
|
+
memberId: string;
|
|
2444
|
+
memberIdsCommonRequest: MemberIdsCommonRequest;
|
|
2445
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2446
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2447
|
+
status: 200;
|
|
2448
|
+
data: AccountMemberStackspotIamDto;
|
|
2449
|
+
} | {
|
|
2450
|
+
status: 201;
|
|
2451
|
+
} | {
|
|
2452
|
+
status: 403;
|
|
2453
|
+
data: ErrorResponse;
|
|
2454
|
+
} | {
|
|
2455
|
+
status: 422;
|
|
2456
|
+
data: ErrorResponse;
|
|
2457
|
+
} | {
|
|
2458
|
+
status: 500;
|
|
2459
|
+
data: ErrorResponse;
|
|
2460
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/roles`, oazapfts.json({
|
|
2461
|
+
...opts,
|
|
2462
|
+
method: "POST",
|
|
2463
|
+
body: memberIdsCommonRequest
|
|
2464
|
+
})));
|
|
2465
|
+
}
|
|
2466
|
+
/**
|
|
2467
|
+
* Get member Groups
|
|
2468
|
+
*/
|
|
2469
|
+
export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2470
|
+
memberId: string;
|
|
2471
|
+
size?: any;
|
|
2472
|
+
page?: any;
|
|
2473
|
+
sort?: string;
|
|
2474
|
+
direction?: "ASC" | "DESC";
|
|
2475
|
+
search?: string;
|
|
2476
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2477
|
+
filterBy?: string;
|
|
2478
|
+
filterValue?: string;
|
|
2479
|
+
multiFilterMode?: string;
|
|
2480
|
+
filterIn?: any;
|
|
2481
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2482
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2483
|
+
status: 200;
|
|
2484
|
+
data: GroupReadResponse[];
|
|
2485
|
+
} | {
|
|
2486
|
+
status: 403;
|
|
2487
|
+
data: ErrorResponse;
|
|
2488
|
+
} | {
|
|
2489
|
+
status: 500;
|
|
2490
|
+
data: ErrorResponse;
|
|
2491
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
|
|
2492
|
+
size,
|
|
2493
|
+
page,
|
|
2494
|
+
sort,
|
|
2495
|
+
direction,
|
|
2496
|
+
search,
|
|
2497
|
+
filterMode,
|
|
2498
|
+
filterBy,
|
|
2499
|
+
filterValue,
|
|
2500
|
+
multiFilterMode,
|
|
2501
|
+
filterIn
|
|
2502
|
+
}))}`, {
|
|
2503
|
+
...opts
|
|
2504
|
+
}));
|
|
2505
|
+
}
|
|
2506
|
+
/**
|
|
2507
|
+
* Bind users to groups
|
|
2508
|
+
*/
|
|
2509
|
+
export function bindToGroups({ memberId, memberIdsCommonRequest }: {
|
|
2510
|
+
memberId: string;
|
|
2511
|
+
memberIdsCommonRequest: MemberIdsCommonRequest;
|
|
2512
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2513
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2514
|
+
status: 200;
|
|
2515
|
+
data: AccountMemberStackspotIamDto;
|
|
2516
|
+
} | {
|
|
2517
|
+
status: 201;
|
|
2518
|
+
} | {
|
|
2519
|
+
status: 403;
|
|
2520
|
+
data: ErrorResponse;
|
|
2521
|
+
} | {
|
|
2522
|
+
status: 422;
|
|
2523
|
+
data: ErrorResponse;
|
|
2524
|
+
} | {
|
|
2525
|
+
status: 500;
|
|
2526
|
+
data: ErrorResponse;
|
|
2527
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/groups`, oazapfts.json({
|
|
2528
|
+
...opts,
|
|
2529
|
+
method: "POST",
|
|
2530
|
+
body: memberIdsCommonRequest
|
|
2531
|
+
})));
|
|
2532
|
+
}
|
|
2533
|
+
/**
|
|
2534
|
+
* Send Email to reset password
|
|
2535
|
+
*/
|
|
2536
|
+
export function resetPassword({ memberEmailRequest }: {
|
|
2537
|
+
memberEmailRequest: MemberEmailRequest;
|
|
2538
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2539
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2540
|
+
status: 204;
|
|
2541
|
+
} | {
|
|
2542
|
+
status: 403;
|
|
2543
|
+
data: ErrorResponse;
|
|
2544
|
+
} | {
|
|
2545
|
+
status: 422;
|
|
2546
|
+
data: ErrorResponse;
|
|
2547
|
+
} | {
|
|
2548
|
+
status: 500;
|
|
2549
|
+
data: ErrorResponse;
|
|
2550
|
+
}>("/v1/members/reset-password", oazapfts.json({
|
|
2551
|
+
...opts,
|
|
2552
|
+
method: "POST",
|
|
2553
|
+
body: memberEmailRequest
|
|
2554
|
+
})));
|
|
2555
|
+
}
|
|
2556
|
+
/**
|
|
2557
|
+
* Invite new members to account
|
|
2558
|
+
*/
|
|
2559
|
+
export function inviteMembers({ body }: {
|
|
2560
|
+
body: InviteNewMemberRequest[];
|
|
2561
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2562
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2563
|
+
status: 200;
|
|
2564
|
+
data: InviteMembersResponse;
|
|
2565
|
+
} | {
|
|
2566
|
+
status: 403;
|
|
2567
|
+
data: ErrorResponse;
|
|
2568
|
+
} | {
|
|
2569
|
+
status: 422;
|
|
2570
|
+
data: ErrorResponse;
|
|
2571
|
+
} | {
|
|
2572
|
+
status: 500;
|
|
2573
|
+
data: ErrorResponse;
|
|
2574
|
+
}>("/v1/members/invitation", oazapfts.json({
|
|
2575
|
+
...opts,
|
|
2576
|
+
method: "POST",
|
|
2577
|
+
body
|
|
2578
|
+
})));
|
|
2579
|
+
}
|
|
2580
|
+
/**
|
|
2581
|
+
* List user invitations for account
|
|
2582
|
+
*/
|
|
2583
|
+
export function listUserInvitations({ filterBy, filterValue, page, size }: {
|
|
2584
|
+
filterBy?: string;
|
|
2585
|
+
filterValue?: string;
|
|
2586
|
+
page?: string;
|
|
2587
|
+
size?: string;
|
|
2588
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2589
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2590
|
+
status: 200;
|
|
2591
|
+
data: UserInvitationResponse[];
|
|
2592
|
+
} | {
|
|
2593
|
+
status: 400;
|
|
2594
|
+
data: ErrorResponse;
|
|
2595
|
+
} | {
|
|
2596
|
+
status: 403;
|
|
2597
|
+
data: ErrorResponse;
|
|
2598
|
+
} | {
|
|
2599
|
+
status: 500;
|
|
2600
|
+
data: ErrorResponse;
|
|
2601
|
+
}>(`/v1/invitations${QS.query(QS.explode({
|
|
2602
|
+
filterBy,
|
|
2603
|
+
filterValue,
|
|
2604
|
+
page,
|
|
2605
|
+
size
|
|
2606
|
+
}))}`, {
|
|
2607
|
+
...opts
|
|
2608
|
+
}));
|
|
2609
|
+
}
|
|
2610
|
+
/**
|
|
2611
|
+
* Create user invitations for account
|
|
2612
|
+
*/
|
|
2613
|
+
export function createUserInvitation({ createUserInvitationRequest }: {
|
|
2614
|
+
createUserInvitationRequest: CreateUserInvitationRequest;
|
|
2615
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2616
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2617
|
+
status: 200;
|
|
2618
|
+
} | {
|
|
2619
|
+
status: 201;
|
|
2620
|
+
} | {
|
|
2621
|
+
status: 400;
|
|
2622
|
+
data: ErrorResponse;
|
|
2623
|
+
} | {
|
|
2624
|
+
status: 403;
|
|
2625
|
+
data: ErrorResponse;
|
|
2626
|
+
} | {
|
|
2627
|
+
status: 500;
|
|
2628
|
+
data: ErrorResponse;
|
|
2629
|
+
}>("/v1/invitations", oazapfts.json({
|
|
2630
|
+
...opts,
|
|
2631
|
+
method: "POST",
|
|
2632
|
+
body: createUserInvitationRequest
|
|
2633
|
+
})));
|
|
2634
|
+
}
|
|
2635
|
+
/**
|
|
2636
|
+
* Get Groups
|
|
2637
|
+
*/
|
|
2638
|
+
export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2639
|
+
size?: any;
|
|
2640
|
+
page?: any;
|
|
2641
|
+
sort?: string;
|
|
2642
|
+
direction?: "ASC" | "DESC";
|
|
2643
|
+
search?: string;
|
|
2644
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2645
|
+
filterBy?: string;
|
|
2646
|
+
filterValue?: string;
|
|
2647
|
+
multiFilterMode?: string;
|
|
2648
|
+
filterIn?: any;
|
|
2649
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2650
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2651
|
+
status: 200;
|
|
2652
|
+
data: GroupReadResponse[];
|
|
2653
|
+
} | {
|
|
2654
|
+
status: 403;
|
|
2655
|
+
data: ErrorResponse;
|
|
2656
|
+
} | {
|
|
2657
|
+
status: 500;
|
|
2658
|
+
data: ErrorResponse;
|
|
2659
|
+
}>(`/v1/groups${QS.query(QS.explode({
|
|
2660
|
+
size,
|
|
2661
|
+
page,
|
|
2662
|
+
sort,
|
|
2663
|
+
direction,
|
|
2664
|
+
search,
|
|
2665
|
+
filterMode,
|
|
2666
|
+
filterBy,
|
|
2667
|
+
filterValue,
|
|
2668
|
+
multiFilterMode,
|
|
2669
|
+
filterIn
|
|
2670
|
+
}))}`, {
|
|
2671
|
+
...opts
|
|
2672
|
+
}));
|
|
2673
|
+
}
|
|
2674
|
+
/**
|
|
2675
|
+
* Create Group
|
|
2676
|
+
*/
|
|
2677
|
+
export function save({ newGroupRequest }: {
|
|
2678
|
+
newGroupRequest: NewGroupRequest;
|
|
2679
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2680
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2681
|
+
status: 201;
|
|
2682
|
+
data: IamIdResponse;
|
|
2683
|
+
} | {
|
|
2684
|
+
status: 403;
|
|
2685
|
+
data: ErrorResponse;
|
|
2686
|
+
} | {
|
|
2687
|
+
status: 422;
|
|
2688
|
+
data: ErrorResponse;
|
|
2689
|
+
} | {
|
|
2690
|
+
status: 500;
|
|
2691
|
+
data: ErrorResponse;
|
|
2692
|
+
}>("/v1/groups", oazapfts.json({
|
|
2693
|
+
...opts,
|
|
2694
|
+
method: "POST",
|
|
2695
|
+
body: newGroupRequest
|
|
2696
|
+
})));
|
|
2697
|
+
}
|
|
2698
|
+
/**
|
|
2699
|
+
* Get Group members
|
|
2700
|
+
*/
|
|
2701
|
+
export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2702
|
+
groupId: string;
|
|
2703
|
+
size?: any;
|
|
2704
|
+
page?: any;
|
|
2705
|
+
sort?: string;
|
|
2706
|
+
direction?: "ASC" | "DESC";
|
|
2707
|
+
search?: string;
|
|
2708
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2709
|
+
filterBy?: string;
|
|
2710
|
+
filterValue?: string;
|
|
2711
|
+
multiFilterMode?: string;
|
|
2712
|
+
filterIn?: any;
|
|
2713
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2714
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2715
|
+
status: 200;
|
|
2716
|
+
data: RoleResponse[];
|
|
2717
|
+
} | {
|
|
2718
|
+
status: 403;
|
|
2719
|
+
data: ErrorResponse;
|
|
2720
|
+
} | {
|
|
2721
|
+
status: 500;
|
|
2722
|
+
data: ErrorResponse;
|
|
2723
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
|
|
2724
|
+
size,
|
|
2725
|
+
page,
|
|
2726
|
+
sort,
|
|
2727
|
+
direction,
|
|
2728
|
+
search,
|
|
2729
|
+
filterMode,
|
|
2730
|
+
filterBy,
|
|
2731
|
+
filterValue,
|
|
2732
|
+
multiFilterMode,
|
|
2733
|
+
filterIn
|
|
2734
|
+
}))}`, {
|
|
2735
|
+
...opts
|
|
2736
|
+
}));
|
|
2737
|
+
}
|
|
2738
|
+
/**
|
|
2739
|
+
* Bind Group roles
|
|
2740
|
+
*/
|
|
2741
|
+
export function bindRoles({ groupId, groupRoleIdsRequest }: {
|
|
2742
|
+
groupId: string;
|
|
2743
|
+
groupRoleIdsRequest: GroupRoleIdsRequest;
|
|
2744
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2745
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2746
|
+
status: 201;
|
|
2747
|
+
} | {
|
|
2748
|
+
status: 204;
|
|
2749
|
+
} | {
|
|
2750
|
+
status: 403;
|
|
2751
|
+
data: ErrorResponse;
|
|
2752
|
+
} | {
|
|
2753
|
+
status: 422;
|
|
2754
|
+
data: ErrorResponse;
|
|
2755
|
+
} | {
|
|
2756
|
+
status: 500;
|
|
2757
|
+
data: ErrorResponse;
|
|
2758
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/roles`, oazapfts.json({
|
|
2759
|
+
...opts,
|
|
2760
|
+
method: "POST",
|
|
2761
|
+
body: groupRoleIdsRequest
|
|
2762
|
+
})));
|
|
2763
|
+
}
|
|
2764
|
+
/**
|
|
2765
|
+
* Get Group Resources
|
|
2766
|
+
*/
|
|
2767
|
+
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2768
|
+
groupId: string;
|
|
2769
|
+
size?: any;
|
|
2770
|
+
page?: any;
|
|
2771
|
+
sort?: string;
|
|
2772
|
+
direction?: "ASC" | "DESC";
|
|
2773
|
+
search?: string;
|
|
2774
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2775
|
+
filterBy?: string;
|
|
2776
|
+
filterValue?: string;
|
|
2777
|
+
multiFilterMode?: string;
|
|
2778
|
+
filterIn?: any;
|
|
2779
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2780
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2781
|
+
status: 200;
|
|
2782
|
+
data: ResourceResponse[];
|
|
2783
|
+
} | {
|
|
2784
|
+
status: 403;
|
|
2785
|
+
data: ErrorResponse;
|
|
2786
|
+
} | {
|
|
2787
|
+
status: 500;
|
|
2788
|
+
data: ErrorResponse;
|
|
2789
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
2790
|
+
size,
|
|
2791
|
+
page,
|
|
2792
|
+
sort,
|
|
2793
|
+
direction,
|
|
2794
|
+
search,
|
|
2795
|
+
filterMode,
|
|
2796
|
+
filterBy,
|
|
2797
|
+
filterValue,
|
|
2798
|
+
multiFilterMode,
|
|
2799
|
+
filterIn
|
|
2800
|
+
}))}`, {
|
|
2801
|
+
...opts
|
|
2802
|
+
}));
|
|
2803
|
+
}
|
|
2804
|
+
/**
|
|
2805
|
+
* Add Multiple Resources to Group
|
|
2806
|
+
*/
|
|
2807
|
+
export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }: {
|
|
2808
|
+
groupId: string;
|
|
2809
|
+
addResourcesToGroupRequest: AddResourcesToGroupRequest;
|
|
2810
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2811
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2812
|
+
status: 204;
|
|
2813
|
+
} | {
|
|
2814
|
+
status: 403;
|
|
2815
|
+
data: ErrorResponse;
|
|
2816
|
+
} | {
|
|
2817
|
+
status: 500;
|
|
2818
|
+
data: ErrorResponse;
|
|
2819
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/resources`, oazapfts.json({
|
|
2820
|
+
...opts,
|
|
2821
|
+
method: "POST",
|
|
2822
|
+
body: addResourcesToGroupRequest
|
|
2823
|
+
})));
|
|
2824
|
+
}
|
|
2825
|
+
/**
|
|
2826
|
+
* Get Group members
|
|
2827
|
+
*/
|
|
2828
|
+
export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2829
|
+
groupId: string;
|
|
2830
|
+
size?: any;
|
|
2831
|
+
page?: any;
|
|
2832
|
+
sort?: string;
|
|
2833
|
+
direction?: "ASC" | "DESC";
|
|
2834
|
+
search?: string;
|
|
2835
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
2836
|
+
filterBy?: string;
|
|
2837
|
+
filterValue?: string;
|
|
2838
|
+
multiFilterMode?: string;
|
|
2839
|
+
filterIn?: any;
|
|
2840
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2841
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2842
|
+
status: 200;
|
|
2843
|
+
data: ReadGroupMembersResponse[];
|
|
2844
|
+
} | {
|
|
2845
|
+
status: 403;
|
|
2846
|
+
data: ErrorResponse;
|
|
2847
|
+
} | {
|
|
2848
|
+
status: 500;
|
|
2849
|
+
data: ErrorResponse;
|
|
2850
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
|
|
2851
|
+
size,
|
|
2852
|
+
page,
|
|
2853
|
+
sort,
|
|
2854
|
+
direction,
|
|
2855
|
+
search,
|
|
2856
|
+
filterMode,
|
|
2857
|
+
filterBy,
|
|
2858
|
+
filterValue,
|
|
2859
|
+
multiFilterMode,
|
|
2860
|
+
filterIn
|
|
2861
|
+
}))}`, {
|
|
2862
|
+
...opts
|
|
2863
|
+
}));
|
|
2864
|
+
}
|
|
2865
|
+
/**
|
|
2866
|
+
* Bind Group member
|
|
2867
|
+
*/
|
|
2868
|
+
export function bindGroupMembers({ groupId, groupMemberIdsRequest }: {
|
|
2869
|
+
groupId: string;
|
|
2870
|
+
groupMemberIdsRequest: GroupMemberIdsRequest;
|
|
2871
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2872
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2873
|
+
status: 201;
|
|
2874
|
+
} | {
|
|
2875
|
+
status: 204;
|
|
2876
|
+
} | {
|
|
2877
|
+
status: 403;
|
|
2878
|
+
data: ErrorResponse;
|
|
2879
|
+
} | {
|
|
2880
|
+
status: 422;
|
|
2881
|
+
data: ErrorResponse;
|
|
2882
|
+
} | {
|
|
2883
|
+
status: 500;
|
|
2884
|
+
data: ErrorResponse;
|
|
2885
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/members`, oazapfts.json({
|
|
2886
|
+
...opts,
|
|
2887
|
+
method: "POST",
|
|
2888
|
+
body: groupMemberIdsRequest
|
|
2889
|
+
})));
|
|
2890
|
+
}
|
|
2891
|
+
/**
|
|
2892
|
+
* List Feature Flags in an Account
|
|
2893
|
+
*/
|
|
2894
|
+
export function getFeatures(opts?: Oazapfts.RequestOpts) {
|
|
2895
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2896
|
+
status: 200;
|
|
2897
|
+
data: FeatureFlagsResponse[];
|
|
2898
|
+
} | {
|
|
2899
|
+
status: 422;
|
|
2900
|
+
data: ErrorResponse;
|
|
2901
|
+
} | {
|
|
2902
|
+
status: 500;
|
|
2903
|
+
data: FeatureFlagsResponse[];
|
|
2904
|
+
}>("/v1/feature-flags", {
|
|
2905
|
+
...opts
|
|
2906
|
+
}));
|
|
2907
|
+
}
|
|
2908
|
+
/**
|
|
2909
|
+
* Create a Feature Flag
|
|
2910
|
+
*/
|
|
2911
|
+
export function create({ createFeatureFlagRequest }: {
|
|
2912
|
+
createFeatureFlagRequest: CreateFeatureFlagRequest;
|
|
2913
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2914
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2915
|
+
status: 201;
|
|
2916
|
+
} | {
|
|
2917
|
+
status: 400;
|
|
2918
|
+
data: ErrorResponse;
|
|
2919
|
+
} | {
|
|
2920
|
+
status: 422;
|
|
2921
|
+
data: ErrorResponse;
|
|
2922
|
+
} | {
|
|
2923
|
+
status: 500;
|
|
2924
|
+
}>("/v1/feature-flags", oazapfts.json({
|
|
2925
|
+
...opts,
|
|
2926
|
+
method: "POST",
|
|
2927
|
+
body: createFeatureFlagRequest
|
|
2928
|
+
})));
|
|
2929
|
+
}
|
|
2930
|
+
/**
|
|
2931
|
+
* Send Welcome Email
|
|
2932
|
+
*/
|
|
2933
|
+
export function sendWelcomeEmail({ welcomeEmailRequest }: {
|
|
2934
|
+
welcomeEmailRequest: WelcomeEmailRequest;
|
|
2935
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2936
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2937
|
+
status: 204;
|
|
2938
|
+
} | {
|
|
2939
|
+
status: 400;
|
|
2940
|
+
data: ErrorResponse;
|
|
2941
|
+
} | {
|
|
2942
|
+
status: 500;
|
|
2943
|
+
data: ErrorResponse;
|
|
2944
|
+
}>("/v1/emails/welcome", oazapfts.json({
|
|
2945
|
+
...opts,
|
|
2946
|
+
method: "POST",
|
|
2947
|
+
body: welcomeEmailRequest
|
|
2948
|
+
})));
|
|
2949
|
+
}
|
|
2950
|
+
/**
|
|
2951
|
+
* Send Download Email
|
|
2952
|
+
*/
|
|
2953
|
+
export function sendDownloadEmail(opts?: Oazapfts.RequestOpts) {
|
|
2954
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2955
|
+
status: 204;
|
|
2956
|
+
} | {
|
|
2957
|
+
status: 400;
|
|
2958
|
+
data: ErrorResponse;
|
|
2959
|
+
} | {
|
|
2960
|
+
status: 403;
|
|
2961
|
+
data: ErrorResponse;
|
|
2962
|
+
} | {
|
|
2963
|
+
status: 500;
|
|
2964
|
+
data: ErrorResponse;
|
|
2965
|
+
}>("/v1/emails/download", {
|
|
2966
|
+
...opts,
|
|
2967
|
+
method: "POST"
|
|
2968
|
+
}));
|
|
2969
|
+
}
|
|
2970
|
+
/**
|
|
2971
|
+
* Send contact email
|
|
2972
|
+
*/
|
|
2973
|
+
export function sendContactEmail({ contactEmailRequest }: {
|
|
2974
|
+
contactEmailRequest: ContactEmailRequest;
|
|
2975
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2976
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2977
|
+
status: 204;
|
|
2978
|
+
} | {
|
|
2979
|
+
status: 422;
|
|
2980
|
+
data: ErrorResponse;
|
|
2981
|
+
} | {
|
|
2982
|
+
status: 500;
|
|
2983
|
+
data: ErrorResponse;
|
|
2984
|
+
}>("/v1/emails/contact", oazapfts.json({
|
|
2985
|
+
...opts,
|
|
2986
|
+
method: "POST",
|
|
2987
|
+
body: contactEmailRequest
|
|
2988
|
+
})));
|
|
2989
|
+
}
|
|
2990
|
+
/**
|
|
2991
|
+
* Switch user to account passed in the body
|
|
2992
|
+
*/
|
|
2993
|
+
export function switchAccount({ switchAccountRequest }: {
|
|
2994
|
+
switchAccountRequest: SwitchAccountRequest;
|
|
2995
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2996
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2997
|
+
status: 200;
|
|
2998
|
+
data: ExchangeAccountResponse;
|
|
2999
|
+
} | {
|
|
3000
|
+
status: 400;
|
|
3001
|
+
data: ErrorResponse;
|
|
3002
|
+
} | {
|
|
3003
|
+
status: 403;
|
|
3004
|
+
data: ErrorResponse;
|
|
3005
|
+
} | {
|
|
3006
|
+
status: 404;
|
|
3007
|
+
data: ErrorResponse;
|
|
3008
|
+
} | {
|
|
3009
|
+
status: 500;
|
|
3010
|
+
data: ErrorResponse;
|
|
3011
|
+
}>("/v1/authentication/switch-account", oazapfts.json({
|
|
3012
|
+
...opts,
|
|
3013
|
+
method: "POST",
|
|
3014
|
+
body: switchAccountRequest
|
|
3015
|
+
})));
|
|
3016
|
+
}
|
|
3017
|
+
/**
|
|
3018
|
+
* Get credentials from personal service client (create if not exists one to the logged user).
|
|
3019
|
+
*/
|
|
3020
|
+
export function getPersonalClientCredentials(opts?: Oazapfts.RequestOpts) {
|
|
3021
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3022
|
+
status: 200;
|
|
3023
|
+
data: PersonalClientCredentialsResponse;
|
|
3024
|
+
} | {
|
|
3025
|
+
status: 403;
|
|
3026
|
+
data: ErrorResponse;
|
|
3027
|
+
} | {
|
|
3028
|
+
status: 500;
|
|
3029
|
+
data: ErrorResponse;
|
|
3030
|
+
}>("/v1/authentication/personal-client-credentials", {
|
|
3031
|
+
...opts,
|
|
3032
|
+
method: "POST"
|
|
3033
|
+
}));
|
|
3034
|
+
}
|
|
3035
|
+
/**
|
|
3036
|
+
* Get an Access Token generated With Audience on logged user behalf, since previously authorized.
|
|
3037
|
+
*/
|
|
3038
|
+
export function getPersonalAccessToken1({ apiAuthorization, generateTokenFromPersonalAccountRequest }: {
|
|
3039
|
+
apiAuthorization: string;
|
|
3040
|
+
generateTokenFromPersonalAccountRequest?: GenerateTokenFromPersonalAccountRequest;
|
|
3041
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3042
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3043
|
+
status: 200;
|
|
3044
|
+
data: PersonalAccessTokenResponse;
|
|
3045
|
+
} | {
|
|
3046
|
+
status: 400;
|
|
3047
|
+
data: ErrorResponse;
|
|
3048
|
+
} | {
|
|
3049
|
+
status: 403;
|
|
3050
|
+
data: ErrorResponse;
|
|
3051
|
+
} | {
|
|
3052
|
+
status: 404;
|
|
3053
|
+
data: ErrorResponse;
|
|
3054
|
+
} | {
|
|
3055
|
+
status: 500;
|
|
3056
|
+
data: ErrorResponse;
|
|
3057
|
+
}>("/v1/authentication/personal-access-token", oazapfts.json({
|
|
3058
|
+
...opts,
|
|
3059
|
+
method: "POST",
|
|
3060
|
+
body: generateTokenFromPersonalAccountRequest,
|
|
3061
|
+
headers: oazapfts.mergeHeaders(opts?.headers, {
|
|
3062
|
+
"Api-Authorization": apiAuthorization
|
|
3063
|
+
})
|
|
3064
|
+
})));
|
|
3065
|
+
}
|
|
3066
|
+
/**
|
|
3067
|
+
* Disable client that generates Personal Access Tokens.
|
|
3068
|
+
*/
|
|
3069
|
+
export function disablePersonalAccessTokenGeneration(opts?: Oazapfts.RequestOpts) {
|
|
3070
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3071
|
+
status: 204;
|
|
3072
|
+
} | {
|
|
3073
|
+
status: 403;
|
|
3074
|
+
data: ErrorResponse;
|
|
3075
|
+
} | {
|
|
3076
|
+
status: 500;
|
|
3077
|
+
data: ErrorResponse;
|
|
3078
|
+
}>("/v1/authentication/personal-access-token/unauthorize", {
|
|
3079
|
+
...opts,
|
|
3080
|
+
method: "POST"
|
|
3081
|
+
}));
|
|
3082
|
+
}
|
|
3083
|
+
/**
|
|
3084
|
+
* Verify if exists a client created (authorized) to generate Access Token on logged user behalf.
|
|
3085
|
+
*/
|
|
3086
|
+
export function personalAccessTokenAuthorization(opts?: Oazapfts.RequestOpts) {
|
|
3087
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3088
|
+
status: 200;
|
|
3089
|
+
} | {
|
|
3090
|
+
status: 403;
|
|
3091
|
+
data: ErrorResponse;
|
|
3092
|
+
} | {
|
|
3093
|
+
status: 404;
|
|
3094
|
+
data: ErrorResponse;
|
|
3095
|
+
} | {
|
|
3096
|
+
status: 500;
|
|
3097
|
+
data: ErrorResponse;
|
|
3098
|
+
}>("/v1/authentication/personal-access-token/authorize", {
|
|
3099
|
+
...opts
|
|
3100
|
+
}));
|
|
3101
|
+
}
|
|
3102
|
+
/**
|
|
3103
|
+
* Authorize creating a client to generate Personal Access Tokens on your behalf.
|
|
3104
|
+
*/
|
|
3105
|
+
export function createPersonalAccessToken(opts?: Oazapfts.RequestOpts) {
|
|
3106
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3107
|
+
status: 204;
|
|
3108
|
+
} | {
|
|
3109
|
+
status: 400;
|
|
3110
|
+
data: ErrorResponse;
|
|
3111
|
+
} | {
|
|
3112
|
+
status: 403;
|
|
3113
|
+
data: ErrorResponse;
|
|
3114
|
+
} | {
|
|
3115
|
+
status: 422;
|
|
3116
|
+
data: ErrorResponse;
|
|
3117
|
+
} | {
|
|
3118
|
+
status: 500;
|
|
3119
|
+
data: ErrorResponse;
|
|
3120
|
+
}>("/v1/authentication/personal-access-token/authorize", {
|
|
3121
|
+
...opts,
|
|
3122
|
+
method: "POST"
|
|
3123
|
+
}));
|
|
3124
|
+
}
|
|
3125
|
+
/**
|
|
3126
|
+
* Get an Access Token generated on logged user's service account behalf, since previously authorized.
|
|
3127
|
+
*/
|
|
3128
|
+
export function getPersonalAccessTokenFromServiceAccountOnly(opts?: Oazapfts.RequestOpts) {
|
|
3129
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3130
|
+
status: 200;
|
|
3131
|
+
data: PersonalAccessTokenResponse;
|
|
3132
|
+
} | {
|
|
3133
|
+
status: 400;
|
|
3134
|
+
data: ErrorResponse;
|
|
3135
|
+
} | {
|
|
3136
|
+
status: 403;
|
|
3137
|
+
data: ErrorResponse;
|
|
3138
|
+
} | {
|
|
3139
|
+
status: 404;
|
|
3140
|
+
data: ErrorResponse;
|
|
3141
|
+
} | {
|
|
3142
|
+
status: 500;
|
|
3143
|
+
data: ErrorResponse;
|
|
3144
|
+
}>("/v1/authentication/personal-access-token-sa", {
|
|
3145
|
+
...opts,
|
|
3146
|
+
method: "POST"
|
|
3147
|
+
}));
|
|
3148
|
+
}
|
|
3149
|
+
/**
|
|
3150
|
+
* Generate device code.
|
|
3151
|
+
*/
|
|
3152
|
+
export function deviceCode({ email, freemiumAccess, codeChallenge, body }: {
|
|
3153
|
+
email: string;
|
|
3154
|
+
freemiumAccess?: boolean;
|
|
3155
|
+
codeChallenge: string;
|
|
3156
|
+
body?: Blob;
|
|
3157
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3158
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3159
|
+
status: 200;
|
|
3160
|
+
data: DeviceCodeResponse;
|
|
3161
|
+
} | {
|
|
3162
|
+
status: 400;
|
|
3163
|
+
data: ErrorResponse;
|
|
3164
|
+
} | {
|
|
3165
|
+
status: 403;
|
|
3166
|
+
data: ErrorResponse;
|
|
3167
|
+
} | {
|
|
3168
|
+
status: 500;
|
|
3169
|
+
data: ErrorResponse;
|
|
3170
|
+
}>(`/v1/authentication/device-code${QS.query(QS.explode({
|
|
3171
|
+
email,
|
|
3172
|
+
freemium_access: freemiumAccess,
|
|
3173
|
+
code_challenge: codeChallenge
|
|
3174
|
+
}))}`, oazapfts.form({
|
|
3175
|
+
...opts,
|
|
3176
|
+
method: "POST",
|
|
3177
|
+
body
|
|
3178
|
+
})));
|
|
3179
|
+
}
|
|
3180
|
+
/**
|
|
3181
|
+
* Find accounts
|
|
3182
|
+
*/
|
|
3183
|
+
export function getAccounts1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3184
|
+
size?: any;
|
|
3185
|
+
page?: any;
|
|
3186
|
+
sort?: string;
|
|
3187
|
+
direction?: "ASC" | "DESC";
|
|
3188
|
+
search?: string;
|
|
3189
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
3190
|
+
filterBy?: string;
|
|
3191
|
+
filterValue?: string;
|
|
3192
|
+
multiFilterMode?: string;
|
|
3193
|
+
filterIn?: any;
|
|
3194
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3195
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3196
|
+
status: 200;
|
|
3197
|
+
data: PageResponseAccountResponse;
|
|
3198
|
+
} | {
|
|
3199
|
+
status: 400;
|
|
3200
|
+
data: ErrorResponse;
|
|
3201
|
+
} | {
|
|
3202
|
+
status: 500;
|
|
3203
|
+
data: ErrorResponse;
|
|
3204
|
+
}>(`/v1/admin/accounts${QS.query(QS.explode({
|
|
3205
|
+
size,
|
|
3206
|
+
page,
|
|
3207
|
+
sort,
|
|
3208
|
+
direction,
|
|
3209
|
+
search,
|
|
3210
|
+
filterMode,
|
|
3211
|
+
filterBy,
|
|
3212
|
+
filterValue,
|
|
3213
|
+
multiFilterMode,
|
|
3214
|
+
filterIn
|
|
3215
|
+
}))}`, {
|
|
3216
|
+
...opts
|
|
3217
|
+
}));
|
|
3218
|
+
}
|
|
3219
|
+
/**
|
|
3220
|
+
* Create an Enterprise Account Order
|
|
3221
|
+
*/
|
|
3222
|
+
export function create1({ createAccountOrderRequest }: {
|
|
3223
|
+
createAccountOrderRequest: CreateAccountOrderRequest;
|
|
3224
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3225
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3226
|
+
status: 202;
|
|
3227
|
+
} | {
|
|
3228
|
+
status: 400;
|
|
3229
|
+
data: ErrorResponse;
|
|
3230
|
+
} | {
|
|
3231
|
+
status: 422;
|
|
3232
|
+
data: ErrorResponse;
|
|
3233
|
+
} | {
|
|
3234
|
+
status: 500;
|
|
3235
|
+
}>("/v1/admin/accounts", oazapfts.json({
|
|
3236
|
+
...opts,
|
|
3237
|
+
method: "POST",
|
|
3238
|
+
body: createAccountOrderRequest
|
|
3239
|
+
})));
|
|
3240
|
+
}
|
|
3241
|
+
/**
|
|
3242
|
+
* Get All SSO Group Mapping
|
|
3243
|
+
*/
|
|
3244
|
+
export function getAllGroupMapping({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3245
|
+
id: string;
|
|
3246
|
+
size?: any;
|
|
3247
|
+
page?: any;
|
|
3248
|
+
sort?: string;
|
|
3249
|
+
direction?: "ASC" | "DESC";
|
|
3250
|
+
search?: string;
|
|
3251
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
3252
|
+
filterBy?: string;
|
|
3253
|
+
filterValue?: string;
|
|
3254
|
+
multiFilterMode?: string;
|
|
3255
|
+
filterIn?: any;
|
|
3256
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3257
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3258
|
+
status: 200;
|
|
3259
|
+
data: PageResponseAccountSsoGroupMappingResponse;
|
|
3260
|
+
} | {
|
|
3261
|
+
status: 500;
|
|
3262
|
+
data: ErrorResponse;
|
|
3263
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping${QS.query(QS.explode({
|
|
3264
|
+
size,
|
|
3265
|
+
page,
|
|
3266
|
+
sort,
|
|
3267
|
+
direction,
|
|
3268
|
+
search,
|
|
3269
|
+
filterMode,
|
|
3270
|
+
filterBy,
|
|
3271
|
+
filterValue,
|
|
3272
|
+
multiFilterMode,
|
|
3273
|
+
filterIn
|
|
3274
|
+
}))}`, {
|
|
3275
|
+
...opts
|
|
3276
|
+
}));
|
|
3277
|
+
}
|
|
3278
|
+
/**
|
|
3279
|
+
* Create SSO Group Mapping
|
|
3280
|
+
*/
|
|
3281
|
+
export function createGroupMapping({ id, accountGroupMappingCreateRequest }: {
|
|
3282
|
+
id: string;
|
|
3283
|
+
accountGroupMappingCreateRequest: AccountGroupMappingCreateRequest;
|
|
3284
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3285
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3286
|
+
status: 201;
|
|
3287
|
+
} | {
|
|
3288
|
+
status: 400;
|
|
3289
|
+
data: ErrorResponse;
|
|
3290
|
+
} | {
|
|
3291
|
+
status: 500;
|
|
3292
|
+
data: ErrorResponse;
|
|
3293
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/group-mapping`, oazapfts.json({
|
|
3294
|
+
...opts,
|
|
3295
|
+
method: "POST",
|
|
3296
|
+
body: accountGroupMappingCreateRequest
|
|
3297
|
+
})));
|
|
3298
|
+
}
|
|
3299
|
+
/**
|
|
3300
|
+
* Configure new SSO in account
|
|
3301
|
+
*/
|
|
3302
|
+
export function ssoConfigure({ protocol, accountSsoCreateRequest }: {
|
|
3303
|
+
protocol: "SAML" | "OPENID";
|
|
3304
|
+
accountSsoCreateRequest: AccountSsoCreateRequest;
|
|
3305
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3306
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3307
|
+
status: 204;
|
|
3308
|
+
data: SsoIdResponse;
|
|
3309
|
+
} | {
|
|
3310
|
+
status: 400;
|
|
3311
|
+
data: ErrorResponse;
|
|
3312
|
+
} | {
|
|
3313
|
+
status: 500;
|
|
3314
|
+
data: ErrorResponse;
|
|
3315
|
+
}>(`/v1/accounts/sso/protocol/${encodeURIComponent(protocol)}`, oazapfts.json({
|
|
3316
|
+
...opts,
|
|
3317
|
+
method: "POST",
|
|
3318
|
+
body: accountSsoCreateRequest
|
|
3319
|
+
})));
|
|
3320
|
+
}
|
|
3321
|
+
/**
|
|
3322
|
+
* Parse SSO configuration file
|
|
3323
|
+
*/
|
|
3324
|
+
export function ssoParseConfigurationFile({ protocol, file }: {
|
|
3325
|
+
protocol: string;
|
|
3326
|
+
file: Blob;
|
|
3327
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3328
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3329
|
+
status: 200;
|
|
3330
|
+
data: AccountSsoParserResponse;
|
|
3331
|
+
} | {
|
|
3332
|
+
status: 400;
|
|
3333
|
+
data: ErrorResponse;
|
|
3334
|
+
} | {
|
|
3335
|
+
status: 500;
|
|
3336
|
+
data: ErrorResponse;
|
|
3337
|
+
}>(`/v1/accounts/sso/protocol/${encodeURIComponent(protocol)}/parser${QS.query(QS.explode({
|
|
3338
|
+
file
|
|
3339
|
+
}))}`, {
|
|
3340
|
+
...opts,
|
|
3341
|
+
method: "POST"
|
|
3342
|
+
}));
|
|
3343
|
+
}
|
|
3344
|
+
/**
|
|
3345
|
+
* Create Account Freemium
|
|
3346
|
+
*/
|
|
3347
|
+
export function createAccountFreemium({ accountFreemiumCreateRequest }: {
|
|
3348
|
+
accountFreemiumCreateRequest: AccountFreemiumCreateRequest;
|
|
3349
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3350
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3351
|
+
status: 201;
|
|
3352
|
+
} | {
|
|
3353
|
+
status: 400;
|
|
3354
|
+
data: ErrorResponse;
|
|
3355
|
+
} | {
|
|
3356
|
+
status: 403;
|
|
3357
|
+
data: ErrorResponse;
|
|
3358
|
+
} | {
|
|
3359
|
+
status: 422;
|
|
3360
|
+
data: ErrorResponse;
|
|
3361
|
+
} | {
|
|
3362
|
+
status: 500;
|
|
3363
|
+
data: ErrorResponse;
|
|
3364
|
+
}>("/v1/accounts/freemium", oazapfts.json({
|
|
3365
|
+
...opts,
|
|
3366
|
+
method: "POST",
|
|
3367
|
+
body: accountFreemiumCreateRequest
|
|
3368
|
+
})));
|
|
3369
|
+
}
|
|
3370
|
+
/**
|
|
3371
|
+
* Adding Collaborator Account
|
|
3372
|
+
*/
|
|
3373
|
+
export function addCollaborator({ accountCollaboratorRequest }: {
|
|
3374
|
+
accountCollaboratorRequest: AccountCollaboratorRequest;
|
|
3375
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3376
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3377
|
+
status: 204;
|
|
3378
|
+
} | {
|
|
3379
|
+
status: 400;
|
|
3380
|
+
data: ErrorResponse;
|
|
3381
|
+
} | {
|
|
3382
|
+
status: 403;
|
|
3383
|
+
data: ErrorResponse;
|
|
3384
|
+
} | {
|
|
3385
|
+
status: 422;
|
|
3386
|
+
data: ErrorResponse;
|
|
3387
|
+
} | {
|
|
3388
|
+
status: 500;
|
|
3389
|
+
data: ErrorResponse;
|
|
3390
|
+
}>("/v1/accounts/freemium/collaborators", oazapfts.json({
|
|
3391
|
+
...opts,
|
|
3392
|
+
method: "POST",
|
|
3393
|
+
body: accountCollaboratorRequest
|
|
3394
|
+
})));
|
|
3395
|
+
}
|
|
3396
|
+
/**
|
|
3397
|
+
* Create an Account Order for Partner
|
|
3398
|
+
*/
|
|
3399
|
+
export function createPartner({ createAccountPartnerOrderRequest }: {
|
|
3400
|
+
createAccountPartnerOrderRequest: CreateAccountPartnerOrderRequest;
|
|
3401
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3402
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3403
|
+
status: 202;
|
|
3404
|
+
data: IdResponse;
|
|
3405
|
+
} | {
|
|
3406
|
+
status: 400;
|
|
3407
|
+
data: ErrorResponse;
|
|
3408
|
+
} | {
|
|
3409
|
+
status: 422;
|
|
3410
|
+
data: ErrorResponse;
|
|
3411
|
+
} | {
|
|
3412
|
+
status: 500;
|
|
3413
|
+
data: IdResponse;
|
|
3414
|
+
}>("/v1/account-orders/partners", oazapfts.json({
|
|
3415
|
+
...opts,
|
|
3416
|
+
method: "POST",
|
|
3417
|
+
body: createAccountPartnerOrderRequest
|
|
3418
|
+
})));
|
|
3419
|
+
}
|
|
3420
|
+
/**
|
|
3421
|
+
* Validate new Partner account data
|
|
3422
|
+
*/
|
|
3423
|
+
export function validateNewPartnerData({ validateAccountPartnerDataRequest }: {
|
|
3424
|
+
validateAccountPartnerDataRequest: ValidateAccountPartnerDataRequest;
|
|
3425
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3426
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3427
|
+
status: 204;
|
|
3428
|
+
} | {
|
|
3429
|
+
status: 403;
|
|
3430
|
+
data: ErrorResponse;
|
|
3431
|
+
} | {
|
|
3432
|
+
status: 422;
|
|
3433
|
+
data: ErrorResponse;
|
|
3434
|
+
} | {
|
|
3435
|
+
status: 500;
|
|
3436
|
+
}>("/v1/account-orders/partners/validations/creation-data", oazapfts.json({
|
|
3437
|
+
...opts,
|
|
3438
|
+
method: "POST",
|
|
3439
|
+
body: validateAccountPartnerDataRequest
|
|
3440
|
+
})));
|
|
3441
|
+
}
|
|
3442
|
+
/**
|
|
3443
|
+
* Rotate Service Credential Secret v2
|
|
3444
|
+
*/
|
|
3445
|
+
export function rotateServiceCredentialSecret({ id, rotateServiceCredentialSecretRequest }: {
|
|
3446
|
+
id: string;
|
|
3447
|
+
rotateServiceCredentialSecretRequest: RotateServiceCredentialSecretRequest;
|
|
3448
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3449
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3450
|
+
status: 200;
|
|
3451
|
+
data: RotateServiceCredentialSecretResponse;
|
|
3452
|
+
} | {
|
|
3453
|
+
status: 204;
|
|
3454
|
+
data: RotateServiceCredentialSecretResponse;
|
|
3455
|
+
} | {
|
|
3456
|
+
status: 403;
|
|
3457
|
+
data: ErrorResponse;
|
|
3458
|
+
} | {
|
|
3459
|
+
status: 500;
|
|
3460
|
+
data: ErrorResponse;
|
|
3461
|
+
}>(`/v2/service-credentials/${encodeURIComponent(id)}/secret`, oazapfts.json({
|
|
3462
|
+
...opts,
|
|
3463
|
+
method: "PATCH",
|
|
3464
|
+
body: rotateServiceCredentialSecretRequest
|
|
3465
|
+
})));
|
|
3466
|
+
}
|
|
3467
|
+
/**
|
|
3468
|
+
* Revoke Service Credential v2
|
|
3469
|
+
*/
|
|
3470
|
+
export function revokeServiceCredential({ id }: {
|
|
3471
|
+
id: string;
|
|
3472
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3473
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3474
|
+
status: 204;
|
|
3475
|
+
} | {
|
|
3476
|
+
status: 403;
|
|
3477
|
+
data: ErrorResponse;
|
|
3478
|
+
} | {
|
|
3479
|
+
status: 500;
|
|
3480
|
+
data: ErrorResponse;
|
|
3481
|
+
}>(`/v2/service-credentials/${encodeURIComponent(id)}/revoke`, {
|
|
3482
|
+
...opts,
|
|
3483
|
+
method: "PATCH"
|
|
3484
|
+
}));
|
|
3485
|
+
}
|
|
3486
|
+
/**
|
|
3487
|
+
* Associate Group to Service Credential
|
|
3488
|
+
*/
|
|
3489
|
+
export function associateGroupToServiceCredential({ id, serviceCredentialAssociateGroupRequest }: {
|
|
3490
|
+
id: string;
|
|
3491
|
+
serviceCredentialAssociateGroupRequest: ServiceCredentialAssociateGroupRequest;
|
|
3492
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3493
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3494
|
+
status: 204;
|
|
3495
|
+
} | {
|
|
3496
|
+
status: 403;
|
|
3497
|
+
data: ErrorResponse;
|
|
3498
|
+
} | {
|
|
3499
|
+
status: 500;
|
|
3500
|
+
data: ErrorResponse;
|
|
3501
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}/teams`, oazapfts.json({
|
|
3502
|
+
...opts,
|
|
3503
|
+
method: "PATCH",
|
|
3504
|
+
body: serviceCredentialAssociateGroupRequest
|
|
3505
|
+
})));
|
|
3506
|
+
}
|
|
3507
|
+
/**
|
|
3508
|
+
* Revoke Service Credential
|
|
3509
|
+
*/
|
|
3510
|
+
export function revokeServiceCredential1({ id }: {
|
|
3511
|
+
id: string;
|
|
3512
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3513
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3514
|
+
status: 204;
|
|
3515
|
+
} | {
|
|
3516
|
+
status: 403;
|
|
3517
|
+
data: ErrorResponse;
|
|
3518
|
+
} | {
|
|
3519
|
+
status: 500;
|
|
3520
|
+
data: ErrorResponse;
|
|
3521
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}/revocation`, {
|
|
3522
|
+
...opts,
|
|
3523
|
+
method: "PATCH"
|
|
3524
|
+
}));
|
|
3525
|
+
}
|
|
3526
|
+
/**
|
|
3527
|
+
* Delete a member permissions
|
|
3528
|
+
*/
|
|
3529
|
+
export function deleteMemberPermissions({ memberId, deleteMemberPermissionsRequest }: {
|
|
3530
|
+
memberId: string;
|
|
3531
|
+
deleteMemberPermissionsRequest: DeleteMemberPermissionsRequest;
|
|
3532
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3533
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3534
|
+
status: 200;
|
|
3535
|
+
} | {
|
|
3536
|
+
status: 403;
|
|
3537
|
+
data: ErrorResponse;
|
|
3538
|
+
} | {
|
|
3539
|
+
status: 404;
|
|
3540
|
+
data: ErrorResponse;
|
|
3541
|
+
} | {
|
|
3542
|
+
status: 500;
|
|
3543
|
+
data: ErrorResponse;
|
|
3544
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/permissions`, oazapfts.json({
|
|
3545
|
+
...opts,
|
|
3546
|
+
method: "DELETE",
|
|
3547
|
+
body: deleteMemberPermissionsRequest
|
|
3548
|
+
})));
|
|
3549
|
+
}
|
|
3550
|
+
/**
|
|
3551
|
+
* Update member permissions
|
|
3552
|
+
*/
|
|
3553
|
+
export function updateMemberPermissions({ memberId, updateMemberPermissionsRequest }: {
|
|
3554
|
+
memberId: string;
|
|
3555
|
+
updateMemberPermissionsRequest: UpdateMemberPermissionsRequest;
|
|
3556
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3557
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3558
|
+
status: 200;
|
|
3559
|
+
} | {
|
|
3560
|
+
status: 403;
|
|
3561
|
+
data: ErrorResponse;
|
|
3562
|
+
} | {
|
|
3563
|
+
status: 404;
|
|
3564
|
+
data: ErrorResponse;
|
|
3565
|
+
} | {
|
|
3566
|
+
status: 500;
|
|
3567
|
+
data: ErrorResponse;
|
|
3568
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/permissions`, oazapfts.json({
|
|
3569
|
+
...opts,
|
|
3570
|
+
method: "PATCH",
|
|
3571
|
+
body: updateMemberPermissionsRequest
|
|
3572
|
+
})));
|
|
3573
|
+
}
|
|
3574
|
+
/**
|
|
3575
|
+
* Get All Fido credentials for given user
|
|
3576
|
+
*/
|
|
3577
|
+
export function getAllMemberFidoCredentials({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
3578
|
+
memberId: string;
|
|
3579
|
+
size?: any;
|
|
3580
|
+
page?: any;
|
|
3581
|
+
sort?: string;
|
|
3582
|
+
direction?: "ASC" | "DESC";
|
|
3583
|
+
search?: string;
|
|
3584
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
3585
|
+
filterBy?: string;
|
|
3586
|
+
filterValue?: string;
|
|
3587
|
+
multiFilterMode?: string;
|
|
3588
|
+
filterIn?: any;
|
|
3589
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3590
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3591
|
+
status: 200;
|
|
3592
|
+
data: MemberCredentialsListResponse;
|
|
3593
|
+
} | {
|
|
3594
|
+
status: 400;
|
|
3595
|
+
data: ErrorResponse;
|
|
3596
|
+
} | {
|
|
3597
|
+
status: 404;
|
|
3598
|
+
data: ErrorResponse;
|
|
3599
|
+
} | {
|
|
3600
|
+
status: 500;
|
|
3601
|
+
data: ErrorResponse;
|
|
3602
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/fido-credentials${QS.query(QS.explode({
|
|
3603
|
+
size,
|
|
3604
|
+
page,
|
|
3605
|
+
sort,
|
|
3606
|
+
direction,
|
|
3607
|
+
search,
|
|
3608
|
+
filterMode,
|
|
3609
|
+
filterBy,
|
|
3610
|
+
filterValue,
|
|
3611
|
+
multiFilterMode,
|
|
3612
|
+
filterIn
|
|
3613
|
+
}))}`, {
|
|
3614
|
+
...opts
|
|
3615
|
+
}));
|
|
3616
|
+
}
|
|
3617
|
+
/**
|
|
3618
|
+
* Disables Fido credentials for given user
|
|
3619
|
+
*/
|
|
3620
|
+
export function deactivateFidoCredentials({ memberId }: {
|
|
3621
|
+
memberId: string;
|
|
3622
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3623
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3624
|
+
status: 204;
|
|
3625
|
+
} | {
|
|
3626
|
+
status: 400;
|
|
3627
|
+
data: ErrorResponse;
|
|
3628
|
+
} | {
|
|
3629
|
+
status: 404;
|
|
3630
|
+
data: ErrorResponse;
|
|
3631
|
+
} | {
|
|
3632
|
+
status: 500;
|
|
3633
|
+
data: ErrorResponse;
|
|
3634
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/fido-credentials`, {
|
|
3635
|
+
...opts,
|
|
3636
|
+
method: "DELETE"
|
|
3637
|
+
}));
|
|
3638
|
+
}
|
|
3639
|
+
/**
|
|
3640
|
+
* Enable Fido credentials for given user
|
|
3641
|
+
*/
|
|
3642
|
+
export function enableFidoCredentials({ memberId }: {
|
|
3643
|
+
memberId: string;
|
|
3644
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3645
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3646
|
+
status: 204;
|
|
3647
|
+
} | {
|
|
3648
|
+
status: 400;
|
|
3649
|
+
data: ErrorResponse;
|
|
3650
|
+
} | {
|
|
3651
|
+
status: 404;
|
|
3652
|
+
data: ErrorResponse;
|
|
3653
|
+
} | {
|
|
3654
|
+
status: 500;
|
|
3655
|
+
data: ErrorResponse;
|
|
3656
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/fido-credentials`, {
|
|
3657
|
+
...opts,
|
|
3658
|
+
method: "PATCH"
|
|
3659
|
+
}));
|
|
3660
|
+
}
|
|
3661
|
+
/**
|
|
3662
|
+
* Revoke user invitation
|
|
3663
|
+
*/
|
|
3664
|
+
export function cancelUserInvitation({ id }: {
|
|
3665
|
+
id: string;
|
|
3666
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3667
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3668
|
+
status: 200;
|
|
3669
|
+
} | {
|
|
3670
|
+
status: 403;
|
|
3671
|
+
data: ErrorResponse;
|
|
3672
|
+
} | {
|
|
3673
|
+
status: 404;
|
|
3674
|
+
data: ErrorResponse;
|
|
3675
|
+
} | {
|
|
3676
|
+
status: 409;
|
|
3677
|
+
data: ErrorResponse;
|
|
3678
|
+
} | {
|
|
3679
|
+
status: 500;
|
|
3680
|
+
data: ErrorResponse;
|
|
3681
|
+
}>(`/v1/invitations/${encodeURIComponent(id)}`, {
|
|
3682
|
+
...opts,
|
|
3683
|
+
method: "DELETE"
|
|
3684
|
+
}));
|
|
3685
|
+
}
|
|
3686
|
+
/**
|
|
3687
|
+
* Resend user invitation
|
|
3688
|
+
*/
|
|
3689
|
+
export function resendUserInvitation({ id }: {
|
|
3690
|
+
id: string;
|
|
3691
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3692
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3693
|
+
status: 200;
|
|
3694
|
+
} | {
|
|
3695
|
+
status: 403;
|
|
3696
|
+
data: ErrorResponse;
|
|
3697
|
+
} | {
|
|
3698
|
+
status: 404;
|
|
3699
|
+
data: ErrorResponse;
|
|
3700
|
+
} | {
|
|
3701
|
+
status: 409;
|
|
3702
|
+
data: ErrorResponse;
|
|
3703
|
+
} | {
|
|
3704
|
+
status: 429;
|
|
3705
|
+
data: ErrorResponse;
|
|
3706
|
+
} | {
|
|
3707
|
+
status: 500;
|
|
3708
|
+
data: ErrorResponse;
|
|
3709
|
+
}>(`/v1/invitations/${encodeURIComponent(id)}`, {
|
|
3710
|
+
...opts,
|
|
3711
|
+
method: "PATCH"
|
|
3712
|
+
}));
|
|
3713
|
+
}
|
|
3714
|
+
/**
|
|
3715
|
+
* Get Group by ID
|
|
3716
|
+
*/
|
|
3717
|
+
export function getGroupById({ groupId }: {
|
|
3718
|
+
groupId: string;
|
|
3719
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3720
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3721
|
+
status: 200;
|
|
3722
|
+
data: GroupReadDetailResponse;
|
|
3723
|
+
} | {
|
|
3724
|
+
status: 403;
|
|
3725
|
+
data: ErrorResponse;
|
|
3726
|
+
} | {
|
|
3727
|
+
status: 404;
|
|
3728
|
+
data: ErrorResponse;
|
|
3729
|
+
} | {
|
|
3730
|
+
status: 500;
|
|
3731
|
+
data: ErrorResponse;
|
|
3732
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}`, {
|
|
3733
|
+
...opts
|
|
3734
|
+
}));
|
|
3735
|
+
}
|
|
3736
|
+
/**
|
|
3737
|
+
* Delete Group
|
|
3738
|
+
*/
|
|
3739
|
+
export function deleteV1GroupsByGroupId({ groupId }: {
|
|
3740
|
+
groupId: string;
|
|
3741
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3742
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3743
|
+
status: 204;
|
|
3744
|
+
} | {
|
|
3745
|
+
status: 403;
|
|
3746
|
+
data: ErrorResponse;
|
|
3747
|
+
} | {
|
|
3748
|
+
status: 422;
|
|
3749
|
+
data: ErrorResponse;
|
|
3750
|
+
} | {
|
|
3751
|
+
status: 500;
|
|
3752
|
+
data: ErrorResponse;
|
|
3753
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}`, {
|
|
3754
|
+
...opts,
|
|
3755
|
+
method: "DELETE"
|
|
3756
|
+
}));
|
|
3757
|
+
}
|
|
3758
|
+
/**
|
|
3759
|
+
* Update Group
|
|
3760
|
+
*/
|
|
3761
|
+
export function update1({ groupId, updateGroupRequest }: {
|
|
3762
|
+
groupId: string;
|
|
3763
|
+
updateGroupRequest: UpdateGroupRequest;
|
|
3764
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3765
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3766
|
+
status: 200;
|
|
3767
|
+
data: IamIdResponse;
|
|
3768
|
+
} | {
|
|
3769
|
+
status: 403;
|
|
3770
|
+
data: ErrorResponse;
|
|
3771
|
+
} | {
|
|
3772
|
+
status: 404;
|
|
3773
|
+
data: ErrorResponse;
|
|
3774
|
+
} | {
|
|
3775
|
+
status: 422;
|
|
3776
|
+
data: ErrorResponse;
|
|
3777
|
+
} | {
|
|
3778
|
+
status: 500;
|
|
3779
|
+
data: ErrorResponse;
|
|
3780
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}`, oazapfts.json({
|
|
3781
|
+
...opts,
|
|
3782
|
+
method: "PATCH",
|
|
3783
|
+
body: updateGroupRequest
|
|
3784
|
+
})));
|
|
3785
|
+
}
|
|
3786
|
+
/**
|
|
3787
|
+
* Delete Group permissions
|
|
3788
|
+
*/
|
|
3789
|
+
export function deleteGroupPermissions({ groupId, deleteGroupPermissionsRequest }: {
|
|
3790
|
+
groupId: string;
|
|
3791
|
+
deleteGroupPermissionsRequest: DeleteGroupPermissionsRequest;
|
|
3792
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3793
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3794
|
+
status: 200;
|
|
3795
|
+
} | {
|
|
3796
|
+
status: 403;
|
|
3797
|
+
data: ErrorResponse;
|
|
3798
|
+
} | {
|
|
3799
|
+
status: 404;
|
|
3800
|
+
data: ErrorResponse;
|
|
3801
|
+
} | {
|
|
3802
|
+
status: 500;
|
|
3803
|
+
data: ErrorResponse;
|
|
3804
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
3805
|
+
...opts,
|
|
3806
|
+
method: "DELETE",
|
|
3807
|
+
body: deleteGroupPermissionsRequest
|
|
3808
|
+
})));
|
|
3809
|
+
}
|
|
3810
|
+
/**
|
|
3811
|
+
* Update Group permissions
|
|
3812
|
+
*/
|
|
3813
|
+
export function updateGroupPermissions({ groupId, updateGroupPermissionsRequest }: {
|
|
3814
|
+
groupId: string;
|
|
3815
|
+
updateGroupPermissionsRequest: UpdateGroupPermissionsRequest;
|
|
3816
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3817
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3818
|
+
status: 200;
|
|
3819
|
+
} | {
|
|
3820
|
+
status: 403;
|
|
3821
|
+
data: ErrorResponse;
|
|
3822
|
+
} | {
|
|
3823
|
+
status: 404;
|
|
3824
|
+
data: ErrorResponse;
|
|
3825
|
+
} | {
|
|
3826
|
+
status: 500;
|
|
3827
|
+
data: ErrorResponse;
|
|
3828
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/permissions`, oazapfts.json({
|
|
3829
|
+
...opts,
|
|
3830
|
+
method: "PATCH",
|
|
3831
|
+
body: updateGroupPermissionsRequest
|
|
3832
|
+
})));
|
|
3833
|
+
}
|
|
3834
|
+
/**
|
|
3835
|
+
* Enable a Feature Flag in an Account
|
|
3836
|
+
*/
|
|
3837
|
+
export function enable({ id }: {
|
|
3838
|
+
id: number;
|
|
3839
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3840
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3841
|
+
status: 200;
|
|
3842
|
+
} | {
|
|
3843
|
+
status: 400;
|
|
3844
|
+
data: ErrorResponse;
|
|
3845
|
+
} | {
|
|
3846
|
+
status: 422;
|
|
3847
|
+
data: ErrorResponse;
|
|
3848
|
+
} | {
|
|
3849
|
+
status: 500;
|
|
3850
|
+
}>(`/v1/feature-flags/${encodeURIComponent(id)}/enable`, {
|
|
3851
|
+
...opts,
|
|
3852
|
+
method: "PATCH"
|
|
3853
|
+
}));
|
|
3854
|
+
}
|
|
3855
|
+
/**
|
|
3856
|
+
* Disable a Feature Flag in an Account
|
|
3857
|
+
*/
|
|
3858
|
+
export function disable({ id }: {
|
|
3859
|
+
id: number;
|
|
3860
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3861
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3862
|
+
status: 200;
|
|
3863
|
+
} | {
|
|
3864
|
+
status: 400;
|
|
3865
|
+
data: ErrorResponse;
|
|
3866
|
+
} | {
|
|
3867
|
+
status: 422;
|
|
3868
|
+
data: ErrorResponse;
|
|
3869
|
+
} | {
|
|
3870
|
+
status: 500;
|
|
3871
|
+
}>(`/v1/feature-flags/${encodeURIComponent(id)}/disable`, {
|
|
3872
|
+
...opts,
|
|
3873
|
+
method: "PATCH"
|
|
3874
|
+
}));
|
|
3875
|
+
}
|
|
3876
|
+
/**
|
|
3877
|
+
* Get configured account SSO attributes
|
|
3878
|
+
*/
|
|
3879
|
+
export function ssoGetAttributesConfig({ id }: {
|
|
3880
|
+
id: string;
|
|
3881
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3882
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3883
|
+
status: 200;
|
|
3884
|
+
data: AccountSsoAttributesConfigResponse;
|
|
3885
|
+
} | {
|
|
3886
|
+
status: 400;
|
|
3887
|
+
data: ErrorResponse;
|
|
3888
|
+
} | {
|
|
3889
|
+
status: 500;
|
|
3890
|
+
data: ErrorResponse;
|
|
3891
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/attributes-configuration`, {
|
|
3892
|
+
...opts
|
|
3893
|
+
}));
|
|
3894
|
+
}
|
|
3895
|
+
/**
|
|
3896
|
+
* Configure account SSO attributes
|
|
3897
|
+
*/
|
|
3898
|
+
export function ssoAddAttributes({ id, accountSsoAddAttributesConfigRequest }: {
|
|
3899
|
+
id: string;
|
|
3900
|
+
accountSsoAddAttributesConfigRequest: AccountSsoAddAttributesConfigRequest;
|
|
3901
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3902
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3903
|
+
status: 200;
|
|
3904
|
+
} | {
|
|
3905
|
+
status: 400;
|
|
3906
|
+
data: ErrorResponse;
|
|
3907
|
+
} | {
|
|
3908
|
+
status: 500;
|
|
3909
|
+
data: ErrorResponse;
|
|
3910
|
+
}>(`/v1/accounts/sso/${encodeURIComponent(id)}/attributes-configuration`, oazapfts.json({
|
|
3911
|
+
...opts,
|
|
3912
|
+
method: "PATCH",
|
|
3913
|
+
body: accountSsoAddAttributesConfigRequest
|
|
3914
|
+
})));
|
|
3915
|
+
}
|
|
3916
|
+
/**
|
|
3917
|
+
* Get Partner by account Id
|
|
3918
|
+
*/
|
|
3919
|
+
export function getPartnerAccount({ id }: {
|
|
3920
|
+
id: string;
|
|
3921
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3922
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3923
|
+
status: 200;
|
|
3924
|
+
data: AccountResponse;
|
|
3925
|
+
} | {
|
|
3926
|
+
status: 403;
|
|
3927
|
+
data: ErrorResponse;
|
|
3928
|
+
} | {
|
|
3929
|
+
status: 404;
|
|
3930
|
+
data: ErrorResponse;
|
|
3931
|
+
} | {
|
|
3932
|
+
status: 500;
|
|
3933
|
+
data: ErrorResponse;
|
|
3934
|
+
}>(`/v1/account-partners/${encodeURIComponent(id)}`, {
|
|
3935
|
+
...opts
|
|
3936
|
+
}));
|
|
3937
|
+
}
|
|
3938
|
+
/**
|
|
3939
|
+
* Delete Partner
|
|
3940
|
+
*/
|
|
3941
|
+
export function deletePartner({ id }: {
|
|
3942
|
+
id: string;
|
|
3943
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3944
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3945
|
+
status: 204;
|
|
3946
|
+
} | {
|
|
3947
|
+
status: 403;
|
|
3948
|
+
data: ErrorResponse;
|
|
3949
|
+
} | {
|
|
3950
|
+
status: 404;
|
|
3951
|
+
data: ErrorResponse;
|
|
3952
|
+
} | {
|
|
3953
|
+
status: 500;
|
|
3954
|
+
data: ErrorResponse;
|
|
3955
|
+
}>(`/v1/account-partners/${encodeURIComponent(id)}`, {
|
|
3956
|
+
...opts,
|
|
3957
|
+
method: "DELETE"
|
|
3958
|
+
}));
|
|
3959
|
+
}
|
|
3960
|
+
/**
|
|
3961
|
+
* Update Partner Account data.
|
|
3962
|
+
*/
|
|
3963
|
+
export function updatePartnerAccountData({ id, accountPartnerAccountDataUpdateRequest }: {
|
|
3964
|
+
id: string;
|
|
3965
|
+
accountPartnerAccountDataUpdateRequest: AccountPartnerAccountDataUpdateRequest;
|
|
3966
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3967
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3968
|
+
status: 204;
|
|
3969
|
+
} | {
|
|
3970
|
+
status: 403;
|
|
3971
|
+
data: ErrorResponse;
|
|
3972
|
+
} | {
|
|
3973
|
+
status: 422;
|
|
3974
|
+
data: ErrorResponse;
|
|
3975
|
+
} | {
|
|
3976
|
+
status: 500;
|
|
3977
|
+
data: ErrorResponse;
|
|
3978
|
+
}>(`/v1/account-partners/${encodeURIComponent(id)}`, oazapfts.json({
|
|
3979
|
+
...opts,
|
|
3980
|
+
method: "PATCH",
|
|
3981
|
+
body: accountPartnerAccountDataUpdateRequest
|
|
3982
|
+
})));
|
|
3983
|
+
}
|
|
3984
|
+
/**
|
|
3985
|
+
* Update Partner Account Admin data.
|
|
3986
|
+
*/
|
|
3987
|
+
export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdateRequest }: {
|
|
3988
|
+
id: string;
|
|
3989
|
+
accountPartnerAdminDataUpdateRequest: AccountPartnerAdminDataUpdateRequest;
|
|
3990
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
3991
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
3992
|
+
status: 204;
|
|
3993
|
+
} | {
|
|
3994
|
+
status: 403;
|
|
3995
|
+
data: ErrorResponse;
|
|
3996
|
+
} | {
|
|
3997
|
+
status: 422;
|
|
3998
|
+
data: ErrorResponse;
|
|
3999
|
+
} | {
|
|
4000
|
+
status: 500;
|
|
4001
|
+
data: ErrorResponse;
|
|
4002
|
+
}>(`/v1/account-partners/${encodeURIComponent(id)}/admin`, oazapfts.json({
|
|
4003
|
+
...opts,
|
|
4004
|
+
method: "PATCH",
|
|
4005
|
+
body: accountPartnerAdminDataUpdateRequest
|
|
4006
|
+
})));
|
|
4007
|
+
}
|
|
4008
|
+
/**
|
|
4009
|
+
* Verify User repository credential configuration status.
|
|
4010
|
+
*/
|
|
4011
|
+
export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
4012
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4013
|
+
status: 200;
|
|
4014
|
+
} | {
|
|
4015
|
+
status: 403;
|
|
4016
|
+
data: ErrorResponse;
|
|
4017
|
+
} | {
|
|
4018
|
+
status: 404;
|
|
4019
|
+
data: ErrorResponse;
|
|
4020
|
+
} | {
|
|
4021
|
+
status: 422;
|
|
4022
|
+
data: ErrorResponse;
|
|
4023
|
+
} | {
|
|
4024
|
+
status: 500;
|
|
4025
|
+
data: ErrorResponse;
|
|
4026
|
+
}>("/v1/users/scm-credentials/configuration-status", {
|
|
4027
|
+
...opts
|
|
4028
|
+
}));
|
|
4029
|
+
}
|
|
4030
|
+
/**
|
|
4031
|
+
* List Accounts of User can use and collaborate.
|
|
4032
|
+
*/
|
|
4033
|
+
export function getUserAccountWithRole(opts?: Oazapfts.RequestOpts) {
|
|
4034
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4035
|
+
status: 200;
|
|
4036
|
+
data: AccountCollaborationInfoResponse[];
|
|
4037
|
+
} | {
|
|
4038
|
+
status: 403;
|
|
4039
|
+
data: ErrorResponse;
|
|
4040
|
+
} | {
|
|
4041
|
+
status: 500;
|
|
4042
|
+
data: ErrorResponse;
|
|
4043
|
+
}>("/v1/users/accounts", {
|
|
4044
|
+
...opts
|
|
4045
|
+
}));
|
|
4046
|
+
}
|
|
4047
|
+
/**
|
|
4048
|
+
* Get Accounts
|
|
4049
|
+
*/
|
|
4050
|
+
export function getAccounts({ accountType, slug, id }: {
|
|
4051
|
+
accountType?: string;
|
|
4052
|
+
slug?: string;
|
|
4053
|
+
id?: string;
|
|
4054
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4055
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4056
|
+
status: 200;
|
|
4057
|
+
data: AccountDataReadResponse[];
|
|
4058
|
+
} | {
|
|
4059
|
+
status: 403;
|
|
4060
|
+
data: ErrorResponse;
|
|
4061
|
+
} | {
|
|
4062
|
+
status: 500;
|
|
4063
|
+
data: ErrorResponse;
|
|
4064
|
+
}>(`/v1/stackspot/accounts${QS.query(QS.explode({
|
|
4065
|
+
accountType,
|
|
4066
|
+
slug,
|
|
4067
|
+
id
|
|
4068
|
+
}))}`, {
|
|
4069
|
+
...opts
|
|
4070
|
+
}));
|
|
4071
|
+
}
|
|
4072
|
+
/**
|
|
4073
|
+
* Get Account by id
|
|
4074
|
+
*/
|
|
4075
|
+
export function getAccount({ id }: {
|
|
4076
|
+
id: string;
|
|
4077
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4078
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4079
|
+
status: 200;
|
|
4080
|
+
data: AccountDataReadResponse;
|
|
4081
|
+
} | {
|
|
4082
|
+
status: 403;
|
|
4083
|
+
data: ErrorResponse;
|
|
4084
|
+
} | {
|
|
4085
|
+
status: 404;
|
|
4086
|
+
data: ErrorResponse;
|
|
4087
|
+
} | {
|
|
4088
|
+
status: 500;
|
|
4089
|
+
data: ErrorResponse;
|
|
4090
|
+
}>(`/v1/stackspot/accounts/${encodeURIComponent(id)}`, {
|
|
4091
|
+
...opts
|
|
4092
|
+
}));
|
|
4093
|
+
}
|
|
4094
|
+
/**
|
|
4095
|
+
* Get Account Members
|
|
4096
|
+
*/
|
|
4097
|
+
export function getAccountMembers({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4098
|
+
id: string;
|
|
4099
|
+
size?: any;
|
|
4100
|
+
page?: any;
|
|
4101
|
+
sort?: string;
|
|
4102
|
+
direction?: "ASC" | "DESC";
|
|
4103
|
+
search?: string;
|
|
4104
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
4105
|
+
filterBy?: string;
|
|
4106
|
+
filterValue?: string;
|
|
4107
|
+
multiFilterMode?: string;
|
|
4108
|
+
filterIn?: any;
|
|
4109
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4110
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4111
|
+
status: 200;
|
|
4112
|
+
data: AccountMemberResponse[];
|
|
4113
|
+
} | {
|
|
4114
|
+
status: 403;
|
|
4115
|
+
data: ErrorResponse;
|
|
4116
|
+
} | {
|
|
4117
|
+
status: 500;
|
|
4118
|
+
data: ErrorResponse;
|
|
4119
|
+
}>(`/v1/stackspot/accounts/${encodeURIComponent(id)}/members${QS.query(QS.explode({
|
|
4120
|
+
size,
|
|
4121
|
+
page,
|
|
4122
|
+
sort,
|
|
4123
|
+
direction,
|
|
4124
|
+
search,
|
|
4125
|
+
filterMode,
|
|
4126
|
+
filterBy,
|
|
4127
|
+
filterValue,
|
|
4128
|
+
multiFilterMode,
|
|
4129
|
+
filterIn
|
|
4130
|
+
}))}`, {
|
|
4131
|
+
...opts
|
|
4132
|
+
}));
|
|
4133
|
+
}
|
|
4134
|
+
/**
|
|
4135
|
+
* Get Service Credential by ID (Client ID)
|
|
4136
|
+
*/
|
|
4137
|
+
export function getServiceCredential({ id }: {
|
|
4138
|
+
id: string;
|
|
4139
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4140
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4141
|
+
status: 200;
|
|
4142
|
+
data: ServiceCredentialDetailsResponse;
|
|
4143
|
+
} | {
|
|
4144
|
+
status: 403;
|
|
4145
|
+
data: ErrorResponse;
|
|
4146
|
+
} | {
|
|
4147
|
+
status: 500;
|
|
4148
|
+
data: ErrorResponse;
|
|
4149
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}`, {
|
|
4150
|
+
...opts
|
|
4151
|
+
}));
|
|
4152
|
+
}
|
|
4153
|
+
/**
|
|
4154
|
+
* List service credential permissions
|
|
4155
|
+
*/
|
|
4156
|
+
export function getServiceCredentialPermissions({ id }: {
|
|
4157
|
+
id: string;
|
|
4158
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4159
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4160
|
+
status: 200;
|
|
4161
|
+
data: FullResourceResponse[];
|
|
4162
|
+
} | {
|
|
4163
|
+
status: 403;
|
|
4164
|
+
data: ErrorResponse;
|
|
4165
|
+
} | {
|
|
4166
|
+
status: 500;
|
|
4167
|
+
data: ErrorResponse;
|
|
4168
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}/permissions`, {
|
|
4169
|
+
...opts
|
|
4170
|
+
}));
|
|
4171
|
+
}
|
|
4172
|
+
/**
|
|
4173
|
+
* List service credential groups
|
|
4174
|
+
*/
|
|
4175
|
+
export function getServiceCredentialGroups({ id }: {
|
|
4176
|
+
id: string;
|
|
4177
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4178
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4179
|
+
status: 200;
|
|
4180
|
+
data: GroupReadResponse[];
|
|
4181
|
+
} | {
|
|
4182
|
+
status: 403;
|
|
4183
|
+
data: ErrorResponse;
|
|
4184
|
+
} | {
|
|
4185
|
+
status: 500;
|
|
4186
|
+
data: ErrorResponse;
|
|
4187
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}/groups`, {
|
|
4188
|
+
...opts
|
|
4189
|
+
}));
|
|
4190
|
+
}
|
|
4191
|
+
/**
|
|
4192
|
+
* Get SCM provider.
|
|
4193
|
+
*/
|
|
4194
|
+
export function getScmProvider(opts?: Oazapfts.RequestOpts) {
|
|
4195
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4196
|
+
status: 200;
|
|
4197
|
+
data: AccountScmProviderResponse;
|
|
4198
|
+
} | {
|
|
4199
|
+
status: 403;
|
|
4200
|
+
data: ErrorResponse;
|
|
4201
|
+
} | {
|
|
4202
|
+
status: 422;
|
|
4203
|
+
data: ErrorResponse;
|
|
4204
|
+
} | {
|
|
4205
|
+
status: 500;
|
|
4206
|
+
data: ErrorResponse;
|
|
4207
|
+
}>("/v1/scm-credentials/provider", {
|
|
4208
|
+
...opts
|
|
4209
|
+
}));
|
|
4210
|
+
}
|
|
4211
|
+
/**
|
|
4212
|
+
* Verify repository credential configuration status.
|
|
4213
|
+
*/
|
|
4214
|
+
export function isCreatedScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
4215
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4216
|
+
status: 200;
|
|
4217
|
+
data: AccountScmStatusResponse;
|
|
4218
|
+
} | {
|
|
4219
|
+
status: 403;
|
|
4220
|
+
data: ErrorResponse;
|
|
4221
|
+
} | {
|
|
4222
|
+
status: 404;
|
|
4223
|
+
data: ErrorResponse;
|
|
4224
|
+
} | {
|
|
4225
|
+
status: 422;
|
|
4226
|
+
data: ErrorResponse;
|
|
4227
|
+
} | {
|
|
4228
|
+
status: 500;
|
|
4229
|
+
data: ErrorResponse;
|
|
4230
|
+
}>("/v1/scm-credentials/configuration-status", {
|
|
4231
|
+
...opts
|
|
4232
|
+
}));
|
|
4233
|
+
}
|
|
4234
|
+
/**
|
|
4235
|
+
* Get Permissions from role
|
|
4236
|
+
*/
|
|
4237
|
+
export function getPermissionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4238
|
+
roleId: string;
|
|
4239
|
+
size?: any;
|
|
4240
|
+
page?: any;
|
|
4241
|
+
sort?: string;
|
|
4242
|
+
direction?: "ASC" | "DESC";
|
|
4243
|
+
search?: string;
|
|
4244
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
4245
|
+
filterBy?: string;
|
|
4246
|
+
filterValue?: string;
|
|
4247
|
+
multiFilterMode?: string;
|
|
4248
|
+
filterIn?: any;
|
|
4249
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4250
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4251
|
+
status: 200;
|
|
4252
|
+
data: RolePermissionResponse[];
|
|
4253
|
+
} | {
|
|
4254
|
+
status: 403;
|
|
4255
|
+
data: ErrorResponse;
|
|
4256
|
+
} | {
|
|
4257
|
+
status: 422;
|
|
4258
|
+
data: ErrorResponse;
|
|
4259
|
+
} | {
|
|
4260
|
+
status: 500;
|
|
4261
|
+
data: ErrorResponse;
|
|
4262
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/permissions${QS.query(QS.explode({
|
|
4263
|
+
size,
|
|
4264
|
+
page,
|
|
4265
|
+
sort,
|
|
4266
|
+
direction,
|
|
4267
|
+
search,
|
|
4268
|
+
filterMode,
|
|
4269
|
+
filterBy,
|
|
4270
|
+
filterValue,
|
|
4271
|
+
multiFilterMode,
|
|
4272
|
+
filterIn
|
|
4273
|
+
}))}`, {
|
|
4274
|
+
...opts
|
|
4275
|
+
}));
|
|
4276
|
+
}
|
|
4277
|
+
/**
|
|
4278
|
+
* Get Members from Resource
|
|
4279
|
+
*/
|
|
4280
|
+
export function getResourceMembers({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4281
|
+
resourceId: string;
|
|
4282
|
+
size?: any;
|
|
4283
|
+
page?: any;
|
|
4284
|
+
sort?: string;
|
|
4285
|
+
direction?: "ASC" | "DESC";
|
|
4286
|
+
search?: string;
|
|
4287
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
4288
|
+
filterBy?: string;
|
|
4289
|
+
filterValue?: string;
|
|
4290
|
+
multiFilterMode?: string;
|
|
4291
|
+
filterIn?: any;
|
|
4292
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4293
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4294
|
+
status: 200;
|
|
4295
|
+
data: MembersFromResourceResponse[];
|
|
4296
|
+
} | {
|
|
4297
|
+
status: 403;
|
|
4298
|
+
data: ErrorResponse;
|
|
4299
|
+
} | {
|
|
4300
|
+
status: 500;
|
|
4301
|
+
data: ErrorResponse;
|
|
4302
|
+
}>(`/v1/resources/${encodeURIComponent(resourceId)}/members${QS.query(QS.explode({
|
|
4303
|
+
size,
|
|
4304
|
+
page,
|
|
4305
|
+
sort,
|
|
4306
|
+
direction,
|
|
4307
|
+
search,
|
|
4308
|
+
filterMode,
|
|
4309
|
+
filterBy,
|
|
4310
|
+
filterValue,
|
|
4311
|
+
multiFilterMode,
|
|
4312
|
+
filterIn
|
|
4313
|
+
}))}`, {
|
|
4314
|
+
...opts
|
|
4315
|
+
}));
|
|
4316
|
+
}
|
|
4317
|
+
/**
|
|
4318
|
+
* Get Groups from Resource
|
|
4319
|
+
*/
|
|
4320
|
+
export function getResourceGroups({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4321
|
+
resourceId: string;
|
|
4322
|
+
size?: any;
|
|
4323
|
+
page?: any;
|
|
4324
|
+
sort?: string;
|
|
4325
|
+
direction?: "ASC" | "DESC";
|
|
4326
|
+
search?: string;
|
|
4327
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
4328
|
+
filterBy?: string;
|
|
4329
|
+
filterValue?: string;
|
|
4330
|
+
multiFilterMode?: string;
|
|
4331
|
+
filterIn?: any;
|
|
4332
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4333
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4334
|
+
status: 200;
|
|
4335
|
+
data: GroupsFromResourceResponse[];
|
|
4336
|
+
} | {
|
|
4337
|
+
status: 403;
|
|
4338
|
+
data: ErrorResponse;
|
|
4339
|
+
} | {
|
|
4340
|
+
status: 500;
|
|
4341
|
+
data: ErrorResponse;
|
|
4342
|
+
}>(`/v1/resources/${encodeURIComponent(resourceId)}/groups${QS.query(QS.explode({
|
|
4343
|
+
size,
|
|
4344
|
+
page,
|
|
4345
|
+
sort,
|
|
4346
|
+
direction,
|
|
4347
|
+
search,
|
|
4348
|
+
filterMode,
|
|
4349
|
+
filterBy,
|
|
4350
|
+
filterValue,
|
|
4351
|
+
multiFilterMode,
|
|
4352
|
+
filterIn
|
|
4353
|
+
}))}`, {
|
|
4354
|
+
...opts
|
|
4355
|
+
}));
|
|
4356
|
+
}
|
|
4357
|
+
/**
|
|
4358
|
+
* Get Resource Types
|
|
4359
|
+
*/
|
|
4360
|
+
export function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4361
|
+
size?: any;
|
|
4362
|
+
page?: any;
|
|
4363
|
+
sort?: string;
|
|
4364
|
+
direction?: "ASC" | "DESC";
|
|
4365
|
+
search?: string;
|
|
4366
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
4367
|
+
filterBy?: string;
|
|
4368
|
+
filterValue?: string;
|
|
4369
|
+
multiFilterMode?: string;
|
|
4370
|
+
filterIn?: any;
|
|
4371
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4372
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4373
|
+
status: 200;
|
|
4374
|
+
data: ResourceTypeResponse[];
|
|
4375
|
+
} | {
|
|
4376
|
+
status: 403;
|
|
4377
|
+
data: ErrorResponse;
|
|
4378
|
+
} | {
|
|
4379
|
+
status: 500;
|
|
4380
|
+
data: ErrorResponse;
|
|
4381
|
+
}>(`/v1/resource-types${QS.query(QS.explode({
|
|
4382
|
+
size,
|
|
4383
|
+
page,
|
|
4384
|
+
sort,
|
|
4385
|
+
direction,
|
|
4386
|
+
search,
|
|
4387
|
+
filterMode,
|
|
4388
|
+
filterBy,
|
|
4389
|
+
filterValue,
|
|
4390
|
+
multiFilterMode,
|
|
4391
|
+
filterIn
|
|
4392
|
+
}))}`, {
|
|
4393
|
+
...opts
|
|
4394
|
+
}));
|
|
4395
|
+
}
|
|
4396
|
+
/**
|
|
4397
|
+
* Get Resources Members
|
|
4398
|
+
*/
|
|
4399
|
+
export function getResources1({ memberId }: {
|
|
4400
|
+
memberId: string;
|
|
4401
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4402
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4403
|
+
status: 200;
|
|
4404
|
+
data: ResourceDto[];
|
|
4405
|
+
} | {
|
|
4406
|
+
status: 403;
|
|
4407
|
+
data: ErrorResponse;
|
|
4408
|
+
} | {
|
|
4409
|
+
status: 500;
|
|
4410
|
+
data: ErrorResponse;
|
|
4411
|
+
}>(`/v1/members/${encodeURIComponent(memberId)}/resources`, {
|
|
4412
|
+
...opts
|
|
4413
|
+
}));
|
|
4414
|
+
}
|
|
4415
|
+
/**
|
|
4416
|
+
* Get Account Collaborators Members
|
|
4417
|
+
*/
|
|
4418
|
+
export function getAccountMembersToCollaborators({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4419
|
+
size?: any;
|
|
4420
|
+
page?: any;
|
|
4421
|
+
sort?: string;
|
|
4422
|
+
direction?: "ASC" | "DESC";
|
|
4423
|
+
search?: string;
|
|
4424
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
4425
|
+
filterBy?: string;
|
|
4426
|
+
filterValue?: string;
|
|
4427
|
+
multiFilterMode?: string;
|
|
4428
|
+
filterIn?: any;
|
|
4429
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4430
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4431
|
+
status: 200;
|
|
4432
|
+
data: AccountMemberResponse[];
|
|
4433
|
+
} | {
|
|
4434
|
+
status: 403;
|
|
4435
|
+
data: ErrorResponse;
|
|
4436
|
+
} | {
|
|
4437
|
+
status: 500;
|
|
4438
|
+
data: ErrorResponse;
|
|
4439
|
+
}>(`/v1/members/collaborators${QS.query(QS.explode({
|
|
4440
|
+
size,
|
|
4441
|
+
page,
|
|
4442
|
+
sort,
|
|
4443
|
+
direction,
|
|
4444
|
+
search,
|
|
4445
|
+
filterMode,
|
|
4446
|
+
filterBy,
|
|
4447
|
+
filterValue,
|
|
4448
|
+
multiFilterMode,
|
|
4449
|
+
filterIn
|
|
4450
|
+
}))}`, {
|
|
4451
|
+
...opts
|
|
4452
|
+
}));
|
|
4453
|
+
}
|
|
4454
|
+
/**
|
|
4455
|
+
* Get Authentication Configuration for account
|
|
4456
|
+
*/
|
|
4457
|
+
export function getAuthenticationConfig({ tenantSlug }: {
|
|
4458
|
+
tenantSlug: string;
|
|
4459
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4460
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4461
|
+
status: 200;
|
|
4462
|
+
data: AccountAuthenticationConfigResponse;
|
|
4463
|
+
} | {
|
|
4464
|
+
status: 400;
|
|
4465
|
+
data: ErrorResponse;
|
|
4466
|
+
} | {
|
|
4467
|
+
status: 404;
|
|
4468
|
+
data: ErrorResponse;
|
|
4469
|
+
} | {
|
|
4470
|
+
status: 500;
|
|
4471
|
+
data: ErrorResponse;
|
|
4472
|
+
}>(`/v1/authentication/config${QS.query(QS.explode({
|
|
4473
|
+
tenant_slug: tenantSlug
|
|
4474
|
+
}))}`, {
|
|
4475
|
+
...opts
|
|
4476
|
+
}));
|
|
4477
|
+
}
|
|
4478
|
+
/**
|
|
4479
|
+
* Get account data (tenant, IDP alias, account freemium available to user) by email
|
|
4480
|
+
*/
|
|
4481
|
+
export function getAccountDataByEmail({ email }: {
|
|
4482
|
+
email: string;
|
|
4483
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4484
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4485
|
+
status: 200;
|
|
4486
|
+
data: AccountDataResponse;
|
|
4487
|
+
} | {
|
|
4488
|
+
status: 400;
|
|
4489
|
+
data: ErrorResponse;
|
|
4490
|
+
} | {
|
|
4491
|
+
status: 404;
|
|
4492
|
+
data: ErrorResponse;
|
|
4493
|
+
} | {
|
|
4494
|
+
status: 500;
|
|
4495
|
+
data: ErrorResponse;
|
|
4496
|
+
}>(`/v1/accounts${QS.query(QS.explode({
|
|
4497
|
+
email
|
|
4498
|
+
}))}`, {
|
|
4499
|
+
...opts
|
|
4500
|
+
}));
|
|
4501
|
+
}
|
|
4502
|
+
/**
|
|
4503
|
+
* Get account Slug - this API is temporary
|
|
4504
|
+
*/
|
|
4505
|
+
export function getAccountSlug({ accountId }: {
|
|
4506
|
+
accountId: string;
|
|
4507
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4508
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4509
|
+
status: 200;
|
|
4510
|
+
data: AccountSlugResponse;
|
|
4511
|
+
} | {
|
|
4512
|
+
status: 400;
|
|
4513
|
+
data: ErrorResponse;
|
|
4514
|
+
} | {
|
|
4515
|
+
status: 404;
|
|
4516
|
+
data: ErrorResponse;
|
|
4517
|
+
} | {
|
|
4518
|
+
status: 500;
|
|
4519
|
+
data: ErrorResponse;
|
|
4520
|
+
}>(`/v1/accounts/${encodeURIComponent(accountId)}`, {
|
|
4521
|
+
...opts
|
|
4522
|
+
}));
|
|
4523
|
+
}
|
|
4524
|
+
/**
|
|
4525
|
+
* Get all SSO configured in account
|
|
4526
|
+
*/
|
|
4527
|
+
export function getAllAccountSso({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4528
|
+
size?: any;
|
|
4529
|
+
page?: any;
|
|
4530
|
+
sort?: string;
|
|
4531
|
+
direction?: "ASC" | "DESC";
|
|
4532
|
+
search?: string;
|
|
4533
|
+
filterMode?: "MATCH" | "CONTAINS";
|
|
4534
|
+
filterBy?: string;
|
|
4535
|
+
filterValue?: string;
|
|
4536
|
+
multiFilterMode?: string;
|
|
4537
|
+
filterIn?: any;
|
|
4538
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4539
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4540
|
+
status: 200;
|
|
4541
|
+
data: PageResponseAccountSsoResponse;
|
|
4542
|
+
} | {
|
|
4543
|
+
status: 400;
|
|
4544
|
+
data: ErrorResponse;
|
|
4545
|
+
} | {
|
|
4546
|
+
status: 409;
|
|
4547
|
+
data: ErrorResponse;
|
|
4548
|
+
} | {
|
|
4549
|
+
status: 500;
|
|
4550
|
+
data: ErrorResponse;
|
|
4551
|
+
}>(`/v1/accounts/sso${QS.query(QS.explode({
|
|
4552
|
+
size,
|
|
4553
|
+
page,
|
|
4554
|
+
sort,
|
|
4555
|
+
direction,
|
|
4556
|
+
search,
|
|
4557
|
+
filterMode,
|
|
4558
|
+
filterBy,
|
|
4559
|
+
filterValue,
|
|
4560
|
+
multiFilterMode,
|
|
4561
|
+
filterIn
|
|
4562
|
+
}))}`, {
|
|
4563
|
+
...opts
|
|
4564
|
+
}));
|
|
4565
|
+
}
|
|
4566
|
+
/**
|
|
4567
|
+
* Returns information if account data (name and slug) are available to be registered
|
|
4568
|
+
*/
|
|
4569
|
+
export function accountDataIsAvailable({ name, slug }: {
|
|
4570
|
+
name: string;
|
|
4571
|
+
slug: string;
|
|
4572
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4573
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4574
|
+
status: 200;
|
|
4575
|
+
data: AccountDataAvailableResponse;
|
|
4576
|
+
} | {
|
|
4577
|
+
status: 400;
|
|
4578
|
+
data: ErrorResponse;
|
|
4579
|
+
} | {
|
|
4580
|
+
status: 403;
|
|
4581
|
+
data: ErrorResponse;
|
|
4582
|
+
} | {
|
|
4583
|
+
status: 500;
|
|
4584
|
+
data: ErrorResponse;
|
|
4585
|
+
}>(`/v1/accounts/freemium/available${QS.query(QS.explode({
|
|
4586
|
+
name,
|
|
4587
|
+
slug
|
|
4588
|
+
}))}`, {
|
|
4589
|
+
...opts
|
|
4590
|
+
}));
|
|
4591
|
+
}
|
|
4592
|
+
/**
|
|
4593
|
+
* Get Partners who are sharing content.
|
|
4594
|
+
*/
|
|
4595
|
+
export function getSharingPartners({ name }: {
|
|
4596
|
+
name?: string;
|
|
4597
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4598
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4599
|
+
status: 200;
|
|
4600
|
+
data: AccountPartnerResponse[];
|
|
4601
|
+
} | {
|
|
4602
|
+
status: 403;
|
|
4603
|
+
data: ErrorResponse;
|
|
4604
|
+
} | {
|
|
4605
|
+
status: 422;
|
|
4606
|
+
data: ErrorResponse;
|
|
4607
|
+
} | {
|
|
4608
|
+
status: 500;
|
|
4609
|
+
data: ErrorResponse;
|
|
4610
|
+
}>(`/v1/account-partners/sharing${QS.query(QS.explode({
|
|
4611
|
+
name
|
|
4612
|
+
}))}`, {
|
|
4613
|
+
...opts
|
|
4614
|
+
}));
|
|
4615
|
+
}
|
|
4616
|
+
/**
|
|
4617
|
+
* Get Partners with whom it is allowed to share content.
|
|
4618
|
+
*/
|
|
4619
|
+
export function getPartnersSharingAllowed({ name }: {
|
|
4620
|
+
name?: string;
|
|
4621
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4622
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4623
|
+
status: 200;
|
|
4624
|
+
data: AccountPartnerResponse[];
|
|
4625
|
+
} | {
|
|
4626
|
+
status: 403;
|
|
4627
|
+
data: ErrorResponse;
|
|
4628
|
+
} | {
|
|
4629
|
+
status: 422;
|
|
4630
|
+
data: ErrorResponse;
|
|
4631
|
+
} | {
|
|
4632
|
+
status: 500;
|
|
4633
|
+
data: ErrorResponse;
|
|
4634
|
+
}>(`/v1/account-partners/sharing-allowed${QS.query(QS.explode({
|
|
4635
|
+
name
|
|
4636
|
+
}))}`, {
|
|
4637
|
+
...opts
|
|
4638
|
+
}));
|
|
4639
|
+
}
|
|
4640
|
+
/**
|
|
4641
|
+
* Validate Partner association limit
|
|
4642
|
+
*/
|
|
4643
|
+
export function validatePartnerAssociationLimit(opts?: Oazapfts.RequestOpts) {
|
|
4644
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4645
|
+
status: 204;
|
|
4646
|
+
} | {
|
|
4647
|
+
status: 403;
|
|
4648
|
+
data: ErrorResponse;
|
|
4649
|
+
} | {
|
|
4650
|
+
status: 422;
|
|
4651
|
+
data: ErrorResponse;
|
|
4652
|
+
} | {
|
|
4653
|
+
status: 500;
|
|
4654
|
+
}>("/v1/account-orders/partners/validations/association-limit", {
|
|
4655
|
+
...opts
|
|
4656
|
+
}));
|
|
4657
|
+
}
|
|
4658
|
+
/**
|
|
4659
|
+
* Disassociate Group to Service Credential
|
|
4660
|
+
*/
|
|
4661
|
+
export function disassociateGroupToServiceCredential({ id, groupId }: {
|
|
4662
|
+
id: string;
|
|
4663
|
+
groupId: string;
|
|
4664
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4665
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4666
|
+
status: 204;
|
|
4667
|
+
} | {
|
|
4668
|
+
status: 403;
|
|
4669
|
+
data: ErrorResponse;
|
|
4670
|
+
} | {
|
|
4671
|
+
status: 500;
|
|
4672
|
+
data: ErrorResponse;
|
|
4673
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}/teams/${encodeURIComponent(groupId)}`, {
|
|
4674
|
+
...opts,
|
|
4675
|
+
method: "DELETE"
|
|
4676
|
+
}));
|
|
4677
|
+
}
|
|
4678
|
+
/**
|
|
4679
|
+
* Remove Role from Member
|
|
4680
|
+
*/
|
|
4681
|
+
export function removeRoleFromMember({ roleId, memberId }: {
|
|
4682
|
+
roleId: string;
|
|
4683
|
+
memberId: string;
|
|
4684
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4685
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4686
|
+
status: 200;
|
|
4687
|
+
} | {
|
|
4688
|
+
status: 204;
|
|
4689
|
+
} | {
|
|
4690
|
+
status: 403;
|
|
4691
|
+
data: ErrorResponse;
|
|
4692
|
+
} | {
|
|
4693
|
+
status: 404;
|
|
4694
|
+
data: ErrorResponse;
|
|
4695
|
+
} | {
|
|
4696
|
+
status: 422;
|
|
4697
|
+
data: ErrorResponse;
|
|
4698
|
+
} | {
|
|
4699
|
+
status: 500;
|
|
4700
|
+
data: ErrorResponse;
|
|
4701
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/members/${encodeURIComponent(memberId)}`, {
|
|
4702
|
+
...opts,
|
|
4703
|
+
method: "DELETE"
|
|
4704
|
+
}));
|
|
4705
|
+
}
|
|
4706
|
+
/**
|
|
4707
|
+
* Delete a resource from Account
|
|
4708
|
+
*/
|
|
4709
|
+
export function deleteResource({ resourceId }: {
|
|
4710
|
+
resourceId: string;
|
|
4711
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4712
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4713
|
+
status: 204;
|
|
4714
|
+
} | {
|
|
4715
|
+
status: 403;
|
|
4716
|
+
data: ErrorResponse;
|
|
4717
|
+
} | {
|
|
4718
|
+
status: 422;
|
|
4719
|
+
data: ErrorResponse;
|
|
4720
|
+
} | {
|
|
4721
|
+
status: 500;
|
|
4722
|
+
data: ErrorResponse;
|
|
4723
|
+
}>(`/v1/resources/${encodeURIComponent(resourceId)}`, {
|
|
4724
|
+
...opts,
|
|
4725
|
+
method: "DELETE"
|
|
4726
|
+
}));
|
|
4727
|
+
}
|
|
4728
|
+
/**
|
|
4729
|
+
* Delete Group role
|
|
4730
|
+
*/
|
|
4731
|
+
export function deleteRole({ groupId, roleId }: {
|
|
4732
|
+
groupId: string;
|
|
4733
|
+
roleId: string;
|
|
4734
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4735
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4736
|
+
status: 204;
|
|
4737
|
+
} | {
|
|
4738
|
+
status: 403;
|
|
4739
|
+
data: ErrorResponse;
|
|
4740
|
+
} | {
|
|
4741
|
+
status: 422;
|
|
4742
|
+
data: ErrorResponse;
|
|
4743
|
+
} | {
|
|
4744
|
+
status: 500;
|
|
4745
|
+
data: ErrorResponse;
|
|
4746
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/roles/${encodeURIComponent(roleId)}`, {
|
|
4747
|
+
...opts,
|
|
4748
|
+
method: "DELETE"
|
|
4749
|
+
}));
|
|
4750
|
+
}
|
|
4751
|
+
/**
|
|
4752
|
+
* Delete Resource from Group
|
|
4753
|
+
*/
|
|
4754
|
+
export function deleteResourceFromGroup({ groupId, resourceId }: {
|
|
4755
|
+
groupId: string;
|
|
4756
|
+
resourceId: string;
|
|
4757
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4758
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4759
|
+
status: 204;
|
|
4760
|
+
} | {
|
|
4761
|
+
status: 403;
|
|
4762
|
+
data: ErrorResponse;
|
|
4763
|
+
} | {
|
|
4764
|
+
status: 500;
|
|
4765
|
+
data: ErrorResponse;
|
|
4766
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/resources/${encodeURIComponent(resourceId)}`, {
|
|
4767
|
+
...opts,
|
|
4768
|
+
method: "DELETE"
|
|
4769
|
+
}));
|
|
4770
|
+
}
|
|
4771
|
+
/**
|
|
4772
|
+
* Delete Group member
|
|
4773
|
+
*/
|
|
4774
|
+
export function deleteMember({ groupId, memberId }: {
|
|
4775
|
+
groupId: string;
|
|
4776
|
+
memberId: string;
|
|
4777
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4778
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4779
|
+
status: 204;
|
|
4780
|
+
} | {
|
|
4781
|
+
status: 403;
|
|
4782
|
+
data: ErrorResponse;
|
|
4783
|
+
} | {
|
|
4784
|
+
status: 422;
|
|
4785
|
+
data: ErrorResponse;
|
|
4786
|
+
} | {
|
|
4787
|
+
status: 500;
|
|
4788
|
+
data: ErrorResponse;
|
|
4789
|
+
}>(`/v1/groups/${encodeURIComponent(groupId)}/members/${encodeURIComponent(memberId)}`, {
|
|
4790
|
+
...opts,
|
|
4791
|
+
method: "DELETE"
|
|
4792
|
+
}));
|
|
4793
|
+
}
|