How autnhive-devsecops-org/sami-sdk-python works
This is a generated Python SDK for the SAMI firewall API. A caller builds validated request models, invokes a generated endpoint method, and the shared client serializes/authenticates the request, sends HTTP, then deserializes the response or raises an API exception. The README documents text chat, multimodal chat, and file sanitization; the sampled implementation shows the endpoint-to-client path but not server-side behavior. The graph focuses on runtime components and the documented endpoint capabilities.
Main entry points: api_client.py API client · chat_api.py Text chat · default_api.py Other endpoints · chat_completion_request.py Chat request
Components 16
API endpoints
- Text chat
sami_firewall_client/api/chat_api.py - Other endpoints
sami_firewall_client/api/default_api.py
Request and response models
- Chat request
sami_firewall_client/models/chat_completion_request.py - Chat message
sami_firewall_client/models/chat_message.py - Signed URL batch
sami_firewall_client/models/signed_url_payload.py - Sanitization job
sami_firewall_client/models/job.py - Validation error
sami_firewall_client/models/validation_error.py - Error location
sami_firewall_client/models/location_inner.py - HTTP validation
sami_firewall_client/models/http_validation_error.py
Client and transport
- Configuration
sami_firewall_client/configuration.py - API client
sami_firewall_client/api_client.py - Response wrapper
sami_firewall_client/api_response.py - HTTP transport
sami_firewall_client/rest.py
Errors
- API exceptions
sami_firewall_client/exceptions.py
Other components
- SDK caller
- SAMI firewall API
Connections 17
- SDK caller → Text chat: calls
README.md - SDK caller → Other endpoints: calls
README.md - SDK caller → Chat request: builds
README.md - Chat request → Chat message: contains
sami_firewall_client/models/chat_completion_request.py - Signed URL batch → Sanitization job: contains
sami_firewall_client/models/signed_url_payload.py - Validation error → Error location: contains
sami_firewall_client/models/validation_error.py - HTTP validation → Validation error: uses
sami_firewall_client/models/http_validation_error.py - Text chat → Chat request: serializes
sami_firewall_client/api/chat_api.py - Text chat → API client: dispatches
sami_firewall_client/api/chat_api.py - Other endpoints → Signed URL batch: serializes
sami_firewall_client/api/default_api.py - Other endpoints → API client: dispatches
sami_firewall_client/api/default_api.py - API client → Configuration: uses
sami_firewall_client/api_client.py - API client → HTTP transport: sends HTTP
sami_firewall_client/api_client.py - API client → Response wrapper: builds response
sami_firewall_client/api_client.py - API client → API exceptions: raises
sami_firewall_client/api_client.py - Text chat → SAMI firewall API: POST chat
README.md - Other endpoints → SAMI firewall API: POST endpoints
README.md