@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,243 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CompanyMetricMappingProposalV1Schema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
scope: z.ZodObject<{
|
|
5
|
+
tenantId: z.ZodString;
|
|
6
|
+
workspaceId: z.ZodString;
|
|
7
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, z.core.$strip>;
|
|
9
|
+
createdAt: z.ZodString;
|
|
10
|
+
definitionId: z.ZodString;
|
|
11
|
+
definitionVersion: z.ZodNumber;
|
|
12
|
+
status: z.ZodEnum<{
|
|
13
|
+
approved: "approved";
|
|
14
|
+
draft: "draft";
|
|
15
|
+
pending_review: "pending_review";
|
|
16
|
+
rejected: "rejected";
|
|
17
|
+
superseded: "superseded";
|
|
18
|
+
}>;
|
|
19
|
+
mapping: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
20
|
+
samplePreview: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>>>;
|
|
21
|
+
confidence: z.ZodNumber;
|
|
22
|
+
requiredScopes: z.ZodArray<z.ZodString>;
|
|
23
|
+
estimatedCallsPerDay: z.ZodNumber;
|
|
24
|
+
estimatedCostMinor: z.ZodNumber;
|
|
25
|
+
toolRefs: z.ZodArray<z.ZodString>;
|
|
26
|
+
dryRunEvidenceRefIds: z.ZodArray<z.ZodString>;
|
|
27
|
+
reviewedByPrincipalId: z.ZodOptional<z.ZodString>;
|
|
28
|
+
workOrderRef: z.ZodOptional<z.ZodString>;
|
|
29
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export declare const CompanyMetricAlertRuleV1Schema: z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
scope: z.ZodObject<{
|
|
34
|
+
tenantId: z.ZodString;
|
|
35
|
+
workspaceId: z.ZodString;
|
|
36
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
createdAt: z.ZodString;
|
|
39
|
+
metricDefinitionIds: z.ZodArray<z.ZodString>;
|
|
40
|
+
type: z.ZodEnum<{
|
|
41
|
+
growth_threshold: "growth_threshold";
|
|
42
|
+
source_failure: "source_failure";
|
|
43
|
+
source_freshness: "source_freshness";
|
|
44
|
+
value_threshold: "value_threshold";
|
|
45
|
+
}>;
|
|
46
|
+
operator: z.ZodEnum<{
|
|
47
|
+
eq: "eq";
|
|
48
|
+
gt: "gt";
|
|
49
|
+
gte: "gte";
|
|
50
|
+
lt: "lt";
|
|
51
|
+
lte: "lte";
|
|
52
|
+
}>;
|
|
53
|
+
threshold: z.ZodNumber;
|
|
54
|
+
cooldownMinutes: z.ZodNumber;
|
|
55
|
+
status: z.ZodEnum<{
|
|
56
|
+
active: "active";
|
|
57
|
+
paused: "paused";
|
|
58
|
+
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const CompanyMetricDigestPolicyV1Schema: z.ZodObject<{
|
|
61
|
+
id: z.ZodString;
|
|
62
|
+
scope: z.ZodObject<{
|
|
63
|
+
tenantId: z.ZodString;
|
|
64
|
+
workspaceId: z.ZodString;
|
|
65
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
createdAt: z.ZodString;
|
|
68
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
69
|
+
metricDefinitionIds: z.ZodArray<z.ZodString>;
|
|
70
|
+
recipientRefs: z.ZodArray<z.ZodString>;
|
|
71
|
+
locale: z.ZodEnum<{
|
|
72
|
+
en: "en";
|
|
73
|
+
es: "es";
|
|
74
|
+
fr: "fr";
|
|
75
|
+
}>;
|
|
76
|
+
timezone: z.ZodString;
|
|
77
|
+
cadence: z.ZodObject<{
|
|
78
|
+
hour: z.ZodDefault<z.ZodNumber>;
|
|
79
|
+
minute: z.ZodDefault<z.ZodNumber>;
|
|
80
|
+
weekdays: z.ZodArray<z.ZodNumber>;
|
|
81
|
+
}, z.core.$strip>;
|
|
82
|
+
destinations: z.ZodArray<z.ZodEnum<{
|
|
83
|
+
discord: "discord";
|
|
84
|
+
email: "email";
|
|
85
|
+
slack: "slack";
|
|
86
|
+
}>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
export declare const CompanyMetricAccessGrantV1Schema: z.ZodObject<{
|
|
89
|
+
id: z.ZodString;
|
|
90
|
+
scope: z.ZodObject<{
|
|
91
|
+
tenantId: z.ZodString;
|
|
92
|
+
workspaceId: z.ZodString;
|
|
93
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
createdAt: z.ZodString;
|
|
96
|
+
principalRef: z.ZodString;
|
|
97
|
+
mode: z.ZodEnum<{
|
|
98
|
+
expiring_live_grant: "expiring_live_grant";
|
|
99
|
+
published_snapshots: "published_snapshots";
|
|
100
|
+
}>;
|
|
101
|
+
metricDefinitionIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
102
|
+
categories: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
103
|
+
core: "core";
|
|
104
|
+
custom: "custom";
|
|
105
|
+
finance: "finance";
|
|
106
|
+
infrastructure: "infrastructure";
|
|
107
|
+
marketing: "marketing";
|
|
108
|
+
product: "product";
|
|
109
|
+
sales: "sales";
|
|
110
|
+
}>>>;
|
|
111
|
+
expiresAt: z.ZodOptional<z.ZodString>;
|
|
112
|
+
revokedAt: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, z.core.$strip>;
|
|
114
|
+
export declare const CompanyMetricSnapshotV1Schema: z.ZodObject<{
|
|
115
|
+
id: z.ZodString;
|
|
116
|
+
scope: z.ZodObject<{
|
|
117
|
+
tenantId: z.ZodString;
|
|
118
|
+
workspaceId: z.ZodString;
|
|
119
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
createdAt: z.ZodString;
|
|
122
|
+
definitionId: z.ZodString;
|
|
123
|
+
definitionVersion: z.ZodNumber;
|
|
124
|
+
values: z.ZodArray<z.ZodObject<{
|
|
125
|
+
window: z.ZodEnum<{
|
|
126
|
+
last_24_hours: "last_24_hours";
|
|
127
|
+
last_30_days: "last_30_days";
|
|
128
|
+
last_7_days: "last_7_days";
|
|
129
|
+
today: "today";
|
|
130
|
+
}>;
|
|
131
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
132
|
+
previous: z.ZodNullable<z.ZodNumber>;
|
|
133
|
+
absoluteDelta: z.ZodNullable<z.ZodNumber>;
|
|
134
|
+
growthPercent: z.ZodNullable<z.ZodNumber>;
|
|
135
|
+
growthState: z.ZodEnum<{
|
|
136
|
+
available: "available";
|
|
137
|
+
new: "new";
|
|
138
|
+
unavailable: "unavailable";
|
|
139
|
+
}>;
|
|
140
|
+
percentagePointDelta: z.ZodNullable<z.ZodNumber>;
|
|
141
|
+
freshness: z.ZodEnum<{
|
|
142
|
+
fresh: "fresh";
|
|
143
|
+
stale: "stale";
|
|
144
|
+
unavailable: "unavailable";
|
|
145
|
+
}>;
|
|
146
|
+
completeness: z.ZodNumber;
|
|
147
|
+
provisional: z.ZodBoolean;
|
|
148
|
+
comparisonLabel: z.ZodString;
|
|
149
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
150
|
+
currentStart: z.ZodString;
|
|
151
|
+
currentEnd: z.ZodString;
|
|
152
|
+
previousStart: z.ZodString;
|
|
153
|
+
previousEnd: z.ZodString;
|
|
154
|
+
}, z.core.$strip>>;
|
|
155
|
+
fingerprint: z.ZodString;
|
|
156
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export declare const CompanyMetricPublicationV1Schema: z.ZodObject<{
|
|
159
|
+
id: z.ZodString;
|
|
160
|
+
scope: z.ZodObject<{
|
|
161
|
+
tenantId: z.ZodString;
|
|
162
|
+
workspaceId: z.ZodString;
|
|
163
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
createdAt: z.ZodString;
|
|
166
|
+
status: z.ZodEnum<{
|
|
167
|
+
draft: "draft";
|
|
168
|
+
published: "published";
|
|
169
|
+
revoked: "revoked";
|
|
170
|
+
}>;
|
|
171
|
+
snapshotIds: z.ZodArray<z.ZodString>;
|
|
172
|
+
metricVersionFingerprints: z.ZodArray<z.ZodString>;
|
|
173
|
+
visibility: z.ZodEnum<{
|
|
174
|
+
named_recipients: "named_recipients";
|
|
175
|
+
shareholder_scope: "shareholder_scope";
|
|
176
|
+
}>;
|
|
177
|
+
recipientRefs: z.ZodArray<z.ZodString>;
|
|
178
|
+
contentHash: z.ZodString;
|
|
179
|
+
approvalRef: z.ZodOptional<z.ZodString>;
|
|
180
|
+
publishedAt: z.ZodOptional<z.ZodString>;
|
|
181
|
+
revokedAt: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
export declare const CompanyMetricCollectionRunV1Schema: z.ZodObject<{
|
|
184
|
+
id: z.ZodString;
|
|
185
|
+
scope: z.ZodObject<{
|
|
186
|
+
tenantId: z.ZodString;
|
|
187
|
+
workspaceId: z.ZodString;
|
|
188
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
createdAt: z.ZodString;
|
|
191
|
+
bindingId: z.ZodString;
|
|
192
|
+
definitionId: z.ZodString;
|
|
193
|
+
definitionVersion: z.ZodNumber;
|
|
194
|
+
idempotencyKey: z.ZodString;
|
|
195
|
+
status: z.ZodEnum<{
|
|
196
|
+
circuit_open: "circuit_open";
|
|
197
|
+
claimed: "claimed";
|
|
198
|
+
deferred: "deferred";
|
|
199
|
+
failed: "failed";
|
|
200
|
+
running: "running";
|
|
201
|
+
succeeded: "succeeded";
|
|
202
|
+
}>;
|
|
203
|
+
scheduledAt: z.ZodString;
|
|
204
|
+
startedAt: z.ZodOptional<z.ZodString>;
|
|
205
|
+
completedAt: z.ZodOptional<z.ZodString>;
|
|
206
|
+
attempt: z.ZodNumber;
|
|
207
|
+
retryAfter: z.ZodOptional<z.ZodString>;
|
|
208
|
+
failureCode: z.ZodOptional<z.ZodString>;
|
|
209
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
210
|
+
}, z.core.$strip>;
|
|
211
|
+
export declare const CompanyMetricDeliveryReceiptV1Schema: z.ZodObject<{
|
|
212
|
+
id: z.ZodString;
|
|
213
|
+
scope: z.ZodObject<{
|
|
214
|
+
tenantId: z.ZodString;
|
|
215
|
+
workspaceId: z.ZodString;
|
|
216
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
217
|
+
}, z.core.$strip>;
|
|
218
|
+
createdAt: z.ZodString;
|
|
219
|
+
digestPolicyId: z.ZodOptional<z.ZodString>;
|
|
220
|
+
publicationId: z.ZodOptional<z.ZodString>;
|
|
221
|
+
destination: z.ZodEnum<{
|
|
222
|
+
discord: "discord";
|
|
223
|
+
email: "email";
|
|
224
|
+
slack: "slack";
|
|
225
|
+
}>;
|
|
226
|
+
outboxMessageRef: z.ZodString;
|
|
227
|
+
status: z.ZodEnum<{
|
|
228
|
+
delivered: "delivered";
|
|
229
|
+
failed: "failed";
|
|
230
|
+
queued: "queued";
|
|
231
|
+
revoked_before_delivery: "revoked_before_delivery";
|
|
232
|
+
}>;
|
|
233
|
+
deliveredAt: z.ZodOptional<z.ZodString>;
|
|
234
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
235
|
+
}, z.core.$strip>;
|
|
236
|
+
export type CompanyMetricMappingProposalV1 = z.infer<typeof CompanyMetricMappingProposalV1Schema>;
|
|
237
|
+
export type CompanyMetricAlertRuleV1 = z.infer<typeof CompanyMetricAlertRuleV1Schema>;
|
|
238
|
+
export type CompanyMetricDigestPolicyV1 = z.infer<typeof CompanyMetricDigestPolicyV1Schema>;
|
|
239
|
+
export type CompanyMetricAccessGrantV1 = z.infer<typeof CompanyMetricAccessGrantV1Schema>;
|
|
240
|
+
export type CompanyMetricSnapshotV1 = z.infer<typeof CompanyMetricSnapshotV1Schema>;
|
|
241
|
+
export type CompanyMetricPublicationV1 = z.infer<typeof CompanyMetricPublicationV1Schema>;
|
|
242
|
+
export type CompanyMetricCollectionRunV1 = z.infer<typeof CompanyMetricCollectionRunV1Schema>;
|
|
243
|
+
export type CompanyMetricDeliveryReceiptV1 = z.infer<typeof CompanyMetricDeliveryReceiptV1Schema>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{z as e}from"zod";import{z as t}from"zod";var r=t.object({tenantId:t.string().min(1),workspaceId:t.string().min(1),teamId:t.string().min(1).optional()}),a=t.enum(["core","marketing","product","infrastructure","finance","sales","custom"]),m=t.enum(["signup","activation","active_users","customer_churn","user_churn"]),n=t.object({field:t.string().min(1).max(160),operator:t.enum(["eq","not_eq","in","not_in","exists","gt","gte","lt","lte"]),value:t.union([t.string(),t.number(),t.boolean(),t.array(t.union([t.string(),t.number(),t.boolean()])).max(100)]).optional()}),s=t.discriminatedUnion("operator",[t.object({operator:t.literal("count"),filters:t.array(n).max(25).default([])}),t.object({operator:t.literal("distinct"),identityField:t.string().min(1),filters:t.array(n).max(25).default([])}),t.object({operator:t.literal("sum"),valueField:t.string().min(1),filters:t.array(n).max(25).default([])}),t.object({operator:t.literal("ratio"),numeratorFilters:t.array(n).max(25).default([]),denominatorFilters:t.array(n).max(25).default([]),scale:t.number().positive().default(100)}),t.object({operator:t.literal("cohort_loss"),identityField:t.string().min(1),eligibilityAction:t.string().min(1),filters:t.array(n).max(25).default([])})]),c=t.object({id:t.string().min(1),provider:t.enum(["posthog","stripe","postgres_named_query","github","linear","vercel","google_search_console","remote_mcp","http","runtime_node_cli"]),connectionRef:t.string().min(1),approvedOperation:t.string().min(1).optional(),allowedToolNames:t.array(t.string().min(1)).max(50).default([]),inputSchemaRef:t.string().min(1).optional(),expectedCadenceMinutes:t.number().int().min(5).max(1440),freshnessSlaMinutes:t.number().int().min(5).max(10080),evidenceRefIds:t.array(t.string().min(1)).min(1),approvedDefinitionVersion:t.number().int().positive()}),p=t.object({capabilities:t.array(t.enum(["metrics.read_live","metrics.manage","metrics.collect","metrics.publish","metrics.deliver","metrics.audit"])).min(1),teamIds:t.array(t.string().min(1)).default([]),shareholderMode:t.enum(["disabled","published_snapshots","expiring_live_grant"])}),u=t.object({id:t.string().min(1),scope:r,name:t.string().min(1).max(160),category:a,kind:t.discriminatedUnion("type",[t.object({type:t.literal("core"),coreKind:m}),t.object({type:t.literal("custom"),key:t.string().min(1).max(120)})]),aggregation:s,unit:t.string().min(1).max(64),direction:t.enum(["increase","decrease","maintain"]),sourceBindings:t.array(c).min(1),accessPolicy:p,ownerPrincipalId:t.string().min(1),version:t.number().int().positive(),status:t.enum(["draft","active","paused","retired"]),meaningfulAction:t.string().min(1).optional(),createdAt:t.string().datetime(),updatedAt:t.string().datetime()}),l=t.enum(["today","last_24_hours","last_7_days","last_30_days"]),o=t.object({window:l,current:t.number().nullable(),previous:t.number().nullable(),absoluteDelta:t.number().nullable(),growthPercent:t.number().nullable(),growthState:t.enum(["available","new","unavailable"]),percentagePointDelta:t.number().nullable(),freshness:t.enum(["fresh","stale","unavailable"]),completeness:t.number().min(0).max(1),provisional:t.boolean(),comparisonLabel:t.string().min(1),evidenceRefIds:t.array(t.string().min(1)),currentStart:t.string().datetime(),currentEnd:t.string().datetime(),previousStart:t.string().datetime(),previousEnd:t.string().datetime()});var i={id:e.string().min(1),scope:r,createdAt:e.string().datetime()},b=e.object({...i,definitionId:e.string().min(1),definitionVersion:e.number().int().positive(),status:e.enum(["draft","pending_review","approved","rejected","superseded"]),mapping:e.record(e.string(),e.unknown()),samplePreview:e.array(e.record(e.string(),e.union([e.string(),e.number(),e.boolean(),e.null()]))).max(20),confidence:e.number().min(0).max(1),requiredScopes:e.array(e.string().min(1)),estimatedCallsPerDay:e.number().int().nonnegative(),estimatedCostMinor:e.number().int().nonnegative(),toolRefs:e.array(e.string().min(1)).min(1),dryRunEvidenceRefIds:e.array(e.string().min(1)),reviewedByPrincipalId:e.string().min(1).optional(),workOrderRef:e.string().min(1).optional(),expiresAt:e.string().datetime().optional()}),h=e.object({...i,metricDefinitionIds:e.array(e.string().min(1)).min(1),type:e.enum(["value_threshold","growth_threshold","source_freshness","source_failure"]),operator:e.enum(["gt","gte","lt","lte","eq"]),threshold:e.number(),cooldownMinutes:e.number().int().min(5).max(43200),status:e.enum(["active","paused"])}),C=e.object({...i,enabled:e.boolean().default(!1),metricDefinitionIds:e.array(e.string().min(1)).min(1),recipientRefs:e.array(e.string().min(1)).min(1),locale:e.enum(["en","fr","es"]),timezone:e.string().min(1),cadence:e.object({hour:e.number().int().min(0).max(23).default(9),minute:e.number().int().min(0).max(59).default(0),weekdays:e.array(e.number().int().min(0).max(6)).min(1)}),destinations:e.array(e.enum(["email","slack","discord"])).min(1)}),x=e.object({...i,principalRef:e.string().min(1),mode:e.enum(["published_snapshots","expiring_live_grant"]),metricDefinitionIds:e.array(e.string().min(1)).default([]),categories:e.array(a).default([]),expiresAt:e.string().datetime().optional(),revokedAt:e.string().datetime().optional()}),M=e.object({...i,definitionId:e.string().min(1),definitionVersion:e.number().int().positive(),values:e.array(o).length(4),fingerprint:e.string().regex(/^sha256:[a-f0-9]{64}$/),evidenceRefIds:e.array(e.string().min(1))}),V=e.object({...i,status:e.enum(["draft","published","revoked"]),snapshotIds:e.array(e.string().min(1)).min(1),metricVersionFingerprints:e.array(e.string().min(1)).min(1),visibility:e.enum(["shareholder_scope","named_recipients"]),recipientRefs:e.array(e.string().min(1)),contentHash:e.string().regex(/^sha256:[a-f0-9]{64}$/),approvalRef:e.string().min(1).optional(),publishedAt:e.string().datetime().optional(),revokedAt:e.string().datetime().optional()}),v=e.object({...i,bindingId:e.string().min(1),definitionId:e.string().min(1),definitionVersion:e.number().int().positive(),idempotencyKey:e.string().min(1),status:e.enum(["claimed","running","succeeded","failed","deferred","circuit_open"]),scheduledAt:e.string().datetime(),startedAt:e.string().datetime().optional(),completedAt:e.string().datetime().optional(),attempt:e.number().int().positive(),retryAfter:e.string().datetime().optional(),failureCode:e.string().min(1).optional(),evidenceRefIds:e.array(e.string().min(1))}),S=e.object({...i,digestPolicyId:e.string().min(1).optional(),publicationId:e.string().min(1).optional(),destination:e.enum(["email","slack","discord"]),outboxMessageRef:e.string().min(1),status:e.enum(["queued","delivered","failed","revoked_before_delivery"]),deliveredAt:e.string().datetime().optional(),evidenceRefIds:e.array(e.string().min(1))});export{x as CompanyMetricAccessGrantV1Schema,h as CompanyMetricAlertRuleV1Schema,v as CompanyMetricCollectionRunV1Schema,S as CompanyMetricDeliveryReceiptV1Schema,C as CompanyMetricDigestPolicyV1Schema,b as CompanyMetricMappingProposalV1Schema,V as CompanyMetricPublicationV1Schema,M as CompanyMetricSnapshotV1Schema};
|
|
@@ -0,0 +1,421 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CompanyMetricScopeV1Schema: z.ZodObject<{
|
|
3
|
+
tenantId: z.ZodString;
|
|
4
|
+
workspaceId: z.ZodString;
|
|
5
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, z.core.$strip>;
|
|
7
|
+
export type CompanyMetricScopeV1 = z.infer<typeof CompanyMetricScopeV1Schema>;
|
|
8
|
+
export declare const CompanyMetricCategoryV1Schema: z.ZodEnum<{
|
|
9
|
+
core: "core";
|
|
10
|
+
custom: "custom";
|
|
11
|
+
finance: "finance";
|
|
12
|
+
infrastructure: "infrastructure";
|
|
13
|
+
marketing: "marketing";
|
|
14
|
+
product: "product";
|
|
15
|
+
sales: "sales";
|
|
16
|
+
}>;
|
|
17
|
+
export type CompanyMetricCategoryV1 = z.infer<typeof CompanyMetricCategoryV1Schema>;
|
|
18
|
+
export declare const CompanyMetricCoreKindV1Schema: z.ZodEnum<{
|
|
19
|
+
activation: "activation";
|
|
20
|
+
active_users: "active_users";
|
|
21
|
+
customer_churn: "customer_churn";
|
|
22
|
+
signup: "signup";
|
|
23
|
+
user_churn: "user_churn";
|
|
24
|
+
}>;
|
|
25
|
+
export type CompanyMetricCoreKindV1 = z.infer<typeof CompanyMetricCoreKindV1Schema>;
|
|
26
|
+
export declare const CompanyMetricFilterV1Schema: z.ZodObject<{
|
|
27
|
+
field: z.ZodString;
|
|
28
|
+
operator: z.ZodEnum<{
|
|
29
|
+
eq: "eq";
|
|
30
|
+
exists: "exists";
|
|
31
|
+
gt: "gt";
|
|
32
|
+
gte: "gte";
|
|
33
|
+
in: "in";
|
|
34
|
+
lt: "lt";
|
|
35
|
+
lte: "lte";
|
|
36
|
+
not_eq: "not_eq";
|
|
37
|
+
not_in: "not_in";
|
|
38
|
+
}>;
|
|
39
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type CompanyMetricFilterV1 = z.infer<typeof CompanyMetricFilterV1Schema>;
|
|
42
|
+
export declare const CompanyMetricAggregationV1Schema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
43
|
+
operator: z.ZodLiteral<"count">;
|
|
44
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
45
|
+
field: z.ZodString;
|
|
46
|
+
operator: z.ZodEnum<{
|
|
47
|
+
eq: "eq";
|
|
48
|
+
exists: "exists";
|
|
49
|
+
gt: "gt";
|
|
50
|
+
gte: "gte";
|
|
51
|
+
in: "in";
|
|
52
|
+
lt: "lt";
|
|
53
|
+
lte: "lte";
|
|
54
|
+
not_eq: "not_eq";
|
|
55
|
+
not_in: "not_in";
|
|
56
|
+
}>;
|
|
57
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
58
|
+
}, z.core.$strip>>>;
|
|
59
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
60
|
+
operator: z.ZodLiteral<"distinct">;
|
|
61
|
+
identityField: z.ZodString;
|
|
62
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
63
|
+
field: z.ZodString;
|
|
64
|
+
operator: z.ZodEnum<{
|
|
65
|
+
eq: "eq";
|
|
66
|
+
exists: "exists";
|
|
67
|
+
gt: "gt";
|
|
68
|
+
gte: "gte";
|
|
69
|
+
in: "in";
|
|
70
|
+
lt: "lt";
|
|
71
|
+
lte: "lte";
|
|
72
|
+
not_eq: "not_eq";
|
|
73
|
+
not_in: "not_in";
|
|
74
|
+
}>;
|
|
75
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
76
|
+
}, z.core.$strip>>>;
|
|
77
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
78
|
+
operator: z.ZodLiteral<"sum">;
|
|
79
|
+
valueField: z.ZodString;
|
|
80
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
81
|
+
field: z.ZodString;
|
|
82
|
+
operator: z.ZodEnum<{
|
|
83
|
+
eq: "eq";
|
|
84
|
+
exists: "exists";
|
|
85
|
+
gt: "gt";
|
|
86
|
+
gte: "gte";
|
|
87
|
+
in: "in";
|
|
88
|
+
lt: "lt";
|
|
89
|
+
lte: "lte";
|
|
90
|
+
not_eq: "not_eq";
|
|
91
|
+
not_in: "not_in";
|
|
92
|
+
}>;
|
|
93
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
95
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
96
|
+
operator: z.ZodLiteral<"ratio">;
|
|
97
|
+
numeratorFilters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
98
|
+
field: z.ZodString;
|
|
99
|
+
operator: z.ZodEnum<{
|
|
100
|
+
eq: "eq";
|
|
101
|
+
exists: "exists";
|
|
102
|
+
gt: "gt";
|
|
103
|
+
gte: "gte";
|
|
104
|
+
in: "in";
|
|
105
|
+
lt: "lt";
|
|
106
|
+
lte: "lte";
|
|
107
|
+
not_eq: "not_eq";
|
|
108
|
+
not_in: "not_in";
|
|
109
|
+
}>;
|
|
110
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
111
|
+
}, z.core.$strip>>>;
|
|
112
|
+
denominatorFilters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
113
|
+
field: z.ZodString;
|
|
114
|
+
operator: z.ZodEnum<{
|
|
115
|
+
eq: "eq";
|
|
116
|
+
exists: "exists";
|
|
117
|
+
gt: "gt";
|
|
118
|
+
gte: "gte";
|
|
119
|
+
in: "in";
|
|
120
|
+
lt: "lt";
|
|
121
|
+
lte: "lte";
|
|
122
|
+
not_eq: "not_eq";
|
|
123
|
+
not_in: "not_in";
|
|
124
|
+
}>;
|
|
125
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
126
|
+
}, z.core.$strip>>>;
|
|
127
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
128
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
+
operator: z.ZodLiteral<"cohort_loss">;
|
|
130
|
+
identityField: z.ZodString;
|
|
131
|
+
eligibilityAction: z.ZodString;
|
|
132
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
133
|
+
field: z.ZodString;
|
|
134
|
+
operator: z.ZodEnum<{
|
|
135
|
+
eq: "eq";
|
|
136
|
+
exists: "exists";
|
|
137
|
+
gt: "gt";
|
|
138
|
+
gte: "gte";
|
|
139
|
+
in: "in";
|
|
140
|
+
lt: "lt";
|
|
141
|
+
lte: "lte";
|
|
142
|
+
not_eq: "not_eq";
|
|
143
|
+
not_in: "not_in";
|
|
144
|
+
}>;
|
|
145
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
146
|
+
}, z.core.$strip>>>;
|
|
147
|
+
}, z.core.$strip>], "operator">;
|
|
148
|
+
export type CompanyMetricAggregationV1 = z.infer<typeof CompanyMetricAggregationV1Schema>;
|
|
149
|
+
export declare const CompanyMetricSourceBindingV1Schema: z.ZodObject<{
|
|
150
|
+
id: z.ZodString;
|
|
151
|
+
provider: z.ZodEnum<{
|
|
152
|
+
github: "github";
|
|
153
|
+
google_search_console: "google_search_console";
|
|
154
|
+
http: "http";
|
|
155
|
+
linear: "linear";
|
|
156
|
+
postgres_named_query: "postgres_named_query";
|
|
157
|
+
posthog: "posthog";
|
|
158
|
+
remote_mcp: "remote_mcp";
|
|
159
|
+
runtime_node_cli: "runtime_node_cli";
|
|
160
|
+
stripe: "stripe";
|
|
161
|
+
vercel: "vercel";
|
|
162
|
+
}>;
|
|
163
|
+
connectionRef: z.ZodString;
|
|
164
|
+
approvedOperation: z.ZodOptional<z.ZodString>;
|
|
165
|
+
allowedToolNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
166
|
+
inputSchemaRef: z.ZodOptional<z.ZodString>;
|
|
167
|
+
expectedCadenceMinutes: z.ZodNumber;
|
|
168
|
+
freshnessSlaMinutes: z.ZodNumber;
|
|
169
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
170
|
+
approvedDefinitionVersion: z.ZodNumber;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
export type CompanyMetricSourceBindingV1 = z.infer<typeof CompanyMetricSourceBindingV1Schema>;
|
|
173
|
+
export declare const CompanyMetricAccessPolicyV1Schema: z.ZodObject<{
|
|
174
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
175
|
+
"metrics.audit": "metrics.audit";
|
|
176
|
+
"metrics.collect": "metrics.collect";
|
|
177
|
+
"metrics.deliver": "metrics.deliver";
|
|
178
|
+
"metrics.manage": "metrics.manage";
|
|
179
|
+
"metrics.publish": "metrics.publish";
|
|
180
|
+
"metrics.read_live": "metrics.read_live";
|
|
181
|
+
}>>;
|
|
182
|
+
teamIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
183
|
+
shareholderMode: z.ZodEnum<{
|
|
184
|
+
disabled: "disabled";
|
|
185
|
+
expiring_live_grant: "expiring_live_grant";
|
|
186
|
+
published_snapshots: "published_snapshots";
|
|
187
|
+
}>;
|
|
188
|
+
}, z.core.$strip>;
|
|
189
|
+
export declare const CompanyMetricDefinitionV1Schema: z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
scope: z.ZodObject<{
|
|
192
|
+
tenantId: z.ZodString;
|
|
193
|
+
workspaceId: z.ZodString;
|
|
194
|
+
teamId: z.ZodOptional<z.ZodString>;
|
|
195
|
+
}, z.core.$strip>;
|
|
196
|
+
name: z.ZodString;
|
|
197
|
+
category: z.ZodEnum<{
|
|
198
|
+
core: "core";
|
|
199
|
+
custom: "custom";
|
|
200
|
+
finance: "finance";
|
|
201
|
+
infrastructure: "infrastructure";
|
|
202
|
+
marketing: "marketing";
|
|
203
|
+
product: "product";
|
|
204
|
+
sales: "sales";
|
|
205
|
+
}>;
|
|
206
|
+
kind: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
207
|
+
type: z.ZodLiteral<"core">;
|
|
208
|
+
coreKind: z.ZodEnum<{
|
|
209
|
+
activation: "activation";
|
|
210
|
+
active_users: "active_users";
|
|
211
|
+
customer_churn: "customer_churn";
|
|
212
|
+
signup: "signup";
|
|
213
|
+
user_churn: "user_churn";
|
|
214
|
+
}>;
|
|
215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
216
|
+
type: z.ZodLiteral<"custom">;
|
|
217
|
+
key: z.ZodString;
|
|
218
|
+
}, z.core.$strip>], "type">;
|
|
219
|
+
aggregation: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
220
|
+
operator: z.ZodLiteral<"count">;
|
|
221
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
222
|
+
field: z.ZodString;
|
|
223
|
+
operator: z.ZodEnum<{
|
|
224
|
+
eq: "eq";
|
|
225
|
+
exists: "exists";
|
|
226
|
+
gt: "gt";
|
|
227
|
+
gte: "gte";
|
|
228
|
+
in: "in";
|
|
229
|
+
lt: "lt";
|
|
230
|
+
lte: "lte";
|
|
231
|
+
not_eq: "not_eq";
|
|
232
|
+
not_in: "not_in";
|
|
233
|
+
}>;
|
|
234
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
235
|
+
}, z.core.$strip>>>;
|
|
236
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
237
|
+
operator: z.ZodLiteral<"distinct">;
|
|
238
|
+
identityField: z.ZodString;
|
|
239
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
240
|
+
field: z.ZodString;
|
|
241
|
+
operator: z.ZodEnum<{
|
|
242
|
+
eq: "eq";
|
|
243
|
+
exists: "exists";
|
|
244
|
+
gt: "gt";
|
|
245
|
+
gte: "gte";
|
|
246
|
+
in: "in";
|
|
247
|
+
lt: "lt";
|
|
248
|
+
lte: "lte";
|
|
249
|
+
not_eq: "not_eq";
|
|
250
|
+
not_in: "not_in";
|
|
251
|
+
}>;
|
|
252
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
253
|
+
}, z.core.$strip>>>;
|
|
254
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
255
|
+
operator: z.ZodLiteral<"sum">;
|
|
256
|
+
valueField: z.ZodString;
|
|
257
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
258
|
+
field: z.ZodString;
|
|
259
|
+
operator: z.ZodEnum<{
|
|
260
|
+
eq: "eq";
|
|
261
|
+
exists: "exists";
|
|
262
|
+
gt: "gt";
|
|
263
|
+
gte: "gte";
|
|
264
|
+
in: "in";
|
|
265
|
+
lt: "lt";
|
|
266
|
+
lte: "lte";
|
|
267
|
+
not_eq: "not_eq";
|
|
268
|
+
not_in: "not_in";
|
|
269
|
+
}>;
|
|
270
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
271
|
+
}, z.core.$strip>>>;
|
|
272
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
273
|
+
operator: z.ZodLiteral<"ratio">;
|
|
274
|
+
numeratorFilters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
275
|
+
field: z.ZodString;
|
|
276
|
+
operator: z.ZodEnum<{
|
|
277
|
+
eq: "eq";
|
|
278
|
+
exists: "exists";
|
|
279
|
+
gt: "gt";
|
|
280
|
+
gte: "gte";
|
|
281
|
+
in: "in";
|
|
282
|
+
lt: "lt";
|
|
283
|
+
lte: "lte";
|
|
284
|
+
not_eq: "not_eq";
|
|
285
|
+
not_in: "not_in";
|
|
286
|
+
}>;
|
|
287
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
288
|
+
}, z.core.$strip>>>;
|
|
289
|
+
denominatorFilters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
290
|
+
field: z.ZodString;
|
|
291
|
+
operator: z.ZodEnum<{
|
|
292
|
+
eq: "eq";
|
|
293
|
+
exists: "exists";
|
|
294
|
+
gt: "gt";
|
|
295
|
+
gte: "gte";
|
|
296
|
+
in: "in";
|
|
297
|
+
lt: "lt";
|
|
298
|
+
lte: "lte";
|
|
299
|
+
not_eq: "not_eq";
|
|
300
|
+
not_in: "not_in";
|
|
301
|
+
}>;
|
|
302
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
303
|
+
}, z.core.$strip>>>;
|
|
304
|
+
scale: z.ZodDefault<z.ZodNumber>;
|
|
305
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
306
|
+
operator: z.ZodLiteral<"cohort_loss">;
|
|
307
|
+
identityField: z.ZodString;
|
|
308
|
+
eligibilityAction: z.ZodString;
|
|
309
|
+
filters: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
310
|
+
field: z.ZodString;
|
|
311
|
+
operator: z.ZodEnum<{
|
|
312
|
+
eq: "eq";
|
|
313
|
+
exists: "exists";
|
|
314
|
+
gt: "gt";
|
|
315
|
+
gte: "gte";
|
|
316
|
+
in: "in";
|
|
317
|
+
lt: "lt";
|
|
318
|
+
lte: "lte";
|
|
319
|
+
not_eq: "not_eq";
|
|
320
|
+
not_in: "not_in";
|
|
321
|
+
}>;
|
|
322
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>]>>;
|
|
323
|
+
}, z.core.$strip>>>;
|
|
324
|
+
}, z.core.$strip>], "operator">;
|
|
325
|
+
unit: z.ZodString;
|
|
326
|
+
direction: z.ZodEnum<{
|
|
327
|
+
decrease: "decrease";
|
|
328
|
+
increase: "increase";
|
|
329
|
+
maintain: "maintain";
|
|
330
|
+
}>;
|
|
331
|
+
sourceBindings: z.ZodArray<z.ZodObject<{
|
|
332
|
+
id: z.ZodString;
|
|
333
|
+
provider: z.ZodEnum<{
|
|
334
|
+
github: "github";
|
|
335
|
+
google_search_console: "google_search_console";
|
|
336
|
+
http: "http";
|
|
337
|
+
linear: "linear";
|
|
338
|
+
postgres_named_query: "postgres_named_query";
|
|
339
|
+
posthog: "posthog";
|
|
340
|
+
remote_mcp: "remote_mcp";
|
|
341
|
+
runtime_node_cli: "runtime_node_cli";
|
|
342
|
+
stripe: "stripe";
|
|
343
|
+
vercel: "vercel";
|
|
344
|
+
}>;
|
|
345
|
+
connectionRef: z.ZodString;
|
|
346
|
+
approvedOperation: z.ZodOptional<z.ZodString>;
|
|
347
|
+
allowedToolNames: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
348
|
+
inputSchemaRef: z.ZodOptional<z.ZodString>;
|
|
349
|
+
expectedCadenceMinutes: z.ZodNumber;
|
|
350
|
+
freshnessSlaMinutes: z.ZodNumber;
|
|
351
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
352
|
+
approvedDefinitionVersion: z.ZodNumber;
|
|
353
|
+
}, z.core.$strip>>;
|
|
354
|
+
accessPolicy: z.ZodObject<{
|
|
355
|
+
capabilities: z.ZodArray<z.ZodEnum<{
|
|
356
|
+
"metrics.audit": "metrics.audit";
|
|
357
|
+
"metrics.collect": "metrics.collect";
|
|
358
|
+
"metrics.deliver": "metrics.deliver";
|
|
359
|
+
"metrics.manage": "metrics.manage";
|
|
360
|
+
"metrics.publish": "metrics.publish";
|
|
361
|
+
"metrics.read_live": "metrics.read_live";
|
|
362
|
+
}>>;
|
|
363
|
+
teamIds: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
364
|
+
shareholderMode: z.ZodEnum<{
|
|
365
|
+
disabled: "disabled";
|
|
366
|
+
expiring_live_grant: "expiring_live_grant";
|
|
367
|
+
published_snapshots: "published_snapshots";
|
|
368
|
+
}>;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
ownerPrincipalId: z.ZodString;
|
|
371
|
+
version: z.ZodNumber;
|
|
372
|
+
status: z.ZodEnum<{
|
|
373
|
+
active: "active";
|
|
374
|
+
draft: "draft";
|
|
375
|
+
paused: "paused";
|
|
376
|
+
retired: "retired";
|
|
377
|
+
}>;
|
|
378
|
+
meaningfulAction: z.ZodOptional<z.ZodString>;
|
|
379
|
+
createdAt: z.ZodString;
|
|
380
|
+
updatedAt: z.ZodString;
|
|
381
|
+
}, z.core.$strip>;
|
|
382
|
+
export type CompanyMetricDefinitionV1 = z.infer<typeof CompanyMetricDefinitionV1Schema>;
|
|
383
|
+
export declare const CompanyMetricWindowKeyV1Schema: z.ZodEnum<{
|
|
384
|
+
last_24_hours: "last_24_hours";
|
|
385
|
+
last_30_days: "last_30_days";
|
|
386
|
+
last_7_days: "last_7_days";
|
|
387
|
+
today: "today";
|
|
388
|
+
}>;
|
|
389
|
+
export type CompanyMetricWindowKeyV1 = z.infer<typeof CompanyMetricWindowKeyV1Schema>;
|
|
390
|
+
export declare const CompanyMetricWindowValueV1Schema: z.ZodObject<{
|
|
391
|
+
window: z.ZodEnum<{
|
|
392
|
+
last_24_hours: "last_24_hours";
|
|
393
|
+
last_30_days: "last_30_days";
|
|
394
|
+
last_7_days: "last_7_days";
|
|
395
|
+
today: "today";
|
|
396
|
+
}>;
|
|
397
|
+
current: z.ZodNullable<z.ZodNumber>;
|
|
398
|
+
previous: z.ZodNullable<z.ZodNumber>;
|
|
399
|
+
absoluteDelta: z.ZodNullable<z.ZodNumber>;
|
|
400
|
+
growthPercent: z.ZodNullable<z.ZodNumber>;
|
|
401
|
+
growthState: z.ZodEnum<{
|
|
402
|
+
available: "available";
|
|
403
|
+
new: "new";
|
|
404
|
+
unavailable: "unavailable";
|
|
405
|
+
}>;
|
|
406
|
+
percentagePointDelta: z.ZodNullable<z.ZodNumber>;
|
|
407
|
+
freshness: z.ZodEnum<{
|
|
408
|
+
fresh: "fresh";
|
|
409
|
+
stale: "stale";
|
|
410
|
+
unavailable: "unavailable";
|
|
411
|
+
}>;
|
|
412
|
+
completeness: z.ZodNumber;
|
|
413
|
+
provisional: z.ZodBoolean;
|
|
414
|
+
comparisonLabel: z.ZodString;
|
|
415
|
+
evidenceRefIds: z.ZodArray<z.ZodString>;
|
|
416
|
+
currentStart: z.ZodString;
|
|
417
|
+
currentEnd: z.ZodString;
|
|
418
|
+
previousStart: z.ZodString;
|
|
419
|
+
previousEnd: z.ZodString;
|
|
420
|
+
}, z.core.$strip>;
|
|
421
|
+
export type CompanyMetricWindowValueV1 = z.infer<typeof CompanyMetricWindowValueV1Schema>;
|