@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,169 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CompanyOsKnowledgeFragmentRefSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
ref: z.ZodString;
|
|
5
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
6
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
7
|
+
substrate: z.ZodLiteral<"knowledge">;
|
|
8
|
+
spaceKey: z.ZodOptional<z.ZodString>;
|
|
9
|
+
fragmentId: z.ZodString;
|
|
10
|
+
sourceRef: z.ZodOptional<z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
connectorCapability: z.ZodString;
|
|
13
|
+
providerKey: z.ZodOptional<z.ZodString>;
|
|
14
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
url: z.ZodOptional<z.ZodString>;
|
|
16
|
+
observedAt: z.ZodString;
|
|
17
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
queryEvidenceRef: z.ZodOptional<z.ZodString>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const CompanyOsDataTransmissionRoomRefSchema: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
ref: z.ZodString;
|
|
24
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
25
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
26
|
+
substrate: z.ZodLiteral<"data_transmission">;
|
|
27
|
+
protocolVersion: z.ZodLiteral<"data-transmission.v0">;
|
|
28
|
+
roomId: z.ZodString;
|
|
29
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
30
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const CompanyOsAuthOsActorRefSchema: z.ZodObject<{
|
|
33
|
+
id: z.ZodString;
|
|
34
|
+
ref: z.ZodString;
|
|
35
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
36
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
37
|
+
substrate: z.ZodLiteral<"authos">;
|
|
38
|
+
actorId: z.ZodString;
|
|
39
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
40
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const CompanyOsRbacDecisionRefSchema: z.ZodObject<{
|
|
43
|
+
id: z.ZodString;
|
|
44
|
+
ref: z.ZodString;
|
|
45
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
46
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
47
|
+
substrate: z.ZodLiteral<"rbac">;
|
|
48
|
+
decisionId: z.ZodString;
|
|
49
|
+
verdict: z.ZodEnum<{
|
|
50
|
+
allow: "allow";
|
|
51
|
+
deny: "deny";
|
|
52
|
+
redact: "redact";
|
|
53
|
+
redacted: "redacted";
|
|
54
|
+
requires_review: "requires_review";
|
|
55
|
+
}>;
|
|
56
|
+
permissionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
57
|
+
redactedFieldRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export declare const CompanyOsGraphSubstrateRefSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
ref: z.ZodString;
|
|
62
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
63
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
64
|
+
substrate: z.ZodLiteral<"knowledge">;
|
|
65
|
+
spaceKey: z.ZodOptional<z.ZodString>;
|
|
66
|
+
fragmentId: z.ZodString;
|
|
67
|
+
sourceRef: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
id: z.ZodString;
|
|
69
|
+
connectorCapability: z.ZodString;
|
|
70
|
+
providerKey: z.ZodOptional<z.ZodString>;
|
|
71
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
72
|
+
url: z.ZodOptional<z.ZodString>;
|
|
73
|
+
observedAt: z.ZodString;
|
|
74
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
queryEvidenceRef: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
id: z.ZodString;
|
|
79
|
+
ref: z.ZodString;
|
|
80
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
81
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
82
|
+
substrate: z.ZodLiteral<"data_transmission">;
|
|
83
|
+
protocolVersion: z.ZodLiteral<"data-transmission.v0">;
|
|
84
|
+
roomId: z.ZodString;
|
|
85
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
86
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
id: z.ZodString;
|
|
89
|
+
ref: z.ZodString;
|
|
90
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
91
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
92
|
+
substrate: z.ZodLiteral<"authos">;
|
|
93
|
+
actorId: z.ZodString;
|
|
94
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
95
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
id: z.ZodString;
|
|
98
|
+
ref: z.ZodString;
|
|
99
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
100
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
101
|
+
substrate: z.ZodLiteral<"rbac">;
|
|
102
|
+
decisionId: z.ZodString;
|
|
103
|
+
verdict: z.ZodEnum<{
|
|
104
|
+
allow: "allow";
|
|
105
|
+
deny: "deny";
|
|
106
|
+
redact: "redact";
|
|
107
|
+
redacted: "redacted";
|
|
108
|
+
requires_review: "requires_review";
|
|
109
|
+
}>;
|
|
110
|
+
permissionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
111
|
+
redactedFieldRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>], "substrate">;
|
|
113
|
+
export declare const CompanyOsGraphPermissionAdapterInputSchema: z.ZodObject<{
|
|
114
|
+
actorRef: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
ref: z.ZodString;
|
|
117
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
118
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
119
|
+
substrate: z.ZodLiteral<"authos">;
|
|
120
|
+
actorId: z.ZodString;
|
|
121
|
+
sessionRef: z.ZodOptional<z.ZodString>;
|
|
122
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
rbacDecisionRef: z.ZodObject<{
|
|
125
|
+
id: z.ZodString;
|
|
126
|
+
ref: z.ZodString;
|
|
127
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
128
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
129
|
+
substrate: z.ZodLiteral<"rbac">;
|
|
130
|
+
decisionId: z.ZodString;
|
|
131
|
+
verdict: z.ZodEnum<{
|
|
132
|
+
allow: "allow";
|
|
133
|
+
deny: "deny";
|
|
134
|
+
redact: "redact";
|
|
135
|
+
redacted: "redacted";
|
|
136
|
+
requires_review: "requires_review";
|
|
137
|
+
}>;
|
|
138
|
+
permissionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
139
|
+
redactedFieldRefs: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
resourceRef: z.ZodString;
|
|
142
|
+
sourceAclRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
143
|
+
policyRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
144
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export declare const CompanyOsGraphRealtimeAdapterInputSchema: z.ZodObject<{
|
|
147
|
+
roomRef: z.ZodObject<{
|
|
148
|
+
id: z.ZodString;
|
|
149
|
+
ref: z.ZodString;
|
|
150
|
+
evidenceRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
151
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
152
|
+
substrate: z.ZodLiteral<"data_transmission">;
|
|
153
|
+
protocolVersion: z.ZodLiteral<"data-transmission.v0">;
|
|
154
|
+
roomId: z.ZodString;
|
|
155
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
156
|
+
idempotencyKey: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
changeRef: z.ZodString;
|
|
159
|
+
sequence: z.ZodNumber;
|
|
160
|
+
idempotencyKey: z.ZodString;
|
|
161
|
+
replayRef: z.ZodString;
|
|
162
|
+
}, z.core.$strip>;
|
|
163
|
+
export type CompanyOsKnowledgeFragmentRef = z.infer<typeof CompanyOsKnowledgeFragmentRefSchema>;
|
|
164
|
+
export type CompanyOsDataTransmissionRoomRef = z.infer<typeof CompanyOsDataTransmissionRoomRefSchema>;
|
|
165
|
+
export type CompanyOsAuthOsActorRef = z.infer<typeof CompanyOsAuthOsActorRefSchema>;
|
|
166
|
+
export type CompanyOsRbacDecisionRef = z.infer<typeof CompanyOsRbacDecisionRefSchema>;
|
|
167
|
+
export type CompanyOsGraphSubstrateRef = z.infer<typeof CompanyOsGraphSubstrateRefSchema>;
|
|
168
|
+
export type CompanyOsGraphPermissionAdapterInput = z.infer<typeof CompanyOsGraphPermissionAdapterInputSchema>;
|
|
169
|
+
export type CompanyOsGraphRealtimeAdapterInput = z.infer<typeof CompanyOsGraphRealtimeAdapterInputSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as t}from"zod";var a=t.record(t.string(),t.unknown()),o=t.object({id:t.string().min(1),connectorCapability:t.string().min(1),providerKey:t.string().min(1).optional(),externalId:t.string().min(1).optional(),url:t.string().url().optional(),observedAt:t.string().min(1),metadata:a.default({})}),c=t.object({default:t.string().min(1),translations:t.record(t.string(),t.string()).default({})}),f=t.object({id:t.string().min(1),type:t.string().min(1),label:t.string().min(1).optional()});var n=e.object({id:e.string().min(1),substrate:e.enum(["knowledge","data_transmission","authos","rbac"]),ref:e.string().min(1),evidenceRefIds:e.array(e.string().min(1)).default([]),metadata:a.default({})}),m=n.extend({substrate:e.literal("knowledge"),spaceKey:e.string().min(1).optional(),fragmentId:e.string().min(1),sourceRef:o.optional(),queryEvidenceRef:e.string().min(1).optional()}),r=n.extend({substrate:e.literal("data_transmission"),protocolVersion:e.literal("data-transmission.v0"),roomId:e.string().min(1),cursor:e.string().min(1).optional(),idempotencyKey:e.string().min(1).optional()}),i=n.extend({substrate:e.literal("authos"),actorId:e.string().min(1),sessionRef:e.string().min(1).optional(),tenantId:e.string().min(1).optional()}),s=n.extend({substrate:e.literal("rbac"),decisionId:e.string().min(1),verdict:e.enum(["allow","deny","redacted","redact","requires_review"]),permissionIds:e.array(e.string().min(1)).default([]),redactedFieldRefs:e.array(e.string().min(1)).default([])}),u=e.discriminatedUnion("substrate",[m,r,i,s]),g=e.object({actorRef:i,rbacDecisionRef:s,resourceRef:e.string().min(1),sourceAclRefIds:e.array(e.string().min(1)).default([]),policyRefIds:e.array(e.string().min(1)).default([]),evidenceRefIds:e.array(e.string().min(1)).default([])}),R=e.object({roomRef:r,changeRef:e.string().min(1),sequence:e.number().int().nonnegative(),idempotencyKey:e.string().min(1),replayRef:e.string().min(1)});export{i as CompanyOsAuthOsActorRefSchema,r as CompanyOsDataTransmissionRoomRefSchema,g as CompanyOsGraphPermissionAdapterInputSchema,R as CompanyOsGraphRealtimeAdapterInputSchema,u as CompanyOsGraphSubstrateRefSchema,m as CompanyOsKnowledgeFragmentRefSchema,s as CompanyOsRbacDecisionRefSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ContractSpecProposalLinkSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
title: z.ZodString;
|
|
5
|
+
targetContractRef: z.ZodString;
|
|
6
|
+
sourceFeedbackItemIds: z.ZodArray<z.ZodString>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export type ContractSpecProposalLink = z.infer<typeof ContractSpecProposalLinkSchema>;
|
|
9
|
+
export declare const OperatorInboxItemSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
kind: z.ZodEnum<{
|
|
12
|
+
approval_required: "approval_required";
|
|
13
|
+
blocked_work: "blocked_work";
|
|
14
|
+
contract_proposal: "contract_proposal";
|
|
15
|
+
customer_commitment: "customer_commitment";
|
|
16
|
+
operating_review_item: "operating_review_item";
|
|
17
|
+
risky_reply: "risky_reply";
|
|
18
|
+
}>;
|
|
19
|
+
title: z.ZodString;
|
|
20
|
+
priority: z.ZodEnum<{
|
|
21
|
+
high: "high";
|
|
22
|
+
low: "low";
|
|
23
|
+
medium: "medium";
|
|
24
|
+
}>;
|
|
25
|
+
accountableOwnerPrincipalId: z.ZodString;
|
|
26
|
+
relatedRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
27
|
+
requiredApprovalIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
29
|
+
export type OperatorInboxItem = z.infer<typeof OperatorInboxItemSchema>;
|
|
30
|
+
export declare const OperatingReviewSummarySchema: z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
cadence: z.ZodEnum<{
|
|
33
|
+
daily: "daily";
|
|
34
|
+
monthly: "monthly";
|
|
35
|
+
weekly: "weekly";
|
|
36
|
+
}>;
|
|
37
|
+
summary: z.ZodString;
|
|
38
|
+
feedbackItemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
39
|
+
commitmentIdsAtRisk: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
40
|
+
workItemIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
41
|
+
recommendedActionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type OperatingReviewSummary = z.infer<typeof OperatingReviewSummarySchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as t}from"zod";var r=t.enum(["observe_only","draft_only","recommend","execute_with_approval","execute_within_limits","fully_autonomous_bounded","reserved_human_only"]),a=t.enum(["human","agent","service","external_party"]),m=t.enum(["communication","work_tracking","code_repository","knowledge_source","document_store","crm","analytics","identity","calendar","meeting_recorder","support_desk","messaging_channel"]),i=t.enum(["proposed","accepted","in_progress","blocked","done","cancelled"]),n=t.enum(["approval_required","customer_commitment","risky_reply","blocked_work","contract_proposal","operating_review_item"]);var y=e.object({id:e.string().min(1),title:e.string().min(1),targetContractRef:e.string().min(1),sourceFeedbackItemIds:e.array(e.string().min(1)).min(1)}),d=e.object({id:e.string().min(1),kind:n,title:e.string().min(1),priority:e.enum(["low","medium","high"]),accountableOwnerPrincipalId:e.string().min(1),relatedRefIds:e.array(e.string().min(1)).default([]),requiredApprovalIds:e.array(e.string().min(1)).default([])}),l=e.object({id:e.string().min(1),cadence:e.enum(["daily","weekly","monthly"]),summary:e.string().min(1),feedbackItemIds:e.array(e.string().min(1)).default([]),commitmentIdsAtRisk:e.array(e.string().min(1)).default([]),workItemIds:e.array(e.string().min(1)).default([]),recommendedActionIds:e.array(e.string().min(1)).default([])});export{y as ContractSpecProposalLinkSchema,l as OperatingReviewSummarySchema,d as OperatorInboxItemSchema};
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CompanyOsTemporalValueSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
kind: z.ZodLiteral<"string">;
|
|
4
|
+
value: z.ZodString;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
kind: z.ZodLiteral<"number">;
|
|
7
|
+
value: z.ZodNumber;
|
|
8
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
9
|
+
kind: z.ZodLiteral<"boolean">;
|
|
10
|
+
value: z.ZodBoolean;
|
|
11
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
12
|
+
kind: z.ZodLiteral<"reference">;
|
|
13
|
+
value: z.ZodObject<{
|
|
14
|
+
id: z.ZodString;
|
|
15
|
+
type: z.ZodString;
|
|
16
|
+
label: z.ZodOptional<z.ZodString>;
|
|
17
|
+
}, z.core.$strip>;
|
|
18
|
+
}, z.core.$strip>], "kind">;
|
|
19
|
+
export declare const CompanyOsTemporalAssertionSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
subjectRef: z.ZodObject<{
|
|
22
|
+
id: z.ZodString;
|
|
23
|
+
type: z.ZodString;
|
|
24
|
+
label: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
predicate: z.ZodString;
|
|
27
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
28
|
+
kind: z.ZodLiteral<"string">;
|
|
29
|
+
value: z.ZodString;
|
|
30
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
31
|
+
kind: z.ZodLiteral<"number">;
|
|
32
|
+
value: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
34
|
+
kind: z.ZodLiteral<"boolean">;
|
|
35
|
+
value: z.ZodBoolean;
|
|
36
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
37
|
+
kind: z.ZodLiteral<"reference">;
|
|
38
|
+
value: z.ZodObject<{
|
|
39
|
+
id: z.ZodString;
|
|
40
|
+
type: z.ZodString;
|
|
41
|
+
label: z.ZodOptional<z.ZodString>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
}, z.core.$strip>], "kind">;
|
|
44
|
+
canonicalEntityRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
45
|
+
id: z.ZodString;
|
|
46
|
+
type: z.ZodString;
|
|
47
|
+
label: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>>>;
|
|
49
|
+
sourceRefs: z.ZodArray<z.ZodObject<{
|
|
50
|
+
id: z.ZodString;
|
|
51
|
+
connectorCapability: z.ZodString;
|
|
52
|
+
providerKey: z.ZodOptional<z.ZodString>;
|
|
53
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
54
|
+
url: z.ZodOptional<z.ZodString>;
|
|
55
|
+
observedAt: z.ZodString;
|
|
56
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
57
|
+
}, z.core.$strip>>;
|
|
58
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
59
|
+
reviewDecisionRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
60
|
+
observedAt: z.ZodString;
|
|
61
|
+
validFrom: z.ZodString;
|
|
62
|
+
validTo: z.ZodOptional<z.ZodString>;
|
|
63
|
+
recordedAt: z.ZodString;
|
|
64
|
+
supersedesClaimIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
65
|
+
supersededByClaimIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
66
|
+
contradictionGroupRef: z.ZodOptional<z.ZodString>;
|
|
67
|
+
conflictRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
68
|
+
schemaRef: z.ZodString;
|
|
69
|
+
version: z.ZodString;
|
|
70
|
+
contentFingerprint: z.ZodString;
|
|
71
|
+
replayRef: z.ZodOptional<z.ZodString>;
|
|
72
|
+
derivedConfidence: z.ZodOptional<z.ZodNumber>;
|
|
73
|
+
derivedFreshness: z.ZodOptional<z.ZodEnum<{
|
|
74
|
+
fresh: "fresh";
|
|
75
|
+
stale: "stale";
|
|
76
|
+
unknown: "unknown";
|
|
77
|
+
}>>;
|
|
78
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
79
|
+
}, z.core.$strip>;
|
|
80
|
+
export declare const CompanyOsTemporalAssertionSetSchema: z.ZodObject<{
|
|
81
|
+
schemaVersion: z.ZodLiteral<"companyos.temporal-assertions.v1">;
|
|
82
|
+
assertions: z.ZodArray<z.ZodObject<{
|
|
83
|
+
id: z.ZodString;
|
|
84
|
+
subjectRef: z.ZodObject<{
|
|
85
|
+
id: z.ZodString;
|
|
86
|
+
type: z.ZodString;
|
|
87
|
+
label: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>;
|
|
89
|
+
predicate: z.ZodString;
|
|
90
|
+
value: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
91
|
+
kind: z.ZodLiteral<"string">;
|
|
92
|
+
value: z.ZodString;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
kind: z.ZodLiteral<"number">;
|
|
95
|
+
value: z.ZodNumber;
|
|
96
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
97
|
+
kind: z.ZodLiteral<"boolean">;
|
|
98
|
+
value: z.ZodBoolean;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
kind: z.ZodLiteral<"reference">;
|
|
101
|
+
value: z.ZodObject<{
|
|
102
|
+
id: z.ZodString;
|
|
103
|
+
type: z.ZodString;
|
|
104
|
+
label: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
}, z.core.$strip>], "kind">;
|
|
107
|
+
canonicalEntityRefs: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
108
|
+
id: z.ZodString;
|
|
109
|
+
type: z.ZodString;
|
|
110
|
+
label: z.ZodOptional<z.ZodString>;
|
|
111
|
+
}, z.core.$strip>>>;
|
|
112
|
+
sourceRefs: z.ZodArray<z.ZodObject<{
|
|
113
|
+
id: z.ZodString;
|
|
114
|
+
connectorCapability: z.ZodString;
|
|
115
|
+
providerKey: z.ZodOptional<z.ZodString>;
|
|
116
|
+
externalId: z.ZodOptional<z.ZodString>;
|
|
117
|
+
url: z.ZodOptional<z.ZodString>;
|
|
118
|
+
observedAt: z.ZodString;
|
|
119
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
122
|
+
reviewDecisionRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
123
|
+
observedAt: z.ZodString;
|
|
124
|
+
validFrom: z.ZodString;
|
|
125
|
+
validTo: z.ZodOptional<z.ZodString>;
|
|
126
|
+
recordedAt: z.ZodString;
|
|
127
|
+
supersedesClaimIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
128
|
+
supersededByClaimIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
129
|
+
contradictionGroupRef: z.ZodOptional<z.ZodString>;
|
|
130
|
+
conflictRefIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
131
|
+
schemaRef: z.ZodString;
|
|
132
|
+
version: z.ZodString;
|
|
133
|
+
contentFingerprint: z.ZodString;
|
|
134
|
+
replayRef: z.ZodOptional<z.ZodString>;
|
|
135
|
+
derivedConfidence: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
derivedFreshness: z.ZodOptional<z.ZodEnum<{
|
|
137
|
+
fresh: "fresh";
|
|
138
|
+
stale: "stale";
|
|
139
|
+
unknown: "unknown";
|
|
140
|
+
}>>;
|
|
141
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
142
|
+
}, z.core.$strip>>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type CompanyOsTemporalValue = z.infer<typeof CompanyOsTemporalValueSchema>;
|
|
145
|
+
export type CompanyOsTemporalAssertion = z.infer<typeof CompanyOsTemporalAssertionSchema>;
|
|
146
|
+
export type CompanyOsTemporalAssertionSet = z.infer<typeof CompanyOsTemporalAssertionSetSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as a}from"zod";var s=a.record(a.string(),a.unknown()),i=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:s.default({})}),l=a.object({default:a.string().min(1),translations:a.record(a.string(),a.string()).default({})}),t=a.object({id:a.string().min(1),type:a.string().min(1),label:a.string().min(1).optional()});var o=e.string().datetime({offset:!0}),m=e.discriminatedUnion("kind",[e.object({kind:e.literal("string"),value:e.string()}),e.object({kind:e.literal("number"),value:e.number().finite()}),e.object({kind:e.literal("boolean"),value:e.boolean()}),e.object({kind:e.literal("reference"),value:t})]),p=e.object({id:e.string().min(1),subjectRef:t,predicate:e.string().min(1),value:m,canonicalEntityRefs:e.array(t).default([]),sourceRefs:e.array(i).min(1),evidenceRefIds:e.array(e.string().min(1)).min(1),reviewDecisionRefIds:e.array(e.string().min(1)).default([]),observedAt:o,validFrom:o,validTo:o.optional(),recordedAt:o,supersedesClaimIds:e.array(e.string().min(1)).default([]),supersededByClaimIds:e.array(e.string().min(1)).default([]),contradictionGroupRef:e.string().min(1).optional(),conflictRefIds:e.array(e.string().min(1)).default([]),schemaRef:e.string().min(1),version:e.string().min(1),contentFingerprint:e.string().min(1),replayRef:e.string().min(1).optional(),derivedConfidence:e.number().min(0).max(1).optional(),derivedFreshness:e.enum(["fresh","stale","unknown"]).optional(),metadata:s.default({})}).superRefine((n,r)=>{if(n.validTo&&Date.parse(n.validFrom)>=Date.parse(n.validTo))r.addIssue({code:"custom",path:["validTo"],message:"validTo must be later than validFrom for [validFrom, validTo)"});if(n.supersedesClaimIds.includes(n.id))r.addIssue({code:"custom",path:["supersedesClaimIds"],message:"a temporal assertion cannot supersede itself"});if(n.supersededByClaimIds.includes(n.id))r.addIssue({code:"custom",path:["supersededByClaimIds"],message:"a temporal assertion cannot be superseded by itself"})}),u=e.object({schemaVersion:e.literal("companyos.temporal-assertions.v1"),assertions:e.array(p).min(1)});export{p as CompanyOsTemporalAssertionSchema,u as CompanyOsTemporalAssertionSetSchema,m as CompanyOsTemporalValueSchema};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './temporal-assertion.js';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as a}from"zod";var s=a.record(a.string(),a.unknown()),i=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:s.default({})}),l=a.object({default:a.string().min(1),translations:a.record(a.string(),a.string()).default({})}),t=a.object({id:a.string().min(1),type:a.string().min(1),label:a.string().min(1).optional()});var o=e.string().datetime({offset:!0}),m=e.discriminatedUnion("kind",[e.object({kind:e.literal("string"),value:e.string()}),e.object({kind:e.literal("number"),value:e.number().finite()}),e.object({kind:e.literal("boolean"),value:e.boolean()}),e.object({kind:e.literal("reference"),value:t})]),p=e.object({id:e.string().min(1),subjectRef:t,predicate:e.string().min(1),value:m,canonicalEntityRefs:e.array(t).default([]),sourceRefs:e.array(i).min(1),evidenceRefIds:e.array(e.string().min(1)).min(1),reviewDecisionRefIds:e.array(e.string().min(1)).default([]),observedAt:o,validFrom:o,validTo:o.optional(),recordedAt:o,supersedesClaimIds:e.array(e.string().min(1)).default([]),supersededByClaimIds:e.array(e.string().min(1)).default([]),contradictionGroupRef:e.string().min(1).optional(),conflictRefIds:e.array(e.string().min(1)).default([]),schemaRef:e.string().min(1),version:e.string().min(1),contentFingerprint:e.string().min(1),replayRef:e.string().min(1).optional(),derivedConfidence:e.number().min(0).max(1).optional(),derivedFreshness:e.enum(["fresh","stale","unknown"]).optional(),metadata:s.default({})}).superRefine((n,r)=>{if(n.validTo&&Date.parse(n.validFrom)>=Date.parse(n.validTo))r.addIssue({code:"custom",path:["validTo"],message:"validTo must be later than validFrom for [validFrom, validTo)"});if(n.supersedesClaimIds.includes(n.id))r.addIssue({code:"custom",path:["supersedesClaimIds"],message:"a temporal assertion cannot supersede itself"});if(n.supersededByClaimIds.includes(n.id))r.addIssue({code:"custom",path:["supersededByClaimIds"],message:"a temporal assertion cannot be superseded by itself"})}),u=e.object({schemaVersion:e.literal("companyos.temporal-assertions.v1"),assertions:e.array(p).min(1)});export{p as CompanyOsTemporalAssertionSchema,u as CompanyOsTemporalAssertionSetSchema,m as CompanyOsTemporalValueSchema};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { CompanyOsTemporalAssertion } from './temporal-assertion.js';
|
|
2
|
+
export declare const COMPANY_OS_TEMPORAL_STORE_SCHEMA_VERSION: 'companyos.temporal-store.v1';
|
|
3
|
+
export declare const COMPANY_OS_TEMPORAL_STORE_SCHEMA_IDENTITY: 'companyos.temporal-store.v1|append,commit,query,erasure-tombstone,conflict,recoverable-fault,port|tenant-bound,opaque-version-token,optimistic-concurrency,idempotency,evidence-outbox,immutable-history';
|
|
4
|
+
export declare const COMPANY_OS_TEMPORAL_STORE_SCHEMA_FINGERPRINT: 'sha256:4314fca38c29b0ce613089493f8817fee20c6101b634377ee0e0ca32802f84ac';
|
|
5
|
+
/** Opaque tenant-local optimistic concurrency token. */
|
|
6
|
+
export type CompanyOsTemporalStoreVersion = string & {
|
|
7
|
+
readonly __companyOsTemporalStoreVersion: unique symbol;
|
|
8
|
+
};
|
|
9
|
+
/** Creates the canonical, opaque external token used for optimistic concurrency. */
|
|
10
|
+
export declare function companyOsTemporalStoreVersion(value: string | number): CompanyOsTemporalStoreVersion;
|
|
11
|
+
/** Tenant-bound unit committed atomically by a temporal store implementation. */
|
|
12
|
+
export interface CompanyOsTemporalStoreAppend {
|
|
13
|
+
readonly tenantRef: string;
|
|
14
|
+
readonly assertion: CompanyOsTemporalAssertion;
|
|
15
|
+
readonly expectedVersion: CompanyOsTemporalStoreVersion;
|
|
16
|
+
readonly idempotencyFingerprint: string;
|
|
17
|
+
readonly evidenceReceiptRef: string;
|
|
18
|
+
readonly outboxEventRef: string;
|
|
19
|
+
readonly supersedesAssertionId?: string;
|
|
20
|
+
}
|
|
21
|
+
export interface CompanyOsTemporalStoreCommit {
|
|
22
|
+
readonly status: 'appended' | 'duplicate';
|
|
23
|
+
readonly version: CompanyOsTemporalStoreVersion;
|
|
24
|
+
readonly assertionId: string;
|
|
25
|
+
readonly evidenceReceiptRef: string;
|
|
26
|
+
readonly outboxEventRef: string;
|
|
27
|
+
}
|
|
28
|
+
/** Redaction projection; historical assertion and decision evidence stay immutable. */
|
|
29
|
+
export interface CompanyOsTemporalErasureTombstone {
|
|
30
|
+
readonly tenantRef: string;
|
|
31
|
+
readonly assertionId: string;
|
|
32
|
+
readonly redactedAt: string;
|
|
33
|
+
readonly reasonRef: string;
|
|
34
|
+
}
|
|
35
|
+
export type CompanyOsTemporalStoreConflictCode = 'version_conflict' | 'idempotency_collision' | 'assertion_id_conflict';
|
|
36
|
+
export interface CompanyOsTemporalStoreConflict {
|
|
37
|
+
readonly status: 'conflict';
|
|
38
|
+
readonly code: CompanyOsTemporalStoreConflictCode;
|
|
39
|
+
readonly tenantRef: string;
|
|
40
|
+
readonly currentVersion: CompanyOsTemporalStoreVersion;
|
|
41
|
+
}
|
|
42
|
+
export interface CompanyOsTemporalStoreRecoverableFault {
|
|
43
|
+
readonly status: 'recoverable_fault';
|
|
44
|
+
readonly code: 'atomic_commit_interrupted';
|
|
45
|
+
readonly tenantRef: string;
|
|
46
|
+
readonly reconciliationRef: string;
|
|
47
|
+
}
|
|
48
|
+
export interface CompanyOsTemporalAssertionQuery {
|
|
49
|
+
readonly validAt: string;
|
|
50
|
+
readonly knownAt: string;
|
|
51
|
+
readonly subjectRefId?: string;
|
|
52
|
+
readonly predicate?: string;
|
|
53
|
+
}
|
|
54
|
+
export interface CompanyOsTemporalContradictionGroup {
|
|
55
|
+
readonly contradictionGroupRef: string;
|
|
56
|
+
readonly assertionIds: readonly string[];
|
|
57
|
+
readonly conflictRefIds: readonly string[];
|
|
58
|
+
}
|
|
59
|
+
export interface CompanyOsTemporalAssertionQueryResult {
|
|
60
|
+
readonly assertions: readonly CompanyOsTemporalAssertion[];
|
|
61
|
+
readonly contradictionGroups: readonly CompanyOsTemporalContradictionGroup[];
|
|
62
|
+
readonly supersessionLineages: Readonly<Record<string, readonly string[]>>;
|
|
63
|
+
}
|
|
64
|
+
/** Canonical storage-neutral port implemented by temporal-store adapters. */
|
|
65
|
+
export interface CompanyOsTemporalStorePort {
|
|
66
|
+
append(input: CompanyOsTemporalStoreAppend): CompanyOsTemporalStoreCommit;
|
|
67
|
+
query(tenantRef: string, query: CompanyOsTemporalAssertionQuery): CompanyOsTemporalAssertionQueryResult;
|
|
68
|
+
projectErasure(tombstone: CompanyOsTemporalErasureTombstone): CompanyOsTemporalAssertionQueryResult;
|
|
69
|
+
version(tenantRef: string): CompanyOsTemporalStoreVersion;
|
|
70
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
var r="companyos.temporal-store.v1",n="companyos.temporal-store.v1|append,commit,query,erasure-tombstone,conflict,recoverable-fault,port|tenant-bound,opaque-version-token,optimistic-concurrency,idempotency,evidence-outbox,immutable-history",t="sha256:4314fca38c29b0ce613089493f8817fee20c6101b634377ee0e0ca32802f84ac";function a(o){let e=String(o);if(!/^(0|[1-9]\d*)$/.test(e))throw Error("CompanyOS temporal store version must be a non-negative integer");return e}export{t as COMPANY_OS_TEMPORAL_STORE_SCHEMA_FINGERPRINT,n as COMPANY_OS_TEMPORAL_STORE_SCHEMA_IDENTITY,r as COMPANY_OS_TEMPORAL_STORE_SCHEMA_VERSION,a as companyOsTemporalStoreVersion};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_SCHEMA_VERSION: 'companyos.tenant-governance-envelope.v1';
|
|
3
|
+
export declare const COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_SCHEMA_IDENTITY: 'companyos.tenant-governance-envelope.v1|scope,subjectRef,authority,dataGovernance,idempotency,evidenceReplayRefs,governanceState,createdAt,metadata|server-derived-authority,tenant-workspace-subject-idempotency,evidence-replay-required';
|
|
4
|
+
export declare const COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_SCHEMA_FINGERPRINT: 'sha256:d6f5fd6944c14279351120a212b3580afc4e3781c6ecaea1e89d6d498dc740cf';
|
|
5
|
+
export declare const COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_LEGACY_VERSIONS: readonly ['companyos.tenant-governance-envelope.v0'];
|
|
6
|
+
export declare const CompanyOsTenantGovernanceStateSchema: z.ZodEnum<{
|
|
7
|
+
active: "active";
|
|
8
|
+
migration_required: "migration_required";
|
|
9
|
+
quarantined: "quarantined";
|
|
10
|
+
}>;
|
|
11
|
+
export declare const CompanyOsTenantScopeSchema: z.ZodObject<{
|
|
12
|
+
tenantId: z.ZodString;
|
|
13
|
+
workspaceId: z.ZodString;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export declare const CompanyOsTenantAuthorityContextSchema: z.ZodObject<{
|
|
16
|
+
derivation: z.ZodLiteral<"server_derived">;
|
|
17
|
+
actorPrincipalId: z.ZodString;
|
|
18
|
+
accountableOwnerPrincipalId: z.ZodString;
|
|
19
|
+
authorityEvaluationRefId: z.ZodString;
|
|
20
|
+
rbacDecisionRefId: z.ZodString;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export declare const CompanyOsTenantDataGovernanceSchema: z.ZodObject<{
|
|
23
|
+
residencyRegion: z.ZodString;
|
|
24
|
+
residencyEvidenceRefIds: z.ZodArray<z.ZodString>;
|
|
25
|
+
providerResidencyVerified: z.ZodBoolean;
|
|
26
|
+
retentionPolicyRefId: z.ZodString;
|
|
27
|
+
retainUntil: z.ZodString;
|
|
28
|
+
legalBasis: z.ZodEnum<{
|
|
29
|
+
consent: "consent";
|
|
30
|
+
contract: "contract";
|
|
31
|
+
legal_obligation: "legal_obligation";
|
|
32
|
+
legitimate_interest: "legitimate_interest";
|
|
33
|
+
}>;
|
|
34
|
+
consentRefId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
export declare const CompanyOsTenantIdempotencyScopeSchema: z.ZodObject<{
|
|
37
|
+
key: z.ZodString;
|
|
38
|
+
scope: z.ZodLiteral<"tenant_workspace_subject">;
|
|
39
|
+
tenantId: z.ZodString;
|
|
40
|
+
workspaceId: z.ZodString;
|
|
41
|
+
subjectRefId: z.ZodString;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const CompanyOsTenantEvidenceReplayRefsSchema: z.ZodObject<{
|
|
44
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
45
|
+
replayPacketIds: z.ZodArray<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export declare const CompanyOsTenantGovernanceEnvelopeSchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
schemaVersion: z.ZodLiteral<"companyos.tenant-governance-envelope.v1">;
|
|
50
|
+
policyVersion: z.ZodString;
|
|
51
|
+
scope: z.ZodObject<{
|
|
52
|
+
tenantId: z.ZodString;
|
|
53
|
+
workspaceId: z.ZodString;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
subjectRef: z.ZodObject<{
|
|
56
|
+
id: z.ZodString;
|
|
57
|
+
type: z.ZodString;
|
|
58
|
+
label: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
authority: z.ZodObject<{
|
|
61
|
+
derivation: z.ZodLiteral<"server_derived">;
|
|
62
|
+
actorPrincipalId: z.ZodString;
|
|
63
|
+
accountableOwnerPrincipalId: z.ZodString;
|
|
64
|
+
authorityEvaluationRefId: z.ZodString;
|
|
65
|
+
rbacDecisionRefId: z.ZodString;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
dataGovernance: z.ZodObject<{
|
|
68
|
+
residencyRegion: z.ZodString;
|
|
69
|
+
residencyEvidenceRefIds: z.ZodArray<z.ZodString>;
|
|
70
|
+
providerResidencyVerified: z.ZodBoolean;
|
|
71
|
+
retentionPolicyRefId: z.ZodString;
|
|
72
|
+
retainUntil: z.ZodString;
|
|
73
|
+
legalBasis: z.ZodEnum<{
|
|
74
|
+
consent: "consent";
|
|
75
|
+
contract: "contract";
|
|
76
|
+
legal_obligation: "legal_obligation";
|
|
77
|
+
legitimate_interest: "legitimate_interest";
|
|
78
|
+
}>;
|
|
79
|
+
consentRefId: z.ZodOptional<z.ZodString>;
|
|
80
|
+
}, z.core.$strip>;
|
|
81
|
+
idempotency: z.ZodObject<{
|
|
82
|
+
key: z.ZodString;
|
|
83
|
+
scope: z.ZodLiteral<"tenant_workspace_subject">;
|
|
84
|
+
tenantId: z.ZodString;
|
|
85
|
+
workspaceId: z.ZodString;
|
|
86
|
+
subjectRefId: z.ZodString;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
evidenceReplayRefs: z.ZodObject<{
|
|
89
|
+
evidenceReceiptIds: z.ZodArray<z.ZodString>;
|
|
90
|
+
replayPacketIds: z.ZodArray<z.ZodString>;
|
|
91
|
+
}, z.core.$strip>;
|
|
92
|
+
governanceState: z.ZodLiteral<"active">;
|
|
93
|
+
createdAt: z.ZodString;
|
|
94
|
+
metadata: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export declare const CompanyOsTenantGovernanceDispositionSchema: z.ZodObject<{
|
|
97
|
+
envelopeId: z.ZodOptional<z.ZodString>;
|
|
98
|
+
sourceSchemaVersion: z.ZodOptional<z.ZodString>;
|
|
99
|
+
targetSchemaVersion: z.ZodLiteral<"companyos.tenant-governance-envelope.v1">;
|
|
100
|
+
state: z.ZodEnum<{
|
|
101
|
+
active: "active";
|
|
102
|
+
migration_required: "migration_required";
|
|
103
|
+
quarantined: "quarantined";
|
|
104
|
+
}>;
|
|
105
|
+
reasonCodes: z.ZodArray<z.ZodString>;
|
|
106
|
+
migrationPerformed: z.ZodLiteral<false>;
|
|
107
|
+
persistenceMutationAllowed: z.ZodLiteral<false>;
|
|
108
|
+
assessedAt: z.ZodString;
|
|
109
|
+
}, z.core.$strip>;
|
|
110
|
+
export type CompanyOsTenantScope = z.infer<typeof CompanyOsTenantScopeSchema>;
|
|
111
|
+
export type CompanyOsTenantGovernanceEnvelope = z.infer<typeof CompanyOsTenantGovernanceEnvelopeSchema>;
|
|
112
|
+
export type CompanyOsTenantGovernanceDisposition = z.infer<typeof CompanyOsTenantGovernanceDispositionSchema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as n}from"zod";var i=n.record(n.string(),n.unknown()),u=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:i.default({})}),v=n.object({default:n.string().min(1),translations:n.record(n.string(),n.string()).default({})}),r=n.object({id:n.string().min(1),type:n.string().min(1),label:n.string().min(1).optional()});var s=e.string().datetime({offset:!0}),c="companyos.tenant-governance-envelope.v1",h="companyos.tenant-governance-envelope.v1|scope,subjectRef,authority,dataGovernance,idempotency,evidenceReplayRefs,governanceState,createdAt,metadata|server-derived-authority,tenant-workspace-subject-idempotency,evidence-replay-required",I="sha256:d6f5fd6944c14279351120a212b3580afc4e3781c6ecaea1e89d6d498dc740cf",_=["companyos.tenant-governance-envelope.v0"],d=e.enum(["active","migration_required","quarantined"]),y=e.object({tenantId:e.string().min(1),workspaceId:e.string().min(1)}),l=e.object({derivation:e.literal("server_derived"),actorPrincipalId:e.string().min(1),accountableOwnerPrincipalId:e.string().min(1),authorityEvaluationRefId:e.string().min(1),rbacDecisionRefId:e.string().min(1)}),f=e.object({residencyRegion:e.string().min(1),residencyEvidenceRefIds:e.array(e.string().min(1)).min(1),providerResidencyVerified:e.boolean(),retentionPolicyRefId:e.string().min(1),retainUntil:s,legalBasis:e.enum(["contract","legal_obligation","legitimate_interest","consent"]),consentRefId:e.string().min(1).optional()}).superRefine((t,o)=>{if(t.legalBasis==="consent"&&!t.consentRefId)o.addIssue({code:"custom",path:["consentRefId"],message:"consent legal basis requires a consent reference"})}),g=e.object({key:e.string().min(1),scope:e.literal("tenant_workspace_subject"),tenantId:e.string().min(1),workspaceId:e.string().min(1),subjectRefId:e.string().min(1)}),O=e.object({evidenceReceiptIds:e.array(e.string().min(1)).min(1),replayPacketIds:e.array(e.string().min(1)).min(1)}),x=e.object({id:e.string().min(1),schemaVersion:e.literal(c),policyVersion:e.string().min(1),scope:y,subjectRef:r,authority:l,dataGovernance:f,idempotency:g,evidenceReplayRefs:O,governanceState:e.literal("active"),createdAt:s,metadata:i.default({})}).superRefine((t,o)=>{let p={tenantId:t.scope.tenantId,workspaceId:t.scope.workspaceId,subjectRefId:t.subjectRef.id};for(let[a,m]of Object.entries(p))if(t.idempotency[a]!==m)o.addIssue({code:"custom",path:["idempotency",a],message:`${a} must match the governed envelope scope`})}),N=e.object({envelopeId:e.string().min(1).optional(),sourceSchemaVersion:e.string().min(1).optional(),targetSchemaVersion:e.literal(c),state:d,reasonCodes:e.array(e.string().min(1)).min(1),migrationPerformed:e.literal(!1),persistenceMutationAllowed:e.literal(!1),assessedAt:s});export{_ as COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_LEGACY_VERSIONS,I as COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_SCHEMA_FINGERPRINT,h as COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_SCHEMA_IDENTITY,c as COMPANY_OS_TENANT_GOVERNANCE_ENVELOPE_SCHEMA_VERSION,l as CompanyOsTenantAuthorityContextSchema,f as CompanyOsTenantDataGovernanceSchema,O as CompanyOsTenantEvidenceReplayRefsSchema,N as CompanyOsTenantGovernanceDispositionSchema,x as CompanyOsTenantGovernanceEnvelopeSchema,d as CompanyOsTenantGovernanceStateSchema,g as CompanyOsTenantIdempotencyScopeSchema,y as CompanyOsTenantScopeSchema};
|