Runtime architecture
The SDK is split between generated transport code and handwritten usability code.
The handwritten layer's job is to translate user-shaped operations
(alert.disposition(...)) into the corresponding sequence of generated requests,
to hand back bound Python objects, and to translate generated error payloads into
the typed exception hierarchy. The generated layer is broad but mechanical; the
handwritten layer is narrow but ergonomic.
Generated code
The generated layer lives under src/sasvi/_generated.
What it provides:
- endpoint coverage across
alerts,datahub,sand,workflows,files,folders,transport, and thesaslogonclient the OAuth token providers use - generated request and response models
- low-level service fidelity
Why it is not enough on its own:
- generated methods mirror the service, not the user workflow
- document and alert mutation flows are harder to express directly
- repeated lock, fetch, and patch mechanics are easy to get wrong
Handwritten layer
The handwritten layer lives in modules such as:
src/sasvi/_client.pysrc/sasvi/documents/src/sasvi/alerts/src/sasvi/search/src/sasvi/workflows/src/sasvi/admin/
What it adds:
SVIClientas one entry point- bound objects with follow-on behavior
- task-oriented service helpers
- predictable error translation
Why the docs focus on the stable surface
The stable handwritten layer is the fastest route from zero to working code. The generated layer still matters, but it is best used when you already know which endpoint you need.
Extension point
If a workflow is missing from the handwritten layer, start from sasvi.api.<service> first.
That lets you solve the immediate problem without forking the runtime model.