@iblai/data-layer 1.32.0 → 1.33.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.
@@ -176,3 +176,21 @@ export interface AccessibleUsersListResponse {
176
176
  previous: string | null;
177
177
  results: AccessibleUser[];
178
178
  }
179
+ /**
180
+ * Which LLMs users may pick, as RBAC resource paths: `llms/` (everything),
181
+ * `llms/<provider>/` (every model of a provider, future ones included) or
182
+ * `llms/<provider>/models/<llm_name>` (one model). Returned by
183
+ * `GET /api/core/rbac/llm-access/status/` and echoed by the set call.
184
+ */
185
+ export interface LlmAccess {
186
+ platform_key: string;
187
+ llm_resources: string[];
188
+ }
189
+ export type GetLlmAccessRequest = {
190
+ platform_key: string;
191
+ };
192
+ /** Body of `POST /api/core/rbac/llm-access/set/`; replaces the whole list. */
193
+ export type SetLlmAccessRequest = {
194
+ platform_key: string;
195
+ llm_resources: string[];
196
+ };