Documentation
¶
Overview ¶
Package contracts embeds the machine-checkable JSON Schemas so Go services and CI tests can validate produced artifacts against the canonical contract files instead of re-declaring the shapes in code (T08 阶段2:契约收敛, contracts 校验进 CI).
Index ¶
Constants ¶
This section is empty.
Variables ¶
var CandidateEnvelopeSchemaJSON []byte
CandidateEnvelopeSchemaJSON is contracts/candidate-envelope.schema.json (candidates.CandidateEnvelope 的 JSON 表达,client layer 候选卡面向、CI 校验; T12 阶段A:client layer 契约面补全)。
var FlowViewSpecSchemaJSON []byte
FlowViewSpecSchemaJSON is contracts/flow-view-spec.schema.json.
var IntentClassificationSchemaJSON []byte
IntentClassificationSchemaJSON is contracts/spines/intent-classification.schema.json.
var IntentEventSchemaJSON []byte
IntentEventSchemaJSON is contracts/spines/intent-event.schema.json.
var IntentInboxItemSchemaJSON []byte
IntentInboxItemSchemaJSON is contracts/spines/intent-inbox-item.schema.json.
var IntentReceiptSchemaJSON []byte
IntentReceiptSchemaJSON is contracts/spines/intent-receipt.schema.json.
var IntentToCandidateResultSchemaJSON []byte
IntentToCandidateResultSchemaJSON is contracts/spines/intent-to-candidate-result.schema.json.
var ReceiptEnvelopeSchemaJSON []byte
ReceiptEnvelopeSchemaJSON is contracts/receipt-envelope.schema.json (receipts.ReceiptEnvelope 的 JSON 表达,client layer 回执卡面向、CI 校验; T12 阶段A:client layer 契约面补全)。
var SceneFlowSpecSchemaJSON []byte
SceneFlowSpecSchemaJSON is contracts/scene-flow-spec.schema.json.
var ScenePackSpecSchemaJSON []byte
ScenePackSpecSchemaJSON is contracts/scene-pack-spec.schema.json.
var TransactionObjectProjectionSchemaJSON []byte
TransactionObjectProjectionSchemaJSON is contracts/transaction-object-projection.schema.json (事务对象 05 BusinessObject 的前端只读投影 DTO 契约,client layer 渲染事务对象卡的单一来源; T12 阶段A:client layer 契约面补全)。
var VisualUnitSpecSchemaJSON []byte
VisualUnitSpecSchemaJSON is contracts/visual-unit-spec.schema.json (前端 7 类主权视觉单元封顶规格契约,client layer 多端单一来源; T12 阶段A:client layer 契约收敛起步)。
Functions ¶
This section is empty.
Types ¶
type KnowledgeMountReadModel ¶
type KnowledgeMountReadModel struct {
MountRef string `json:"mount_ref"`
OwnerID string `json:"owner_id"`
PackRef string `json:"pack_ref"`
PackVersionRef string `json:"pack_version_ref"`
SceneRef string `json:"scene_ref,omitempty"`
KnowledgeScopeRef string `json:"knowledge_scope_ref"`
DisplayName string `json:"display_name"`
Status KnowledgeMountStatus `json:"status"`
KnowledgeKinds []string `json:"knowledge_kinds"`
KnowledgeRefs []string `json:"knowledge_refs,omitempty"`
EnabledReceiptRef string `json:"enabled_receipt_ref,omitempty"`
DisabledReceiptRef string `json:"disabled_receipt_ref,omitempty"`
LastReceiptRef string `json:"last_receipt_ref,omitempty"`
BlockedReason string `json:"blocked_reason,omitempty"`
}
type KnowledgeMountStatus ¶
type KnowledgeMountStatus string
const ( KnowledgeMountPending KnowledgeMountStatus = "pending" KnowledgeMountActive KnowledgeMountStatus = "active" KnowledgeMountDisabled KnowledgeMountStatus = "disabled" KnowledgeMountBlocked KnowledgeMountStatus = "blocked" )
type KnowledgeScopeDeclaration ¶
type KnowledgeScopeDeclaration struct {
ScopeRef string `json:"scope_ref"`
DisplayName string `json:"display_name"`
Description string `json:"description,omitempty"`
SceneRef string `json:"scene_ref,omitempty"`
MountPolicy string `json:"mount_policy"`
KnowledgeKinds []string `json:"knowledge_kinds"`
Tags []string `json:"tags,omitempty"`
Required bool `json:"required,omitempty"`
}