@stack-spot/portal-network 0.71.0 → 0.72.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/CHANGELOG.md +7 -0
- package/dist/api/account.d.ts +519 -85
- package/dist/api/account.d.ts.map +1 -1
- package/dist/api/account.js +337 -22
- package/dist/api/account.js.map +1 -1
- package/dist/client/account.d.ts +178 -2
- package/dist/client/account.d.ts.map +1 -1
- package/dist/client/account.js +115 -16
- package/dist/client/account.js.map +1 -1
- package/package.json +1 -1
- package/src/api/account.ts +1127 -293
- package/src/client/account.ts +74 -19
package/src/api/account.ts
CHANGED
|
@@ -8,11 +8,11 @@ import * as Oazapfts from "@oazapfts/runtime";
|
|
|
8
8
|
import * as QS from "@oazapfts/runtime/query";
|
|
9
9
|
export const defaults: Oazapfts.Defaults<Oazapfts.CustomHeaders> = {
|
|
10
10
|
headers: {},
|
|
11
|
-
baseUrl: "https://account-account-api.
|
|
11
|
+
baseUrl: "https://account-account-api.stg.stackspot.com",
|
|
12
12
|
};
|
|
13
13
|
const oazapfts = Oazapfts.runtime(defaults);
|
|
14
14
|
export const servers = {
|
|
15
|
-
generatedServerUrl: "https://account-account-api.
|
|
15
|
+
generatedServerUrl: "https://account-account-api.stg.stackspot.com"
|
|
16
16
|
};
|
|
17
17
|
export type UserScmInfoResponse = {
|
|
18
18
|
/** Secrets name */
|
|
@@ -111,22 +111,35 @@ export type UpdateAccountRoleRequest = {
|
|
|
111
111
|
/** List of new permissions to add to the role. */
|
|
112
112
|
permissionIds?: string[];
|
|
113
113
|
};
|
|
114
|
-
export type
|
|
114
|
+
export type ResourceActionResponse = {
|
|
115
|
+
/** Action id. */
|
|
115
116
|
id: string;
|
|
116
|
-
|
|
117
|
+
/** Action Client id. */
|
|
118
|
+
clientId?: string;
|
|
119
|
+
/** Action name. */
|
|
117
120
|
name: string;
|
|
121
|
+
/** Action description. */
|
|
118
122
|
description: string;
|
|
119
|
-
|
|
123
|
+
/** Action creation date. */
|
|
124
|
+
createdAt: string;
|
|
125
|
+
/** Action status. */
|
|
120
126
|
active?: boolean;
|
|
121
127
|
};
|
|
122
|
-
export type
|
|
128
|
+
export type RoleResourceResponse = {
|
|
129
|
+
/** Id of resource. */
|
|
123
130
|
id: string;
|
|
131
|
+
/** Name of resource. */
|
|
124
132
|
name: string;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
133
|
+
/** Description of resource. */
|
|
134
|
+
description?: string;
|
|
135
|
+
/** Type of resource. */
|
|
136
|
+
resourceTypeId: string;
|
|
137
|
+
/** Creation date of resource. */
|
|
138
|
+
createdAt: string;
|
|
139
|
+
/** Global resource id of resource. */
|
|
140
|
+
globalResourceId: string;
|
|
141
|
+
/** Creation date of resource. */
|
|
142
|
+
actions?: ResourceActionResponse[];
|
|
130
143
|
};
|
|
131
144
|
export type IamCreateStatementRequest = {
|
|
132
145
|
actions: string[];
|
|
@@ -348,28 +361,6 @@ export type AccountGroupMappingUpdateRequest = {
|
|
|
348
361
|
/** Group Mapping name */
|
|
349
362
|
name: string;
|
|
350
363
|
};
|
|
351
|
-
export type ServiceCredentialCreateRequestV2 = {
|
|
352
|
-
/** Service credential name */
|
|
353
|
-
name: string;
|
|
354
|
-
/** Service credential expiration days */
|
|
355
|
-
description?: string;
|
|
356
|
-
/** Service credential expiration days */
|
|
357
|
-
expirationDays?: number;
|
|
358
|
-
/** Service credential statements */
|
|
359
|
-
scopes?: string[];
|
|
360
|
-
};
|
|
361
|
-
export type ServiceCredentialCreateResponseV2 = {
|
|
362
|
-
/** Client ID service credential */
|
|
363
|
-
clientId: string;
|
|
364
|
-
/** Client Secret service credential */
|
|
365
|
-
clientSecret?: string;
|
|
366
|
-
/** Service credential scopes */
|
|
367
|
-
scopes: string[];
|
|
368
|
-
/** Service credential expiration date */
|
|
369
|
-
expirationDate?: string;
|
|
370
|
-
/** Account tenant */
|
|
371
|
-
tenant: string;
|
|
372
|
-
};
|
|
373
364
|
export type ServiceCredentialResponse = {
|
|
374
365
|
/** Service credential id */
|
|
375
366
|
id: string;
|
|
@@ -392,6 +383,40 @@ export type ServiceCredentialResponse = {
|
|
|
392
383
|
/** Service credential status */
|
|
393
384
|
status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
|
|
394
385
|
};
|
|
386
|
+
export type PageResponseServiceCredentialResponse = {
|
|
387
|
+
/** Current page content */
|
|
388
|
+
items?: ServiceCredentialResponse[];
|
|
389
|
+
/** Total elements found */
|
|
390
|
+
totalElements: number;
|
|
391
|
+
/** Current page number */
|
|
392
|
+
page: number;
|
|
393
|
+
/** Length of current page items */
|
|
394
|
+
size: number;
|
|
395
|
+
/** Total pages found */
|
|
396
|
+
totalPages: number;
|
|
397
|
+
};
|
|
398
|
+
export type ServiceCredentialCreateRequestV2 = {
|
|
399
|
+
/** Service credential name */
|
|
400
|
+
name: string;
|
|
401
|
+
/** Service credential expiration days */
|
|
402
|
+
description?: string;
|
|
403
|
+
/** Service credential expiration days */
|
|
404
|
+
expirationDays?: number;
|
|
405
|
+
/** Service credential statements */
|
|
406
|
+
scopes?: string[];
|
|
407
|
+
};
|
|
408
|
+
export type ServiceCredentialCreateResponseV2 = {
|
|
409
|
+
/** Client ID service credential */
|
|
410
|
+
clientId: string;
|
|
411
|
+
/** Client Secret service credential */
|
|
412
|
+
clientSecret?: string;
|
|
413
|
+
/** Service credential scopes */
|
|
414
|
+
scopes: string[];
|
|
415
|
+
/** Service credential expiration date */
|
|
416
|
+
expirationDate?: string;
|
|
417
|
+
/** Account tenant */
|
|
418
|
+
tenant: string;
|
|
419
|
+
};
|
|
395
420
|
export type StatementRequest = {
|
|
396
421
|
/** Resource id */
|
|
397
422
|
resource: string;
|
|
@@ -875,6 +900,8 @@ export type PageResponseAccountResponse = {
|
|
|
875
900
|
page: number;
|
|
876
901
|
/** Length of current page items */
|
|
877
902
|
size: number;
|
|
903
|
+
/** Total pages found */
|
|
904
|
+
totalPages: number;
|
|
878
905
|
};
|
|
879
906
|
export type CreateAccountOrderRequest = {
|
|
880
907
|
/** The account's name. Example: Zup IT Innovation */
|
|
@@ -905,6 +932,8 @@ export type PageResponseAccountSsoGroupMappingResponse = {
|
|
|
905
932
|
page: number;
|
|
906
933
|
/** Length of current page items */
|
|
907
934
|
size: number;
|
|
935
|
+
/** Total pages found */
|
|
936
|
+
totalPages: number;
|
|
908
937
|
};
|
|
909
938
|
export type AccountGroupMappingCreateRequest = {
|
|
910
939
|
/** Group Mapping externalUserAttribute */
|
|
@@ -1163,6 +1192,183 @@ export type AccountPartnerAdminDataUpdateRequest = {
|
|
|
1163
1192
|
/** Admin email */
|
|
1164
1193
|
email: string;
|
|
1165
1194
|
};
|
|
1195
|
+
export type PageResponseGroupReadResponse = {
|
|
1196
|
+
/** Current page content */
|
|
1197
|
+
items?: GroupReadResponse[];
|
|
1198
|
+
/** Total elements found */
|
|
1199
|
+
totalElements: number;
|
|
1200
|
+
/** Current page number */
|
|
1201
|
+
page: number;
|
|
1202
|
+
/** Length of current page items */
|
|
1203
|
+
size: number;
|
|
1204
|
+
/** Total pages found */
|
|
1205
|
+
totalPages: number;
|
|
1206
|
+
};
|
|
1207
|
+
export type PageResponseRoleResponse = {
|
|
1208
|
+
/** Current page content */
|
|
1209
|
+
items?: RoleResponse[];
|
|
1210
|
+
/** Total elements found */
|
|
1211
|
+
totalElements: number;
|
|
1212
|
+
/** Current page number */
|
|
1213
|
+
page: number;
|
|
1214
|
+
/** Length of current page items */
|
|
1215
|
+
size: number;
|
|
1216
|
+
/** Total pages found */
|
|
1217
|
+
totalPages: number;
|
|
1218
|
+
};
|
|
1219
|
+
export type PageResponseRoleResourceResponse = {
|
|
1220
|
+
/** Current page content */
|
|
1221
|
+
items?: RoleResourceResponse[];
|
|
1222
|
+
/** Total elements found */
|
|
1223
|
+
totalElements: number;
|
|
1224
|
+
/** Current page number */
|
|
1225
|
+
page: number;
|
|
1226
|
+
/** Length of current page items */
|
|
1227
|
+
size: number;
|
|
1228
|
+
/** Total pages found */
|
|
1229
|
+
totalPages: number;
|
|
1230
|
+
};
|
|
1231
|
+
export type PageResponseRoleMemberResponse = {
|
|
1232
|
+
/** Current page content */
|
|
1233
|
+
items?: RoleMemberResponse[];
|
|
1234
|
+
/** Total elements found */
|
|
1235
|
+
totalElements: number;
|
|
1236
|
+
/** Current page number */
|
|
1237
|
+
page: number;
|
|
1238
|
+
/** Length of current page items */
|
|
1239
|
+
size: number;
|
|
1240
|
+
/** Total pages found */
|
|
1241
|
+
totalPages: number;
|
|
1242
|
+
};
|
|
1243
|
+
export type PageResponseRoleGroupResponse = {
|
|
1244
|
+
/** Current page content */
|
|
1245
|
+
items?: RoleGroupResponse[];
|
|
1246
|
+
/** Total elements found */
|
|
1247
|
+
totalElements: number;
|
|
1248
|
+
/** Current page number */
|
|
1249
|
+
page: number;
|
|
1250
|
+
/** Length of current page items */
|
|
1251
|
+
size: number;
|
|
1252
|
+
/** Total pages found */
|
|
1253
|
+
totalPages: number;
|
|
1254
|
+
};
|
|
1255
|
+
export type PageResponseResourceResponse = {
|
|
1256
|
+
/** Current page content */
|
|
1257
|
+
items?: ResourceResponse[];
|
|
1258
|
+
/** Total elements found */
|
|
1259
|
+
totalElements: number;
|
|
1260
|
+
/** Current page number */
|
|
1261
|
+
page: number;
|
|
1262
|
+
/** Length of current page items */
|
|
1263
|
+
size: number;
|
|
1264
|
+
/** Total pages found */
|
|
1265
|
+
totalPages: number;
|
|
1266
|
+
};
|
|
1267
|
+
export type MembersFromResourceResponse = {
|
|
1268
|
+
/** Member ID */
|
|
1269
|
+
id: string;
|
|
1270
|
+
/** Member username */
|
|
1271
|
+
username: string;
|
|
1272
|
+
/** Member company email */
|
|
1273
|
+
email: string;
|
|
1274
|
+
/** Member name */
|
|
1275
|
+
name?: string;
|
|
1276
|
+
/** Member permission actions */
|
|
1277
|
+
actions: string[];
|
|
1278
|
+
};
|
|
1279
|
+
export type PageResponseMembersFromResourceResponse = {
|
|
1280
|
+
/** Current page content */
|
|
1281
|
+
items?: MembersFromResourceResponse[];
|
|
1282
|
+
/** Total elements found */
|
|
1283
|
+
totalElements: number;
|
|
1284
|
+
/** Current page number */
|
|
1285
|
+
page: number;
|
|
1286
|
+
/** Length of current page items */
|
|
1287
|
+
size: number;
|
|
1288
|
+
/** Total pages found */
|
|
1289
|
+
totalPages: number;
|
|
1290
|
+
};
|
|
1291
|
+
export type GroupsFromResourceResponse = {
|
|
1292
|
+
/** Group ID */
|
|
1293
|
+
id: string;
|
|
1294
|
+
/** Group name */
|
|
1295
|
+
name: string;
|
|
1296
|
+
/** Group description */
|
|
1297
|
+
description?: string;
|
|
1298
|
+
/** Group slug */
|
|
1299
|
+
slug: string;
|
|
1300
|
+
/** Group member count */
|
|
1301
|
+
memberCount: number;
|
|
1302
|
+
/** Group permission actions */
|
|
1303
|
+
actions: string[];
|
|
1304
|
+
};
|
|
1305
|
+
export type PageResponseGroupsFromResourceResponse = {
|
|
1306
|
+
/** Current page content */
|
|
1307
|
+
items?: GroupsFromResourceResponse[];
|
|
1308
|
+
/** Total elements found */
|
|
1309
|
+
totalElements: number;
|
|
1310
|
+
/** Current page number */
|
|
1311
|
+
page: number;
|
|
1312
|
+
/** Length of current page items */
|
|
1313
|
+
size: number;
|
|
1314
|
+
/** Total pages found */
|
|
1315
|
+
totalPages: number;
|
|
1316
|
+
};
|
|
1317
|
+
export type ResourceTypeResponse = {
|
|
1318
|
+
id: string;
|
|
1319
|
+
name: string;
|
|
1320
|
+
slug: string;
|
|
1321
|
+
description: string;
|
|
1322
|
+
createdAt: string;
|
|
1323
|
+
};
|
|
1324
|
+
export type PageResponseResourceTypeResponse = {
|
|
1325
|
+
/** Current page content */
|
|
1326
|
+
items?: ResourceTypeResponse[];
|
|
1327
|
+
/** Total elements found */
|
|
1328
|
+
totalElements: number;
|
|
1329
|
+
/** Current page number */
|
|
1330
|
+
page: number;
|
|
1331
|
+
/** Length of current page items */
|
|
1332
|
+
size: number;
|
|
1333
|
+
/** Total pages found */
|
|
1334
|
+
totalPages: number;
|
|
1335
|
+
};
|
|
1336
|
+
export type PageResponseAccountMemberResponse = {
|
|
1337
|
+
/** Current page content */
|
|
1338
|
+
items?: AccountMemberResponse[];
|
|
1339
|
+
/** Total elements found */
|
|
1340
|
+
totalElements: number;
|
|
1341
|
+
/** Current page number */
|
|
1342
|
+
page: number;
|
|
1343
|
+
/** Length of current page items */
|
|
1344
|
+
size: number;
|
|
1345
|
+
/** Total pages found */
|
|
1346
|
+
totalPages: number;
|
|
1347
|
+
};
|
|
1348
|
+
export type PageResponseReadMemberRoleResponse = {
|
|
1349
|
+
/** Current page content */
|
|
1350
|
+
items?: ReadMemberRoleResponse[];
|
|
1351
|
+
/** Total elements found */
|
|
1352
|
+
totalElements: number;
|
|
1353
|
+
/** Current page number */
|
|
1354
|
+
page: number;
|
|
1355
|
+
/** Length of current page items */
|
|
1356
|
+
size: number;
|
|
1357
|
+
/** Total pages found */
|
|
1358
|
+
totalPages: number;
|
|
1359
|
+
};
|
|
1360
|
+
export type PageResponseReadGroupMembersResponse = {
|
|
1361
|
+
/** Current page content */
|
|
1362
|
+
items?: ReadGroupMembersResponse[];
|
|
1363
|
+
/** Total elements found */
|
|
1364
|
+
totalElements: number;
|
|
1365
|
+
/** Current page number */
|
|
1366
|
+
page: number;
|
|
1367
|
+
/** Length of current page items */
|
|
1368
|
+
size: number;
|
|
1369
|
+
/** Total pages found */
|
|
1370
|
+
totalPages: number;
|
|
1371
|
+
};
|
|
1166
1372
|
export type AccountCollaborationInfoResponse = {
|
|
1167
1373
|
/** Account ID */
|
|
1168
1374
|
id: string;
|
|
@@ -1261,39 +1467,6 @@ export type RolePermissionResponse = {
|
|
|
1261
1467
|
/** The statements defined in the permission */
|
|
1262
1468
|
statements: PermissionStatementResponse[];
|
|
1263
1469
|
};
|
|
1264
|
-
export type MembersFromResourceResponse = {
|
|
1265
|
-
/** Member ID */
|
|
1266
|
-
id: string;
|
|
1267
|
-
/** Member username */
|
|
1268
|
-
username: string;
|
|
1269
|
-
/** Member company email */
|
|
1270
|
-
email: string;
|
|
1271
|
-
/** Member name */
|
|
1272
|
-
name?: string;
|
|
1273
|
-
/** Member permission actions */
|
|
1274
|
-
actions: string[];
|
|
1275
|
-
};
|
|
1276
|
-
export type GroupsFromResourceResponse = {
|
|
1277
|
-
/** Group ID */
|
|
1278
|
-
id: string;
|
|
1279
|
-
/** Group name */
|
|
1280
|
-
name: string;
|
|
1281
|
-
/** Group description */
|
|
1282
|
-
description?: string;
|
|
1283
|
-
/** Group slug */
|
|
1284
|
-
slug: string;
|
|
1285
|
-
/** Group member count */
|
|
1286
|
-
memberCount: number;
|
|
1287
|
-
/** Group permission actions */
|
|
1288
|
-
actions: string[];
|
|
1289
|
-
};
|
|
1290
|
-
export type ResourceTypeResponse = {
|
|
1291
|
-
id: string;
|
|
1292
|
-
name: string;
|
|
1293
|
-
slug: string;
|
|
1294
|
-
description: string;
|
|
1295
|
-
createdAt: string;
|
|
1296
|
-
};
|
|
1297
1470
|
export type ResourceDto = {
|
|
1298
1471
|
id: string;
|
|
1299
1472
|
name: string;
|
|
@@ -1355,6 +1528,8 @@ export type PageResponseAccountSsoResponse = {
|
|
|
1355
1528
|
page: number;
|
|
1356
1529
|
/** Length of current page items */
|
|
1357
1530
|
size: number;
|
|
1531
|
+
/** Total pages found */
|
|
1532
|
+
totalPages: number;
|
|
1358
1533
|
};
|
|
1359
1534
|
export type AccountDataAvailableResponse = {
|
|
1360
1535
|
/** Account data (name and slug) is available to be registered */
|
|
@@ -1616,9 +1791,9 @@ export function deleteAccountRole({ roleId }: {
|
|
|
1616
1791
|
}));
|
|
1617
1792
|
}
|
|
1618
1793
|
/**
|
|
1619
|
-
* Get all Global
|
|
1794
|
+
* Get all Global Resources and Actions compared to role
|
|
1620
1795
|
*/
|
|
1621
|
-
export function
|
|
1796
|
+
export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
1622
1797
|
roleId: string;
|
|
1623
1798
|
size?: any;
|
|
1624
1799
|
page?: any;
|
|
@@ -1633,7 +1808,7 @@ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, dir
|
|
|
1633
1808
|
}, opts?: Oazapfts.RequestOpts) {
|
|
1634
1809
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
1635
1810
|
status: 200;
|
|
1636
|
-
data:
|
|
1811
|
+
data: RoleResourceResponse[];
|
|
1637
1812
|
} | {
|
|
1638
1813
|
status: 403;
|
|
1639
1814
|
data: ErrorResponse;
|
|
@@ -2014,36 +2189,79 @@ export function deleteGroupMapping({ id, attributeImporterId }: {
|
|
|
2014
2189
|
}));
|
|
2015
2190
|
}
|
|
2016
2191
|
/**
|
|
2017
|
-
*
|
|
2192
|
+
* Get Service Credentials
|
|
2018
2193
|
*/
|
|
2019
|
-
export function
|
|
2020
|
-
|
|
2194
|
+
export function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }: {
|
|
2195
|
+
size?: any;
|
|
2196
|
+
page?: any;
|
|
2197
|
+
sort?: string;
|
|
2198
|
+
direction?: "ASC" | "DESC";
|
|
2199
|
+
search?: string;
|
|
2200
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
2201
|
+
filterBy?: string;
|
|
2202
|
+
filterValue?: string;
|
|
2203
|
+
multiFilterMode?: string;
|
|
2204
|
+
filterIn?: any;
|
|
2205
|
+
name?: string;
|
|
2206
|
+
status?: string;
|
|
2021
2207
|
}, opts?: Oazapfts.RequestOpts) {
|
|
2022
2208
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2023
2209
|
status: 200;
|
|
2024
|
-
data:
|
|
2025
|
-
} | {
|
|
2026
|
-
status: 400;
|
|
2027
|
-
data: ErrorResponse;
|
|
2210
|
+
data: PageResponseServiceCredentialResponse;
|
|
2028
2211
|
} | {
|
|
2029
2212
|
status: 403;
|
|
2030
2213
|
data: ErrorResponse;
|
|
2031
|
-
} | {
|
|
2032
|
-
status: 422;
|
|
2033
|
-
data: ErrorResponse;
|
|
2034
2214
|
} | {
|
|
2035
2215
|
status: 500;
|
|
2036
2216
|
data: ErrorResponse;
|
|
2037
|
-
}>(
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2217
|
+
}>(`/v2/service-credentials${QS.query(QS.explode({
|
|
2218
|
+
size,
|
|
2219
|
+
page,
|
|
2220
|
+
sort,
|
|
2221
|
+
direction,
|
|
2222
|
+
search,
|
|
2223
|
+
filterMode,
|
|
2224
|
+
filterBy,
|
|
2225
|
+
filterValue,
|
|
2226
|
+
multiFilterMode,
|
|
2227
|
+
filterIn,
|
|
2228
|
+
name,
|
|
2229
|
+
status
|
|
2230
|
+
}))}`, {
|
|
2231
|
+
...opts
|
|
2232
|
+
}));
|
|
2233
|
+
}
|
|
2234
|
+
/**
|
|
2235
|
+
* Create Service Credential v2
|
|
2236
|
+
*/
|
|
2237
|
+
export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
|
|
2238
|
+
serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
|
|
2239
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
2240
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
2241
|
+
status: 200;
|
|
2242
|
+
data: ServiceCredentialCreateResponseV2;
|
|
2243
|
+
} | {
|
|
2244
|
+
status: 400;
|
|
2245
|
+
data: ErrorResponse;
|
|
2246
|
+
} | {
|
|
2247
|
+
status: 403;
|
|
2248
|
+
data: ErrorResponse;
|
|
2249
|
+
} | {
|
|
2250
|
+
status: 422;
|
|
2251
|
+
data: ErrorResponse;
|
|
2252
|
+
} | {
|
|
2253
|
+
status: 500;
|
|
2254
|
+
data: ErrorResponse;
|
|
2255
|
+
}>("/v2/service-credentials", oazapfts.json({
|
|
2256
|
+
...opts,
|
|
2257
|
+
method: "POST",
|
|
2258
|
+
body: serviceCredentialCreateRequestV2
|
|
2259
|
+
})));
|
|
2260
|
+
}
|
|
2261
|
+
/**
|
|
2262
|
+
* Get Service Credentials
|
|
2263
|
+
*/
|
|
2264
|
+
export function getServiceCredentials1({ name, status, page, size }: {
|
|
2047
2265
|
name?: string;
|
|
2048
2266
|
status?: string;
|
|
2049
2267
|
page?: string;
|
|
@@ -2155,7 +2373,7 @@ export function createScope({ iamCreateScopeRequest }: {
|
|
|
2155
2373
|
/**
|
|
2156
2374
|
* Get Roles
|
|
2157
2375
|
*/
|
|
2158
|
-
export function
|
|
2376
|
+
export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2159
2377
|
size?: any;
|
|
2160
2378
|
page?: any;
|
|
2161
2379
|
sort?: string;
|
|
@@ -2218,7 +2436,7 @@ export function createAccountRole({ createAccountRoleRequest }: {
|
|
|
2218
2436
|
/**
|
|
2219
2437
|
* Get role members
|
|
2220
2438
|
*/
|
|
2221
|
-
export function
|
|
2439
|
+
export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2222
2440
|
roleId: string;
|
|
2223
2441
|
size?: any;
|
|
2224
2442
|
page?: any;
|
|
@@ -2295,7 +2513,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
|
|
|
2295
2513
|
/**
|
|
2296
2514
|
* Get Groups from role
|
|
2297
2515
|
*/
|
|
2298
|
-
export function
|
|
2516
|
+
export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2299
2517
|
roleId: string;
|
|
2300
2518
|
size?: any;
|
|
2301
2519
|
page?: any;
|
|
@@ -2364,7 +2582,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
|
|
|
2364
2582
|
/**
|
|
2365
2583
|
* Get Resources
|
|
2366
2584
|
*/
|
|
2367
|
-
export function
|
|
2585
|
+
export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2368
2586
|
size?: any;
|
|
2369
2587
|
page?: any;
|
|
2370
2588
|
sort?: string;
|
|
@@ -2427,7 +2645,7 @@ export function createResource({ createResourceRequest }: {
|
|
|
2427
2645
|
/**
|
|
2428
2646
|
* Get Account Members
|
|
2429
2647
|
*/
|
|
2430
|
-
export function
|
|
2648
|
+
export function getAccountMembers2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2431
2649
|
size?: any;
|
|
2432
2650
|
page?: any;
|
|
2433
2651
|
sort?: string;
|
|
@@ -2490,7 +2708,7 @@ export function createUser({ createUserRequest }: {
|
|
|
2490
2708
|
/**
|
|
2491
2709
|
* Get member roles
|
|
2492
2710
|
*/
|
|
2493
|
-
export function
|
|
2711
|
+
export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2494
2712
|
memberId: string;
|
|
2495
2713
|
size?: any;
|
|
2496
2714
|
page?: any;
|
|
@@ -2579,7 +2797,7 @@ export function resetOtp({ memberId }: {
|
|
|
2579
2797
|
/**
|
|
2580
2798
|
* Get member Groups
|
|
2581
2799
|
*/
|
|
2582
|
-
export function
|
|
2800
|
+
export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2583
2801
|
memberId: string;
|
|
2584
2802
|
size?: any;
|
|
2585
2803
|
page?: any;
|
|
@@ -2791,7 +3009,7 @@ export function createUserInvitation({ createUserInvitationRequest }: {
|
|
|
2791
3009
|
/**
|
|
2792
3010
|
* Get Groups
|
|
2793
3011
|
*/
|
|
2794
|
-
export function
|
|
3012
|
+
export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
|
|
2795
3013
|
size?: any;
|
|
2796
3014
|
page?: any;
|
|
2797
3015
|
sort?: string;
|
|
@@ -2856,7 +3074,7 @@ export function save({ newGroupRequest }: {
|
|
|
2856
3074
|
/**
|
|
2857
3075
|
* Get Group members
|
|
2858
3076
|
*/
|
|
2859
|
-
export function
|
|
3077
|
+
export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2860
3078
|
groupId: string;
|
|
2861
3079
|
size?: any;
|
|
2862
3080
|
page?: any;
|
|
@@ -2922,7 +3140,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }: {
|
|
|
2922
3140
|
/**
|
|
2923
3141
|
* Get Group Resources
|
|
2924
3142
|
*/
|
|
2925
|
-
export function
|
|
3143
|
+
export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2926
3144
|
groupId: string;
|
|
2927
3145
|
size?: any;
|
|
2928
3146
|
page?: any;
|
|
@@ -2983,7 +3201,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }: {
|
|
|
2983
3201
|
/**
|
|
2984
3202
|
* Get Group members
|
|
2985
3203
|
*/
|
|
2986
|
-
export function
|
|
3204
|
+
export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
2987
3205
|
groupId: string;
|
|
2988
3206
|
size?: any;
|
|
2989
3207
|
page?: any;
|
|
@@ -4229,96 +4447,28 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
|
|
|
4229
4447
|
})));
|
|
4230
4448
|
}
|
|
4231
4449
|
/**
|
|
4232
|
-
*
|
|
4233
|
-
*/
|
|
4234
|
-
export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
4235
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4236
|
-
status: 200;
|
|
4237
|
-
} | {
|
|
4238
|
-
status: 403;
|
|
4239
|
-
data: ErrorResponse;
|
|
4240
|
-
} | {
|
|
4241
|
-
status: 404;
|
|
4242
|
-
data: ErrorResponse;
|
|
4243
|
-
} | {
|
|
4244
|
-
status: 422;
|
|
4245
|
-
data: ErrorResponse;
|
|
4246
|
-
} | {
|
|
4247
|
-
status: 500;
|
|
4248
|
-
data: ErrorResponse;
|
|
4249
|
-
}>("/v1/users/scm-credentials/configuration-status", {
|
|
4250
|
-
...opts
|
|
4251
|
-
}));
|
|
4252
|
-
}
|
|
4253
|
-
/**
|
|
4254
|
-
* List Accounts of User can use and collaborate.
|
|
4255
|
-
*/
|
|
4256
|
-
export function getUserAccountWithRole(opts?: Oazapfts.RequestOpts) {
|
|
4257
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4258
|
-
status: 200;
|
|
4259
|
-
data: AccountCollaborationInfoResponse[];
|
|
4260
|
-
} | {
|
|
4261
|
-
status: 403;
|
|
4262
|
-
data: ErrorResponse;
|
|
4263
|
-
} | {
|
|
4264
|
-
status: 500;
|
|
4265
|
-
data: ErrorResponse;
|
|
4266
|
-
}>("/v1/users/accounts", {
|
|
4267
|
-
...opts
|
|
4268
|
-
}));
|
|
4269
|
-
}
|
|
4270
|
-
/**
|
|
4271
|
-
* Get Accounts
|
|
4272
|
-
*/
|
|
4273
|
-
export function getAccounts({ accountType, slug, id }: {
|
|
4274
|
-
accountType?: string;
|
|
4275
|
-
slug?: string;
|
|
4276
|
-
id?: string;
|
|
4277
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
4278
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4279
|
-
status: 200;
|
|
4280
|
-
data: AccountDataReadResponse[];
|
|
4281
|
-
} | {
|
|
4282
|
-
status: 403;
|
|
4283
|
-
data: ErrorResponse;
|
|
4284
|
-
} | {
|
|
4285
|
-
status: 500;
|
|
4286
|
-
data: ErrorResponse;
|
|
4287
|
-
}>(`/v1/stackspot/accounts${QS.query(QS.explode({
|
|
4288
|
-
accountType,
|
|
4289
|
-
slug,
|
|
4290
|
-
id
|
|
4291
|
-
}))}`, {
|
|
4292
|
-
...opts
|
|
4293
|
-
}));
|
|
4294
|
-
}
|
|
4295
|
-
/**
|
|
4296
|
-
* Get Account by id
|
|
4450
|
+
* List service credential groups
|
|
4297
4451
|
*/
|
|
4298
|
-
export function
|
|
4452
|
+
export function getServiceCredentialGroups({ id }: {
|
|
4299
4453
|
id: string;
|
|
4300
4454
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4301
4455
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4302
4456
|
status: 200;
|
|
4303
|
-
data:
|
|
4457
|
+
data: PageResponseGroupReadResponse;
|
|
4304
4458
|
} | {
|
|
4305
4459
|
status: 403;
|
|
4306
4460
|
data: ErrorResponse;
|
|
4307
|
-
} | {
|
|
4308
|
-
status: 404;
|
|
4309
|
-
data: ErrorResponse;
|
|
4310
4461
|
} | {
|
|
4311
4462
|
status: 500;
|
|
4312
4463
|
data: ErrorResponse;
|
|
4313
|
-
}>(`/
|
|
4464
|
+
}>(`/v2/service-credentials/${encodeURIComponent(id)}/groups`, {
|
|
4314
4465
|
...opts
|
|
4315
4466
|
}));
|
|
4316
4467
|
}
|
|
4317
4468
|
/**
|
|
4318
|
-
* Get
|
|
4469
|
+
* Get Roles
|
|
4319
4470
|
*/
|
|
4320
|
-
export function
|
|
4321
|
-
id: string;
|
|
4471
|
+
export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4322
4472
|
size?: any;
|
|
4323
4473
|
page?: any;
|
|
4324
4474
|
sort?: string;
|
|
@@ -4332,14 +4482,14 @@ export function getAccountMembers({ id, size, page, sort, direction, search, fil
|
|
|
4332
4482
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4333
4483
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4334
4484
|
status: 200;
|
|
4335
|
-
data:
|
|
4485
|
+
data: PageResponseRoleResponse;
|
|
4336
4486
|
} | {
|
|
4337
4487
|
status: 403;
|
|
4338
4488
|
data: ErrorResponse;
|
|
4339
4489
|
} | {
|
|
4340
4490
|
status: 500;
|
|
4341
4491
|
data: ErrorResponse;
|
|
4342
|
-
}>(`/
|
|
4492
|
+
}>(`/v2/roles${QS.query(QS.explode({
|
|
4343
4493
|
size,
|
|
4344
4494
|
page,
|
|
4345
4495
|
sort,
|
|
@@ -4355,109 +4505,9 @@ export function getAccountMembers({ id, size, page, sort, direction, search, fil
|
|
|
4355
4505
|
}));
|
|
4356
4506
|
}
|
|
4357
4507
|
/**
|
|
4358
|
-
* Get
|
|
4359
|
-
*/
|
|
4360
|
-
export function getServiceCredential({ id }: {
|
|
4361
|
-
id: string;
|
|
4362
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
4363
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4364
|
-
status: 200;
|
|
4365
|
-
data: ServiceCredentialDetailsResponse;
|
|
4366
|
-
} | {
|
|
4367
|
-
status: 403;
|
|
4368
|
-
data: ErrorResponse;
|
|
4369
|
-
} | {
|
|
4370
|
-
status: 500;
|
|
4371
|
-
data: ErrorResponse;
|
|
4372
|
-
}>(`/v1/service-credentials/${encodeURIComponent(id)}`, {
|
|
4373
|
-
...opts
|
|
4374
|
-
}));
|
|
4375
|
-
}
|
|
4376
|
-
/**
|
|
4377
|
-
* List service credential permissions
|
|
4378
|
-
*/
|
|
4379
|
-
export function getServiceCredentialPermissions({ id }: {
|
|
4380
|
-
id: string;
|
|
4381
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
4382
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4383
|
-
status: 200;
|
|
4384
|
-
data: FullResourceResponse[];
|
|
4385
|
-
} | {
|
|
4386
|
-
status: 403;
|
|
4387
|
-
data: ErrorResponse;
|
|
4388
|
-
} | {
|
|
4389
|
-
status: 500;
|
|
4390
|
-
data: ErrorResponse;
|
|
4391
|
-
}>(`/v1/service-credentials/${encodeURIComponent(id)}/permissions`, {
|
|
4392
|
-
...opts
|
|
4393
|
-
}));
|
|
4394
|
-
}
|
|
4395
|
-
/**
|
|
4396
|
-
* List service credential groups
|
|
4397
|
-
*/
|
|
4398
|
-
export function getServiceCredentialGroups({ id }: {
|
|
4399
|
-
id: string;
|
|
4400
|
-
}, opts?: Oazapfts.RequestOpts) {
|
|
4401
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4402
|
-
status: 200;
|
|
4403
|
-
data: GroupReadResponse[];
|
|
4404
|
-
} | {
|
|
4405
|
-
status: 403;
|
|
4406
|
-
data: ErrorResponse;
|
|
4407
|
-
} | {
|
|
4408
|
-
status: 500;
|
|
4409
|
-
data: ErrorResponse;
|
|
4410
|
-
}>(`/v1/service-credentials/${encodeURIComponent(id)}/groups`, {
|
|
4411
|
-
...opts
|
|
4412
|
-
}));
|
|
4413
|
-
}
|
|
4414
|
-
/**
|
|
4415
|
-
* Get SCM provider.
|
|
4416
|
-
*/
|
|
4417
|
-
export function getScmProvider(opts?: Oazapfts.RequestOpts) {
|
|
4418
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4419
|
-
status: 200;
|
|
4420
|
-
data: AccountScmProviderResponse;
|
|
4421
|
-
} | {
|
|
4422
|
-
status: 403;
|
|
4423
|
-
data: ErrorResponse;
|
|
4424
|
-
} | {
|
|
4425
|
-
status: 422;
|
|
4426
|
-
data: ErrorResponse;
|
|
4427
|
-
} | {
|
|
4428
|
-
status: 500;
|
|
4429
|
-
data: ErrorResponse;
|
|
4430
|
-
}>("/v1/scm-credentials/provider", {
|
|
4431
|
-
...opts
|
|
4432
|
-
}));
|
|
4433
|
-
}
|
|
4434
|
-
/**
|
|
4435
|
-
* Verify repository credential configuration status.
|
|
4436
|
-
*/
|
|
4437
|
-
export function isCreatedScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
4438
|
-
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4439
|
-
status: 200;
|
|
4440
|
-
data: AccountScmStatusResponse;
|
|
4441
|
-
} | {
|
|
4442
|
-
status: 403;
|
|
4443
|
-
data: ErrorResponse;
|
|
4444
|
-
} | {
|
|
4445
|
-
status: 404;
|
|
4446
|
-
data: ErrorResponse;
|
|
4447
|
-
} | {
|
|
4448
|
-
status: 422;
|
|
4449
|
-
data: ErrorResponse;
|
|
4450
|
-
} | {
|
|
4451
|
-
status: 500;
|
|
4452
|
-
data: ErrorResponse;
|
|
4453
|
-
}>("/v1/scm-credentials/configuration-status", {
|
|
4454
|
-
...opts
|
|
4455
|
-
}));
|
|
4456
|
-
}
|
|
4457
|
-
/**
|
|
4458
|
-
* Get Permissions from role
|
|
4508
|
+
* Get all Global Resources and Actions compared to role
|
|
4459
4509
|
*/
|
|
4460
|
-
export function
|
|
4510
|
+
export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4461
4511
|
roleId: string;
|
|
4462
4512
|
size?: any;
|
|
4463
4513
|
page?: any;
|
|
@@ -4472,17 +4522,14 @@ export function getPermissionsWithStatus({ roleId, size, page, sort, direction,
|
|
|
4472
4522
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4473
4523
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4474
4524
|
status: 200;
|
|
4475
|
-
data:
|
|
4525
|
+
data: PageResponseRoleResourceResponse;
|
|
4476
4526
|
} | {
|
|
4477
4527
|
status: 403;
|
|
4478
4528
|
data: ErrorResponse;
|
|
4479
|
-
} | {
|
|
4480
|
-
status: 422;
|
|
4481
|
-
data: ErrorResponse;
|
|
4482
4529
|
} | {
|
|
4483
4530
|
status: 500;
|
|
4484
4531
|
data: ErrorResponse;
|
|
4485
|
-
}>(`/
|
|
4532
|
+
}>(`/v2/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
|
|
4486
4533
|
size,
|
|
4487
4534
|
page,
|
|
4488
4535
|
sort,
|
|
@@ -4498,10 +4545,10 @@ export function getPermissionsWithStatus({ roleId, size, page, sort, direction,
|
|
|
4498
4545
|
}));
|
|
4499
4546
|
}
|
|
4500
4547
|
/**
|
|
4501
|
-
* Get
|
|
4548
|
+
* Get role members
|
|
4502
4549
|
*/
|
|
4503
|
-
export function
|
|
4504
|
-
|
|
4550
|
+
export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4551
|
+
roleId: string;
|
|
4505
4552
|
size?: any;
|
|
4506
4553
|
page?: any;
|
|
4507
4554
|
sort?: string;
|
|
@@ -4515,14 +4562,14 @@ export function getResourceMembers({ resourceId, size, page, sort, direction, se
|
|
|
4515
4562
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4516
4563
|
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4517
4564
|
status: 200;
|
|
4518
|
-
data:
|
|
4565
|
+
data: PageResponseRoleMemberResponse;
|
|
4519
4566
|
} | {
|
|
4520
4567
|
status: 403;
|
|
4521
4568
|
data: ErrorResponse;
|
|
4522
4569
|
} | {
|
|
4523
4570
|
status: 500;
|
|
4524
4571
|
data: ErrorResponse;
|
|
4525
|
-
}>(`/
|
|
4572
|
+
}>(`/v2/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
|
|
4526
4573
|
size,
|
|
4527
4574
|
page,
|
|
4528
4575
|
sort,
|
|
@@ -4538,10 +4585,797 @@ export function getResourceMembers({ resourceId, size, page, sort, direction, se
|
|
|
4538
4585
|
}));
|
|
4539
4586
|
}
|
|
4540
4587
|
/**
|
|
4541
|
-
* Get Groups from
|
|
4588
|
+
* Get Groups from role
|
|
4542
4589
|
*/
|
|
4543
|
-
export function
|
|
4544
|
-
|
|
4590
|
+
export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4591
|
+
roleId: string;
|
|
4592
|
+
size?: any;
|
|
4593
|
+
page?: any;
|
|
4594
|
+
sort?: string;
|
|
4595
|
+
direction?: "ASC" | "DESC";
|
|
4596
|
+
search?: string;
|
|
4597
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4598
|
+
filterBy?: string;
|
|
4599
|
+
filterValue?: string;
|
|
4600
|
+
multiFilterMode?: string;
|
|
4601
|
+
filterIn?: any;
|
|
4602
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4603
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4604
|
+
status: 200;
|
|
4605
|
+
data: PageResponseRoleGroupResponse;
|
|
4606
|
+
} | {
|
|
4607
|
+
status: 403;
|
|
4608
|
+
data: ErrorResponse;
|
|
4609
|
+
} | {
|
|
4610
|
+
status: 500;
|
|
4611
|
+
data: ErrorResponse;
|
|
4612
|
+
}>(`/v2/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
|
|
4613
|
+
size,
|
|
4614
|
+
page,
|
|
4615
|
+
sort,
|
|
4616
|
+
direction,
|
|
4617
|
+
search,
|
|
4618
|
+
filterMode,
|
|
4619
|
+
filterBy,
|
|
4620
|
+
filterValue,
|
|
4621
|
+
multiFilterMode,
|
|
4622
|
+
filterIn
|
|
4623
|
+
}))}`, {
|
|
4624
|
+
...opts
|
|
4625
|
+
}));
|
|
4626
|
+
}
|
|
4627
|
+
/**
|
|
4628
|
+
* Get Resources
|
|
4629
|
+
*/
|
|
4630
|
+
export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4631
|
+
size?: any;
|
|
4632
|
+
page?: any;
|
|
4633
|
+
sort?: string;
|
|
4634
|
+
direction?: "ASC" | "DESC";
|
|
4635
|
+
search?: string;
|
|
4636
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4637
|
+
filterBy?: string;
|
|
4638
|
+
filterValue?: string;
|
|
4639
|
+
multiFilterMode?: string;
|
|
4640
|
+
filterIn?: any;
|
|
4641
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4642
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4643
|
+
status: 200;
|
|
4644
|
+
data: PageResponseResourceResponse;
|
|
4645
|
+
} | {
|
|
4646
|
+
status: 403;
|
|
4647
|
+
data: ErrorResponse;
|
|
4648
|
+
} | {
|
|
4649
|
+
status: 500;
|
|
4650
|
+
data: ErrorResponse;
|
|
4651
|
+
}>(`/v2/resources${QS.query(QS.explode({
|
|
4652
|
+
size,
|
|
4653
|
+
page,
|
|
4654
|
+
sort,
|
|
4655
|
+
direction,
|
|
4656
|
+
search,
|
|
4657
|
+
filterMode,
|
|
4658
|
+
filterBy,
|
|
4659
|
+
filterValue,
|
|
4660
|
+
multiFilterMode,
|
|
4661
|
+
filterIn
|
|
4662
|
+
}))}`, {
|
|
4663
|
+
...opts
|
|
4664
|
+
}));
|
|
4665
|
+
}
|
|
4666
|
+
/**
|
|
4667
|
+
* Get Members from Resource
|
|
4668
|
+
*/
|
|
4669
|
+
export function getResourceMembers({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4670
|
+
resourceId: string;
|
|
4671
|
+
size?: any;
|
|
4672
|
+
page?: any;
|
|
4673
|
+
sort?: string;
|
|
4674
|
+
direction?: "ASC" | "DESC";
|
|
4675
|
+
search?: string;
|
|
4676
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4677
|
+
filterBy?: string;
|
|
4678
|
+
filterValue?: string;
|
|
4679
|
+
multiFilterMode?: string;
|
|
4680
|
+
filterIn?: any;
|
|
4681
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4682
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4683
|
+
status: 200;
|
|
4684
|
+
data: PageResponseMembersFromResourceResponse;
|
|
4685
|
+
} | {
|
|
4686
|
+
status: 403;
|
|
4687
|
+
data: ErrorResponse;
|
|
4688
|
+
} | {
|
|
4689
|
+
status: 500;
|
|
4690
|
+
data: ErrorResponse;
|
|
4691
|
+
}>(`/v2/resources/${encodeURIComponent(resourceId)}/members${QS.query(QS.explode({
|
|
4692
|
+
size,
|
|
4693
|
+
page,
|
|
4694
|
+
sort,
|
|
4695
|
+
direction,
|
|
4696
|
+
search,
|
|
4697
|
+
filterMode,
|
|
4698
|
+
filterBy,
|
|
4699
|
+
filterValue,
|
|
4700
|
+
multiFilterMode,
|
|
4701
|
+
filterIn
|
|
4702
|
+
}))}`, {
|
|
4703
|
+
...opts
|
|
4704
|
+
}));
|
|
4705
|
+
}
|
|
4706
|
+
/**
|
|
4707
|
+
* Get Groups from Resource
|
|
4708
|
+
*/
|
|
4709
|
+
export function getResourceGroups({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4710
|
+
resourceId: string;
|
|
4711
|
+
size?: any;
|
|
4712
|
+
page?: any;
|
|
4713
|
+
sort?: string;
|
|
4714
|
+
direction?: "ASC" | "DESC";
|
|
4715
|
+
search?: string;
|
|
4716
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4717
|
+
filterBy?: string;
|
|
4718
|
+
filterValue?: string;
|
|
4719
|
+
multiFilterMode?: string;
|
|
4720
|
+
filterIn?: any;
|
|
4721
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4722
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4723
|
+
status: 200;
|
|
4724
|
+
data: PageResponseGroupsFromResourceResponse;
|
|
4725
|
+
} | {
|
|
4726
|
+
status: 403;
|
|
4727
|
+
data: ErrorResponse;
|
|
4728
|
+
} | {
|
|
4729
|
+
status: 500;
|
|
4730
|
+
data: ErrorResponse;
|
|
4731
|
+
}>(`/v2/resources/${encodeURIComponent(resourceId)}/groups${QS.query(QS.explode({
|
|
4732
|
+
size,
|
|
4733
|
+
page,
|
|
4734
|
+
sort,
|
|
4735
|
+
direction,
|
|
4736
|
+
search,
|
|
4737
|
+
filterMode,
|
|
4738
|
+
filterBy,
|
|
4739
|
+
filterValue,
|
|
4740
|
+
multiFilterMode,
|
|
4741
|
+
filterIn
|
|
4742
|
+
}))}`, {
|
|
4743
|
+
...opts
|
|
4744
|
+
}));
|
|
4745
|
+
}
|
|
4746
|
+
/**
|
|
4747
|
+
* Get Resource Types
|
|
4748
|
+
*/
|
|
4749
|
+
export function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4750
|
+
size?: any;
|
|
4751
|
+
page?: any;
|
|
4752
|
+
sort?: string;
|
|
4753
|
+
direction?: "ASC" | "DESC";
|
|
4754
|
+
search?: string;
|
|
4755
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4756
|
+
filterBy?: string;
|
|
4757
|
+
filterValue?: string;
|
|
4758
|
+
multiFilterMode?: string;
|
|
4759
|
+
filterIn?: any;
|
|
4760
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4761
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4762
|
+
status: 200;
|
|
4763
|
+
data: PageResponseResourceTypeResponse;
|
|
4764
|
+
} | {
|
|
4765
|
+
status: 403;
|
|
4766
|
+
data: ErrorResponse;
|
|
4767
|
+
} | {
|
|
4768
|
+
status: 500;
|
|
4769
|
+
data: ErrorResponse;
|
|
4770
|
+
}>(`/v2/resource-types${QS.query(QS.explode({
|
|
4771
|
+
size,
|
|
4772
|
+
page,
|
|
4773
|
+
sort,
|
|
4774
|
+
direction,
|
|
4775
|
+
search,
|
|
4776
|
+
filterMode,
|
|
4777
|
+
filterBy,
|
|
4778
|
+
filterValue,
|
|
4779
|
+
multiFilterMode,
|
|
4780
|
+
filterIn
|
|
4781
|
+
}))}`, {
|
|
4782
|
+
...opts
|
|
4783
|
+
}));
|
|
4784
|
+
}
|
|
4785
|
+
/**
|
|
4786
|
+
* Get Account Members
|
|
4787
|
+
*/
|
|
4788
|
+
export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4789
|
+
size?: any;
|
|
4790
|
+
page?: any;
|
|
4791
|
+
sort?: string;
|
|
4792
|
+
direction?: "ASC" | "DESC";
|
|
4793
|
+
search?: string;
|
|
4794
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4795
|
+
filterBy?: string;
|
|
4796
|
+
filterValue?: string;
|
|
4797
|
+
multiFilterMode?: string;
|
|
4798
|
+
filterIn?: any;
|
|
4799
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4800
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4801
|
+
status: 200;
|
|
4802
|
+
data: PageResponseAccountMemberResponse;
|
|
4803
|
+
} | {
|
|
4804
|
+
status: 403;
|
|
4805
|
+
data: ErrorResponse;
|
|
4806
|
+
} | {
|
|
4807
|
+
status: 500;
|
|
4808
|
+
data: ErrorResponse;
|
|
4809
|
+
}>(`/v2/members${QS.query(QS.explode({
|
|
4810
|
+
size,
|
|
4811
|
+
page,
|
|
4812
|
+
sort,
|
|
4813
|
+
direction,
|
|
4814
|
+
search,
|
|
4815
|
+
filterMode,
|
|
4816
|
+
filterBy,
|
|
4817
|
+
filterValue,
|
|
4818
|
+
multiFilterMode,
|
|
4819
|
+
filterIn
|
|
4820
|
+
}))}`, {
|
|
4821
|
+
...opts
|
|
4822
|
+
}));
|
|
4823
|
+
}
|
|
4824
|
+
/**
|
|
4825
|
+
* Get member roles
|
|
4826
|
+
*/
|
|
4827
|
+
export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4828
|
+
memberId: string;
|
|
4829
|
+
size?: any;
|
|
4830
|
+
page?: any;
|
|
4831
|
+
sort?: string;
|
|
4832
|
+
direction?: "ASC" | "DESC";
|
|
4833
|
+
search?: string;
|
|
4834
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4835
|
+
filterBy?: string;
|
|
4836
|
+
filterValue?: string;
|
|
4837
|
+
multiFilterMode?: string;
|
|
4838
|
+
filterIn?: any;
|
|
4839
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4840
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4841
|
+
status: 200;
|
|
4842
|
+
data: PageResponseReadMemberRoleResponse;
|
|
4843
|
+
} | {
|
|
4844
|
+
status: 403;
|
|
4845
|
+
data: ErrorResponse;
|
|
4846
|
+
} | {
|
|
4847
|
+
status: 500;
|
|
4848
|
+
data: ErrorResponse;
|
|
4849
|
+
}>(`/v2/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
|
|
4850
|
+
size,
|
|
4851
|
+
page,
|
|
4852
|
+
sort,
|
|
4853
|
+
direction,
|
|
4854
|
+
search,
|
|
4855
|
+
filterMode,
|
|
4856
|
+
filterBy,
|
|
4857
|
+
filterValue,
|
|
4858
|
+
multiFilterMode,
|
|
4859
|
+
filterIn
|
|
4860
|
+
}))}`, {
|
|
4861
|
+
...opts
|
|
4862
|
+
}));
|
|
4863
|
+
}
|
|
4864
|
+
/**
|
|
4865
|
+
* Get member Groups
|
|
4866
|
+
*/
|
|
4867
|
+
export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4868
|
+
memberId: string;
|
|
4869
|
+
size?: any;
|
|
4870
|
+
page?: any;
|
|
4871
|
+
sort?: string;
|
|
4872
|
+
direction?: "ASC" | "DESC";
|
|
4873
|
+
search?: string;
|
|
4874
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4875
|
+
filterBy?: string;
|
|
4876
|
+
filterValue?: string;
|
|
4877
|
+
multiFilterMode?: string;
|
|
4878
|
+
filterIn?: any;
|
|
4879
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4880
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4881
|
+
status: 200;
|
|
4882
|
+
data: PageResponseGroupReadResponse;
|
|
4883
|
+
} | {
|
|
4884
|
+
status: 403;
|
|
4885
|
+
data: ErrorResponse;
|
|
4886
|
+
} | {
|
|
4887
|
+
status: 500;
|
|
4888
|
+
data: ErrorResponse;
|
|
4889
|
+
}>(`/v2/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
|
|
4890
|
+
size,
|
|
4891
|
+
page,
|
|
4892
|
+
sort,
|
|
4893
|
+
direction,
|
|
4894
|
+
search,
|
|
4895
|
+
filterMode,
|
|
4896
|
+
filterBy,
|
|
4897
|
+
filterValue,
|
|
4898
|
+
multiFilterMode,
|
|
4899
|
+
filterIn
|
|
4900
|
+
}))}`, {
|
|
4901
|
+
...opts
|
|
4902
|
+
}));
|
|
4903
|
+
}
|
|
4904
|
+
/**
|
|
4905
|
+
* Get Groups
|
|
4906
|
+
*/
|
|
4907
|
+
export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
|
|
4908
|
+
size?: any;
|
|
4909
|
+
page?: any;
|
|
4910
|
+
sort?: string;
|
|
4911
|
+
direction?: "ASC" | "DESC";
|
|
4912
|
+
search?: string;
|
|
4913
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4914
|
+
filterBy?: string;
|
|
4915
|
+
filterValue?: string;
|
|
4916
|
+
multiFilterMode?: string;
|
|
4917
|
+
filterIn?: any;
|
|
4918
|
+
includeDefaultGroup?: boolean;
|
|
4919
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4920
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4921
|
+
status: 200;
|
|
4922
|
+
data: PageResponseGroupReadResponse;
|
|
4923
|
+
} | {
|
|
4924
|
+
status: 403;
|
|
4925
|
+
data: ErrorResponse;
|
|
4926
|
+
} | {
|
|
4927
|
+
status: 500;
|
|
4928
|
+
data: ErrorResponse;
|
|
4929
|
+
}>(`/v2/groups${QS.query(QS.explode({
|
|
4930
|
+
size,
|
|
4931
|
+
page,
|
|
4932
|
+
sort,
|
|
4933
|
+
direction,
|
|
4934
|
+
search,
|
|
4935
|
+
filterMode,
|
|
4936
|
+
filterBy,
|
|
4937
|
+
filterValue,
|
|
4938
|
+
multiFilterMode,
|
|
4939
|
+
filterIn,
|
|
4940
|
+
includeDefaultGroup
|
|
4941
|
+
}))}`, {
|
|
4942
|
+
...opts
|
|
4943
|
+
}));
|
|
4944
|
+
}
|
|
4945
|
+
/**
|
|
4946
|
+
* Get Group roles
|
|
4947
|
+
*/
|
|
4948
|
+
export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4949
|
+
groupId: string;
|
|
4950
|
+
size?: any;
|
|
4951
|
+
page?: any;
|
|
4952
|
+
sort?: string;
|
|
4953
|
+
direction?: "ASC" | "DESC";
|
|
4954
|
+
search?: string;
|
|
4955
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4956
|
+
filterBy?: string;
|
|
4957
|
+
filterValue?: string;
|
|
4958
|
+
multiFilterMode?: string;
|
|
4959
|
+
filterIn?: any;
|
|
4960
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
4961
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
4962
|
+
status: 200;
|
|
4963
|
+
data: PageResponseRoleResponse;
|
|
4964
|
+
} | {
|
|
4965
|
+
status: 403;
|
|
4966
|
+
data: ErrorResponse;
|
|
4967
|
+
} | {
|
|
4968
|
+
status: 500;
|
|
4969
|
+
data: ErrorResponse;
|
|
4970
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
|
|
4971
|
+
size,
|
|
4972
|
+
page,
|
|
4973
|
+
sort,
|
|
4974
|
+
direction,
|
|
4975
|
+
search,
|
|
4976
|
+
filterMode,
|
|
4977
|
+
filterBy,
|
|
4978
|
+
filterValue,
|
|
4979
|
+
multiFilterMode,
|
|
4980
|
+
filterIn
|
|
4981
|
+
}))}`, {
|
|
4982
|
+
...opts
|
|
4983
|
+
}));
|
|
4984
|
+
}
|
|
4985
|
+
/**
|
|
4986
|
+
* Get Group Resources
|
|
4987
|
+
*/
|
|
4988
|
+
export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4989
|
+
groupId: string;
|
|
4990
|
+
size?: any;
|
|
4991
|
+
page?: any;
|
|
4992
|
+
sort?: string;
|
|
4993
|
+
direction?: "ASC" | "DESC";
|
|
4994
|
+
search?: string;
|
|
4995
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
4996
|
+
filterBy?: string;
|
|
4997
|
+
filterValue?: string;
|
|
4998
|
+
multiFilterMode?: string;
|
|
4999
|
+
filterIn?: any;
|
|
5000
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5001
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5002
|
+
status: 200;
|
|
5003
|
+
data: PageResponseResourceResponse;
|
|
5004
|
+
} | {
|
|
5005
|
+
status: 403;
|
|
5006
|
+
data: ErrorResponse;
|
|
5007
|
+
} | {
|
|
5008
|
+
status: 500;
|
|
5009
|
+
data: ErrorResponse;
|
|
5010
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
|
|
5011
|
+
size,
|
|
5012
|
+
page,
|
|
5013
|
+
sort,
|
|
5014
|
+
direction,
|
|
5015
|
+
search,
|
|
5016
|
+
filterMode,
|
|
5017
|
+
filterBy,
|
|
5018
|
+
filterValue,
|
|
5019
|
+
multiFilterMode,
|
|
5020
|
+
filterIn
|
|
5021
|
+
}))}`, {
|
|
5022
|
+
...opts
|
|
5023
|
+
}));
|
|
5024
|
+
}
|
|
5025
|
+
/**
|
|
5026
|
+
* Get Group members
|
|
5027
|
+
*/
|
|
5028
|
+
export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5029
|
+
groupId: string;
|
|
5030
|
+
size?: any;
|
|
5031
|
+
page?: any;
|
|
5032
|
+
sort?: string;
|
|
5033
|
+
direction?: "ASC" | "DESC";
|
|
5034
|
+
search?: string;
|
|
5035
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
5036
|
+
filterBy?: string;
|
|
5037
|
+
filterValue?: string;
|
|
5038
|
+
multiFilterMode?: string;
|
|
5039
|
+
filterIn?: any;
|
|
5040
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5041
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5042
|
+
status: 200;
|
|
5043
|
+
data: PageResponseReadGroupMembersResponse;
|
|
5044
|
+
} | {
|
|
5045
|
+
status: 403;
|
|
5046
|
+
data: ErrorResponse;
|
|
5047
|
+
} | {
|
|
5048
|
+
status: 500;
|
|
5049
|
+
data: ErrorResponse;
|
|
5050
|
+
}>(`/v2/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
|
|
5051
|
+
size,
|
|
5052
|
+
page,
|
|
5053
|
+
sort,
|
|
5054
|
+
direction,
|
|
5055
|
+
search,
|
|
5056
|
+
filterMode,
|
|
5057
|
+
filterBy,
|
|
5058
|
+
filterValue,
|
|
5059
|
+
multiFilterMode,
|
|
5060
|
+
filterIn
|
|
5061
|
+
}))}`, {
|
|
5062
|
+
...opts
|
|
5063
|
+
}));
|
|
5064
|
+
}
|
|
5065
|
+
/**
|
|
5066
|
+
* Verify User repository credential configuration status.
|
|
5067
|
+
*/
|
|
5068
|
+
export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
|
|
5069
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5070
|
+
status: 200;
|
|
5071
|
+
} | {
|
|
5072
|
+
status: 403;
|
|
5073
|
+
data: ErrorResponse;
|
|
5074
|
+
} | {
|
|
5075
|
+
status: 404;
|
|
5076
|
+
data: ErrorResponse;
|
|
5077
|
+
} | {
|
|
5078
|
+
status: 422;
|
|
5079
|
+
data: ErrorResponse;
|
|
5080
|
+
} | {
|
|
5081
|
+
status: 500;
|
|
5082
|
+
data: ErrorResponse;
|
|
5083
|
+
}>("/v1/users/scm-credentials/configuration-status", {
|
|
5084
|
+
...opts
|
|
5085
|
+
}));
|
|
5086
|
+
}
|
|
5087
|
+
/**
|
|
5088
|
+
* List Accounts of User can use and collaborate.
|
|
5089
|
+
*/
|
|
5090
|
+
export function getUserAccountWithRole(opts?: Oazapfts.RequestOpts) {
|
|
5091
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5092
|
+
status: 200;
|
|
5093
|
+
data: AccountCollaborationInfoResponse[];
|
|
5094
|
+
} | {
|
|
5095
|
+
status: 403;
|
|
5096
|
+
data: ErrorResponse;
|
|
5097
|
+
} | {
|
|
5098
|
+
status: 500;
|
|
5099
|
+
data: ErrorResponse;
|
|
5100
|
+
}>("/v1/users/accounts", {
|
|
5101
|
+
...opts
|
|
5102
|
+
}));
|
|
5103
|
+
}
|
|
5104
|
+
/**
|
|
5105
|
+
* Get Accounts
|
|
5106
|
+
*/
|
|
5107
|
+
export function getAccounts({ accountType, slug, id }: {
|
|
5108
|
+
accountType?: string;
|
|
5109
|
+
slug?: string;
|
|
5110
|
+
id?: string;
|
|
5111
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5112
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5113
|
+
status: 200;
|
|
5114
|
+
data: AccountDataReadResponse[];
|
|
5115
|
+
} | {
|
|
5116
|
+
status: 403;
|
|
5117
|
+
data: ErrorResponse;
|
|
5118
|
+
} | {
|
|
5119
|
+
status: 500;
|
|
5120
|
+
data: ErrorResponse;
|
|
5121
|
+
}>(`/v1/stackspot/accounts${QS.query(QS.explode({
|
|
5122
|
+
accountType,
|
|
5123
|
+
slug,
|
|
5124
|
+
id
|
|
5125
|
+
}))}`, {
|
|
5126
|
+
...opts
|
|
5127
|
+
}));
|
|
5128
|
+
}
|
|
5129
|
+
/**
|
|
5130
|
+
* Get Account by id
|
|
5131
|
+
*/
|
|
5132
|
+
export function getAccount({ id }: {
|
|
5133
|
+
id: string;
|
|
5134
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5135
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5136
|
+
status: 200;
|
|
5137
|
+
data: AccountDataReadResponse;
|
|
5138
|
+
} | {
|
|
5139
|
+
status: 403;
|
|
5140
|
+
data: ErrorResponse;
|
|
5141
|
+
} | {
|
|
5142
|
+
status: 404;
|
|
5143
|
+
data: ErrorResponse;
|
|
5144
|
+
} | {
|
|
5145
|
+
status: 500;
|
|
5146
|
+
data: ErrorResponse;
|
|
5147
|
+
}>(`/v1/stackspot/accounts/${encodeURIComponent(id)}`, {
|
|
5148
|
+
...opts
|
|
5149
|
+
}));
|
|
5150
|
+
}
|
|
5151
|
+
/**
|
|
5152
|
+
* Get Account Members
|
|
5153
|
+
*/
|
|
5154
|
+
export function getAccountMembers1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5155
|
+
id: string;
|
|
5156
|
+
size?: any;
|
|
5157
|
+
page?: any;
|
|
5158
|
+
sort?: string;
|
|
5159
|
+
direction?: "ASC" | "DESC";
|
|
5160
|
+
search?: string;
|
|
5161
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
5162
|
+
filterBy?: string;
|
|
5163
|
+
filterValue?: string;
|
|
5164
|
+
multiFilterMode?: string;
|
|
5165
|
+
filterIn?: any;
|
|
5166
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5167
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5168
|
+
status: 200;
|
|
5169
|
+
data: AccountMemberResponse[];
|
|
5170
|
+
} | {
|
|
5171
|
+
status: 403;
|
|
5172
|
+
data: ErrorResponse;
|
|
5173
|
+
} | {
|
|
5174
|
+
status: 500;
|
|
5175
|
+
data: ErrorResponse;
|
|
5176
|
+
}>(`/v1/stackspot/accounts/${encodeURIComponent(id)}/members${QS.query(QS.explode({
|
|
5177
|
+
size,
|
|
5178
|
+
page,
|
|
5179
|
+
sort,
|
|
5180
|
+
direction,
|
|
5181
|
+
search,
|
|
5182
|
+
filterMode,
|
|
5183
|
+
filterBy,
|
|
5184
|
+
filterValue,
|
|
5185
|
+
multiFilterMode,
|
|
5186
|
+
filterIn
|
|
5187
|
+
}))}`, {
|
|
5188
|
+
...opts
|
|
5189
|
+
}));
|
|
5190
|
+
}
|
|
5191
|
+
/**
|
|
5192
|
+
* Get Service Credential by ID (Client ID)
|
|
5193
|
+
*/
|
|
5194
|
+
export function getServiceCredential({ id }: {
|
|
5195
|
+
id: string;
|
|
5196
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5197
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5198
|
+
status: 200;
|
|
5199
|
+
data: ServiceCredentialDetailsResponse;
|
|
5200
|
+
} | {
|
|
5201
|
+
status: 403;
|
|
5202
|
+
data: ErrorResponse;
|
|
5203
|
+
} | {
|
|
5204
|
+
status: 500;
|
|
5205
|
+
data: ErrorResponse;
|
|
5206
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}`, {
|
|
5207
|
+
...opts
|
|
5208
|
+
}));
|
|
5209
|
+
}
|
|
5210
|
+
/**
|
|
5211
|
+
* List service credential permissions
|
|
5212
|
+
*/
|
|
5213
|
+
export function getServiceCredentialPermissions({ id }: {
|
|
5214
|
+
id: string;
|
|
5215
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5216
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5217
|
+
status: 200;
|
|
5218
|
+
data: FullResourceResponse[];
|
|
5219
|
+
} | {
|
|
5220
|
+
status: 403;
|
|
5221
|
+
data: ErrorResponse;
|
|
5222
|
+
} | {
|
|
5223
|
+
status: 500;
|
|
5224
|
+
data: ErrorResponse;
|
|
5225
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}/permissions`, {
|
|
5226
|
+
...opts
|
|
5227
|
+
}));
|
|
5228
|
+
}
|
|
5229
|
+
/**
|
|
5230
|
+
* List service credential groups
|
|
5231
|
+
*/
|
|
5232
|
+
export function getServiceCredentialGroups1({ id }: {
|
|
5233
|
+
id: string;
|
|
5234
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5235
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5236
|
+
status: 200;
|
|
5237
|
+
data: GroupReadResponse[];
|
|
5238
|
+
} | {
|
|
5239
|
+
status: 403;
|
|
5240
|
+
data: ErrorResponse;
|
|
5241
|
+
} | {
|
|
5242
|
+
status: 500;
|
|
5243
|
+
data: ErrorResponse;
|
|
5244
|
+
}>(`/v1/service-credentials/${encodeURIComponent(id)}/groups`, {
|
|
5245
|
+
...opts
|
|
5246
|
+
}));
|
|
5247
|
+
}
|
|
5248
|
+
/**
|
|
5249
|
+
* Get SCM provider.
|
|
5250
|
+
*/
|
|
5251
|
+
export function getScmProvider(opts?: Oazapfts.RequestOpts) {
|
|
5252
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5253
|
+
status: 200;
|
|
5254
|
+
data: AccountScmProviderResponse;
|
|
5255
|
+
} | {
|
|
5256
|
+
status: 403;
|
|
5257
|
+
data: ErrorResponse;
|
|
5258
|
+
} | {
|
|
5259
|
+
status: 422;
|
|
5260
|
+
data: ErrorResponse;
|
|
5261
|
+
} | {
|
|
5262
|
+
status: 500;
|
|
5263
|
+
data: ErrorResponse;
|
|
5264
|
+
}>("/v1/scm-credentials/provider", {
|
|
5265
|
+
...opts
|
|
5266
|
+
}));
|
|
5267
|
+
}
|
|
5268
|
+
/**
|
|
5269
|
+
* Verify repository credential configuration status.
|
|
5270
|
+
*/
|
|
5271
|
+
export function isCreatedScmCredentials1(opts?: Oazapfts.RequestOpts) {
|
|
5272
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5273
|
+
status: 200;
|
|
5274
|
+
data: AccountScmStatusResponse;
|
|
5275
|
+
} | {
|
|
5276
|
+
status: 403;
|
|
5277
|
+
data: ErrorResponse;
|
|
5278
|
+
} | {
|
|
5279
|
+
status: 404;
|
|
5280
|
+
data: ErrorResponse;
|
|
5281
|
+
} | {
|
|
5282
|
+
status: 422;
|
|
5283
|
+
data: ErrorResponse;
|
|
5284
|
+
} | {
|
|
5285
|
+
status: 500;
|
|
5286
|
+
data: ErrorResponse;
|
|
5287
|
+
}>("/v1/scm-credentials/configuration-status", {
|
|
5288
|
+
...opts
|
|
5289
|
+
}));
|
|
5290
|
+
}
|
|
5291
|
+
/**
|
|
5292
|
+
* Get Permissions from role
|
|
5293
|
+
*/
|
|
5294
|
+
export function getPermissionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5295
|
+
roleId: string;
|
|
5296
|
+
size?: any;
|
|
5297
|
+
page?: any;
|
|
5298
|
+
sort?: string;
|
|
5299
|
+
direction?: "ASC" | "DESC";
|
|
5300
|
+
search?: string;
|
|
5301
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
5302
|
+
filterBy?: string;
|
|
5303
|
+
filterValue?: string;
|
|
5304
|
+
multiFilterMode?: string;
|
|
5305
|
+
filterIn?: any;
|
|
5306
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5307
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5308
|
+
status: 200;
|
|
5309
|
+
data: RolePermissionResponse[];
|
|
5310
|
+
} | {
|
|
5311
|
+
status: 403;
|
|
5312
|
+
data: ErrorResponse;
|
|
5313
|
+
} | {
|
|
5314
|
+
status: 422;
|
|
5315
|
+
data: ErrorResponse;
|
|
5316
|
+
} | {
|
|
5317
|
+
status: 500;
|
|
5318
|
+
data: ErrorResponse;
|
|
5319
|
+
}>(`/v1/roles/${encodeURIComponent(roleId)}/permissions${QS.query(QS.explode({
|
|
5320
|
+
size,
|
|
5321
|
+
page,
|
|
5322
|
+
sort,
|
|
5323
|
+
direction,
|
|
5324
|
+
search,
|
|
5325
|
+
filterMode,
|
|
5326
|
+
filterBy,
|
|
5327
|
+
filterValue,
|
|
5328
|
+
multiFilterMode,
|
|
5329
|
+
filterIn
|
|
5330
|
+
}))}`, {
|
|
5331
|
+
...opts
|
|
5332
|
+
}));
|
|
5333
|
+
}
|
|
5334
|
+
/**
|
|
5335
|
+
* Get Members from Resource
|
|
5336
|
+
*/
|
|
5337
|
+
export function getResourceMembers1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5338
|
+
resourceId: string;
|
|
5339
|
+
size?: any;
|
|
5340
|
+
page?: any;
|
|
5341
|
+
sort?: string;
|
|
5342
|
+
direction?: "ASC" | "DESC";
|
|
5343
|
+
search?: string;
|
|
5344
|
+
filterMode?: "MATCH" | "CONTAINS" | "IN";
|
|
5345
|
+
filterBy?: string;
|
|
5346
|
+
filterValue?: string;
|
|
5347
|
+
multiFilterMode?: string;
|
|
5348
|
+
filterIn?: any;
|
|
5349
|
+
}, opts?: Oazapfts.RequestOpts) {
|
|
5350
|
+
return oazapfts.ok(oazapfts.fetchJson<{
|
|
5351
|
+
status: 200;
|
|
5352
|
+
data: MembersFromResourceResponse[];
|
|
5353
|
+
} | {
|
|
5354
|
+
status: 403;
|
|
5355
|
+
data: ErrorResponse;
|
|
5356
|
+
} | {
|
|
5357
|
+
status: 500;
|
|
5358
|
+
data: ErrorResponse;
|
|
5359
|
+
}>(`/v1/resources/${encodeURIComponent(resourceId)}/members${QS.query(QS.explode({
|
|
5360
|
+
size,
|
|
5361
|
+
page,
|
|
5362
|
+
sort,
|
|
5363
|
+
direction,
|
|
5364
|
+
search,
|
|
5365
|
+
filterMode,
|
|
5366
|
+
filterBy,
|
|
5367
|
+
filterValue,
|
|
5368
|
+
multiFilterMode,
|
|
5369
|
+
filterIn
|
|
5370
|
+
}))}`, {
|
|
5371
|
+
...opts
|
|
5372
|
+
}));
|
|
5373
|
+
}
|
|
5374
|
+
/**
|
|
5375
|
+
* Get Groups from Resource
|
|
5376
|
+
*/
|
|
5377
|
+
export function getResourceGroups1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
5378
|
+
resourceId: string;
|
|
4545
5379
|
size?: any;
|
|
4546
5380
|
page?: any;
|
|
4547
5381
|
sort?: string;
|
|
@@ -4580,7 +5414,7 @@ export function getResourceGroups({ resourceId, size, page, sort, direction, sea
|
|
|
4580
5414
|
/**
|
|
4581
5415
|
* Get Resource Types
|
|
4582
5416
|
*/
|
|
4583
|
-
export function
|
|
5417
|
+
export function getResourceTypes1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
|
|
4584
5418
|
size?: any;
|
|
4585
5419
|
page?: any;
|
|
4586
5420
|
sort?: string;
|
|
@@ -4643,7 +5477,7 @@ export function getAccess({ resourceType, resource, action, attribute }: {
|
|
|
4643
5477
|
/**
|
|
4644
5478
|
* Get Resources Members
|
|
4645
5479
|
*/
|
|
4646
|
-
export function
|
|
5480
|
+
export function getResources2({ memberId }: {
|
|
4647
5481
|
memberId: string;
|
|
4648
5482
|
}, opts?: Oazapfts.RequestOpts) {
|
|
4649
5483
|
return oazapfts.ok(oazapfts.fetchJson<{
|