Skip to main content

Crate lenso_contracts

Crate lenso_contracts 

Source
Expand description

Public module-authoring contracts for the Lenso backend framework.

This crate is deliberately smaller than the backend workspace. It exposes stable manifest declarations and lint helpers that module authors can use without depending on internal platform-* crates.

Re-exports§

pub use operation::ServiceOperationIdempotency;
pub use operation::ServiceOperationMetadata;
pub use operation::ServiceOperationSafeProbe;

Modules§

operation

Structs§

AdminAction
AdminActionConfirmation
AdminActionInputField
AdminActionInputSchema
AdminDeclarativePage
AdminDeclarativeSection
AdminDeclarativeSurface
AdminEmbeddedSurface
AdminMetricBinding
AdminSandboxPolicy
AdminSchema
A module’s declared admin surface: which entities it exposes for management.
ArtifactAttestationEvidence
ArtifactReference
AttestationReference
AttestedVerificationReceipt
CatalogApproval
CatalogAttestationTrustPolicy
CatalogContractIssue
CatalogModuleMetadata
CatalogReleaseRecord
CatalogSnapshot
CatalogSnapshotEnvelope
CleanBuildEvidence
ConsoleActionInputBinding
ConsoleContribution
ConsoleModuleManifest
The immutable presentation manifest embedded in a console_ui_esm artifact. Its field names intentionally match the public Console SDK.
ConsoleModuleSurface
ConsoleNavigation
ConsoleNavigationGroup
ConsolePermissionGrant
ConsolePermissionRequest
ConsoleSlot
ConsoleSlotContext
ConsoleSlotContextField
ConsoleSurface
ConsoleUiArtifact
ConsoleUiArtifactEntry
ConsoleUiArtifactStyleAsset
ConsoleWorkspaceRef
CronParseError
CronSchedule
EntitySchema
One manageable entity (e.g. identity’s “users”).
EventHandlerDeclaration
EventSurface
FieldSchema
One field of an entity.
GitHubIdentity
LifecycleActivationJobDeclaration
LifecycleStartupCheckDeclaration
LifecycleSurface
LinkedModuleDelivery
LinkedProvenanceReceipt
ModuleCapabilityReference
ModuleCompatibilityDeclaration
ModuleConfigContract
ModuleConfigField
ModuleConfigValidation
ModuleContractIssue
ModuleEligibility
ModuleHttpRoute
ModuleLifecycleRecord
ModuleLifecycleState
ModuleManifest
The serializable metadata a module exposes. Runtime configuration is part of this contract so a Managed Service can enforce a descriptor-bound System Plane operation without opening a generic key/value seam.
ModuleManifestBuilder
Fluent builder for ModuleManifest. Reusable by every loading source.
ModuleManifestLint
ModuleMigrationDeclaration
ModuleRelease
ModuleRequirement
ModuleRouteLint
ModuleTrustPolicy
ModuleVerificationCell
ModuleVerificationReceipt
PublisherGovernanceDecision
PublisherRecord
RuntimeFunctionDeclaration
RuntimeRetryPolicyDeclaration
RuntimeSurface
ScheduledFunctionDeclaration
ServiceModuleDelivery
StoryDisplayDescriptor
TrustedPublishingEvidence
VerificationCheck
VerificationEvaluation
VerificationProfile
VerificationRevocation
VerificationToolchainEvidence
VerifiedCatalogSnapshot
VerifierIdentity
WorkflowCompatibilityReason
WorkflowCompatibilityResult
WorkflowCompensationDeclaration
WorkflowDataContract
WorkflowDefinition
WorkflowDefinitionReference
WorkflowRetryPolicyDeclaration
WorkflowStepDeclaration

Enums§

AdminActionDangerLevel
AdminDeclarativeComponent
AdminEmbeddedEntry
AdminEmbeddedRuntime
AdminPermission
AdminSurface
A module’s admin surface.
CatalogAction
CompatibilityPolicy
ConsoleActionInputValue
ConsoleContributionAction
ConsoleContributionKind
ConsoleSlotContextFieldType
ConsoleSurfaceArea
ConsoleSurfacePresentation
ConsoleUiArtifactFormat
DeclaredCompatibilityState
FieldType
Minimal field-type vocabulary. Json is the catch-all so any field renders.
LifecycleActivationRunPolicy
LifecycleStartupCheckKind
ModuleConfigActivation
ModuleConfigFieldType
ModuleConfigMutability
ModuleConfigScope
ModuleDelivery
ModuleDeliveryKind
ModuleEligibilityState
ModuleHttpMethod
ModuleLifecycleChange
ModuleLifecycleFacet
ModuleManifestLintSeverity
ModuleMigrationActivation
ModuleRouteLintSeverity
PublisherGovernanceAction
PublisherStatus
SecurityRestorePolicy
ServiceResponsibilityProfile
StaleSnapshotPolicy
StoryDisplaySource
VerificationCheckOutcome
VerificationOperation
VerificationOutcome
VerificationRequirement
VerificationState
WorkflowCompatibilityCategory

Constants§

CATALOG_SNAPSHOT_PROTOCOL
CONSOLE_BRIDGE_PROTOCOL
Retired bridge identifier retained only so older published authoring crates can be rebuilt while their releases are rejected by contract validation.
CONSOLE_MODULE_PROTOCOL
The versioned manifest consumed by the Console ESM loader.
CONSOLE_MODULE_PROTOCOL_MAJOR
The major protocol understood by the current Console ESM loader.
CONSOLE_UI_ESM_FORMAT
The only executable Console artifact format supported by the framework.
LINKED_PROVENANCE_RECEIPT_PROTOCOL
MODULE_MANIFEST_PROTOCOL
MODULE_RELEASE_PROTOCOL
VERIFICATION_PROFILE_PROTOCOL
VERIFICATION_RECEIPT_PROTOCOL
WORKFLOW_COMPATIBILITY_PROTOCOL
WORKFLOW_DEFINITION_PROTOCOL

Functions§

admit_catalog_snapshot
canonical_json
console_contract_vectors
Deterministic positive and negative vectors shared by framework and Console loaders. Negative cases are deliberately represented as complete Module Release documents so each consumer can run its own validator.
console_module_manifest_schema
console_ui_artifact_schema
digest_json
evaluate_module_eligibility
evaluate_publisher_governance
evaluate_workflow_compatibility
Compares two versions of one engine-neutral Workflow Definition.
lifecycle_state
lint_module_http_routes
lint_module_manifest
lint_module_manifest_parts
module_capability_references
module_manifest_schema
module_release_schema
validate_catalog_snapshot
validate_cron_expression
validate_module_config_value
Validates one System Plane configuration write against its immutable Module descriptor. This is deliberately independent of the storage implementation so every Managed Service applies the same type rules.
verification_evaluation
workflow_compatibility_artifact
Stable generated examples for every public Workflow compatibility category.
workflow_definition_schema
Deterministic JSON Schema published for engine-neutral Workflow Definitions.