@iblai/iblai-api 4.251.0-core → 4.252.0-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.
Files changed (45) hide show
  1. package/dist/index.cjs.js +564 -1
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +565 -2
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +564 -1
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +16 -0
  8. package/dist/types/models/EventsEnum.d.ts +34 -0
  9. package/dist/types/models/PaginatedWatchedGroupListList.d.ts +7 -0
  10. package/dist/types/models/PaginatedWatchedUserReadList.d.ts +7 -0
  11. package/dist/types/models/PaginatedWatcherReadList.d.ts +7 -0
  12. package/dist/types/models/PatchedWatchedGroupUpdate.d.ts +8 -0
  13. package/dist/types/models/PatchedWatcherUpdate.d.ts +7 -0
  14. package/dist/types/models/WatchedGroupCreate.d.ts +21 -0
  15. package/dist/types/models/WatchedGroupDetail.d.ts +16 -0
  16. package/dist/types/models/WatchedGroupList.d.ts +8 -0
  17. package/dist/types/models/WatchedGroupUpdate.d.ts +8 -0
  18. package/dist/types/models/WatchedUserRead.d.ts +11 -0
  19. package/dist/types/models/WatchedUserWrite.d.ts +9 -0
  20. package/dist/types/models/WatcherEntry.d.ts +8 -0
  21. package/dist/types/models/WatcherRead.d.ts +16 -0
  22. package/dist/types/models/WatcherUpdate.d.ts +7 -0
  23. package/dist/types/models/WatcherWrite.d.ts +11 -0
  24. package/dist/types/services/CoreService.d.ts +364 -0
  25. package/package.json +1 -1
  26. package/sdk_schema.yml +1269 -104
  27. package/src/core/OpenAPI.ts +1 -1
  28. package/src/index.ts +16 -0
  29. package/src/models/EventsEnum.ts +38 -0
  30. package/src/models/PaginatedWatchedGroupListList.ts +12 -0
  31. package/src/models/PaginatedWatchedUserReadList.ts +12 -0
  32. package/src/models/PaginatedWatcherReadList.ts +12 -0
  33. package/src/models/PatchedWatchedGroupUpdate.ts +13 -0
  34. package/src/models/PatchedWatcherUpdate.ts +12 -0
  35. package/src/models/WatchedGroupCreate.ts +26 -0
  36. package/src/models/WatchedGroupDetail.ts +21 -0
  37. package/src/models/WatchedGroupList.ts +13 -0
  38. package/src/models/WatchedGroupUpdate.ts +13 -0
  39. package/src/models/WatchedUserRead.ts +16 -0
  40. package/src/models/WatchedUserWrite.ts +14 -0
  41. package/src/models/WatcherEntry.ts +13 -0
  42. package/src/models/WatcherRead.ts +21 -0
  43. package/src/models/WatcherUpdate.ts +12 -0
  44. package/src/models/WatcherWrite.ts +16 -0
  45. package/src/services/CoreService.ts +711 -0
@@ -15,6 +15,9 @@ import type { PaginatedRbacGroupList } from '../models/PaginatedRbacGroupList';
15
15
  import type { PaginatedRbacPolicyList } from '../models/PaginatedRbacPolicyList';
16
16
  import type { PaginatedRbacRoleList } from '../models/PaginatedRbacRoleList';
17
17
  import type { PaginatedUserGroupList } from '../models/PaginatedUserGroupList';
18
+ import type { PaginatedWatchedGroupListList } from '../models/PaginatedWatchedGroupListList';
19
+ import type { PaginatedWatchedUserReadList } from '../models/PaginatedWatchedUserReadList';
20
+ import type { PaginatedWatcherReadList } from '../models/PaginatedWatcherReadList';
18
21
  import type { PatchedDemographicsFieldDefinitionWrite } from '../models/PatchedDemographicsFieldDefinitionWrite';
19
22
  import type { PatchedPlatformPublicImageAsset } from '../models/PatchedPlatformPublicImageAsset';
20
23
  import type { PatchedPlatformPublicMetadata } from '../models/PatchedPlatformPublicMetadata';
@@ -23,6 +26,8 @@ import type { PatchedRbacPolicy } from '../models/PatchedRbacPolicy';
23
26
  import type { PatchedRbacRole } from '../models/PatchedRbacRole';
24
27
  import type { PatchedUserGroup } from '../models/PatchedUserGroup';
25
28
  import type { PatchedUserPlatformMetadataUpdate } from '../models/PatchedUserPlatformMetadataUpdate';
29
+ import type { PatchedWatchedGroupUpdate } from '../models/PatchedWatchedGroupUpdate';
30
+ import type { PatchedWatcherUpdate } from '../models/PatchedWatcherUpdate';
26
31
  import type { PermissionCheckRequest } from '../models/PermissionCheckRequest';
27
32
  import type { PlatformApiKey } from '../models/PlatformApiKey';
28
33
  import type { PlatformConfigurationList } from '../models/PlatformConfigurationList';
@@ -67,6 +72,14 @@ import type { UserProxyGetResponse } from '../models/UserProxyGetResponse';
67
72
  import type { UserProxyPostRequest } from '../models/UserProxyPostRequest';
68
73
  import type { UserProxyPostResponse } from '../models/UserProxyPostResponse';
69
74
  import type { UserSearchViewGetResponse } from '../models/UserSearchViewGetResponse';
75
+ import type { WatchedGroupCreate } from '../models/WatchedGroupCreate';
76
+ import type { WatchedGroupDetail } from '../models/WatchedGroupDetail';
77
+ import type { WatchedGroupUpdate } from '../models/WatchedGroupUpdate';
78
+ import type { WatchedUserRead } from '../models/WatchedUserRead';
79
+ import type { WatchedUserWrite } from '../models/WatchedUserWrite';
80
+ import type { WatcherRead } from '../models/WatcherRead';
81
+ import type { WatcherUpdate } from '../models/WatcherUpdate';
82
+ import type { WatcherWrite } from '../models/WatcherWrite';
70
83
  import type { WhitelistedDomain } from '../models/WhitelistedDomain';
71
84
  import type { CancelablePromise } from '../core/CancelablePromise';
72
85
  export declare class CoreService {
@@ -1638,6 +1651,357 @@ export declare class CoreService {
1638
1651
  query?: string;
1639
1652
  sort?: string;
1640
1653
  }): CancelablePromise<UserSearchViewGetResponse>;
1654
+ /**
1655
+ * List watched groups visible to the caller
1656
+ * CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
1657
+ * POST here accepts an optional `watchers` array as a create-time convenience.
1658
+ * @returns PaginatedWatchedGroupListList
1659
+ * @throws ApiError
1660
+ */
1661
+ static coreWatchedGroupsList({ limit, offset, platformKey, }: {
1662
+ /**
1663
+ * Number of results to return per page.
1664
+ */
1665
+ limit?: number;
1666
+ /**
1667
+ * The initial index from which to return the results.
1668
+ */
1669
+ offset?: number;
1670
+ /**
1671
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1672
+ */
1673
+ platformKey?: string;
1674
+ }): CancelablePromise<PaginatedWatchedGroupListList>;
1675
+ /**
1676
+ * Create a watched group
1677
+ * CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
1678
+ * POST here accepts an optional `watchers` array as a create-time convenience.
1679
+ * @returns WatchedGroupDetail
1680
+ * @throws ApiError
1681
+ */
1682
+ static coreWatchedGroupsCreate({ requestBody, platformKey, watchedUserLimit, watcherLimit, }: {
1683
+ requestBody: WatchedGroupCreate;
1684
+ /**
1685
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1686
+ */
1687
+ platformKey?: string;
1688
+ /**
1689
+ * Inline up to N watched users in the response (0 = none, max 100). Use the nested /watched-users/ endpoint for paginated walks.
1690
+ */
1691
+ watchedUserLimit?: number;
1692
+ /**
1693
+ * Inline up to N watchers in the response (0 = none, max 100). Use the nested /watchers/ endpoint for paginated walks.
1694
+ */
1695
+ watcherLimit?: number;
1696
+ }): CancelablePromise<WatchedGroupDetail>;
1697
+ /**
1698
+ * Retrieve a watched group
1699
+ * CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
1700
+ * POST here accepts an optional `watchers` array as a create-time convenience.
1701
+ * @returns WatchedGroupDetail
1702
+ * @throws ApiError
1703
+ */
1704
+ static coreWatchedGroupsRetrieve({ id, platformKey, watchedUserLimit, watcherLimit, }: {
1705
+ /**
1706
+ * A unique integer value identifying this Watched Group.
1707
+ */
1708
+ id: number;
1709
+ /**
1710
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1711
+ */
1712
+ platformKey?: string;
1713
+ /**
1714
+ * Inline up to N watched users in the response (0 = none, max 100). Use the nested /watched-users/ endpoint for paginated walks.
1715
+ */
1716
+ watchedUserLimit?: number;
1717
+ /**
1718
+ * Inline up to N watchers in the response (0 = none, max 100). Use the nested /watchers/ endpoint for paginated walks.
1719
+ */
1720
+ watcherLimit?: number;
1721
+ }): CancelablePromise<WatchedGroupDetail>;
1722
+ /**
1723
+ * Update a watched group's name
1724
+ * CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
1725
+ * POST here accepts an optional `watchers` array as a create-time convenience.
1726
+ * @returns WatchedGroupDetail
1727
+ * @throws ApiError
1728
+ */
1729
+ static coreWatchedGroupsUpdate({ id, platformKey, watchedUserLimit, watcherLimit, requestBody, }: {
1730
+ /**
1731
+ * A unique integer value identifying this Watched Group.
1732
+ */
1733
+ id: number;
1734
+ /**
1735
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1736
+ */
1737
+ platformKey?: string;
1738
+ /**
1739
+ * Inline up to N watched users in the response (0 = none, max 100). Use the nested /watched-users/ endpoint for paginated walks.
1740
+ */
1741
+ watchedUserLimit?: number;
1742
+ /**
1743
+ * Inline up to N watchers in the response (0 = none, max 100). Use the nested /watchers/ endpoint for paginated walks.
1744
+ */
1745
+ watcherLimit?: number;
1746
+ requestBody?: WatchedGroupUpdate;
1747
+ }): CancelablePromise<WatchedGroupDetail>;
1748
+ /**
1749
+ * Partially update a watched group's name
1750
+ * CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
1751
+ * POST here accepts an optional `watchers` array as a create-time convenience.
1752
+ * @returns WatchedGroupDetail
1753
+ * @throws ApiError
1754
+ */
1755
+ static coreWatchedGroupsPartialUpdate({ id, platformKey, watchedUserLimit, watcherLimit, requestBody, }: {
1756
+ /**
1757
+ * A unique integer value identifying this Watched Group.
1758
+ */
1759
+ id: number;
1760
+ /**
1761
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1762
+ */
1763
+ platformKey?: string;
1764
+ /**
1765
+ * Inline up to N watched users in the response (0 = none, max 100). Use the nested /watched-users/ endpoint for paginated walks.
1766
+ */
1767
+ watchedUserLimit?: number;
1768
+ /**
1769
+ * Inline up to N watchers in the response (0 = none, max 100). Use the nested /watchers/ endpoint for paginated walks.
1770
+ */
1771
+ watcherLimit?: number;
1772
+ requestBody?: PatchedWatchedGroupUpdate;
1773
+ }): CancelablePromise<WatchedGroupDetail>;
1774
+ /**
1775
+ * Delete a watched group
1776
+ * CRUD for WatchedGroup. Watcher mutations live on the nested /watchers/ endpoint;
1777
+ * POST here accepts an optional `watchers` array as a create-time convenience.
1778
+ * @returns void
1779
+ * @throws ApiError
1780
+ */
1781
+ static coreWatchedGroupsDestroy({ id, platformKey, }: {
1782
+ /**
1783
+ * A unique integer value identifying this Watched Group.
1784
+ */
1785
+ id: number;
1786
+ /**
1787
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1788
+ */
1789
+ platformKey?: string;
1790
+ }): CancelablePromise<void>;
1791
+ /**
1792
+ * List watched users in a watched group (paginated)
1793
+ * CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
1794
+ *
1795
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
1796
+ * No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
1797
+ * this feature. Add via POST, remove via DELETE.
1798
+ * @returns PaginatedWatchedUserReadList
1799
+ * @throws ApiError
1800
+ */
1801
+ static coreWatchedGroupsWatchedUsersList({ watchedGroupPk, limit, offset, platformKey, }: {
1802
+ watchedGroupPk: number;
1803
+ /**
1804
+ * Number of results to return per page.
1805
+ */
1806
+ limit?: number;
1807
+ /**
1808
+ * The initial index from which to return the results.
1809
+ */
1810
+ offset?: number;
1811
+ /**
1812
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1813
+ */
1814
+ platformKey?: string;
1815
+ }): CancelablePromise<PaginatedWatchedUserReadList>;
1816
+ /**
1817
+ * Add a user to the watched group
1818
+ * CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
1819
+ *
1820
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
1821
+ * No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
1822
+ * this feature. Add via POST, remove via DELETE.
1823
+ * @returns WatchedUserRead
1824
+ * @throws ApiError
1825
+ */
1826
+ static coreWatchedGroupsWatchedUsersCreate({ watchedGroupPk, requestBody, platformKey, }: {
1827
+ watchedGroupPk: number;
1828
+ requestBody: WatchedUserWrite;
1829
+ /**
1830
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1831
+ */
1832
+ platformKey?: string;
1833
+ }): CancelablePromise<WatchedUserRead>;
1834
+ /**
1835
+ * Retrieve a single watched-user link
1836
+ * CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
1837
+ *
1838
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
1839
+ * No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
1840
+ * this feature. Add via POST, remove via DELETE.
1841
+ * @returns WatchedUserRead
1842
+ * @throws ApiError
1843
+ */
1844
+ static coreWatchedGroupsWatchedUsersRetrieve({ id, watchedGroupPk, platformKey, }: {
1845
+ id: number;
1846
+ watchedGroupPk: number;
1847
+ /**
1848
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1849
+ */
1850
+ platformKey?: string;
1851
+ }): CancelablePromise<WatchedUserRead>;
1852
+ /**
1853
+ * Remove a user from the watched group
1854
+ * CRUD-minus-update for watched users (UserGroupLink rows) under a WatchedGroup.
1855
+ *
1856
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchedusers/{link_id}/
1857
+ * No PATCH/PUT — there's nothing meaningful to update on a UserGroupLink for
1858
+ * this feature. Add via POST, remove via DELETE.
1859
+ * @returns void
1860
+ * @throws ApiError
1861
+ */
1862
+ static coreWatchedGroupsWatchedUsersDestroy({ id, watchedGroupPk, platformKey, }: {
1863
+ id: number;
1864
+ watchedGroupPk: number;
1865
+ /**
1866
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1867
+ */
1868
+ platformKey?: string;
1869
+ }): CancelablePromise<void>;
1870
+ /**
1871
+ * List watchers of a watched group (paginated)
1872
+ * CRUD for watchers nested under a WatchedGroup.
1873
+ *
1874
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
1875
+ * `is_owner` here covers two cases that both deserve owner-level perms on a
1876
+ * watcher row:
1877
+ * - the watcher themselves (WATCHER_OWNER well-known role)
1878
+ * - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
1879
+ * `Ibl.Core/Watchers*`)
1880
+ * @returns PaginatedWatcherReadList
1881
+ * @throws ApiError
1882
+ */
1883
+ static coreWatchedGroupsWatchersList({ watchedGroupPk, limit, offset, platformKey, }: {
1884
+ watchedGroupPk: number;
1885
+ /**
1886
+ * Number of results to return per page.
1887
+ */
1888
+ limit?: number;
1889
+ /**
1890
+ * The initial index from which to return the results.
1891
+ */
1892
+ offset?: number;
1893
+ /**
1894
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1895
+ */
1896
+ platformKey?: string;
1897
+ }): CancelablePromise<PaginatedWatcherReadList>;
1898
+ /**
1899
+ * Add a watcher to a watched group
1900
+ * CRUD for watchers nested under a WatchedGroup.
1901
+ *
1902
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
1903
+ * `is_owner` here covers two cases that both deserve owner-level perms on a
1904
+ * watcher row:
1905
+ * - the watcher themselves (WATCHER_OWNER well-known role)
1906
+ * - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
1907
+ * `Ibl.Core/Watchers*`)
1908
+ * @returns WatcherRead
1909
+ * @throws ApiError
1910
+ */
1911
+ static coreWatchedGroupsWatchersCreate({ watchedGroupPk, requestBody, platformKey, }: {
1912
+ watchedGroupPk: number;
1913
+ requestBody: WatcherWrite;
1914
+ /**
1915
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1916
+ */
1917
+ platformKey?: string;
1918
+ }): CancelablePromise<WatcherRead>;
1919
+ /**
1920
+ * Retrieve a single watcher
1921
+ * CRUD for watchers nested under a WatchedGroup.
1922
+ *
1923
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
1924
+ * `is_owner` here covers two cases that both deserve owner-level perms on a
1925
+ * watcher row:
1926
+ * - the watcher themselves (WATCHER_OWNER well-known role)
1927
+ * - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
1928
+ * `Ibl.Core/Watchers*`)
1929
+ * @returns WatcherRead
1930
+ * @throws ApiError
1931
+ */
1932
+ static coreWatchedGroupsWatchersRetrieve({ id, watchedGroupPk, platformKey, }: {
1933
+ id: number;
1934
+ watchedGroupPk: number;
1935
+ /**
1936
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1937
+ */
1938
+ platformKey?: string;
1939
+ }): CancelablePromise<WatcherRead>;
1940
+ /**
1941
+ * Replace a watcher's events
1942
+ * CRUD for watchers nested under a WatchedGroup.
1943
+ *
1944
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
1945
+ * `is_owner` here covers two cases that both deserve owner-level perms on a
1946
+ * watcher row:
1947
+ * - the watcher themselves (WATCHER_OWNER well-known role)
1948
+ * - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
1949
+ * `Ibl.Core/Watchers*`)
1950
+ * @returns WatcherRead
1951
+ * @throws ApiError
1952
+ */
1953
+ static coreWatchedGroupsWatchersUpdate({ id, watchedGroupPk, requestBody, platformKey, }: {
1954
+ id: number;
1955
+ watchedGroupPk: number;
1956
+ requestBody: WatcherUpdate;
1957
+ /**
1958
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1959
+ */
1960
+ platformKey?: string;
1961
+ }): CancelablePromise<WatcherRead>;
1962
+ /**
1963
+ * Update a watcher's events
1964
+ * CRUD for watchers nested under a WatchedGroup.
1965
+ *
1966
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
1967
+ * `is_owner` here covers two cases that both deserve owner-level perms on a
1968
+ * watcher row:
1969
+ * - the watcher themselves (WATCHER_OWNER well-known role)
1970
+ * - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
1971
+ * `Ibl.Core/Watchers*`)
1972
+ * @returns WatcherRead
1973
+ * @throws ApiError
1974
+ */
1975
+ static coreWatchedGroupsWatchersPartialUpdate({ id, watchedGroupPk, platformKey, requestBody, }: {
1976
+ id: number;
1977
+ watchedGroupPk: number;
1978
+ /**
1979
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
1980
+ */
1981
+ platformKey?: string;
1982
+ requestBody?: PatchedWatcherUpdate;
1983
+ }): CancelablePromise<WatcherRead>;
1984
+ /**
1985
+ * Remove (or unsubscribe) a watcher from a watched group
1986
+ * CRUD for watchers nested under a WatchedGroup.
1987
+ *
1988
+ * Resource path: /platforms/{pk}/watchedgroups/{wg_id}/watchers/{watcher_id}/
1989
+ * `is_owner` here covers two cases that both deserve owner-level perms on a
1990
+ * watcher row:
1991
+ * - the watcher themselves (WATCHER_OWNER well-known role)
1992
+ * - the parent WatchedGroup's owner (WATCHED_GROUP_OWNER role grants
1993
+ * `Ibl.Core/Watchers*`)
1994
+ * @returns void
1995
+ * @throws ApiError
1996
+ */
1997
+ static coreWatchedGroupsWatchersDestroy({ id, watchedGroupPk, platformKey, }: {
1998
+ id: number;
1999
+ watchedGroupPk: number;
2000
+ /**
2001
+ * Service-account only: target platform key. Non-SA callers' platform is sourced from the auth token and this is ignored.
2002
+ */
2003
+ platformKey?: string;
2004
+ }): CancelablePromise<void>;
1641
2005
  /**
1642
2006
  * Get a list of departments with metrics and filtering options.
1643
2007
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.251.0-core",
3
+ "version": "4.252.0-core",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",