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:
- 37 keep their method and path (some methods are renamed; see the last table).
- 23 are remapped: 19 whose route no longer exists, and 4 whose route exists with a different method or path.
- 8 are dropped because the API has no endpoint for them.
Client and transport
NewClient(apiKey)andNewClientWithOptions(apiKey, baseURL, timeout)are replaced byNew(opts ...Option)withWithAPIKey,WithAgentKey,WithBaseURLandWithTimeout.- Without
WithAPIKey, the client readsARIBOT_API_KEY, thenARIBOT_TOKEN. A JWT (exactly two dots) is sent asAuthorization: Bearer, an API key asX-API-Key. - The base URL is now the host only, default
https://aribot.ayurak.com(the earlier default washttps://api.aribot.ayurak.com/aribot-api). Plain http is refused except for localhost, 127.0.0.1 and ::1. A base URL with credentials, a path, a query or a fragment is refused. - The public
APIKey,BaseURLandHTTPfields are gone; the credential is never exposed. UseBaseURL(),CredentialKind()andCredentialSource(). - Every method takes a
context.Contextfirst. - Redirects are never followed. TLS is always verified;
ARIBOT_CA_BUNDLEadds a private CA. - GET and HEAD are retried on 429, 502, 503, 504 and network errors (at most 3 attempts,
Retry-Aftercapped at 30 s). Writes are sent once, unless the call hasWithIdempotencyKey. - User-Agent is
aribot-sdk-go/1.0.0. - The
github.com/google/uuiddependency is gone: the module uses the standard library only. The minimum Go version is 1.22. - Uploads take an
UploadFile{Name, Content io.Reader}where the earlier client took a file path.
Errors
*Error{Message, StatusCode}is replaced by*APIError{StatusCode, Code, Message, Payload, RetryAfter, Method, Path}.- Check the kind with
errors.Is:ErrValidation(400, 422),ErrAuthentication(401),ErrLicenseRequired(402),ErrPermissionDenied(403),ErrNotFound(404),ErrConflict(409),ErrRateLimited(429),ErrServer(5xx), plusErrRedirectRefusedandErrConfig. - A failure with no response is a
*NetworkError, which unwraps to its cause.
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 call | Earlier method | 1.0.0 |
|---|---|---|
GET /v1/tm/dashboard/ | ThreatModeling.GetDashboard | ThreatModeling.Dashboard: GET /v1/tm/dashboard/posture/ |
POST /v2/ai/analyze/ | AI.Analyze | MultiAgent.Analyze: POST /v2/threat-modeling/ai-agents/analyze/ |
GET /v2/ai/usage/ | AI.GetUsage | Developer.ListUsage: GET /v1/developer/usage/ |
GET /v2/api-keys/ | APIKeys.List | Developer.ListAPIKeys: GET /v1/developer/api-keys/ |
POST /v2/api-keys/{id}/revoke/ | APIKeys.Revoke | Developer.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.GetFindings | Cloud.ListFindings: GET /v2/compliances/findings/ |
GET /v2/cloud-security/posture/ | CloudSecurity.GetPosture | Cloud.Dashboard: GET /v2/compliances/dashboard/cloud-stats/; for the overall posture, ThreatModeling.Dashboard |
POST /v2/cloud-security/scan/ | CloudSecurity.ScanAWS, ScanAzure, ScanGCP | Cloud.InitiateScan: POST /v2/scans/initiate/, or Connector.CreateScan for one connected account |
GET /v2/code-review/scans/{id}/findings/ | CodeReview.GetFindings | CodeReview.Traceability: GET /v2/code-review/scans/{id}/traceability/ |
POST /v2/code-review/scans/{id}/findings/{fid}/remediate/ | CodeReview.RemediateFinding | CodeReview.GenerateThreatFix: POST /v2/code-review/scans/{id}/threats/{tid}/generate-fix/ |
GET /v2/compliances/diagram-compliance/{id}/ | Compliance.GetStatus | Compliance.ListScans: GET /v2/compliances/diagram-compliance/{id}/scans/ |
POST /v2/compliances/diagram-compliance/{id}/report/ | Compliance.GenerateReport | Compliance.GetReport: GET /v1/compliance-reporting/diagrams/{id}/frameworks/{fw}/report/ |
GET /v2/dashboard/overview/ | Dashboard.GetOverview | Dashboard.Overview: GET /v2/dashboard/posture/ |
GET /v2/dashboard/recent/ | Dashboard.GetRecentActivity | Dashboard.RecentActivity: GET /v1/tm/dashboard/recent-activity/ |
GET /v2/dashboard/risk/ | Dashboard.GetRiskSummary | Dashboard.RiskSummary: GET /v1/tm/dashboard/risk-summary/ |
POST /v2/pipeline/scan/ | Pipeline.RunSAST, RunSCA, RunSecretDetection, RunIaCScan | Pipeline.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.GetScanStatus | Pipeline.GetScan: GET /v1/pipeline/scans/{id}/ |
GET /v2/threat-modeling/components/{id}/cost-intelligence/ | Economics.GetComponentCost | Economics.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.GenerateThreats | ThreatModeling.AnalyzeAI: POST /v2/threat-modeling/diagrams/{id}/analyze-ai/ |
Dropped: no endpoint (8 calls)
| Earlier call | Earlier method | Note |
|---|---|---|
POST /v2/ai/configure/ | AI.Configure | no endpoint |
GET /v2/ai/models/ | AI.ListModels | no endpoint |
GET /v2/ai/quota/ | AI.GetQuota | no endpoint; for request counts see Client.Usage |
POST /v2/api-keys/ | APIKeys.Create | create API keys in Aribot under Company Admin > Developer & API |
GET /v2/compliances/frameworks/{fw}/requirements/ | Compliance.GetRequirements | no endpoint; Compliance.ListControls(ctx, standardID, ...) lists a standard's controls |
GET /v2/sbom/documents/{id}/vulnerabilities/ | SBOM.GetVulnerabilities | no per-document endpoint |
POST /v2/threat-modeling/diagrams/{id}/enrich-threats/ | MAESTRO.EnrichThreats | no endpoint |
POST /v2/threat-modeling/economics/calculate-roi/ | Economics.CalculateROI | no 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 call | Earlier method | 1.0.0 |
|---|---|---|
GET /v2/threat-modeling/diagrams/{id}/ml-predictions/ | ML.GetPredictions | ML.Predict: POST (the route accepts POST only; numeric diagram id) |
GET /v2/threat-modeling/diagrams/{id}/risk-scores/ | MAESTRO.GetRiskScores | MAESTRO.CalculateRiskScores: POST (the route accepts POST only) |
GET /v2/threat-modeling/reports/{id}/export/?format= | Reports.Export | Reports.Export: POST with {"format": ...} in the body; returns []byte |
POST /v2/sbom/documents/ | SBOM.Upload | SBOM.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 method | 1.0.0 |
|---|---|
ThreatModeling.AnalyzeDiagram, AnalyzeDiagramWithDepth | ThreatModeling.AnalyzeDiagram(ctx, UploadFile, AnalyzeDiagramOptions) |
ThreatModeling.GetDiagram, ListDiagrams, GetThreats | ThreatModeling.Get, List, GetThreats |
CodeReview.CreateScan(repositoryURL, branch) | CodeReview.CreateScan(ctx, CreateCodeScanRequest): register the repository first with CreateRepository and pass its id |
CodeReview.ListScans, GetScan | unchanged 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, Stats | unchanged names; ids are strings |
SBOM.List, Get | SBOM.ListDocuments, GetDocument |
MultiAgent.ExecuteWorkflow, AIAssistant, GenerateArchitecture | unchanged names |
Economics.GetDashboard, GetDiagramCost | Economics.Dashboard, DiagramCostAnalysis |
RedTeam.GetMethodologies, GetSimulations, GenerateAttackPaths | RedTeam.Methodologies, Simulations, GenerateAttackPaths |
ML.AnalyzePatterns, GetModelPerformance | ML.AnalyzePatterns, ModelPerformance |
MAESTRO.Process | unchanged |
DigitalTwin.GetProviders, GetResources, MapComponent, SyncStatus, GetHealth | DigitalTwin.Providers, Resources, MapComponent, SyncDiagramStatus, Health |
Reports.List, Create, Get, Share, Email | unchanged names; report ids are int64 |
New in 1.0.0
Gates:Decide,FeedbackFile,Fix,GateRuns,ListGateConfigs,ListRules,ActiveRuleSet.Gateway.Decide: the agent decision API, authenticated with the agent key (WithAgentKeyorARIBOT_AGENT_KEY), sent once and never retried.Connector:Health,Status,CreateCodeReview,GetCodeReview,CreateThreatModel,Insights,Workbench,CreateScan,ScanJob,GetScan.Developer:ListAPIKeys,RevokeAPIKey,ListUsage,UsageStats,RateLimitUsage.Client:Health,Me,Usage.- More calls on the existing areas, matching the Aribot Python SDK 3.0.0: code review repositories, uploads, threat verification; pipeline projects, results, vulnerabilities, gate results, SBOMs and security gates (
UpdateSecurityGate:PATCH /v1/pipeline/security-gates/{id}/); compliance standards, controls and dashboards; remediation plans; cloud accounts and scan results; red team intelligence and attack paths; digital twin component status, sync and discovery; report status, scheduling and diagram exports; MAESTRO priorities; ML training; marketplace templates.