@stack-spot/portal-network 0.71.0 → 0.72.1-beta.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.
@@ -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.dev.stackspot.com",
11
+ baseUrl: "http://account-account-api.dev.stackspot.com",
12
12
  };
13
13
  const oazapfts = Oazapfts.runtime(defaults);
14
14
  export const servers = {
15
- generatedServerUrl: "https://account-account-api.dev.stackspot.com"
15
+ generatedServerUrl: "http://account-account-api.dev.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 IamActionResponse = {
114
+ export type ResourceActionResponse = {
115
+ /** Action id. */
115
116
  id: string;
116
- client_id?: string;
117
+ /** Action Client id. */
118
+ clientId?: string;
119
+ /** Action name. */
117
120
  name: string;
121
+ /** Action description. */
118
122
  description: string;
119
- created_at: string;
123
+ /** Action creation date. */
124
+ createdAt: string;
125
+ /** Action status. */
120
126
  active?: boolean;
121
127
  };
122
- export type IamResourceType = {
128
+ export type RoleResourceResponse = {
129
+ /** Id of resource. */
123
130
  id: string;
131
+ /** Name of resource. */
124
132
  name: string;
125
- description: string;
126
- created_at: string;
127
- global_resource_id: string;
128
- resource_type_id: string;
129
- actions?: IamActionResponse[];
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[];
@@ -150,6 +163,7 @@ export type AccountMemberStackspotIamDto = {
150
163
  properties?: {
151
164
  [key: string]: object;
152
165
  };
166
+ avatarImage?: string;
153
167
  };
154
168
  export type UpdateUserRequest = {
155
169
  /** User username */
@@ -172,6 +186,8 @@ export type UpdateUserRequest = {
172
186
  company?: string;
173
187
  /** User new password */
174
188
  password?: string;
189
+ /** Image profile */
190
+ avatarImageBase64?: string;
175
191
  };
176
192
  export type UpdateUserResponse = {
177
193
  username?: string;
@@ -348,28 +364,6 @@ export type AccountGroupMappingUpdateRequest = {
348
364
  /** Group Mapping name */
349
365
  name: string;
350
366
  };
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
367
  export type ServiceCredentialResponse = {
374
368
  /** Service credential id */
375
369
  id: string;
@@ -392,6 +386,40 @@ export type ServiceCredentialResponse = {
392
386
  /** Service credential status */
393
387
  status: "ACTIVE" | "DISABLED" | "REVOKED" | "EXPIRED";
394
388
  };
389
+ export type PageResponseServiceCredentialResponse = {
390
+ /** Current page content */
391
+ items?: ServiceCredentialResponse[];
392
+ /** Total elements found */
393
+ totalElements: number;
394
+ /** Current page number */
395
+ page: number;
396
+ /** Length of current page items */
397
+ size: number;
398
+ /** Total pages found */
399
+ totalPages: number;
400
+ };
401
+ export type ServiceCredentialCreateRequestV2 = {
402
+ /** Service credential name */
403
+ name: string;
404
+ /** Service credential expiration days */
405
+ description?: string;
406
+ /** Service credential expiration days */
407
+ expirationDays?: number;
408
+ /** Service credential statements */
409
+ scopes?: string[];
410
+ };
411
+ export type ServiceCredentialCreateResponseV2 = {
412
+ /** Client ID service credential */
413
+ clientId: string;
414
+ /** Client Secret service credential */
415
+ clientSecret?: string;
416
+ /** Service credential scopes */
417
+ scopes: string[];
418
+ /** Service credential expiration date */
419
+ expirationDate?: string;
420
+ /** Account tenant */
421
+ tenant: string;
422
+ };
395
423
  export type StatementRequest = {
396
424
  /** Resource id */
397
425
  resource: string;
@@ -609,7 +637,7 @@ export type AccountMemberResponse = {
609
637
  /** Account member status */
610
638
  isActive: boolean;
611
639
  /** Account member avatar URL */
612
- avatarUrl?: string;
640
+ avatarImage?: string;
613
641
  /** Account member full name */
614
642
  name: string;
615
643
  };
@@ -634,6 +662,8 @@ export type CreateUserRequest = {
634
662
  password?: string;
635
663
  /** User Company */
636
664
  company?: string;
665
+ /** Image profile */
666
+ avatarImageBase64?: string;
637
667
  };
638
668
  export type CreateUserResponse = {
639
669
  username: string;
@@ -776,6 +806,42 @@ export type CreateFeatureFlagRequest = {
776
806
  /** The feature flag description */
777
807
  description: string;
778
808
  };
809
+ export type ExtensionInfoByLanguageResponse = {
810
+ pt?: string;
811
+ en?: string;
812
+ };
813
+ export type ExtensionReadResponse = {
814
+ /** Extension Id */
815
+ id: string;
816
+ /** Extension Slug */
817
+ slug: string;
818
+ description?: ExtensionInfoByLanguageResponse;
819
+ displayName?: ExtensionInfoByLanguageResponse;
820
+ /** The Id from active extension version */
821
+ activeVersionId?: string;
822
+ };
823
+ export type ExtensionInfoByLanguageRequest = {
824
+ pt?: string;
825
+ en?: string;
826
+ };
827
+ export type ExtensionCreateRequest = {
828
+ /** The slug to use in URL as unique identifying part representing the extension */
829
+ slug: string;
830
+ description?: ExtensionInfoByLanguageRequest;
831
+ displayName?: ExtensionInfoByLanguageRequest;
832
+ };
833
+ export type ExtensionVersionResumedReadResponse = {
834
+ /** Extension Version Id */
835
+ id: string;
836
+ /** Extension Slug */
837
+ extensionSlug: string;
838
+ /** The extension version name */
839
+ name: string;
840
+ /** The extension version content url */
841
+ dataUrl: string;
842
+ /** The extension version date and time of creation */
843
+ createdAt: string;
844
+ };
779
845
  export type WelcomeEmailRequest = {
780
846
  /** Firstname of the contact requester */
781
847
  firstName: string;
@@ -875,6 +941,8 @@ export type PageResponseAccountResponse = {
875
941
  page: number;
876
942
  /** Length of current page items */
877
943
  size: number;
944
+ /** Total pages found */
945
+ totalPages: number;
878
946
  };
879
947
  export type CreateAccountOrderRequest = {
880
948
  /** The account's name. Example: Zup IT Innovation */
@@ -905,6 +973,8 @@ export type PageResponseAccountSsoGroupMappingResponse = {
905
973
  page: number;
906
974
  /** Length of current page items */
907
975
  size: number;
976
+ /** Total pages found */
977
+ totalPages: number;
908
978
  };
909
979
  export type AccountGroupMappingCreateRequest = {
910
980
  /** Group Mapping externalUserAttribute */
@@ -1127,6 +1197,12 @@ export type UpdateGroupPermissionsRequest = {
1127
1197
  /** Slug from resource */
1128
1198
  resourceSlug: string;
1129
1199
  };
1200
+ export type ExtensionUpdateRequest = {
1201
+ /** The Id from active extension version */
1202
+ activeVersionId?: string;
1203
+ description?: ExtensionInfoByLanguageRequest;
1204
+ displayName?: ExtensionInfoByLanguageRequest;
1205
+ };
1130
1206
  export type AddNewEmailDomainRequest = {
1131
1207
  /** Email domains list that account users will use to login into StackSpot. Example: zup.com.br */
1132
1208
  domains: string[];
@@ -1163,6 +1239,183 @@ export type AccountPartnerAdminDataUpdateRequest = {
1163
1239
  /** Admin email */
1164
1240
  email: string;
1165
1241
  };
1242
+ export type PageResponseGroupReadResponse = {
1243
+ /** Current page content */
1244
+ items?: GroupReadResponse[];
1245
+ /** Total elements found */
1246
+ totalElements: number;
1247
+ /** Current page number */
1248
+ page: number;
1249
+ /** Length of current page items */
1250
+ size: number;
1251
+ /** Total pages found */
1252
+ totalPages: number;
1253
+ };
1254
+ export type PageResponseRoleResponse = {
1255
+ /** Current page content */
1256
+ items?: RoleResponse[];
1257
+ /** Total elements found */
1258
+ totalElements: number;
1259
+ /** Current page number */
1260
+ page: number;
1261
+ /** Length of current page items */
1262
+ size: number;
1263
+ /** Total pages found */
1264
+ totalPages: number;
1265
+ };
1266
+ export type PageResponseRoleResourceResponse = {
1267
+ /** Current page content */
1268
+ items?: RoleResourceResponse[];
1269
+ /** Total elements found */
1270
+ totalElements: number;
1271
+ /** Current page number */
1272
+ page: number;
1273
+ /** Length of current page items */
1274
+ size: number;
1275
+ /** Total pages found */
1276
+ totalPages: number;
1277
+ };
1278
+ export type PageResponseRoleMemberResponse = {
1279
+ /** Current page content */
1280
+ items?: RoleMemberResponse[];
1281
+ /** Total elements found */
1282
+ totalElements: number;
1283
+ /** Current page number */
1284
+ page: number;
1285
+ /** Length of current page items */
1286
+ size: number;
1287
+ /** Total pages found */
1288
+ totalPages: number;
1289
+ };
1290
+ export type PageResponseRoleGroupResponse = {
1291
+ /** Current page content */
1292
+ items?: RoleGroupResponse[];
1293
+ /** Total elements found */
1294
+ totalElements: number;
1295
+ /** Current page number */
1296
+ page: number;
1297
+ /** Length of current page items */
1298
+ size: number;
1299
+ /** Total pages found */
1300
+ totalPages: number;
1301
+ };
1302
+ export type PageResponseResourceResponse = {
1303
+ /** Current page content */
1304
+ items?: ResourceResponse[];
1305
+ /** Total elements found */
1306
+ totalElements: number;
1307
+ /** Current page number */
1308
+ page: number;
1309
+ /** Length of current page items */
1310
+ size: number;
1311
+ /** Total pages found */
1312
+ totalPages: number;
1313
+ };
1314
+ export type MembersFromResourceResponse = {
1315
+ /** Member ID */
1316
+ id: string;
1317
+ /** Member username */
1318
+ username: string;
1319
+ /** Member company email */
1320
+ email: string;
1321
+ /** Member name */
1322
+ name?: string;
1323
+ /** Member permission actions */
1324
+ actions: string[];
1325
+ };
1326
+ export type PageResponseMembersFromResourceResponse = {
1327
+ /** Current page content */
1328
+ items?: MembersFromResourceResponse[];
1329
+ /** Total elements found */
1330
+ totalElements: number;
1331
+ /** Current page number */
1332
+ page: number;
1333
+ /** Length of current page items */
1334
+ size: number;
1335
+ /** Total pages found */
1336
+ totalPages: number;
1337
+ };
1338
+ export type GroupsFromResourceResponse = {
1339
+ /** Group ID */
1340
+ id: string;
1341
+ /** Group name */
1342
+ name: string;
1343
+ /** Group description */
1344
+ description?: string;
1345
+ /** Group slug */
1346
+ slug: string;
1347
+ /** Group member count */
1348
+ memberCount: number;
1349
+ /** Group permission actions */
1350
+ actions: string[];
1351
+ };
1352
+ export type PageResponseGroupsFromResourceResponse = {
1353
+ /** Current page content */
1354
+ items?: GroupsFromResourceResponse[];
1355
+ /** Total elements found */
1356
+ totalElements: number;
1357
+ /** Current page number */
1358
+ page: number;
1359
+ /** Length of current page items */
1360
+ size: number;
1361
+ /** Total pages found */
1362
+ totalPages: number;
1363
+ };
1364
+ export type ResourceTypeResponse = {
1365
+ id: string;
1366
+ name: string;
1367
+ slug: string;
1368
+ description: string;
1369
+ createdAt: string;
1370
+ };
1371
+ export type PageResponseResourceTypeResponse = {
1372
+ /** Current page content */
1373
+ items?: ResourceTypeResponse[];
1374
+ /** Total elements found */
1375
+ totalElements: number;
1376
+ /** Current page number */
1377
+ page: number;
1378
+ /** Length of current page items */
1379
+ size: number;
1380
+ /** Total pages found */
1381
+ totalPages: number;
1382
+ };
1383
+ export type PageResponseAccountMemberResponse = {
1384
+ /** Current page content */
1385
+ items?: AccountMemberResponse[];
1386
+ /** Total elements found */
1387
+ totalElements: number;
1388
+ /** Current page number */
1389
+ page: number;
1390
+ /** Length of current page items */
1391
+ size: number;
1392
+ /** Total pages found */
1393
+ totalPages: number;
1394
+ };
1395
+ export type PageResponseReadMemberRoleResponse = {
1396
+ /** Current page content */
1397
+ items?: ReadMemberRoleResponse[];
1398
+ /** Total elements found */
1399
+ totalElements: number;
1400
+ /** Current page number */
1401
+ page: number;
1402
+ /** Length of current page items */
1403
+ size: number;
1404
+ /** Total pages found */
1405
+ totalPages: number;
1406
+ };
1407
+ export type PageResponseReadGroupMembersResponse = {
1408
+ /** Current page content */
1409
+ items?: ReadGroupMembersResponse[];
1410
+ /** Total elements found */
1411
+ totalElements: number;
1412
+ /** Current page number */
1413
+ page: number;
1414
+ /** Length of current page items */
1415
+ size: number;
1416
+ /** Total pages found */
1417
+ totalPages: number;
1418
+ };
1166
1419
  export type AccountCollaborationInfoResponse = {
1167
1420
  /** Account ID */
1168
1421
  id: string;
@@ -1261,45 +1514,29 @@ export type RolePermissionResponse = {
1261
1514
  /** The statements defined in the permission */
1262
1515
  statements: PermissionStatementResponse[];
1263
1516
  };
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 */
1517
+ export type ResourceDto = {
1278
1518
  id: string;
1279
- /** Group name */
1280
1519
  name: string;
1281
- /** Group description */
1282
- description?: string;
1283
- /** Group slug */
1284
1520
  slug: string;
1285
- /** Group member count */
1286
- memberCount: number;
1287
- /** Group permission actions */
1288
- actions: string[];
1521
+ description?: string;
1522
+ "type"?: ResourceTypeDto;
1289
1523
  };
1290
- export type ResourceTypeResponse = {
1291
- id: string;
1292
- name: string;
1293
- slug: string;
1294
- description: string;
1295
- createdAt: string;
1524
+ export type ExtensionVersionInfoByLanguageResponse = {
1525
+ pt?: string;
1526
+ en?: string;
1296
1527
  };
1297
- export type ResourceDto = {
1528
+ export type ExtensionVersionResponse = {
1529
+ /** Extension Version Id */
1298
1530
  id: string;
1531
+ /** Extension Slug */
1532
+ extensionSlug: string;
1533
+ /** The extension version name */
1299
1534
  name: string;
1300
- slug: string;
1301
- description?: string;
1302
- "type"?: ResourceTypeDto;
1535
+ /** The extension version content url */
1536
+ dataUrl: string;
1537
+ /** The extension version date and time of creation */
1538
+ createdAt: string;
1539
+ displayName?: ExtensionVersionInfoByLanguageResponse;
1303
1540
  };
1304
1541
  export type AccountAuthenticationConfigResponse = {
1305
1542
  /** OpenID Well Known url for current account */
@@ -1355,6 +1592,8 @@ export type PageResponseAccountSsoResponse = {
1355
1592
  page: number;
1356
1593
  /** Length of current page items */
1357
1594
  size: number;
1595
+ /** Total pages found */
1596
+ totalPages: number;
1358
1597
  };
1359
1598
  export type AccountDataAvailableResponse = {
1360
1599
  /** Account data (name and slug) is available to be registered */
@@ -1616,9 +1855,9 @@ export function deleteAccountRole({ roleId }: {
1616
1855
  }));
1617
1856
  }
1618
1857
  /**
1619
- * Get all Global Reources and Actions compared to role
1858
+ * Get all Global Resources and Actions compared to role
1620
1859
  */
1621
- export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
1860
+ export function getResourcesAndActionsWithStatus1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
1622
1861
  roleId: string;
1623
1862
  size?: any;
1624
1863
  page?: any;
@@ -1633,7 +1872,7 @@ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, dir
1633
1872
  }, opts?: Oazapfts.RequestOpts) {
1634
1873
  return oazapfts.ok(oazapfts.fetchJson<{
1635
1874
  status: 200;
1636
- data: IamResourceType[];
1875
+ data: RoleResourceResponse[];
1637
1876
  } | {
1638
1877
  status: 403;
1639
1878
  data: ErrorResponse;
@@ -2014,14 +2253,57 @@ export function deleteGroupMapping({ id, attributeImporterId }: {
2014
2253
  }));
2015
2254
  }
2016
2255
  /**
2017
- * Create Service Credential v2
2256
+ * Get Service Credentials
2018
2257
  */
2019
- export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
2020
- serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
2258
+ export function getServiceCredentials({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, name, status }: {
2259
+ size?: any;
2260
+ page?: any;
2261
+ sort?: string;
2262
+ direction?: "ASC" | "DESC";
2263
+ search?: string;
2264
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
2265
+ filterBy?: string;
2266
+ filterValue?: string;
2267
+ multiFilterMode?: string;
2268
+ filterIn?: any;
2269
+ name?: string;
2270
+ status?: string;
2021
2271
  }, opts?: Oazapfts.RequestOpts) {
2022
2272
  return oazapfts.ok(oazapfts.fetchJson<{
2023
2273
  status: 200;
2024
- data: ServiceCredentialCreateResponseV2;
2274
+ data: PageResponseServiceCredentialResponse;
2275
+ } | {
2276
+ status: 403;
2277
+ data: ErrorResponse;
2278
+ } | {
2279
+ status: 500;
2280
+ data: ErrorResponse;
2281
+ }>(`/v2/service-credentials${QS.query(QS.explode({
2282
+ size,
2283
+ page,
2284
+ sort,
2285
+ direction,
2286
+ search,
2287
+ filterMode,
2288
+ filterBy,
2289
+ filterValue,
2290
+ multiFilterMode,
2291
+ filterIn,
2292
+ name,
2293
+ status
2294
+ }))}`, {
2295
+ ...opts
2296
+ }));
2297
+ }
2298
+ /**
2299
+ * Create Service Credential v2
2300
+ */
2301
+ export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
2302
+ serviceCredentialCreateRequestV2: ServiceCredentialCreateRequestV2;
2303
+ }, opts?: Oazapfts.RequestOpts) {
2304
+ return oazapfts.ok(oazapfts.fetchJson<{
2305
+ status: 200;
2306
+ data: ServiceCredentialCreateResponseV2;
2025
2307
  } | {
2026
2308
  status: 400;
2027
2309
  data: ErrorResponse;
@@ -2043,7 +2325,7 @@ export function createServiceCredential({ serviceCredentialCreateRequestV2 }: {
2043
2325
  /**
2044
2326
  * Get Service Credentials
2045
2327
  */
2046
- export function getServiceCredentials({ name, status, page, size }: {
2328
+ export function getServiceCredentials1({ name, status, page, size }: {
2047
2329
  name?: string;
2048
2330
  status?: string;
2049
2331
  page?: string;
@@ -2155,7 +2437,7 @@ export function createScope({ iamCreateScopeRequest }: {
2155
2437
  /**
2156
2438
  * Get Roles
2157
2439
  */
2158
- export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2440
+ export function getRoles3({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2159
2441
  size?: any;
2160
2442
  page?: any;
2161
2443
  sort?: string;
@@ -2218,7 +2500,7 @@ export function createAccountRole({ createAccountRoleRequest }: {
2218
2500
  /**
2219
2501
  * Get role members
2220
2502
  */
2221
- export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2503
+ export function getRoleMembers1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2222
2504
  roleId: string;
2223
2505
  size?: any;
2224
2506
  page?: any;
@@ -2295,7 +2577,7 @@ export function addRoleToMember({ roleId, addRoleToMemberRequest }: {
2295
2577
  /**
2296
2578
  * Get Groups from role
2297
2579
  */
2298
- export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2580
+ export function getRoleGroups1({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2299
2581
  roleId: string;
2300
2582
  size?: any;
2301
2583
  page?: any;
@@ -2364,7 +2646,7 @@ export function bindRoleGroups({ roleId, roleGroupIdsRequest }: {
2364
2646
  /**
2365
2647
  * Get Resources
2366
2648
  */
2367
- export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2649
+ export function getResources1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2368
2650
  size?: any;
2369
2651
  page?: any;
2370
2652
  sort?: string;
@@ -2427,7 +2709,7 @@ export function createResource({ createResourceRequest }: {
2427
2709
  /**
2428
2710
  * Get Account Members
2429
2711
  */
2430
- export function getAccountMembers1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2712
+ export function getAccountMembers2({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2431
2713
  size?: any;
2432
2714
  page?: any;
2433
2715
  sort?: string;
@@ -2490,7 +2772,7 @@ export function createUser({ createUserRequest }: {
2490
2772
  /**
2491
2773
  * Get member roles
2492
2774
  */
2493
- export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2775
+ export function getRoles4({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2494
2776
  memberId: string;
2495
2777
  size?: any;
2496
2778
  page?: any;
@@ -2579,7 +2861,7 @@ export function resetOtp({ memberId }: {
2579
2861
  /**
2580
2862
  * Get member Groups
2581
2863
  */
2582
- export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2864
+ export function getMemberGroups1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2583
2865
  memberId: string;
2584
2866
  size?: any;
2585
2867
  page?: any;
@@ -2791,7 +3073,7 @@ export function createUserInvitation({ createUserInvitationRequest }: {
2791
3073
  /**
2792
3074
  * Get Groups
2793
3075
  */
2794
- export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
3076
+ export function getGroups1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
2795
3077
  size?: any;
2796
3078
  page?: any;
2797
3079
  sort?: string;
@@ -2856,7 +3138,7 @@ export function save({ newGroupRequest }: {
2856
3138
  /**
2857
3139
  * Get Group members
2858
3140
  */
2859
- export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3141
+ export function getRoles5({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2860
3142
  groupId: string;
2861
3143
  size?: any;
2862
3144
  page?: any;
@@ -2922,7 +3204,7 @@ export function bindRoles({ groupId, groupRoleIdsRequest }: {
2922
3204
  /**
2923
3205
  * Get Group Resources
2924
3206
  */
2925
- export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3207
+ export function getGroupResources1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2926
3208
  groupId: string;
2927
3209
  size?: any;
2928
3210
  page?: any;
@@ -2983,7 +3265,7 @@ export function addResourcesToGroup({ groupId, addResourcesToGroupRequest }: {
2983
3265
  /**
2984
3266
  * Get Group members
2985
3267
  */
2986
- export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
3268
+ export function getMembers1({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
2987
3269
  groupId: string;
2988
3270
  size?: any;
2989
3271
  page?: any;
@@ -3085,6 +3367,112 @@ export function create({ createFeatureFlagRequest }: {
3085
3367
  body: createFeatureFlagRequest
3086
3368
  })));
3087
3369
  }
3370
+ /**
3371
+ * List all Account Extensions
3372
+ */
3373
+ export function listExtensions(opts?: Oazapfts.RequestOpts) {
3374
+ return oazapfts.ok(oazapfts.fetchJson<{
3375
+ status: 200;
3376
+ data: ExtensionReadResponse[];
3377
+ } | {
3378
+ status: 400;
3379
+ data: ErrorResponse;
3380
+ } | {
3381
+ status: 403;
3382
+ data: ErrorResponse;
3383
+ } | {
3384
+ status: 422;
3385
+ data: ErrorResponse;
3386
+ } | {
3387
+ status: 500;
3388
+ data: ErrorResponse;
3389
+ }>("/v1/extensions", {
3390
+ ...opts
3391
+ }));
3392
+ }
3393
+ /**
3394
+ * Update Account Extension
3395
+ */
3396
+ export function createExtension({ extensionCreateRequest }: {
3397
+ extensionCreateRequest: ExtensionCreateRequest;
3398
+ }, opts?: Oazapfts.RequestOpts) {
3399
+ return oazapfts.ok(oazapfts.fetchJson<{
3400
+ status: 201;
3401
+ } | {
3402
+ status: 400;
3403
+ data: ErrorResponse;
3404
+ } | {
3405
+ status: 403;
3406
+ data: ErrorResponse;
3407
+ } | {
3408
+ status: 422;
3409
+ data: ErrorResponse;
3410
+ } | {
3411
+ status: 500;
3412
+ data: ErrorResponse;
3413
+ }>("/v1/extensions", oazapfts.json({
3414
+ ...opts,
3415
+ method: "POST",
3416
+ body: extensionCreateRequest
3417
+ })));
3418
+ }
3419
+ /**
3420
+ * List all Account Extension Versions
3421
+ */
3422
+ export function listExtensionVersions({ slug }: {
3423
+ slug: string;
3424
+ }, opts?: Oazapfts.RequestOpts) {
3425
+ return oazapfts.ok(oazapfts.fetchJson<{
3426
+ status: 200;
3427
+ data: ExtensionVersionResumedReadResponse[];
3428
+ } | {
3429
+ status: 400;
3430
+ data: ErrorResponse;
3431
+ } | {
3432
+ status: 403;
3433
+ data: ErrorResponse;
3434
+ } | {
3435
+ status: 422;
3436
+ data: ErrorResponse;
3437
+ } | {
3438
+ status: 500;
3439
+ data: ErrorResponse;
3440
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions`, {
3441
+ ...opts
3442
+ }));
3443
+ }
3444
+ /**
3445
+ * Create Account Extension Version
3446
+ */
3447
+ export function createExtensionVersion({ slug, name, body }: {
3448
+ slug: string;
3449
+ name: string;
3450
+ body?: {
3451
+ file: Blob;
3452
+ };
3453
+ }, opts?: Oazapfts.RequestOpts) {
3454
+ return oazapfts.ok(oazapfts.fetchJson<{
3455
+ status: 201;
3456
+ } | {
3457
+ status: 400;
3458
+ data: ErrorResponse;
3459
+ } | {
3460
+ status: 403;
3461
+ data: ErrorResponse;
3462
+ } | {
3463
+ status: 422;
3464
+ data: ErrorResponse;
3465
+ } | {
3466
+ status: 500;
3467
+ data: ErrorResponse;
3468
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions${QS.query(QS.explode({
3469
+ name
3470
+ }))}`, oazapfts.multipart({
3471
+ ...opts,
3472
+ method: "POST",
3473
+ body
3474
+ })));
3475
+ }
3088
3476
  /**
3089
3477
  * Send Welcome Email
3090
3478
  */
@@ -4083,6 +4471,60 @@ export function disable({ id }: {
4083
4471
  method: "PATCH"
4084
4472
  }));
4085
4473
  }
4474
+ /**
4475
+ * Delete Account Extension
4476
+ */
4477
+ export function deleteExtension({ slug }: {
4478
+ slug: string;
4479
+ }, opts?: Oazapfts.RequestOpts) {
4480
+ return oazapfts.ok(oazapfts.fetchJson<{
4481
+ status: 204;
4482
+ } | {
4483
+ status: 400;
4484
+ data: ErrorResponse;
4485
+ } | {
4486
+ status: 403;
4487
+ data: ErrorResponse;
4488
+ } | {
4489
+ status: 422;
4490
+ data: ErrorResponse;
4491
+ } | {
4492
+ status: 500;
4493
+ data: ErrorResponse;
4494
+ }>(`/v1/extensions/${encodeURIComponent(slug)}`, {
4495
+ ...opts,
4496
+ method: "DELETE"
4497
+ }));
4498
+ }
4499
+ /**
4500
+ * Update Account Extension
4501
+ */
4502
+ export function updateExtension({ slug, extensionUpdateRequest }: {
4503
+ slug: string;
4504
+ extensionUpdateRequest: ExtensionUpdateRequest;
4505
+ }, opts?: Oazapfts.RequestOpts) {
4506
+ return oazapfts.ok(oazapfts.fetchJson<{
4507
+ status: 200;
4508
+ } | {
4509
+ status: 204;
4510
+ } | {
4511
+ status: 400;
4512
+ data: ErrorResponse;
4513
+ } | {
4514
+ status: 403;
4515
+ data: ErrorResponse;
4516
+ } | {
4517
+ status: 422;
4518
+ data: ErrorResponse;
4519
+ } | {
4520
+ status: 500;
4521
+ data: ErrorResponse;
4522
+ }>(`/v1/extensions/${encodeURIComponent(slug)}`, oazapfts.json({
4523
+ ...opts,
4524
+ method: "PATCH",
4525
+ body: extensionUpdateRequest
4526
+ })));
4527
+ }
4086
4528
  /**
4087
4529
  * Adds a new email domain to an existing account
4088
4530
  */
@@ -4229,96 +4671,38 @@ export function updatePartnerAccountAdminData({ id, accountPartnerAdminDataUpdat
4229
4671
  })));
4230
4672
  }
4231
4673
  /**
4232
- * Verify User repository credential configuration status.
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
4674
+ * List service credential groups
4272
4675
  */
4273
- export function getAccounts({ accountType, slug, id }: {
4274
- accountType?: string;
4275
- slug?: string;
4276
- id?: string;
4676
+ export function getServiceCredentialGroups({ id }: {
4677
+ id: string;
4277
4678
  }, opts?: Oazapfts.RequestOpts) {
4278
4679
  return oazapfts.ok(oazapfts.fetchJson<{
4279
4680
  status: 200;
4280
- data: AccountDataReadResponse[];
4681
+ data: PageResponseGroupReadResponse;
4281
4682
  } | {
4282
4683
  status: 403;
4283
4684
  data: ErrorResponse;
4284
4685
  } | {
4285
4686
  status: 500;
4286
4687
  data: ErrorResponse;
4287
- }>(`/v1/stackspot/accounts${QS.query(QS.explode({
4288
- accountType,
4289
- slug,
4290
- id
4291
- }))}`, {
4688
+ }>(`/v2/service-credentials/${encodeURIComponent(id)}/groups`, {
4292
4689
  ...opts
4293
4690
  }));
4294
4691
  }
4295
- /**
4296
- * Get Account by id
4297
- */
4298
- export function getAccount({ id }: {
4692
+ export function getSecret({ id }: {
4299
4693
  id: string;
4300
4694
  }, opts?: Oazapfts.RequestOpts) {
4301
4695
  return oazapfts.ok(oazapfts.fetchJson<{
4302
4696
  status: 200;
4303
- data: AccountDataReadResponse;
4304
- } | {
4305
- status: 403;
4306
- data: ErrorResponse;
4307
- } | {
4308
- status: 404;
4309
- data: ErrorResponse;
4310
- } | {
4311
- status: 500;
4312
- data: ErrorResponse;
4313
- }>(`/v1/stackspot/accounts/${encodeURIComponent(id)}`, {
4697
+ data: string;
4698
+ }>(`/v2/secrets/${encodeURIComponent(id)}`, {
4314
4699
  ...opts
4315
4700
  }));
4316
4701
  }
4317
4702
  /**
4318
- * Get Account Members
4703
+ * Get Roles
4319
4704
  */
4320
- export function getAccountMembers({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4321
- id: string;
4705
+ export function getRoles({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4322
4706
  size?: any;
4323
4707
  page?: any;
4324
4708
  sort?: string;
@@ -4332,14 +4716,14 @@ export function getAccountMembers({ id, size, page, sort, direction, search, fil
4332
4716
  }, opts?: Oazapfts.RequestOpts) {
4333
4717
  return oazapfts.ok(oazapfts.fetchJson<{
4334
4718
  status: 200;
4335
- data: AccountMemberResponse[];
4719
+ data: PageResponseRoleResponse;
4336
4720
  } | {
4337
4721
  status: 403;
4338
4722
  data: ErrorResponse;
4339
4723
  } | {
4340
4724
  status: 500;
4341
4725
  data: ErrorResponse;
4342
- }>(`/v1/stackspot/accounts/${encodeURIComponent(id)}/members${QS.query(QS.explode({
4726
+ }>(`/v2/roles${QS.query(QS.explode({
4343
4727
  size,
4344
4728
  page,
4345
4729
  sort,
@@ -4355,14 +4739,698 @@ export function getAccountMembers({ id, size, page, sort, direction, search, fil
4355
4739
  }));
4356
4740
  }
4357
4741
  /**
4358
- * Get Service Credential by ID (Client ID)
4742
+ * Get all Global Resources and Actions compared to role
4359
4743
  */
4360
- export function getServiceCredential({ id }: {
4361
- id: string;
4362
- }, opts?: Oazapfts.RequestOpts) {
4363
- return oazapfts.ok(oazapfts.fetchJson<{
4364
- status: 200;
4365
- data: ServiceCredentialDetailsResponse;
4744
+ export function getResourcesAndActionsWithStatus({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4745
+ roleId: string;
4746
+ size?: any;
4747
+ page?: any;
4748
+ sort?: string;
4749
+ direction?: "ASC" | "DESC";
4750
+ search?: string;
4751
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4752
+ filterBy?: string;
4753
+ filterValue?: string;
4754
+ multiFilterMode?: string;
4755
+ filterIn?: any;
4756
+ }, opts?: Oazapfts.RequestOpts) {
4757
+ return oazapfts.ok(oazapfts.fetchJson<{
4758
+ status: 200;
4759
+ data: PageResponseRoleResourceResponse;
4760
+ } | {
4761
+ status: 403;
4762
+ data: ErrorResponse;
4763
+ } | {
4764
+ status: 500;
4765
+ data: ErrorResponse;
4766
+ }>(`/v2/roles/${encodeURIComponent(roleId)}/resources${QS.query(QS.explode({
4767
+ size,
4768
+ page,
4769
+ sort,
4770
+ direction,
4771
+ search,
4772
+ filterMode,
4773
+ filterBy,
4774
+ filterValue,
4775
+ multiFilterMode,
4776
+ filterIn
4777
+ }))}`, {
4778
+ ...opts
4779
+ }));
4780
+ }
4781
+ /**
4782
+ * Get role members
4783
+ */
4784
+ export function getRoleMembers({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4785
+ roleId: string;
4786
+ size?: any;
4787
+ page?: any;
4788
+ sort?: string;
4789
+ direction?: "ASC" | "DESC";
4790
+ search?: string;
4791
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4792
+ filterBy?: string;
4793
+ filterValue?: string;
4794
+ multiFilterMode?: string;
4795
+ filterIn?: any;
4796
+ }, opts?: Oazapfts.RequestOpts) {
4797
+ return oazapfts.ok(oazapfts.fetchJson<{
4798
+ status: 200;
4799
+ data: PageResponseRoleMemberResponse;
4800
+ } | {
4801
+ status: 403;
4802
+ data: ErrorResponse;
4803
+ } | {
4804
+ status: 500;
4805
+ data: ErrorResponse;
4806
+ }>(`/v2/roles/${encodeURIComponent(roleId)}/members${QS.query(QS.explode({
4807
+ size,
4808
+ page,
4809
+ sort,
4810
+ direction,
4811
+ search,
4812
+ filterMode,
4813
+ filterBy,
4814
+ filterValue,
4815
+ multiFilterMode,
4816
+ filterIn
4817
+ }))}`, {
4818
+ ...opts
4819
+ }));
4820
+ }
4821
+ /**
4822
+ * Get Groups from role
4823
+ */
4824
+ export function getRoleGroups({ roleId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4825
+ roleId: string;
4826
+ size?: any;
4827
+ page?: any;
4828
+ sort?: string;
4829
+ direction?: "ASC" | "DESC";
4830
+ search?: string;
4831
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4832
+ filterBy?: string;
4833
+ filterValue?: string;
4834
+ multiFilterMode?: string;
4835
+ filterIn?: any;
4836
+ }, opts?: Oazapfts.RequestOpts) {
4837
+ return oazapfts.ok(oazapfts.fetchJson<{
4838
+ status: 200;
4839
+ data: PageResponseRoleGroupResponse;
4840
+ } | {
4841
+ status: 403;
4842
+ data: ErrorResponse;
4843
+ } | {
4844
+ status: 500;
4845
+ data: ErrorResponse;
4846
+ }>(`/v2/roles/${encodeURIComponent(roleId)}/groups${QS.query(QS.explode({
4847
+ size,
4848
+ page,
4849
+ sort,
4850
+ direction,
4851
+ search,
4852
+ filterMode,
4853
+ filterBy,
4854
+ filterValue,
4855
+ multiFilterMode,
4856
+ filterIn
4857
+ }))}`, {
4858
+ ...opts
4859
+ }));
4860
+ }
4861
+ /**
4862
+ * Get Resources
4863
+ */
4864
+ export function getResources({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4865
+ size?: any;
4866
+ page?: any;
4867
+ sort?: string;
4868
+ direction?: "ASC" | "DESC";
4869
+ search?: string;
4870
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4871
+ filterBy?: string;
4872
+ filterValue?: string;
4873
+ multiFilterMode?: string;
4874
+ filterIn?: any;
4875
+ }, opts?: Oazapfts.RequestOpts) {
4876
+ return oazapfts.ok(oazapfts.fetchJson<{
4877
+ status: 200;
4878
+ data: PageResponseResourceResponse;
4879
+ } | {
4880
+ status: 403;
4881
+ data: ErrorResponse;
4882
+ } | {
4883
+ status: 500;
4884
+ data: ErrorResponse;
4885
+ }>(`/v2/resources${QS.query(QS.explode({
4886
+ size,
4887
+ page,
4888
+ sort,
4889
+ direction,
4890
+ search,
4891
+ filterMode,
4892
+ filterBy,
4893
+ filterValue,
4894
+ multiFilterMode,
4895
+ filterIn
4896
+ }))}`, {
4897
+ ...opts
4898
+ }));
4899
+ }
4900
+ /**
4901
+ * Get Members from Resource
4902
+ */
4903
+ export function getResourceMembers({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4904
+ resourceId: string;
4905
+ size?: any;
4906
+ page?: any;
4907
+ sort?: string;
4908
+ direction?: "ASC" | "DESC";
4909
+ search?: string;
4910
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4911
+ filterBy?: string;
4912
+ filterValue?: string;
4913
+ multiFilterMode?: string;
4914
+ filterIn?: any;
4915
+ }, opts?: Oazapfts.RequestOpts) {
4916
+ return oazapfts.ok(oazapfts.fetchJson<{
4917
+ status: 200;
4918
+ data: PageResponseMembersFromResourceResponse;
4919
+ } | {
4920
+ status: 403;
4921
+ data: ErrorResponse;
4922
+ } | {
4923
+ status: 500;
4924
+ data: ErrorResponse;
4925
+ }>(`/v2/resources/${encodeURIComponent(resourceId)}/members${QS.query(QS.explode({
4926
+ size,
4927
+ page,
4928
+ sort,
4929
+ direction,
4930
+ search,
4931
+ filterMode,
4932
+ filterBy,
4933
+ filterValue,
4934
+ multiFilterMode,
4935
+ filterIn
4936
+ }))}`, {
4937
+ ...opts
4938
+ }));
4939
+ }
4940
+ /**
4941
+ * Get Groups from Resource
4942
+ */
4943
+ export function getResourceGroups({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4944
+ resourceId: string;
4945
+ size?: any;
4946
+ page?: any;
4947
+ sort?: string;
4948
+ direction?: "ASC" | "DESC";
4949
+ search?: string;
4950
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4951
+ filterBy?: string;
4952
+ filterValue?: string;
4953
+ multiFilterMode?: string;
4954
+ filterIn?: any;
4955
+ }, opts?: Oazapfts.RequestOpts) {
4956
+ return oazapfts.ok(oazapfts.fetchJson<{
4957
+ status: 200;
4958
+ data: PageResponseGroupsFromResourceResponse;
4959
+ } | {
4960
+ status: 403;
4961
+ data: ErrorResponse;
4962
+ } | {
4963
+ status: 500;
4964
+ data: ErrorResponse;
4965
+ }>(`/v2/resources/${encodeURIComponent(resourceId)}/groups${QS.query(QS.explode({
4966
+ size,
4967
+ page,
4968
+ sort,
4969
+ direction,
4970
+ search,
4971
+ filterMode,
4972
+ filterBy,
4973
+ filterValue,
4974
+ multiFilterMode,
4975
+ filterIn
4976
+ }))}`, {
4977
+ ...opts
4978
+ }));
4979
+ }
4980
+ /**
4981
+ * Get Resource Types
4982
+ */
4983
+ export function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4984
+ size?: any;
4985
+ page?: any;
4986
+ sort?: string;
4987
+ direction?: "ASC" | "DESC";
4988
+ search?: string;
4989
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
4990
+ filterBy?: string;
4991
+ filterValue?: string;
4992
+ multiFilterMode?: string;
4993
+ filterIn?: any;
4994
+ }, opts?: Oazapfts.RequestOpts) {
4995
+ return oazapfts.ok(oazapfts.fetchJson<{
4996
+ status: 200;
4997
+ data: PageResponseResourceTypeResponse;
4998
+ } | {
4999
+ status: 403;
5000
+ data: ErrorResponse;
5001
+ } | {
5002
+ status: 500;
5003
+ data: ErrorResponse;
5004
+ }>(`/v2/resource-types${QS.query(QS.explode({
5005
+ size,
5006
+ page,
5007
+ sort,
5008
+ direction,
5009
+ search,
5010
+ filterMode,
5011
+ filterBy,
5012
+ filterValue,
5013
+ multiFilterMode,
5014
+ filterIn
5015
+ }))}`, {
5016
+ ...opts
5017
+ }));
5018
+ }
5019
+ /**
5020
+ * Get Account Members
5021
+ */
5022
+ export function getAccountMembers({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5023
+ size?: any;
5024
+ page?: any;
5025
+ sort?: string;
5026
+ direction?: "ASC" | "DESC";
5027
+ search?: string;
5028
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5029
+ filterBy?: string;
5030
+ filterValue?: string;
5031
+ multiFilterMode?: string;
5032
+ filterIn?: any;
5033
+ }, opts?: Oazapfts.RequestOpts) {
5034
+ return oazapfts.ok(oazapfts.fetchJson<{
5035
+ status: 200;
5036
+ data: PageResponseAccountMemberResponse;
5037
+ } | {
5038
+ status: 403;
5039
+ data: ErrorResponse;
5040
+ } | {
5041
+ status: 500;
5042
+ data: ErrorResponse;
5043
+ }>(`/v2/members${QS.query(QS.explode({
5044
+ size,
5045
+ page,
5046
+ sort,
5047
+ direction,
5048
+ search,
5049
+ filterMode,
5050
+ filterBy,
5051
+ filterValue,
5052
+ multiFilterMode,
5053
+ filterIn
5054
+ }))}`, {
5055
+ ...opts
5056
+ }));
5057
+ }
5058
+ /**
5059
+ * Get member roles
5060
+ */
5061
+ export function getRoles1({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5062
+ memberId: string;
5063
+ size?: any;
5064
+ page?: any;
5065
+ sort?: string;
5066
+ direction?: "ASC" | "DESC";
5067
+ search?: string;
5068
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5069
+ filterBy?: string;
5070
+ filterValue?: string;
5071
+ multiFilterMode?: string;
5072
+ filterIn?: any;
5073
+ }, opts?: Oazapfts.RequestOpts) {
5074
+ return oazapfts.ok(oazapfts.fetchJson<{
5075
+ status: 200;
5076
+ data: PageResponseReadMemberRoleResponse;
5077
+ } | {
5078
+ status: 403;
5079
+ data: ErrorResponse;
5080
+ } | {
5081
+ status: 500;
5082
+ data: ErrorResponse;
5083
+ }>(`/v2/members/${encodeURIComponent(memberId)}/roles${QS.query(QS.explode({
5084
+ size,
5085
+ page,
5086
+ sort,
5087
+ direction,
5088
+ search,
5089
+ filterMode,
5090
+ filterBy,
5091
+ filterValue,
5092
+ multiFilterMode,
5093
+ filterIn
5094
+ }))}`, {
5095
+ ...opts
5096
+ }));
5097
+ }
5098
+ /**
5099
+ * Get member Groups
5100
+ */
5101
+ export function getMemberGroups({ memberId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5102
+ memberId: string;
5103
+ size?: any;
5104
+ page?: any;
5105
+ sort?: string;
5106
+ direction?: "ASC" | "DESC";
5107
+ search?: string;
5108
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5109
+ filterBy?: string;
5110
+ filterValue?: string;
5111
+ multiFilterMode?: string;
5112
+ filterIn?: any;
5113
+ }, opts?: Oazapfts.RequestOpts) {
5114
+ return oazapfts.ok(oazapfts.fetchJson<{
5115
+ status: 200;
5116
+ data: PageResponseGroupReadResponse;
5117
+ } | {
5118
+ status: 403;
5119
+ data: ErrorResponse;
5120
+ } | {
5121
+ status: 500;
5122
+ data: ErrorResponse;
5123
+ }>(`/v2/members/${encodeURIComponent(memberId)}/groups${QS.query(QS.explode({
5124
+ size,
5125
+ page,
5126
+ sort,
5127
+ direction,
5128
+ search,
5129
+ filterMode,
5130
+ filterBy,
5131
+ filterValue,
5132
+ multiFilterMode,
5133
+ filterIn
5134
+ }))}`, {
5135
+ ...opts
5136
+ }));
5137
+ }
5138
+ /**
5139
+ * Get Groups
5140
+ */
5141
+ export function getGroups({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn, includeDefaultGroup }: {
5142
+ size?: any;
5143
+ page?: any;
5144
+ sort?: string;
5145
+ direction?: "ASC" | "DESC";
5146
+ search?: string;
5147
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5148
+ filterBy?: string;
5149
+ filterValue?: string;
5150
+ multiFilterMode?: string;
5151
+ filterIn?: any;
5152
+ includeDefaultGroup?: boolean;
5153
+ }, opts?: Oazapfts.RequestOpts) {
5154
+ return oazapfts.ok(oazapfts.fetchJson<{
5155
+ status: 200;
5156
+ data: PageResponseGroupReadResponse;
5157
+ } | {
5158
+ status: 403;
5159
+ data: ErrorResponse;
5160
+ } | {
5161
+ status: 500;
5162
+ data: ErrorResponse;
5163
+ }>(`/v2/groups${QS.query(QS.explode({
5164
+ size,
5165
+ page,
5166
+ sort,
5167
+ direction,
5168
+ search,
5169
+ filterMode,
5170
+ filterBy,
5171
+ filterValue,
5172
+ multiFilterMode,
5173
+ filterIn,
5174
+ includeDefaultGroup
5175
+ }))}`, {
5176
+ ...opts
5177
+ }));
5178
+ }
5179
+ /**
5180
+ * Get Group roles
5181
+ */
5182
+ export function getRoles2({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5183
+ groupId: string;
5184
+ size?: any;
5185
+ page?: any;
5186
+ sort?: string;
5187
+ direction?: "ASC" | "DESC";
5188
+ search?: string;
5189
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5190
+ filterBy?: string;
5191
+ filterValue?: string;
5192
+ multiFilterMode?: string;
5193
+ filterIn?: any;
5194
+ }, opts?: Oazapfts.RequestOpts) {
5195
+ return oazapfts.ok(oazapfts.fetchJson<{
5196
+ status: 200;
5197
+ data: PageResponseRoleResponse;
5198
+ } | {
5199
+ status: 403;
5200
+ data: ErrorResponse;
5201
+ } | {
5202
+ status: 500;
5203
+ data: ErrorResponse;
5204
+ }>(`/v2/groups/${encodeURIComponent(groupId)}/roles${QS.query(QS.explode({
5205
+ size,
5206
+ page,
5207
+ sort,
5208
+ direction,
5209
+ search,
5210
+ filterMode,
5211
+ filterBy,
5212
+ filterValue,
5213
+ multiFilterMode,
5214
+ filterIn
5215
+ }))}`, {
5216
+ ...opts
5217
+ }));
5218
+ }
5219
+ /**
5220
+ * Get Group Resources
5221
+ */
5222
+ export function getGroupResources({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5223
+ groupId: string;
5224
+ size?: any;
5225
+ page?: any;
5226
+ sort?: string;
5227
+ direction?: "ASC" | "DESC";
5228
+ search?: string;
5229
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5230
+ filterBy?: string;
5231
+ filterValue?: string;
5232
+ multiFilterMode?: string;
5233
+ filterIn?: any;
5234
+ }, opts?: Oazapfts.RequestOpts) {
5235
+ return oazapfts.ok(oazapfts.fetchJson<{
5236
+ status: 200;
5237
+ data: PageResponseResourceResponse;
5238
+ } | {
5239
+ status: 403;
5240
+ data: ErrorResponse;
5241
+ } | {
5242
+ status: 500;
5243
+ data: ErrorResponse;
5244
+ }>(`/v2/groups/${encodeURIComponent(groupId)}/resources${QS.query(QS.explode({
5245
+ size,
5246
+ page,
5247
+ sort,
5248
+ direction,
5249
+ search,
5250
+ filterMode,
5251
+ filterBy,
5252
+ filterValue,
5253
+ multiFilterMode,
5254
+ filterIn
5255
+ }))}`, {
5256
+ ...opts
5257
+ }));
5258
+ }
5259
+ /**
5260
+ * Get Group members
5261
+ */
5262
+ export function getMembers({ groupId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5263
+ groupId: string;
5264
+ size?: any;
5265
+ page?: any;
5266
+ sort?: string;
5267
+ direction?: "ASC" | "DESC";
5268
+ search?: string;
5269
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5270
+ filterBy?: string;
5271
+ filterValue?: string;
5272
+ multiFilterMode?: string;
5273
+ filterIn?: any;
5274
+ }, opts?: Oazapfts.RequestOpts) {
5275
+ return oazapfts.ok(oazapfts.fetchJson<{
5276
+ status: 200;
5277
+ data: PageResponseReadGroupMembersResponse;
5278
+ } | {
5279
+ status: 403;
5280
+ data: ErrorResponse;
5281
+ } | {
5282
+ status: 500;
5283
+ data: ErrorResponse;
5284
+ }>(`/v2/groups/${encodeURIComponent(groupId)}/members${QS.query(QS.explode({
5285
+ size,
5286
+ page,
5287
+ sort,
5288
+ direction,
5289
+ search,
5290
+ filterMode,
5291
+ filterBy,
5292
+ filterValue,
5293
+ multiFilterMode,
5294
+ filterIn
5295
+ }))}`, {
5296
+ ...opts
5297
+ }));
5298
+ }
5299
+ /**
5300
+ * Verify User repository credential configuration status.
5301
+ */
5302
+ export function isCreatedScmCredentials(opts?: Oazapfts.RequestOpts) {
5303
+ return oazapfts.ok(oazapfts.fetchJson<{
5304
+ status: 200;
5305
+ } | {
5306
+ status: 403;
5307
+ data: ErrorResponse;
5308
+ } | {
5309
+ status: 404;
5310
+ data: ErrorResponse;
5311
+ } | {
5312
+ status: 422;
5313
+ data: ErrorResponse;
5314
+ } | {
5315
+ status: 500;
5316
+ data: ErrorResponse;
5317
+ }>("/v1/users/scm-credentials/configuration-status", {
5318
+ ...opts
5319
+ }));
5320
+ }
5321
+ /**
5322
+ * List Accounts of User can use and collaborate.
5323
+ */
5324
+ export function getUserAccountWithRole(opts?: Oazapfts.RequestOpts) {
5325
+ return oazapfts.ok(oazapfts.fetchJson<{
5326
+ status: 200;
5327
+ data: AccountCollaborationInfoResponse[];
5328
+ } | {
5329
+ status: 403;
5330
+ data: ErrorResponse;
5331
+ } | {
5332
+ status: 500;
5333
+ data: ErrorResponse;
5334
+ }>("/v1/users/accounts", {
5335
+ ...opts
5336
+ }));
5337
+ }
5338
+ /**
5339
+ * Get Accounts
5340
+ */
5341
+ export function getAccounts({ accountType, slug, id }: {
5342
+ accountType?: string;
5343
+ slug?: string;
5344
+ id?: string;
5345
+ }, opts?: Oazapfts.RequestOpts) {
5346
+ return oazapfts.ok(oazapfts.fetchJson<{
5347
+ status: 200;
5348
+ data: AccountDataReadResponse[];
5349
+ } | {
5350
+ status: 403;
5351
+ data: ErrorResponse;
5352
+ } | {
5353
+ status: 500;
5354
+ data: ErrorResponse;
5355
+ }>(`/v1/stackspot/accounts${QS.query(QS.explode({
5356
+ accountType,
5357
+ slug,
5358
+ id
5359
+ }))}`, {
5360
+ ...opts
5361
+ }));
5362
+ }
5363
+ /**
5364
+ * Get Account by id
5365
+ */
5366
+ export function getAccount({ id }: {
5367
+ id: string;
5368
+ }, opts?: Oazapfts.RequestOpts) {
5369
+ return oazapfts.ok(oazapfts.fetchJson<{
5370
+ status: 200;
5371
+ data: AccountDataReadResponse;
5372
+ } | {
5373
+ status: 403;
5374
+ data: ErrorResponse;
5375
+ } | {
5376
+ status: 404;
5377
+ data: ErrorResponse;
5378
+ } | {
5379
+ status: 500;
5380
+ data: ErrorResponse;
5381
+ }>(`/v1/stackspot/accounts/${encodeURIComponent(id)}`, {
5382
+ ...opts
5383
+ }));
5384
+ }
5385
+ /**
5386
+ * Get Account Members
5387
+ */
5388
+ export function getAccountMembers1({ id, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5389
+ id: string;
5390
+ size?: any;
5391
+ page?: any;
5392
+ sort?: string;
5393
+ direction?: "ASC" | "DESC";
5394
+ search?: string;
5395
+ filterMode?: "MATCH" | "CONTAINS" | "IN";
5396
+ filterBy?: string;
5397
+ filterValue?: string;
5398
+ multiFilterMode?: string;
5399
+ filterIn?: any;
5400
+ }, opts?: Oazapfts.RequestOpts) {
5401
+ return oazapfts.ok(oazapfts.fetchJson<{
5402
+ status: 200;
5403
+ data: AccountMemberResponse[];
5404
+ } | {
5405
+ status: 403;
5406
+ data: ErrorResponse;
5407
+ } | {
5408
+ status: 500;
5409
+ data: ErrorResponse;
5410
+ }>(`/v1/stackspot/accounts/${encodeURIComponent(id)}/members${QS.query(QS.explode({
5411
+ size,
5412
+ page,
5413
+ sort,
5414
+ direction,
5415
+ search,
5416
+ filterMode,
5417
+ filterBy,
5418
+ filterValue,
5419
+ multiFilterMode,
5420
+ filterIn
5421
+ }))}`, {
5422
+ ...opts
5423
+ }));
5424
+ }
5425
+ /**
5426
+ * Get Service Credential by ID (Client ID)
5427
+ */
5428
+ export function getServiceCredential({ id }: {
5429
+ id: string;
5430
+ }, opts?: Oazapfts.RequestOpts) {
5431
+ return oazapfts.ok(oazapfts.fetchJson<{
5432
+ status: 200;
5433
+ data: ServiceCredentialDetailsResponse;
4366
5434
  } | {
4367
5435
  status: 403;
4368
5436
  data: ErrorResponse;
@@ -4395,7 +5463,7 @@ export function getServiceCredentialPermissions({ id }: {
4395
5463
  /**
4396
5464
  * List service credential groups
4397
5465
  */
4398
- export function getServiceCredentialGroups({ id }: {
5466
+ export function getServiceCredentialGroups1({ id }: {
4399
5467
  id: string;
4400
5468
  }, opts?: Oazapfts.RequestOpts) {
4401
5469
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -4500,7 +5568,7 @@ export function getPermissionsWithStatus({ roleId, size, page, sort, direction,
4500
5568
  /**
4501
5569
  * Get Members from Resource
4502
5570
  */
4503
- export function getResourceMembers({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5571
+ export function getResourceMembers1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4504
5572
  resourceId: string;
4505
5573
  size?: any;
4506
5574
  page?: any;
@@ -4540,7 +5608,7 @@ export function getResourceMembers({ resourceId, size, page, sort, direction, se
4540
5608
  /**
4541
5609
  * Get Groups from Resource
4542
5610
  */
4543
- export function getResourceGroups({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5611
+ export function getResourceGroups1({ resourceId, size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4544
5612
  resourceId: string;
4545
5613
  size?: any;
4546
5614
  page?: any;
@@ -4580,7 +5648,7 @@ export function getResourceGroups({ resourceId, size, page, sort, direction, sea
4580
5648
  /**
4581
5649
  * Get Resource Types
4582
5650
  */
4583
- export function getResourceTypes({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
5651
+ export function getResourceTypes1({ size, page, sort, direction, search, filterMode, filterBy, filterValue, multiFilterMode, filterIn }: {
4584
5652
  size?: any;
4585
5653
  page?: any;
4586
5654
  sort?: string;
@@ -4643,7 +5711,7 @@ export function getAccess({ resourceType, resource, action, attribute }: {
4643
5711
  /**
4644
5712
  * Get Resources Members
4645
5713
  */
4646
- export function getResources1({ memberId }: {
5714
+ export function getResources2({ memberId }: {
4647
5715
  memberId: string;
4648
5716
  }, opts?: Oazapfts.RequestOpts) {
4649
5717
  return oazapfts.ok(oazapfts.fetchJson<{
@@ -4718,6 +5786,83 @@ export function getAccountMembersToCollaborators({ size, page, sort, direction,
4718
5786
  ...opts
4719
5787
  }));
4720
5788
  }
5789
+ /**
5790
+ * Get a Account Extension Version
5791
+ */
5792
+ export function getExtensionVersion({ slug, versionName }: {
5793
+ slug: string;
5794
+ versionName: string;
5795
+ }, opts?: Oazapfts.RequestOpts) {
5796
+ return oazapfts.ok(oazapfts.fetchJson<{
5797
+ status: 200;
5798
+ data: ExtensionVersionResponse;
5799
+ } | {
5800
+ status: 400;
5801
+ data: ErrorResponse;
5802
+ } | {
5803
+ status: 403;
5804
+ data: ErrorResponse;
5805
+ } | {
5806
+ status: 422;
5807
+ data: ErrorResponse;
5808
+ } | {
5809
+ status: 500;
5810
+ data: ErrorResponse;
5811
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
5812
+ ...opts
5813
+ }));
5814
+ }
5815
+ /**
5816
+ * Delete Account Extension Version
5817
+ */
5818
+ export function deleteExtensionVersion({ slug, versionName }: {
5819
+ slug: string;
5820
+ versionName: string;
5821
+ }, opts?: Oazapfts.RequestOpts) {
5822
+ return oazapfts.ok(oazapfts.fetchJson<{
5823
+ status: 204;
5824
+ } | {
5825
+ status: 400;
5826
+ data: ErrorResponse;
5827
+ } | {
5828
+ status: 403;
5829
+ data: ErrorResponse;
5830
+ } | {
5831
+ status: 422;
5832
+ data: ErrorResponse;
5833
+ } | {
5834
+ status: 500;
5835
+ data: ErrorResponse;
5836
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/versions/${encodeURIComponent(versionName)}`, {
5837
+ ...opts,
5838
+ method: "DELETE"
5839
+ }));
5840
+ }
5841
+ /**
5842
+ * Get the active Extension Version
5843
+ */
5844
+ export function getActiveExtensionVersion({ slug }: {
5845
+ slug: string;
5846
+ }, opts?: Oazapfts.RequestOpts) {
5847
+ return oazapfts.ok(oazapfts.fetchJson<{
5848
+ status: 200;
5849
+ data: ExtensionVersionResponse;
5850
+ } | {
5851
+ status: 400;
5852
+ data: ErrorResponse;
5853
+ } | {
5854
+ status: 403;
5855
+ data: ErrorResponse;
5856
+ } | {
5857
+ status: 422;
5858
+ data: ErrorResponse;
5859
+ } | {
5860
+ status: 500;
5861
+ data: ErrorResponse;
5862
+ }>(`/v1/extensions/${encodeURIComponent(slug)}/active`, {
5863
+ ...opts
5864
+ }));
5865
+ }
4721
5866
  /**
4722
5867
  * Get Authentication Configuration for account
4723
5868
  */
@@ -5014,6 +6159,28 @@ export function deleteResource({ resourceId }: {
5014
6159
  method: "DELETE"
5015
6160
  }));
5016
6161
  }
6162
+ /**
6163
+ * Removes member profile image
6164
+ */
6165
+ export function deleteProfileImage({ memberId }: {
6166
+ memberId: string;
6167
+ }, opts?: Oazapfts.RequestOpts) {
6168
+ return oazapfts.ok(oazapfts.fetchJson<{
6169
+ status: 204;
6170
+ } | {
6171
+ status: 400;
6172
+ data: ErrorResponse;
6173
+ } | {
6174
+ status: 404;
6175
+ data: ErrorResponse;
6176
+ } | {
6177
+ status: 500;
6178
+ data: ErrorResponse;
6179
+ }>(`/v1/members/${encodeURIComponent(memberId)}/profile-image`, {
6180
+ ...opts,
6181
+ method: "DELETE"
6182
+ }));
6183
+ }
5017
6184
  /**
5018
6185
  * Remove resource from member favorites
5019
6186
  */