@iblai/iblai-api 2025.11.20-memory-pagination-fix-test-2-core → 2025.12.3-webhook-tool-dev-test-core
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/dist/index.cjs.js +144 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +144 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +144 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +3 -0
- package/dist/types/models/PaginatedUserGroupList.d.ts +7 -0
- package/dist/types/models/PatchedUserGroup.d.ts +26 -0
- package/dist/types/models/UserGroup.d.ts +26 -0
- package/dist/types/services/CoreService.d.ts +97 -3
- package/package.json +1 -1
- package/sdk_schema.yml +336 -4
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +3 -0
- package/src/models/PaginatedUserGroupList.ts +12 -0
- package/src/models/PatchedUserGroup.ts +31 -0
- package/src/models/UserGroup.ts +31 -0
- package/src/services/CoreService.ts +195 -3
|
@@ -15,11 +15,13 @@ import type { MentorPolicy } from '../models/MentorPolicy';
|
|
|
15
15
|
import type { PaginatedRbacGroupList } from '../models/PaginatedRbacGroupList';
|
|
16
16
|
import type { PaginatedRbacPolicyList } from '../models/PaginatedRbacPolicyList';
|
|
17
17
|
import type { PaginatedRbacRoleList } from '../models/PaginatedRbacRoleList';
|
|
18
|
+
import type { PaginatedUserGroupList } from '../models/PaginatedUserGroupList';
|
|
18
19
|
import type { PatchedPlatformPublicImageAsset } from '../models/PatchedPlatformPublicImageAsset';
|
|
19
20
|
import type { PatchedPlatformPublicMetadata } from '../models/PatchedPlatformPublicMetadata';
|
|
20
21
|
import type { PatchedRbacGroup } from '../models/PatchedRbacGroup';
|
|
21
22
|
import type { PatchedRbacPolicy } from '../models/PatchedRbacPolicy';
|
|
22
23
|
import type { PatchedRbacRole } from '../models/PatchedRbacRole';
|
|
24
|
+
import type { PatchedUserGroup } from '../models/PatchedUserGroup';
|
|
23
25
|
import type { PermissionCheckRequest } from '../models/PermissionCheckRequest';
|
|
24
26
|
import type { PlatformApiKey } from '../models/PlatformApiKey';
|
|
25
27
|
import type { PlatformConfigurationList } from '../models/PlatformConfigurationList';
|
|
@@ -45,6 +47,7 @@ import type { TokenProxyInput } from '../models/TokenProxyInput';
|
|
|
45
47
|
import type { TokenProxyOutput } from '../models/TokenProxyOutput';
|
|
46
48
|
import type { UserDeleteAPIRequest } from '../models/UserDeleteAPIRequest';
|
|
47
49
|
import type { UserDeleteAPIResponse } from '../models/UserDeleteAPIResponse';
|
|
50
|
+
import type { UserGroup } from '../models/UserGroup';
|
|
48
51
|
import type { UserGroupAccess } from '../models/UserGroupAccess';
|
|
49
52
|
import type { UserPlatformLink } from '../models/UserPlatformLink';
|
|
50
53
|
import type { UserPlatformManagementListViewGetResponse } from '../models/UserPlatformManagementListViewGetResponse';
|
|
@@ -2318,12 +2321,201 @@ export class CoreService {
|
|
|
2318
2321
|
url: '/api/core/token/verify/',
|
|
2319
2322
|
});
|
|
2320
2323
|
}
|
|
2324
|
+
/**
|
|
2325
|
+
* List UserGroups
|
|
2326
|
+
* Retrieve a list of UserGroups. Can be filtered by platform_key, name, and include_users.
|
|
2327
|
+
* @returns PaginatedUserGroupList
|
|
2328
|
+
* @throws ApiError
|
|
2329
|
+
*/
|
|
2330
|
+
public static coreUserGroupsList({
|
|
2331
|
+
includeUsers = false,
|
|
2332
|
+
name,
|
|
2333
|
+
page,
|
|
2334
|
+
pageSize,
|
|
2335
|
+
platformKey,
|
|
2336
|
+
withPermissions = false,
|
|
2337
|
+
}: {
|
|
2338
|
+
/**
|
|
2339
|
+
* Include user information in response (default: false for performance)
|
|
2340
|
+
*/
|
|
2341
|
+
includeUsers?: boolean,
|
|
2342
|
+
/**
|
|
2343
|
+
* Fuzzy search by group name
|
|
2344
|
+
*/
|
|
2345
|
+
name?: string,
|
|
2346
|
+
/**
|
|
2347
|
+
* A page number within the paginated result set.
|
|
2348
|
+
*/
|
|
2349
|
+
page?: number,
|
|
2350
|
+
/**
|
|
2351
|
+
* Number of results to return per page.
|
|
2352
|
+
*/
|
|
2353
|
+
pageSize?: number,
|
|
2354
|
+
/**
|
|
2355
|
+
* Filter groups by platform key
|
|
2356
|
+
*/
|
|
2357
|
+
platformKey?: string,
|
|
2358
|
+
/**
|
|
2359
|
+
* Include object-level permissions in response
|
|
2360
|
+
*/
|
|
2361
|
+
withPermissions?: boolean,
|
|
2362
|
+
}): CancelablePromise<PaginatedUserGroupList> {
|
|
2363
|
+
return __request(OpenAPI, {
|
|
2364
|
+
method: 'GET',
|
|
2365
|
+
url: '/api/core/user-groups/',
|
|
2366
|
+
query: {
|
|
2367
|
+
'include_users': includeUsers,
|
|
2368
|
+
'name': name,
|
|
2369
|
+
'page': page,
|
|
2370
|
+
'page_size': pageSize,
|
|
2371
|
+
'platform_key': platformKey,
|
|
2372
|
+
'with_permissions': withPermissions,
|
|
2373
|
+
},
|
|
2374
|
+
});
|
|
2375
|
+
}
|
|
2376
|
+
/**
|
|
2377
|
+
* Create UserGroup
|
|
2378
|
+
* Create a new UserGroup for a platform. Users can be assigned during creation.
|
|
2379
|
+
* @returns UserGroup
|
|
2380
|
+
* @throws ApiError
|
|
2381
|
+
*/
|
|
2382
|
+
public static coreUserGroupsCreate({
|
|
2383
|
+
requestBody,
|
|
2384
|
+
}: {
|
|
2385
|
+
requestBody: UserGroup,
|
|
2386
|
+
}): CancelablePromise<UserGroup> {
|
|
2387
|
+
return __request(OpenAPI, {
|
|
2388
|
+
method: 'POST',
|
|
2389
|
+
url: '/api/core/user-groups/',
|
|
2390
|
+
body: requestBody,
|
|
2391
|
+
mediaType: 'application/json',
|
|
2392
|
+
errors: {
|
|
2393
|
+
400: `Invalid input data. Common errors include:
|
|
2394
|
+
- Users do not belong to the specified platform
|
|
2395
|
+
- Invalid user IDs provided`,
|
|
2396
|
+
},
|
|
2397
|
+
});
|
|
2398
|
+
}
|
|
2399
|
+
/**
|
|
2400
|
+
* Retrieve UserGroup
|
|
2401
|
+
* Retrieve details of a specific UserGroup including assigned users.
|
|
2402
|
+
* @returns UserGroup
|
|
2403
|
+
* @throws ApiError
|
|
2404
|
+
*/
|
|
2405
|
+
public static coreUserGroupsRetrieve({
|
|
2406
|
+
id,
|
|
2407
|
+
}: {
|
|
2408
|
+
/**
|
|
2409
|
+
* A unique integer value identifying this User Group.
|
|
2410
|
+
*/
|
|
2411
|
+
id: number,
|
|
2412
|
+
}): CancelablePromise<UserGroup> {
|
|
2413
|
+
return __request(OpenAPI, {
|
|
2414
|
+
method: 'GET',
|
|
2415
|
+
url: '/api/core/user-groups/{id}/',
|
|
2416
|
+
path: {
|
|
2417
|
+
'id': id,
|
|
2418
|
+
},
|
|
2419
|
+
errors: {
|
|
2420
|
+
404: `UserGroup not found`,
|
|
2421
|
+
},
|
|
2422
|
+
});
|
|
2423
|
+
}
|
|
2424
|
+
/**
|
|
2425
|
+
* Update UserGroup
|
|
2426
|
+
* Update an existing UserGroup. Platform validation applies for user assignments.
|
|
2427
|
+
* @returns UserGroup
|
|
2428
|
+
* @throws ApiError
|
|
2429
|
+
*/
|
|
2430
|
+
public static coreUserGroupsUpdate({
|
|
2431
|
+
id,
|
|
2432
|
+
requestBody,
|
|
2433
|
+
}: {
|
|
2434
|
+
/**
|
|
2435
|
+
* A unique integer value identifying this User Group.
|
|
2436
|
+
*/
|
|
2437
|
+
id: number,
|
|
2438
|
+
requestBody: UserGroup,
|
|
2439
|
+
}): CancelablePromise<UserGroup> {
|
|
2440
|
+
return __request(OpenAPI, {
|
|
2441
|
+
method: 'PUT',
|
|
2442
|
+
url: '/api/core/user-groups/{id}/',
|
|
2443
|
+
path: {
|
|
2444
|
+
'id': id,
|
|
2445
|
+
},
|
|
2446
|
+
body: requestBody,
|
|
2447
|
+
mediaType: 'application/json',
|
|
2448
|
+
errors: {
|
|
2449
|
+
400: `Invalid input data. Common errors include:
|
|
2450
|
+
- Users do not belong to the specified platform
|
|
2451
|
+
- Invalid user IDs provided`,
|
|
2452
|
+
404: `UserGroup not found`,
|
|
2453
|
+
},
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
/**
|
|
2457
|
+
* Partially update UserGroup
|
|
2458
|
+
* Partially update an existing UserGroup. Platform validation applies for user assignments.
|
|
2459
|
+
* @returns UserGroup
|
|
2460
|
+
* @throws ApiError
|
|
2461
|
+
*/
|
|
2462
|
+
public static coreUserGroupsPartialUpdate({
|
|
2463
|
+
id,
|
|
2464
|
+
requestBody,
|
|
2465
|
+
}: {
|
|
2466
|
+
/**
|
|
2467
|
+
* A unique integer value identifying this User Group.
|
|
2468
|
+
*/
|
|
2469
|
+
id: number,
|
|
2470
|
+
requestBody?: PatchedUserGroup,
|
|
2471
|
+
}): CancelablePromise<UserGroup> {
|
|
2472
|
+
return __request(OpenAPI, {
|
|
2473
|
+
method: 'PATCH',
|
|
2474
|
+
url: '/api/core/user-groups/{id}/',
|
|
2475
|
+
path: {
|
|
2476
|
+
'id': id,
|
|
2477
|
+
},
|
|
2478
|
+
body: requestBody,
|
|
2479
|
+
mediaType: 'application/json',
|
|
2480
|
+
errors: {
|
|
2481
|
+
400: `Invalid input data. Common errors include:
|
|
2482
|
+
- Users do not belong to the specified platform
|
|
2483
|
+
- Invalid user IDs provided`,
|
|
2484
|
+
404: `UserGroup not found`,
|
|
2485
|
+
},
|
|
2486
|
+
});
|
|
2487
|
+
}
|
|
2488
|
+
/**
|
|
2489
|
+
* Delete UserGroup
|
|
2490
|
+
* Delete a UserGroup and all associated user group links.
|
|
2491
|
+
* @returns void
|
|
2492
|
+
* @throws ApiError
|
|
2493
|
+
*/
|
|
2494
|
+
public static coreUserGroupsDestroy({
|
|
2495
|
+
id,
|
|
2496
|
+
}: {
|
|
2497
|
+
/**
|
|
2498
|
+
* A unique integer value identifying this User Group.
|
|
2499
|
+
*/
|
|
2500
|
+
id: number,
|
|
2501
|
+
}): CancelablePromise<void> {
|
|
2502
|
+
return __request(OpenAPI, {
|
|
2503
|
+
method: 'DELETE',
|
|
2504
|
+
url: '/api/core/user-groups/{id}/',
|
|
2505
|
+
path: {
|
|
2506
|
+
'id': id,
|
|
2507
|
+
},
|
|
2508
|
+
errors: {
|
|
2509
|
+
404: `UserGroup not found`,
|
|
2510
|
+
},
|
|
2511
|
+
});
|
|
2512
|
+
}
|
|
2321
2513
|
/**
|
|
2322
2514
|
* Show (active) user groups associated with a platform
|
|
2323
2515
|
* @returns any No response body
|
|
2324
2516
|
* @throws ApiError
|
|
2325
2517
|
*/
|
|
2326
|
-
public static
|
|
2518
|
+
public static coreUserGroupsRetrieve2(): CancelablePromise<any> {
|
|
2327
2519
|
return __request(OpenAPI, {
|
|
2328
2520
|
method: 'GET',
|
|
2329
2521
|
url: '/api/core/user_groups/',
|
|
@@ -2334,7 +2526,7 @@ export class CoreService {
|
|
|
2334
2526
|
* @returns any No response body
|
|
2335
2527
|
* @throws ApiError
|
|
2336
2528
|
*/
|
|
2337
|
-
public static
|
|
2529
|
+
public static coreUserGroupsCreate2(): CancelablePromise<any> {
|
|
2338
2530
|
return __request(OpenAPI, {
|
|
2339
2531
|
method: 'POST',
|
|
2340
2532
|
url: '/api/core/user_groups/',
|
|
@@ -2345,7 +2537,7 @@ export class CoreService {
|
|
|
2345
2537
|
* @returns void
|
|
2346
2538
|
* @throws ApiError
|
|
2347
2539
|
*/
|
|
2348
|
-
public static
|
|
2540
|
+
public static coreUserGroupsDestroy2(): CancelablePromise<void> {
|
|
2349
2541
|
return __request(OpenAPI, {
|
|
2350
2542
|
method: 'DELETE',
|
|
2351
2543
|
url: '/api/core/user_groups/',
|