Aribot Python SDK: changelog
3.0.0
A rebuild. Every call now goes to a route that exists in the Aribot API today. Calls whose endpoint was removed are gone, and calls whose endpoint moved use the new path. Pin aribot<3 if you need 2.x behaviour while you migrate.
Breaking: client and transport
Aribot(api_key=...): api_key is optional. Without it the client reads ARIBOT_API_KEY, then the keychain entry from aribot login (install aribot[keyring]), then ARIBOT_TOKEN. A JWT (three dot-separated parts) is sent as Authorization: Bearer, an API key as X-API-Key.
base_url is now the host only, default https://aribot.ayurak.com (2.x used https://api.aribot.ayurak.com/aribot-api). ARIBOT_API overrides it. Plain http is refused except for localhost.
- Redirects are no longer followed; a 3xx raises
AribotError.
- Only GET and HEAD are retried (429/502/503/504, at most 3 attempts,
Retry-After capped at 30 s). 2.x retried writes on timeouts and connection errors; 3.0 sends a write once unless you pass idempotency_key=.
- User-Agent is
aribot-sdk-python/3.0.0.
pydantic is no longer a dependency. Python 3.9 or later.
client.api_key is removed (the credential is never exposed). Use client.credential for its kind and source.
Breaking: errors
AribotError now has status, code and payload. In 2.x these were status_code and response.
- New:
ConfigError, LicenseRequiredError (402), PermissionDeniedError (403), ConflictError (409).
- A 403 now raises
PermissionDeniedError (2.x raised AuthenticationError).
ValidationError now covers 400 as well as 422, and no longer has errors (read payload).
New modules
client.gates: decide, feedback_file, fix, gate_runs, list_gate_configs, list_rules, active_rule_set.
client.gateway.decide: the agent decision API, authenticated with the agent's key (agent_key= or ARIBOT_AGENT_KEY).
client.connector: health, status, create_code_review, get_code_review, create_threat_model, insights, workbench, create_scan, scan_job, get_scan.
client.developer: list_api_keys, revoke_api_key, list_usage, usage_stats, rate_limit_usage.
Removed modules
| 2.x | 3.0 |
|---|
client.ai (get_usage, get_quota, get_models, configure, get_queue_status) | removed: no endpoints. For usage use client.developer.list_usage() or client.usage() |
client.ai.analyze | client.multi_agent.analyze (POST /v2/threat-modeling/ai-agents/analyze/) |
client.finops (get_recommendations, get_costs, get_optimization) | removed: no endpoints |
client.api_keys.list | client.developer.list_api_keys |
client.api_keys.revoke | client.developer.revoke_api_key (people only: needs a JWT, an API key is refused) |
Client
| 2.x | 3.0 |
|---|
usage(period=...) (/v1/usage/, no route) | usage() (/v1/developer/rate-limits/usage/) |
health() | unchanged (/aribot-api/health/) |
me() | unchanged |
threat_modeling
| 2.x | 3.0 |
|---|
analyze_diagram(file, filename, analysis_depth, wait, timeout) | analyze_diagram(file, filename=None, diagram_type=None, analysis_depth=None); returns when the upload is accepted (wait/timeout removed; poll get(id)) |
analyze_with_ai (analyze-with-ai/, no route) | analyze_ai (analyze-ai/) |
dashboard(period, include_trends) (/v1/tm/dashboard/, no route) | dashboard(**filters) (/v1/tm/dashboard/posture/) |
list, get, delete, get_threats, get_components | unchanged |
compliance
| 2.x | 3.0 |
|---|
get_report(diagram_id, format) (no route) | get_report(diagram_id, framework_id) (/v1/compliance-reporting/diagrams/{id}/frameworks/{fw}/report/) |
get_gaps | removed: no endpoint |
add_custom_standard (POST to a GET-only route) | create_custom_standard (POST /v2/compliances/standards/create_custom/) |
dashboard(period) (no route) | dashboard(view="trends"), view one of trends, top-assets, top-controls, failed-controls, cloud-stats |
| new | list_scans(diagram_id), list_frameworks(diagram_id) |
scan, list_standards, get_standard, list_controls | unchanged |
All calls use /v2/compliances/remediation/ (the published 2.x build used /api/v2/remediation/, which does not exist).
| 2.x | 3.0 |
|---|
analytics_by_severity | by_severity |
analytics_by_policy | by_policy |
list, get, generate_for_policy, generate_for_scan_results, generate_for_violations, mark_status, regenerate, stats, violations_summary, for_standard | unchanged |
cloud
The /v2/cloud-security/* routes no longer exist.
| 2.x | 3.0 |
|---|
scan(project_id, ...) | initiate_scan(scan_type, config) (POST /v2/scans/initiate/), or client.connector.create_scan |
list_scans | list_scans(**filters) (/v2/compliances/scan/) |
get_scan, get_findings(scan_id) | get_scan_results(scan_id=...) (/v2/compliances/scan/results/) |
list_accounts | list_accounts (/v1/accounts/) |
connect_account, delete_account | removed: the accounts API is list-only. Connect accounts in the Aribot app |
resolve_finding, suppress_finding, get_remediation | removed: no endpoints. Use list_findings / get_finding and client.remediation |
dashboard | dashboard (/v2/compliances/dashboard/cloud-stats/) |
pipeline
| 2.x | 3.0 |
|---|
scan(...) (POST /v1/pipeline/scans/, read-only route) | scan(project_id, commit_sha=None, branch=None, pull_request_id=None, **options) (POST /v1/pipeline/projects/{id}/scan/); wait/timeout/scan_types/fail_on_severity removed |
get_findings (no route) | get_results(scan_id); also get_vulnerabilities, get_gate_results, get_sbom |
get_sast_findings, get_sca_findings, get_secrets_findings | removed: filter get_results yourself |
configure_gates(project_id, gates) (no route) | list_security_gates(project_id) and update_security_gate(gate_id, **fields) |
suppress_finding (no route) | update_vulnerability(vulnerability_id, **fields) |
add_baseline | removed: no endpoint |
dashboard (no route) | stats() (/v1/pipeline/stats/) |
list_scans(project_id, status, branch, ...) | list_scans(page, limit); per project: project_scans(project_id) |
create_project, list_projects, get_project, delete_project, get_scan | unchanged |
code_review
| 2.x | 3.0 |
|---|
create_scan(repository_url, branch, scan_types) | create_scan(repository_id=None, scan_type="full", diagram_id=None, team_id=None); register the repository first with create_repository |
get_findings (no route) | traceability(scan_id) |
remediate_finding(scan_id, finding_id) (no route) | generate_threat_fix(scan_id, threat_id) |
rescan (no route) | start_scan |
get_summary (no route) | get_scan |
| new | create_repository, list_repositories, upload_files, verify_all_threats, threat_verifications |
dashboard
| 2.x | 3.0 |
|---|
get_overview (no route) | get_overview (/v2/dashboard/posture/) |
get_recent_activity (no route) | get_recent_activity (/v1/tm/dashboard/recent-activity/) |
get_risk_summary (no route) | get_risk_summary (/v1/tm/dashboard/risk-summary/) |
redteam
| 2.x | 3.0 |
|---|
get_security_requirements(diagram_id, priority) (GET to a POST-only route) | generate_security_requirements(threats, context=None) |
get_methodologies, get_simulations, get_intelligence, generate_attack_paths, get_attack_paths | unchanged |
economics
| 2.x | 3.0 |
|---|
get_component_cost(component_id) (no route) | get_component_type_cost(component_type_id) (/v2/threat-modeling/component-types/{id}/cost-intelligence/) |
get_economic_intelligence | get_pricing |
get_market_intelligence, calculate_roi | removed: no endpoints |
get_dashboard, get_diagram_cost_analysis | unchanged |
sbom
| 2.x | 3.0 |
|---|
get_vulnerabilities(document_id) | removed: no endpoint (/v2/sbom/vulnerabilities/ scans a repository and is not per document) |
list_documents, get_document | unchanged |
reports
| 2.x | 3.0 |
|---|
export(report_id, format) sent GET | now sends POST (the route accepts POST only) |
export_diagram(diagram_id, format) | format must be pdf, json or csv; returns bytes for pdf and csv |
list, create, get, share, get_shared, email, get_status, schedule, analytics | unchanged |
maestro
| 2.x | 3.0 |
|---|
get_risk_scores (GET to a POST-only route) | calculate_risk_scores (POST) |
enrich_threats | removed: no endpoint |
process, generate_security_requirements, refresh_priorities, estimate_refresh_cost | unchanged |
ml
| 2.x | 3.0 |
|---|
get_predictions (GET to a POST-only route) | predict(diagram_id) (POST, numeric diagram id) |
analyze_patterns, get_model_performance, train_models, ensemble_predict | unchanged |
multi_agent
| 2.x | 3.0 |
|---|
voice_to_architecture(audio_data) | voice_to_architecture(voice_text, voice_metadata=None): the route takes a transcript |
| new | analyze (was ai.analyze) |
execute_workflow, ai_assistant, generate_architecture, analyze_security | unchanged |
digital_twin, marketplace
Unchanged. marketplace.get_templates and the list calls keep page and limit.