AribotDevelopers Sign in

Aribot Go SDK: changelog

1.0.0

The first release of the Go SDK, under the module path github.com/Aristiun/aribot-go. It replaces the earlier client under github.com/ayurak/aribot-go (2.0.0 in its go.mod), which was never published. Every call goes to a route that exists in the Aribot API today.

The earlier client made 68 distinct calls. In 1.0.0:

Client and transport

Errors

Results

The earlier client decoded every response into structs whose fields were not checked against the server. In 1.0.0, Gates.Decide and Gateway.Decide return structs built from the server code (GateDecision, AgentDecision). The other calls return map[string]any for one JSON object, json.RawMessage for lists, and []byte for file downloads.

Remapped: the route no longer exists (19 calls)

Earlier callEarlier method1.0.0
GET /v1/tm/dashboard/ThreatModeling.GetDashboardThreatModeling.Dashboard: GET /v1/tm/dashboard/posture/
POST /v2/ai/analyze/AI.AnalyzeMultiAgent.Analyze: POST /v2/threat-modeling/ai-agents/analyze/
GET /v2/ai/usage/AI.GetUsageDeveloper.ListUsage: GET /v1/developer/usage/
GET /v2/api-keys/APIKeys.ListDeveloper.ListAPIKeys: GET /v1/developer/api-keys/
POST /v2/api-keys/{id}/revoke/APIKeys.RevokeDeveloper.RevokeAPIKey: POST /v1/developer/api-keys/{id}/revoke/ (people only: needs a JWT; the server refuses an API key)
GET /v2/cloud-security/findings/CloudSecurity.GetFindingsCloud.ListFindings: GET /v2/compliances/findings/
GET /v2/cloud-security/posture/CloudSecurity.GetPostureCloud.Dashboard: GET /v2/compliances/dashboard/cloud-stats/; for the overall posture, ThreatModeling.Dashboard
POST /v2/cloud-security/scan/CloudSecurity.ScanAWS, ScanAzure, ScanGCPCloud.InitiateScan: POST /v2/scans/initiate/, or Connector.CreateScan for one connected account
GET /v2/code-review/scans/{id}/findings/CodeReview.GetFindingsCodeReview.Traceability: GET /v2/code-review/scans/{id}/traceability/
POST /v2/code-review/scans/{id}/findings/{fid}/remediate/CodeReview.RemediateFindingCodeReview.GenerateThreatFix: POST /v2/code-review/scans/{id}/threats/{tid}/generate-fix/
GET /v2/compliances/diagram-compliance/{id}/Compliance.GetStatusCompliance.ListScans: GET /v2/compliances/diagram-compliance/{id}/scans/
POST /v2/compliances/diagram-compliance/{id}/report/Compliance.GenerateReportCompliance.GetReport: GET /v1/compliance-reporting/diagrams/{id}/frameworks/{fw}/report/
GET /v2/dashboard/overview/Dashboard.GetOverviewDashboard.Overview: GET /v2/dashboard/posture/
GET /v2/dashboard/recent/Dashboard.GetRecentActivityDashboard.RecentActivity: GET /v1/tm/dashboard/recent-activity/
GET /v2/dashboard/risk/Dashboard.GetRiskSummaryDashboard.RiskSummary: GET /v1/tm/dashboard/risk-summary/
POST /v2/pipeline/scan/Pipeline.RunSAST, RunSCA, RunSecretDetection, RunIaCScanPipeline.Scan(ctx, projectID, ...): POST /v1/pipeline/projects/{id}/scan/. Register the project with CreateProject (ScanTypes sets its scan types). /v1/pipeline/scans/ is read only
GET /v2/pipeline/scans/{id}/Pipeline.GetScanStatusPipeline.GetScan: GET /v1/pipeline/scans/{id}/
GET /v2/threat-modeling/components/{id}/cost-intelligence/Economics.GetComponentCostEconomics.ComponentTypeCost: GET /v2/threat-modeling/component-types/{id}/cost-intelligence/ (a numeric component type id)
POST /v2/threat-modeling/diagrams/{id}/analyze-with-ai/ThreatModeling.GenerateThreatsThreatModeling.AnalyzeAI: POST /v2/threat-modeling/diagrams/{id}/analyze-ai/

Dropped: no endpoint (8 calls)

Earlier callEarlier methodNote
POST /v2/ai/configure/AI.Configureno endpoint
GET /v2/ai/models/AI.ListModelsno endpoint
GET /v2/ai/quota/AI.GetQuotano endpoint; for request counts see Client.Usage
POST /v2/api-keys/APIKeys.Createcreate API keys in Aribot under Company Admin > Developer & API
GET /v2/compliances/frameworks/{fw}/requirements/Compliance.GetRequirementsno endpoint; Compliance.ListControls(ctx, standardID, ...) lists a standard's controls
GET /v2/sbom/documents/{id}/vulnerabilities/SBOM.GetVulnerabilitiesno per-document endpoint
POST /v2/threat-modeling/diagrams/{id}/enrich-threats/MAESTRO.EnrichThreatsno endpoint
POST /v2/threat-modeling/economics/calculate-roi/Economics.CalculateROIno endpoint

Together the two tables cover the 27 earlier calls with no route.

Remapped: the route exists with a different method or path (4 calls)

Earlier callEarlier method1.0.0
GET /v2/threat-modeling/diagrams/{id}/ml-predictions/ML.GetPredictionsML.Predict: POST (the route accepts POST only; numeric diagram id)
GET /v2/threat-modeling/diagrams/{id}/risk-scores/MAESTRO.GetRiskScoresMAESTRO.CalculateRiskScores: POST (the route accepts POST only)
GET /v2/threat-modeling/reports/{id}/export/?format=Reports.ExportReports.Export: POST with {"format": ...} in the body; returns []byte
POST /v2/sbom/documents/SBOM.UploadSBOM.Generate: POST /v2/sbom/generate/ (/v2/sbom/documents/ is read only; generated SBOMs are stored as documents)

Kept: same method and path (37 calls)

Earlier method1.0.0
ThreatModeling.AnalyzeDiagram, AnalyzeDiagramWithDepthThreatModeling.AnalyzeDiagram(ctx, UploadFile, AnalyzeDiagramOptions)
ThreatModeling.GetDiagram, ListDiagrams, GetThreatsThreatModeling.Get, List, GetThreats
CodeReview.CreateScan(repositoryURL, branch)CodeReview.CreateScan(ctx, CreateCodeScanRequest): register the repository first with CreateRepository and pass its id
CodeReview.ListScans, GetScanunchanged names
Compliance.Scan(diagramID, framework)Compliance.Scan(ctx, diagramID, standards, includeRecommendations)
Compliance.ListFrameworks (GET /v2/compliances/frameworks/)Compliance.ListFrameworkRegistry. Compliance.ListFrameworks now lists the frameworks of one diagram
Remediation.List, Get, GenerateForPolicy, MarkStatus, Statsunchanged names; ids are strings
SBOM.List, GetSBOM.ListDocuments, GetDocument
MultiAgent.ExecuteWorkflow, AIAssistant, GenerateArchitectureunchanged names
Economics.GetDashboard, GetDiagramCostEconomics.Dashboard, DiagramCostAnalysis
RedTeam.GetMethodologies, GetSimulations, GenerateAttackPathsRedTeam.Methodologies, Simulations, GenerateAttackPaths
ML.AnalyzePatterns, GetModelPerformanceML.AnalyzePatterns, ModelPerformance
MAESTRO.Processunchanged
DigitalTwin.GetProviders, GetResources, MapComponent, SyncStatus, GetHealthDigitalTwin.Providers, Resources, MapComponent, SyncDiagramStatus, Health
Reports.List, Create, Get, Share, Emailunchanged names; report ids are int64

New in 1.0.0