Skip to main content

Crate core_api

Crate core_api 

Source

Modules§

backend
Transport-neutral physical byte repository metadata. No Folder policy.
client_identity
Authenticated application identity, independent of transport and device form.
decimal_u64
device_binding
Durable identity of a fixed-Space product. Business credentials remain private to its Client. A dependent Host reads this binding, never a second claim.
error
Stable failures; callers never infer behavior from diagnostic text.
execution_budget
Transport metadata, independent of business inputs and Facade authorization control. Each hop sends remaining milliseconds and anchors them to its own monotonic clock. Zero means expired; absence preserves the receiver’s existing local policy.
extension_preview
Complete development material. Provider values travel separately and never enter the snapshot.
extension_sources
Space-owned Integration source selection. A source identity is not authority. Preview bytes remain on the bound Hub; published bytes remain in the registry.
host
Host observations, runtime management and User authorization contracts.
ingress
Transport-independent ingress rules. Identity always comes from the authenticated host session.
interaction_flow
Canonical Interaction Flow definition and Core-to-Node wire contract.
local_client
Lion-issued local credentials. Signature, issuer, audience and lifetime must be checked by the Core before these claims become an authenticated identity.
messaging
node
optional_decimal_u64
Nullable byte limits use the same lossless wire representation as other management counts.
plugin_contributions
Installed Plugin contribution transport. These declarations grant no operation authority.
plugin_operations
Core-owned context for a declared public operation. Never part of business arguments.
plugin_preview
Local native Preview content. Host provenance is separate from publisher trust.
plugin_publication
Platform-attested community releases. Parse only after verifying the enclosing release signature; a source manifest cannot grant this provenance to itself.
resource_transfer
Bounded temporary text resources. References are always resolved within the caller’s Space.
runtime_space
Device runtime admission, independent of user permissions and Node topology.
space_access
Space business authorization after credential verification.
timeouts
Static operation budgets shared by execution hosts and callers. Wait profiles only bound receiving a reply; their grace must never extend execution.
webhook
Transport-neutral webhook body contract shared by desktop and embedded hosts.

Structs§

ArtifactDeliveryProjectionRequest
ArtifactDeliveryProjectionResponse
ArtifactUploadProjectionRequest
ArtifactUploadProjectionResponse
AuthConfig
AuthRequest
AuthenticatedSession
CleanupWsStateRequest
ClientIds
CompleteExternalCoreEventsRequest
CompleteExternalCoreEventsResponse
EndpointPayloadRequest
ErrorResponse
ExternalArtifactReadDescriptor
ExternalArtifactRequestContext
ExternalArtifactUploadDescriptor
ExternalAuthorizeArtifactReadRequest
ExternalAuthorizeArtifactUploadRequest
ExternalCommitArtifactUploadRequest
ExternalCoreDeviceIdentity
ExternalCoreError
ExternalCoreEvent
ExternalCoreEventCompletion
ExternalCoreHealth
ExternalCoreMdnsRecord
ExternalCoreRequest
ExternalCoreResponse
ExternalCoreRuntimeMetadata
ExternalHostRuntimeRequest
A platform capability request emitted by an externally hosted Core.
ExternalOpenArtifactRequest
ExternalPutArtifactRequest
ExternalServiceAppFacadeRequest
An App Facade request delegated by an externally hosted Core to the application service that owns the target’s business logic.
HandleCoreInputRequest
HandleCoreInputResponse
HostDeliveryRequest
HttpPayloadRequest
HttpPayloadResponse
A completed JSON HTTP handler response, including non-2xx responses. This is an RPC result, not an RPC error. Hosts must preserve both fields.
HubConnectionProofRequest
HubConnectionProofResponse
HubMdnsInstanceRecord
ListMdnsRecordsRequest
MessagingDeliveryRequest
Messaging-only Core -> Host request. A successful response means delivery was accepted by the provider implementation, not merely queued in the Core event pump or read by a user.
MessagingDeliveryResponse
MwsClientInfo
MwsMessage
MwsMessageType
MwsSource
NodeAuthRequest
NodeAuthResponse
NodeBindingMetadata
Verified binding state. Persisted with the binding, usable without Host/CDN access.
NodeChallengeEvidence
NodeChallengePayload
NodeCommissioningAcceptRequest
NodeCommissioningAcceptResponse
NodeCommissioningErrorResponse
NodeCommissioningPrepareRequest
NodeCommissioningPrepareResponse
NodeCommissioningStatusRequest
NodeCommissioningStatusResponse
NodeDescribeRequest
NodeDescription
NodeInstanceListItem
NodeInstanceListResponse
NodeMetadata
NodeOnboardingStartRequest
NodeOnboardingStartResponse
NodePreflightError
NodePreflightReadiness
NodeReadinessReason
NodeReadinessRequest
NodeReadinessSnapshot
NodeReleaseManifestBundle
NodeTokenIssueRequest
NodeTokenIssueResponse
NodeTokenListItem
NodeTokenListResponse
NodeTokenRevokeRequest
NodeTokenRevokeResponse
ObjectStorageBackend
ObjectStorageCreateFolderRequest
Idempotent creation of an immutable logical path in the caller’s namespace.
ObjectStorageDeleteFolderRequest
ObjectStorageDeleteFolderResponse
ObjectStorageFilesystemCapacity
ObjectStorageFolder
ObjectStorageFolderIdRequest
ObjectStorageFolderList
ObjectStorageFolderQuota
ObjectStorageOverview
ObjectStorageSafety
ObjectStorageSession
ObjectStorageSessionRequest
ObjectStorageSetFolderLimitRequest
Set or clear the shared subtree limit. Last successfully committed setting wins.
ObjectStorageUsage
PluginDefinition
PollExternalCoreEventsRequest
PollExternalCoreEventsResponse
RecipientId
RecipientIdError
RegisterLocalAppClientRequest
RegisterNodeConnectionRequest
ServiceAppClientProjection
A service-owned AppClient materialized from an authoritative external model. This boundary intentionally carries no acting user: authorization belongs to the service that owns the source model, while Core validates the projection.
ServiceAppClientProjectionKey
ServiceCoreOutput
SpaceAuthorizationRequest
SpaceInfo
SpaceMember
SpaceMembership
SpaceMembershipListRequest
SpaceOwnedDataPurgeRequest
StorageBackendDescription
StorageBackendGrant
StorageBackendGrantRequest
StorageBackendPrepareWriteRequest
StorageEndpointProjection
Host-owned native HTTPS origin, projected independently of Artifact routes.
StorageError
StorageGatewayDescriptor
Native gateway transport is local to the hosting process. Never return this descriptor to App callers.
StorageGatewayRequest
StorageLocalEndpoint
StorageLocalRequest
StorageObject
StorageObjectList
StorageReadTransfer
StorageTransfer
StorageUpload
UpdateCallbackBaseRequest
UserInfo

Enums§

DeliveryAcceptance
DeliveryOutcome
ExceptionCode
ExternalArtifactStreamRequest
ExternalArtifactStreamResponse
ExternalCoreEventKind
ExternalCoreMethod
ExternalHostRuntimeMethod
HostConnectionControl
Connection fencing is control, not delivery. The key must identify an exact session, so delayed control requests cannot close a replacement connection.
HostDeliveryDestination
MutationOutcome
NodeBindingCardinality
NodeBindingStatus
NodeDelivery
NodeInstancePolicy
NodePreflightState
NodeReadinessState
NodeSource
Explicit provenance: failed publisher validation never becomes Preview.
NodeSourceKind
PluginKind
RuntimeEnv
A local runtime environment, independent of build profile and cloud destination. Only an absent wire field defaults to production; invalid values fail decoding.
ServiceCoreInput
ServiceCoreResponse
SpaceAccessRequirement
StorageBackendPermission
StorageBackendReply
StorageErrorCode
StorageLocalOperation
StorageLocalReply
StorageObjectControl
StorageUploadState
StorageWriteState

Constants§

ARTIFACT_ATTACHMENT_CHUNK_BYTES
Protocol 18 sends large dataBase64 strings after the JSON frame. The JSON field is an empty string marker, followed by a u32 byte length and that many ASCII bytes on the same connection. Only artifact commit requests and open/read responses support this attachment. Control frames keep their 16 MiB limit.
ARTIFACT_CONTENT_PATH_PREFIX
ARTIFACT_STREAM_CHUNK_BYTES
Host-to-Core bounded transfer commands. Public clients send a binary HTTP body. Only the owner keeps upload state, digest and staging content.
ARTIFACT_UPLOAD_PATH_PREFIX
EXTERNAL_CORE_PROTOCOL_VERSION
HUB_CONNECTION_PROOF_PROTOCOL
HUB_CONNECTION_PROOF_TARGET
MAX_NATIVE_ARTIFACT_BASE64_BYTES
MAX_NATIVE_ARTIFACT_BYTES
Maximum single native artifact body, separate from the JSON control frame limit.
MWS_MAX_FRAME_SIZE
MWS_MAX_MESSAGE_SIZE
Shared MWS transport limits. Both websocket peers must apply these values so an envelope accepted by one side is never rejected solely due to asymmetric transport configuration.
MWS_MAX_WRITE_BUFFER_SIZE
NODE_DESCRIBE_SCHEMA_VERSION
NODE_MANIFEST_MAX_BYTES
NODE_METADATA_SCHEMA_VERSION
NODE_METADATA_TARGET
NODE_ONBOARDING_CHALLENGE_ALGORITHM
NODE_ONBOARDING_CHALLENGE_AUDIENCE
NODE_ONBOARDING_CHALLENGE_PROTOCOL
NODE_ONBOARDING_ES256_ALGORITHM
NODE_ONBOARDING_START_TARGET
NODE_ONBOARDING_TOKEN_AUDIENCE
NODE_ONBOARDING_TOKEN_ISSUER_PREFIX
NODE_ONBOARDING_TRANSACTION_TTL_SECONDS
NODE_PREFLIGHT_SCHEMA_VERSION
NODE_READINESS_SCHEMA_VERSION
NODE_SERVICE_PROTOCOL_V1_SCHEMA
NODE_TOKEN_ISSUE_TARGET
NODE_TOKEN_LIST_TARGET
NODE_TOKEN_REVOKE_TARGET
PROTOCOL_VERSION
STORAGE_BACKEND_DESCRIBE
STORAGE_BACKEND_GRANT
STORAGE_BACKEND_PREPARE_WRITE
STORAGE_BACKEND_PROTOCOL_VERSION
STORAGE_GATEWAY_PREFIX
STORAGE_NODE_TYPE
STORAGE_PROTOCOL_VERSION
STORAGE_READINESS_ROUTE

Functions§

external_core_pipe_name
Derive a bounded, workdir-specific Windows IPC name from the metadata socket path. The metadata itself stays in the ordinary runtime directory on every platform.
hub_commission_tls_payload
Binds commissioning to the Host TLS identity, environment and immutable runtime policy. The non-UTF8 domain cannot be requested as a plain nonce.
hub_connection_proof_signing_payload
Canonical, domain-separated bytes signed by the Hub for one physical WS connection. Length prefixes keep the encoding unambiguous without relying on JSON object ordering.
is_folder_within
Segment boundary comparison; names containing SQL wildcards are ordinary names.
node_describe_target
node_readiness_target
storage_error_from_core
Preserve the Storage failure through Core RPC and native Host adapters. Only the typed SESSION_EXPIRED detail means that a data-plane retry is safe.
validate_folder_id
validate_folder_max_bytes