@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,652 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CompanyIntelligenceGroundingReasonCodeSchema: z.ZodEnum<{
|
|
3
|
+
authorization_denied: "authorization_denied";
|
|
4
|
+
budget_exceeded: "budget_exceeded";
|
|
5
|
+
conflicting_authorized_evidence: "conflicting_authorized_evidence";
|
|
6
|
+
deadline_exceeded: "deadline_exceeded";
|
|
7
|
+
draft_schema_invalid: "draft_schema_invalid";
|
|
8
|
+
drafting_degraded: "drafting_degraded";
|
|
9
|
+
fixture_adapter_forbidden: "fixture_adapter_forbidden";
|
|
10
|
+
insufficient_claim_support: "insufficient_claim_support";
|
|
11
|
+
no_authorized_evidence: "no_authorized_evidence";
|
|
12
|
+
policy_refused: "policy_refused";
|
|
13
|
+
retrieval_degraded: "retrieval_degraded";
|
|
14
|
+
scope_mismatch: "scope_mismatch";
|
|
15
|
+
stale_authorized_evidence: "stale_authorized_evidence";
|
|
16
|
+
supported: "supported";
|
|
17
|
+
verification_degraded: "verification_degraded";
|
|
18
|
+
verifier_not_independent: "verifier_not_independent";
|
|
19
|
+
}>;
|
|
20
|
+
export type CompanyIntelligenceGroundingReasonCode = z.infer<typeof CompanyIntelligenceGroundingReasonCodeSchema>;
|
|
21
|
+
export declare const CompanyIntelligenceGroundingScopeSchema: z.ZodObject<{
|
|
22
|
+
tenantId: z.ZodString;
|
|
23
|
+
workspaceId: z.ZodString;
|
|
24
|
+
actorRef: z.ZodString;
|
|
25
|
+
viewerRef: z.ZodString;
|
|
26
|
+
capabilityRefs: z.ZodArray<z.ZodString>;
|
|
27
|
+
authorizationDecisionRef: z.ZodString;
|
|
28
|
+
policyDecisionRef: z.ZodOptional<z.ZodString>;
|
|
29
|
+
}, z.core.$strict>;
|
|
30
|
+
export declare const CompanyIntelligenceGroundingBoundsSchema: z.ZodObject<{
|
|
31
|
+
questionBytes: z.ZodNumber;
|
|
32
|
+
filterEntries: z.ZodNumber;
|
|
33
|
+
channelCount: z.ZodNumber;
|
|
34
|
+
perChannelTopK: z.ZodNumber;
|
|
35
|
+
mergedEvidenceRecords: z.ZodNumber;
|
|
36
|
+
excerptBytesPerEvidence: z.ZodNumber;
|
|
37
|
+
totalModelEvidenceBytes: z.ZodNumber;
|
|
38
|
+
maxClaims: z.ZodNumber;
|
|
39
|
+
maxClaimStatementBytes: z.ZodNumber;
|
|
40
|
+
maxCitationsPerClaim: z.ZodNumber;
|
|
41
|
+
maxDraftAttempts: z.ZodLiteral<2>;
|
|
42
|
+
maxVerificationAttempts: z.ZodLiteral<2>;
|
|
43
|
+
maxRetrievalCalls: z.ZodLiteral<3>;
|
|
44
|
+
runDeadlineMs: z.ZodNumber;
|
|
45
|
+
}, z.core.$strict>;
|
|
46
|
+
export declare const CompanyIntelligenceGroundingAtomicClaimSchema: z.ZodObject<{
|
|
47
|
+
claimId: z.ZodString;
|
|
48
|
+
statement: z.ZodString;
|
|
49
|
+
}, z.core.$strict>;
|
|
50
|
+
export declare const CompanyIntelligenceGroundingCitationSchema: z.ZodObject<{
|
|
51
|
+
citationId: z.ZodString;
|
|
52
|
+
evidenceRefId: z.ZodString;
|
|
53
|
+
tenantId: z.ZodString;
|
|
54
|
+
workspaceId: z.ZodString;
|
|
55
|
+
viewerRef: z.ZodString;
|
|
56
|
+
locator: z.ZodObject<{
|
|
57
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
58
|
+
section: z.ZodOptional<z.ZodString>;
|
|
59
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
62
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
64
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
65
|
+
}, z.core.$strict>;
|
|
66
|
+
excerpt: z.ZodString;
|
|
67
|
+
sourceContentFingerprint: z.ZodString;
|
|
68
|
+
viewerProjectionFingerprint: z.ZodString;
|
|
69
|
+
redactionDecisionRef: z.ZodString;
|
|
70
|
+
fusedScoreMicros: z.ZodNumber;
|
|
71
|
+
}, z.core.$strict>;
|
|
72
|
+
export declare const CompanyIntelligenceGroundingClaimSupportSchema: z.ZodObject<{
|
|
73
|
+
claimId: z.ZodString;
|
|
74
|
+
citationIds: z.ZodArray<z.ZodString>;
|
|
75
|
+
verdict: z.ZodLiteral<"supported">;
|
|
76
|
+
confidence: z.ZodNumber;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
export declare const CompanyIntelligenceGroundingStageReceiptSchema: z.ZodObject<{
|
|
79
|
+
drafterIdentity: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
providerRef: z.ZodString;
|
|
81
|
+
modelRef: z.ZodString;
|
|
82
|
+
promptOrRuleVersion: z.ZodString;
|
|
83
|
+
independenceDomain: z.ZodString;
|
|
84
|
+
provenance: z.ZodEnum<{
|
|
85
|
+
fixture: "fixture";
|
|
86
|
+
runtime: "runtime";
|
|
87
|
+
}>;
|
|
88
|
+
}, z.core.$strict>>;
|
|
89
|
+
verifierIdentity: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
providerRef: z.ZodString;
|
|
91
|
+
modelRef: z.ZodString;
|
|
92
|
+
promptOrRuleVersion: z.ZodString;
|
|
93
|
+
independenceDomain: z.ZodString;
|
|
94
|
+
provenance: z.ZodEnum<{
|
|
95
|
+
fixture: "fixture";
|
|
96
|
+
runtime: "runtime";
|
|
97
|
+
}>;
|
|
98
|
+
}, z.core.$strict>>;
|
|
99
|
+
retrievedCitationLedger: z.ZodArray<z.ZodString>;
|
|
100
|
+
callCounts: z.ZodObject<{
|
|
101
|
+
retrieval: z.ZodNumber;
|
|
102
|
+
draft: z.ZodNumber;
|
|
103
|
+
verify: z.ZodNumber;
|
|
104
|
+
}, z.core.$strict>;
|
|
105
|
+
repairCount: z.ZodNumber;
|
|
106
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
107
|
+
fingerprints: z.ZodObject<{
|
|
108
|
+
request: z.ZodString;
|
|
109
|
+
retrieval: z.ZodOptional<z.ZodString>;
|
|
110
|
+
draft: z.ZodOptional<z.ZodString>;
|
|
111
|
+
validation: z.ZodOptional<z.ZodString>;
|
|
112
|
+
verification: z.ZodOptional<z.ZodString>;
|
|
113
|
+
output: z.ZodString;
|
|
114
|
+
replay: z.ZodString;
|
|
115
|
+
}, z.core.$strict>;
|
|
116
|
+
}, z.core.$strict>;
|
|
117
|
+
export declare const CompanyIntelligenceGroundingMetadataSchema: z.ZodObject<{
|
|
118
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
119
|
+
codeVersionRef: z.ZodString;
|
|
120
|
+
retrievalConfigRef: z.ZodString;
|
|
121
|
+
recordedAt: z.ZodISODateTime;
|
|
122
|
+
modelVisibleEvidenceBytes: z.ZodNumber;
|
|
123
|
+
supportThreshold: z.ZodNumber;
|
|
124
|
+
}, z.core.$strict>;
|
|
125
|
+
export declare const CompanyIntelligenceGroundedAnswerResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
126
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
127
|
+
scope: z.ZodObject<{
|
|
128
|
+
tenantId: z.ZodString;
|
|
129
|
+
workspaceId: z.ZodString;
|
|
130
|
+
actorRef: z.ZodString;
|
|
131
|
+
viewerRef: z.ZodString;
|
|
132
|
+
capabilityRefs: z.ZodArray<z.ZodString>;
|
|
133
|
+
authorizationDecisionRef: z.ZodString;
|
|
134
|
+
policyDecisionRef: z.ZodOptional<z.ZodString>;
|
|
135
|
+
}, z.core.$strict>;
|
|
136
|
+
reasonCodes: z.ZodArray<z.ZodEnum<{
|
|
137
|
+
authorization_denied: "authorization_denied";
|
|
138
|
+
budget_exceeded: "budget_exceeded";
|
|
139
|
+
conflicting_authorized_evidence: "conflicting_authorized_evidence";
|
|
140
|
+
deadline_exceeded: "deadline_exceeded";
|
|
141
|
+
draft_schema_invalid: "draft_schema_invalid";
|
|
142
|
+
drafting_degraded: "drafting_degraded";
|
|
143
|
+
fixture_adapter_forbidden: "fixture_adapter_forbidden";
|
|
144
|
+
insufficient_claim_support: "insufficient_claim_support";
|
|
145
|
+
no_authorized_evidence: "no_authorized_evidence";
|
|
146
|
+
policy_refused: "policy_refused";
|
|
147
|
+
retrieval_degraded: "retrieval_degraded";
|
|
148
|
+
scope_mismatch: "scope_mismatch";
|
|
149
|
+
stale_authorized_evidence: "stale_authorized_evidence";
|
|
150
|
+
supported: "supported";
|
|
151
|
+
verification_degraded: "verification_degraded";
|
|
152
|
+
verifier_not_independent: "verifier_not_independent";
|
|
153
|
+
}>>;
|
|
154
|
+
receipt: z.ZodObject<{
|
|
155
|
+
drafterIdentity: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
providerRef: z.ZodString;
|
|
157
|
+
modelRef: z.ZodString;
|
|
158
|
+
promptOrRuleVersion: z.ZodString;
|
|
159
|
+
independenceDomain: z.ZodString;
|
|
160
|
+
provenance: z.ZodEnum<{
|
|
161
|
+
fixture: "fixture";
|
|
162
|
+
runtime: "runtime";
|
|
163
|
+
}>;
|
|
164
|
+
}, z.core.$strict>>;
|
|
165
|
+
verifierIdentity: z.ZodOptional<z.ZodObject<{
|
|
166
|
+
providerRef: z.ZodString;
|
|
167
|
+
modelRef: z.ZodString;
|
|
168
|
+
promptOrRuleVersion: z.ZodString;
|
|
169
|
+
independenceDomain: z.ZodString;
|
|
170
|
+
provenance: z.ZodEnum<{
|
|
171
|
+
fixture: "fixture";
|
|
172
|
+
runtime: "runtime";
|
|
173
|
+
}>;
|
|
174
|
+
}, z.core.$strict>>;
|
|
175
|
+
retrievedCitationLedger: z.ZodArray<z.ZodString>;
|
|
176
|
+
callCounts: z.ZodObject<{
|
|
177
|
+
retrieval: z.ZodNumber;
|
|
178
|
+
draft: z.ZodNumber;
|
|
179
|
+
verify: z.ZodNumber;
|
|
180
|
+
}, z.core.$strict>;
|
|
181
|
+
repairCount: z.ZodNumber;
|
|
182
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
183
|
+
fingerprints: z.ZodObject<{
|
|
184
|
+
request: z.ZodString;
|
|
185
|
+
retrieval: z.ZodOptional<z.ZodString>;
|
|
186
|
+
draft: z.ZodOptional<z.ZodString>;
|
|
187
|
+
validation: z.ZodOptional<z.ZodString>;
|
|
188
|
+
verification: z.ZodOptional<z.ZodString>;
|
|
189
|
+
output: z.ZodString;
|
|
190
|
+
replay: z.ZodString;
|
|
191
|
+
}, z.core.$strict>;
|
|
192
|
+
}, z.core.$strict>;
|
|
193
|
+
metadata: z.ZodObject<{
|
|
194
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
195
|
+
codeVersionRef: z.ZodString;
|
|
196
|
+
retrievalConfigRef: z.ZodString;
|
|
197
|
+
recordedAt: z.ZodISODateTime;
|
|
198
|
+
modelVisibleEvidenceBytes: z.ZodNumber;
|
|
199
|
+
supportThreshold: z.ZodNumber;
|
|
200
|
+
}, z.core.$strict>;
|
|
201
|
+
bounds: z.ZodObject<{
|
|
202
|
+
questionBytes: z.ZodNumber;
|
|
203
|
+
filterEntries: z.ZodNumber;
|
|
204
|
+
channelCount: z.ZodNumber;
|
|
205
|
+
perChannelTopK: z.ZodNumber;
|
|
206
|
+
mergedEvidenceRecords: z.ZodNumber;
|
|
207
|
+
excerptBytesPerEvidence: z.ZodNumber;
|
|
208
|
+
totalModelEvidenceBytes: z.ZodNumber;
|
|
209
|
+
maxClaims: z.ZodNumber;
|
|
210
|
+
maxClaimStatementBytes: z.ZodNumber;
|
|
211
|
+
maxCitationsPerClaim: z.ZodNumber;
|
|
212
|
+
maxDraftAttempts: z.ZodLiteral<2>;
|
|
213
|
+
maxVerificationAttempts: z.ZodLiteral<2>;
|
|
214
|
+
maxRetrievalCalls: z.ZodLiteral<3>;
|
|
215
|
+
runDeadlineMs: z.ZodNumber;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
knowledgeAuthorizesAction: z.ZodLiteral<false>;
|
|
218
|
+
status: z.ZodLiteral<"answered">;
|
|
219
|
+
text: z.ZodString;
|
|
220
|
+
claims: z.ZodArray<z.ZodObject<{
|
|
221
|
+
claimId: z.ZodString;
|
|
222
|
+
statement: z.ZodString;
|
|
223
|
+
}, z.core.$strict>>;
|
|
224
|
+
citations: z.ZodArray<z.ZodObject<{
|
|
225
|
+
citationId: z.ZodString;
|
|
226
|
+
evidenceRefId: z.ZodString;
|
|
227
|
+
tenantId: z.ZodString;
|
|
228
|
+
workspaceId: z.ZodString;
|
|
229
|
+
viewerRef: z.ZodString;
|
|
230
|
+
locator: z.ZodObject<{
|
|
231
|
+
page: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
section: z.ZodOptional<z.ZodString>;
|
|
233
|
+
lineStart: z.ZodOptional<z.ZodNumber>;
|
|
234
|
+
lineEnd: z.ZodOptional<z.ZodNumber>;
|
|
235
|
+
cell: z.ZodOptional<z.ZodString>;
|
|
236
|
+
messageId: z.ZodOptional<z.ZodString>;
|
|
237
|
+
timeStartMs: z.ZodOptional<z.ZodNumber>;
|
|
238
|
+
timeEndMs: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
}, z.core.$strict>;
|
|
240
|
+
excerpt: z.ZodString;
|
|
241
|
+
sourceContentFingerprint: z.ZodString;
|
|
242
|
+
viewerProjectionFingerprint: z.ZodString;
|
|
243
|
+
redactionDecisionRef: z.ZodString;
|
|
244
|
+
fusedScoreMicros: z.ZodNumber;
|
|
245
|
+
}, z.core.$strict>>;
|
|
246
|
+
claimSupport: z.ZodArray<z.ZodObject<{
|
|
247
|
+
claimId: z.ZodString;
|
|
248
|
+
citationIds: z.ZodArray<z.ZodString>;
|
|
249
|
+
verdict: z.ZodLiteral<"supported">;
|
|
250
|
+
confidence: z.ZodNumber;
|
|
251
|
+
}, z.core.$strict>>;
|
|
252
|
+
conflictRefIds: z.ZodArray<z.ZodNever>;
|
|
253
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
254
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
255
|
+
scope: z.ZodObject<{
|
|
256
|
+
tenantId: z.ZodString;
|
|
257
|
+
workspaceId: z.ZodString;
|
|
258
|
+
actorRef: z.ZodString;
|
|
259
|
+
viewerRef: z.ZodString;
|
|
260
|
+
capabilityRefs: z.ZodArray<z.ZodString>;
|
|
261
|
+
authorizationDecisionRef: z.ZodString;
|
|
262
|
+
policyDecisionRef: z.ZodOptional<z.ZodString>;
|
|
263
|
+
}, z.core.$strict>;
|
|
264
|
+
reasonCodes: z.ZodArray<z.ZodEnum<{
|
|
265
|
+
authorization_denied: "authorization_denied";
|
|
266
|
+
budget_exceeded: "budget_exceeded";
|
|
267
|
+
conflicting_authorized_evidence: "conflicting_authorized_evidence";
|
|
268
|
+
deadline_exceeded: "deadline_exceeded";
|
|
269
|
+
draft_schema_invalid: "draft_schema_invalid";
|
|
270
|
+
drafting_degraded: "drafting_degraded";
|
|
271
|
+
fixture_adapter_forbidden: "fixture_adapter_forbidden";
|
|
272
|
+
insufficient_claim_support: "insufficient_claim_support";
|
|
273
|
+
no_authorized_evidence: "no_authorized_evidence";
|
|
274
|
+
policy_refused: "policy_refused";
|
|
275
|
+
retrieval_degraded: "retrieval_degraded";
|
|
276
|
+
scope_mismatch: "scope_mismatch";
|
|
277
|
+
stale_authorized_evidence: "stale_authorized_evidence";
|
|
278
|
+
supported: "supported";
|
|
279
|
+
verification_degraded: "verification_degraded";
|
|
280
|
+
verifier_not_independent: "verifier_not_independent";
|
|
281
|
+
}>>;
|
|
282
|
+
conflictRefIds: z.ZodArray<z.ZodString>;
|
|
283
|
+
receipt: z.ZodObject<{
|
|
284
|
+
drafterIdentity: z.ZodOptional<z.ZodObject<{
|
|
285
|
+
providerRef: z.ZodString;
|
|
286
|
+
modelRef: z.ZodString;
|
|
287
|
+
promptOrRuleVersion: z.ZodString;
|
|
288
|
+
independenceDomain: z.ZodString;
|
|
289
|
+
provenance: z.ZodEnum<{
|
|
290
|
+
fixture: "fixture";
|
|
291
|
+
runtime: "runtime";
|
|
292
|
+
}>;
|
|
293
|
+
}, z.core.$strict>>;
|
|
294
|
+
verifierIdentity: z.ZodOptional<z.ZodObject<{
|
|
295
|
+
providerRef: z.ZodString;
|
|
296
|
+
modelRef: z.ZodString;
|
|
297
|
+
promptOrRuleVersion: z.ZodString;
|
|
298
|
+
independenceDomain: z.ZodString;
|
|
299
|
+
provenance: z.ZodEnum<{
|
|
300
|
+
fixture: "fixture";
|
|
301
|
+
runtime: "runtime";
|
|
302
|
+
}>;
|
|
303
|
+
}, z.core.$strict>>;
|
|
304
|
+
retrievedCitationLedger: z.ZodArray<z.ZodString>;
|
|
305
|
+
callCounts: z.ZodObject<{
|
|
306
|
+
retrieval: z.ZodNumber;
|
|
307
|
+
draft: z.ZodNumber;
|
|
308
|
+
verify: z.ZodNumber;
|
|
309
|
+
}, z.core.$strict>;
|
|
310
|
+
repairCount: z.ZodNumber;
|
|
311
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
312
|
+
fingerprints: z.ZodObject<{
|
|
313
|
+
request: z.ZodString;
|
|
314
|
+
retrieval: z.ZodOptional<z.ZodString>;
|
|
315
|
+
draft: z.ZodOptional<z.ZodString>;
|
|
316
|
+
validation: z.ZodOptional<z.ZodString>;
|
|
317
|
+
verification: z.ZodOptional<z.ZodString>;
|
|
318
|
+
output: z.ZodString;
|
|
319
|
+
replay: z.ZodString;
|
|
320
|
+
}, z.core.$strict>;
|
|
321
|
+
}, z.core.$strict>;
|
|
322
|
+
metadata: z.ZodObject<{
|
|
323
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
324
|
+
codeVersionRef: z.ZodString;
|
|
325
|
+
retrievalConfigRef: z.ZodString;
|
|
326
|
+
recordedAt: z.ZodISODateTime;
|
|
327
|
+
modelVisibleEvidenceBytes: z.ZodNumber;
|
|
328
|
+
supportThreshold: z.ZodNumber;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
bounds: z.ZodObject<{
|
|
331
|
+
questionBytes: z.ZodNumber;
|
|
332
|
+
filterEntries: z.ZodNumber;
|
|
333
|
+
channelCount: z.ZodNumber;
|
|
334
|
+
perChannelTopK: z.ZodNumber;
|
|
335
|
+
mergedEvidenceRecords: z.ZodNumber;
|
|
336
|
+
excerptBytesPerEvidence: z.ZodNumber;
|
|
337
|
+
totalModelEvidenceBytes: z.ZodNumber;
|
|
338
|
+
maxClaims: z.ZodNumber;
|
|
339
|
+
maxClaimStatementBytes: z.ZodNumber;
|
|
340
|
+
maxCitationsPerClaim: z.ZodNumber;
|
|
341
|
+
maxDraftAttempts: z.ZodLiteral<2>;
|
|
342
|
+
maxVerificationAttempts: z.ZodLiteral<2>;
|
|
343
|
+
maxRetrievalCalls: z.ZodLiteral<3>;
|
|
344
|
+
runDeadlineMs: z.ZodNumber;
|
|
345
|
+
}, z.core.$strict>;
|
|
346
|
+
knowledgeAuthorizesAction: z.ZodLiteral<false>;
|
|
347
|
+
text: z.ZodOptional<z.ZodUndefined>;
|
|
348
|
+
claims: z.ZodArray<z.ZodNever>;
|
|
349
|
+
citations: z.ZodArray<z.ZodNever>;
|
|
350
|
+
claimSupport: z.ZodArray<z.ZodNever>;
|
|
351
|
+
status: z.ZodLiteral<"abstained">;
|
|
352
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
353
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
354
|
+
scope: z.ZodObject<{
|
|
355
|
+
tenantId: z.ZodString;
|
|
356
|
+
workspaceId: z.ZodString;
|
|
357
|
+
actorRef: z.ZodString;
|
|
358
|
+
viewerRef: z.ZodString;
|
|
359
|
+
capabilityRefs: z.ZodArray<z.ZodString>;
|
|
360
|
+
authorizationDecisionRef: z.ZodString;
|
|
361
|
+
policyDecisionRef: z.ZodOptional<z.ZodString>;
|
|
362
|
+
}, z.core.$strict>;
|
|
363
|
+
reasonCodes: z.ZodArray<z.ZodEnum<{
|
|
364
|
+
authorization_denied: "authorization_denied";
|
|
365
|
+
budget_exceeded: "budget_exceeded";
|
|
366
|
+
conflicting_authorized_evidence: "conflicting_authorized_evidence";
|
|
367
|
+
deadline_exceeded: "deadline_exceeded";
|
|
368
|
+
draft_schema_invalid: "draft_schema_invalid";
|
|
369
|
+
drafting_degraded: "drafting_degraded";
|
|
370
|
+
fixture_adapter_forbidden: "fixture_adapter_forbidden";
|
|
371
|
+
insufficient_claim_support: "insufficient_claim_support";
|
|
372
|
+
no_authorized_evidence: "no_authorized_evidence";
|
|
373
|
+
policy_refused: "policy_refused";
|
|
374
|
+
retrieval_degraded: "retrieval_degraded";
|
|
375
|
+
scope_mismatch: "scope_mismatch";
|
|
376
|
+
stale_authorized_evidence: "stale_authorized_evidence";
|
|
377
|
+
supported: "supported";
|
|
378
|
+
verification_degraded: "verification_degraded";
|
|
379
|
+
verifier_not_independent: "verifier_not_independent";
|
|
380
|
+
}>>;
|
|
381
|
+
conflictRefIds: z.ZodArray<z.ZodString>;
|
|
382
|
+
receipt: z.ZodObject<{
|
|
383
|
+
drafterIdentity: z.ZodOptional<z.ZodObject<{
|
|
384
|
+
providerRef: z.ZodString;
|
|
385
|
+
modelRef: z.ZodString;
|
|
386
|
+
promptOrRuleVersion: z.ZodString;
|
|
387
|
+
independenceDomain: z.ZodString;
|
|
388
|
+
provenance: z.ZodEnum<{
|
|
389
|
+
fixture: "fixture";
|
|
390
|
+
runtime: "runtime";
|
|
391
|
+
}>;
|
|
392
|
+
}, z.core.$strict>>;
|
|
393
|
+
verifierIdentity: z.ZodOptional<z.ZodObject<{
|
|
394
|
+
providerRef: z.ZodString;
|
|
395
|
+
modelRef: z.ZodString;
|
|
396
|
+
promptOrRuleVersion: z.ZodString;
|
|
397
|
+
independenceDomain: z.ZodString;
|
|
398
|
+
provenance: z.ZodEnum<{
|
|
399
|
+
fixture: "fixture";
|
|
400
|
+
runtime: "runtime";
|
|
401
|
+
}>;
|
|
402
|
+
}, z.core.$strict>>;
|
|
403
|
+
retrievedCitationLedger: z.ZodArray<z.ZodString>;
|
|
404
|
+
callCounts: z.ZodObject<{
|
|
405
|
+
retrieval: z.ZodNumber;
|
|
406
|
+
draft: z.ZodNumber;
|
|
407
|
+
verify: z.ZodNumber;
|
|
408
|
+
}, z.core.$strict>;
|
|
409
|
+
repairCount: z.ZodNumber;
|
|
410
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
411
|
+
fingerprints: z.ZodObject<{
|
|
412
|
+
request: z.ZodString;
|
|
413
|
+
retrieval: z.ZodOptional<z.ZodString>;
|
|
414
|
+
draft: z.ZodOptional<z.ZodString>;
|
|
415
|
+
validation: z.ZodOptional<z.ZodString>;
|
|
416
|
+
verification: z.ZodOptional<z.ZodString>;
|
|
417
|
+
output: z.ZodString;
|
|
418
|
+
replay: z.ZodString;
|
|
419
|
+
}, z.core.$strict>;
|
|
420
|
+
}, z.core.$strict>;
|
|
421
|
+
metadata: z.ZodObject<{
|
|
422
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
423
|
+
codeVersionRef: z.ZodString;
|
|
424
|
+
retrievalConfigRef: z.ZodString;
|
|
425
|
+
recordedAt: z.ZodISODateTime;
|
|
426
|
+
modelVisibleEvidenceBytes: z.ZodNumber;
|
|
427
|
+
supportThreshold: z.ZodNumber;
|
|
428
|
+
}, z.core.$strict>;
|
|
429
|
+
bounds: z.ZodObject<{
|
|
430
|
+
questionBytes: z.ZodNumber;
|
|
431
|
+
filterEntries: z.ZodNumber;
|
|
432
|
+
channelCount: z.ZodNumber;
|
|
433
|
+
perChannelTopK: z.ZodNumber;
|
|
434
|
+
mergedEvidenceRecords: z.ZodNumber;
|
|
435
|
+
excerptBytesPerEvidence: z.ZodNumber;
|
|
436
|
+
totalModelEvidenceBytes: z.ZodNumber;
|
|
437
|
+
maxClaims: z.ZodNumber;
|
|
438
|
+
maxClaimStatementBytes: z.ZodNumber;
|
|
439
|
+
maxCitationsPerClaim: z.ZodNumber;
|
|
440
|
+
maxDraftAttempts: z.ZodLiteral<2>;
|
|
441
|
+
maxVerificationAttempts: z.ZodLiteral<2>;
|
|
442
|
+
maxRetrievalCalls: z.ZodLiteral<3>;
|
|
443
|
+
runDeadlineMs: z.ZodNumber;
|
|
444
|
+
}, z.core.$strict>;
|
|
445
|
+
knowledgeAuthorizesAction: z.ZodLiteral<false>;
|
|
446
|
+
text: z.ZodOptional<z.ZodUndefined>;
|
|
447
|
+
claims: z.ZodArray<z.ZodNever>;
|
|
448
|
+
citations: z.ZodArray<z.ZodNever>;
|
|
449
|
+
claimSupport: z.ZodArray<z.ZodNever>;
|
|
450
|
+
status: z.ZodLiteral<"refused">;
|
|
451
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
452
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
453
|
+
scope: z.ZodObject<{
|
|
454
|
+
tenantId: z.ZodString;
|
|
455
|
+
workspaceId: z.ZodString;
|
|
456
|
+
actorRef: z.ZodString;
|
|
457
|
+
viewerRef: z.ZodString;
|
|
458
|
+
capabilityRefs: z.ZodArray<z.ZodString>;
|
|
459
|
+
authorizationDecisionRef: z.ZodString;
|
|
460
|
+
policyDecisionRef: z.ZodOptional<z.ZodString>;
|
|
461
|
+
}, z.core.$strict>;
|
|
462
|
+
reasonCodes: z.ZodArray<z.ZodEnum<{
|
|
463
|
+
authorization_denied: "authorization_denied";
|
|
464
|
+
budget_exceeded: "budget_exceeded";
|
|
465
|
+
conflicting_authorized_evidence: "conflicting_authorized_evidence";
|
|
466
|
+
deadline_exceeded: "deadline_exceeded";
|
|
467
|
+
draft_schema_invalid: "draft_schema_invalid";
|
|
468
|
+
drafting_degraded: "drafting_degraded";
|
|
469
|
+
fixture_adapter_forbidden: "fixture_adapter_forbidden";
|
|
470
|
+
insufficient_claim_support: "insufficient_claim_support";
|
|
471
|
+
no_authorized_evidence: "no_authorized_evidence";
|
|
472
|
+
policy_refused: "policy_refused";
|
|
473
|
+
retrieval_degraded: "retrieval_degraded";
|
|
474
|
+
scope_mismatch: "scope_mismatch";
|
|
475
|
+
stale_authorized_evidence: "stale_authorized_evidence";
|
|
476
|
+
supported: "supported";
|
|
477
|
+
verification_degraded: "verification_degraded";
|
|
478
|
+
verifier_not_independent: "verifier_not_independent";
|
|
479
|
+
}>>;
|
|
480
|
+
receipt: z.ZodObject<{
|
|
481
|
+
drafterIdentity: z.ZodOptional<z.ZodObject<{
|
|
482
|
+
providerRef: z.ZodString;
|
|
483
|
+
modelRef: z.ZodString;
|
|
484
|
+
promptOrRuleVersion: z.ZodString;
|
|
485
|
+
independenceDomain: z.ZodString;
|
|
486
|
+
provenance: z.ZodEnum<{
|
|
487
|
+
fixture: "fixture";
|
|
488
|
+
runtime: "runtime";
|
|
489
|
+
}>;
|
|
490
|
+
}, z.core.$strict>>;
|
|
491
|
+
verifierIdentity: z.ZodOptional<z.ZodObject<{
|
|
492
|
+
providerRef: z.ZodString;
|
|
493
|
+
modelRef: z.ZodString;
|
|
494
|
+
promptOrRuleVersion: z.ZodString;
|
|
495
|
+
independenceDomain: z.ZodString;
|
|
496
|
+
provenance: z.ZodEnum<{
|
|
497
|
+
fixture: "fixture";
|
|
498
|
+
runtime: "runtime";
|
|
499
|
+
}>;
|
|
500
|
+
}, z.core.$strict>>;
|
|
501
|
+
retrievedCitationLedger: z.ZodArray<z.ZodString>;
|
|
502
|
+
callCounts: z.ZodObject<{
|
|
503
|
+
retrieval: z.ZodNumber;
|
|
504
|
+
draft: z.ZodNumber;
|
|
505
|
+
verify: z.ZodNumber;
|
|
506
|
+
}, z.core.$strict>;
|
|
507
|
+
repairCount: z.ZodNumber;
|
|
508
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
509
|
+
fingerprints: z.ZodObject<{
|
|
510
|
+
request: z.ZodString;
|
|
511
|
+
retrieval: z.ZodOptional<z.ZodString>;
|
|
512
|
+
draft: z.ZodOptional<z.ZodString>;
|
|
513
|
+
validation: z.ZodOptional<z.ZodString>;
|
|
514
|
+
verification: z.ZodOptional<z.ZodString>;
|
|
515
|
+
output: z.ZodString;
|
|
516
|
+
replay: z.ZodString;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
}, z.core.$strict>;
|
|
519
|
+
metadata: z.ZodObject<{
|
|
520
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
521
|
+
codeVersionRef: z.ZodString;
|
|
522
|
+
retrievalConfigRef: z.ZodString;
|
|
523
|
+
recordedAt: z.ZodISODateTime;
|
|
524
|
+
modelVisibleEvidenceBytes: z.ZodNumber;
|
|
525
|
+
supportThreshold: z.ZodNumber;
|
|
526
|
+
}, z.core.$strict>;
|
|
527
|
+
bounds: z.ZodObject<{
|
|
528
|
+
questionBytes: z.ZodNumber;
|
|
529
|
+
filterEntries: z.ZodNumber;
|
|
530
|
+
channelCount: z.ZodNumber;
|
|
531
|
+
perChannelTopK: z.ZodNumber;
|
|
532
|
+
mergedEvidenceRecords: z.ZodNumber;
|
|
533
|
+
excerptBytesPerEvidence: z.ZodNumber;
|
|
534
|
+
totalModelEvidenceBytes: z.ZodNumber;
|
|
535
|
+
maxClaims: z.ZodNumber;
|
|
536
|
+
maxClaimStatementBytes: z.ZodNumber;
|
|
537
|
+
maxCitationsPerClaim: z.ZodNumber;
|
|
538
|
+
maxDraftAttempts: z.ZodLiteral<2>;
|
|
539
|
+
maxVerificationAttempts: z.ZodLiteral<2>;
|
|
540
|
+
maxRetrievalCalls: z.ZodLiteral<3>;
|
|
541
|
+
runDeadlineMs: z.ZodNumber;
|
|
542
|
+
}, z.core.$strict>;
|
|
543
|
+
knowledgeAuthorizesAction: z.ZodLiteral<false>;
|
|
544
|
+
text: z.ZodOptional<z.ZodUndefined>;
|
|
545
|
+
claims: z.ZodArray<z.ZodNever>;
|
|
546
|
+
citations: z.ZodArray<z.ZodNever>;
|
|
547
|
+
claimSupport: z.ZodArray<z.ZodNever>;
|
|
548
|
+
status: z.ZodLiteral<"conflicted">;
|
|
549
|
+
conflictRefIds: z.ZodPipe<z.ZodArray<z.ZodString>, z.ZodArray<z.ZodString>>;
|
|
550
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
551
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
552
|
+
scope: z.ZodObject<{
|
|
553
|
+
tenantId: z.ZodString;
|
|
554
|
+
workspaceId: z.ZodString;
|
|
555
|
+
actorRef: z.ZodString;
|
|
556
|
+
viewerRef: z.ZodString;
|
|
557
|
+
capabilityRefs: z.ZodArray<z.ZodString>;
|
|
558
|
+
authorizationDecisionRef: z.ZodString;
|
|
559
|
+
policyDecisionRef: z.ZodOptional<z.ZodString>;
|
|
560
|
+
}, z.core.$strict>;
|
|
561
|
+
reasonCodes: z.ZodArray<z.ZodEnum<{
|
|
562
|
+
authorization_denied: "authorization_denied";
|
|
563
|
+
budget_exceeded: "budget_exceeded";
|
|
564
|
+
conflicting_authorized_evidence: "conflicting_authorized_evidence";
|
|
565
|
+
deadline_exceeded: "deadline_exceeded";
|
|
566
|
+
draft_schema_invalid: "draft_schema_invalid";
|
|
567
|
+
drafting_degraded: "drafting_degraded";
|
|
568
|
+
fixture_adapter_forbidden: "fixture_adapter_forbidden";
|
|
569
|
+
insufficient_claim_support: "insufficient_claim_support";
|
|
570
|
+
no_authorized_evidence: "no_authorized_evidence";
|
|
571
|
+
policy_refused: "policy_refused";
|
|
572
|
+
retrieval_degraded: "retrieval_degraded";
|
|
573
|
+
scope_mismatch: "scope_mismatch";
|
|
574
|
+
stale_authorized_evidence: "stale_authorized_evidence";
|
|
575
|
+
supported: "supported";
|
|
576
|
+
verification_degraded: "verification_degraded";
|
|
577
|
+
verifier_not_independent: "verifier_not_independent";
|
|
578
|
+
}>>;
|
|
579
|
+
conflictRefIds: z.ZodArray<z.ZodString>;
|
|
580
|
+
receipt: z.ZodObject<{
|
|
581
|
+
drafterIdentity: z.ZodOptional<z.ZodObject<{
|
|
582
|
+
providerRef: z.ZodString;
|
|
583
|
+
modelRef: z.ZodString;
|
|
584
|
+
promptOrRuleVersion: z.ZodString;
|
|
585
|
+
independenceDomain: z.ZodString;
|
|
586
|
+
provenance: z.ZodEnum<{
|
|
587
|
+
fixture: "fixture";
|
|
588
|
+
runtime: "runtime";
|
|
589
|
+
}>;
|
|
590
|
+
}, z.core.$strict>>;
|
|
591
|
+
verifierIdentity: z.ZodOptional<z.ZodObject<{
|
|
592
|
+
providerRef: z.ZodString;
|
|
593
|
+
modelRef: z.ZodString;
|
|
594
|
+
promptOrRuleVersion: z.ZodString;
|
|
595
|
+
independenceDomain: z.ZodString;
|
|
596
|
+
provenance: z.ZodEnum<{
|
|
597
|
+
fixture: "fixture";
|
|
598
|
+
runtime: "runtime";
|
|
599
|
+
}>;
|
|
600
|
+
}, z.core.$strict>>;
|
|
601
|
+
retrievedCitationLedger: z.ZodArray<z.ZodString>;
|
|
602
|
+
callCounts: z.ZodObject<{
|
|
603
|
+
retrieval: z.ZodNumber;
|
|
604
|
+
draft: z.ZodNumber;
|
|
605
|
+
verify: z.ZodNumber;
|
|
606
|
+
}, z.core.$strict>;
|
|
607
|
+
repairCount: z.ZodNumber;
|
|
608
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
609
|
+
fingerprints: z.ZodObject<{
|
|
610
|
+
request: z.ZodString;
|
|
611
|
+
retrieval: z.ZodOptional<z.ZodString>;
|
|
612
|
+
draft: z.ZodOptional<z.ZodString>;
|
|
613
|
+
validation: z.ZodOptional<z.ZodString>;
|
|
614
|
+
verification: z.ZodOptional<z.ZodString>;
|
|
615
|
+
output: z.ZodString;
|
|
616
|
+
replay: z.ZodString;
|
|
617
|
+
}, z.core.$strict>;
|
|
618
|
+
}, z.core.$strict>;
|
|
619
|
+
metadata: z.ZodObject<{
|
|
620
|
+
schemaVersion: z.ZodLiteral<"company-intelligence-grounded-answer:v1">;
|
|
621
|
+
codeVersionRef: z.ZodString;
|
|
622
|
+
retrievalConfigRef: z.ZodString;
|
|
623
|
+
recordedAt: z.ZodISODateTime;
|
|
624
|
+
modelVisibleEvidenceBytes: z.ZodNumber;
|
|
625
|
+
supportThreshold: z.ZodNumber;
|
|
626
|
+
}, z.core.$strict>;
|
|
627
|
+
bounds: z.ZodObject<{
|
|
628
|
+
questionBytes: z.ZodNumber;
|
|
629
|
+
filterEntries: z.ZodNumber;
|
|
630
|
+
channelCount: z.ZodNumber;
|
|
631
|
+
perChannelTopK: z.ZodNumber;
|
|
632
|
+
mergedEvidenceRecords: z.ZodNumber;
|
|
633
|
+
excerptBytesPerEvidence: z.ZodNumber;
|
|
634
|
+
totalModelEvidenceBytes: z.ZodNumber;
|
|
635
|
+
maxClaims: z.ZodNumber;
|
|
636
|
+
maxClaimStatementBytes: z.ZodNumber;
|
|
637
|
+
maxCitationsPerClaim: z.ZodNumber;
|
|
638
|
+
maxDraftAttempts: z.ZodLiteral<2>;
|
|
639
|
+
maxVerificationAttempts: z.ZodLiteral<2>;
|
|
640
|
+
maxRetrievalCalls: z.ZodLiteral<3>;
|
|
641
|
+
runDeadlineMs: z.ZodNumber;
|
|
642
|
+
}, z.core.$strict>;
|
|
643
|
+
knowledgeAuthorizesAction: z.ZodLiteral<false>;
|
|
644
|
+
text: z.ZodOptional<z.ZodUndefined>;
|
|
645
|
+
claims: z.ZodArray<z.ZodNever>;
|
|
646
|
+
citations: z.ZodArray<z.ZodNever>;
|
|
647
|
+
claimSupport: z.ZodArray<z.ZodNever>;
|
|
648
|
+
status: z.ZodLiteral<"degraded">;
|
|
649
|
+
}, z.core.$strict>], "status">;
|
|
650
|
+
export type CompanyIntelligenceGroundingScope = z.infer<typeof CompanyIntelligenceGroundingScopeSchema>;
|
|
651
|
+
export type CompanyIntelligenceGroundingBounds = z.infer<typeof CompanyIntelligenceGroundingBoundsSchema>;
|
|
652
|
+
export type CompanyIntelligenceGroundedAnswerResult = z.infer<typeof CompanyIntelligenceGroundedAnswerResultSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as n}from"zod";import{z as i}from"zod";var h=i.record(i.string(),i.unknown()),q=i.object({id:i.string().min(1),connectorCapability:i.string().min(1),providerKey:i.string().min(1).optional(),externalId:i.string().min(1).optional(),url:i.string().url().optional(),observedAt:i.string().min(1),metadata:h.default({})}),L=i.object({default:i.string().min(1),translations:i.record(i.string(),i.string()).default({})}),d=i.object({id:i.string().min(1),type:i.string().min(1),label:i.string().min(1).optional()});var v="1.0.0",I="company-intelligence-sha256:v1",R="canonical-json:v1",D=n.enum(["truth","policy","proposal","approval","execution","outcome"]),P=n.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"]),r=n.string().regex(/^sha256:[a-f0-9]{64}$/),b=n.object({version:n.literal(I),canonicalization:n.literal(R),value:r}).strict(),S=n.object({from:n.iso.datetime({offset:!0}),to:n.iso.datetime({offset:!0}).optional()}).strict(),_=n.object({reason:n.enum(["source_deleted","acl_revoked","superseded","retention_expired","privacy_request"]),tombstonedAt:n.iso.datetime({offset:!0})}).strict(),g=n.object({page:n.number().int().positive().optional(),section:n.string().min(1).optional(),lineStart:n.number().int().positive().optional(),lineEnd:n.number().int().positive().optional(),cell:n.string().min(1).optional(),messageId:n.string().min(1).optional(),timeStartMs:n.number().int().nonnegative().optional(),timeEndMs:n.number().int().nonnegative().optional()}).strict().refine((o)=>Object.values(o).some((C)=>C!==void 0),{message:"At least one stable evidence locator is required."}),p=n.array(n.string().min(1)).refine((o)=>new Set(o).size===o.length,{message:"Reference ids must be unique."}),c=n.object({contractVersion:n.literal(v),id:n.string().min(1),tenantId:n.string().min(1),ownerRef:d.strict(),recordedAt:n.iso.datetime({offset:!0}),validTime:S,recordRefIds:p.default([]),evidenceRefIds:p.default([]),supersedesRefId:n.string().min(1).optional(),tombstone:_.optional(),fingerprint:b}).strict();import{z as t}from"zod";var l=t.enum(["answered","abstained","refused","conflicted","degraded"]),A=c.extend({kind:t.literal("query"),authorityClass:t.literal("proposal"),payload:t.object({actorRef:t.string().min(1),questionDigest:t.string().regex(/^sha256:[a-f0-9]{64}$/),authorizationDecisionRef:t.string().min(1),retrievalConfigRef:t.string().min(1),requestedAt:t.iso.datetime({offset:!0}),maxEvidenceRecords:t.number().int().positive(),filters:t.record(t.string(),t.string()).default({})}).strict()}).strict(),j=c.extend({kind:t.literal("answer"),authorityClass:t.literal("truth"),payload:t.object({queryRefId:t.string().min(1),status:l,text:t.string().min(1).optional(),claimRefIds:t.array(t.string().min(1)).default([]),citationEvidenceRefIds:t.array(t.string().min(1)).default([]),conflictRefIds:t.array(t.string().min(1)).default([]),retrievalRunRef:t.string().min(1),verificationRefId:t.string().min(1).optional(),policyDecisionRef:t.string().min(1).optional(),graphSnapshotRefId:t.string().min(1).optional(),editionRefId:t.string().min(1).optional(),replayRefId:t.string().min(1),reasons:t.array(t.string().min(1)).default([]),usage:t.object({modelRef:t.string().min(1),promptFingerprint:t.string().regex(/^sha256:[a-f0-9]{64}$/),latencyMs:t.number().int().nonnegative(),costMicros:t.number().int().nonnegative()}).strict(),knowledgeAuthorizesAction:t.literal(!1)}).strict()}).strict(),z=c.extend({kind:t.literal("verification"),authorityClass:t.literal("truth"),payload:t.object({answerRefId:t.string().min(1),verdict:t.enum(["supported","unsupported","blocked"]),claimSupport:t.array(t.object({claimRefId:t.string().min(1),evidenceRefIds:t.array(t.string().min(1)).min(1),verdict:t.enum(["supported","unsupported"]),confidence:t.number().min(0).max(1)}).strict()).default([]),deterministicRefsValidated:t.boolean(),independentVerifierRef:t.string().min(1),verifiedAt:t.iso.datetime({offset:!0})}).strict()}).strict(),Y=[A,j,z];var w=e.enum(["authorization_denied","scope_mismatch","policy_refused","no_authorized_evidence","retrieval_degraded","conflicting_authorized_evidence","stale_authorized_evidence","verifier_not_independent","drafting_degraded","draft_schema_invalid","verification_degraded","insufficient_claim_support","deadline_exceeded","budget_exceeded","fixture_adapter_forbidden","supported"]),s=e.array(e.string().min(1)).refine((o)=>new Set(o).size===o.length,{message:"Values must be unique."}),E=e.object({tenantId:e.string().min(1),workspaceId:e.string().min(1),actorRef:e.string().min(1),viewerRef:e.string().min(1),capabilityRefs:s,authorizationDecisionRef:e.string().min(1),policyDecisionRef:e.string().min(1).optional()}).strict(),G=e.object({questionBytes:e.number().int().positive().max(4096),filterEntries:e.number().int().nonnegative().max(20),channelCount:e.number().int().positive().max(3),perChannelTopK:e.number().int().positive().max(32),mergedEvidenceRecords:e.number().int().positive().max(16),excerptBytesPerEvidence:e.number().int().positive().max(2048),totalModelEvidenceBytes:e.number().int().positive().max(16384),maxClaims:e.number().int().positive().max(8),maxClaimStatementBytes:e.number().int().positive().max(512),maxCitationsPerClaim:e.number().int().positive().max(4),maxDraftAttempts:e.literal(2),maxVerificationAttempts:e.literal(2),maxRetrievalCalls:e.literal(3),runDeadlineMs:e.number().int().positive().max(12000)}).strict(),f=e.object({claimId:e.string().regex(/^clm_sha256:[a-f0-9]{64}$/),statement:e.string().min(1)}).strict(),y=e.object({citationId:e.string().regex(/^cit_sha256:[a-f0-9]{64}$/),evidenceRefId:e.string().min(1),tenantId:e.string().min(1),workspaceId:e.string().min(1),viewerRef:e.string().min(1),locator:g,excerpt:e.string().min(1),sourceContentFingerprint:r,viewerProjectionFingerprint:r,redactionDecisionRef:e.string().min(1),fusedScoreMicros:e.number().int().nonnegative()}).strict(),x=e.object({claimId:e.string().regex(/^clm_sha256:[a-f0-9]{64}$/),citationIds:e.array(e.string().regex(/^cit_sha256:[a-f0-9]{64}$/)).min(1).max(4),verdict:e.literal("supported"),confidence:e.number().min(0).max(1)}).strict(),u=e.object({providerRef:e.string().min(1),modelRef:e.string().min(1),promptOrRuleVersion:e.string().min(1),independenceDomain:e.string().min(1),provenance:e.enum(["runtime","fixture"])}).strict(),O=e.object({request:r,retrieval:r.optional(),draft:r.optional(),validation:r.optional(),verification:r.optional(),output:r,replay:r}).strict(),N=e.object({drafterIdentity:u.optional(),verifierIdentity:u.optional(),retrievedCitationLedger:s,callCounts:e.object({retrieval:e.number().int().nonnegative().max(3),draft:e.number().int().nonnegative().max(2),verify:e.number().int().nonnegative().max(2)}).strict(),repairCount:e.number().int().nonnegative().max(1),warnings:s,fingerprints:O}).strict(),T=e.object({schemaVersion:e.literal("company-intelligence-grounded-answer:v1"),codeVersionRef:e.string().min(1),retrievalConfigRef:e.string().min(1),recordedAt:e.iso.datetime({offset:!0}),modelVisibleEvidenceBytes:e.number().int().nonnegative().max(16384),supportThreshold:e.number().min(0).max(1)}).strict(),a=e.object({schemaVersion:e.literal("company-intelligence-grounded-answer:v1"),scope:E,status:l,reasonCodes:e.array(w).min(1),text:e.string().min(1).optional(),claims:e.array(f),citations:e.array(y),claimSupport:e.array(x),conflictRefIds:s,receipt:N,metadata:T,bounds:G,knowledgeAuthorizesAction:e.literal(!1)}).strict(),m={text:e.undefined().optional(),claims:e.array(e.never()).max(0),citations:e.array(e.never()).max(0),claimSupport:e.array(e.never()).max(0)},W=e.discriminatedUnion("status",[a.extend({status:e.literal("answered"),text:e.string().min(1),claims:e.array(f).min(1).max(8),citations:e.array(y).min(1),claimSupport:e.array(x).min(1),conflictRefIds:e.array(e.never()).max(0)}),a.extend({status:e.literal("abstained"),...m}),a.extend({status:e.literal("refused"),...m}),a.extend({status:e.literal("conflicted"),...m,conflictRefIds:s.pipe(e.array(e.string()).min(1))}),a.extend({status:e.literal("degraded"),...m})]);export{W as CompanyIntelligenceGroundedAnswerResultSchema,f as CompanyIntelligenceGroundingAtomicClaimSchema,G as CompanyIntelligenceGroundingBoundsSchema,y as CompanyIntelligenceGroundingCitationSchema,x as CompanyIntelligenceGroundingClaimSupportSchema,T as CompanyIntelligenceGroundingMetadataSchema,w as CompanyIntelligenceGroundingReasonCodeSchema,E as CompanyIntelligenceGroundingScopeSchema,N as CompanyIntelligenceGroundingStageReceiptSchema};
|