@lssm/lib.companyos-spec 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +308 -0
- package/dist/browser/companyos-spec.feature.js +1 -0
- package/dist/browser/docs/company-intelligence.docblock.js +1 -0
- package/dist/browser/docs/companyos-enterprise.docblock.js +1 -0
- package/dist/browser/docs/companyos-operating-graph.docblock.js +1 -0
- package/dist/browser/docs/companyos-v0.docblock.js +1 -0
- package/dist/browser/docs/companyos-v1-operating-loop.docblock.js +1 -0
- package/dist/browser/docs/index.js +1 -0
- package/dist/browser/fixtures/company-brain-edition.js +1 -0
- package/dist/browser/fixtures/company-intelligence/base.js +1 -0
- package/dist/browser/fixtures/company-intelligence/grounding-result.js +1 -0
- package/dist/browser/fixtures/company-intelligence/grounding.js +1 -0
- package/dist/browser/fixtures/company-intelligence/index.js +1 -0
- package/dist/browser/fixtures/company-intelligence/knowledge.js +1 -0
- package/dist/browser/fixtures/company-intelligence/learning-governance-fixture-data.js +1 -0
- package/dist/browser/fixtures/company-intelligence/learning-governance-payloads.js +1 -0
- package/dist/browser/fixtures/company-intelligence/learning-governance.acceptance-test-support.js +1 -0
- package/dist/browser/fixtures/company-intelligence/learning-governance.invariant-test-support.js +1 -0
- package/dist/browser/fixtures/company-intelligence/learning-governance.js +1 -0
- package/dist/browser/fixtures/company-intelligence/learning-governance.rejection-test-support.js +1 -0
- package/dist/browser/fixtures/company-intelligence/learning.js +1 -0
- package/dist/browser/fixtures/company-intelligence/lineage.js +1 -0
- package/dist/browser/fixtures/company-intelligence/negative.js +1 -0
- package/dist/browser/fixtures/design-partner-readiness.js +1 -0
- package/dist/browser/fixtures/enterprise-portfolio.js +1 -0
- package/dist/browser/fixtures/enterprise-portfolio.parts.js +1 -0
- package/dist/browser/fixtures/gtm-learning-loop-neutral.parts.js +1 -0
- package/dist/browser/fixtures/index.js +1 -0
- package/dist/browser/fixtures/layer0-action-packet.js +1 -0
- package/dist/browser/fixtures/learning-loop.js +1 -0
- package/dist/browser/fixtures/provider-binding.js +1 -0
- package/dist/browser/fixtures/rich-outcome-observations.js +1 -0
- package/dist/browser/fixtures/temporal-assertions.js +1 -0
- package/dist/browser/fixtures/temporal-knowledge.js +1 -0
- package/dist/browser/fixtures/tenant-governance-envelope.js +1 -0
- package/dist/browser/fixtures/v0-product-engineering-loop.js +1 -0
- package/dist/browser/fixtures/v0-product-engineering-loop.parts.js +1 -0
- package/dist/browser/fixtures/v0-source.parts.js +1 -0
- package/dist/browser/fixtures/v0-work-graph.parts.js +1 -0
- package/dist/browser/fixtures/v1-agent-runtime.parts.js +1 -0
- package/dist/browser/fixtures/v1-execution.parts.js +1 -0
- package/dist/browser/fixtures/v1-operating-loop.js +1 -0
- package/dist/browser/fixtures/v1-operating-loop.parts.js +1 -0
- package/dist/browser/fixtures/v1-policy-runtime.js +1 -0
- package/dist/browser/fixtures/v2-messaging-originated-action.js +1 -0
- package/dist/browser/fixtures/v2-operating-graph.js +1 -0
- package/dist/browser/fixtures/v2-voice-originated-action.js +1 -0
- package/dist/browser/fixtures/v2-voiceops-support-to-product.js +1 -0
- package/dist/browser/index.js +28 -0
- package/dist/browser/types/action-origin.js +27 -0
- package/dist/browser/types/agent-interfaces.js +1 -0
- package/dist/browser/types/agent-org.js +1 -0
- package/dist/browser/types/agentic-contracts.js +1 -0
- package/dist/browser/types/authority.js +1 -0
- package/dist/browser/types/autonomy.js +1 -0
- package/dist/browser/types/brain.js +1 -0
- package/dist/browser/types/cadence.js +1 -0
- package/dist/browser/types/common.js +1 -0
- package/dist/browser/types/company-brain-edition.js +1 -0
- package/dist/browser/types/company-intelligence/brain.js +1 -0
- package/dist/browser/types/company-intelligence/common.js +1 -0
- package/dist/browser/types/company-intelligence/compatibility.js +1 -0
- package/dist/browser/types/company-intelligence/extraction.js +1 -0
- package/dist/browser/types/company-intelligence/grounding-result.js +1 -0
- package/dist/browser/types/company-intelligence/grounding.js +1 -0
- package/dist/browser/types/company-intelligence/index.js +1 -0
- package/dist/browser/types/company-intelligence/knowledge.js +1 -0
- package/dist/browser/types/company-intelligence/learning-disposition.js +1 -0
- package/dist/browser/types/company-intelligence/learning-governance-codes.js +1 -0
- package/dist/browser/types/company-intelligence/learning-governance.js +1 -0
- package/dist/browser/types/company-intelligence/learning.js +1 -0
- package/dist/browser/types/company-intelligence/lineage.js +1 -0
- package/dist/browser/types/company-metrics-governance.js +1 -0
- package/dist/browser/types/company-metrics.js +1 -0
- package/dist/browser/types/company-purpose.js +1 -0
- package/dist/browser/types/company.js +1 -0
- package/dist/browser/types/connectors.js +1 -0
- package/dist/browser/types/control-plane-projections.js +1 -0
- package/dist/browser/types/design-partner-readiness.js +1 -0
- package/dist/browser/types/dynamic-surfaces.js +1 -0
- package/dist/browser/types/enterprise-common.js +1 -0
- package/dist/browser/types/enterprise-governance.js +1 -0
- package/dist/browser/types/enterprise-portfolio.js +1 -0
- package/dist/browser/types/enterprise-topology.js +1 -0
- package/dist/browser/types/enterprise.js +1 -0
- package/dist/browser/types/enums.js +1 -0
- package/dist/browser/types/evidence-receipt-material.js +1 -0
- package/dist/browser/types/execution.js +1 -0
- package/dist/browser/types/governed-action-state.js +1 -0
- package/dist/browser/types/governed-learning-loop.js +1 -0
- package/dist/browser/types/graph-permissions.js +1 -0
- package/dist/browser/types/graph-realtime.js +1 -0
- package/dist/browser/types/identity-resolution.js +1 -0
- package/dist/browser/types/index.js +27 -0
- package/dist/browser/types/layer0-action-packet.js +1 -0
- package/dist/browser/types/layer0-adapter-contract.js +1 -0
- package/dist/browser/types/layer0-core.js +1 -0
- package/dist/browser/types/layer0-routing-rule.js +1 -0
- package/dist/browser/types/layer0-unknown.js +1 -0
- package/dist/browser/types/learning-loop.js +1 -0
- package/dist/browser/types/managed-companyos.js +1 -0
- package/dist/browser/types/memory.js +1 -0
- package/dist/browser/types/objectives.js +1 -0
- package/dist/browser/types/operating-cockpit.js +1 -0
- package/dist/browser/types/operating-graph-contract.js +1 -0
- package/dist/browser/types/operating-graph.js +1 -0
- package/dist/browser/types/outcome-observation.js +1 -0
- package/dist/browser/types/outcome-value.js +0 -0
- package/dist/browser/types/policy-runtime.js +1 -0
- package/dist/browser/types/provider-binding.js +1 -0
- package/dist/browser/types/runbooks.js +1 -0
- package/dist/browser/types/substrate-refs.js +1 -0
- package/dist/browser/types/surfaces.js +1 -0
- package/dist/browser/types/temporal-assertion.js +1 -0
- package/dist/browser/types/temporal-knowledge.js +1 -0
- package/dist/browser/types/temporal-store.js +1 -0
- package/dist/browser/types/tenant-governance-envelope.js +1 -0
- package/dist/browser/types/v0.js +1 -0
- package/dist/browser/types/v1.js +1 -0
- package/dist/browser/types/work.js +1 -0
- package/dist/browser/validation/company-brain-edition.js +1 -0
- package/dist/browser/validation/company-intelligence-grounding.js +2 -0
- package/dist/browser/validation/company-intelligence-learning-disposition-fingerprints.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-disposition.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-egress.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-fingerprints.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-fixture-bindings.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-fixture-fingerprints.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-gates.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-issues.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-material-parts.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-material.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-phases.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-record.js +1 -0
- package/dist/browser/validation/company-intelligence-learning-rules.js +1 -0
- package/dist/browser/validation/company-intelligence-learning.js +1 -0
- package/dist/browser/validation/company-intelligence-record-semantics.js +1 -0
- package/dist/browser/validation/company-intelligence-semantics.js +1 -0
- package/dist/browser/validation/company-intelligence.js +1 -0
- package/dist/browser/validation/enterprise-authority.js +1 -0
- package/dist/browser/validation/enterprise-governance-references.js +1 -0
- package/dist/browser/validation/enterprise-graph.js +1 -0
- package/dist/browser/validation/enterprise-integrity.js +1 -0
- package/dist/browser/validation/enterprise-references.js +1 -0
- package/dist/browser/validation/enterprise-secrets.js +1 -0
- package/dist/browser/validation/enterprise-semantics.js +1 -0
- package/dist/browser/validation/enterprise.js +1 -0
- package/dist/browser/validation/index.js +28 -0
- package/dist/browser/validation/learning-loop.js +1 -0
- package/dist/browser/validation/provider-binding.js +1 -0
- package/dist/browser/validation/semantic-operating-graph.js +27 -0
- package/dist/browser/validation/semantic-v1-agents.js +1 -0
- package/dist/browser/validation/semantic-v1-cadence.js +1 -0
- package/dist/browser/validation/semantic-v1-execution-refs.js +1 -0
- package/dist/browser/validation/semantic-v1-execution-results.js +1 -0
- package/dist/browser/validation/semantic-v1-execution-shared.js +1 -0
- package/dist/browser/validation/semantic-v1-execution.js +1 -0
- package/dist/browser/validation/semantic-v1-policy-runtime.js +1 -0
- package/dist/browser/validation/semantic-v1-refs.js +1 -0
- package/dist/browser/validation/semantic-v1-shared.js +1 -0
- package/dist/browser/validation/semantic-v1.js +1 -0
- package/dist/browser/validation/semantic.js +1 -0
- package/dist/browser/validation/temporal-assertion.js +1 -0
- package/dist/browser/validation/temporal-knowledge.js +1 -0
- package/dist/browser/validation/tenant-governance-envelope.js +1 -0
- package/dist/company-intelligence.public-surface.test.d.ts +1 -0
- package/dist/company-metrics.public-surface.test.d.ts +1 -0
- package/dist/companyos-spec.feature.d.ts +1 -0
- package/dist/companyos-spec.feature.js +2 -0
- package/dist/companyos-spec.public-surface.test.d.ts +1 -0
- package/dist/docs/company-intelligence.docblock.d.ts +9 -0
- package/dist/docs/company-intelligence.docblock.js +2 -0
- package/dist/docs/companyos-enterprise.docblock.d.ts +11 -0
- package/dist/docs/companyos-enterprise.docblock.js +2 -0
- package/dist/docs/companyos-operating-graph.docblock.d.ts +6 -0
- package/dist/docs/companyos-operating-graph.docblock.js +2 -0
- package/dist/docs/companyos-v0.docblock.d.ts +13 -0
- package/dist/docs/companyos-v0.docblock.js +2 -0
- package/dist/docs/companyos-v1-operating-loop.docblock.d.ts +11 -0
- package/dist/docs/companyos-v1-operating-loop.docblock.js +2 -0
- package/dist/docs/index.d.ts +5 -0
- package/dist/docs/index.js +2 -0
- package/dist/enterprise.public-surface.test.d.ts +1 -0
- package/dist/fixtures/company-brain-edition.d.ts +2 -0
- package/dist/fixtures/company-brain-edition.js +2 -0
- package/dist/fixtures/company-intelligence/base.d.ts +20 -0
- package/dist/fixtures/company-intelligence/base.js +2 -0
- package/dist/fixtures/company-intelligence/company-intelligence.test.d.ts +1 -0
- package/dist/fixtures/company-intelligence/grounding-result.d.ts +8 -0
- package/dist/fixtures/company-intelligence/grounding-result.js +2 -0
- package/dist/fixtures/company-intelligence/grounding.d.ts +151 -0
- package/dist/fixtures/company-intelligence/grounding.js +2 -0
- package/dist/fixtures/company-intelligence/index.d.ts +10 -0
- package/dist/fixtures/company-intelligence/index.js +2 -0
- package/dist/fixtures/company-intelligence/knowledge.d.ts +422 -0
- package/dist/fixtures/company-intelligence/knowledge.js +2 -0
- package/dist/fixtures/company-intelligence/learning-governance-fixture-data.d.ts +35 -0
- package/dist/fixtures/company-intelligence/learning-governance-fixture-data.js +2 -0
- package/dist/fixtures/company-intelligence/learning-governance-payloads.d.ts +172 -0
- package/dist/fixtures/company-intelligence/learning-governance-payloads.js +2 -0
- package/dist/fixtures/company-intelligence/learning-governance.acceptance-test-support.d.ts +7 -0
- package/dist/fixtures/company-intelligence/learning-governance.acceptance-test-support.js +2 -0
- package/dist/fixtures/company-intelligence/learning-governance.d.ts +2 -0
- package/dist/fixtures/company-intelligence/learning-governance.disposition.test.d.ts +1 -0
- package/dist/fixtures/company-intelligence/learning-governance.invariant-test-support.d.ts +7 -0
- package/dist/fixtures/company-intelligence/learning-governance.invariant-test-support.js +2 -0
- package/dist/fixtures/company-intelligence/learning-governance.js +2 -0
- package/dist/fixtures/company-intelligence/learning-governance.rejection-test-support.d.ts +7 -0
- package/dist/fixtures/company-intelligence/learning-governance.rejection-test-support.js +2 -0
- package/dist/fixtures/company-intelligence/learning-governance.test-support.d.ts +7 -0
- package/dist/fixtures/company-intelligence/learning.d.ts +370 -0
- package/dist/fixtures/company-intelligence/learning.js +2 -0
- package/dist/fixtures/company-intelligence/lineage.d.ts +289 -0
- package/dist/fixtures/company-intelligence/lineage.js +2 -0
- package/dist/fixtures/company-intelligence/negative.d.ts +2 -0
- package/dist/fixtures/company-intelligence/negative.js +2 -0
- package/dist/fixtures/design-partner-readiness.d.ts +324 -0
- package/dist/fixtures/design-partner-readiness.js +2 -0
- package/dist/fixtures/enterprise-portfolio.d.ts +2 -0
- package/dist/fixtures/enterprise-portfolio.js +2 -0
- package/dist/fixtures/enterprise-portfolio.parts.d.ts +18 -0
- package/dist/fixtures/enterprise-portfolio.parts.js +2 -0
- package/dist/fixtures/gtm-learning-loop-neutral.parts.d.ts +58 -0
- package/dist/fixtures/gtm-learning-loop-neutral.parts.js +2 -0
- package/dist/fixtures/index.d.ts +18 -0
- package/dist/fixtures/index.js +2 -0
- package/dist/fixtures/layer0-action-packet.d.ts +396 -0
- package/dist/fixtures/layer0-action-packet.js +2 -0
- package/dist/fixtures/layer0-action-packet.test.d.ts +1 -0
- package/dist/fixtures/learning-loop.d.ts +1 -0
- package/dist/fixtures/learning-loop.js +2 -0
- package/dist/fixtures/provider-binding.d.ts +52 -0
- package/dist/fixtures/provider-binding.js +2 -0
- package/dist/fixtures/rich-outcome-observations.d.ts +126 -0
- package/dist/fixtures/rich-outcome-observations.js +2 -0
- package/dist/fixtures/temporal-assertions.d.ts +2 -0
- package/dist/fixtures/temporal-assertions.js +2 -0
- package/dist/fixtures/temporal-knowledge.d.ts +1 -0
- package/dist/fixtures/temporal-knowledge.js +2 -0
- package/dist/fixtures/tenant-governance-envelope.d.ts +135 -0
- package/dist/fixtures/tenant-governance-envelope.js +2 -0
- package/dist/fixtures/v0-product-engineering-loop.d.ts +262 -0
- package/dist/fixtures/v0-product-engineering-loop.js +2 -0
- package/dist/fixtures/v0-product-engineering-loop.parts.d.ts +205 -0
- package/dist/fixtures/v0-product-engineering-loop.parts.js +2 -0
- package/dist/fixtures/v0-source.parts.d.ts +10 -0
- package/dist/fixtures/v0-source.parts.js +2 -0
- package/dist/fixtures/v0-work-graph.parts.d.ts +57 -0
- package/dist/fixtures/v0-work-graph.parts.js +2 -0
- package/dist/fixtures/v1-agent-runtime.parts.d.ts +88 -0
- package/dist/fixtures/v1-agent-runtime.parts.js +2 -0
- package/dist/fixtures/v1-execution.parts.d.ts +233 -0
- package/dist/fixtures/v1-execution.parts.js +2 -0
- package/dist/fixtures/v1-operating-loop.d.ts +726 -0
- package/dist/fixtures/v1-operating-loop.js +2 -0
- package/dist/fixtures/v1-operating-loop.parts.d.ts +155 -0
- package/dist/fixtures/v1-operating-loop.parts.js +2 -0
- package/dist/fixtures/v1-policy-runtime.d.ts +94 -0
- package/dist/fixtures/v1-policy-runtime.js +2 -0
- package/dist/fixtures/v2-messaging-originated-action.d.ts +18 -0
- package/dist/fixtures/v2-messaging-originated-action.js +2 -0
- package/dist/fixtures/v2-operating-graph.d.ts +292 -0
- package/dist/fixtures/v2-operating-graph.js +2 -0
- package/dist/fixtures/v2-voice-originated-action.d.ts +22 -0
- package/dist/fixtures/v2-voice-originated-action.js +2 -0
- package/dist/fixtures/v2-voiceops-support-to-product.d.ts +160 -0
- package/dist/fixtures/v2-voiceops-support-to-product.js +2 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +29 -0
- package/dist/node/companyos-spec.feature.js +1 -0
- package/dist/node/docs/company-intelligence.docblock.js +1 -0
- package/dist/node/docs/companyos-enterprise.docblock.js +1 -0
- package/dist/node/docs/companyos-operating-graph.docblock.js +1 -0
- package/dist/node/docs/companyos-v0.docblock.js +1 -0
- package/dist/node/docs/companyos-v1-operating-loop.docblock.js +1 -0
- package/dist/node/docs/index.js +1 -0
- package/dist/node/fixtures/company-brain-edition.js +1 -0
- package/dist/node/fixtures/company-intelligence/base.js +1 -0
- package/dist/node/fixtures/company-intelligence/grounding-result.js +1 -0
- package/dist/node/fixtures/company-intelligence/grounding.js +1 -0
- package/dist/node/fixtures/company-intelligence/index.js +1 -0
- package/dist/node/fixtures/company-intelligence/knowledge.js +1 -0
- package/dist/node/fixtures/company-intelligence/learning-governance-fixture-data.js +1 -0
- package/dist/node/fixtures/company-intelligence/learning-governance-payloads.js +1 -0
- package/dist/node/fixtures/company-intelligence/learning-governance.acceptance-test-support.js +1 -0
- package/dist/node/fixtures/company-intelligence/learning-governance.invariant-test-support.js +1 -0
- package/dist/node/fixtures/company-intelligence/learning-governance.js +1 -0
- package/dist/node/fixtures/company-intelligence/learning-governance.rejection-test-support.js +1 -0
- package/dist/node/fixtures/company-intelligence/learning.js +1 -0
- package/dist/node/fixtures/company-intelligence/lineage.js +1 -0
- package/dist/node/fixtures/company-intelligence/negative.js +1 -0
- package/dist/node/fixtures/design-partner-readiness.js +1 -0
- package/dist/node/fixtures/enterprise-portfolio.js +1 -0
- package/dist/node/fixtures/enterprise-portfolio.parts.js +1 -0
- package/dist/node/fixtures/gtm-learning-loop-neutral.parts.js +1 -0
- package/dist/node/fixtures/index.js +1 -0
- package/dist/node/fixtures/layer0-action-packet.js +1 -0
- package/dist/node/fixtures/learning-loop.js +1 -0
- package/dist/node/fixtures/provider-binding.js +1 -0
- package/dist/node/fixtures/rich-outcome-observations.js +1 -0
- package/dist/node/fixtures/temporal-assertions.js +1 -0
- package/dist/node/fixtures/temporal-knowledge.js +1 -0
- package/dist/node/fixtures/tenant-governance-envelope.js +1 -0
- package/dist/node/fixtures/v0-product-engineering-loop.js +1 -0
- package/dist/node/fixtures/v0-product-engineering-loop.parts.js +1 -0
- package/dist/node/fixtures/v0-source.parts.js +1 -0
- package/dist/node/fixtures/v0-work-graph.parts.js +1 -0
- package/dist/node/fixtures/v1-agent-runtime.parts.js +1 -0
- package/dist/node/fixtures/v1-execution.parts.js +1 -0
- package/dist/node/fixtures/v1-operating-loop.js +1 -0
- package/dist/node/fixtures/v1-operating-loop.parts.js +1 -0
- package/dist/node/fixtures/v1-policy-runtime.js +1 -0
- package/dist/node/fixtures/v2-messaging-originated-action.js +1 -0
- package/dist/node/fixtures/v2-operating-graph.js +1 -0
- package/dist/node/fixtures/v2-voice-originated-action.js +1 -0
- package/dist/node/fixtures/v2-voiceops-support-to-product.js +1 -0
- package/dist/node/index.js +28 -0
- package/dist/node/types/action-origin.js +27 -0
- package/dist/node/types/agent-interfaces.js +1 -0
- package/dist/node/types/agent-org.js +1 -0
- package/dist/node/types/agentic-contracts.js +1 -0
- package/dist/node/types/authority.js +1 -0
- package/dist/node/types/autonomy.js +1 -0
- package/dist/node/types/brain.js +1 -0
- package/dist/node/types/cadence.js +1 -0
- package/dist/node/types/common.js +1 -0
- package/dist/node/types/company-brain-edition.js +1 -0
- package/dist/node/types/company-intelligence/brain.js +1 -0
- package/dist/node/types/company-intelligence/common.js +1 -0
- package/dist/node/types/company-intelligence/compatibility.js +1 -0
- package/dist/node/types/company-intelligence/extraction.js +1 -0
- package/dist/node/types/company-intelligence/grounding-result.js +1 -0
- package/dist/node/types/company-intelligence/grounding.js +1 -0
- package/dist/node/types/company-intelligence/index.js +1 -0
- package/dist/node/types/company-intelligence/knowledge.js +1 -0
- package/dist/node/types/company-intelligence/learning-disposition.js +1 -0
- package/dist/node/types/company-intelligence/learning-governance-codes.js +1 -0
- package/dist/node/types/company-intelligence/learning-governance.js +1 -0
- package/dist/node/types/company-intelligence/learning.js +1 -0
- package/dist/node/types/company-intelligence/lineage.js +1 -0
- package/dist/node/types/company-metrics-governance.js +1 -0
- package/dist/node/types/company-metrics.js +1 -0
- package/dist/node/types/company-purpose.js +1 -0
- package/dist/node/types/company.js +1 -0
- package/dist/node/types/connectors.js +1 -0
- package/dist/node/types/control-plane-projections.js +1 -0
- package/dist/node/types/design-partner-readiness.js +1 -0
- package/dist/node/types/dynamic-surfaces.js +1 -0
- package/dist/node/types/enterprise-common.js +1 -0
- package/dist/node/types/enterprise-governance.js +1 -0
- package/dist/node/types/enterprise-portfolio.js +1 -0
- package/dist/node/types/enterprise-topology.js +1 -0
- package/dist/node/types/enterprise.js +1 -0
- package/dist/node/types/enums.js +1 -0
- package/dist/node/types/evidence-receipt-material.js +1 -0
- package/dist/node/types/execution.js +1 -0
- package/dist/node/types/governed-action-state.js +1 -0
- package/dist/node/types/governed-learning-loop.js +1 -0
- package/dist/node/types/graph-permissions.js +1 -0
- package/dist/node/types/graph-realtime.js +1 -0
- package/dist/node/types/identity-resolution.js +1 -0
- package/dist/node/types/index.js +27 -0
- package/dist/node/types/layer0-action-packet.js +1 -0
- package/dist/node/types/layer0-adapter-contract.js +1 -0
- package/dist/node/types/layer0-core.js +1 -0
- package/dist/node/types/layer0-routing-rule.js +1 -0
- package/dist/node/types/layer0-unknown.js +1 -0
- package/dist/node/types/learning-loop.js +1 -0
- package/dist/node/types/managed-companyos.js +1 -0
- package/dist/node/types/memory.js +1 -0
- package/dist/node/types/objectives.js +1 -0
- package/dist/node/types/operating-cockpit.js +1 -0
- package/dist/node/types/operating-graph-contract.js +1 -0
- package/dist/node/types/operating-graph.js +1 -0
- package/dist/node/types/outcome-observation.js +1 -0
- package/dist/node/types/outcome-value.js +0 -0
- package/dist/node/types/policy-runtime.js +1 -0
- package/dist/node/types/provider-binding.js +1 -0
- package/dist/node/types/runbooks.js +1 -0
- package/dist/node/types/substrate-refs.js +1 -0
- package/dist/node/types/surfaces.js +1 -0
- package/dist/node/types/temporal-assertion.js +1 -0
- package/dist/node/types/temporal-knowledge.js +1 -0
- package/dist/node/types/temporal-store.js +1 -0
- package/dist/node/types/tenant-governance-envelope.js +1 -0
- package/dist/node/types/v0.js +1 -0
- package/dist/node/types/v1.js +1 -0
- package/dist/node/types/work.js +1 -0
- package/dist/node/validation/company-brain-edition.js +1 -0
- package/dist/node/validation/company-intelligence-grounding.js +2 -0
- package/dist/node/validation/company-intelligence-learning-disposition-fingerprints.js +1 -0
- package/dist/node/validation/company-intelligence-learning-disposition.js +1 -0
- package/dist/node/validation/company-intelligence-learning-egress.js +1 -0
- package/dist/node/validation/company-intelligence-learning-fingerprints.js +1 -0
- package/dist/node/validation/company-intelligence-learning-fixture-bindings.js +1 -0
- package/dist/node/validation/company-intelligence-learning-fixture-fingerprints.js +1 -0
- package/dist/node/validation/company-intelligence-learning-gates.js +1 -0
- package/dist/node/validation/company-intelligence-learning-issues.js +1 -0
- package/dist/node/validation/company-intelligence-learning-material-parts.js +1 -0
- package/dist/node/validation/company-intelligence-learning-material.js +1 -0
- package/dist/node/validation/company-intelligence-learning-phases.js +1 -0
- package/dist/node/validation/company-intelligence-learning-record.js +1 -0
- package/dist/node/validation/company-intelligence-learning-rules.js +1 -0
- package/dist/node/validation/company-intelligence-learning.js +1 -0
- package/dist/node/validation/company-intelligence-record-semantics.js +1 -0
- package/dist/node/validation/company-intelligence-semantics.js +1 -0
- package/dist/node/validation/company-intelligence.js +1 -0
- package/dist/node/validation/enterprise-authority.js +1 -0
- package/dist/node/validation/enterprise-governance-references.js +1 -0
- package/dist/node/validation/enterprise-graph.js +1 -0
- package/dist/node/validation/enterprise-integrity.js +1 -0
- package/dist/node/validation/enterprise-references.js +1 -0
- package/dist/node/validation/enterprise-secrets.js +1 -0
- package/dist/node/validation/enterprise-semantics.js +1 -0
- package/dist/node/validation/enterprise.js +1 -0
- package/dist/node/validation/index.js +28 -0
- package/dist/node/validation/learning-loop.js +1 -0
- package/dist/node/validation/provider-binding.js +1 -0
- package/dist/node/validation/semantic-operating-graph.js +27 -0
- package/dist/node/validation/semantic-v1-agents.js +1 -0
- package/dist/node/validation/semantic-v1-cadence.js +1 -0
- package/dist/node/validation/semantic-v1-execution-refs.js +1 -0
- package/dist/node/validation/semantic-v1-execution-results.js +1 -0
- package/dist/node/validation/semantic-v1-execution-shared.js +1 -0
- package/dist/node/validation/semantic-v1-execution.js +1 -0
- package/dist/node/validation/semantic-v1-policy-runtime.js +1 -0
- package/dist/node/validation/semantic-v1-refs.js +1 -0
- package/dist/node/validation/semantic-v1-shared.js +1 -0
- package/dist/node/validation/semantic-v1.js +1 -0
- package/dist/node/validation/semantic.js +1 -0
- package/dist/node/validation/temporal-assertion.js +1 -0
- package/dist/node/validation/temporal-knowledge.js +1 -0
- package/dist/node/validation/tenant-governance-envelope.js +1 -0
- package/dist/types/action-origin.d.ts +83 -0
- package/dist/types/action-origin.js +28 -0
- package/dist/types/agent-interfaces.d.ts +45 -0
- package/dist/types/agent-interfaces.js +2 -0
- package/dist/types/agent-org.d.ts +89 -0
- package/dist/types/agent-org.js +2 -0
- package/dist/types/agentic-contracts.d.ts +150 -0
- package/dist/types/agentic-contracts.js +2 -0
- package/dist/types/authority.d.ts +54 -0
- package/dist/types/authority.js +2 -0
- package/dist/types/autonomy.d.ts +72 -0
- package/dist/types/autonomy.js +2 -0
- package/dist/types/brain.d.ts +377 -0
- package/dist/types/brain.js +2 -0
- package/dist/types/cadence.d.ts +55 -0
- package/dist/types/cadence.js +2 -0
- package/dist/types/common.d.ts +23 -0
- package/dist/types/common.js +2 -0
- package/dist/types/company-brain-edition.d.ts +1 -0
- package/dist/types/company-brain-edition.js +2 -0
- package/dist/types/company-brain-edition.test.d.ts +1 -0
- package/dist/types/company-brain-extension-registry.test.d.ts +1 -0
- package/dist/types/company-intelligence/brain.d.ts +232 -0
- package/dist/types/company-intelligence/brain.js +2 -0
- package/dist/types/company-intelligence/common.d.ts +102 -0
- package/dist/types/company-intelligence/common.js +2 -0
- package/dist/types/company-intelligence/compatibility.d.ts +57 -0
- package/dist/types/company-intelligence/compatibility.js +2 -0
- package/dist/types/company-intelligence/extraction.d.ts +320 -0
- package/dist/types/company-intelligence/extraction.js +2 -0
- package/dist/types/company-intelligence/grounding-result.d.ts +652 -0
- package/dist/types/company-intelligence/grounding-result.js +2 -0
- package/dist/types/company-intelligence/grounding.d.ts +330 -0
- package/dist/types/company-intelligence/grounding.js +2 -0
- package/dist/types/company-intelligence/index.d.ts +4786 -0
- package/dist/types/company-intelligence/index.js +2 -0
- package/dist/types/company-intelligence/knowledge.d.ts +802 -0
- package/dist/types/company-intelligence/knowledge.js +2 -0
- package/dist/types/company-intelligence/learning-disposition.d.ts +50 -0
- package/dist/types/company-intelligence/learning-disposition.js +2 -0
- package/dist/types/company-intelligence/learning-governance-codes.d.ts +260 -0
- package/dist/types/company-intelligence/learning-governance-codes.js +2 -0
- package/dist/types/company-intelligence/learning-governance.d.ts +254 -0
- package/dist/types/company-intelligence/learning-governance.js +2 -0
- package/dist/types/company-intelligence/learning.d.ts +3069 -0
- package/dist/types/company-intelligence/learning.js +2 -0
- package/dist/types/company-intelligence/lineage.d.ts +616 -0
- package/dist/types/company-intelligence/lineage.js +2 -0
- package/dist/types/company-metrics-governance.d.ts +243 -0
- package/dist/types/company-metrics-governance.js +2 -0
- package/dist/types/company-metrics.d.ts +421 -0
- package/dist/types/company-metrics.js +2 -0
- package/dist/types/company-purpose.d.ts +282 -0
- package/dist/types/company-purpose.js +2 -0
- package/dist/types/company.d.ts +80 -0
- package/dist/types/company.js +2 -0
- package/dist/types/connectors.d.ts +45 -0
- package/dist/types/connectors.js +2 -0
- package/dist/types/control-plane-projections.d.ts +320 -0
- package/dist/types/control-plane-projections.js +2 -0
- package/dist/types/design-partner-readiness.d.ts +470 -0
- package/dist/types/design-partner-readiness.js +2 -0
- package/dist/types/dynamic-surfaces.d.ts +23 -0
- package/dist/types/dynamic-surfaces.js +2 -0
- package/dist/types/enterprise-common.d.ts +79 -0
- package/dist/types/enterprise-common.js +2 -0
- package/dist/types/enterprise-governance.d.ts +651 -0
- package/dist/types/enterprise-governance.js +2 -0
- package/dist/types/enterprise-portfolio.d.ts +666 -0
- package/dist/types/enterprise-portfolio.js +2 -0
- package/dist/types/enterprise-topology.d.ts +205 -0
- package/dist/types/enterprise-topology.js +2 -0
- package/dist/types/enterprise.d.ts +5 -0
- package/dist/types/enterprise.js +2 -0
- package/dist/types/enums.d.ts +51 -0
- package/dist/types/enums.js +2 -0
- package/dist/types/evidence-receipt-material.d.ts +59 -0
- package/dist/types/evidence-receipt-material.js +2 -0
- package/dist/types/execution.d.ts +498 -0
- package/dist/types/execution.js +2 -0
- package/dist/types/governed-action-state.d.ts +66 -0
- package/dist/types/governed-action-state.js +2 -0
- package/dist/types/governed-learning-loop.d.ts +391 -0
- package/dist/types/governed-learning-loop.js +2 -0
- package/dist/types/governed-learning-report.test.d.ts +1 -0
- package/dist/types/graph-permissions.d.ts +54 -0
- package/dist/types/graph-permissions.js +2 -0
- package/dist/types/graph-realtime.d.ts +71 -0
- package/dist/types/graph-realtime.js +2 -0
- package/dist/types/identity-resolution.d.ts +50 -0
- package/dist/types/identity-resolution.js +2 -0
- package/dist/types/index.d.ts +55 -0
- package/dist/types/index.js +28 -0
- package/dist/types/layer0-action-packet.d.ts +721 -0
- package/dist/types/layer0-action-packet.js +2 -0
- package/dist/types/layer0-action-packet.test.d.ts +1 -0
- package/dist/types/layer0-adapter-contract.d.ts +62 -0
- package/dist/types/layer0-adapter-contract.js +2 -0
- package/dist/types/layer0-core.d.ts +4 -0
- package/dist/types/layer0-core.js +2 -0
- package/dist/types/layer0-routing-rule.d.ts +149 -0
- package/dist/types/layer0-routing-rule.js +2 -0
- package/dist/types/layer0-unknown.d.ts +33 -0
- package/dist/types/layer0-unknown.js +2 -0
- package/dist/types/learning-loop.d.ts +1 -0
- package/dist/types/learning-loop.js +2 -0
- package/dist/types/managed-companyos.d.ts +316 -0
- package/dist/types/managed-companyos.js +2 -0
- package/dist/types/memory.d.ts +104 -0
- package/dist/types/memory.js +2 -0
- package/dist/types/objectives.d.ts +97 -0
- package/dist/types/objectives.js +2 -0
- package/dist/types/operating-cockpit.d.ts +140 -0
- package/dist/types/operating-cockpit.js +2 -0
- package/dist/types/operating-graph-contract.d.ts +510 -0
- package/dist/types/operating-graph-contract.js +2 -0
- package/dist/types/operating-graph.d.ts +443 -0
- package/dist/types/operating-graph.js +2 -0
- package/dist/types/outcome-observation.d.ts +1014 -0
- package/dist/types/outcome-observation.js +2 -0
- package/dist/types/outcome-observation.test.d.ts +1 -0
- package/dist/types/outcome-value.d.ts +129 -0
- package/dist/types/outcome-value.js +1 -0
- package/dist/types/policy-runtime.d.ts +294 -0
- package/dist/types/policy-runtime.js +2 -0
- package/dist/types/provider-binding.d.ts +34 -0
- package/dist/types/provider-binding.js +2 -0
- package/dist/types/provider-binding.test.d.ts +1 -0
- package/dist/types/runbooks.d.ts +67 -0
- package/dist/types/runbooks.js +2 -0
- package/dist/types/substrate-refs.d.ts +169 -0
- package/dist/types/substrate-refs.js +2 -0
- package/dist/types/substrate-refs.test.d.ts +1 -0
- package/dist/types/surfaces.d.ts +43 -0
- package/dist/types/surfaces.js +2 -0
- package/dist/types/temporal-assertion.d.ts +146 -0
- package/dist/types/temporal-assertion.js +2 -0
- package/dist/types/temporal-knowledge.d.ts +1 -0
- package/dist/types/temporal-knowledge.js +2 -0
- package/dist/types/temporal-store.d.ts +70 -0
- package/dist/types/temporal-store.js +2 -0
- package/dist/types/temporal-store.test.d.ts +1 -0
- package/dist/types/tenant-governance-envelope.d.ts +112 -0
- package/dist/types/tenant-governance-envelope.js +2 -0
- package/dist/types/v0.d.ts +408 -0
- package/dist/types/v0.js +2 -0
- package/dist/types/v1.d.ts +1171 -0
- package/dist/types/v1.js +2 -0
- package/dist/types/work.d.ts +183 -0
- package/dist/types/work.js +2 -0
- package/dist/validation/action-origin.test.d.ts +1 -0
- package/dist/validation/company-brain-edition.d.ts +27 -0
- package/dist/validation/company-brain-edition.js +2 -0
- package/dist/validation/company-intelligence-grounding.d.ts +19 -0
- package/dist/validation/company-intelligence-grounding.js +3 -0
- package/dist/validation/company-intelligence-learning-disposition-fingerprints.d.ts +3 -0
- package/dist/validation/company-intelligence-learning-disposition-fingerprints.js +2 -0
- package/dist/validation/company-intelligence-learning-disposition.d.ts +2 -0
- package/dist/validation/company-intelligence-learning-disposition.js +2 -0
- package/dist/validation/company-intelligence-learning-egress.d.ts +3 -0
- package/dist/validation/company-intelligence-learning-egress.js +2 -0
- package/dist/validation/company-intelligence-learning-fingerprints.d.ts +3 -0
- package/dist/validation/company-intelligence-learning-fingerprints.js +2 -0
- package/dist/validation/company-intelligence-learning-fixture-bindings.d.ts +3 -0
- package/dist/validation/company-intelligence-learning-fixture-bindings.js +2 -0
- package/dist/validation/company-intelligence-learning-fixture-fingerprints.d.ts +2 -0
- package/dist/validation/company-intelligence-learning-fixture-fingerprints.js +2 -0
- package/dist/validation/company-intelligence-learning-gates.d.ts +5 -0
- package/dist/validation/company-intelligence-learning-gates.js +2 -0
- package/dist/validation/company-intelligence-learning-issues.d.ts +11 -0
- package/dist/validation/company-intelligence-learning-issues.js +2 -0
- package/dist/validation/company-intelligence-learning-material-parts.d.ts +130 -0
- package/dist/validation/company-intelligence-learning-material-parts.js +2 -0
- package/dist/validation/company-intelligence-learning-material.d.ts +328 -0
- package/dist/validation/company-intelligence-learning-material.js +2 -0
- package/dist/validation/company-intelligence-learning-phases.d.ts +6 -0
- package/dist/validation/company-intelligence-learning-phases.js +2 -0
- package/dist/validation/company-intelligence-learning-record.d.ts +3 -0
- package/dist/validation/company-intelligence-learning-record.js +2 -0
- package/dist/validation/company-intelligence-learning-rules.d.ts +6 -0
- package/dist/validation/company-intelligence-learning-rules.js +2 -0
- package/dist/validation/company-intelligence-learning.d.ts +4 -0
- package/dist/validation/company-intelligence-learning.js +2 -0
- package/dist/validation/company-intelligence-record-semantics.d.ts +3 -0
- package/dist/validation/company-intelligence-record-semantics.js +2 -0
- package/dist/validation/company-intelligence-semantics.d.ts +13 -0
- package/dist/validation/company-intelligence-semantics.js +2 -0
- package/dist/validation/company-intelligence.d.ts +18 -0
- package/dist/validation/company-intelligence.js +2 -0
- package/dist/validation/companyos-messaging-origin.test.d.ts +1 -0
- package/dist/validation/companyos-operating-graph.test.d.ts +1 -0
- package/dist/validation/companyos-policy-runtime.test.d.ts +1 -0
- package/dist/validation/companyos-v0.test.d.ts +1 -0
- package/dist/validation/companyos-v1.test.d.ts +1 -0
- package/dist/validation/companyos-voice-origin.test.d.ts +1 -0
- package/dist/validation/companyos-voiceops-support-to-product.test.d.ts +1 -0
- package/dist/validation/control-plane-projections.test.d.ts +1 -0
- package/dist/validation/design-partner-readiness.test.d.ts +1 -0
- package/dist/validation/enterprise-authority.d.ts +3 -0
- package/dist/validation/enterprise-authority.js +2 -0
- package/dist/validation/enterprise-governance-references.d.ts +2 -0
- package/dist/validation/enterprise-governance-references.js +2 -0
- package/dist/validation/enterprise-graph.d.ts +9 -0
- package/dist/validation/enterprise-graph.js +2 -0
- package/dist/validation/enterprise-integrity.d.ts +2 -0
- package/dist/validation/enterprise-integrity.js +2 -0
- package/dist/validation/enterprise-references.d.ts +2 -0
- package/dist/validation/enterprise-references.js +2 -0
- package/dist/validation/enterprise-secrets.d.ts +1 -0
- package/dist/validation/enterprise-secrets.js +2 -0
- package/dist/validation/enterprise-semantics.d.ts +2 -0
- package/dist/validation/enterprise-semantics.js +2 -0
- package/dist/validation/enterprise.d.ts +11 -0
- package/dist/validation/enterprise.js +2 -0
- package/dist/validation/enterprise.test.d.ts +1 -0
- package/dist/validation/evidence-receipt-material.test.d.ts +1 -0
- package/dist/validation/governed-action-state.test.d.ts +1 -0
- package/dist/validation/index.d.ts +24 -0
- package/dist/validation/index.js +29 -0
- package/dist/validation/learning-loop.d.ts +13 -0
- package/dist/validation/learning-loop.js +2 -0
- package/dist/validation/learning-loop.test.d.ts +1 -0
- package/dist/validation/provider-binding.d.ts +11 -0
- package/dist/validation/provider-binding.js +2 -0
- package/dist/validation/semantic-operating-graph.d.ts +3 -0
- package/dist/validation/semantic-operating-graph.js +28 -0
- package/dist/validation/semantic-v1-agents.d.ts +3 -0
- package/dist/validation/semantic-v1-agents.js +2 -0
- package/dist/validation/semantic-v1-cadence.d.ts +2 -0
- package/dist/validation/semantic-v1-cadence.js +2 -0
- package/dist/validation/semantic-v1-execution-refs.d.ts +3 -0
- package/dist/validation/semantic-v1-execution-refs.js +2 -0
- package/dist/validation/semantic-v1-execution-results.d.ts +3 -0
- package/dist/validation/semantic-v1-execution-results.js +2 -0
- package/dist/validation/semantic-v1-execution-shared.d.ts +16 -0
- package/dist/validation/semantic-v1-execution-shared.js +2 -0
- package/dist/validation/semantic-v1-execution.d.ts +2 -0
- package/dist/validation/semantic-v1-execution.js +2 -0
- package/dist/validation/semantic-v1-policy-runtime.d.ts +1 -0
- package/dist/validation/semantic-v1-policy-runtime.js +2 -0
- package/dist/validation/semantic-v1-refs.d.ts +4 -0
- package/dist/validation/semantic-v1-refs.js +2 -0
- package/dist/validation/semantic-v1-shared.d.ts +4 -0
- package/dist/validation/semantic-v1-shared.js +2 -0
- package/dist/validation/semantic-v1.d.ts +2 -0
- package/dist/validation/semantic-v1.js +2 -0
- package/dist/validation/semantic.d.ts +3 -0
- package/dist/validation/semantic.js +2 -0
- package/dist/validation/temporal-assertion.d.ts +4 -0
- package/dist/validation/temporal-assertion.js +2 -0
- package/dist/validation/temporal-assertion.test.d.ts +1 -0
- package/dist/validation/temporal-knowledge.d.ts +1 -0
- package/dist/validation/temporal-knowledge.js +2 -0
- package/dist/validation/tenant-governance-envelope.d.ts +2 -0
- package/dist/validation/tenant-governance-envelope.js +2 -0
- package/dist/validation/tenant-governance-envelope.test.d.ts +1 -0
- package/package.json +2622 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as i}from"zod";import{z as a}from"zod";var j=a.record(a.string(),a.unknown()),ce=a.object({id:a.string().min(1),connectorCapability:a.string().min(1),providerKey:a.string().min(1).optional(),externalId:a.string().min(1).optional(),url:a.string().url().optional(),observedAt:a.string().min(1),metadata:j.default({})}),se=a.object({default:a.string().min(1),translations:a.record(a.string(),a.string()).default({})}),C=a.object({id:a.string().min(1),type:a.string().min(1),label:a.string().min(1).optional()});var P="1.0.0",M="company-intelligence-sha256:v1",U="canonical-json:v1",de=i.enum(["truth","policy","proposal","approval","execution","outcome"]),ge=i.enum(["source","source_version","asset","part","fragment","evidence","claim","policy","entity","relation","conflict","gap","graph","edition","query","answer","verification","feedback","experiment","evaluation","promotion","rollback","replay"]),n=i.string().regex(/^sha256:[a-f0-9]{64}$/),w=i.object({version:i.literal(M),canonicalization:i.literal(U),value:n}).strict(),z=i.object({from:i.iso.datetime({offset:!0}),to:i.iso.datetime({offset:!0}).optional()}).strict(),V=i.object({reason:i.enum(["source_deleted","acl_revoked","superseded","retention_expired","privacy_request"]),tombstonedAt:i.iso.datetime({offset:!0})}).strict(),Ie=i.object({page:i.number().int().positive().optional(),section:i.string().min(1).optional(),lineStart:i.number().int().positive().optional(),lineEnd:i.number().int().positive().optional(),cell:i.string().min(1).optional(),messageId:i.string().min(1).optional(),timeStartMs:i.number().int().nonnegative().optional(),timeEndMs:i.number().int().nonnegative().optional()}).strict().refine((o)=>Object.values(o).some((c)=>c!==void 0),{message:"At least one stable evidence locator is required."}),E=i.array(i.string().min(1)).refine((o)=>new Set(o).size===o.length,{message:"Reference ids must be unique."}),m=i.object({contractVersion:i.literal(P),id:i.string().min(1),tenantId:i.string().min(1),ownerRef:C.strict(),recordedAt:i.iso.datetime({offset:!0}),validTime:z,recordRefIds:E.default([]),evidenceRefIds:E.default([]),supersedesRefId:i.string().min(1).optional(),tombstone:V.optional(),fingerprint:w}).strict();import{z as t}from"zod";import{z as s}from"zod";var B="company-intelligence-governed-learning:v1",Q=Object.freeze({maxTransitions:64,maxMonitoringComparisons:8,maxPacketClosureRecords:128,maxRecordRefs:64,maxEvidenceRefs:64,maxMetrics:16,maxGuardrails:16,maxReasonCodes:16,minSampleObservations:1000,maxSampleObservations:1e4,maxSerializedBytes:65536,defaultDecisionDeadlineMs:1000,maxDecisionDeadlineMs:5000,maxAppendDeadlineMs:5000,maxGateAgeMs:86400000,maxApprovalValidityMs:86400000,maxReviewIntervalMs:2592000000,maxPromotionExpiryMs:7776000000}),Y=s.enum(["signal_captured","consent_redaction_recorded","classified","baseline_objective_recorded","candidate_proposed","risk_policy_decided","offline_evaluated","holdout_evaluated","adversarial_evaluated","shadow_evaluated","approval_recorded","canary_started","comparison_recorded","promotion_decided","rollback_executed","outcome_recorded","review_due","expired","replay_verified"]),y=s.enum(["signal_pending","feedback_accepted","classified","candidate_pending","evaluating","shadow","awaiting_approval","canary","promoted","rejected","rolled_back","outcome_recorded","review_due","expired","replay_exact","replay_drifted","blocked"]),q=["G01","G02","G03","G04","G05","G06","G07","G08","G09","G10","G11","G12","G13","G14","G15","G16","G17","G18","G19","G20","G21","G22","G23","G24","G25"],N=s.enum(q),K=["CI_LEARNING_BASELINE_REQUIRED","CI_LEARNING_BASELINE_NOT_IMMUTABLE","CI_LEARNING_OBJECTIVE_REQUIRED","CI_LEARNING_CANDIDATE_REQUIRED","CI_LEARNING_CANDIDATE_VERSION_REQUIRED","CI_LEARNING_CANDIDATE_FINGERPRINT_MISMATCH","CI_LEARNING_METRICS_REQUIRED","CI_LEARNING_GUARDRAILS_REQUIRED","CI_LEARNING_SAMPLE_NOT_REPRESENTATIVE","CI_LEARNING_TESTS_FAILED","CI_LEARNING_SAFETY_FAILED","CI_LEARNING_PRIVACY_FAILED","CI_LEARNING_COST_FAILED","CI_LEARNING_OFFLINE_REQUIRED","CI_LEARNING_HOLDOUT_REQUIRED","CI_LEARNING_ADVERSARIAL_REQUIRED","CI_LEARNING_EVALUATOR_NOT_INDEPENDENT","CI_LEARNING_POLICY_DENIED","CI_LEARNING_APPROVAL_REQUIRED","CI_LEARNING_APPROVER_NOT_INDEPENDENT","CI_LEARNING_ROLLBACK_PLAN_REQUIRED","CI_LEARNING_KILL_SWITCH_REQUIRED","CI_LEARNING_SHADOW_REQUIRED","CI_LEARNING_CANARY_REQUIRED","CI_LEARNING_COMPARISON_FAILED"],H=[...K,"CI_LEARNING_SIGNAL_ACCEPTED","CI_LEARNING_FEEDBACK_POISONED","CI_LEARNING_CONSENT_REQUIRED","CI_LEARNING_REDACTION_REQUIRED","CI_LEARNING_AUTHORITY_REQUIRED","CI_LEARNING_CLASSIFICATION_REQUIRED","CI_LEARNING_SIGNAL_DUPLICATE","CI_LEARNING_SIGNAL_ORIGIN_INVALID","CI_LEARNING_SELF_APPLY_FORBIDDEN","CI_LEARNING_RUNTIME_ARTIFACT_NOT_BOUNDED","CI_LEARNING_VENDOR_EXPORT_DENIED","CI_LEARNING_VENDOR_LEARNING_DENIED","CI_LEARNING_EGRESS_EVIDENCE_REQUIRED","CI_LEARNING_CANARY_GATES_INCOMPLETE","CI_LEARNING_CANARY_REGRESSION","CI_LEARNING_ROLLBACK_REPRODUCTION_FAILED","CI_LEARNING_OUTCOME_REQUIRED","CI_LEARNING_REVIEW_DUE","CI_LEARNING_EXPIRED","CI_LEARNING_REPLAY_EXACT","CI_LEARNING_REPLAY_DRIFT"],R=s.enum(H),W=s.array(R).max(Q.maxReasonCodes).refine((o)=>o.every((c,d)=>d===0||o[d-1]<c),"Reason codes must be sorted and unique."),l=s.object({version:s.literal(B),lifecycleId:s.string().min(1),sequence:s.number().int().min(0).max(63),event:Y,stateBefore:y.nullable(),stateAfter:y,previousTransitionRecordRefId:s.string().min(1).optional(),previousStateFingerprint:n.optional(),inputFingerprint:n,stateFingerprint:n,reasonCodes:W,occurredAt:s.iso.datetime({offset:!0})}).strict();import{z as r}from"zod";var g=r.object({receiptRef:r.string().min(1),status:r.literal("allow"),fingerprint:n,decidedAt:r.iso.datetime({offset:!0}),signerRef:r.string().min(1)}),A=r.object({consentReceiptRef:r.string().min(1),redactionReceiptRef:r.string().min(1),authorityReceiptRef:r.string().min(1),originIntegrityReceiptRef:r.string().min(1)}).strict(),S=r.object({signalFingerprint:n,originRefId:r.string().min(1),consentReceipt:g.extend({purpose:r.literal("governed_learning"),scopeRefId:r.string().min(1),signalFingerprint:n}).strict(),redactionReceipt:g.extend({targetRefId:r.string().min(1)}).strict(),authorityReceipt:g.extend({tenantId:r.string().min(1),objectiveRefId:r.string().min(1),actorRef:r.string().min(1)}).strict(),originIntegrityReceipt:g.extend({originRefId:r.string().min(1),classification:r.literal("verified_first_party"),signalFingerprint:n}).strict(),duplicate:r.literal(!1)}).strict();var I=t.object({artifactRef:t.string().min(1),semanticVersion:t.string().regex(/^\d+\.\d+\.\d+$/),fingerprint:n}).strict(),b=t.object({id:t.string().min(1),metric:t.string().min(1),direction:t.enum(["increase","decrease"]),threshold:t.number(),ownerRef:t.string().min(1)}).strict(),p=t.object({receiptRef:t.string().min(1),status:t.enum(["allow","deny","missing","failed","blocked","expired"]),fingerprint:n,decidedAt:t.iso.datetime({offset:!0}),signerRef:t.string().min(1)}).strict(),L=t.object({suiteVersion:t.string().min(1),status:t.literal("allow"),fingerprint:n,decidedAt:t.iso.datetime({offset:!0}),signerRef:t.string().min(1)}).strict(),v=t.object({baselineNormalizedCost:t.number().positive(),candidateNormalizedCost:t.number().positive(),ratio:t.number().positive().max(1.2),tenantBudgetAllowed:t.literal(!0),fingerprint:n}).strict().superRefine((o,c)=>{let d=o.candidateNormalizedCost/o.baselineNormalizedCost;if(Math.abs(d-o.ratio)>Number.EPSILON)c.addIssue({code:"custom",path:["ratio"],message:"Cost ratio must match candidate divided by baseline."})}),h=t.object({expectedBaselineFingerprint:n,observedRestoredFingerprint:n,status:t.literal("allow"),fingerprint:n}).strict().superRefine((o,c)=>{if(o.expectedBaselineFingerprint!==o.observedRestoredFingerprint)c.addIssue({code:"custom",path:["observedRestoredFingerprint"],message:"Rollback test must reproduce the exact baseline."})}),_=t.object({principalRef:t.string().min(1),implementationFingerprint:n,modelFingerprint:n,signerRef:t.string().min(1)}).strict(),x=t.object({datasetVersion:t.string().min(1),seed:t.number().int(),selectionMethod:t.string().min(1),observationCount:t.number().int().min(1000).max(1e4),strataCounts:t.record(t.string(),t.number().int().nonnegative()),languageCounts:t.record(t.string(),t.number().int().nonnegative()),fingerprint:n}).strict(),f=t.object({metricRef:t.string().min(1),baseline:t.number(),candidate:t.number(),lowerConfidenceBound:t.number().optional(),passed:t.boolean()}).strict(),u=t.object({guardrailRef:t.string().min(1),observed:t.number(),threshold:t.number(),operator:t.enum(["eq","lte","gte"]),passed:t.boolean(),hard:t.literal(!0)}).strict(),G=t.object({headFingerprint:n,gates:t.array(t.object({id:N,status:t.enum(["passed","missing","failed","blocked","expired"]),reasonCode:R,receiptFingerprint:n.optional()}).strict()).max(25)}).strict(),D=t.discriminatedUnion("type",[t.object({type:t.literal("runtime_artifact"),artifactKind:t.enum(["prompt","provider_route","retrieval_configuration","ranking_rule","extraction_rule","entity_resolution_rule","memory_rule","compiled_skill","runbook_artifact","runtime_policy"]),artifact:I,activation:t.literal("governed_runtime_activation"),selfApply:t.literal(!1)}).strict(),t.object({type:t.literal("repository_work_item"),changeKind:t.enum(["code","public_contract","migration","deployment_configuration"]),workItemRef:t.string().min(1),fingerprint:n,promotable:t.literal(!1),selfApply:t.literal(!1)}).strict()]),O=t.object({vendorExportRequested:t.boolean(),vendorLearningRequested:t.boolean(),vendorExportAllowed:t.boolean().default(!1),vendorLearningAllowed:t.boolean().default(!1),receiptFingerprints:t.array(n).max(5),binding:t.object({signalFingerprint:n,sampleFingerprint:n,artifactFingerprint:n}).strict().optional()}).strict().superRefine((o,c)=>{if(!o.vendorExportAllowed&&!o.vendorLearningAllowed)return;if(!o.binding||o.receiptFingerprints.length!==5||new Set(o.receiptFingerprints).size!==5)c.addIssue({code:"custom",message:"Allowed vendor eligibility requires five unique bound receipts."})}),T=t.object({baselineFingerprint:n,candidateFingerprint:n,sampleFingerprint:n,metrics:t.array(f).min(1).max(16),guardrails:t.array(u).min(1).max(16),costRatio:t.number().positive(),latencyRatio:t.number().positive(),passed:t.boolean(),fingerprint:n}).strict(),k=t.object({expectedBaselineFingerprint:n,observedActiveFingerprint:n,restoredArtifactRef:t.string().min(1),reproductionReceiptFingerprint:n}).strict();var F=e.enum(["prompt","provider_route","retrieval_configuration","ranking_rule","extraction_rule","entity_resolution_rule","memory_rule","compiled_skill","runbook_artifact","runtime_policy"]),J=e.object({answerRefId:e.string().min(1),actorRef:e.string().min(1),feedbackType:e.enum(["correction","outcome","retrieval_failure","drift"]),consentDecisionRef:e.string().min(1),redactionDecisionRef:e.string().min(1),correctionRefId:e.string().min(1).optional(),outcomeRefId:e.string().min(1).optional(),status:e.enum(["accepted","rejected","quarantined"]),governedLearning:l.optional(),dispositionEvidence:S.optional()}).strict(),Z=e.object({feedbackType:e.literal("signal"),signalRefId:e.string().min(1),originRefId:e.string().min(1),actorRef:e.string().min(1),signalFingerprint:n,objectiveRefId:e.string().min(1),consentScopeRefId:e.string().min(1),originClassification:e.literal("verified_first_party"),dispositionRefs:A,status:e.enum(["quarantined","rejected"]),governedLearning:l}).strict(),ee=m.extend({kind:e.literal("feedback"),authorityClass:e.literal("outcome"),payload:e.union([J,Z])}).strict(),te=m.extend({kind:e.literal("experiment"),authorityClass:e.literal("proposal"),payload:e.object({baselineRefId:e.string().min(1),candidateArtifactRef:e.string().min(1),candidateKind:F,objective:e.string().min(1),policyDecisionRef:e.string().min(1),metricRefIds:e.array(e.string().min(1)).min(1),guardrailRefIds:e.array(e.string().min(1)).min(1),holdoutDatasetRef:e.string().min(1),adversarialDatasetRef:e.string().min(1),governedLearning:l.optional(),baseline:I.optional(),candidate:D.optional(),objectiveDefinition:b.optional(),riskDecision:p.optional(),egressDecision:O.optional(),reviewDueAt:e.iso.datetime({offset:!0}).optional(),expiresAt:e.iso.datetime({offset:!0}).optional(),state:e.enum(["proposed","offline_evaluation","shadow","canary","completed","rejected"])}).strict()}).strict(),ne=m.extend({kind:e.literal("evaluation"),authorityClass:e.literal("truth"),payload:e.object({experimentRefId:e.string().min(1),candidateArtifactRef:e.string().min(1),evaluatorRef:e.string().min(1),independent:e.literal(!0),datasetRef:e.string().min(1),metricResults:e.record(e.string(),e.number()),safetyPassed:e.boolean(),privacyPassed:e.boolean(),costPassed:e.boolean(),verdict:e.enum(["pass","fail","blocked"]),evaluatedAt:e.iso.datetime({offset:!0}),governedLearning:l.optional(),phase:e.enum(["offline","holdout","adversarial","shadow","canary_compare","post_promotion"]).optional(),sampleReceipt:x.optional(),typedMetrics:e.array(f).max(16).optional(),typedGuardrails:e.array(u).max(16).optional(),generatorIdentity:_.optional(),evaluatorIdentity:_.optional(),independenceReceipt:p.optional(),testsReceipt:L.optional(),costEvidence:v.optional()}).strict()}).strict(),ie=m.extend({kind:e.literal("promotion"),authorityClass:e.literal("approval"),payload:e.object({experimentRefId:e.string().min(1),evaluationRefId:e.string().min(1),candidateArtifactRef:e.string().min(1),candidateKind:F,approvalDecisionRef:e.string().min(1),policyDecisionRef:e.string().min(1),rollbackRefId:e.string().min(1),killSwitchRef:e.string().min(1),stage:e.enum(["shadow","canary","promoted","rejected"]),approvedAt:e.iso.datetime({offset:!0}).optional(),governedLearning:l.optional(),gateBundle:G.optional(),approvalReceipt:p.optional(),rollbackTestReceipt:h.optional(),killSwitchReceipt:p.optional(),comparisonReceipt:T.optional(),effectiveArtifact:I.optional()}).strict().superRefine((o,c)=>{if(o.governedLearning&&(o.stage==="canary"||o.stage==="promoted")&&!o.gateBundle)c.addIssue({code:"custom",path:["gateBundle"],message:"Governed canary and promotion require a gate bundle."})})}).strict(),oe=m.extend({kind:e.literal("rollback"),authorityClass:e.literal("execution"),payload:e.object({promotionRefId:e.string().min(1),baselineRefId:e.string().min(1),triggerRef:e.string().min(1),status:e.enum(["ready","executed","failed"]),executedAt:e.iso.datetime({offset:!0}).optional(),outcomeRefId:e.string().min(1).optional(),replayRefId:e.string().min(1),governedLearning:l.optional(),reproduction:k.optional()}).strict()}).strict(),re=m.extend({kind:e.literal("replay"),authorityClass:e.literal("truth"),payload:e.object({inputFingerprint:n,configurationRefIds:e.array(e.string().min(1)).min(1),codeVersionRef:e.string().min(1),providerFixtureRef:e.string().min(1),orderedEventRefIds:e.array(e.string().min(1)),outputFingerprint:n,status:e.enum(["exact","drifted","blocked"]),replayedAt:e.iso.datetime({offset:!0}),governedLearning:l.optional(),lifecycleHeadFingerprint:n.optional(),baselineFingerprint:n.optional(),effectiveArtifactFingerprint:n.optional(),orderedTransitionFingerprints:e.array(n).optional()}).strict()}).strict(),xe=[ee,te,ne,ie,oe,re];export{K as COMPANY_INTELLIGENCE_GATE_REASON_CODES,Q as COMPANY_INTELLIGENCE_GOVERNED_LEARNING_BOUNDS,B as COMPANY_INTELLIGENCE_GOVERNED_LEARNING_VERSION,H as COMPANY_INTELLIGENCE_LEARNING_REASON_CODES,q as COMPANY_INTELLIGENCE_PROMOTION_GATE_IDS,D as CompanyIntelligenceCandidateDispositionSchema,T as CompanyIntelligenceComparisonReceiptSchema,v as CompanyIntelligenceCostEvidenceSchema,p as CompanyIntelligenceDecisionReceiptRefSchema,A as CompanyIntelligenceDispositionRefsSchema,O as CompanyIntelligenceEgressDecisionSchema,_ as CompanyIntelligenceEvaluationIdentitySchema,ne as CompanyIntelligenceEvaluationRecordSchema,te as CompanyIntelligenceExperimentRecordSchema,S as CompanyIntelligenceFeedbackDispositionEvidenceSchema,ee as CompanyIntelligenceFeedbackRecordSchema,Y as CompanyIntelligenceGovernedLearningEventSchema,l as CompanyIntelligenceGovernedLearningLinkSchema,y as CompanyIntelligenceGovernedLearningStateSchema,b as CompanyIntelligenceGovernedObjectiveSchema,u as CompanyIntelligenceGuardrailObservationSchema,I as CompanyIntelligenceImmutableArtifactRefSchema,R as CompanyIntelligenceLearningReasonCodeSchema,xe as CompanyIntelligenceLearningRecordSchemas,f as CompanyIntelligenceMetricObservationSchema,F as CompanyIntelligencePromotableArtifactKindSchema,G as CompanyIntelligencePromotionGateBundleSchema,N as CompanyIntelligencePromotionGateIdSchema,ie as CompanyIntelligencePromotionRecordSchema,re as CompanyIntelligenceReplayRecordSchema,x as CompanyIntelligenceRepresentativeSampleReceiptSchema,oe as CompanyIntelligenceRollbackRecordSchema,k as CompanyIntelligenceRollbackReproductionSchema,h as CompanyIntelligenceRollbackTestReceiptSchema,L as CompanyIntelligenceTestsReceiptSchema};
|
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CompanyIntelligenceSourceRecordSchema: z.ZodObject<{
|
|
3
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
tenantId: z.ZodString;
|
|
6
|
+
ownerRef: z.ZodObject<{
|
|
7
|
+
id: z.ZodString;
|
|
8
|
+
type: z.ZodString;
|
|
9
|
+
label: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strict>;
|
|
11
|
+
recordedAt: z.ZodISODateTime;
|
|
12
|
+
validTime: z.ZodObject<{
|
|
13
|
+
from: z.ZodISODateTime;
|
|
14
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
15
|
+
}, z.core.$strict>;
|
|
16
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
17
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
18
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
20
|
+
reason: z.ZodEnum<{
|
|
21
|
+
acl_revoked: "acl_revoked";
|
|
22
|
+
privacy_request: "privacy_request";
|
|
23
|
+
retention_expired: "retention_expired";
|
|
24
|
+
source_deleted: "source_deleted";
|
|
25
|
+
superseded: "superseded";
|
|
26
|
+
}>;
|
|
27
|
+
tombstonedAt: z.ZodISODateTime;
|
|
28
|
+
}, z.core.$strict>>;
|
|
29
|
+
fingerprint: z.ZodObject<{
|
|
30
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
31
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
32
|
+
value: z.ZodString;
|
|
33
|
+
}, z.core.$strict>;
|
|
34
|
+
kind: z.ZodLiteral<"source">;
|
|
35
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
36
|
+
payload: z.ZodObject<{
|
|
37
|
+
connectionRef: z.ZodString;
|
|
38
|
+
authorizationRef: z.ZodString;
|
|
39
|
+
externalId: z.ZodString;
|
|
40
|
+
sourceType: z.ZodString;
|
|
41
|
+
aclRefIds: z.ZodArray<z.ZodString>;
|
|
42
|
+
state: z.ZodEnum<{
|
|
43
|
+
degraded: "degraded";
|
|
44
|
+
deleted: "deleted";
|
|
45
|
+
ready: "ready";
|
|
46
|
+
registered: "registered";
|
|
47
|
+
revoked: "revoked";
|
|
48
|
+
}>;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
}, z.core.$strict>;
|
|
51
|
+
export declare const CompanyIntelligenceSourceVersionRecordSchema: z.ZodObject<{
|
|
52
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
tenantId: z.ZodString;
|
|
55
|
+
ownerRef: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
type: z.ZodString;
|
|
58
|
+
label: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strict>;
|
|
60
|
+
recordedAt: z.ZodISODateTime;
|
|
61
|
+
validTime: z.ZodObject<{
|
|
62
|
+
from: z.ZodISODateTime;
|
|
63
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
64
|
+
}, z.core.$strict>;
|
|
65
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
66
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
67
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
68
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
reason: z.ZodEnum<{
|
|
70
|
+
acl_revoked: "acl_revoked";
|
|
71
|
+
privacy_request: "privacy_request";
|
|
72
|
+
retention_expired: "retention_expired";
|
|
73
|
+
source_deleted: "source_deleted";
|
|
74
|
+
superseded: "superseded";
|
|
75
|
+
}>;
|
|
76
|
+
tombstonedAt: z.ZodISODateTime;
|
|
77
|
+
}, z.core.$strict>>;
|
|
78
|
+
fingerprint: z.ZodObject<{
|
|
79
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
80
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
81
|
+
value: z.ZodString;
|
|
82
|
+
}, z.core.$strict>;
|
|
83
|
+
kind: z.ZodLiteral<"source_version">;
|
|
84
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
85
|
+
payload: z.ZodObject<{
|
|
86
|
+
sourceRecordRefId: z.ZodString;
|
|
87
|
+
version: z.ZodNumber;
|
|
88
|
+
observedAt: z.ZodISODateTime;
|
|
89
|
+
sourceFingerprint: z.ZodString;
|
|
90
|
+
assetRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
91
|
+
}, z.core.$strict>;
|
|
92
|
+
}, z.core.$strict>;
|
|
93
|
+
export declare const CompanyIntelligenceAssetRecordSchema: z.ZodObject<{
|
|
94
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
95
|
+
id: z.ZodString;
|
|
96
|
+
tenantId: z.ZodString;
|
|
97
|
+
ownerRef: z.ZodObject<{
|
|
98
|
+
id: z.ZodString;
|
|
99
|
+
type: z.ZodString;
|
|
100
|
+
label: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strict>;
|
|
102
|
+
recordedAt: z.ZodISODateTime;
|
|
103
|
+
validTime: z.ZodObject<{
|
|
104
|
+
from: z.ZodISODateTime;
|
|
105
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
106
|
+
}, z.core.$strict>;
|
|
107
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
108
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
109
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
110
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
reason: z.ZodEnum<{
|
|
112
|
+
acl_revoked: "acl_revoked";
|
|
113
|
+
privacy_request: "privacy_request";
|
|
114
|
+
retention_expired: "retention_expired";
|
|
115
|
+
source_deleted: "source_deleted";
|
|
116
|
+
superseded: "superseded";
|
|
117
|
+
}>;
|
|
118
|
+
tombstonedAt: z.ZodISODateTime;
|
|
119
|
+
}, z.core.$strict>>;
|
|
120
|
+
fingerprint: z.ZodObject<{
|
|
121
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
122
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
123
|
+
value: z.ZodString;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
kind: z.ZodLiteral<"asset">;
|
|
126
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
127
|
+
payload: z.ZodObject<{
|
|
128
|
+
sourceVersionRefId: z.ZodString;
|
|
129
|
+
mediaType: z.ZodString;
|
|
130
|
+
byteLength: z.ZodNumber;
|
|
131
|
+
storageRef: z.ZodString;
|
|
132
|
+
contentFingerprint: z.ZodString;
|
|
133
|
+
classification: z.ZodEnum<{
|
|
134
|
+
confidential: "confidential";
|
|
135
|
+
internal: "internal";
|
|
136
|
+
public: "public";
|
|
137
|
+
restricted: "restricted";
|
|
138
|
+
}>;
|
|
139
|
+
aclRefIds: z.ZodArray<z.ZodString>;
|
|
140
|
+
}, z.core.$strict>;
|
|
141
|
+
}, z.core.$strict>;
|
|
142
|
+
export declare const CompanyIntelligencePartRecordSchema: z.ZodObject<{
|
|
143
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
144
|
+
id: z.ZodString;
|
|
145
|
+
tenantId: z.ZodString;
|
|
146
|
+
ownerRef: z.ZodObject<{
|
|
147
|
+
id: z.ZodString;
|
|
148
|
+
type: z.ZodString;
|
|
149
|
+
label: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strict>;
|
|
151
|
+
recordedAt: z.ZodISODateTime;
|
|
152
|
+
validTime: z.ZodObject<{
|
|
153
|
+
from: z.ZodISODateTime;
|
|
154
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
155
|
+
}, z.core.$strict>;
|
|
156
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
157
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
158
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
159
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
160
|
+
reason: z.ZodEnum<{
|
|
161
|
+
acl_revoked: "acl_revoked";
|
|
162
|
+
privacy_request: "privacy_request";
|
|
163
|
+
retention_expired: "retention_expired";
|
|
164
|
+
source_deleted: "source_deleted";
|
|
165
|
+
superseded: "superseded";
|
|
166
|
+
}>;
|
|
167
|
+
tombstonedAt: z.ZodISODateTime;
|
|
168
|
+
}, z.core.$strict>>;
|
|
169
|
+
fingerprint: z.ZodObject<{
|
|
170
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
171
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
172
|
+
value: z.ZodString;
|
|
173
|
+
}, z.core.$strict>;
|
|
174
|
+
kind: z.ZodLiteral<"part">;
|
|
175
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
176
|
+
payload: z.ZodObject<{
|
|
177
|
+
assetRefId: z.ZodString;
|
|
178
|
+
partKind: z.ZodEnum<{
|
|
179
|
+
cell: "cell";
|
|
180
|
+
line: "line";
|
|
181
|
+
message: "message";
|
|
182
|
+
page: "page";
|
|
183
|
+
section: "section";
|
|
184
|
+
table: "table";
|
|
185
|
+
time_range: "time_range";
|
|
186
|
+
}>;
|
|
187
|
+
ordinal: z.ZodNumber;
|
|
188
|
+
locator: z.ZodObject<{
|
|
189
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
section: z.ZodOptional<z.ZodString>;
|
|
191
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
192
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
193
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
194
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
195
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
196
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
197
|
+
}, z.core.$strict>;
|
|
198
|
+
contentFingerprint: z.ZodString;
|
|
199
|
+
language: z.ZodOptional<z.ZodString>;
|
|
200
|
+
parentPartRefId: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strict>;
|
|
202
|
+
}, z.core.$strict>;
|
|
203
|
+
export declare const CompanyIntelligenceFragmentRecordSchema: z.ZodObject<{
|
|
204
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
205
|
+
id: z.ZodString;
|
|
206
|
+
tenantId: z.ZodString;
|
|
207
|
+
ownerRef: z.ZodObject<{
|
|
208
|
+
id: z.ZodString;
|
|
209
|
+
type: z.ZodString;
|
|
210
|
+
label: z.ZodOptional<z.ZodString>;
|
|
211
|
+
}, z.core.$strict>;
|
|
212
|
+
recordedAt: z.ZodISODateTime;
|
|
213
|
+
validTime: z.ZodObject<{
|
|
214
|
+
from: z.ZodISODateTime;
|
|
215
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
218
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
219
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
220
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
reason: z.ZodEnum<{
|
|
222
|
+
acl_revoked: "acl_revoked";
|
|
223
|
+
privacy_request: "privacy_request";
|
|
224
|
+
retention_expired: "retention_expired";
|
|
225
|
+
source_deleted: "source_deleted";
|
|
226
|
+
superseded: "superseded";
|
|
227
|
+
}>;
|
|
228
|
+
tombstonedAt: z.ZodISODateTime;
|
|
229
|
+
}, z.core.$strict>>;
|
|
230
|
+
fingerprint: z.ZodObject<{
|
|
231
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
232
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
233
|
+
value: z.ZodString;
|
|
234
|
+
}, z.core.$strict>;
|
|
235
|
+
kind: z.ZodLiteral<"fragment">;
|
|
236
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
237
|
+
payload: z.ZodObject<{
|
|
238
|
+
partRefId: z.ZodString;
|
|
239
|
+
stableFragmentId: z.ZodString;
|
|
240
|
+
ordinal: z.ZodNumber;
|
|
241
|
+
locator: z.ZodObject<{
|
|
242
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
243
|
+
section: z.ZodOptional<z.ZodString>;
|
|
244
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
245
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
246
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
247
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
248
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
249
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
}, z.core.$strict>;
|
|
251
|
+
contentFingerprint: z.ZodString;
|
|
252
|
+
tokenCount: z.ZodNumber;
|
|
253
|
+
previousFragmentRefId: z.ZodOptional<z.ZodString>;
|
|
254
|
+
nextFragmentRefId: z.ZodOptional<z.ZodString>;
|
|
255
|
+
aclRefIds: z.ZodArray<z.ZodString>;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
}, z.core.$strict>;
|
|
258
|
+
export declare const CompanyIntelligenceEvidenceRecordSchema: z.ZodObject<{
|
|
259
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
260
|
+
id: z.ZodString;
|
|
261
|
+
tenantId: z.ZodString;
|
|
262
|
+
ownerRef: z.ZodObject<{
|
|
263
|
+
id: z.ZodString;
|
|
264
|
+
type: z.ZodString;
|
|
265
|
+
label: z.ZodOptional<z.ZodString>;
|
|
266
|
+
}, z.core.$strict>;
|
|
267
|
+
recordedAt: z.ZodISODateTime;
|
|
268
|
+
validTime: z.ZodObject<{
|
|
269
|
+
from: z.ZodISODateTime;
|
|
270
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
271
|
+
}, z.core.$strict>;
|
|
272
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
273
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
274
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
275
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
276
|
+
reason: z.ZodEnum<{
|
|
277
|
+
acl_revoked: "acl_revoked";
|
|
278
|
+
privacy_request: "privacy_request";
|
|
279
|
+
retention_expired: "retention_expired";
|
|
280
|
+
source_deleted: "source_deleted";
|
|
281
|
+
superseded: "superseded";
|
|
282
|
+
}>;
|
|
283
|
+
tombstonedAt: z.ZodISODateTime;
|
|
284
|
+
}, z.core.$strict>>;
|
|
285
|
+
fingerprint: z.ZodObject<{
|
|
286
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
287
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
288
|
+
value: z.ZodString;
|
|
289
|
+
}, z.core.$strict>;
|
|
290
|
+
kind: z.ZodLiteral<"evidence">;
|
|
291
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
292
|
+
payload: z.ZodObject<{
|
|
293
|
+
sourceVersionRefId: z.ZodString;
|
|
294
|
+
assetRefId: z.ZodOptional<z.ZodString>;
|
|
295
|
+
partRefId: z.ZodString;
|
|
296
|
+
fragmentRefId: z.ZodString;
|
|
297
|
+
locator: z.ZodObject<{
|
|
298
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
299
|
+
section: z.ZodOptional<z.ZodString>;
|
|
300
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
301
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
302
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
303
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
304
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
305
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
306
|
+
}, z.core.$strict>;
|
|
307
|
+
authorizationDecisionRef: z.ZodString;
|
|
308
|
+
redactionDecisionRef: z.ZodString;
|
|
309
|
+
contentFingerprint: z.ZodString;
|
|
310
|
+
}, z.core.$strict>;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
export declare const CompanyIntelligenceLineageRecordSchemas: readonly [z.ZodObject<{
|
|
313
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
314
|
+
id: z.ZodString;
|
|
315
|
+
tenantId: z.ZodString;
|
|
316
|
+
ownerRef: z.ZodObject<{
|
|
317
|
+
id: z.ZodString;
|
|
318
|
+
type: z.ZodString;
|
|
319
|
+
label: z.ZodOptional<z.ZodString>;
|
|
320
|
+
}, z.core.$strict>;
|
|
321
|
+
recordedAt: z.ZodISODateTime;
|
|
322
|
+
validTime: z.ZodObject<{
|
|
323
|
+
from: z.ZodISODateTime;
|
|
324
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
325
|
+
}, z.core.$strict>;
|
|
326
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
327
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
328
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
329
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
330
|
+
reason: z.ZodEnum<{
|
|
331
|
+
acl_revoked: "acl_revoked";
|
|
332
|
+
privacy_request: "privacy_request";
|
|
333
|
+
retention_expired: "retention_expired";
|
|
334
|
+
source_deleted: "source_deleted";
|
|
335
|
+
superseded: "superseded";
|
|
336
|
+
}>;
|
|
337
|
+
tombstonedAt: z.ZodISODateTime;
|
|
338
|
+
}, z.core.$strict>>;
|
|
339
|
+
fingerprint: z.ZodObject<{
|
|
340
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
341
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
342
|
+
value: z.ZodString;
|
|
343
|
+
}, z.core.$strict>;
|
|
344
|
+
kind: z.ZodLiteral<"source">;
|
|
345
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
346
|
+
payload: z.ZodObject<{
|
|
347
|
+
connectionRef: z.ZodString;
|
|
348
|
+
authorizationRef: z.ZodString;
|
|
349
|
+
externalId: z.ZodString;
|
|
350
|
+
sourceType: z.ZodString;
|
|
351
|
+
aclRefIds: z.ZodArray<z.ZodString>;
|
|
352
|
+
state: z.ZodEnum<{
|
|
353
|
+
degraded: "degraded";
|
|
354
|
+
deleted: "deleted";
|
|
355
|
+
ready: "ready";
|
|
356
|
+
registered: "registered";
|
|
357
|
+
revoked: "revoked";
|
|
358
|
+
}>;
|
|
359
|
+
}, z.core.$strict>;
|
|
360
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
361
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
362
|
+
id: z.ZodString;
|
|
363
|
+
tenantId: z.ZodString;
|
|
364
|
+
ownerRef: z.ZodObject<{
|
|
365
|
+
id: z.ZodString;
|
|
366
|
+
type: z.ZodString;
|
|
367
|
+
label: z.ZodOptional<z.ZodString>;
|
|
368
|
+
}, z.core.$strict>;
|
|
369
|
+
recordedAt: z.ZodISODateTime;
|
|
370
|
+
validTime: z.ZodObject<{
|
|
371
|
+
from: z.ZodISODateTime;
|
|
372
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
373
|
+
}, z.core.$strict>;
|
|
374
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
375
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
376
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
377
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
378
|
+
reason: z.ZodEnum<{
|
|
379
|
+
acl_revoked: "acl_revoked";
|
|
380
|
+
privacy_request: "privacy_request";
|
|
381
|
+
retention_expired: "retention_expired";
|
|
382
|
+
source_deleted: "source_deleted";
|
|
383
|
+
superseded: "superseded";
|
|
384
|
+
}>;
|
|
385
|
+
tombstonedAt: z.ZodISODateTime;
|
|
386
|
+
}, z.core.$strict>>;
|
|
387
|
+
fingerprint: z.ZodObject<{
|
|
388
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
389
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
390
|
+
value: z.ZodString;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
kind: z.ZodLiteral<"source_version">;
|
|
393
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
394
|
+
payload: z.ZodObject<{
|
|
395
|
+
sourceRecordRefId: z.ZodString;
|
|
396
|
+
version: z.ZodNumber;
|
|
397
|
+
observedAt: z.ZodISODateTime;
|
|
398
|
+
sourceFingerprint: z.ZodString;
|
|
399
|
+
assetRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
400
|
+
}, z.core.$strict>;
|
|
401
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
402
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
403
|
+
id: z.ZodString;
|
|
404
|
+
tenantId: z.ZodString;
|
|
405
|
+
ownerRef: z.ZodObject<{
|
|
406
|
+
id: z.ZodString;
|
|
407
|
+
type: z.ZodString;
|
|
408
|
+
label: z.ZodOptional<z.ZodString>;
|
|
409
|
+
}, z.core.$strict>;
|
|
410
|
+
recordedAt: z.ZodISODateTime;
|
|
411
|
+
validTime: z.ZodObject<{
|
|
412
|
+
from: z.ZodISODateTime;
|
|
413
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
414
|
+
}, z.core.$strict>;
|
|
415
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
416
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
417
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
418
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
419
|
+
reason: z.ZodEnum<{
|
|
420
|
+
acl_revoked: "acl_revoked";
|
|
421
|
+
privacy_request: "privacy_request";
|
|
422
|
+
retention_expired: "retention_expired";
|
|
423
|
+
source_deleted: "source_deleted";
|
|
424
|
+
superseded: "superseded";
|
|
425
|
+
}>;
|
|
426
|
+
tombstonedAt: z.ZodISODateTime;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
fingerprint: z.ZodObject<{
|
|
429
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
430
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
431
|
+
value: z.ZodString;
|
|
432
|
+
}, z.core.$strict>;
|
|
433
|
+
kind: z.ZodLiteral<"asset">;
|
|
434
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
435
|
+
payload: z.ZodObject<{
|
|
436
|
+
sourceVersionRefId: z.ZodString;
|
|
437
|
+
mediaType: z.ZodString;
|
|
438
|
+
byteLength: z.ZodNumber;
|
|
439
|
+
storageRef: z.ZodString;
|
|
440
|
+
contentFingerprint: z.ZodString;
|
|
441
|
+
classification: z.ZodEnum<{
|
|
442
|
+
confidential: "confidential";
|
|
443
|
+
internal: "internal";
|
|
444
|
+
public: "public";
|
|
445
|
+
restricted: "restricted";
|
|
446
|
+
}>;
|
|
447
|
+
aclRefIds: z.ZodArray<z.ZodString>;
|
|
448
|
+
}, z.core.$strict>;
|
|
449
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
450
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
451
|
+
id: z.ZodString;
|
|
452
|
+
tenantId: z.ZodString;
|
|
453
|
+
ownerRef: z.ZodObject<{
|
|
454
|
+
id: z.ZodString;
|
|
455
|
+
type: z.ZodString;
|
|
456
|
+
label: z.ZodOptional<z.ZodString>;
|
|
457
|
+
}, z.core.$strict>;
|
|
458
|
+
recordedAt: z.ZodISODateTime;
|
|
459
|
+
validTime: z.ZodObject<{
|
|
460
|
+
from: z.ZodISODateTime;
|
|
461
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
462
|
+
}, z.core.$strict>;
|
|
463
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
464
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
465
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
466
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
467
|
+
reason: z.ZodEnum<{
|
|
468
|
+
acl_revoked: "acl_revoked";
|
|
469
|
+
privacy_request: "privacy_request";
|
|
470
|
+
retention_expired: "retention_expired";
|
|
471
|
+
source_deleted: "source_deleted";
|
|
472
|
+
superseded: "superseded";
|
|
473
|
+
}>;
|
|
474
|
+
tombstonedAt: z.ZodISODateTime;
|
|
475
|
+
}, z.core.$strict>>;
|
|
476
|
+
fingerprint: z.ZodObject<{
|
|
477
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
478
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
479
|
+
value: z.ZodString;
|
|
480
|
+
}, z.core.$strict>;
|
|
481
|
+
kind: z.ZodLiteral<"part">;
|
|
482
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
483
|
+
payload: z.ZodObject<{
|
|
484
|
+
assetRefId: z.ZodString;
|
|
485
|
+
partKind: z.ZodEnum<{
|
|
486
|
+
cell: "cell";
|
|
487
|
+
line: "line";
|
|
488
|
+
message: "message";
|
|
489
|
+
page: "page";
|
|
490
|
+
section: "section";
|
|
491
|
+
table: "table";
|
|
492
|
+
time_range: "time_range";
|
|
493
|
+
}>;
|
|
494
|
+
ordinal: z.ZodNumber;
|
|
495
|
+
locator: z.ZodObject<{
|
|
496
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
497
|
+
section: z.ZodOptional<z.ZodString>;
|
|
498
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
499
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
500
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
501
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
502
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
503
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
504
|
+
}, z.core.$strict>;
|
|
505
|
+
contentFingerprint: z.ZodString;
|
|
506
|
+
language: z.ZodOptional<z.ZodString>;
|
|
507
|
+
parentPartRefId: z.ZodOptional<z.ZodString>;
|
|
508
|
+
}, z.core.$strict>;
|
|
509
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
510
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
511
|
+
id: z.ZodString;
|
|
512
|
+
tenantId: z.ZodString;
|
|
513
|
+
ownerRef: z.ZodObject<{
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
type: z.ZodString;
|
|
516
|
+
label: z.ZodOptional<z.ZodString>;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
recordedAt: z.ZodISODateTime;
|
|
519
|
+
validTime: z.ZodObject<{
|
|
520
|
+
from: z.ZodISODateTime;
|
|
521
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
522
|
+
}, z.core.$strict>;
|
|
523
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
524
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
525
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
526
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
527
|
+
reason: z.ZodEnum<{
|
|
528
|
+
acl_revoked: "acl_revoked";
|
|
529
|
+
privacy_request: "privacy_request";
|
|
530
|
+
retention_expired: "retention_expired";
|
|
531
|
+
source_deleted: "source_deleted";
|
|
532
|
+
superseded: "superseded";
|
|
533
|
+
}>;
|
|
534
|
+
tombstonedAt: z.ZodISODateTime;
|
|
535
|
+
}, z.core.$strict>>;
|
|
536
|
+
fingerprint: z.ZodObject<{
|
|
537
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
538
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
539
|
+
value: z.ZodString;
|
|
540
|
+
}, z.core.$strict>;
|
|
541
|
+
kind: z.ZodLiteral<"fragment">;
|
|
542
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
543
|
+
payload: z.ZodObject<{
|
|
544
|
+
partRefId: z.ZodString;
|
|
545
|
+
stableFragmentId: z.ZodString;
|
|
546
|
+
ordinal: z.ZodNumber;
|
|
547
|
+
locator: z.ZodObject<{
|
|
548
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
549
|
+
section: z.ZodOptional<z.ZodString>;
|
|
550
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
551
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
552
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
553
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
554
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
555
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
556
|
+
}, z.core.$strict>;
|
|
557
|
+
contentFingerprint: z.ZodString;
|
|
558
|
+
tokenCount: z.ZodNumber;
|
|
559
|
+
previousFragmentRefId: z.ZodOptional<z.ZodString>;
|
|
560
|
+
nextFragmentRefId: z.ZodOptional<z.ZodString>;
|
|
561
|
+
aclRefIds: z.ZodArray<z.ZodString>;
|
|
562
|
+
}, z.core.$strict>;
|
|
563
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
564
|
+
contractVersion: z.ZodLiteral<"1.0.0">;
|
|
565
|
+
id: z.ZodString;
|
|
566
|
+
tenantId: z.ZodString;
|
|
567
|
+
ownerRef: z.ZodObject<{
|
|
568
|
+
id: z.ZodString;
|
|
569
|
+
type: z.ZodString;
|
|
570
|
+
label: z.ZodOptional<z.ZodString>;
|
|
571
|
+
}, z.core.$strict>;
|
|
572
|
+
recordedAt: z.ZodISODateTime;
|
|
573
|
+
validTime: z.ZodObject<{
|
|
574
|
+
from: z.ZodISODateTime;
|
|
575
|
+
to: z.ZodOptional<z.ZodISODateTime>;
|
|
576
|
+
}, z.core.$strict>;
|
|
577
|
+
recordRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
578
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
579
|
+
supersedesRefId: z.ZodOptional<z.ZodString>;
|
|
580
|
+
tombstone: z.ZodOptional<z.ZodObject<{
|
|
581
|
+
reason: z.ZodEnum<{
|
|
582
|
+
acl_revoked: "acl_revoked";
|
|
583
|
+
privacy_request: "privacy_request";
|
|
584
|
+
retention_expired: "retention_expired";
|
|
585
|
+
source_deleted: "source_deleted";
|
|
586
|
+
superseded: "superseded";
|
|
587
|
+
}>;
|
|
588
|
+
tombstonedAt: z.ZodISODateTime;
|
|
589
|
+
}, z.core.$strict>>;
|
|
590
|
+
fingerprint: z.ZodObject<{
|
|
591
|
+
version: z.ZodLiteral<"company-intelligence-sha256:v1">;
|
|
592
|
+
canonicalization: z.ZodLiteral<"canonical-json:v1">;
|
|
593
|
+
value: z.ZodString;
|
|
594
|
+
}, z.core.$strict>;
|
|
595
|
+
kind: z.ZodLiteral<"evidence">;
|
|
596
|
+
authorityClass: z.ZodLiteral<"truth">;
|
|
597
|
+
payload: z.ZodObject<{
|
|
598
|
+
sourceVersionRefId: z.ZodString;
|
|
599
|
+
assetRefId: z.ZodOptional<z.ZodString>;
|
|
600
|
+
partRefId: z.ZodString;
|
|
601
|
+
fragmentRefId: z.ZodString;
|
|
602
|
+
locator: z.ZodObject<{
|
|
603
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
604
|
+
section: z.ZodOptional<z.ZodString>;
|
|
605
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
606
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
607
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
608
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
609
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
610
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
611
|
+
}, z.core.$strict>;
|
|
612
|
+
authorizationDecisionRef: z.ZodString;
|
|
613
|
+
redactionDecisionRef: z.ZodString;
|
|
614
|
+
contentFingerprint: z.ZodString;
|
|
615
|
+
}, z.core.$strict>;
|
|
616
|
+
}, z.core.$strict>];
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as t}from"zod";import{z as n}from"zod";var m=n.record(n.string(),n.unknown()),v=n.object({id:n.string().min(1),connectorCapability:n.string().min(1),providerKey:n.string().min(1).optional(),externalId:n.string().min(1).optional(),url:n.string().url().optional(),observedAt:n.string().min(1),metadata:m.default({})}),O=n.object({default:n.string().min(1),translations:n.record(n.string(),n.string()).default({})}),s=n.object({id:n.string().min(1),type:n.string().min(1),label:n.string().min(1).optional()});var p="1.0.0",d="company-intelligence-sha256:v1",g="canonical-json:v1",E=t.enum(["truth","policy","proposal","approval","execution","outcome"]),_=t.enum(["source","source_version","asset","part","fragment","evidence","claim","policy","entity","relation","conflict","gap","graph","edition","query","answer","verification","feedback","experiment","evaluation","promotion","rollback","replay"]),i=t.string().regex(/^sha256:[a-f0-9]{64}$/),u=t.object({version:t.literal(d),canonicalization:t.literal(g),value:i}).strict(),f=t.object({from:t.iso.datetime({offset:!0}),to:t.iso.datetime({offset:!0}).optional()}).strict(),y=t.object({reason:t.enum(["source_deleted","acl_revoked","superseded","retention_expired","privacy_request"]),tombstonedAt:t.iso.datetime({offset:!0})}).strict(),a=t.object({page:t.number().int().positive().optional(),section:t.string().min(1).optional(),lineStart:t.number().int().positive().optional(),lineEnd:t.number().int().positive().optional(),cell:t.string().min(1).optional(),messageId:t.string().min(1).optional(),timeStartMs:t.number().int().nonnegative().optional(),timeEndMs:t.number().int().nonnegative().optional()}).strict().refine((r)=>Object.values(r).some((l)=>l!==void 0),{message:"At least one stable evidence locator is required."}),c=t.array(t.string().min(1)).refine((r)=>new Set(r).size===r.length,{message:"Reference ids must be unique."}),o=t.object({contractVersion:t.literal(p),id:t.string().min(1),tenantId:t.string().min(1),ownerRef:s.strict(),recordedAt:t.iso.datetime({offset:!0}),validTime:f,recordRefIds:c.default([]),evidenceRefIds:c.default([]),supersedesRefId:t.string().min(1).optional(),tombstone:y.optional(),fingerprint:u}).strict();var I=o.extend({kind:e.literal("source"),authorityClass:e.literal("truth"),payload:e.object({connectionRef:e.string().min(1),authorizationRef:e.string().min(1),externalId:e.string().min(1),sourceType:e.string().min(1),aclRefIds:e.array(e.string().min(1)).min(1),state:e.enum(["registered","ready","degraded","revoked","deleted"])}).strict()}).strict(),h=o.extend({kind:e.literal("source_version"),authorityClass:e.literal("truth"),payload:e.object({sourceRecordRefId:e.string().min(1),version:e.number().int().positive(),observedAt:e.iso.datetime({offset:!0}),sourceFingerprint:i,assetRefIds:e.array(e.string().min(1)).default([])}).strict()}).strict(),C=o.extend({kind:e.literal("asset"),authorityClass:e.literal("truth"),payload:e.object({sourceVersionRefId:e.string().min(1),mediaType:e.string().min(1),byteLength:e.number().int().nonnegative(),storageRef:e.string().min(1),contentFingerprint:i,classification:e.enum(["public","internal","confidential","restricted"]),aclRefIds:e.array(e.string().min(1)).min(1)}).strict()}).strict(),R=o.extend({kind:e.literal("part"),authorityClass:e.literal("truth"),payload:e.object({assetRefId:e.string().min(1),partKind:e.enum(["page","section","table","line","cell","message","time_range"]),ordinal:e.number().int().nonnegative(),locator:a,contentFingerprint:i,language:e.string().min(2).optional(),parentPartRefId:e.string().min(1).optional()}).strict()}).strict(),x=o.extend({kind:e.literal("fragment"),authorityClass:e.literal("truth"),payload:e.object({partRefId:e.string().min(1),stableFragmentId:e.string().min(1),ordinal:e.number().int().nonnegative(),locator:a,contentFingerprint:i,tokenCount:e.number().int().nonnegative(),previousFragmentRefId:e.string().min(1).optional(),nextFragmentRefId:e.string().min(1).optional(),aclRefIds:e.array(e.string().min(1)).min(1)}).strict()}).strict(),S=o.extend({kind:e.literal("evidence"),authorityClass:e.literal("truth"),payload:e.object({sourceVersionRefId:e.string().min(1),assetRefId:e.string().min(1).optional(),partRefId:e.string().min(1),fragmentRefId:e.string().min(1),locator:a,authorizationDecisionRef:e.string().min(1),redactionDecisionRef:e.string().min(1),contentFingerprint:i}).strict()}).strict(),k=[I,h,C,R,x,S];export{C as CompanyIntelligenceAssetRecordSchema,S as CompanyIntelligenceEvidenceRecordSchema,x as CompanyIntelligenceFragmentRecordSchema,k as CompanyIntelligenceLineageRecordSchemas,R as CompanyIntelligencePartRecordSchema,I as CompanyIntelligenceSourceRecordSchema,h as CompanyIntelligenceSourceVersionRecordSchema};
|