Documentation
¶
Overview ¶
Package detectiveui provides native keyboard-driven Checks and Detective workspaces. All project state and execution are delegated to the current DataTug agent.
Index ¶
- type AIGenerate
- type AIPage
- type AIReview
- type AIService
- type CaseEventsService
- type HostedService
- type IncidentAction
- type IncidentLinks
- type IncidentResponse
- type IncidentService
- type KnowledgeAction
- type KnowledgeHandoff
- type KnowledgePage
- type KnowledgeProposal
- type KnowledgeResponse
- type KnowledgeService
- type KnowledgeTarget
- type Model
- type QueryExecutionService
- type SavedQueryResult
- type SavedQueryRun
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AIGenerate ¶
type AIReview ¶
type AIReview struct {
Type string
Draft *ai.ReviewedDraftRequest
Context *ai.ContextReviewRequest
}
type CaseEventsService ¶
type CaseEventsService interface {
CaseEvents(context.Context, string, int) (detective.CaseEventsPage, error)
}
HostedService adds server-authorized evidence and cross-store workflows to the shared Checks/Case service. Agent-only sessions expose these explicitly as unavailable until their corresponding agent routes exist.
type HostedService ¶
type HostedService interface {
CaseEventsService
IncidentService
KnowledgeService
QueryExecutionService
AIService
}
type IncidentAction ¶
type IncidentLinks ¶
type IncidentLinks struct {
CaseID string `json:"caseId"`
Incidents []incidents.IncidentView `json:"incidents"`
}
type IncidentResponse ¶
type IncidentService ¶
type IncidentService interface {
LinkedIncidents(context.Context, string) (IncidentLinks, error)
IncidentAction(context.Context, IncidentAction) (IncidentResponse, error)
}
type KnowledgeAction ¶
type KnowledgeAction struct {
Type, ProposalID, ReviewNote string
IfMatch int64
Proposal *KnowledgeProposal
Target *KnowledgeTarget
}
type KnowledgeHandoff ¶
type KnowledgeHandoff struct {
Kind string `json:"kind"`
Status string `json:"status"`
Target KnowledgeTarget `json:"target"`
ProposalID string `json:"proposalId"`
ProposalVersion int64 `json:"proposalVersion"`
CaseID string `json:"caseId"`
ClaimStatus string `json:"claimStatus"`
Statement string `json:"statement"`
EvidenceRefs []string `json:"evidenceRefs"`
FindingRefs []string `json:"findingRefs,omitempty"`
PreparedAt time.Time `json:"preparedAt"`
PreparedBy string `json:"preparedBy"`
Receipt string `json:"receipt"`
}
type KnowledgePage ¶
type KnowledgePage struct {
Proposals []KnowledgeProposal `json:"proposals"`
NextCursor string `json:"nextCursor,omitempty"`
HasMore bool `json:"hasMore"`
}
type KnowledgeProposal ¶
type KnowledgeProposal struct {
ID string `json:"id"`
CaseID string `json:"caseId"`
Kind string `json:"kind"`
Title string `json:"title"`
Statement string `json:"statement"`
EvidenceRefs []string `json:"evidenceRefs"`
FindingRefs []string `json:"findingRefs,omitempty"`
ClaimStatus string `json:"claimStatus"`
Status string `json:"status"`
Version int64 `json:"version"`
CreatedAt time.Time `json:"createdAt"`
CreatedBy string `json:"createdBy"`
ReviewedAt time.Time `json:"reviewedAt,omitempty"`
ReviewedBy string `json:"reviewedBy,omitempty"`
ReviewNote string `json:"reviewNote,omitempty"`
Handoffs []KnowledgeHandoff `json:"handoffs,omitempty"`
}
type KnowledgeResponse ¶
type KnowledgeResponse struct {
Proposal *KnowledgeProposal `json:"proposal,omitempty"`
Export *KnowledgeHandoff `json:"export,omitempty"`
Receipt string `json:"receipt"`
}
type KnowledgeService ¶
type KnowledgeService interface {
KnowledgeProposals(context.Context, string) (KnowledgePage, error)
KnowledgeAction(context.Context, KnowledgeAction) (KnowledgeResponse, error)
}
type KnowledgeTarget ¶
type QueryExecutionService ¶
type QueryExecutionService interface {
RunSavedQuery(context.Context, SavedQueryRun) (SavedQueryResult, error)
}
type SavedQueryResult ¶
type SavedQueryResult struct {
Result apicontract.Result `json:"result"`
QueryRevision string `json:"queryRevision"`
ResultFingerprint string `json:"resultFingerprint"`
Receipt string `json:"receipt"`
}
type SavedQueryRun ¶
type SavedQueryRun struct {
QueryID, Environment string
Inputs map[string]apicontract.TypedValueOrSet
}
Click to show internal directories.
Click to hide internal directories.