import { i as a } from "./index-CwSaRXXg.js";
const o = {
  // Dashboard
  dashboard: {
    getOverview: (i = 30) => a.get("/api/administration/ai/dashboard/overview", { params: { days: i } }),
    getByProvider: (i, t) => a.get("/api/administration/ai/dashboard/by-provider", { params: { startDate: i, endDate: t } }),
    getByModel: (i, t, e) => a.get("/api/administration/ai/dashboard/by-model", { params: { startDate: i, endDate: t, providerId: e } }),
    getDailyCosts: (i = 30, t) => a.get("/api/administration/ai/dashboard/daily-costs", { params: { days: i, providerId: t } }),
    getRecentEvents: (i = 50, t) => a.get("/api/administration/ai/dashboard/recent-events", { params: { count: i, providerId: t } })
  },
  // Settings (Providers & Keys)
  settings: {
    getProviders: () => a.get("/api/administration/ai/settings/providers"),
    getProvider: (i) => a.get(`/api/administration/ai/settings/providers/${i}`),
    getModels: (i, t) => a.get("/api/administration/ai/settings/models", { params: { category: i, providerId: t } }),
    getKey: (i) => a.get(`/api/administration/ai/settings/keys/${i}`),
    createKey: (i, t) => a.post(`/api/administration/ai/settings/providers/${i}/keys`, t),
    updateKey: (i, t) => a.put(`/api/administration/ai/settings/keys/${i}`, t),
    rotateKey: (i, t) => a.post(`/api/administration/ai/settings/keys/${i}/rotate`, t),
    revealKey: (i) => a.post(`/api/administration/ai/settings/keys/${i}/reveal`),
    activateKey: (i) => a.post(`/api/administration/ai/settings/keys/${i}/activate`),
    deactivateKey: (i) => a.post(`/api/administration/ai/settings/keys/${i}/deactivate`),
    deleteKey: (i) => a.delete(`/api/administration/ai/settings/keys/${i}`)
  },
  // Provider Instances
  instances: {
    getAll: () => a.get("/api/administration/ai/instances"),
    getMyInstances: () => a.get("/api/administration/ai/instances/my-instances"),
    getById: (i) => a.get(`/api/administration/ai/instances/${i}`),
    generateCode: (i) => a.get(`/api/administration/ai/instances/generate-code/${i}`),
    create: (i) => a.post("/api/administration/ai/instances", i),
    update: (i, t) => a.put(`/api/administration/ai/instances/${i}`, t),
    delete: (i) => a.delete(`/api/administration/ai/instances/${i}`),
    setApiKey: (i, t) => a.post(`/api/administration/ai/instances/${i}/api-key`, t),
    setAdminKey: (i, t) => a.post(`/api/administration/ai/instances/${i}/admin-key`, t),
    toggleActive: (i) => a.post(`/api/administration/ai/instances/${i}/toggle-active`),
    addTenant: (i, t) => a.post(`/api/administration/ai/instances/${i}/tenants`, t),
    removeTenant: (i, t) => a.delete(`/api/administration/ai/instances/${i}/tenants/${t}`),
    setAllTenants: (i, t) => a.put(`/api/administration/ai/instances/${i}/all-tenants`, t),
    addSkill: (i, t) => a.post(`/api/administration/ai/instances/${i}/skills`, t),
    removeSkill: (i, t) => a.delete(`/api/administration/ai/instances/${i}/skills/${t}`)
  },
  // Skills
  skills: {
    getAll: (i) => a.get("/api/administration/ai/skills", { params: i }),
    getById: (i) => a.get(`/api/administration/ai/skills/${i}`),
    getByCode: (i, t) => a.get(`/api/administration/ai/skills/by-code/${i}`, { params: { version: t } }),
    create: (i) => a.post("/api/administration/ai/skills", i),
    update: (i, t) => a.put(`/api/administration/ai/skills/${i}`, t),
    delete: (i) => a.delete(`/api/administration/ai/skills/${i}`),
    activate: (i) => a.post(`/api/administration/ai/skills/${i}/activate`),
    deprecate: (i) => a.post(`/api/administration/ai/skills/${i}/deprecate`),
    clone: (i) => a.post(`/api/administration/ai/skills/${i}/clone`),
    preview: (i, t) => a.post(`/api/administration/ai/skills/${i}/preview`, t),
    execute: (i, t) => a.post(`/api/administration/ai/skills/${i}/execute`, t),
    // Blocks
    addBlock: (i, t) => a.post(`/api/administration/ai/skills/${i}/blocks`, t),
    updateBlock: (i, t, e) => a.put(`/api/administration/ai/skills/${i}/blocks/${t}`, e),
    deleteBlock: (i, t) => a.delete(`/api/administration/ai/skills/${i}/blocks/${t}`),
    reorderBlocks: (i, t) => a.put(`/api/administration/ai/skills/${i}/blocks/reorder`, t)
  },
  // Block Definitions
  blockDefinitions: {
    getAll: (i) => a.get("/api/administration/ai/skills/block-definitions", { params: i }),
    getById: (i) => a.get(`/api/administration/ai/skills/block-definitions/${i}`),
    create: (i) => a.post("/api/administration/ai/skills/block-definitions", i),
    update: (i, t) => a.put(`/api/administration/ai/skills/block-definitions/${i}`, t),
    delete: (i) => a.delete(`/api/administration/ai/skills/block-definitions/${i}`)
  },
  // Output Schemas
  schemas: {
    getAll: (i) => a.get("/api/administration/ai/schemas", { params: i }),
    getById: (i) => a.get(`/api/administration/ai/schemas/${i}`),
    getByCode: (i, t) => a.get(`/api/administration/ai/schemas/by-code/${i}`, { params: { version: t } }),
    getActiveByCode: (i) => a.get(`/api/administration/ai/schemas/active/${i}`),
    create: (i) => a.post("/api/administration/ai/schemas", i),
    update: (i, t) => a.put(`/api/administration/ai/schemas/${i}`, t),
    incrementVersion: (i, t) => a.post(`/api/administration/ai/schemas/${i}/increment-version`, t),
    activate: (i) => a.post(`/api/administration/ai/schemas/${i}/activate`),
    deactivate: (i) => a.post(`/api/administration/ai/schemas/${i}/deactivate`),
    delete: (i) => a.delete(`/api/administration/ai/schemas/${i}`)
  },
  // Usage (by provider instance/profile)
  usage: {
    getByInstance: (i, t) => a.get("/api/administration/ai/monitoring/by-instance", { params: { startDate: i, endDate: t } }),
    getInstanceEvents: (i, t, e, s = 100) => a.get(`/api/administration/ai/monitoring/instance/${i}/events`, { params: { startDate: t, endDate: e, count: s } })
  },
  // AI Agents
  agents: {
    getAll: () => a.get("/api/administration/ai/agents"),
    getById: (i) => a.get(`/api/administration/ai/agents/${i}`),
    create: (i) => a.post("/api/administration/ai/agents", i),
    update: (i, t) => a.put(`/api/administration/ai/agents/${i}`, t),
    delete: (i) => a.delete(`/api/administration/ai/agents/${i}`),
    execute: (i, t) => a.post(`/api/administration/ai/agents/${i}/execute`, t),
    getExecutions: (i) => a.get(`/api/administration/ai/agents/${i}/executions`),
    getExecutionDetail: (i) => a.get(`/api/administration/ai/agents/executions/${i}`)
  }
};
export {
  o as aiApi
};
//# sourceMappingURL=aiApi-CVPzFTXa.js.map
