@iblai/iblai-api 2025.11.7-google-a2a-core → 2025.11.10-google-a2a-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.
@@ -1406,21 +1406,32 @@ export class CoreService {
1406
1406
  }
1407
1407
  /**
1408
1408
  * List RBAC groups
1409
- * Retrieve a list of RBAC groups. Can be filtered by platform_key.
1409
+ * Retrieve a list of RBAC groups. Can be filtered by platform_key, owner, name, username, or email. Use include_users to control response payload.
1410
1410
  * @returns PaginatedRbacGroupList
1411
1411
  * @throws ApiError
1412
1412
  */
1413
1413
  public static coreRbacGroupsList({
1414
+ email,
1414
1415
  includeUsers = true,
1416
+ name,
1415
1417
  owner,
1416
1418
  page,
1417
1419
  pageSize,
1418
1420
  platformKey,
1421
+ username,
1419
1422
  }: {
1420
1423
  /**
1421
- * Include user information in response (default: false for performance)
1424
+ * Filter groups by email (exact match, case-insensitive)
1425
+ */
1426
+ email?: string,
1427
+ /**
1428
+ * Include user information in response (default: true)
1422
1429
  */
1423
1430
  includeUsers?: boolean,
1431
+ /**
1432
+ * Filter groups by name (case-insensitive partial match)
1433
+ */
1434
+ name?: string,
1424
1435
  /**
1425
1436
  * Filter groups by owner username
1426
1437
  */
@@ -1437,16 +1448,26 @@ export class CoreService {
1437
1448
  * Filter groups by platform key
1438
1449
  */
1439
1450
  platformKey?: string,
1451
+ /**
1452
+ * Filter groups by username (exact match, case-insensitive)
1453
+ */
1454
+ username?: string,
1440
1455
  }): CancelablePromise<PaginatedRbacGroupList> {
1441
1456
  return __request(OpenAPI, {
1442
1457
  method: 'GET',
1443
1458
  url: '/api/core/rbac/groups/',
1444
1459
  query: {
1460
+ 'email': email,
1445
1461
  'include_users': includeUsers,
1462
+ 'name': name,
1446
1463
  'owner': owner,
1447
1464
  'page': page,
1448
1465
  'page_size': pageSize,
1449
1466
  'platform_key': platformKey,
1467
+ 'username': username,
1468
+ },
1469
+ errors: {
1470
+ 403: `Permission denied - insufficient RBAC permissions`,
1450
1471
  },
1451
1472
  });
1452
1473
  }
@@ -1470,6 +1491,7 @@ export class CoreService {
1470
1491
  400: `Invalid input data. Common errors include:
1471
1492
  - Users do not belong to the specified platform
1472
1493
  - Invalid user IDs provided`,
1494
+ 403: `Permission denied - insufficient RBAC permissions`,
1473
1495
  },
1474
1496
  });
1475
1497
  }
@@ -1494,13 +1516,14 @@ export class CoreService {
1494
1516
  'id': id,
1495
1517
  },
1496
1518
  errors: {
1519
+ 403: `Permission denied - insufficient RBAC permissions`,
1497
1520
  404: `Group not found`,
1498
1521
  },
1499
1522
  });
1500
1523
  }
1501
1524
  /**
1502
1525
  * Update RBAC group
1503
- * Update an existing RBAC group. Platform validation applies for user assignments.
1526
+ * Update an existing RBAC group. Platform validation applies for user assignments. Cannot update internal system groups.
1504
1527
  * @returns RbacGroup
1505
1528
  * @throws ApiError
1506
1529
  */
@@ -1526,13 +1549,14 @@ export class CoreService {
1526
1549
  400: `Invalid input data. Common errors include:
1527
1550
  - Users do not belong to the specified platform
1528
1551
  - Invalid user IDs provided`,
1552
+ 403: `Permission denied - insufficient RBAC permissions or attempting to edit internal system group`,
1529
1553
  404: `Group not found`,
1530
1554
  },
1531
1555
  });
1532
1556
  }
1533
1557
  /**
1534
1558
  * Partially update RBAC group
1535
- * Partially update an existing RBAC group. Platform validation applies for user assignments.
1559
+ * Partially update an existing RBAC group. Platform validation applies for user assignments. Cannot update internal system groups.
1536
1560
  * @returns RbacGroup
1537
1561
  * @throws ApiError
1538
1562
  */
@@ -1558,13 +1582,14 @@ export class CoreService {
1558
1582
  400: `Invalid input data. Common errors include:
1559
1583
  - Users do not belong to the specified platform
1560
1584
  - Invalid user IDs provided`,
1585
+ 403: `Permission denied - insufficient RBAC permissions or attempting to edit internal system group`,
1561
1586
  404: `Group not found`,
1562
1587
  },
1563
1588
  });
1564
1589
  }
1565
1590
  /**
1566
1591
  * Delete RBAC group
1567
- * Delete an RBAC group and all associated group role assignments.
1592
+ * Delete an RBAC group and all associated group role assignments. Cannot delete internal system groups.
1568
1593
  * @returns void
1569
1594
  * @throws ApiError
1570
1595
  */
@@ -1591,6 +1616,7 @@ export class CoreService {
1591
1616
  'platform_key': platformKey,
1592
1617
  },
1593
1618
  errors: {
1619
+ 403: `Permission denied - insufficient RBAC permissions or attempting to delete internal system group`,
1594
1620
  404: `Group not found`,
1595
1621
  },
1596
1622
  });
@@ -1677,16 +1703,42 @@ export class CoreService {
1677
1703
  }
1678
1704
  /**
1679
1705
  * List RBAC policies
1680
- * Retrieve a list of RBAC policies. Can be filtered by platform_key or role_id.
1706
+ * Retrieve a list of RBAC policies. Can be filtered by platform_key, role_id, name, username, email, or group. Use include_users and include_groups to control response payload.
1681
1707
  * @returns PaginatedRbacPolicyList
1682
1708
  * @throws ApiError
1683
1709
  */
1684
1710
  public static coreRbacPoliciesList({
1711
+ email,
1712
+ group,
1713
+ includeGroups = true,
1714
+ includeUsers = true,
1715
+ name,
1685
1716
  page,
1686
1717
  pageSize,
1687
1718
  platformKey,
1688
1719
  roleId,
1720
+ username,
1689
1721
  }: {
1722
+ /**
1723
+ * Filter policies by email (exact match, case-insensitive) - includes users in policy or in policy's groups
1724
+ */
1725
+ email?: string,
1726
+ /**
1727
+ * Filter policies by group name (exact match, case-insensitive)
1728
+ */
1729
+ group?: string,
1730
+ /**
1731
+ * Include group information in response (default: true)
1732
+ */
1733
+ includeGroups?: boolean,
1734
+ /**
1735
+ * Include user information in response (default: true)
1736
+ */
1737
+ includeUsers?: boolean,
1738
+ /**
1739
+ * Filter policies by name (case-insensitive partial match)
1740
+ */
1741
+ name?: string,
1690
1742
  /**
1691
1743
  * A page number within the paginated result set.
1692
1744
  */
@@ -1703,15 +1755,28 @@ export class CoreService {
1703
1755
  * Filter policies by role ID
1704
1756
  */
1705
1757
  roleId?: number,
1758
+ /**
1759
+ * Filter policies by username (exact match, case-insensitive) - includes users in policy or in policy's groups
1760
+ */
1761
+ username?: string,
1706
1762
  }): CancelablePromise<PaginatedRbacPolicyList> {
1707
1763
  return __request(OpenAPI, {
1708
1764
  method: 'GET',
1709
1765
  url: '/api/core/rbac/policies/',
1710
1766
  query: {
1767
+ 'email': email,
1768
+ 'group': group,
1769
+ 'include_groups': includeGroups,
1770
+ 'include_users': includeUsers,
1771
+ 'name': name,
1711
1772
  'page': page,
1712
1773
  'page_size': pageSize,
1713
1774
  'platform_key': platformKey,
1714
1775
  'role_id': roleId,
1776
+ 'username': username,
1777
+ },
1778
+ errors: {
1779
+ 403: `Permission denied - insufficient RBAC permissions`,
1715
1780
  },
1716
1781
  });
1717
1782
  }
@@ -1733,6 +1798,7 @@ export class CoreService {
1733
1798
  mediaType: 'application/json',
1734
1799
  errors: {
1735
1800
  400: `Invalid input data. Common errors include: invalid user/group IDs, users/groups not belonging to the platform, or invalid resource paths.`,
1801
+ 403: `Permission denied - insufficient RBAC permissions`,
1736
1802
  },
1737
1803
  });
1738
1804
  }
@@ -1757,6 +1823,7 @@ export class CoreService {
1757
1823
  'id': id,
1758
1824
  },
1759
1825
  errors: {
1826
+ 403: `Permission denied - insufficient RBAC permissions`,
1760
1827
  404: `Policy not found`,
1761
1828
  },
1762
1829
  });
@@ -1787,6 +1854,7 @@ export class CoreService {
1787
1854
  mediaType: 'application/json',
1788
1855
  errors: {
1789
1856
  400: `Invalid input data. Common errors include: invalid user/group IDs, users/groups not belonging to the platform, or invalid resource paths.`,
1857
+ 403: `Permission denied - insufficient RBAC permissions`,
1790
1858
  404: `Policy not found`,
1791
1859
  },
1792
1860
  });
@@ -1817,6 +1885,7 @@ export class CoreService {
1817
1885
  mediaType: 'application/json',
1818
1886
  errors: {
1819
1887
  400: `Invalid input data. Common errors include: invalid user/group IDs, users/groups not belonging to the platform, or invalid resource paths.`,
1888
+ 403: `Permission denied - insufficient RBAC permissions`,
1820
1889
  404: `Policy not found`,
1821
1890
  },
1822
1891
  });
@@ -1850,21 +1919,27 @@ export class CoreService {
1850
1919
  'platform_key': platformKey,
1851
1920
  },
1852
1921
  errors: {
1922
+ 403: `Permission denied - insufficient RBAC permissions`,
1853
1923
  404: `Policy not found`,
1854
1924
  },
1855
1925
  });
1856
1926
  }
1857
1927
  /**
1858
1928
  * List RBAC roles
1859
- * Retrieve a list of RBAC roles. Can be filtered by platform_key.
1929
+ * Retrieve a list of RBAC roles. Can be filtered by platform_key and name.
1860
1930
  * @returns PaginatedRbacRoleList
1861
1931
  * @throws ApiError
1862
1932
  */
1863
1933
  public static coreRbacRolesList({
1934
+ name,
1864
1935
  page,
1865
1936
  pageSize,
1866
1937
  platformKey,
1867
1938
  }: {
1939
+ /**
1940
+ * Filter roles by name (case-insensitive partial match)
1941
+ */
1942
+ name?: string,
1868
1943
  /**
1869
1944
  * A page number within the paginated result set.
1870
1945
  */
@@ -1882,10 +1957,14 @@ export class CoreService {
1882
1957
  method: 'GET',
1883
1958
  url: '/api/core/rbac/roles/',
1884
1959
  query: {
1960
+ 'name': name,
1885
1961
  'page': page,
1886
1962
  'page_size': pageSize,
1887
1963
  'platform_key': platformKey,
1888
1964
  },
1965
+ errors: {
1966
+ 403: `Permission denied - insufficient RBAC permissions`,
1967
+ },
1889
1968
  });
1890
1969
  }
1891
1970
  /**
@@ -1906,6 +1985,7 @@ export class CoreService {
1906
1985
  mediaType: 'application/json',
1907
1986
  errors: {
1908
1987
  400: `Invalid input data`,
1988
+ 403: `Permission denied - insufficient RBAC permissions`,
1909
1989
  },
1910
1990
  });
1911
1991
  }
@@ -1930,6 +2010,7 @@ export class CoreService {
1930
2010
  'id': id,
1931
2011
  },
1932
2012
  errors: {
2013
+ 403: `Permission denied - insufficient RBAC permissions`,
1933
2014
  404: `Role not found`,
1934
2015
  },
1935
2016
  });
@@ -1960,6 +2041,7 @@ export class CoreService {
1960
2041
  mediaType: 'application/json',
1961
2042
  errors: {
1962
2043
  400: `Invalid input data`,
2044
+ 403: `Permission denied - insufficient RBAC permissions`,
1963
2045
  404: `Role not found`,
1964
2046
  },
1965
2047
  });
@@ -1990,13 +2072,14 @@ export class CoreService {
1990
2072
  mediaType: 'application/json',
1991
2073
  errors: {
1992
2074
  400: `Invalid input data`,
2075
+ 403: `Permission denied - insufficient RBAC permissions`,
1993
2076
  404: `Role not found`,
1994
2077
  },
1995
2078
  });
1996
2079
  }
1997
2080
  /**
1998
2081
  * Delete RBAC role
1999
- * Delete an RBAC role.
2082
+ * Delete an RBAC role. WARNING: Deleting a role will remove all policies referencing it.
2000
2083
  * @returns void
2001
2084
  * @throws ApiError
2002
2085
  */
@@ -2023,6 +2106,7 @@ export class CoreService {
2023
2106
  'platform_key': platformKey,
2024
2107
  },
2025
2108
  errors: {
2109
+ 403: `Permission denied - insufficient RBAC permissions`,
2026
2110
  404: `Role not found`,
2027
2111
  },
2028
2112
  });