@bodhiapp/ts-client 0.1.14 → 0.1.16

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.
@@ -1201,8 +1201,10 @@ export interface components {
1201
1201
  AppStatus: "setup" | "ready" | "resource-admin";
1202
1202
  /** @description App-level configuration for a toolset (admin-controlled) */
1203
1203
  AppToolsetConfig: {
1204
- /** @description Toolset identifier (e.g., "builtin-exa-web-search") */
1205
- toolset_id: string;
1204
+ /** @description OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search") */
1205
+ scope: string;
1206
+ /** @description Keycloak client scope UUID (environment-specific) */
1207
+ scope_uuid: string;
1206
1208
  /** @description Whether the toolset is enabled for this app instance */
1207
1209
  enabled: boolean;
1208
1210
  /** @description User ID of the admin who last updated this configuration */
@@ -1964,8 +1966,8 @@ export interface components {
1964
1966
  };
1965
1967
  /** @description Request to create a toolset */
1966
1968
  CreateToolsetRequest: {
1967
- /** @description Toolset type identifier (e.g., "builtin-exa-web-search") */
1968
- toolset_type: string;
1969
+ /** @description Toolset scope UUID identifier (e.g., "4ff0e163-36fb-47d6-a5ef-26e396f067d6") */
1970
+ scope_uuid: string;
1969
1971
  /** @description User-defined name for this toolset (2-24 chars, alphanumeric + spaces/dash/underscore) */
1970
1972
  name: string;
1971
1973
  /** @description Optional description for this toolset */
@@ -2212,6 +2214,7 @@ export interface components {
2212
2214
  /** @description List of toolsets */
2213
2215
  ListToolsetsResponse: {
2214
2216
  toolsets: components["schemas"]["ToolsetResponse"][];
2217
+ toolset_types: components["schemas"]["AppToolsetConfig"][];
2215
2218
  };
2216
2219
  /** @description List users query parameters */
2217
2220
  ListUsersParams: {
@@ -2774,7 +2777,7 @@ export interface components {
2774
2777
  /** @enum {string} */
2775
2778
  ToolChoiceOptions: "none" | "auto" | "required";
2776
2779
  /** @description Tool definition in OpenAI format for LLM function calling.
2777
- * Tool name follows Claude MCP convention: toolset__{toolset_id}__{tool_name} */
2780
+ * Tool name follows Claude MCP convention: toolset__{toolset_name}__{tool_name} */
2778
2781
  ToolDefinition: {
2779
2782
  /** @description Type of tool (always "function" for now) */
2780
2783
  type: string;
@@ -2787,8 +2790,10 @@ export interface components {
2787
2790
  id: string;
2788
2791
  /** @description User-defined name for this instance */
2789
2792
  name: string;
2790
- /** @description Toolset type identifier (e.g., "builtin-exa-web-search") */
2791
- toolset_type: string;
2793
+ /** @description Keycloak client scope UUID (environment-specific, stored in DB) */
2794
+ scope_uuid: string;
2795
+ /** @description OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search", derived from registry) */
2796
+ scope: string;
2792
2797
  /** @description Optional description for this instance */
2793
2798
  description?: string | null;
2794
2799
  /** @description Whether this instance is enabled */
@@ -2821,16 +2826,16 @@ export interface components {
2821
2826
  id: string;
2822
2827
  /** @description User-defined name for this toolset */
2823
2828
  name: string;
2824
- /** @description Toolset type identifier (e.g., "builtin-exa-web-search") */
2825
- toolset_type: string;
2829
+ /** @description Toolset scope UUID identifier */
2830
+ scope_uuid: string;
2831
+ /** @description Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search") */
2832
+ scope: string;
2826
2833
  /** @description Optional description for this toolset */
2827
2834
  description?: string | null;
2828
2835
  /** @description Whether this toolset is enabled */
2829
2836
  enabled: boolean;
2830
2837
  /** @description Whether this toolset has an API key configured */
2831
2838
  has_api_key: boolean;
2832
- /** @description Whether the toolset type is enabled at app level */
2833
- app_enabled: boolean;
2834
2839
  /** @description Tools provided by this toolset type */
2835
2840
  tools: components["schemas"]["ToolDefinition"][];
2836
2841
  /**
@@ -2846,8 +2851,10 @@ export interface components {
2846
2851
  };
2847
2852
  /** @description Toolset type response (for admin listing) */
2848
2853
  ToolsetTypeResponse: {
2849
- /** @description Unique toolset type identifier (e.g., "builtin-exa-web-search") */
2850
- toolset_id: string;
2854
+ /** @description Toolset scope UUID identifier */
2855
+ scope_uuid: string;
2856
+ /** @description Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search") */
2857
+ scope: string;
2851
2858
  /** @description Human-readable name (e.g., "Exa Web Search") */
2852
2859
  name: string;
2853
2860
  /** @description Description of the toolset */
@@ -2859,8 +2866,10 @@ export interface components {
2859
2866
  };
2860
2867
  /** @description Toolset with app-level configuration status (API response model) */
2861
2868
  ToolsetWithTools: {
2862
- /** @description Unique toolset identifier (e.g., "builtin-exa-web-search") */
2863
- toolset_id: string;
2869
+ /** @description Keycloak client scope UUID (environment-specific) */
2870
+ scope_uuid: string;
2871
+ /** @description OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search") */
2872
+ scope: string;
2864
2873
  /** @description Human-readable name (e.g., "Exa Web Search") */
2865
2874
  name: string;
2866
2875
  /** @description Description of the toolset */
@@ -1202,8 +1202,10 @@ export interface components {
1202
1202
  AppStatus: "setup" | "ready" | "resource-admin";
1203
1203
  /** @description App-level configuration for a toolset (admin-controlled) */
1204
1204
  AppToolsetConfig: {
1205
- /** @description Toolset identifier (e.g., "builtin-exa-web-search") */
1206
- toolset_id: string;
1205
+ /** @description OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search") */
1206
+ scope: string;
1207
+ /** @description Keycloak client scope UUID (environment-specific) */
1208
+ scope_uuid: string;
1207
1209
  /** @description Whether the toolset is enabled for this app instance */
1208
1210
  enabled: boolean;
1209
1211
  /** @description User ID of the admin who last updated this configuration */
@@ -1965,8 +1967,8 @@ export interface components {
1965
1967
  };
1966
1968
  /** @description Request to create a toolset */
1967
1969
  CreateToolsetRequest: {
1968
- /** @description Toolset type identifier (e.g., "builtin-exa-web-search") */
1969
- toolset_type: string;
1970
+ /** @description Toolset scope UUID identifier (e.g., "4ff0e163-36fb-47d6-a5ef-26e396f067d6") */
1971
+ scope_uuid: string;
1970
1972
  /** @description User-defined name for this toolset (2-24 chars, alphanumeric + spaces/dash/underscore) */
1971
1973
  name: string;
1972
1974
  /** @description Optional description for this toolset */
@@ -2213,6 +2215,7 @@ export interface components {
2213
2215
  /** @description List of toolsets */
2214
2216
  ListToolsetsResponse: {
2215
2217
  toolsets: components["schemas"]["ToolsetResponse"][];
2218
+ toolset_types: components["schemas"]["AppToolsetConfig"][];
2216
2219
  };
2217
2220
  /** @description List users query parameters */
2218
2221
  ListUsersParams: {
@@ -2775,7 +2778,7 @@ export interface components {
2775
2778
  /** @enum {string} */
2776
2779
  ToolChoiceOptions: "none" | "auto" | "required";
2777
2780
  /** @description Tool definition in OpenAI format for LLM function calling.
2778
- * Tool name follows Claude MCP convention: toolset__{toolset_id}__{tool_name} */
2781
+ * Tool name follows Claude MCP convention: toolset__{toolset_name}__{tool_name} */
2779
2782
  ToolDefinition: {
2780
2783
  /** @description Type of tool (always "function" for now) */
2781
2784
  type: string;
@@ -2788,8 +2791,10 @@ export interface components {
2788
2791
  id: string;
2789
2792
  /** @description User-defined name for this instance */
2790
2793
  name: string;
2791
- /** @description Toolset type identifier (e.g., "builtin-exa-web-search") */
2792
- toolset_type: string;
2794
+ /** @description Keycloak client scope UUID (environment-specific, stored in DB) */
2795
+ scope_uuid: string;
2796
+ /** @description OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search", derived from registry) */
2797
+ scope: string;
2793
2798
  /** @description Optional description for this instance */
2794
2799
  description?: string | null;
2795
2800
  /** @description Whether this instance is enabled */
@@ -2822,16 +2827,16 @@ export interface components {
2822
2827
  id: string;
2823
2828
  /** @description User-defined name for this toolset */
2824
2829
  name: string;
2825
- /** @description Toolset type identifier (e.g., "builtin-exa-web-search") */
2826
- toolset_type: string;
2830
+ /** @description Toolset scope UUID identifier */
2831
+ scope_uuid: string;
2832
+ /** @description Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search") */
2833
+ scope: string;
2827
2834
  /** @description Optional description for this toolset */
2828
2835
  description?: string | null;
2829
2836
  /** @description Whether this toolset is enabled */
2830
2837
  enabled: boolean;
2831
2838
  /** @description Whether this toolset has an API key configured */
2832
2839
  has_api_key: boolean;
2833
- /** @description Whether the toolset type is enabled at app level */
2834
- app_enabled: boolean;
2835
2840
  /** @description Tools provided by this toolset type */
2836
2841
  tools: components["schemas"]["ToolDefinition"][];
2837
2842
  /**
@@ -2847,8 +2852,10 @@ export interface components {
2847
2852
  };
2848
2853
  /** @description Toolset type response (for admin listing) */
2849
2854
  ToolsetTypeResponse: {
2850
- /** @description Unique toolset type identifier (e.g., "builtin-exa-web-search") */
2851
- toolset_id: string;
2855
+ /** @description Toolset scope UUID identifier */
2856
+ scope_uuid: string;
2857
+ /** @description Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search") */
2858
+ scope: string;
2852
2859
  /** @description Human-readable name (e.g., "Exa Web Search") */
2853
2860
  name: string;
2854
2861
  /** @description Description of the toolset */
@@ -2860,8 +2867,10 @@ export interface components {
2860
2867
  };
2861
2868
  /** @description Toolset with app-level configuration status (API response model) */
2862
2869
  ToolsetWithTools: {
2863
- /** @description Unique toolset identifier (e.g., "builtin-exa-web-search") */
2864
- toolset_id: string;
2870
+ /** @description Keycloak client scope UUID (environment-specific) */
2871
+ scope_uuid: string;
2872
+ /** @description OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search") */
2873
+ scope: string;
2865
2874
  /** @description Human-readable name (e.g., "Exa Web Search") */
2866
2875
  name: string;
2867
2876
  /** @description Description of the toolset */
@@ -173,9 +173,13 @@ export type AppStatus = 'setup' | 'ready' | 'resource-admin';
173
173
  */
174
174
  export type AppToolsetConfig = {
175
175
  /**
176
- * Toolset identifier (e.g., "builtin-exa-web-search")
176
+ * OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search")
177
177
  */
178
- toolset_id: string;
178
+ scope: string;
179
+ /**
180
+ * Keycloak client scope UUID (environment-specific)
181
+ */
182
+ scope_uuid: string;
179
183
  /**
180
184
  * Whether the toolset is enabled for this app instance
181
185
  */
@@ -1039,9 +1043,9 @@ export type CreateEmbeddingResponse = {
1039
1043
  */
1040
1044
  export type CreateToolsetRequest = {
1041
1045
  /**
1042
- * Toolset type identifier (e.g., "builtin-exa-web-search")
1046
+ * Toolset scope UUID identifier (e.g., "4ff0e163-36fb-47d6-a5ef-26e396f067d6")
1043
1047
  */
1044
- toolset_type: string;
1048
+ scope_uuid: string;
1045
1049
  /**
1046
1050
  * User-defined name for this toolset (2-24 chars, alphanumeric + spaces/dash/underscore)
1047
1051
  */
@@ -1320,6 +1324,7 @@ export type ListToolsetTypesResponse = {
1320
1324
  */
1321
1325
  export type ListToolsetsResponse = {
1322
1326
  toolsets: Array<ToolsetResponse>;
1327
+ toolset_types: Array<AppToolsetConfig>;
1323
1328
  };
1324
1329
  /**
1325
1330
  * List users query parameters
@@ -1821,7 +1826,7 @@ export type ToolChoiceAllowedMode = 'auto' | 'required';
1821
1826
  export type ToolChoiceOptions = 'none' | 'auto' | 'required';
1822
1827
  /**
1823
1828
  * Tool definition in OpenAI format for LLM function calling.
1824
- * Tool name follows Claude MCP convention: toolset__{toolset_id}__{tool_name}
1829
+ * Tool name follows Claude MCP convention: toolset__{toolset_name}__{tool_name}
1825
1830
  */
1826
1831
  export type ToolDefinition = {
1827
1832
  /**
@@ -1846,9 +1851,13 @@ export type Toolset = {
1846
1851
  */
1847
1852
  name: string;
1848
1853
  /**
1849
- * Toolset type identifier (e.g., "builtin-exa-web-search")
1854
+ * Keycloak client scope UUID (environment-specific, stored in DB)
1850
1855
  */
1851
- toolset_type: string;
1856
+ scope_uuid: string;
1857
+ /**
1858
+ * OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search", derived from registry)
1859
+ */
1860
+ scope: string;
1852
1861
  /**
1853
1862
  * Optional description for this instance
1854
1863
  */
@@ -1896,9 +1905,13 @@ export type ToolsetResponse = {
1896
1905
  */
1897
1906
  name: string;
1898
1907
  /**
1899
- * Toolset type identifier (e.g., "builtin-exa-web-search")
1908
+ * Toolset scope UUID identifier
1909
+ */
1910
+ scope_uuid: string;
1911
+ /**
1912
+ * Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search")
1900
1913
  */
1901
- toolset_type: string;
1914
+ scope: string;
1902
1915
  /**
1903
1916
  * Optional description for this toolset
1904
1917
  */
@@ -1911,10 +1924,6 @@ export type ToolsetResponse = {
1911
1924
  * Whether this toolset has an API key configured
1912
1925
  */
1913
1926
  has_api_key: boolean;
1914
- /**
1915
- * Whether the toolset type is enabled at app level
1916
- */
1917
- app_enabled: boolean;
1918
1927
  /**
1919
1928
  * Tools provided by this toolset type
1920
1929
  */
@@ -1933,9 +1942,13 @@ export type ToolsetResponse = {
1933
1942
  */
1934
1943
  export type ToolsetTypeResponse = {
1935
1944
  /**
1936
- * Unique toolset type identifier (e.g., "builtin-exa-web-search")
1945
+ * Toolset scope UUID identifier
1937
1946
  */
1938
- toolset_id: string;
1947
+ scope_uuid: string;
1948
+ /**
1949
+ * Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search")
1950
+ */
1951
+ scope: string;
1939
1952
  /**
1940
1953
  * Human-readable name (e.g., "Exa Web Search")
1941
1954
  */
@@ -1958,9 +1971,13 @@ export type ToolsetTypeResponse = {
1958
1971
  */
1959
1972
  export type ToolsetWithTools = {
1960
1973
  /**
1961
- * Unique toolset identifier (e.g., "builtin-exa-web-search")
1974
+ * Keycloak client scope UUID (environment-specific)
1975
+ */
1976
+ scope_uuid: string;
1977
+ /**
1978
+ * OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search")
1962
1979
  */
1963
- toolset_id: string;
1980
+ scope: string;
1964
1981
  /**
1965
1982
  * Human-readable name (e.g., "Exa Web Search")
1966
1983
  */
@@ -193,9 +193,13 @@ export type AppStatus = 'setup' | 'ready' | 'resource-admin';
193
193
  */
194
194
  export type AppToolsetConfig = {
195
195
  /**
196
- * Toolset identifier (e.g., "builtin-exa-web-search")
196
+ * OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search")
197
197
  */
198
- toolset_id: string;
198
+ scope: string;
199
+ /**
200
+ * Keycloak client scope UUID (environment-specific)
201
+ */
202
+ scope_uuid: string;
199
203
  /**
200
204
  * Whether the toolset is enabled for this app instance
201
205
  */
@@ -1124,9 +1128,9 @@ export type CreateEmbeddingResponse = {
1124
1128
  */
1125
1129
  export type CreateToolsetRequest = {
1126
1130
  /**
1127
- * Toolset type identifier (e.g., "builtin-exa-web-search")
1131
+ * Toolset scope UUID identifier (e.g., "4ff0e163-36fb-47d6-a5ef-26e396f067d6")
1128
1132
  */
1129
- toolset_type: string;
1133
+ scope_uuid: string;
1130
1134
  /**
1131
1135
  * User-defined name for this toolset (2-24 chars, alphanumeric + spaces/dash/underscore)
1132
1136
  */
@@ -1438,6 +1442,7 @@ export type ListToolsetTypesResponse = {
1438
1442
  */
1439
1443
  export type ListToolsetsResponse = {
1440
1444
  toolsets: Array<ToolsetResponse>;
1445
+ toolset_types: Array<AppToolsetConfig>;
1441
1446
  };
1442
1447
 
1443
1448
  /**
@@ -1999,7 +2004,7 @@ export type ToolChoiceOptions = 'none' | 'auto' | 'required';
1999
2004
 
2000
2005
  /**
2001
2006
  * Tool definition in OpenAI format for LLM function calling.
2002
- * Tool name follows Claude MCP convention: toolset__{toolset_id}__{tool_name}
2007
+ * Tool name follows Claude MCP convention: toolset__{toolset_name}__{tool_name}
2003
2008
  */
2004
2009
  export type ToolDefinition = {
2005
2010
  /**
@@ -2025,9 +2030,13 @@ export type Toolset = {
2025
2030
  */
2026
2031
  name: string;
2027
2032
  /**
2028
- * Toolset type identifier (e.g., "builtin-exa-web-search")
2033
+ * Keycloak client scope UUID (environment-specific, stored in DB)
2029
2034
  */
2030
- toolset_type: string;
2035
+ scope_uuid: string;
2036
+ /**
2037
+ * OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search", derived from registry)
2038
+ */
2039
+ scope: string;
2031
2040
  /**
2032
2041
  * Optional description for this instance
2033
2042
  */
@@ -2077,9 +2086,13 @@ export type ToolsetResponse = {
2077
2086
  */
2078
2087
  name: string;
2079
2088
  /**
2080
- * Toolset type identifier (e.g., "builtin-exa-web-search")
2089
+ * Toolset scope UUID identifier
2090
+ */
2091
+ scope_uuid: string;
2092
+ /**
2093
+ * Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search")
2081
2094
  */
2082
- toolset_type: string;
2095
+ scope: string;
2083
2096
  /**
2084
2097
  * Optional description for this toolset
2085
2098
  */
@@ -2092,10 +2105,6 @@ export type ToolsetResponse = {
2092
2105
  * Whether this toolset has an API key configured
2093
2106
  */
2094
2107
  has_api_key: boolean;
2095
- /**
2096
- * Whether the toolset type is enabled at app level
2097
- */
2098
- app_enabled: boolean;
2099
2108
  /**
2100
2109
  * Tools provided by this toolset type
2101
2110
  */
@@ -2115,9 +2124,13 @@ export type ToolsetResponse = {
2115
2124
  */
2116
2125
  export type ToolsetTypeResponse = {
2117
2126
  /**
2118
- * Unique toolset type identifier (e.g., "builtin-exa-web-search")
2127
+ * Toolset scope UUID identifier
2119
2128
  */
2120
- toolset_id: string;
2129
+ scope_uuid: string;
2130
+ /**
2131
+ * Toolset scope identifier (e.g., "scope_toolset-builtin-exa-web-search")
2132
+ */
2133
+ scope: string;
2121
2134
  /**
2122
2135
  * Human-readable name (e.g., "Exa Web Search")
2123
2136
  */
@@ -2141,9 +2154,13 @@ export type ToolsetTypeResponse = {
2141
2154
  */
2142
2155
  export type ToolsetWithTools = {
2143
2156
  /**
2144
- * Unique toolset identifier (e.g., "builtin-exa-web-search")
2157
+ * Keycloak client scope UUID (environment-specific)
2158
+ */
2159
+ scope_uuid: string;
2160
+ /**
2161
+ * OAuth scope string (e.g., "scope_toolset-builtin-exa-web-search")
2145
2162
  */
2146
- toolset_id: string;
2163
+ scope: string;
2147
2164
  /**
2148
2165
  * Human-readable name (e.g., "Exa Web Search")
2149
2166
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodhiapp/ts-client",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
4
4
  "description": "TypeScript types for Bodhi API",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",