refactored service center

This commit is contained in:
ValueOn AG 2025-12-15 21:55:26 +01:00
parent 8b40698ba1
commit 4b00e741b3
225 changed files with 668 additions and 0 deletions

30
LICENSE.txt Normal file
View file

@ -0,0 +1,30 @@
PROPRIETARY LICENSE ALL RIGHTS RESERVED
========================================
Copyright (c) 2025 Patrick Motsch
Dieses Software-Repository enthält proprietäre und vertrauliche
Software.
ALLE RECHTE VORBEHALTEN.
Ohne vorherige ausdrückliche schriftliche Zustimmung des Rechteinhabers
ist es untersagt, diese Software oder Teile davon:
• zu verwenden
• zu kopieren
• zu modifizieren
• zu verbreiten
• öffentlich zugänglich zu machen
• zu lizenzieren oder weiterzugeben
• zu dekompilieren, zu disassemblieren oder zu reverse engineeren
Die Nutzung dieser Software ist ausschließlich im Rahmen eines
separaten kommerziellen Lizenz- oder Nutzungsvertrags mit dem
Rechteinhaber gestattet.
Dieser Lizenzhinweis ersetzt keinen individuellen Lizenzvertrag
und gewährt keinerlei Nutzungsrechte.
© 2025 Patrick Motsch. Alle Rechte vorbehalten.

46
README.txt Normal file
View file

@ -0,0 +1,46 @@
AI TOOLKIT PROPRIETARY SOFTWARE
================================
Dieses Repository enthält proprietäre Software (AI Toolkit),
die vom Rechteinhaber entwickelt wurde.
STATUS
------
• Proprietäre, nicht quelloffene Software
• Kein Open-Source-Projekt
• Nutzung nur auf Basis eines separaten schriftlichen Lizenzvertrags
LIZENZ
------
Dieses Repository unterliegt keiner Open-Source-Lizenz.
Alle Rechte sind vorbehalten.
Ohne eine explizite schriftliche Lizenzvereinbarung mit dem Rechteinhaber
ist es untersagt, den Code oder Teile davon:
• zu nutzen
• zu kopieren
• zu verändern
• zu verbreiten
• weiterzuverkaufen
• zu dekompilieren oder zu reverse engineeren
KUNDENPRODUKTE
--------------
Produkte, die auf Basis dieses Toolkits erstellt werden,
unterliegen separaten Lizenzverträgen.
Die kundenspezifischen Produktkonfigurationen (z. B. Prompts,
Parameter, Workflows, fachliche Logik) stehen sofern vertraglich
vereinbart im Eigentum des jeweiligen Kunden.
Der zugrundeliegende Toolkit-Code verbleibt vollständig
beim Rechteinhaber.
KONTAKT
-------
Für kommerzielle Lizenzen oder Rückfragen:
Patrick Motsch
© 2025 Patrick Motsch. Alle Rechte vorbehalten.

2
app.py
View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import os import os
import sys import sys
import unicodedata import unicodedata

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Base connector interface for AI connectors. Base connector interface for AI connectors.
All AI connectors should inherit from this class. All AI connectors should inherit from this class.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Dynamic model registry that collects models from all AI connectors. Dynamic model registry that collects models from all AI connectors.
Implements plugin-like architecture for connector discovery. Implements plugin-like architecture for connector discovery.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Simplified model selection based on model properties and priority-based sorting. Simplified model selection based on model properties and priority-based sorting.
No complex rules needed - just filter by properties and sort by priority! No complex rules needed - just filter by properties and sort by priority!

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
import httpx import httpx
import os import os

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
from typing import List from typing import List
from modules.aicore.aicoreBase import BaseConnectorAi from modules.aicore.aicoreBase import BaseConnectorAi

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
import httpx import httpx
from typing import List from typing import List

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
import httpx import httpx
from typing import List from typing import List

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Tavily web search class. """Tavily web search class.
""" """

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Authentication and authorization modules for routes and services. Authentication and authorization modules for routes and services.
High-level security functionality that depends on FastAPI and interfaces. High-level security functionality that depends on FastAPI and interfaces.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Authentication module for backend API. Authentication module for backend API.
Handles JWT-based authentication, token generation, and user context. Handles JWT-based authentication, token generation, and user context.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
CSRF Protection Middleware for PowerOn Gateway CSRF Protection Middleware for PowerOn Gateway

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
JWT Service JWT Service
Centralizes local JWT creation and cookie helpers. Centralizes local JWT creation and cookie helpers.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Token Manager Service Token Manager Service
Handles all token operations including automatic refresh for backend services. Handles all token operations including automatic refresh for backend services.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Token Refresh Middleware for PowerOn Gateway Token Refresh Middleware for PowerOn Gateway

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Token Refresh Service for PowerOn Gateway Token Refresh Service for PowerOn Gateway

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import psycopg2 import psycopg2
import psycopg2.extras import psycopg2.extras
import logging import logging

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Azure Communication Services Email Connector Azure Communication Services Email Connector
Handles email sending via Azure Communication Services Handles email sending via Azure Communication Services

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Twilio SMS Connector Twilio SMS Connector
Handles SMS sending via Twilio Handles SMS sending via Twilio

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""ClickUp connector for CRUD operations (compatible with TicketInterface). """ClickUp connector for CRUD operations (compatible with TicketInterface).
This module defines its own minimal abstractions to avoid coupling. This module defines its own minimal abstractions to avoid coupling.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Jira connector for CRUD operations (neutralized to generic ticket interface). """Jira connector for CRUD operations (neutralized to generic ticket interface).
This module defines its own minimal abstractions to avoid coupling. This module defines its own minimal abstractions to avoid coupling.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Google Cloud Speech-to-Text and Translation Connector Google Cloud Speech-to-Text and Translation Connector
Replaces Azure Speech Services with Google Cloud APIs Replaces Azure Speech Services with Google Cloud APIs

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Unified modules.datamodels package. Unified modules.datamodels package.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Optional, List, Dict, Any, Callable, TYPE_CHECKING, Tuple from typing import Optional, List, Dict, Any, Callable, TYPE_CHECKING, Tuple
from pydantic import BaseModel, Field, ConfigDict from pydantic import BaseModel, Field, ConfigDict
from enum import Enum from enum import Enum

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Chat models: ChatWorkflow, ChatMessage, ChatLog, ChatStat, ChatDocument.""" """Chat models: ChatWorkflow, ChatMessage, ChatLog, ChatStat, ChatDocument."""
from typing import List, Dict, Any, Optional from typing import List, Dict, Any, Optional

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Document reference models for typed document references in workflows. Document reference models for typed document references in workflows.
""" """

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List, Optional, Literal, Union from typing import Any, Dict, List, Optional, Literal, Union
from pydantic import BaseModel, Field from pydantic import BaseModel, Field
from datetime import datetime from datetime import datetime

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List, Optional, Literal from typing import Any, Dict, List, Optional, Literal
from pydantic import BaseModel, Field from pydantic import BaseModel, Field

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""File-related datamodels: FileItem, FilePreview, FileData.""" """File-related datamodels: FileItem, FilePreview, FileData."""
from typing import Dict, Any, Optional, Union from typing import Dict, Any, Optional, Union

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Unified JSON document schema and helpers used by both generation prompts and renderers. Unified JSON document schema and helpers used by both generation prompts and renderers.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Messaging models: MessagingSubscription, MessagingSubscriptionRegistration, MessagingDelivery.""" """Messaging models: MessagingSubscription, MessagingSubscriptionRegistration, MessagingDelivery."""
import uuid import uuid

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Neutralizer models: DataNeutraliserConfig and DataNeutralizerAttributes.""" """Neutralizer models: DataNeutraliserConfig and DataNeutralizerAttributes."""
import uuid import uuid

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Pagination models for server-side pagination, sorting, and filtering. Pagination models for server-side pagination, sorting, and filtering.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""RBAC models: AccessRule, AccessRuleContext, Role.""" """RBAC models: AccessRule, AccessRuleContext, Role."""
import uuid import uuid

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Security models: Token and AuthEvent.""" """Security models: Token and AuthEvent."""
from typing import Optional from typing import Optional

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Ticket datamodels used across Jira/ClickUp connectors.""" """Ticket datamodels used across Jira/ClickUp connectors."""
from typing import Optional from typing import Optional

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Utility data models and classes for common tools and mappings. Utility data models and classes for common tools and mappings.
""" """

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""UAM models: User, Mandate, UserConnection.""" """UAM models: User, Mandate, UserConnection."""
import uuid import uuid

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Utility datamodels: Prompt, TextMultilingual.""" """Utility datamodels: Prompt, TextMultilingual."""
from typing import Dict, Optional from typing import Dict, Optional

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
"""Voice settings datamodel.""" """Voice settings datamodel."""
from pydantic import BaseModel, Field from pydantic import BaseModel, Field

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Workflow execution models for action definitions, AI responses, and workflow-level structures. Workflow execution models for action definitions, AI responses, and workflow-level structures.
""" """

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Dynamic Options API feature module. Dynamic Options API feature module.
Provides dynamic options for frontend select/multiselect fields. Provides dynamic options for frontend select/multiselect fields.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
from modules.services import getInterface as getServices from modules.services import getInterface as getServices

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
import asyncio import asyncio
from typing import Any, Dict, List, Optional from typing import Any, Dict, List, Optional

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Workflow feature - handles workflow execution, scheduling, and chat playground operations. Workflow feature - handles workflow execution, scheduling, and chat playground operations.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Main workflow service - handles workflow execution, scheduling, and chat playground operations. Main workflow service - handles workflow execution, scheduling, and chat playground operations.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Automation templates for workflow definitions. Automation templates for workflow definitions.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Utility functions for automation feature. Utility functions for automation feature.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
import asyncio import asyncio
import uuid import uuid

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Centralized bootstrap interface for system initialization. Centralized bootstrap interface for system initialization.
Contains all bootstrap logic including mandate, users, and RBAC rules. Contains all bootstrap logic including mandate, users, and RBAC rules.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Interface to the Gateway system. Interface to the Gateway system.
Manages users and mandates for authentication. Manages users and mandates for authentication.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Interface to LucyDOM database and AI Connectors. Interface to LucyDOM database and AI Connectors.
Uses the JSON connector for data access with added language support. Uses the JSON connector for data access with added language support.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Interface to Management database and AI Connectors. Interface to Management database and AI Connectors.
Uses the JSON connector for data access with added language support. Uses the JSON connector for data access with added language support.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Interface for Messaging Services Interface for Messaging Services
Provides a unified interface for sending messages across different channels (Email, SMS, etc.) Provides a unified interface for sending messages across different channels (Email, SMS, etc.)

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
RBAC helper functions for interfaces. RBAC helper functions for interfaces.
Provides RBAC filtering for database queries without connectors importing security. Provides RBAC filtering for database queries without connectors importing security.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Optional from typing import Any, Optional
from datetime import datetime, timezone from datetime import datetime, timezone

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Interface for Voice Services Interface for Voice Services
Provides a generic interface layer between routes and voice connectors. Provides a generic interface layer between routes and voice connectors.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from fastapi import APIRouter, Response, Depends, Request, Body from fastapi import APIRouter, Response, Depends, Request, Body
from fastapi.responses import FileResponse from fastapi.responses import FileResponse
from fastapi.staticfiles import StaticFiles from fastapi.staticfiles import StaticFiles

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Admin automation events routes for the backend API. Admin automation events routes for the backend API.
Sysadmin-only endpoints for viewing and controlling automation events. Sysadmin-only endpoints for viewing and controlling automation events.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Admin RBAC Roles Management routes. Admin RBAC Roles Management routes.
Provides endpoints for managing roles and role assignments to users. Provides endpoints for managing roles and role assignments to users.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from fastapi import APIRouter, HTTPException, Path, Response, Request from fastapi import APIRouter, HTTPException, Path, Response, Request
from fastapi import status from fastapi import status
import logging import logging

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Chat Playground routes for the backend API. Chat Playground routes for the backend API.
Implements the endpoints for chat playground workflow management. Implements the endpoints for chat playground workflow management.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Automation routes for the backend API. Automation routes for the backend API.
Implements the endpoints for automation definition management. Implements the endpoints for automation definition management.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Connection routes for the backend API. Connection routes for the backend API.
Implements the endpoints for connection management. Implements the endpoints for connection management.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from fastapi import APIRouter, HTTPException, Depends, File, UploadFile, Form, Path, Request, status, Query, Response, Body from fastapi import APIRouter, HTTPException, Depends, File, UploadFile, Form, Path, Request, status, Query, Response, Body
from fastapi.responses import JSONResponse from fastapi.responses import JSONResponse
from typing import List, Dict, Any, Optional from typing import List, Dict, Any, Optional

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Mandate routes for the backend API. Mandate routes for the backend API.
Implements the endpoints for mandate management. Implements the endpoints for mandate management.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from fastapi import APIRouter, HTTPException, Depends, Path, Request, status, Query, Body from fastapi import APIRouter, HTTPException, Depends, Path, Request, status, Query, Body
from typing import List, Dict, Any, Optional from typing import List, Dict, Any, Optional
import logging import logging

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from fastapi import APIRouter, HTTPException, Depends, Body, Path, Request, Query from fastapi import APIRouter, HTTPException, Depends, Body, Path, Request, Query
from typing import List, Dict, Any, Optional from typing import List, Dict, Any, Optional
from fastapi import status from fastapi import status

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
User routes for the backend API. User routes for the backend API.
Implements the endpoints for user management. Implements the endpoints for user management.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from fastapi import APIRouter, HTTPException, Depends, Body, Path, Request, Query from fastapi import APIRouter, HTTPException, Depends, Body, Path, Request, Query
from typing import List, Dict, Any, Optional from typing import List, Dict, Any, Optional
from fastapi import status from fastapi import status

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Options API routes for dynamic frontend options. Options API routes for dynamic frontend options.
Provides endpoints for fetching options for select/multiselect fields. Provides endpoints for fetching options for select/multiselect fields.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
RBAC routes for the backend API. RBAC routes for the backend API.
Implements endpoints for role-based access control permissions. Implements endpoints for role-based access control permissions.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from fastapi import APIRouter, HTTPException, Depends, status, Request, Body from fastapi import APIRouter, HTTPException, Depends, status, Request, Body
from fastapi.responses import FileResponse, JSONResponse from fastapi.responses import FileResponse, JSONResponse
from typing import Optional, Dict, Any, List from typing import Optional, Dict, Any, List

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Routes for Google authentication. Routes for Google authentication.
""" """

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Routes for local security and authentication. Routes for local security and authentication.
""" """

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Routes for Microsoft authentication. Routes for Microsoft authentication.
""" """

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
SharePoint routes for folder browsing SharePoint routes for folder browsing
Provides endpoints for listing SharePoint sites and browsing folders Provides endpoints for listing SharePoint sites and browsing folders

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Google Cloud Voice Services Routes Google Cloud Voice Services Routes
Replaces Azure voice services with Google Cloud Speech-to-Text and Translation Replaces Azure voice services with Google Cloud Speech-to-Text and Translation

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Workflow routes for the backend API. Workflow routes for the backend API.
Implements the endpoints for workflow management according to the state machine. Implements the endpoints for workflow management according to the state machine.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Security core modules for low-level security operations. Security core modules for low-level security operations.
Used by connectors and interfaces. Does not depend on FastAPI or interfaces. Used by connectors and interfaces. Does not depend on FastAPI or interfaces.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
RBAC interface: Core RBAC logic and permission resolution. RBAC interface: Core RBAC logic and permission resolution.
Moved from interfaces to security module to maintain proper architectural layering. Moved from interfaces to security module to maintain proper architectural layering.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
RBAC helper functions for resource access control. RBAC helper functions for resource access control.
Provides convenient functions for checking permissions in feature modules. Provides convenient functions for checking permissions in feature modules.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
Root access management for system-level operations. Root access management for system-level operations.
Provides secure access to root user and DbApp database connector. Provides secure access to root user and DbApp database connector.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any from typing import Any
from modules.datamodels.datamodelUam import User from modules.datamodels.datamodelUam import User

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import json import json
import logging import logging
import re import re

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
""" """
JSON Response Handling Module JSON Response Handling Module

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
import logging import logging
from typing import Dict, Any, List, Optional from typing import Dict, Any, List, Optional
from modules.datamodels.datamodelUam import User, UserConnection from modules.datamodels.datamodelUam import User, UserConnection

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from .mainServiceExtraction import ExtractionService from .mainServiceExtraction import ExtractionService
__all__ = ["ExtractionService"] __all__ = ["ExtractionService"]

View file

@ -1,2 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
import base64 import base64
import io import io

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
import json import json

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
from modules.datamodels.datamodelExtraction import ContentPart from modules.datamodels.datamodelExtraction import ContentPart

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
import logging import logging

View file

@ -1,2 +1,4 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
import base64 import base64

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
from modules.datamodels.datamodelExtraction import ContentPart from modules.datamodels.datamodelExtraction import ContentPart

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
import io import io

View file

@ -1,3 +1,5 @@
# Copyright (c) 2025 Patrick Motsch
# All rights reserved.
from typing import Any, Dict, List from typing import Any, Dict, List
from bs4 import BeautifulSoup from bs4 import BeautifulSoup

Some files were not shown because too many files have changed in this diff Show more