- Add gitignore and prettier configuration files for project scaffolding - Implement room access control service with project member verification - Create user access key management with CRUD operations and activity logging - Add accordion UI component for frontend expandable sections - Implement room AI configuration with list, upsert, and delete operations - Add AI event types for agent join/leave/status change tracking - Create streaming AI processing services for mode and react patterns - Build room AI service with model detection and idempotency handling - Integrate chat service orchestration for AI message processing - Add typing indicators and stream cancellation for AI interactions - Implement mention parsing and context extraction for AI agents
43 lines
864 B
TypeScript
43 lines
864 B
TypeScript
import axios from 'axios';
|
|
import { getApi } from './generated';
|
|
|
|
// Create axios instance with base configuration
|
|
const axiosInstance = axios.create({
|
|
baseURL: import.meta.env.VITE_API_BASE_URL || '',
|
|
withCredentials: true,
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
|
|
// Get API functions
|
|
const api = getApi(axiosInstance);
|
|
|
|
// Export all API functions
|
|
export const {
|
|
// Auth
|
|
api2faDisable,
|
|
api2faEnable,
|
|
api2faStatus,
|
|
api2faVerify,
|
|
apiAuthCaptcha,
|
|
apiAuthLogin,
|
|
apiAuthLogout,
|
|
apiAuthMe,
|
|
apiAuthRegister,
|
|
apiUserChangePassword,
|
|
apiUserConfirmPasswordReset,
|
|
apiUserRequestPasswordReset,
|
|
apiEmailGet,
|
|
apiEmailChange,
|
|
apiEmailVerify,
|
|
} = api;
|
|
|
|
// Also export project-related functions directly
|
|
export const {
|
|
getCurrentUserProjects,
|
|
} = api;
|
|
|
|
// Export the full API object for other uses
|
|
export default api;
|